도와주세요!!
글 수 15,339
2006.04.19 15:31:43 (*.109.175.77)
9379
안녕하세요. 홈페이지에 강좌로 나와있는 GDB사용법을 따라하다가 안되서 문의드립니다.
GDB를 Cross Compile까지는 하였는데 동작시켜보니 정상적이지 않은것 같습니다.
gdbserver를 타겟에서 실행하면
sh-2.05a# ./gdbserver 192.168.3.100:6161 ./test
Process ./test created; pid = 434
Listening on port 6161
Remote debugging from host 192.168.3.100
이렇게 나오구요.
호스트에서 gdb를 실행하면
[host]$ ./gdb test
GNU gdb 6.4
Copyright 2005 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=i686-pc-linux-gnu --target=ppc-linux-gnu"...
(gdb) target remote 192.168.3.115:6161
Remote debugging using 192.168.3.115:6161
0x3000f0c4 in ?? ()
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
(gdb)
이렇게 나오고 그냥 정지해있습니다. 제가 test program에 print문을 넣었는데, 이건 host에서 보이나요??
아니면 타겟에서 보이나요?? 도움좀 부탁드립니다. 꾸벅
GDB를 Cross Compile까지는 하였는데 동작시켜보니 정상적이지 않은것 같습니다.
gdbserver를 타겟에서 실행하면
sh-2.05a# ./gdbserver 192.168.3.100:6161 ./test
Process ./test created; pid = 434
Listening on port 6161
Remote debugging from host 192.168.3.100
이렇게 나오구요.
호스트에서 gdb를 실행하면
[host]$ ./gdb test
GNU gdb 6.4
Copyright 2005 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=i686-pc-linux-gnu --target=ppc-linux-gnu"...
(gdb) target remote 192.168.3.115:6161
Remote debugging using 192.168.3.115:6161
0x3000f0c4 in ?? ()
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
(gdb)
이렇게 나오고 그냥 정지해있습니다. 제가 test program에 print문을 넣었는데, 이건 host에서 보이나요??
아니면 타겟에서 보이나요?? 도움좀 부탁드립니다. 꾸벅