aboutsummaryrefslogtreecommitdiff
path: root/gdb/common/linux-ptrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/common/linux-ptrace.c')
-rw-r--r--gdb/common/linux-ptrace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/common/linux-ptrace.c b/gdb/common/linux-ptrace.c
index 761ef59..886be80 100644
--- a/gdb/common/linux-ptrace.c
+++ b/gdb/common/linux-ptrace.c
@@ -114,7 +114,8 @@ linux_ptrace_test_ret_to_nx (void)
".globl linux_ptrace_test_ret_to_nx_instr;"
"linux_ptrace_test_ret_to_nx_instr:"
"ret"
- : : "r" (return_address) : "%rsp", "memory");
+ : : "r" ((uint64_t) (uintptr_t) return_address)
+ : "%rsp", "memory");
#else
# error "!__i386__ && !__x86_64__"
#endif