diff options
author | Yao Qi <yao@codesourcery.com> | 2011-09-23 07:27:19 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2011-09-23 07:27:19 +0000 |
commit | f3d6df6d3a378d6d5acb26895f658d54db151919 (patch) | |
tree | 5bc9ca9605099e388d9bd25c78d8146c52ad5e7d /gdb/i386-linux-nat.c | |
parent | 6b4a09fc6f6e1e3d832e574717f63b2d4dde64ab (diff) | |
download | gdb-f3d6df6d3a378d6d5acb26895f658d54db151919.zip gdb-f3d6df6d3a378d6d5acb26895f658d54db151919.tar.gz gdb-f3d6df6d3a378d6d5acb26895f658d54db151919.tar.bz2 |
gdb/
* i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
to get address.
Diffstat (limited to 'gdb/i386-linux-nat.c')
-rw-r--r-- | gdb/i386-linux-nat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c index e32a119..6257931 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; |