aboutsummaryrefslogtreecommitdiff
path: root/elfcpp/elfcpp_internal.h
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2024-08-05 16:29:28 +0200
committerJan Beulich <jbeulich@suse.com>2024-08-05 16:29:28 +0200
commit526363dbe4524a5364853276caba3306b813b71c (patch)
treea90258e3555bbc16707dcb0c34a552c2ba3b8789 /elfcpp/elfcpp_internal.h
parent1068b74548858fe9c8ed17f0bba8b136111fbec9 (diff)
downloadgdb-526363dbe4524a5364853276caba3306b813b71c.zip
gdb-526363dbe4524a5364853276caba3306b813b71c.tar.gz
gdb-526363dbe4524a5364853276caba3306b813b71c.tar.bz2
gas: generalize / tighten #APP / #NO_APP recognition
For one '#' may not be in line_comment_chars[] in the first place. Look for just it when it is (these "directives" are akin to C preprocessor directives after all), but accept any other line comment character otherwise (in read.c further requiring a match on the counterpart "directive"). Then, when in the middle of a file, the constructs should be all on their own on a line. There needs to be a newline ahead of them and after them. Finally '\n' may not be the only end-of-line character. Accept any (but not end-of-statement ones) in read.c, while making sure in input-file.c there is one in the first place - merely any kind of whitespace isn't good enough.
Diffstat (limited to 'elfcpp/elfcpp_internal.h')
0 files changed, 0 insertions, 0 deletions