This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Help: address vs pointer
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Tristan Gingold <gingold at adacore dot com>
- Cc: gdb at sourceware dot org
- Date: Mon, 2 Nov 2009 07:48:36 -0800
- Subject: Re: Help: address vs pointer
- References: <26EF10E2-E2F3-4822-9CD6-4B90CF7B2CE3@adacore.com>
> 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