这是eclipse / cdt似乎正在做的事情(即,不必要地引用myVariable
变量[请参见下面的899,440
],然后在结束引号之前添加一个不必要的换行符引起解析错误):
895,442 (gdb)
899,440 103-data-evaluate-expression --thread 1 --frame 0 "myVariable
"
899,440 104-var-create --thread 1 --frame 0 - * "myVariable
"
899,440 103^error,msg="Problem parsing arguments: data-evaluate-expression \"myVariable"
899,441 (gdb)
899,441 &"\"\n"
899,441 &"Undefined command: \"\". Try \"help\".\n"
899,441 ^error,msg="Undefined command: \"\". Try \"help\"."
899,441 (gdb)
899,441 104^error,msg="Problem parsing arguments: var-create - * \"myVariable"
899,441 (gdb)
899,441 &"\"\n"
899,441 &"Undefined command: \"\". Try \"help\".\n"
899,441 ^error,msg="Undefined command: \"\". Try \"help\"."
899,441 (gdb)
与gdb交互时,可能是什么原因导致eclipse / cdt执行此操作?
Eclipse版本信息:
Eclipse IDE for C/C++ Developers
Version: 2018-12 (4.10.0)
Build id: 20181214-0600
gdb版本信息:
GNU gdb (GDB) 8.1
我很困惑。