Closed
Bug 498509
Opened 15 years ago
Closed 15 years ago
Produce debuggable optimized builds for Mozilla on MacOSX
Categories
(NSS :: Build, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
3.12.4
People
(Reporter: nelson, Assigned: glenbeasley)
References
(Depends on 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
470 bytes,
patch
|
nelson
:
review+
|
Details | Diff | Splinter Review |
NSS is now able to build special builds that are optimized but also have debugging symbols. This is presently enabled by setting the environment
variable MOZ_DEBUG_SYMBOLS to a non-empty string. But presently this
only works on Windows, and then only when built with MSVC.
This bug requests that it also be made to work with MacOSX builds.
The first step will be to determine what changes are needed to compiler
and linker commands to do this. Maybe we can get clues by studying
Firefox build logs.
Reporter | ||
Updated•15 years ago
|
Assignee: nobody → glen.beasley
No longer blocks: 498511
Priority: -- → P1
Target Milestone: 3.12.4 → 3.12.5
Reporter | ||
Comment 1•15 years ago
|
||
It's critical that we be able to debug cores and stack traces from Macs.
Severity: enhancement → critical
Assignee | ||
Updated•15 years ago
|
Status: NEW → ASSIGNED
Comment 2•15 years ago
|
||
We do this in Firefox simply by adding CFLAGS/CXXFLAGS="-gdwarf-2 -gfull"
Reporter | ||
Comment 3•15 years ago
|
||
Please treat this bug as urgent and with high priority.
Crashes in NSS code are found in Mozilla's list of most frequent crashes,
and many of them are undiagnosed and unresolved because of this bug.
Lack of resolution to these is the single biggest hindrance to Mozilla
taking newer versions of NSS 3.12.x. That is why I have marked these bugs
as P1 for 3.12.5.
Assignee | ||
Comment 4•15 years ago
|
||
Tested patch for 32 and 64 builds.
Attachment #390954 -
Flags: review?(nelson)
Comment 5•15 years ago
|
||
Comment on attachment 390954 [details] [diff] [review]
create debuggable optimize builds if MOZ_DEBUG_SYMBOLS is set
Glen, does it work to add the flags to the OS_CFLAGS variable instead
(after line 108)?
Reporter | ||
Comment 6•15 years ago
|
||
Glen, I'd prefer if the flags would be added to one of the many make
variables that exist for the purpose of holding flags for CC, such as
OS_CFLAGS.
Assignee | ||
Comment 7•15 years ago
|
||
Comment on attachment 390954 [details] [diff] [review]
create debuggable optimize builds if MOZ_DEBUG_SYMBOLS is set
thanks nelson/wanteh, I am in the process of testing the next patch.
Attachment #390954 -
Flags: review?(nelson)
Assignee | ||
Comment 8•15 years ago
|
||
This patch follows the same approved functionality of bug 498511 which Produced debuggable optimized NSS builds for Mozilla on Linux.
Attachment #390954 -
Attachment is obsolete: true
Attachment #391671 -
Flags: review?(nelson)
Reporter | ||
Comment 9•15 years ago
|
||
Comment on attachment 391671 [details] [diff] [review]
if BUILD_OPT and MOZ_DEBUG_SYMBOLS are set create debuggable optimize builds
r=nelson
Attachment #391671 -
Flags: review?(nelson) → review+
Assignee | ||
Comment 10•15 years ago
|
||
Checking in Darwin.mk;
/cvsroot/mozilla/security/coreconf/Darwin.mk,v <-- Darwin.mk
new revision: 1.22; previous revision: 1.21
done
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Reporter | ||
Updated•15 years ago
|
Target Milestone: 3.12.5 → 3.12.4
You need to log in
before you can comment on or make changes to this bug.
Description
•