Subversion Repositories HelenOS

Rev

Rev 3093 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3093 Rev 4390
Line 84... Line 84...
84
    uintptr_t addr;
84
    uintptr_t addr;
85
 
85
 
86
    (void)argc;
86
    (void)argc;
87
    addr = strtoul(argv[1], NULL, 0);
87
    addr = strtoul(argv[1], NULL, 0);
88
 
88
 
89
    cons_printf("You requested a breakpoint at 0x%x\n", addr);
89
    cons_printf("You requested a breakpoint at 0x%lx\n", addr);
90
//  arch_breakpoint_add(addr);
90
//  arch_breakpoint_add(addr);
91
    breakpoint_add(addr);
91
    breakpoint_add(addr);
92
}
92
}
93
 
93
 
94
static void cmd_ct(int argc, char *argv[])
94
static void cmd_ct(int argc, char *argv[])
Line 107... Line 107...
107
        if (dt->id == tid) break;
107
        if (dt->id == tid) break;
108
    }
108
    }
109
   
109
   
110
    if (dt->id == tid) {
110
    if (dt->id == tid) {
111
        cwt = dt;
111
        cwt = dt;
112
        cons_printf("changed working thread to: %d [hash 0x%x]\n",
112
        cons_printf("changed working thread to: %d [hash 0x%lx]\n",
113
            cwt->id, cwt->hash);
113
            cwt->id, cwt->hash);
114
    } else {
114
    } else {
115
        cons_printf("no such thread\n");
115
        cons_printf("no such thread\n");
116
    }
116
    }
117
}
117
}
Line 193... Line 193...
193
        if (rc < 0) {
193
        if (rc < 0) {
194
            cons_printf("error %d\n", rc);
194
            cons_printf("error %d\n", rc);
195
            return;
195
            return;
196
        }
196
        }
197
 
197
 
198
        cons_printf("0x%x:", addr);
198
        cons_printf("0x%lx:", addr);
199
        for (i = 0; i < to_read; ++i) {
199
        for (i = 0; i < to_read; ++i) {
200
            cons_printf(" %02x", buf[i]);
200
            cons_printf(" %02x", buf[i]);
201
        }
201
        }
202
        for (i = to_read; i < BYTES_PER_LINE; ++i) {
202
        for (i = to_read; i < BYTES_PER_LINE; ++i) {
203
            cons_printf("   ");
203
            cons_printf("   ");
Line 261... Line 261...
261
    (void)argc;
261
    (void)argc;
262
 
262
 
263
    dt = NULL;
263
    dt = NULL;
264
    for (cur = dthreads.next; cur != &dthreads; cur = cur->next) {
264
    for (cur = dthreads.next; cur != &dthreads; cur = cur->next) {
265
        dt = list_get_instance(cur, dthread_t, link);
265
        dt = list_get_instance(cur, dthread_t, link);
266
        cons_printf("%d [hash 0x%x]\n", dt->id, dt->hash);
266
        cons_printf("%d [hash 0x%lx]\n", dt->id, dt->hash);
267
    }  
267
    }  
268
}
268
}
269
 
269
 
270
 
270
 
271
static void cmd_quit(int argc, char *argv[])
271
static void cmd_quit(int argc, char *argv[])