]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
testsuite: add m32 board files
authorMarkus Metzger <markus.t.metzger@intel.com>
Tue, 26 Nov 2019 09:09:18 +0000 (10:09 +0100)
committerMarkus Metzger <markus.t.metzger@intel.com>
Tue, 17 Dec 2019 15:04:40 +0000 (16:04 +0100)
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

gdb/testsuite/boards/m32.exp [new file with mode: 0644]
gdb/testsuite/boards/native-gdbserver-m32.exp [new file with mode: 0644]
gdb/testsuite/boards/native-m32.exp [new file with mode: 0644]

diff --git a/gdb/testsuite/boards/m32.exp b/gdb/testsuite/boards/m32.exp
new file mode 100644 (file)
index 0000000..8265e65
--- /dev/null
@@ -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 (file)
index 0000000..494f6df
--- /dev/null
@@ -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 (file)
index 0000000..66dc428
--- /dev/null
@@ -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]"