* debug.h (being_debugged): New macro.
* dtable.cc (dtable::extend): Use new macro. * exceptions.cc (try_to_debug): Ditto. * strace.cc (strace::hello): Only output debugging info when we think we're being debugged.
This commit is contained in:
@@ -92,7 +92,7 @@ dtable::extend (int howmuch)
|
||||
void
|
||||
dtable::get_debugger_info ()
|
||||
{
|
||||
if (IsDebuggerPresent ())
|
||||
if (being_debugged ())
|
||||
{
|
||||
char std[3][sizeof ("/dev/ttyNNNN")];
|
||||
std[0][0] = std[1][0] = std [2][0] = '\0';
|
||||
|
Reference in New Issue
Block a user