HEADS UP: merged llvm/clang 3.4
Craig Rodrigues
rodrigc at FreeBSD.org
Fri Mar 28 20:25:45 UTC 2014
On Fri, Mar 28, 2014 at 11:11 AM, Dimitry Andric <dim at freebsd.org> wrote:
>
> You need to rebuild the system anyway, if you want debug information, so
> nothing changed? If you insist on wanting to use the crummy gdb in
> base, which should have been axed years ago, then just use
> DEBUG_FLAGS=-gdwarf-2, otherwise use ports gdb, which any sensible
> person should do.
>
> -Dimitry
>
This kind of thing is OK for HEAD, but to me seems like something which is
not OK for a stable branch.
Before your change: "cc -g" from base + gdb in base = can debug
After your change: "cc -g" from base + gdb in base = cannot debug
Is it possible to modify clang in base, so that
on the stable branches, "cc -g" will output dwarf-2 instead of
dwarf-4 by default?
I understand that installing gdb from ports, changing compiler flags
from -g to -gdwarf-2 in Makefiles,
or switching to compiling with gcc are all reasonable workarounds,
but this seems a bit like POLA for a stable branch.
--
Craig
More information about the freebsd-stable
mailing list