Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] get go32 target to compile again.
@ 2001-12-04  7:13 Pierre Muller
  2001-12-04  8:40 ` Andrew Cagney
  0 siblings, 1 reply; 7+ messages in thread
From: Pierre Muller @ 2001-12-04  7:13 UTC (permalink / raw)
  To: gdb-patches

[-- 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-12-06  8:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-04  7:13 [RFA] get go32 target to compile again Pierre Muller
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox