]> granicus.if.org Git - clang/commitdiff
Turn off lldb debug tuning by default for FreeBSD
authorDimitry Andric <dimitry@andric.com>
Thu, 7 Jan 2016 22:09:47 +0000 (22:09 +0000)
committerDimitry Andric <dimitry@andric.com>
Thu, 7 Jan 2016 22:09:47 +0000 (22:09 +0000)
Summary:
This is the clang part of D15966.  In rL256104, debugger tuning was
added to the clang driver, and again the default for FreeBSD was set to
lldb.  The default needs to be gdb instead.

Reviewers: emaste, probinson

Subscribers: cfe-commits, emaste

Differential Revision: http://reviews.llvm.org/D15967

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@257104 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains.h
test/Driver/debug-options.c

index f4b6b1529b30cfb60187b88a2383ee9dc2158e38..b6fd42696ed4c8e6d8dfd8a6e1ebfcdaed1e68fd 100644 (file)
@@ -730,9 +730,6 @@ public:
   // Until dtrace (via CTF) and LLDB can deal with distributed debug info,
   // FreeBSD defaults to standalone/full debug info.
   bool GetDefaultStandaloneDebug() const override { return true; }
-  llvm::DebuggerKind getDefaultDebuggerTuning() const override {
-    return llvm::DebuggerKind::LLDB;
-  }
 
 protected:
   Tool *buildAssembler() const override;
index 72d0136a8c403c0a6987ed0b501f96356c22a09e..0ccacd0fc6c7cf2e4429b34e5d340d507b55430d 100644 (file)
@@ -32,7 +32,7 @@
 // RUN:             | FileCheck -check-prefix=G_DARWIN %s
 
 // RUN: %clang -### -c -g %s -target x86_64-pc-freebsd10.0 2>&1 \
-// RUN:             | FileCheck -check-prefix=G_LLDB %s
+// RUN:             | FileCheck -check-prefix=G_GDB %s
 
 // On the PS4, -g defaults to -gno-column-info, and we always generate the
 // arange section.