gdb crashes when you set a break point at the end of the code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Arm Embedded Toolchain |
Fix Released
|
Critical
|
Terry Guo |
Bug Description
The following code will crash GDB with the following when you set a break point at line with the symbol loop. I am using GDB with Eclipse and openocd-0.8.0 on windows 7 system(64 bit). On Linux I have not encountered this problem. Also removing the symbol loop prevents the crash from happening.
Eclipse version:
Version: Kepler Service Release 2
Build id: 20140224-0627
gdb version:
GNU gdb (GNU Tools for ARM Embedded Processors) 7.6.0.20140529-cvs
openocd version:
Open On-Chip Debugger 0.8.0 (2014-04-28-08:39)
Code:
.text
.global main
main:
nop
mov r4, #5 // Load register r4 with the value 5
mov r5, #4 // Load register r5 with the value 4
add r0, r4, r5 // Add r5 and r4 and store in r0
loop: b main
error displayed in console:
/home/build/
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) [answered Y; input not from terminal]
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Hope this helps
Brent
Changed in gcc-arm-embedded: | |
assignee: | nobody → Terry Guo (terry.guo) |
Changed in gcc-arm-embedded: | |
milestone: | 4.8-2015-q3-update → 4.9-2014-q4-major |
no longer affects: | gcc-arm-embedded/4.9 |
no longer affects: | gcc-arm-embedded/4.8 |
Thanks for reporting. Is the final elf file debugged by gdb generated from a C source file or from the assembly file mentioned in description? I am trying to reproduce the issue.