Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2935 → Rev 2936

/branches/tracing/uspace/app/debug/cmd.c
40,6 → 40,7
#include <sys/types.h>
 
#include "main.h"
#include "cons.h"
#include "include/arch.h"
#include "cmd.h"
 
67,7 → 68,7
(void)argc;
addr = strtoul(argv[1], NULL, 0);
 
printf("You requested a breakpoint at 0x%x\n", addr);
cons_printf("You requested a breakpoint at 0x%x\n", addr);
arch_breakpoint_add(addr);
}
 
83,7 → 84,7
(void)argc; (void)argv;
i = 0;
while (cmd_table[i].name != NULL) {
printf("%s\n", cmd_table[i].name);
cons_printf("%s\n", cmd_table[i].name);
++i;
}
}
107,16 → 108,16
 
rc = udebug_mem_read(app_phone, buf, addr, to_read);
if (rc < 0) {
printf("error %d\n", rc);
cons_printf("error %d\n", rc);
return;
}
 
printf("0x%x:", addr);
cons_printf("0x%x:", addr);
for (i = 0; i < to_read; ++i) {
printf(" %02x", buf[i]);
cons_printf(" %02x", buf[i]);
}
for (i = to_read; i < BYTES_PER_LINE; ++i) {
printf(" ");
cons_printf(" ");
}
 
putchar ('\t');
127,7 → 128,7
else
putchar('.');
}
printf("\n");
cons_printf("\n");
 
addr += to_read;
length -= to_read;