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 

Strange occurances with PSPLink 2.0 + psp-gdb

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



Joined: 18 Mar 2007
Posts: 38

PostPosted: Mon May 28, 2007 1:04 am    Post subject: Strange occurances with PSPLink 2.0 + psp-gdb Reply with quote

Code:
263                     corners[3].x = i+255;
(gdb) print surf
$26 = (SDL_Surface *) 0x8a6b860
(gdb) until
264                     for(j = dst->y; j <= dst->y+dst->h; j += 256) {
(gdb) print surf
$27 = (SDL_Surface *) 0x50d080c
(gdb) print &surf
$28 = (SDL_Surface **) 0x9f3fdb8
(gdb) print corners
$29 = {{u = 0, v = 0, x = 0, y = 35666192, z = 5.32682648e-38}, {u = 0,
    v = 0, x = -nan(0x7fffff), y = 0, z = -nan(0x7fffff)}, {u = 0, v = 0,
    x = 0, y = 0, z = 0}, {u = 255, v = 0, x = 255, y = 6.50189876e-33,
    z = 1.62241341e-36}}
(gdb) print &corners
$30 = (vertexel16 (*)[4]) 0x9f3fd78
(gdb) print &corners[3]
$31 = (vertexel16 *) 0x9f3fda8
(gdb) print &corners[3].x
$32 = (float *) 0x9f3fdac


What could be modifying the value of surf?
Also, corners is supposed to be:
{{u = 0, v = 0, x = 0.0f, y = 0.0f, z = 0.0f}, {u = 0, v = 255, x = 0.0f, y= 255.0f, z = 0.0f}, {u = 255, v = 255, x = 255.0f, y = 255.0f, z = 0.0f}, {u = 0, v = 255, x = 0.0f, y = 255.0f, z = 0.0f}}, which, as you can see, is completely changed. Is this some bug in PSPLink that's corrupting the stack? Or something else entirely?
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 -> PSP 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