This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] rs6000-nat.c ldinfo size fix
- To: Nick Duffek <nsd at redhat dot com>
- Subject: [PATCH] rs6000-nat.c ldinfo size fix
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Mon, 28 Aug 2000 20:34:45 -0400
- cc: gdb-patches at sourceware dot cygnus dot com
It looks like the size of the allocated ldinfo buffer is being
multiplied by load_segs twice although the ptrace() size argument is
correct.
David
Index: rs6000-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/rs6000-nat.c,v
retrieving revision 1.9
diff -c -p -r1.9 rs6000-nat.c
*** rs6000-nat.c 2000/08/27 22:30:29 1.9
--- rs6000-nat.c 2000/08/29 00:19:52
*************** xcoff_relocate_symtab (unsigned int pid)
*** 931,937 ****
do
{
size = load_segs * ldisize;
! ldi = (void *) xrealloc (ldi, load_segs * size);
#if 0
/* According to my humble theory, AIX has some timing problems and
--- 931,937 ----
do
{
size = load_segs * ldisize;
! ldi = (void *) xrealloc (ldi, size);
#if 0
/* According to my humble theory, AIX has some timing problems and