This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ttrace: Protocal error


> [New process 20069]
> [New process 20069, lwp 7087826]

[New process 2692, lwp 7130128]
[process 2692, lwp 7130128 exited]

Breakpoint 1, perror_with_name (string=0x0) at ../../src/gdb/utils.c:847
847       err = safe_strerror (errno);
(gdb) frame 1
#1  0x000c9b08 in inf_ttrace_resume_callback (info=0x2319b0, arg=0x7b019048)
    at ../../src/gdb/inf-ttrace.c:813
813             perror_with_name (("ttrace"));
(gdb) p *(struct thread_info *)($r3 - 4)
$21 = {next = 0x4007bc90, ptid = {pid = 2692, lwp = 7130128, tid = 0},
  num = 2, executing_ = 0, state_ = 1, refcount = 0, prev_pc = 0,
  step_resume_breakpoint = 0x0, step_range_start = 0, step_range_end = 0,
  step_frame_id = {stack_addr = 0, code_addr = 0, special_addr = 0,
  stack_addr_p = 0, code_addr_p = 0, special_addr_p = 0}, current_line = 0,
  current_symtab = 0x0, trap_expected = 0, stepping_over_breakpoint = 0,
  stepping_through_solib_after_catch = 0,
  stepping_through_solib_catchpoints = 0x0, continuations = 0x0,
  intermediate_continuations = 0x0, proceed_to_finish = 0,
  step_over_calls = STEP_OVER_NONE, stop_step = 0, step_multi = 0,
  stop_signal = TARGET_SIGNAL_0, stop_bpstat = 0x0, private = 0x40076ac8}
(gdb) p (int)THREAD_EXITED
$22 = 2

Hmmm, the thread seems to have exited but state_ is still 1.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]