diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-11-07 22:42:29 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-11-07 22:42:29 +0000 |
commit | a4635519192f723ab84bfa4d1cc4461b5e7c1aac (patch) | |
tree | 433daa86366cd5d7ab90e01ba73d3ba68c289f94 /gdb/gdbarch.h | |
parent | fe5a3d680598d91f6bebd57d0a3f646d0e5e082b (diff) | |
download | gdb-a4635519192f723ab84bfa4d1cc4461b5e7c1aac.tar.gz |
gdbarch.sh provides default for USE_STRUCT_CONVENTION.
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r-- | gdb/gdbarch.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index 2ed6b2143ea..c639476aa76 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -1442,6 +1442,11 @@ extern void set_gdbarch_extract_struct_value_address (struct gdbarch *gdbarch, g #endif #endif +/* Default (function) for non- multi-arch platforms. */ +#if (!GDB_MULTI_ARCH) && !defined (USE_STRUCT_CONVENTION) +#define USE_STRUCT_CONVENTION(gcc_p, value_type) (generic_use_struct_convention (gcc_p, value_type)) +#endif + typedef int (gdbarch_use_struct_convention_ftype) (int gcc_p, struct type *value_type); extern int gdbarch_use_struct_convention (struct gdbarch *gdbarch, int gcc_p, struct type *value_type); extern void set_gdbarch_use_struct_convention (struct gdbarch *gdbarch, gdbarch_use_struct_convention_ftype *use_struct_convention); |