Changeset 23d22eb in mainline for arch/amd64/src/debugger.c
- Timestamp:
- 2006-03-17T11:55:43Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bd72b475
- Parents:
- 4e49572
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/src/debugger.c
r4e49572 r23d22eb 192 192 } 193 193 194 #ifdef amd64 195 # define getip(x) ((x)->rip) 196 #else 197 # define getip(x) ((x)->eip) 198 #endif 199 194 200 static void handle_exception(int slot, istate_t *istate) 195 201 { … … 208 214 } 209 215 } 210 printf("Reached breakpoint %d:%P(%s)\n", slot, istate->rip,211 get_symtab_entry( istate->rip));216 printf("Reached breakpoint %d:%P(%s)\n", slot, getip(istate), 217 get_symtab_entry(getip(istate))); 212 218 printf("***Type 'exit' to exit kconsole.\n"); 213 219 atomic_set(&haltstate,1); … … 222 228 223 229 /* Set RF to restart the instruction */ 230 #ifdef amd64 224 231 istate->rflags |= RFLAGS_RF; 232 #else 233 istate->eflags |= EFLAGS_RF; 234 #endif 225 235 226 236 dr6 = read_dr6();
Note:
See TracChangeset
for help on using the changeset viewer.