gdb/testsuite/gdb.trace: Deduplicate set_point assembly.
authorMarcin Kościelnicki <koriakin@0x04.net>
Tue, 10 Nov 2015 11:12:00 +0000 (12:12 +0100)
committerMarcin Kościelnicki <koriakin@0x04.net>
Wed, 11 Nov 2015 20:44:04 +0000 (21:44 +0100)
commit430e004ef7ecb3f75fc3c6642c9fdfb1d85a3694
treeb2e394177479e5ed63088ef277a011122d9e89a3
parent4397c913d5640ba61316d3e631d544cf768b5a36
gdb/testsuite/gdb.trace: Deduplicate set_point assembly.

The assembly code for emitting the proper tracepointable instruction
was duplicated in many places.  Keep it in one place, to reduce work
needed for new targets.

gdb/testsuite/ChangeLog:

* gdb.trace/change-loc.h: include "trace-common.h", remove SYMBOL
macro.
(func5): Removed.
(func4): Use FAST_TRACEPOINT_LABEL.
* gdb.trace/ftrace-lock.c: include "trace-common.h", remove SYMBOL
macro.
(func): Removed.
(thread_function): Use FAST_TRACEPOINT_LABEL.
* gdb.trace/ftrace.c: include "trace-common.h", remove SYMBOL macro.
(func): Remove.
(marker): Use FAST_TRACEPOINT_LABEL.
* gdb.trace/pendshr1.c: include "trace-common.h", remove SYMBOL macro.
(pendfunc1): Remove.
(pendfunc): Use FAST_TRACEPOINT_LABEL.
* gdb.trace/pendshr2.c: include "trace-common.h", remove SYMBOL macro.
(foo): Remove.
(pendfunc2): Use FAST_TRACEPOINT_LABEL.
* gdb.trace/trace-break.c: include "trace-common.h", remove SYMBOL
macro.
(func): Remove.
(marker): Use FAST_TRACEPOINT_LABEL.
* gdb.trace/trace-common.h: New header.
* gdb.trace/trace-condition.c: include "trace-common.h", remove SYMBOL
macro.
(func): Remove.
(marker): Use FAST_TRACEPOINT_LABEL.
* gdb.trace/trace-mt.c: include "trace-common.h", remove SYMBOL macro.
(func): Remove.
(thread_function): Use FAST_TRACEPOINT_LABEL.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.trace/change-loc.h
gdb/testsuite/gdb.trace/ftrace-lock.c
gdb/testsuite/gdb.trace/ftrace.c
gdb/testsuite/gdb.trace/pendshr1.c
gdb/testsuite/gdb.trace/pendshr2.c
gdb/testsuite/gdb.trace/trace-break.c
gdb/testsuite/gdb.trace/trace-common.h [new file with mode: 0644]
gdb/testsuite/gdb.trace/trace-condition.c
gdb/testsuite/gdb.trace/trace-mt.c