From: Eli Zaretskii Date: Tue, 20 Mar 2001 09:46:00 +0000 (+0000) Subject: * breakpoint.c (print_it_typical) [UI_OUT]: X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c97fe386ef32ffb486064c5609dfecb47dd401a8;p=binutils-gdb.git * breakpoint.c (print_it_typical) [UI_OUT]: Correct the order of calls to ui_out_field_string and ui_out_list_begin when bs->old_val is NULL. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 436ae00e512..ccc9cef165e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2001-03-20 Eli Zaretskii + + * breakpoint.c (print_it_typical) [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 * configure.in (AC_CHECK_HEADERS): Check for existence of nlist.h. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index aa3186a8319..5382b15298b 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -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);