Bug #11213 2007-05-30 10:58

skirby

Display problem with long string in debugger

Hello,

I do not know if this bug is already known but here is what I have found.

Create a MSDos project and paste the following code:

#include <stdio.h>

#include <string.h>

int main(void)

{

char s[1024] = {'\0'};

char sOrg[1024] = {'\0'};

strcpy(sOrg, "vk mbizdyvyqso, odiwyvyqsaeowoxd vk cmsoxmo ne combod, xo zoed odbo fbkswoxd myxcsnoboo mywwo exo cmsoxmo aeo nozesc zoe no dowzc. moddo cmsoxmo oxqvylo vk mbizdyqbkzrso - v'ombsdebo combodo - od vk mbizdkxkvico - v'kxkvico no moddo nobxsobo. yx zoed nsbo aeo vk mbizdyvyqso ocd ex kbd kxmsox od exo cmsoxmo xyefovvo : ex kbd kxmsox mkb tevoc mockb v'edsvscksd notk ; exo cmsoxmo xyefovvo zkbmo aeo mo x'ocd aeo nozesc voc kxxooc wsvvo xoep moxd cyshkxdo-nsh aeo m'ocd ex drowo no bomrobmro cmsoxdspsaeo kmknowsaeo (mywzboxnbo exsfobcsdksbo). moddo nscmszvsxo ocd vsoo k lokemyez n'kedboc, zkb ohowzvo vk droybso noc xywlboc, v'kvqolbo, vk droybso no vk mywzvohsdo, vk droybso no v'sxpybwkdsyx, ye oxmybo voc mynoc mybbomdoebc.");

strcpy(s, sOrg);

return 0;

}

Put a break point on the second strcpy, launch the program with F8 and have a look to Watches debugger window (local variables).

Display is incorrect.

You can have screenshots here:

http://img294.imageshack.us/img294/9539/img1mu3.png

http://img405.imageshack.us/img405/343/img2ac9.png

http://img407.imageshack.us/img407/6421/img3nh0.png

Or you can download screenshot and source file here:

http://www.mytempdir.com/1342085

For information, I am on Windows 2000 sp4 and I use C::B svn 3989 with plugin debugger v0.3.

I hope you could fix it.

Thanks and have a nice day.

Category
Debugger
Group
 
Status
Open
Close date
 
Assigned to