* infrun.c (follow_exec): Don't do a generic mourn. Instead
inline the required bits. * breakpoint.h (enum inf_context): Add inf_execd.
This commit is contained in:
parent
795e548fb8
commit
6ca15a4b21
|
@ -1,3 +1,9 @@
|
||||||
|
2008-09-22 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
|
* infrun.c (follow_exec): Don't do a generic mourn. Instead
|
||||||
|
inline the required bits.
|
||||||
|
* breakpoint.h (enum inf_context): Add inf_execd.
|
||||||
|
|
||||||
2008-09-22 Pedro Alves <pedro@codesourcery.com>
|
2008-09-22 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* infrun.c (handle_inferior_event): In the follow exec case,
|
* infrun.c (handle_inferior_event): In the follow exec case,
|
||||||
|
|
|
@ -663,7 +663,8 @@ enum inf_context
|
||||||
{
|
{
|
||||||
inf_starting,
|
inf_starting,
|
||||||
inf_running,
|
inf_running,
|
||||||
inf_exited
|
inf_exited,
|
||||||
|
inf_execd
|
||||||
};
|
};
|
||||||
|
|
||||||
/* The possible return values for breakpoint_here_p.
|
/* The possible return values for breakpoint_here_p.
|
||||||
|
|
|
@ -331,7 +331,6 @@ follow_inferior_reset_breakpoints (void)
|
||||||
static void
|
static void
|
||||||
follow_exec (ptid_t pid, char *execd_pathname)
|
follow_exec (ptid_t pid, char *execd_pathname)
|
||||||
{
|
{
|
||||||
ptid_t saved_pid = pid;
|
|
||||||
struct target_ops *tgt;
|
struct target_ops *tgt;
|
||||||
struct thread_info *th = inferior_thread ();
|
struct thread_info *th = inferior_thread ();
|
||||||
|
|
||||||
|
@ -370,9 +369,8 @@ follow_exec (ptid_t pid, char *execd_pathname)
|
||||||
inferior has essentially been killed & reborn. */
|
inferior has essentially been killed & reborn. */
|
||||||
|
|
||||||
gdb_flush (gdb_stdout);
|
gdb_flush (gdb_stdout);
|
||||||
generic_mourn_inferior ();
|
|
||||||
/* Because mourn_inferior resets inferior_ptid. */
|
breakpoint_init_inferior (inf_execd);
|
||||||
inferior_ptid = saved_pid;
|
|
||||||
|
|
||||||
if (gdb_sysroot && *gdb_sysroot)
|
if (gdb_sysroot && *gdb_sysroot)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue