Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Anton Kunze <ak@technosis.de>
To: gdb@sourceware.org
Subject: Printing of strings with special characters
Date: Thu, 04 Mar 2010 11:57:00 -0000	[thread overview]
Message-ID: <4B8F9FE9.2040401@technosis.de> (raw)

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



             reply	other threads:[~2010-03-04 11:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-04 11:57 Anton Kunze [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B8F9FE9.2040401@technosis.de \
    --to=ak@technosis.de \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox