Jump to content
  • Advertisement


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


Watchpoints in GDB?

This topic is 5229 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!