diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-03-17 18:07:32 +0000 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-03-22 10:00:19 +0000 |
commit | 1e7fcccb8d6d0a6bd295a50400c553cc595250f1 (patch) | |
tree | b4a2d6cc035441ab202427c8d71ab309d465ca68 /bfd/elfnn-aarch64.c | |
parent | d171632faa9f563f47224e0f6214f8860ed7bcc4 (diff) | |
download | gdb-1e7fcccb8d6d0a6bd295a50400c553cc595250f1.zip gdb-1e7fcccb8d6d0a6bd295a50400c553cc595250f1.tar.gz gdb-1e7fcccb8d6d0a6bd295a50400c553cc595250f1.tar.bz2 |
gdb/testsuite: use the correct .debug_str section name for DW_FORM_strp
When handling DWARF attributes of the form DW_FORM_strp the strings
should be placed in the .debug_str section, not .debug_string as they
currently are by the DWARF assembler (in lib/dwarf.exp).
I've added a test. This is as much to test the DWARF generator as it
is to test GDB as GCC makes frequent use of DW_FORM_strp so we can be
pretty sure this part of GDB is already well tested.
gdb/testsuite/ChangeLog:
* gdb.dwarf2/dw2-using-debug-str.c: New file.
* gdb.dwarf2/dw2-using-debug-str.exp: New file.
* lib/dwarf.exp (Dwarf::DW_FORM_strp): Create .debug_str section,
not .debug_string.
Diffstat (limited to 'bfd/elfnn-aarch64.c')
0 files changed, 0 insertions, 0 deletions