public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17580] New: GDB fails to inspect a particular class
@ 2014-11-11 20:15 rschoppmeyer at vmware dot com
2014-11-11 20:35 ` [Bug c++/17580] " sivachandra at gmail dot com
0 siblings, 1 reply; 2+ messages in thread
From: rschoppmeyer at vmware dot com @ 2014-11-11 20:15 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=17580
Bug ID: 17580
Summary: GDB fails to inspect a particular class
Product: gdb
Version: 7.7
Status: NEW
Severity: normal
Priority: P2
Component: c++
Assignee: unassigned at sourceware dot org
Reporter: rschoppmeyer at vmware dot com
Created attachment 7923
--> https://sourceware.org/bugzilla/attachment.cgi?id=7923&action=edit
reproducing example
Skim instructions in README (included in attached file).
Platform: Ubuntu 14.04.1
Compiler: Ubuntu clang version 3.4-1ubuntu3 (tags/RELEASE_34/final) (based on
LLVM 3.4)
GDB: GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
See attached file for a concise reproducing example.
notmain.cc contains a class NetInfo with a single member, `name` of class
String.
The `String` class is a subclass of std::string declared in notstring.hh.
Attempting to `print info` in GDB after its declaration yields:
(gdb) p info
$1 = {name = <error reading variable>
Attempting to `print info.name` produces the rather nonsensical error message:
(gdb) p info.name
That operation is not available on integers of more than 8 bytes.
Printing any other instance of the NetInfo class is aborted in a similar
manner. Observe that printing the class is truncated, no closing '}' is
printed. If there are other members in NetInfo following `name`, they are
omitted. If you try to print a class that contains a member of type NetInfo,
printing moves on to that class' next member after aborting printing NetInfo.
If you compile the attached file as a single execution unit (`make monolith`),
this issue is not reproducible.
I guess it's also possible that this is a clang bug.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/17580] GDB fails to inspect a particular class
2014-11-11 20:15 [Bug c++/17580] New: GDB fails to inspect a particular class rschoppmeyer at vmware dot com
@ 2014-11-11 20:35 ` sivachandra at gmail dot com
0 siblings, 0 replies; 2+ messages in thread
From: sivachandra at gmail dot com @ 2014-11-11 20:35 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=17580
Siva Chandra <sivachandra at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sivachandra at gmail dot com
Assignee|unassigned at sourceware dot org |sivachandra at gmail dot com
--- Comment #1 from Siva Chandra <sivachandra at gmail dot com> ---
I will take this as I am investigating a similar issue seen by a co-worker.
Feel free to take it if you beat me to it.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-11 20:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-11 20:15 [Bug c++/17580] New: GDB fails to inspect a particular class rschoppmeyer at vmware dot com
2014-11-11 20:35 ` [Bug c++/17580] " sivachandra at gmail dot com
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).