Closed Bug 1118228 Opened 9 years ago Closed 9 years ago

Add an lldb helper that allows calling functions without debug info

Categories

(Core :: General, defect)

All
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38

People

(Reporter: mstange, Assigned: mstange)

Details

Attachments

(1 file)

Attached patch patchSplinter Review
This is very rough but allows one to do

> $ lldb
> (lldb) attach firefox
> Process 91725 stopped
> Executable module set to "/Applications/FirefoxNightly.app/Contents/MacOS/firefox".
> Architecture set to: x86_64-apple-macosx.
> (lldb) callfunc mozilla_sampler_save_profile_to_file("/Users/mstange/Desktop/profile.txt")

in order to get a profile from a hung Nightly.
Attachment #8544578 - Flags: review?(jmuizelaar)
Comment on attachment 8544578 [details] [diff] [review]
patch

Review of attachment 8544578 [details] [diff] [review]:
-----------------------------------------------------------------

Seems reasonable to me. Ehsan might want to take a look as he's reviewed things in this file before.

You should also probably do the responsible thing and file a bug against lldb that you can put in a comment for this helper giving the motivation.
Attachment #8544578 - Flags: review?(jmuizelaar) → review+
Attachment #8544578 - Flags: review?(ehsan)
Attachment #8544578 - Flags: review?(ehsan) → review+
https://hg.mozilla.org/mozilla-central/rev/4a6767d4b59b
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: