diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2019-11-23 07:37:26 +0100 |
---|---|---|
committer | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2019-12-29 22:34:29 +0100 |
commit | c296cbe681815593eb57033368ac1b20b7a67252 (patch) | |
tree | 4d91faba1b28d082650db522f1f6a040343685fb /gdb/buildsym.c | |
parent | 4383e1fc3b3269413423c271cb362431b2b70398 (diff) | |
download | gdb-c296cbe681815593eb57033368ac1b20b7a67252.zip gdb-c296cbe681815593eb57033368ac1b20b7a67252.tar.gz gdb-c296cbe681815593eb57033368ac1b20b7a67252.tar.bz2 |
Fix setting breakpoints or stepping on line 65535
This removes code that was present from the very first git revisison
7b4ac7e1ed2c4616bce56d1760807798be87ac9e from 1988. It was in the
gdb/dbxread.c at the time (and makes more sense for dbx line info format
since line numbers are 16-bit entities in that debug format and debugging
files with more than 65535 lines would not work anyway) but moved from
there to gdb/buildsym.c which is used for dwarf line info as well, and
excluding an arbitrary line number does certainly not make sense nowadays.
Add a test case for line 65535
gdb:
2019-12-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
* buildsym.c (buildsym_compunit::record_line): Do no longer ignore
line 65535.
gdb/testsuite:
2019-12-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
* gdb.base/line65535.exp: New file.
* gdb.base/line65535.c: New file.
Diffstat (limited to 'gdb/buildsym.c')
-rw-r--r-- | gdb/buildsym.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c index df74508..1102933 100644 --- a/gdb/buildsym.c +++ b/gdb/buildsym.c @@ -670,12 +670,6 @@ buildsym_compunit::record_line (struct subfile *subfile, int line, { struct linetable_entry *e; - /* Ignore the dummy line number in libg.o */ - if (line == 0xffff) - { - return; - } - /* Make sure line vector exists and is big enough. */ if (!subfile->line_vector) { |