Changeset 87b4baa in mainline for kernel/arch/mips32/src/debugger.c
- Timestamp:
- 2010-12-17T20:16:46Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 424558a
- Parents:
- 463e734 (diff), bbc74af7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/debugger.c
r463e734 r87b4baa 134 134 * 135 135 */ 136 bool is_jump( unative_t instr)136 bool is_jump(sysarg_t instr) 137 137 { 138 138 unsigned int i; … … 166 166 return 0; 167 167 } else if ((breakpoints[i].address == (uintptr_t) argv->intval + 168 sizeof( unative_t)) || (breakpoints[i].address ==169 (uintptr_t) argv->intval - sizeof( unative_t))) {168 sizeof(sysarg_t)) || (breakpoints[i].address == 169 (uintptr_t) argv->intval - sizeof(sysarg_t))) { 170 170 printf("Adjacent breakpoints not supported, conflict " 171 171 "with %d.\n", i); … … 194 194 195 195 cur->address = (uintptr_t) argv->intval; 196 cur->instruction = (( unative_t *) cur->address)[0];197 cur->nextinstruction = (( unative_t *) cur->address)[1];196 cur->instruction = ((sysarg_t *) cur->address)[0]; 197 cur->nextinstruction = ((sysarg_t *) cur->address)[1]; 198 198 if (argv == &add_argv) { 199 199 cur->flags = 0; … … 209 209 210 210 /* Set breakpoint */ 211 *(( unative_t *) cur->address) = 0x0d;211 *((sysarg_t *) cur->address) = 0x0d; 212 212 smc_coherence(cur->address); 213 213 … … 341 341 /* Reinst only breakpoint */ 342 342 if ((breakpoints[i].flags & BKPOINT_REINST) && 343 (fireaddr == breakpoints[i].address + sizeof( unative_t))) {343 (fireaddr == breakpoints[i].address + sizeof(sysarg_t))) { 344 344 cur = &breakpoints[i]; 345 345 break;
Note:
See TracChangeset
for help on using the changeset viewer.