[PATCH] Set a debugger "target" to guide DWARF choices

David Blaikie dblaikie at gmail.com
Mon May 11 11:34:33 PDT 2015


On Mon, May 11, 2015 at 7:40 AM, Ed Maste <emaste at freebsd.org> wrote:

> ================
> Comment at: lib/CodeGen/AsmPrinter/DwarfDebug.cpp:213
> @@ +212,3 @@
> +  if (Asm->TM.Options.DebuggerTuning == DebuggerKind::Default) {
> +    if (IsDarwin)
> +      Asm->TM.Options.DebuggerTuning = DebuggerKind::LLDB;
> ----------------
> Note that on FreeBSD as on Darwin we set `-fstandalone-debug` by default.
>

On Darwin this is for two reasons:

1) LLDB is the default debugger & can't cope with this debug info
2) Apple ships a device driver API without debug info - that API includes a
base class that drivers will derive from. The base class's debug info is
missing in this situation.

What's the motivation on FreeBSD? Is LLDB the default debugger there, or do
you have an API issue like (2) above? Or something else?

(considered fixing LLDB?)


>
> http://reviews.llvm.org/D8506
>
> EMAIL PREFERENCES
>   http://reviews.llvm.org/settings/panel/emailpreferences/
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150511/9d3285a9/attachment.html>


More information about the llvm-commits mailing list