}
else
{
- con->printf("%s\n", short_help?short_help:"Error: wrong syntax\n");
+ con->dd_printf("%s\n", short_help?short_help:"Error: wrong syntax\n");
return(DD_FALSE);
}
return(DD_FALSE);
{
if (hit > 99999)
{
- con->printf("Hit value %d is too big.\n", hit);
+ con->dd_printf("Hit value %d is too big.\n", hit);
return;
}
if (uc->fbrk->bp_at(addr))
- con->printf("Breakpoint at 0x%06x is already set.\n", addr);
+ con->dd_printf("Breakpoint at 0x%06x is already set.\n", addr);
else
{
- class cl_brk *b= new cl_fetch_brk(uc->make_new_brknr(),
+ class cl_brk *b= new cl_fetch_brk(uc->mem(MEM_ROM),
+ uc->make_new_brknr(),
addr, perm, hit);
b->init();
uc->fbrk->add_bp(b);
char *s= uc->disass(addr, NULL);
- con->printf("Breakpoint %d at 0x%06x: %s\n", b->nr, addr, s);
+ con->dd_printf("Breakpoint %d at 0x%06x: %s\n", b->nr, addr, s);
free(s);
}
}
if (b)
uc->ebrk->add_bp(b);
else
- con->printf("Couldn't make event breakpoint\n");
+ con->dd_printf("Couldn't make event breakpoint\n");
}
{
if (!brk)
{
- con->printf("No breakpoint at this address.\n");
+ con->dd_printf("No breakpoint at this address.\n");
return(0);
}
uc->fbrk->del_bp(uc->PC);
return(DD_FALSE);
addr= param->value.address;
if (uc->fbrk->bp_at(addr) == 0)
- con->printf("No breakpoint at 0x%06x\n", addr);
+ con->dd_printf("No breakpoint at 0x%06x\n", addr);
else
uc->fbrk->del_bp(addr);
}
{
long num;
if (param->get_ivalue(&num))
- uc->rm_brk(num);
+ {
+ if (!uc->rm_brk(num))
+ con->dd_printf("Error\n");
+ }
}
}
return(DD_FALSE);