Bug 58405 - BACKTRACE() macro should check for Debug configuration in macro, not WTFReportBacktrace definition
Summary: BACKTRACE() macro should check for Debug configuration in macro, not WTFRepor...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-12 17:53 PDT by Paul Knight
Modified: 2011-04-13 01:15 PDT (History)
5 users (show)

See Also:


Attachments
Proposed patch (2.17 KB, patch)
2011-04-12 21:53 PDT, Paul Knight
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Knight 2011-04-12 17:53:31 PDT
The BACKTRACE() macro currently checks whether NDEBUG is defined in the implementation of WTFReportBacktrace, and not in the BACKTRACE() macro. This means you need a Debug JavaScriptCore in order for it to do anything.

It seems the check should be moved to the header file, so you can use BACKTRACE() in a WebCore debug build and not need a Debug JavaScriptCore, similar to the way the other macros like ASSERT() work.
Comment 1 Paul Knight 2011-04-12 21:53:10 PDT
Created attachment 89337 [details]
Proposed patch
Comment 2 Gavin Barraclough 2011-04-12 22:10:24 PDT
Comment on attachment 89337 [details]
Proposed patch

Looks great.
Comment 3 WebKit Commit Bot 2011-04-13 01:14:56 PDT
Comment on attachment 89337 [details]
Proposed patch

Clearing flags on attachment: 89337

Committed r83709: <http://trac.webkit.org/changeset/83709>
Comment 4 WebKit Commit Bot 2011-04-13 01:15:01 PDT
All reviewed patches have been landed.  Closing bug.