gdb deletes watchpoint for local variables in scope

Simon Sobisch simonsobisch@gnu.org
Tue Jan 24 15:29:02 GMT 2023


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

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

Simon


More information about the Gdb mailing list