* i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
	to get address.
This commit is contained in:
Yao Qi 2011-09-23 07:27:19 +00:00
parent 6b4a09fc6f
commit f3d6df6d3a
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-09-23 Yao Qi <yao@codesourcery.com>
* i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
to get address.
2011-09-22 Tristan Gingold <gingold@adacore.com>
* fork-child.c (fork_inferior): Add exec_fun parameter.

View File

@ -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;