GDB (xrefs)
Classes | Typedefs | Enumerations | Functions | Variables
/tmp/gdb-7.10/gdb/extension.h File Reference
#include "mi/mi-cmds.h"
#include "common/vec.h"

Go to the source code of this file.

Classes

struct  ext_lang_type_printers
 
struct  xmethod_worker
 

Typedefs

typedef void script_sourcer_func(const struct extension_language_defn *, FILE *stream, const char *filename)
 
typedef void objfile_script_sourcer_func(const struct extension_language_defn *, struct objfile *, FILE *stream, const char *filename)
 
typedef void objfile_script_executor_func(const struct extension_language_defn *, struct objfile *, const char *name, const char *script)
 
typedef struct xmethod_workerxmethod_worker_ptr
 

Enumerations

enum  extension_language { EXT_LANG_NONE, EXT_LANG_GDB, EXT_LANG_PYTHON, EXT_LANG_GUILE }
 
enum  ext_lang_bt_status { EXT_LANG_BT_ERROR = -1, EXT_LANG_BT_OK = 1, EXT_LANG_BT_COMPLETED = 2, EXT_LANG_BT_NO_FILTERS = 3 }
 
enum  frame_filter_flags { PRINT_LEVEL = 1, PRINT_FRAME_INFO = 2, PRINT_ARGS = 4, PRINT_LOCALS = 8 }
 
enum  ext_lang_frame_args {
  NO_VALUES = PRINT_NO_VALUES, MI_PRINT_ALL_VALUES = PRINT_ALL_VALUES, MI_PRINT_SIMPLE_VALUES = PRINT_SIMPLE_VALUES, CLI_SCALAR_VALUES,
  CLI_ALL_VALUES
}
 
enum  ext_lang_bp_stop { EXT_LANG_BP_STOP_UNSET, EXT_LANG_BP_STOP_NO, EXT_LANG_BP_STOP_YES }
 

Functions

 DEF_VEC_P (xmethod_worker_ptr)
 
typedef VEC (xmethod_worker_ptr) xmethod_worker_vec
 
const struct extension_language_defnget_ext_lang_defn (enum extension_language lang)
 
const struct extension_language_defnget_ext_lang_of_file (const char *file)
 
int ext_lang_present_p (const struct extension_language_defn *)
 
int ext_lang_initialized_p (const struct extension_language_defn *)
 
void throw_ext_lang_unsupported (const struct extension_language_defn *)
 
enum extension_language ext_lang_kind (const struct extension_language_defn *)
 
const char * ext_lang_name (const struct extension_language_defn *)
 
const char * ext_lang_capitalized_name (const struct extension_language_defn *)
 
const char * ext_lang_suffix (const struct extension_language_defn *)
 
const char * ext_lang_auto_load_suffix (const struct extension_language_defn *)
 
script_sourcer_funcext_lang_script_sourcer (const struct extension_language_defn *)
 
objfile_script_sourcer_funcext_lang_objfile_script_sourcer (const struct extension_language_defn *)
 
objfile_script_executor_funcext_lang_objfile_script_executor (const struct extension_language_defn *)
 
int ext_lang_auto_load_enabled (const struct extension_language_defn *)
 
void finish_ext_lang_initialization (void)
 
void eval_ext_lang_from_control_command (struct command_line *cmd)
 
void auto_load_ext_lang_scripts_for_objfile (struct objfile *)
 
struct ext_lang_type_printersstart_ext_lang_type_printers (void)
 
char * apply_ext_lang_type_printers (struct ext_lang_type_printers *, struct type *)
 
void free_ext_lang_type_printers (struct ext_lang_type_printers *)
 
int apply_ext_lang_val_pretty_printer (struct type *type, const gdb_byte *valaddr, int embedded_offset, CORE_ADDR address, struct ui_file *stream, int recurse, const struct value *val, const struct value_print_options *options, const struct language_defn *language)
 
enum ext_lang_bt_status apply_ext_lang_frame_filter (struct frame_info *frame, int flags, enum ext_lang_frame_args args_type, struct ui_out *out, int frame_low, int frame_high)
 
void preserve_ext_lang_values (struct objfile *, htab_t copied_types)
 
const struct extension_language_defnget_breakpoint_cond_ext_lang (struct breakpoint *b, enum extension_language skip_lang)
 
int breakpoint_ext_lang_cond_says_stop (struct breakpoint *)
 
struct valueinvoke_xmethod (struct xmethod_worker *, struct value *, struct value **, int nargs)
 
struct xmethod_workerclone_xmethod_worker (struct xmethod_worker *)
 
struct xmethod_workernew_xmethod_worker (const struct extension_language_defn *extlang, void *data)
 
void free_xmethod_worker (struct xmethod_worker *)
 
void free_xmethod_worker_vec (void *vec)
 
xmethod_worker_vec * get_matching_xmethod_workers (struct type *, const char *)
 
struct type ** get_xmethod_arg_types (struct xmethod_worker *, int *)
 
struct typeget_xmethod_result_type (struct xmethod_worker *, struct value *object, struct value **args, int nargs)
 

Variables

const struct extension_language_defn extension_language_gdb
 

Typedef Documentation

typedef void objfile_script_executor_func(const struct extension_language_defn *, struct objfile *, const char *name, const char *script)

Definition at line 54 of file extension.h.

typedef void objfile_script_sourcer_func(const struct extension_language_defn *, struct objfile *, FILE *stream, const char *filename)

Definition at line 48 of file extension.h.

typedef void script_sourcer_func(const struct extension_language_defn *, FILE *stream, const char *filename)

Definition at line 41 of file extension.h.

Definition at line 164 of file extension.h.

Enumeration Type Documentation

Enumerator
EXT_LANG_BP_STOP_UNSET 
EXT_LANG_BP_STOP_NO 
EXT_LANG_BP_STOP_YES 

Definition at line 129 of file extension.h.

Enumerator
EXT_LANG_BT_ERROR 
EXT_LANG_BT_OK 
EXT_LANG_BT_COMPLETED 
EXT_LANG_BT_NO_FILTERS 

Definition at line 69 of file extension.h.

Enumerator
NO_VALUES 
MI_PRINT_ALL_VALUES 
MI_PRINT_SIMPLE_VALUES 
CLI_SCALAR_VALUES 
CLI_ALL_VALUES 

Definition at line 108 of file extension.h.

Enumerator
EXT_LANG_NONE 
EXT_LANG_GDB 
EXT_LANG_PYTHON 
EXT_LANG_GUILE 

Definition at line 59 of file extension.h.

Enumerator
PRINT_LEVEL 
PRINT_FRAME_INFO 
PRINT_ARGS 
PRINT_LOCALS 

Definition at line 90 of file extension.h.

Function Documentation

enum ext_lang_bt_status apply_ext_lang_frame_filter ( struct frame_info frame,
int  flags,
enum ext_lang_frame_args  args_type,
struct ui_out out,
int  frame_low,
int  frame_high 
)
char* apply_ext_lang_type_printers ( struct ext_lang_type_printers ,
struct type  
)
int apply_ext_lang_val_pretty_printer ( struct type type,
const gdb_byte valaddr,
int  embedded_offset,
CORE_ADDR  address,
struct ui_file stream,
int  recurse,
const struct value val,
const struct value_print_options options,
const struct language_defn language 
)
void auto_load_ext_lang_scripts_for_objfile ( struct objfile )
int breakpoint_ext_lang_cond_says_stop ( struct breakpoint )
struct xmethod_worker* clone_xmethod_worker ( struct xmethod_worker )
DEF_VEC_P ( xmethod_worker_ptr  )
void eval_ext_lang_from_control_command ( struct command_line cmd)
int ext_lang_auto_load_enabled ( const struct extension_language_defn )
const char* ext_lang_auto_load_suffix ( const struct extension_language_defn )
const char* ext_lang_capitalized_name ( const struct extension_language_defn )
int ext_lang_initialized_p ( const struct extension_language_defn )
enum extension_language ext_lang_kind ( const struct extension_language_defn )
const char* ext_lang_name ( const struct extension_language_defn )
objfile_script_executor_func* ext_lang_objfile_script_executor ( const struct extension_language_defn )
objfile_script_sourcer_func* ext_lang_objfile_script_sourcer ( const struct extension_language_defn )
int ext_lang_present_p ( const struct extension_language_defn )

Definition at line 169 of file extension.c.

References extension_language_defn::script_ops.

Referenced by source_script_from_stream().

script_sourcer_func* ext_lang_script_sourcer ( const struct extension_language_defn )
const char* ext_lang_suffix ( const struct extension_language_defn )

Definition at line 242 of file extension.c.

References extension_language_defn::suffix.

void finish_ext_lang_initialization ( void  )
void free_ext_lang_type_printers ( struct ext_lang_type_printers )
void free_xmethod_worker ( struct xmethod_worker )
void free_xmethod_worker_vec ( void *  vec)

Definition at line 1020 of file extension.c.

References free_xmethod_worker(), VEC(), VEC_free, and VEC_iterate.

Referenced by find_overload_match(), and VEC().

const struct extension_language_defn* get_breakpoint_cond_ext_lang ( struct breakpoint b,
enum extension_language  skip_lang 
)
const struct extension_language_defn* get_ext_lang_defn ( enum extension_language  lang)
const struct extension_language_defn* get_ext_lang_of_file ( const char *  file)
xmethod_worker_vec* get_matching_xmethod_workers ( struct type ,
const char *   
)

Referenced by find_method_list().

struct type** get_xmethod_arg_types ( struct xmethod_worker ,
int  
)
struct type* get_xmethod_result_type ( struct xmethod_worker ,
struct value object,
struct value **  args,
int  nargs 
)
struct value* invoke_xmethod ( struct xmethod_worker ,
struct value ,
struct value **  ,
int  nargs 
)
struct xmethod_worker* new_xmethod_worker ( const struct extension_language_defn extlang,
void *  data 
)
void preserve_ext_lang_values ( struct objfile ,
htab_t  copied_types 
)
struct ext_lang_type_printers* start_ext_lang_type_printers ( void  )
void throw_ext_lang_unsupported ( const struct extension_language_defn )
typedef VEC ( xmethod_worker_ptr  )

Variable Documentation

const struct extension_language_defn extension_language_gdb