I have a extremely complicated shell script, within which it calls a C++ program I want to debug via GDB. It is extremely hard to separate this c++ program from the shell si
In addition to options mentioned by @diverscuba23, you could do the following:
gdb --args bash