def Backtrace(self, to_string=False):
    """Get a backtrace of the current position."""
    if self.inferior.is_running:
      res = self.inferior.Backtrace()
      if to_string:
        return res
      print res
    else:
      logging.error('Not attached to any process.')
def Backtrace ( self , to_string = False ) : if self . inferior . is_running : res = self . inferior . Backtrace ( ) if to_string : return res print res else : logging . error ( 'Not attached to any process.' )
Get a backtrace of the current position.