* inf-ttrace.c (inf_ttrace_follow_fork): Declare locals at the
right scope level. (inf_ttrace_resume, inf_ttrace_wait): Typos.
This commit is contained in:
parent
030b4912c6
commit
b861ac8114
|
@ -1,3 +1,9 @@
|
||||||
|
2008-09-10 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
|
* inf-ttrace.c (inf_ttrace_follow_fork): Declare locals at the
|
||||||
|
right scope level.
|
||||||
|
(inf_ttrace_resume, inf_ttrace_wait): Typos.
|
||||||
|
|
||||||
2008-09-10 Ulrich Weigand <uweigand@de.ibm.com>
|
2008-09-10 Ulrich Weigand <uweigand@de.ibm.com>
|
||||||
|
|
||||||
* ada-lang.c (ada_array_length): Use builtin_type_int32 instead
|
* ada-lang.c (ada_array_length): Use builtin_type_int32 instead
|
||||||
|
|
|
@ -413,6 +413,9 @@ inf_ttrace_follow_fork (struct target_ops *ops, int follow_child)
|
||||||
lwpid_t lwpid, flwpid;
|
lwpid_t lwpid, flwpid;
|
||||||
ttstate_t tts;
|
ttstate_t tts;
|
||||||
struct thread_info *last_tp = NULL;
|
struct thread_info *last_tp = NULL;
|
||||||
|
struct breakpoint *step_resume_breakpoint = NULL;
|
||||||
|
CORE_ADDR step_range_start = 0, step_range_end = 0;
|
||||||
|
struct frame_id step_frame_id = null_frame_id;
|
||||||
|
|
||||||
/* FIXME: kettenis/20050720: This stuff should really be passed as
|
/* FIXME: kettenis/20050720: This stuff should really be passed as
|
||||||
an argument by our caller. */
|
an argument by our caller. */
|
||||||
|
@ -455,12 +458,10 @@ inf_ttrace_follow_fork (struct target_ops *ops, int follow_child)
|
||||||
if (follow_child)
|
if (follow_child)
|
||||||
{
|
{
|
||||||
/* Copy user stepping state to the new inferior thread. */
|
/* Copy user stepping state to the new inferior thread. */
|
||||||
struct breakpoint *step_resume_breakpoint = last_tp->step_resume_breakpoint;
|
step_resume_breakpoint = last_tp->step_resume_breakpoint;
|
||||||
CORE_ADDR step_range_start = last_tp->step_range_start;
|
step_range_start = last_tp->step_range_start;
|
||||||
CORE_ADDR step_range_end = last_tp->step_range_end;
|
step_range_end = last_tp->step_range_end;
|
||||||
struct frame_id step_frame_id = last_tp->step_frame_id;
|
step_frame_id = last_tp->step_frame_id;
|
||||||
|
|
||||||
struct thread_info *tp;
|
|
||||||
|
|
||||||
/* Otherwise, deleting the parent would get rid of this
|
/* Otherwise, deleting the parent would get rid of this
|
||||||
breakpoint. */
|
breakpoint. */
|
||||||
|
@ -894,7 +895,7 @@ inf_ttrace_resume (ptid_t ptid, int step, enum target_signal signal)
|
||||||
if (resume_all)
|
if (resume_all)
|
||||||
ptid = inferior_ptid;
|
ptid = inferior_ptid;
|
||||||
|
|
||||||
info = thread_find_pid (ptid);
|
info = find_thread_pid (ptid);
|
||||||
inf_ttrace_resume_lwp (info, request, sig);
|
inf_ttrace_resume_lwp (info, request, sig);
|
||||||
|
|
||||||
if (resume_all)
|
if (resume_all)
|
||||||
|
@ -1084,7 +1085,7 @@ inf_ttrace_wait (ptid_t ptid, struct target_waitstatus *ourstatus)
|
||||||
lwpid = tts.tts_u.tts_thread.tts_target_lwpid;
|
lwpid = tts.tts_u.tts_thread.tts_target_lwpid;
|
||||||
ptid = ptid_build (tts.tts_pid, lwpid, 0);
|
ptid = ptid_build (tts.tts_pid, lwpid, 0);
|
||||||
if (print_thread_events)
|
if (print_thread_events)
|
||||||
printf_unfiltered(_("[%s has been terminated]\n")
|
printf_unfiltered(_("[%s has been terminated]\n"),
|
||||||
target_pid_to_str (ptid));
|
target_pid_to_str (ptid));
|
||||||
ti = find_thread_pid (ptid);
|
ti = find_thread_pid (ptid);
|
||||||
gdb_assert (ti != NULL);
|
gdb_assert (ti != NULL);
|
||||||
|
|
Loading…
Reference in New Issue