diff options
author | Nick Clifton <nickc@redhat.com> | 2023-08-23 11:36:25 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2023-08-23 11:36:25 +0100 |
commit | 589d38af0de46f3325747a9e29e008c79e41e664 (patch) | |
tree | ed52625954a8bf3df776b609664c64c8c4ea8931 /binutils/dwarf.h | |
parent | 3ce8f906be7a55d8c0375e6d360cc53b456d86ae (diff) | |
download | binutils-589d38af0de46f3325747a9e29e008c79e41e664.zip binutils-589d38af0de46f3325747a9e29e008c79e41e664.tar.gz binutils-589d38af0de46f3325747a9e29e008c79e41e664.tar.bz2 |
readelf/objdump: Handle DWARF info with mixed types of range section.
PR 30791
* dwarf.h (debug_info): Add range_versions field.
* dwarf.c (read_and_display_attr_value): When recording a range arribute also ecord the dwarf version number.
(is_range_list_for_this_section): New function.
(display_debug_ranges): Only show debug ranges whose version is suitable for the secction being displayed.
Diffstat (limited to 'binutils/dwarf.h')
-rw-r--r-- | binutils/dwarf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/binutils/dwarf.h b/binutils/dwarf.h index d2f9523..61c4158 100644 --- a/binutils/dwarf.h +++ b/binutils/dwarf.h @@ -189,6 +189,7 @@ typedef struct /* List of .debug_ranges offsets seen in this .debug_info. */ uint64_t * range_lists; + unsigned int * range_versions; unsigned int num_range_lists; unsigned int max_range_lists; uint64_t rnglists_base; |