This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/2] Check trace data from trace file
On 02/25/2013 03:08 AM, Yao Qi wrote:
> Here is the same patch with spaces ignored. It is easier to read.
> Note that I modified a matched pattern "PC register is not
> available" for tfile target, as the regcache is not available when
> switch to tfind mode (no regcache has been read out of 'R' block yet).
Hmmm. Not sure. Shouldn't something have caught that exception? IOW,
could that be a bug?
I'm having difficulty figuring it out, because when I run the test
I don't see that output anywhere in the gdb.log:
(gdb) printf "x %d x\n", $tracepoint
x 2 x
(gdb) PASS: gdb.trace/report.exp: tfile: 9.1: find frame for TP 2
tdump
Data collected at tracepoint 2, trace frame 0:
(gdb) PASS: gdb.trace/report.exp: tfile: 9.1: tdump, nothing collected
I wonder what's different in our environments.
>
> # Nothing was collected at tdp1, so this tdump should be empty.
> gdb_test "tdump" \
> - "Data collected at tracepoint $tdp1, trace frame $decimal:" \
> + "Data collected at tracepoint $tdp1, trace frame $decimal:\(\|\\r\\nPC register is not available\)" \
> "9.1: tdump, nothing collected"
--
Pedro Alves