-
-
Notifications
You must be signed in to change notification settings - Fork 779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GDB section is not up to date #1056
Comments
Thanks for the detailed report, and sorry for the trouble! I've pinged our GDB subject matter experts to take a look at this and recommend what to do about it. |
Note: maybe turning the filename(s) into links would make it possible to automatically detect such problems in the future (as done in #1003). |
When building CPython with |
Specifically, see the |
I see the docs do currently imply this:
Perhaps it could use a brief note or a more explicit mention, though, if users are getting confused here? |
I wouldn't stand in the way, but personally I'd wait for n>1 before spending time on that. |
The section about configuring gdb to enable python-aware debugging does not seem up to date:
In particular it assumes that there exists a file named
python-gdb.py
at the root of a checkout of the CPython source tree and that it is therefore enough to addadd-auto-load-safe-path /path/to/checkout
to the$HOME/.gdbinit
file to get thepy-bt
command working for instance.However, I cannot locate the
python-gdb.py
file in the cpython repo. Instead I found:so I assume, that the correct way to enable the python specific commands is to do:
or maybe, the
Tools/gdb/libpython.py
file should be symlinked aspython-gdb.py
somewhere and then add theadd-auto-load-safe-path
directive pointing to the parent folder of the symlink for gdb to automatically load it (but apparently this does not seem to work).I am not familiar enough with gdb to know how to fix the documentation.
The text was updated successfully, but these errors were encountered: