[gdb/testsuite] Handle my-syscalls.h for remote host
authorTom de Vries <tdevries@suse.de>
Sat, 18 Mar 2023 09:30:16 +0000 (10:30 +0100)
committerTom de Vries <tdevries@suse.de>
Sat, 18 Mar 2023 09:30:16 +0000 (10:30 +0100)
Handle $srcdir/lib/my-syscalls.h using lappend_include_dir.

Tested on x86_64-linux.

gdb/testsuite/gdb.threads/step-over-exec.c
gdb/testsuite/gdb.threads/step-over-exec.exp

index a917507c84a9d20430ddf990e51c8488668a26c0..927eb38cea72986c394e9fa95a0042c28b73af51 100644 (file)
@@ -21,7 +21,7 @@
 #include <string.h>
 #include <pthread.h>
 
-#include "../lib/my-syscalls.h"
+#include "my-syscalls.h"
 
 #if (!defined(LEADER_DOES_EXEC) && !defined(OTHER_DOES_EXEC) \
      || defined(LEADER_DOES_EXEC) && defined(OTHER_DOES_EXEC))
index e4817978aa94f5ae11f7a5a46f6e2505fdab89ed..04ccaef46d124b506a161ccb70210afff667c6ca 100644 (file)
@@ -46,6 +46,8 @@ proc do_test { execr_thread different_text_segments displaced_stepping } {
     set execr_opts [list debug]
     set execd_opts [list debug]
 
+    lappend_include_file execr_opts $::srcdir/lib/my-syscalls.h
+
     if { $different_text_segments } {
        lappend execr_opts "text_segment=0x600000"
        lappend execd_opts "text_segment=0x800000"