Rename baddr() to boff()
This commit is contained in:
@@ -1,35 +1,2 @@
|
|||||||
// User script
|
|
||||||
|
|
||||||
lif("Loading user init script for program ./test");
|
lif("Loading user init script for program ./test");
|
||||||
ler("Test error message");
|
|
||||||
|
|
||||||
var offset = "@DUPA_ADDR"; // dupa(), objdump -d ./test
|
|
||||||
|
|
||||||
// Testing...
|
|
||||||
// pf();
|
|
||||||
// ppid();
|
|
||||||
// pplo();
|
|
||||||
// baddr(offset);
|
|
||||||
bfn("dupa");
|
|
||||||
// rmbfn("dupa");
|
|
||||||
lsbrk();
|
|
||||||
lsf();
|
lsf();
|
||||||
|
|
||||||
// lif("1 --------------------------------------------");
|
|
||||||
// dr();
|
|
||||||
// var r14 = gr("r14");
|
|
||||||
// sr("r14", "0x0");
|
|
||||||
// lif("2 --------------------------------------------");
|
|
||||||
// dr();
|
|
||||||
// sr("r14", r14);
|
|
||||||
// lif("3 --------------------------------------------");
|
|
||||||
// dr();
|
|
||||||
|
|
||||||
// var r14_mem = mrdr("r14");
|
|
||||||
// lif("Memory at r14 " + r14_mem);
|
|
||||||
// mwrr("r14", "0x696969");
|
|
||||||
// lif("Memory at r14 " + mrdr("r14"));
|
|
||||||
// mwrr("r14", r14_mem);
|
|
||||||
// lif("Memory at r14 " + mrdr("r14"));
|
|
||||||
|
|
||||||
// cont();
|
|
||||||
|
|||||||
@@ -400,7 +400,7 @@ void dbg_js_cont(js_State *js)
|
|||||||
js_pushundefined(js);
|
js_pushundefined(js);
|
||||||
}
|
}
|
||||||
|
|
||||||
void dbg_js_baddr(js_State *js)
|
void dbg_js_boff(js_State *js)
|
||||||
{
|
{
|
||||||
Dbg *dbg = getdbg();
|
Dbg *dbg = getdbg();
|
||||||
const char *addr_str = js_tostring(js, 1);
|
const char *addr_str = js_tostring(js, 1);
|
||||||
@@ -759,7 +759,7 @@ void dbg_init_js(Dbg *dbg)
|
|||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
make_js_func(cont, 0, "Continue execution, ARGS=None");
|
make_js_func(cont, 0, "Continue execution, ARGS=None");
|
||||||
make_js_func(baddr, 1, "Place breakpoint at address, ARGS=Address:hex string");
|
make_js_func(boff, 1, "Place breakpoint at offset, ARGS=Offset:hex string");
|
||||||
make_js_func(rmbaddr, 1, "Remove breakpoint at address, ARGS=Address:hex string");
|
make_js_func(rmbaddr, 1, "Remove breakpoint at address, ARGS=Address:hex string");
|
||||||
make_js_func(lsbrk, 0, "List all breakpoints");
|
make_js_func(lsbrk, 0, "List all breakpoints");
|
||||||
make_js_func(splo, 1, "Set program load offset, ARGS=Offset:hex string");
|
make_js_func(splo, 1, "Set program load offset, ARGS=Offset:hex string");
|
||||||
|
|||||||
Reference in New Issue
Block a user