在调试期间在Eclipse中的OpenOCD中添加变量

时间:2018-12-04 00:28:33

标签: eclipse openocd

我在Eclipse,GCC ARM和OpenOCD方面遇到问题。

编译效果很好,我可以逐步调试,但是我无法添加任何变量来实时监视它。下面是一些带有配置的屏幕截图。

我做错了什么,还是应该在调试过程中预览变量值?

我已经看过很多教程,并且Variable Viewer在所有情况下都可以正常工作,但在我的情况下并非如此。

show configuration
This GDB was configured as follows:
   configure --host=i686-w64-mingw32 --target=arm-none-eabi
             --with-auto-load-dir=$debugdir:$datadir/auto-load
             --with-auto-load-safe-path=$debugdir:$datadir/auto-load
             --with-expat
             --with-gdb-datadir=/tmp/jenkins/jenkins-GCC-7-build_toolchain_docker-775_20180622_1529687456/install-mingw/arm-none-eabi/share/gdb (relocatable)
             --with-jit-reader-dir=/tmp/jenkins/jenkins-GCC-7-build_toolchain_docker-775_20180622_1529687456/install-mingw/lib/gdb (relocatable)
             --without-libunwind-ia64
             --without-lzma
             --without-guile
             --with-separate-debug-dir=/tmp/jenkins/jenkins-GCC-7-build_toolchain_docker-775_20180622_1529687456/install-mingw/lib/debug (relocatable)
             --with-system-gdbinit=/tmp/jenkins/jenkins-GCC-7-build_toolchain_docker-775_20180622_1529687456/install-mingw/i686-w64-mingw32/arm-none-eabi/lib/gdbinit (relocatable)
             --without-babeltrace

Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
none separate
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
Info : STLINK v2 JTAG v32 API v2 SWIM v22 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.266094
Info : stm32f0x.cpu: hardware has 4 breakpoints, 2 watchpoints
Info : accepting 'gdb' connection on tcp/3333
Info : device id = 0x10006442
Info : flash size = 256kbytes
undefined debug reason 7 - target needs reset
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
adapter speed: 950 kHz
target halted due to debug-request, current mode: Thread 
xPSR: 0xc1000000 pc: 0x08001fa8 msp: 0x20008000
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
adapter speed: 4000 kHz
target halted due to breakpoint, current mode: Thread 
xPSR: 0x61000000 pc: 0x2000003a msp: 0x20008000
Warn : keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (1883). Workaround: increase "set remotetimeout" in GDB
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
adapter speed: 950 kHz
target halted due to debug-request, current mode: Thread 
xPSR: 0xc1000000 pc: 0x08001fa8 msp: 0x20008000

info display
There are no auto-display expressions now.
info source
Current source file is ../main.cpp
Compilation directory is C:\embedded\projekty\snow_meter_mbed\snow_meter_mbed\BUILD
Located in C:\embedded\projekty\snow_meter_mbed\snow_meter_mbed\main.cpp
Contains 76 lines.
Source language is c++.
Producer is GNU C++98 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907] -mcpu=cortex-m0 -mthumb -g1 -Os -std=gnu++98 -std=gnu++98 -fno-rtti -fmessage-length=0 -fno-exceptions -fno-builtin -ffunction-sections -fdata-sections -funsigned-char -fno-delete-null-pointer-checks -fomit-frame-pointer.
Compiled with DWARF 2 debugging format.
Does not include preprocessor macro info.

0 个答案:

没有答案