All pastes #616222 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-07-12 15:02 UTC
rendered paste body
The section .debug_aranges contains:

  Length:                   44
  Version:                  2
  Offset into .debug_info:  0
  Pointer Size:             8
  Segment Size:             0

    Address  Length
    00400468 103

Contents of the .debug_pubnames section:

  Length:                              54
  Version:                             2
  Offset into .debug_info section:     0
  Size of area in .debug_info section: 374

    Offset	Name
    131   		third
    200   		second
    263   		first
    326   		main

The section .debug_info contains:

  Compilation Unit @ offset 0x0:
   Length:        370
   Version:       2
   Abbrev Offset: 0
   Pointer Size:  8
 <0><b>: Abbrev Number: 1 (DW_TAG_compile_unit)
     DW_AT_stmt_list   : 0	
     DW_AT_high_pc     : 0x4004cf	
     DW_AT_low_pc      : 0x400468	
     DW_AT_producer    : (indirect string, offset: 0xa6): GNU C 4.1.1 20060525 (Red Hat 4.1.1-1)	
     DW_AT_language    : 1	(ANSI C)
     DW_AT_name        : (indirect string, offset: 0x17): /to/scratch/swagiaal/frysks/frysk.patches/frysk-core/frysk/pkglibdir/funit-stacks-values.c	
 <1><29>: Abbrev Number: 2 (DW_TAG_base_type)
     DW_AT_name        : (indirect string, offset: 0x5): long unsigned int	
     DW_AT_byte_size   : 8	
     DW_AT_encoding    : 7	(unsigned)
 <1><30>: Abbrev Number: 3 (DW_TAG_base_type)
     DW_AT_name        : int	
     DW_AT_byte_size   : 4	
     DW_AT_encoding    : 5	(signed)
 <1><37>: Abbrev Number: 2 (DW_TAG_base_type)
     DW_AT_name        : (indirect string, offset: 0x77): long int	
     DW_AT_byte_size   : 8	
     DW_AT_encoding    : 5	(signed)
 <1><3e>: Abbrev Number: 2 (DW_TAG_base_type)
     DW_AT_name        : (indirect string, offset: 0xcd): unsigned char	
     DW_AT_byte_size   : 1	
     DW_AT_encoding    : 8	(unsigned char)
 <1><45>: Abbrev Number: 2 (DW_TAG_base_type)
     DW_AT_name        : (indirect string, offset: 0x100): short unsigned int	
     DW_AT_byte_size   : 2	
     DW_AT_encoding    : 7	(unsigned)
 <1><4c>: Abbrev Number: 2 (DW_TAG_base_type)
     DW_AT_name        : (indirect string, offset: 0xa): unsigned int	
     DW_AT_byte_size   : 4	
     DW_AT_encoding    : 7	(unsigned)
 <1><53>: Abbrev Number: 2 (DW_TAG_base_type)
     DW_AT_name        : (indirect string, offset: 0xcf): signed char	
     DW_AT_byte_size   : 1	
     DW_AT_encoding    : 6	(signed char)
 <1><5a>: Abbrev Number: 2 (DW_TAG_base_type)
     DW_AT_name        : (indirect string, offset: 0xf0): short int	
     DW_AT_byte_size   : 2	
     DW_AT_encoding    : 5	(signed)
 <1><61>: Abbrev Number: 2 (DW_TAG_base_type)
     DW_AT_name        : (indirect string, offset: 0x5): long unsigned int	
     DW_AT_byte_size   : 8	
     DW_AT_encoding    : 7	(unsigned)
 <1><68>: Abbrev Number: 4 (DW_TAG_pointer_type)
     DW_AT_byte_size   : 8	
     DW_AT_type        : <6e>	
 <1><6e>: Abbrev Number: 2 (DW_TAG_base_type)
     DW_AT_name        : (indirect string, offset: 0xd6): char	
     DW_AT_byte_size   : 1	
     DW_AT_encoding    : 6	(signed char)
 <1><75>: Abbrev Number: 2 (DW_TAG_base_type)
     DW_AT_name        : (indirect string, offset: 0x0): long long unsigned int	
     DW_AT_byte_size   : 8	
     DW_AT_encoding    : 7	(unsigned)
 <1><7c>: Abbrev Number: 2 (DW_TAG_base_type)
     DW_AT_name        : (indirect string, offset: 0x72): long long int	
     DW_AT_byte_size   : 8	
     DW_AT_encoding    : 5	(signed)
 <1><83>: Abbrev Number: 5 (DW_TAG_subprogram)
     DW_AT_sibling     : <c8>	
     DW_AT_external    : 1	
     DW_AT_name        : (indirect string, offset: 0xa0): third	
     DW_AT_decl_file   : 1	
     DW_AT_decl_line   : 3	
     DW_AT_prototyped  : 1	
     DW_AT_low_pc      : 0x400468	
     DW_AT_high_pc     : 0x40047c	
     DW_AT_frame_base  : 2 byte block: 77 8 	(DW_OP_breg7: 8)
 <2><a3>: Abbrev Number: 6 (DW_TAG_formal_parameter)
     DW_AT_name        : (indirect string, offset: 0xe9): param3	
     DW_AT_decl_file   : 1	
     DW_AT_decl_line   : 3	
     DW_AT_type        : <30>	
     DW_AT_location    : 1 byte block: 55 	(DW_OP_reg5)
 <2><b0>: Abbrev Number: 7 (DW_TAG_variable)
     DW_AT_name        : (indirect string, offset: 0x9b): var4	
     DW_AT_decl_file   : 1	
     DW_AT_decl_line   : 4	
     DW_AT_type        : <30>	
     DW_AT_location    : 2 byte block: 91 74 	(DW_OP_fbreg: -12)
 <2><be>: Abbrev Number: 8 (DW_TAG_variable)
     DW_AT_name        : c	
     DW_AT_decl_file   : 1	
     DW_AT_decl_line   : 5	
     DW_AT_type        : <68>	
 <1><c8>: Abbrev Number: 9 (DW_TAG_subprogram)
     DW_AT_sibling     : <107>	
     DW_AT_external    : 1	
     DW_AT_name        : (indirect string, offset: 0x80): second	
     DW_AT_decl_file   : 1	
     DW_AT_decl_line   : 9	
     DW_AT_prototyped  : 1	
     DW_AT_low_pc      : 0x40047c	
     DW_AT_high_pc     : 0x400496	
     DW_AT_frame_base  : 0	(location list)
 <2><e9>: Abbrev Number: 10 (DW_TAG_formal_parameter)
     DW_AT_name        : (indirect string, offset: 0xe2): param2	
     DW_AT_decl_file   : 1	
     DW_AT_decl_line   : 9	
     DW_AT_type        : <30>	
     DW_AT_location    : 0x38	(location list)
 <2><f8>: Abbrev Number: 7 (DW_TAG_variable)
     DW_AT_name        : (indirect string, offset: 0x96): var3	
     DW_AT_decl_file   : 1	
     DW_AT_decl_line   : 10	
     DW_AT_type        : <30>	
     DW_AT_location    : 2 byte block: 91 74 	(DW_OP_fbreg: -12)
 <1><107>: Abbrev Number: 9 (DW_TAG_subprogram)
     DW_AT_sibling     : <146>	
     DW_AT_external    : 1	
     DW_AT_name        : (indirect string, offset: 0xfa): first	
     DW_AT_decl_file   : 1	
     DW_AT_decl_line   : 14	
     DW_AT_prototyped  : 1	
     DW_AT_low_pc      : 0x400496	
     DW_AT_high_pc     : 0x4004b0	
     DW_AT_frame_base  : 0x5b	(location list)
 <2><128>: Abbrev Number: 10 (DW_TAG_formal_parameter)
     DW_AT_name        : (indirect string, offset: 0xdb): param1	
     DW_AT_decl_file   : 1	
     DW_AT_decl_line   : 14	
     DW_AT_type        : <30>	
     DW_AT_location    : 0x93	(location list)
 <2><137>: Abbrev Number: 7 (DW_TAG_variable)
     DW_AT_name        : (indirect string, offset: 0x91): var2	
     DW_AT_decl_file   : 1	
     DW_AT_decl_line   : 15	
     DW_AT_type        : <30>	
     DW_AT_location    : 2 byte block: 91 74 	(DW_OP_fbreg: -12)
 <1><146>: Abbrev Number: 11 (DW_TAG_subprogram)
     DW_AT_external    : 1	
     DW_AT_name        : (indirect string, offset: 0x87): main	
     DW_AT_decl_file   : 1	
     DW_AT_decl_line   : 19	
     DW_AT_type        : <30>	
     DW_AT_low_pc      : 0x4004b0	
     DW_AT_high_pc     : 0x4004cf	
     DW_AT_frame_base  : 0xb6	(location list)
 <2><166>: Abbrev Number: 7 (DW_TAG_variable)
     DW_AT_name        : (indirect string, offset: 0x8c): var1	
     DW_AT_decl_file   : 1	
     DW_AT_decl_line   : 20	
     DW_AT_type        : <30>	
     DW_AT_location    : 2 byte block: 91 74 	(DW_OP_fbreg: -12)

Contents of the .debug_abbrev section:

  Number TAG
   1      DW_TAG_compile_unit    [has children]
    DW_AT_stmt_list    DW_FORM_data4
    DW_AT_high_pc      DW_FORM_addr
    DW_AT_low_pc       DW_FORM_addr
    DW_AT_producer     DW_FORM_strp
    DW_AT_language     DW_FORM_data1
    DW_AT_name         DW_FORM_strp
   2      DW_TAG_base_type    [no children]
    DW_AT_name         DW_FORM_strp
    DW_AT_byte_size    DW_FORM_data1
    DW_AT_encoding     DW_FORM_data1
   3      DW_TAG_base_type    [no children]
    DW_AT_name         DW_FORM_string
    DW_AT_byte_size    DW_FORM_data1
    DW_AT_encoding     DW_FORM_data1
   4      DW_TAG_pointer_type    [no children]
    DW_AT_byte_size    DW_FORM_data1
    DW_AT_type         DW_FORM_ref4
   5      DW_TAG_subprogram    [has children]
    DW_AT_sibling      DW_FORM_ref4
    DW_AT_external     DW_FORM_flag
    DW_AT_name         DW_FORM_strp
    DW_AT_decl_file    DW_FORM_data1
    DW_AT_decl_line    DW_FORM_data1
    DW_AT_prototyped   DW_FORM_flag
    DW_AT_low_pc       DW_FORM_addr
    DW_AT_high_pc      DW_FORM_addr
    DW_AT_frame_base   DW_FORM_block1
   6      DW_TAG_formal_parameter    [no children]
    DW_AT_name         DW_FORM_strp
    DW_AT_decl_file    DW_FORM_data1
    DW_AT_decl_line    DW_FORM_data1
    DW_AT_type         DW_FORM_ref4
    DW_AT_location     DW_FORM_block1
   7      DW_TAG_variable    [no children]
    DW_AT_name         DW_FORM_strp
    DW_AT_decl_file    DW_FORM_data1
    DW_AT_decl_line    DW_FORM_data1
    DW_AT_type         DW_FORM_ref4
    DW_AT_location     DW_FORM_block1
   8      DW_TAG_variable    [no children]
    DW_AT_name         DW_FORM_string
    DW_AT_decl_file    DW_FORM_data1
    DW_AT_decl_line    DW_FORM_data1
    DW_AT_type         DW_FORM_ref4
   9      DW_TAG_subprogram    [has children]
    DW_AT_sibling      DW_FORM_ref4
    DW_AT_external     DW_FORM_flag
    DW_AT_name         DW_FORM_strp
    DW_AT_decl_file    DW_FORM_data1
    DW_AT_decl_line    DW_FORM_data1
    DW_AT_prototyped   DW_FORM_flag
    DW_AT_low_pc       DW_FORM_addr
    DW_AT_high_pc      DW_FORM_addr
    DW_AT_frame_base   DW_FORM_data4
   10      DW_TAG_formal_parameter    [no children]
    DW_AT_name         DW_FORM_strp
    DW_AT_decl_file    DW_FORM_data1
    DW_AT_decl_line    DW_FORM_data1
    DW_AT_type         DW_FORM_ref4
    DW_AT_location     DW_FORM_data4
   11      DW_TAG_subprogram    [has children]
    DW_AT_external     DW_FORM_flag
    DW_AT_name         DW_FORM_strp
    DW_AT_decl_file    DW_FORM_data1
    DW_AT_decl_line    DW_FORM_data1
    DW_AT_type         DW_FORM_ref4
    DW_AT_low_pc       DW_FORM_addr
    DW_AT_high_pc      DW_FORM_addr
    DW_AT_frame_base   DW_FORM_data4


Dump of debug contents of section .debug_line:

  Length:                      150
  DWARF Version:               2
  Prologue Length:             113
  Minimum Instruction Length:  1
  Initial value of 'is_stmt':  1
  Line Base:                   -5
  Line Range:                  14
  Opcode Base:                 13
  (Pointer size:               8)

 Opcodes:
  Opcode 1 has 0 args
  Opcode 2 has 1 args
  Opcode 3 has 1 args
  Opcode 4 has 1 args
  Opcode 5 has 1 args
  Opcode 6 has 0 args
  Opcode 7 has 0 args
  Opcode 8 has 0 args
  Opcode 9 has 1 args
  Opcode 10 has 0 args
  Opcode 11 has 0 args
  Opcode 12 has 1 args

 The Directory Table:
  /to/scratch/swagiaal/frysks/frysk.patches/frysk-core/frysk/pkglibdir

 The File Name Table:
  Entry	Dir	Time	Size	Name
  1	1	0	0	funit-stacks-values.c

 Line Number Statements:
  Extended opcode 2: set Address to 0x400468
  Special opcode 8: advance Address by 0 to 0x400468 and Line by 3 to 4
  Special opcode 119: advance Address by 8 to 0x400470 and Line by 2 to 6
  Special opcode 160: advance Address by 11 to 0x40047b and Line by 1 to 7
  Special opcode 21: advance Address by 1 to 0x40047c and Line by 2 to 9
  Special opcode 62: advance Address by 4 to 0x400480 and Line by 1 to 10
  Special opcode 118: advance Address by 8 to 0x400488 and Line by 1 to 11
  Special opcode 132: advance Address by 9 to 0x400491 and Line by 1 to 12
  Special opcode 77: advance Address by 5 to 0x400496 and Line by 2 to 14
  Special opcode 62: advance Address by 4 to 0x40049a and Line by 1 to 15
  Special opcode 118: advance Address by 8 to 0x4004a2 and Line by 1 to 16
  Special opcode 132: advance Address by 9 to 0x4004ab and Line by 1 to 17
  Special opcode 77: advance Address by 5 to 0x4004b0 and Line by 2 to 19
  Special opcode 62: advance Address by 4 to 0x4004b4 and Line by 1 to 20
  Special opcode 118: advance Address by 8 to 0x4004bc and Line by 1 to 21
  Special opcode 133: advance Address by 9 to 0x4004c5 and Line by 2 to 23
  Advance PC by 10 to 0x4004cf
  Extended opcode 1: End of Sequence


The section .debug_frame contains:

00000000 00000014 ffffffff CIE
  Version:               1
  Augmentation:          ""
  Code alignment factor: 1
  Data alignment factor: -8
  Return address column: 16

  DW_CFA_def_cfa: r7 ofs 8
  DW_CFA_offset: r16 at cfa-8
  DW_CFA_nop
  DW_CFA_nop
  DW_CFA_nop
  DW_CFA_nop
  DW_CFA_nop
  DW_CFA_nop

00000018 00000014 00000000 FDE cie=00000000 pc=00400468..0040047c

00000030 0000001c 00000000 FDE cie=00000000 pc=0040047c..00400496
  DW_CFA_advance_loc: 4 to 00400480
  DW_CFA_def_cfa_offset: 32
  DW_CFA_nop
  DW_CFA_nop
  DW_CFA_nop
  DW_CFA_nop
  DW_CFA_nop

00000050 0000001c 00000000 FDE cie=00000000 pc=00400496..004004b0
  DW_CFA_advance_loc: 4 to 0040049a
  DW_CFA_def_cfa_offset: 32
  DW_CFA_nop
  DW_CFA_nop
  DW_CFA_nop
  DW_CFA_nop
  DW_CFA_nop

00000070 0000001c 00000000 FDE cie=00000000 pc=004004b0..004004cf
  DW_CFA_advance_loc: 4 to 004004b4
  DW_CFA_def_cfa_offset: 32
  DW_CFA_nop
  DW_CFA_nop
  DW_CFA_nop
  DW_CFA_nop
  DW_CFA_nop

Contents of the .debug_str section:

  0x00000000 6c6f6e67 206c6f6e 6720756e 7369676e long long unsign
  0x00000010 65642069 6e74002f 746f2f73 63726174 ed int./to/scrat
  0x00000020 63682f73 77616769 61616c2f 66727973 ch/swagiaal/frys
  0x00000030 6b732f66 7279736b 2e706174 63686573 ks/frysk.patches
  0x00000040 2f667279 736b2d63 6f72652f 66727973 /frysk-core/frys
  0x00000050 6b2f706b 676c6962 6469722f 66756e69 k/pkglibdir/funi
  0x00000060 742d7374 61636b73 2d76616c 7565732e t-stacks-values.
  0x00000070 63006c6f 6e67206c 6f6e6720 696e7400 c.long long int.
  0x00000080 7365636f 6e64006d 61696e00 76617231 second.main.var1
  0x00000090 00766172 32007661 72330076 61723400 .var2.var3.var4.
  0x000000a0 74686972 6400474e 55204320 342e312e third.GNU C 4.1.
  0x000000b0 31203230 30363035 32352028 52656420 1 20060525 (Red 
  0x000000c0 48617420 342e312e 312d3129 00756e73 Hat 4.1.1-1).uns
  0x000000d0 69676e65 64206368 61720070 6172616d igned char.param
  0x000000e0 31007061 72616d32 00706172 616d3300 1.param2.param3.
  0x000000f0 73686f72 7420696e 74006669 72737400 short int.first.
  0x00000100 73686f72 7420756e 7369676e 65642069 short unsigned i
  0x00000110 6e7400                              nt.

Contents of the .debug_loc section:

    Offset   Begin    End      Expression
    00000000 0040047c 00400480 (DW_OP_breg7: 8)
    00000000 00400480 00400496 (DW_OP_breg7: 32)
    00000000 <End of list>
    00000038 0040047c 0040048c (DW_OP_reg5)
    00000038 <End of list>
    0000005b 00400496 0040049a (DW_OP_breg7: 8)
    0000005b 0040049a 004004b0 (DW_OP_breg7: 32)
    0000005b <End of list>
    00000093 00400496 004004a6 (DW_OP_reg5)
    00000093 <End of list>
    000000b6 004004b0 004004b4 (DW_OP_breg7: 8)
    000000b6 004004b4 004004cf (DW_OP_breg7: 32)
    000000b6 <End of list>