Home | History | Annotate | Download | only in aarch64

Lines Matching refs:Format

86 // Format: wn or xn with 0 <= n < 32 or a name in the aliases list.
113 // Format: sn or dn with 0 <= n < 32.
131 // Format: Alphanumeric string starting with a letter.
156 // Format: 0x... with up to 16 hexadecimal digits.
175 // Format: n.
191 // Format: .ln
225 class Format : public FormatToken {
227 Format(const char* fmt, char type_code) : fmt_(fmt), type_code_(type_code) {}
372 PrintCommand(Token* name, Token* target, FormatToken* format)
373 : DebugCommand(name), target_(target), format_(format) {}
380 FormatToken* format() { return format_; }
399 FormatToken* format,
401 : DebugCommand(name), target_(target), format_(format), count_(count) {}
409 FormatToken* format() { return format_; }
476 const char* PrintCommand::kArguments = "<entity>[.format]";
478 " Print the given entity according to the given format.\n"
479 " The format parameter only affects individual registers; it is ignored\n"
489 const char* ExamineCommand::kArguments = "<addr>[.format] [n = 10]";
492 " the given [.format].\n"
494 " Format is made of a type letter: 'x' (hexadecimal), 's' (signed), 'u'\n"
498 " hexadecimal format.";
620 const FormatToken* format,
627 int size = format->SizeOf();
640 format->PrintData(&data);
649 const FormatToken* format) {
651 const uint64_t format_size = format->SizeOf() * 8;
662 format->PrintData(&data);
671 const FormatToken* format) {
673 const uint64_t format_size = format->SizeOf() * 8;
688 format->PrintData(&data);
1040 if (length == 1) return new Format<uint32_t>("%08" PRIx32, 'i');
1069 return new Format<uint8_t>("%02" PRIx8, 'x');
1071 return new Format<uint16_t>("%04" PRIx16, 'x');
1073 return new Format<uint32_t>("%08" PRIx32, 'x');
1075 return new Format<uint64_t>("%016" PRIx64, 'x');
1082 return new Format<int8_t>("%4" PRId8, 's');
1084 return new Format<int16_t>("%6" PRId16, 's');
1086 return new Format<int32_t>("%11" PRId32, 's');
1088 return new Format<int64_t>("%20" PRId64, 's');
1095 return new Format<uint8_t>("%3" PRIu8, 'u');
1097 return new Format<uint16_t>("%5" PRIu16, 'u');
1099 return new Format<uint32_t>("%10" PRIu32, 'u');
1101 return new Format<uint64_t>("%20" PRIu64, 'u');
1108 return new Format<float>("%13g", 'f');
1110 return new Format<double>("%13g", 'f');
1122 void Format<T>::Print(FILE* out) const {
1124 fprintf(out, "[Format %c%u - %s]", type_code_, size, fmt_);
1154 // 'Token.format'.
1155 Token* format = FormatToken::Tokenize(dot + 1);
1156 if (format != NULL) {
1159 args.push_back(format);
1161 // Error while parsing the format, push the UnknownToken so an error
1367 FormatToken* format = new Format<uint32_t>("%08" PRIx32, 'i');
1368 return new ExamineCommand(args[0], target, format, count);
1375 if (format() != NULL) format()->Print(out);
1400 FormatToken* format_tok = format();
1404 printf(" ** unsupported format: instructions **\n");
1437 FormatToken* format = NULL;
1446 // If the target is an identifier there must be no format. This is checked
1454 format = new Format<uint32_t>("%08" PRIx32, 'x');
1457 format = new Format<uint64_t>("%016" PRIx64, 'x');
1465 format = new Format<float>("%8g", 'f');
1468 format = new Format<double>("%8g", 'f');
1480 "format is only allowed with registers");
1485 return new InvalidCommand(args, 2, "expects format");
1487 format = FormatToken::Cast(second);
1489 if (format->SizeOf() > target_size) {
1490 return new InvalidCommand(args, 2, "format too wide");
1499 return new PrintCommand(args[0], target, format);
1508 if (format()->GetTypeCode() == 'i') {
1511 debugger->PrintMemory(address, format(), amount);
1520 format()->Print(out);
1535 FormatToken* format = NULL;
1540 format = new Format<uint64_t>("%016" PRIx64, 'x');
1544 case 3: { // mem addr.format [10]
1548 format = FormatToken::Cast(second);
1552 format = new Format<uint64_t>("%016" PRIx64, 'x');
1555 return new InvalidCommand(args, 2, "expects format or integer");
1560 case 4: { // mem addr.format n
1564 return new InvalidCommand(args, -1, "expects addr[.format] [n]");
1566 format = FormatToken::Cast(second);
1574 return new ExamineCommand(args[0], target, format, count);