mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-19 04:12:46 +00:00
* Fix build
* Add some more hud commands
This commit is contained in:
parent
370c4ceed5
commit
d64b876e73
@ -53,7 +53,7 @@ R_API ut64 r_bp_traptrace_next(RBreakpoint *bp, ut64 addr) {
|
||||
if (addr>=trace->addr && addr<=trace->addr_end) {
|
||||
delta = (int)(addr-trace->addr);
|
||||
for (i=delta; i<trace->length; i++) {
|
||||
if (BIT_CHK (trace->bits, i))
|
||||
if (R_BIT_CHK (trace->bits, i))
|
||||
return addr+i;
|
||||
}
|
||||
}
|
||||
@ -130,7 +130,7 @@ R_API void r_bp_traptrace_list(RBreakpoint *bp) {
|
||||
r_list_foreach (bp->traces, iter, trace) {
|
||||
RBreakpointTrace *trace = r_list_iter_get (iter);
|
||||
for (i=0; i<trace->bitlen; i++) {
|
||||
if (BIT_CHK (trace->bits, i))
|
||||
if (R_BIT_CHK (trace->bits, i))
|
||||
eprintf (" - 0x%08"PFMT64x"\n", trace->addr+(i<<4));
|
||||
}
|
||||
}
|
||||
@ -144,10 +144,10 @@ R_API int r_bp_traptrace_at(RBreakpoint *bp, ut64 from, int len) {
|
||||
// TODO: do we really need len?
|
||||
if (from>=trace->addr && from+len<=trace->addr_end) {
|
||||
delta = (int) (from-trace->addr);
|
||||
if (BIT_CHK (trace->bits, delta))
|
||||
if (R_BIT_CHK (trace->bits, delta))
|
||||
if (trace->traps[delta]==0x00)
|
||||
return R_FALSE; // already traced..debugger should stop
|
||||
BIT_SET (trace->bits, delta);
|
||||
R_BIT_SET (trace->bits, delta);
|
||||
return R_TRUE;
|
||||
}
|
||||
}
|
||||
|
@ -37,8 +37,8 @@ R_API char *r_cons_hud_string(const char *s) {
|
||||
// XXX memleak
|
||||
return NULL;
|
||||
}
|
||||
if (*os)
|
||||
r_list_append (fl, strdup (os));
|
||||
if (*os && *os != '#')
|
||||
r_list_append (fl, strdup (os));
|
||||
os = o+i+1;
|
||||
}
|
||||
}
|
||||
|
@ -1,16 +1,21 @@
|
||||
set breakpoint db;?i new breakpoint address;db `?y`
|
||||
disable colors e scr.color=0
|
||||
enable colors e scr.color=1
|
||||
show bytes in disassembly e asm.bytes=1
|
||||
hide bytes in disassembly e asm.bytes=0
|
||||
write hexadecimal data in current offset ?i hexpairs;wx `?y`
|
||||
seek to entrypoint s entry0
|
||||
seek to main s main
|
||||
analyze all aa
|
||||
analyze function af
|
||||
analyze preludes ap
|
||||
list symbols is;?i
|
||||
continue process execution dc;?i
|
||||
disable colors e scr.color=0
|
||||
enable colors e scr.color=1
|
||||
hide bytes in disassembly e asm.bytes=0
|
||||
list imports ii;?i
|
||||
list sections iS;?i
|
||||
list symbols is;?i
|
||||
run command ?i cmd;`?y`;?i
|
||||
seek to entrypoint s entry0
|
||||
seek to main s main
|
||||
set breakpoint db;?i new breakpoint address;db `?y`
|
||||
show backtrace dbt;?i
|
||||
show bytes in disassembly e asm.bytes=1
|
||||
show debugger register values dr;?i
|
||||
show process memory maps dm;?i
|
||||
step instruction sr pc;pd 1;ds;?i
|
||||
write hexadecimal data in current offset ?i hexpairs;wx `?y`
|
||||
xor current block with hexpair key ?i hexpair key;wox `?y`
|
||||
|
Loading…
x
Reference in New Issue
Block a user