GDB (API)
Defines | Functions | Variables
/home/stan/gdb/src/gdb/python/py-frame.c File Reference
#include "defs.h"
#include "charset.h"
#include "block.h"
#include "frame.h"
#include "exceptions.h"
#include "symtab.h"
#include "stack.h"
#include "value.h"
#include "python-internal.h"
#include "symfile.h"
#include "objfiles.h"
#include "unwind_stop_reasons.def"

Go to the source code of this file.

Defines

#define FRAPY_REQUIRE_VALID(frame_obj, frame)
#define SET(name, description)
#define FIRST_ERROR(name)

Functions

struct frame_info * frame_object_to_frame_info (PyObject *obj)
PyObjectframe_info_to_frame_object (struct frame_info *frame)
PyObjectgdbpy_newest_frame (PyObject *self, PyObject *args)
PyObjectgdbpy_selected_frame (PyObject *self, PyObject *args)
PyObjectgdbpy_frame_stop_reason_string (PyObject *self, PyObject *args)
int gdbpy_initialize_frames (void)

Variables

PyTypeObject frame_object_type

Define Documentation

#define FIRST_ERROR (   name)
Value:
if (PyModule_AddIntConstant (gdb_module, "FRAME_"#name, name) < 0) \
    return -1;
#define FRAPY_REQUIRE_VALID (   frame_obj,
  frame 
)
Value:
do {                                            \
      frame = frame_object_to_frame_info (frame_obj);   \
      if (frame == NULL)                                \
        error (_("Frame is invalid."));                 \
    } while (0)

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

#define SET (   name,
  description 
)
Value:
if (PyModule_AddIntConstant (gdb_module, "FRAME_"#name, name) < 0) \
    return -1;

Function Documentation

PyObject* frame_info_to_frame_object ( struct frame_info *  frame)

Definition at line 307 of file py-frame.c.

struct frame_info* frame_object_to_frame_info ( PyObject obj) [read]

Definition at line 62 of file py-frame.c.

Definition at line 576 of file py-frame.c.

Definition at line 625 of file py-frame.c.

PyObject* gdbpy_newest_frame ( PyObject self,
PyObject args 
)

Definition at line 540 of file py-frame.c.

PyObject* gdbpy_selected_frame ( PyObject self,
PyObject args 
)

Definition at line 558 of file py-frame.c.


Variable Documentation

PyTypeObject frame_object_type

Definition at line 704 of file py-frame.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines