Closed Bug 1150642 Opened 9 years ago Closed 9 years ago

Make mozilla_sampler_save_profile_to_file easily callable from lldb in builds without debug information.

Categories

(Core :: Gecko Profiler, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: mstange, Assigned: mstange)

Details

Attachments

(1 file)

Attached patch patchSplinter Review
This works around http://llvm.org/bugs/show_bug.cgi?id=22211 , which only applies to functions that have C++ name mangling applied to them. Wrapping the declaration of the function into extern "C" stops the mangling and lets us call the function with "print" in lldb as usual.

This patch received r=jrmuizel in person.
Attachment #8587561 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/d0fc7202b4cb
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: