GDB (xrefs)

Functions
tui-stack.c File Reference
`#include "defs.h"`
`#include "symtab.h"`
`#include "breakpoint.h"`
`#include "frame.h"`
`#include "command.h"`
`#include "inferior.h"`
`#include "target.h"`
`#include "top.h"`
`#include "gdb-demangle.h"`
`#include "source.h"`
`#include "tui/tui.h"`
`#include "tui/tui-data.h"`
`#include "tui/tui-stack.h"`
`#include "tui/tui-wingeneral.h"`
`#include "tui/tui-source.h"`
`#include "tui/tui-winsource.h"`
`#include "tui/tui-file.h"`
`#include "gdb_curses.h"`

Go to the source code of this file.

## Functions
static char * | tui_get_function_from_frame (struct frame_info *fi)
static void | tui_set_locator_fullname (const char *fullname)
static int | tui_set_locator_info (struct gdbarch *gdbarch, const char *fullname, const char *procname, int lineno, CORE_ADDR addr)
static void | tui_update_command (const char *, int)
static char * | tui_make_status_line (struct tui_locator_element *loc)
void | tui_show_locator_content (void)
void | tui_update_locator_fullname (const char *fullname)
int | tui_show_frame_info (struct frame_info *fi)
void | _initialize_tui_stack (void)

## Function Documentation

## ◆ _initialize_tui_stack()

void _initialize_tui_stack | ( | void |  | ) |

Definition at line 491 of file tui-stack.c.

References _, add_com(), class_tui, and tui_update_command().

## ◆ tui_get_function_from_frame()

static char * tui_get_function_from_frame | ( | struct frame_info * | fi | ) |
| static

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

References string_file::c_str(), demangle, get_frame_arch(), get_frame_pc(), name, and print_address_symbolic().

Referenced by tui_show_frame_info().

## ◆ tui_make_status_line()

static char* tui_make_status_line | ( | struct tui_locator_element * | loc | ) |
| static

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

References string_file::c_str(), fputs_filtered(), inferior_ptid, LINE_PREFIX, loc, MAX_PID_WIDTH, MAX_TARGET_WIDTH, MIN_LINE_WIDTH, MIN_PROC_WIDTH, null_ptid, paddress(), PC_PREFIX, PROC_PREFIX, ptid_equal(), SINGLE_KEY, string_file::size(), strcat_to_buf(), string, target_pid_to_str(), target_shortname, tui_current_key_mode, TUI_SINGLE_KEY_MODE, tui_term_width(), xmalloc(), and xsnprintf().

Referenced by tui_show_locator_content().

## ◆ tui_set_locator_fullname()

static void tui_set_locator_fullname | ( | const char * | fullname | ) |
| static

Definition at line 276 of file tui-stack.c.

References tui_gen_win_info::content, tui_locator_element::full_name, tui_which_element::locator, MAX_LOCATOR_ELEMENT_LEN, strcat_to_buf(), tui_locator_win_info_ptr(), tui_set_locator_info(), and tui_win_element::which_element.

Referenced by tui_set_locator_info(), and tui_update_locator_fullname().

## ◆ tui_set_locator_info()

static int tui_set_locator_info | ( | struct gdbarch * | gdbarch,
|  | const char * | fullname,
|  | const char * | procname,
|  | int | lineno,
|  | CORE_ADDR | addr
| ) |  |
| static

Definition at line 298 of file tui-stack.c.

References tui_locator_element::addr, tui_gen_win_info::content, tui_gen_win_info::content_size, tui_locator_element::full_name, tui_locator_element::gdbarch, tui_locator_element::line_no, tui_which_element::locator, LOCATOR_WIN, MAX_LOCATOR_ELEMENT_LEN, tui_locator_element::proc_name, strcat_to_buf(), tui_alloc_content(), tui_locator_win_info_ptr(), tui_set_locator_fullname(), and tui_win_element::which_element.

Referenced by tui_set_locator_fullname(), and tui_show_frame_info().

## ◆ tui_show_frame_info()

int tui_show_frame_info | ( | struct frame_info * | fi | ) |

Definition at line 357 of file tui-stack.c.

References _, tui_line_or_address::addr, tui_locator_element::addr, EMPTY_SOURCE_PROMPT, find_frame_sal(), find_pc_partial_function(), tui_win_info::generic, get_frame_arch(), get_frame_pc(), get_frame_pc_if_available(), symtab_and_line::line, tui_line_or_address::line_no, tui_locator_element::line_no, tui_line_or_address::loa, LOA_ADDRESS, LOA_LINE, tui_which_element::locator, symtab_and_line::symtab, symtab_to_fullname(), tui_addr_is_displayed(), tui_clear_source_content(), TUI_DISASM_WIN, tui_get_function_from_frame(), tui_get_low_disassembly_address(), tui_line_is_displayed(), tui_locator_win_info_ptr(), tui_set_is_exec_point_at(), tui_set_locator_info(), tui_show_locator_content(), tui_source_is_displayed(), tui_source_windows(), TUI_SRC_WIN, tui_update_exec_info(), tui_update_source_window(), tui_line_or_address::u, and tui_gen_win_info::viewport_height.

Referenced by tui_enable(), tui_inferior_exit(), and tui_refresh_frame_and_register_information().

## ◆ tui_show_locator_content()

void tui_show_locator_content | ( | void |  | ) |

Definition at line 242 of file tui-stack.c.

References tui_gen_win_info::content, tui_gen_win_info::content_in_use, tui_gen_win_info::handle, tui_which_element::locator, string, tui_locator_win_info_ptr(), tui_make_status_line(), tui_refresh_win(), tui_win_element::which_element, and xfree().

Referenced by make_visible_with_new_height(), show_data(), show_source_disasm_command(), show_source_or_disasm_and_command(), tui_refresh_all_win(), tui_set_key_mode(), tui_show_frame_info(), and tui_update_locator_fullname().

## ◆ tui_update_command()

static void tui_update_command | ( | const char * | arg,
|  | int | from_tty
| ) |  |
| static

Definition at line 500 of file tui-stack.c.

References execute_command().

Referenced by _initialize_tui_stack().

## ◆ tui_update_locator_fullname()

void tui_update_locator_fullname | ( | const char * | fullname | ) |

Definition at line 344 of file tui-stack.c.

References tui_set_locator_fullname(), and tui_show_locator_content().

Referenced by tui_display_main(), tui_show_disassem_and_update_source(), and tui_show_source().