Archived

This topic is now archived and is closed to further replies.

RegularKid

Watchpoints in GDB?

Recommended Posts

RegularKid    139
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!

Share this post


Link to post
Share on other sites