[PATCHv3 0/2] Fix for an assertion when unwinding with inline frames

Andrew Burgess
2021-07-20T09:10:43Z

Thanks for the feedback on v2.

In v3 I have:

- Addressed all of Pedro's feedback on the test in patch #1.

- Rewritten how the problem in patch #1 is fixed based on Simon's
exception based approach.

Thanks,
Andrew

---

Andrew Burgess (2):
gdb: prevent an assertion when computing the frame_id for an inline
frame
gdb: remove VALUE_FRAME_ID

gdb/frame.c | 57 ++++---
gdb/frame.h | 4 -
gdb/inline-frame.c | 31 +++-
.../gdb.base/inline-frame-cycle-unwind.c | 58 +++++++
.../gdb.base/inline-frame-cycle-unwind.exp | 145 ++++++++++++++++++
.../gdb.base/inline-frame-cycle-unwind.py | 85 ++++++++++
gdb/valops.c | 17 +-
gdb/value.c | 5 +-
gdb/value.h | 6 -
gdbsupport/common-exceptions.h | 5 +
10 files changed, 373 insertions(+), 40 deletions(-)
create mode 100644 gdb/testsuite/gdb.base/inline-frame-cycle-unwind.c
create mode 100644 gdb/testsuite/gdb.base/inline-frame-cycle-unwind.exp
create mode 100644 gdb/testsuite/gdb.base/inline-frame-cycle-unwind.py

--
2.25.4