]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/gnu-nat.c
Hurd: Adjust to startup-with-shell changes.
authorThomas Schwinge <thomas@codesourcery.com>
Wed, 8 Jan 2014 20:42:07 +0000 (21:42 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Sun, 16 Feb 2014 07:30:09 +0000 (08:30 +0100)
commitc82f56d9d760a9b4034eeaac44f2f0fa5779ff69
tree92aa45199a271e9175914f00b90bce4dac5173e2
parent3398af6aa352b0611bc9d66aed72080a876e42d4
Hurd: Adjust to startup-with-shell changes.

In commit 98882a26513e25b2161b41dfd4bed97b59b2c01a, STARTUP_WITH_SHELL was made
a runtime toggle, startup-with-shell.  The Hurd code was missed to be adjusted;
it had a value hard-coded instead of using START_INFERIOR_TRAPS_EXPECTED.  Fix
that, and also simplify gnu-nat's pending_execs handling from counting to just
a flag.

gdb/
* gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
flag.  Adjust all users; in particular...
(gnu_wait): ..., don't decrement its value in here...
(gnu_create_inferior): ..., and instead set the flag in here,
around the startup_inferior call, and call that one with
START_INFERIOR_TRAPS_EXPECTED.
gdb/ChangeLog
gdb/gnu-nat.c