From f3d6df6d3a378d6d5acb26895f658d54db151919 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Fri, 23 Sep 2011 07:27:19 +0000 Subject: [PATCH] gdb/ * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer to get address. --- gdb/ChangeLog | 5 +++++ gdb/i386-linux-nat.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4dbb6c1c534..677459cb97e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-09-23 Yao Qi + + * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer + to get address. + 2011-09-22 Tristan Gingold * fork-child.c (fork_inferior): Add exec_fun parameter. diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c index e32a119b1ad..62579310201 100644 --- a/gdb/i386-linux-nat.c +++ b/gdb/i386-linux-nat.c @@ -893,7 +893,8 @@ i386_linux_resume (struct target_ops *ops, regcache_cooked_read_unsigned (regcache, I386_ESP_REGNUM, &sp); if (syscall == SYS_rt_sigreturn) - addr = read_memory_integer (sp + 8, 4, byte_order) + 20; + addr = read_memory_unsigned_integer (sp + 8, 4, byte_order) + + 20; else addr = sp; -- 2.30.2