forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

breakpoints

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
linuzappz



Joined: 30 Apr 2004
Posts: 6

PostPosted: Tue Sep 21, 2004 11:54 pm    Post subject: breakpoints Reply with quote

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
View user's profile Send private message
Herben



Joined: 25 Jan 2004
Posts: 107

PostPosted: Wed Sep 29, 2004 9:01 am    Post subject: Reply with quote

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/prd/micro/risc/79family/pdf/tx79architecture.pdf

This explains DVB and how to set it.
Back to top
View user's profile Send private message
linuzappz



Joined: 30 Apr 2004
Posts: 6

PostPosted: Fri Oct 01, 2004 12:20 am    Post subject: Reply with quote

okay, i'll read it carefully, thanks.
Back to top
View user's profile Send private message
apache37



Joined: 04 Jun 2004
Posts: 76

PostPosted: Fri Oct 22, 2004 7:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group