From aaeb6f00c6969e559d9b7f033b198aae47e27e51 Mon Sep 17 00:00:00 2001 From: Paul Floyd Date: Wed, 15 Jun 2022 07:06:25 +0200 Subject: [PATCH] Add an expected for FreeBSD gdbserver_tests/nlcontrolc --- README.freebsd | 2 ++ gdbserver_tests/Makefile.am | 1 + gdbserver_tests/nlcontrolc.stdoutB.exp-freebsd | 22 ++++++++++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 gdbserver_tests/nlcontrolc.stdoutB.exp-freebsd diff --git a/README.freebsd b/README.freebsd index f33ba2f9b..6aab37b8d 100644 --- a/README.freebsd +++ b/README.freebsd @@ -34,6 +34,8 @@ Known Limitations (June 2022) a) There may be missing source information concerning variables due to DWARF extensions ised by GCC. b) Code that uses OpenMP will generate spurious errors. +2. vgdb invoker, which uses ptrace, may cause system calls to be + interrupted. Notes for Developers ~~~~~~~~~~~~~~~~~~~~ diff --git a/gdbserver_tests/Makefile.am b/gdbserver_tests/Makefile.am index b47cfde10..fbcb6596d 100755 --- a/gdbserver_tests/Makefile.am +++ b/gdbserver_tests/Makefile.am @@ -113,6 +113,7 @@ EXTRA_DIST = \ nlcontrolc.stderr.exp \ nlcontrolc.stdinB.gdb \ nlcontrolc.stdoutB.exp \ + nlcontrolc.stdoutB.exp-freebsd \ nlcontrolc.vgtest \ nlfork_chain.stderr.exp \ nlfork_chain.stdout.exp \ diff --git a/gdbserver_tests/nlcontrolc.stdoutB.exp-freebsd b/gdbserver_tests/nlcontrolc.stdoutB.exp-freebsd new file mode 100644 index 000000000..4de07a757 --- /dev/null +++ b/gdbserver_tests/nlcontrolc.stdoutB.exp-freebsd @@ -0,0 +1,22 @@ +Continuing. +Program received signal SIGTRAP, Trace/breakpoint trap. +do_burn () at sleepers.c:40 +40 for (i = 0; i < burn; i++) loopnr++; + > > > > > > 1 + 3 +$1 = 0 +$2 = 1000000 +changed burning parameters to sleeping parameters +Continuing. +Program received signal SIGTRAP, Trace/breakpoint trap. +0x........ in syscall ... +* 1 Thread .... (tid 1 VgTs_WaitSys) 0x........ in syscall ... +$3 = 0 +reset to sleeping parameters +Continuing. +Program received signal SIGTRAP, Trace/breakpoint trap. +sleeper_or_burner (v=0x........) at sleepers.c:81 +81 for (i = 0; i < loops; i++) { +* 1 Thread .... (tid 1 VgTs_Runnable) 0x........ in sleeper_or_burner (v=0x........) at sleepers.c:81 + > > > > 3 +Kill the program being debugged? (y or n) [answered Y; input not from terminal] -- 2.11.4.GIT