GDB (xrefs)
Defines | Functions
/home/stan/gdb/src/gdb/environ.c File Reference
#include "defs.h"
#include "environ.h"
#include "gdb_string.h"

Go to the source code of this file.

Defines

#define min(a, b)   ((a) < (b) ? (a) : (b))
#define max(a, b)   ((a) > (b) ? (a) : (b))

Functions

struct gdb_environmake_environ (void)
void free_environ (struct gdb_environ *e)
void init_environ (struct gdb_environ *e)
char ** environ_vector (struct gdb_environ *e)
char * get_in_environ (const struct gdb_environ *e, const char *var)
void set_in_environ (struct gdb_environ *e, const char *var, const char *value)
void unset_in_environ (struct gdb_environ *e, char *var)

Define Documentation

#define max (   a,
 
)    ((a) > (b) ? (a) : (b))
#define min (   a,
 
)    ((a) < (b) ? (a) : (b))

Function Documentation

char** environ_vector ( struct gdb_environ e)

Definition at line 93 of file environ.c.

References gdb_environ::vector.

Referenced by environment_info(), and run_command_1().

void free_environ ( struct gdb_environ e)

Definition at line 44 of file environ.c.

References gdb_environ::vector, and xfree().

Referenced by free_inferior(), and unset_environment_command().

char* get_in_environ ( const struct gdb_environ e,
const char *  var 
)

Definition at line 101 of file environ.c.

References len, and gdb_environ::vector.

Referenced by environment_info(), mi_cmd_env_path(), path_command(), path_info(), and solib_find().

void init_environ ( struct gdb_environ e)

Definition at line 60 of file environ.c.

References gdb_environ::allocated, environ, len, max, memcpy(), gdb_environ::vector, xmalloc(), and xrealloc().

Referenced by add_inferior_silent().

struct gdb_environ* make_environ ( void  ) [read]

Definition at line 29 of file environ.c.

References gdb_environ::allocated, gdb_environ::vector, and xmalloc().

Referenced by add_inferior_silent(), and unset_environment_command().

void set_in_environ ( struct gdb_environ e,
const char *  var,
const char *  value 
)
void unset_in_environ ( struct gdb_environ e,
char *  var 
)

Definition at line 164 of file environ.c.

References len, gdb_environ::vector, and xfree().

Referenced by unset_environment_command().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines