GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
mi_command Struct Referenceabstract

#include "mi-cmds.h"

Inheritance diagram for mi_command:
mi_command_cli mi_command_mi mi_command_py

Public Member Functions

 mi_command (const char *name, int *suppress_notification)
 
virtual ~mi_command ()=default
 
const char * name () const
 
virtual void invoke (struct mi_parse *parse) const =0
 
bool preserve_user_selected_context () const
 
gdb::optional< scoped_restore_tmpl< int > > do_suppress_notification () const
 

Private Attributes

const char * m_name
 
int * m_suppress_notification
 

Detailed Description

Definition at line 147 of file mi-cmds.h.

Constructor & Destructor Documentation

◆ mi_command()

mi_command::mi_command ( const char * name,
int * suppress_notification )

Definition at line 177 of file mi-cmds.c.

References m_name.

Referenced by mi_command_py::swap_python_object().

◆ ~mi_command()

virtual mi_command::~mi_command ( )
virtualdefault

Member Function Documentation

◆ do_suppress_notification()

gdb::optional< scoped_restore_tmpl< int > > mi_command::do_suppress_notification ( ) const

Definition at line 187 of file mi-cmds.c.

References m_suppress_notification.

Referenced by mi_cmd_execute().

◆ invoke()

virtual void mi_command::invoke ( struct mi_parse * parse) const
pure virtual

Implemented in mi_command_mi, mi_command_cli, and mi_command_py.

Referenced by mi_cmd_execute().

◆ name()

const char * mi_command::name ( ) const
inline

◆ preserve_user_selected_context()

bool mi_command::preserve_user_selected_context ( ) const
inline

Definition at line 172 of file mi-cmds.h.

References m_suppress_notification, and mi_suppress_notification::user_selected_context.

Referenced by mi_cmd_execute().

Member Data Documentation

◆ m_name

const char* mi_command::m_name
private

Definition at line 193 of file mi-cmds.h.

Referenced by mi_command(), and name().

◆ m_suppress_notification

int* mi_command::m_suppress_notification
private

Definition at line 196 of file mi-cmds.h.

Referenced by do_suppress_notification(), and preserve_user_selected_context().


The documentation for this struct was generated from the following files: