)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":1001422,"name":"Bohdan Tymkiv","email":"bohdan200@gmail.com","username":"bhdt"},"change_message_id":"1cad2ed93cafcac6578ed0e765c9c5f6d53c8691","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":2,"id":"1e0bb905_b1edc89c","updated":"2022-05-04 12:28:22.000000000","message":"It seems this change introduced a bug - on multi-core systems qRcmd commands are now executed with the wrong context. The get_current_target(CMD_CTX) in flash driver\u0027s command handlers returns the wrong target - not the target GDB is connected to.\n\nWrapping call to Jim_EvalObj with Jim_DeleteAssocData / Jim_SetAssocData as shown below resolves the issue but I am not sure this is the correct fix.\n\n struct command_context *old_context \u003d Jim_GetAssocData(cmd_ctx-\u003einterp, \"context\");\n Jim_DeleteAssocData(cmd_ctx-\u003einterp, \"context\");\n Jim_SetAssocData(cmd_ctx-\u003einterp, \"context\", NULL, cmd_ctx);\n\n int retval \u003d Jim_EvalObj(cmd_ctx-\u003einterp, Jim_NewStringObj(cmd_ctx-\u003einterp, cmd, -1));\n\n Jim_DeleteAssocData(cmd_ctx-\u003einterp, \"context\");\n Jim_SetAssocData(cmd_ctx-\u003einterp, \"context\", NULL, old_context);","commit_id":"5ebb1bdea1dfff9cce430bd17d08e340eea38e03"}]}
