2009-06-14 Hui Zhu <teawater@gmail.com>
Michael Snyder <msnyder@vmware.com> * infrun.c (handle_inferior_event): Reverse-next through trampoline.
This commit is contained in:
parent
31410e843b
commit
6373d11969
@ -4,6 +4,9 @@
|
|||||||
* infrun.c (handle_inferior_event): Improve reverse stepping
|
* infrun.c (handle_inferior_event): Improve reverse stepping
|
||||||
through function epilogue.
|
through function epilogue.
|
||||||
|
|
||||||
|
* infrun.c (handle_inferior_event): Reverse-next through
|
||||||
|
trampoline.
|
||||||
|
|
||||||
2009-06-18 Paul Pluzhnikov <ppluzhnikov@google.com>
|
2009-06-18 Paul Pluzhnikov <ppluzhnikov@google.com>
|
||||||
|
|
||||||
* dwarf2-frame.c (struct comp_unit): Use bfd_size_type for
|
* dwarf2-frame.c (struct comp_unit): Use bfd_size_type for
|
||||||
|
19
gdb/infrun.c
19
gdb/infrun.c
@ -3777,10 +3777,21 @@ infrun: not switching back to stepped thread, it has vanished\n");
|
|||||||
keep_going (ecs);
|
keep_going (ecs);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* Normal (staticly linked) function call return. */
|
if (gdbarch_skip_trampoline_code(current_gdbarch,
|
||||||
init_sal (&sr_sal);
|
get_current_frame (),
|
||||||
sr_sal.pc = ecs->stop_func_start;
|
stop_pc))
|
||||||
insert_step_resume_breakpoint_at_sal (sr_sal, null_frame_id);
|
{
|
||||||
|
/* We are in a function call trampoline.
|
||||||
|
Keep stepping backward to get to the caller. */
|
||||||
|
ecs->event_thread->stepping_over_breakpoint = 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* Normal function call return (static or dynamic). */
|
||||||
|
init_sal (&sr_sal);
|
||||||
|
sr_sal.pc = ecs->stop_func_start;
|
||||||
|
insert_step_resume_breakpoint_at_sal (sr_sal, null_frame_id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
insert_step_resume_breakpoint_at_caller (frame);
|
insert_step_resume_breakpoint_at_caller (frame);
|
||||||
|
Loading…
Reference in New Issue
Block a user