aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-12-31 10:40:02 -0700
committerTom Tromey <tom@tromey.com>2022-01-05 11:01:02 -0700
commitd53fd721a18f8c827aa69ffbd15abd99641b5e20 (patch)
tree436641845129a7eb9eb38733a456656da9312366 /gdb/utils.h
parent28a4e64dd1b17b0d9f267c3466d7da3e8a41afd8 (diff)
downloadgdb-d53fd721a18f8c827aa69ffbd15abd99641b5e20.zip
gdb-d53fd721a18f8c827aa69ffbd15abd99641b5e20.tar.gz
gdb-d53fd721a18f8c827aa69ffbd15abd99641b5e20.tar.bz2
Implement putstr and putstrn in ui_file
In my tour of the ui_file subsystem, I found that fputstr and fputstrn can be simplified. The _filtered forms are never used (and IMO unlikely to ever be used) and so can be removed. And, the interface can be simplified by removing a callback function and moving the implementation directly to ui_file. A new self-test is included. Previously, I think nothing was testing this code. Regression tested on x86-64 Fedora 34.
Diffstat (limited to 'gdb/utils.h')
-rw-r--r--gdb/utils.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/gdb/utils.h b/gdb/utils.h
index 69f84e0..ac30fd5 100644
--- a/gdb/utils.h
+++ b/gdb/utils.h
@@ -464,21 +464,6 @@ extern void print_spaces_filtered (int, struct ui_file *);
extern const char *n_spaces (int);
-extern void fputstr_filtered (const char *str, int quotr,
- struct ui_file * stream);
-
-extern void fputstr_unfiltered (const char *str, int quotr,
- struct ui_file * stream);
-
-extern void fputstrn_filtered (const char *str, int n, int quotr,
- struct ui_file * stream);
-
-typedef int (*do_fputc_ftype) (int c, ui_file *stream);
-
-extern void fputstrn_unfiltered (const char *str, int n, int quotr,
- do_fputc_ftype do_fputc,
- struct ui_file * stream);
-
/* Return nonzero if filtered printing is initialized. */
extern int filtered_printing_initialized (void);