Codewarrior 10.5 view char pointers as strings

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Codewarrior 10.5 view char pointers as strings

跳至解决方案
887 次查看
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

标签 (1)
0 项奖励
1 解答
512 次查看
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 项奖励
4 回复数
513 次查看
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 项奖励
512 次查看
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 项奖励
512 次查看
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 项奖励
512 次查看
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 项奖励