code: def do_stack(self, arg):
          
          if arg:     # XXX TODO add depth parameter
              raise CmdError("too many arguments")
          pid, tid        = self.get_process_and_thread_ids_from_prefix()
          process         = self.get_process(pid)
          thread          = process.get_thread(tid)
          try:
              stack_trace = thread.get_stack_trace_with_labels()
              if stack_trace:
                  print(CrashDump.dump_stack_trace_with_labels(stack_trace),)
              else:
                  print("No stack trace available for thread (%d)" % tid)
          except WindowsError:
              print("Can't get stack trace for thread (%d)" % tid)
docs: [~thread] k - show the stack trace
          [~thread] stack - show the stack trace