- 论坛徽章:
- 0
|
我先在目标板上运行gdbserver:
目标板的IP是:192.168.2.210
/tmp # ./gdbserver :3456 mini_snmpd
Process mini_snmpd created; pid = 297
Listening on port 3456
然后我在PC上运行GDB
$ /opt/mips-gdb/bin/mips-linux-uclibc-gdb mini_snmpd
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-unknown-linux-gnu --target=mips-linux-uclibc"...
(gdb) target remote 192.168.2.210:3456
Remote debugging using 192.168.2.210:3456
[New Thread 293]
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
0x2aaa8af0 in ?? ()
(gdb) list
303 }
304
305
306
307 /* -----------------------------------------------------------------------------
308 * Main program
309 */
310
311 int main(int argc, char *argv[])
312 {
(gdb) run -t 4
Starting program: /home/liufeifei/t44/t44_src/t44/apps/mini_snmpd/mini_snmpd -t 4
Don't know how to run. Try "help target".
为什么run不启动呢?盼回复,非常感谢。 |
|