GDB (xrefs)
Functions | Variables
tui-hooks.c File Reference
#include "defs.h"
#include "symtab.h"
#include "inferior.h"
#include "command.h"
#include "bfd.h"
#include "symfile.h"
#include "objfiles.h"
#include "target.h"
#include "gdbcore.h"
#include "event-loop.h"
#include "event-top.h"
#include "frame.h"
#include "breakpoint.h"
#include "ui-out.h"
#include "top.h"
#include "observer.h"
#include <unistd.h>
#include <fcntl.h>
#include "tui/tui.h"
#include "tui/tui-hooks.h"
#include "tui/tui-data.h"
#include "tui/tui-layout.h"
#include "tui/tui-io.h"
#include "tui/tui-regs.h"
#include "tui/tui-win.h"
#include "tui/tui-stack.h"
#include "tui/tui-windata.h"
#include "tui/tui-winsource.h"
#include "gdb_curses.h"
#include "readline/readline.h"

Go to the source code of this file.

Functions

static void tui_new_objfile_hook (struct objfile *objfile)
 
static void tui_register_changed_hook (int regno)
 
static void tui_event_create_breakpoint (struct breakpoint *b)
 
static void tui_event_delete_breakpoint (struct breakpoint *b)
 
static void tui_event_modify_breakpoint (struct breakpoint *b)
 
static void tui_about_to_proceed (void)
 
static void tui_refresh_frame_and_register_information (int registers_too_p)
 
static void tui_dummy_print_frame_info_listing_hook (struct symtab *s, int line, int stopline, int noerror)
 
static void tui_inferior_exit (struct inferior *inf)
 
static void tui_before_prompt (const char *current_gdb_prompt)
 
static void tui_normal_stop (struct bpstats *bs, int print_frame)
 
void tui_install_hooks (void)
 
void tui_remove_hooks (void)
 
void _initialize_tui_hooks (void)
 

Variables

int tui_target_has_run = 0
 
static int tui_refreshing_registers = 0
 
static struct observertui_bp_created_observer
 
static struct observertui_bp_deleted_observer
 
static struct observertui_bp_modified_observer
 
static struct observertui_inferior_exit_observer
 
static struct observertui_about_to_proceed_observer
 
static struct observertui_before_prompt_observer
 
static struct observertui_normal_stop_observer
 

Function Documentation

void _initialize_tui_hooks ( void  )

Definition at line 288 of file tui-hooks.c.

References observer_attach_new_objfile(), and tui_new_objfile_hook().

static void tui_about_to_proceed ( void  )
static
static void tui_before_prompt ( const char *  current_gdb_prompt)
static

Definition at line 201 of file tui-hooks.c.

References tui_refresh_frame_and_register_information().

Referenced by tui_install_hooks().

static void tui_dummy_print_frame_info_listing_hook ( struct symtab s,
int  line,
int  stopline,
int  noerror 
)
static

Definition at line 179 of file tui-hooks.c.

Referenced by tui_install_hooks().

static void tui_event_create_breakpoint ( struct breakpoint b)
static

Definition at line 86 of file tui-hooks.c.

References tui_update_all_breakpoint_info().

Referenced by tui_install_hooks().

static void tui_event_delete_breakpoint ( struct breakpoint b)
static

Definition at line 94 of file tui-hooks.c.

References tui_update_all_breakpoint_info().

Referenced by tui_install_hooks().

static void tui_event_modify_breakpoint ( struct breakpoint b)
static

Definition at line 100 of file tui-hooks.c.

References tui_update_all_breakpoint_info().

Referenced by tui_install_hooks().

static void tui_inferior_exit ( struct inferior inf)
static
void tui_install_hooks ( void  )
static void tui_new_objfile_hook ( struct objfile objfile)
static

Definition at line 60 of file tui-hooks.c.

References tui_active, and tui_display_main().

Referenced by _initialize_tui_hooks().

static void tui_normal_stop ( struct bpstats bs,
int  print_frame 
)
static

Definition at line 214 of file tui-hooks.c.

References tui_refresh_frame_and_register_information().

Referenced by tui_install_hooks().

static void tui_refresh_frame_and_register_information ( int  registers_too_p)
static
static void tui_register_changed_hook ( int  regno)
static

Definition at line 70 of file tui-hooks.c.

References get_selected_frame(), tui_check_data_values(), and tui_refreshing_registers.

Referenced by tui_install_hooks().

void tui_remove_hooks ( void  )

Variable Documentation

struct observer* tui_about_to_proceed_observer
static

Definition at line 226 of file tui-hooks.c.

struct observer* tui_before_prompt_observer
static

Definition at line 227 of file tui-hooks.c.

struct observer* tui_bp_created_observer
static

Definition at line 222 of file tui-hooks.c.

struct observer* tui_bp_deleted_observer
static

Definition at line 223 of file tui-hooks.c.

struct observer* tui_bp_modified_observer
static

Definition at line 224 of file tui-hooks.c.

struct observer* tui_inferior_exit_observer
static

Definition at line 225 of file tui-hooks.c.

struct observer* tui_normal_stop_observer
static

Definition at line 228 of file tui-hooks.c.

int tui_refreshing_registers = 0
static
int tui_target_has_run = 0

Definition at line 57 of file tui-hooks.c.

Referenced by tui_about_to_proceed().