Help: address vs pointer

Joel Brobecker brobecker@adacore.com
Mon Nov 2 15:48:00 GMT 2009


> So what should be the type of the pc register ?  If it is a pointer to
> instructions, 'print $pc' would be wrong as it  would be multiplied by
> 4 (once by read_pc and once during evaluation).

My not-so-educated feeling on this issue is that PC should be a pointer
to instruction.  What seems strange is that the PC value gets doubled
twice.  I understand why during the read, but not why during the eval.
Perhaps there is something we can do there?

-- 
Joel



More information about the Gdb mailing list