diff options
| author | Mark Wielaard <[email protected]> | 2013-05-06 15:48:56 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2013-05-06 15:58:12 +0200 |
| commit | 63d8bfd36e8717e274be5cc3b472b87475f4cc12 (patch) | |
| tree | aa530bbdab28a3866cd9131f26d311826a26a1d9 /src/readelf.c | |
| parent | 9affad3d2314de1bacbabae453a7261cc02feac4 (diff) | |
readelf: Format first DW_OP_GNU_implicit_pointer argument as DIE offset.
Make the printing of DW_OP_GNU_implicit_pointer consistent with other
operations that have a DIE offset as argument.
Before:
[ 6e4a] formal_parameter
abstract_origin (ref4) [ 616a]
location (exprloc)
[ 0] GNU_implicit_pointer 0x6dbe, +0
After:
[ 6e4a] formal_parameter
abstract_origin (ref4) [ 616a]
location (exprloc)
[ 0] GNU_implicit_pointer [ 6dbe] +0
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'src/readelf.c')
| -rw-r--r-- | src/readelf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/readelf.c b/src/readelf.c index d9527c6d..236d0887 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -4019,7 +4019,7 @@ print_ops (Dwfl_Module *dwflmod, Dwarf *dbg, int indent, int indentrest, /* Byte offset operand. */ get_sleb128 (sleb, data); /* XXX check overrun */ - printf ("%*s[%4" PRIuMAX "] %s %#" PRIxMAX ", %+" PRId64 "\n", + printf ("%*s[%4" PRIuMAX "] %s [%6" PRIxMAX "] %+" PRId64 "\n", indent, "", (intmax_t) offset, op_name, (uintmax_t) addr, sleb); CONSUME (data - start); |
