aboutsummaryrefslogtreecommitdiff
path: root/gdb/config
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-08-07 16:05:19 +0000
committerJeff Law <law@redhat.com>1996-08-07 16:05:19 +0000
commit0d43c8e71131733b3e5d50df8454b2fbd7ac0c76 (patch)
tree06cf45175c5cd1e0e7543f94bd91ec7e732cd598 /gdb/config
parent484c464505f3200bb949b448dcb71963538da9bb (diff)
downloadgdb-0d43c8e71131733b3e5d50df8454b2fbd7ac0c76.zip
gdb-0d43c8e71131733b3e5d50df8454b2fbd7ac0c76.tar.gz
gdb-0d43c8e71131733b3e5d50df8454b2fbd7ac0c76.tar.bz2
* valops.c (call_function_by_hand): Handle aligning stacks that
grow up correctly. * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Define. (STACK_ALIGN): Define. * hppa-tdep.c (hppa_alignof): Don't demand a minumim two byte alignment on structs/unions. Fixing assorted structure passing/return problems reported by the net.
Diffstat (limited to 'gdb/config')
-rw-r--r--gdb/config/pa/tm-hppa.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/config/pa/tm-hppa.h b/gdb/config/pa/tm-hppa.h
index 5220c64..61df3c5 100644
--- a/gdb/config/pa/tm-hppa.h
+++ b/gdb/config/pa/tm-hppa.h
@@ -63,6 +63,8 @@ struct inferior_status;
#define REG_STRUCT_HAS_ADDR(gcc_p,type) \
(TYPE_LENGTH (type) > 8)
+#define USE_STRUCT_CONVENTION(gcc_p,type) (TYPE_LENGTH (type) > 8)
+
/* Offset from address of function to start of its code.
Zero on most machines. */
@@ -664,3 +666,5 @@ extern int hpread_adjust_stack_address PARAMS ((CORE_ADDR));
probably much more common. (FIXME). */
#define COERCE_FLOAT_TO_DOUBLE (current_language -> la_language == language_c)
+
+#define STACK_ALIGN(ADDR) (((ADDR) + 7) & -8)