One unfortunate aspect of gdb is it doesn’t automatically copy new versions of the executable, or at least not that I could find. This can be handled by entering an ‘escaped’ command in gdb, which is ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results