Re: [OpenOCD-devel] XMC4800 Relax Kit - GDB ignores breakpoints

2019-11-05 Thread Tommy Murphy
Just looking at your logs again and the first breakpoint that fires is at main() 0x08000356. Is this a temporary (hardware) breakpoint that is specified automatically (e.g. via .gdbinit or implicitly by gdb)? 0x08000358 in main () at /home/matthias.stadler/GIT/robots/prototyping/xmc-test/Source

[OpenOCD-devel] [openocd:tickets] #256 `gdb_actual_connections` is never initialized?

2019-11-05 Thread Tommy Murphy via OpenOCD-devel
I'll leave it to one of the openocd maintainers to make a call on this - i.e. to close it as invalid or to propose that the variable should be explicitly initialized to 0. --- ** [tickets:#256] `gdb_actual_connections` is never initialized?** **Status:** new **Milestone:** 0.9.0 **Created:**

[OpenOCD-devel] [openocd:tickets] #256 `gdb_actual_connections` is never initialized?

2019-11-05 Thread Robin Kuzmin via OpenOCD-devel
Agreed. [Confirmation](https://stackoverflow.com/a/16016164/6362941). Feel free to resolve as *false bug*. --- ** [tickets:#256] `gdb_actual_connections` is never initialized?** **Status:** new **Milestone:** 0.9.0 **Created:** Tue Nov 05, 2019 04:47 PM UTC by Robin Kuzmin **Last Updated:** Tue

Re: [OpenOCD-devel] XMC4800 Relax Kit - GDB ignores breakpoints

2019-11-05 Thread Matthias Stadler
Thank you, i also tried it with the GIT head build... unfortunately same behavior. On November 5, 2019 18:02:45 Tommy Murphy wrote: Seems a bit odd to me. Sometimes it's using a hardware breakpoint Debug: 3162 10991 cortex_m.c:1228 cortex_m_set_breakpoint(): BPID: 0, Type: 0, Address: 0x0800

[OpenOCD-devel] [openocd:tickets] #256 `gdb_actual_connections` is never initialized?

2019-11-05 Thread Tommy Murphy via OpenOCD-devel
IIRC the C language standard requires that global variables are automatically initialized to 0 if not explicitly initialized. Personally I would prefer an explicit init to 0 here just for clarity (e.g. to avoid the confusion caused in this ticket). This code obviously depends on the implicit in

Re: [OpenOCD-devel] XMC4800 Relax Kit - GDB ignores breakpoints

2019-11-05 Thread Tommy Murphy
Seems a bit odd to me. Sometimes it's using a hardware breakpoint Debug: 3162 10991 cortex_m.c:1228 cortex_m_set_breakpoint(): BPID: 0, Type: 0, Address: 0x08000354 Length: 2 (set=1) Debug: 3163 10991 breakpoints.c:104 breakpoint_add_internal(): added hardware breakpoint at 0x08000354 of length

[OpenOCD-devel] [openocd:tickets] #256 `gdb_actual_connections` is never initialized?

2019-11-05 Thread Robin Kuzmin via OpenOCD-devel
--- ** [tickets:#256] `gdb_actual_connections` is never initialized?** **Status:** new **Milestone:** 0.9.0 **Created:** Tue Nov 05, 2019 04:47 PM UTC by Robin Kuzmin **Last Updated:** Tue Nov 05, 2019 04:47 PM UTC **Owner:** nobody Looks like the variable `gdb_actual_connections` is never i

Re: [OpenOCD-devel] XMC4800 Relax Kit - GDB ignores breakpoints

2019-11-05 Thread Tommy Murphy
You probably really need to post the verbose openocd log (openocd -d ...) to help people to comment. ___ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel

[OpenOCD-devel] XMC4800 Relax Kit - GDB ignores breakpoints

2019-11-05 Thread Matthias Stadler
Hi, I'm working on a project with the XMC4800 and started debugging the evaluation board XMC4800 Relax Kit v1 with OpenOCD and GDB. Unfortunately breakpoints are ignored, sometimes (randomly) they are hit. Attached you will find the OpenOCD and GDB output log. I fiddled with different SWD clock fr