www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - phobos.lib with backtrace

reply "shinichiro.h" <s31552 mail.ecc.u-tokyo.ac.jp> writes:
Hi,

I hacked phobos.lib. Now it dump backtrace when D exception occured.

http://shinh.skr.jp/d/backtrace.tgz

How to use is in README in the archive.

FYI.

------------------
 shinichiro.h
  hamaji _at_ nii.ac.jp
  http://shinh.skr.jp/
Jan 26 2006
next sibling parent reply Tom S <h3r3tic remove.mat.uni.torun.pl> writes:
shinichiro.h wrote:
 Hi,
 
 I hacked phobos.lib. Now it dump backtrace when D exception occured.
 
 http://shinh.skr.jp/d/backtrace.tgz
 
 How to use is in README in the archive.
 
 FYI.

Wow man, this is excellent ! Thanks :) The README file in the archive is empty, but I've managed to install the 'hack' without any problems. It could be even better if the stack trace included the classname of the exception and its toString value. PS. The ng server somehow ate my first reply which I made like 2h ago :( -- -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/M 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-- b DI- D+ G e>+++ h>++ !r !y ------END GEEK CODE BLOCK------ Tomasz Stachowiak /+ a.k.a. h3r3tic +/
Jan 26 2006
parent Tom S <h3r3tic remove.mat.uni.torun.pl> writes:
shinichiro.h wrote:
 Thanks to your report and suggestion. I updated the package:
 
 http://shinh.skr.jp/d/backtrace.tgz
 
 Now it includes the correct README, and phobos.lib outputs
 the classname of the exception and its toString value.

Great ! Thanks a lot :D Kris wrote:
 This sounds great.
 
 Can you perhaps post it in a zip file also, please? Zip is having a hard 
 time opening that particular file.

That's probably because the file is actually a TAR-GZ archive. Changing the extension to .tar.gz worked for me. -- -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/M 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-- b DI- D+ G e>+++ h>++ !r !y ------END GEEK CODE BLOCK------ Tomasz Stachowiak /+ a.k.a. h3r3tic +/
Jan 26 2006
prev sibling next sibling parent reply "shinichiro.h" <s31552 mail.ecc.u-tokyo.ac.jp> writes:
 The README file in the archive is empty,

oops!
 It could be even better if the stack trace included the classname of the 
 exception and its toString value.

Thanks to your report and suggestion. I updated the package: http://shinh.skr.jp/d/backtrace.tgz Now it includes the correct README, and phobos.lib outputs the classname of the exception and its toString value.
Jan 26 2006
parent "Kris" <fu bar.com> writes:
This sounds great.

Can you perhaps post it in a zip file also, please? Zip is having a hard 
time opening that particular file.



"shinichiro.h" <s31552 mail.ecc.u-tokyo.ac.jp> wrote in message 
news:20060127043240.0e82a1d0.s31552 mail.ecc.u-tokyo.ac.jp...
 The README file in the archive is empty,

oops!
 It could be even better if the stack trace included the classname of the
 exception and its toString value.

Thanks to your report and suggestion. I updated the package: http://shinh.skr.jp/d/backtrace.tgz Now it includes the correct README, and phobos.lib outputs the classname of the exception and its toString value.

Jan 26 2006
prev sibling next sibling parent reply "shinichiro.h" <s31552 mail.ecc.u-tokyo.ac.jp> writes:
 Can you perhaps post it in a zip file also, please? Zip is having a hard 
 time opening that particular file.

I uploaded in zip format. Is this ok? http://shinh.skr.jp/d/backtrace.zip
Jan 26 2006
parent reply "Kris" <fu bar.com> writes:
thanks!


"shinichiro.h" <s31552 mail.ecc.u-tokyo.ac.jp> wrote in message 
news:20060127052704.57e6b5ef.s31552 mail.ecc.u-tokyo.ac.jp...
 Can you perhaps post it in a zip file also, please? Zip is having a hard
 time opening that particular file.

I uploaded in zip format. Is this ok? http://shinh.skr.jp/d/backtrace.zip

Jan 26 2006
parent "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
"Kris" <fu bar.com> wrote in message news:drbbtv$1v5b$1 digitaldaemon.com...
 thanks!


 "shinichiro.h" <s31552 mail.ecc.u-tokyo.ac.jp> wrote in message 
 news:20060127052704.57e6b5ef.s31552 mail.ecc.u-tokyo.ac.jp...
 Can you perhaps post it in a zip file also, please? Zip is having a hard
 time opening that particular file.

I uploaded in zip format. Is this ok? http://shinh.skr.jp/d/backtrace.zip


This is sweet. This is even sweeter since VS doesn't break to the correct line on an access violation. Woot!
Jan 26 2006
prev sibling next sibling parent "Walter Bright" <newshound digitalmars.com> writes:
"shinichiro.h" <s31552 mail.ecc.u-tokyo.ac.jp> wrote in message 
news:20060126181754.28e296cf.s31552 mail.ecc.u-tokyo.ac.jp...
 Hi,

 I hacked phobos.lib. Now it dump backtrace when D exception occured.

 http://shinh.skr.jp/d/backtrace.tgz

 How to use is in README in the archive.

 FYI.

This is nice work. But I need to know what license you're using for it? See www.digitalmars.com/d/contributions.html
Jan 29 2006
prev sibling parent reply "shinichiro.h" <s31552 mail.ecc.u-tokyo.ac.jp> writes:
Hi,

 I hacked phobos.lib. Now it dump backtrace when D exception occured.

 http://shinh.skr.jp/d/backtrace.tgz

 How to use is in README in the archive.

 FYI.

This is nice work. But I need to know what license you're using for it? See www.digitalmars.com/d/contributions.html

As same as phobos'es. I guess it is hard to use this work since the source code is complicated. But I'll be very glad if the work becomes a part of D language. P.S. I'm sorry for late reply. ------------------ shinichiro.h hamaji _at_ nii.ac.jp http://shinh.skr.jp/
Feb 05 2006
parent reply "Walter Bright" <newshound digitalmars.com> writes:
"shinichiro.h" <s31552 mail.ecc.u-tokyo.ac.jp> wrote in message 
news:20060205214209.76bfcb28.s31552 mail.ecc.u-tokyo.ac.jp...
 Hi,

 I hacked phobos.lib. Now it dump backtrace when D exception occured.

 http://shinh.skr.jp/d/backtrace.tgz

 How to use is in README in the archive.

 FYI.

This is nice work. But I need to know what license you're using for it? See www.digitalmars.com/d/contributions.html

As same as phobos'es. I guess it is hard to use this work since the source code is complicated. But I'll be very glad if the work becomes a part of D language. P.S. I'm sorry for late reply.

Thanks very much!
Feb 09 2006
parent pragma <pragma_member pathlink.com> writes:
 http://shinh.skr.jp/d/backtrace.tgz




For some reason, this wasn't compatible with my copy of winzip. As it turns out, the author has a copy in .zip format linked from their page: http://shinh.skr.jp/d/ http://shinh.skr.jp/d/backtrace.zip I don't know if its the same version, but the .zip works fine on my system. - Eric Anderton at yahoo
Feb 10 2006