aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2002-07-31 20:08:20 +0000
committerKevin Buettner <kevinb@redhat.com>2002-07-31 20:08:20 +0000
commitfb850278da0a30d2062054ad896298e1dc553551 (patch)
tree3b0516d12bcc41fc0400693edd9391a5f3f248a4 /gdb
parente3bddbfa39c76adabc3291b8e3467a972333f75f (diff)
downloadgdb-fb850278da0a30d2062054ad896298e1dc553551.zip
gdb-fb850278da0a30d2062054ad896298e1dc553551.tar.gz
gdb-fb850278da0a30d2062054ad896298e1dc553551.tar.bz2
* mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
and save it in a local variable. Use variable in later test.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/mips-tdep.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 729c028..f7c0b21 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2002-07-31 Kevin Buettner <kevinb@redhat.com>
+ * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
+ and save it in a local variable. Use variable in later test.
+
+2002-07-31 Kevin Buettner <kevinb@redhat.com>
+
* mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
test. (Thanks to Daniel Jacobowitz.)
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index 5f2ef95..917efef 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -2339,6 +2339,7 @@ mips_push_arguments (int nargs,
int argnum;
int len = 0;
int stack_offset = 0;
+ struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch);
/* Macros to round N up or down to the next A boundary; A must be
a power of two. */
@@ -2515,7 +2516,7 @@ mips_push_arguments (int nargs,
(len % MIPS_SAVED_REGSIZE != 0));
/* Structures should be aligned to eight bytes (even arg registers)
on MIPS_ABI_O32 if their first member has double precision. */
- if (gdbarch_tdep (current_gdbarch)->mips_abi == MIPS_ABI_O32
+ if (tdep->mips_abi == MIPS_ABI_O32
&& mips_type_needs_double_align (arg_type))
{
if ((argreg & 1))