mirror of
https://github.com/radareorg/radare2.git
synced 2024-10-07 02:23:58 +00:00
Support multiline comments in px ##print
This commit is contained in:
parent
fd715556c9
commit
1b27c79e7b
@ -477,7 +477,7 @@ static void _ds_comment_align_(RDisasmState *ds, bool up, bool nl) {
|
||||
}
|
||||
const char *sn = ds->show_section ? r_core_get_section_name (ds->core, ds->at) : "";
|
||||
ds_align_comment (ds);
|
||||
ds_align_comment (ds);
|
||||
// ds_align_comment (ds);
|
||||
r_cons_print (COLOR_RESET (ds));
|
||||
ds_print_pre (ds, true);
|
||||
r_cons_printf ("%s%s", nl? "\n": "", sn);
|
||||
@ -501,7 +501,7 @@ static void ds_comment_(RDisasmState *ds, bool align, bool nl, const char *forma
|
||||
*nl = 0;
|
||||
}
|
||||
if (ds->show_comments) {
|
||||
if (ds->show_comment_right ) { // && align) {
|
||||
if (ds->show_comment_right && align) {
|
||||
ds_align_comment (ds);
|
||||
}
|
||||
}
|
||||
|
@ -1314,6 +1314,7 @@ R_API void r_print_hexdump(RPrint *p, ut64 addr, const ut8 *buf, int len, int ba
|
||||
free (rstr);
|
||||
}
|
||||
}
|
||||
bool first = true;
|
||||
if (!eol && p && p->use_comments) {
|
||||
for (; j < i + inc; j++) {
|
||||
print (" ");
|
||||
@ -1340,7 +1341,33 @@ R_API void r_print_hexdump(RPrint *p, ut64 addr, const ut8 *buf, int len, int ba
|
||||
} else {
|
||||
a = "";
|
||||
}
|
||||
printfmt ("%s ; %s", a, comment);
|
||||
if (strchr (comment, '\n')) {
|
||||
char *s = strdup (comment);
|
||||
char *q = s;
|
||||
while (true) {
|
||||
char *nl = strchr (q, '\n');
|
||||
if (nl) {
|
||||
*nl = 0;
|
||||
}
|
||||
if (first) {
|
||||
printfmt ("%s 2; %s", a, q);
|
||||
first = false;
|
||||
} else {
|
||||
const char *a = r_str_pad (' ', 8 + (p->cols * 4));
|
||||
printfmt ("%s; %s", a, q);
|
||||
}
|
||||
p->cb_printf ("\n");
|
||||
|
||||
if (!nl) {
|
||||
break;
|
||||
}
|
||||
q = nl + 1;
|
||||
}
|
||||
free (s);
|
||||
} else {
|
||||
printfmt ("%s ; %s", a, comment);
|
||||
p->cb_printf ("\n");
|
||||
}
|
||||
free (comment);
|
||||
}
|
||||
}
|
||||
|
@ -1261,7 +1261,7 @@ EOF
|
||||
EXPECT=<<EOF
|
||||
[{"offset":0,"text":" 0x00000000 90 nop ; test"}]
|
||||
[{"offset":0,"text":" 0x00000000 90 nop ; test \"with quotes\""}]
|
||||
[{"offset":0,"text":" ; test \"with quotes\"\n"},{"offset":0,"text":" 0x00000000 90 nop"}]
|
||||
[{"offset":0,"text":{"offset":0,"text":" ; test \"with quotes\"\n ; "},{"offset":0,"text":" 0x00000000 90 nop"}}
|
||||
EOF
|
||||
RUN
|
||||
|
||||
@ -1733,8 +1733,8 @@ e emu.str.inv=false
|
||||
pd 1 @ 0x161d
|
||||
EOF
|
||||
EXPECT=<<EOF
|
||||
[32m0x0000161d[0m [37mlea[36m eax[0m,[36m [0m[[36mesi [0m-[36m[36m [36mabcdefghi][36m[0m[0m[31m ; 0x21f7[31m ; "abcdefghi"[0m[31m ; [7m"\n Blue Pill"[27m str._n__Blue_Pill[0m
|
||||
[32m0x0000161d[0m [37mlea[36m eax[0m,[36m [0m[[36mesi [0m-[36m[36m [36mabcdefghi][36m[0m[0m[31m ; 0x21f7[31m ; [7m"abcdefghi"[27m[0m[31m ; "\n Blue Pill" str._n__Blue_Pill[0m
|
||||
[32m0x0000161d[0m [37mlea[36m eax[0m,[36m [0m[[36mesi [0m-[36m[36m [36mabcdefghi][36m[0m[0m[31m [31m; 0x21f7[31m [31m; "abcdefghi"[0m[31m ; [7m"\n Blue Pill"[27m str._n__Blue_Pill[0m
|
||||
[32m0x0000161d[0m [37mlea[36m eax[0m,[36m [0m[[36mesi [0m-[36m[36m [36mabcdefghi][36m[0m[0m[31m [31m; 0x21f7[31m [31m; [7m"abcdefghi"[27m[0m[31m ; "\n Blue Pill" str._n__Blue_Pill[0m
|
||||
|
||||
[31m; 0x21f7
|
||||
[31m; "abcdefghi"
|
||||
|
@ -679,13 +679,13 @@ EXPECT=<<EOF
|
||||
[36m|[0m[36m|[0m [32m0x0000420f[0m [36mxor[36m edi[0m,[36m[36m edi[0m[0m[0m
|
||||
[36m|[0m[36m|[0m [32m0x00004211[0m [37mmov[36m esi[0m,[36m dword [0m[[36mrdx [0m+[36m[36m rax[0m*[33m4[0m][36m[0m[0m[0m
|
||||
[36m|[0m[36m|[0m [32m0x00004214[0m [1;92mcall 0x13c50[0m[0m
|
||||
[36m|[0m[36m`[0m[36m-[0m[36m>[0m [32m0x0000421a[0m [37mmov qword[36m [0m[[36m[33m0x000232b0[0m][36m[0m,[36m[36m [33m0x50[0m[0m[31m ; 'P'
|
||||
[36m|[0m [31m ; [0x232b0:8]=0[0m
|
||||
[36m|[0m [32m0x00004225[0m [37mlea[36m rdi[0m,[36m[36m [0m[36mstr.COLUMNS[0m[36m[0m[0m[31m ; 0x18a22[31m ; "COLUMNS"[0m
|
||||
[36m|[0m[36m`[0m[36m-[0m[36m>[0m [32m0x0000421a[0m [37mmov qword[36m [0m[[36m[33m0x000232b0[0m][36m[0m,[36m[36m [33m0x50[0m[0m[31m [31m; 'P'
|
||||
[36m|[0m [31m [31m; [0x232b0:8]=0[0m
|
||||
[36m|[0m [32m0x00004225[0m [37mlea[36m rdi[0m,[36m[36m [0m[36mstr.COLUMNS[0m[36m[0m[0m[31m [31m; 0x18a22[31m [31m; "COLUMNS"[0m
|
||||
|
||||
[32m0x000041ee[0m [37mlea[36m rsi[0m,[36m [0m[[36mrip [0m+[36m[36m [33m0x1d84b[0m][36m[0m[0m[31m ; 0x21a40[0m
|
||||
[32m0x00004225[0m [37mlea[36m rdi[0m,[36m [0m[[36mrip [0m+[36m[36m [33m0x147f6[0m][36m[0m[0m[31m ; str.COLUMNS
|
||||
[31m ; 0x18a22[31m ; "COLUMNS"[0m
|
||||
[32m0x000041ee[0m [37mlea[36m rsi[0m,[36m [0m[[36mrip [0m+[36m[36m [33m0x1d84b[0m][36m[0m[0m[31m [31m; 0x21a40[0m
|
||||
[32m0x00004225[0m [37mlea[36m rdi[0m,[36m [0m[[36mrip [0m+[36m[36m [33m0x147f6[0m][36m[0m[0m[31m [31m; str.COLUMNS
|
||||
[31m [31m; 0x18a22[31m [31m; "COLUMNS"[0m
|
||||
|
||||
,=< 0x000041e0 je 0x421a
|
||||
| 0x000041e2 mov ecx, 4
|
||||
@ -710,8 +710,8 @@ EXPECT=<<EOF
|
||||
|
||||
[36m,[0m[36m=[0m[36m<[0m [32m0x000041e0[0m [32mje 0x421a[0m[0m
|
||||
[36m|[0m [32m0x000041e2[0m [37mmov[36m ecx[0m,[36m[36m [33m4[0m[0m[0m
|
||||
[36m|[0m [32m0x000041e7[0m [37mmov[36m rax[0m,[36m qword[36m [0m[[36m[33m0x0001b980[0m][36m[0m[0m[31m ; [[31m0x1b980[31m:8]=0x100000000[0m
|
||||
[36m|[0m [32m0x000041ee[0m [37mmov[36m rax[0m,[36m qword[36m [0m[[36m[33m0x00021a40[0m][36m[0m[0m[31m ; [[31m0x21a40[31m:8]=0x18d31 str.literal[0m
|
||||
[36m|[0m [32m0x000041e7[0m [37mmov[36m rax[0m,[36m qword[36m [0m[[36m[33m0x0001b980[0m][36m[0m[0m[31m [31m; [[31m0x1b980[31m:8]=0x100000000[0m
|
||||
[36m|[0m [32m0x000041ee[0m [37mmov[36m rax[0m,[36m qword[36m [0m[[36m[33m0x00021a40[0m][36m[0m[0m[31m [31m; [[31m0x21a40[31m:8]=0x18d31 str.literal[0m
|
||||
[36m|[0m [32m0x000041f5[0m [37mmov[36m rdi[0m,[36m[36m rax[0m[0m[0m
|
||||
[36m|[0m [32m0x000041f8[0m [1;92mcall 0xc660[0m[0m
|
||||
[36m|[0m [32m0x000041fe[0m [36mtest[36m eax[0m,[36m[36m eax[0m[0m[0m
|
||||
@ -721,13 +721,13 @@ EXPECT=<<EOF
|
||||
[36m|[0m[36m|[0m [32m0x0000420f[0m [36mxor[36m edi[0m,[36m[36m edi[0m[0m[0m
|
||||
[36m|[0m[36m|[0m [32m0x00004211[0m [37mmov[36m esi[0m,[36m dword [0m[[36mrdx [0m+[36m[36m rax[0m*[33m4[0m][36m[0m[0m[0m
|
||||
[36m|[0m[36m|[0m [32m0x00004214[0m [1;92mcall 0x13c50[0m[0m
|
||||
[36m|[0m[36m`[0m[36m-[0m[36m>[0m [32m0x0000421a[0m [37mmov qword[36m [0m[[36m[33m0x000232b0[0m][36m[0m,[36m[36m [33m0x50[0m[0m[31m ; 'P'
|
||||
[36m|[0m [31m ; [0x232b0:8]=0[0m
|
||||
[36m|[0m [32m0x00004225[0m [37mmov[36m rax[0m,[36m qword[36m [0m[[36m[36mstr.COLUMNS[0m][36m[0m[0m[31m ; [[31m0x18a22[31m:8]=0x534e4d554c4f43[31m ; "COLUMNS"[0m
|
||||
[36m|[0m[36m`[0m[36m-[0m[36m>[0m [32m0x0000421a[0m [37mmov qword[36m [0m[[36m[33m0x000232b0[0m][36m[0m,[36m[36m [33m0x50[0m[0m[31m [31m; 'P'
|
||||
[36m|[0m [31m [31m; [0x232b0:8]=0[0m
|
||||
[36m|[0m [32m0x00004225[0m [37mmov[36m rax[0m,[36m qword[36m [0m[[36m[36mstr.COLUMNS[0m][36m[0m[0m[31m [31m; [[31m0x18a22[31m:8]=0x534e4d554c4f43[31m [31m; "COLUMNS"[0m
|
||||
|
||||
[32m0x000041ee[0m [37mmov[36m rax[0m,[36m qword [0m[[36mrip [0m+[36m[36m [33m0x1d84b[0m][36m[0m[0m[31m ; [[31m0x21a40[31m:8]=0x18d31 str.literal[0m
|
||||
[32m0x00004225[0m [37mmov[36m rax[0m,[36m qword [0m[[36mrip [0m+[36m[36m [33m0x147f6[0m][36m[0m[0m[31m ; str.COLUMNS
|
||||
[31m ; [[31m0x18a22[31m:8]=0x534e4d554c4f43[31m ; "COLUMNS"[0m
|
||||
[32m0x000041ee[0m [37mmov[36m rax[0m,[36m qword [0m[[36mrip [0m+[36m[36m [33m0x1d84b[0m][36m[0m[0m[31m [31m; [[31m0x21a40[31m:8]=0x18d31 str.literal[0m
|
||||
[32m0x00004225[0m [37mmov[36m rax[0m,[36m qword [0m[[36mrip [0m+[36m[36m [33m0x147f6[0m][36m[0m[0m[31m [31m; str.COLUMNS
|
||||
[31m [31m; [[31m0x18a22[31m:8]=0x534e4d554c4f43[31m [31m; "COLUMNS"[0m
|
||||
|
||||
,=< 0x000041e0 je 0x421a
|
||||
| 0x000041e2 mov ecx, 4
|
||||
@ -752,8 +752,8 @@ EXPECT=<<EOF
|
||||
|
||||
[36m,[0m[36m=[0m[36m<[0m [32m0x000041e0[0m [32mje 0x421a[0m[0m
|
||||
[36m|[0m [32m0x000041e2[0m [37mmov[36m ecx[0m,[36m[36m [33m4[0m[0m[0m
|
||||
[36m|[0m [32m0x000041e7[0m [36mcmp[36m rdx[0m,[36m qword[36m [0m[[36m[33m0x0001b980[0m][36m[0m[0m[31m ; [[31m0x1b980[31m:8]=0x100000000[0m
|
||||
[36m|[0m [32m0x000041ee[0m [36mcmp[36m rsi[0m,[36m qword[36m [0m[[36m[33m0x00021a40[0m][36m[0m[0m[31m ; [[31m0x21a40[31m:8]=0x18d31 str.literal[0m
|
||||
[36m|[0m [32m0x000041e7[0m [36mcmp[36m rdx[0m,[36m qword[36m [0m[[36m[33m0x0001b980[0m][36m[0m[0m[31m [31m; [[31m0x1b980[31m:8]=0x100000000[0m
|
||||
[36m|[0m [32m0x000041ee[0m [36mcmp[36m rsi[0m,[36m qword[36m [0m[[36m[33m0x00021a40[0m][36m[0m[0m[31m [31m; [[31m0x21a40[31m:8]=0x18d31 str.literal[0m
|
||||
[36m|[0m [32m0x000041f5[0m [37mmov[36m rdi[0m,[36m[36m rax[0m[0m[0m
|
||||
[36m|[0m [32m0x000041f8[0m [1;92mcall 0xc660[0m[0m
|
||||
[36m|[0m [32m0x000041fe[0m [36mtest[36m eax[0m,[36m[36m eax[0m[0m[0m
|
||||
@ -763,13 +763,13 @@ EXPECT=<<EOF
|
||||
[36m|[0m[36m|[0m [32m0x0000420f[0m [36mxor[36m edi[0m,[36m[36m edi[0m[0m[0m
|
||||
[36m|[0m[36m|[0m [32m0x00004211[0m [37mmov[36m esi[0m,[36m dword [0m[[36mrdx [0m+[36m[36m rax[0m*[33m4[0m][36m[0m[0m[0m
|
||||
[36m|[0m[36m|[0m [32m0x00004214[0m [1;92mcall 0x13c50[0m[0m
|
||||
[36m|[0m[36m`[0m[36m-[0m[36m>[0m [32m0x0000421a[0m [37mmov qword[36m [0m[[36m[33m0x000232b0[0m][36m[0m,[36m[36m [33m0x50[0m[0m[31m ; 'P'
|
||||
[36m|[0m [31m ; [0x232b0:8]=0[0m
|
||||
[36m|[0m [32m0x00004225[0m [36mcmp[36m rdi[0m,[36m qword[36m [0m[[36m[36mstr.COLUMNS[0m][36m[0m[0m[31m ; [[31m0x18a22[31m:8]=0x534e4d554c4f43[31m ; "COLUMNS"[0m
|
||||
[36m|[0m[36m`[0m[36m-[0m[36m>[0m [32m0x0000421a[0m [37mmov qword[36m [0m[[36m[33m0x000232b0[0m][36m[0m,[36m[36m [33m0x50[0m[0m[31m [31m; 'P'
|
||||
[36m|[0m [31m [31m; [0x232b0:8]=0[0m
|
||||
[36m|[0m [32m0x00004225[0m [36mcmp[36m rdi[0m,[36m qword[36m [0m[[36m[36mstr.COLUMNS[0m][36m[0m[0m[31m [31m; [[31m0x18a22[31m:8]=0x534e4d554c4f43[31m [31m; "COLUMNS"[0m
|
||||
|
||||
[32m0x000041ee[0m [36mcmp[36m rsi[0m,[36m qword [0m[[36mrip [0m+[36m[36m [33m0x1d84b[0m][36m[0m[0m[31m ; [[31m0x21a40[31m:8]=0x18d31 str.literal[0m
|
||||
[32m0x00004225[0m [36mcmp[36m rdi[0m,[36m qword [0m[[36mrip [0m+[36m[36m [33m0x147f6[0m][36m[0m[0m[31m ; str.COLUMNS
|
||||
[31m ; [[31m0x18a22[31m:8]=0x534e4d554c4f43[31m ; "COLUMNS"[0m
|
||||
[32m0x000041ee[0m [36mcmp[36m rsi[0m,[36m qword [0m[[36mrip [0m+[36m[36m [33m0x1d84b[0m][36m[0m[0m[31m [31m; [[31m0x21a40[31m:8]=0x18d31 str.literal[0m
|
||||
[32m0x00004225[0m [36mcmp[36m rdi[0m,[36m qword [0m[[36mrip [0m+[36m[36m [33m0x147f6[0m][36m[0m[0m[31m [31m; str.COLUMNS
|
||||
[31m [31m; [[31m0x18a22[31m:8]=0x534e4d554c4f43[31m [31m; "COLUMNS"[0m
|
||||
EOF
|
||||
RUN
|
||||
|
||||
@ -784,7 +784,7 @@ pd 1
|
||||
EOF
|
||||
EXPECT=<<EOF
|
||||
0x00005e6e 488d3d339b01. lea rdi, section..fini_array ; 0x1f9a8
|
||||
[32m0x00005e6e[0m [33m48[37m8d[33m3d[33m33[37m9b[37m01[37m.[0m [37mlea[36m rdi[0m,[36m[36m [0m[36msection..fini_array[0m[36m[0m[0m[31m ; 0x1f9a8[0m
|
||||
[32m0x00005e6e[0m [33m48[37m8d[33m3d[33m33[37m9b[37m01[37m.[0m [37mlea[36m rdi[0m,[36m[36m [0m[36msection..fini_array[0m[36m[0m[0m[31m [31m; 0x1f9a8[0m
|
||||
EOF
|
||||
RUN
|
||||
|
||||
|
@ -135,7 +135,8 @@ EXPECT=<<EOF
|
||||
[0m[38;2;19;161;14m0x0000ffca[0m .... .... .... .... .... .... .... .... [38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m
|
||||
[38;2;19;161;14m0x0000ffda[0m .... .... .... .... .... .... .... .... [38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m
|
||||
[38;2;19;161;14m0x0000ffea[0m .... .... .... .... .... .... .... .... [38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m
|
||||
[38;2;19;161;14m0x0000fffa[0m .... .... .... [38;2;58;150;221m7f[0m[38;2;193;156;0m45[0m [38;2;193;156;0m4c[0m[38;2;193;156;0m46[0m [38;2;204;204;204m01[0m[38;2;19;161;14m00[0m [38;2;19;161;14m00[0m[38;2;19;161;14m00[0m [38;2;19;161;14m00[0m[38;2;19;161;14m00[0m [38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;58;150;221m.[0m[38;2;193;156;0mE[0m[38;2;193;156;0mL[0m[38;2;193;156;0mF[0m[38;2;204;204;204m.[0m[38;2;19;161;14m.[0m[38;2;19;161;14m.[0m[38;2;19;161;14m.[0m[38;2;19;161;14m.[0m[38;2;19;161;14m.[0m[38;2;19;161;14m ; segment.ehdr[0m[38;2;19;161;14m ; [01] -rw- segment size 45 named ehdr
|
||||
[38;2;19;161;14m0x0000fffa[0m .... .... .... [38;2;58;150;221m7f[0m[38;2;193;156;0m45[0m [38;2;193;156;0m4c[0m[38;2;193;156;0m46[0m [38;2;204;204;204m01[0m[38;2;19;161;14m00[0m [38;2;19;161;14m00[0m[38;2;19;161;14m00[0m [38;2;19;161;14m00[0m[38;2;19;161;14m00[0m [38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;193;156;0m [0m[38;2;58;150;221m.[0m[38;2;193;156;0mE[0m[38;2;193;156;0mL[0m[38;2;193;156;0mF[0m[38;2;204;204;204m.[0m[38;2;19;161;14m.[0m[38;2;19;161;14m.[0m[38;2;19;161;14m.[0m[38;2;19;161;14m.[0m[38;2;19;161;14m.[0m[38;2;19;161;14m ; segment.ehdr[0m[38;2;19;161;14m ; [01] -rw- segment size 45 named ehdr
|
||||
|
||||
[38;2;19;161;14m0x0001000a[0m [38;2;19;161;14m00[0m[38;2;19;161;14m00[0m [38;2;19;161;14m00[0m[38;2;19;161;14m00[0m [38;2;204;204;204m01[0m[38;2;19;161;14m00[0m [38;2;204;204;204m02[0m[38;2;19;161;14m00[0m [38;2;204;204;204m03[0m[38;2;19;161;14m00[0m [38;2;193;156;0m20[0m[38;2;19;161;14m00[0m [38;2;204;204;204m01[0m[38;2;19;161;14m00[0m [38;2;193;156;0m20[0m[38;2;19;161;14m00[0m [38;2;19;161;14m.[0m[38;2;19;161;14m.[0m[38;2;19;161;14m.[0m[38;2;19;161;14m.[0m[38;2;204;204;204m.[0m[38;2;19;161;14m.[0m[38;2;204;204;204m.[0m[38;2;19;161;14m.[0m[38;2;204;204;204m.[0m[38;2;19;161;14m.[0m[38;2;193;156;0m [0m[38;2;19;161;14m.[0m[38;2;204;204;204m.[0m[38;2;19;161;14m.[0m[38;2;193;156;0m [0m[38;2;19;161;14m.[0m
|
||||
[38;2;19;161;14m0x0001001a[0m [38;2;204;204;204m01[0m[38;2;19;161;14m00[0m [38;2;204;204;204m04[0m[38;2;19;161;14m00[0m [38;2;19;161;14m00[0m[38;2;19;161;14m00[0m [38;2;204;204;204mb3[0m[38;2;193;156;0m2a[0m [38;2;193;156;0m31[0m[38;2;204;204;204mc0[0m [38;2;193;156;0m40[0m[38;2;204;204;204mcd[0m [38;2;204;204;204m80[0m[38;2;19;161;14m00[0m [38;2;193;156;0m34[0m[38;2;19;161;14m00[0m [38;2;204;204;204m.[0m[38;2;19;161;14m.[0m[38;2;204;204;204m.[0m[38;2;19;161;14m.[0m[38;2;19;161;14m.[0m[38;2;19;161;14m.[0m[38;2;204;204;204m.[0m[38;2;193;156;0m*[0m[38;2;193;156;0m1[0m[38;2;204;204;204m.[0m[38;2;193;156;0m@[0m[38;2;204;204;204m.[0m[38;2;204;204;204m.[0m[38;2;19;161;14m.[0m[38;2;193;156;0m4[0m[38;2;19;161;14m.[0m[38;2;19;161;14m ; entry0[0m
|
||||
[38;2;19;161;14m0x0001002a[0m [38;2;193;156;0m20[0m[38;2;19;161;14m00[0m [38;2;204;204;204m01[0m[38;2;19;161;14m00[0m [38;2;19;161;14m00[0m[38;2;19;161;14m00[0m [38;2;19;161;14m00[0m[38;2;19;161;14m00[0m [38;2;19;161;14m00[0m[38;2;19;161;14m00[0m [38;2;19;161;14m00[0m[38;2;19;161;14m00[0m [38;2;19;161;14m00[0m[38;2;19;161;14m00[0m [38;2;19;161;14m00[0m[38;2;19;161;14m00[0m [38;2;193;156;0m [0m[38;2;19;161;14m.[0m[38;2;204;204;204m.[0m[38;2;19;161;14m.[0m[38;2;19;161;14m.[0m[38;2;19;161;14m.[0m[38;2;19;161;14m.[0m[38;2;19;161;14m.[0m[38;2;19;161;14m.[0m[38;2;19;161;14m.[0m[38;2;19;161;14m.[0m[38;2;19;161;14m.[0m[38;2;19;161;14m.[0m[38;2;19;161;14m.[0m[38;2;19;161;14m.[0m[38;2;19;161;14m.[0m
|
||||
@ -146,7 +147,8 @@ EXPECT=<<EOF
|
||||
0x0000ffca .... .... .... .... .... .... .... ....
|
||||
0x0000ffda .... .... .... .... .... .... .... ....
|
||||
0x0000ffea .... .... .... .... .... .... .... ....
|
||||
0x0000fffa .... .... .... 7f45 4c46 0100 0000 0000 .ELF...... ; segment.ehdr ; [01] -rw- segment size 45 named ehdr
|
||||
0x0000fffa .... .... .... 7f45 4c46 0100 0000 0000 .ELF...... ; segment.ehdr ; [01] -rw- segment size 45 named ehdr
|
||||
|
||||
0x0001000a 0000 0000 0100 0200 0300 2000 0100 2000 .......... ... .
|
||||
0x0001001a 0100 0400 0000 b32a 31c0 40cd 8000 3400 .......*1.@...4. ; entry0
|
||||
0x0001002a 2000 0100 0000 0000 0000 0000 0000 0000 ...............
|
||||
|
Loading…
Reference in New Issue
Block a user