This is an archive of the discontinued LLVM Phabricator instance.

Add plugin.jit-loader.gdb.enable-jit-breakpoint property to make JIT loader breakpoint optional.
ClosedPublic

Authored by ovyalov on Sep 15 2015, 4:08 PM.

Details

Summary

Add plugin.jit-loader.gdb.enable-jit-breakpoint property to make JIT loader breakpoint optional with default value set true.
If we're not interested in debugging JIT code there is no need to hit this breakpoint.

Diff Detail

Event Timeline

ovyalov updated this revision to Diff 34847.Sep 15 2015, 4:08 PM
ovyalov retitled this revision from to Add plugin.jit-loader.gdb.enable-jit-breakpoint property to make JIT loader breakpoint optional..
ovyalov updated this object.
ovyalov added reviewers: clayborg, tberghammer.
ovyalov added a subscriber: lldb-commits.
ovyalov added inline comments.
source/Core/PluginManager.cpp
2628

Do we still need this function? It's used only by platform plugin and there is no platform plugin properties right now in use - we may want to migrate from old style properties.

clayborg accepted this revision.Sep 15 2015, 4:40 PM
clayborg edited edge metadata.

Looks good.

source/Core/PluginManager.cpp
2628

I believe we do for other branches that we merge into... Leave it for now.

This revision is now accepted and ready to land.Sep 15 2015, 4:40 PM
tberghammer accepted this revision.Sep 16 2015, 2:46 AM
tberghammer edited edge metadata.
ovyalov closed this revision.Sep 16 2015, 10:40 AM

Files:

/lldb/trunk/include/lldb/Core/PluginManager.h
/lldb/trunk/source/Core/PluginManager.cpp
/lldb/trunk/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp
/lldb/trunk/source/Plugins/JITLoader/GDB/JITLoaderGDB.h

Users:

ovyalov (Author)

http://reviews.llvm.org/rL247821

@clayborg Given that this was merged, does it make sense to now allow the JITLoader to be created on OS X as well, but set the setting to false by default? Does that address the performance concern you had initially?

So you are saying to have a setting that allows this plug-in to be enabled and have it set to false by default? That sounds good to me. It probably should be false on all platforms and anyone wanting JIT support should enable it?