Strange occurances with PSPLink 2.0 + psp-gdb

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Archaemic
Posts: 38
Joined: Sun Mar 18, 2007 7:23 am

Strange occurances with PSPLink 2.0 + psp-gdb

Post by Archaemic »

Code: Select all

263                     corners[3].x = i+255;
(gdb) print surf
$26 = (SDL_Surface *) 0x8a6b860
(gdb) until
264                     for&#40;j = dst->y; j <= dst->y+dst->h; j += 256&#41; &#123;
&#40;gdb&#41; print surf
$27 = &#40;SDL_Surface *&#41; 0x50d080c
&#40;gdb&#41; print &surf
$28 = &#40;SDL_Surface **&#41; 0x9f3fdb8
&#40;gdb&#41; print corners
$29 = &#123;&#123;u = 0, v = 0, x = 0, y = 35666192, z = 5.32682648e-38&#125;, &#123;u = 0,
    v = 0, x = -nan&#40;0x7fffff&#41;, y = 0, z = -nan&#40;0x7fffff&#41;&#125;, &#123;u = 0, v = 0,
    x = 0, y = 0, z = 0&#125;, &#123;u = 255, v = 0, x = 255, y = 6.50189876e-33,
    z = 1.62241341e-36&#125;&#125;
&#40;gdb&#41; print &corners
$30 = &#40;vertexel16 &#40;*&#41;&#91;4&#93;&#41; 0x9f3fd78
&#40;gdb&#41; print &corners&#91;3&#93;
$31 = &#40;vertexel16 *&#41; 0x9f3fda8
&#40;gdb&#41; print &corners&#91;3&#93;.x
$32 = &#40;float *&#41; 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?
Post Reply