hurd: fix pushing target on inferior creation
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 30 May 2020 18:44:17 +0000 (18:44 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 30 May 2020 18:44:17 +0000 (18:44 +0000)
commit078f2fc9c153e6efd1c88b0a34eccc1164f9ae2f
tree2b7bf7f6e0a59935042475c81dbb7d1640b7ba4e
parent53dff92cb56fb21dc81c183aa35a5a3ae8c06e32
hurd: fix pushing target on inferior creation

This fixes creating inferiors, which was broken since 5b6d1e4fa
('Multi-target support')

gdb/ChangeLog:

* gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
before fork_inferior call. Avoid calling it if target_is_pushed returns
true.
gdb/ChangeLog
gdb/gnu-nat.c