News:

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

Main Menu

watching wxString

Started by killerbot, January 10, 2006, 08:49:55 PM

Previous topic - Next topic

killerbot

In older svn builds I was able to see the value of wxString variables in the debugger/watches, I could see the content of the m_pchData, but now nothing is visible anymore ? Might this be a unicode effect ??

mandrav

Be patient!
This bug will be fixed soon...

killerbot

any solution in the pipeline ?

mandrav

Quote from: killerbot on January 10, 2006, 09:07:25 PM
any solution in the pipeline ?

Not yet but I 'm looking for one...
Be patient!
This bug will be fixed soon...


mandrav

x /nhc displays only a character. I 'm searching for a solution for strings...
Be patient!
This bug will be fixed soon...

Michael

Quote from: mandrav on January 11, 2006, 09:13:42 AM
x /nhc displays only a character. I 'm searching for a solution for strings...
This could help?

Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

mandrav

Thanks for the link Michael, but it assumes that you have in *your* executable a couple of convenient functions. We want C::B to handle this automatically though.

But I 've found a workaround already. Testing its last bits now and committing soon :)
Be patient!
This bug will be fixed soon...

Michael

Quote from: mandrav on January 11, 2006, 11:17:19 AM
We want C::B to handle this automatically though.

Yes, I agree. Automatically would be preferably.

Quote from: mandrav on January 11, 2006, 11:17:19 AM
But I 've found a workaround already. Testing its last bits now and committing soon :)

Great :D.

Afer this document:

Quote
More work inside GDB is needed to support multi-byte or variable-width character encodings, like the UTF-8 and UCS-2 encodings of Unicode.

I can just hope that this work will be done in a not-so-far future :).

Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

mandrav

QuoteYes, I agree. Automatically would be preferably.

Hehe, we 're only aiming for the best ;)

OK committed.
Notes:

  • New watch format defined: wxString
  • Automatically recognizes watched variable's type and sets its format to wxString if appropriate. This means the user is required to do nothing. Just watch his wxString variable ;)
  • Haven't tested with ANSI wxString. Could someone using the ANSI C::B test it?
  • It doesn't work inside "Local variables" and "Function arguments" automatic watches. Only in user-added watches (no big deal, is it?).
:lol:

[attachment deleted by admin]
Be patient!
This bug will be fixed soon...

killerbot

QuoteIt doesn't work inside "Local variables" and "Function arguments" automatic watches. Only in

Is it a big job to get it also working in those cases ?
Well for the moment we'll just add them manually (manual automatically ;-) )

mandrav

Quote from: killerbot on January 11, 2006, 03:12:25 PM
Is it a big job to get it also working in those cases ?

If it was easy I would have done it already.
On the other hand, I implemented it for tooltip evaluation too :)
Be patient!
This bug will be fixed soon...

rickg22

Yeah but what happens to wxStrings in the locals? I need to add the watch AGAIN, even if the variable (now useless) remains in the locals.