Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
=== gdb Summary ===
# of expected passes 18667
# of unexpected failures 404
# of expected failures 28
# of known failures 52
# of unresolved testcases 34
# of untested testcases 163
# of unsupported tests 263
grep -o -e '[KX]\?FAIL.*exp:' gdb-failures.log | sort | uniq -c | sort -n
1 FAIL: gdb.base/default.exp:
(default) there is already an upstream testsuite fix for this.
https://sourceware.org/ml/gdb-patches/2016-03/msg00217.html
gdb.base/default.exp: Add missing $_as_string to "show convenience" test
1 FAIL: gdb.base/mips_pro.exp:
1 FAIL: gdb.base/recurse.exp:
1 FAIL: gdb.base/watch-cond.exp:
1 FAIL: gdb.cp/no-dmgl-verbose.exp:
1 FAIL: gdb.dwarf2/bad-regnum.exp:
1 FAIL: gdb.dwarf2/implptrpiece.exp:
1 FAIL: gdb.mi/mi-logging.exp:
1 FAIL: gdb.modula2/unbounded-array.exp:
1 FAIL: gdb.python/py-value-cc.exp:
1 FAIL: gdb.stabs/gdb11479.exp:
1 FAIL: gdb.xml/tdesc-regs.exp:
2 FAIL: gdb.base/hook-stop.exp:
2 FAIL: gdb.base/longjmp.exp:
2 FAIL: gdb.base/nostdlib.exp:
2 FAIL: gdb.compile/compile-ops.exp:
2 FAIL: gdb.compile/compile-setjmp.exp:
2 FAIL: gdb.dwarf2/dw2-var-zero-addr.exp:
2 FAIL: gdb.mi/mi-watch.exp:
2 FAIL: gdb.python/py-value.exp:
2 FAIL: gdb.trace/entry-values.exp:
4 FAIL: gdb.base/killed-outside.exp:
4 FAIL: gdb.base/watchpoint.exp:
4 FAIL: gdb.base/watchpoint-stops-at-right-insn.exp:
4 FAIL: gdb.compile/compile-ifunc.exp:
5 FAIL: gdb.base/completion.exp:
5 FAIL: gdb.dwarf2/dw2-ranges.exp:
5 FAIL: gdb.trace/mi-traceframe-changed.exp:
7 FAIL: gdb.linespec/explicit.exp:
8 FAIL: gdb.base/code_elim.exp:
(code_elim) seems to be an issue with gcc/ld not eliminating unused symbols and
code. The test passes the correct parameters to ld and gcc but it doesnt work
for openrisc toolchain)
http://stackoverflow.com/questions/6687630/how-to-remove-unused-c-c-symbols-with-gcc-and-ld
8 FAIL: gdb.compile/compile-print.exp:
9 FAIL: gdb.mi/mi-cmd-param-changed.exp:
10 FAIL: gdb.trace/tfile.exp:
14 FAIL: gdb.multi/dummy-frame-restore.exp
(Running two processes in one gdb session doesnt work)
file /home/shorne/work/openrisc/build-gdb/gdb/testsuite/outputs/gdb.multi/dummy-frame-restore/dummy-frame-restore
break f1
target sim
load
run
(stopped at f1)
add-inferior -exec /home/shorne/work/openrisc/build-gdb/gdb/testsuite/outputs/gdb.multi/dummy-frame-restore/dummy-frame-restore
inferior 2
break f2
target sim
load
run
(stopped at f2)
inferior 2
bt 1
No stack - FAIL - expected to get back trace of inferior 2
p commonfun()
You can't do that without a process to debug. - FAIL - expected to print
48 FAIL: gdb.base/watchpoint-reuse-slot.exp:
(each of these expects to reuse watchpoint slot, but FAIL because it creates new one, watchpoints work fine)
set breakpoint always-inserted off
watch buf.byte[0]
Watchpoint 3: buf.byte[0] - OK (first time insert ok)
watch *(buf.byte + 0 + 0)@1
Watchpoint 4: *(buf.byte + 0 + 0)@1 - FAIL (should reuse)
watch *(buf.byte + 0 + 1)@1
Watchpoint 5: *(buf.byte + 0 + 1)@1 - FAIL ..
watch *(buf.byte + 1 + 0)@1
Watchpoint 6: *(buf.byte + 1 + 0)@1 - FAIL ..
110 FAIL: gdb.compile/compile.exp:
(Could not find a compiler matching "^or1k(-[^-]*)?--or1k-elf-gcc$)
compiler pattern comes from binutils-gdb/gdb/compile/compile.c:538
The full pattern is buils from...
arch(or1k) comes from bfd
os(null) not defined
compiler_name(or1k-elf-gcc) comes from libcc1 (in or1k-gcc)
Note libcc1 is loaded form ldopen meaning it could load any libcc1, from musl,elf,x86
Need mmap on target to work (only implemented in linux of all targets so far)
128 FAIL: gdb.dwarf2/dw2-dir-file-name.exp:
(dwarf2 debug file format testing)
(KFAIL = known failure, ignoring for now)
1 KFAIL: gdb.base/gnu_vector.exp:
1 KFAIL: gdb.base/info-macros.exp:
1 KFAIL: gdb.cp/demangle.exp:
1 KFAIL: gdb.cp/local.exp:
1 KFAIL: gdb.cp/var-tag.exp:
1 KFAIL: gdb.cp/virtfunc.exp:
1 KFAIL: gdb.dwarf2/dw2-simple-locdesc.exp:
1 KFAIL: gdb.linespec/explicit.exp:
1 KFAIL: gdb.mi/mi-until.exp:
1 KFAIL: gdb.opt/inline-cmds.exp:
1 KFAIL: gdb.pascal/types.exp:
1 KFAIL: gdb.python/py-evsignal.exp:
1 KFAIL: gdb.python/py-evthreads.exp:
2 KFAIL: gdb.base/radix.exp:
3 KFAIL: gdb.cp/templates.exp:
5 KFAIL: gdb.mi/mi-break.exp:
8 KFAIL: gdb.cp/oranking.exp:
19 KFAIL: gdb.base/macscp.exp:
(XFAIL = expected failure, ignoring for now)
1 XFAIL: gdb.base/list.exp:
1 XFAIL: gdb.base/stale-infcall.exp:
1 XFAIL: gdb.base/vla-datatypes.exp:
1 XFAIL: gdb.mi/mi2-var-child.exp:
1 XFAIL: gdb.mi/mi-var-child.exp:
1 XFAIL: gdb.mi/mi-var-cmd.exp:
1 XFAIL: gdb.python/lib-types.exp:
2 XFAIL: gdb.cp/koenig.exp:
3 XFAIL: gdb.cp/temargs.exp:
4 XFAIL: gdb.go/basic-types.exp:
5 XFAIL: gdb.mi/mi-var-block.exp:
7 XFAIL: gdb.stabs/weird.exp:
=== COMPILER FAILURES ===
gdb compile failed, /home/shorne/work/openrisc/build-gdb/gdb/testsuite/outputs/gdb.base/attach-wait-input/attach-wait-input0.o: In function `main':
/home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/attach-wait-input.c:38: undefined reference to `sleep'
collect2: error: ld returned 1 exit
< shorne@lianli ~/work/openrisc/build-gdb/gdb > grep -A5 'compile failed' testsuite/gdb.log | grep -o 'newlib/libc.*'
newlib/libc/syscalls/../../../../../newlib/newlib/libc/syscalls/syswait.c:10: undefined reference to `_wait_r'
newlib/libc/stdio/../../../../../newlib/newlib/libc/stdio/rename.c:67: undefined reference to `_rename_r'
newlib/libc/time/../../../../../newlib/newlib/libc/time/time.c:46: undefined reference to `_gettimeofday_r'
newlib/libc/syscalls/../../../../../newlib/newlib/libc/syscalls/syswait.c:10: undefined reference to `_wait_r'
r'
== Pthread ==
## WONTFIX - pthread not supported in newlib baremetal (use linux)
< shorne@lianli ~/work/openrisc/build-gdb/gdb > grep -A5 'compile failed' testsuite/gdb.log | grep -o 'unknown type.*' | sort | uniq
unknown type name 'pthread_attr_t'
unknown type name 'pthread_barrier_t'
unknown type name 'pthread_t'
gdb compile failed, /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.threads/tid-reuse.c: In function 'spawner_thread_func':
/home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.threads/tid-reuse.c:52:7: error: unknown type name 'pthread_t'
pthread_t child;
^
=== Noticed by Olof
== olofk hmm... is newlib supposed to provide mman.h - WONTFIX no fs no mman.h, most other archs dont have in in newlib
gdb compile failed, /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/break-main-file-remove-fail.c:19:22 fatal error: sys/mman.h: No such file or directory
== olofk multiple definition of `environ' - FIXED https://github.com/openrisc/newlib/pull/10
testcase /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.cp/breakpoint.exp completed in 0 seconds
Running /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.cp/bs15503.exp ...
Executing on host: or1k-elf-g++ -c -mnewlib -mboard=or1ksim -g -o /home/shorne/work/openrisc/build-gdb/gdb/testsuite/outputs/gdb.cp/bs15503/bs155030
spawn -ignore SIGHUP or1k-elf-g++ -c -mnewlib -mboard=or1ksim -g -o /home/shorne/work/openrisc/build-gdb/gdb/testsuite/outputs/gdb.cp/bs15503/bs155030.o
Executing on host: or1k-elf-g++ /home/shorne/work/openrisc/build-gdb/gdb/testsuite/outputs/gdb.cp/bs15503/bs155030.o -mnewlib -mboard=or1ksim -g -l
spawn -ignore SIGHUP or1k-elf-g++ /home/shorne/work/openrisc/build-gdb/gdb/testsuite/outputs/gdb.cp/bs15503/bs155030.o -mnewlib -mboard=or1ksim -g -lm -
/opt/shorne/software/or1k/lib/gcc/or1k-elf/5.3.0/../../../../or1k-elf/lib/libor1k.a(syscalls.o):(.data+0x0): multiple definition of `environ'^M
/opt/shorne/software/or1k/lib/gcc/or1k-elf/5.3.0/../../../../or1k-elf/lib/libg.a(lib_a-environ.o):(.data+0x0): first defined here^M
collect2: error: ld returned 1 exit status^M
olofk Hmm... where does all the warning: Register ppc not updated - FIXED some time ago in simulator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment