diff options
author | Tom de Vries <tdevries@suse.de> | 2024-05-15 09:45:55 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2024-05-15 09:45:55 +0200 |
commit | e548840a038fd6e6bb37a3fb0a14fe4a4ad8ada6 (patch) | |
tree | 285c51997321bcdf92be6901dbde5ae342e0e8d9 /libctf/ctf-string.c | |
parent | 7e4f1f4bc7ffe26524a6eb0685bd22863cdfde1e (diff) | |
download | binutils-e548840a038fd6e6bb37a3fb0a14fe4a4ad8ada6.zip binutils-e548840a038fd6e6bb37a3fb0a14fe4a4ad8ada6.tar.gz binutils-e548840a038fd6e6bb37a3fb0a14fe4a4ad8ada6.tar.bz2 |
[binutils/readelf] Fix handling of DW_MACRO_define_strx in dwo file
When printing a DW_MACRO_define_strx entry in a .debug_macro.dwo section, we
run into:
...
DW_MACRO_define_strx lineno : 0 macro : <no .debug_str_offsets section>
...
Fix this in display_debug_macro by passing the correct dwo argument to a
fetch_indexed_string call.
That works fine for readelf -w, with with readelf -wm we have:
...
DW_MACRO_define_strx lineno : 0 macro : <no .debug_str_offsets.dwo section>
...
Fix this in display_debug_macro by doing load_debug_section_with_follow for
str_dwo / str_index_dwo sections instead of str / str_index sections when
handling .debug_macro.dwo.
PR 31735
Diffstat (limited to 'libctf/ctf-string.c')
0 files changed, 0 insertions, 0 deletions