)]}'
{"id":"openocd~master~I5f4ab5243104df41031950682f688f2448a09b17","project":"openocd","branch":"master","hashtags":[],"change_id":"I5f4ab5243104df41031950682f688f2448a09b17","subject":"target/riscv: Implement get_gdb_arch()","status":"MERGED","created":"2021-06-16 17:50:08.000000000","updated":"2021-06-26 13:38:59.000000000","submitted":"2021-06-26 13:38:59.000000000","submitter":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"total_comment_count":0,"unresolved_comment_count":0,"has_review_started":true,"submission_id":"6322-1624714739348-30745af3","meta_rev_id":"8385686f026b355d7ed427a61dfe587319255a7f","_number":6322,"owner":{"_account_id":1001898,"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","username":"jessesheridan"},"actions":{},"labels":{"Verified":{"approved":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"all":[{"value":0,"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},{"value":0,"_account_id":1001898,"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","username":"jessesheridan"},{"value":0,"_account_id":1001242,"name":"Tim Newsome","email":"tim@sifive.com","username":"timsifive"},{"value":1,"date":"2021-06-26 13:38:59.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":{"approved":{"_account_id":1001242,"name":"Tim Newsome","email":"tim@sifive.com","username":"timsifive"},"all":[{"value":2,"date":"2021-06-26 13:38:59.000000000","permitted_voting_range":{"min":2,"max":2},"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},{"value":1,"date":"2021-06-26 13:38:59.000000000","permitted_voting_range":{"min":1,"max":1},"_account_id":1001898,"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","username":"jessesheridan"},{"value":2,"date":"2021-06-26 13:38:59.000000000","permitted_voting_range":{"min":2,"max":2},"_account_id":1001242,"name":"Tim Newsome","email":"tim@sifive.com","username":"timsifive"},{"value":0,"_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":{"REVIEWER":[{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},{"_account_id":1001242,"name":"Tim Newsome","email":"tim@sifive.com","username":"timsifive"},{"_account_id":1001898,"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","username":"jessesheridan"}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2021-06-16 18:41:17.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":"2021-06-17 18:30:01.000000000","updated_by":{"_account_id":1001242,"name":"Tim Newsome","email":"tim@sifive.com","username":"timsifive"},"reviewer":{"_account_id":1001242,"name":"Tim Newsome","email":"tim@sifive.com","username":"timsifive"},"state":"REVIEWER"},{"updated":"2021-06-26 13:38:59.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":"REVIEWER"}],"messages":[{"id":"c248dc5ec17f2a3c905ae03643469b27da184237","author":{"_account_id":1001898,"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","username":"jessesheridan"},"real_author":{"_account_id":1001898,"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","username":"jessesheridan"},"date":"2021-06-16 17:50:08.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"ed02de754456e86453aee43f8ea30c3b015d0543","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2021-06-16 17:57:23.000000000","message":"Patch Set 1: Verified-1\n\nBuild Failed \n\nhttp://build.openocd.org/job/openocd-gerrit/14764/ : FAILURE\n\nhttp://build.openocd.org/job/openocd-gerrit-build/14010/ : FAILURE","accounts_in_message":[],"_revision_number":1},{"id":"622b3c5977bb28ea01de88d6b1027eb552d2f493","author":{"_account_id":1001898,"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","username":"jessesheridan"},"real_author":{"_account_id":1001898,"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","username":"jessesheridan"},"date":"2021-06-16 18:09:59.000000000","message":"Uploaded patch set 2: Patch Set 1 was rebased.","accounts_in_message":[],"_revision_number":2},{"id":"78edcc448b8b3b0f5b07ad089946eb5a65f3aa09","author":{"_account_id":1001898,"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","username":"jessesheridan"},"real_author":{"_account_id":1001898,"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","username":"jessesheridan"},"date":"2021-06-16 18:11:34.000000000","message":"Uploaded patch set 3.","accounts_in_message":[],"_revision_number":3},{"id":"7bfad362ce9642567deb398b1b65ca78e0df3f26","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2021-06-16 18:11:35.000000000","message":"Patch Set 2:\n\nBuild Failed \n\nhttp://build.openocd.org/job/openocd-gerrit/14765/ : ABORTED\n\nhttp://build.openocd.org/job/openocd-gerrit-build/14011/ : ABORTED","accounts_in_message":[],"_revision_number":2},{"id":"14a2ae06a1236a23ae8d564f6926a44a0ad841e0","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2021-06-16 18:41:17.000000000","message":"Patch Set 3: Verified+1\n\nBuild Successful \n\nhttp://build.openocd.org/job/openocd-gerrit/14766/ : SUCCESS\n\nhttp://build.openocd.org/job/openocd-gerrit-build/14012/ : SUCCESS","accounts_in_message":[],"_revision_number":3},{"id":"cbac0529dd8af0dd0ada4407c724f1ee057b50cf","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":"2021-06-16 21:05:38.000000000","message":"Patch Set 3:\n\nIt\u0027s ok for me, but I vaguely remember a comment from Tim saying that GDB for riscv can already autodetect the arch, so no need for such code.\nBut I cannot find Tim\u0027s comment in my archive.\nAnd LLDB has to be considered too.","accounts_in_message":[],"_revision_number":3},{"id":"3f56060ef31802d81bcdf9d00ae5c4b5b6483343","author":{"_account_id":1001898,"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","username":"jessesheridan"},"real_author":{"_account_id":1001898,"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","username":"jessesheridan"},"date":"2021-06-16 21:30:45.000000000","message":"Patch Set 3:\n\n\u003e It\u0027s ok for me, but I vaguely remember a comment from Tim saying\n \u003e that GDB for riscv can already autodetect the arch, so no need for\n \u003e such code.\n \u003e But I cannot find Tim\u0027s comment in my archive.\n \u003e And LLDB has to be considered too.\n\nWhen using GDB without a file for cross platform, GDB relies on OpenOCD telling it the architecture, if not specified manually. Currently without this change, this means you have to issue a `set architecture riscv:32` command within GDB. There is an open issue in the riscv-openocd fork that this change is intended to resolve as well:\nhttps://github.com/riscv/riscv-openocd/issues/470","accounts_in_message":[],"_revision_number":3},{"id":"1f4b9f08b2bc40cedb53ffb7080d4218b04637ab","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":"2021-06-16 21:39:02.000000000","message":"Patch Set 3:\n\nYes, this change should also be required with a multi-arch gdb.\nI\u0027ll wait for Tim comment as I\u0027m not on riscv at all.","accounts_in_message":[],"_revision_number":3},{"id":"2469548dd81f3b66c1f87774c71851f100c96043","author":{"_account_id":1001898,"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","username":"jessesheridan"},"real_author":{"_account_id":1001898,"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","username":"jessesheridan"},"date":"2021-06-16 21:41:52.000000000","message":"Patch Set 3:\n\n\u003e Yes, this change should also be required with a multi-arch gdb.\n \u003e I\u0027ll wait for Tim comment as I\u0027m not on riscv at all.\n\nOk, thank you and thank you for reviewing.","accounts_in_message":[],"_revision_number":3},{"id":"897deccaa49e80c939d2480abf3f7b375c880fd4","author":{"_account_id":1001242,"name":"Tim Newsome","email":"tim@sifive.com","username":"timsifive"},"real_author":{"_account_id":1001242,"name":"Tim Newsome","email":"tim@sifive.com","username":"timsifive"},"date":"2021-06-17 18:30:01.000000000","message":"Patch Set 3: Code-Review+2\n\nThis looks good. I\u0027m not sure what email Antonio is referencing. If gdb is given an executable before connecting to OpenOCD then it infers the target type from the executable, but it\u0027s nice to also support connecting to OpenOCD without providing a file to debug.","accounts_in_message":[],"_revision_number":3},{"id":"e6c1fa6935e19ccceda46d5c68952e8281ae9b6d","author":{"_account_id":1001898,"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","username":"jessesheridan"},"real_author":{"_account_id":1001898,"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","username":"jessesheridan"},"date":"2021-06-17 20:08:36.000000000","message":"Patch Set 3: Code-Review+1\n\n\u003e This looks good. I\u0027m not sure what email Antonio is referencing. If\n \u003e gdb is given an executable before connecting to OpenOCD then it\n \u003e infers the target type from the executable, but it\u0027s nice to also\n \u003e support connecting to OpenOCD without providing a file to debug.\n\nGreat! Thank you. I see this change status as \"Ready to Submit\" but I do not see any button to submit. I do not see anything in the developer\u0027s guide about this. I wonder if I need to do a +1...","accounts_in_message":[],"_revision_number":3},{"id":"ea5907ae4f29c8c5c1805d89d8113db18b527380","author":{"_account_id":1001898,"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","username":"jessesheridan"},"real_author":{"_account_id":1001898,"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","username":"jessesheridan"},"date":"2021-06-17 20:11:00.000000000","message":"Patch Set 3:\n\n\u003e \u003e This looks good. I\u0027m not sure what email Antonio is referencing.\n \u003e If\n \u003e \u003e gdb is given an executable before connecting to OpenOCD then it\n \u003e \u003e infers the target type from the executable, but it\u0027s nice to also\n \u003e \u003e support connecting to OpenOCD without providing a file to debug.\n \u003e \n \u003e Great! Thank you. I see this change status as \"Ready to Submit\" but\n \u003e I do not see any button to submit. I do not see anything in the\n \u003e developer\u0027s guide about this. I wonder if I need to do a +1...\n\nOk, +1 did not change it. I assume someone with the right permissions has to submit.","accounts_in_message":[],"_revision_number":3},{"id":"9dfad5c92886ed9671ad707e17c62983737c7f3e","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":"2021-06-17 20:34:25.000000000","message":"Patch Set 3: Code-Review+2\n\nAfter Tim\u0027s blessing I don\u0027t expect any concern on this patch.\nAnyway I will wait few days before merging it.","accounts_in_message":[],"_revision_number":3},{"id":"8385686f026b355d7ed427a61dfe587319255a7f","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":"2021-06-26 13:38:59.000000000","message":"Change has been successfully cherry-picked as 0ef5144c32ac60ddf3bb005deb3136015e42ae4f by Antonio Borneo","accounts_in_message":[],"_revision_number":4}],"current_revision":"0ef5144c32ac60ddf3bb005deb3136015e42ae4f","revisions":{"0ef5144c32ac60ddf3bb005deb3136015e42ae4f":{"kind":"REWORK","_number":4,"created":"2021-06-26 13:38:59.000000000","uploader":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"ref":"refs/changes/22/6322/4","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/22/6322/4","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/22/6322/4 \u0026\u0026 git checkout -b change-6322 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/22/6322/4 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/22/6322/4 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/22/6322/4 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/22/6322/4","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/22/6322/4 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"af39ee607cd6ce6f3d809bd715892f2df1bf552a","subject":"tcl: Add support for the Digilent Nexys Video board"}],"author":{"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","date":"2021-06-16 17:38:00.000000000","tz":-420},"committer":{"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","date":"2021-06-26 13:38:59.000000000","tz":60},"subject":"target/riscv: Implement get_gdb_arch()","message":"target/riscv: Implement get_gdb_arch()\n\nChange-Id: I5f4ab5243104df41031950682f688f2448a09b17\nSigned-off-by: Jesse Sheridan \u003cjesse.sheridan@gmail.com\u003e\nReviewed-on: http://openocd.zylin.com/6322\nTested-by: jenkins\nReviewed-by: Tim Newsome \u003ctim@sifive.com\u003e\nReviewed-by: Antonio Borneo \u003cborneo.antonio@gmail.com\u003e\n"}},"2e5925e128f75090c6cc27845db3da74873749bb":{"kind":"REWORK","_number":1,"created":"2021-06-16 17:50:08.000000000","uploader":{"_account_id":1001898,"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","username":"jessesheridan"},"ref":"refs/changes/22/6322/1","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/22/6322/1","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/22/6322/1 \u0026\u0026 git checkout -b change-6322 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/22/6322/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/22/6322/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/22/6322/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/22/6322/1","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/22/6322/1 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"cb5d9e0098a62b388fcfc7c89ddb6cda2be77a38","subject":"armv4_5: do not read/write non-existent registers"}],"author":{"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","date":"2021-06-16 17:38:00.000000000","tz":-420},"committer":{"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","date":"2021-06-16 17:38:00.000000000","tz":-420},"subject":"target/riscv: Implement get_gdb_arch()","message":"target/riscv: Implement get_gdb_arch()\n\nChange-Id: I5f4ab5243104df41031950682f688f2448a09b17\nSigned-off-by: Jesse Sheridan \u003cjesse.sheridan@gmail.com\u003e\n"}},"856ecf5006b8b9f120a5c7bf1fe0684b21617401":{"kind":"NO_CHANGE","_number":2,"created":"2021-06-16 18:09:59.000000000","uploader":{"_account_id":1001898,"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","username":"jessesheridan"},"ref":"refs/changes/22/6322/2","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/22/6322/2","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/22/6322/2 \u0026\u0026 git checkout -b change-6322 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/22/6322/2 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/22/6322/2 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/22/6322/2 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/22/6322/2","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/22/6322/2 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"cb5d9e0098a62b388fcfc7c89ddb6cda2be77a38","subject":"armv4_5: do not read/write non-existent registers"}],"author":{"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","date":"2021-06-16 17:38:00.000000000","tz":-420},"committer":{"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","date":"2021-06-16 18:09:50.000000000","tz":-420},"subject":"target/riscv: Implement get_gdb_arch()","message":"target/riscv: Implement get_gdb_arch()\n\nChange-Id: I5f4ab5243104df41031950682f688f2448a09b17\nSigned-off-by: Jesse Sheridan \u003cjesse.sheridan@gmail.com\u003e\n"}},"14e804598574b5b40d01864baaa5fe72873f3ee7":{"kind":"REWORK","_number":3,"created":"2021-06-16 18:11:34.000000000","uploader":{"_account_id":1001898,"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","username":"jessesheridan"},"ref":"refs/changes/22/6322/3","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/22/6322/3","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/22/6322/3 \u0026\u0026 git checkout -b change-6322 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/22/6322/3 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/22/6322/3 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/22/6322/3 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/22/6322/3","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/22/6322/3 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"cb5d9e0098a62b388fcfc7c89ddb6cda2be77a38","subject":"armv4_5: do not read/write non-existent registers"}],"author":{"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","date":"2021-06-16 17:38:00.000000000","tz":-420},"committer":{"name":"Jesse Sheridan","email":"jesse.sheridan@gmail.com","date":"2021-06-16 18:11:24.000000000","tz":-420},"subject":"target/riscv: Implement get_gdb_arch()","message":"target/riscv: Implement get_gdb_arch()\n\nChange-Id: I5f4ab5243104df41031950682f688f2448a09b17\nSigned-off-by: Jesse Sheridan \u003cjesse.sheridan@gmail.com\u003e\n"}}},"requirements":[],"submit_records":[],"submit_requirements":[]}
