forked from Imagelibrary/binutils-gdb
* inflow.c (kill_command): If the target claims there is still
execution, don't clear the thread list.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2008-10-27 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
|
* inflow.c (kill_command): If the target claims there is still
|
||||||
|
execution, don't clear the thread list.
|
||||||
|
|
||||||
2008-10-27 Pedro Alves <pedro@codesourcery.com>
|
2008-10-27 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* cp-name-parser.y: Include defs.h instead of config.h.
|
* cp-name-parser.y: Include defs.h instead of config.h.
|
||||||
|
|||||||
19
gdb/inflow.c
19
gdb/inflow.c
@@ -601,14 +601,19 @@ kill_command (char *arg, int from_tty)
|
|||||||
error (_("Not confirmed."));
|
error (_("Not confirmed."));
|
||||||
target_kill ();
|
target_kill ();
|
||||||
|
|
||||||
init_thread_list (); /* Destroy thread info */
|
/* If the current target interface claims there's still execution,
|
||||||
|
then don't mess with threads of other processes. */
|
||||||
/* Killing off the inferior can leave us with a core file. If so,
|
if (!target_has_execution)
|
||||||
print the state we are left in. */
|
|
||||||
if (target_has_stack)
|
|
||||||
{
|
{
|
||||||
printf_filtered (_("In %s,\n"), target_longname);
|
init_thread_list (); /* Destroy thread info */
|
||||||
print_stack_frame (get_selected_frame (NULL), 1, SRC_AND_LOC);
|
|
||||||
|
/* Killing off the inferior can leave us with a core file. If
|
||||||
|
so, print the state we are left in. */
|
||||||
|
if (target_has_stack)
|
||||||
|
{
|
||||||
|
printf_filtered (_("In %s,\n"), target_longname);
|
||||||
|
print_stack_frame (get_selected_frame (NULL), 1, SRC_AND_LOC);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
bfd_cache_close_all ();
|
bfd_cache_close_all ();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user