aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli-out.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/cli-out.c')
-rw-r--r--gdb/cli-out.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/cli-out.c b/gdb/cli-out.c
index 8d6b426..75a2259 100644
--- a/gdb/cli-out.c
+++ b/gdb/cli-out.c
@@ -93,15 +93,13 @@ cli_ui_out::do_end (ui_out_type type)
/* output an int field */
void
-cli_ui_out::do_field_int (int fldno, int width, ui_align alignment,
- const char *fldname, int value)
+cli_ui_out::do_field_signed (int fldno, int width, ui_align alignment,
+ const char *fldname, LONGEST value)
{
if (m_suppress_output)
return;
- std::string str = string_printf ("%d", value);
-
- do_field_string (fldno, width, alignment, fldname, str.c_str (),
+ do_field_string (fldno, width, alignment, fldname, plongest (value),
ui_out_style_kind::DEFAULT);
}