Lines Matching defs:len
242 mem2hex(char *vdst, const char *vsrc, int len)
247 while (len--) {
466 cmdCtx.len = data.size() - 2;
693 BaseRemoteGDB::insertSoftBreak(Addr addr, size_t len)
695 if (!checkBpLen(len))
698 return insertHardBreak(addr, len);
702 BaseRemoteGDB::removeSoftBreak(Addr addr, size_t len)
704 if (!checkBpLen(len))
707 return removeHardBreak(addr, len);
711 BaseRemoteGDB::insertHardBreak(Addr addr, size_t len)
713 if (!checkBpLen(len))
726 BaseRemoteGDB::removeHardBreak(Addr addr, size_t len)
728 if (!checkBpLen(len))
833 BaseRemoteGDB::checkBpLen(size_t len)
835 return len == sizeof(MachInst);
842 DDUMP(GDBMisc, ctx.data, ctx.len);
858 if (ctx.len) {
927 size_t len = hex2i(&p);
930 if (!acc(addr, len))
933 char buf[len];
934 if (!read(addr, len, buf))
937 char temp[2 * len + 1];
938 temp[2 * len] = '\0';
939 mem2hex(temp, buf, len);
951 size_t len = hex2i(&p);
954 if (len * 2 > ctx.len - (p - ctx.data))
956 char buf[len];
957 p = (char *)hex2mem(buf, p, len);
960 if (!acc(addr, len))
962 if (!write(addr, len, buf))
971 string s(ctx.data, ctx.len - 1);
1067 if (ctx.len) {
1086 size_t len = hex2i(&p);
1088 DPRINTF(GDBMisc, "clear %s, addr=%#x, len=%d\n",
1089 break_type(subcmd), addr, len);
1093 removeSoftBreak(addr, len);
1096 removeHardBreak(addr, len);
1119 size_t len = hex2i(&p);
1121 DPRINTF(GDBMisc, "set %s, addr=%#x, len=%d\n",
1122 break_type(subcmd), addr, len);
1126 insertSoftBreak(addr, len);
1129 insertHardBreak(addr, len);