Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Printing of strings with special characters
@ 2010-03-04 11:57 Anton Kunze
  2010-03-04 18:09 ` Tom Tromey
  0 siblings, 1 reply; 12+ messages in thread
From: Anton Kunze @ 2010-03-04 11:57 UTC (permalink / raw)
  To: gdb

Hello,

i'am using gdb 7.0.1 with python and pretty printing on suse linux. If I
try to print string with german special characters I get only strings as
'\nnn'.

My gdbinit file contains following:
set charset ISO-8859-1
set target-wide-charset ISO-8859-1
set print pretty off
set print sevenbit-strings off
set print object on

python
import sys
sys.path.insert(0, '/home/anton/projects/debug/printers')

from qt4 import register_qt4_printers
register_qt4_printers (None)

from kde4 import register_kde4_printers
register_kde4_printers (None)

from libstdcxx import register_libstdcxx_printers
register_libstdcxx_printers (None)

end

Within my debug session I use the following commonds on gdb console:

set print sevenbit-strings off
print qsHtml
$4 = "h\366h\366h\366"
show print sevenbit-strings
Printing of 8-bit characters in strings as \nnn is off.

But the content of "qsHtml" variable is not as I expected. What can I do?

best regards



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-03-09 19:56 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-04 11:57 Printing of strings with special characters Anton Kunze
2010-03-04 18:09 ` Tom Tromey
2010-03-04 21:25   ` Anton Kunze
2010-03-05  8:33   ` Anton Kunze
2010-03-05 15:41     ` Tom Tromey
2010-03-08  9:00       ` Anton Kunze
2010-03-08 18:03         ` Tom Tromey
2010-03-09  7:49           ` Anton Kunze
2010-03-08 19:41         ` Tom Tromey
2010-03-09  7:54           ` Anton Kunze
2010-03-09 19:56             ` Niko Sams
2010-03-09 10:29           ` André Pönitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox