gdb deletes watchpoint for local variables in scope

Simon Sobisch
Tue Jan 24 15:29:02 GMT 2023

If you did not do that already try adding
    -O -ggdb
to your clang invocation.

* Does it make any difference if you compile with gcc?
* Does "print q" still return something - and the same as before
   "watch q"?


More information about the Gdb mailing list