aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2020-09-07 14:03:20 +0100
committerNick Clifton <nickc@redhat.com>2020-09-07 14:03:20 +0100
commitd2a54558074287721ce9e47142f7fa92bda15531 (patch)
treec8bb313bdfd20f3105bc554434624ca7e3562433 /gas/testsuite
parentbdd3b953e24c3d2bc55e06e30e0ef5e0ff829e3f (diff)
downloadgdb-d2a54558074287721ce9e47142f7fa92bda15531.zip
gdb-d2a54558074287721ce9e47142f7fa92bda15531.tar.gz
gdb-d2a54558074287721ce9e47142f7fa92bda15531.tar.bz2
gas: Output directory and file names in .debug_line_str for DWARF5
* dwarf2dbg.c (add_line_strp): New function. (out_dir_and_file_list): Take line_seg and sizeof_offset as arguments, Use DW_FORM_line_strp for dir and file. Call add_line_strp and set symbol offset for DWARF2_LINE_VERSION 5. (out_debug_line): Call out_dir_and_file_list with line_seg and sizeof_offset. * gas/testsuite/gas/elf/dwarf-5-file0.d: Expect indirect line strings.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/gas/elf/dwarf-5-file0.d12
1 files changed, 6 insertions, 6 deletions
diff --git a/gas/testsuite/gas/elf/dwarf-5-file0.d b/gas/testsuite/gas/elf/dwarf-5-file0.d
index 3dffa63..5d76b7b 100644
--- a/gas/testsuite/gas/elf/dwarf-5-file0.d
+++ b/gas/testsuite/gas/elf/dwarf-5-file0.d
@@ -5,15 +5,15 @@
#...
The Directory Table \(offset 0x.*, lines 3, columns 1\):
Entry Name
- 0 master directory
- 1 secondary directory
- 2 /tmp
+ 0 \(indirect line string, offset: 0x.*\): master directory
+ 1 \(indirect line string, offset: 0x.*\): secondary directory
+ 2 \(indirect line string, offset: 0x.*\): /tmp
The File Name Table \(offset 0x.*, lines 3, columns 3\):
Entry Dir MD5 Name
- 0 0 0x00000000000000000000000000000000 master source file
- 1 1 0x00000000000000000000000000000000 secondary source file
- 2 2 0x95828e8bc4f7404dbf7526fb7bd0f192 foo.c
+ 0 0 0x00000000000000000000000000000000 \(indirect line string, offset: 0x.*\): master source file
+ 1 1 0x00000000000000000000000000000000 \(indirect line string, offset: 0x.*\): secondary source file
+ 2 2 0x95828e8bc4f7404dbf7526fb7bd0f192 \(indirect line string, offset: 0x.*\): foo.c
#pass