[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-bugs
Subject: [Bug 109921] Debugger should show unicode strings
From: kdevelop-bugs-admin () barney ! cs ! uni-potsdam ! de
Date: 2005-10-30 6:47:47
Message-ID: 20051030064747.29162.qmail () ktown ! kde ! org
[Download RAW message or body]
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=109921
------- Additional Comments From h.eichmann gmx de 2005-10-30 07:47 -------
Fyi: to view the dgb feature request, go to
http://sources.redhat.com/cgi-bin/gnatsweb.pl
enter 1998 and click on view. No response so far.
An interesting thought was suggested by Vadim Zeitlin here:
http://groups.google.de/groups?hs=slQ&hl=de&client=firefox-a&rls=org.mozilla:en-US:off \
icial&q=%22How%20to%20see%20wxString%20contents%20in%20KDevelop%22%20vadim&btnG=Suche&sa=N&tab=wg
He said:
I'm far from being a gdb guru but here is a function that works (put this
in your ~/.gdbinit):
define pu
set $uni = $arg0
set $i = 0
while (*$uni && $i++<100)
if (*$uni < 0x80)
output/c (char)(*$uni++)
else
output/x *$uni++
end
end
end
define pws
pu $arg0.c_str()
end
Use "pu" with "wxChar *" or "pws" with wxString.
I guess the same defines (or a similar for qstrings) could be sent to gdb on start of \
every debug session. Then kdevelop could print unicode strings by just executing pu \
or pws (or maybe pqstring), if such a value is to be shown.
Heiner
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic