]> git.sur5r.net Git - openocd/commit
gdb_server: remove target_handle_event from gdb event callback
authorHsiangkai Wang <hsiangkai@gmail.com>
Wed, 1 May 2013 02:23:38 +0000 (10:23 +0800)
committerFreddie Chopin <freddie.chopin@gmail.com>
Mon, 6 May 2013 14:44:41 +0000 (14:44 +0000)
commit7eb0e3105908dae36841daf1dca0b1a4be50e4d3
treec5f1d5dae0ccbcea2389d21473412c3a57b4e622
parentc765ef0ff6706736da4df1e832063b7ffefe984b
gdb_server: remove target_handle_event from gdb event callback

In target_call_event_callbacks(), it will execute

1. target_handle_event (use Jim_EvalObj() to evaluate event
   statements in config files)
2. call user registered callbacks

Before calling user registered callbacks, target_handle_event has
been executed.  So, there is no need to call target_handle_event()
in gdb event callback.  It will execute event statements in config
files twice.

Change-Id: I84629e324fa3eb909907badf2319b4138ba89f07
Signed-off-by: Hsiangkai Wang <hsiangkai@gmail.com>
Reviewed-on: http://openocd.zylin.com/1372
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
src/server/gdb_server.c