[RFA] get go32 target to compile again.
Pierre Muller
muller@cerbere.u-strasbg.fr
Tue Dec 4 07:13:00 GMT 2001
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.
-------------- next part --------------
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
-------------- next part --------------
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
More information about the Gdb-patches
mailing list