From: Michal Ludvig <mludvig@suse.cz>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] Fix x86_64_fill_fxsave()
Date: Fri, 06 Jun 2003 10:07:00 -0000 [thread overview]
Message-ID: <3EE067C5.2000001@suse.cz> (raw)
[-- 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);
}
next reply other threads:[~2003-06-06 10:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-06 10:07 Michal Ludvig [this message]
2003-06-06 10:20 ` Andreas Jaeger
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=3EE067C5.2000001@suse.cz \
--to=mludvig@suse.cz \
--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