diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-02-24 16:08:47 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-02-24 16:08:47 -0800 |
commit | 7cdaee57afa442cf46aa59456c642ec07496b170 (patch) | |
tree | 42a5ef4e35d89aa1122cf3c81352b4fc4ebd76db | |
parent | b19780a7f7a5a2c446847b702ecc093a7334e08a (diff) | |
download | gdb-hjl/x32/gdb_7_4-branch.tar.gz |
Use Use long long for 64bit pchjl/x32/gdb_7_4-branch
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.
-rw-r--r-- | gdb/gdbserver/ChangeLog.x32 | 5 | ||||
-rw-r--r-- | gdb/gdbserver/linux-x86-low.c | 4 |
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 |