This is the mail archive of the gdb-prs@sourceware.org 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]
Other format: [Raw text]

Re: build/2404: gdb 6.7.1 fails to build with gcc-4.2.2 on aix 5.2


The following reply was made to PR build/2404; it has been noted by GNATS.

From: Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de>
To: gdb-patches@sourceware.org,  gdb-gnats@sources.redhat.com
Cc: tromey@redhat.com
Subject: Re: build/2404: gdb 6.7.1 fails to build with gcc-4.2.2 on aix 5.2
Date: Tue, 11 Mar 2008 12:03:23 +0100

 > tromey@redhat.com schrieb:
 >> Synopsis: gdb 6.7.1 fails to build with gcc-4.2.2 on aix 5.2
 >>
 >> State-Changed-From-To: open->feedback
 >> State-Changed-By: tromey
 >> State-Changed-When: Mon Mar 10 19:59:27 2008
 >> State-Changed-Why:
 >>     The code looks a bit different now, though perhaps not
 >>     different enough.
 >>     Could you send this patch to gdb-patches, as a unidiff
 >>     or a context diff?  that way someone will see it and
 >>     respond.  Thanks.
 >>
 >> http://sourceware.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=2404
 Here it comes:
 
 --- /n/tmp/gdb-6.7.1/gdb/aix-thread.c    2007-08-23 19:08:25.000000000 +0200
 +++ aix-thread.c    2008-01-15 13:59:06.000000000 +0100
 @@ -363,7 +363,8 @@
    /* Floating-point registers.  */
    if (flags & PTHDB_FLAG_FPRS)
      {
 -      if (!ptrace32 (PTT_READ_FPRS, tid, (int *) fprs, 0, NULL))
 +      int *pfprs = (void *)fprs;
 +      if (!ptrace32 (PTT_READ_FPRS, tid, pfprs, 0, NULL))
      memset (fprs, 0, sizeof (fprs));
              memcpy (context->fpr, fprs, sizeof(fprs));
      }
 @@ -434,7 +435,7 @@
      }
        else
      {
 -      ptrace32 (PTT_WRITE_SPRS, tid, (int *) &context->msr, 0, NULL);
 +      ptrace32 (PTT_WRITE_SPRS, tid, (void *) &context->msr, 0, NULL);
      }
      }
    return 0;
 @@ -984,10 +985,10 @@
  
        if (arch64)
      ptrace64aix (PTT_CONTINUE, tid[0], 1,
 -             target_signal_to_host (sig), (int *) tid);
 +             target_signal_to_host (sig), (void *) tid);
        else
      ptrace32 (PTT_CONTINUE, tid[0], (int *) 1,
 -          target_signal_to_host (sig), (int *) tid);
 +          target_signal_to_host (sig), (void *) tid);
      }
  }
  
 @@ -1225,7 +1226,7 @@
            || (regno >= tdep->ppc_fp0_regnum
                && regno < tdep->ppc_fp0_regnum + ppc_num_fprs)))
      {
 -      if (!ptrace32 (PTT_READ_FPRS, tid, (int *) fprs, 0, NULL))
 +      if (!ptrace32 (PTT_READ_FPRS, tid, (void *) fprs, 0, NULL))
      memset (fprs, 0, sizeof (fprs));
        supply_fprs (regcache, fprs);
      }
 @@ -1539,9 +1540,9 @@
                && regno < tdep->ppc_fp0_regnum + ppc_num_fprs)))
      {
        /* Pre-fetch: some regs may not be in the cache.  */
 -      ptrace32 (PTT_READ_FPRS, tid, (int *) fprs, 0, NULL);
 +      ptrace32 (PTT_READ_FPRS, tid, (void *) fprs, 0, NULL);
        fill_fprs (regcache, fprs);
 -      ptrace32 (PTT_WRITE_FPRS, tid, (int *) fprs, 0, NULL);
 +      ptrace32 (PTT_WRITE_FPRS, tid, (void *) fprs, 0, NULL);
      }
  
    /* Special-purpose registers.  */
 
 
 


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