mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 906860: Ignore segfaults handled by AsmJSFaultHandler in gdb; r=jimb,gps
This commit is contained in:
parent
4e5093e6fa
commit
354c49842b
@ -50,6 +50,10 @@ INSTALL_TARGETS += SHELL_INSTALL_AUTOLOAD
|
||||
SHELL_INSTALL_AUTOLOAD_FILES := $(CURDIR)/js-gdb.py
|
||||
SHELL_INSTALL_AUTOLOAD_DEST := $(DIST)/bin
|
||||
|
||||
INSTALL_TARGETS += SHELL_INSTALL_AUTOLOAD_SCRIPT
|
||||
SHELL_INSTALL_AUTOLOAD_SCRIPT_FILES := js-gdb.gdb
|
||||
SHELL_INSTALL_AUTOLOAD_SCRIPT_DEST := $(CURDIR)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
# People expect the js shell to wind up in the top-level JS dir.
|
||||
|
18
js/src/shell/js-gdb.gdb
Normal file
18
js/src/shell/js-gdb.gdb
Normal file
@ -0,0 +1,18 @@
|
||||
define hookpost-run
|
||||
if ($sigaction)
|
||||
call free($sigaction)
|
||||
set $sigaction = 0
|
||||
end
|
||||
end
|
||||
|
||||
catch signal SIGSEGV
|
||||
commands
|
||||
if !$sigaction
|
||||
set $sigaction = malloc(sizeof(sigaction))
|
||||
end
|
||||
set $ignored = __GI___sigaction(11, 0, $sigaction)
|
||||
set $handler = ((struct sigaction *)$sigaction)->__sigaction_handler.sa_handler
|
||||
if $handler == AsmJSFaultHandler
|
||||
continue
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user