Make debug info and error messages correctly reflect macros and reps
commit5b7369d7e0e256684bc92ab2ec8a822d9eb32e32
authorH. Peter Anvin (Intel) <hpa@zytor.com>
Sun, 5 Jul 2020 09:16:13 +0000 (5 02:16 -0700)
committerH. Peter Anvin (Intel) <hpa@zytor.com>
Sun, 5 Jul 2020 09:16:13 +0000 (5 02:16 -0700)
tree2d486e40cbde368ec73650967df17ac5353b5acf
parent87a832e391ccf5a24dc70ceec1e13d94df16968e
Make debug info and error messages correctly reflect macros and reps

1. Error messages would issue with the line number of %endrep.
2. Debug line information would ignore both macros and reps.
   This is doubly wrong; macros are semantically equivalent to
   inline functions, and it is expected that debuggers trace
   into these functions.

These changes finishes the last parts of moving all responsibility for
the listing enable/disable into the preprocessor, so remove the
way over-complicated macro inhibit facility from the listing module
entirely.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
asm/listing.c
asm/nasm.c
asm/preproc.c
asm/srcfile.c
asm/srcfile.h
include/nasm.h
test/exitrep.asm