问题:Qt Creator 用gdb远程调试不了,提示
not in executable format: File format is ambiguous.
Matching formats: elf32-littlearm-symbian elf32-littlearm.
Use "set gnutarget format-name" to specify the format.
原来Qt Creator编译正常,X86上Qt Creator自带的gdb 本地调试没问题。
现在我是想做交叉编译后,在ubuntu上远程调试ARM板上Qt程序。
1.我用命令行:ARM板上用 ./arm-linux-gdb 192.168.10.156:1234 test -qws
ubuntu上用
gdb test
(gdb) target remote 192.168.10.153:1234
Remote debugging using 192.168.10.156:1234
warning: Target-supplied registers are not supported by the current architecture
Remote 'g' packet reply is too long: 0000000044feffbe50feffbe0000000000000000000000000000000000000000000000000000000000000000000000000000000040fdffbe00000000d05efdb6100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
这样似乎是连上板子上gdb
板子打印出:
Remote debugging from host 192.168.10.153
readchar: Got EOF
Remote side has terminated connection. GDBserver will reopen the connection.
Listening on port 1234
看样子用命令行调试是正常的吧????
2.用Qt Creator
如上图,设置后按开始调试,就是
not in executable format: File format is ambiguous.
Matching formats: elf32-littlearm-symbian elf32-littlearm.
Use "set gnutarget format-name" to specify the format.
不管我GNU目标怎和体系结构怎么选都是不行的,问题何在????????工程有在调试版本模式下编译。