summaryrefslogtreecommitdiff
path: root/gdb/arch-utils.h
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2000-04-19 23:22:14 +0000
committerJim Blandy <jimb@codesourcery.com>2000-04-19 23:22:14 +0000
commit676c5f2e4dcfd0048ecbf5bda79ac407f834ac18 (patch)
treee90653b6467fd9582a514720d5ed0a692ad4b04f /gdb/arch-utils.h
parentc3d6b60b406f2e95b99132e46a5436485e37673d (diff)
downloadgdb-676c5f2e4dcfd0048ecbf5bda79ac407f834ac18.tar.gz
Bring RETURN_VALUE_ON_STACK under gdbarch's control.
* gdbarch.sh (RETURN_VALUE_ON_STACK): New entry. * gdbarch.c, gdbarch.h: Regenerated. * arch-utils.c (default_return_value_on_stack): New function. * arch-utils.h (default_return_value_on_stack): New declaration. * values.c (RETURN_VALUE_ON_STACK): Delete default definition.
Diffstat (limited to 'gdb/arch-utils.h')
-rw-r--r--gdb/arch-utils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/arch-utils.h b/gdb/arch-utils.h
index 57da8ceb45f..6b0d2aa2cfd 100644
--- a/gdb/arch-utils.h
+++ b/gdb/arch-utils.h
@@ -39,6 +39,11 @@ extern gdbarch_breakpoint_from_pc_ftype legacy_breakpoint_from_pc;
/* Frameless functions not identifable. */
extern gdbarch_frameless_function_invocation_ftype generic_frameless_function_invocation_not;
+/* Only structures, unions, and arrays are returned using the struct
+ convention. Note that arrays are never passed by value in the C
+ language family, so that case is irrelevant for C. */
+extern gdbarch_return_value_on_stack_ftype generic_return_value_on_stack_not;
+
/* Map onto old REGISTER_NAMES. */
extern char *legacy_register_name (int i);