diff options
author | Jim Blandy <jimb@codesourcery.com> | 2000-04-19 23:22:14 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2000-04-19 23:22:14 +0000 |
commit | 676c5f2e4dcfd0048ecbf5bda79ac407f834ac18 (patch) | |
tree | e90653b6467fd9582a514720d5ed0a692ad4b04f /gdb/arch-utils.h | |
parent | c3d6b60b406f2e95b99132e46a5436485e37673d (diff) | |
download | gdb-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.h | 5 |
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); |