delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/11/02:48:38

Date: Mon, 11 Jan 1999 09:45:31 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Seawolf <seawolf AT net4you DOT co DOT at>
cc: djgpp AT delorie DOT com
Subject: Re: GDB problem
In-Reply-To: <3698E5C0.705749C3@net4you.co.at>
Message-ID: <Pine.SUN.3.91.990111094426.3893D-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Sun, 10 Jan 1999, Seawolf wrote:

> How do I debug programs using the Allegro keyboard handler with the gnu
> debugger?

You don't :-(.

It is a known limitation of the DJGPP debugging support that program
which hook hardware interrupts cannot be debugged reliably.  See
section 12.10 for the full list of features which, if used in a
program, defeat its debugging.

I'm told that the latest versions of RHIDE have lifted some of these
limitations, so you might want to try using RHIDE for that program.

(Personally, I have never trusted DOS debuggers for debugging any
program that hooks interrupts anyway.  Debugging by printf seems to be
much more reliable in these cases.)

Section 12.2 of the FAQ has some additional info that might help you
debug crashes such as the one you are experiencing.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019