)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2021-04-01 01:27:29 +0200"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"add IPDBG JtagHost functionality to OpenOCD"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: Ib1bc10dcbd4ea426e492bb7b2d85c1ed1b7a8d5a"},{"line_number":10,"context_line":"Signed-off-by: Daniel Anselmi \u003cdanselmi@gmx.ch\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"aedf27f1_32b10edd","line":8,"updated":"2021-04-15 22:18:32.000000000","message":"please add a minimalist description in the body of the commit msg","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"}],"doc/openocd.texi":[{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":1,"context_line":"\\input texinfo @c -*-texinfo-*-"},{"line_number":2,"context_line":"@c %**start of header"},{"line_number":3,"context_line":"@setfilename openocd.info"},{"line_number":4,"context_line":"@settitle OpenOCD User\u0027s Guide"}],"source_content_type":"text/x-texinfo","patch_set":5,"id":"aedf27f1_d2c52243","line":1,"updated":"2021-04-15 22:18:32.000000000","message":"have you changed the permission to this file from 644 to 755?\nPlease revert it!","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":10574,"context_line":"of a JTAG-Host. The JTAG-Host is needed to connect the circuit over JTAG to the"},{"line_number":10575,"context_line":"control-software. For more details see @url{http://ipdbg.org}."},{"line_number":10576,"context_line":""},{"line_number":10577,"context_line":"@deffn Command {ipdbg} [@option{-start|-stop}] @option{-tap @var{tapname}} @option{-hub @var{ir_value} [@var{dr_length}]} [@option{-port @var{number}}] [@option{-tool @var{number}}] [@option{-vir [@var{vir_value} [@var{length} [@var{instr_code}]]]}]"},{"line_number":10578,"context_line":"Starts or stops a IPDBG JTAG-Host server. Arguments can be specified in any order."},{"line_number":10579,"context_line":""},{"line_number":10580,"context_line":"Command options:"}],"source_content_type":"text/x-texinfo","patch_set":5,"id":"aedf27f1_f27ce61d","line":10577,"updated":"2021-04-15 22:18:32.000000000","message":"please put \u0027Command\u0027 within curly brackets\n@deffn {Command} {ipdbg} ....","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":10581,"context_line":"@itemize @bullet"},{"line_number":10582,"context_line":"@item @option{-start|-stop} starts or stops a IPDBG JTAG-Host server (default: start)."},{"line_number":10583,"context_line":"@item @option{-tap @var{tapname}} targeting the TAP @var{tapname}."},{"line_number":10584,"context_line":"@item @option{-hub @var{ir_value}} states that the the JTAG hub is"},{"line_number":10585,"context_line":"reachable with dr-scans while the JTAG instruction register has the value @var{ir_value}."},{"line_number":10586,"context_line":"@item @option{-port @var{number}} tcp port number where the JTAG-Host is listening."},{"line_number":10587,"context_line":"@item @option{-tool @var{number}} number of the tool/feature. These corresponds to the ports \"data_(up/down)_(0..6)\" at the JtagHub."}],"source_content_type":"text/x-texinfo","patch_set":5,"id":"aedf27f1_f2c2a638","line":10584,"updated":"2021-04-15 22:18:32.000000000","message":"repeated word \u0027the the\u0027","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":10605,"context_line":"@end example"},{"line_number":10606,"context_line":"Starts a server listening on tcp-port 60000 which connects to tool 1 (data_up_1/data_down_1)."},{"line_number":10607,"context_line":"The connection is through the TAP of a Intel MAX10 virtual jtag component (sld_instance_index is 0; sld_ir_width is smaller than 5)."},{"line_number":10608,"context_line":"@node Utility Commands"},{"line_number":10609,"context_line":"@chapter Utility Commands"},{"line_number":10610,"context_line":"@cindex Utility Commands"},{"line_number":10611,"context_line":""}],"source_content_type":"text/x-texinfo","patch_set":5,"id":"aedf27f1_9279da2c","line":10608,"updated":"2021-04-15 22:18:32.000000000","message":"add one empty line before @node Utility Commands","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"}],"src/ipdbg/Makefile.am":[{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":1,"context_line":"noinst_LTLIBRARIES +\u003d %D%/libipdbg.la"},{"line_number":2,"context_line":"%C%_libipdbg_la_SOURCES \u003d %D%/ipdbg.c %D%/ipdbg.h"}],"source_content_type":"application/octet-stream","patch_set":5,"id":"aedf27f1_b2765e38","line":1,"updated":"2021-04-15 22:18:32.000000000","message":"Please add as first line:\n# SPDX-License-Identifier: GPL-2.0-or-later","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"}],"src/ipdbg/ipdbg.c":[{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"c4712296658899febf667675c9422ed4d5c2c943","unresolved":false,"context_lines":[{"line_number":177,"context_line":""},{"line_number":178,"context_line":"static int create_ipdbg_service(struct ipdbg_hub *hub, uint8_t tool, struct ipdbg_service **service, uint16_t port)"},{"line_number":179,"context_line":"{"},{"line_number":180,"context_line":"\t*service \u003d malloc(sizeof(struct ipdbg_service));"},{"line_number":181,"context_line":"\tif (*service \u003d\u003d NULL)"},{"line_number":182,"context_line":"\t\treturn -ENOMEM;"},{"line_number":183,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":3,"id":"ceda9b01_65b822e3","line":180,"updated":"2021-03-27 19:21:31.000000000","message":"where services is freed?","commit_id":"6c251e91529070efdd98ea3b798acf89b866df63"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"c4712296658899febf667675c9422ed4d5c2c943","unresolved":false,"context_lines":[{"line_number":254,"context_line":"\tnew_hub-\u003exoff_mask            \u003d 1 \u003c\u003c (data_register_length - 2);"},{"line_number":255,"context_line":"\tnew_hub-\u003etool_mask            \u003d (new_hub-\u003exoff_mask - 1) \u003e\u003e 8;"},{"line_number":256,"context_line":"\tnew_hub-\u003elast_dn_tool         \u003d new_hub-\u003etool_mask;"},{"line_number":257,"context_line":"\tnew_hub-\u003edn_xoff              \u003d 0;"},{"line_number":258,"context_line":"\tnew_hub-\u003eactive_connections   \u003d 0;"},{"line_number":259,"context_line":"\tnew_hub-\u003eactive_services      \u003d 0;"},{"line_number":260,"context_line":"\tnew_hub-\u003evirtual_ir           \u003d virtual_ir;"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"ceda9b01_25d21a2d","line":257,"updated":"2021-03-27 19:21:31.000000000","message":"if allocated with calloc, no setting to 0 or NULL is needed","commit_id":"6c251e91529070efdd98ea3b798acf89b866df63"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"c4712296658899febf667675c9422ed4d5c2c943","unresolved":false,"context_lines":[{"line_number":259,"context_line":"\tnew_hub-\u003eactive_services      \u003d 0;"},{"line_number":260,"context_line":"\tnew_hub-\u003evirtual_ir           \u003d virtual_ir;"},{"line_number":261,"context_line":"\tnew_hub-\u003enext                 \u003d NULL;"},{"line_number":262,"context_line":"\tnew_hub-\u003econnections          \u003d malloc(new_hub-\u003emax_tools * sizeof(struct connection *));"},{"line_number":263,"context_line":"\tif (new_hub-\u003econnections \u003d\u003d NULL) {"},{"line_number":264,"context_line":"\t\tfree(virtual_ir);"},{"line_number":265,"context_line":"\t\tfree(new_hub);"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"ceda9b01_85bd06d4","line":262,"updated":"2021-03-27 19:21:31.000000000","message":"move this allocation on top. Doing all of this and then test for error makes no sense.","commit_id":"6c251e91529070efdd98ea3b798acf89b866df63"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"c4712296658899febf667675c9422ed4d5c2c943","unresolved":false,"context_lines":[{"line_number":265,"context_line":"\t\tfree(new_hub);"},{"line_number":266,"context_line":"\t\treturn -ENOMEM;"},{"line_number":267,"context_line":"\t}"},{"line_number":268,"context_line":"\tmemset(new_hub-\u003econnections, 0, new_hub-\u003emax_tools * sizeof(struct connection *));"},{"line_number":269,"context_line":""},{"line_number":270,"context_line":"\t*hub \u003d new_hub;"},{"line_number":271,"context_line":"\treturn ERROR_OK;"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"ceda9b01_45cf1e83","line":268,"updated":"2021-03-27 19:21:31.000000000","message":"no memset is needed if calloc is used","commit_id":"6c251e91529070efdd98ea3b798acf89b866df63"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"c4712296658899febf667675c9422ed4d5c2c943","unresolved":false,"context_lines":[{"line_number":308,"context_line":"\tif (tap \u003d\u003d NULL)"},{"line_number":309,"context_line":"\t\treturn ERROR_FAIL;"},{"line_number":310,"context_line":""},{"line_number":311,"context_line":"\tif (buf_get_u32(tap-\u003ecur_instr, 0, tap-\u003eir_length) !\u003d instr) {"},{"line_number":312,"context_line":"\t\tuint8_t *ir_out_val \u003d calloc(DIV_ROUND_UP(tap-\u003eir_length, 8), 1);"},{"line_number":313,"context_line":"\t\tbuf_set_u32(ir_out_val, 0, tap-\u003eir_length, instr);"},{"line_number":314,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":3,"id":"ceda9b01_05c9167b","line":311,"updated":"2021-03-27 19:21:31.000000000","message":"if (bla \u003d\u003d instr)\n  return\n\nnormal function flow","commit_id":"6c251e91529070efdd98ea3b798acf89b866df63"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"c4712296658899febf667675c9422ed4d5c2c943","unresolved":false,"context_lines":[{"line_number":312,"context_line":"\t\tuint8_t *ir_out_val \u003d calloc(DIV_ROUND_UP(tap-\u003eir_length, 8), 1);"},{"line_number":313,"context_line":"\t\tbuf_set_u32(ir_out_val, 0, tap-\u003eir_length, instr);"},{"line_number":314,"context_line":""},{"line_number":315,"context_line":"\t\tstruct scan_field fields \u003d {"},{"line_number":316,"context_line":"\t\t\t.check_mask \u003d NULL,"},{"line_number":317,"context_line":"\t\t\t.check_value \u003d NULL,"},{"line_number":318,"context_line":"\t\t\t.in_value \u003d NULL,"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"ceda9b01_e5cbb273","line":315,"updated":"2021-03-27 19:21:31.000000000","message":"you have nearly identical struct inits in different function, it is worth to move it in to separate function.","commit_id":"6c251e91529070efdd98ea3b798acf89b866df63"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"c4712296658899febf667675c9422ed4d5c2c943","unresolved":false,"context_lines":[{"line_number":338,"context_line":"\tif (!hub-\u003evirtual_ir)"},{"line_number":339,"context_line":"\t\treturn ERROR_OK;"},{"line_number":340,"context_line":""},{"line_number":341,"context_line":"\tif (shift_instr(hub, hub-\u003evirtual_ir-\u003einstruction) !\u003d ERROR_OK)"},{"line_number":342,"context_line":"\t\treturn ERROR_FAIL;"},{"line_number":343,"context_line":""},{"line_number":344,"context_line":"\tstruct jtag_tap *tap \u003d hub-\u003etap;"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"ceda9b01_a5a5aab3","line":341,"updated":"2021-03-27 19:21:31.000000000","message":"why overwriting error returned by shift_instr? If it is needed, please add comment why it is needed","commit_id":"6c251e91529070efdd98ea3b798acf89b866df63"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"8bf72a852fc9c1b30e8eaa7cc9535f97dc20961a","unresolved":false,"context_lines":[{"line_number":405,"context_line":"\tif (tool \u003d\u003d hub-\u003etool_mask) {"},{"line_number":406,"context_line":"\t\tconst uint8_t xon_cmd \u003d up \u0026 0x00ff;"},{"line_number":407,"context_line":"\t\thub-\u003edn_xoff \u0026\u003d ~xon_cmd;"},{"line_number":408,"context_line":"\t\tprintf(\"received xon cmd: %d\\n\", xon_cmd);"},{"line_number":409,"context_line":"\t} else {"},{"line_number":410,"context_line":"\t\tstruct connection *conn \u003d hub-\u003econnections[tool];"},{"line_number":411,"context_line":"\t\tif (conn) {"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"ceda9b01_65afc292","line":408,"updated":"2021-03-28 05:42:05.000000000","message":"Is it an error, warning or debug level?\nPlease review all your prints and use LOG_* macros instead of printf or log_printf_lf..\n, see src/helper/log.h","commit_id":"6c251e91529070efdd98ea3b798acf89b866df63"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"c4712296658899febf667675c9422ed4d5c2c943","unresolved":false,"context_lines":[{"line_number":438,"context_line":"\t\tif (conn \u0026\u0026 conn-\u003epriv) {"},{"line_number":439,"context_line":"\t\t\tstruct ipdbg_connection *connection \u003d conn-\u003epriv;"},{"line_number":440,"context_line":"\t\t\twhile (((hub-\u003edn_xoff \u0026 (1ul \u003c\u003c tool)) \u003d\u003d 0) \u0026\u0026 !fifo_is_empty(\u0026(connection-\u003edn_fifo))) {"},{"line_number":441,"context_line":"\t\t\t\tuint32_t dn \u003d hub-\u003evalid_mask |"},{"line_number":442,"context_line":"\t\t\t\t\t\t\t  ((tool \u0026 hub-\u003etool_mask) \u003c\u003c 8) |"},{"line_number":443,"context_line":"\t\t\t\t\t\t\t  (0x00fful \u0026 get_from_fifo(\u0026(connection-\u003edn_fifo)));"},{"line_number":444,"context_line":"\t\t\t\tuint32_t up \u003d 0;"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"ceda9b01_c5c30e60","line":441,"updated":"2021-03-27 19:21:31.000000000","message":"move this scope  to a separate function","commit_id":"6c251e91529070efdd98ea3b798acf89b866df63"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"c4712296658899febf667675c9422ed4d5c2c943","unresolved":false,"context_lines":[{"line_number":490,"context_line":"\tstruct ipdbg_hub *hub \u003d service-\u003ehub;"},{"line_number":491,"context_line":"\thub-\u003econnections[service-\u003etool] \u003d connection;"},{"line_number":492,"context_line":"\thub-\u003eactive_connections++;"},{"line_number":493,"context_line":"\tif (hub-\u003eactive_connections \u003d\u003d 1) {"},{"line_number":494,"context_line":"\t\tconst uint32_t resetHub \u003d hub-\u003evalid_mask | ((hub-\u003emax_tools) \u003c\u003c 8);"},{"line_number":495,"context_line":""},{"line_number":496,"context_line":"\t\tint ret \u003d shift_vir(hub);"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"ceda9b01_a5be0ad0","line":493,"updated":"2021-03-27 19:21:31.000000000","message":"do not hide complete function insight one if statement. Use:\nif (..connections !\u003d 1)\n  return ...;\n\nand then normal function flow.\nThe same for all other places in this driver.","commit_id":"6c251e91529070efdd98ea3b798acf89b866df63"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"c4712296658899febf667675c9422ed4d5c2c943","unresolved":false,"context_lines":[{"line_number":564,"context_line":"\treturn ERROR_OK;"},{"line_number":565,"context_line":"}"},{"line_number":566,"context_line":""},{"line_number":567,"context_line":"static int on_connection_closed(struct connection *connection)"},{"line_number":568,"context_line":"{"},{"line_number":569,"context_line":"\tlog_printf_lf(LOG_LVL_INFO, __FILE__, __LINE__, __func__,"},{"line_number":570,"context_line":"\t\t\"Closed IPDBG Connection \");"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"ceda9b01_05f276cd","line":567,"updated":"2021-03-27 19:21:31.000000000","message":"rename all function to prefix the driver name \"ipdbg_\"","commit_id":"6c251e91529070efdd98ea3b798acf89b866df63"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"c4712296658899febf667675c9422ed4d5c2c943","unresolved":false,"context_lines":[{"line_number":627,"context_line":"\t\treturn ERROR_FAIL;"},{"line_number":628,"context_line":""},{"line_number":629,"context_line":"\tstruct ipdbg_service *service \u003d find_ipdbg_service(hub, tool);"},{"line_number":630,"context_line":"\tif (service \u003d\u003d NULL)"},{"line_number":631,"context_line":"\t\treturn ERROR_FAIL;"},{"line_number":632,"context_line":""},{"line_number":633,"context_line":"\tremove_ipdbg_service(service);"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"ceda9b01_e5f412bc","line":630,"updated":"2021-03-27 19:21:31.000000000","message":"You are using two styles of NULL comparison in this driver:\n1. if(!something)\n2. if(something \u003d\u003d NULL)\n\nplease use one style. I prefer the 1,","commit_id":"6c251e91529070efdd98ea3b798acf89b866df63"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"c4712296658899febf667675c9422ed4d5c2c943","unresolved":false,"context_lines":[{"line_number":664,"context_line":"\tif ((CMD_ARGC \u003c IPDBG_MIN_NUM_OF_OPTIONS) || (CMD_ARGC \u003e IPDBG_MAX_NUM_OF_OPTIONS))"},{"line_number":665,"context_line":"\t\treturn ERROR_COMMAND_SYNTAX_ERROR;"},{"line_number":666,"context_line":""},{"line_number":667,"context_line":"\tfor (unsigned int i \u003d 0; i \u003c CMD_ARGC; ++i) {"},{"line_number":668,"context_line":"\t\tif (strcmp(CMD_ARGV[i], \"-tap\") \u003d\u003d 0) {"},{"line_number":669,"context_line":"\t\t\tif (i+1 \u003c CMD_ARGC \u0026\u0026 CMD_ARGV[i+1][0] !\u003d \u0027-\u0027) {"},{"line_number":670,"context_line":"\t\t\t\ttap \u003d jtag_tap_by_string(CMD_ARGV[i+1]);"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"ceda9b01_25ebfadc","line":667,"updated":"2021-03-27 19:21:31.000000000","message":"please split scope to different functions.","commit_id":"6c251e91529070efdd98ea3b798acf89b866df63"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"c4712296658899febf667675c9422ed4d5c2c943","unresolved":false,"context_lines":[{"line_number":750,"context_line":"\t}"},{"line_number":751,"context_line":""},{"line_number":752,"context_line":"\tif (has_virtual_ir) {"},{"line_number":753,"context_line":"\t\tvirtual_ir \u003d malloc(sizeof(struct virtual_ir_info));"},{"line_number":754,"context_line":"\t\tif (virtual_ir \u003d\u003d NULL)"},{"line_number":755,"context_line":"\t\t\treturn -ENOMEM;"},{"line_number":756,"context_line":"\t\tvirtual_ir-\u003einstruction \u003d virtual_ir_instruction;"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"ceda9b01_45e87edd","line":753,"updated":"2021-03-27 19:21:31.000000000","message":"use calloc instead so the memory is initialized with zeros. The same is for all malloc calls in this driver","commit_id":"6c251e91529070efdd98ea3b798acf89b866df63"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"e789e19c68e9ce9420435a65258e09ce6e737467","unresolved":false,"context_lines":[{"line_number":14,"context_line":" *                                                                         *"},{"line_number":15,"context_line":" *   You should have received a copy of the GNU General Public License     *"},{"line_number":16,"context_line":" *   along with this program.  If not, see \u003chttp://www.gnu.org/licenses/\u003e. *"},{"line_number":17,"context_line":" ***************************************************************************/"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"#ifdef HAVE_CONFIG_H"},{"line_number":20,"context_line":"#include \"config.h\""}],"source_content_type":"text/x-csrc","patch_set":4,"id":"ceda9b01_455f1e45","line":17,"updated":"2021-03-31 17:13:09.000000000","message":"Please replace it with:\n/* SPDX-License-Identifier: GPL-2.0-or-later */\n/* Copyright (C) 2020 by Daniel Anselmi \u003cdanselmi@gmx.ch\u003e */\n\nThe same for other files","commit_id":"85a28b3816062c72704fe4b18fc1fb53a2559248"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"e789e19c68e9ce9420435a65258e09ce6e737467","unresolved":false,"context_lines":[{"line_number":24,"context_line":"#include \u003cserver/server.h\u003e"},{"line_number":25,"context_line":"#include \u003ctarget/target.h\u003e"},{"line_number":26,"context_line":"#include \"ipdbg.h\""},{"line_number":27,"context_line":"#include \u003chelper/time_support.h\u003e"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"#define IPDBG_MIN_NUM_OF_OPTIONS 4"},{"line_number":30,"context_line":"#define IPDBG_MAX_NUM_OF_OPTIONS 14"}],"source_content_type":"text/x-csrc","patch_set":4,"id":"ceda9b01_e55bb255","line":27,"updated":"2021-03-31 17:13:09.000000000","message":"please sort include alphabetically and put private include ipdbg.h separately at the end of the list","commit_id":"85a28b3816062c72704fe4b18fc1fb53a2559248"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"e789e19c68e9ce9420435a65258e09ce6e737467","unresolved":false,"context_lines":[{"line_number":45,"context_line":"\t\t\t++argn; \\"},{"line_number":46,"context_line":"\t\t\tCOMMAND_PARSE_NUMBER(type, CMD_ARGV[argn], out); \\"},{"line_number":47,"context_line":"\t\t} \\"},{"line_number":48,"context_line":"\t} while (0)"},{"line_number":49,"context_line":"/* private connection data for IPDBG */"},{"line_number":50,"context_line":"struct ipdbg_fifo {"},{"line_number":51,"context_line":"\tsize_t count;"}],"source_content_type":"text/x-csrc","patch_set":4,"id":"ceda9b01_0559165d","line":48,"updated":"2021-03-31 17:13:09.000000000","message":"add empty line","commit_id":"85a28b3816062c72704fe4b18fc1fb53a2559248"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"e789e19c68e9ce9420435a65258e09ce6e737467","unresolved":false,"context_lines":[{"line_number":144,"context_line":"\t\treturn;"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"\tipdbg_zero_rd_idx(fifo);"},{"line_number":147,"context_line":"\tconnection_write(conn, fifo-\u003ebuffer, fifo-\u003ecount);"},{"line_number":148,"context_line":"\tfifo-\u003ecount \u003d 0;"},{"line_number":149,"context_line":"}"},{"line_number":150,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":4,"id":"ceda9b01_053036fb","line":147,"updated":"2021-03-31 17:13:09.000000000","message":"this function may fail, do not ignore return value","commit_id":"85a28b3816062c72704fe4b18fc1fb53a2559248"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"e789e19c68e9ce9420435a65258e09ce6e737467","unresolved":false,"context_lines":[{"line_number":151,"context_line":"static int ipdbg_move_connection_to_fifo(struct connection *conn, struct ipdbg_fifo *fifo)"},{"line_number":152,"context_line":"{"},{"line_number":153,"context_line":"\tif (ipdbg_fifo_is_full(fifo))"},{"line_number":154,"context_line":"\t\treturn 1;"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"\tipdbg_zero_rd_idx(fifo);"},{"line_number":157,"context_line":"\tint bytes_read \u003d connection_read(conn, fifo-\u003ebuffer + fifo-\u003ecount, IPDBG_BUFFER_SIZE - fifo-\u003ecount);"}],"source_content_type":"text/x-csrc","patch_set":4,"id":"ceda9b01_c53a2ee4","line":154,"updated":"2021-03-31 17:13:09.000000000","message":"why we return here 1 if no bytes are read?","commit_id":"85a28b3816062c72704fe4b18fc1fb53a2559248"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"e789e19c68e9ce9420435a65258e09ce6e737467","unresolved":false,"context_lines":[{"line_number":426,"context_line":"\t\tipdbg_append_to_fifo(\u0026(connection-\u003eup_fifo), up);"},{"line_number":427,"context_line":"\t}"},{"line_number":428,"context_line":""},{"line_number":429,"context_line":"\treturn 1;"},{"line_number":430,"context_line":"}"},{"line_number":431,"context_line":""},{"line_number":432,"context_line":"static int ipdbg_jtag_transfer_byte(struct ipdbg_hub *hub, size_t tool, struct ipdbg_connection *connection)"}],"source_content_type":"text/x-csrc","patch_set":4,"id":"ceda9b01_a51cca7d","line":429,"updated":"2021-03-31 17:13:09.000000000","message":"this are confusing return values. Here we can get 0 and 1 (no idea what this means) and error from ipdbg_move_buffer_to_connection()","commit_id":"85a28b3816062c72704fe4b18fc1fb53a2559248"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"e789e19c68e9ce9420435a65258e09ce6e737467","unresolved":false,"context_lines":[{"line_number":441,"context_line":"\tret \u003d ipdbg_distribute_data_from_hub(hub, up);"},{"line_number":442,"context_line":""},{"line_number":443,"context_line":"\tif ((up \u0026 hub-\u003exoff_mask) \u0026\u0026 (hub-\u003elast_dn_tool !\u003d hub-\u003emax_tools)) {"},{"line_number":444,"context_line":"\t\thub-\u003edn_xoff |\u003d (1ul \u003c\u003c hub-\u003elast_dn_tool);"},{"line_number":445,"context_line":"\t\tLOG_INFO(\"tool %d sent xoff\", hub-\u003elast_dn_tool);"},{"line_number":446,"context_line":"\t}"},{"line_number":447,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":4,"id":"ceda9b01_653fc2d4","line":444,"updated":"2021-03-31 17:13:09.000000000","message":"Do I see it correctly, depending on the FPGA bitstream this value may overflow?\ndn_xoff is uint8, and i can\u0027t find any sanity checks where max amount of tools is limited to 8","commit_id":"85a28b3816062c72704fe4b18fc1fb53a2559248"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"e789e19c68e9ce9420435a65258e09ce6e737467","unresolved":false,"context_lines":[{"line_number":533,"context_line":"\treturn target_register_timer_callback(ipdbg_polling_callback, time_ms, periodic, hub);"},{"line_number":534,"context_line":"}"},{"line_number":535,"context_line":""},{"line_number":536,"context_line":"static int ipdbg_stop_polling(struct ipdbg_service *service, struct connection *connection)"},{"line_number":537,"context_line":"{"},{"line_number":538,"context_line":"\tstruct ipdbg_hub *hub \u003d service-\u003ehub;"},{"line_number":539,"context_line":"\thub-\u003econnections[service-\u003etool] \u003d NULL;"}],"source_content_type":"text/x-csrc","patch_set":4,"id":"ceda9b01_e532d205","line":536,"updated":"2021-03-31 17:13:09.000000000","message":"connection is not used, please remove","commit_id":"85a28b3816062c72704fe4b18fc1fb53a2559248"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"e789e19c68e9ce9420435a65258e09ce6e737467","unresolved":false,"context_lines":[{"line_number":555,"context_line":"\tipdbg_init_fifo(\u0026(service-\u003econnection.up_fifo));"},{"line_number":556,"context_line":"\tipdbg_init_fifo(\u0026(service-\u003econnection.dn_fifo));"},{"line_number":557,"context_line":""},{"line_number":558,"context_line":"\tipdbg_start_polling(service, connection);"},{"line_number":559,"context_line":""},{"line_number":560,"context_line":"\tLOG_INFO(\"New IPDBG Connection\");"},{"line_number":561,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":4,"id":"ceda9b01_c521cead","line":558,"updated":"2021-03-31 17:13:09.000000000","message":"error is ignored","commit_id":"85a28b3816062c72704fe4b18fc1fb53a2559248"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"e789e19c68e9ce9420435a65258e09ce6e737467","unresolved":false,"context_lines":[{"line_number":614,"context_line":"\t\treturn -ENOMEM;"},{"line_number":615,"context_line":"\t}"},{"line_number":616,"context_line":""},{"line_number":617,"context_line":"\tchar port_str_buffer[6];"},{"line_number":618,"context_line":"\tsnprintf(port_str_buffer, 6, \"%u\", port);"},{"line_number":619,"context_line":"\tretval \u003d add_service(\"ipdbg\", port_str_buffer, 1, \u0026ipdbg_on_new_connection,"},{"line_number":620,"context_line":"\t\t\u0026ipdbg_on_connection_input, \u0026ipdbg_on_connection_closed, service, NULL);"}],"source_content_type":"text/x-csrc","patch_set":4,"id":"ceda9b01_85442670","line":617,"updated":"2021-03-31 17:13:09.000000000","message":"use define instead of 6","commit_id":"85a28b3816062c72704fe4b18fc1fb53a2559248"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"e789e19c68e9ce9420435a65258e09ce6e737467","unresolved":false,"context_lines":[{"line_number":644,"context_line":"\tif (!service)"},{"line_number":645,"context_line":"\t\treturn ERROR_FAIL;"},{"line_number":646,"context_line":""},{"line_number":647,"context_line":"\tipdbg_remove_service(service);"},{"line_number":648,"context_line":"\tchar port_str_buffer[6];"},{"line_number":649,"context_line":"\tsnprintf(port_str_buffer, 6, \"%u\", service-\u003eport);"},{"line_number":650,"context_line":"\tint retval \u003d remove_service(\"ipdbg\", port_str_buffer);"}],"source_content_type":"text/x-csrc","patch_set":4,"id":"ceda9b01_6516e25c","line":647,"updated":"2021-03-31 17:13:09.000000000","message":"error is ignored","commit_id":"85a28b3816062c72704fe4b18fc1fb53a2559248"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"e789e19c68e9ce9420435a65258e09ce6e737467","unresolved":false,"context_lines":[{"line_number":645,"context_line":"\t\treturn ERROR_FAIL;"},{"line_number":646,"context_line":""},{"line_number":647,"context_line":"\tipdbg_remove_service(service);"},{"line_number":648,"context_line":"\tchar port_str_buffer[6];"},{"line_number":649,"context_line":"\tsnprintf(port_str_buffer, 6, \"%u\", service-\u003eport);"},{"line_number":650,"context_line":"\tint retval \u003d remove_service(\"ipdbg\", port_str_buffer);"},{"line_number":651,"context_line":"\t/* The ipdbg_service structure is freed by server.c:remove_service()."}],"source_content_type":"text/x-csrc","patch_set":4,"id":"ceda9b01_2529ba9a","line":648,"updated":"2021-03-31 17:13:09.000000000","message":"use define instead of 6","commit_id":"85a28b3816062c72704fe4b18fc1fb53a2559248"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"e789e19c68e9ce9420435a65258e09ce6e737467","unresolved":false,"context_lines":[{"line_number":653,"context_line":"\tif (retval \u003d\u003d ERROR_OK) {"},{"line_number":654,"context_line":"\t\thub-\u003eactive_services--;"},{"line_number":655,"context_line":"\t\tif (hub-\u003eactive_connections \u003d\u003d 0 \u0026\u0026 hub-\u003eactive_services \u003d\u003d 0) {"},{"line_number":656,"context_line":"\t\t\tipdbg_remove_hub(hub);"},{"line_number":657,"context_line":"\t\t\tipdbg_free_hub(hub);"},{"line_number":658,"context_line":"\t\t}"},{"line_number":659,"context_line":"\t} else"}],"source_content_type":"text/x-csrc","patch_set":4,"id":"ceda9b01_851bc681","line":656,"updated":"2021-03-31 17:13:09.000000000","message":"error is ignored","commit_id":"85a28b3816062c72704fe4b18fc1fb53a2559248"},{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"e789e19c68e9ce9420435a65258e09ce6e737467","unresolved":false,"context_lines":[{"line_number":696,"context_line":"\t\t\tCOMMAND_PARSE_ADDITIONAL_NUMBER(u32, i, user_instruction, \"ir_value to select hub\");"},{"line_number":697,"context_line":"\t\t\thub_configured \u003d true;"},{"line_number":698,"context_line":"\t\t\tCOMMAND_PARSE_OPTIONAL_NUMBER(u8, i, data_register_length);"},{"line_number":699,"context_line":"\t\t\tif (data_register_length \u003c 11 || data_register_length \u003e 32) {"},{"line_number":700,"context_line":"\t\t\t\tcommand_print(CMD, \"length of \\\"user\\\"-data register must be at least 11 and at most 32.\");"},{"line_number":701,"context_line":"\t\t\t\treturn ERROR_FAIL;"},{"line_number":702,"context_line":"\t\t\t}"}],"source_content_type":"text/x-csrc","patch_set":4,"id":"ceda9b01_45263ecb","line":699,"updated":"2021-03-31 17:13:09.000000000","message":"use define instead of 11 and 32","commit_id":"85a28b3816062c72704fe4b18fc1fb53a2559248"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":18,"context_line":"#define IPDBG_MAX_DR_LENGTH 13"},{"line_number":19,"context_line":"#define IPDBG_TCP_PORT_STR_MAX_LENGTH 6"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"#define COMMAND_PARSE_ADDITIONAL_NUMBER(type, argn, out, name_str) \\"},{"line_number":22,"context_line":"\tdo { \\"},{"line_number":23,"context_line":"\t\tif (argn+1 \u003e\u003d CMD_ARGC || CMD_ARGV[argn+1][0] \u003d\u003d \u0027-\u0027) { \\"},{"line_number":24,"context_line":"\t\t\tcommand_print(CMD, \"no \" name_str \" given\"); \\"},{"line_number":25,"context_line":"\t\t\treturn ERROR_FAIL; \\"},{"line_number":26,"context_line":"\t\t} \\"},{"line_number":27,"context_line":"\t\t++argn; \\"},{"line_number":28,"context_line":"\t\tCOMMAND_PARSE_NUMBER(type, CMD_ARGV[argn], out); \\"},{"line_number":29,"context_line":"\t} while (0)"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"#define COMMAND_PARSE_OPTIONAL_NUMBER(type, argn, out) \\"},{"line_number":32,"context_line":"\tdo { \\"},{"line_number":33,"context_line":"\t\tif (argn+1 \u003c CMD_ARGC \u0026\u0026 CMD_ARGV[argn+1][0] !\u003d \u0027-\u0027) { \\"},{"line_number":34,"context_line":"\t\t\t++argn; \\"},{"line_number":35,"context_line":"\t\t\tCOMMAND_PARSE_NUMBER(type, CMD_ARGV[argn], out); \\"},{"line_number":36,"context_line":"\t\t} \\"},{"line_number":37,"context_line":"\t} while (0)"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"/* private connection data for IPDBG */"},{"line_number":40,"context_line":"struct ipdbg_fifo {"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"aedf27f1_528b721b","line":37,"range":{"start_line":21,"start_character":0,"end_line":37,"end_character":12},"updated":"2021-04-15 22:18:32.000000000","message":"These two macros should go in src/helper/command.h","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":141,"context_line":"\tipdbg_zero_rd_idx(fifo);"},{"line_number":142,"context_line":"\tint bytes_written \u003d connection_write(conn, fifo-\u003ebuffer, fifo-\u003ecount);"},{"line_number":143,"context_line":"\tif (bytes_written !\u003d (int)(fifo-\u003ecount)) {"},{"line_number":144,"context_line":"\t\tLOG_ERROR(\"error during write: %d !\u003d %d\", (int)bytes_written, (int)fifo-\u003ecount);"},{"line_number":145,"context_line":"\t\tconnection-\u003eclosed \u003d true;"},{"line_number":146,"context_line":"\t\treturn ERROR_SERVER_REMOTE_CLOSED;"},{"line_number":147,"context_line":"\t}"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"aedf27f1_7290f646","line":144,"updated":"2021-04-15 22:18:32.000000000","message":"bytes_written is already int, no need for the cast\nfifo-\u003ecount is size_t, use %z\nBut you have everithing size_t, so simply define bytes_written as size_t too and remove the cast also in the comparisons.","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":192,"context_line":"{"},{"line_number":193,"context_line":"\t*service \u003d calloc(1, sizeof(struct ipdbg_service));"},{"line_number":194,"context_line":"\tif (!(*service))"},{"line_number":195,"context_line":"\t\treturn -ENOMEM;"},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"\t(*service)-\u003ehub \u003d hub;"},{"line_number":198,"context_line":"\t(*service)-\u003etool \u003d tool;"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"aedf27f1_1295ea35","line":195,"updated":"2021-04-15 22:18:32.000000000","message":"No, we do not use standard errno values in OpenOCD.\nhere print a message\nLOG_ERROR(\"Out of memory\");\nand return ERROR_FAIL;\nI think you can remove one level of parenthesis in\nif(!*service)","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":256,"context_line":"\tstruct ipdbg_hub *new_hub \u003d calloc(1, sizeof(struct ipdbg_hub));"},{"line_number":257,"context_line":"\tif (!new_hub) {"},{"line_number":258,"context_line":"\t\tfree(virtual_ir);"},{"line_number":259,"context_line":"\t\treturn -ENOMEM;"},{"line_number":260,"context_line":"\t}"},{"line_number":261,"context_line":""},{"line_number":262,"context_line":"\tnew_hub-\u003emax_tools \u003d ipdbg_max_tools_from_data_register_length(data_register_length);"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"aedf27f1_329a6e67","line":259,"updated":"2021-04-15 22:18:32.000000000","message":"ditto","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":264,"context_line":"\tif (!new_hub-\u003econnections) {"},{"line_number":265,"context_line":"\t\tfree(virtual_ir);"},{"line_number":266,"context_line":"\t\tfree(new_hub);"},{"line_number":267,"context_line":"\t\treturn -ENOMEM;"},{"line_number":268,"context_line":"\t}"},{"line_number":269,"context_line":"\tnew_hub-\u003etap                  \u003d tap;"},{"line_number":270,"context_line":"\tnew_hub-\u003euser_instruction     \u003d user_instruction;"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"aedf27f1_d29e8259","line":267,"updated":"2021-04-15 22:18:32.000000000","message":"ditto","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":269,"context_line":"\tnew_hub-\u003etap                  \u003d tap;"},{"line_number":270,"context_line":"\tnew_hub-\u003euser_instruction     \u003d user_instruction;"},{"line_number":271,"context_line":"\tnew_hub-\u003edata_register_length \u003d data_register_length;"},{"line_number":272,"context_line":"\tnew_hub-\u003evalid_mask           \u003d 1 \u003c\u003c (data_register_length - 1);"},{"line_number":273,"context_line":"\tnew_hub-\u003exoff_mask            \u003d 1 \u003c\u003c (data_register_length - 2);"},{"line_number":274,"context_line":"\tnew_hub-\u003etool_mask            \u003d (new_hub-\u003exoff_mask - 1) \u003e\u003e 8;"},{"line_number":275,"context_line":"\tnew_hub-\u003elast_dn_tool         \u003d new_hub-\u003etool_mask;"},{"line_number":276,"context_line":"\tnew_hub-\u003evirtual_ir           \u003d virtual_ir;"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"aedf27f1_f29b8666","line":273,"range":{"start_line":272,"start_character":0,"end_line":273,"end_character":65},"updated":"2021-04-15 22:18:32.000000000","message":"use the macro BIT()","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":417,"context_line":"\tstruct connection *conn \u003d hub-\u003econnections[tool];"},{"line_number":418,"context_line":"\tif (conn) {"},{"line_number":419,"context_line":"\t\tstruct ipdbg_connection *connection \u003d conn-\u003epriv;"},{"line_number":420,"context_line":"\t\tif (ipdbg_fifo_is_full(\u0026(connection-\u003eup_fifo))) {"},{"line_number":421,"context_line":"\t\t\tint retval \u003d ipdbg_move_buffer_to_connection(conn, \u0026(connection-\u003eup_fifo));"},{"line_number":422,"context_line":"\t\t\tif (retval !\u003d ERROR_OK)"},{"line_number":423,"context_line":"\t\t\t\treturn retval;"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"aedf27f1_72deb616","line":420,"updated":"2021-04-15 22:18:32.000000000","message":"no need for parenthesis after \u0026","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":418,"context_line":"\tif (conn) {"},{"line_number":419,"context_line":"\t\tstruct ipdbg_connection *connection \u003d conn-\u003epriv;"},{"line_number":420,"context_line":"\t\tif (ipdbg_fifo_is_full(\u0026(connection-\u003eup_fifo))) {"},{"line_number":421,"context_line":"\t\t\tint retval \u003d ipdbg_move_buffer_to_connection(conn, \u0026(connection-\u003eup_fifo));"},{"line_number":422,"context_line":"\t\t\tif (retval !\u003d ERROR_OK)"},{"line_number":423,"context_line":"\t\t\t\treturn retval;"},{"line_number":424,"context_line":"\t\t}"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"aedf27f1_52d9322b","line":421,"updated":"2021-04-15 22:18:32.000000000","message":"no need for parenthesis after \u0026","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":422,"context_line":"\t\t\tif (retval !\u003d ERROR_OK)"},{"line_number":423,"context_line":"\t\t\t\treturn retval;"},{"line_number":424,"context_line":"\t\t}"},{"line_number":425,"context_line":"\t\tipdbg_append_to_fifo(\u0026(connection-\u003eup_fifo), up);"},{"line_number":426,"context_line":"\t}"},{"line_number":427,"context_line":"\treturn ERROR_OK;"},{"line_number":428,"context_line":"}"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"aedf27f1_12e3aad5","line":425,"updated":"2021-04-15 22:18:32.000000000","message":"no need for parenthesis after \u0026","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":430,"context_line":"static int ipdbg_jtag_transfer_byte(struct ipdbg_hub *hub, size_t tool, struct ipdbg_connection *connection)"},{"line_number":431,"context_line":"{"},{"line_number":432,"context_line":"\tuint32_t dn \u003d hub-\u003evalid_mask | ((tool \u0026 hub-\u003etool_mask) \u003c\u003c 8) |"},{"line_number":433,"context_line":"\t\t\t\t(0x00fful \u0026 ipdbg_get_from_fifo(\u0026(connection-\u003edn_fifo)));"},{"line_number":434,"context_line":"\tuint32_t up \u003d 0;"},{"line_number":435,"context_line":"\tint ret \u003d ipdbg_shift_data(hub, dn, \u0026up);"},{"line_number":436,"context_line":"\tif (ret !\u003d ERROR_OK)"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"aedf27f1_b2bc1eb3","line":433,"updated":"2021-04-15 22:18:32.000000000","message":"no need for parenthesis after \u0026","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":441,"context_line":"\t\treturn ret;"},{"line_number":442,"context_line":""},{"line_number":443,"context_line":"\tif ((up \u0026 hub-\u003exoff_mask) \u0026\u0026 (hub-\u003elast_dn_tool !\u003d hub-\u003emax_tools)) {"},{"line_number":444,"context_line":"\t\thub-\u003edn_xoff |\u003d (1ul \u003c\u003c hub-\u003elast_dn_tool);"},{"line_number":445,"context_line":"\t\tLOG_INFO(\"tool %d sent xoff\", hub-\u003elast_dn_tool);"},{"line_number":446,"context_line":"\t}"},{"line_number":447,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":5,"id":"aedf27f1_92a8fa75","line":444,"updated":"2021-04-15 22:18:32.000000000","message":"use the macro BIT()","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":463,"context_line":"\t\treturn ret;"},{"line_number":464,"context_line":""},{"line_number":465,"context_line":"\t/* transfer dn buffers to jtag-hub */"},{"line_number":466,"context_line":"\tunsigned num_transfers \u003d 0;"},{"line_number":467,"context_line":"\tfor (size_t tool \u003d 0 ; tool \u003c hub-\u003emax_tools ; ++tool) {"},{"line_number":468,"context_line":"\t\tstruct connection *conn \u003d hub-\u003econnections[tool];"},{"line_number":469,"context_line":"\t\tif (conn \u0026\u0026 conn-\u003epriv) {"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"aedf27f1_92bf9aa7","line":466,"updated":"2021-04-15 22:18:32.000000000","message":"unsigned int","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":468,"context_line":"\t\tstruct connection *conn \u003d hub-\u003econnections[tool];"},{"line_number":469,"context_line":"\t\tif (conn \u0026\u0026 conn-\u003epriv) {"},{"line_number":470,"context_line":"\t\t\tstruct ipdbg_connection *connection \u003d conn-\u003epriv;"},{"line_number":471,"context_line":"\t\t\twhile (((hub-\u003edn_xoff \u0026 (1ul \u003c\u003c tool)) \u003d\u003d 0) \u0026\u0026 !ipdbg_fifo_is_empty(\u0026(connection-\u003edn_fifo))) {"},{"line_number":472,"context_line":"\t\t\t\tret \u003d ipdbg_jtag_transfer_byte(hub, tool, connection);"},{"line_number":473,"context_line":"\t\t\t\tif (ret !\u003d ERROR_OK)"},{"line_number":474,"context_line":"\t\t\t\t\treturn ret;"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"aedf27f1_b2a5fe9c","line":471,"updated":"2021-04-15 22:18:32.000000000","message":"BIT()\nno need for parenthesis after \u0026","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":496,"context_line":"\t\tstruct connection *conn \u003d hub-\u003econnections[tool];"},{"line_number":497,"context_line":"\t\tif (conn \u0026\u0026 conn-\u003epriv) {"},{"line_number":498,"context_line":"\t\t\tstruct ipdbg_connection *connection \u003d conn-\u003epriv;"},{"line_number":499,"context_line":"\t\t\tint retval \u003d ipdbg_move_buffer_to_connection(conn, \u0026(connection-\u003eup_fifo));"},{"line_number":500,"context_line":"\t\t\tif (retval !\u003d ERROR_OK)"},{"line_number":501,"context_line":"\t\t\t\treturn retval;"},{"line_number":502,"context_line":"\t\t}"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"aedf27f1_32e82eaf","line":499,"updated":"2021-04-15 22:18:32.000000000","message":"no need for parenthesis after \u0026","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":515,"context_line":"\t\treturn ERROR_OK;"},{"line_number":516,"context_line":"\t}"},{"line_number":517,"context_line":""},{"line_number":518,"context_line":"\tconst uint32_t resetHub \u003d hub-\u003evalid_mask | ((hub-\u003emax_tools) \u003c\u003c 8);"},{"line_number":519,"context_line":""},{"line_number":520,"context_line":"\tint ret \u003d ipdbg_shift_vir(hub);"},{"line_number":521,"context_line":"\tif (ret !\u003d ERROR_OK)"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"aedf27f1_d2cc4269","line":518,"updated":"2021-04-15 22:18:32.000000000","message":"No CamelCase, please. replace resetHub with e.g. reset_hub","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":555,"context_line":"static int ipdbg_on_new_connection(struct connection *connection)"},{"line_number":556,"context_line":"{"},{"line_number":557,"context_line":"\tstruct ipdbg_service *service \u003d connection-\u003eservice-\u003epriv;"},{"line_number":558,"context_line":"\tconnection-\u003epriv \u003d \u0026(service-\u003econnection);"},{"line_number":559,"context_line":"\t/* initialize ipdbg connection information */"},{"line_number":560,"context_line":"\tipdbg_init_fifo(\u0026(service-\u003econnection.up_fifo));"},{"line_number":561,"context_line":"\tipdbg_init_fifo(\u0026(service-\u003econnection.dn_fifo));"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"aedf27f1_f2c94656","line":558,"updated":"2021-04-15 22:18:32.000000000","message":"no need for parenthesis after \u0026","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":557,"context_line":"\tstruct ipdbg_service *service \u003d connection-\u003eservice-\u003epriv;"},{"line_number":558,"context_line":"\tconnection-\u003epriv \u003d \u0026(service-\u003econnection);"},{"line_number":559,"context_line":"\t/* initialize ipdbg connection information */"},{"line_number":560,"context_line":"\tipdbg_init_fifo(\u0026(service-\u003econnection.up_fifo));"},{"line_number":561,"context_line":"\tipdbg_init_fifo(\u0026(service-\u003econnection.dn_fifo));"},{"line_number":562,"context_line":""},{"line_number":563,"context_line":"\tint retval \u003d ipdbg_start_polling(service, connection);"},{"line_number":564,"context_line":"\tif (retval !\u003d ERROR_OK) {"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"aedf27f1_92d6baf5","line":561,"range":{"start_line":560,"start_character":0,"end_line":561,"end_character":49},"updated":"2021-04-15 22:18:32.000000000","message":"no need for parenthesis after \u0026","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":599,"context_line":"{"},{"line_number":600,"context_line":"\tstruct ipdbg_connection *conn \u003d connection-\u003epriv;"},{"line_number":601,"context_line":"\tconn-\u003eclosed \u003d true;"},{"line_number":602,"context_line":"\tLOG_INFO(\"Closed IPDBG Connection \");"},{"line_number":603,"context_line":""},{"line_number":604,"context_line":"\treturn ipdbg_stop_polling(connection-\u003eservice-\u003epriv);"},{"line_number":605,"context_line":"}"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"aedf27f1_52b292e5","line":602,"updated":"2021-04-15 22:18:32.000000000","message":"remove the space at the end of the string","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":710,"context_line":""},{"line_number":711,"context_line":"\tfor (unsigned int i \u003d 0; i \u003c CMD_ARGC; ++i) {"},{"line_number":712,"context_line":"\t\tif (strcmp(CMD_ARGV[i], \"-tap\") \u003d\u003d 0) {"},{"line_number":713,"context_line":"\t\t\tif (i+1 \u003e\u003d CMD_ARGC || CMD_ARGV[i+1][0] \u003d\u003d \u0027-\u0027) {"},{"line_number":714,"context_line":"\t\t\t\tcommand_print(CMD, \"no TAP given\");"},{"line_number":715,"context_line":"\t\t\t\treturn ERROR_FAIL;"},{"line_number":716,"context_line":"\t\t\t}"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"aedf27f1_b2d3be04","line":713,"updated":"2021-04-15 22:18:32.000000000","message":"add space around \u0027+\u0027","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":714,"context_line":"\t\t\t\tcommand_print(CMD, \"no TAP given\");"},{"line_number":715,"context_line":"\t\t\t\treturn ERROR_FAIL;"},{"line_number":716,"context_line":"\t\t\t}"},{"line_number":717,"context_line":"\t\t\ttap \u003d jtag_tap_by_string(CMD_ARGV[i+1]);"},{"line_number":718,"context_line":"\t\t\tif (!tap) {"},{"line_number":719,"context_line":"\t\t\t\tcommand_print(CMD, \"Tap %s unknown\", CMD_ARGV[i+1]);"},{"line_number":720,"context_line":"\t\t\t\treturn ERROR_FAIL;"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"aedf27f1_5200526d","line":717,"updated":"2021-04-15 22:18:32.000000000","message":"add space around +","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":716,"context_line":"\t\t\t}"},{"line_number":717,"context_line":"\t\t\ttap \u003d jtag_tap_by_string(CMD_ARGV[i+1]);"},{"line_number":718,"context_line":"\t\t\tif (!tap) {"},{"line_number":719,"context_line":"\t\t\t\tcommand_print(CMD, \"Tap %s unknown\", CMD_ARGV[i+1]);"},{"line_number":720,"context_line":"\t\t\t\treturn ERROR_FAIL;"},{"line_number":721,"context_line":"\t\t\t}"},{"line_number":722,"context_line":"\t\t\t++i;"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"aedf27f1_7205567c","line":719,"updated":"2021-04-15 22:18:32.000000000","message":"here too","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":767,"context_line":"\tif (has_virtual_ir) {"},{"line_number":768,"context_line":"\t\tvirtual_ir \u003d calloc(1, sizeof(struct ipdbg_virtual_ir_info));"},{"line_number":769,"context_line":"\t\tif (!virtual_ir)"},{"line_number":770,"context_line":"\t\t\treturn -ENOMEM;"},{"line_number":771,"context_line":"\t\tvirtual_ir-\u003einstruction \u003d virtual_ir_instruction;"},{"line_number":772,"context_line":"\t\tvirtual_ir-\u003elength      \u003d virtual_ir_length;"},{"line_number":773,"context_line":"\t\tvirtual_ir-\u003evalue       \u003d virtual_ir_value;"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"aedf27f1_72b796d4","line":770,"updated":"2021-04-15 22:18:32.000000000","message":"ditto","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"}],"src/jtag/core.c":[{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7a6d9f132b3684a0ac947d66e039dd3dfc705ede","unresolved":false,"context_lines":[{"line_number":46,"context_line":""},{"line_number":47,"context_line":"/* ipdbg are utilities to debug IP-cores. It uses JTAG for transport. */"},{"line_number":48,"context_line":"#include \"ipdbg/ipdbg.h\""},{"line_number":49,"context_line":"/** The number of JTAG queue flushes (for profiling and debugging purposes). */"},{"line_number":50,"context_line":"static int jtag_flush_queue_count;"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"/* Sleep this # of ms after flushing the queue */"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"aedf27f1_12ac0a84","line":49,"updated":"2021-04-15 22:18:32.000000000","message":"add one empty line","commit_id":"9eb501ca791417e557d91c0d563c4f2a160da01d"}],"src/server/ipdbg.c":[{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"a47c28c5cf94fdca5b7aa20a1782ba19e880b757","unresolved":false,"context_lines":[{"line_number":559,"context_line":"static int ipdbg_on_connection_input(struct connection *connection)"},{"line_number":560,"context_line":"{"},{"line_number":561,"context_line":"\tstruct ipdbg_connection *conn \u003d connection-\u003epriv;"},{"line_number":562,"context_line":"\tstruct ipdbg_fifo *fifo \u003d \u0026(conn-\u003edn_fifo);"},{"line_number":563,"context_line":""},{"line_number":564,"context_line":"\tif (ipdbg_fifo_is_full(fifo))"},{"line_number":565,"context_line":"\t\treturn ERROR_OK;"}],"source_content_type":"text/x-csrc","patch_set":7,"id":"aedf27f1_55d4bc4b","line":562,"updated":"2021-04-19 20:58:50.000000000","message":"remove unnecessary parenthesis","commit_id":"32d98b9896e89f76143ba38ef390809507758f88"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"a47c28c5cf94fdca5b7aa20a1782ba19e880b757","unresolved":false,"context_lines":[{"line_number":612,"context_line":"\tif (retval !\u003d ERROR_OK || !service) {"},{"line_number":613,"context_line":"\t\tif (hub-\u003eactive_services \u003d\u003d 0 \u0026\u0026 hub-\u003eactive_connections \u003d\u003d 0)"},{"line_number":614,"context_line":"\t\t\tipdbg_free_hub(hub);"},{"line_number":615,"context_line":"\t\tLOG_ERROR(\"Out of memory\");"},{"line_number":616,"context_line":"\t\treturn ERROR_FAIL;"},{"line_number":617,"context_line":"\t}"},{"line_number":618,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":7,"id":"aedf27f1_95ea2404","line":615,"updated":"2021-04-19 20:58:50.000000000","message":"The error is already logged by ipdng_create_service(). No need to log it again.","commit_id":"32d98b9896e89f76143ba38ef390809507758f88"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"a47c28c5cf94fdca5b7aa20a1782ba19e880b757","unresolved":false,"context_lines":[{"line_number":693,"context_line":""},{"line_number":694,"context_line":"\tfor (unsigned int i \u003d 0; i \u003c CMD_ARGC; ++i) {"},{"line_number":695,"context_line":"\t\tif (strcmp(CMD_ARGV[i], \"-tap\") \u003d\u003d 0) {"},{"line_number":696,"context_line":"\t\t\tif (i+1 \u003e\u003d CMD_ARGC || CMD_ARGV[i + 1][0] \u003d\u003d \u0027-\u0027) {"},{"line_number":697,"context_line":"\t\t\t\tcommand_print(CMD, \"no TAP given\");"},{"line_number":698,"context_line":"\t\t\t\treturn ERROR_FAIL;"},{"line_number":699,"context_line":"\t\t\t}"}],"source_content_type":"text/x-csrc","patch_set":7,"id":"aedf27f1_b5e7283b","line":696,"updated":"2021-04-19 20:58:50.000000000","message":"add space around \u0027+\u0027","commit_id":"32d98b9896e89f76143ba38ef390809507758f88"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"de7f4de08325cd384431a3d135a9abd358a0502c","unresolved":false,"context_lines":[{"line_number":619,"context_line":"\tchar port_str_buffer[IPDBG_TCP_PORT_STR_MAX_LENGTH];"},{"line_number":620,"context_line":"\tsnprintf(port_str_buffer, IPDBG_TCP_PORT_STR_MAX_LENGTH, \"%u\", port);"},{"line_number":621,"context_line":"\tretval \u003d add_service(\"ipdbg\", port_str_buffer, 1, \u0026ipdbg_on_new_connection,"},{"line_number":622,"context_line":"\t\t\u0026ipdbg_on_connection_input, \u0026ipdbg_on_connection_closed, service, NULL);"},{"line_number":623,"context_line":"\tif (retval \u003d\u003d ERROR_OK) {"},{"line_number":624,"context_line":"\t\tipdbg_add_service(service);"},{"line_number":625,"context_line":"\t\tif (hub-\u003eactive_services \u003d\u003d 0 \u0026\u0026 hub-\u003eactive_connections \u003d\u003d 0)"}],"source_content_type":"text/x-csrc","patch_set":8,"id":"aedf27f1_7869b51c","line":622,"updated":"2021-05-01 13:34:12.000000000","message":"The prototype of add_service() has changed on March 10 with commit http://openocd.zylin.com/6031/\nNow this line gives syntax error.\nCan you post a new version rebased on current master branch?\nThe fix is to simply remove the last NULL parameter.","commit_id":"44b859f18699aaf0e328aab18fc544db63ba1173"}],"src/server/ipdbg.h":[{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"a47c28c5cf94fdca5b7aa20a1782ba19e880b757","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"#include \u003chelper/command.h\u003e"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"#define IPDBG_BUFFER_SIZE 16384"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"int ipdbg_register_commands(struct command_context *cmd_ctx);"},{"line_number":12,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":7,"id":"aedf27f1_f5ddb074","line":9,"updated":"2021-04-19 20:58:50.000000000","message":"this macro is only used in ipdbg.c\nCan be moved there!","commit_id":"32d98b9896e89f76143ba38ef390809507758f88"}],"tcl/ipdbg/lattice-lfe3.cfg":[{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"8bf72a852fc9c1b30e8eaa7cc9535f97dc20961a","unresolved":false,"context_lines":[{"line_number":10,"context_line":"\t-expected-id 0x01010043 \\"},{"line_number":11,"context_line":"\t-expected-id 0x01012043 \\"},{"line_number":12,"context_line":"\t-expected-id 0x01014043 \\"},{"line_number":13,"context_line":"\t-expected-id 0x01015043"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"set LFE3_BYPASS 0xFF"},{"line_number":16,"context_line":"set LFE3_LSCC_IPA 0x32"}],"source_content_type":"text/x-ttcn-cfg","patch_set":3,"id":"ceda9b01_85b426e6","line":13,"updated":"2021-03-28 05:42:05.000000000","message":"please move target configs in separate patch.\nThe actual FPGA should go to tcl/target/ and should have only real HW part. See:\nhttp://openocd.zylin.com/#/c/6112/1/tcl/target/lattice_ecp5.cfg","commit_id":"6c251e91529070efdd98ea3b798acf89b866df63"}],"tcl/ipdbg/lattice-lfe5.cfg":[{"author":{"_account_id":1000410,"name":"Oleksij Rempel","email":"linux@rempel-privat.de","username":"olerem"},"change_message_id":"8bf72a852fc9c1b30e8eaa7cc9535f97dc20961a","unresolved":false,"context_lines":[{"line_number":16,"context_line":"\t-expected-id 0x41113043 \\"},{"line_number":17,"context_line":"\t-expected-id 0x81111043 \\"},{"line_number":18,"context_line":"\t-expected-id 0x81112043 \\"},{"line_number":19,"context_line":"\t-expected-id 0x81113043"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"set LFE5_BYPASS 0xFF"},{"line_number":22,"context_line":"set LFE5_LSC_IP_A 0x32"}],"source_content_type":"text/x-ttcn-cfg","patch_set":3,"id":"ceda9b01_2599ba80","line":19,"updated":"2021-03-28 05:42:05.000000000","message":"this config is conflicting with my patch http://openocd.zylin.com/#/c/6112/1/tcl/target/lattice_ecp5.cfg\nand it seems to provide not completely working target. In my tests i needed -irmask 0x83 -ircapture 0x1  to make it work.\nThe other problem is naming. Official family name is ecp5, some chips on this family are named LFE5, some LAE5. Seeking for LFE5 brings nearly no usable results, so it is better to use official brand name. The same apply to other configs","commit_id":"6c251e91529070efdd98ea3b798acf89b866df63"}]}
