From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B07D83857C4D; Thu, 20 Aug 2020 22:38:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B07D83857C4D From: "trass3r at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug c++/26512] New: 'error reading variable' for char16_t Date: Thu, 20 Aug 2020 22:38:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: trass3r at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Aug 2020 22:38:18 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26512 Bug ID: 26512 Summary: 'error reading variable' for char16_t Product: gdb Version: HEAD Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ Assignee: unassigned at sourceware dot org Reporter: trass3r at gmail dot com Target Milestone: --- $ gdb GNU gdb (GDB) 10.0.50.20200820-git ... p (char)70 $1 =3D 70 'F' p (char16_t)70 No symbol table is loaded --- #include int main() { char16_t u16 =3D 0xf000; char32_t u32 =3D 0xf0000000; return 0; } $ [clan]g++ -g test.cpp -o test $ gdb -q -ex "br 6" -ex run -ex "p u16" -ex "p u32" -ex cont -ex quit test gdb: /usr/lib/libtinfo.so.5: no version information available (required by = gdb) +set verbose on +skip -gfile /usr/include/c++/*/*/* File(s) /usr/include/c++/*/*/* will be skipped when stepping. +skip -gfile /usr/include/c++/*/* File(s) /usr/include/c++/*/* will be skipped when stepping. +skip -gfile /usr/include/c++/* File(s) /usr/include/c++/* will be skipped when stepping. +set print asm-demangle on +set print vtbl on +set print symbol on +set complaints 10 +set trust-readonly-sections on +set debug timestamp +set exec-done-display Reading symbols from test... +br 6 Reading in symbols for test.cpp... Breakpoint 1 at 0x64a: file test.cpp, line 6. +run Starting program: /tmp/test=20 Using PIE (Position Independent Executable) displacement 0x5618978e4000 for "/tmp/test". Reading symbols from /lib/ld-linux-x86-64.so.2... Reading symbols from /lib/.debug/ld-2.27.so... Reading symbols from system-supplied DSO at 0x7fff703e7000... (No debugging symbols found in system-supplied DSO at 0x7fff703e7000) Reading symbols from /usr/lib/libstdc++.so.6... (No debugging symbols found in /usr/lib/libstdc++.so.6) Reading symbols from /lib/libm.so.6... Reading symbols from /lib/.debug/libm-2.27.so... Reading symbols from /lib/libgcc_s.so.1... (No debugging symbols found in /lib/libgcc_s.so.1) Reading symbols from /lib/libc.so.6... Reading symbols from /lib/.debug/libc-2.27.so... Breakpoint 1, mainDuring symbol reading: incomplete CFI data; unspecified registers (e.g., rax) at 0x5618978e464b During symbol reading: incomplete CFI data; unspecified registers (e.g., rd= x) at 0x5618978e464b During symbol reading: incomplete CFI data; unspecified registers (e.g., rc= x) at 0x5618978e464b During symbol reading: incomplete CFI data; unspecified registers (e.g., rb= x) at 0x5618978e464b During symbol reading: incomplete CFI data; unspecified registers (e.g., rs= i) at 0x5618978e464b During symbol reading: incomplete CFI data; unspecified registers (e.g., rd= i) at 0x5618978e464b During symbol reading: incomplete CFI data; unspecified registers (e.g., r8= ) at 0x5618978e464b During symbol reading: incomplete CFI data; unspecified registers (e.g., r9= ) at 0x5618978e464b During symbol reading: incomplete CFI data; unspecified registers (e.g., r1= 0) at 0x5618978e464b During symbol reading: incomplete CFI data; unspecified registers (e.g., r1= 1) at 0x5618978e464b (Reading in symbols for /usr/src/debug/glibc/2.27-r0/git/sysdeps/x86/libc-start.c... During symbol reading: cannot get low and high bounds for subprogram DIE at 0x8e0d ) at test.cpp:6 6 return 0; completed. +p u16 $1 =3D 61440 u' +p u32 $2 =3D 4026531840 U' +cont Continuing. [Inferior 1 (process 10419) exited normally] completed. +quit --=20 You are receiving this mail because: You are on the CC list for the bug.=