riscv-openocd/src/server
Antonio Borneo 3cac5d279e server/gdb: fix gdb remote monitor cmd on multi-target
Commit 5ebb1bdea1 ("server/gdb: fix return of gdb remote monitor
command") replaces the call to command_run_line() with call to
Jim_EvalObj() but does not properly set the "context".
In multi-target environment, his can cause the erroneously
execution of the command on the wrong target.

Copy from the code in command_run_line() the proper setup before
executing Jim_EvalObj().

Change-Id: I56738c80779082ca146a06c01bc30e28bc835fd3
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reported-by: Bohdan Tymkiv <bohdan200@gmail.com>
Fixes: 5ebb1bdea1 ("server/gdb: fix return of gdb remote monitor command")
2022-05-04 09:06:36 -07:00
..
Makefile.am From upstream (#684) 2022-03-03 10:03:55 -08:00
gdb_server.c server/gdb: fix gdb remote monitor cmd on multi-target 2022-05-04 09:06:36 -07:00
gdb_server.h Revert unnecessary change. 2018-06-25 14:09:47 -07:00
ipdbg.c server: change prototype of add_service() 2022-03-19 09:05:27 +00:00
ipdbg.h From upstream (#620) 2021-06-11 13:01:55 -07:00
rtt_server.c openocd: include config.h in every file .c 2022-03-26 13:32:57 +00:00
rtt_server.h Add initial RTT support 2020-12-02 23:15:52 +00:00
server.c Merge branch 'master' into from_upstream 2022-04-11 11:13:20 -07:00
server.h keep-alive: drop link with log framework 2022-03-19 09:10:39 +00:00
startup.tcl From upstream (#620) 2021-06-11 13:01:55 -07:00
tcl_server.c server: change prototype of add_service() 2022-03-19 09:05:27 +00:00
tcl_server.h server: free strduped port numbers 2018-03-15 17:08:53 +00:00
telnet_server.c server: change prototype of add_service() 2022-03-19 09:05:27 +00:00
telnet_server.h server: free strduped port numbers 2018-03-15 17:08:53 +00:00