Date: Sun, 12 Jul 1998 19:23:36 +0300 (IDT) From: Eli Zaretskii To: Martin Str|mberg cc: DJGPP-WORKERS Subject: Re: info core dumps In-Reply-To: <199807102026.WAA04313@father.ludd.luth.se> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Fri, 10 Jul 1998, Martin Str|mberg wrote: > > If you mean to access data in segment other than DS, then you can't do > > that in GDB directly. You need to call a C function like dosmemget > > for that, assuming that it's linked into the debugged program. > > > > The same goes for selector data: call the appropriate C function from > > the GDB prompt. > > Hmm. But how do I get the base address as that function expects an > argument of type 'int *'? The easiest way is to write a wrapper that returns the value pointed by the int *, and link it into your program. > Another question, suppose ds's base address is 0x1000 and edx is > 0x100, is the address edx points to 0x100 or 0x1100? AFAIK, the linear address is 0x100, the logical address is 0x1100.