enhancements to wxStackFrame for Linux

Francesco Montorsi f18m_cpp217828 at yahoo.it
Mon Nov 6 13:10:10 PST 2006


Francesco Montorsi ha scritto:
> Vadim Zeitlin ha scritto:
>> On Fri, 03 Nov 2006 20:40:18 +0100 Francesco Montorsi 
>> <f18m_cpp217828 at yahoo.it> wrote:
>>
>> FM> Nonetheless I really hate having stack frame lines all wrapped 
>> under FM> wxGTK so I'd solve the problem making the generic assert 
>> dialog which I FM> already have created as a C-only plain GTK widget 
>> and use it only under FM> wxGTK.
I've created the dialog. I had to fight a bit with GTK a bit since I 
never used it directly but the result are quite nice:

    http://mathdev.sourceforge.net/assert.png

I was going to add last nice feature to the dialog: the ability to open 
the files listed under the "Source file" column double clicking a row of 
the list; however I've now noticed that the paths reported by addr2line 
are not always correct.

E.g. I ran the XRCDEMO sample (which currently crash at startup under 
wxGTK - don't know why) from wx/gtk2.ad/samples/xrcdemo and e.g. the 
wxTopLevelWindowGTK's functions are reported to be in 
../src/gtk/toplevel.cpp (clearly wrong); that's because of the static 
linking....

So:

  1) do you know if there's any way to store absolute path in debug info?

  2) for *some* of the files the relative paths returned by addr2line 
would still be correct. Maybe it's worth implementing the "open with 
your favourite editor" feature (I estimate ~ 60 rows of C code) for them?

Thanks,
Francesco







More information about the wx-dev mailing list