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 observer * | tui_bp_created_observer
static struct observer * | tui_bp_deleted_observer
static struct observer * | tui_bp_modified_observer
static struct observer * | tui_inferior_exit_observer
static struct observer * | tui_before_prompt_observer
static struct observer * | tui_normal_stop_observer
static struct observer * | tui_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

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

References TUI_COMMAND_MODE, tui_display_main(), tui_set_key_mode(), and tui_show_frame_info().

Referenced by tui_install_hooks().

## ◆ tui_install_hooks()

void tui_install_hooks | ( | void |  | ) |

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

References deprecated_print_frame_info_listing_hook, observer_attach_before_prompt(), observer_attach_breakpoint_created(), observer_attach_breakpoint_deleted(), observer_attach_breakpoint_modified(), observer_attach_inferior_exit(), observer_attach_normal_stop(), observer_attach_register_changed(), tui_before_prompt(), tui_before_prompt_observer, tui_bp_created_observer, tui_bp_deleted_observer, tui_bp_modified_observer, tui_dummy_print_frame_info_listing_hook(), tui_event_create_breakpoint(), tui_event_delete_breakpoint(), tui_event_modify_breakpoint(), tui_inferior_exit(), tui_inferior_exit_observer, tui_normal_stop(), tui_normal_stop_observer, tui_register_changed(), and tui_register_changed_observer.

Referenced by tui_enable().

## ◆ 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

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

References DATA_WIN, find_pc_line_symtab(), get_frame_pc_if_available(), get_selected_frame(), has_stack_frames(), target_terminal::ours_for_output(), select_source_symtab(), tui_check_data_values(), tui_is_window_visible(), tui_refreshing_registers, and tui_show_frame_info().

Referenced by tui_before_prompt(), and tui_normal_stop().

## ◆ 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 |  | ) |

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

References deprecated_print_frame_info_listing_hook, deprecated_query_hook, observer_detach_before_prompt(), observer_detach_breakpoint_created(), observer_detach_breakpoint_deleted(), observer_detach_breakpoint_modified(), observer_detach_inferior_exit(), observer_detach_normal_stop(), observer_detach_register_changed(), tui_before_prompt_observer, tui_bp_created_observer, tui_bp_deleted_observer, tui_bp_modified_observer, tui_inferior_exit_observer, tui_normal_stop_observer, and tui_register_changed_observer.

Referenced by tui_disable().

## 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().