Request for approval: Allow Java's ELF symtab reader to use separate debuginfo files
Tom Rodriguez
Thomas.Rodriguez at Sun.COM
Wed Jan 20 09:35:34 PST 2010
On Jan 20, 2010, at 2:16 AM, Andrew Haley wrote:
> On 01/19/2010 07:43 PM, Tom Rodriguez wrote:
>
>> So do you want to pursue making the SA work with a stripped
>> libjvm.so or is requiring debug info to be installed acceptable?
>> Sorry if I made this more complicated than you wanted. I think your
>> original change is fine, but if the norm is being stripped then
>> making these tools work in that situation would be good.
>
> Clearly it would be. Java programmers on Linux systems aren't used to
> installing debuginfo, so it would be better all round if these tools
> were to work without it. (And besides, the idea that the Windows port
> might be better in any way irks me!) I'll have a look.
So the brute force approach is to make all vtables visible in the dynamic symbol table. A more limited approach would be to make only the vtables of types mentioned in vmStructs.cpp available. A script that looked for declare_toplevel_type and declare_type could select interesting types but not all of those would have vtables so comparison with the real symbol table would be needed. That would complicate the build a though. The list would be slowly changing so we could check it in and only verify that it's still valid after the link. It's kind of complicated so maybe just exporting them all is easier.
tom
>
> Andrew.
More information about the hotspot-dev
mailing list