public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "trass3r at gmail dot com" <sourceware-bugzilla@sourceware.org>
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	[thread overview]
Message-ID: <bug-26512-4717@http.sourceware.org/bugzilla/> (raw)

https://sourceware.org/bugzilla/show_bug.cgi?id=26512

            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 = 70 'F'

p (char16_t)70
No symbol table is loaded

---

#include <uchar.h>
int main()
{
  char16_t u16 = 0xf000;
  char32_t u32 = 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 
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., rdx)
at 0x5618978e464b
During symbol reading: incomplete CFI data; unspecified registers (e.g., rcx)
at 0x5618978e464b
During symbol reading: incomplete CFI data; unspecified registers (e.g., rbx)
at 0x5618978e464b
During symbol reading: incomplete CFI data; unspecified registers (e.g., rsi)
at 0x5618978e464b
During symbol reading: incomplete CFI data; unspecified registers (e.g., rdi)
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., r10)
at 0x5618978e464b
During symbol reading: incomplete CFI data; unspecified registers (e.g., r11)
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 = 61440 u'<error reading variable>
+p u32
$2 = 4026531840 U'<error reading variable>
+cont
Continuing.
[Inferior 1 (process 10419) exited normally]
completed.
+quit

-- 
You are receiving this mail because:
You are on the CC list for the bug.

             reply	other threads:[~2020-08-20 22:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-20 22:38 trass3r at gmail dot com [this message]
2020-08-21 20:24 ` [Bug c++/26512] " tromey at sourceware dot org
2020-08-24 17:38 ` trass3r at gmail dot com

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=bug-26512-4717@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).