summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-04-23 04:48:08 +0000
committerMike Frysinger <vapier@gentoo.org>2005-04-23 04:48:08 +0000
commit3debc34334bba5c70e5c776be351ebb6afe32a94 (patch)
treef73626903d9ddd2b94f523b09bcd007973b5ff18 /sys-devel
parentmoved to net-ftp (diff)
downloadgentoo-2-3debc34334bba5c70e5c776be351ebb6afe32a94.tar.gz
gentoo-2-3debc34334bba5c70e5c776be351ebb6afe32a94.tar.bz2
gentoo-2-3debc34334bba5c70e5c776be351ebb6afe32a94.zip
fix patch to work with gcc4 #84132 by Mark Loeser
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/gdb/files/gdb-6.3-scanmem.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-devel/gdb/files/gdb-6.3-scanmem.patch b/sys-devel/gdb/files/gdb-6.3-scanmem.patch
index 7770a2143628..851c358c4a9a 100644
--- a/sys-devel/gdb/files/gdb-6.3-scanmem.patch
+++ b/sys-devel/gdb/files/gdb-6.3-scanmem.patch
@@ -122,7 +122,7 @@ diff -Nrup gdb-6.3.orig/gdb/printcmd.c gdb-6.3/gdb/printcmd.c
+ }
+ for (i = 0; i <= (nfetch - memsize); i++, addr++) {
+ int *pint;
-+ (unsigned char *) pint = (unsigned char *) (data + i);
++ pint = (unsigned char *) (data + i);
+ if (*pint == typi) {
+ printf_filtered("pattern match at ");
+ print_address_numeric((addr), 1, gdb_stdout);
@@ -165,7 +165,7 @@ diff -Nrup gdb-6.3.orig/gdb/printcmd.c gdb-6.3/gdb/printcmd.c
+ if (strncmp("0x", pattern, 2) == 0) {
+ sscanf(pattern, "0x%02x", &typc);
+ } else
-+ (int) typc = atoi(pattern);
++ typc = (unsigned char)atoi(pattern);
+ }
+ printf_filtered(">>>%0x2\n", (int) typc);
+ if (nfetch < memsize) {