[#5842] gdb.base/sigall.exp would fail when debug through serial port 1
Submitted By: Mingquan Pan
Open Date
2010-01-21 05:11:46
Priority:
Medium Assignee:
Nobody
Board:
N/A Silicon Revision:
Resolution:
N/A Fixed In Release:
N/A
Processor:
BF537
Host Operating System:
toolchain rev.:
4.3.4 3771 kernel rev.:
State:
Open Found In Release:
2010R1
Is this bug repeatable?:
N/A
Summary: gdb.base/sigall.exp would fail when debug through serial port 1
Details:
gdb.base/sigall.exp would fail when debug through serial port 1 /dev/ttyBF1, while if testing through ethernet port, it can be all passed.
PASS: gdb.base/sigall.exp: b gen_50
FAIL: gdb.base/sigall.exp: advance to 50
PASS: gdb.base/sigall.exp: handle SIG50 stop print
PASS: gdb.base/sigall.exp: b handle_50
PASS: gdb.base/sigall.exp: b gen_51
PASS: gdb.base/sigall.exp: send signal 50
FAIL: gdb.base/sigall.exp: advance to 51 (eof or timeout)
PASS: gdb.base/sigall.exp: handle SIG51 stop print
PASS: gdb.base/sigall.exp: b handle_51
PASS: gdb.base/sigall.exp: b gen_52
PASS: gdb.base/sigall.exp: advance to 52
PASS: gdb.base/sigall.exp: handle SIG52 stop print
PASS: gdb.base/sigall.exp: b handle_52
PASS: gdb.base/sigall.exp: b gen_53
FAIL: gdb.base/sigall.exp: advance to 53 (eof or timeout)
PASS: gdb.base/sigall.exp: handle SIG53 stop print
PASS: gdb.base/sigall.exp: b handle_53
PASS: gdb.base/sigall.exp: b gen_54
FAIL: gdb.base/sigall.exp: advance to 54 (eof or timeout)
PASS: gdb.base/sigall.exp: handle SIG54 stop print
PASS: gdb.base/sigall.exp: b handle_54
PASS: gdb.base/sigall.exp: b gen_55
FAIL: gdb.base/sigall.exp: advance to 55 (eof or timeout)
PASS: gdb.base/sigall.exp: handle SIG55 stop print
PASS: gdb.base/sigall.exp: b handle_55
PASS: gdb.base/sigall.exp: b gen_56
FAIL: gdb.base/sigall.exp: advance to 56 (eof or timeout)
PASS: gdb.base/sigall.exp: handle SIG56 stop print
PASS: gdb.base/sigall.exp: b handle_56
PASS: gdb.base/sigall.exp: b gen_57
FAIL: gdb.base/sigall.exp: advance to 57 (eof or timeout)
PASS: gdb.base/sigall.exp: handle SIG57 stop print
PASS: gdb.base/sigall.exp: b handle_57
PASS: gdb.base/sigall.exp: b gen_58
FAIL: gdb.base/sigall.exp: advance to 58 (eof or timeout)
PASS: gdb.base/sigall.exp: handle SIG58 stop print
PASS: gdb.base/sigall.exp: b handle_58
PASS: gdb.base/sigall.exp: b gen_59
FAIL: gdb.base/sigall.exp: advance to 59 (eof or timeout)
PASS: gdb.base/sigall.exp: handle SIG59 stop print
PASS: gdb.base/sigall.exp: b handle_59
PASS: gdb.base/sigall.exp: b gen_60
FAIL: gdb.base/sigall.exp: advance to 60 (eof or timeout)
PASS: gdb.base/sigall.exp: handle SIG60 stop print
PASS: gdb.base/sigall.exp: b handle_60
PASS: gdb.base/sigall.exp: b gen_61
FAIL: gdb.base/sigall.exp: advance to 61 (eof or timeout)
FAIL: gdb.base/sigall.exp: handle SIG61 stop print
FAIL: gdb.base/sigall.exp: b handle_61
PASS: gdb.base/sigall.exp: b gen_62
FAIL: gdb.base/sigall.exp: advance to 62
FAIL: gdb.base/sigall.exp: handle SIG62 stop print (timeout)
PASS: gdb.base/sigall.exp: b handle_62
PASS: gdb.base/sigall.exp: b gen_63
FAIL: gdb.base/sigall.exp: advance to 63
FAIL: gdb.base/sigall.exp: handle SIG63 stop print (timeout)
PASS: gdb.base/sigall.exp: b handle_63
PASS: gdb.base/sigall.exp: b gen_TERM
FAIL: gdb.base/sigall.exp: advance to TERM
FAIL: gdb.base/sigall.exp: handle SIGTERM stop print (timeout)
PASS: gdb.base/sigall.exp: b handle_TERM
FAIL: gdb.base/sigall.exp: get signal TERM (timeout)
FAIL: gdb.base/sigall.exp: send signal TERM (timeout)
FAIL: gdb.base/sigall.exp: continue until exit at continue to sigall exit (timeout)
=== gdb Summary ===
# of expected passes 344
# of unexpected failures 22
/opt/uClinux/bfin-uclinux/bin/bfin-uclinux-gdb version 6.6 -nx -b 57600
the bfin-uclinux.exp for serial port debug is:
# Board definition file for board "bfin-uclinux"
load_generic_config "gdbserver"
# multilib_flags should be set to a proper -mcpu= option when
# testing on hardware.
set_board_info multilib_flags ""
set_board_info compiler "[find_gcc]"
# -s80000 is for gcc.dg/dg.exp/trampoline-1.c
set_board_info ldflags "-Wl,-elf2flt=-s80000";
set_board_info rsh_prog rsh
set_board_info rcp_prog rcp
set_board_info stty_prog stty
set_board_info protocol standard
set_board_info username root
set_board_info use_gdb_stub 1
set_board_info noargs 1
set_board_info use_binfmt_flat 1
set_board_info use_serial_debug 1
set_board_info baud "57600"
set_board_info gdb_protocol "remote"
set_board_info gdbserver_serial /dev/ttyBF1
set_board_info gdb_serial /dev/ttyUSB0
# Path to the gdbserver executable, if required.
set_board_info gdb_server_prog "gdbserver"
set_board_info gcc,no_trampolines 1
# Advertise slightly less than we actually have since a few testcases
# really push the limit.
set_board_info gcc,stack_size 75000
set_board_info gdb,socketport ""
set_board_info sockethost /dev/ttyUSB0
set GDBFLAGS "-nx -b 57600"
set_board_info gdb,do_reload_on_run 1
set_board_info gdb,noinferiorio 1
set_board_info gdb,nofileio 1
set_board_info gdb,no_hardware_watchpoints 1
set_board_info gdb,skip_huge_test 1
# BuildToolchain will append hostname
# set_board_info hostname 192.168.0.110
# set_board_info sockethost 192.168.0.110:
set_board_info hostname 10.100.4.50
#set_board_info sockethost 10.100.4.50:
~
There would be need modify gdbserver.exp little which I will check in later.
The whole detailed log is attached.
Follow-ups
--- Mingquan Pan 2010-01-22 05:02:26
If change the serial port from dma mode to pio mode, then it could be more
passes, and remain 3 fails, like:
test@linux-u1ri:~/temp0113/regtest_build41/binutils_build/gdb-test> runtest
--tool gdb --all sigall.exp
Test Run By test on Fri Jan 22 17:34:50 2010
Target is bfin-unknown-uclinux
Host is i686-pc-linux-gnu
=== gdb tests ===
Schedule of variations:
bfin-uclinux
Running target bfin-uclinux
Using /home/test/temp0113/regtest_build41/boards/bfin-uclinux.exp as board
description file for target.
Using
/home/test/work/cruise/checkouts/toolchain/binutils-2.17/gdb/testsuite/config/gdbserver.exp
as tool-and-target-specific interface file.
Running
/home/test/work/cruise/checkouts/toolchain/binutils-2.17/gdb/testsuite/gdb.base/sigall.exp
...
PASS: gdb.base/sigall.exp: handle SIGABRT stop print
PASS: gdb.base/sigall.exp: b handle_ABRT
PASS: gdb.base/sigall.exp: b gen_HUP
PASS: gdb.base/sigall.exp: get signal ABRT
PASS: gdb.base/sigall.exp: send signal ABRT
PASS: gdb.base/sigall.exp: advance to HUP
PASS: gdb.base/sigall.exp: handle SIGHUP stop print
PASS: gdb.base/sigall.exp: b handle_HUP
PASS: gdb.base/sigall.exp: b gen_QUIT
...
PASS: gdb.base/sigall.exp: advance to USR2
PASS: gdb.base/sigall.exp: handle SIGUSR2 stop print
PASS: gdb.base/sigall.exp: b handle_USR2
PASS: gdb.base/sigall.exp: b gen_PWR
PASS: gdb.base/sigall.exp: get signal USR2
PASS: gdb.base/sigall.exp: send signal USR2
FAIL: gdb.base/sigall.exp: advance to PWR (eof or timeout)
PASS: gdb.base/sigall.exp: handle SIGPWR stop print
...
PASS: gdb.base/sigall.exp: b gen_58
PASS: gdb.base/sigall.exp: send signal 57
FAIL: gdb.base/sigall.exp: advance to 58 (eof or timeout)
PASS: gdb.base/sigall.exp: handle SIG58 stop print
PASS: gdb.base/sigall.exp: b handle_58
PASS: gdb.base/sigall.exp: b gen_59
PASS: gdb.base/sigall.exp: send signal 58
PASS: gdb.base/sigall.exp: advance to 59
PASS: gdb.base/sigall.exp: handle SIG59 stop print
PASS: gdb.base/sigall.exp: b handle_59
PASS: gdb.base/sigall.exp: b gen_60
PASS: gdb.base/sigall.exp: send signal 59
PASS: gdb.base/sigall.exp: advance to 60
PASS: gdb.base/sigall.exp: handle SIG60 stop print
PASS: gdb.base/sigall.exp: b handle_60
PASS: gdb.base/sigall.exp: b gen_61
PASS: gdb.base/sigall.exp: send signal 60
PASS: gdb.base/sigall.exp: advance to 61
PASS: gdb.base/sigall.exp: handle SIG61 stop print
PASS: gdb.base/sigall.exp: b handle_61
PASS: gdb.base/sigall.exp: b gen_62
PASS: gdb.base/sigall.exp: send signal 61
PASS: gdb.base/sigall.exp: advance to 62
PASS: gdb.base/sigall.exp: handle SIG62 stop print
PASS: gdb.base/sigall.exp: b handle_62
PASS: gdb.base/sigall.exp: b gen_63
PASS: gdb.base/sigall.exp: send signal 62
PASS: gdb.base/sigall.exp: advance to 63
PASS: gdb.base/sigall.exp: handle SIG63 stop print
PASS: gdb.base/sigall.exp: b handle_63
PASS: gdb.base/sigall.exp: b gen_TERM
PASS: gdb.base/sigall.exp: send signal 63
PASS: gdb.base/sigall.exp: advance to TERM
PASS: gdb.base/sigall.exp: handle SIGTERM stop print
PASS: gdb.base/sigall.exp: b handle_TERM
PASS: gdb.base/sigall.exp: get signal TERM
PASS: gdb.base/sigall.exp: send signal TERM
FAIL: gdb.base/sigall.exp: continue until exit at continue to sigall exit
(timeout)
=== gdb Summary ===
# of expected passes 376
# of unexpected failures 3
/opt/uClinux/bfin-uclinux/bin/bfin-uclinux-gdb version 6.6 -nx -b 57600
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
gdb.sum application/octet-stream 16443 Mingquan Pan
gdb.log text/x-log 115354 Mingquan Pan