From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16665 invoked by alias); 6 Jul 2003 18:59:33 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 16650 invoked from network); 6 Jul 2003 18:59:32 -0000 Received: from unknown (HELO lisa.goe.net) (134.76.166.209) by sources.redhat.com with SMTP; 6 Jul 2003 18:59:32 -0000 Received: from mutter.goe.net (mutter-lisa0.a11.local [192.168.31.26]) by lisa.goe.net (8.12.6/8.12.6) with ESMTP id h66IxUqI026771 for ; Sun, 6 Jul 2003 20:59:31 +0200 Received: from whitebox.a11.local ([192.168.31.90] helo=whitebox.as.local) by mutter.goe.net with esmtp (Exim 4.20) id 19ZEjS-0006Pd-AV for gdb-patches@sources.redhat.com; Sun, 06 Jul 2003 20:59:30 +0200 Received: from whitebox.as.local (localhost [127.0.0.1]) by whitebox.as.local (8.12.7/8.12.7/SuSE Linux 0.6) with ESMTP id h66IxV8P014560 for ; Sun, 6 Jul 2003 20:59:31 +0200 Received: (from andreas@localhost) by whitebox.as.local (8.12.7/8.12.7/Submit) id h66IxUuv014559; Sun, 6 Jul 2003 20:59:30 +0200 X-Authentication-Warning: whitebox.as.local: andreas set sender to schwab@suse.de using -f To: gdb-patches@sources.redhat.com Subject: Fix fill_fpregset in m68klinux-nat.c From: Andreas Schwab X-Yow: HELLO, little boys! Gimme a MINT TULIP!! Let's do the BOSSA NOVA!! Date: Sun, 06 Jul 2003 18:59:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-07/txt/msg00108.txt.bz2 Found this by inspection. Committed in HEAD and 6.0 branch. Andreas. 2003-07-06 Andreas Schwab * m68klinux-nat.c (fill_fpregset): Fix use of loop index. --- gdb/m68klinux-nat.c.~1.18.~ 2003-05-09 10:17:32.000000000 +0200 +++ gdb/m68klinux-nat.c 2003-07-06 20:56:22.000000000 +0200 @@ -380,12 +380,12 @@ fill_fpregset (elf_fpregset_t *fpregsetp /* Fill in the floating-point registers. */ for (i = FP0_REGNUM; i < FP0_REGNUM + 8; i++) if (regno == -1 || regno == i) - regcache_collect (regno, FPREG_ADDR (fpregsetp, regno - FP0_REGNUM)); + regcache_collect (i, FPREG_ADDR (fpregsetp, i - FP0_REGNUM)); /* Fill in the floating-point control registers. */ for (i = M68K_FPC_REGNUM; i <= M68K_FPI_REGNUM; i++) if (regno == -1 || regno == i) - regcache_collect (regno, (char *) &fpregsetp->fpcntl[regno - M68K_FPC_REGNUM]); + regcache_collect (i, (char *) &fpregsetp->fpcntl[i - M68K_FPC_REGNUM]); } #ifdef HAVE_PTRACE_GETREGS