old-cross-binutils/gdb/testsuite/gdb.trace
Simon Marchi c93e8391bf Fix internal error when saving fast tracepoint definitions
When trying to save fast tracepoints to file, gdb returns internal failure:

  gdb/breakpoint.c:13446: internal-error: unhandled tracepoint type 27
  A problem internal to GDB has been detected, further debugging may prove unreliable.

And no file including the fast tracepoints definition is created.

The patch also extends save-trace.exp to test saving tracepoint with a
fast tracepoint in there.  Note that because this test doesn't actually
inserts the tracepoints in the program, we can run it with targets that
don't actually support fast tracepoints (or tracepoints at all).

gdb/ChangeLog:

	* breakpoint.c (tracepoint_print_recreate): Fix logic error
	if -> else if.

gdb/testsuite/ChangeLog:

	* gdb.trace/actions.c: Include trace-common.h.
	(main): Add a location for a fast tracepoint.
	* gdb.trace/save-trace.exp: Set a fast tracepoint in addition to
	the normal tracepoints.
	(gdb_verify_tracepoints): Adjust number of expected tracepoints.
2015-11-23 18:47:09 -05:00
..
actions-changed.c
actions-changed.exp
actions.c Fix internal error when saving fast tracepoint definitions 2015-11-23 18:47:09 -05:00
actions.exp
ax.exp
backtrace.exp gdb/testsuite/gdb.trace: Deduplicate pcreg/spreg/fpreg. 2015-11-10 20:05:49 +01:00
change-loc-1.c
change-loc-2.c
change-loc.c
change-loc.exp gdb/testsuite/gdb.trace: Deduplicate pcreg/spreg/fpreg. 2015-11-10 20:05:49 +01:00
change-loc.h gdb/testsuite/gdb.trace: Deduplicate set_point assembly. 2015-11-11 21:44:04 +01:00
circ.c
circ.exp
collection.c
collection.exp gdb/testsuite/gdb.trace: Deduplicate pcreg/spreg/fpreg. 2015-11-10 20:05:49 +01:00
deltrace.exp
disconnected-tracing.c
disconnected-tracing.exp
entry-values.c
entry-values.exp gdb/testsuite/gdb.trace: Deduplicate pcreg/spreg/fpreg. 2015-11-10 20:05:49 +01:00
ftrace-lock.c gdb/testsuite/gdb.trace: Deduplicate set_point assembly. 2015-11-11 21:44:04 +01:00
ftrace-lock.exp Add a test case for fast tracepoints' locking mechanism 2015-09-21 15:01:05 +01:00
ftrace.c gdb/testsuite/gdb.trace: Deduplicate set_point assembly. 2015-11-11 21:44:04 +01:00
ftrace.exp Enable fast tracepoint tests 2015-09-21 15:01:05 +01:00
infotrace.exp
Makefile.in
mi-trace-frame-collected.exp gdb/testsuite/gdb.trace: Deduplicate pcreg/spreg/fpreg. 2015-11-10 20:05:49 +01:00
mi-trace-unavailable.exp
mi-traceframe-changed.exp
mi-tracepoint-changed.exp
mi-tsv-changed.exp
no-attach-trace.c
no-attach-trace.exp
packetlen.exp
passc-dyn.exp
passcount.exp
pending.c
pending.exp gdb/testsuite/gdb.trace: Deduplicate pcreg/spreg/fpreg. 2015-11-10 20:05:49 +01:00
pendshr1.c gdb/testsuite/gdb.trace: Deduplicate set_point assembly. 2015-11-11 21:44:04 +01:00
pendshr2.c gdb/testsuite/gdb.trace: Deduplicate set_point assembly. 2015-11-11 21:44:04 +01:00
pr16508.exp
qtro.c
qtro.exp
range-stepping.c Enable fast tracepoint tests 2015-09-21 15:01:05 +01:00
range-stepping.exp Remove checking vCont;s in exec_cmd_expect_vCont_count 2015-10-21 16:16:25 +01:00
read-memory.c
read-memory.exp
report.exp gdb/testsuite/gdb.trace: Deduplicate pcreg/spreg/fpreg. 2015-11-10 20:05:49 +01:00
save-trace.exp Fix internal error when saving fast tracepoint definitions 2015-11-23 18:47:09 -05:00
stap-trace.c
stap-trace.exp
status-stop.c
status-stop.exp
strace.c
strace.exp
tfile.c
tfile.exp
tfind.exp
trace-break.c gdb/testsuite/gdb.trace: Deduplicate set_point assembly. 2015-11-11 21:44:04 +01:00
trace-break.exp gdb/testsuite/gdb.trace: Deduplicate pcreg/spreg/fpreg. 2015-11-10 20:05:49 +01:00
trace-buffer-size.c
trace-buffer-size.exp
trace-common.h gdb/testsuite/gdb.trace: Deduplicate set_point assembly. 2015-11-11 21:44:04 +01:00
trace-condition.c gdb/testsuite/gdb.trace: Deduplicate set_point assembly. 2015-11-11 21:44:04 +01:00
trace-condition.exp gdb/testsuite: Fix left shift of negative value. 2015-11-17 10:56:32 +01:00
trace-mt.c gdb/testsuite/gdb.trace: Deduplicate set_point assembly. 2015-11-11 21:44:04 +01:00
trace-mt.exp
trace-unavailable.c
tracecmd.exp
tspeed.c
tspeed.exp
tstatus.exp
tsv.exp
unavailable-dwarf-piece.c
unavailable-dwarf-piece.exp
unavailable.cc
unavailable.exp gdb/testsuite/gdb.trace: Deduplicate pcreg/spreg/fpreg. 2015-11-10 20:05:49 +01:00
while-dyn.exp gdb/testsuite/gdb.trace: Deduplicate pcreg/spreg/fpreg. 2015-11-10 20:05:49 +01:00
while-stepping.exp