GDB (xrefs)

Functions
tui-source.c File Reference
`#include "defs.h"`
`#include <ctype.h>`
`#include "symtab.h"`
`#include "frame.h"`
`#include "breakpoint.h"`
`#include "source.h"`
`#include "objfiles.h"`
`#include "filenames.h"`
`#include "tui/tui.h"`
`#include "tui/tui-data.h"`
`#include "tui/tui-stack.h"`
`#include "tui/tui-winsource.h"`
`#include "tui/tui-source.h"`
`#include "gdb_curses.h"`

Go to the source code of this file.

## Functions
enum tui_status | tui_set_source_content (struct symtab *s, int line_no, int noerror)
void | tui_set_source_content_nil (struct tui_win_info *win_info, const char *warning_string)
void | tui_show_symtab_source (struct gdbarch *gdbarch, struct symtab *s, struct tui_line_or_address line, int noerror)
int | tui_source_is_displayed (const char *fullname)
void | tui_vertical_source_scroll (enum tui_scroll_direction scroll_direction, int num_to_scroll)

## Function Documentation

## ◆ tui_set_source_content()

enum tui_status tui_set_source_content | ( | struct symtab * | s,
|  | int | line_no,
|  | int | noerror
| ) |  |

Definition at line 41 of file tui-source.c.

References tui_gen_win_info::content, find_source_lines(), tui_locator_element::full_name, tui_source_info::fullname, tui_source_info::gdbarch, get_objfile_arch(), tui_source_info::horizontal_offset, tui_source_element::is_exec_point, symtab::line_charpos, tui_line_or_address::line_no, tui_locator_element::line_no, tui_source_element::line_or_addr, tui_line_or_address::loa, LOA_LINE, tui_which_element::locator, name, symtab::nlines, offset, open_source_file(), perror_with_name(), print_sys_errmsg(), printf_unfiltered(), tui_which_element::source, tui_source_info::start_line_or_addr, SYMTAB_OBJFILE, symtab_to_filename_for_display(), symtab_to_fullname(), tui_alloc_source_buffer(), tui_default_tab_len(), TUI_FAILURE, tui_locator_win_info_ptr(), TUI_SRC_WIN, TUI_SUCCESS, tui_line_or_address::u, tui_win_element::which_element, xfree(), and xmalloc().

Referenced by tui_update_source_window_as_is().

## ◆ tui_set_source_content_nil()

void tui_set_source_content_nil | ( | struct tui_win_info * | win_info,
|  | const char * | warning_string
| ) |  |

Definition at line 253 of file tui-source.c.

References tui_gen_win_info::content, tui_win_info::generic, tui_source_element::has_break, tui_gen_win_info::height, tui_source_element::is_exec_point, tui_source_element::line, tui_line_or_address::line_no, tui_source_element::line_or_addr, tui_line_or_address::loa, LOA_LINE, tui_which_element::source, tui_line_or_address::u, tui_win_element::which_element, and tui_gen_win_info::width.

Referenced by tui_erase_source_content().

## ◆ tui_show_symtab_source()

void tui_show_symtab_source | ( | struct gdbarch * | gdbarch,
|  | struct symtab * | s,
|  | struct tui_line_or_address | line,
|  | int | noerror
| ) |  |

Definition at line 323 of file tui-source.c.

References TUI_SRC_WIN, and tui_update_source_window_as_is().

Referenced by tui_update_source_windows_with_addr(), and tui_update_source_windows_with_line().

## ◆ tui_source_is_displayed()

int tui_source_is_displayed | ( | const char * | fullname | ) |

Definition at line 335 of file tui-source.c.

References tui_locator_element::full_name, tui_which_element::locator, tui_locator_win_info_ptr(), TUI_SRC_WIN, and tui_win_element::which_element.

Referenced by tui_show_frame_info().

## ◆ tui_vertical_source_scroll()

void tui_vertical_source_scroll | ( | enum tui_scroll_direction | scroll_direction,
|  | int | num_to_scroll
| ) |  |

Definition at line 347 of file tui-source.c.

References find_pc_line_symtab(), FORWARD_SCROLL, get_current_source_symtab_and_line(), get_frame_pc(), get_selected_frame(), tui_line_or_address::line_no, tui_source_element::line_or_addr, tui_line_or_address::loa, LOA_LINE, symtab::nlines, print_source_lines(), tui_which_element::source, TUI_SRC_WIN, tui_line_or_address::u, and tui_win_element::which_element.

Referenced by tui_scroll_backward(), and tui_scroll_forward().