From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Edwards To: Keith Seitz Cc: insight@sources.redhat.com Subject: Re: No step button using insight w/ remote target. Date: Mon, 19 Nov 2001 14:39:00 -0000 Message-ID: <20011119164412.A27327@visi.com> References: <20011119150837.A27007@visi.com> X-SW-Source: 2001-q4/msg00342.html Message-ID: <20011119143900.Z-LM3f46pwljC3cy5zK2tjiTWoPjF1odmAudowpDYt8@z> On Mon, Nov 19, 2001 at 01:05:19PM -0800, Keith Seitz wrote: > On Mon, 19 Nov 2001, Grant Edwards wrote: > > > Yes. After that line has been executed: > > > > (gdb) print inferior_ptid > > $1 = {pid = 42000, lwp = 0, tid = 0} > > Ok, so someone is resetting it somewhere... Can you find out who that is? It's being changed from {42000,0,0} to {0,0,0} in infrun.c:contect_switch() at the last line in the function. The condition (in_thread_list ...) condition is false. Neither save_infrun_state() nor load_infrun_state() is called. Here's the parameter to context_switch() at entry: (gdb) print/x *ecs $5 = { ws = { kind = 0x1, value = { integer = 0x5, sig = 0x5, related_pid = 0x5, execd_pathname = 0x5, syscall_id = 0x5 } }, wp = 0xbfffafb0, another_trap = 0x80d7f55, random_signal = 0x0, stop_func_start = 0x0, stop_func_end = 0x0, stop_func_name = 0x0, sal = { symtab = 0x0, section = 0x0, line = 0x0, pc = 0x7c6a68, end = 0x0 }, remove_breakpoints_on_following_step = 0x0, current_line = 0x0, current_symtab = 0x0, handling_longjmp = 0x0, ptid = { pid = 0x0, lwp = 0x0, tid = 0x0 }, saved_inferior_ptid = { pid = 0x0, lwp = 0xffffffff, tid = 0xbfffb048 }, update_step_sp = 0x0, stepping_through_solib_after_catch = 0x0, stepping_through_solib_catchpoints = 0x0, enable_hw_watchpoints_after_wait = 0x0, stepping_through_sigtramp = 0x0, new_thread_event = 0x0, tmpstatus = { kind = 0x0, value = { integer = 0x0, sig = 0x0, related_pid = 0x0, execd_pathname = 0x0, syscall_id = 0x0 } }, infwait_state = 0x0, waiton_ptid = { pid = 0xffffffff, lwp = 0x0, tid = 0x0 }, wait_some_more = 0x0 } -- Grant Edwards grante@visi.com