Changeset d7c9fcb in mainline
- Timestamp:
- 2008-06-14T11:55:47Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1e1e5e1
- Parents:
- 8605b24
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/debugger.c
r8605b24 rd7c9fcb 123 123 124 124 #ifdef __32_BITS__ 125 printf("%-2u %-5d %#10zx %s\n", i, breakpoints[i].counter, 126 breakpoints[i].address, symbol); 125 printf("%-2u %-5d %#10zx %s\n", i, 126 breakpoints[i].counter, breakpoints[i].address, 127 symbol); 127 128 #endif 128 129 129 130 #ifdef __64_BITS__ 130 printf("%-2u %-5d %#18zx %s\n", i, breakpoints[i].counter, 131 breakpoints[i].address, symbol); 131 printf("%-2u %-5d %#18zx %s\n", i, 132 breakpoints[i].counter, breakpoints[i].address, 133 symbol); 132 134 #endif 133 135 … … 185 187 186 188 /* Enable global breakpoint */ 187 dr7 |= 0x2 << (curidx *2);189 dr7 |= 0x2 << (curidx * 2); 188 190 189 191 write_dr7(dr7); … … 257 259 if (*((unative_t *) breakpoints[slot].address) != 0) 258 260 return; 259 printf("*** * Found ZERO on address %lx (slot %d) ****\n",260 261 printf("*** Found ZERO on address %lx (slot %d) ***\n", 262 breakpoints[slot].address, slot); 261 263 } else { 262 264 printf("Data watchpoint - new data: %lx\n", 263 265 *((unative_t *) breakpoints[slot].address)); 264 266 } 265 267 } 266 268 printf("Reached breakpoint %d:%lx(%s)\n", slot, getip(istate), 267 269 get_symtab_entry(getip(istate))); 268 270 printf("***Type 'exit' to exit kconsole.\n"); 269 271 atomic_set(&haltstate,1); … … 358 360 359 361 #ifdef CONFIG_SMP 360 static void debug_ipi(int n __attribute__((unused)), istate_t *istate __attribute__((unused))) 362 static void 363 debug_ipi(int n __attribute__((unused)), 364 istate_t *istate __attribute__((unused))) 361 365 { 362 366 int i; … … 374 378 int i; 375 379 376 for (i =0; i<BKPOINTS_MAX; i++)380 for (i = 0; i < BKPOINTS_MAX; i++) 377 381 breakpoints[i].address = NULL; 378 382 … … 395 399 #endif 396 400 397 exc_register(VECTOR_DEBUG, "debugger", 398 debug_exception); 401 exc_register(VECTOR_DEBUG, "debugger", debug_exception); 399 402 #ifdef CONFIG_SMP 400 exc_register(VECTOR_DEBUG_IPI, "debugger_smp", 401 debug_ipi); 403 exc_register(VECTOR_DEBUG_IPI, "debugger_smp", debug_ipi); 402 404 #endif 403 405 }
Note:
See TracChangeset
for help on using the changeset viewer.