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 (struct frame_info *frame, 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_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

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_before_prompt_observer
 
static struct observertui_normal_stop_observer
 
static struct observertui_register_changed_observer
 

Function Documentation

◆ _initialize_tui_hooks()

void _initialize_tui_hooks ( void  )

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

References observer_attach_new_objfile(), and tui_new_objfile_hook().

◆ tui_before_prompt()

static void tui_before_prompt ( const char *  current_gdb_prompt)
static

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

References tui_refresh_frame_and_register_information().

Referenced by tui_install_hooks().

◆ tui_dummy_print_frame_info_listing_hook()

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

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

Referenced by tui_install_hooks().

◆ tui_event_create_breakpoint()

static void tui_event_create_breakpoint ( struct breakpoint b)
static

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

References tui_update_all_breakpoint_info().

Referenced by tui_install_hooks().

◆ tui_event_delete_breakpoint()

static void tui_event_delete_breakpoint ( struct breakpoint b)
static

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

References tui_update_all_breakpoint_info().

Referenced by tui_install_hooks().

◆ tui_event_modify_breakpoint()

static void tui_event_modify_breakpoint ( struct breakpoint b)
static

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

References tui_update_all_breakpoint_info().

Referenced by tui_install_hooks().

◆ tui_inferior_exit()

static void tui_inferior_exit ( struct inferior inf)
static

◆ tui_install_hooks()

void tui_install_hooks ( void  )

◆ tui_new_objfile_hook()

static void tui_new_objfile_hook ( struct objfile objfile)
static

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

References tui_active, and tui_display_main().

Referenced by _initialize_tui_hooks().

◆ tui_normal_stop()

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

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

References tui_refresh_frame_and_register_information().

Referenced by tui_install_hooks().

◆ tui_refresh_frame_and_register_information()

static void tui_refresh_frame_and_register_information ( int  registers_too_p)
static

◆ tui_register_changed()

static void tui_register_changed ( struct frame_info frame,
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().

◆ tui_remove_hooks()

void tui_remove_hooks ( void  )

Variable Documentation

◆ tui_before_prompt_observer

struct observer* tui_before_prompt_observer
static

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

Referenced by tui_install_hooks(), and tui_remove_hooks().

◆ tui_bp_created_observer

struct observer* tui_bp_created_observer
static

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

Referenced by tui_install_hooks(), and tui_remove_hooks().

◆ tui_bp_deleted_observer

struct observer* tui_bp_deleted_observer
static

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

Referenced by tui_install_hooks(), and tui_remove_hooks().

◆ tui_bp_modified_observer

struct observer* tui_bp_modified_observer
static

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

Referenced by tui_install_hooks(), and tui_remove_hooks().

◆ tui_inferior_exit_observer

struct observer* tui_inferior_exit_observer
static

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

Referenced by tui_install_hooks(), and tui_remove_hooks().

◆ tui_normal_stop_observer

struct observer* tui_normal_stop_observer
static

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

Referenced by tui_install_hooks(), and tui_remove_hooks().

◆ tui_refreshing_registers

int tui_refreshing_registers = 0
static

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

Referenced by tui_refresh_frame_and_register_information(), and tui_register_changed().

◆ tui_register_changed_observer

struct observer* tui_register_changed_observer
static

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

Referenced by tui_install_hooks(), and tui_remove_hooks().