On Thu, 2017-02-02 at 21:55 +0000, Sérgio Basto wrote:
I'd like use this gdb python  , but can't put it work on
last problems mentioned are about Fedora 13 , can someone help me on
pointing how I could use New_gdb_commands  ?
To use command like 'py-bt', 'py-list', etc. with GDB and Python 3, do
1) Install GDB and python3-debuginfo:
sudo dnf install gdb
sudo dnf debuginfo-install python3-debuginfo
2) Run your Python 3 program and find out its PID
3) Attach to your Python 3 program with GDB:
gdb python3 <pid-of-your-program>
NOTE: You'll probably get the following warning the first time:
warning: the SELinux boolean 'deny_ptrace' is enabled, you can disable
this process attach protection by: (gdb) shell sudo setsebool
ptrace: Permission denied.
Execute the suggested command to disable 'deny_ptrace'.
4) Use commands described in  or https://docs.python.org/devguide/gd