public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix crash when accessing symbol value from Python API
@ 2022-12-14 10:28 Andrew Burgess
  2022-12-14 10:28 ` [PATCH 1/2] gdb: use gdb_assert not internal_error Andrew Burgess
  2022-12-14 10:28 ` [PATCH 2/2] gdb: fix crash when getting the value of a label symbol Andrew Burgess
  0 siblings, 2 replies; 8+ messages in thread
From: Andrew Burgess @ 2022-12-14 10:28 UTC (permalink / raw)
  To: gdb-patches; +Cc: Andrew Burgess

Found a case where using Symbol.value method from the Python API can
cause GDB to crash.

---

Andrew Burgess (2):
  gdb: use gdb_assert not internal_error
  gdb: fix crash when getting the value of a label symbol

 gdb/findvar.c                                 | 18 +++------
 .../gdb.python/py-label-symbol-value.c        | 38 +++++++++++++++++++
 .../gdb.python/py-label-symbol-value.exp      | 38 +++++++++++++++++++
 3 files changed, 82 insertions(+), 12 deletions(-)
 create mode 100644 gdb/testsuite/gdb.python/py-label-symbol-value.c
 create mode 100644 gdb/testsuite/gdb.python/py-label-symbol-value.exp


base-commit: fa59ab98685e4b5431d2be423f449df5069a454e
-- 
2.25.4


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-12-15 19:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-14 10:28 [PATCH 0/2] Fix crash when accessing symbol value from Python API Andrew Burgess
2022-12-14 10:28 ` [PATCH 1/2] gdb: use gdb_assert not internal_error Andrew Burgess
2022-12-14 16:07   ` Tom Tromey
2022-12-15 13:10     ` Andrew Burgess
2022-12-14 10:28 ` [PATCH 2/2] gdb: fix crash when getting the value of a label symbol Andrew Burgess
2022-12-14 16:17   ` Tom Tromey
2022-12-15 13:25     ` Andrew Burgess
2022-12-15 19:28       ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).