GDB (xrefs)
Loading...
Searching...
No Matches
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 "gdbsupport/event-loop.h"
#include "event-top.h"
#include "frame.h"
#include "breakpoint.h"
#include "ui-out.h"
#include "top.h"
#include "observable.h"
#include "source.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-winsource.h"
#include "gdb_curses.h"

Go to the source code of this file.

Functions

static void tui_on_objfiles_changed ()
 
static void tui_new_objfile_hook (struct objfile *objfile)
 
static void tui_all_objfiles_removed (program_space *pspace)
 
static void tui_register_changed (frame_info_ptr 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 ()
 
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 bpstat *bs, int print_frame)
 
static void tui_context_changed (user_selected_what ignore)
 
static void tui_symtab_changed ()
 
template<typename T >
static void attach_or_detach (T &observable, typename T::func_type func, bool attach)
 
static void tui_attach_detach_observers (bool attach)
 
void tui_install_hooks (void)
 
void tui_remove_hooks (void)
 
void _initialize_tui_hooks ()
 

Variables

static bool tui_refreshing_registers = false
 
static bool from_stack
 
static bool from_source_symtab
 
static const gdb::observers::token tui_observers_token {}
 

Function Documentation

◆ _initialize_tui_hooks()

void _initialize_tui_hooks ( )

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

Referenced by initialize_all_files().

◆ attach_or_detach()

template<typename T >
static void attach_or_detach ( T & observable,
typename T::func_type func,
bool attach )
static

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

References func, and tui_observers_token.

Referenced by tui_attach_detach_observers().

◆ tui_all_objfiles_removed()

static void tui_all_objfiles_removed ( program_space * pspace)
static

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

References tui_on_objfiles_changed().

◆ tui_attach_detach_observers()

static void tui_attach_detach_observers ( bool attach)
static

◆ tui_before_prompt()

static void tui_before_prompt ( const char * current_gdb_prompt)
static

◆ tui_context_changed()

static void tui_context_changed ( user_selected_what ignore)
static

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

References from_stack.

Referenced by tui_attach_detach_observers().

◆ 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 168 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 96 of file tui-hooks.c.

References tui_update_all_breakpoint_info().

Referenced by tui_attach_detach_observers().

◆ tui_event_delete_breakpoint()

static void tui_event_delete_breakpoint ( struct breakpoint * b)
static

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

References tui_update_all_breakpoint_info().

Referenced by tui_attach_detach_observers().

◆ tui_event_modify_breakpoint()

static void tui_event_modify_breakpoint ( struct breakpoint * b)
static

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

References tui_update_all_breakpoint_info().

Referenced by tui_attach_detach_observers().

◆ 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 59 of file tui-hooks.c.

References tui_on_objfiles_changed().

◆ tui_normal_stop()

static void tui_normal_stop ( struct bpstat * bs,
int print_frame )
static

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

References from_stack.

Referenced by tui_attach_detach_observers().

◆ tui_on_objfiles_changed()

static void tui_on_objfiles_changed ( )
static

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

References tui_active, and tui_display_main().

Referenced by tui_all_objfiles_removed(), and tui_new_objfile_hook().

◆ tui_refresh_frame_and_register_information()

static void tui_refresh_frame_and_register_information ( )
static

◆ tui_register_changed()

static void tui_register_changed ( frame_info_ptr frame,
int regno )
static

◆ tui_remove_hooks()

void tui_remove_hooks ( void )

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

References deprecated_print_frame_info_listing_hook, and tui_attach_detach_observers().

Referenced by tui_disable().

◆ tui_symtab_changed()

static void tui_symtab_changed ( )
static

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

References from_source_symtab.

Referenced by tui_attach_detach_observers().

Variable Documentation

◆ from_source_symtab

bool from_source_symtab
static

◆ from_stack

bool from_stack
static

◆ tui_observers_token

const gdb::observers::token tui_observers_token {}
static

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

Referenced by attach_or_detach().

◆ tui_refreshing_registers

bool tui_refreshing_registers = false
static

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

Referenced by tui_refresh_frame_and_register_information(), and tui_register_changed().