[PATCH] Add WITH_DEBUG_FILES knob to enable separate debug files
Jan Beich
jbeich at tormail.org
Sun Dec 23 02:16:51 UTC 2012
Ed Maste <emaste at freebsd.org> writes:
> When this knob is set standalone debug files for shared objects are
> built and installed in /usr/lib/debug/<so pathname>.debug. GDB
> searches this path for debug data.
[...]
> - Change GDB's standalone debug file path to the default /usr/lib/debug.
[...]
> diff --git a/etc/mtree/BSD.usr.dist b/etc/mtree/BSD.usr.dist
> index 336d055..7b428d5 100644
> --- a/etc/mtree/BSD.usr.dist
> +++ b/etc/mtree/BSD.usr.dist
> @@ -18,6 +18,22 @@
> aout
> ..
> ..
> + debug
> + boot
> + ..
> + lib
> + geom
> + ..
> + ..
> + usr
> + lib
> + engines
> + ..
> + ..
> + lib32
> + ..
> + ..
> + ..
> dtrace
> ..
> engines
What about ports? They are not allowed to install outside of PREFIX.
$ cd multimedia/cuse4bsd-kmod
$ make install PREFIX=/tmp/aaa PKG_DBDIR=/tmp/pkg WITH_DEBUG=
[...]
install -C -o root -g wheel -m 444 libcuse4bsd.a /tmp/aaa/lib
install -s -o root -g wheel -m 444 libcuse4bsd.so.1 /tmp/aaa/lib
install -o root -g wheel -m 444 libcuse4bsd.so.1.debug /usr/lib/debug/tmp/aaa/lib
install: /usr/lib/debug/tmp/aaa/lib: No such file or directory
*** [_libinstall] Error code 71
More information about the freebsd-hackers
mailing list