[Nasm-bugs] Bug 3392765

Tom Saunders tmsaunders59 at gmail.com
Mon Nov 8 10:31:12 PST 2021


https://bugzilla.nasm.us/show_bug.cgi?id=3392765

*Bug 3392765* <https://bugzilla.nasm.us/show_bug.cgi?id=3392765> - Line 
numbers with error/warning occurrences are reported incorrectly for 
included files

- I can confirm the same bug. The line number reporting for errors was 
displaying the running line count  for included files and NOT the line 
number of the main file or included file.

I was using a principle file and then including multiple other files as 
developed-needed. The maximum %include depth was only 1.

(The main file worked correctly until after  %include "equates". Then 
any error in main thread or subsequent %include files will show a 
cumulative line number.

The impact is when using source level debug (gdb tui), the display goes 
wonky after the first include.

The workaround is to generate a "makefile" and then link individual 
files. The debug tags work correctly with this approach. (I don't think 
they should since I do include a constants file (%include "equates") and 
.bss file (%include variables) and the issue does not recur.


Tom Saunders

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.nasm.us/archives/nasm-bugs/attachments/20211108/59a407fa/attachment.htm>


More information about the Nasm-bugs mailing list