gdbserver 문제 ...
빌드 서버의 GDB랑 타겟보드의 GDBSERVER 를 이용해서 멜티쓰레드 프로그램을 디비깅중에 아래와 같은 에러가 발생했습니다.
혹시 해결 방법을 알고계시는분 있으시면 조언 부탁합니다.
*** Build Server Side ***
[root@JH src]# mipsel-linux-gdb mpthread
GNU gdb 20040805
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i386-pc-linux-gnu --target=mipsel-linux"...
(gdb) target remote 10.10.17.22:5050
Remote debugging using 10.10.17.22:5050
0x2aaa9078 in ?? ()
(gdb) b main
Breakpoint 1 at 0x4036a4: file mpthread.c, line 1266.
(gdb) b test1
Breakpoint 2 at 0x401640: file mpthread.c, line 156.
(gdb) b test2
Breakpoint 3 at 0x4017d0: file mpthread.c, line 198.
(gdb) cont
Continuing.
[New Thread 1024]
[Switching to Thread 1024]
Breakpoint 1, main (argc=1, argv=0x7fff7e14) at mpthread.c:1266
1266 mlockall( (MCL_CURRENT | MCL_FUTURE) );
(gdb) cont
Continuing.
Watchdog has expired. Target detached.
(gdb)
*** Target Board Side ***
# gdbserver 150.150.17.225:5050 mpthread
Process mpthread created; pid = 51
Listening on port 5050
Remote debugging from host 150.150.17.225
thread getmsg err: no event message for getmsg
Bus error
#


댓글 달기