[PATCH] Unset attach_flag when running a new process
Thu Aug 13 15:12:00 GMT 2015
On Thu, Jul 30, 2015 at 11:28 AM, Patrick Palka <email@example.com> wrote:
> We currently set attach_flag when attaching to a process, so we should
> make sure to unset it when forking a new process. Otherwise attach_flag
> would remain set after forking, if the previous process associated with
> the inferior was attached to.
> [ I fixed the extended-gdbserver test failure by using
> prepare_for_testing instead of using build_executable + gdb_start. The
> former sets remote exec-file which is what makes the "run" command work as
> expected under extended-gdbserver. ]
> * gdb/infcmd.c (run_comand_1): Unset attach_flag.
> * gdb.base/run-after-attach.exp: New test file.
> * gdb.base/run-after-attach.c: New test file.
More information about the Gdb-patches