delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
Date: | Sun, 28 Dec 2003 23:30:10 +0200 |
From: | "Eli Zaretskii" <eliz AT elta DOT co DOT il> |
Sender: | halo1 AT zahav DOT net DOT il |
To: | djgpp AT delorie DOT com |
Message-Id: | <3405-Sun28Dec2003233010+0200-eliz@elta.co.il> |
X-Mailer: | emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 |
In-reply-to: | <SjFHb.7099$Vv2.3318365@news1.news.adelphia.net> |
(bam AT SNIP_nightstorm_SNIP DOT com) | |
Subject: | Re: How to hook into an exception handler? |
References: | <SjFHb.7099$Vv2 DOT 3318365 AT news1 DOT news DOT adelphia DOT net> |
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: "Bruce A. Mallett" <bam AT SNIP_nightstorm_SNIP DOT com> > Newsgroups: comp.os.msdos.djgpp > Date: Sun, 28 Dec 2003 18:31:14 GMT > > I've been trying to figure out how to fill in the exceptionHandler() in > i386-stub.c so that I can do remote serial debug w/ gdb to MSDOS. I've > seen a few articles by searching the archives, one referring to calling > debug support functions aka go32-nat.c > > But I still don't get it. I see how to hook into interupt vectors > documented in the FAQ. Is the same mechanics used for exceptions? It's similar, see the functions __dpmi_get_processor_exception_handler_vector and __dpmi_set_processor_exception_handler_vector (documented in the library docs). However, you don't need that: DJGPP already has debug support functions that will do all that and more for you. You should simply write a replacement for i386-stub.c that uses those functions. > Is there some something I can read that will help me? Start by reading about the debug support functions in the libc docs. Like this: info libc functional debug The most important functions are v2loadimage and run_child. You can use the code in go32-nat.c as your guide; the function go32_wait is where to start. Good luck!
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |