summaryrefslogtreecommitdiff
path: root/gdb/gdbserver/linux-x86-low.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdbserver/linux-x86-low.c')
-rw-r--r--gdb/gdbserver/linux-x86-low.c4
1 files changed, 2 insertions, 2 deletions
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