Codewarrior 10.5 view char pointers as strings

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Codewarrior 10.5 view char pointers as strings

ソリューションへジャンプ
891件の閲覧回数
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 解決策
516件の閲覧回数
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 返答(返信)
517件の閲覧回数
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 件の賞賛
516件の閲覧回数
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 件の賞賛
516件の閲覧回数
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 件の賞賛
516件の閲覧回数
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 件の賞賛