public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/9065] can't use typeid
[not found] <bug-9065-4717@http.sourceware.org/bugzilla/>
@ 2012-02-23 21:55 ` tromey at redhat dot com
2013-05-24 14:36 ` LpSolit at netscape dot net
1 sibling, 0 replies; 3+ messages in thread
From: tromey at redhat dot com @ 2012-02-23 21:55 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=9065
Tom Tromey <tromey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at redhat dot com
--- Comment #2 from Tom Tromey <tromey at redhat dot com> 2012-02-23 21:54:43 UTC ---
I think this can easily be done for classes with vtables.
For other types it does not appear to be easy; it may not
even be possible.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/9065] can't use typeid
[not found] <bug-9065-4717@http.sourceware.org/bugzilla/>
2012-02-23 21:55 ` [Bug c++/9065] can't use typeid tromey at redhat dot com
@ 2013-05-24 14:36 ` LpSolit at netscape dot net
1 sibling, 0 replies; 3+ messages in thread
From: LpSolit at netscape dot net @ 2013-05-24 14:36 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=9065
Tom Tromey <tromey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|cmoller at redhat dot com |unassigned at sourceware
| |dot org
AssignedTo|unassigned at sourceware |tromey at redhat dot com
|dot org |
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |7.7
Frédéric Buclin <LpSolit at netscape dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|"grover, grover at kuchera |
|dot com |
--- Comment #3 from Tom Tromey <tromey at redhat dot com> 2013-02-22 19:35:49 UTC ---
(In reply to comment #2)
> I think this can easily be done for classes with vtables.
> For other types it does not appear to be easy; it may not
> even be possible.
We can be optimistic and try to find the symbol.
For a type named T, we can just look up the symbol "typeinfo for T".
E.g., from libstdc++
[...]
0000003be82eec80 V typeinfo for signed char
0000003be82eee60 V typeinfo for bool
0000003be82eece0 V typeinfo for char
0000003be82ee7a0 V typeinfo for double
[...]
--- Comment #4 from Tom Tromey <tromey at redhat dot com> 2013-02-25 16:46:03 UTC ---
I have an initial patch for this.
--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2013-04-15 17:36:15 UTC ---
CVSROOT: /cvs/src
Module name: src
Changes by: tromey@sourceware.org 2013-04-15 17:36:14
Modified files:
gdb : ChangeLog NEWS breakpoint.c c-exp.y cp-abi.c
cp-abi.h eval.c expprint.c gnu-v3-abi.c parse.c
std-operator.def
gdb/testsuite : ChangeLog
Added files:
gdb/testsuite/gdb.cp: typeid.cc typeid.exp
Log message:
PR c++/9065:
* NEWS: Update.
* breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
* c-exp.y (TYPEID): New token.
(exp): Add new TYPEID productions.
(ident_tokens): Add "typeid".
* cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
* cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
(struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
* eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
* expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
case.
* gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
(build_std_type_info_type, gnuv3_get_typeid_type)
(gnuv3_get_typeid): New functions.
(init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
new fields on ABI object.
* parse.c (operator_length_standard) <OP_TYPEID>: New case.
* std-operator.def (OP_TYPEID): New.
gdb/testsuite
* gdb.cp/typeid.cc: New file.
* gdb.cp/typeid.exp: New file.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15412&r2=1.15413
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/NEWS.diff?cvsroot=src&r1=1.588&r2=1.589
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/breakpoint.c.diff?cvsroot=src&r1=1.754&r2=1.755
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/c-exp.y.diff?cvsroot=src&r1=1.116&r2=1.117
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/cp-abi.c.diff?cvsroot=src&r1=1.40&r2=1.41
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/cp-abi.h.diff?cvsroot=src&r1=1.25&r2=1.26
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/eval.c.diff?cvsroot=src&r1=1.181&r2=1.182
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/expprint.c.diff?cvsroot=src&r1=1.67&r2=1.68
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/gnu-v3-abi.c.diff?cvsroot=src&r1=1.82&r2=1.83
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/parse.c.diff?cvsroot=src&r1=1.139&r2=1.140
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/std-operator.def.diff?cvsroot=src&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3624&r2=1.3625
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.cp/typeid.cc.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.cp/typeid.exp.diff?cvsroot=src&r1=NONE&r2=1.1
--- Comment #6 from Tom Tromey <tromey at redhat dot com> 2013-04-15 18:15:53 UTC ---
Fix checked in.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
>From gdb-prs-return-13731-listarch-gdb-prs=sources.redhat.com@sourceware.org Fri May 24 15:37:28 2013
Return-Path: <gdb-prs-return-13731-listarch-gdb-prs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-gdb-prs@sources.redhat.com
Received: (qmail 30644 invoked by alias); 24 May 2013 15:37:28 -0000
Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <gdb-prs.sourceware.org>
List-Subscribe: <mailto:gdb-prs-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb-prs/>
List-Post: <mailto:gdb-prs@sourceware.org>
List-Help: <mailto:gdb-prs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: gdb-prs-owner@sourceware.org
Delivered-To: mailing list gdb-prs@sourceware.org
Received: (qmail 30616 invoked by uid 55); 24 May 2013 15:37:28 -0000
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug testsuite/12649] reproducer for races of expect incomplete
reads
Date: Fri, 24 May 2013 15:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gdb
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: HEAD
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: cvs-commit at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: polacek at redhat dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-12649-4717-ffORn4L1LS@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-12649-4717@http.sourceware.org/bugzilla/>
References: <bug-12649-4717@http.sourceware.org/bugzilla/>
Content-Type: multipart/alternative; boundary="1369409848.03b6Fe1E1.30452";
charset="UTF-8"
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-q2/txt/msg00320.txt.bz2
--1369409848.03b6Fe1E1.30452
Date: Fri, 24 May 2013 15:37:28 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-length: 974
http://sourceware.org/bugzilla/show_bug.cgi?id\x12649
--- Comment #13 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
CVSROOT: /cvs/src
Module name: src
Changes by: jkratoch@sourceware.org 2013-05-24 15:37:25
Modified files:
gdb/testsuite : ChangeLog
gdb/testsuite/gdb.mi: mi-dprintf.exp
Log message:
gdb/testsuite/
PR testsuite/12649
* gdb.mi/mi-dprintf.exp (mi_continue_dprintf) (mi 2nd dprintf): Replace
$mi_gdb_prompt expectation by mi_expect_stop.
(mi 1st dprintf, agent, mi 2nd dprintf, agent)
(mi info dprintf second time): Replace them by mi_send_resuming_command
and mi_expect_stop.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3680&r2=1.3681
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.mi/mi-dprintf.exp.diff?cvsroot=src&r1=1.2&r2=1.3
--
You are receiving this mail because:
You are on the CC list for the bug.
--1369409848.03b6Fe1E1.30452
Date: Fri, 24 May 2013 15:37:28 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Content-length: 2125
<html>
<head>
<base href="http://sourceware.org/bugzilla/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - reproducer for races of expect incomplete reads"
href="http://sourceware.org/bugzilla/show_bug.cgi?id\x12649#c13">Comment # 13</a>
on <a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - reproducer for races of expect incomplete reads"
href="http://sourceware.org/bugzilla/show_bug.cgi?id\x12649">bug 12649</a>
from <span class="vcard"><span class="fn">cvs-commit@gcc.gnu.org</span>
</span></b>
<pre>CVSROOT: /cvs/src
Module name: src
Changes by: <a href="mailto:jkratoch@sourceware.org">jkratoch@sourceware.org</a> 2013-05-24 15:37:25
Modified files:
gdb/testsuite : ChangeLog
gdb/testsuite/gdb.mi: mi-dprintf.exp
Log message:
gdb/testsuite/
<a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - reproducer for races of expect incomplete reads"
href="show_bug.cgi?id\x12649">PR testsuite/12649</a>
* gdb.mi/mi-dprintf.exp (mi_continue_dprintf) (mi 2nd dprintf): Replace
$mi_gdb_prompt expectation by mi_expect_stop.
(mi 1st dprintf, agent, mi 2nd dprintf, agent)
(mi info dprintf second time): Replace them by mi_send_resuming_command
and mi_expect_stop.
Patches:
<a href="http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3680&r2=1.3681">http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3680&r2=1.3681</a>
<a href="http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.mi/mi-dprintf.exp.diff?cvsroot=src&r1=1.2&r2=1.3">http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.mi/mi-dprintf.exp.diff?cvsroot=src&r1=1.2&r2=1.3</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>
--1369409848.03b6Fe1E1.30452--
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/9065] can't use typeid
[not found] <20050617212801.9065.grover@kuchera.com>
@ 2010-09-25 20:51 ` gcc-bugzilla at gcc dot gnu dot org
0 siblings, 0 replies; 3+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2010-09-25 20:51 UTC (permalink / raw)
To: gdb-prs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at sourceware dot|cmoller at redhat dot com
|org |
http://sourceware.org/bugzilla/show_bug.cgi?id=9065
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-05-24 14:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-9065-4717@http.sourceware.org/bugzilla/>
2012-02-23 21:55 ` [Bug c++/9065] can't use typeid tromey at redhat dot com
2013-05-24 14:36 ` LpSolit at netscape dot net
[not found] <20050617212801.9065.grover@kuchera.com>
2010-09-25 20:51 ` gcc-bugzilla at gcc dot gnu dot org
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).