foss-for-synopsys-dwc-arc-processors/openocd — pull request #5 by anthony-kolesov (2013-08-27 09:52:29+00:00)
Title: gdb_server: Do not set gdb_con->sync to true for new connections

In OpenOCD there is a command "monitor gdb_sync" which makes next stepi command to be ignored while GDB still will get an updated target state. This command sets gdb_connection->sync field to true to notify that stepi should be ignored. This field is set to true for all new connection and is set to false after first "continue" command. However if first resume command is stepi/nexti then it will be ignored and result will confuse GDB client, it will report that target received signal SIGINT. This patch sets this field to false for new connections, thus stepi/nexti will work properly when it is a first resume command.

Signed-off-by: Anton Kolesov