This is the mail archive of the gdb-patches@sources.redhat.com 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]

[PATCH] rs6000-nat.c ldinfo size fix


	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

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