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 | 56f127518feeed8b7576b176a0d3b0f4ff3d7ca1 (patch) | |
tree | 663acee6e62f4055401bebb5161a7ef16162a187 /gdb/gdbarch.h | |
parent | 2b0f7ef92ee30445837f86ca0149ec6c6c01dc93 (diff) | |
download | gdb-56f127518feeed8b7576b176a0d3b0f4ff3d7ca1.zip gdb-56f127518feeed8b7576b176a0d3b0f4ff3d7ca1.tar.gz gdb-56f127518feeed8b7576b176a0d3b0f4ff3d7ca1.tar.bz2 |
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 2ed6b21..c639476 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); |