我正在浏览Superspeed Explorer Kit用户指南 http://www.cypress.com/file/133836/download(第36页)调试示例程序'USBBulkSourceSinkLED'我收到错误。
98 ^ error,msg =“\”monitor \“命令不支持此目标。” error,msg =“当你的目标是'exec'时,你不能这样做”
95 target remote localhost:3333
&"target remote localhost:3333\n"
target remote localhost:3333
&"localhost:3333: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.\n"
localhost:3333: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
95^error,msg="localhost:3333: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
(gdb)
96 monitor reset halt
&"monitor reset halt\n"
&"\"monitor\" command not supported by this target.\n"
monitor reset halt
"monitor" command not supported by this target.
96^error,msg="\"monitor\" command not supported by this target."
(gdb)
97 monitor mww 0xFFFFF014 0xFFFFFFFF
monitor mww 0xFFFFF014 0xFFFFFFFF
"monitor" command not supported by this target.
&"monitor mww 0xFFFFF014 0xFFFFFFFF\n"
&"\"monitor\" command not supported by this target.\n"
97^error,msg="\"monitor\" command not supported by this target."
(gdb)
98 monitor mww 0x40000000 0xE3A00015
&"monitor mww 0x40000000 0xE3A00015\n"
&"\"monitor\" command not supported by this target.\n"
monitor mww 0x40000000 0xE3A00015
"monitor" command not supported by this target.
98^error,msg="\"monitor\" command not supported by this target."
(gdb)
99 monitor mww 0x40000004 0xEE090F31
&"monitor mww 0x40000004 0xEE090F31\n"
monitor mww 0x40000004 0xEE090F31
&"\"monitor\" command not supported by this target.\n"
"monitor" command not supported by this target.
99^error,msg="\"monitor\" command not supported by this target."
(gdb)
100 monitor mww 0x40000008 0xE240024F
&"monitor mww 0x40000008 0xE240024F\n"
&"\"monitor\" command not supported by this target.\n"
100^error,msg="\"monitor\" command not supported by this target."
(gdb)
monitor mww 0x40000008 0xE240024F
"monitor" command not supported by this target.
101 monitor mww 0x4000000C 0xEE090F11
&"monitor mww 0x4000000C 0xEE090F11\n"
&"\"monitor\" command not supported by this target.\n"
101^error,msg="\"monitor\" command not supported by this target."
(gdb)
monitor mww 0x4000000C 0xEE090F11
"monitor" command not supported by this target.
102 monitor reg pc 0x40000000
&"monitor reg pc 0x40000000\n"
monitor reg pc 0x40000000
&"\"monitor\" command not supported by this target.\n"
"monitor" command not supported by this target.
102^error,msg="\"monitor\" command not supported by this target."
(gdb)
103 si
&"si\n"
&"The program is not being run.\n"
si
The program is not being run.
103^error,msg="The program is not being run."
(gdb)
104 si
&"si\n"
si
&"The program is not being run.\n"
The program is not being run.
104^error,msg="The program is not being run."
(gdb)
105 si
&"si\n"
&"The program is not being run.\n"
si
The program is not being run.
105^error,msg="The program is not being run."
(gdb)
106 si
&"si\n"
&"The program is not being run.\n"
si
The program is not being run.
106^error,msg="The program is not being run."
(gdb)
107-environment-directory "C:/Users/Jasmin Maria Jose/Desktop/FST/Workspace/USBBulkSourceSinkLED" "C:/Users/Jasmin Maria Jose/Desktop/FST/Workspace/USBBulkSourceSinkLED/Debug"
107^done,source-path="C:/Users/Jasmin Maria Jose/Desktop/FST/Workspace/USBBulkSourceSinkLED;C:/Users/Jasmin Maria Jose/Desktop/FST/Workspace/USBBulkSourceSinkLED/Debug;$cdir;$cwd"
(gdb)
108 info threads
&"info threads\n"
~"No threads.\n"
108^done
(gdb)
109-data-list-register-names
109^done,register-names=["r0","r1","r2","r3","r4","r5","r6","r7","r8","r9","r10","r11","r12","sp","lr","pc","f0","f1","f2","f3","f4","f5","f6","f7","fps","cpsr","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""]
(gdb)
110-break-insert -t main
110^done,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x40004a00",func="main",file="../cyfxbulksrcsink.c",fullname="c:\\users\\jasmin maria jose\\desktop\\fst\\workspace\\usbbulksourcesinkled\\cyfxbulksrcsink.c",line="1143",thread-groups=["i1"],times="0",original-location="main"}
(gdb)
111-stack-info-depth
111^error,msg="No registers."
(gdb)
112-stack-info-depth
112^error,msg="No registers."
(gdb)
113-stack-list-frames
113^error,msg="No registers."
(gdb)
114-stack-list-frames 0 1
114^error,msg="No registers."
(gdb)
115 load
&"load\n"
load
&"You can't do that when your target is `exec'\n"
You can't do that when your target is `exec'
115^error,msg="You can't do that when your target is `exec'"
(gdb)
答案 0 :(得分:0)
这里的问题是target remote
命令失败:
&"localhost:3333: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.\n"
monitor
命令仅适用于遥控器,它对本地目标没有意义。而且,当target remote
失败时,您仍然使用exec
目标。
答案 1 :(得分:0)
当我尝试调试具有少量头文件错误(不包括适当的头文件)的代码时,我收到此错误。在解决所有错误和警告后,调试进展顺利。