Closed Bug 670686 Opened 14 years ago Closed 14 years ago

jscrashreport.cpp fails to compile on mingw

Categories

(Core :: JavaScript Engine, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla8

People

(Reporter: jacek, Assigned: jacek)

References

Details

Attachments

(2 files, 1 obsolete file)

Attached patch fix v1.0 (obsolete) — Splinter Review
It's mostly due to using MS-style inline assembly. I could add ifdefed GCC assembly, but I think it's cleaner to use the existing solution for win64 and call RtlCaptureContext. I've also changed case in windows.h include to fix cross compiling on case sensitive OSes.
Attachment #545193 - Flags: review?(wmccloskey)
Thanks for the patch. Unfortunately, I just found out on #developers that we still nominally support Windows 2000, where RtlCaptureContext is unavailable. Is there some other way to do this?
Assignee: general → jacek
Attachment #545193 - Attachment is obsolete: true
Attachment #545213 - Flags: review?(wmccloskey)
Attachment #545193 - Flags: review?(wmccloskey)
Attachment #545214 - Flags: review?(wmccloskey)
Thanks for quick review. I've attached two versions of the fix that will keep support for win2k. The first version is just a port of existing assembly code to GCC. The second version is my previous approach, ifdefed so that MSC builds will still use assembly code. I think it's fine to not support win2k in mingw builds (I'd expect it to be already broken). Also this way, once we'll drop win2k support, we can just remove _MSC_VER ifdef and use the new code for MSC as well. I will the choice for you.
Comment on attachment 545214 [details] [diff] [review] fix without support for win2k in mingw builds Review of attachment 545214 [details] [diff] [review]: ----------------------------------------------------------------- Thanks again. I like this one better.
Attachment #545214 - Flags: review?(wmccloskey) → review+
Whiteboard: [inbound]
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
Target Milestone: --- → mozilla8
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: