Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Oct 2015 15:17:38 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        John Baldwin <jhb@freebsd.org>
Cc:        freebsd-arch <freebsd-arch@freebsd.org>
Subject:   Re: Retiring in-tree GDB
Message-ID:  <6C0A00DD-E377-4E13-B9CA-880D4A288EFE@bsdimp.com>
In-Reply-To: <2678091.es0AGJQ0Ou@ralph.baldwin.cx>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]

> On Oct 20, 2015, at 2:36 PM, John Baldwin <jhb@freebsd.org> wrote:
> There are some issues still with devel/gdb: namely it does not currently
> support some of the platforms supported by our in tree gdb such as arm and
> mips.  For these platforms I think the in-tree gdb will need to remain until
> there is a suitable alternative.

What’s the lift for adding mips and arm support? Can we leverage what we
have done for gcc/binutils ports at all and/or what we have in the tree today?

> However, I would like to propose that we retire the in-tree GDB for some of
> our platforms (namely x86) for 11.  In particular, I think we should default
> to enabling lldb and disabling gdb for platforms that meet the following
> criteria:
> 
> 1) devel/gdb works including thread and kgdb support
> 2) lldb works
> 
> We could perhaps be more aggressive and handle lldb and gdb toggles
> independently, but I think we want to ship some sort of userland debugger
> out of the box on all of our platforms.  The question I think might be if
> we end up with platforms where 1) is true but 2) is not (such as powerpc).
> 
> I believe that these conditions are only true for x86 currently.
> 
> Comments?

I think you are making this way too complicated.

I think we should just turn gdb off for all platforms. Leave it off by default.
For arm it’s an OK debugger, but not great. For mips it is barely usable
in its current state. So there’s not a huge loss in doing this.

For platforms where lldb works, turn it on.

Have devel/gdb available for as many platforms as it works on.

Warner


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJWJq9zAAoJEGwc0Sh9sBEAE/0P/iWXP2vNpl24QgRf1GEdKuWn
WorpibEtS9YiGKKR+5kIFMubmM7QCn7eGvdQfQkWHqRThnSlVqpJp0UqTThl10Cg
T9M8i4qA+2qPeXgs6L+elwqXX6gy+vw5f0UV31y45fc9Rrr93vYEWCXHLT/nSGM9
EUZSRMMsP/M3Yw/nMX8XChSw/spite2/QDCtBUi+7wMPd1QC6eFAx6w8w0MhRFR6
SaPGyjiZyfGxUFd5UoGmzjRcuzVQdzK4Kp4ELzhUjSr+aroecNftHSTaopV+HW9j
fIQEhZAPAR3FgFWgH+7Cb2SOjqg0eplvxNVzuXMKolhUF7+wvvbjxqR0+x4dQX+z
BylhzeY5PEqyHleuszT6skD2Ij0Rhg7Pf2Si2vnzyvlr3F7vw0F5aYPG9Q/hl6xV
PMnnPEP8wTyH0NAIe2XhQAmHMnunFIe8unS1f8dORBeMHrJs9HIUPZvvLsoUFzr3
hz7rEo2gVx//tclWgmjJZ+1w1EsFaG7g8XsK8hnw6U4VsQUvB2am0ukJE8picFca
iYxT4vtafIPY+/v/wvyhC3Dw5OtubjKaR3QzP6SZctnQY/2c5VwO3PDrYJ1zYtBy
uLLoR+gCO5VmL5pBnHXgEewvl5GgwIbzdYh7AMmhavceOKbeyRJNwe/MXwefJIDu
eSVw5gmIQRVEtb55VVM7
=sex3
-----END PGP SIGNATURE-----
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6C0A00DD-E377-4E13-B9CA-880D4A288EFE>