diff options
author | Tom de Vries <tdevries@suse.de> | 2024-11-27 18:48:43 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2024-11-27 18:48:43 +0100 |
commit | 8b8a557119f391ee4c3544408d76950e229797dc (patch) | |
tree | 6f7d7ff212a75aee2cf2c69083acf92143ca8413 /gdb/addrmap.h | |
parent | 4c5d88facd74c392737882608c001b17b7aeb017 (diff) | |
download | binutils-8b8a557119f391ee4c3544408d76950e229797dc.zip binutils-8b8a557119f391ee4c3544408d76950e229797dc.tar.gz binutils-8b8a557119f391ee4c3544408d76950e229797dc.tar.bz2 |
[gdb/symtab] Fix parent map dump
Before the fix for PR symtab/32225, the parent map dump showed a mapping from
section offsets to cooked index entries:
...
0x0000000000000035 0x3ba9560 (0x34: sp1::A)
...
but now that's no longer the case:
...
0x00000000406f5405 0x410a04d0 (0x34: sp1::A)
...
Fix this by extending the annotation somewhat, such that we get:
...
map start:
0x0000000012c52405 0x135fd550
(section: .debug_info, offset: 0x35) -> (0x34: sp1::A)
...
Tested on x86_64-linux.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32225
Diffstat (limited to 'gdb/addrmap.h')
-rw-r--r-- | gdb/addrmap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/addrmap.h b/gdb/addrmap.h index 85d4645..6e2111e 100644 --- a/gdb/addrmap.h +++ b/gdb/addrmap.h @@ -225,6 +225,7 @@ private: void addrmap_dump (struct addrmap *map, struct ui_file *outfile, void *payload, gdb::function_view<void (struct ui_file *outfile, + CORE_ADDR start_addr, const void *value)> annotate_value = nullptr); |