aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-05-08 10:35:09 -0600
committerTom Tromey <tromey@adacore.com>2019-05-08 10:35:09 -0600
commitca1df239078318425cf8038995bf02f1b9ab6e50 (patch)
tree9ae5451e61cf0132f04e9da9b4012b0c1eb4d30b /gdb/utils.c
parent99f20f08682ecc7be882774ff78409530802d000 (diff)
downloadbinutils-ca1df239078318425cf8038995bf02f1b9ab6e50.zip
binutils-ca1df239078318425cf8038995bf02f1b9ab6e50.tar.gz
binutils-ca1df239078318425cf8038995bf02f1b9ab6e50.tar.bz2
Fix build problem in fputs_maybe_filtered
When merging commit 99f20f ("Fix style bug when paging") to master, I had to make some changes to get it to compile again. Unfortunately, I must not have added these to the index at the correct time, because they were not committed. This patch fixes the problem. gdb/ChangeLog 2019-05-08 Tom Tromey <tromey@adacore.com> * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a method.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 10fa5bc..9686927 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -1826,7 +1826,7 @@ fputs_maybe_filtered (const char *linebuffer, struct ui_file *stream,
+ (save_chars - wrap_column);
wrap_column = 0; /* And disable fancy wrap */
}
- else if (did_paginate && can_emit_style_escape (stream))
+ else if (did_paginate && stream->can_emit_style_escape ())
emit_style_escape (save_style, stream);
}
}