diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-21 14:58:59 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-21 14:58:59 +0200 |
commit | 4fdccf0281cb9158988e504151d6b7bfb89b465c (patch) | |
tree | 5b52e9dd42d8180ac30474bee7c64f938a5b5188 | |
parent | af6c31428ca04e05f982b730d24c621fe54e1372 (diff) | |
download | abrt-4fdccf0281cb9158988e504151d6b7bfb89b465c.tar.gz abrt-4fdccf0281cb9158988e504151d6b7bfb89b465c.tar.xz abrt-4fdccf0281cb9158988e504151d6b7bfb89b465c.zip |
lib/Plugins/CCpp.cpp: add a workaround for gdb bug
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | lib/Plugins/CCpp.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Plugins/CCpp.cpp b/lib/Plugins/CCpp.cpp index 3fedd947..0e0eb3b3 100644 --- a/lib/Plugins/CCpp.cpp +++ b/lib/Plugins/CCpp.cpp @@ -169,6 +169,11 @@ static void GetBacktrace(const std::string& pDebugDumpDir, std::string& pBacktra dd.LoadText(FILENAME_UID, UID); } + // Workaround for + // http://sourceware.org/bugzilla/show_bug.cgi?id=9622 + unsetenv("TERM"); + putenv((char*)"TERM=dumb"); + char* args[9]; args[0] = (char*)"gdb"; args[1] = (char*)"-batch"; |