aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-01-31 03:46:23 +0000
committerAndrew Cagney <cagney@redhat.com>2001-01-31 03:46:23 +0000
commitd1f4cff847cd744be01b8f514ddfc5fedba3afc4 (patch)
tree82ddf9cb99000244b8ecc3c166c06e03b3bd4f20 /gdb/utils.c
parent74c1b268c657a9845250bfd8d30ead960b38771b (diff)
downloadgdb-d1f4cff847cd744be01b8f514ddfc5fedba3afc4.zip
gdb-d1f4cff847cd744be01b8f514ddfc5fedba3afc4.tar.gz
gdb-d1f4cff847cd744be01b8f514ddfc5fedba3afc4.tar.bz2
Move putchar_filtered() to utils.c.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 9cfdd3f..98bee73 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -1857,6 +1857,15 @@ putchar_unfiltered (int c)
return c;
}
+/* Write character C to gdb_stdout using GDB's paging mechanism and return C.
+ May return nonlocally. */
+
+int
+putchar_filtered (int c)
+{
+ return fputc_filtered (c, gdb_stdout);
+}
+
int
fputc_unfiltered (int c, struct ui_file *stream)
{