Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / February 2004



Tip: Looking for answers? Try searching our database.

Viewing wchar_t strings in debugger

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kevin Hoyt - 16 Jan 2004 21:34 GMT
Here's the original posts about this...

The more I have to deal with this, the more frustrating it becomes...

Any progress on a tech note to help us view wchar_t strings in the debugger?

Isaac Wankerl <spam@metrowerks.com> wrote in message news:<spam-92392F.15302003102003@newshost.mot.com>...
> In article <29898a0e.0310030725.4e7a4462@posting.google.com>,
>  hoytk@us.ibm.com (Kevin Hoyt) wrote:
>
> > MW Ron <mwron@metrowerks.com> wrote in message
> > news:<mwron-83A931.13044202102003@enews.newsguy.com>...
> > > In article <29898a0e.0309301511.6d72eb69@posting.google.com>,
> > >  hoytk@us.ibm.com (Kevin Hoyt) wrote:
> > >
> > > >hoytk@us.ibm.com (Kevin Hoyt) wrote in message
> > > >news:<29898a0e.0309171030.3fef42d7@posting.google.com>...
> > > >> Does anyone know how to view wchar_t strings in the debugger for
> > > >> Mach-O builds?  The problem is that wchar_t is 4 bytes view as C
> > > >> string or UniChar don't work.  The only way I've been able to do this
> > > >> is to view the memory and that is somewhat tedious
> > > >>
> > > >> Does anyone have a XML format script that can be added to
> > > >> Support/VariableFormat folder to pick up this ability?
> > > >>
> > > >> As always, any help appreciated...
> > > >
> > > >Ron,
> > > >Any suggestions for this?
> > >
> > > Nope,   I forwarded it to the debugger team and I will add it as a
> > > feature request.  Well actually I think I'll add it as a bug.
> > >
> > > Ron
> >
> > Thanks...
> > So there's no VariableFormat script that can help at all?  This is new
> > stuff for me, but can functions like printf be called?  I'm not
> > looking for full unicode support, just being able to display it as a
> > string (even if it's not completely correct) would be fine with me.
> >
> > BTW: is there more VariableFormat scripting documentation?  I found
> > the VariableFormatter_Notes.txt file but that doesn't describe fully
> > what can be done.
>
> I don't think that the VariableFormat system is able to handle wchar_t
> strings.  I do have an XML file that will format HFSUniStr255, but it's
> still limited (showing each UniChar as a single byte character and not
> terminating after var.length chars).  If you don't mind using the
> DataViewer support, then you probably could write a viewer for wchar_t
> strings.  DataViewer requires modifying your target to initialize the
> DataViewer library at runtime, however it is more powerful than the
> other method.
>
> I'll see if I can't write up a little tech note on the variable
> formatter.

Hey, I'll try anything once :-)

I look forward to you tech note...
Kevin Hoyt - 04 Feb 2004 22:00 GMT
> Here's the original posts about this...
>
[quoted text clipped - 56 lines]
>
> I look forward to you tech note...

Just bringing this up again...

Any word on a tech note or some other solution?
MW Ron - 04 Feb 2004 22:17 GMT
>> Isaac Wankerl <spam@metrowerks.com> wrote in message

>> > I'll see if I can't write up a little tech note on the variable
>> > formatter.

>Just bringing this up again...
>
>Any word on a tech note or some other solution?

You are not the first nor the last person to ask for this.  Isaac is
very busy but I'll see if I can nag him a bit.

Ron

Signature

Metrowerks, maker of CodeWarrior   -  "Software Starts Here"  
Ron Liechty - MWRon@metrowerks.com - <http://www.metrowerks.com>

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.