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/breakpoint.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/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index aa3072d..a9be450 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -10726,6 +10726,16 @@ insert_single_step_breakpoint (struct gdbarch *gdbarch, paddress (gdbarch, next_pc)); } +/* Check if the breakpoints used for software single stepping + were inserted or not. */ + +int +single_step_breakpoints_inserted (void) +{ + return (single_step_breakpoints[0] != NULL + || single_step_breakpoints[1] != NULL); +} + /* Remove and delete any breakpoints used for software single step. */ void |