It would be nice if lldb could simplify this process for me. It knows the address of the function already, and it could theoretically derive the argument types from the demangled function name.
In https://bugzilla.mozilla.org/show_bug.cgi?id=1118228 I'm adding a user defined lldb function called 'callfunc' to the lldb helpers that are included in the Firefox source, which makes this a little easier.
Extended Description
I'd like to easily be able to attach lldb to a Firefox Nightly build and call a function called mozilla_sampler_save_profile_to_file, like this:
But since this binary doesn't come with debugging information, lldb gives me an error:
It can, however, break on the function:
As a user of lldb, I can now take that address, cast it to a function pointer, and call the function through that pointer:
Or, instead of copy-pasting the address, I can do a little scripting:
It would be nice if lldb could simplify this process for me. It knows the address of the function already, and it could theoretically derive the argument types from the demangled function name.
In https://bugzilla.mozilla.org/show_bug.cgi?id=1118228 I'm adding a user defined lldb function called 'callfunc' to the lldb helpers that are included in the Firefox source, which makes this a little easier.