parameters: (event)
docstring: handle a crash from the program running in gdb
docstring_summary: handle a crash from the program running in gdb
docstring_tokens: handle a crash from the program running in gdb
function: def crash_handler (event):
      """
      handle a crash from the program running in gdb
      """
      if isinstance(event, gdb.SignalEvent):
          log_file_name = "crash.out.txt"
          # poop out log file for stack trace of all threads
          gdb_execmany("set logging file {}".format(log_file_name), "set logging on", "set logging redirect on", "thread apply all bt full")
          # quit gdb
          gdb.execute("q")
function_tokens: def crash_handler ( event ) : if isinstance ( event , gdb . SignalEvent ) : log_file_name = "crash.out.txt" # poop out log file for stack trace of all threads gdb_execmany ( "set logging file {}" . format ( log_file_name ) , "set logging on" , "set logging redirect on" , "thread apply all bt full" ) # quit gdb gdb . execute ( "q" )