Subversion Repositories HelenOS-historic

Rev

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

Rev 1196 Rev 1221
Line 229... Line 229...
229
    /* Handle zero checker */
229
    /* Handle zero checker */
230
    if (! (breakpoints[slot].flags & BKPOINT_INSTR)) {
230
    if (! (breakpoints[slot].flags & BKPOINT_INSTR)) {
231
        if ((breakpoints[slot].flags & BKPOINT_CHECK_ZERO)) {
231
        if ((breakpoints[slot].flags & BKPOINT_CHECK_ZERO)) {
232
            if (*((__native *) breakpoints[slot].address) != 0)
232
            if (*((__native *) breakpoints[slot].address) != 0)
233
                return;
233
                return;
234
            printf("**** Found ZERO on address %P ****\n",
234
            printf("**** Found ZERO on address %p ****\n",
235
                   slot, breakpoints[slot].address);
235
                   slot, breakpoints[slot].address);
236
        } else {
236
        } else {
237
            printf("Data watchpoint - new data: %P\n",
237
            printf("Data watchpoint - new data: %p\n",
238
                   *((__native *) breakpoints[slot].address));
238
                   *((__native *) breakpoints[slot].address));
239
        }
239
        }
240
    }
240
    }
241
    printf("Reached breakpoint %d:%P(%s)\n", slot, getip(istate),
241
    printf("Reached breakpoint %d:%p(%s)\n", slot, getip(istate),
242
           get_symtab_entry(getip(istate)));
242
           get_symtab_entry(getip(istate)));
243
    printf("***Type 'exit' to exit kconsole.\n");
243
    printf("***Type 'exit' to exit kconsole.\n");
244
    atomic_set(&haltstate,1);
244
    atomic_set(&haltstate,1);
245
    kconsole("debug");
245
    kconsole("debug");
246
    atomic_set(&haltstate,0);
246
    atomic_set(&haltstate,0);