mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-25 22:29:48 +00:00
Lowercase all pickle instructions ##arch
* There's asm.ucase to tweak this
This commit is contained in:
parent
d93330479d
commit
048f730ee9
@ -90,74 +90,74 @@ enum opcode {
|
||||
};
|
||||
|
||||
static const struct opmap op_name_map[] = {
|
||||
{ "MARK", '(' },
|
||||
{ "STOP", '.' },
|
||||
{ "POP", '0' },
|
||||
{ "POP_MARK", '1' },
|
||||
{ "DUP", '2' },
|
||||
{ "FLOAT", 'F' },
|
||||
{ "INT", 'I' },
|
||||
{ "BININT", 'J' },
|
||||
{ "BININT1", 'K' },
|
||||
{ "LONG", 'L' },
|
||||
{ "BININT2", 'M' },
|
||||
{ "NONE", 'N' },
|
||||
{ "PERSID", 'P' },
|
||||
{ "BINPERSID", 'Q' },
|
||||
{ "REDUCE", 'R' },
|
||||
{ "STRING", 'S' },
|
||||
{ "BINSTRING", 'T' },
|
||||
{ "SHORT_BINSTRING", 'U' },
|
||||
{ "UNICODE", 'V' },
|
||||
{ "BINUNICODE", 'X' },
|
||||
{ "APPEND", 'a' },
|
||||
{ "BUILD", 'b' },
|
||||
{ "GLOBAL", 'c' },
|
||||
{ "DICT", 'd' },
|
||||
{ "EMPTY_DICT", '}' },
|
||||
{ "APPENDS", 'e' },
|
||||
{ "GET", 'g' },
|
||||
{ "BINGET", 'h' },
|
||||
{ "INST", 'i' },
|
||||
{ "LONG_BINGET", 'j' },
|
||||
{ "LIST", 'l' },
|
||||
{ "EMPTY_LIST", ']' },
|
||||
{ "OBJ", 'o' },
|
||||
{ "PUT", 'p' },
|
||||
{ "BINPUT", 'q' },
|
||||
{ "LONG_BINPUT", 'r' },
|
||||
{ "SETITEM", 's' },
|
||||
{ "TUPLE", 't' },
|
||||
{ "EMPTY_TUPLE", ')' },
|
||||
{ "SETITEMS", 'u' },
|
||||
{ "BINFLOAT", 'G' },
|
||||
{ "PROTO", '\x80' },
|
||||
{ "NEWOBJ", '\x81' },
|
||||
{ "EXT1", '\x82' },
|
||||
{ "EXT2", '\x83' },
|
||||
{ "EXT4", '\x84' },
|
||||
{ "TUPLE1", '\x85' },
|
||||
{ "TUPLE2", '\x86' },
|
||||
{ "TUPLE3", '\x87' },
|
||||
{ "NEWTRUE", '\x88' },
|
||||
{ "NEWFALSE", '\x89' },
|
||||
{ "LONG1", '\x8a' },
|
||||
{ "LONG4", '\x8b' },
|
||||
{ "BINBYTES", 'B' },
|
||||
{ "SHORT_BINBYTES", 'C' },
|
||||
{ "SHORT_BINUNICODE", '\x8c' },
|
||||
{ "BINUNICODE8", '\x8d' },
|
||||
{ "BINBYTES8", '\x8e' },
|
||||
{ "EMPTY_SET", '\x8f' },
|
||||
{ "ADDITEMS", '\x90' },
|
||||
{ "FROZENSET", '\x91' },
|
||||
{ "NEWOBJ_EX", '\x92' },
|
||||
{ "STACK_GLOBAL", '\x93' },
|
||||
{ "MEMOIZE", '\x94' },
|
||||
{ "FRAME", '\x95' },
|
||||
{ "BYTEARRAY8", '\x96' },
|
||||
{ "NEXT_BUFFER", '\x97' },
|
||||
{ "READONLY_BUFFER", '\x98' }
|
||||
{ "mark", '(' },
|
||||
{ "stop", '.' },
|
||||
{ "pop", '0' },
|
||||
{ "pop_mark", '1' },
|
||||
{ "dup", '2' },
|
||||
{ "float", 'F' },
|
||||
{ "int", 'I' },
|
||||
{ "binint", 'J' },
|
||||
{ "binint1", 'K' },
|
||||
{ "long", 'L' },
|
||||
{ "binint2", 'M' },
|
||||
{ "none", 'N' },
|
||||
{ "persid", 'P' },
|
||||
{ "binpersid", 'Q' },
|
||||
{ "reduce", 'R' },
|
||||
{ "string", 'S' },
|
||||
{ "binstring", 'T' },
|
||||
{ "short_binstring", 'U' },
|
||||
{ "unicode", 'V' },
|
||||
{ "binunicode", 'X' },
|
||||
{ "append", 'a' },
|
||||
{ "build", 'b' },
|
||||
{ "global", 'c' },
|
||||
{ "dict", 'd' },
|
||||
{ "empty_dict", '}' },
|
||||
{ "appends", 'e' },
|
||||
{ "get", 'g' },
|
||||
{ "binget", 'h' },
|
||||
{ "inst", 'i' },
|
||||
{ "long_binget", 'j' },
|
||||
{ "list", 'l' },
|
||||
{ "empty_list", ']' },
|
||||
{ "obj", 'o' },
|
||||
{ "put", 'p' },
|
||||
{ "binput", 'q' },
|
||||
{ "long_binput", 'r' },
|
||||
{ "setitem", 's' },
|
||||
{ "tuple", 't' },
|
||||
{ "empty_tuple", ')' },
|
||||
{ "setitems", 'u' },
|
||||
{ "binfloat", 'G' },
|
||||
{ "proto", '\x80' },
|
||||
{ "newobj", '\x81' },
|
||||
{ "ext1", '\x82' },
|
||||
{ "ext2", '\x83' },
|
||||
{ "ext4", '\x84' },
|
||||
{ "tuple1", '\x85' },
|
||||
{ "tuple2", '\x86' },
|
||||
{ "tuple3", '\x87' },
|
||||
{ "newtrue", '\x88' },
|
||||
{ "newfalse", '\x89' },
|
||||
{ "long1", '\x8a' },
|
||||
{ "long4", '\x8b' },
|
||||
{ "binbytes", 'B' },
|
||||
{ "short_binbytes", 'C' },
|
||||
{ "short_binunicode", '\x8c' },
|
||||
{ "binunicode8", '\x8d' },
|
||||
{ "binbytes8", '\x8e' },
|
||||
{ "empty_set", '\x8f' },
|
||||
{ "additems", '\x90' },
|
||||
{ "frozenset", '\x91' },
|
||||
{ "newobj_ex", '\x92' },
|
||||
{ "stack_global", '\x93' },
|
||||
{ "memoize", '\x94' },
|
||||
{ "frame", '\x95' },
|
||||
{ "bytearray8", '\x96' },
|
||||
{ "next_buffer", '\x97' },
|
||||
{ "readonly_buffer", '\x98' }
|
||||
};
|
||||
|
||||
static inline int handle_int(RAnalOp *op, const char *name, int sz, const ut8 *buf, int buflen) {
|
||||
@ -203,7 +203,7 @@ static inline char *get_line(const ut8 *buf, int len) {
|
||||
|
||||
static inline char *get_two_lines(const ut8 *buf, int len) {
|
||||
char *out = malloc (len);
|
||||
char *rep = " \x00";
|
||||
const char * const rep = " \x00";
|
||||
int i, cnt = 0;
|
||||
if (out) {
|
||||
for (i = 0; i < len; i++) {
|
||||
@ -295,145 +295,145 @@ static int analop(RAnal *a, RAnalOp *op, ut64 addr, const ut8 *buf, int len, RAn
|
||||
len--;
|
||||
switch (opcode) {
|
||||
case OP_MARK:
|
||||
trivial_op ("MARK");
|
||||
trivial_op ("mark");
|
||||
case OP_STOP:
|
||||
trivial_op ("STOP");
|
||||
trivial_op ("stop");
|
||||
case OP_POP:
|
||||
trivial_op ("POP");
|
||||
trivial_op ("pop");
|
||||
case OP_POP_MARK:
|
||||
trivial_op ("POP_MARK");
|
||||
trivial_op ("pop_mark");
|
||||
case OP_DUP:
|
||||
trivial_op ("DUP");
|
||||
trivial_op ("dup");
|
||||
case OP_FLOAT:
|
||||
return handle_n_lines (op, "FLOAT", 1, buf, len);
|
||||
return handle_n_lines (op, "float", 1, buf, len);
|
||||
case OP_INT:
|
||||
return handle_n_lines (op, "INT", 1, buf, len);
|
||||
return handle_n_lines (op, "int", 1, buf, len);
|
||||
case OP_BININT:
|
||||
op->sign = true;
|
||||
return handle_int (op, "BININT", 4, buf, len);
|
||||
return handle_int (op, "binint", 4, buf, len);
|
||||
case OP_BININT1:
|
||||
return handle_int (op, "BININT1", 1, buf, len);
|
||||
return handle_int (op, "binint1", 1, buf, len);
|
||||
case OP_LONG:
|
||||
return handle_n_lines (op, "LONG", 1, buf, len);
|
||||
return handle_n_lines (op, "long", 1, buf, len);
|
||||
case OP_BININT2:
|
||||
return handle_int (op, "BININT2", 2, buf, len);
|
||||
return handle_int (op, "binint2", 2, buf, len);
|
||||
case OP_NONE:
|
||||
trivial_op ("NONE");
|
||||
trivial_op ("none");
|
||||
case OP_PERSID:
|
||||
// TODO: validate
|
||||
return handle_n_lines (op, "PERSID", 1, buf, len);
|
||||
return handle_n_lines (op, "persid", 1, buf, len);
|
||||
case OP_BINPERSID:
|
||||
trivial_op ("BINPERSID");
|
||||
trivial_op ("binpersid");
|
||||
case OP_REDUCE:
|
||||
trivial_op ("REDUCE");
|
||||
trivial_op ("reduce");
|
||||
case OP_STRING:
|
||||
return handle_n_lines (op, "STRING", 1, buf, len);
|
||||
return handle_n_lines (op, "string", 1, buf, len);
|
||||
case OP_BINSTRING:
|
||||
return cnt_str (a, op, "BINSTRING", 4, buf, len);
|
||||
return cnt_str (a, op, "binstring", 4, buf, len);
|
||||
case OP_SHORT_BINSTRING:
|
||||
return cnt_str (a, op, "SHORT_BINSTRING", 1, buf, len);
|
||||
return cnt_str (a, op, "short_binstring", 1, buf, len);
|
||||
case OP_UNICODE:
|
||||
return handle_n_lines (op, "UNICODE", 1, buf, len);
|
||||
return handle_n_lines (op, "unicode", 1, buf, len);
|
||||
case OP_BINUNICODE:
|
||||
return cnt_str (a, op, "BINUNICODE", 4, buf, len);
|
||||
return cnt_str (a, op, "binunicode", 4, buf, len);
|
||||
case OP_APPEND:
|
||||
trivial_op ("APPEND");
|
||||
trivial_op ("append");
|
||||
case OP_BUILD:
|
||||
trivial_op ("BUILD");
|
||||
trivial_op ("build");
|
||||
case OP_GLOBAL:
|
||||
return handle_n_lines (op, "GLOBAL", 2, buf, len);
|
||||
return handle_n_lines (op, "global", 2, buf, len);
|
||||
case OP_DICT:
|
||||
trivial_op ("DICT");
|
||||
trivial_op ("dict");
|
||||
case OP_EMPTY_DICT:
|
||||
trivial_op ("EMPTY_DICT");
|
||||
trivial_op ("empty_dict");
|
||||
case OP_APPENDS:
|
||||
trivial_op ("APPENDS");
|
||||
trivial_op ("appends");
|
||||
case OP_GET:
|
||||
return handle_n_lines (op, "GET", 1, buf, len);
|
||||
return handle_n_lines (op, "get", 1, buf, len);
|
||||
case OP_BINGET:
|
||||
op->sign = true; // I think
|
||||
return handle_int (op, "BINGET", 1, buf, len);
|
||||
return handle_int (op, "binget", 1, buf, len);
|
||||
case OP_INST:
|
||||
return handle_n_lines (op, "INST", 2, buf, len);
|
||||
return handle_n_lines (op, "inst", 2, buf, len);
|
||||
case OP_LONG_BINGET:
|
||||
return handle_int (op, "LONG_BINGET", 4, buf, len);
|
||||
return handle_int (op, "long_binget", 4, buf, len);
|
||||
case OP_LIST:
|
||||
trivial_op ("LIST");
|
||||
trivial_op ("list");
|
||||
case OP_EMPTY_LIST:
|
||||
trivial_op ("EMPTY_LIST");
|
||||
trivial_op ("empty_list");
|
||||
case OP_OBJ:
|
||||
trivial_op ("OBJ");
|
||||
trivial_op ("obj");
|
||||
case OP_PUT:
|
||||
return handle_n_lines (op, "PUT", 1, buf, len);
|
||||
return handle_n_lines (op, "put", 1, buf, len);
|
||||
case OP_BINPUT:
|
||||
return handle_int (op, "BINPUT", 1, buf, len);
|
||||
return handle_int (op, "binput", 1, buf, len);
|
||||
case OP_LONG_BINPUT:
|
||||
return handle_int (op, "LONG_BINPUT", 4, buf, len);
|
||||
return handle_int (op, "long_binput", 4, buf, len);
|
||||
case OP_SETITEM:
|
||||
trivial_op ("SETITEM");
|
||||
trivial_op ("setitem");
|
||||
case OP_TUPLE:
|
||||
trivial_op ("TUPLE");
|
||||
trivial_op ("tuple");
|
||||
case OP_EMPTY_TUPLE:
|
||||
trivial_op ("EMPTY_TUPLE");
|
||||
trivial_op ("empty_tuple");
|
||||
case OP_SETITEMS:
|
||||
trivial_op ("SETITEMS");
|
||||
trivial_op ("setitems");
|
||||
case OP_BINFLOAT:
|
||||
return handle_float (op, "BINFLOAT", 8, buf, len);
|
||||
return handle_float (op, "binfloat", 8, buf, len);
|
||||
case OP_PROTO:
|
||||
return handle_int (op, "PROTO", 1, buf, len);
|
||||
return handle_int (op, "proto", 1, buf, len);
|
||||
case OP_NEWOBJ:
|
||||
trivial_op ("NEWOBJ");
|
||||
trivial_op ("newobj");
|
||||
case OP_EXT1:
|
||||
// I don't *think* it's signed
|
||||
return handle_int (op, "EXT1", 1, buf, len);
|
||||
return handle_int (op, "ext1", 1, buf, len);
|
||||
case OP_EXT2:
|
||||
return handle_int (op, "EXT2", 2, buf, len);
|
||||
return handle_int (op, "ext2", 2, buf, len);
|
||||
case OP_EXT4:
|
||||
return handle_int (op, "EXT4", 4, buf, len);
|
||||
return handle_int (op, "ext4", 4, buf, len);
|
||||
case OP_TUPLE1:
|
||||
trivial_op ("TUPLE1");
|
||||
trivial_op ("tuple1");
|
||||
case OP_TUPLE2:
|
||||
trivial_op ("TUPLE2");
|
||||
trivial_op ("tuple2");
|
||||
case OP_TUPLE3:
|
||||
trivial_op ("TUPLE3");
|
||||
trivial_op ("tuple3");
|
||||
case OP_NEWTRUE:
|
||||
trivial_op ("NEWTRUE");
|
||||
trivial_op ("newtrue");
|
||||
case OP_NEWFALSE:
|
||||
trivial_op ("NEWFALSE");
|
||||
trivial_op ("newfalse");
|
||||
case OP_LONG1:
|
||||
return handle_int (op, "LONG1", 1, buf, len);
|
||||
return handle_int (op, "long1", 1, buf, len);
|
||||
case OP_LONG4:
|
||||
return handle_int (op, "LONG4", 4, buf, len);
|
||||
return handle_int (op, "long4", 4, buf, len);
|
||||
case OP_BINBYTES:
|
||||
return cnt_str (a, op, "BINBYTES", 4, buf, len);
|
||||
return cnt_str (a, op, "binbytes", 4, buf, len);
|
||||
case OP_SHORT_BINBYTES:
|
||||
return cnt_str (a, op, "SHORT_BINBYTES", 1, buf, len);
|
||||
return cnt_str (a, op, "short_binbytes", 1, buf, len);
|
||||
case OP_SHORT_BINUNICODE:
|
||||
return cnt_str (a, op, "SHORT_BINUNICODE", 1, buf, len);
|
||||
return cnt_str (a, op, "short_binunicode", 1, buf, len);
|
||||
case OP_BINUNICODE8:
|
||||
return cnt_str (a, op, "BINUNICODE8", 8, buf, len);
|
||||
return cnt_str (a, op, "binunicode8", 8, buf, len);
|
||||
case OP_BINBYTES8:
|
||||
return cnt_str (a, op, "BINBYTES8", 8, buf, len);
|
||||
return cnt_str (a, op, "binbytes8", 8, buf, len);
|
||||
case OP_EMPTY_SET:
|
||||
trivial_op ("EMPTY_SET");
|
||||
trivial_op ("empty_set");
|
||||
case OP_ADDITEMS:
|
||||
trivial_op ("ADDITEMS");
|
||||
trivial_op ("additems");
|
||||
case OP_FROZENSET:
|
||||
trivial_op ("FROZENSET");
|
||||
trivial_op ("frozenset");
|
||||
case OP_NEWOBJ_EX:
|
||||
trivial_op ("NEWOBJ_EX");
|
||||
trivial_op ("newobj_ex");
|
||||
case OP_STACK_GLOBAL:
|
||||
trivial_op ("STACK_GLOBAL");
|
||||
trivial_op ("stack_global");
|
||||
case OP_MEMOIZE:
|
||||
trivial_op ("MEMOIZE");
|
||||
trivial_op ("memoize");
|
||||
case OP_FRAME:
|
||||
return handle_int (op, "FRAME", 8, buf, len);
|
||||
return handle_int (op, "frame", 8, buf, len);
|
||||
case OP_BYTEARRAY8:
|
||||
return cnt_str (a, op, "BYTEARRAY8", 8, buf, len);
|
||||
return cnt_str (a, op, "bytearray8", 8, buf, len);
|
||||
case OP_NEXT_BUFFER:
|
||||
trivial_op ("NEXT_BUFFER");
|
||||
trivial_op ("next_buffer");
|
||||
case OP_READONLY_BUFFER:
|
||||
trivial_op ("READONLY_BUFFER");
|
||||
trivial_op ("readonly_buffer");
|
||||
}
|
||||
|
||||
// bad opcode, must be at bad addr
|
||||
|
@ -9,18 +9,18 @@ s-73
|
||||
pid 12
|
||||
EOF
|
||||
EXPECT=<<EOF
|
||||
0x00000000 28 MARK
|
||||
0x00000001 4b42 BININT1 0x42
|
||||
0x00000003 4d4241 BININT2 0x4142
|
||||
0x00000006 4a44434241 BININT 0x41424344
|
||||
0x0000000b 954746454443424100 FRAME 0x41424344454647
|
||||
0x00000014 5500 SHORT_BINSTRING ""
|
||||
0x00000016 550441424344 SHORT_BINSTRING "ABCD"
|
||||
0x0000001c 420400000041424344 BINBYTES "ABCD"
|
||||
0x00000025 8d040000000000000041424344 BINUNICODE8 "ABCD"
|
||||
0x00000032 4c3334354c0a LONG "345L"
|
||||
0x00000038 63414243440a454647480a GLOBAL "ABCD EFGH"
|
||||
0x00000043 550441424344 SHORT_BINSTRING "ABCD"
|
||||
0x00000000 28 mark
|
||||
0x00000001 4b42 binint1 0x42
|
||||
0x00000003 4d4241 binint2 0x4142
|
||||
0x00000006 4a44434241 binint 0x41424344
|
||||
0x0000000b 954746454443424100 frame 0x41424344454647
|
||||
0x00000014 5500 short_binstring ""
|
||||
0x00000016 550441424344 short_binstring "ABCD"
|
||||
0x0000001c 420400000041424344 binbytes "ABCD"
|
||||
0x00000025 8d040000000000000041424344 binunicode8 "ABCD"
|
||||
0x00000032 4c3334354c0a long "345L"
|
||||
0x00000038 63414243440a454647480a global "ABCD EFGH"
|
||||
0x00000043 550441424344 short_binstring "ABCD"
|
||||
EOF
|
||||
RUN
|
||||
|
||||
@ -34,7 +34,7 @@ pid 8
|
||||
EOF
|
||||
EXPECT=<<EOF
|
||||
0x00000000 58
|
||||
0x00000001 580400000041420043 BINUNICODE "AB\x00C"
|
||||
0x00000001 580400000041420043 binunicode "AB\x00C"
|
||||
0x0000000a 63
|
||||
0x0000000b 41
|
||||
0x0000000c 00
|
||||
@ -118,40 +118,40 @@ wa READONLY_BUFFER
|
||||
pid 1
|
||||
EOF
|
||||
EXPECT=<<EOF
|
||||
0x00000000 28 MARK
|
||||
0x00000000 2e STOP
|
||||
0x00000000 30 POP
|
||||
0x00000000 31 POP_MARK
|
||||
0x00000000 32 DUP
|
||||
0x00000000 4e NONE
|
||||
0x00000000 51 BINPERSID
|
||||
0x00000000 52 REDUCE
|
||||
0x00000000 61 APPEND
|
||||
0x00000000 62 BUILD
|
||||
0x00000000 64 DICT
|
||||
0x00000000 7d EMPTY_DICT
|
||||
0x00000000 65 APPENDS
|
||||
0x00000000 6c LIST
|
||||
0x00000000 5d EMPTY_LIST
|
||||
0x00000000 6f OBJ
|
||||
0x00000000 73 SETITEM
|
||||
0x00000000 74 TUPLE
|
||||
0x00000000 29 EMPTY_TUPLE
|
||||
0x00000000 75 SETITEMS
|
||||
0x00000000 81 NEWOBJ
|
||||
0x00000000 85 TUPLE1
|
||||
0x00000000 86 TUPLE2
|
||||
0x00000000 87 TUPLE3
|
||||
0x00000000 88 NEWTRUE
|
||||
0x00000000 89 NEWFALSE
|
||||
0x00000000 8f EMPTY_SET
|
||||
0x00000000 90 ADDITEMS
|
||||
0x00000000 91 FROZENSET
|
||||
0x00000000 92 NEWOBJ_EX
|
||||
0x00000000 93 STACK_GLOBAL
|
||||
0x00000000 94 MEMOIZE
|
||||
0x00000000 97 NEXT_BUFFER
|
||||
0x00000000 98 READONLY_BUFFER
|
||||
0x00000000 28 mark
|
||||
0x00000000 2e stop
|
||||
0x00000000 30 pop
|
||||
0x00000000 31 pop_mark
|
||||
0x00000000 32 dup
|
||||
0x00000000 4e none
|
||||
0x00000000 51 binpersid
|
||||
0x00000000 52 reduce
|
||||
0x00000000 61 append
|
||||
0x00000000 62 build
|
||||
0x00000000 64 dict
|
||||
0x00000000 7d empty_dict
|
||||
0x00000000 65 appends
|
||||
0x00000000 6c list
|
||||
0x00000000 5d empty_list
|
||||
0x00000000 6f obj
|
||||
0x00000000 73 setitem
|
||||
0x00000000 74 tuple
|
||||
0x00000000 29 empty_tuple
|
||||
0x00000000 75 setitems
|
||||
0x00000000 81 newobj
|
||||
0x00000000 85 tuple1
|
||||
0x00000000 86 tuple2
|
||||
0x00000000 87 tuple3
|
||||
0x00000000 88 newtrue
|
||||
0x00000000 89 newfalse
|
||||
0x00000000 8f empty_set
|
||||
0x00000000 90 additems
|
||||
0x00000000 91 frozenset
|
||||
0x00000000 92 newobj_ex
|
||||
0x00000000 93 stack_global
|
||||
0x00000000 94 memoize
|
||||
0x00000000 97 next_buffer
|
||||
0x00000000 98 readonly_buffer
|
||||
EOF
|
||||
RUN
|
||||
|
||||
@ -189,20 +189,20 @@ wa LONG1 0x11
|
||||
pid 1
|
||||
EOF
|
||||
EXPECT=<<EOF
|
||||
0x00000000 958877885544332211 FRAME 0x1122334455887788
|
||||
0x00000000 4a44332211 BININT 0x11223344
|
||||
0x00000000 7244332211 LONG_BINPUT 0x11223344
|
||||
0x00000000 6a44332211 LONG_BINGET 0x11223344
|
||||
0x00000000 8444332211 EXT4 0x11223344
|
||||
0x00000000 8b44332211 LONG4 0x11223344
|
||||
0x00000000 4d2211 BININT2 0x1122
|
||||
0x00000000 832211 EXT2 0x1122
|
||||
0x00000000 4b11 BININT1 0x11
|
||||
0x00000000 6811 BINGET 0x11
|
||||
0x00000000 7111 BINPUT 0x11
|
||||
0x00000000 8011 PROTO 0x11
|
||||
0x00000000 8211 EXT1 0x11
|
||||
0x00000000 8a11 LONG1 0x11
|
||||
0x00000000 958877885544332211 frame 0x1122334455887788
|
||||
0x00000000 4a44332211 binint 0x11223344
|
||||
0x00000000 7244332211 long_binput 0x11223344
|
||||
0x00000000 6a44332211 long_binget 0x11223344
|
||||
0x00000000 8444332211 ext4 0x11223344
|
||||
0x00000000 8b44332211 long4 0x11223344
|
||||
0x00000000 4d2211 binint2 0x1122
|
||||
0x00000000 832211 ext2 0x1122
|
||||
0x00000000 4b11 binint1 0x11
|
||||
0x00000000 6811 binget 0x11
|
||||
0x00000000 7111 binput 0x11
|
||||
0x00000000 8011 proto 0x11
|
||||
0x00000000 8211 ext1 0x11
|
||||
0x00000000 8a11 long1 0x11
|
||||
EOF
|
||||
RUN
|
||||
|
||||
@ -230,15 +230,15 @@ wa SHORT_BINUNICODE AABBCCDD
|
||||
pid 1
|
||||
EOF
|
||||
EXPECT=<<EOF
|
||||
0x00000000 8d08000000000000006161626263636464 BINUNICODE8 "aabbccdd"
|
||||
0x00000000 8e08000000000000006161626263636464 BINBYTES8 "aabbccdd"
|
||||
0x00000000 9608000000000000006161626263636464 BYTEARRAY8 "aabbccdd"
|
||||
0x00000000 54080000006161626263636464 BINSTRING "aabbccdd"
|
||||
0x00000000 58080000006161626263636464 BINUNICODE "aabbccdd"
|
||||
0x00000000 42080000006161626263636464 BINBYTES "aabbccdd"
|
||||
0x00000000 43086161626263636464 SHORT_BINBYTES "aabbccdd"
|
||||
0x00000000 55086161626263636464 SHORT_BINSTRING "aabbccdd"
|
||||
0x00000000 8c086161626263636464 SHORT_BINUNICODE "aabbccdd"
|
||||
0x00000000 8d08000000000000006161626263636464 binunicode8 "aabbccdd"
|
||||
0x00000000 8e08000000000000006161626263636464 binbytes8 "aabbccdd"
|
||||
0x00000000 9608000000000000006161626263636464 bytearray8 "aabbccdd"
|
||||
0x00000000 54080000006161626263636464 binstring "aabbccdd"
|
||||
0x00000000 58080000006161626263636464 binunicode "aabbccdd"
|
||||
0x00000000 42080000006161626263636464 binbytes "aabbccdd"
|
||||
0x00000000 43086161626263636464 short_binbytes "aabbccdd"
|
||||
0x00000000 55086161626263636464 short_binstring "aabbccdd"
|
||||
0x00000000 8c086161626263636464 short_binunicode "aabbccdd"
|
||||
EOF
|
||||
RUN
|
||||
|
||||
@ -252,7 +252,7 @@ pid 1
|
||||
e asm.arch=pickle
|
||||
EOF
|
||||
EXPECT=<<EOF
|
||||
0x00000000 4740114fdf3b645a1d BINFLOAT 4.328000
|
||||
0x00000000 4740114fdf3b645a1d binfloat 4.328000
|
||||
EOF
|
||||
RUN
|
||||
|
||||
@ -282,16 +282,16 @@ wa PUT string_arg
|
||||
pid 1
|
||||
EOF
|
||||
EXPECT=<<EOF
|
||||
0x00000000 69737472696e67310a737472696e67320a INST "string1 string2"
|
||||
0x00000000 63737472696e67310a737472696e67320a GLOBAL "string1 string2"
|
||||
0x00000000 46737472696e675f6172670a FLOAT "string_arg"
|
||||
0x00000000 49737472696e675f6172670a INT "string_arg"
|
||||
0x00000000 4c737472696e675f6172670a LONG "string_arg"
|
||||
0x00000000 50737472696e675f6172670a PERSID "string_arg"
|
||||
0x00000000 53737472696e675f6172670a STRING "string_arg"
|
||||
0x00000000 56737472696e675f6172670a UNICODE "string_arg"
|
||||
0x00000000 67737472696e675f6172670a GET "string_arg"
|
||||
0x00000000 70737472696e675f6172670a PUT "string_arg"
|
||||
0x00000000 69737472696e67310a737472696e67320a inst "string1 string2"
|
||||
0x00000000 63737472696e67310a737472696e67320a global "string1 string2"
|
||||
0x00000000 46737472696e675f6172670a float "string_arg"
|
||||
0x00000000 49737472696e675f6172670a int "string_arg"
|
||||
0x00000000 4c737472696e675f6172670a long "string_arg"
|
||||
0x00000000 50737472696e675f6172670a persid "string_arg"
|
||||
0x00000000 53737472696e675f6172670a string "string_arg"
|
||||
0x00000000 56737472696e675f6172670a unicode "string_arg"
|
||||
0x00000000 67737472696e675f6172670a get "string_arg"
|
||||
0x00000000 70737472696e675f6172670a put "string_arg"
|
||||
EOF
|
||||
RUN
|
||||
|
||||
@ -317,73 +317,73 @@ e asm.arch=pickle
|
||||
aoml
|
||||
EOF
|
||||
EXPECT=<<EOF
|
||||
MARK
|
||||
STOP
|
||||
POP
|
||||
POP_MARK
|
||||
DUP
|
||||
FLOAT
|
||||
INT
|
||||
BININT
|
||||
BININT1
|
||||
LONG
|
||||
BININT2
|
||||
NONE
|
||||
PERSID
|
||||
BINPERSID
|
||||
REDUCE
|
||||
STRING
|
||||
BINSTRING
|
||||
SHORT_BINSTRING
|
||||
UNICODE
|
||||
BINUNICODE
|
||||
APPEND
|
||||
BUILD
|
||||
GLOBAL
|
||||
DICT
|
||||
EMPTY_DICT
|
||||
APPENDS
|
||||
GET
|
||||
BINGET
|
||||
INST
|
||||
LONG_BINGET
|
||||
LIST
|
||||
EMPTY_LIST
|
||||
OBJ
|
||||
PUT
|
||||
BINPUT
|
||||
LONG_BINPUT
|
||||
SETITEM
|
||||
TUPLE
|
||||
EMPTY_TUPLE
|
||||
SETITEMS
|
||||
BINFLOAT
|
||||
PROTO
|
||||
NEWOBJ
|
||||
EXT1
|
||||
EXT2
|
||||
EXT4
|
||||
TUPLE1
|
||||
TUPLE2
|
||||
TUPLE3
|
||||
NEWTRUE
|
||||
NEWFALSE
|
||||
LONG1
|
||||
LONG4
|
||||
BINBYTES
|
||||
SHORT_BINBYTES
|
||||
SHORT_BINUNICODE
|
||||
BINUNICODE8
|
||||
BINBYTES8
|
||||
EMPTY_SET
|
||||
ADDITEMS
|
||||
FROZENSET
|
||||
NEWOBJ_EX
|
||||
STACK_GLOBAL
|
||||
MEMOIZE
|
||||
FRAME
|
||||
BYTEARRAY8
|
||||
NEXT_BUFFER
|
||||
READONLY_BUFFER
|
||||
mark
|
||||
stop
|
||||
pop
|
||||
pop_mark
|
||||
dup
|
||||
float
|
||||
int
|
||||
binint
|
||||
binint1
|
||||
long
|
||||
binint2
|
||||
none
|
||||
persid
|
||||
binpersid
|
||||
reduce
|
||||
string
|
||||
binstring
|
||||
short_binstring
|
||||
unicode
|
||||
binunicode
|
||||
append
|
||||
build
|
||||
global
|
||||
dict
|
||||
empty_dict
|
||||
appends
|
||||
get
|
||||
binget
|
||||
inst
|
||||
long_binget
|
||||
list
|
||||
empty_list
|
||||
obj
|
||||
put
|
||||
binput
|
||||
long_binput
|
||||
setitem
|
||||
tuple
|
||||
empty_tuple
|
||||
setitems
|
||||
binfloat
|
||||
proto
|
||||
newobj
|
||||
ext1
|
||||
ext2
|
||||
ext4
|
||||
tuple1
|
||||
tuple2
|
||||
tuple3
|
||||
newtrue
|
||||
newfalse
|
||||
long1
|
||||
long4
|
||||
binbytes
|
||||
short_binbytes
|
||||
short_binunicode
|
||||
binunicode8
|
||||
binbytes8
|
||||
empty_set
|
||||
additems
|
||||
frozenset
|
||||
newobj_ex
|
||||
stack_global
|
||||
memoize
|
||||
frame
|
||||
bytearray8
|
||||
next_buffer
|
||||
readonly_buffer
|
||||
EOF
|
||||
RUN
|
||||
|
Loading…
Reference in New Issue
Block a user