delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
Date: | Tue, 26 Feb 2002 12:40:06 +0200 |
From: | "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> |
Sender: | halo1 AT zahav DOT net DOT il |
To: | luisllo AT alumni DOT uv DOT es (Luis) |
Message-Id: | <2427-Tue26Feb2002124006+0200-eliz@is.elta.co.il> |
X-Mailer: | emacs 21.2.50 (via feedmail 8 I) and Blat ver 1.8.9 |
CC: | djgpp AT delorie DOT com |
In-reply-to: | <6124b64f.0202260123.654bd391@posting.google.com> |
(luisllo AT alumni DOT uv DOT es) | |
Subject: | Re: print routines for djggp c |
References: | <6124b64f DOT 0202260123 DOT 654bd391 AT posting DOT google DOT com> |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
> From: luisllo AT alumni DOT uv DOT es (Luis) > Newsgroups: comp.os.msdos.djgpp > Date: 26 Feb 2002 01:23:17 -0800 > > I'm working with djgpp and DPMI, I created a new dpmi segment and > changed the ds, es, and ss registers to point to the new segment. So I > can't use standard c library functions. But I need to inspect the > content of some variables, and I can't use GDB when changing segments. You _can_ do that with GDB, if you put into your program a function which accepts a selector and offset, and returns a numerical value or a string with the information you want. The you can simply call that function from GDB, like this: (gdb) print my_wonderful_function ($ds, offset)
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |