Bug 12422 - objdump --dwarf displays ranges (from / to) with mixed(decimal and hex) output
Summary: objdump --dwarf displays ranges (from / to) with mixed(decimal and hex) output
Status: RESOLVED INVALID
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.22
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-20 14:03 UTC by Stefan Oberhumer
Modified: 2011-01-21 10:04 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Oberhumer 2011-01-20 14:03:29 UTC
Running objdump --dwarf can result in an outputline where hex and decimal is
mixed - eg:
  DW_CFA_advance_loc: 11 to 0000000f

where "11" is decimal and "0000000f" hex.


Seems this happen for:
  DW_CFA_advance_loc
  DW_CFA_set_loc
  DW_CFA_advance_loc1
  DW_CFA_advance_loc2
  DW_CFA_advance_loc4
  DW_CFA_MIPS_advance_loc8


----
Sample output of "objdump --dwarf -j .eh_frame <objectfile>":

Contents of the .eh_frame section:

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

  DW_CFA_def_cfa: r7 (rsp) ofs 8
  DW_CFA_offset: r16 (rip) at cfa-8
  DW_CFA_nop
  DW_CFA_nop

00000018 00000014 0000001c FDE cie=00000000 pc=00000000..0000001a
  DW_CFA_advance_loc: 4 to 00000004
  DW_CFA_def_cfa_offset: 16
  DW_CFA_advance_loc: 11 to 0000000f
  DW_CFA_def_cfa_offset: 8
  DW_CFA_nop
Comment 1 Stefan Oberhumer 2011-01-21 10:04:55 UTC
I misinterpreted the output.