cancel
Showing results for 
Search instead for 
Did you mean: 

How to set up a breakpoint monitoring an address?

QHa.1
Associate

Hey all,

I'm trying to verify register values in my project, as per this link: https://www.freertos.org/Debugging-Hard-Faults-On-Cortex-M-Microcontrollers.html

I'm attempting to open the break point window in the debugger, and manually define an execution or access break point at that address, but having difficulties in creating a break point at an address.

If someone could guide me on how to do so, that would be much appreciated!

Cheers :)

1 ACCEPTED SOLUTION

Accepted Solutions

I believe you are talking about data breakpoints, afaik these are called "watchpoints" in Eclipse and are separately listed from program breakpoints.

Also, if you want to watch an address without having an explicit variable sitting on that address in C, in gdb, you'd dereference the address

(gdb) watch *0x20000000
Hardware watchpoint 1: *0x20000000

I don't use the eclipsoids but I'd guess this might be similar.

JW

View solution in original post

2 REPLIES 2

I believe you are talking about data breakpoints, afaik these are called "watchpoints" in Eclipse and are separately listed from program breakpoints.

Also, if you want to watch an address without having an explicit variable sitting on that address in C, in gdb, you'd dereference the address

(gdb) watch *0x20000000
Hardware watchpoint 1: *0x20000000

I don't use the eclipsoids but I'd guess this might be similar.

JW

QHa.1
Associate

Looks like that's exactly what I'm looking for, thanks!

Found this useful link to help others who might stumble past: https://mcuoneclipse.com/2012/04/29/watchpoints-data-breakpoints-in-mcu10/