gdb running in background

Dave Arnold
Wed Jun 28 16:10:00 GMT 2000

If you're doing a console style app, couldn't you just use printf?
Another thought is perhaps writing to an error log file and
using tail -f <logfilename>  to act as a sort of console to
view the debug strings as they are written to the log.

If you have more than one executeable accessing the log
at the same time, that might be a little trickier, but it might
be possible based on how you open the file to allow sharing.
I've never done that before.  A thought on that is perhaps
have each process open the log, print, close the log...that
way they're not blocking other processes from writing all
the time.  You'll have to add some checking code to see
if the file is locked on each open attempt and perhaps a wait
until it's free.


-----Original Message-----
From: <>
To: <>
Date: Wednesday, June 28, 2000 10:22 AM
Subject: gdb running in background

>Is there some way that one can run gdb so that it will just sit there, and
>display any OutputDebugString() messages that are called?  I know gdb will
>display them, if you are currently debugging that program, but this seems
>kind of clunky if I just want to see debug updates, especially if I have
>than one executable.
>Any help is appreciated,
>Jason Craig
>Want to unsubscribe from this list?
>Send a message to

Want to unsubscribe from this list?
Send a message to

More information about the Cygwin mailing list