aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/sparc-tdep.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0ea0d8a..2ba55a2 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2010-04-21 Mike Frysinger <vapier@gentoo.org>
+
+ * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
+ for len <= 8.
+
2010-04-21 Chris Moller <cmoller@redhat.com>
PR 9167
diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c
index f129a55..a2bae9f 100644
--- a/gdb/sparc-tdep.c
+++ b/gdb/sparc-tdep.c
@@ -1105,6 +1105,7 @@ sparc32_store_return_value (struct type *type, struct regcache *regcache,
gdb_assert (!sparc_structure_or_union_p (type));
gdb_assert (!(sparc_floating_p (type) && len == 16));
+ gdb_assert (len <= 8);
if (sparc_floating_p (type))
{