aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-08-04 03:17:57 +0000
committerAndrew Cagney <cagney@redhat.com>2000-08-04 03:17:57 +0000
commit0a49d05ee07086ae07448a203fc8e89ea0af89d1 (patch)
tree501dba85b2506732136312e0a21da989f54880f2 /gdb/gdbarch.h
parentf6e6b40ff59365e1c8698764eea9fd1818bdb02a (diff)
downloadgdb-0a49d05ee07086ae07448a203fc8e89ea0af89d1.zip
gdb-0a49d05ee07086ae07448a203fc8e89ea0af89d1.tar.gz
gdb-0a49d05ee07086ae07448a203fc8e89ea0af89d1.tar.bz2
Multi-arch EXTRA_STACK_ALIGNMENT_NEEDED (nee NO_EXTRA_ALIGNMENT_NEEDED).
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r--gdb/gdbarch.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h
index 64b0368..7f713c7 100644
--- a/gdb/gdbarch.h
+++ b/gdb/gdbarch.h
@@ -1114,6 +1114,19 @@ extern void set_gdbarch_stack_align (struct gdbarch *gdbarch, gdbarch_stack_alig
#endif
#endif
+/* Default (value) for non- multi-arch platforms. */
+#if (!GDB_MULTI_ARCH) && !defined (EXTRA_STACK_ALIGNMENT_NEEDED)
+#define EXTRA_STACK_ALIGNMENT_NEEDED (1)
+#endif
+
+extern int gdbarch_extra_stack_alignment_needed (struct gdbarch *gdbarch);
+extern void set_gdbarch_extra_stack_alignment_needed (struct gdbarch *gdbarch, int extra_stack_alignment_needed);
+#if GDB_MULTI_ARCH
+#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) || !defined (EXTRA_STACK_ALIGNMENT_NEEDED)
+#define EXTRA_STACK_ALIGNMENT_NEEDED (gdbarch_extra_stack_alignment_needed (current_gdbarch))
+#endif
+#endif
+
#if defined (REG_STRUCT_HAS_ADDR)
/* Legacy for systems yet to multi-arch REG_STRUCT_HAS_ADDR */
#define REG_STRUCT_HAS_ADDR_P() (1)