delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/11/16:57:31

From: "Colin W. Glenn" <cwg01 AT gnofn DOT org>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Q: Is it possible to use GDB debugger with Allegro?
Date: Sat, 11 Jan 1997 14:26:21 -0600
Organization: Greater New Orleans Free-Net
Lines: 24
Message-ID: <Pine.GSO.3.95.970111142148.15866H-100000@sparkie.gnofn.org>
References: <59snma$qju AT newton DOT pacific DOT net DOT sg> <8PY8kpAdqByyEw3J AT talula DOT demon DOT co DOT uk> <5aqds7$sok AT newton DOT pacific DOT net DOT sg> <32D4EA33 DOT 306E AT Mathematik DOT tu-chemnitz DOT de> <5b2vmn$ddo AT newton DOT pacific DOT net DOT sg>
NNTP-Posting-Host: sparkie.gnofn.org
Mime-Version: 1.0
In-Reply-To: <5b2vmn$ddo@newton.pacific.net.sg>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Thu, 9 Jan 1997, Victor wrote:
> Robert Hoehne <Robert DOT Hoehne AT Mathematik DOT tu-chemnitz DOT de> wrote:
> >FVR wrote:
> >> I found my mistake already - I was using a.exe instead of a.out (I
> I'm using gdb 4.16, but with the Allegro you have just one breakpoint,
> can handle .exe files, only the breakpoint has to be set very

Why not use a tried and sure method of debugging as well?  Use a pause
statement:

void pause(char *what)
 {
 /* put a cursor save and restore in */
 /* the pointer is so you can pass a message like the following */
 printf("%s", what);
 do
  while(!getc(stdin));
 }

pause("Got to point such and such")

Excuse any codeing errors, I gotta a cold.


- Raw text -


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