diff options
Diffstat (limited to 'gdb/cp-abi.h')
-rw-r--r-- | gdb/cp-abi.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/cp-abi.h b/gdb/cp-abi.h index a0efb33..2b1838d 100644 --- a/gdb/cp-abi.h +++ b/gdb/cp-abi.h @@ -172,6 +172,10 @@ void cplus_make_method_ptr (gdb_byte *CONTENTS, CORE_ADDR address, CORE_ADDR cplus_skip_trampoline (struct frame_info *frame, CORE_ADDR stop_pc); +/* Return non-zero if an argument of type TYPE should be passed by reference + instead of value. */ +extern int cp_pass_by_reference (struct type *type); + struct cp_abi_ops { const char *shortname; @@ -195,6 +199,7 @@ struct cp_abi_ops void (*make_method_ptr) (gdb_byte *, CORE_ADDR, int); struct value * (*method_ptr_to_value) (struct value **, struct value *); CORE_ADDR (*skip_trampoline) (struct frame_info *, CORE_ADDR); + int (*pass_by_reference) (struct type *type); }; |