void Dump_all_sections( void ) /****************************/ { uint sect; sect = 0; for( ;; ) { Wdputs( sectionNames[ sect ] ); Wdputslc( ":\n" ); Dump_specific_section( sect, Sections[ sect ].data, Sections[ sect ].max_offset ); ++sect; if( sect == DW_DEBUG_MAX ) break; Wdputslc( "\n" ); } }
/* * Dump a progbits section. */ static void dmp_sec_progbits( char *name, unsigned_32 offset, unsigned_32 size ) /****************************************/ { const uint_8 *ptr; uint sect; if( name == NULL ) { Dmp_seg_data( offset, size ); } else { ptr = Wmalloc( size ); Wlseek( offset ); Wread( (char *)ptr, size ); sect = Lookup_section_name( name ); Dump_specific_section( sect, ptr, size ); free( (void *)ptr ); } }