WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
13018
allow embedders to override the definition of CRASH()
https://bugs.webkit.org/show_bug.cgi?id=13018
Summary
allow embedders to override the definition of CRASH()
Darin Fisher (:fishd, Google)
Reported
2007-03-08 17:37:31 PST
allow embedders to override the definition of CRASH() on some platforms, dereferencing 0xbbadbeef and writing 0 is really not the most ideal way to get attention in response to an assertion failure. for example, __asm {int 3} is much nicer on the windows platform where JIT debugging can present the user with the option to continue past the assertion with the click of a button, and if you are already running in the debugger, the instruction will be treated like an ordinary breakpoint. other platforms may have other preferred ways as well.
Attachments
patch
(884 bytes, patch)
2007-03-08 17:42 PST
,
Darin Fisher (:fishd, Google)
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Darin Fisher (:fishd, Google)
Comment 1
2007-03-08 17:42:58 PST
Created
attachment 13551
[details]
patch simple patch to make it possible for the embedder to override the meaning of CRASH()
Darin Adler
Comment 2
2007-03-08 17:46:02 PST
Comment on
attachment 13551
[details]
patch Do you have a better implementation for any particular platform? The 0xbbadbeef thing is really sorta Mac-OS-X-specific. r=me
Darin Fisher (:fishd, Google)
Comment 3
2007-03-08 18:29:04 PST
yes, PLATFORM(WIN_OS) should call DebugBreak() or __asm {int 3}. the latter is good for x86-Linux too.
Mark Rowe (bdash)
Comment 4
2007-03-08 19:25:19 PST
Landed in
r20079
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug