From 7cee9fbe408af0a2da8e7812c2f86d2b9e4a809e Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Sat, 23 Nov 2019 07:37:26 +0100 Subject: [PATCH 1/2] 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. --- gdb/buildsym.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gdb/buildsym.c b/gdb/buildsym.c index 79f8305..6c14f3f 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) { -- 1.9.1