diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2019-11-26 10:09:18 +0100 |
---|---|---|
committer | Markus Metzger <markus.t.metzger@intel.com> | 2019-12-17 16:04:40 +0100 |
commit | db18e24c4999bb6e07d510011c5d37225de96f0b (patch) | |
tree | 88df73ea38aa46c1fbd1b19bca15f06dd5e06c38 | |
parent | 03bad9e43d43bc7382e9487142ee4fa988bc5576 (diff) | |
download | fsf-binutils-gdb-db18e24c4999bb6e07d510011c5d37225de96f0b.zip fsf-binutils-gdb-db18e24c4999bb6e07d510011c5d37225de96f0b.tar.gz fsf-binutils-gdb-db18e24c4999bb6e07d510011c5d37225de96f0b.tar.bz2 |
testsuite: add m32 board files
Add board files for running tests with 32-bit inferiors on 64-bit kernels.
Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
gdb/testsuite/
* boards/m32.exp: New.
* boards/native-m32.exp: New.
* boards/native-gdbserver-m32.exp: New.
Change-Id: I998416e7e431529238b8ebe5ecfd8dee2e0d9e81
-rw-r--r-- | gdb/testsuite/boards/m32.exp | 17 | ||||
-rw-r--r-- | gdb/testsuite/boards/native-gdbserver-m32.exp | 24 | ||||
-rw-r--r-- | gdb/testsuite/boards/native-m32.exp | 27 |
3 files changed, 68 insertions, 0 deletions
diff --git a/gdb/testsuite/boards/m32.exp b/gdb/testsuite/boards/m32.exp new file mode 100644 index 0000000..8265e65 --- /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 <http://www.gnu.org/licenses/>. + +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 0000000..494f6df --- /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 <http://www.gnu.org/licenses/>. + +# 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 0000000..66dc428 --- /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 <http://www.gnu.org/licenses/>. + +# 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]" |