This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/10908] error reading variable for char variable


------- Additional Comments From ppluzhnikov at google dot com  2009-11-07 01:57 -------
This has to do with Tom's charset changes. The error comes from:

#0  error (string=0x834d468 "%s.") at ../../src/gdb/utils.c:814
#1  0x080d5c33 in perror_with_name (
    string=0x8373763 "Converting character sets") at ../../src/gdb/utils.c:1147
#2  0x0815aa33 in make_wchar_iterator (input=0x80470c0 "z9W\b\001", bytes=1, 
    charset=0xfe65b0d0 "UTF-8", width=1) at ../../src/gdb/charset.c:542
#3  0x0821370a in c_emit_char (c=122, type=0x8573988, stream=0x852e388, 
    quoter=39) at ../../src/gdb/c-lang.c:272
#4  0x08213a1d in c_printchar (c=122, type=0x8573988, stream=0x852e388)
    at ../../src/gdb/c-lang.c:360
#5  0x08235ea8 in c_val_print (type=0x8573988, valaddr=0x85a8918 "z�U\b", 
    embedded_offset=0, address=134511147, stream=0x852e388, recurse=0, 
    options=0x8047370) at ../../src/gdb/c-valprint.c:497
#6  0x081739c7 in val_print (type=0x8573988, valaddr=0x85a8918 "z�U\b", 
    embedded_offset=0, address=134511147, stream=0x852e388, recurse=0, 
    options=0x8047430, language=0x83a7dc0) at ../../src/gdb/valprint.c:309
#7  0x082365e9 in c_value_print (val=0x85f3558, stream=0x852e388, 
    options=0x8047510) at ../../src/gdb/c-valprint.c:711
#8  0x08173bf1 in value_print (val=0x85f3558, stream=0x852e388, 
    options=0x8047510) at ../../src/gdb/valprint.c:393
#9  0x08175ef3 in print_formatted (val=0x85f3558, size=0, options=0x8047510, 
    stream=0x852e388) at ../../src/gdb/printcmd.c:319
#10 0x08177156 in print_command_1 (exp=0x8449dea "cc", inspect=0, voidprint=1)
    at ../../src/gdb/printcmd.c:958

Possible workaround: install GNU libiconv into the build tree.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1


http://sourceware.org/bugzilla/show_bug.cgi?id=10908

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]