This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/6704] need dwarf searching to resolve extern "struct foo;" types


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]