From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9654 invoked by alias); 4 Dec 2001 15:13:10 -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 9393 invoked from network); 4 Dec 2001 15:13:01 -0000 Received: from unknown (HELO cerbere.u-strasbg.fr) (130.79.112.7) by sources.redhat.com with SMTP; 4 Dec 2001 15:13:01 -0000 Received: from laocoon (laocoon.u-strasbg.fr [130.79.112.72]) by cerbere.u-strasbg.fr (8.9.3/8.8.7) with ESMTP id QAA11610 for ; Tue, 4 Dec 2001 16:12:58 +0100 Message-Id: <4.2.0.58.20011204161305.014f35e0@ics.u-strasbg.fr> X-Sender: muller@ics.u-strasbg.fr X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 Date: Tue, 04 Dec 2001 07:13:00 -0000 To: gdb-patches@sources.redhat.com From: Pierre Muller Subject: [RFA] get go32 target to compile again. Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=====================_108217378==_" X-SW-Source: 2001-12/txt/msg00092.txt.bz2 --=====================_108217378==_ Content-Type: text/plain; charset="us-ascii" Content-length: 661 The go32 target does not compile anymore. Eli told me that this is a main trunck only problem and that he was mainly interested in the 5.1 branch for the moment. Thus I tried to fix the compilation error myself. As I succeeded, I send here enclosed the patch. This probably make the regno_mapping.size field not useful anymore, I suppose that we should trust regcache_collect function that it will use the correct size for each register. 2001-12-04 Pierre Muller * go32-nat.c (go32_fetch_registers): Remove call to register_buffer (which is now a static function in regcache.c)and use regcache_collect instead. --=====================_108217378==_ Content-Type: text/plain; charset="us-ascii" Content-Disposition: attachment; filename="go32-nat.diffs" Content-length: 714 Index: go32-nat.c =================================================================== RCS file: /cvs/src/src/gdb/go32-nat.c,v retrieving revision 1.25 diff -u -p -r1.25 go32-nat.c --- go32-nat.c 2001/11/25 11:29:31 1.25 +++ go32-nat.c 2001/12/04 12:31:39 @@ -492,12 +492,8 @@ go32_fetch_registers (int regno) static void store_register (int regno) { - void *rp; - void *v = (void *) register_buffer (regno); - if (regno < FP0_REGNUM) - memcpy ((char *) &a_tss + regno_mapping[regno].tss_ofs, - v, regno_mapping[regno].size); + regcache_collect (regno, (void *) &a_tss + regno_mapping[regno].tss_ofs); else if (regno <= LAST_FPU_CTRL_REGNUM) i387_fill_fsave ((char *)&npx, regno); else --=====================_108217378==_ Content-Type: text/plain; charset="us-ascii" Content-length: 176 Pierre Muller Institut Charles Sadron 6,rue Boussingault F 67083 STRASBOURG CEDEX (France) mailto:muller@ics.u-strasbg.fr Phone : (33)-3-88-41-40-07 Fax : (33)-3-88-41-40-99 --=====================_108217378==_--