Re: [PATCH] Add WITH_DEBUG_FILES knob to enable separate debug files

2012-12-22 Thread Alfred Perlstein
On 12/22/12 8:13 PM, Alfred Perlstein wrote: On 12/22/12 6:14 PM, Jan Beich wrote: Ed Maste writes: When this knob is set standalone debug files for shared objects are built and installed in /usr/lib/debug/.debug. GDB searches this path for debug data. [...] What about ports? They are not a

Re: [PATCH] Add WITH_DEBUG_FILES knob to enable separate debug files

2012-12-22 Thread Alfred Perlstein
On 12/22/12 6:14 PM, Jan Beich wrote: Ed Maste writes: When this knob is set standalone debug files for shared objects are built and installed in /usr/lib/debug/.debug. GDB searches this path for debug data. [...] What about ports? They are not allowed to install outside of PREFIX. $ cd

Re: [PATCH] Add WITH_DEBUG_FILES knob to enable separate debug files

2012-12-22 Thread Jan Beich
Ed Maste writes: > When this knob is set standalone debug files for shared objects are > built and installed in /usr/lib/debug/.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.

Re: [PATCH] Add WITH_DEBUG_FILES knob to enable separate debug files

2012-12-22 Thread Alfred Perlstein
On 12/22/12 8:46 AM, Ed Maste wrote: When this knob is set standalone debug files for shared objects are built and installed in /usr/lib/debug/.debug. GDB searches this path for debug data. The -g flag is automatically added to CFLAGS if debug files are enabled (but the shared objects are still

Re: malloc+utrace, tracking memory leaks in a running program.

2012-12-22 Thread Alfred Perlstein
On 12/22/12 8:56 AM, Ed Maste wrote: On 21 December 2012 22:37, Alfred Perlstein wrote: Is it time to start installing with some form of debug symbols? This would help us also with dtrace. I just posted a patch to add a knob to build and install standalone debug files. My intent is that we w

Re: malloc+utrace, tracking memory leaks in a running program.

2012-12-22 Thread Ed Maste
On 21 December 2012 22:37, Alfred Perlstein wrote: > Is it time to start installing with some form of debug symbols? This would > help us also with dtrace. I just posted a patch to add a knob to build and install standalone debug files. My intent is that we will build releases with this enabled

[PATCH] Add WITH_DEBUG_FILES knob to enable separate debug files

2012-12-22 Thread Ed Maste
When this knob is set standalone debug files for shared objects are built and installed in /usr/lib/debug/.debug. GDB searches this path for debug data. The -g flag is automatically added to CFLAGS if debug files are enabled (but the shared objects are still installed stripped, if DEBUG_FLAGS is