diff options
author | siggi@chromium.org <siggi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-14 13:57:02 +0000 |
---|---|---|
committer | siggi@chromium.org <siggi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-14 13:57:02 +0000 |
commit | 646f6b464ecb22bade797783063e655e83dde764 (patch) | |
tree | 99d4de495eab7de128f2be357903570512caffbb /build | |
parent | dd4200a77f5bdf0777d1d26fe74dc65842261b2c (diff) | |
download | chromium_src-646f6b464ecb22bade797783063e655e83dde764.zip chromium_src-646f6b464ecb22bade797783063e655e83dde764.tar.gz chromium_src-646f6b464ecb22bade797783063e655e83dde764.tar.bz2 |
Disable ASLR for debug builds.
This will make debugging Chrome with WinDbg a little less painful.
BUG=none
TEST=everything compiles
Review URL: http://codereview.chromium.org/7329020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92531 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r-- | build/common.gypi | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi index 9b67d73..4b9ead9 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -1026,6 +1026,15 @@ }, 'VCLinkerTool': { 'LinkIncremental': '<(msvs_debug_link_incremental)', + # ASLR makes debugging with windbg difficult because Chrome.exe and + # Chrome.dll share the same base name. As result, windbg will + # name the Chrome.dll module like chrome_<base address>, where + # <base address> typically changes with each launch. This in turn + # means that breakpoints in Chrome.dll don't stick from one launch + # to the next. For this reason, we turn ASLR off in debug builds. + # Note that this is a three-way bool, where 0 means to pick up + # the default setting, 1 is off and 2 is on. + 'RandomizedBaseAddress': 1, }, 'VCResourceCompilerTool': { 'PreprocessorDefinitions': ['_DEBUG'], |