aboutsummaryrefslogtreecommitdiff
path: root/gdb/macrotab.c
diff options
context:
space:
mode:
authorJan Vrany <jan.vrany@labware.com>2022-02-01 14:49:30 +0000
committerJan Vrany <jan.vrany@labware.com>2022-02-01 14:49:30 +0000
commit219c04fc3b3f7e7e19fc5f8d47e5036c7a80377f (patch)
tree4f273d75ba24cd29d8f912d2c507504187dbd853 /gdb/macrotab.c
parentfc46f98d5db8229cbb81db9012c514982fa1c979 (diff)
downloadgdb-219c04fc3b3f7e7e19fc5f8d47e5036c7a80377f.zip
gdb-219c04fc3b3f7e7e19fc5f8d47e5036c7a80377f.tar.gz
gdb-219c04fc3b3f7e7e19fc5f8d47e5036c7a80377f.tar.bz2
gdb/python: fix gdb.Objfile.__repr__ () for dynamically compiled code
While experimenting with JIT reader API I realized that calling repr () on objfile created by JIT reader crashes GDB. The problem was that objfpy_repr () called objfile_filename () which returned NULL, causing PyString_FromFormat () to crash. This commit fixes this problem by using objfile_name () instead of objfile_filename (). This also makes consistent with the value of gdb.Objfile.filename variable.
Diffstat (limited to 'gdb/macrotab.c')
0 files changed, 0 insertions, 0 deletions