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

2013-03-26 Thread Ed Maste
On 22 December 2012 11:46, 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. I'm picking this up again - here is a new version of the patch, which should address the base/

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

2012-12-24 Thread Alfred Perlstein
On 12/23/12 8:42 PM, Mark Johnston wrote: I have an extension of Ed's patch which handles bsd.prog.mk at http://people.freebsd.org/~markj/patches/debug_symbols/debug_symbols_full.patch I am probably doing something wrong, but I am still getting that build error: BFD: __vdso_gettimeofday.So:

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

2012-12-23 Thread Mark Johnston
On Dec 23, 2012 10:18 PM, "Garrett Cooper" wrote: > > On Sat, Dec 22, 2012 at 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

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

2012-12-23 Thread Alfred Perlstein
On 12/23/12 8:36 PM, Mark Johnston wrote: On Dec 23, 2012 10:55 PM, "Alfred Perlstein" > wrote: > > On 12/23/12 7:20 PM, Garrett Cooper wrote: >> >> On Sat, Dec 22, 2012 at 9:42 PM, Alfred Perlstein > wrote: >> >> ... >> lfred/freebsd/tmp/usr/bin/ld

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

2012-12-23 Thread Mark Johnston
On Dec 23, 2012 10:55 PM, "Alfred Perlstein" wrote: > > On 12/23/12 7:20 PM, Garrett Cooper wrote: >> >> On Sat, Dec 22, 2012 at 9:42 PM, Alfred Perlstein wrote: >> >> ... >> lfred/freebsd/tmp/usr/bin/ld: __vdso_gettimeofday.So: >> invalid SHT_GROUP entry >> /usr/obj/usr/home/alfred/freebsd/tmp/u

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

2012-12-23 Thread Adrian Chadd
On 23 December 2012 19:55, Alfred Perlstein wrote: > I had "WITH_CTF=yes" in my /etc/make.conf so this appears to be fallout of > WITH_CTF=yes. Basically this seems incompatible with dtrace unless I figure > it out further. Oh god, please figure this mess out. I'll take you out for drinks if yo

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

2012-12-23 Thread Alfred Perlstein
On 12/23/12 7:20 PM, Garrett Cooper wrote: On Sat, Dec 22, 2012 at 9:42 PM, Alfred Perlstein wrote: ... lfred/freebsd/tmp/usr/bin/ld: __vdso_gettimeofday.So: invalid SHT_GROUP entry /usr/obj/usr/home/alfred/freebsd/tmp/usr/bin/ld: __vdso_gettimeofday.So: no group info for section .text.__vdso_g

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

2012-12-23 Thread Garrett Cooper
On Sat, Dec 22, 2012 at 9:42 PM, Alfred Perlstein wrote: ... > Buildworld breaks with this for me using my patch, no idea what this all > means yet. Will look into it: > > exer.c -o nslexer.So > ctfconvert -L VERSION crypt_xdr.o > ctfconvert -L VERSION crypt_clnt.o > ctfconvert -L VERSION nspar

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

2012-12-23 Thread Garrett Cooper
On Sat, Dec 22, 2012 at 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. >> >> [.

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

2012-12-23 Thread Garrett Cooper
On Sun, Dec 23, 2012 at 5:24 PM, Eitan Adler wrote: > On 23 December 2012 16:47, Garrett Cooper wrote: >> I would probably setup things in such a way that the old default >> is kept though because I'm sure that there's someone out there that's >> using it (even it it's not *the best* default

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

2012-12-23 Thread Eitan Adler
On 23 December 2012 16:47, Garrett Cooper wrote: > I would probably setup things in such a way that the old default > is kept though because I'm sure that there's someone out there that's > using it (even it it's not *the best* default per how we prefix things > in ports). If the old defaults

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

2012-12-23 Thread Alfred Perlstein
On 12/23/12 1:47 PM, Garrett Cooper wrote: On Sun, Dec 23, 2012 at 8:26 AM, Ed Maste wrote: On 22 December 2012 23:13, Alfred Perlstein wrote: I have a patch for this. I am building world to see what happens, if you want to try it, or comment on it, please let me know. Changes are: b

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

2012-12-23 Thread Garrett Cooper
On Sun, Dec 23, 2012 at 8:26 AM, Ed Maste wrote: > On 22 December 2012 23:13, Alfred Perlstein wrote: >> I have a patch for this. I am building world to see what happens, if you >> want to try it, or comment on it, please let me know. >> >> Changes are: >> base DEBUGDIR on LIBDIR for ports

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

2012-12-23 Thread Ed Maste
On 22 December 2012 23:13, Alfred Perlstein wrote: > I have a patch for this. I am building world to see what happens, if you > want to try it, or comment on it, please let me know. > > Changes are: > base DEBUGDIR on LIBDIR for ports > create intermediate directories for debug objs.

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

[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