GDB (xrefs)
Defines | Functions | Variables
/home/stan/gdb/src/gdb/gdbtk/generic/gdbtk.c File Reference
#include "defs.h"
#include "inferior.h"
#include "symfile.h"
#include "objfiles.h"
#include "gdbcore.h"
#include "tracepoint.h"
#include "demangle.h"
#include "version.h"
#include "top.h"
#include "annotate.h"
#include "exceptions.h"
#include "main.h"
#include <tcl.h>
#include <tk.h>
#include "guitcl.h"
#include "gdbtk.h"
#include <fcntl.h>
#include "gdb_stat.h"
#include <sys/time.h>
#include <signal.h>
#include "gdb_string.h"
#include "dis-asm.h"
#include "gdbcmd.h"

Go to the source code of this file.

Defines

#define HAS_STDARG   1

Functions

void _initialize_gdbtk (void)
static void x_event_wrapper (int signo)
int Tktable_Init (Tcl_Interp *interp)
void gdbtk_init (void)
void gdbtk_interactive (void)
static void cleanup_init (void *ignore)
static void tk_command (char *, int)
static int target_should_use_timer (struct target_ops *t)
int target_is_native (struct target_ops *t)
int gdbtk_test (char *)
static void view_command (char *, int)
void TclDebug (char level, const char *fmt,...)
void gdbtk_start_timer (void)
void gdbtk_stop_timer (void)
static void gdbtk_cleanup (PTR dummy)
void gdbtk_source_start_file (void)

Variables

static sigset_t nullsigmask
static struct sigaction act1 act2
static struct itimerval it_on it_off
char * external_editor_command = NULL
Tcl_Interp * gdbtk_interp = NULL
static int gdbtk_timer_going = 0
int gdb_context = 0
int running_now
static char * gdbtk_source_filename = NULL
int gdbtk_disable_fputs = 1

Define Documentation

#define HAS_STDARG   1

Definition at line 43 of file gdbtk.c.


Function Documentation

void _initialize_gdbtk ( void  )
static void cleanup_init ( void *  ignore) [static]

Definition at line 239 of file gdbtk.c.

References gdbtk_interp.

Referenced by gdbtk_init().

static void gdbtk_cleanup ( PTR  dummy) [static]

Definition at line 344 of file gdbtk.c.

References gdbtk_interp.

Referenced by gdbtk_init().

void gdbtk_init ( void  )
void gdbtk_interactive ( void  )

Definition at line 250 of file gdbtk.c.

Referenced by gdbtk_add_hooks().

void gdbtk_source_start_file ( void  )
void gdbtk_start_timer ( void  )
void gdbtk_stop_timer ( void  )

Definition at line 304 of file gdbtk.c.

References act2, gdbtk_timer_going, and it_off.

Referenced by gdbtk_call_wrapper(), and gdbtk_wait().

int gdbtk_test ( char *  filename)

Definition at line 669 of file gdbtk.c.

References gdbtk_source_filename.

Referenced by captured_main().

int target_is_native ( struct target_ops t)

Definition at line 327 of file gdbtk.c.

References name, and target_ops::to_shortname.

Referenced by target_should_use_timer().

static int target_should_use_timer ( struct target_ops t) [static]

Definition at line 320 of file gdbtk.c.

References target_is_native().

Referenced by gdbtk_start_timer().

void TclDebug ( char  level,
const char *  fmt,
  ... 
)

Definition at line 188 of file gdbtk.c.

References free(), gdbtk_interp, and xstrvprintf().

Referenced by report_error().

static void tk_command ( char *  cmd,
int  from_tty 
) [static]

Definition at line 715 of file gdbtk.c.

References do_cleanups(), error(), error_no_arg(), gdbtk_interp, make_cleanup(), printf_unfiltered(), and xfree().

Referenced by gdbtk_init().

int Tktable_Init ( Tcl_Interp *  interp)

Referenced by gdbtk_init().

static void view_command ( char *  args,
int  from_tty 
) [static]

Definition at line 741 of file gdbtk.c.

References do_cleanups(), error(), gdbtk_interp, make_cleanup(), xfree(), and xstrprintf().

Referenced by gdbtk_init().

static void x_event_wrapper ( int  signo) [static]

Definition at line 76 of file gdbtk.c.

References x_event().

Referenced by gdbtk_start_timer().


Variable Documentation

struct sigaction act1 act2 [static]

Definition at line 72 of file gdbtk.c.

Referenced by gdbtk_start_timer(), and gdbtk_stop_timer().

Definition at line 86 of file gdbtk.c.

Referenced by captured_main(), and gdbtk_init().

Definition at line 112 of file gdbtk.c.

Referenced by gdbtk_context_change(), and Gdbtk_Init().

Definition at line 123 of file gdbtk.c.

Referenced by gdb_restore_fputs(), gdbtk_fputs(), and gdbtk_source_start_file().

Tcl_Interp* gdbtk_interp = NULL
char* gdbtk_source_filename = NULL [static]

Definition at line 121 of file gdbtk.c.

Referenced by gdbtk_source_start_file(), and gdbtk_test().

int gdbtk_timer_going = 0 [static]

Definition at line 109 of file gdbtk.c.

Referenced by gdbtk_start_timer(), and gdbtk_stop_timer().

struct itimerval it_on it_off [static]

Definition at line 73 of file gdbtk.c.

Referenced by gdbtk_start_timer(), and gdbtk_stop_timer().

sigset_t nullsigmask [static]

Definition at line 71 of file gdbtk.c.

Referenced by gdbtk_start_timer().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines