OSDN Git Service

debugger: don't show warning about release builds on Mac
authorhjk <qtc-committer@nokia.com>
Thu, 13 Oct 2011 16:06:58 +0000 (18:06 +0200)
committerhjk <qthjk@ovi.com>
Thu, 13 Oct 2011 16:24:28 +0000 (18:24 +0200)
Change-Id: Icc0e4c1b3d08d0373ea0401fca5c05b23ccf4aac
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
src/plugins/debugger/gdb/localplaingdbadapter.cpp

index a71cb44..66fcecc 100644 (file)
@@ -128,6 +128,9 @@ void LocalPlainGdbAdapter::shutdownAdapter()
 
 void LocalPlainGdbAdapter::checkForReleaseBuild()
 {
+#ifndef Q_OS_MAC
+    // There is usually no objdump on Mac, and if there is,
+    // there are no .debug_info sections.
     QString objDump = _("objdump");
     // Windows: Locate objdump in the debuggee's (MinGW) environment
     if (ProjectExplorer::Abi::hostAbi().os() == ProjectExplorer::Abi::WindowsOS
@@ -166,6 +169,7 @@ void LocalPlainGdbAdapter::checkForReleaseBuild()
            tr("This does not seem to be a \"Debug\" build.\n"
               "Setting breakpoints by file name and line number may fail."));
     }
+#endif
 }
 
 void LocalPlainGdbAdapter::interruptInferior()