diff options
author | George Barrett <bob@bob131.so> | 2020-01-11 06:30:01 +1100 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-01-10 14:57:35 -0500 |
commit | 47e9d49d2d795224f4b3f04c89c268627b850be4 (patch) | |
tree | 884f14b0f2b79d843eb5bb78d106d5c7fd6c3df5 /gdb/testsuite/gdb.base/stap-probe.c | |
parent | 7f02673206eaef00f240b84c21069b4e5fbe09ea (diff) | |
download | binutils-gdb-47e9d49d2d795224f4b3f04c89c268627b850be4.tar.gz |
gdb/testsuite/gdb.base/stap-probe: Minor clean-up
This patch resolves a couple of issues with the test case for SystemTap
user-space probe points:
1. The preprocessor macro guarding the semaphore variables in the C
file is (rather confusingly) named USE_PROBES. This has been
renamed to USE_SEMAPHORES, to better reflect its function.
2. The test procedures in the expect file improperly pass the flag
defining USE_PROBES to prepare_for_testing; as such, the test
binary that's supposed to have probes with semaphores is the same
as the one without. This has also been fixed.
3. No test is performed to check that `info probes' returns
information about probe semaphores. Such a test is included in this
patch.
gdb/testsuite/ChangeLog
2020-01-10 George Barrett <bob@bob131.so>
* gdb.base/stap-probe.c: Rename USE_PROBES to USE_SEMAPHORES.
* gdb.base/stap-probe.exp: Likewise.
(stap_test): Pass argument as an additional flag.
(stap_test_no_debuginfo): Likewise.
(stap_test): Check `info probes stap' output for semaphore
addresses if the test binary is supposed to have them.
Diffstat (limited to 'gdb/testsuite/gdb.base/stap-probe.c')
-rw-r--r-- | gdb/testsuite/gdb.base/stap-probe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/stap-probe.c b/gdb/testsuite/gdb.base/stap-probe.c index f79e9e1cb33..3d742d1253e 100644 --- a/gdb/testsuite/gdb.base/stap-probe.c +++ b/gdb/testsuite/gdb.base/stap-probe.c @@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#if USE_PROBES +#if USE_SEMAPHORES #define _SDT_HAS_SEMAPHORES __extension__ unsigned short test_user_semaphore __attribute__ ((unused)) __attribute__ ((section (".probes"))); |