This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/6704] need dwarf searching to resolve extern "struct foo;" types
- From: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 27 Jun 2008 20:51:27 -0000
- Subject: [Bug translator/6704] need dwarf searching to resolve extern "struct foo;" types
- References: <20080627181633.6704.fche@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From fche at redhat dot com 2008-06-27 20:51 -------
Further discussion with James Bottomley suggests that we will
need more general facilities than mere neighbouring-CU dwarf
searches, since some separately compiled modules may handle
pointers that they don't carry any definitions for.
So, we might as well solve the general problem of explicit casting
of context variables to types defined in some arbitrary other module.
Some debuggers use a notation like
#module#variable
though of course we already use # (in two different ways, natch).
So the syntax could end up looking like ...
@cast(expr, "type") -> field -> ...
and @cast2(expr, "type", "module") -> field -> ...
incidentally making -> a first-class binary expression node.
For the case of the original bug report:
@cast2($qc, "struct scsi_device", "kernel") -> /* ... */
*** This bug has been marked as a duplicate of 5634 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
http://sourceware.org/bugzilla/show_bug.cgi?id=6704
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.