[PATCH] store trace default-collect to target [6/6] test

Hui Zhu hui_zhu@mentor.com
Thu Apr 11 10:49:00 GMT 2013


Hi,

This patch add test about default-collect to disconnected-tracing.exp for remote and tstatus.exp for tfile.

I test them with:
make check RUNTESTFLAGS="--target_board=native-gdbserver disconnected-tracing.exp tstatus.exp"

Thanks,
Hui

2013-04-11  Hui Zhu  <hui@codesourcery.com>

	* gdb.trace/disconnected-tracing.exp (disconnected_tracing): Add
	test for default-collect.
	* gdb.trace/tstatus.exp: Add test for default-collect.
-------------- next part --------------
--- a/doc/gdb.texinfo
+++ b/doc/gdb.texinfo
@@ -37792,8 +37792,10 @@ encoded).  @value{GDBN} will continue to
 @itemx QTDP
 @itemx QTDPsrc
 @itemx QTDV
+@itemx QTDDCsrc
 @itemx qTfP
 @itemx qTfV
+@itemx qTDC
 @itemx QTFrame
 @itemx qTMinFTPILen
 
@@ -38382,6 +38384,22 @@ the option of not using this packet for
 target should simply create the trace state variables as they are
 mentioned in expressions.
 
+@item QTDDCsrc:@var{bytes}
+@cindex define default collect, remote request
+@cindex @samp{QTDDCsrc} packet
+@var{bytes} is the string, encoded in hexadecimal.
+It specify a source string of default collect.
+The target does not need to do anything with source strings except
+report them back as part of the replies to the @samp{qTDC} query packets.
+
+Replies:
+@table @samp
+@item OK
+The packet was understood and carried out.
+@item  @w{}
+The packet was not recognized.
+@end table
+
 @item QTFrame:@var{n}
 @cindex @samp{QTFrame} packet
 Select the @var{n}'th tracepoint frame from the buffer, and use the
@@ -38637,6 +38655,24 @@ and multiple @code{qTsV} to get addition
 these packets follow the syntax of the @code{QTDV} packets that define
 trace state variables.
 
+@item qTDC
+@cindex @samp{qTDC} packet
+@itemx qTDC
+@cindex @samp{qTDC} packet
+These packets request default collect on the target.  Replies to
+this packet generally take the form of the @code{QTDDCsrc} packet that
+define default collect.
+
+Replies:
+@table @samp
+@item DC@var{bytes}
+@var{bytes} is the string, encoded in hexadecimal.  It take the form of
+the @code{QTDDCsrc} packet that define default collect.
+
+@item  @w{}
+The packet was not recognized.
+@end table
+
 @item qTfSTM
 @itemx qTsSTM
 @anchor{qTfSTM}


More information about the Gdb-patches mailing list