107,24 → 107,30 |
unsigned int i; |
char *symbol; |
|
if (sizeof(void *) == 4) { |
#ifdef __32_BITS__ |
printf("# Count Address In symbol\n"); |
printf("-- ----- ---------- ---------\n"); |
} else { |
#endif |
|
#ifdef __64_BITS__ |
printf("# Count Address In symbol\n"); |
printf("-- ----- ------------------ ---------\n"); |
} |
#endif |
|
for (i = 0; i < BKPOINTS_MAX; i++) |
if (breakpoints[i].address) { |
symbol = get_symtab_entry(breakpoints[i].address); |
|
if (sizeof(void *) == 4) |
#ifdef __32_BITS__ |
printf("%-2u %-5d %#10zx %s\n", i, breakpoints[i].counter, |
breakpoints[i].address, symbol); |
else |
#endif |
|
#ifdef __64_BITS__ |
printf("%-2u %-5d %#18zx %s\n", i, breakpoints[i].counter, |
breakpoints[i].address, symbol); |
#endif |
|
} |
return 1; |
} |
162,10 → 168,14 |
if ((flags & BKPOINT_INSTR)) { |
; |
} else { |
if (sizeof(int) == 4) |
|
#ifdef __32_BITS__ |
dr7 |= ((unative_t) 0x3) << (18 + 4*curidx); |
else /* 8 */ |
#endif |
|
#ifdef __64_BITS__ |
dr7 |= ((unative_t) 0x2) << (18 + 4*curidx); |
#endif |
|
if ((flags & BKPOINT_WRITE)) |
dr7 |= ((unative_t) 0x1) << (16 + 4*curidx); |