All pastes #510154 Raw Edit

Someone

public text v1 · immutable
·published 2007-05-25 19:39 UTC
rendered paste body
The section .debug_aranges contains:

  Length:                   28
  Version:                  2
  Offset into .debug_info:  0
  Pointer Size:             4
  Segment Size:             0

    Address    Length
    0x08048324 0x34
    0x00000000 0x0

Contents of the .debug_pubnames section:

  Length:                              23
  Version:                             2
  Offset into .debug_info section:     0
  Size of area in .debug_info section: 148

    Offset      Name
    98                  main

The section .debug_info contains:

  Compilation Unit @ offset 0x0:
   Length:        144
   Version:       2
   Abbrev Offset: 0
   Pointer Size:  4
 <0><b>: Abbrev Number: 1 (DW_TAG_compile_unit)
     DW_AT_stmt_list   : 0
     DW_AT_high_pc     : 0x8048358
     DW_AT_low_pc      : 0x8048324
     DW_AT_producer    : GNU C 4.1.1 20070105 (Red Hat 4.1.1-51)
     DW_AT_language    : 1      (ANSI C)
     DW_AT_name        : dummy.c
     DW_AT_comp_dir    : /home/ajocksch/src/tests
 <1><62>: Abbrev Number: 2 (DW_TAG_subprogram)
     DW_AT_sibling     : <8c>
     DW_AT_external    : 1
     DW_AT_name        : main
     DW_AT_decl_file   : 1
     DW_AT_decl_line   : 2
     DW_AT_type        : <8c>
     DW_AT_low_pc      : 0x8048324
     DW_AT_high_pc     : 0x8048358
     DW_AT_frame_base  : 0      (location list)
 <2><7f>: Abbrev Number: 3 (DW_TAG_variable)
     DW_AT_name        : x
     DW_AT_decl_file   : 1
     DW_AT_decl_line   : 3
     DW_AT_type        : <8c>
     DW_AT_location    : 2 byte block: 91 70    (DW_OP_fbreg: -16)
 <1><8c>: Abbrev Number: 4 (DW_TAG_base_type)
     DW_AT_name        : int
     DW_AT_byte_size   : 4
     DW_AT_encoding    : 5      (signed)

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_string
    DW_AT_language     DW_FORM_data1
    DW_AT_name         DW_FORM_string
    DW_AT_comp_dir     DW_FORM_string
   2      DW_TAG_subprogram    [has children]
    DW_AT_sibling      DW_FORM_ref4
    DW_AT_external     DW_FORM_flag
    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
    DW_AT_low_pc       DW_FORM_addr
    DW_AT_high_pc      DW_FORM_addr
    DW_AT_frame_base   DW_FORM_data4
   3      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
    DW_AT_location     DW_FORM_block1
   4      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


Dump of debug contents of section .debug_line:

  Length:                      55
  DWARF Version:               2
  Prologue Length:             30
  Minimum Instruction Length:  1
  Initial value of 'is_stmt':  1
  Line Base:                   -5
  Line Range:                  14
  Opcode Base:                 13

 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 is empty.

 The File Name Table:
  Entry Dir     Time    Size    Name
  1     0       0       0       dummy.c

 Line Number Statements:
  Extended opcode 2: set Address to 0x8048324
  Special opcode 6: advance Address by 0 to 0x8048324 and Line by 1 to 2
  Advance PC by constant 17 to 0x8048335
  Special opcode 6: advance Address by 0 to 0x8048335 and Line by 1 to 3
  Special opcode 104: advance Address by 7 to 0x804833c and Line by 1 to 4
  Special opcode 104: advance Address by 7 to 0x8048343 and Line by 1 to 5
  Special opcode 105: advance Address by 7 to 0x804834a and Line by 2 to 7
  Special opcode 76: advance Address by 5 to 0x804834f and Line by 1 to 8
  Advance PC by 9 to 0x8048358
  Extended opcode 1: End of Sequence


The section .debug_frame contains:

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

  DW_CFA_def_cfa: r4 ofs 4
  DW_CFA_offset: r8 at cfa-4
  DW_CFA_nop
  DW_CFA_nop

00000014 00000024 00000000 FDE cie=00000000 pc=08048324..08048358
  DW_CFA_advance_loc: 4 to 08048328
  DW_CFA_def_cfa: r1 ofs 0
  DW_CFA_register: r4 in r1
  DW_CFA_advance_loc: 6 to 0804832e
  DW_CFA_def_cfa: r4 ofs 4
  DW_CFA_advance_loc: 1 to 0804832f
  DW_CFA_def_cfa_offset: 8
  DW_CFA_offset: r5 at cfa-8
  DW_CFA_advance_loc: 2 to 08048331
  DW_CFA_def_cfa_reg: r5
  DW_CFA_advance_loc: 1 to 08048332
  DW_CFA_offset: r4 at cfa-12
  DW_CFA_nop
  DW_CFA_nop

Contents of the .debug_loc section:

    Offset   Begin    End      Expression
    00000000 08048324 08048328 (DW_OP_breg4: 4)
    00000000 08048328 0804832e (DW_OP_reg1)
    00000000 0804832e 0804832f (DW_OP_breg4: 4)
    00000000 0804832f 08048331 (DW_OP_breg4: 8)
    00000000 08048331 08048358 (DW_OP_breg5: 8)
    00000000 <End of list>