Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Feb 2024 17:54:25 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        FreeBSD Toolchain <freebsd-toolchain@freebsd.org>
Subject:   system clang's -debugger-tuning setting: Is the default gdb setting intended?
Message-ID:  <F50B9D9E-2602-4737-B11E-E14C9DEE89A9@yahoo.com>
References:  <F50B9D9E-2602-4737-B11E-E14C9DEE89A9.ref@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
[Curiosity, not an objection.]

It appears that most likely all FreeBSD platforms get the gdb
setting by default . . .

armv7:

# cc -v main.c
FreeBSD clang version 17.0.6 (https://github.com/llvm/llvm-project.git =
llvmorg-17.0.6-0-g6009708b4367)
Target: armv7-unknown-freebsd15.0-gnueabihf
. . . -debugger-tuning=3Dgdb . . . -x c main.c
. . .

aarch64:

# cc -v main.c
FreeBSD clang version 17.0.6 (https://github.com/llvm/llvm-project.git =
llvmorg-17.0.6-0-g6009708b4367)
Target: aarch64-unknown-freebsd15.0
. . . -debugger-tuning=3Dgdb . . . -x c main.c
. . .

amd64:

# cc -v main.c
FreeBSD clang version 17.0.6 (https://github.com/llvm/llvm-project.git =
llvmorg-17.0.6-0-g6009708b4367)
Target: x86_64-unknown-freebsd15.0
. . . -debugger-tuning=3Dgdb . . . -x c main.c

FYI:

QUOTE of =
https://clang.llvm.org/docs/UsersManual.html#controlling-debugger-tuning
Controlling Debugger =E2=80=9CTuning=E2=80=9D
While Clang generally emits standard DWARF debug info =
(http://dwarfstd.org), different debuggers may know how to take =
advantage of different specific DWARF features. You can =E2=80=9Ctune=E2=80=
=9D the debug info for one of several different debuggers.

-ggdb, -glldb, -gsce, -gdbx
Tune the debug info for the gdb, lldb, Sony PlayStation=C2=AE debugger, =
or dbx, respectively. Each of these options implies -g. (Therefore, if =
you want both -gline-tables-only and debugger tuning, the tuning option =
must come first.)
END QUOTE

=3D=3D=3D
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F50B9D9E-2602-4737-B11E-E14C9DEE89A9>