)]}'
{"src/rtos/hwthread.c":[{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"0f26d88d6065c49d8d59c9d10ae4738ff85499a9","unresolved":true,"context_lines":[{"line_number":207,"context_line":"\t\trtos-\u003ecurrent_thread \u003d threadid_from_target(target);"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"\tLOG_TARGET_DEBUG(target, \"current_thread\u003d%i, threads_found\u003d%d\","},{"line_number":210,"context_line":"\t\t\t\t\t (int)rtos-\u003ecurrent_thread, threads_found);"},{"line_number":211,"context_line":"\treturn 0;"},{"line_number":212,"context_line":"}"},{"line_number":213,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":3,"id":"2c27a946_7e234f64","line":210,"updated":"2025-05-19 11:54:49.000000000","message":"drop the cast and use `\"current_thread\u003d%\" PRId64`","commit_id":"26aac52dcccd02f40af1a787c988a2f240350343"},{"author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"change_message_id":"0f706d6917851a1ac122e48041a38fca12aac2e2","unresolved":true,"context_lines":[{"line_number":207,"context_line":"\t\trtos-\u003ecurrent_thread \u003d threadid_from_target(target);"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"\tLOG_TARGET_DEBUG(target, \"current_thread\u003d%i, threads_found\u003d%d\","},{"line_number":210,"context_line":"\t\t\t\t\t (int)rtos-\u003ecurrent_thread, threads_found);"},{"line_number":211,"context_line":"\treturn 0;"},{"line_number":212,"context_line":"}"},{"line_number":213,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":3,"id":"6244d7d0_9b6d5185","line":210,"in_reply_to":"2c27a946_7e234f64","updated":"2025-05-19 14:58:01.000000000","message":"Sure. But do we want to keep thred_id type signed? I know, lot of usage in all rtos handlers...","commit_id":"26aac52dcccd02f40af1a787c988a2f240350343"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"278b94e1398e9a004e4da5f27fcb7b1d1c4180a6","unresolved":true,"context_lines":[{"line_number":207,"context_line":"\t\trtos-\u003ecurrent_thread \u003d threadid_from_target(target);"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"\tLOG_TARGET_DEBUG(target, \"current_thread\u003d%i, threads_found\u003d%d\","},{"line_number":210,"context_line":"\t\t\t\t\t (int)rtos-\u003ecurrent_thread, threads_found);"},{"line_number":211,"context_line":"\treturn 0;"},{"line_number":212,"context_line":"}"},{"line_number":213,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":3,"id":"6ab750c4_b2b4350e","line":210,"in_reply_to":"6244d7d0_9b6d5185","updated":"2025-05-19 15:17:18.000000000","message":"Oh yes! Signed!\nToday in OpenOCD we have hwthread that is an RTOS, so we cannot mix SMP with another RTOS. I want to change it by replacing the current SMP code with the one in hwthread.\n\nI\u0027m checking the way Linux KGDB provides the kernel threads to GDB and I like how it works; I would like to implement something similar in OpenOCD for SMP + RTOS.\n\nKGDB uses the positive thread numbers for the RTOS threads and the negative ones for the SMP core.\nFrom the thread list you get that thread `-n` is a kind of link to the RTOS thread that is currently running on the associated CPU `n`.\nIt\u0027s a clever way to get all together.\nOnly thread number zero seams not allowed by KGDB, but I don\u0027t know if other RTOS allows it.\n\nThen, we should not expect negative thread numbers from the RTOS, but let\u0027s keep this as a test to be assessed later on","commit_id":"26aac52dcccd02f40af1a787c988a2f240350343"},{"author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"change_message_id":"fa49aeb4da193c218cf4cd06d96cc1073418a2c8","unresolved":false,"context_lines":[{"line_number":207,"context_line":"\t\trtos-\u003ecurrent_thread \u003d threadid_from_target(target);"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"\tLOG_TARGET_DEBUG(target, \"current_thread\u003d%i, threads_found\u003d%d\","},{"line_number":210,"context_line":"\t\t\t\t\t (int)rtos-\u003ecurrent_thread, threads_found);"},{"line_number":211,"context_line":"\treturn 0;"},{"line_number":212,"context_line":"}"},{"line_number":213,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":3,"id":"46609c6b_0e6e29db","line":210,"in_reply_to":"6ab750c4_b2b4350e","updated":"2025-05-19 15:22:31.000000000","message":"Done in 8926: rtos/hwthread: use printf format specifier | https://review.openocd.org/c/openocd/+/8926","commit_id":"26aac52dcccd02f40af1a787c988a2f240350343"}]}
