Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2946 → Rev 2947

/branches/tracing/uspace/app/debug/cmd.c
50,6 → 50,7
static void cmd_dbreak(int argc, char *argv[]);
static void cmd_go(int argc, char *argv[]);
static void cmd_istep(int argc, char *argv[]);
static void cmd_lbrk(int argc, char *argv[]);
void cmd_help(int argc, char *argv[]);
static void cmd_memr(int argc, char *argv[]);
static void cmd_pwt(int argc, char *argv[]);
71,6 → 72,7
{ 0, "regs", cmd_regs },
{ 0 , "stop", cmd_stop },
{ 0, "istep", cmd_istep },
{ 0, "lbrk", cmd_lbrk },
{ 0, "threads", cmd_threads },
{ 0, "quit", cmd_quit },
{ -1, NULL, NULL }
160,6 → 162,14
dthread_resume(cwt);
}
 
static void cmd_lbrk(int argc, char *argv[])
{
(void)argc; (void)argv;
 
arch_breakpoint_list();
}
 
 
#define BYTES_PER_LINE 16
 
static void cmd_memr(int argc, char *argv[])
/branches/tracing/uspace/app/debug/main.c
123,7 → 123,7
 
if (num_found < 2) break;
 
--cmp_len;
++cmp_len;
}
 
if (num_found == 0) {
/branches/tracing/uspace/app/debug/arch/ia32/src/ia32.c
98,13 → 98,17
 
void arch_breakpoint_list(void)
{
int i;
int i, cnt;
 
cnt = 0;
for (i = 0; i < MAX_BRKPTS; ++i) {
if (brk_list[i].set != 0) {
printf("Breakpoint %d at 0x%lx\n", i, brk_list[i].addr);
cons_printf("Breakpoint %d at 0x%lx\n", i,
brk_list[i].addr);
++cnt;
}
}
if (cnt == 0) cons_printf("No breakpoints set\n");
}
 
void arch_event_breakpoint(thash_t thread_hash)
173,8 → 177,6
static istate_t istate;
int rc;
 
printf("arch_dump_regs...\n");
 
rc = udebug_regs_read(app_phone, thash, &istate);
if (rc < 0) { cons_printf("Error reading regs\n"); return; }