February 10, 2006
In article <dsiu9h$1u93$1@digitaldaemon.com>, Walter Bright says...
>
>
>"pragma" <pragma_member@pathlink.com> wrote in message news:dsit7q$1rfc$1@digitaldaemon.com...
>> But it does bring to mind one question: will this mean that stack traces
>> in D
>> will only be available in debug builds?
>
>Yup.
>

Works for me.  :)

- Eric Anderton at yahoo
February 11, 2006
In article <dsim0l$1hm3$2@digitaldaemon.com>, Walter Bright says...
>
>Oh darn.

A simple solution would be to add another option -script (or just -s), with the
syntax

dmd -s filename [args...]

Another problem with the scripting functionality is that it currently requires scripts to be named *.d, which can be a bit awkward for scripts. The -s option can be designed to work around this as well.

Also note that arguments given in-file are problematic, since the line
#!/usr/bin/dmd -debug=3 -inline -s myarg1 myarg2
will give the entire string "-debug=3 -inline -s myarg1 myarg2" as ONE argument
to DMD.

Nick


February 11, 2006
On Fri, 10 Feb 2006 13:22:15 -0500, Walter Bright <newshound@digitalmars.com> wrote:

>
> "Jarrett Billingsley" <kb3ctd2@yahoo.com> wrote in message
> news:dsib37$16ed$1@digitaldaemon.com...
>> "Walter Bright" <newshound@digitalmars.com> wrote in message
>> news:dshdns$a6s$1@digitaldaemon.com...
>>> Added features to make D useable as a scripting language on unix.
>>>
>>> http://www.digitalmars.com/d/changelog.html
>>
>> Oh happiness :)  Only problem is, I'll have to recompile phobos as, as far
>> as I know, shinchiro hasn't made a new version of the backtrace phobos
>> yet.. _damn_, have I become dependent on that sweet, sweet backtrace!  Not
>> just for AVs, but for all kinds of exceptions..
>
> I plan on integrating shinchiro's stuff. It's just too cool.
>

Hope it's the next version :D
February 11, 2006
"Chris Miller" <chris@dprogramming.com> wrote in message news:op.s4th7rvapo9bzi@moe...
> On Fri, 10 Feb 2006 13:22:15 -0500, Walter Bright <newshound@digitalmars.com> wrote:
>> I plan on integrating shinchiro's stuff. It's just too cool.
>>
>
> Hope it's the next version :D

No, not yet :-(



February 12, 2006
In article <dsivqu$222u$1@digitaldaemon.com>, Jarrett Billingsley says...
>
>"pragma" <pragma_member@pathlink.com> wrote in message
>> But it does bring to mind one question: will this mean that stack traces
>> in D
>> will only be available in debug builds?
>
>When else would you need one?  A stack dump is a debugging tool, no?  I doubt that a stack dump would be of much use to normal users (unless, of course, the normal users for your program are *nixheads, in which case they're _all_ developers and would understand what a stack dump is, but if your program runs in *nix, there's a 99.999% probably that it's open-source anyway, so they can build a debug build and get a stack dump if they want one ;)  whoo).
>

If the dump could be captured to a char[] a program could send it into a bug tracking database of some kind.

I can just see it now:

"Mommy mommy, I stubbed my tow on a null pointer! Can you patch me up??"  :-P


February 13, 2006
pragma wrote:
> In article <dsiu9h$1u93$1@digitaldaemon.com>, Walter Bright says...
> 
>>
>>"pragma" <pragma_member@pathlink.com> wrote in message news:dsit7q$1rfc$1@digitaldaemon.com...
>>
>>>But it does bring to mind one question: will this mean that stack traces in D
>>>will only be available in debug builds?
>>
>>Yup. 
>>
> 
> 
> Works for me.  :)
> 
> - Eric Anderton at yahoo

OMG... has anyone worked with JBOSS?  Stacktraces are ridiculous there in release builds.  I'm so glad stack traces are NO for release.

-- 
Regards,
James Dunne
February 13, 2006
Jarrett Billingsley wrote:
> "Jarrett Billingsley" <kb3ctd2@yahoo.com> wrote in message news:dsib37$16ed$1@digitaldaemon.com...
> 
>>Only problem is, I'll have to recompile phobos
> 
> 
> And I've done just that.  All credits of course go to shinchiro, and also to James Dunne for hosting my crap :)
> 
> http://jamesdunne.no-ip.org/nonagon/phobos_backtrace_146.zip 
> 
> 

Oh yeah, I forgot... Linux just works! =P

-- 
Regards,
James Dunne
February 13, 2006
Walter Bright wrote:
> "Jarrett Billingsley" <kb3ctd2@yahoo.com> wrote in message news:dsib37$16ed$1@digitaldaemon.com...
> 
>>"Walter Bright" <newshound@digitalmars.com> wrote in message news:dshdns$a6s$1@digitaldaemon.com...
>>
>>>Added features to make D useable as a scripting language on unix.
>>>
>>>http://www.digitalmars.com/d/changelog.html
>>
>>Oh happiness :)  Only problem is, I'll have to recompile phobos as, as far as I know, shinchiro hasn't made a new version of the backtrace phobos yet.. _damn_, have I become dependent on that sweet, sweet backtrace!  Not just for AVs, but for all kinds of exceptions..
> 
> 
> I plan on integrating shinchiro's stuff. It's just too cool. 
> 
> 

Any word on Linux support for backtraces?

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/MU/S d-pu s:+ a-->? C++++$ UL+++ P--- L+++ !E W-- N++ o? K? w--- O M--@ V? PS PE Y+ PGP- t+ 5 X+ !R tv-->!tv b- DI++(+) D++ G e++>e h>--->++ r+++ y+++
------END GEEK CODE BLOCK------

James Dunne
February 13, 2006
"James Dunne" <james.jdunne@gmail.com> wrote in message news:dsq9fq$29fd$1@digitaldaemon.com...
> Walter Bright wrote:
>> I plan on integrating shinchiro's stuff. It's just too cool.
> Any word on Linux support for backtraces?

I imagine something analogous would work with Linux, but I haven't investigated it.


February 13, 2006
Walter Bright wrote:

> 
> "James Dunne" <james.jdunne@gmail.com> wrote in message news:dsq9fq$29fd$1@digitaldaemon.com...
>> Walter Bright wrote:
>>> I plan on integrating shinchiro's stuff. It's just too cool.
>> Any word on Linux support for backtraces?
> 
> I imagine something analogous would work with Linux, but I haven't investigated it.

As pointed out by Dunne further down, stacktraces just works, as long as Dwarf debug info is correctly available and gdb is patched for D mangling.