[lldb-dev] Target changes for Language Runtimes
Colin Riley
colin at codeplay.com
Fri Apr 10 09:37:17 PDT 2015
Would adding a ModulesDidLoad equivalent to the base of LanguageRuntime be acceptable, for instance?
Then It's just a matter of looking up the respective language plugin and calling that, very similar to what's there already for ObjC.
Colin
-----Original Message-----
From: "Colin Riley" <colin at codeplay.com>
Sent: 10/04/2015 17:06
To: "lldb-dev at cs.uiuc.edu" <lldb-dev at cs.uiuc.edu>
Subject: [lldb-dev] Target changes for Language Runtimes
Hey folks,
So I added the initial part of the RenderScript language plugin which
went smoothly. In that review I stated it would be initialized along the
same lines of ObjCLanguageRuntime. Now, my initial thought was along the
lines of the attached patch - in Target::ModulesDidLoad, call a function
to see if any modules match a renderscript pattern, if so, enable the
languageruntime.
However, this then requires including the plugin headers within
target.cpp, which isn't ideal. ObjC has a base class header actually in
the target project space, so uses that. Are there any views on how to
make this a bit more generic, to allow for other Language Runtimes to
detect applicability on module-load?
Cheers,
Colin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150410/90dcf22d/attachment.html>
More information about the lldb-dev
mailing list