diff options
author | Jan Beulich <jbeulich@suse.com> | 2022-12-05 13:50:27 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2022-12-05 13:50:27 +0100 |
commit | fde7a8e4b007a29c7196fd5b017342899c367c00 (patch) | |
tree | 991c347b430ab11381a5655fd0059a98c900b3cd /bfd/ihex.c | |
parent | 07aeb917c4d379e8fca611aa7346e977a4061e17 (diff) | |
download | gdb-fde7a8e4b007a29c7196fd5b017342899c367c00.zip gdb-fde7a8e4b007a29c7196fd5b017342899c367c00.tar.gz gdb-fde7a8e4b007a29c7196fd5b017342899c367c00.tar.bz2 |
gas: avoid inserting extra newline in buffer_and_nest()
In "-alm" listings I've noticed an odd blank line following the inserted
.linefile one. This results from the explicit NL inserted being
redundant with the one left in place from the original input line by all
respective callers. Note that we need to compensate for the removed line
by bumping the directive argument (which in turn is decremented again in
s_linefile() before calling new_logical_line_flags(), and I have to
confess that when putting together the original change I was a little
puzzled by the imbalance of increments/decrements, but then I forgot to
actually go look for the cause).
While there also switch to sb_add_string() instead of effectively open-
coding it to some degree.
Diffstat (limited to 'bfd/ihex.c')
0 files changed, 0 insertions, 0 deletions