From 7f7fdcca8fabccb21967f0b12d68009ff6247acd Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Wed, 3 Jan 2007 07:44:30 +0000 Subject: [PATCH] A bit more debugging printf's. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32832 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/bugpoint/ToolRunner.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/bugpoint/ToolRunner.cpp b/tools/bugpoint/ToolRunner.cpp index 360b9c53708..35f27db9cab 100644 --- a/tools/bugpoint/ToolRunner.cpp +++ b/tools/bugpoint/ToolRunner.cpp @@ -458,6 +458,11 @@ int GCC::ExecuteProgram(const std::string &ProgramFile, GCCArgs.push_back(0); // NULL terminator std::cout << "" << std::flush; + DEBUG(std::cerr << "\nAbout to run:\t"; + for (unsigned i=0, e = GCCArgs.size()-1; i != e; ++i) + std::cerr << " " << GCCArgs[i]; + std::cerr << "\n"; + ); if (RunProgramWithTimeout(GCCPath, &GCCArgs[0], sys::Path(), sys::Path(), sys::Path())) { ProcessFailure(GCCPath, &GCCArgs[0]); @@ -545,6 +550,11 @@ int GCC::MakeSharedObject(const std::string &InputFile, FileType fileType, std::cout << "" << std::flush; + DEBUG(std::cerr << "\nAbout to run:\t"; + for (unsigned i=0, e = GCCArgs.size()-1; i != e; ++i) + std::cerr << " " << GCCArgs[i]; + std::cerr << "\n"; + ); if (RunProgramWithTimeout(GCCPath, &GCCArgs[0], sys::Path(), sys::Path(), sys::Path())) { ProcessFailure(GCCPath, &GCCArgs[0]); -- 2.34.1