Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pierre Muller <muller@cerbere.u-strasbg.fr>
To: gdb-patches@sources.redhat.com
Subject: [RFA] get go32 target to compile again.
Date: Tue, 04 Dec 2001 07:13:00 -0000	[thread overview]
Message-ID: <4.2.0.58.20011204161305.014f35e0@ics.u-strasbg.fr> (raw)

[-- Attachment #1: Type: text/plain, Size: 661 bytes --]



   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  <muller@ics.u-strasbg.fr>

	* 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.


[-- Attachment #2: go32-nat.diffs --]
[-- Type: text/plain, Size: 714 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 176 bytes --]



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

             reply	other threads:[~2001-12-04 15:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-04  7:13 Pierre Muller [this message]
2001-12-04  8:40 ` Andrew Cagney
2001-12-04  9:58   ` Eli Zaretskii
2001-12-05  6:49     ` Pierre Muller
2001-12-05  7:25       ` Andrew Cagney
2001-12-05  9:47       ` Eli Zaretskii
2001-12-06  0:43         ` Pierre Muller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4.2.0.58.20011204161305.014f35e0@ics.u-strasbg.fr \
    --to=muller@cerbere.u-strasbg.fr \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox