From 6c28cbf2b6beb56c99ec084b9bc5adc8d4813894 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Fri, 26 Mar 2010 01:46:29 +0000 Subject: 2010-03-25 Stan Shebs * tracepoint.h (trace_stop_reason): Add tracepoint_error. (struct trace_status): New field error_desc. * tracepoint.c (stop_reason_names): Add terror. (current_trace_status): Ensure non-NULL error description. (trace_status_command): Add error report. (trace_status_mi): Ditto. (trace_save): Add special case for error description. (parse_trace_status): Add case for errors. * gdb.texinfo (Tracepoint Packets): Document trace error status. * gdb.trace/tfile.c: Generate an additional trace file, improve portability. * gdb.trace/tfile.exp: Test trace file with an error stop, delete files in a better way. --- gdb/doc/ChangeLog | 4 ++++ gdb/doc/gdb.texinfo | 9 +++++++++ 2 files changed, 13 insertions(+) (limited to 'gdb/doc') diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index d99937a..dfb8a8d 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,7 @@ +2010-03-24 Stan Shebs + + * gdb.texinfo (Tracepoint Packets): Document trace error status. + 2010-03-24 Tom Tromey PR breakpoints/9352: diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 369556d..3c7d669 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -31362,6 +31362,15 @@ The trace stopped because @value{GDBN} disconnected from the target. @item tpasscount:@var{tpnum} The trace stopped because tracepoint @var{tpnum} exceeded its pass count. +@item terror:@var{text}:@var{tpnum} +The trace stopped because tracepoint @var{tpnum} had an error. The +string @var{text} is available to describe the nature of the error +(for instance, a divide by zero in the condition expression). +@var{text} may take either of two forms; it may be plain text, but +with the restriction that no colons or other special characters are +allowed, or it may be an @code{X} followed by hex digits encoding the +text string. + @item tunknown:0 The trace stopped for some other reason. -- cgit v1.1