jjb: binutils-gdb: use ccache
[lttng-ci.git] / scripts / binutils-gdb / build.sh
CommitLineData
91ba8aa1
MJ
1#!/bin/bash
2#
3# Copyright (C) 2021 Michael Jeanson <mjeanson@efficios.com>
4#
5# This program is free software: you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation, either version 3 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18set -exu
19
20failed_configure() {
21 # Assume we are in the configured build directory
22 echo "#################### BEGIN config.log ####################"
23 cat config.log
24 echo "#################### END config.log ####################"
25 exit 1
26}
27
28sum2junit() {
29 local infile="$1"
30 local outfile="$2"
31
bcd0bdf1
SM
32cat <<EOF > sum2junit.py
33import sys
34from datetime import datetime
35import re
36from xml.etree.ElementTree import ElementTree, Element, SubElement
37
38line_re = re.compile(
39 r"^(PASS|XPASS|FAIL|XFAIL|KFAIL|DUPLICATE|UNTESTED|UNSUPPORTED|UNRESOLVED): (.*?\.exp): (.*)"
40)
41
42pass_count = 0
43fail_count = 0
44skip_count = 0
45error_count = 0
46now = datetime.now().isoformat(timespec="seconds")
47
48testsuites = Element(
49 "testsuites",
50 {
51 "xmlns": "https://raw.githubusercontent.com/windyroad/JUnit-Schema/master/JUnit.xsd"
52 },
53)
54testsuite = SubElement(
55 testsuites,
56 "testsuite",
57 {
58 "name": "GDB",
59 "package": "package",
60 "id": "0",
61 "time": "1",
62 "timestamp": now,
63 "hostname": "hostname",
64 },
65)
66SubElement(testsuite, "properties")
67
68for line in sys.stdin:
69 m = line_re.match(line)
70 if not m:
71 continue
72
73 state, exp_filename, test_name = m.groups()
74
75 testcase_name = "{} - {}".format(exp_filename, test_name)
76
77 testcase = SubElement(
78 testsuite,
79 "testcase",
80 {"name": testcase_name, "classname": "classname", "time": "0"},
81 )
82
83 if state in ("PASS", "XFAIL", "KFAIL"):
84 pass_count += 1
85 elif state in ("FAIL", "XPASS"):
6e30c08a 86 print("{}: {}".format(state, testcase_name), file=sys.stderr)
bcd0bdf1
SM
87 fail_count += 1
88 SubElement(testcase, "failure", {"type": state})
89 elif state in ("UNRESOLVED", "DUPLICATE"):
6e30c08a 90 print("{}: {}".format(state, testcase_name), file=sys.stderr)
bcd0bdf1
SM
91 error_count += 1
92 SubElement(testcase, "error", {"type": state})
93 elif state in ("UNTESTED", "UNSUPPORTED"):
94 skip_count += 1
95 SubElement(testcase, "skipped")
96 else:
97 assert False
98
99testsuite.attrib["tests"] = str(pass_count + fail_count + skip_count)
100testsuite.attrib["failures"] = str(fail_count)
101testsuite.attrib["skipped"] = str(skip_count)
102testsuite.attrib["errors"] = str(error_count)
103
104SubElement(testsuite, "system-out")
105SubElement(testsuite, "system-err")
106
107et = ElementTree(testsuites)
108et.write(sys.stdout, encoding="unicode")
109
110sys.exit(1 if fail_count > 0 or error_count > 0 else 0)
91ba8aa1
MJ
111EOF
112
bcd0bdf1 113 python3 sum2junit.py < "$infile" > "$outfile"
91ba8aa1
MJ
114}
115
116# Required variables
117WORKSPACE=${WORKSPACE:-}
118
e901a9db 119platform=${platform:-}
91ba8aa1
MJ
120conf=${conf:-}
121build=${build:-}
748dd275 122target_board=${target_board:-unix}
91ba8aa1
MJ
123
124
125SRCDIR="$WORKSPACE/src/binutils-gdb"
126TMPDIR="$WORKSPACE/tmp"
127PREFIX="/build"
128
129# Create tmp directory
130rm -rf "$TMPDIR"
131mkdir -p "$TMPDIR"
132
133export TMPDIR
134export CFLAGS="-O2 -fsanitize=address"
135export CXXFLAGS="-O2 -fsanitize=address -D_GLIBCXX_DEBUG=1"
136export LDFLAGS="-fsanitize=address"
83068918
SM
137export CC="ccache cc"
138export CXX="ccache c++"
91ba8aa1
MJ
139
140# Set platform variables
e901a9db 141case "$platform" in
91ba8aa1
MJ
142*)
143 export MAKE=make
144 export TAR=tar
145 export NPROC=nproc
146 ;;
147esac
148
149# Print build env details
150print_os || true
151print_tooling || true
152
83068918
SM
153if use_ccache; then
154 ccache -c
155fi
156
91ba8aa1
MJ
157# Enter the source directory
158cd "$SRCDIR"
159
160# Run bootstrap in the source directory prior to configure
161#./bootstrap
162
163# Get source version from configure script
164#eval "$(grep '^PACKAGE_VERSION=' ./configure)"
165#PACKAGE_VERSION=${PACKAGE_VERSION//\-pre*/}
166
167# Set configure options and environment variables for each build
168# configuration.
169CONF_OPTS=("--prefix=$PREFIX")
170
171case "$conf" in
172*)
173 echo "Standard configuration"
174
175 # Use system tools
1c76805c 176 CONF_OPTS+=("--disable-binutils" "--disable-ld" "--disable-gold" "--disable-gas" "--disable-sim" "--disable-gprof" "--disable-gprofng")
91ba8aa1
MJ
177
178 # Use system libs
179 CONF_OPTS+=("--with-system-readline" "--with-system-zlib")
180
181 # Enable optional features
6549901d 182 CONF_OPTS+=("--enable-targets=all" "--with-expat=yes" "--with-python=python3" "--with-guile" "--enable-libctf")
91ba8aa1 183
b91b655f 184 CONF_OPTS+=("--enable-build-warnings" "--enable-gdb-build-warnings" "--enable-unit-tests" "--enable-ubsan")
91ba8aa1
MJ
185
186 ;;
187esac
188
189# Build type
190# oot : out-of-tree build
191# dist : build via make dist
192# oot-dist: build via make dist out-of-tree
193# * : normal tree build
194#
195# Make sure to move to the build directory and run configure
196# before continuing.
197case "$build" in
198*)
199 echo "Out of tree build"
200
201 # Create and enter a temporary build directory
202 builddir=$(mktemp -d)
203 cd "$builddir"
204
205 "$SRCDIR/configure" "${CONF_OPTS[@]}" || failed_configure
206 ;;
207esac
208
209# We are now inside a configured build directory
210
211# BUILD!
212$MAKE -j "$($NPROC)" V=1 MAKEINFO=/bin/true
213
214# Install in the workspace
215$MAKE install DESTDIR="$WORKSPACE"
216
748dd275
SM
217case "$target_board" in
218unix | native-gdbserver | native-extended-gdbserver)
219 RUNTESTFLAGS="--target_board=$target_board"
220 ;;
221
222*)
223 echo "Unknown \$target_board value: $target_board"
224 exit 1
225 ;;
226esac
227
bcd0bdf1
SM
228# Run tests, don't fail now, we know that "make check" is going to fail,
229# since some tests don't pass.
748dd275 230$MAKE -C gdb --keep-going check -j "$($NPROC)" RUNTESTFLAGS="$RUNTESTFLAGS" FORCE_PARALLEL="1" || true
91ba8aa1
MJ
231
232# Copy the dejagnu test results for archiving before cleaning the build dir
233mkdir "${WORKSPACE}/results"
f5dbc8e5 234cp gdb/testsuite/gdb.log "${WORKSPACE}/results/"
91ba8aa1 235cp gdb/testsuite/gdb.sum "${WORKSPACE}/results/"
bcd0bdf1 236
748dd275
SM
237# Filter out some known failures. There is one file per target board.
238cat <<'EOF' > known-failures-unix
d05fa6f1
SM
239FAIL: gdb.ada/mi_var_access.exp: Create varobj (unexpected output)
240FAIL: gdb.ada/mi_var_access.exp: update at stop 2 (unexpected output)
241FAIL: gdb.ada/packed_array_assign.exp: value of pra
795db243
SM
242FAIL: gdb.base/bt-on-fatal-signal.exp: BUS: $saw_bt_end
243FAIL: gdb.base/bt-on-fatal-signal.exp: BUS: $saw_bt_start
244FAIL: gdb.base/bt-on-fatal-signal.exp: BUS: $saw_fatal_msg
245FAIL: gdb.base/bt-on-fatal-signal.exp: BUS: [expr $internal_error_msg_count == 2]
246FAIL: gdb.base/bt-on-fatal-signal.exp: FPE: $saw_bt_end
247FAIL: gdb.base/bt-on-fatal-signal.exp: FPE: $saw_bt_start
248FAIL: gdb.base/bt-on-fatal-signal.exp: FPE: $saw_fatal_msg
249FAIL: gdb.base/bt-on-fatal-signal.exp: FPE: [expr $internal_error_msg_count == 2]
250FAIL: gdb.base/bt-on-fatal-signal.exp: SEGV: $saw_bt_end
251FAIL: gdb.base/bt-on-fatal-signal.exp: SEGV: $saw_bt_start
252FAIL: gdb.base/bt-on-fatal-signal.exp: SEGV: $saw_fatal_msg
253FAIL: gdb.base/bt-on-fatal-signal.exp: SEGV: [expr $internal_error_msg_count == 2]
d05fa6f1
SM
254FAIL: gdb.base/coredump-filter.exp: loading and testing corefile for non-Private-Shared-Anon-File: no binary: disassemble function with corefile and without a binary
255FAIL: gdb.base/ending-run.exp: step out of main
256FAIL: gdb.base/ending-run.exp: step to end of run
257FAIL: gdb.base/gdb-sigterm.exp: pass=16: expect eof (GDB internal error)
795db243 258FAIL: gdb.base/share-env-with-gdbserver.exp: strange named var: print result of getenv for 'asd ='
d05fa6f1
SM
259FAIL: gdb.base/step-over-syscall.exp: clone: displaced=off: single step over clone
260FAIL: gdb.compile/compile-cplus.exp: bt
261FAIL: gdb.compile/compile-cplus.exp: compile code extern int globalshadow; globalshadow += 5;
262FAIL: gdb.compile/compile-cplus.exp: print 'compile-cplus.c'::globalshadow
263FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var ()
264FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var ()
265FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var (static_cast<unsigned long> (1))
266FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var (static_cast<unsigned long> (1))
267FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var (static_cast<int> (1))
268FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var (static_cast<int> (1))
269FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var (static_cast<float> (1))
270FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var (static_cast<float> (1))
271FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var (static_cast<void *> (a))
272FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var (static_cast<void *> (a))
273FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var (*a)
274FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var (*a)
275FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var (*ac)
276FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var (*ac)
277FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var1 (1)
278FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var1 (1)
279FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var2 (1, 2)
280FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var2 (1, 2)
281FAIL: gdb.compile/compile-cplus-method.exp: compile code A::get_1 (a->get_var ())
282FAIL: gdb.compile/compile-cplus-method.exp: result of compile code A::get_1 (a->get_var ())
283FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var1 (a->get_var () - 16)
284FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var1 (a->get_var () - 16)
285FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var2 (a->get_var (), A::get_1 (2))
286FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var2 (a->get_var (), A::get_1 (2))
287FAIL: gdb.compile/compile-cplus-method.exp: compile code get_value (a)
288FAIL: gdb.compile/compile-cplus-method.exp: result of compile code get_value (a)
289FAIL: gdb.compile/compile-cplus-method.exp: compile code (a->*pmf) (1)
290FAIL: gdb.compile/compile-cplus-method.exp: result of compile code (a->*pmf) (1)
291FAIL: gdb.compile/compile-cplus-method.exp: compile code pmf = &A::get_var1; var = (a->*pmf) (2); pmf = &A::get_var
292FAIL: gdb.compile/compile-cplus-method.exp: result of compile code pmf = &A::get_var1; var = (a->*pmf) (2); pmf = &A::get_var
293FAIL: gdb.compile/compile-cplus-method.exp: compile code (a->**pmf_p) (1)
294FAIL: gdb.compile/compile-cplus-method.exp: result of compile code (a->**pmf_p) (1)
295FAIL: gdb.compile/compile-cplus-virtual.exp: compile code ap->doit ()
296FAIL: gdb.compile/compile-cplus-virtual.exp: compile code ap->doit2 ()
812328f9 297FAIL: gdb.cp/no-dmgl-verbose.exp: gdb_breakpoint: set breakpoint at 'f(std::string)'
d05fa6f1
SM
298FAIL: gdb.cp/step-and-next-inline.exp: no_header: next step 1
299FAIL: gdb.cp/step-and-next-inline.exp: no_header: next step 2
300FAIL: gdb.cp/step-and-next-inline.exp: no_header: next step 3
301FAIL: gdb.cp/step-and-next-inline.exp: no_header: next step 4
795db243 302FAIL: gdb.gdb/python-interrupts.exp: run until breakpoint at captured_command_loop
d05fa6f1
SM
303FAIL: gdb.mi/list-thread-groups-available.exp: list available thread groups with filter (unexpected output)
304FAIL: gdb.threads/attach-stopped.exp: threaded: attach2 to stopped bt
305FAIL: gdb.threads/clone-attach-detach.exp: bg attach 2: attach (timeout)
306FAIL: gdb.threads/process-dies-while-detaching.exp: single-process: continue: detach: continue
307FAIL: gdb.threads/process-dies-while-detaching.exp: single-process: continue: killed outside: continue
308FAIL: gdb.threads/process-dies-while-detaching.exp: single-process: continue: watchpoint:hw: continue
309FAIL: gdb.threads/signal-command-handle-nopass.exp: step-over no: signal SIGUSR1
310FAIL: gdb.threads/signal-command-handle-nopass.exp: step-over yes: signal SIGUSR1
311FAIL: gdb.threads/signal-sigtrap.exp: sigtrap thread 1: signal SIGTRAP reaches handler
312FAIL: gdb.threads/signal-while-stepping-over-bp-other-thread.exp: step (pattern 3)
313UNRESOLVED: gdb.ada/arrayptr.exp: scenario=all: gdb_breakpoint: set breakpoint at foo.adb:40
314UNRESOLVED: gdb.ada/arrayptr.exp: scenario=all: runto: run to foo.adb:40 (eof)
315UNRESOLVED: gdb.ada/arrayptr.exp: scenario=all: gdb_breakpoint: set breakpoint at foo.adb:40 (eof)
316UNRESOLVED: gdb.ada/exprs.exp: gdb_breakpoint: set breakpoint at p.adb:40
317UNRESOLVED: gdb.ada/exprs.exp: runto: run to p.adb:40 (eof)
318UNRESOLVED: gdb.ada/exprs.exp: Long_Long_Integer ** Y
319UNRESOLVED: gdb.ada/exprs.exp: long_float'min
320UNRESOLVED: gdb.ada/exprs.exp: long_float'max
321UNRESOLVED: gdb.ada/exprs.exp: gdb_breakpoint: set breakpoint at p.adb:40 (eof)
322UNRESOLVED: gdb.ada/packed_array_assign.exp: gdb_breakpoint: set breakpoint at aggregates.run_test
323UNRESOLVED: gdb.ada/packed_array_assign.exp: runto: run to aggregates.run_test (eof)
324UNRESOLVED: gdb.ada/packed_array_assign.exp: gdb_breakpoint: set breakpoint at aggregates.run_test (eof)
325UNRESOLVED: gdb.ada/packed_array_assign.exp: value of pra
326UNRESOLVED: gdb.ada/packed_array_assign.exp: print pra(1) := pr
327UNRESOLVED: gdb.ada/packed_array_assign.exp: print pra(1)
328UNRESOLVED: gdb.ada/packed_array_assign.exp: value of npr
329UNRESOLVED: gdb.base/gdb-sigterm.exp: 50 SIGTERM passes
795db243 330UNRESOLVED: gdb.base/readline-ask.exp: bell for more message
d05fa6f1
SM
331UNRESOLVED: gdb.python/py-disasm.exp: global_disassembler=GlobalPreInfoDisassembler: disassemble main
332EOF
333
334cat <<'EOF' > known-failures-re-unix
335FAIL: gdb.base/gdb-sigterm.exp: pass=[0-9]+: expect eof \(GDB internal error\)
336FAIL: gdb.threads/step-N-all-progress.exp: non-stop=on: target-non-stop=on: next .*
795db243
SM
337EOF
338
748dd275 339cat <<'EOF' > known-failures-native-gdbserver
748dd275
SM
340DUPLICATE: gdb.base/cond-eval-mode.exp: awatch: awatch global
341DUPLICATE: gdb.base/cond-eval-mode.exp: awatch: continue
342DUPLICATE: gdb.base/cond-eval-mode.exp: break: break foo
343DUPLICATE: gdb.base/cond-eval-mode.exp: break: continue
344DUPLICATE: gdb.base/cond-eval-mode.exp: hbreak: continue
345DUPLICATE: gdb.base/cond-eval-mode.exp: hbreak: hbreak foo
346DUPLICATE: gdb.base/cond-eval-mode.exp: rwatch: continue
347DUPLICATE: gdb.base/cond-eval-mode.exp: rwatch: rwatch global
348DUPLICATE: gdb.base/cond-eval-mode.exp: watch: continue
349DUPLICATE: gdb.base/cond-eval-mode.exp: watch: watch global
748dd275
SM
350DUPLICATE: gdb.trace/circ.exp: check whether setting trace buffer size is supported
351DUPLICATE: gdb.trace/ftrace-lock.exp: successfully compiled posix threads test case
352DUPLICATE: gdb.trace/mi-tsv-changed.exp: create delete modify: tvariable $tvar3 modified
353DUPLICATE: gdb.trace/signal.exp: get integer valueof "counter"
354DUPLICATE: gdb.trace/status-stop.exp: buffer_full_tstart: tstart
355DUPLICATE: gdb.trace/status-stop.exp: tstart_tstop_tstart: tstart
356DUPLICATE: gdb.trace/tfind.exp: 8.17: tfind none
357DUPLICATE: gdb.trace/trace-buffer-size.exp: set tracepoint at test_function
358DUPLICATE: gdb.trace/trace-buffer-size.exp: tstart
359DUPLICATE: gdb.trace/trace-mt.exp: successfully compiled posix threads test case
d05fa6f1
SM
360FAIL: gdb.ada/mi_var_access.exp: Create varobj (unexpected output)
361FAIL: gdb.ada/mi_var_access.exp: update at stop 2 (unexpected output)
362FAIL: gdb.ada/packed_array_assign.exp: value of pra
363FAIL: gdb.arch/ftrace-insn-reloc.exp: runto: run to main
748dd275
SM
364FAIL: gdb.base/bt-on-fatal-signal.exp: BUS: $saw_bt_end
365FAIL: gdb.base/bt-on-fatal-signal.exp: BUS: $saw_bt_start
366FAIL: gdb.base/bt-on-fatal-signal.exp: BUS: $saw_fatal_msg
367FAIL: gdb.base/bt-on-fatal-signal.exp: BUS: [expr $internal_error_msg_count == 2]
368FAIL: gdb.base/bt-on-fatal-signal.exp: FPE: $saw_bt_end
369FAIL: gdb.base/bt-on-fatal-signal.exp: FPE: $saw_bt_start
370FAIL: gdb.base/bt-on-fatal-signal.exp: FPE: $saw_fatal_msg
371FAIL: gdb.base/bt-on-fatal-signal.exp: FPE: [expr $internal_error_msg_count == 2]
372FAIL: gdb.base/bt-on-fatal-signal.exp: SEGV: $saw_bt_end
373FAIL: gdb.base/bt-on-fatal-signal.exp: SEGV: $saw_bt_start
374FAIL: gdb.base/bt-on-fatal-signal.exp: SEGV: $saw_fatal_msg
375FAIL: gdb.base/bt-on-fatal-signal.exp: SEGV: [expr $internal_error_msg_count == 2]
376FAIL: gdb.base/compare-sections.exp: after reload: compare-sections
377FAIL: gdb.base/compare-sections.exp: after reload: compare-sections -r
378FAIL: gdb.base/compare-sections.exp: after run to main: compare-sections
379FAIL: gdb.base/compare-sections.exp: after run to main: compare-sections -r
380FAIL: gdb.base/compare-sections.exp: compare-sections .text
381FAIL: gdb.base/compare-sections.exp: read-only: compare-sections -r
d05fa6f1
SM
382FAIL: gdb.base/coredump-filter.exp: loading and testing corefile for non-Private-Shared-Anon-File: no binary: disassemble function with corefile and without a binary
383FAIL: gdb.base/ending-run.exp: step out of main
384FAIL: gdb.base/ending-run.exp: step to end of run
748dd275
SM
385FAIL: gdb.base/interrupt-daemon.exp: bg: continue& (timeout)
386FAIL: gdb.base/interrupt-daemon.exp: bg: interrupt cmd stops process (timeout)
387FAIL: gdb.base/interrupt-daemon.exp: bg: interrupt (timeout)
388FAIL: gdb.base/interrupt-daemon.exp: fg: ctrl-c stops process (timeout)
d05fa6f1
SM
389FAIL: gdb.base/options.exp: test-backtrace: cmd complete "backtrace "
390FAIL: gdb.base/options.exp: test-backtrace: tab complete "backtrace " (clearing input line) (timeout)
391FAIL: gdb.base/range-stepping.exp: step over func: next: vCont;r=2
392FAIL: gdb.compile/compile-cplus.exp: bt
393FAIL: gdb.compile/compile-cplus.exp: compile code extern int globalshadow; globalshadow += 5;
394FAIL: gdb.compile/compile-cplus.exp: print 'compile-cplus.c'::globalshadow
395FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var ()
396FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var ()
397FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var (static_cast<unsigned long> (1))
398FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var (static_cast<unsigned long> (1))
399FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var (static_cast<int> (1))
400FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var (static_cast<int> (1))
401FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var (static_cast<float> (1))
402FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var (static_cast<float> (1))
403FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var (static_cast<void *> (a))
404FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var (static_cast<void *> (a))
405FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var (*a)
406FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var (*a)
407FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var (*ac)
408FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var (*ac)
409FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var1 (1)
410FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var1 (1)
411FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var2 (1, 2)
412FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var2 (1, 2)
413FAIL: gdb.compile/compile-cplus-method.exp: compile code A::get_1 (a->get_var ())
414FAIL: gdb.compile/compile-cplus-method.exp: result of compile code A::get_1 (a->get_var ())
415FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var1 (a->get_var () - 16)
416FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var1 (a->get_var () - 16)
417FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var2 (a->get_var (), A::get_1 (2))
418FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var2 (a->get_var (), A::get_1 (2))
419FAIL: gdb.compile/compile-cplus-method.exp: compile code get_value (a)
420FAIL: gdb.compile/compile-cplus-method.exp: result of compile code get_value (a)
421FAIL: gdb.compile/compile-cplus-method.exp: compile code (a->*pmf) (1)
422FAIL: gdb.compile/compile-cplus-method.exp: result of compile code (a->*pmf) (1)
423FAIL: gdb.compile/compile-cplus-method.exp: compile code pmf = &A::get_var1; var = (a->*pmf) (2); pmf = &A::get_var
424FAIL: gdb.compile/compile-cplus-method.exp: result of compile code pmf = &A::get_var1; var = (a->*pmf) (2); pmf = &A::get_var
425FAIL: gdb.compile/compile-cplus-method.exp: compile code (a->**pmf_p) (1)
426FAIL: gdb.compile/compile-cplus-method.exp: result of compile code (a->**pmf_p) (1)
427FAIL: gdb.compile/compile-cplus-virtual.exp: compile code ap->doit ()
428FAIL: gdb.compile/compile-cplus-virtual.exp: compile code ap->doit2 ()
812328f9 429FAIL: gdb.cp/no-dmgl-verbose.exp: gdb_breakpoint: set breakpoint at 'f(std::string)'
d05fa6f1
SM
430FAIL: gdb.cp/step-and-next-inline.exp: no_header: next step 1
431FAIL: gdb.cp/step-and-next-inline.exp: no_header: next step 2
432FAIL: gdb.cp/step-and-next-inline.exp: no_header: next step 3
433FAIL: gdb.cp/step-and-next-inline.exp: no_header: next step 4
434FAIL: gdb.dwarf2/clztest.exp: runto: run to main
748dd275
SM
435FAIL: gdb.threads/multiple-successive-infcall.exp: thread=3: created new thread
436FAIL: gdb.threads/multiple-successive-infcall.exp: thread=4: created new thread
437FAIL: gdb.threads/multiple-successive-infcall.exp: thread=5: created new thread
748dd275 438FAIL: gdb.threads/process-dies-while-detaching.exp: single-process: continue: killed outside: continue
d05fa6f1
SM
439FAIL: gdb.threads/signal-command-handle-nopass.exp: step-over no: signal SIGUSR1
440FAIL: gdb.threads/signal-command-handle-nopass.exp: step-over yes: signal SIGUSR1
441FAIL: gdb.threads/signal-sigtrap.exp: sigtrap thread 1: signal SIGTRAP reaches handler
748dd275
SM
442FAIL: gdb.threads/thread-specific-bp.exp: all-stop: continue to end (timeout)
443FAIL: gdb.threads/thread-specific-bp.exp: non-stop: continue to end (timeout)
444FAIL: gdb.trace/actions.exp: tfile: tracepoint on gdb_asm_test
445FAIL: gdb.trace/actions.exp: tfile: tracepoint on gdb_c_test
446FAIL: gdb.trace/actions.exp: tfile: tracepoint on gdb_recursion_test 0
d05fa6f1 447FAIL: gdb.trace/change-loc.exp: 1 ftrace: runto: run to main
748dd275
SM
448FAIL: gdb.trace/change-loc.exp: 1 trace: continue to marker 2
449FAIL: gdb.trace/change-loc.exp: 1 trace: continue to marker 3
450FAIL: gdb.trace/change-loc.exp: 1 trace: tfind frame 0
451FAIL: gdb.trace/change-loc.exp: 1 trace: tracepoint with two locations - installed (unload)
452FAIL: gdb.trace/change-loc.exp: 1 trace: tracepoint with two locations - pending (unload)
453FAIL: gdb.trace/change-loc.exp: 2 ftrace: continue to marker 1 (the program is no longer running)
454FAIL: gdb.trace/change-loc.exp: 2 ftrace: continue to marker 2 (the program is no longer running)
455FAIL: gdb.trace/change-loc.exp: 2 ftrace: continue to marker 3 (the program is no longer running)
456FAIL: gdb.trace/change-loc.exp: 2 ftrace: run to main (the program exited)
457FAIL: gdb.trace/change-loc.exp: 2 ftrace: tfind frame 0
458FAIL: gdb.trace/change-loc.exp: 2 ftrace: tfind frame 1
459FAIL: gdb.trace/change-loc.exp: 2 ftrace: tfind frame 2
460FAIL: gdb.trace/change-loc.exp: 2 ftrace: tracepoint with three locations
461FAIL: gdb.trace/change-loc.exp: 2 ftrace: tracepoint with two locations - installed (unload)
462FAIL: gdb.trace/change-loc.exp: 2 ftrace: tracepoint with two locations - pending (unload)
463FAIL: gdb.trace/change-loc.exp: 2 ftrace: tstart
464FAIL: gdb.trace/change-loc.exp: 2 ftrace: tstop
465FAIL: gdb.trace/change-loc.exp: 2 trace: continue to marker 2
466FAIL: gdb.trace/change-loc.exp: 2 trace: continue to marker 3
467FAIL: gdb.trace/change-loc.exp: 2 trace: tfind frame 2
468FAIL: gdb.trace/change-loc.exp: 2 trace: tracepoint with two locations - installed (unload)
469FAIL: gdb.trace/change-loc.exp: 2 trace: tracepoint with two locations - pending (unload)
d05fa6f1 470FAIL: gdb.trace/change-loc.exp: InstallInTrace disabled: ftrace: runto: run to main
748dd275
SM
471FAIL: gdb.trace/collection.exp: collect register locals collectively: collected local char
472FAIL: gdb.trace/collection.exp: collect register locals collectively: collected local double
473FAIL: gdb.trace/collection.exp: collect register locals collectively: collected local float
474FAIL: gdb.trace/collection.exp: collect register locals collectively: collected local int
475FAIL: gdb.trace/collection.exp: collect register locals collectively: collected local member char
476FAIL: gdb.trace/collection.exp: collect register locals collectively: collected local member double
477FAIL: gdb.trace/collection.exp: collect register locals collectively: collected local member float
478FAIL: gdb.trace/collection.exp: collect register locals collectively: collected local member int
479FAIL: gdb.trace/collection.exp: collect register locals collectively: collected locarray #0
480FAIL: gdb.trace/collection.exp: collect register locals collectively: collected locarray #1
481FAIL: gdb.trace/collection.exp: collect register locals collectively: collected locarray #2
482FAIL: gdb.trace/collection.exp: collect register locals collectively: collected locarray #3
d05fa6f1
SM
483FAIL: gdb.trace/collection.exp: collect register locals collectively: run trace experiment: start trace experiment
484FAIL: gdb.trace/collection.exp: collect register locals collectively: run trace experiment: tfind test frame
748dd275
SM
485FAIL: gdb.trace/collection.exp: collect register locals collectively: start trace experiment
486FAIL: gdb.trace/collection.exp: collect register locals collectively: tfind test frame
487FAIL: gdb.trace/collection.exp: collect register locals individually: collected local char
488FAIL: gdb.trace/collection.exp: collect register locals individually: collected local double
489FAIL: gdb.trace/collection.exp: collect register locals individually: collected local float
490FAIL: gdb.trace/collection.exp: collect register locals individually: collected local int
491FAIL: gdb.trace/collection.exp: collect register locals individually: collected local member char
492FAIL: gdb.trace/collection.exp: collect register locals individually: collected local member double
493FAIL: gdb.trace/collection.exp: collect register locals individually: collected local member float
494FAIL: gdb.trace/collection.exp: collect register locals individually: collected local member int
495FAIL: gdb.trace/collection.exp: collect register locals individually: collected locarray #0
496FAIL: gdb.trace/collection.exp: collect register locals individually: collected locarray #1
497FAIL: gdb.trace/collection.exp: collect register locals individually: collected locarray #2
498FAIL: gdb.trace/collection.exp: collect register locals individually: collected locarray #3
499FAIL: gdb.trace/collection.exp: collect register locals individually: define actions
d05fa6f1
SM
500FAIL: gdb.trace/ftrace.exp: runto: run to main
501FAIL: gdb.trace/ftrace-lock.exp: runto: run to main
748dd275
SM
502FAIL: gdb.trace/mi-trace-frame-collected.exp: tfile: -trace-frame-collected (unexpected output)
503FAIL: gdb.trace/mi-trace-frame-collected.exp: tfile: -trace-frame-collected --var-print-values 2 --comp-print-values --simple-values --registers-format x --memory-contents (unexpected output)
d05fa6f1
SM
504FAIL: gdb.trace/mi-tsv-changed.exp: create delete modify: tvariable $tvar3 modified (unexpected output)
505FAIL: gdb.trace/pending.exp: ftrace action_resolved: runto: run to main
506FAIL: gdb.trace/pending.exp: ftrace disconn_resolved: runto: run to main
507FAIL: gdb.trace/pending.exp: ftrace disconn: runto: run to main
508FAIL: gdb.trace/pending.exp: ftrace installed_in_trace: runto: run to main
509FAIL: gdb.trace/pending.exp: ftrace resolved_in_trace: runto: run to main
748dd275
SM
510FAIL: gdb.trace/pending.exp: ftrace resolved: (the program exited)
511FAIL: gdb.trace/pending.exp: ftrace works: continue to marker (the program is no longer running)
512FAIL: gdb.trace/pending.exp: ftrace works: start trace experiment
513FAIL: gdb.trace/pending.exp: ftrace works: tfind test frame 0
514FAIL: gdb.trace/pending.exp: ftrace works: tfind test frame 1
515FAIL: gdb.trace/pending.exp: ftrace works: tfind test frame 2
516FAIL: gdb.trace/pending.exp: ftrace works: (the program exited)
517FAIL: gdb.trace/pending.exp: trace installed_in_trace: continue to marker 2
518FAIL: gdb.trace/pending.exp: trace installed_in_trace: tfind test frame 0
d05fa6f1
SM
519FAIL: gdb.trace/range-stepping.exp: runto: run to main
520FAIL: gdb.trace/trace-break.exp: runto: run to main
521FAIL: gdb.trace/trace-condition.exp: runto: run to main
522FAIL: gdb.trace/trace-enable-disable.exp: test_tracepoint_enable_disable ftrace: runto: run to main
523FAIL: gdb.trace/trace-enable-disable.exp: test_tracepoint_enable_disable trace: runto: run to main
524FAIL: gdb.trace/trace-mt.exp: runto: run to main
525FAIL: gdb.trace/tspeed.exp: runto: run to main
748dd275
SM
526FAIL: gdb.trace/unavailable.exp: collect globals: print object off: print derived_partial
527FAIL: gdb.trace/unavailable.exp: collect globals: print object on: print derived_partial
528FAIL: gdb.trace/unavailable.exp: collect globals: tfile: print object off: print derived_partial
529FAIL: gdb.trace/unavailable.exp: collect globals: tfile: print object on: print derived_partial
d05fa6f1
SM
530FAIL: gdb.trace/unavailable.exp: collect globals: tfile: <unavailable> is not the same as 0 in array element repetitions
531FAIL: gdb.trace/unavailable.exp: collect globals: <unavailable> is not the same as 0 in array element repetitions
748dd275
SM
532FAIL: gdb.trace/unavailable.exp: unavailable locals: auto locals: info locals
533FAIL: gdb.trace/unavailable.exp: unavailable locals: auto locals: tfile: info locals
534FAIL: gdb.trace/unavailable.exp: unavailable locals: register locals: info locals
535FAIL: gdb.trace/unavailable.exp: unavailable locals: register locals: print locd
536FAIL: gdb.trace/unavailable.exp: unavailable locals: register locals: print locf
537FAIL: gdb.trace/unavailable.exp: unavailable locals: register locals: tfile: info locals
538FAIL: gdb.trace/unavailable.exp: unavailable locals: register locals: tfile: print locd
539FAIL: gdb.trace/unavailable.exp: unavailable locals: register locals: tfile: print locf
540FAIL: gdb.trace/unavailable.exp: unavailable locals: static locals: info locals
541FAIL: gdb.trace/unavailable.exp: unavailable locals: static locals: tfile: info locals
748dd275 542KPASS: gdb.threads/process-dies-while-detaching.exp: single-process: continue: watchpoint:sw: continue (PRMS gdb/28375)
d05fa6f1
SM
543UNRESOLVED: gdb.ada/arrayptr.exp: scenario=all: gdb_breakpoint: set breakpoint at foo.adb:40
544UNRESOLVED: gdb.ada/arrayptr.exp: scenario=all: runto: run to foo.adb:40 (eof)
545UNRESOLVED: gdb.ada/exprs.exp: gdb_breakpoint: set breakpoint at p.adb:40
546UNRESOLVED: gdb.ada/exprs.exp: runto: run to p.adb:40 (eof)
547UNRESOLVED: gdb.ada/packed_array_assign.exp: gdb_breakpoint: set breakpoint at aggregates.run_test
548UNRESOLVED: gdb.ada/packed_array_assign.exp: runto: run to aggregates.run_test (eof)
549UNRESOLVED: gdb.ada/exprs.exp: Long_Long_Integer ** Y
550UNRESOLVED: gdb.ada/exprs.exp: long_float'min
551UNRESOLVED: gdb.ada/exprs.exp: long_float'max
552UNRESOLVED: gdb.ada/packed_array_assign.exp: value of pra
553UNRESOLVED: gdb.ada/packed_array_assign.exp: print pra(1) := pr
554UNRESOLVED: gdb.ada/packed_array_assign.exp: print pra(1)
555UNRESOLVED: gdb.ada/packed_array_assign.exp: value of npr
556UNRESOLVED: gdb.ada/arrayptr.exp: scenario=all: gdb_breakpoint: set breakpoint at foo.adb:40 (eof)
557UNRESOLVED: gdb.ada/array_return.exp: gdb_breakpoint: set breakpoint at main (eof)
558UNRESOLVED: gdb.ada/array_subscript_addr.exp: gdb_breakpoint: set breakpoint at p.adb:27 (eof)
559UNRESOLVED: gdb.ada/cond_lang.exp: gdb_breakpoint: set breakpoint at c_function (eof)
560UNRESOLVED: gdb.ada/dyn_loc.exp: gdb_breakpoint: set breakpoint at pack.adb:25 (eof)
561UNRESOLVED: gdb.ada/exprs.exp: gdb_breakpoint: set breakpoint at p.adb:40 (eof)
562UNRESOLVED: gdb.ada/packed_array_assign.exp: gdb_breakpoint: set breakpoint at aggregates.run_test (eof)
563UNRESOLVED: gdb.ada/ref_tick_size.exp: gdb_breakpoint: set breakpoint at p.adb:26 (eof)
564UNRESOLVED: gdb.ada/set_wstr.exp: gdb_breakpoint: set breakpoint at a.adb:23 (eof)
565UNRESOLVED: gdb.ada/taft_type.exp: gdb_breakpoint: set breakpoint at p.adb:22 (eof)
566UNRESOLVED: gdb.base/libsegfault.exp: gdb emits custom handler warning
567EOF
568
569cat <<'EOF' > known-failures-re-native-gdbserver
748dd275
SM
570EOF
571
572cat <<'EOF' > known-failures-native-extended-gdbserver
748dd275
SM
573DUPLICATE: gdb.base/cond-eval-mode.exp: awatch: awatch global
574DUPLICATE: gdb.base/cond-eval-mode.exp: awatch: continue
575DUPLICATE: gdb.base/cond-eval-mode.exp: break: break foo
576DUPLICATE: gdb.base/cond-eval-mode.exp: break: continue
577DUPLICATE: gdb.base/cond-eval-mode.exp: hbreak: continue
578DUPLICATE: gdb.base/cond-eval-mode.exp: hbreak: hbreak foo
579DUPLICATE: gdb.base/cond-eval-mode.exp: rwatch: continue
580DUPLICATE: gdb.base/cond-eval-mode.exp: rwatch: rwatch global
581DUPLICATE: gdb.base/cond-eval-mode.exp: watch: continue
582DUPLICATE: gdb.base/cond-eval-mode.exp: watch: watch global
748dd275
SM
583DUPLICATE: gdb.threads/attach-into-signal.exp: threaded: thread apply 2 print $_siginfo.si_signo
584DUPLICATE: gdb.trace/circ.exp: check whether setting trace buffer size is supported
585DUPLICATE: gdb.trace/ftrace-lock.exp: successfully compiled posix threads test case
586DUPLICATE: gdb.trace/mi-tsv-changed.exp: create delete modify: tvariable $tvar3 modified
587DUPLICATE: gdb.trace/signal.exp: get integer valueof "counter"
588DUPLICATE: gdb.trace/status-stop.exp: buffer_full_tstart: tstart
589DUPLICATE: gdb.trace/status-stop.exp: tstart_tstop_tstart: tstart
590DUPLICATE: gdb.trace/tfind.exp: 8.17: tfind none
591DUPLICATE: gdb.trace/trace-buffer-size.exp: set tracepoint at test_function
592DUPLICATE: gdb.trace/trace-buffer-size.exp: tstart
593DUPLICATE: gdb.trace/trace-mt.exp: successfully compiled posix threads test case
594DUPLICATE: gdb.trace/tspeed.exp: advance through tracing (the program is no longer running)
595DUPLICATE: gdb.trace/tspeed.exp: advance to trace begin (the program is no longer running)
596DUPLICATE: gdb.trace/tspeed.exp: check on trace status
597DUPLICATE: gdb.trace/tspeed.exp: print iters = init_iters
d05fa6f1 598DUPLICATE: gdb.trace/tspeed.exp: runto: run to main
748dd275 599DUPLICATE: gdb.trace/tspeed.exp: start trace experiment
d05fa6f1
SM
600FAIL: gdb.ada/mi_var_access.exp: Create varobj (unexpected output)
601FAIL: gdb.ada/mi_var_access.exp: update at stop 2 (unexpected output)
602FAIL: gdb.ada/packed_array_assign.exp: value of pra
603FAIL: gdb.arch/ftrace-insn-reloc.exp: runto: run to main
748dd275 604FAIL: gdb.base/a2-run.exp: run "a2-run" with shell (timeout)
d05fa6f1
SM
605FAIL: gdb.base/attach.exp: do_command_attach_tests: gdb_spawn_attach_cmdline: info thread (no thread)
606FAIL: gdb.base/attach.exp: do_command_attach_tests: gdb_spawn_attach_cmdline: start gdb with --pid
748dd275
SM
607FAIL: gdb.base/break-interp.exp: ldprelink=NO: ldsepdebug=IN: binprelink=NO: binsepdebug=NO: binpie=NO: INNER: symbol-less: entry point reached (the program is no longer running)
608FAIL: gdb.base/break-interp.exp: ldprelink=NO: ldsepdebug=IN: binprelink=NO: binsepdebug=NO: binpie=NO: INNER: symbol-less: reach-(_dl_debug_state|dl_main)-3: reach
609FAIL: gdb.base/break-interp.exp: ldprelink=NO: ldsepdebug=IN: binprelink=NO: binsepdebug=NO: binpie=YES: INNER: symbol-less: entry point reached (the program is no longer running)
610FAIL: gdb.base/break-interp.exp: ldprelink=NO: ldsepdebug=IN: binprelink=NO: binsepdebug=NO: binpie=YES: INNER: symbol-less: reach-(_dl_debug_state|dl_main)-3: reach
611FAIL: gdb.base/break-interp.exp: ldprelink=NO: ldsepdebug=IN: binprelink=NO: binsepdebug=NO: binpie=YES: INNER: symbol-less: reach-(_dl_debug_state|dl_main)-3: seen displacement message as NONZERO
612FAIL: gdb.base/break-interp.exp: ldprelink=NO: ldsepdebug=NO: binprelink=NO: binsepdebug=NO: binpie=NO: INNER: symbol-less: entry point reached (the program is no longer running)
613FAIL: gdb.base/break-interp.exp: ldprelink=NO: ldsepdebug=NO: binprelink=NO: binsepdebug=NO: binpie=NO: INNER: symbol-less: reach-(_dl_debug_state|dl_main)-3: reach
614FAIL: gdb.base/break-interp.exp: ldprelink=NO: ldsepdebug=NO: binprelink=NO: binsepdebug=NO: binpie=YES: INNER: symbol-less: entry point reached (the program is no longer running)
615FAIL: gdb.base/break-interp.exp: ldprelink=NO: ldsepdebug=NO: binprelink=NO: binsepdebug=NO: binpie=YES: INNER: symbol-less: reach-(_dl_debug_state|dl_main)-3: reach
616FAIL: gdb.base/break-interp.exp: ldprelink=NO: ldsepdebug=NO: binprelink=NO: binsepdebug=NO: binpie=YES: INNER: symbol-less: reach-(_dl_debug_state|dl_main)-3: seen displacement message as NONZERO
617FAIL: gdb.base/break-interp.exp: ldprelink=NO: ldsepdebug=NO: symbol-less: ld.so exit
618FAIL: gdb.base/break-interp.exp: ldprelink=NO: ldsepdebug=NO: symbol-less: seen displacement message as NONZERO
619FAIL: gdb.base/bt-on-fatal-signal.exp: BUS: $saw_bt_end
620FAIL: gdb.base/bt-on-fatal-signal.exp: BUS: $saw_bt_start
621FAIL: gdb.base/bt-on-fatal-signal.exp: BUS: $saw_fatal_msg
622FAIL: gdb.base/bt-on-fatal-signal.exp: BUS: [expr $internal_error_msg_count == 2]
623FAIL: gdb.base/bt-on-fatal-signal.exp: FPE: $saw_bt_end
624FAIL: gdb.base/bt-on-fatal-signal.exp: FPE: $saw_bt_start
625FAIL: gdb.base/bt-on-fatal-signal.exp: FPE: $saw_fatal_msg
626FAIL: gdb.base/bt-on-fatal-signal.exp: FPE: [expr $internal_error_msg_count == 2]
627FAIL: gdb.base/bt-on-fatal-signal.exp: SEGV: $saw_bt_end
628FAIL: gdb.base/bt-on-fatal-signal.exp: SEGV: $saw_bt_start
629FAIL: gdb.base/bt-on-fatal-signal.exp: SEGV: $saw_fatal_msg
630FAIL: gdb.base/bt-on-fatal-signal.exp: SEGV: [expr $internal_error_msg_count == 2]
631FAIL: gdb.base/compare-sections.exp: after run to main: compare-sections
632FAIL: gdb.base/compare-sections.exp: after run to main: compare-sections -r
633FAIL: gdb.base/compare-sections.exp: read-only: compare-sections -r
d05fa6f1
SM
634FAIL: gdb.base/coredump-filter.exp: loading and testing corefile for non-Private-Shared-Anon-File: no binary: disassemble function with corefile and without a binary
635FAIL: gdb.base/ending-run.exp: step out of main
636FAIL: gdb.base/ending-run.exp: step to end of run
748dd275
SM
637FAIL: gdb.base/gdbinit-history.exp: GDBHISTFILE is empty: show commands
638FAIL: gdb.base/gdbinit-history.exp: load default history file: show commands
639FAIL: gdb.base/gdbinit-history.exp: load GDBHISTFILE history file: show commands
640FAIL: gdb.base/interrupt-daemon.exp: bg: continue& (timeout)
641FAIL: gdb.base/interrupt-daemon.exp: bg: interrupt cmd stops process (timeout)
642FAIL: gdb.base/interrupt-daemon.exp: bg: interrupt (timeout)
643FAIL: gdb.base/interrupt-daemon.exp: fg: ctrl-c stops process (timeout)
d05fa6f1 644FAIL: gdb.base/range-stepping.exp: step over func: next: vCont;r=2
748dd275 645FAIL: gdb.base/share-env-with-gdbserver.exp: strange named var: print result of getenv for 'asd ='
d05fa6f1 646FAIL: gdb.base/startup-with-shell.exp: startup_with_shell = off; run_args = *.unique-extension: first argument not expanded
748dd275
SM
647FAIL: gdb.base/startup-with-shell.exp: startup_with_shell = on; run_args = $TEST: testing first argument
648FAIL: gdb.base/startup-with-shell.exp: startup_with_shell = on; run_args = *.unique-extension: first argument expanded
649FAIL: gdb.base/with.exp: repeat: reinvoke with no previous command to relaunch
d05fa6f1
SM
650FAIL: gdb.compile/compile-cplus.exp: bt
651FAIL: gdb.compile/compile-cplus.exp: compile code extern int globalshadow; globalshadow += 5;
652FAIL: gdb.compile/compile-cplus.exp: print 'compile-cplus.c'::globalshadow
653FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var ()
654FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var ()
655FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var (static_cast<unsigned long> (1))
656FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var (static_cast<unsigned long> (1))
657FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var (static_cast<int> (1))
658FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var (static_cast<int> (1))
659FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var (static_cast<float> (1))
660FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var (static_cast<float> (1))
661FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var (static_cast<void *> (a))
662FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var (static_cast<void *> (a))
663FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var (*a)
664FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var (*a)
665FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var (*ac)
666FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var (*ac)
667FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var1 (1)
668FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var1 (1)
669FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var2 (1, 2)
670FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var2 (1, 2)
671FAIL: gdb.compile/compile-cplus-method.exp: compile code A::get_1 (a->get_var ())
672FAIL: gdb.compile/compile-cplus-method.exp: result of compile code A::get_1 (a->get_var ())
673FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var1 (a->get_var () - 16)
674FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var1 (a->get_var () - 16)
675FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var2 (a->get_var (), A::get_1 (2))
676FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var2 (a->get_var (), A::get_1 (2))
677FAIL: gdb.compile/compile-cplus-method.exp: compile code get_value (a)
678FAIL: gdb.compile/compile-cplus-method.exp: result of compile code get_value (a)
679FAIL: gdb.compile/compile-cplus-method.exp: compile code (a->*pmf) (1)
680FAIL: gdb.compile/compile-cplus-method.exp: result of compile code (a->*pmf) (1)
681FAIL: gdb.compile/compile-cplus-method.exp: compile code pmf = &A::get_var1; var = (a->*pmf) (2); pmf = &A::get_var
682FAIL: gdb.compile/compile-cplus-method.exp: result of compile code pmf = &A::get_var1; var = (a->*pmf) (2); pmf = &A::get_var
683FAIL: gdb.compile/compile-cplus-method.exp: compile code (a->**pmf_p) (1)
684FAIL: gdb.compile/compile-cplus-method.exp: result of compile code (a->**pmf_p) (1)
685FAIL: gdb.compile/compile-cplus-virtual.exp: compile code ap->doit ()
686FAIL: gdb.compile/compile-cplus-virtual.exp: compile code ap->doit2 ()
748dd275
SM
687FAIL: gdb.cp/annota2.exp: annotate-quit
688FAIL: gdb.cp/annota2.exp: break at main (got interactive prompt)
689FAIL: gdb.cp/annota2.exp: continue until exit (timeout)
690FAIL: gdb.cp/annota2.exp: delete bps
691FAIL: gdb.cp/annota2.exp: set watch on a.x (timeout)
692FAIL: gdb.cp/annota2.exp: watch triggered on a.x (timeout)
693FAIL: gdb.cp/annota3.exp: continue to exit (pattern 4)
812328f9 694FAIL: gdb.cp/no-dmgl-verbose.exp: gdb_breakpoint: set breakpoint at 'f(std::string)'
d05fa6f1
SM
695FAIL: gdb.cp/step-and-next-inline.exp: no_header: next step 1
696FAIL: gdb.cp/step-and-next-inline.exp: no_header: next step 2
697FAIL: gdb.cp/step-and-next-inline.exp: no_header: next step 3
698FAIL: gdb.cp/step-and-next-inline.exp: no_header: next step 4
748dd275
SM
699FAIL: gdb.gdb/unittest.exp: executable loaded: maintenance selftest, failed none
700FAIL: gdb.gdb/unittest.exp: no executable loaded: maintenance selftest, failed none
dfa2dcd2 701FAIL: gdb.gdb/unittest.exp: reversed initialization: maintenance selftest, failed none
d05fa6f1
SM
702FAIL: gdb.guile/scm-ports.exp: buffered: test byte at sp, before flush
703FAIL: gdb.mi/list-thread-groups-available.exp: list available thread groups with filter (unexpected output)
748dd275
SM
704FAIL: gdb.mi/mi-exec-run.exp: inferior-tty=separate: mi=separate: force-fail=0: breakpoint hit reported on console (timeout)
705FAIL: gdb.mi/mi-pending.exp: MI pending breakpoint on mi-pendshr.c:pendfunc2 if x==4 (unexpected output)
d05fa6f1 706FAIL: gdb.multi/remove-inferiors.exp: runto: run to main
748dd275
SM
707FAIL: gdb.server/connect-with-no-symbol-file.exp: sysroot=: action=delete: connection to GDBserver succeeded
708FAIL: gdb.server/connect-with-no-symbol-file.exp: sysroot=: action=permission: connection to GDBserver succeeded
709FAIL: gdb.server/connect-with-no-symbol-file.exp: sysroot=target:: action=delete: connection to GDBserver succeeded
710FAIL: gdb.server/connect-with-no-symbol-file.exp: sysroot=target:: action=permission: connection to GDBserver succeeded
d05fa6f1 711FAIL: gdb.threads/access-mem-running-thread-exit.exp: non-stop: access mem (print global_var after writing again, inf=2, iter=1)
748dd275 712FAIL: gdb.threads/attach-into-signal.exp: threaded: thread apply 2 print $_siginfo.si_signo
d05fa6f1
SM
713FAIL: gdb.threads/attach-non-stop.exp: target-non-stop=off: non-stop=off: cmd=attach&: all threads running
714FAIL: gdb.threads/attach-non-stop.exp: target-non-stop=off: non-stop=off: cmd=attach&: detach
715FAIL: gdb.threads/attach-stopped.exp: threaded: attach2 to stopped bt
716FAIL: gdb.threads/break-while-running.exp: w/ithr: always-inserted off: non-stop: runto: run to main
717FAIL: gdb.threads/break-while-running.exp: w/ithr: always-inserted on: non-stop: runto: run to main
718FAIL: gdb.threads/break-while-running.exp: wo/ithr: always-inserted off: non-stop: runto: run to main
719FAIL: gdb.threads/break-while-running.exp: wo/ithr: always-inserted on: non-stop: runto: run to main
720FAIL: gdb.threads/gcore-stale-thread.exp: runto: run to main
721FAIL: gdb.threads/multi-create-ns-info-thr.exp: runto: run to main
748dd275
SM
722FAIL: gdb.threads/multiple-successive-infcall.exp: thread=3: created new thread
723FAIL: gdb.threads/multiple-successive-infcall.exp: thread=4: created new thread
724FAIL: gdb.threads/multiple-successive-infcall.exp: thread=5: created new thread
d05fa6f1 725FAIL: gdb.threads/non-stop-fair-events.exp: runto: run to main
748dd275 726FAIL: gdb.threads/process-dies-while-detaching.exp: single-process: continue: killed outside: continue
d05fa6f1
SM
727FAIL: gdb.threads/signal-command-handle-nopass.exp: step-over yes: signal SIGUSR1
728FAIL: gdb.threads/signal-command-handle-nopass.exp: step-over no: signal SIGUSR1
729FAIL: gdb.threads/signal-sigtrap.exp: sigtrap thread 1: signal SIGTRAP reaches handler
730FAIL: gdb.threads/thread-execl.exp: non-stop: runto: run to main
748dd275 731FAIL: gdb.threads/thread-specific-bp.exp: all-stop: continue to end (timeout)
d05fa6f1 732FAIL: gdb.threads/thread-specific-bp.exp: non-stop: runto: run to main
748dd275
SM
733FAIL: gdb.threads/tls.exp: print a_thread_local
734FAIL: gdb.trace/actions.exp: tfile: tracepoint on gdb_asm_test
735FAIL: gdb.trace/actions.exp: tfile: tracepoint on gdb_c_test
736FAIL: gdb.trace/actions.exp: tfile: tracepoint on gdb_recursion_test 0
d05fa6f1 737FAIL: gdb.trace/change-loc.exp: 1 ftrace: runto: run to main
748dd275
SM
738FAIL: gdb.trace/change-loc.exp: 1 trace: continue to marker 2
739FAIL: gdb.trace/change-loc.exp: 1 trace: continue to marker 3
740FAIL: gdb.trace/change-loc.exp: 1 trace: tfind frame 0
741FAIL: gdb.trace/change-loc.exp: 1 trace: tracepoint with two locations - installed (unload)
742FAIL: gdb.trace/change-loc.exp: 1 trace: tracepoint with two locations - pending (unload)
743FAIL: gdb.trace/change-loc.exp: 2 ftrace: continue to marker 1 (the program is no longer running)
744FAIL: gdb.trace/change-loc.exp: 2 ftrace: continue to marker 2 (the program is no longer running)
745FAIL: gdb.trace/change-loc.exp: 2 ftrace: continue to marker 3 (the program is no longer running)
746FAIL: gdb.trace/change-loc.exp: 2 ftrace: run to main (the program exited)
747FAIL: gdb.trace/change-loc.exp: 2 ftrace: tfind frame 0
748FAIL: gdb.trace/change-loc.exp: 2 ftrace: tfind frame 1
749FAIL: gdb.trace/change-loc.exp: 2 ftrace: tfind frame 2
750FAIL: gdb.trace/change-loc.exp: 2 ftrace: tracepoint with three locations
751FAIL: gdb.trace/change-loc.exp: 2 ftrace: tracepoint with two locations - installed (unload)
752FAIL: gdb.trace/change-loc.exp: 2 ftrace: tracepoint with two locations - pending (unload)
753FAIL: gdb.trace/change-loc.exp: 2 ftrace: tstart
754FAIL: gdb.trace/change-loc.exp: 2 ftrace: tstop
755FAIL: gdb.trace/change-loc.exp: 2 trace: continue to marker 2
756FAIL: gdb.trace/change-loc.exp: 2 trace: continue to marker 3
757FAIL: gdb.trace/change-loc.exp: 2 trace: tfind frame 2
758FAIL: gdb.trace/change-loc.exp: 2 trace: tracepoint with two locations - installed (unload)
759FAIL: gdb.trace/change-loc.exp: 2 trace: tracepoint with two locations - pending (unload)
d05fa6f1 760FAIL: gdb.trace/change-loc.exp: InstallInTrace disabled: ftrace: runto: run to main
748dd275
SM
761FAIL: gdb.trace/collection.exp: collect register locals collectively: collected local char
762FAIL: gdb.trace/collection.exp: collect register locals collectively: collected local double
763FAIL: gdb.trace/collection.exp: collect register locals collectively: collected local float
764FAIL: gdb.trace/collection.exp: collect register locals collectively: collected local int
765FAIL: gdb.trace/collection.exp: collect register locals collectively: collected local member char
766FAIL: gdb.trace/collection.exp: collect register locals collectively: collected local member double
767FAIL: gdb.trace/collection.exp: collect register locals collectively: collected local member float
768FAIL: gdb.trace/collection.exp: collect register locals collectively: collected local member int
769FAIL: gdb.trace/collection.exp: collect register locals collectively: collected locarray #0
770FAIL: gdb.trace/collection.exp: collect register locals collectively: collected locarray #1
771FAIL: gdb.trace/collection.exp: collect register locals collectively: collected locarray #2
772FAIL: gdb.trace/collection.exp: collect register locals collectively: collected locarray #3
d05fa6f1
SM
773FAIL: gdb.trace/collection.exp: collect register locals collectively: run trace experiment: start trace experiment
774FAIL: gdb.trace/collection.exp: collect register locals collectively: run trace experiment: tfind test frame
748dd275
SM
775FAIL: gdb.trace/collection.exp: collect register locals collectively: start trace experiment
776FAIL: gdb.trace/collection.exp: collect register locals collectively: tfind test frame
777FAIL: gdb.trace/collection.exp: collect register locals individually: collected local char
778FAIL: gdb.trace/collection.exp: collect register locals individually: collected local double
779FAIL: gdb.trace/collection.exp: collect register locals individually: collected local float
780FAIL: gdb.trace/collection.exp: collect register locals individually: collected local int
781FAIL: gdb.trace/collection.exp: collect register locals individually: collected local member char
782FAIL: gdb.trace/collection.exp: collect register locals individually: collected local member double
783FAIL: gdb.trace/collection.exp: collect register locals individually: collected local member float
784FAIL: gdb.trace/collection.exp: collect register locals individually: collected local member int
785FAIL: gdb.trace/collection.exp: collect register locals individually: collected locarray #0
786FAIL: gdb.trace/collection.exp: collect register locals individually: collected locarray #1
787FAIL: gdb.trace/collection.exp: collect register locals individually: collected locarray #2
788FAIL: gdb.trace/collection.exp: collect register locals individually: collected locarray #3
789FAIL: gdb.trace/collection.exp: collect register locals individually: define actions
d05fa6f1
SM
790FAIL: gdb.trace/ftrace.exp: runto: run to main
791FAIL: gdb.trace/ftrace-lock.exp: runto: run to main
748dd275
SM
792FAIL: gdb.trace/mi-trace-frame-collected.exp: tfile: -trace-frame-collected (unexpected output)
793FAIL: gdb.trace/mi-trace-frame-collected.exp: tfile: -trace-frame-collected --var-print-values 2 --comp-print-values --simple-values --registers-format x --memory-contents (unexpected output)
d05fa6f1
SM
794FAIL: gdb.trace/mi-tsv-changed.exp: create delete modify: tvariable $tvar3 modified (unexpected output)
795FAIL: gdb.trace/pending.exp: ftrace action_resolved: runto: run to main
796FAIL: gdb.trace/pending.exp: ftrace disconn_resolved: runto: run to main
797FAIL: gdb.trace/pending.exp: ftrace disconn: runto: run to main
798FAIL: gdb.trace/pending.exp: ftrace installed_in_trace: runto: run to main
799FAIL: gdb.trace/pending.exp: ftrace resolved_in_trace: runto: run to main
748dd275
SM
800FAIL: gdb.trace/pending.exp: ftrace resolved: (the program exited)
801FAIL: gdb.trace/pending.exp: ftrace works: continue to marker (the program is no longer running)
802FAIL: gdb.trace/pending.exp: ftrace works: start trace experiment
803FAIL: gdb.trace/pending.exp: ftrace works: tfind test frame 0
804FAIL: gdb.trace/pending.exp: ftrace works: tfind test frame 1
805FAIL: gdb.trace/pending.exp: ftrace works: tfind test frame 2
806FAIL: gdb.trace/pending.exp: ftrace works: (the program exited)
807FAIL: gdb.trace/pending.exp: trace installed_in_trace: continue to marker 2
808FAIL: gdb.trace/pending.exp: trace installed_in_trace: tfind test frame 0
d05fa6f1
SM
809FAIL: gdb.trace/range-stepping.exp: runto: run to main
810FAIL: gdb.trace/trace-break.exp: runto: run to main
811FAIL: gdb.trace/trace-condition.exp: runto: run to main
812FAIL: gdb.trace/trace-enable-disable.exp: test_tracepoint_enable_disable ftrace: runto: run to main
813FAIL: gdb.trace/trace-enable-disable.exp: test_tracepoint_enable_disable trace: runto: run to main
814FAIL: gdb.trace/trace-mt.exp: runto: run to main
04047f44
SM
815FAIL: gdb.trace/tspeed.exp: gdb_fast_trace_speed_test: advance through tracing (the program is no longer running)
816FAIL: gdb.trace/tspeed.exp: gdb_fast_trace_speed_test: advance to trace begin (the program is no longer running)
817FAIL: gdb.trace/tspeed.exp: gdb_fast_trace_speed_test: start trace experiment
818FAIL: gdb.trace/tspeed.exp: gdb_slow_trace_speed_test: advance through tracing (the program is no longer running)
819FAIL: gdb.trace/tspeed.exp: gdb_slow_trace_speed_test: advance to trace begin (the program is no longer running)
820FAIL: gdb.trace/tspeed.exp: gdb_slow_trace_speed_test: start trace experiment
d05fa6f1
SM
821FAIL: gdb.trace/tspeed.exp: runto: run to main
822FAIL: gdb.trace/tspeed.exp: runto: run to main
748dd275
SM
823FAIL: gdb.trace/unavailable.exp: collect globals: print object off: print derived_partial
824FAIL: gdb.trace/unavailable.exp: collect globals: print object on: print derived_partial
825FAIL: gdb.trace/unavailable.exp: collect globals: tfile: print object off: print derived_partial
826FAIL: gdb.trace/unavailable.exp: collect globals: tfile: print object on: print derived_partial
d05fa6f1
SM
827FAIL: gdb.trace/unavailable.exp: collect globals: tfile: <unavailable> is not the same as 0 in array element repetitions
828FAIL: gdb.trace/unavailable.exp: collect globals: <unavailable> is not the same as 0 in array element repetitions
748dd275
SM
829FAIL: gdb.trace/unavailable.exp: unavailable locals: auto locals: info locals
830FAIL: gdb.trace/unavailable.exp: unavailable locals: auto locals: tfile: info locals
831FAIL: gdb.trace/unavailable.exp: unavailable locals: register locals: info locals
832FAIL: gdb.trace/unavailable.exp: unavailable locals: register locals: print locd
833FAIL: gdb.trace/unavailable.exp: unavailable locals: register locals: print locf
834FAIL: gdb.trace/unavailable.exp: unavailable locals: register locals: tfile: info locals
835FAIL: gdb.trace/unavailable.exp: unavailable locals: register locals: tfile: print locd
836FAIL: gdb.trace/unavailable.exp: unavailable locals: register locals: tfile: print locf
837FAIL: gdb.trace/unavailable.exp: unavailable locals: static locals: info locals
838FAIL: gdb.trace/unavailable.exp: unavailable locals: static locals: tfile: info locals
d05fa6f1
SM
839KPASS: gdb.threads/process-dies-while-detaching.exp: single-process: continue: watchpoint:sw: continue (PRMS gdb/28375)
840UNRESOLVED: gdb.ada/arrayptr.exp: scenario=all: gdb_breakpoint: set breakpoint at foo.adb:40
841UNRESOLVED: gdb.ada/arrayptr.exp: scenario=all: runto: run to foo.adb:40 (eof)
842UNRESOLVED: gdb.ada/exprs.exp: gdb_breakpoint: set breakpoint at p.adb:40
843UNRESOLVED: gdb.ada/exprs.exp: runto: run to p.adb:40 (eof)
844UNRESOLVED: gdb.ada/packed_array_assign.exp: gdb_breakpoint: set breakpoint at aggregates.run_test
845UNRESOLVED: gdb.ada/packed_array_assign.exp: runto: run to aggregates.run_test (eof)
846UNRESOLVED: gdb.ada/exprs.exp: Long_Long_Integer ** Y
847UNRESOLVED: gdb.ada/exprs.exp: long_float'min
848UNRESOLVED: gdb.ada/exprs.exp: long_float'max
849UNRESOLVED: gdb.ada/packed_array_assign.exp: value of pra
850UNRESOLVED: gdb.ada/packed_array_assign.exp: print pra(1) := pr
851UNRESOLVED: gdb.ada/packed_array_assign.exp: print pra(1)
852UNRESOLVED: gdb.ada/packed_array_assign.exp: value of npr
853UNRESOLVED: gdb.ada/arrayptr.exp: scenario=all: gdb_breakpoint: set breakpoint at foo.adb:40 (eof)
854UNRESOLVED: gdb.ada/array_return.exp: gdb_breakpoint: set breakpoint at main (eof)
855UNRESOLVED: gdb.ada/array_subscript_addr.exp: gdb_breakpoint: set breakpoint at p.adb:27 (eof)
856UNRESOLVED: gdb.ada/cond_lang.exp: gdb_breakpoint: set breakpoint at c_function (eof)
857UNRESOLVED: gdb.ada/dyn_loc.exp: gdb_breakpoint: set breakpoint at pack.adb:25 (eof)
858UNRESOLVED: gdb.ada/exprs.exp: gdb_breakpoint: set breakpoint at p.adb:40 (eof)
859UNRESOLVED: gdb.ada/packed_array_assign.exp: gdb_breakpoint: set breakpoint at aggregates.run_test (eof)
860UNRESOLVED: gdb.ada/ref_tick_size.exp: gdb_breakpoint: set breakpoint at p.adb:26 (eof)
861UNRESOLVED: gdb.ada/set_wstr.exp: gdb_breakpoint: set breakpoint at a.adb:23 (eof)
862UNRESOLVED: gdb.ada/taft_type.exp: gdb_breakpoint: set breakpoint at p.adb:22 (eof)
748dd275 863UNRESOLVED: gdb.base/readline-ask.exp: bell for more message
748dd275 864UNRESOLVED: gdb.threads/attach-into-signal.exp: threaded: attach (pass 2), pending signal catch
d05fa6f1
SM
865EOF
866
867cat <<'EOF' > known-failures-re-native-extended-gdbserver
868FAIL: gdb.threads/attach-many-short-lived-threads.exp: .*
748dd275
SM
869EOF
870
871known_failures_file="known-failures-${target_board}"
d05fa6f1
SM
872known_failures_re_file="known-failures-re-${target_board}"
873grep --invert-match --fixed-strings --file="$known_failures_file" "${WORKSPACE}/results/gdb.sum" | \
874 grep --invert-match --extended-regexp --file="$known_failures_re_file" > "${WORKSPACE}/results/gdb.filtered.sum"
c0e55ab2 875grep --extended-regexp --regexp="^(FAIL|XPASS|UNRESOLVED|DUPLICATE):" "${WORKSPACE}/results/gdb.filtered.sum" > "${WORKSPACE}/results/gdb.fail.sum" || true
795db243 876
f204fdf1
SM
877# For informational purposes: check if some known failure lines did not appear
878# in the gdb.sum.
879echo "Known failures that don't appear in gdb.sum:"
880while read line; do
881 if ! grep --silent --fixed-strings "$line" "${WORKSPACE}/results/gdb.sum"; then
882 echo "$line"
883 fi
3837269d 884done < "$known_failures_file" > "${WORKSPACE}/results/known-failures-not-found.sum"
f204fdf1 885
bcd0bdf1
SM
886# Convert results to JUnit format.
887failed_tests=0
795db243 888sum2junit "${WORKSPACE}/results/gdb.filtered.sum" "${WORKSPACE}/results/gdb.xml" || failed_tests=1
91ba8aa1
MJ
889
890# Clean the build directory
891$MAKE clean
892
91ba8aa1
MJ
893# Exit with failure if any of the tests failed
894exit $failed_tests
895
896# EOF
This page took 0.060344 seconds and 4 git commands to generate.