This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Allow gdb.Values to become callable if appropriate.


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.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]