This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [ob] Don't clobber inferior_ptid in read_pc_pid
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 29 Feb 2004 12:01:59 -0500
- Subject: Re: [ob] Don't clobber inferior_ptid in read_pc_pid
- References: <20040228173541.GA15776@nevyn.them.org>
On Sat, Feb 28, 2004 at 12:35:41PM -0500, Daniel Jacobowitz wrote:
> Another issue found in testing on arm-linux. A return was added to this
> function back in June; if we return from the middle of it, we leave
> inferior_ptid set to the wrong thread. This causes a "!ptid_equal
> (ecs->ptid, inferior_ptid)" test to fail, since we called read_pc_pid
> with ecs->ptid. That leads to not calling context_switch; which clobbers
> the stepping range for the previous thread; which causes stepping to stop
> unexpectedly.
> 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
>
> * regcache.c (read_pc_pid): Restore inferior_ptid after reading
> PC_REGNUM.
I have committed this to HEAD.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer