-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,790
  • 6
  • 35
  • 58

2 Answers2

3

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

Lightness Races in Orbit
  • 369,052
  • 73
  • 620
  • 1,021
1

Yes, such functionality is called Watchpoints in gdb

ks1322
  • 31,484
  • 13
  • 100
  • 154