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