-1

Possible Duplicate:
Can I set a breakpoint on 'memory access' in GDB?

I am mainly working on Windows and using Visual Studio as debugger, it provide the functionality to add a break point on memory location. Whenever that memory changed it stop the execution. Anyone, know same kind of functionality in gdb on Linux.

Community
  • 1
  • 1
CrazyC
  • 1,840
  • 6
  • 39
  • 60

2 Answers2

3

The manual section called "Setting Watchpoints" is probably what you're looking for.

Lightness Races in Orbit
  • 378,754
  • 76
  • 643
  • 1,055
1

Yes, such functionality is called Watchpoints in gdb

ks1322
  • 33,961
  • 14
  • 109
  • 164