(self)
return gdb.selected_thread().is_stopped()
This detects whether selected thread is stopped. 
        It is not stopped in situations when gdb is executing commands 
        that are attached to a breakpoint by `command` command.

        For more info see issue #229 ( https://github.com/pwndbg/pwndbg/issues/299 )
        :return: Whether gdb executes commands attached to bp with `command` command.
This detects whether selected thread is stopped. 
        It is not stopped in situations when gdb is executing commands 
        that are attached to a breakpoint by `command` command.
This detects whether selected thread is stopped . It is not stopped in situations when gdb is executing commands that are attached to a breakpoint by command command .
def thread_is_stopped(self):
        """
        This detects whether selected thread is stopped. 
        It is not stopped in situations when gdb is executing commands 
        that are attached to a breakpoint by `command` command.

        For more info see issue #229 ( https://github.com/pwndbg/pwndbg/issues/299 )
        :return: Whether gdb executes commands attached to bp with `command` command.
        """
        return gdb.selected_thread().is_stopped()
def thread_is_stopped ( self ) : return gdb . selected_thread ( ) . is_stopped ( )