News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

In which file the crash log is implemented

Started by oBFusCATed, January 24, 2007, 02:50:09 PM

Previous topic - Next topic

oBFusCATed

Hello, I'm trying to implement a call stack printing, but google doesn't help much. And I know you have done it but don't know where and for what to search in the code.
So can you guide me to the location this is implemented:

<report version="1.0" kind="exception">
<system description="Linux 2.6.18.2-34-default i686"/>

   <modules>
<module path="/usr/local/bin/codeblocks" address="08048000" size="000a7000"/>
<module path="/usr/share/fonts/truetype/DejaVuSansMono-Bold.ttf" address="b0ce1000" size="00038000"/>
<module path="/lib/libnsl-2.5.so" address="b0d2b000" size="00002000" version="2.5"/>
<module path="/lib/libbz2.so.1.0.0" address="b0d2f000" size="00012000" version="1.0.0"/>
<module path="/lib/libresolv-2.5.so" address="b0d50000" size="00002000" version="2.5"/>
<module path="/usr/lib/libcrypto.so.0.9.8" address="b0d54000" size="00130000" version="0.9.8"/>
<module path="/usr/lib/libssl.so.0.9.8" address="b0e87000" size="0003d000" version="0.9.8"/>
<module path="/usr/lib/libdbus-1.so.3.2.0" address="b0ef5000" size="00002000" version="3.2.0"/>
<module path="/usr/lib/libdbus-glib-1.so.2.0.0" address="b0f11000" size="00002000" version="2.0.0"/>
<module path="/usr/lib/libxml2.so.2.6.26" address="b1044000" size="00007000" version="2.6.26"/>
<module path="/opt/gnome/lib/libcroco-0.6.so.3.0.1" address="b104c000" size="00034000" version="3.0.1"/>
<module path="/opt/gnome/lib/libgsf-1.so.114.0.2" address="b10aa000" size="00003000" version="114.0.2"/>
<module path="/opt/gnome/lib/libORBit-2.so.0.1.0" address="b10ae000" size="00051000" version="0.1.0"/>
<module path="/opt/gnome/lib/libgconf-2.so.4.1.0" address="b112e000" size="00003000" version="4.1.0"/>
<module path="/opt/gnome/lib/libgnomevfs-2.so.0.1600.1" address="b1185000" size="00003000" version="0.1600.1"/>
<module path="/opt/gnome/lib/librsvg-2.so.2.16.0" address="b1189000" size="00031000" version="2.16.0"/>
<module path="/usr/share/fonts/truetype/DejaVuSansMono.ttf" address="b19e5000" size="0003a000"/>
<module path="/usr/local/share/codeblocks/plugins/libtodo.so" address="b1a3c000" size="00003000"/>
<module path="/usr/local/share/codeblocks/plugins/libProfiler.so" address="b1a58000" size="00002000"/>


Thanks in advance.... and keep the good work
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

mandrav

wxWidgets make this dead-easy.
In OnInit() put:

    #if (wxUSE_ON_FATAL_EXCEPTION == 1)
        wxHandleFatalExceptions(true);
    #endif


and in OnFatalException() put:

#if wxCHECK_VERSION(2,6,0) && wxUSE_DEBUGREPORT && wxUSE_XML && wxUSE_ON_FATAL_EXCEPTION
    wxDebugReport report;
    wxDebugReportPreviewStd preview;

    report.AddAll();
    if ( preview.Show(report) )
        report.Process();
#else
    // handle the error differently
#endif


And if you want to read more, read up on wxStackWalker.
Be patient!
This bug will be fixed soon...

oBFusCATed

Thank you, this is what I was looking for :O)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]