* [PATCH] Fix x86_64_fill_fxsave()
@ 2003-06-06 10:07 Michal Ludvig
2003-06-06 10:20 ` Andreas Jaeger
0 siblings, 1 reply; 2+ messages in thread
From: Michal Ludvig @ 2003-06-06 10:07 UTC (permalink / raw)
To: gdb-patches
[-- Attachment #1: Type: text/plain, Size: 219 bytes --]
Hi,
attached is a patch for x86_64_fill_fxsave(). Originally it sometimes
passed regno == -1 to regcache_collect which triggered GDB internal
error. Now it passes correct values.
Committed as obvious.
Michal Ludvig
[-- Attachment #2: fxsave-1.diff --]
[-- Type: text/plain, Size: 826 bytes --]
2003-06-06 Michal Ludvig <mludvig@suse.cz>
* x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
to regcache_collect().
Index: x86-64-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/x86-64-tdep.c,v
retrieving revision 1.76
diff -u -p -r1.76 x86-64-tdep.c
--- x86-64-tdep.c 5 Jun 2003 18:54:34 -0000 1.76
+++ x86-64-tdep.c 6 Jun 2003 10:02:42 -0000
@@ -1246,7 +1246,7 @@ x86_64_fill_fxsave (char *fxsave, int re
i387_fill_fxsave (fxsave, regnum);
if (regnum == -1 || regnum == I387_FISEG_REGNUM)
- regcache_collect (regnum, fxsave + 12);
+ regcache_collect (I387_FISEG_REGNUM, fxsave + 12);
if (regnum == -1 || regnum == I387_FOSEG_REGNUM)
- regcache_collect (regnum, fxsave + 20);
+ regcache_collect (I387_FOSEG_REGNUM, fxsave + 20);
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix x86_64_fill_fxsave()
2003-06-06 10:07 [PATCH] Fix x86_64_fill_fxsave() Michal Ludvig
@ 2003-06-06 10:20 ` Andreas Jaeger
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Jaeger @ 2003-06-06 10:20 UTC (permalink / raw)
To: Michal Ludvig; +Cc: gdb-patches
Michal Ludvig <mludvig@suse.cz> writes:
> Hi,
> attached is a patch for x86_64_fill_fxsave(). Originally it sometimes
> passed regno == -1 to regcache_collect which triggered GDB internal
> error. Now it passes correct values.
Yeah, now the testsuite failures are down from 180 a few days ago to
108!
Thanks,
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-06-06 10:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-06 10:07 [PATCH] Fix x86_64_fill_fxsave() Michal Ludvig
2003-06-06 10:20 ` Andreas Jaeger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox