Compile gdb.perf/skip-prologue.c with and without debug info
authorYao Qi <yao.qi@linaro.org>
Fri, 9 Dec 2016 09:51:20 +0000 (09:51 +0000)
committerYao Qi <yao.qi@linaro.org>
Fri, 9 Dec 2016 09:51:20 +0000 (09:51 +0000)
commit364ca42e71dfdce3f34e97ef028f7e3d5b5d880e
tree978ba42fe1a4cd25a7d7776cb2b67f5abe4cae69
parentc752a4cccb99ba73f51eff74b394dcdcd26d4c59
Compile gdb.perf/skip-prologue.c with and without debug info

gdb.perf/skip-prologue.exp is intended to measure the performance of
skipping prologue with prologue analysis by setting breakpoints.
However, if program is compiled with debug info, GDB is smart to
skip prologue by line table from debug info, so prologue analysis
is not exercised at all.

This patch adds a parameter COMPILE to specify compiling with
debug information, otherwise, it is compiled without debug
information.

gdb/testsuite:

2016-12-09  Yao Qi  <yao.qi@linaro.org>

* gdb.perf/skip-prologue.exp: Add parameter COMPILE.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.perf/skip-prologue.exp