+2021-03-30 Luis Machado <luis.machado@linaro.org>
+
+ * server.cc (handle_general_set, handle_query): Update variable
+ to bool and fix verification logic.
+
2021-03-24 Luis Machado <luis.machado@linaro.org>
* Makefile.in (SFILES): Add /../gdb/nat/aarch64-mte-linux-ptrace.c.
require_running_or_return (own_buf);
- int ret = parse_store_memtags_request (own_buf, &addr, &len, tags,
+ bool ret = parse_store_memtags_request (own_buf, &addr, &len, tags,
&type);
- if (ret == 0)
+ if (ret)
ret = the_target->store_memtags (addr, len, tags, type);
- if (ret)
+ if (!ret)
write_enn (own_buf);
else
write_ok (own_buf);
parse_fetch_memtags_request (own_buf, &addr, &len, &type);
- int ret = the_target->fetch_memtags (addr, len, tags, type);
+ bool ret = the_target->fetch_memtags (addr, len, tags, type);
if (ret)
ret = create_fetch_memtags_reply (own_buf, tags);
- if (ret)
+ if (!ret)
write_enn (own_buf);
*new_packet_len_p = strlen (own_buf);