aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2001-03-20 09:46:00 +0000
committerEli Zaretskii <eliz@gnu.org>2001-03-20 09:46:00 +0000
commitc97fe386ef32ffb486064c5609dfecb47dd401a8 (patch)
tree16435179655302f80cf49f07f76d11dfbc383585 /gdb/breakpoint.c
parent38686296b33380716ebee5e36a6915c8ae90fc01 (diff)
downloadfsf-binutils-gdb-c97fe386ef32ffb486064c5609dfecb47dd401a8.zip
fsf-binutils-gdb-c97fe386ef32ffb486064c5609dfecb47dd401a8.tar.gz
fsf-binutils-gdb-c97fe386ef32ffb486064c5609dfecb47dd401a8.tar.bz2
* 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.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index aa3186a..5382b15 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);