[0/2] Fix crash when accessing symbol value from Python API

Message ID cover.1671013621.git.aburgess@redhat.com
Headers
Series Fix crash when accessing symbol value from Python API |

Message

Andrew Burgess Dec. 14, 2022, 10:28 a.m. UTC
  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