PR python/14802:

* gdb.texinfo (Functions In Python): Add example.
This commit is contained in:
Tom Tromey 2012-11-05 19:36:38 +00:00
parent 68c9da300b
commit dc93922978
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-11-05 Tom Tromey <tromey@redhat.com>
PR python/14802:
* gdb.texinfo (Functions In Python): Add example.
2012-11-03 Yao Qi <yao@codesourcery.com>
* observer.texi (GDB Observers): Remove observer

View File

@ -24715,6 +24715,13 @@ registration of the function with @value{GDBN}. Depending on how the
Python code is read into @value{GDBN}, you may need to import the
@code{gdb} module explicitly.
Now you can use the function in an expression:
@smallexample
(gdb) print $greet("Bob")
$1 = "Hello, Bob!"
@end smallexample
@node Progspaces In Python
@subsubsection Program Spaces In Python