aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2022-12-05 13:51:24 +0100
committerJan Beulich <jbeulich@suse.com>2022-12-05 13:51:24 +0100
commitc62e507e849f3461254a88298aa25c970e4339c8 (patch)
tree49399d3860d7a1f60e59fbecd1cdd48e6abad599
parentfde7a8e4b007a29c7196fd5b017342899c367c00 (diff)
downloadgdb-c62e507e849f3461254a88298aa25c970e4339c8.zip
gdb-c62e507e849f3461254a88298aa25c970e4339c8.tar.gz
gdb-c62e507e849f3461254a88298aa25c970e4339c8.tar.bz2
gas: squash (some) .linefile from listings
Not so long ago we started to insert these artificially when expanding certain macro-like constructs; zap them as cluttering what actually results from user input.
-rw-r--r--gas/read.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gas/read.c b/gas/read.c
index 17971db..4bbc7c9 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -868,7 +868,10 @@ read_a_source_file (const char *name)
/* Find the end of the current expanded macro line. */
s = find_end_of_line (input_line_pointer, flag_m68k_mri);
- if (s != last_eol)
+ if (s != last_eol
+ && !startswith (input_line_pointer,
+ !flag_m68k_mri ? " .linefile "
+ : " linefile "))
{
char *copy;
size_t len;