Mail Archives: djgpp/1996/12/30/18:38:22
>I tried to debug a program written using Allegro graphics library, but
>it doesn't work (my computer goes into a deep coma, and even
>Ctrl-Alt-Del doesn't help).
Really? It works better than that for me. When your program hits a
breakpoint you'll need to switch to text mode (type "system mode co80"),
but after doing that I can single-step through Allegro programs without
any problems. The problem comes when you want to resume execution -
there is no way to restore the screen state, and gdb also seems to
remove Allegro's keyboard and timer interrupt handlers, although I
haven't properly investigated this.
I'm surprised it dies so thouroughly: what versions of Allegro and gdb
are you using here? And what dpmi provider?
>Is there any way around it, or other debugger to use with Allegro?
It might be worth trying FSDB. Although I've never used it myself, I
believe it can handle VGA graphics modes. Ideally, of course, it would
be nice if someone could teach gdb about saving and restoring VESA
screen modes, but that isn't something I have time for myself...
/*
* Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
* Ghoti: 'gh' as in 'enough', 'o' as in 'women', and 'ti' as in 'nation'.
*/
- Raw text -