Fix an undefined behavior in record_line
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Thu, 12 Mar 2020 10:52:34 +0000 (11:52 +0100)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Wed, 1 Apr 2020 21:41:12 +0000 (23:41 +0200)
commit64dc2d4bd24ff7119c913fff91184414f09b8042
tree45b015bc0652241880bea0b7200d89aba6900f74
parentbbe3dc410bd5c29955ef3409f9fee9e7c73b2c49
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.

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