Changeset f4c2b6a in mainline for kernel/arch/amd64/src/debugger.c
- Timestamp:
- 2008-06-03T14:59:48Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4fb51
- Parents:
- b63f8569
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/debugger.c
rb63f8569 rf4c2b6a 107 107 unsigned int i; 108 108 char *symbol; 109 110 if (sizeof(void *) == 4) { 111 printf("# Count Address In symbol\n"); 112 printf("-- ----- ---------- ---------\n"); 113 } else { 114 printf("# Count Address In symbol\n"); 115 printf("-- ----- ------------------ ---------\n"); 116 } 109 110 #ifdef __32_BITS__ 111 printf("# Count Address In symbol\n"); 112 printf("-- ----- ---------- ---------\n"); 113 #endif 114 115 #ifdef __64_BITS__ 116 printf("# Count Address In symbol\n"); 117 printf("-- ----- ------------------ ---------\n"); 118 #endif 117 119 118 120 for (i = 0; i < BKPOINTS_MAX; i++) 119 121 if (breakpoints[i].address) { 120 122 symbol = get_symtab_entry(breakpoints[i].address); 121 122 if (sizeof(void *) == 4) 123 printf("%-2u %-5d %#10zx %s\n", i, breakpoints[i].counter, 124 breakpoints[i].address, symbol); 125 else 126 printf("%-2u %-5d %#18zx %s\n", i, breakpoints[i].counter, 127 breakpoints[i].address, symbol); 123 124 #ifdef __32_BITS__ 125 printf("%-2u %-5d %#10zx %s\n", i, breakpoints[i].counter, 126 breakpoints[i].address, symbol); 127 #endif 128 129 #ifdef __64_BITS__ 130 printf("%-2u %-5d %#18zx %s\n", i, breakpoints[i].counter, 131 breakpoints[i].address, symbol); 132 #endif 133 128 134 } 129 135 return 1; … … 163 169 ; 164 170 } else { 165 if (sizeof(int) == 4) 166 dr7 |= ((unative_t) 0x3) << (18 + 4*curidx); 167 else /* 8 */ 168 dr7 |= ((unative_t) 0x2) << (18 + 4*curidx); 171 172 #ifdef __32_BITS__ 173 dr7 |= ((unative_t) 0x3) << (18 + 4 * curidx); 174 #endif 175 176 #ifdef __64_BITS__ 177 dr7 |= ((unative_t) 0x2) << (18 + 4 * curidx); 178 #endif 169 179 170 180 if ((flags & BKPOINT_WRITE)) 171 dr7 |= ((unative_t) 0x1) << (16 + 4 *curidx);181 dr7 |= ((unative_t) 0x1) << (16 + 4 * curidx); 172 182 else if ((flags & BKPOINT_READ_WRITE)) 173 dr7 |= ((unative_t) 0x3) << (16 + 4 *curidx);183 dr7 |= ((unative_t) 0x3) << (16 + 4 * curidx); 174 184 } 175 185
Note:
See TracChangeset
for help on using the changeset viewer.