Refactor gdb.trace/save-trace.exp
authorSimon Marchi <simon.marchi@ericsson.com>
Mon, 23 Nov 2015 23:47:08 +0000 (18:47 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Mon, 23 Nov 2015 23:47:08 +0000 (18:47 -0500)
commit045ccf910b4345a1cfa9f3d3af20ae4d8d1defa2
treec51bb30f95271bd05e7ac819fce7296f9bc37db9
parent5506f9f67ec105b0059a0b3a66fbde82cb5a0a15
Refactor gdb.trace/save-trace.exp

Some code is duplicated, to run the test twice with absolute and
relative paths, so I factored it out in a few procs.  It uses
with_test_prefix to differentiate between test runs.

I replaced usages of "save-tracepoints" with "save tracepoint", since
the former is deprecated.

I also removed the "10.x", as it doesn't make much sense anymore.  It
isn't used in general in the testsuite, and I don't think it's really
useful.

gdb/testsuite/ChangeLog:

* save-trace.exp: Factor out code to these...
(gdb_save_tracepoints): New.
(gdb_load_tracepoints): New.
(do_save_load_test): New.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.trace/save-trace.exp