mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 840319: Keep js/src/gdb/gdb-tests.cpp's 'breakpoint' function from being unified with other functions in SM. r=sfink
This commit is contained in:
parent
a2d95150b3
commit
f32a41d7c9
@ -44,7 +44,13 @@ void reportError(JSContext *cx, const char *message, JSErrorReport *report)
|
||||
|
||||
// prolog.py sets a breakpoint on this function; test functions can call it
|
||||
// to easily return control to GDB where desired.
|
||||
void breakpoint() {}
|
||||
void breakpoint() {
|
||||
// If we leave this function empty, the linker will unify it with other
|
||||
// empty functions throughout SpiderMonkey. If we then set a GDB
|
||||
// breakpoint on it, that breakpoint will hit at all sorts of random
|
||||
// times. So make it perform a distinctive side effect.
|
||||
fprintf(stderr, "Called " __FILE__ ":breakpoint\n");
|
||||
}
|
||||
|
||||
GDBFragment *GDBFragment::allFragments = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user