Bug 1074911 - Replace JS_ASSERT by MOZ_ASSERT. r=jorendorff
Apply the following script
sed -i '
/JS_ASSERT(/ {
s/JS_ASSERT(/MOZ_ASSERT(/;
:b;
s/ \\$/\\/;
/;/ { p; d; };
n;
s/^/ /;
b b;
};
s/JS_ASSERT (/MOZ_ASSERT(/;
'
Except where the JS_ASSERT macro does not end with a semi-colon, where empty
lines are in the middle of the macro, and where the backslahes are always the
same-length after the expression.
""" GDB Python customization auto-loader for libxul """
#filter substitution
import os.path
sys.path[0:0] = [os.path.join('@topsrcdir@', 'js', 'src', 'gdb')]
import mozilla.autoload
mozilla.autoload.register(gdb.current_objfile())