I need to check a variable to find out if it is set correctly, which might be happening after several loops.
What I am doing now is something like follows:
(gdb) b myfile.cpp:180
(gdb) c
(gdb) p decoder.m_msg
(gdb) c
(gdb) p decoder.m_msg
(gdb) c
...
Can I have this variable decoder.m_msg
automatically printed every time the program breaks?