Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Some debugging improvements on linux
Some debugging improvements on linux [message #35262] Fri, 27 January 2012 01:45 Go to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
Hi,

tired of seing things like this when debugging on GDB:

{<Upp::Moveable<Upp::String, Upp::AString<Upp::String0> >> = {<Upp::AString<Upp::String0>> = {<Upp::String0> = {<Upp::Moveable<Upp::String0, Upp::EmptyClass>> = {<Upp::EmptyClass> = {<No data fields>}, <No data fields>}, len = 13, s = 0x7fffffffdf70 "a test string", {
          chr = "a test string\000\000\r", ptr = 0x7320747365742061 <Address 0x7320747365742061 out of bounds>, wptr = 0x7320747365742061, 
          qptr = 0x7320747365742061, v = {8289, 25972, 29811, 29472, 29300, 28265, 103, 3328}, w = {1702109281, 1931506803, 1852404340, 
            218103911}, q = {8295758552588623969, 936749166727098996}}, static voidptr = {{refcount = 2, alloc = 0}, {refcount = 0, 
            alloc = 0}}}, <No data fields>}, <No data fields>}, <No data fields>}


Which is all but human-readable, I wrote a small IDE addon to allow embedding of python pretty-printers into debugger; the result above is :

"a test string"


Which is a bit more clear Smile

I'll attach the IDE patches; it's enough to unpack the code in
uppsrc/ide/Debuggers


folder, overwriting the old ones.

I plan to extend python scripts and to make small mods to debugging code to encompass most Upp types.
By now, String and an initial Vector support are embedded.

Ciao

Max
 
Read Message
Read Message
Read Message
Previous Topic: A couple of requests to help importing source libraries
Next Topic: debugging MSC10x64 or MSC9x64
Goto Forum:
  


Current Time: Thu May 02 14:58:40 CEST 2024

Total time taken to generate the page: 0.02905 seconds