aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMichal Ludvig <mludvig@suse.cz>2003-06-06 10:04:20 +0000
committerMichal Ludvig <mludvig@suse.cz>2003-06-06 10:04:20 +0000
commit088ce4403fab1dae0153cda4fce9fe871a9b7b90 (patch)
treea7b306d4994489b0deea61ff3218b4c9d6f7f0c7 /gdb
parentc16d554dbf2bcfa4494c518289d25ebc4c0e0b00 (diff)
downloadgdb-088ce4403fab1dae0153cda4fce9fe871a9b7b90.zip
gdb-088ce4403fab1dae0153cda4fce9fe871a9b7b90.tar.gz
gdb-088ce4403fab1dae0153cda4fce9fe871a9b7b90.tar.bz2
2003-06-06 Michal Ludvig <mludvig@suse.cz>
* x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums to regcache_collect().
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/x86-64-tdep.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0601807..30c3a86 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2003-06-06 Michal Ludvig <mludvig@suse.cz>
+
+ * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
+ to regcache_collect().
+
2003-06-05 J. Brobecker <brobecker@gnat.com>
* hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
diff --git a/gdb/x86-64-tdep.c b/gdb/x86-64-tdep.c
index 88575d5..0b2f691 100644
--- a/gdb/x86-64-tdep.c
+++ b/gdb/x86-64-tdep.c
@@ -1246,7 +1246,7 @@ x86_64_fill_fxsave (char *fxsave, int regnum)
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);
}