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