Mail Archives: djgpp/1995/01/06/12:34:05
>What are your suggestions about the best way to debug a graphics
>program? gdb runs my program fine, but when a breakpoint is hit with
>the screen in a graphics mode I can't read the text printed by gdb.
The traditional method, I believe, is to redirect the debugger's output
--either to another (presumably monochrome) monitor or to your printer.
>Actually, if I could get what gdb tries to print to be visible, I could
>do my debugging with printfs (yuk, but it would help). All I see are
>white squares on a black background. It's as if the bios font is
>screwed up or some attribute bit is set wrong, but I can't figure out
>where.
The problem is that whatever routine is producing the `text' output
doesn't realize you're in graphics mode, so it tries to write directly
to video memory.
--- Aaron Ucko (ucko AT vax1 DOT rockhurst DOT edu; finger for PGP public key) -=- httyp!
-=*=-Just because you're paranoid doesn't mean they aren't out to get you.-=*=-
Geek code 2.1 [finger hayden AT vax1 DOT mankato DOT msus DOT edu for explanation]:
GCS/M/S d(-) H s g+ p? !au a-- w+ v+ C++(+++)>++++ UL++(-)(S+)>++++ P++
L+(++) 3(-) E-(----) !N>++ K- W-(---) M-(--) V(--) po-(--) Y+(++) t(+) !5 j R
G tv--(-) b+++ !D(--) B--(---) e>++++(*) u++(@) h!() f(+) r-(--)>+++ n+(-) y?
- Raw text -