restore inferior missed in read_pc_pid()?
Andrew Cagney
cagney@gnu.org
Wed Dec 31 18:10:00 GMT 2003
> Hi all,
>
> 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);
> return pc_val;
> }
> else
> ...
>
> and can't understand why the inferior_ptid is not restored for this case?
> Error?
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 :-(
Andrew
More information about the Gdb
mailing list