* [pushed] [gdb/testsuite] Handle my-syscalls.h for remote host
@ 2023-03-18 9:30 Tom de Vries
0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2023-03-18 9:30 UTC (permalink / raw)
To: gdb-patches
Handle $srcdir/lib/my-syscalls.h using lappend_include_dir.
Tested on x86_64-linux.
---
gdb/testsuite/gdb.threads/step-over-exec.c | 2 +-
gdb/testsuite/gdb.threads/step-over-exec.exp | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/gdb/testsuite/gdb.threads/step-over-exec.c b/gdb/testsuite/gdb.threads/step-over-exec.c
index a917507c84a..927eb38cea7 100644
--- a/gdb/testsuite/gdb.threads/step-over-exec.c
+++ b/gdb/testsuite/gdb.threads/step-over-exec.c
@@ -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))
diff --git a/gdb/testsuite/gdb.threads/step-over-exec.exp b/gdb/testsuite/gdb.threads/step-over-exec.exp
index e4817978aa9..04ccaef46d1 100644
--- a/gdb/testsuite/gdb.threads/step-over-exec.exp
+++ b/gdb/testsuite/gdb.threads/step-over-exec.exp
@@ -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"
base-commit: f2259ae756e56e5e88c0eb53d2138536a56c21aa
--
2.35.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-18 9:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-18 9:30 [pushed] [gdb/testsuite] Handle my-syscalls.h for remote host Tom de Vries
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).