[Bug translator/11096] Getting global module vars in functions

mjw at redhat dot com sourceware-bugzilla@sourceware.org
Wed Dec 16 20:55:00 GMT 2009


------- Additional Comments From mjw at redhat dot com  2009-12-16 20:55 -------
(In reply to comment #1)
> Global vars that are in scope should be usable already.

But in a function there is no scope, so no variable is accessible.

The use case for me is the jstack() function, that would benefit from having
access to some of the globals in libjvm.so. Currently we have a probe on vm_init
to collect those globals and store them for later use in the function. But that
is somewhat limiting the use of the jstack() function (it can only be used after
some probe in the libjvm.so context has been fired first).

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11096

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Systemtap mailing list