aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2000-08-30 20:35:26 +0000
committerKevin Buettner <kevinb@redhat.com>2000-08-30 20:35:26 +0000
commit3a84337c9959f350e701586fbba11a154aa9bdb5 (patch)
tree8cd2d120472ab96c1d05e58933eb9b4b6be2d0e9
parentc6d805e091fae24d81dd3465d2e6449e0591358c (diff)
downloadgdb-3a84337c9959f350e701586fbba11a154aa9bdb5.zip
gdb-3a84337c9959f350e701586fbba11a154aa9bdb5.tar.gz
gdb-3a84337c9959f350e701586fbba11a154aa9bdb5.tar.bz2
Applied patch from David Edelsohn <dje@watson.ibm.com>.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/rs6000-nat.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c7360e1..c21f391 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2000-08-30 David Edelsohn <dje@watson.ibm.com>
+
+ Patch applied by Kevin Buettner <kevinb@redhat.com>:
+
+ * rs6000-nat.c (xcoff_relocate_symtab): Pass correct size
+ to xrealloc().
+
2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
* valops.c (value_cast): Indentation fix-up.
diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c
index f9a0b14..6fa4560 100644
--- a/gdb/rs6000-nat.c
+++ b/gdb/rs6000-nat.c
@@ -931,7 +931,7 @@ xcoff_relocate_symtab (unsigned int pid)
do
{
size = load_segs * ldisize;
- ldi = (void *) xrealloc (ldi, load_segs * size);
+ ldi = (void *) xrealloc (ldi, size);
#if 0
/* According to my humble theory, AIX has some timing problems and