Commit 3cac5d27 authored by Antonio Borneo's avatar Antonio Borneo Committed by Tim Newsome
Browse files

server/gdb: fix gdb remote monitor cmd on multi-target

Commit 5ebb1bde

 ("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: default avatarAntonio Borneo <borneo.antonio@gmail.com>
Reported-by: default avatarBohdan Tymkiv <bohdan200@gmail.com>
Fixes: 5ebb1bde ("server/gdb: fix return of gdb remote monitor command")
parent 8e1064f1
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment