diff --git a/gdb-6.8-sparc64-silence-memcpy-check.patch b/gdb-6.8-sparc64-silence-memcpy-check.patch new file mode 100644 index 0000000..a9d30ce --- /dev/null +++ b/gdb-6.8-sparc64-silence-memcpy-check.patch @@ -0,0 +1,11 @@ +diff -up gdb-6.8/gdb/sparc-tdep.c.BAD gdb-6.8/gdb/sparc-tdep.c +--- gdb-6.8/gdb/sparc-tdep.c.BAD 2008-05-15 16:12:58.000000000 -0500 ++++ gdb-6.8/gdb/sparc-tdep.c 2008-05-15 16:13:41.000000000 -0500 +@@ -1122,6 +1122,7 @@ sparc32_store_return_value (struct type + if (sparc_floating_p (type)) + { + /* Floating return values. */ ++ len = (len <= 8) ? len : 8; + memcpy (buf, valbuf, len); + regcache_cooked_write (regcache, SPARC_F0_REGNUM, buf); + if (len > 4) diff --git a/gdb.spec b/gdb.spec index b377a17..7707955 100644 --- a/gdb.spec +++ b/gdb.spec @@ -13,7 +13,7 @@ Version: 6.8 # The release always contains a leading reserved number, start it at 1. # `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing. -Release: 6%{?_with_upstream:.upstream}%{?dist} +Release: 7%{?_with_upstream:.upstream}%{?dist} License: GPLv3+ Group: Development/Debuggers @@ -352,6 +352,9 @@ Patch315: gdb-6.8-bz442765-threaded-exec-test.patch # Enable program counter for processing PTID to PC (sparc/sparc64) Patch316: gdb-6.8-sparc-fix.patch +# Silence memcpy check which returns false positive (sparc64) +Patch317: gdb-6.8-sparc64-silence-memcpy-check.patch + BuildRequires: ncurses-devel glibc-devel gcc make gzip texinfo dejagnu gettext BuildRequires: flex bison sharutils expat-devel Requires: readline @@ -528,6 +531,7 @@ rm -f gdb/jv-exp.c gdb/m2-exp.c gdb/objc-exp.c gdb/p-exp.c %patch314 -p1 %patch315 -p1 %patch316 -p1 +%patch317 -p1 %patch124 -p1 find -name "*.orig" | xargs rm -f @@ -777,6 +781,9 @@ fi %endif %changelog +* Thu May 15 2008 Tom "spot" Callaway - 6.8-7 +- Silence memcpy check which returns false positive (sparc64) + * Thu May 15 2008 Tom "spot" Callaway - 6.8-6 - patch from DaveM for sparc/sparc64 - touch up spec to enable sparcv9/sparc64