diff options
author | Phil Muldoon <pmuldoon@redhat.com> | 2010-07-27 12:40:42 +0000 |
---|---|---|
committer | Phil Muldoon <pmuldoon@redhat.com> | 2010-07-27 12:40:42 +0000 |
commit | 5374244e7a2a4849211f94c40762cde79ba1e08e (patch) | |
tree | 1ee569b5fced183515e76d8fd490c830f824b14a /gdb/doc | |
parent | 9691462bab74c130fe4fdfd5b755b1bd89e1444c (diff) | |
download | gdb-5374244e7a2a4849211f94c40762cde79ba1e08e.zip gdb-5374244e7a2a4849211f94c40762cde79ba1e08e.tar.gz gdb-5374244e7a2a4849211f94c40762cde79ba1e08e.tar.bz2 |
2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
* python/py-value.c (valpy_call): New Function.
2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
* gdb.python/py-value.exp (test_inferior_function_call): New function.
* gdb.python/py-value.c (func1): New function.
(func2): Likewise.
2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
* gdb.texinfo (Values From Inferior): Add value inferior function
call description.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 16 |
2 files changed, 21 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 0f52851..8c249ef 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2010-07-27 Phil Muldoon <pmuldoon@redhat.com> + + * gdb.texinfo (Values From Inferior): Add value inferior function + call description. + 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com> * gdb.texinfo (Active Targets): Fix wrong comma placement. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index be6cd3d..fa583aa 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -20608,6 +20608,22 @@ bar = some_val['foo'] Again, @code{bar} will also be a @code{gdb.Value} object. +A @code{gdb.Value} that represents a function can be executed via +inferior function call. Any arguments provided to the call must match +the function's prototype, and must be provided in the order specified +by that prototype. + +For example, @code{some_val} is a @code{gdb.Value} instance +representing a function that takes two integers as arguments. To +execute this function, call it like so: + +@smallexample +result = some_val (10,20) +@end smallexample + +Any values returned from a function call will be stored as a +@code{gdb.Value}. + The following attributes are provided: @table @code |