This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] gdb: workaround sparc memcpy fortify error


> Joel> ENOPATCH?
> 
> It was a ping for http://permalink.gmane.org/gmane.comp.gdb.patches/56350

Aha - Mark Kettenis seemed to be OK with this, since he's the one
who suggested it. Mark, is this patch still OK?

2010-03-19  Mike Frysinger  <vapier <at> gentoo.org>

        * gdb/sparc-tdep.c (sparc32_store_return_value): Change gdb_assert ()
        to len <= 8.

gdb/sparc-tdep.c |    2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c
index f129a55..ab45ddd 100644
--- a/gdb/sparc-tdep.c
+++ b/gdb/sparc-tdep.c
@@ -1062,7 +1062,7 @@ sparc32_extract_return_value (struct type *type, struct regcache *regcache,
   gdb_byte buf[8];

   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))
     {

-- 
Joel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]