This is the mail archive of the
mailing list for the GDB project.
Re: restore inferior missed in read_pc_pid()?
- From: Andrew Cagney <cagney at gnu dot org>
- To: Sergei Poselenov <sergei dot poselenov at auriga dot ru>
- Cc: gdb at sources dot redhat dot com
- Date: Wed, 31 Dec 2003 13:10:14 -0500
- Subject: Re: restore inferior missed in read_pc_pid()?
- References: <3FEC46AA.firstname.lastname@example.org>
I'm looking at read_pc_pid() :
/* Else use per-frame method on get_current_frame. */
else if (PC_REGNUM >= 0)
CORE_ADDR raw_val = read_register_pid (PC_REGNUM, ptid);
CORE_ADDR pc_val = ADDR_BITS_REMOVE (raw_val);
and can't understand why the inferior_ptid is not restored for this case?
Can you expand a little on what the underlying problem is?
I suspect that GDB's thread global swapping code is, yet again, shooting
itself in the foot. But that's just a guess :-(