GDB (API)
Defines | Typedefs | Enumerations | Functions
/home/stan/gdb/src/gdb/linespec.c File Reference
#include "defs.h"
#include "symtab.h"
#include "frame.h"
#include "command.h"
#include "symfile.h"
#include "objfiles.h"
#include "source.h"
#include "demangle.h"
#include "value.h"
#include "completer.h"
#include "cp-abi.h"
#include "cp-support.h"
#include "parser-defs.h"
#include "block.h"
#include "objc-lang.h"
#include "linespec.h"
#include "exceptions.h"
#include "language.h"
#include "interps.h"
#include "mi/mi-cmds.h"
#include "target.h"
#include "arch-utils.h"
#include <ctype.h>
#include "cli/cli-utils.h"
#include "filenames.h"
#include "ada-lang.h"
#include "stack.h"

Go to the source code of this file.

Defines

#define LS_TOKEN_STOKEN(TOK)   (TOK).data.string
#define LS_TOKEN_KEYWORD(TOK)   (TOK).data.keyword
#define PARSER_STREAM(P)   (*(P)->lexer.stream)
#define PARSER_STATE(PPTR)   (&(PPTR)->state)
#define PARSER_RESULT(PPTR)   (&(PPTR)->result)

Typedefs

typedef struct symbolsymbolp
typedef struct typetypep
typedef struct bound_minimal_symbol bound_minimal_symbol_d
typedef struct linespec * linespec_p
typedef enum ls_token_type linespec_token_type
typedef struct ls_token linespec_token
typedef struct ls_parser linespec_parser

Enumerations

enum  offset_relative_sign { LINE_OFFSET_NONE, LINE_OFFSET_PLUS, LINE_OFFSET_MINUS, LINE_OFFSET_UNKNOWN }
enum  ls_token_type {
  LSTOKEN_KEYWORD = 0, LSTOKEN_COLON, LSTOKEN_STRING, LSTOKEN_NUMBER,
  LSTOKEN_COMMA, LSTOKEN_EOI, LSTOKEN_CONSUMED
}

Functions

 DEF_VEC_P (symbolp)
 DEF_VEC_P (typep)
 DEF_VEC_O (bound_minimal_symbol_d)
void decode_line_full (char **argptr, int flags, struct symtab *default_symtab, int default_line, struct linespec_result *canonical, const char *select_mode, const char *filter)
struct symtabs_and_lines decode_line_1 (char **argptr, int flags, struct symtab *default_symtab, int default_line)
struct symtabs_and_lines decode_line_with_current_source (char *string, int flags)
struct symtabs_and_lines decode_line_with_last_displayed (char *string, int flags)
void init_linespec_result (struct linespec_result *lr)
void destroy_linespec_result (struct linespec_result *ls)
struct cleanup * make_cleanup_destroy_linespec_result (struct linespec_result *ls)

Define Documentation

#define LS_TOKEN_KEYWORD (   TOK)    (TOK).data.keyword

Definition at line 271 of file linespec.c.

#define LS_TOKEN_STOKEN (   TOK)    (TOK).data.string

Definition at line 270 of file linespec.c.

#define PARSER_RESULT (   PPTR)    (&(PPTR)->result)

Definition at line 305 of file linespec.c.

#define PARSER_STATE (   PPTR)    (&(PPTR)->state)

Definition at line 301 of file linespec.c.

#define PARSER_STREAM (   P)    (*(P)->lexer.stream)

Definition at line 285 of file linespec.c.


Typedef Documentation

Definition at line 64 of file linespec.c.

typedef struct linespec* linespec_p

Definition at line 148 of file linespec.c.

typedef struct ls_parser linespec_parser

Definition at line 307 of file linespec.c.

typedef struct ls_token linespec_token

Definition at line 268 of file linespec.c.

Definition at line 245 of file linespec.c.

typedef struct symbol* symbolp

Definition at line 48 of file linespec.c.

typedef struct type* typep

Definition at line 51 of file linespec.c.


Enumeration Type Documentation

Enumerator:
LSTOKEN_KEYWORD 
LSTOKEN_COLON 
LSTOKEN_STRING 
LSTOKEN_NUMBER 
LSTOKEN_COMMA 
LSTOKEN_EOI 
LSTOKEN_CONSUMED 

Definition at line 222 of file linespec.c.

Enumerator:
LINE_OFFSET_NONE 
LINE_OFFSET_PLUS 
LINE_OFFSET_MINUS 
LINE_OFFSET_UNKNOWN 

Definition at line 69 of file linespec.c.


Function Documentation

struct symtabs_and_lines decode_line_1 ( char **  argptr,
int  flags,
struct symtab default_symtab,
int  default_line 
) [read]

Definition at line 2495 of file linespec.c.

void decode_line_full ( char **  argptr,
int  flags,
struct symtab default_symtab,
int  default_line,
struct linespec_result canonical,
const char *  select_mode,
const char *  filter 
)

Definition at line 2418 of file linespec.c.

struct symtabs_and_lines decode_line_with_current_source ( char *  string,
int  flags 
) [read]

Definition at line 2520 of file linespec.c.

struct symtabs_and_lines decode_line_with_last_displayed ( char *  string,
int  flags 
) [read]

Definition at line 2543 of file linespec.c.

Definition at line 3686 of file linespec.c.

void init_linespec_result ( struct linespec_result lr)

Definition at line 3678 of file linespec.c.

struct cleanup* make_cleanup_destroy_linespec_result ( struct linespec_result ls) [read]

Definition at line 3711 of file linespec.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines