)]}'
{"id":"openocd~master~I4279b80853db55b1f0c7f930883fcd7f16cae00c","project":"openocd","branch":"master","attention_set":{"1001667":{"account":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"last_update":"2026-03-28 15:41:17.000000000","reason":"\u003cGERRIT_ACCOUNT_1000021\u003e replied on the change","reason_account":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"}}},"removed_from_attention_set":{"1000021":{"account":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"last_update":"2026-03-28 15:41:17.000000000","reason":"\u003cGERRIT_ACCOUNT_1000021\u003e replied on the change","reason_account":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"}}},"hashtags":[],"change_id":"I4279b80853db55b1f0c7f930883fcd7f16cae00c","subject":"server: Allow OpenOCD to shut down with user-specified code","status":"NEW","created":"2026-01-05 06:41:54.000000000","updated":"2026-03-28 15:41:17.000000000","submit_type":"CHERRY_PICK","mergeable":true,"submittable":false,"total_comment_count":21,"unresolved_comment_count":3,"has_review_started":true,"meta_rev_id":"23e9d2259982d55977924cf9190bf49f4d2fdd7e","_number":9381,"owner":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"actions":{},"labels":{"Verified":{"approved":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"all":[{"tag":"autogenerated:jenkins-gerrit-trigger","value":1,"date":"2026-03-11 17:36:38.000000000","permitted_voting_range":{"min":-1,"max":1},"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]}],"values":{"-1":"Fails"," 0":"No score","+1":"Verified"},"description":"","default_value":0},"Code-Review":{"all":[{"value":0,"permitted_voting_range":{"min":-1,"max":1},"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]}],"values":{"-2":"This shall not be merged","-1":"I would prefer this is not merged as is"," 0":"No score","+1":"Looks good to me, but someone else must approve","+2":"Looks good to me, approved"},"description":"","default_value":0}},"removable_reviewers":[],"reviewers":{"CC":[{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},{"_account_id":1002047,"name":"Evgeniy Naydanov","email":"eugnay@gmail.com","username":"en-sc"}],"REVIEWER":[{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2026-01-05 06:42:03.000000000","updated_by":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"reviewer":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"state":"CC"},{"updated":"2026-01-05 06:43:12.000000000","updated_by":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"reviewer":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"state":"REVIEWER"},{"updated":"2026-01-05 10:58:54.000000000","updated_by":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"reviewer":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"state":"CC"},{"updated":"2026-01-21 14:03:37.000000000","updated_by":{"_account_id":1002047,"name":"Evgeniy Naydanov","email":"eugnay@gmail.com","username":"en-sc"},"reviewer":{"_account_id":1002047,"name":"Evgeniy Naydanov","email":"eugnay@gmail.com","username":"en-sc"},"state":"CC"}],"messages":[{"id":"698679d536db7b859e4a823971ae08a858879177","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"real_author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"date":"2026-01-05 06:41:54.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"0ab8c6d06be657f6c9b594287a120c457a8da37a","tag":"autogenerated:jenkins-gerrit-trigger","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2026-01-05 06:43:12.000000000","message":"Patch Set 1: Verified-1\n\nBuild Failed \n\nhttps://build.openocd.org/job/openocd-gerrit-build/21616/ : FAILURE\n\nhttps://build.openocd.org/job/openocd-gerrit/22503/ : FAILURE","accounts_in_message":[],"_revision_number":1},{"id":"5dd80c5b47a47834ac50591ef04fe7838b164c58","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"real_author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"date":"2026-01-05 06:46:12.000000000","message":"Uploaded patch set 2.\n\nOutdated Votes:\n* Verified-1 (copy condition: \"changekind:NO_CHANGE\")\n","accounts_in_message":[],"_revision_number":2},{"id":"1068e188419a56ba563d3b6d6c930ddbba33f2fb","tag":"autogenerated:jenkins-gerrit-trigger","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2026-01-05 07:13:34.000000000","message":"Patch Set 2: Verified+1\n\nBuild Successful \n\nhttps://build.openocd.org/job/openocd-gerrit-build/21617/ : SUCCESS\n\nhttps://build.openocd.org/job/openocd-gerrit/22504/ : SUCCESS","accounts_in_message":[],"_revision_number":2},{"id":"7aa505fc83e215bbfd4454095cf7c6c02d5afd66","author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"real_author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"date":"2026-01-05 10:58:54.000000000","message":"Patch Set 2:\n\n(4 comments)","accounts_in_message":[],"_revision_number":2},{"id":"5d8190f40c095e1f73a71cc40ffc325f9f34544e","author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"real_author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"date":"2026-01-05 11:12:37.000000000","message":"Patch Set 2:\n\n(2 comments)","accounts_in_message":[],"_revision_number":2},{"id":"40b96a78bffd52a356ceac8fcd40f1b1e2081cdc","author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"real_author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"date":"2026-01-05 12:42:44.000000000","message":"Patch Set 2:\n\n(1 comment)","accounts_in_message":[],"_revision_number":2},{"id":"0b14942810e52575d941e14c929fa1d9263b7053","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"real_author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"date":"2026-01-07 07:34:38.000000000","message":"Uploaded patch set 3.\n\nOutdated Votes:\n* Verified+1 (copy condition: \"changekind:NO_CHANGE\")\n","accounts_in_message":[],"_revision_number":3},{"id":"e8795d84f499e139d598f37b72ccdef0dbe83a6f","author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"real_author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"date":"2026-01-07 07:34:52.000000000","message":"Patch Set 2:\n\n(3 comments)","accounts_in_message":[],"_revision_number":2},{"id":"f797a63c22badb3b244121a16fc0cb75a6623426","tag":"autogenerated:jenkins-gerrit-trigger","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2026-01-07 08:07:23.000000000","message":"Patch Set 3: Verified+1\n\nBuild Successful \n\nhttps://build.openocd.org/job/openocd-gerrit-build/21632/ : SUCCESS\n\nhttps://build.openocd.org/job/openocd-gerrit/22519/ : SUCCESS","accounts_in_message":[],"_revision_number":3},{"id":"e4438f6146ad3cb27a85f2cc131874e3c82b1061","author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"real_author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"date":"2026-01-07 08:10:41.000000000","message":"Patch Set 3:\n\n(1 comment)","accounts_in_message":[],"_revision_number":3},{"id":"7e4d9d4207866ec4330b44c90aff9a68a4f632fd","author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"real_author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"date":"2026-01-28 06:52:45.000000000","message":"Patch Set 3:\n\n(1 comment)","accounts_in_message":[],"_revision_number":3},{"id":"185db9743edc13133f3f7d00547efcf1f15d0234","author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"real_author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"date":"2026-03-08 10:12:42.000000000","message":"Patch Set 3:\n\n(2 comments)","accounts_in_message":[],"_revision_number":3},{"id":"f4d073f15df2864b36b2a7dbcdc34b6ca26e86e4","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"real_author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"date":"2026-03-11 15:58:37.000000000","message":"Uploaded patch set 4.\n\nOutdated Votes:\n* Verified+1 (copy condition: \"changekind:NO_CHANGE\")\n","accounts_in_message":[],"_revision_number":4},{"id":"060a855446c900df5dac2700a12d2b07e37235d8","tag":"autogenerated:jenkins-gerrit-trigger","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2026-03-11 16:03:07.000000000","message":"Patch Set 4: Verified-1\n\nBuild Failed \n\nhttps://build.openocd.org/job/openocd-gerrit-build/21977/ : FAILURE\n\nhttps://build.openocd.org/job/openocd-gerrit/22873/ : FAILURE","accounts_in_message":[],"_revision_number":4},{"id":"943d3ad1683e198fc96ae2041ecb3eb1237353ce","author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"real_author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"date":"2026-03-11 16:05:54.000000000","message":"Patch Set 4:\n\n(2 comments)","accounts_in_message":[],"_revision_number":4},{"id":"8a1cf2d8895ace5bdce8953ebae8023089e32cef","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"real_author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"date":"2026-03-11 16:09:09.000000000","message":"Uploaded patch set 5.\n\nOutdated Votes:\n* Verified-1 (copy condition: \"changekind:NO_CHANGE\")\n","accounts_in_message":[],"_revision_number":5},{"id":"dc6517d871706c69241a78c0474cd61e11dee070","tag":"autogenerated:jenkins-gerrit-trigger","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2026-03-11 17:36:38.000000000","message":"Patch Set 5: Verified+1\n\nBuild Successful \n\nhttps://build.openocd.org/job/openocd-gerrit-build/21978/ : SUCCESS\n\nhttps://build.openocd.org/job/openocd-gerrit/22874/ : SUCCESS","accounts_in_message":[],"_revision_number":5},{"id":"23e9d2259982d55977924cf9190bf49f4d2fdd7e","author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"real_author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"date":"2026-03-28 15:41:17.000000000","message":"Patch Set 5:\n\n(5 comments)","accounts_in_message":[],"_revision_number":5}],"current_revision":"55ab721ddb2fa195ce9417dfe67e89575d8462a2","revisions":{"a8c97abb0ae95200709c9012d77cb5e60bddf8bd":{"kind":"REWORK","_number":1,"created":"2026-01-05 06:41:54.000000000","uploader":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"ref":"refs/changes/81/9381/1","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/81/9381/1","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/81/9381/1 \u0026\u0026 git checkout -b change-9381 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/81/9381/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/81/9381/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/81/9381/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/81/9381/1","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/81/9381/1 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"0be76d9204e923392e04df32b55916fd3180d7b5","subject":"server: Make \"exit\" command behave consistently"}],"author":{"name":"Jan Matyas","email":"jan.matyas@codasip.com","date":"2026-01-05 06:27:20.000000000","tz":60},"committer":{"name":"Jan Matyas","email":"jan.matyas@codasip.com","date":"2026-01-05 06:41:01.000000000","tz":60},"subject":"server: Allow OpenOCD to exit with user-specified code","message":"server: Allow OpenOCD to exit with user-specified code\n\nImprove the \"shutdown\" command so that the user can optionally\nspecify a concrete error code (exit code) for OpenOCD.\n\nThis new argument to \"shutdown\" is optional, meaning this change\nis backward compatible:\n\nshutdown          ;# no change: zero exit code\nshutdown error    ;# no change: some non-zero exit code\nshutdown error 25 ;# new funciontality: use the given exit code\n\nThis feature is useful when different errors can occur in a given Tcl\nscript, and the parent process (that launched OpenOCD) needs to\ndistinguish between these errors.\n\nConcrete use case (example): When testing OpenOCD in an automated\nway, some tests may need to be skipped because they are not applicable\nfor the given situation (e.g. for the target under test). In that case,\nthe Tcl script can now exit with a specific code, which the parent\nprocess will then interpret as a skipped test, not as a test failure.\n\nWhile making the change, the code related to the shutdown reason\nwas cleaned up.\n\nDocumentation was updated accordingly.\n\nChange-Id: I4279b80853db55b1f0c7f930883fcd7f16cae00c\nSigned-off-by: Jan Matyas \u003cjan.matyas@codasip.com\u003e\n"}},"2cf599738db407fad26f12dac2726354deb6b348":{"kind":"REWORK","_number":2,"created":"2026-01-05 06:46:12.000000000","uploader":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"ref":"refs/changes/81/9381/2","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/81/9381/2","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/81/9381/2 \u0026\u0026 git checkout -b change-9381 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/81/9381/2 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/81/9381/2 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/81/9381/2 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/81/9381/2","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/81/9381/2 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"0be76d9204e923392e04df32b55916fd3180d7b5","subject":"server: Make \"exit\" command behave consistently"}],"author":{"name":"Jan Matyas","email":"jan.matyas@codasip.com","date":"2026-01-05 06:27:20.000000000","tz":60},"committer":{"name":"Jan Matyas","email":"jan.matyas@codasip.com","date":"2026-01-05 06:45:59.000000000","tz":60},"subject":"server: Allow OpenOCD to exit with user-specified code","message":"server: Allow OpenOCD to exit with user-specified code\n\nImprove the \"shutdown\" command so that the user can optionally\nspecify a concrete error code (exit code) for OpenOCD.\n\nThis new argument to \"shutdown\" is optional, meaning this change\nis backward compatible:\n\nshutdown          ;# no change: zero exit code\nshutdown error    ;# no change: some non-zero exit code\nshutdown error 25 ;# new funciontality: use the given exit code\n\nThis feature is useful when different errors can occur in a given Tcl\nscript, and the parent process (that launched OpenOCD) needs to\ndistinguish between these errors.\n\nConcrete use case (example): When testing OpenOCD in an automated\nway, some tests may need to be skipped because they are not applicable\nfor the given situation (e.g. for the target under test). In that case,\nthe Tcl script can now exit with a specific code, which the parent\nprocess will then interpret as a skipped test, not as a test failure.\n\nWhile making the change, the code related to the shutdown reason\nwas cleaned up.\n\nDocumentation was updated accordingly.\n\nChange-Id: I4279b80853db55b1f0c7f930883fcd7f16cae00c\nSigned-off-by: Jan Matyas \u003cjan.matyas@codasip.com\u003e\n"}},"a31cca9532d07804560e403d818af6fe1e7ed4eb":{"kind":"REWORK","_number":3,"created":"2026-01-07 07:34:38.000000000","uploader":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"ref":"refs/changes/81/9381/3","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/81/9381/3","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/81/9381/3 \u0026\u0026 git checkout -b change-9381 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/81/9381/3 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/81/9381/3 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/81/9381/3 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/81/9381/3","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/81/9381/3 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"e97718a76815ae47fd94af084f34750882e15f9a","subject":"server: Make \"exit\" command behave consistently"}],"author":{"name":"Jan Matyas","email":"jan.matyas@codasip.com","date":"2026-01-05 06:27:20.000000000","tz":60},"committer":{"name":"Jan Matyas","email":"jan.matyas@codasip.com","date":"2026-01-07 07:27:27.000000000","tz":60},"subject":"server: Allow OpenOCD to shut down with user-specified code","message":"server: Allow OpenOCD to shut down with user-specified code\n\nImprove the \"shutdown\" command so that the user can optionally\nspecify a concrete exit code for OpenOCD.\n\nThe change is backward-compatible:\n\nshutdown          ;# same as: shutdown 0\nshutdown error    ;# same as: shutdown 1\nshutdown 5        ;# new capability: concrete exit code\n\nThis feature is useful when different errors can occur in a given Tcl\nscript, and the parent process (that launched OpenOCD) needs to\ndistinguish between these errors.\n\nConcrete use case (example): When testing OpenOCD in an automated\nway, some tests may need to be skipped because they are not applicable\nfor the given situation (e.g. for the target under test). In that case,\nthe Tcl script can now exit with a specific code, which the parent\nprocess will then interpret as a skipped test, not as a test failure.\n\nWhile making the change, the code related to the shutdown reason\nwas cleaned up.\n\nDocumentation was updated accordingly.\n\nChange-Id: I4279b80853db55b1f0c7f930883fcd7f16cae00c\nSigned-off-by: Jan Matyas \u003cjan.matyas@codasip.com\u003e\n"}},"07a6c713a372d1d3b83b05a3bbbf0ba026de4422":{"kind":"REWORK","_number":4,"created":"2026-03-11 15:58:37.000000000","uploader":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"ref":"refs/changes/81/9381/4","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/81/9381/4","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/81/9381/4 \u0026\u0026 git checkout -b change-9381 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/81/9381/4 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/81/9381/4 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/81/9381/4 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/81/9381/4","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/81/9381/4 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"e4c49d86052dfc241ec60bbd3b7e190307891722","subject":"server/server: Fix build on FreeBSD"}],"author":{"name":"Jan Matyas","email":"jan.matyas@codasip.com","date":"2026-01-05 06:27:20.000000000","tz":60},"committer":{"name":"Jan Matyas","email":"jan.matyas@codasip.com","date":"2026-03-11 15:58:18.000000000","tz":60},"subject":"server: Allow OpenOCD to shut down with user-specified code","message":"server: Allow OpenOCD to shut down with user-specified code\n\nImprove the \"shutdown\" command so that the user can optionally\nspecify a concrete exit code for OpenOCD.\n\nThe change is backward-compatible:\n\nshutdown          ;# same as: shutdown 0\nshutdown error    ;# same as: shutdown 1\nshutdown 5        ;# new capability: concrete exit code\n\nThis feature is useful when different errors can occur in a given Tcl\nscript, and the parent process (that launched OpenOCD) needs to\ndistinguish between these errors.\n\nConcrete use case (example): When testing OpenOCD in an automated\nway, some tests may need to be skipped because they are not applicable\nfor the given situation (e.g. for the target under test). In that case,\nthe Tcl script can now exit with a specific code, which the parent\nprocess will then interpret as a skipped test, not as a test failure.\n\nWhile making the change, the code related to the shutdown reason\nwas cleaned up.\n\nDocumentation was updated accordingly.\n\nChange-Id: I4279b80853db55b1f0c7f930883fcd7f16cae00c\nSigned-off-by: Jan Matyas \u003cjan.matyas@codasip.com\u003e\n"}},"55ab721ddb2fa195ce9417dfe67e89575d8462a2":{"kind":"REWORK","_number":5,"created":"2026-03-11 16:09:09.000000000","uploader":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"ref":"refs/changes/81/9381/5","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/81/9381/5","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/81/9381/5 \u0026\u0026 git checkout -b change-9381 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/81/9381/5 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/81/9381/5 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/81/9381/5 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/81/9381/5","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/81/9381/5 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"e4c49d86052dfc241ec60bbd3b7e190307891722","subject":"server/server: Fix build on FreeBSD"}],"author":{"name":"Jan Matyas","email":"jan.matyas@codasip.com","date":"2026-01-05 06:27:20.000000000","tz":60},"committer":{"name":"Jan Matyas","email":"jan.matyas@codasip.com","date":"2026-03-11 16:08:51.000000000","tz":60},"subject":"server: Allow OpenOCD to shut down with user-specified code","message":"server: Allow OpenOCD to shut down with user-specified code\n\nImprove the \"shutdown\" command so that the user can optionally\nspecify a concrete exit code for OpenOCD.\n\nThe change is backward-compatible:\n\nshutdown          ;# same as: shutdown 0\nshutdown error    ;# same as: shutdown 1\nshutdown 5        ;# new capability: concrete exit code\n\nThis feature is useful when different errors can occur in a given Tcl\nscript, and the parent process (that launched OpenOCD) needs to\ndistinguish between these errors.\n\nConcrete use case (example): When testing OpenOCD in an automated\nway, some tests may need to be skipped because they are not applicable\nfor the given situation (e.g. for the target under test). In that case,\nthe Tcl script can now exit with a specific code, which the parent\nprocess will then interpret as a skipped test, not as a test failure.\n\nWhile making the change, the code related to the shutdown reason\nwas cleaned up.\n\nDocumentation was updated accordingly.\n\nChange-Id: I4279b80853db55b1f0c7f930883fcd7f16cae00c\nSigned-off-by: Jan Matyas \u003cjan.matyas@codasip.com\u003e\n"}}},"requirements":[],"submit_records":[{"rule_name":"gerrit~DefaultSubmitRule","status":"NOT_READY","labels":[{"label":"Verified","status":"OK","applied_by":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]}},{"label":"Code-Review","status":"NEED"}]}],"submit_requirements":[{"name":"Verified","status":"SATISFIED","is_legacy":true,"submittability_expression_result":{"expression":"label:Verified\u003dMAX -label:Verified\u003dMIN","fulfilled":true,"status":"PASS","passing_atoms":["label:Verified\u003dMAX","-label:Verified\u003dMIN"],"failing_atoms":[]}},{"name":"Code-Review","status":"UNSATISFIED","is_legacy":true,"submittability_expression_result":{"expression":"label:Code-Review\u003dMAX -label:Code-Review\u003dMIN","fulfilled":false,"status":"FAIL","passing_atoms":[],"failing_atoms":["label:Code-Review\u003dMAX","-label:Code-Review\u003dMIN"]}}]}
