Date: Mon, 24 Mar 1997 10:32:46 +0300 (IDT) From: Eli Zaretskii To: Regis BOSSUT cc: djgpp AT delorie DOT com Subject: Re: How do I examine memory a la %gs:0x1234 with gdb ? In-Reply-To: <3332A009.2C13@isen.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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)