This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with MI -stack-list-frames command.


Index: stack.c
===================================================================
RCS file: /cvs/src/src/gdb/stack.c,v
retrieving revision 1.29
diff -u -r1.29 stack.c
--- stack.c	14 Feb 2002 07:24:54 -0000	1.29
+++ stack.c	16 Jul 2002 06:22:02 -0000
@@ -533,7 +533,7 @@
   if (level >= 0)
     {
       ui_out_text (uiout, "#");
-      ui_out_field_fmt (uiout, "level", "%-2d", level);
+      ui_out_field_int (uiout, "level", level);
       ui_out_spaces (uiout, 1);
     }
   if (addressprint)
One guess is prefix the ui_out_int() with ui_out_spaces(, <magic goes here>).

Andrew



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]