Cosmetic and indentation fixes.
This commit is contained in:
parent
eceede3100
commit
9bff382ded
|
@ -508,12 +508,14 @@ info_threads_command (arg, from_tty)
|
||||||
*/
|
*/
|
||||||
counter = saved_frame_level;
|
counter = saved_frame_level;
|
||||||
cur_frame = find_relative_frame(selected_frame, &counter);
|
cur_frame = find_relative_frame(selected_frame, &counter);
|
||||||
if (counter != 0) {
|
if (counter != 0)
|
||||||
|
{
|
||||||
/* Ooops, can't restore, tell user where we are. */
|
/* Ooops, can't restore, tell user where we are. */
|
||||||
warning ("Couldn't restore frame in current thread, at frame 0");
|
warning ("Couldn't restore frame in current thread, at frame 0");
|
||||||
print_stack_frame (selected_frame, -1, 0);
|
print_stack_frame (selected_frame, -1, 0);
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
select_frame(cur_frame, saved_frame_level);
|
select_frame(cur_frame, saved_frame_level);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -541,7 +543,8 @@ static void
|
||||||
restore_current_thread (pid)
|
restore_current_thread (pid)
|
||||||
int pid;
|
int pid;
|
||||||
{
|
{
|
||||||
if (pid != inferior_pid) {
|
if (pid != inferior_pid)
|
||||||
|
{
|
||||||
switch_to_thread (pid);
|
switch_to_thread (pid);
|
||||||
print_stack_frame( get_current_frame(), 0, -1);
|
print_stack_frame( get_current_frame(), 0, -1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue