[PATCH] D15967: Turn off lldb debug tuning by default for FreeBSD

Dimitry Andric via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 7 13:44:40 PST 2016


dim created this revision.
dim added reviewers: emaste, probinson.
dim added a subscriber: cfe-commits.
Herald added a subscriber: emaste.

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.

http://reviews.llvm.org/D15967

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

Index: test/Driver/debug-options.c
===================================================================
--- test/Driver/debug-options.c
+++ test/Driver/debug-options.c
@@ -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.
Index: lib/Driver/ToolChains.h
===================================================================
--- lib/Driver/ToolChains.h
+++ lib/Driver/ToolChains.h
@@ -730,9 +730,6 @@
   // 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;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15967.44252.patch
Type: text/x-patch
Size: 1062 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160107/ea355c9e/attachment.bin>


More information about the cfe-commits mailing list