Re: debugging svgalib programs

Search this archive.

From: Matan Ziv-Av (matan@svgalib.org)
Date: Sat 18 Mar 2000 - 09:34:09 IST


> How do I debug an svgalib program with gdb?  Every time I try, I end up with 
> a black screen and have to reboot.  Also, is there a shell command or 
> something to set the video mode back to text mode?

To reset the mode back to text mode try (in that order)
textmode (requires running savetextmode first)
mode3
vga_reset


For debugging, I use printf.


-- 
Matan Ziv-Av.                         matan@svgalib.org


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:23 IST