Should Druntime and Phobos be built with -gs ?

2012-12-03 Thread Vladimir Panteleev
I've recently updated my watchdog wrapper script which starts D services to use gdb and disable rt_trapExceptions. My intention was to bypass D's standard exception handler and let gdb handle uncaught exceptions, and perhaps print better stack traces including function arguments and line number

Re: Should Druntime and Phobos be built with -gs ?

2012-12-04 Thread Jacob Carlborg
On 2012-12-04 08:47, Vladimir Panteleev wrote: I've recently updated my watchdog wrapper script which starts D services to use gdb and disable rt_trapExceptions. My intention was to bypass D's standard exception handler and let gdb handle uncaught exceptions, and perhaps print better stack traces

Re: Should Druntime and Phobos be built with -gs ?

2012-12-05 Thread Vladimir Panteleev
On Tuesday, 4 December 2012 at 12:11:37 UTC, Jacob Carlborg wrote: Isn't it better to ship Phobos and druntime with debug versions of the libraries as well. Yes, providing something immediately usable with the -debuglib switch would be nice (I'd imagine a build without -O or -inline). However

Re: Should Druntime and Phobos be built with -gs ?

2012-12-05 Thread Brad Roberts
On 12/5/2012 10:32 AM, Vladimir Panteleev wrote: > On Tuesday, 4 December 2012 at 12:11:37 UTC, Jacob Carlborg wrote: >> Isn't it better to ship Phobos and druntime with debug versions of the >> libraries as well. > > Yes, providing something immediately usable with the -debuglib switch would >

Re: Should Druntime and Phobos be built with -gs ?

2012-12-05 Thread Vladimir Panteleev
On Thursday, 6 December 2012 at 03:31:42 UTC, Brad Roberts wrote: On 12/5/2012 10:32 AM, Vladimir Panteleev wrote: On Tuesday, 4 December 2012 at 12:11:37 UTC, Jacob Carlborg wrote: Isn't it better to ship Phobos and druntime with debug versions of the libraries as well. Yes, providing someth

Re: Should Druntime and Phobos be built with -gs ?

2012-12-06 Thread deadalnix
On Thursday, 6 December 2012 at 03:31:42 UTC, Brad Roberts wrote: On 12/5/2012 10:32 AM, Vladimir Panteleev wrote: On Tuesday, 4 December 2012 at 12:11:37 UTC, Jacob Carlborg wrote: Isn't it better to ship Phobos and druntime with debug versions of the libraries as well. Yes, providing someth