Mail Archives: djgpp/2000/03/10/15:37:16
> But the program I need to debug is a graphics app, and whenever I
> set a breakpoint after the program switched to graphics mode, the
> breakpoint works fine.... but the monitor remains in that graphics mode
> and not the one gdb is using. I can type "shell edit" and it will switch
> back to desktop and edit will be there and that's just fine and dandy,
> and when I exit from edit the graphics mode screen comes back again and
> that's fine, but I can never get to see the actual gdb prompt.
GDB currently only supports graphics modes which are known to your
system BIOS. Usually, this means only the standard VGA modes up to
and including mode 13h. The console I/O routines used by GDB 4.18
work in such a way that you should be able to see GDB's prompt and
other output in the supported video modes. If your program uses one
of these modes, but you cannot see GDB's prompt, please tell the
details; it works for me.
If your program uses SVGA or VESA modes, you will have to try harder.
The DJGPP FAQ list describes the various possibilities in section
12.3, which see. Your trick with "shell edit" hints that there may be
one other, simpler possibility: write a simple program that switches
the screen between text and graphics mode, and then invoke that
program via the "shell" command whenever you need to communicate with
GDB.
- Raw text -