From f2259ae756e56e5e88c0eb53d2138536a56c21aa Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Sat, 18 Mar 2023 10:16:30 +0100 Subject: [gdb/testsuite] Handle attributes.h for remote host Handle $srcdir/lib/attributes.h using lappend_include_dir. Tested on x86_64-linux. --- gdb/testsuite/gdb.python/tui-window-disabled.c | 2 +- gdb/testsuite/gdb.python/tui-window-disabled.exp | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'gdb/testsuite/gdb.python') diff --git a/gdb/testsuite/gdb.python/tui-window-disabled.c b/gdb/testsuite/gdb.python/tui-window-disabled.c index 833c6a3..111f7ad 100644 --- a/gdb/testsuite/gdb.python/tui-window-disabled.c +++ b/gdb/testsuite/gdb.python/tui-window-disabled.c @@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "../lib/attributes.h" +#include "attributes.h" volatile int val; diff --git a/gdb/testsuite/gdb.python/tui-window-disabled.exp b/gdb/testsuite/gdb.python/tui-window-disabled.exp index 57d41cd..b2beb77 100644 --- a/gdb/testsuite/gdb.python/tui-window-disabled.exp +++ b/gdb/testsuite/gdb.python/tui-window-disabled.exp @@ -27,7 +27,11 @@ tuiterm_env standard_testfile -if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} { +set flags {} +lappend flags debug +lappend_include_file flags $srcdir/lib/attributes.h + +if {[build_executable "failed to prepare" ${testfile} ${srcfile} $flags] == -1} { return -1 } -- cgit v1.1