[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

debugging source with extended characters

From: Terry Ebaugh
Subject: debugging source with extended characters
Date: Sun, 3 Sep 2006 02:04:44 -0400

Hi all,

I'm new to using ddd.  I checked google and the ddd website but I couldnt find an answer to my question.

I have a source file that has ISO-8859-1 characters in it (like the british pound symbol)  When I load my program into ddd it will only display the source code up to the point where it first encounters one of the characters above A0 in the character set.  Its hard to set break points without seeing the rest of my source code.  Does anyone know how I can get around this?

I can view the characters just fine in vi.  Here is a sample of the code although I'm unsure if it will come across in email.

 if ( strcasecmp(el, "dataset") == 0) {
         printf("£%s¦%d¦%s:%s", host, cur_file_num, version, el);
         for (i = 0; attr[i]; i += 2) {

ddd stops displaying the source once it sees the first character after the " in the printf.

address@hidden:/home/tebaugh/.ddd> ddd --check-configuration
Checking for X11 library directory... /usr/X11R6/lib/X11
Checking for XKeysymDB... /usr/X11R6/lib/X11/XKeysymDB
No configuration problems found.

GDB is set for ISO-8859-1 in host and target settings. 

Can anyone help out a ddd newbie?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]