# File lib/sigdump.rb, line 43
  def self.dump_backtrace(thread, io)
    status = thread.status
    if status == nil
      status = "finished"
    elsif status == false
      status = "error"
    end

    io.write "  Thread #{thread} status=#{status} priority=#{thread.priority}\n"
    thread.backtrace.each {|bt|
      io.write "      #{bt}\n"
    }

    io.flush
    nil
  end