GDB (xrefs)
|
Go to the source code of this file.
Typedefs | |
typedef void( | ui_file_flush_ftype )(struct ui_file *stream) |
typedef void( | ui_file_write_ftype )(struct ui_file *stream, const char *buf, long length_buf) |
typedef void( | ui_file_fputs_ftype )(const char *, struct ui_file *stream) |
typedef void( | ui_file_write_async_safe_ftype )(struct ui_file *stream, const char *buf, long length_buf) |
typedef long( | ui_file_read_ftype )(struct ui_file *stream, char *buf, long length_buf) |
typedef int( | ui_file_isatty_ftype )(struct ui_file *stream) |
typedef void( | ui_file_rewind_ftype )(struct ui_file *stream) |
typedef void( | ui_file_put_method_ftype )(void *object, const char *buffer, long length_buffer) |
typedef void( | ui_file_put_ftype )(struct ui_file *stream, ui_file_put_method_ftype *method, void *context) |
typedef void( | ui_file_delete_ftype )(struct ui_file *stream) |
typedef int( | ui_file_fseek_ftype )(struct ui_file *stream, long offset, int whence) |
Functions | |
struct ui_file * | ui_file_new (void) |
void | set_ui_file_flush (struct ui_file *stream, ui_file_flush_ftype *flush) |
void | set_ui_file_write (struct ui_file *stream, ui_file_write_ftype *fputs) |
void | set_ui_file_fputs (struct ui_file *stream, ui_file_fputs_ftype *fputs) |
void | set_ui_file_write_async_safe (struct ui_file *stream, ui_file_write_async_safe_ftype *write_async_safe) |
void | set_ui_file_read (struct ui_file *stream, ui_file_read_ftype *fread) |
void | set_ui_file_isatty (struct ui_file *stream, ui_file_isatty_ftype *isatty) |
void | set_ui_file_rewind (struct ui_file *stream, ui_file_rewind_ftype *rewind) |
void | set_ui_file_put (struct ui_file *stream, ui_file_put_ftype *put) |
void | set_ui_file_data (struct ui_file *stream, void *data, ui_file_delete_ftype *delete) |
void | set_ui_file_fseek (struct ui_file *stream, ui_file_fseek_ftype *fseek_ptr) |
void * | ui_file_data (struct ui_file *file) |
void | gdb_flush (struct ui_file *) |
void | ui_file_delete (struct ui_file *stream) |
void | ui_file_rewind (struct ui_file *stream) |
int | ui_file_isatty (struct ui_file *) |
void | ui_file_write (struct ui_file *file, const char *buf, long length_buf) |
void | ui_file_write_async_safe (struct ui_file *file, const char *buf, long length_buf) |
void | ui_file_put (struct ui_file *src, ui_file_put_method_ftype *write, void *dest) |
char * | ui_file_xstrdup (struct ui_file *file, long *length) |
char * | ui_file_obsavestring (struct ui_file *file, struct obstack *obstack, long *length) |
long | ui_file_read (struct ui_file *file, char *buf, long length_buf) |
int | ui_file_fseek (struct ui_file *file, long offset, int whence) |
struct ui_file * | mem_fileopen (void) |
struct ui_file * | stdio_fileopen (FILE *file) |
struct ui_file * | stderr_fileopen (void) |
struct ui_file * | gdb_fopen (const char *name, const char *mode) |
struct ui_file * | tee_file_new (struct ui_file *one, int close_one, struct ui_file *two, int close_two) |
typedef void( ui_file_delete_ftype)(struct ui_file *stream) |
typedef void( ui_file_flush_ftype)(struct ui_file *stream) |
typedef void( ui_file_fputs_ftype)(const char *, struct ui_file *stream) |
typedef int( ui_file_fseek_ftype)(struct ui_file *stream, long offset, int whence) |
typedef int( ui_file_isatty_ftype)(struct ui_file *stream) |
typedef void( ui_file_put_ftype)(struct ui_file *stream, ui_file_put_method_ftype *method, void *context) |
typedef void( ui_file_put_method_ftype)(void *object, const char *buffer, long length_buffer) |
typedef long( ui_file_read_ftype)(struct ui_file *stream, char *buf, long length_buf) |
typedef void( ui_file_rewind_ftype)(struct ui_file *stream) |
typedef void( ui_file_write_async_safe_ftype)(struct ui_file *stream, const char *buf, long length_buf) |
typedef void( ui_file_write_ftype)(struct ui_file *stream, const char *buf, long length_buf) |
Definition at line 195 of file ui-file.c.
References ui_file::to_flush.
Referenced by ada_lookup_struct_elt_type(), ada_print_scalar(), ada_val_print_1(), ATTRIBUTE_PRINTF(), c_val_print(), captured_main(), cli_flush(), command_line_handler(), command_line_input(), darwin_attach(), darwin_detach(), dbx_psymtab_to_symtab_1(), dbx_read_symtab(), display_gdb_prompt(), display_info(), do_examine(), do_one_display(), dwarf2_read_symtab(), echo_command(), extended_remote_attach_1(), f_val_print(), follow_exec(), fork_inferior(), gdb_disassembly(), gdb_os_flush_stderr(), gdb_os_flush_stdout(), gdb_readline(), gdb_wait_for_event(), gdbtk_call_wrapper(), gdbtk_load_asm(), generic_val_print(), gnu_attach(), gnu_detach(), handle_command(), handle_inferior_event(), inf_ptrace_attach(), inf_ptrace_detach(), load_srec(), m2_val_print(), m32r_load(), m32r_load_section(), m32r_upload_command(), mdebug_build_psymtabs(), mdebug_read_symtab(), mem_info_command(), mi_breakpoint_created(), mi_breakpoint_deleted(), mi_breakpoint_modified(), mi_cmd_gdb_exit(), mi_command_loop(), mi_command_param_changed(), mi_console_file_fputs(), mi_console_raw_packet(), mi_execute_command(), mi_execute_command_input_handler(), mi_flush(), mi_inferior_added(), mi_inferior_appeared(), mi_inferior_exit(), mi_inferior_removed(), mi_load_progress(), mi_memory_changed(), mi_new_thread(), mi_on_normal_stop(), mi_on_resume(), mi_record_changed(), mi_solib_loaded(), mi_solib_unloaded(), mi_thread_exit(), mi_traceframe_changed(), mi_tsv_created(), mi_tsv_deleted(), mi_tsv_modified(), mips_error(), mips_receive_header(), mips_xfer_memory(), output_command_const(), pascal_val_print(), print_any_exception(), print_disassembly(), print_flush(), print_frame_info(), print_sys_errmsg(), print_type_scalar(), proceed(), procfs_attach(), procfs_detach(), procfs_set_exec_trap(), psymtab_to_symtab_1(), putpkt_binary(), read_command_lines(), remote_console_output(), remote_detach_1(), remote_fileio_func_write(), report_initial_inferior(), require_partial_symbols(), safe_symbol_file_add(), safe_symbol_file_add_cleanup(), serial_log_command(), serial_readchar(), serial_write(), shell_escape(), symbol_file_add_with_addrs(), unwind_command(), val_print(), val_print_string(), vwarning(), windows_attach(), windows_detach(), xcoff_psymtab_to_symtab_1(), and xcoff_read_symtab().
Definition at line 720 of file ui-file.c.
References gdb_fopen_cloexec(), and stdio_file_new().
Referenced by handle_redirections(), maintenance_print_architecture(), maintenance_print_dummy_frames(), maintenance_print_msymbols(), maintenance_print_psymbols(), maintenance_print_reggroups(), maintenance_print_symbols(), regcache_print(), save_breakpoints(), and serial_open().
struct ui_file* mem_fileopen | ( | void | ) | [read] |
Definition at line 424 of file ui-file.c.
References mem_file_new().
Referenced by _initialize_arm_tdep(), ada_print_floating(), ada_varobj_get_value_image(), ada_varobj_scalar_image(), add_language(), aix_thread_extra_thread_info(), append_exp(), archpy_disassemble(), bppy_get_commands(), canonicalize_linespec(), do_show_command(), dump_insns(), dwarf2_compute_name(), escape_buffer(), eval_command(), execute_command_to_string(), frapy_str(), gdb_disassembly(), gdb_eval(), gdb_update_mem(), get_register(), insert_breakpoint_locations(), inspect_type(), list_arg_or_local(), mi_cmd_data_evaluate_expression(), mi_cmd_data_read_memory(), mi_cmd_execute(), mi_console_file_new(), mi_out_new(), output_register(), print_breakpoint_location(), print_frame(), print_frame_arg(), print_frame_args(), print_it_watchpoint(), print_one_detail_ranged_breakpoint(), print_return_value(), print_target_wait_results(), print_variable_or_computed(), py_print_single_arg(), py_print_type(), py_print_value(), quit_confirm(), reattach_breakpoints(), replace_typedefs_qualified_name(), type_to_string(), typy_str(), update_inserted_breakpoint_locations(), value_get_print_value(), verify_gdbarch(), and xtensa_verify_config().
void set_ui_file_data | ( | struct ui_file * | stream, |
void * | data, | ||
ui_file_delete_ftype * | delete | ||
) |
Definition at line 311 of file ui-file.c.
References ui_file::to_data, and ui_file::to_delete.
Referenced by mem_file_new(), mi_console_file_new(), stdio_file_new(), tee_file_new(), tui_file_new(), and ui_file_new().
void set_ui_file_flush | ( | struct ui_file * | stream, |
ui_file_flush_ftype * | flush | ||
) |
Definition at line 255 of file ui-file.c.
References ui_file::to_flush.
Referenced by mi_console_file_new(), stdio_file_new(), tee_file_new(), tui_file_new(), and ui_file_new().
void set_ui_file_fputs | ( | struct ui_file * | stream, |
ui_file_fputs_ftype * | fputs | ||
) |
Definition at line 299 of file ui-file.c.
References ui_file::to_fputs.
Referenced by gdbtk_fileopen(), mi_console_file_new(), stderr_fileopen(), stdio_file_new(), tee_file_new(), tui_file_new(), and ui_file_new().
void set_ui_file_fseek | ( | struct ui_file * | stream, |
ui_file_fseek_ftype * | fseek_ptr | ||
) |
Definition at line 305 of file ui-file.c.
References ui_file::to_fseek.
Referenced by stdio_file_new(), and ui_file_new().
void set_ui_file_isatty | ( | struct ui_file * | stream, |
ui_file_isatty_ftype * | isatty | ||
) |
Definition at line 261 of file ui-file.c.
References ui_file::to_isatty.
Referenced by stdio_file_new(), tee_file_new(), tui_file_new(), and ui_file_new().
void set_ui_file_put | ( | struct ui_file * | stream, |
ui_file_put_ftype * | put | ||
) |
Definition at line 273 of file ui-file.c.
References ui_file::to_put.
Referenced by mem_file_new(), tui_file_new(), and ui_file_new().
void set_ui_file_read | ( | struct ui_file * | stream, |
ui_file_read_ftype * | fread | ||
) |
Definition at line 293 of file ui-file.c.
References ui_file::to_read.
Referenced by gdbtk_fileopenin(), stdio_file_new(), and ui_file_new().
void set_ui_file_rewind | ( | struct ui_file * | stream, |
ui_file_rewind_ftype * | rewind | ||
) |
Definition at line 267 of file ui-file.c.
References ui_file::to_rewind.
Referenced by mem_file_new(), tui_file_new(), and ui_file_new().
void set_ui_file_write | ( | struct ui_file * | stream, |
ui_file_write_ftype * | fputs | ||
) |
Definition at line 279 of file ui-file.c.
References ui_file::to_write.
Referenced by mem_file_new(), stderr_fileopen(), stdio_file_new(), tee_file_new(), and ui_file_new().
void set_ui_file_write_async_safe | ( | struct ui_file * | stream, |
ui_file_write_async_safe_ftype * | write_async_safe | ||
) |
Definition at line 286 of file ui-file.c.
References ui_file::to_write_async_safe.
Referenced by stdio_file_new(), and ui_file_new().
struct ui_file* stderr_fileopen | ( | void | ) | [read] |
Definition at line 680 of file ui-file.c.
References set_ui_file_fputs(), set_ui_file_write(), and stdio_fileopen().
Referenced by captured_main(), and gdb_setup_readline().
struct ui_file* stdio_fileopen | ( | FILE * | file | ) | [read] |
Definition at line 714 of file ui-file.c.
References stdio_file_new().
Referenced by captured_main(), gdb_setup_readline(), and stderr_fileopen().
struct ui_file* tee_file_new | ( | struct ui_file * | one, |
int | close_one, | ||
struct ui_file * | two, | ||
int | close_two | ||
) | [read] |
Definition at line 747 of file ui-file.c.
References tee_file::close_one, tee_file::close_two, tee_file::magic, tee_file::one, set_ui_file_data(), set_ui_file_flush(), set_ui_file_fputs(), set_ui_file_isatty(), set_ui_file_write(), tee_file_delete, tee_file_flush, tee_file_fputs, tee_file_isatty, tee_file_magic, tee_file_write, tee_file::two, ui_file_new(), and xmalloc().
Referenced by handle_redirections(), mi_set_logging(), and set_logging_redirect().
void* ui_file_data | ( | struct ui_file * | file | ) |
Definition at line 186 of file ui-file.c.
References _, internal_error(), ui_file::magic, ui_file::to_data, and ui_file_magic.
Referenced by mem_file_delete(), mem_file_put(), mem_file_rewind(), mem_file_write(), mi_console_file_delete(), mi_console_file_flush(), mi_console_file_fputs(), mi_console_set_raw(), stdio_file_delete(), stdio_file_flush(), stdio_file_fputs(), stdio_file_fseek(), stdio_file_isatty(), stdio_file_read(), stdio_file_write(), stdio_file_write_async_safe(), tee_file_delete(), tee_file_flush(), tee_file_fputs(), tee_file_isatty(), tee_file_write(), tui_file_adjust_strbuf(), tui_file_delete(), tui_file_flush(), tui_file_fputs(), tui_file_get_strbuf(), tui_file_isatty(), tui_file_put(), tui_file_rewind(), tui_fileopen(), and tui_sfileopen().
void ui_file_delete | ( | struct ui_file * | stream | ) |
Definition at line 79 of file ui-file.c.
References ui_file::to_delete, and xfree().
Referenced by _initialize_arm_tdep(), add_language(), aix_thread_extra_thread_info(), append_exp(), archpy_disassemble(), canonicalize_linespec(), do_serial_close(), do_ui_file_delete(), dwarf2_compute_name(), gdb_disable_readline(), inspect_type(), mi_set_logging(), pop_output_files(), print_target_wait_results(), replace_typedefs_qualified_name(), safe_parse_type(), safe_symbol_file_add_cleanup(), tee_file_delete(), tui_disassemble(), tui_get_function_from_frame(), tui_make_status_line(), and tui_restore_gdbout().
int ui_file_fseek | ( | struct ui_file * | file, |
long | offset, | ||
int | whence | ||
) |
Definition at line 243 of file ui-file.c.
References ui_file::to_fseek.
int ui_file_isatty | ( | struct ui_file * | ) |
Definition at line 201 of file ui-file.c.
References ui_file::to_isatty.
Referenced by init_page_info(), tee_file_isatty(), tui_allowed_p(), and tui_init().
struct ui_file* ui_file_new | ( | void | ) | [read] |
Definition at line 60 of file ui-file.c.
References ui_file::magic, null_file_delete, null_file_flush, null_file_fputs, null_file_fseek, null_file_isatty, null_file_put, null_file_read, null_file_rewind, null_file_write, null_file_write_async_safe, set_ui_file_data(), set_ui_file_flush(), set_ui_file_fputs(), set_ui_file_fseek(), set_ui_file_isatty(), set_ui_file_put(), set_ui_file_read(), set_ui_file_rewind(), set_ui_file_write(), set_ui_file_write_async_safe(), ui_file_magic, and xmalloc().
Referenced by captured_main(), gdb_insn_length(), gdbtk_fileopen(), gdbtk_fileopenin(), i386_fast_tracepoint_valid_at(), mem_file_new(), mi_console_file_new(), safe_parse_type(), safe_symbol_file_add(), stdio_file_new(), tee_file_new(), and tui_file_new().
char* ui_file_obsavestring | ( | struct ui_file * | file, |
struct obstack * | obstack, | ||
long * | length | ||
) |
Definition at line 365 of file ui-file.c.
References do_ui_file_obsavestring(), and ui_file_put().
Referenced by dwarf2_compute_name(), inspect_type(), and replace_typedefs_qualified_name().
void ui_file_put | ( | struct ui_file * | src, |
ui_file_put_method_ftype * | write, | ||
void * | dest | ||
) |
Definition at line 213 of file ui-file.c.
References ui_file::to_put.
Referenced by ada_print_floating(), dwarf2_compute_name(), mi_console_file_flush(), mi_out_put(), ui_file_obsavestring(), and ui_file_xstrdup().
long ui_file_read | ( | struct ui_file * | file, |
char * | buf, | ||
long | length_buf | ||
) |
Definition at line 237 of file ui-file.c.
References ui_file::to_read.
Referenced by remote_fileio_func_read().
void ui_file_rewind | ( | struct ui_file * | stream | ) |
Definition at line 207 of file ui-file.c.
References ui_file::to_rewind.
Referenced by dump_insns(), gdb_update_mem(), mi_cmd_data_read_memory(), mi_console_file_flush(), mi_out_put(), mi_out_rewind(), replace_typedefs_qualified_name(), tui_disassemble(), and ui_out_field_stream().
void ui_file_write | ( | struct ui_file * | file, |
const char * | buf, | ||
long | length_buf | ||
) |
Definition at line 221 of file ui-file.c.
References ui_file::to_write.
Referenced by aix_thread_extra_thread_info(), do_write(), fputc_unfiltered(), gdb_os_write_stdout(), print_exception(), putchar_unfiltered(), remote_fileio_func_write(), replace_typedefs_qualified_name(), and tee_file_write().
void ui_file_write_async_safe | ( | struct ui_file * | file, |
const char * | buf, | ||
long | length_buf | ||
) |
Definition at line 229 of file ui-file.c.
References ui_file::to_write_async_safe.
Referenced by sigchld_handler().
char* ui_file_xstrdup | ( | struct ui_file * | file, |
long * | length | ||
) |
Definition at line 342 of file ui-file.c.
References accumulated_ui_file::buffer, do_ui_file_xstrdup(), accumulated_ui_file::length, and ui_file_put().
Referenced by _initialize_arm_tdep(), ada_varobj_get_value_image(), ada_varobj_scalar_image(), add_language(), aix_thread_extra_thread_info(), append_exp(), archpy_disassemble(), bppy_get_commands(), canonicalize_linespec(), do_show_command(), error_stream(), escape_buffer(), eval_command(), execute_command_to_string(), frapy_str(), gdb_eval(), gdb_update_mem(), get_register(), print_target_wait_results(), quit_confirm(), type_to_string(), typy_str(), ui_out_field_stream(), value_get_print_value(), verify_gdbarch(), and xtensa_verify_config().