diff options
Diffstat (limited to 'gdb/utils.h')
-rw-r--r-- | gdb/utils.h | 56 |
1 files changed, 25 insertions, 31 deletions
diff --git a/gdb/utils.h b/gdb/utils.h index 7865812..46df1de 100644 --- a/gdb/utils.h +++ b/gdb/utils.h @@ -37,7 +37,7 @@ extern bool sevenbit_strings; enum class strncmp_iw_mode { -/* Do a strcmp() type operation on STRING1 and STRING2, ignoring any + /* Do a strcmp() type operation on STRING1 and STRING2, ignoring any differences in whitespace. Returns 0 if they match, non-zero if they don't (slightly different than strcmp()'s range of return values). */ @@ -62,11 +62,12 @@ enum class strncmp_iw_mode to handle abi tags). If IGNORE_TEMPLATE_PARAMS is true, all template parameter lists will be ignored when language is C++. */ -extern int strncmp_iw_with_mode - (const char *string1, const char *string2, size_t string2_len, - strncmp_iw_mode mode, enum language language, - completion_match_for_lcd *match_for_lcd = NULL, - bool ignore_template_params = false); +extern int strncmp_iw_with_mode (const char *string1, const char *string2, + size_t string2_len, strncmp_iw_mode mode, + enum language language, + completion_match_for_lcd *match_for_lcd + = NULL, + bool ignore_template_params = false); /* Do a strncmp() type operation on STRING1 and STRING2, ignoring any differences in whitespace. STRING2_LEN is STRING2's length. @@ -98,14 +99,13 @@ extern int strcmp_iw_ordered (const char *, const char *); void reset_prompt_for_continue_wait_time (void); /* Return the time spent in prompt_for_continue. */ std::chrono::steady_clock::duration get_prompt_for_continue_wait_time (); - + /* Parsing utilities. */ extern int parse_pid_to_attach (const char *args); extern int parse_escape (struct gdbarch *, const char **); - /* Cleanup utilities. */ extern void init_page_info (void); @@ -132,7 +132,6 @@ private: int m_save_batch_flag; }; - /* Path utilities. */ extern int gdb_filename_fnmatch (const char *pattern, const char *string, @@ -146,7 +145,7 @@ std::string ldirname (const char *filename); extern int count_path_elements (const char *path); extern const char *strip_leading_path_elements (const char *path, int n); - + /* GDB output, ui_file utilities. */ struct ui_file; @@ -241,23 +240,20 @@ extern int filtered_printing_initialized (void); /* Like gdb_printf, but styles the output according to STYLE, when appropriate. */ -extern void fprintf_styled (struct ui_file *stream, - const ui_file_style &style, - const char *fmt, - ...) - ATTRIBUTE_PRINTF (3, 4); +extern void fprintf_styled (struct ui_file *stream, const ui_file_style &style, + const char *fmt, ...) ATTRIBUTE_PRINTF (3, 4); /* Like gdb_puts, but styles the output according to STYLE, when appropriate. */ -extern void fputs_styled (const char *linebuffer, - const ui_file_style &style, +extern void fputs_styled (const char *linebuffer, const ui_file_style &style, struct ui_file *stream); /* Like fputs_styled, but uses highlight_style to highlight the parts of STR that match HIGHLIGHT. */ -extern void fputs_highlighted (const char *str, const compiled_regex &highlight, +extern void fputs_highlighted (const char *str, + const compiled_regex &highlight, struct ui_file *stream); /* Convert CORE_ADDR to string in platform-specific manner. @@ -272,13 +268,13 @@ extern const char *print_core_address (struct gdbarch *gdbarch, extern CORE_ADDR string_to_core_addr (const char *my_string); -extern void fprintf_symbol (struct ui_file *, const char *, - enum language, int); +extern void fprintf_symbol (struct ui_file *, const char *, enum language, + int); extern void perror_warning_with_name (const char *string); extern void print_sys_errmsg (const char *, int); - + /* Warnings and error messages. */ extern void (*deprecated_error_begin_hook) (void); @@ -289,14 +285,12 @@ extern const char *warning_pre_print; extern void error_stream (const string_file &) ATTRIBUTE_NORETURN; -extern void demangler_vwarning (const char *file, int line, - const char *, va_list ap) - ATTRIBUTE_PRINTF (3, 0); +extern void demangler_vwarning (const char *file, int line, const char *, + va_list ap) ATTRIBUTE_PRINTF (3, 0); -extern void demangler_warning (const char *file, int line, - const char *, ...) ATTRIBUTE_PRINTF (3, 4); +extern void demangler_warning (const char *file, int line, const char *, ...) + ATTRIBUTE_PRINTF (3, 4); - /* Misc. utilities. */ #ifdef HAVE_WAITPID @@ -315,10 +309,10 @@ extern ULONGEST uinteger_pow (ULONGEST v1, LONGEST v2); /* Resource limits used by getrlimit and setrlimit. */ enum resource_limit_kind - { - LIMIT_CUR, - LIMIT_MAX - }; +{ + LIMIT_CUR, + LIMIT_MAX +}; /* Check whether GDB will be able to dump core using the dump_core function. Returns zero if GDB cannot or should not dump core. |