Codewarrior 10.5 view char pointers as strings

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Codewarrior 10.5 view char pointers as strings

Jump to solution
874 Views
cruton
Contributor I

So this has been a problem since 10.2 apparently.  I just downloaded 10.5 and it still seems to be an issue. 

 

If I declare a variable like this:

char * p="displayme";

it won't appear as a string in the debugger.

But if I declare it like this:

unsigned char * p="displayme";

It shows up as a string.  Is there any fix for this?

 

thanks

Labels (1)
0 Kudos
1 Solution
499 Views
BlackNight
NXP Employee
NXP Employee

Hi Carl,

that might depend on the signess for character, and the toolchain used.

Below is what I get for GNU ARM gcc with CodeWarrior 10.5:

pastedImage_0.png

And I get it correctly under the variables view too:

pastedImage_1.png

Erich

View solution in original post

0 Kudos
4 Replies
500 Views
BlackNight
NXP Employee
NXP Employee

Hi Carl,

that might depend on the signess for character, and the toolchain used.

Below is what I get for GNU ARM gcc with CodeWarrior 10.5:

pastedImage_0.png

And I get it correctly under the variables view too:

pastedImage_1.png

Erich

0 Kudos
499 Views
cruton
Contributor I

I'm using for a board based on the Coldfire mcf54452 processor.  I'm not sure where to find the toolchain in Codewarrior, Codesourcery probably?  Maybe the m68k series aren't getting a lot of love in the recent versions of CW?

0 Kudos
499 Views
TICS_Fiona
NXP Employee
NXP Employee

The command line tools for Coldfire is under CodeWarrior 10.5 subfolder:

C:\Freescale\CW MCU v10.5\MCU\ColdFire_Tools\Command_Line_Tools

0 Kudos
499 Views
cruton
Contributor I

I was kind of hoping this would work itself out in 10.6 but it's still broken.  Any news on this?

0 Kudos