diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2014-05-14 14:16:22 -0600 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2014-12-12 22:26:41 +0100 |
commit | ed12ef62ccad3b86e25ec3b042d8bf7f15c75909 (patch) | |
tree | 63d07969f0e78ce5a5d07907817f67b9dc73c9a6 /gdb/infcall.h | |
parent | ac04f72bb4396a311ffc445710d4068c13fb0448 (diff) | |
download | gdb-ed12ef62ccad3b86e25ec3b042d8bf7f15c75909.zip gdb-ed12ef62ccad3b86e25ec3b042d8bf7f15c75909.tar.gz gdb-ed12ef62ccad3b86e25ec3b042d8bf7f15c75909.tar.bz2 |
introduce call_function_by_hand_dummy
This provides a variant of call_function_by_hand that allows the dummy
frame destructor to be set. This is used by the compiler code to
manage some resources when calling the gdb-generated inferior
function.
gdb/ChangeLog
2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
* infcall.h (call_function_by_hand_dummy): Declare.
* infcall.c (call_function_by_hand): Use
call_function_by_hand_dummy.
(call_function_by_hand_dummy): Rename from call_function_by_hand.
Add arguments. Register a destructor.
Diffstat (limited to 'gdb/infcall.h')
-rw-r--r-- | gdb/infcall.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/infcall.h b/gdb/infcall.h index c6dcdc3..f895e33 100644 --- a/gdb/infcall.h +++ b/gdb/infcall.h @@ -38,4 +38,15 @@ extern CORE_ADDR find_function_addr (struct value *function, extern struct value *call_function_by_hand (struct value *function, int nargs, struct value **args); +/* Similar to call_function_by_hand and additional call + register_dummy_frame_dtor with DUMMY_DTOR and DUMMY_DTOR_DATA for the + created inferior call dummy frame. */ + +typedef void (call_function_by_hand_dummy_dtor_ftype) (void *data); +extern struct value * + call_function_by_hand_dummy (struct value *function, int nargs, + struct value **args, + call_function_by_hand_dummy_dtor_ftype *dummy_dtor, + void *dummy_dtor_data); + #endif |