breakpoints

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
linuzappz
Posts: 6
Joined: Fri Apr 30, 2004 3:01 am

breakpoints

Post by linuzappz »

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
Herben
Posts: 107
Joined: Sun Jan 25, 2004 10:25 am

Post by Herben »

Look at section 13(specifically 13.2.4 and 13.3) of "TX System RISC
TX79 Core Architecture".

http://www.semicon.toshiba.co.jp/eng/pr ... ecture.pdf

This explains DVB and how to set it.
linuzappz
Posts: 6
Joined: Fri Apr 30, 2004 3:01 am

Post by linuzappz »

okay, i'll read it carefully, thanks.
apache37
Posts: 76
Joined: Fri Jun 04, 2004 3:13 pm

Post by apache37 »

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.
Post Reply