aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch-utils.h
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2003-06-12 23:25:37 +0000
committerJim Blandy <jimb@codesourcery.com>2003-06-12 23:25:37 +0000
commit1fd355687c42efaded7a5bd426dc0e86dfc2883a (patch)
tree82fca4f178371b02cb042ed85df539436feafdb7 /gdb/arch-utils.h
parente14e6e9cddbfb695027716b87c54ef533da2818b (diff)
downloadgdb-1fd355687c42efaded7a5bd426dc0e86dfc2883a.zip
gdb-1fd355687c42efaded7a5bd426dc0e86dfc2883a.tar.gz
gdb-1fd355687c42efaded7a5bd426dc0e86dfc2883a.tar.bz2
* arch-utils.c (always_use_struct_convention): New function.
* arch-utils.h (always_use_struct_convention): New prototype. * alpha-tdep.c (alpha_use_struct_convention): Delete. (alpha_gdbarch_init): Register always_use_struct_convention, instead of alpha_use_struct_convention. * cris-tdep.c (cris_use_struct_convention): Delete. (cris_gdbarch_init): Register always_use_struct_convention, instead of cris_use_struct_convention. * frv-tdep.c (frv_use_struct_convention): Delete. (frv_gdbarch_init): Register always_use_struct_convention, instead of frv_use_struct_convention. * h8300-tdep.c (h8300_use_struct_convention): Delete. (h8300_gdbarch_init): Register always_use_struct_convention, instead of h8300_use_struct_convention. * mips_o32-tdep.c (mips_o32_use_struct_convention): Delete. (mips_o32_gdbarch_init): Register always_use_struct_convention, instead of mips_o32_use_struct_convention.
Diffstat (limited to 'gdb/arch-utils.h')
-rw-r--r--gdb/arch-utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/arch-utils.h b/gdb/arch-utils.h
index b7b9272..8fce252 100644
--- a/gdb/arch-utils.h
+++ b/gdb/arch-utils.h
@@ -43,6 +43,10 @@ extern gdbarch_extract_return_value_ftype legacy_extract_return_value;
/* Implementation of store return value that grubs the register cache. */
extern gdbarch_store_return_value_ftype legacy_store_return_value;
+/* To return any structure or union type by value, store it at the
+ address passed as an invisible first argument to the function. */
+extern gdbarch_use_struct_convention_ftype always_use_struct_convention;
+
/* Frameless functions not identifable. */
extern gdbarch_frameless_function_invocation_ftype generic_frameless_function_invocation_not;