Guest User

gcc debug info

a guest
Sep 19th, 2017
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.98 KB | None | 0 0
  1. objdump --dwarf=info a.out
  2.  
  3. a.out: file format elf64-powerpcle
  4.  
  5. Contents of the .debug_info section:
  6.  
  7. Compilation Unit @ offset 0x0:
  8. Length: 0xa8 (32-bit)
  9. Version: 4
  10. Abbrev Offset: 0x0
  11. Pointer Size: 8
  12. <0><b>: Abbrev Number: 1 (DW_TAG_compile_unit)
  13. <c> DW_AT_producer : (indirect string, offset: 0x2a): GNU C++ 5.4.1 20170304 -Asystem=linux -Asystem=unix -Asystem=posix -msecure-plt -mcpu=power8 -ggdb -O0 -fstack-protector-strong
  14. <10> DW_AT_language : 4 (C++)
  15. <11> DW_AT_name : (indirect string, offset: 0xf3): stest.cpp
  16. <15> DW_AT_comp_dir : (indirect string, offset: 0xaa): /home/lbianc/mydata2
  17. <19> DW_AT_low_pc : 0x840
  18. <21> DW_AT_high_pc : 0xa8
  19. <29> DW_AT_stmt_list : 0x0
  20. <1><2d>: Abbrev Number: 2 (DW_TAG_base_type)
  21. <2e> DW_AT_byte_size : 8
  22. <2f> DW_AT_encoding : 7 (unsigned)
  23. <30> DW_AT_name : (indirect string, offset: 0x18): long unsigned int
  24. <1><34>: Abbrev Number: 2 (DW_TAG_base_type)
  25. <35> DW_AT_byte_size : 4
  26. <36> DW_AT_encoding : 7 (unsigned)
  27. <37> DW_AT_name : (indirect string, offset: 0x1d): unsigned int
  28. <1><3b>: Abbrev Number: 3 (DW_TAG_base_type)
  29. <3c> DW_AT_byte_size : 4
  30. <3d> DW_AT_encoding : 5 (signed)
  31. <3e> DW_AT_name : int
  32. <1><42>: Abbrev Number: 2 (DW_TAG_base_type)
  33. <43> DW_AT_byte_size : 8
  34. <44> DW_AT_encoding : 5 (signed)
  35. <45> DW_AT_name : (indirect string, offset: 0x5): long int
  36. <1><49>: Abbrev Number: 2 (DW_TAG_base_type)
  37. <4a> DW_AT_byte_size : 8
  38. <4b> DW_AT_encoding : 5 (signed)
  39. <4c> DW_AT_name : (indirect string, offset: 0x0): long long int
  40. <1><50>: Abbrev Number: 2 (DW_TAG_base_type)
  41. <51> DW_AT_byte_size : 8
  42. <52> DW_AT_encoding : 7 (unsigned)
  43. <53> DW_AT_name : (indirect string, offset: 0xe0): sizetype
  44. <1><57>: Abbrev Number: 2 (DW_TAG_base_type)
  45. <58> DW_AT_byte_size : 2
  46. <59> DW_AT_encoding : 7 (unsigned)
  47. <5a> DW_AT_name : (indirect string, offset: 0xcd): short unsigned int
  48. <1><5e>: Abbrev Number: 2 (DW_TAG_base_type)
  49. <5f> DW_AT_byte_size : 1
  50. <60> DW_AT_encoding : 8 (unsigned char)
  51. <61> DW_AT_name : (indirect string, offset: 0xc8): char
  52. <1><65>: Abbrev Number: 2 (DW_TAG_base_type)
  53. <66> DW_AT_byte_size : 1
  54. <67> DW_AT_encoding : 8 (unsigned char)
  55. <68> DW_AT_name : (indirect string, offset: 0xbf): unsigned char
  56. <1><6c>: Abbrev Number: 2 (DW_TAG_base_type)
  57. <6d> DW_AT_byte_size : 1
  58. <6e> DW_AT_encoding : 6 (signed char)
  59. <6f> DW_AT_name : (indirect string, offset: 0xc1): signed char
  60. <1><73>: Abbrev Number: 2 (DW_TAG_base_type)
  61. <74> DW_AT_byte_size : 2
  62. <75> DW_AT_encoding : 5 (signed)
  63. <76> DW_AT_name : (indirect string, offset: 0xe9): short int
  64. <1><7a>: Abbrev Number: 2 (DW_TAG_base_type)
  65. <7b> DW_AT_byte_size : 8
  66. <7c> DW_AT_encoding : 7 (unsigned)
  67. <7d> DW_AT_name : (indirect string, offset: 0x13): long long unsigned int
  68. <1><81>: Abbrev Number: 4 (DW_TAG_subprogram)
  69. <82> DW_AT_external : 1
  70. <82> DW_AT_name : (indirect string, offset: 0xe): main
  71. <86> DW_AT_decl_file : 1
  72. <87> DW_AT_decl_line : 4
  73. <88> DW_AT_type : <0x3b>
  74. <8c> DW_AT_low_pc : 0x840
  75. <94> DW_AT_high_pc : 0xa8
  76. <9c> DW_AT_frame_base : 1 byte block: 9c (DW_OP_call_frame_cfa)
  77. <9e> DW_AT_GNU_all_tail_call_sites: 1
  78. <2><9e>: Abbrev Number: 5 (DW_TAG_variable)
  79. <9f> DW_AT_name : a
  80. <a1> DW_AT_decl_file : 1
  81. <a2> DW_AT_decl_line : 5
  82. <a3> DW_AT_type : <0x3b>
  83. <a7> DW_AT_location : 2 byte block: 91 64 (DW_OP_fbreg: -28)
  84. <2><aa>: Abbrev Number: 0
  85. <1><ab>: Abbrev Number: 0
Add Comment
Please, Sign In to add comment