GDB (xrefs)
Classes | Functions
/home/stan/gdb/src/gdb/continuations.c File Reference
#include "defs.h"
#include "gdbthread.h"
#include "inferior.h"
#include "continuations.h"

Go to the source code of this file.

Classes

struct  continuation

Functions

static void make_continuation (struct continuation **pmy_chain, continuation_ftype *function, void *arg, void(*free_arg)(void *))
static void do_my_continuations_1 (struct continuation **pmy_chain, int err)
static void do_my_continuations (struct continuation **list, int err)
static void discard_my_continuations_1 (struct continuation **pmy_chain)
static void discard_my_continuations (struct continuation **list)
void add_inferior_continuation (continuation_ftype *hook, void *args, continuation_free_arg_ftype *free_arg)
void do_all_inferior_continuations (int err)
void discard_all_inferior_continuations (struct inferior *inf)
void add_continuation (struct thread_info *thread, continuation_ftype *hook, void *args, continuation_free_arg_ftype *free_arg)
static void restore_thread_cleanup (void *arg)
static void do_all_continuations_ptid (ptid_t ptid, struct continuation **continuations_p, int err)
static int do_all_continuations_thread_callback (struct thread_info *thread, void *data)
void do_all_continuations_thread (struct thread_info *thread, int err)
void do_all_continuations (int err)
static int discard_all_continuations_thread_callback (struct thread_info *thread, void *data)
void discard_all_continuations_thread (struct thread_info *thread)
void discard_all_continuations (void)
void add_intermediate_continuation (struct thread_info *thread, continuation_ftype *hook, void *args, continuation_free_arg_ftype *free_arg)
static int do_all_intermediate_continuations_thread_callback (struct thread_info *thread, void *data)
void do_all_intermediate_continuations_thread (struct thread_info *thread, int err)
void do_all_intermediate_continuations (int err)
static int discard_all_intermediate_continuations_thread_callback (struct thread_info *thread, void *data)
void discard_all_intermediate_continuations_thread (struct thread_info *thread)
void discard_all_intermediate_continuations (void)

Function Documentation

void add_continuation ( struct thread_info thread,
continuation_ftype hook,
void *  args,
continuation_free_arg_ftype free_arg 
)
void add_inferior_continuation ( continuation_ftype hook,
void *  args,
continuation_free_arg_ftype free_arg 
)
void add_intermediate_continuation ( struct thread_info thread,
continuation_ftype hook,
void *  args,
continuation_free_arg_ftype free_arg 
)

Definition at line 253 of file continuations.c.

References thread_info::intermediate_continuations, and make_continuation().

Referenced by step_once().

void discard_all_continuations ( void  )
void discard_all_continuations_thread ( struct thread_info thread)

Definition at line 235 of file continuations.c.

References discard_all_continuations_thread_callback().

static int discard_all_continuations_thread_callback ( struct thread_info thread,
void *  data 
) [static]

Definition at line 131 of file continuations.c.

References inferior::continuations, and discard_my_continuations().

Referenced by free_inferior().

static int discard_all_intermediate_continuations_thread_callback ( struct thread_info thread,
void *  data 
) [static]
static void discard_my_continuations ( struct continuation **  list) [static]
static void discard_my_continuations_1 ( struct continuation **  pmy_chain) [static]
void do_all_continuations ( int  err)
static void do_all_continuations_ptid ( ptid_t  ptid,
struct continuation **  continuations_p,
int  err 
) [static]
void do_all_continuations_thread ( struct thread_info thread,
int  err 
)
static int do_all_continuations_thread_callback ( struct thread_info thread,
void *  data 
) [static]
void do_all_intermediate_continuations_thread ( struct thread_info thread,
int  err 
)
static int do_all_intermediate_continuations_thread_callback ( struct thread_info thread,
void *  data 
) [static]
static void do_my_continuations ( struct continuation **  list,
int  err 
) [static]

Definition at line 67 of file continuations.c.

References do_my_continuations_1().

Referenced by do_all_continuations_ptid(), and do_all_inferior_continuations().

static void do_my_continuations_1 ( struct continuation **  pmy_chain,
int  err 
) [static]
static void make_continuation ( struct continuation **  pmy_chain,
continuation_ftype function,
void *  arg,
void(*)(void *)  free_arg 
) [static]
static void restore_thread_cleanup ( void *  arg) [static]

Definition at line 148 of file continuations.c.

References switch_to_thread().

Referenced by do_all_continuations_ptid().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines