AVR stub setup with atmega328p

Can you try and reproduce the exact setup from here (How to debug on Arduino mega 2560 - #2 by maxgerhardt)? On my Windows machine, the COM port has to be given in some special way to make (avr-)GDB happy.

Otherwise if it says ENONET/EPIPE there, you can try some generic stuff: