This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help: address vs pointer


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]