GDB (xrefs)
Classes | Defines | Typedefs | Functions | Variables
/home/stan/gdb/src/gdb/python/py-cmd.c File Reference
#include "defs.h"
#include "arch-utils.h"
#include "value.h"
#include "exceptions.h"
#include "python-internal.h"
#include "charset.h"
#include "gdbcmd.h"
#include "cli/cli-decode.h"
#include "completer.h"
#include "language.h"

Go to the source code of this file.

Classes

struct  cmdpy_completer
struct  cmdpy_object

Defines

#define N_COMPLETERS   (sizeof (completers) / sizeof (completers[0]))

Typedefs

typedef struct cmdpy_object cmdpy_object

Functions

static PyTypeObject
cmdpy_object_type 
CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("cmdpy_object")
static PyObjectcmdpy_dont_repeat (PyObject *self, PyObject *args)
static void cmdpy_destroyer (struct cmd_list_element *self, void *context)
static void cmdpy_function (struct cmd_list_element *command, char *args, int from_tty)
static VEC (char_ptr)
char * gdbpy_parse_command_name (const char *name, struct cmd_list_element ***base_list, struct cmd_list_element **start_list)
static int cmdpy_init (PyObject *self, PyObject *args, PyObject *kw)
int gdbpy_initialize_commands (void)
PyObjectgdbpy_string_to_argv (PyObject *self, PyObject *args)

Variables

static struct cmdpy_completer completers []
static PyObjectinvoke_cst
static PyObjectcomplete_cst
static PyMethodDef cmdpy_object_methods []
static PyTypeObject cmdpy_object_type

Define Documentation

#define N_COMPLETERS   (sizeof (completers) / sizeof (completers[0]))

Definition at line 50 of file py-cmd.c.

Referenced by cmdpy_init(), gdbpy_initialize_commands(), and VEC().


Typedef Documentation

typedef struct cmdpy_object cmdpy_object

Definition at line 69 of file py-cmd.c.


Function Documentation

static void cmdpy_destroyer ( struct cmd_list_element self,
void *  context 
) [static]
static PyObject* cmdpy_dont_repeat ( PyObject self,
PyObject args 
) [static]

Definition at line 82 of file py-cmd.c.

References dont_repeat().

static void cmdpy_function ( struct cmd_list_element command,
char *  args,
int  from_tty 
) [static]
static int cmdpy_init ( PyObject self,
PyObject args,
PyObject kw 
) [static]
static PyTypeObject cmdpy_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ( "cmdpy_object"  ) [static]
char* gdbpy_parse_command_name ( const char *  name,
struct cmd_list_element ***  base_list,
struct cmd_list_element **  start_list 
)

Definition at line 324 of file py-cmd.c.

References _, len, lookup_cmd_1(), memcpy(), cmd_list_element::prefixlist, xfree(), and xmalloc().

Referenced by cmdpy_init(), and parmpy_init().

PyObject* gdbpy_string_to_argv ( PyObject self,
PyObject args 
)

Definition at line 678 of file py-cmd.c.

References gdb_buildargv(), and Py_DECREF.

static VEC ( char_ptr  ) [static]

Variable Documentation

PyMethodDef cmdpy_object_methods[] [static]
Initial value:
{
  { "dont_repeat", cmdpy_dont_repeat, METH_NOARGS,
    "Prevent command repetition when user enters empty line." },

  { 0 }
}

Definition at line 619 of file py-cmd.c.

PyTypeObject cmdpy_object_type [static]

Definition at line 627 of file py-cmd.c.

Referenced by gdbpy_initialize_commands().

Definition at line 76 of file py-cmd.c.

Referenced by gdbpy_initialize_commands(), and VEC().

struct cmdpy_completer completers[] [static]
Initial value:
{
  { "COMPLETE_NONE", noop_completer },
  { "COMPLETE_FILENAME", filename_completer },
  { "COMPLETE_LOCATION", location_completer },
  { "COMPLETE_COMMAND", command_completer },
  { "COMPLETE_SYMBOL", make_symbol_completion_list_fn },
}

Definition at line 41 of file py-cmd.c.

PyObject* invoke_cst [static]

Definition at line 75 of file py-cmd.c.

Referenced by cmdpy_function(), cmdpy_init(), and gdbpy_initialize_commands().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines