if (str_len % 2)
{
- ERROR("BUG: gdb value with uneven number of characters encountered");
+ ERROR("BUG: gdb value with uneven number of characters encountered: %s", str);
exit(-1);
}
hex_buf = buf_to_str(reg_list[reg_num]->value, reg_list[reg_num]->size, 16);
- gdb_str_to_target(target, reg_packet, hex_buf);
+ gdb_str_to_target(target, hex_buf, reg_packet);
gdb_put_packet(connection, reg_packet, CEIL(reg_list[reg_num]->size, 8) * 2);
buffer[i] = tmp;
}
+ retval = ERROR_OK;
switch (len)
{
/* handle sized writes */
return ERROR_SERVER_REMOTE_CLOSED;
}
+ retval = ERROR_OK;
if( len ) {
buffer = malloc(len);