diff options
author | Yao Qi <yao@codesourcery.com> | 2010-09-06 15:10:15 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2010-09-06 15:10:15 +0000 |
commit | 0cccb68320342940fa2903f9458a6b61ba88302a (patch) | |
tree | 390a1a055bda36fc79976e946c19ce40f482d943 /gdb/gdbserver/linux-low.c | |
parent | 48f9886d473c936907a5d1647cd5f1dd4bb9e36c (diff) | |
download | gdb-0cccb68320342940fa2903f9458a6b61ba88302a.zip gdb-0cccb68320342940fa2903f9458a6b61ba88302a.tar.gz gdb-0cccb68320342940fa2903f9458a6b61ba88302a.tar.bz2 |
2010-09-06 Yao Qi <yao@codesourcery.com>
* linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
on return.
Diffstat (limited to 'gdb/gdbserver/linux-low.c')
-rw-r--r-- | gdb/gdbserver/linux-low.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index f2177ff..76a4df1 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -1244,6 +1244,7 @@ Checking whether LWP %ld needs to move out of the jump pad.\n", fprintf (stderr, "\ Checking whether LWP %ld needs to move out of the jump pad...it does\n", lwpid_of (lwp)); + current_inferior = saved_inferior; return 1; } @@ -1314,6 +1315,8 @@ Checking whether LWP %ld needs to move out of the jump pad...it does\n", fprintf (stderr, "\ Checking whether LWP %ld needs to move out of the jump pad...no\n", lwpid_of (lwp)); + + current_inferior = saved_inferior; return 0; } |