diff options
author | Dmitry Neverov <dmitry.neverov@jetbrains.com> | 2024-06-08 10:41:31 +0200 |
---|---|---|
committer | Dmitry Neverov <dmitry.neverov@jetbrains.com> | 2024-08-25 10:43:05 +0200 |
commit | e814012b2b108743e21b7ef2799310a0f4e0a86d (patch) | |
tree | 0c2a47a7f5fb0edab367f223d813540173f9f204 /gdb/btrace.c | |
parent | 80f2ae843a3c0968b34db51e4bb62a4610fa685d (diff) | |
download | gdb-e814012b2b108743e21b7ef2799310a0f4e0a86d.zip gdb-e814012b2b108743e21b7ef2799310a0f4e0a86d.tar.gz gdb-e814012b2b108743e21b7ef2799310a0f4e0a86d.tar.bz2 |
Recognize -2 as a tombstone value in .debug_line
Commit a8caed5d7faa639a1e6769eba551d15d8ddd9510 handled the tombstone
value -1 used by lld (https://reviews.llvm.org/D81784). The
referenced lld commit also uses the tombstone value -2 for
pre-DWARF-v5
(https://github.com/llvm/llvm-project/commit/e618ccbf431f6730edb6d1467a127c3a52fd57f7).
If not handled, -2 breaks the pc step range calculation and triggers
the assertion:
gdb/infrun.c:2794: internal-error: resume_1: Assertion
`pc_in_thread_step_range (pc, tp)' failed.
This commit adds -2 tombstone value and handles it in the same way as -1.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31727
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/btrace.c')
0 files changed, 0 insertions, 0 deletions