Watchpoints in GDB?

Started by
-1 comments, last by RegularKid 20 years, 1 month ago
Hi! Ok, so I''m using GDB with my program (GBA rom) and am trying to fix a crash bug. Somehow my RAM is getting corrupted, but I''m not sure by what. I know that some debuggers have the ability to put "watchpoints" in where it will break execution when a certain address is written to. Then, once in the break, you can examine the callstack and find out what exactly is changing that memory address. So, I want to do the same type of thing here: put a watchpoint on an address in RAM and just run the game and wait for the break to happen whenever this memory address is written to. Is this possible in GDB? If not, anyone know of a good way to debug something like this? Thanks!

This topic is closed to new replies.

Advertisement