| View previous topic :: View next topic |
| Author |
Message |
linuzappz
Joined: 30 Apr 2004 Posts: 6
|
Posted: Tue Sep 21, 2004 11:54 pm Post subject: breakpoints |
|
|
hi, i've been trying to use the data value breakpoints but i can't make them work :(, here's the code i've done so far:
---
#include <tamtypes.h>
#include <kernel.h>
void bpEx() {
printf("bpEx\n");
}
int main(void) {
__asm__ __volatile (
"li $8, 0x203D8000\n"
"mtbpc $8\n"
"li $8, 0x1000A000\n"
"mtdvb $8\n"
"li $8, 0xFFFFFFFF\n"
"mtdvbm $8\n"
"sync.p\n"
::);
printf("SetVCommonHandler\n");
SetVCommonHandler(9, bpEx);
printf("0x1000A000 write 0\n");
(*(u32*)0x1000A000) = 0;
printf("0x1000A000 write ok\n");
return 0;
}
---
the prob is that bpEx is never reached, i based off the tx79, but i'm sure i missed out smth :), anyone knows?
thanks |
|
| Back to top |
|
 |
Herben
Joined: 25 Jan 2004 Posts: 107
|
|
| Back to top |
|
 |
linuzappz
Joined: 30 Apr 2004 Posts: 6
|
Posted: Fri Oct 01, 2004 12:20 am Post subject: |
|
|
| okay, i'll read it carefully, thanks. |
|
| Back to top |
|
 |
apache37
Joined: 04 Jun 2004 Posts: 76
|
Posted: Fri Oct 22, 2004 7:56 pm Post subject: |
|
|
| I've read that section as well on Data Address Breakpointing but I'm still not sure how do this in C. Can someone help? I need to make my own breakpoint on a certain address in memory. |
|
| Back to top |
|
 |
|