Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos
Commits
20b896ce
Commit
20b896ce
authored
Jan 03, 2016
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handy alias to print python-level backtrace
Works even if there is no debuginfo for cpython.
parent
b85f9271
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
dot/gdbinit
dot/gdbinit
+8
-0
No files found.
dot/gdbinit
0 → 100644
View file @
20b896ce
# print python-level backtrace to program stdout from-under gdb
define xpybt
set $_gstate = PyGILState_Ensure()
set $_unused_int = PyRun_SimpleString("import traceback; traceback.print_stack()")
set $_unused_void = PyGILState_Release($_gstate)
end
# vim: ft=gdb
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment