This is the mail archive of the archer@sourceware.org mailing list for the Archer 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] |
int func1(int a, int b) { return a+b; }
p/x func1 0x40048 python some_value = gdb.history(0)
python print some_value(10,20) 30
* python/python-value.c (valpy_call): New function. (value_object_type): Register valpy_call as tp_call function.
* gdb.texinfo (Values From Inferior): Document inferior function calls on Python values.
* gdb.python/python-value.c (func1): New function for inferior function call test. (func2): Likewise. * gdb.python/python-prettyprint.c (InferiorCall): New Class for pretty printer test. * gdb.python/python-prettyprint.py (pp_inferiorcall): New printer. (register_pretty_printers): Register pp_inferiorcall. * gdb.python/python-prettyprint.exp (run_lang_tests): Add inferior function call tests. * gdb.python/python-value.exp (test_inferior_function_call): New function.
Attachment:
pyval_inferiorcall.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |