From: Markus Metzger Date: Tue, 26 Nov 2019 09:09:18 +0000 (+0100) Subject: testsuite: add m32 board files X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db18e24c4999bb6e07d510011c5d37225de96f0b;p=thirdparty%2Fbinutils-gdb.git testsuite: add m32 board files Add board files for running tests with 32-bit inferiors on 64-bit kernels. Signed-off-by: Markus Metzger gdb/testsuite/ * boards/m32.exp: New. * boards/native-m32.exp: New. * boards/native-gdbserver-m32.exp: New. Change-Id: I998416e7e431529238b8ebe5ecfd8dee2e0d9e81 --- diff --git a/gdb/testsuite/boards/m32.exp b/gdb/testsuite/boards/m32.exp new file mode 100644 index 00000000000..8265e65da4b --- /dev/null +++ b/gdb/testsuite/boards/m32.exp @@ -0,0 +1,17 @@ +# Copyright 2019 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +set_board_info cflags "-m32" +set_board_info cppflags "-m32" diff --git a/gdb/testsuite/boards/native-gdbserver-m32.exp b/gdb/testsuite/boards/native-gdbserver-m32.exp new file mode 100644 index 00000000000..494f6df774e --- /dev/null +++ b/gdb/testsuite/boards/native-gdbserver-m32.exp @@ -0,0 +1,24 @@ +# Copyright 2019 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# This file is a dejagnu "board file" and is used to run the testsuite +# natively with gdbserver using 32-bit inferiors on 64-bit kernels. +# +# To use this file: +# bash$ cd ${build_dir}/gdb +# bash$ make check RUNTESTFLAGS="--target_board=native-gdbserver-m32" + +load_board_description "native-gdbserver" +load_board_description "m32" diff --git a/gdb/testsuite/boards/native-m32.exp b/gdb/testsuite/boards/native-m32.exp new file mode 100644 index 00000000000..66dc4280254 --- /dev/null +++ b/gdb/testsuite/boards/native-m32.exp @@ -0,0 +1,27 @@ +# Copyright 2019 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# This file is a dejagnu "board file" and is used to run the testsuite +# natively using 32-bit inferiors on 64-bit kernels. +# +# To use this file: +# bash$ cd ${build_dir}/gdb +# bash$ make check RUNTESTFLAGS="--target_board=native-m32" + +load_board_description "local-board" +load_board_description "m32" + +# The default compiler for this target. +set_board_info compiler "[find_gcc]"