GDB (xrefs)
|
#include "defs.h"
#include "ui-file.h"
#include "gdb_obstack.h"
#include "gdb_select.h"
#include "filestuff.h"
Go to the source code of this file.
Classes | |
struct | ui_file |
struct | accumulated_ui_file |
struct | mem_file |
struct | stdio_file |
struct | tee_file |
Functions | |
struct ui_file * | ui_file_new (void) |
void | ui_file_delete (struct ui_file *file) |
static int | null_file_isatty (struct ui_file *file) |
static void | null_file_rewind (struct ui_file *file) |
static void | null_file_put (struct ui_file *file, ui_file_put_method_ftype *write, void *dest) |
static void | null_file_flush (struct ui_file *file) |
static void | null_file_write (struct ui_file *file, const char *buf, long sizeof_buf) |
static long | null_file_read (struct ui_file *file, char *buf, long sizeof_buf) |
static void | null_file_fputs (const char *buf, struct ui_file *file) |
static void | null_file_write_async_safe (struct ui_file *file, const char *buf, long sizeof_buf) |
static void | null_file_delete (struct ui_file *file) |
static int | null_file_fseek (struct ui_file *stream, long offset, int whence) |
void * | ui_file_data (struct ui_file *file) |
void | gdb_flush (struct ui_file *file) |
int | ui_file_isatty (struct ui_file *file) |
void | ui_file_rewind (struct ui_file *file) |
void | ui_file_put (struct ui_file *file, ui_file_put_method_ftype *write, void *dest) |
void | ui_file_write (struct ui_file *file, const char *buf, long length_buf) |
void | ui_file_write_for_put (void *data, const char *buffer, long length_buffer) |
void | ui_file_write_async_safe (struct ui_file *file, const char *buf, long length_buf) |
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) |
void | fputs_unfiltered (const char *buf, struct ui_file *file) |
void | set_ui_file_flush (struct ui_file *file, ui_file_flush_ftype *flush_ptr) |
void | set_ui_file_isatty (struct ui_file *file, ui_file_isatty_ftype *isatty_ptr) |
void | set_ui_file_rewind (struct ui_file *file, ui_file_rewind_ftype *rewind_ptr) |
void | set_ui_file_put (struct ui_file *file, ui_file_put_ftype *put_ptr) |
void | set_ui_file_write (struct ui_file *file, ui_file_write_ftype *write_ptr) |
void | set_ui_file_write_async_safe (struct ui_file *file, ui_file_write_async_safe_ftype *write_async_safe_ptr) |
void | set_ui_file_read (struct ui_file *file, ui_file_read_ftype *read_ptr) |
void | set_ui_file_fputs (struct ui_file *file, ui_file_fputs_ftype *fputs_ptr) |
void | set_ui_file_fseek (struct ui_file *file, ui_file_fseek_ftype *fseek_ptr) |
void | set_ui_file_data (struct ui_file *file, void *data, ui_file_delete_ftype *delete_ptr) |
static void | do_ui_file_xstrdup (void *context, const char *buffer, long length) |
char * | ui_file_xstrdup (struct ui_file *file, long *length) |
static void | do_ui_file_obsavestring (void *context, const char *buffer, long length) |
char * | ui_file_obsavestring (struct ui_file *file, struct obstack *obstack, long *length) |
static struct ui_file * | mem_file_new (void) |
static void | mem_file_delete (struct ui_file *file) |
struct ui_file * | mem_fileopen (void) |
static void | mem_file_rewind (struct ui_file *file) |
static void | mem_file_put (struct ui_file *file, ui_file_put_method_ftype *write, void *dest) |
void | mem_file_write (struct ui_file *file, const char *buffer, long length_buffer) |
static struct ui_file * | stdio_file_new (FILE *file, int close_p) |
static void | stdio_file_delete (struct ui_file *file) |
static void | stdio_file_flush (struct ui_file *file) |
static long | stdio_file_read (struct ui_file *file, char *buf, long length_buf) |
static void | stdio_file_write (struct ui_file *file, const char *buf, long length_buf) |
static void | stdio_file_write_async_safe (struct ui_file *file, const char *buf, long length_buf) |
static void | stdio_file_fputs (const char *linebuffer, struct ui_file *file) |
static int | stdio_file_isatty (struct ui_file *file) |
static int | stdio_file_fseek (struct ui_file *file, long offset, int whence) |
struct ui_file * | stderr_fileopen (void) |
struct ui_file * | stdio_fileopen (FILE *file) |
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) |
static void | tee_file_delete (struct ui_file *file) |
static void | tee_file_flush (struct ui_file *file) |
static void | tee_file_write (struct ui_file *file, const char *buf, long length_buf) |
static void | tee_file_fputs (const char *linebuffer, struct ui_file *file) |
static int | tee_file_isatty (struct ui_file *file) |
|
static |
Definition at line 360 of file ui-file.c.
Referenced by ui_file_obsavestring().
|
static |
Definition at line 331 of file ui-file.c.
References accumulated_ui_file::buffer, accumulated_ui_file::length, xmalloc(), and xrealloc().
Referenced by ui_file_xstrdup().
Definition at line 252 of file ui-file.c.
References ui_file::to_fputs.
Referenced by abort_with_message(), add_code_footer(), add_code_header(), ATTRIBUTE_PRINTF(), c_compute_program(), canonicalize_linespec(), captured_main(), captured_mi_execute_command(), chain_candidate(), clear_complaints(), compile_to_object(), debug_async(), debug_augmented_libraries_svr4_read(), debug_auxv_parse(), debug_btrace_conf(), debug_call_history(), debug_call_history_from(), debug_call_history_range(), debug_can_accel_watchpoint_condition(), debug_can_async_p(), debug_can_download_tracepoint(), debug_can_execute_reverse(), debug_can_run(), debug_can_run_breakpoint_commands(), debug_can_use_agent(), debug_can_use_hw_breakpoint(), debug_check_pending_interrupt(), debug_core_of_thread(), debug_delete_record(), debug_detach(), debug_disable_btrace(), debug_disable_tracepoint(), debug_disconnect(), debug_done_generating_core(), debug_download_trace_state_variable(), debug_download_tracepoint(), debug_enable_btrace(), debug_enable_tracepoint(), debug_execution_direction(), debug_extra_thread_info(), debug_fetch_registers(), debug_files_info(), debug_filesystem_is_local(), debug_find_memory_regions(), debug_flash_done(), debug_flash_erase(), debug_follow_fork(), debug_get_ada_task_ptid(), debug_get_bookmark(), debug_get_min_fast_tracepoint_insn_len(), debug_get_raw_trace_data(), debug_get_section_table(), debug_get_tailcall_unwinder(), debug_get_thread_local_address(), debug_get_tib_address(), debug_get_trace_state_variable_value(), debug_get_trace_status(), debug_get_tracepoint_status(), debug_get_unwinder(), debug_goto_bookmark(), debug_goto_record(), debug_goto_record_begin(), debug_goto_record_end(), debug_has_exited(), debug_info_record(), debug_insert_breakpoint(), debug_insert_exec_catchpoint(), debug_insert_fork_catchpoint(), debug_insert_hw_breakpoint(), debug_insert_mask_watchpoint(), debug_insert_vfork_catchpoint(), debug_insert_watchpoint(), debug_insn_history(), debug_insn_history_from(), debug_insn_history_range(), debug_is_async_p(), debug_kill(), debug_load(), debug_log_command(), debug_make_corefile_notes(), debug_masked_watch_num_registers(), debug_mourn_inferior(), debug_pass_signals(), debug_pid_to_exec_file(), debug_pid_to_str(), debug_post_attach(), debug_post_startup_inferior(), debug_prepare_to_generate_core(), debug_prepare_to_store(), debug_program_signals(), debug_ranged_break_num_registers(), debug_rcmd(), debug_read_btrace(), debug_read_description(), debug_record_is_replaying(), debug_region_ok_for_hw_watchpoint(), debug_remove_breakpoint(), debug_remove_exec_catchpoint(), debug_remove_fork_catchpoint(), debug_remove_hw_breakpoint(), debug_remove_mask_watchpoint(), debug_remove_vfork_catchpoint(), debug_remove_watchpoint(), debug_resume(), debug_save_record(), debug_save_trace_data(), debug_search_memory(), debug_set_circular_trace_buffer(), debug_set_disconnected_tracing(), debug_set_permissions(), debug_set_syscall_catchpoint(), debug_set_trace_buffer_size(), debug_set_trace_notes(), debug_static_tracepoint_marker_at(), debug_stop(), debug_stop_recording(), debug_stopped_by_hw_breakpoint(), debug_stopped_by_sw_breakpoint(), debug_stopped_by_watchpoint(), debug_stopped_data_address(), debug_store_registers(), debug_supports_btrace(), debug_supports_enable_disable_tracepoint(), debug_supports_evaluation_of_breakpoint_conditions(), debug_supports_multi_process(), debug_supports_non_stop(), debug_supports_stopped_by_hw_breakpoint(), debug_supports_stopped_by_sw_breakpoint(), debug_supports_string_tracing(), debug_teardown_btrace(), debug_terminal_inferior(), debug_terminal_info(), debug_terminal_init(), debug_terminal_ours(), debug_terminal_ours_for_output(), debug_thread_address_space(), debug_thread_alive(), debug_thread_architecture(), debug_thread_name(), debug_trace_find(), debug_trace_init(), debug_trace_set_readonly_regions(), debug_trace_start(), debug_trace_stop(), debug_traceframe_info(), debug_update_thread_list(), debug_upload_trace_state_variables(), debug_upload_tracepoints(), debug_use_agent(), debug_verify_memory(), debug_wait(), debug_watchpoint_addr_within_range(), debug_xfer_partial(), displaced_step_dump_bytes(), display_gdb_prompt(), do_serial_close(), dump_mem(), dwarf2_compute_name(), fputs_maybe_filtered(), fputstr_unfiltered(), fputstrn_unfiltered(), gdb_os_write_stderr(), gdb_readline(), generate_register_struct(), mi_cmd_execute(), mi_cmd_gdb_exit(), mi_command_loop(), mi_console_file_fputs(), mi_console_raw_packet(), mi_execute_command_input_handler(), mi_field_fmt(), mi_load_progress(), mi_on_normal_stop(), mi_on_resume(), mi_on_sync_execution_done(), mi_print_exception(), monitor_rcmd(), print_gdb_help(), print_i387_ext(), print_spaces(), print_subexp_standard(), puts_debug(), puts_unfiltered(), remote_console_output(), replace_typedefs_qualified_name(), ser_base_read_error_fd(), serial_log_command(), serial_logchar(), target_debug_print_options(), target_debug_print_signals(), target_debug_print_struct_target_waitstatus_p(), target_xfer_partial(), tui_alloc_source_buffer(), vfprintf_unfiltered(), vwarning(), and wrap_here().
void gdb_flush | ( | struct ui_file * | file | ) |
Definition at line 192 of file ui-file.c.
References ui_file::to_flush.
Referenced by ada_lookup_struct_elt_type(), ada_print_scalar(), 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(), f_val_print(), follow_exec(), fork_inferior(), gdb_disassembly(), gdb_os_flush_stderr(), gdb_os_flush_stdout(), gdb_readline(), gdb_wait_for_event(), gdbpy_flush(), generic_val_print(), gnu_attach(), gnu_detach(), handle_command(), handle_inferior_event_1(), inf_ptrace_attach(), inf_ptrace_detach(), ioscm_fill_input(), ioscm_flush(), 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_on_sync_execution_done(), 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_load_srec(), mips_receive_header(), mips_xfer_memory(), output_command_const(), pascal_val_print(), pmon_load_fast(), print_disassembly(), print_flush(), print_frame_info(), print_sys_errmsg(), print_type_scalar(), printf_command(), 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(), 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 723 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().
|
static |
Definition at line 414 of file ui-file.c.
References _, mem_file::buffer, internal_error(), mem_file::magic, mem_file_magic, ui_file_data(), and xfree().
|
static |
Definition at line 397 of file ui-file.c.
References mem_file::buffer, mem_file::length_buffer, mem_file::magic, mem_file_delete, mem_file_magic, mem_file_put, mem_file_rewind, mem_file_write, set_ui_file_data(), set_ui_file_put(), set_ui_file_rewind(), set_ui_file_write(), mem_file::sizeof_buffer, and ui_file_new().
Referenced by mem_fileopen().
|
static |
Definition at line 444 of file ui-file.c.
References _, mem_file::buffer, internal_error(), mem_file::length_buffer, mem_file::magic, mem_file_magic, and ui_file_data().
|
static |
Definition at line 433 of file ui-file.c.
References _, internal_error(), mem_file::length_buffer, mem_file::magic, mem_file_magic, and ui_file_data().
Definition at line 458 of file ui-file.c.
References _, mem_file::buffer, internal_error(), mem_file::length_buffer, mem_file::magic, mem_file_magic, mem_file::sizeof_buffer, ui_file_data(), xmalloc(), and xrealloc().
struct ui_file* mem_fileopen | ( | void | ) |
Definition at line 427 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(), c_compute_program(), canonicalize_linespec(), compile_to_object(), do_show_command(), dump_insns(), dwarf2_compute_name(), escape_buffer(), eval_command(), execute_command_to_string(), frapy_str(), frscm_print_frame_smob(), gdb_disassembly(), gdbscm_arch_disassemble(), gdbscm_breakpoint_commands(), gdbscm_value_print(), generate_c_for_for_one_variable(), 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(), tyscm_type_name(), unwind_infopy_str(), update_inserted_breakpoint_locations(), valpy_str(), varobj_value_get_print_value(), verify_gdbarch(), vlscm_print_value_smob(), xtensa_verify_config(), and yyparse().
|
static |
|
static |
Definition at line 147 of file ui-file.c.
References null_file_write, and ui_file::to_write.
|
static |
|
static |
|
static |
Definition at line 109 of file ui-file.c.
References null_file_fputs, and ui_file::to_fputs.
void set_ui_file_data | ( | struct ui_file * | file, |
void * | data, | ||
ui_file_delete_ftype * | delete_ptr | ||
) |
Definition at line 314 of file ui-file.c.
References ui_file::to_data, and ui_file::to_delete.
Referenced by ioscm_file_port_new(), 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 * | file, |
ui_file_flush_ftype * | flush_ptr | ||
) |
Definition at line 258 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 * | file, |
ui_file_fputs_ftype * | fputs_ptr | ||
) |
Definition at line 302 of file ui-file.c.
References ui_file::to_fputs.
Referenced by 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 * | file, |
ui_file_fseek_ftype * | fseek_ptr | ||
) |
Definition at line 308 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 * | file, |
ui_file_isatty_ftype * | isatty_ptr | ||
) |
Definition at line 264 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 * | file, |
ui_file_put_ftype * | put_ptr | ||
) |
Definition at line 276 of file ui-file.c.
References ui_file::to_put.
Referenced by ioscm_file_port_new(), mem_file_new(), tui_file_new(), and ui_file_new().
void set_ui_file_read | ( | struct ui_file * | file, |
ui_file_read_ftype * | read_ptr | ||
) |
Definition at line 296 of file ui-file.c.
References ui_file::to_read.
Referenced by stdio_file_new(), and ui_file_new().
void set_ui_file_rewind | ( | struct ui_file * | file, |
ui_file_rewind_ftype * | rewind_ptr | ||
) |
Definition at line 270 of file ui-file.c.
References ui_file::to_rewind.
Referenced by ioscm_file_port_new(), mem_file_new(), tui_file_new(), and ui_file_new().
void set_ui_file_write | ( | struct ui_file * | file, |
ui_file_write_ftype * | write_ptr | ||
) |
Definition at line 282 of file ui-file.c.
References ui_file::to_write.
Referenced by ioscm_file_port_new(), 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 * | file, |
ui_file_write_async_safe_ftype * | write_async_safe_ptr | ||
) |
Definition at line 289 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 | ) |
Definition at line 683 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().
|
static |
Definition at line 535 of file ui-file.c.
References _, stdio_file::close_p, stdio_file::file, internal_error(), stdio_file::magic, stdio_file_magic, ui_file_data(), and xfree().
|
static |
Definition at line 550 of file ui-file.c.
References _, stdio_file::file, internal_error(), stdio_file::magic, stdio_file_magic, and ui_file_data().
Definition at line 623 of file ui-file.c.
References _, stdio_file::file, internal_error(), stdio_file::magic, stdio_file_magic, and ui_file_data().
Definition at line 649 of file ui-file.c.
References _, stdio_file::file, internal_error(), stdio_file::magic, stdio_file_magic, and ui_file_data().
Definition at line 638 of file ui-file.c.
References _, stdio_file::fd, internal_error(), stdio_file::magic, stdio_file_magic, and ui_file_data().
Definition at line 514 of file ui-file.c.
References stdio_file::close_p, stdio_file::fd, stdio_file::file, stdio_file::magic, set_ui_file_data(), set_ui_file_flush(), set_ui_file_fputs(), set_ui_file_fseek(), set_ui_file_isatty(), set_ui_file_read(), set_ui_file_write(), set_ui_file_write_async_safe(), stdio_file_delete, stdio_file_flush, stdio_file_fputs, stdio_file_fseek, stdio_file_isatty, stdio_file_magic, stdio_file_read, stdio_file_write, stdio_file_write_async_safe, ui_file_new(), and xmalloc().
Referenced by gdb_fopen(), and stdio_fileopen().
|
static |
Definition at line 561 of file ui-file.c.
References _, stdio_file::fd, gdb_select(), internal_error(), stdio_file::magic, read(), stdio_file_magic, and ui_file_data().
Definition at line 584 of file ui-file.c.
References _, stdio_file::file, internal_error(), stdio_file::magic, stdio_file_magic, and ui_file_data().
|
static |
Definition at line 599 of file ui-file.c.
References stdio_file::fd, stdio_file::magic, stdio_file_magic, and ui_file_data().
struct ui_file* stdio_fileopen | ( | FILE * | file | ) |
Definition at line 717 of file ui-file.c.
References stdio_file_new().
Referenced by captured_main(), gdb_setup_readline(), and stderr_fileopen().
|
static |
Definition at line 770 of file ui-file.c.
References _, tee_file::close_one, tee_file::close_two, internal_error(), tee_file::magic, tee_file::one, tee_file_magic, tee_file::two, ui_file_data(), ui_file_delete(), and xfree().
|
static |
Definition at line 786 of file ui-file.c.
References _, internal_error(), tee_file::magic, tee_file::one, tee_file_magic, ui_file::to_flush, tee_file::two, and ui_file_data().
Definition at line 810 of file ui-file.c.
References _, internal_error(), tee_file::magic, tee_file::one, tee_file_magic, ui_file::to_fputs, tee_file::two, and ui_file_data().
Definition at line 822 of file ui-file.c.
References _, internal_error(), tee_file::magic, tee_file::one, tee_file_magic, ui_file_data(), and ui_file_isatty().
struct ui_file* tee_file_new | ( | struct ui_file * | one, |
int | close_one, | ||
struct ui_file * | two, | ||
int | close_two | ||
) |
Definition at line 750 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().
Definition at line 798 of file ui-file.c.
References _, internal_error(), tee_file::magic, tee_file::one, tee_file_magic, tee_file::two, ui_file_data(), and ui_file_write().
void* ui_file_data | ( | struct ui_file * | file | ) |
Definition at line 183 of file ui-file.c.
References _, internal_error(), ui_file::magic, ui_file::to_data, and ui_file_magic.
Referenced by ioscm_file_port_delete(), ioscm_file_port_put(), ioscm_file_port_rewind(), ioscm_file_port_write(), 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 * | file | ) |
Definition at line 76 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(), frscm_print_frame_smob(), gdb_disable_readline(), inspect_type(), mi_set_logging(), pop_output_files(), print_target_wait_results(), replace_typedefs_qualified_name(), safe_parse_type(), tee_file_delete(), tui_disassemble(), tui_get_function_from_frame(), tui_make_status_line(), tui_restore_gdbout(), unwind_infopy_str(), and yyparse().
Definition at line 246 of file ui-file.c.
References ui_file::to_fseek.
Definition at line 198 of file ui-file.c.
References ui_file::to_isatty.
Referenced by init_page_info(), tee_file_isatty(), tui_enable(), and tui_init().
struct ui_file* ui_file_new | ( | void | ) |
Definition at line 57 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(), i386_fast_tracepoint_valid_at(), ioscm_file_port_new(), mem_file_new(), mi_console_file_new(), safe_parse_type(), 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 368 of file ui-file.c.
References do_ui_file_obsavestring(), and ui_file_put().
Referenced by inspect_type(), and replace_typedefs_qualified_name().
void ui_file_put | ( | struct ui_file * | file, |
ui_file_put_method_ftype * | write, | ||
void * | dest | ||
) |
Definition at line 210 of file ui-file.c.
References ui_file::to_put.
Referenced by c_compute_program(), dwarf2_compute_name(), generate_c_for_for_one_variable(), 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 240 of file ui-file.c.
References ui_file::to_read.
Referenced by ioscm_fill_input(), and remote_fileio_func_read().
void ui_file_rewind | ( | struct ui_file * | file | ) |
Definition at line 204 of file ui-file.c.
References ui_file::to_rewind.
Referenced by dump_insns(), 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().
Definition at line 218 of file ui-file.c.
References ui_file::to_write.
Referenced by aix_thread_extra_thread_info(), fputc_unfiltered(), gdb_os_write_stdout(), print_exception(), putchar_unfiltered(), remote_fileio_func_write(), replace_typedefs_qualified_name(), tee_file_write(), and ui_file_write_for_put().
Definition at line 232 of file ui-file.c.
References ui_file::to_write_async_safe.
Referenced by sigchld_handler().
void ui_file_write_for_put | ( | void * | data, |
const char * | buffer, | ||
long | length_buffer | ||
) |
Definition at line 226 of file ui-file.c.
References ui_file_write().
Referenced by c_compute_program(), generate_c_for_for_one_variable(), and mi_out_put().
char* ui_file_xstrdup | ( | struct ui_file * | file, |
long * | length | ||
) |
Definition at line 345 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_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(), c_compute_program(), canonicalize_linespec(), compile_to_object(), do_show_command(), dwarf2_compute_name(), error_stream(), escape_buffer(), eval_command(), execute_command_to_string(), frapy_str(), frscm_print_frame_smob(), gdbscm_arch_disassemble(), gdbscm_breakpoint_commands(), gdbscm_value_print(), print_target_wait_results(), quit_confirm(), type_to_string(), typy_str(), tyscm_type_name(), ui_out_field_stream(), unwind_infopy_str(), valpy_str(), varobj_value_get_print_value(), verify_gdbarch(), vlscm_print_value_smob(), xtensa_verify_config(), and yyparse().
|
static |
Definition at line 392 of file ui-file.c.
Referenced by mem_file_new().
|
static |
Definition at line 394 of file ui-file.c.
Referenced by mem_file_delete(), mem_file_new(), mem_file_put(), mem_file_rewind(), and mem_file_write().
|
static |
Definition at line 390 of file ui-file.c.
Referenced by mem_file_new().
|
static |
Definition at line 389 of file ui-file.c.
Referenced by mem_file_new().
|
static |
Definition at line 391 of file ui-file.c.
Referenced by mem_file_new().
|
static |
Definition at line 34 of file ui-file.c.
Referenced by ui_file_new().
|
static |
Definition at line 33 of file ui-file.c.
Referenced by ui_file_new().
|
static |
Definition at line 31 of file ui-file.c.
Referenced by null_file_write(), and ui_file_new().
|
static |
Definition at line 37 of file ui-file.c.
Referenced by ui_file_new().
|
static |
Definition at line 28 of file ui-file.c.
Referenced by ui_file_new().
|
static |
Definition at line 36 of file ui-file.c.
Referenced by ui_file_new().
|
static |
Definition at line 32 of file ui-file.c.
Referenced by ui_file_new().
|
static |
Definition at line 35 of file ui-file.c.
Referenced by ui_file_new().
|
static |
Definition at line 29 of file ui-file.c.
Referenced by null_file_fputs(), and ui_file_new().
|
static |
Definition at line 30 of file ui-file.c.
Referenced by ui_file_new().
|
static |
Definition at line 496 of file ui-file.c.
Referenced by stdio_file_new().
|
static |
Definition at line 498 of file ui-file.c.
Referenced by stdio_file_new().
|
static |
Definition at line 493 of file ui-file.c.
Referenced by stdio_file_new().
|
static |
Definition at line 499 of file ui-file.c.
Referenced by stdio_file_new().
|
static |
Definition at line 495 of file ui-file.c.
Referenced by stdio_file_new().
|
static |
Definition at line 501 of file ui-file.c.
Referenced by stdio_file_delete(), stdio_file_flush(), stdio_file_fputs(), stdio_file_fseek(), stdio_file_isatty(), stdio_file_new(), stdio_file_read(), stdio_file_write(), and stdio_file_write_async_safe().
|
static |
Definition at line 494 of file ui-file.c.
Referenced by stdio_file_new().
|
static |
Definition at line 491 of file ui-file.c.
Referenced by stdio_file_new().
|
static |
Definition at line 492 of file ui-file.c.
Referenced by stdio_file_new().
|
static |
Definition at line 737 of file ui-file.c.
Referenced by tee_file_new().
|
static |
Definition at line 738 of file ui-file.c.
Referenced by tee_file_new().
|
static |
Definition at line 735 of file ui-file.c.
Referenced by tee_file_new().
|
static |
Definition at line 736 of file ui-file.c.
Referenced by tee_file_new().
|
static |
Definition at line 740 of file ui-file.c.
Referenced by tee_file_delete(), tee_file_flush(), tee_file_fputs(), tee_file_isatty(), tee_file_new(), and tee_file_write().
|
static |
Definition at line 734 of file ui-file.c.
Referenced by tee_file_new().
int ui_file_magic |
Definition at line 54 of file ui-file.c.
Referenced by ui_file_data(), and ui_file_new().