Recognize -1 as a tombstone value in .debug_line
authorFangrui Song <maskray@google.com>
Wed, 1 Jul 2020 19:31:44 +0000 (12:31 -0700)
committerFangrui Song <maskray@google.com>
Wed, 1 Jul 2020 19:31:44 +0000 (12:31 -0700)
commita8caed5d7faa639a1e6769eba551d15d8ddd9510
tree650bccaa0261f07d7b0d8778376817bb85996fe9
parent33d1369f183f1c276e3f0f52b5573fb2f5843b1c
Recognize -1 as a tombstone value in .debug_line

LLD from 11 onwards (https://reviews.llvm.org/D81784) uses -1 to
represent a relocation in .debug_line referencing a discarded symbol.
Recognize -1 to fix gdb.base/break-on-linker-gcd-function.exp when the
linker is a newer LLD.

gdb/ChangeLog:

* dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
gdb/ChangeLog
gdb/dwarf2/read.c