X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fdebug.py;h=d1c89c66f3c419ea81b2fac414c6c9d334623dc3;hb=40dd73bcfa7625773e1e0cc049134f9d7107bccc;hp=4516b8c150be94338587d2f246ff684dd6873eec;hpb=825fc4892ee7ec3cff83b2754cd921c0157e62f8;p=vpp.git diff --git a/test/debug.py b/test/debug.py index 4516b8c150b..d1c89c66f3c 100644 --- a/test/debug.py +++ b/test/debug.py @@ -2,11 +2,12 @@ import os import pexpect +import sys gdb_path = '/usr/bin/gdb' -def spawn_gdb(binary_path, core_path, logger): +def spawn_gdb(binary_path, core_path): if os.path.isfile(gdb_path) and os.access(gdb_path, os.X_OK): # automatically attach gdb gdb_cmdline = "%s %s %s" % (gdb_path, binary_path, core_path) @@ -19,5 +20,5 @@ def spawn_gdb(binary_path, core_path, logger): if gdb.isalive(): raise Exception("GDB refused to die...") else: - logger.error("Debugger '%s' does not exist or is not an " - "executable.." % gdb_path) + sys.stderr.write("Debugger '%s' does not exist or is not " + "an executable..\n" % gdb_path)