Re: [PATCH] add testsuite for for backtrace commands with tfile to test the tfile memory read

Yao Qi
2012-06-20T14:44:39Z

Hi, Hui,

I got some fails with your patch applied,

FAIL: gdb.trace/tfile.exp: tstart
FAIL: gdb.trace/tfile.exp: tstop
FAIL: gdb.trace/tfile.exp: load trace file bt.tf (GDB internal error)
FAIL: gdb.trace/tfile.exp: tfind 0 on trace file bt.tf
FAIL: gdb.trace/tfile.exp: backtrace on trace file bt.tf

On Wednesday 20 June 2012 18:08:17 Hui Zhu wrote:
> gdb_test_no_output "tstart"

You start tracing in native, which doesn't support tracepoint.

> +gdb_test "break done_making_trace_files" ".*" ""
> +gdb_test "continue" ".*" ""
> +gdb_test_no_output "tstop"
> +gdb_test "tsave ./bt.tf" ".*" ""

AFAIK, in tfile.exp, trace file is generated by tfile.c and GDB only consumes
these trace files (basic.tf and error.tf) for test purpose.

--
Yao (齐尧)