summaryrefslogtreecommitdiff
path: root/gdb/rs6000-nat.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-06-07 17:26:41 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-06-07 17:26:41 +0000
commitf8c852aa780f6b53c0576cfbcd326413a59680bc (patch)
tree2ae651f88dee1bbfc6519fca6c26ef00e6f7c52e /gdb/rs6000-nat.c
parent90ed58afe1256fbb9d8df73e90bb84c9c913f3f3 (diff)
downloadgdb-f8c852aa780f6b53c0576cfbcd326413a59680bc.tar.gz
gdb/
* cli/cli-cmds.c (shell_escape): Use waitpid. * rs6000-nat.c (exec_one_dummy_insn): Likewise. gdb/testsuite/ * gdb.base/async-shell.c: New file. * gdb.base/async-shell.exp: New file.
Diffstat (limited to 'gdb/rs6000-nat.c')
-rw-r--r--gdb/rs6000-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c
index e357c4d139a..30e4c15d147 100644
--- a/gdb/rs6000-nat.c
+++ b/gdb/rs6000-nat.c
@@ -614,7 +614,7 @@ exec_one_dummy_insn (struct regcache *regcache)
do
{
- pid = wait (&status);
+ pid = waitpid (PIDGET (inferior_ptid), &status, 0);
}
while (pid != PIDGET (inferior_ptid));