New submission from Alexander Belopolsky:

Currently "help user-defined" lists commands defined in Misc/gdbinit without 
explanations


(gdb) help user-defined
User-defined commands.
The commands in this class are those defined by the user.
Use the "define" command to define a command.

List of commands:

lineno -- User-defined
printframe -- User-defined
pu -- User-defined
pyframe -- User-defined
pyframev -- User-defined
pyg -- User-defined

With attached patch, you get


List of commands:

lineno -- User-defined
printframe -- User-defined
pu -- Generally useful macro to print a Unicode string
pyframe -- User-defined
pyframev -- Print the current frame - verbose
pyg -- Prints a representation of the object to stderr
pylocals -- Print the local variables of the current frame
pyo -- Prints a representation of the object to stderr
pystack -- Print the entire Python call stack
pystackv -- Print the entire Python call stack - verbose mode

This should be further polished, but I wanted to hear from others before 
spending more effort.

----------
components: Demos and Tools
files: gdbinit.diff
keywords: patch
messages: 169424
nosy: belopolsky
priority: normal
severity: normal
status: open
title: Misc/gdbinit: Expose command documentation to gdb help
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file27050/gdbinit.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15817>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to