[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 242489] When viewing watches can't cast view
From:       Chris Bruner <cbruner () quadro ! net>
Date:       2010-06-22 16:36:13
Message-ID: 20100622163613.2F96D472C5 () immanuel ! kde ! org
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=242489


Chris Bruner <cbruner@quadro.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|WORKSFORME                  |




--- Comment #6 from Chris Bruner <cbruner quadro net>  2010-06-22 18:36:12 ---
Did some more experimenting, and found that the following code:
#include <iostream>
#include "string.h"

int main(int argc, char **argv) {
    const char * buff = "this is a string";
    char buff1[300];
      strcpy(buff1,buff);
    return 0;
}


will in gdb display buff as "this is a string" but will show buff1 as
"this is a string\000\000\ and so on

in kdevelop buff shows as "this is a string"
buff1 shows as +buff1
expanding it shows as 
116 't'
104 'h'
and so on.

There is no way that I can see of setting the display style.
ie, 
watch (const char *) buff1
or if I want to watch it as a long. 

I should be able to override it as needed and not have to depend on the default
configuration.


Thanks for your help thus far.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic