[patch] Allow gdb.Values to become callable if appropriate.
Phil Muldoon
pmuldoon@redhat.com
Wed Jul 28 09:47:00 GMT 2010
On 27/07/10 19:24, Tom Tromey wrote:
> Phil> So committed
> Phil> http://sourceware.org/ml/gdb-cvs/2010-07/msg00156.html
>
> Could you please make a NEWS patch that mentions the new Python
> improvements on the trunk? Thanks.
Here is a patch. What do you think?
Cheers,
Phil
ChangeLog
2010-07-28 Phil Muldoon <pmuldoon@redhat.com>
* NEWS: Document Python value inferior function calls.
--
diff --git a/gdb/NEWS b/gdb/NEWS
index 0aea3fb..73f79a5 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -3,6 +3,15 @@
*** Changes since GDB 7.2
+* Python scripting
+
+ ** GDB values in Python are now callable if the value represents a
+ function. For example, if 'some_value' represents a function that
+ takes two integer parameters and returns a value, you can call
+ that function like so:
+
+ result = some_value (10,20)
+
* GDB now has some support for using labels in the program's source in
linespecs. For instance, you can use "advance label" to continue
execution to a label.
More information about the Gdb-patches
mailing list