GDB (API)
Defines | Functions
/home/stan/gdb/src/gdb/cleanups.c File Reference
#include "defs.h"
#include "gdb_assert.h"

Go to the source code of this file.

Defines

#define SENTINEL_CLEANUP   ((struct cleanup *) &sentinel_cleanup)

Functions

struct cleanup * make_cleanup (make_cleanup_ftype *function, void *arg)
struct cleanup * make_cleanup_dtor (make_cleanup_ftype *function, void *arg, void(*dtor)(void *))
struct cleanup * make_final_cleanup (make_cleanup_ftype *function, void *arg)
struct cleanup * all_cleanups (void)
void do_cleanups (struct cleanup *old_chain)
void do_final_cleanups (struct cleanup *old_chain)
void discard_cleanups (struct cleanup *old_chain)
void discard_final_cleanups (struct cleanup *old_chain)
struct cleanup * save_cleanups (void)
struct cleanup * save_final_cleanups (void)
void restore_cleanups (struct cleanup *chain)
void restore_final_cleanups (struct cleanup *chain)
void null_cleanup (void *arg)

Define Documentation

#define SENTINEL_CLEANUP   ((struct cleanup *) &sentinel_cleanup)

Definition at line 59 of file cleanups.c.


Function Documentation

struct cleanup* all_cleanups ( void  ) [read]

Definition at line 166 of file cleanups.c.

void discard_cleanups ( struct cleanup *  old_chain)

Definition at line 213 of file cleanups.c.

void discard_final_cleanups ( struct cleanup *  old_chain)

Definition at line 222 of file cleanups.c.

void do_cleanups ( struct cleanup *  old_chain)

Definition at line 175 of file cleanups.c.

void do_final_cleanups ( struct cleanup *  old_chain)

Definition at line 184 of file cleanups.c.

struct cleanup* make_cleanup ( make_cleanup_ftype function,
void *  arg 
) [read]

Definition at line 117 of file cleanups.c.

struct cleanup* make_cleanup_dtor ( make_cleanup_ftype function,
void *  arg,
void(*)(void *)  dtor 
) [read]

Definition at line 126 of file cleanups.c.

struct cleanup* make_final_cleanup ( make_cleanup_ftype function,
void *  arg 
) [read]

Definition at line 136 of file cleanups.c.

void null_cleanup ( void *  arg)

Definition at line 295 of file cleanups.c.

void restore_cleanups ( struct cleanup *  chain)

Definition at line 274 of file cleanups.c.

void restore_final_cleanups ( struct cleanup *  chain)

Definition at line 282 of file cleanups.c.

struct cleanup* save_cleanups ( void  ) [read]

Definition at line 243 of file cleanups.c.

struct cleanup* save_final_cleanups ( void  ) [read]

Definition at line 252 of file cleanups.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines