What procedures should I implement to prevent a device reset on a remote target when connecting and disconnecting different GDB sessions? Assume I run program A, exit GDB and then load a program B in a new GDB session. My hardware would reset. Is there any logical procedure to follow with program A prior to termination that could possibly prevent the reset with the knowledge I will connect program 2.

Since Program A is always consistent, and program B is always different, it is hard to just compile them into one file as this process happens many thousands of times in a test-suite and compiling program A is complicated since it is a highly optimized file vs. Program B we disable optimization.

0

There are 0 answers