bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/28629] [gas, --gdwarf-5] File 0 has wrong dir


From: vries at gcc dot gnu.org
Subject: [Bug gas/28629] [gas, --gdwarf-5] File 0 has wrong dir
Date: Fri, 26 Nov 2021 06:57:30 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=28629

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 13807
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13807&action=edit
Tentative patch

Using this patch we have instead:
...
    <1a>   DW_AT_name        :
/home/vries/gdb_versions/devel/src/gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.S
    <1e>   DW_AT_comp_dir    : /home/vries/gdb_versions/devel
...
and:
...
 The Directory Table (offset 0x22, lines 2, columns 1):
  Entry Name
  0     /home/vries/gdb_versions/devel
  1     /home/vries/gdb_versions/devel/src/gdb/testsuite/gdb.tui

 The File Name Table (offset 0x30, lines 2, columns 2):
  Entry Dir     Name
  0     1       tui-layout-asm-short-prog.S
  1     1       tui-layout-asm-short-prog.S
...

Both problems are fixed:
- the DW_AT_name is now absolute with the correct prefix,
- file 0 now has dir 1, making it identical to file 1.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]