Mail Archives: djgpp/1994/12/15/23:54:54
> > Anyone have any ideas on how a program might discover whether it was
> > invoked normally or via "go32 -d gdb ..."
>
> Try looking at the original PSP of the invoked program. Its
> address is one of the fields of the _go32_info_block variable
> declared on <go32.h>. I didn't try this, but the command line
> tail in there just might still hold the original command line
> used to invoke your program.
Thanks to everyone that replied. Yes, -d gdb is indeed still there...
> I don't think this will work in V2 since the debuggers are separate
> standalone programs, and the debugged program gets its own PSP image
> which does not include the debugger command args. But in V2, the
> debugger gets the exceptions before the program exception handler
> executes, which may change the need for this?
Maybe we could have a "debug_mode" flag in the info_block in V2? :-)
Jeff.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
lederman AT fit DOT qut DOT edu DOT au
_--_|\ Faculty of Information Technology
/ QUT Queensland University of Technology
\_.--._/ Box 2434 Brisbane 4001 AUSTRALIA
v Ph: +61 7 864 5121 Fax: +61 7 864 1282
- Raw text -