Mail Archives: djgpp/1997/03/24/02:48:06
On Fri, 21 Mar 1997, Regis BOSSUT wrote:
> Subject is simple, but I did not find the answer in the info files.
> I'm afraid I can't but would like to be wrong...
I think the easiest way to do that is to include in your program a
function that returns a value or values at that address, then make GDB
call it. For example, suppose you write a function like this:
unsigned gs_peek (unsigned offset);
Then you can make GDB print the value at %gs:0x1234 like so:
(gdb) print gs_peek(0x1234)
- Raw text -