Subversion Repositories HelenOS

Rev

Rev 2712 | Rev 3138 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2712 Rev 2767
Line 290... Line 290...
290
#ifndef CONFIG_DEBUG_AS_WATCHPOINT
290
#ifndef CONFIG_DEBUG_AS_WATCHPOINT
291
 
291
 
292
/** Remove breakpoint from table */
292
/** Remove breakpoint from table */
293
int cmd_del_breakpoint(cmd_arg_t *argv)
293
int cmd_del_breakpoint(cmd_arg_t *argv)
294
{
294
{
-
 
295
    unative_t bpno = argv->intval;
295
    if (argv->intval < 0 || argv->intval > BKPOINTS_MAX) {
296
    if (bpno > BKPOINTS_MAX) {
296
        printf("Invalid breakpoint number.\n");
297
        printf("Invalid breakpoint number.\n");
297
        return 0;
298
        return 0;
298
    }
299
    }
299
    breakpoint_del(argv->intval);
300
    breakpoint_del(argv->intval);
300
    return 1;
301
    return 1;