X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gdb%2Futils.h;h=fd724444aa03534466cc0c487e8240d0da6b2ce6;hb=d4ab829a2477d454bd38544f1b88a043ec58581c;hp=16ee9fbd33761ed6378809c080016fcb2e261f27;hpb=62f29fda90cf1d5a1899f57ef78452471c707fd6;p=external%2Fbinutils.git diff --git a/gdb/utils.h b/gdb/utils.h index 16ee9fb..fd72444 100644 --- a/gdb/utils.h +++ b/gdb/utils.h @@ -1,7 +1,7 @@ /* *INDENT-OFF* */ /* ATTRIBUTE_PRINTF confuses indent, avoid running it for now. */ /* I/O, string, cleanup, and other random utilities for GDB. - Copyright (C) 1986-2018 Free Software Foundation, Inc. + Copyright (C) 1986-2019 Free Software Foundation, Inc. This file is part of GDB. @@ -22,9 +22,12 @@ #define UTILS_H #include "exceptions.h" -#include "common/scoped_restore.h" +#include "gdbsupport/scoped_restore.h" #include +struct completion_match_for_lcd; +class compiled_regex; + extern void initialize_utils (void); /* String utilities. */ @@ -188,7 +191,7 @@ public: /* Return the underlying array, transferring ownership to the caller. */ - char **release () + ATTRIBUTE_UNUSED_RESULT char **release () { char **result = m_argv; m_argv = NULL; @@ -260,8 +263,6 @@ struct htab_deleter /* A unique_ptr wrapper for htab_t. */ typedef std::unique_ptr htab_up; -extern void free_current_contents (void *); - extern void init_page_info (void); /* Temporarily set BATCH_FLAG and the associated unlimited terminal size. @@ -286,7 +287,6 @@ private: int m_save_batch_flag; }; -extern struct cleanup *make_bpstat_clear_actions_cleanup (void); /* Path utilities. */ @@ -439,13 +439,15 @@ extern void fputs_styled (const char *linebuffer, const ui_file_style &style, struct ui_file *stream); -/* Reset the terminal style to the default, if needed. */ +/* Like fputs_styled, but uses highlight_style to highlight the + parts of STR that match HIGHLIGHT. */ -extern void reset_terminal_style (struct ui_file *stream); +extern void fputs_highlighted (const char *str, const compiled_regex &highlight, + struct ui_file *stream); -/* Return true if ANSI escapes can be used on STREAM. */ +/* Reset the terminal style to the default, if needed. */ -extern bool can_emit_style_escape (struct ui_file *stream); +extern void reset_terminal_style (struct ui_file *stream); /* Display the host ADDR on STREAM formatted as ``0x%x''. */ extern void gdb_print_host_address_1 (const void *addr, struct ui_file *stream);