On Tue, Feb 28, 2017 at 3:33 AM, Victor Stinner
Alexander, Skip: Oh, which kind of issues do you have with python-gdb.py? It doesn't work? You are unable to dump some data?
First, I had to rename python-gdb.py to python3.6-gdb.py to make it load.
Then running backtrace gave me a bunch of error messages:
(gdb) bt
#0 builtin_hex (module=, globals=Traceback (most recent call last):
File "/home/a/.virtualenvs/3.6g/bin/python3.6-gdb.py", line 1358, in
to_string
return pyop.get_truncated_repr(MAX_OUTPUT_LEN)
File "/home/a/.virtualenvs/3.6g/bin/python3.6-gdb.py", line 243, in
get_truncated_repr
self.write_repr(out, set())
File "/home/a/.virtualenvs/3.6g/bin/python3.6-gdb.py", line 702, in
write_repr
for pyop_key, pyop_value in self.iteritems():
File "/home/a/.virtualenvs/3.6g/bin/python3.6-gdb.py", line 669, in
iteritems
entries, nentries = self._get_entries(keys)
File "/home/a/.virtualenvs/3.6g/bin/python3.6-gdb.py", line 717, in
_get_entries
except gdb.error:
AttributeError: 'module' object has no attribute 'error'
...
It looks like there is a mismatch between python-gdb.py and the gdb module
that I assume comes with gdb.
$ gdb --version
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-90.el6)
..