You have found an interesting case here indeed. As a principle it should be possible to connect via GDB regardless of the target state.
Since that state, in general, can include a case where the target's flash is not probable and we need the flash layout upon connection, I think we need a more general solution than the one you have below. Also, I think it is good, in general, to require the target to be halted before the flash is probed GDB aside. I would like a robust and simple solution. This is not a common problem, it is the first time that it has been spotted. A solution that made the general case harder would not be desirable. Did you consider adding target config script code to a pre connect GDB event? Such an event could reset init the target if the flash is not probe-able. -- Meet Zylin at ESC 2010 San Jose April 26 - 30. 2010 http://www.zylin.com/events_esc2010.html Øyvind Harboe US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
