Partially revert my UB fix in record_line
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Thu, 9 Apr 2020 01:18:23 +0000 (03:18 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Thu, 9 Apr 2020 15:06:58 +0000 (17:06 +0200)
commita25198bba24b3443d2e3d72300c3308ccc742325
tree6d9c12e9a2fea6098b4badd8fba1c37d05bd15ae
parent206c98a6503de9c78550b7e503526f59b5b2f491
Partially revert my UB fix in record_line

This reverts the following commit partially:

commit 64dc2d4bd24ff7119c913fff91184414f09b8042
Author: Bernd Edlinger <bernd.edlinger@hotmail.de>
Date:   Thu Mar 12 11:52:34 2020 +0100

    Fix an undefined behavior in record_line

    Additionally do not completely remove symbols
    at the same PC than the end marker, instead
    make them non-is-stmt breakpoints.

We keep the undefined behavoir fix,
but have to restore the original behavior
regarding deletion of the line entries.

2020-04-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>

revert partially:
2020-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * buildsym.c (record_line): Fix undefined behavior and preserve
        lines at eof.
gdb/ChangeLog
gdb/buildsym.c