aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbthread.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-11-28 04:33:47 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-11-28 04:33:47 +0000
commit8358c15c55744630cf69baf9acd134b8cc04e7c7 (patch)
treee7a982a8c87c619e6ac8542864159b7bc5c30936 /gdb/gdbthread.h
parent16c381f0589cead48e7e707c6584ec8629601aad (diff)
downloadgdb-8358c15c55744630cf69baf9acd134b8cc04e7c7.zip
gdb-8358c15c55744630cf69baf9acd134b8cc04e7c7.tar.gz
gdb-8358c15c55744630cf69baf9acd134b8cc04e7c7.tar.bz2
gdb/
Fix step_resume_breakpoint unsaved during an infcall. * gdbthread.h (struct thread_control_state): Move here field step_resume_breakpoint ... (struct thread_info): ... from here. * infrun.c (save_infcall_control_state): Reset control.step_resume_breakpoint to NULL. (restore_infcall_control_state, discard_infcall_control_state): Delete control.step_resume_breakpoint. * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to the moved field. gdb/testsuite/ Fix step_resume_breakpoint unsaved during an infcall. * gdb.base/step-resume-infcall.exp: New file. * gdb.base/step-resume-infcall.c: New file.
Diffstat (limited to 'gdb/gdbthread.h')
-rw-r--r--gdb/gdbthread.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h
index 8fe82c3..c6a1d5c 100644
--- a/gdb/gdbthread.h
+++ b/gdb/gdbthread.h
@@ -37,6 +37,9 @@ struct thread_control_state
{
/* User/external stepping state. */
+ /* Step-resume or longjmp-resume breakpoint. */
+ struct breakpoint *step_resume_breakpoint;
+
/* Range to single step within.
If this is nonzero, respond to a single-step signal by continuing
@@ -151,11 +154,6 @@ struct thread_info
call. See `struct thread_suspend_state'. */
struct thread_suspend_state suspend;
- /* User/external stepping state. */
-
- /* Step-resume or longjmp-resume breakpoint. */
- struct breakpoint *step_resume_breakpoint;
-
int current_line;
struct symtab *current_symtab;