Ignore:
Timestamp:
Jan 18, 2012, 5:35:57 AM (13 years ago)
Author:
[email protected]
Message:

[Qt] Consolidate layout test crash logging
https://bugs.webkit.org/show_bug.cgi?id=75088

Reviewed by Simon Hausmann.

Move backtrace generating logic into WTFReportBacktrace
and add a way to deinstall signal handlers if we know
that we have already printed the backtrace.

.:

  • Source/qtwebkit-export.map:

Source/JavaScriptCore:

(WTFLogLocker::WTFReportBacktrace):
(WTFLogLocker::WTFSetCrashHook):
(WTFLogLocker::WTFInvokeCrashHook):

  • wtf/Assertions.h:

Tools:

  • DumpRenderTree/qt/main.cpp:

(crashHandler):
(setupSignalHandlers):
(WTFCrashHook):
(main):

  • WebKitTestRunner/InjectedBundle/qt/InjectedBundleQt.cpp:

(WTR::crashHandler):
(WTR::setupSignalHandlers):
(WTR::crashHook):
(WTR::InjectedBundle::platformInitialize):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/wtf/Assertions.h

    r103083 r105267  
    148148WTF_EXPORT_PRIVATE void WTFReportBacktrace();
    149149
     150typedef void (*WTFCrashHookFunction)();
     151WTF_EXPORT_PRIVATE void WTFSetCrashHook(WTFCrashHookFunction);
     152WTF_EXPORT_PRIVATE void WTFInvokeCrashHook();
     153
    150154#ifdef __cplusplus
    151155}
     
    164168#define CRASH() do { \
    165169    WTFReportBacktrace(); \
     170    WTFInvokeCrashHook(); \
    166171    *(int *)(uintptr_t)0xbbadbeef = 0; \
    167172    __builtin_trap(); \
     
    170175#define CRASH() do { \
    171176    WTFReportBacktrace(); \
     177    WTFInvokeCrashHook(); \
    172178    *(int *)(uintptr_t)0xbbadbeef = 0; \
    173179    ((void(*)())0)(); /* More reliable, but doesn't say BBADBEEF */ \
Note: See TracChangeset for help on using the changeset viewer.