handle SIGSEGV nostop noprint pass
handle SIGILL nostop noprint pass
handle SIGXCPU nostop noprint pass
handle SIGPWR nostop noprint pass
file cacao
set args -Djava.library.path=. Test
set breakpoint pending on

# notice whether this happens
#break threadMain
#break threads_set_current_threadobject
#break GC_init_thread_local
#break GC_new_thread
break GC_thr_init_foreign

define hook-stop
  handle SIGSEGV stop print
end

define nosegf
  handle SIGSEGV nostop noprint pass
end
