* linux-low.c (linux_stabilize_threads): Wrap debug output in a
debug_threads check. Avoid a linear search when not doing debug output.
This commit is contained in:
parent
46a9699269
commit
b4d51a55f9
2 changed files with 14 additions and 7 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2010-08-28 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
|
* linux-low.c (linux_stabilize_threads): Wrap debug output in a
|
||||||
|
debug_threads check. Avoid a linear search when not doing debug
|
||||||
|
output.
|
||||||
|
|
||||||
2010-08-27 Pedro Alves <pedro@codesourcery.com>
|
2010-08-27 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
|
* event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
|
||||||
|
|
|
@ -1884,8 +1884,9 @@ linux_stabilize_threads (void)
|
||||||
stuck_in_jump_pad_callback, NULL);
|
stuck_in_jump_pad_callback, NULL);
|
||||||
if (lwp_stuck != NULL)
|
if (lwp_stuck != NULL)
|
||||||
{
|
{
|
||||||
fprintf (stderr, "can't stabilize, LWP %ld is stuck in jump pad\n",
|
if (debug_threads)
|
||||||
lwpid_of (lwp_stuck));
|
fprintf (stderr, "can't stabilize, LWP %ld is stuck in jump pad\n",
|
||||||
|
lwpid_of (lwp_stuck));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1931,12 +1932,12 @@ linux_stabilize_threads (void)
|
||||||
|
|
||||||
current_inferior = save_inferior;
|
current_inferior = save_inferior;
|
||||||
|
|
||||||
lwp_stuck
|
if (debug_threads)
|
||||||
= (struct lwp_info *) find_inferior (&all_lwps,
|
|
||||||
stuck_in_jump_pad_callback, NULL);
|
|
||||||
if (lwp_stuck != NULL)
|
|
||||||
{
|
{
|
||||||
if (debug_threads)
|
lwp_stuck
|
||||||
|
= (struct lwp_info *) find_inferior (&all_lwps,
|
||||||
|
stuck_in_jump_pad_callback, NULL);
|
||||||
|
if (lwp_stuck != NULL)
|
||||||
fprintf (stderr, "couldn't stabilize, LWP %ld got stuck in jump pad\n",
|
fprintf (stderr, "couldn't stabilize, LWP %ld got stuck in jump pad\n",
|
||||||
lwpid_of (lwp_stuck));
|
lwpid_of (lwp_stuck));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue