bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/28149] debug info with wrong file association


From: bernd.edlinger at hotmail dot de
Subject: [Bug gas/28149] debug info with wrong file association
Date: Fri, 30 Jul 2021 11:08:36 +0000

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

--- Comment #3 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
another test case I just discovered:

$ cat test1.c
asm("nop");
int main () 
{
  return 0;
}

$ gcc -g test1.c
$ readelf --debug-dump=decodedline a.out 
Contents of the .debug_line section:

CU: ./test1.c:
File name                            Line number    Starting address    View   
Stmt
test1.c                                        5            0x401106           
   x
test1.c                                        3            0x401107           
   x
test1.c                                        4            0x40110b           
   x
test1.c                                        5            0x401110           
   x
test1.c                                        -            0x401112


The first line 5 is the line number of the nop from the .s file.

-- 
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]