On Fedora 28, gdb fails to read (some?) debug symbols:
"Dwarf Error: could not find partial DIE containing offset 0x316 [in module /usr/lib/debug/usr/bin/python3.6-3.6.6-1.fc28.x86_64.debug]"
https://bugzilla.redhat.com/show_bug.cgi?id=1613614
In this case, the "py-bt" command of python-gdb.py fails with a TypeError:
(gdb) py-bt
Traceback (most recent call first):
<unknown at remote 0x7ffff7e5f7e0>
Python Exception <class 'TypeError'> 'FakeRepr' object is not subscriptable:
Error occurred in Python command: 'FakeRepr' object is not subscriptable
python-gdb.py shouldn't fail on such case, but handle the error.
Attached PR fix this issue. |