Hi,<div><br></div><div>I've implemented part of a fix-and-continue solution for lldb. As of right now, it works if you want to substitute functions from external libraries, by loading an additional copy of that library on the project's address space.</div>


<div>The library must have a completely new name from the previously loaded libraries (otherwise, dlopen won't load it).</div><div><br></div><div>We can make lldb copy the libraries to a temp folder and assign to them unique names, for example, or make the user responsible for that. At least I don't know of other ways to load the "same" library twice in the process.</div>


<div><br></div><div>What's still not there:</div><div>- Dealing with libraries' variables (global, static, etc), even if it's just by copying the old values;</div><div>- Aborting if too much has changed (this would require some clang integration), like class/struct layouts, etc;</div>


<div>- Making it work on ARM (normally we should only need to implement the two ABI functions;</div><div>- Making sure there is enough space for a trampoline (Right now, the ProcessFix command doesn't check for space);</div>


<div><br></div><div>Other features:</div><div>- Update only some uses of the libraries (like Greg's idea of only changing the GOT of some of the modules).</div><div><br></div><div>Please let me know what you think of this and maybe provide some feedback.</div>


<div><br></div><div>Thanks,</div><div><br></div><div>  Filipe</div><div><br></div>