diff options
author | Hui Zhu <teawater@gmail.com> | 2010-07-19 07:55:43 +0000 |
---|---|---|
committer | Hui Zhu <teawater@gmail.com> | 2010-07-19 07:55:43 +0000 |
commit | f02253f1909284075016131674ee0875015d0788 (patch) | |
tree | 5ece737e989f16a06dfb72587adb46b8a2efce39 /gdb/infrun.c | |
parent | 06e700d6a22b1fef818370066f589867a1715374 (diff) | |
download | gdb-f02253f1909284075016131674ee0875015d0788.zip gdb-f02253f1909284075016131674ee0875015d0788.tar.gz gdb-f02253f1909284075016131674ee0875015d0788.tar.bz2 |
2010-07-19 Hui Zhu <teawater@gmail.com>
* breakpoint.c (single_step_breakpoints_inserted): New
function.
* breakpoint.h (single_step_breakpoints_inserted): Extern.
* infrun.c (maybe_software_singlestep): Add check code.
* record.c (record_resume): Add code for software single step.
(record_wait): Ditto.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 57f2ab8..dd89e78 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -1515,7 +1515,8 @@ maybe_software_singlestep (struct gdbarch *gdbarch, CORE_ADDR pc) { int hw_step = 1; - if (gdbarch_software_single_step_p (gdbarch) + if (execution_direction == EXEC_FORWARD + && gdbarch_software_single_step_p (gdbarch) && gdbarch_software_single_step (gdbarch, get_current_frame ())) { hw_step = 0; |