* breakpoint.c (print_it_typical) <bp_access_watchpoint> [UI_OUT]:
authorEli Zaretskii <eliz@gnu.org>
Tue, 20 Mar 2001 09:46:00 +0000 (09:46 +0000)
committerEli Zaretskii <eliz@gnu.org>
Tue, 20 Mar 2001 09:46:00 +0000 (09:46 +0000)
Correct the order of calls to ui_out_field_string and
ui_out_list_begin when bs->old_val is NULL.

gdb/ChangeLog
gdb/breakpoint.c

index 436ae00e5120d76b6cce83f517c325ed33e1b009..ccc9cef165e453a0b2041b351ecb5626a420bd42 100644 (file)
@@ -1,3 +1,9 @@
+2001-03-20  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * breakpoint.c (print_it_typical) <bp_access_watchpoint> [UI_OUT]:
+       Correct the order of calls to ui_out_field_string and
+       ui_out_list_begin when bs->old_val is NULL.
+
 2001-03-19  Kevin Buettner  <kevinb@redhat.com>
 
        * configure.in (AC_CHECK_HEADERS): Check for existence of nlist.h.
index aa3186a831927c2c1954408bbb5770ebd090b2f9..5382b15298b88a61c7dd069b554795b38691a013 100644 (file)
@@ -2088,8 +2088,8 @@ print_it_typical (bpstat bs)
        {
          mention (bs->breakpoint_at);
          if (interpreter_p && strcmp (interpreter_p, "mi") == 0)
-           ui_out_list_begin (uiout, "value");
-         ui_out_field_string (uiout, "reason", "access-watchpoint-trigger");
+           ui_out_field_string (uiout, "reason", "access-watchpoint-trigger");
+         ui_out_list_begin (uiout, "value");
          ui_out_text (uiout, "\nValue = ");
        }
       value_print (bs->breakpoint_at->val, stb->stream, 0,Val_pretty_default);