summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/gdbserver/ChangeLog.x325
-rw-r--r--gdb/gdbserver/linux-x86-low.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/gdbserver/ChangeLog.x32 b/gdb/gdbserver/ChangeLog.x32
index e5f5d02a292..7aec2ea5c20 100644
--- a/gdb/gdbserver/ChangeLog.x32
+++ b/gdb/gdbserver/ChangeLog.x32
@@ -1,3 +1,8 @@
+2012-02-24 H.J. Lu <hongjiu.lu@intel.com>
+
+ * linux-x86-low.c (x86_get_pc): Use long long for 64bit pc.
+ (x86_set_pc): Likewise.
+
2012-02-13 H.J. Lu <hongjiu.lu@intel.com>
* linux-low.c (linux_qxfer_libraries_svr4): Update call to
diff --git a/gdb/gdbserver/linux-x86-low.c b/gdb/gdbserver/linux-x86-low.c
index 15249ffcc13..f795e6e00fe 100644
--- a/gdb/gdbserver/linux-x86-low.c
+++ b/gdb/gdbserver/linux-x86-low.c
@@ -389,7 +389,7 @@ x86_get_pc (struct regcache *regcache)
if (use_64bit)
{
- unsigned long pc;
+ unsigned long long pc;
collect_register_by_name (regcache, "rip", &pc);
return (CORE_ADDR) pc;
}
@@ -408,7 +408,7 @@ x86_set_pc (struct regcache *regcache, CORE_ADDR pc)
if (use_64bit)
{
- unsigned long newpc = pc;
+ unsigned long long newpc = pc;
supply_register_by_name (regcache, "rip", &newpc);
}
else