diff options
author | Pedro Alves <palves@redhat.com> | 2011-09-09 19:20:24 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-09-09 19:20:24 +0000 |
commit | f687d035648db21290f4528e84713c8d9d2fde19 (patch) | |
tree | b58b35550ec2a643cab83100d5086781d653c3e0 | |
parent | e7771322561f06ec5831058f42161b4f9128b372 (diff) | |
download | gdb-f687d035648db21290f4528e84713c8d9d2fde19.zip gdb-f687d035648db21290f4528e84713c8d9d2fde19.tar.gz gdb-f687d035648db21290f4528e84713c8d9d2fde19.tar.bz2 |
2011-09-09 Pedro Alves <pedro@codesourcery.com>
* linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
-1 (error), if the lwp exits right after attaching.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/linux-nat.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6bcde92..8102cff 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-09-09 Pedro Alves <pedro@codesourcery.com> + + * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of + -1 (error), if the lwp exits right after attaching. + 2011-09-08 Doug Evans <dje@google.com> * py-cmd.c: Some minor formatting fixes. diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 30d6857..eadbbc0 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -1479,7 +1479,7 @@ lin_lwp_attach_lwp (ptid_t ptid) if (!WIFSTOPPED (status)) { restore_child_signals_mask (&prev_mask); - return -1; + return 1; } lp = add_lwp (ptid); |