Code: Select all
GNU gdb (GDB) 7.5 qnx (rev. 863)
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-unknown-nto-qnx8.0.0"...
Reading symbols from /home/luke/git/scummvm/scummvm...done.
[New pid 284205303 tid 1]
warning: Shared object "/home/luke/bbndk/target_10_3_0_698/qnx6/armle-v7/lib/libTouchControlOverlay.so.1" could not be validated and will be ignored.
warning: Shared object "/home/luke/bbndk/target_10_3_0_698/qnx6/armle-v7/lib/libc.so.3" could not be validated and will be ignored.
warning: Could not load shared library symbols for 10 libraries, e.g. /apps/com.example.ScummVM.testDev_ple_ScummVMd1373eeb/native/lib/libTouchControlOverlay.so.1.
Use the "info sharedlibrary" command to see the complete listing.
Do you need "set solib-search-path" or "set sysroot"?
Program terminated with signal 11, Segmentation fault.
#0 0x112854e8 in Scumm::ImuseChannel::getParameters (this=0xc8, stereo=@0x0: <error reading variable>,
is_16bit=@0x28: <error reading variable>, vol=@0xcccccc: <error reading variable>, pan=@0x0: <error reading variable>)
at ./engines/scumm/smush/channel.h:121
121 pan = _pan;
(gdb) set solib-search-path ../bbscumm/lib
Reading symbols from /home/luke/git/bbscumm/lib/libTouchControlOverlay.so.1...(no debugging symbols found)...done.
Loaded symbols for /home/luke/git/bbscumm/lib/libTouchControlOverlay.so.1
Reading symbols from /home/luke/git/bbscumm/lib/libSDL-1.2.so.11...done.
Loaded symbols for /home/luke/git/bbscumm/lib/libSDL-1.2.so.11
Reading symbols from /home/luke/git/bbscumm/lib/libogg.so.8...done.
Loaded symbols for /home/luke/git/bbscumm/lib/libogg.so.8
Reading symbols from /home/luke/git/bbscumm/lib/libvorbis.so.4...done.
Loaded symbols for /home/luke/git/bbscumm/lib/libvorbis.so.4
Reading symbols from /home/luke/git/bbscumm/lib/libpng16.so.0...(no debugging symbols found)...done.
Loaded symbols for /home/luke/git/bbscumm/lib/libpng16.so.0
warning: Shared object "/home/luke/bbndk/target_10_3_0_698/qnx6/armle-v7/usr/lib/ldqnx.so.2" could not be validated and will be ignored.
Reading symbols from /home/luke/git/bbscumm/lib/libvorbisfile.so.6...done.
Loaded symbols for /home/luke/git/bbscumm/lib/libvorbisfile.so.6
Reading symbols from /home/luke/git/bbscumm/lib/libFLAC.so.8...done.
Loaded symbols for /home/luke/git/bbscumm/lib/libFLAC.so.8
Reading symbols from /home/luke/git/bbscumm/lib/libmad.so.0...done.
Loaded symbols for /home/luke/git/bbscumm/lib/libmad.so.0
Reading symbols from /home/luke/git/bbscumm/lib/libtheoradec.so.2...done.
Loaded symbols for /home/luke/git/bbscumm/lib/libtheoradec.so.2
Reading symbols from /home/luke/git/bbscumm/lib/libmpeg2.so.0...done.
Loaded symbols for /home/luke/git/bbscumm/lib/libmpeg2.so.0
Reading symbols from /home/luke/git/bbscumm/lib/libxml2.so.1...(no debugging symbols found)...done.
Loaded symbols for /home/luke/git/bbscumm/lib/libxml2.so.1
Reading symbols from /home/luke/git/bbscumm/lib/libpng14.so.0...(no debugging symbols found)...done.
Loaded symbols for /home/luke/git/bbscumm/lib/libpng14.so.0
(gdb) bt
#0 0x112854e8 in Scumm::ImuseChannel::getParameters (this=0xc8, stereo=@0x0: <error reading variable>,
is_16bit=@0x28: <error reading variable>, vol=@0xcccccc: <error reading variable>, pan=@0x0: <error reading variable>)
at ./engines/scumm/smush/channel.h:121
#1 0x111e3554 in Scumm::Gdi::drawBitmap (this=<error reading variable: Cannot access memory at address 0x24>,
ptr=<error reading variable: Cannot access memory at address 0x20>,
vs=<error reading variable: Cannot access memory at address 0x1c>,
x=<error reading variable: Cannot access memory at address 0x18>,
y=<error reading variable: Cannot access memory at address 0x14>,
width=<error reading variable: Cannot access memory at address 0x10>,
height=<error reading variable: Cannot access memory at address 0xc>,
stripnr=<error reading variable: Cannot access memory at address 0x8>,
numstrip=<error reading variable: Cannot access memory at address 0x4>,
flag=<error reading variable: Cannot access memory at address 0x3>) at engines/scumm/gfx.cpp:1839
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) disass
Dump of assembler code for function Scumm::ImuseChannel::getParameters(bool&, bool&, int&, int&):
0x112854ac <+0>: push {r7}
0x112854ae <+2>: sub sp, #20
0x112854b0 <+4>: add r7, sp, #0
0x112854b2 <+6>: str r0, [r7, #12]
0x112854b4 <+8>: str r1, [r7, #8]
0x112854b6 <+10>: str r2, [r7, #4]
0x112854b8 <+12>: str r3, [r7, #0]
0x112854ba <+14>: ldr r3, [r7, #12]
0x112854bc <+16>: ldr r3, [r3, #52] ; 0x34
0x112854be <+18>: cmp r3, #2
0x112854c0 <+20>: ite ne
0x112854c2 <+22>: movne r3, #0
0x112854c4 <+24>: moveq r3, #1
0x112854c6 <+26>: uxtb r2, r3
0x112854c8 <+28>: ldr r3, [r7, #8]
0x112854ca <+30>: strb r2, [r3, #0]
0x112854cc <+32>: ldr r3, [r7, #12]
0x112854ce <+34>: ldr r3, [r3, #44] ; 0x2c
0x112854d0 <+36>: cmp r3, #8
0x112854d2 <+38>: ite le
0x112854d4 <+40>: movle r3, #0
0x112854d6 <+42>: movgt r3, #1
0x112854d8 <+44>: uxtb r2, r3
0x112854da <+46>: ldr r3, [r7, #4]
0x112854dc <+48>: strb r2, [r3, #0]
0x112854de <+50>: ldr r3, [r7, #12]
0x112854e0 <+52>: ldr r2, [r3, #32]
0x112854e2 <+54>: ldr r3, [r7, #0]
0x112854e4 <+56>: str r2, [r3, #0]
0x112854e6 <+58>: ldr r3, [r7, #12]
=> 0x112854e8 <+60>: ldr r2, [r3, #36] ; 0x24
0x112854ea <+62>: ldr r3, [r7, #24]
0x112854ec <+64>: str r2, [r3, #0]
0x112854ee <+66>: mov.w r3, #1
0x112854f2 <+70>: mov r0, r3
0x112854f4 <+72>: add.w r7, r7, #20
0x112854f8 <+76>: mov sp, r7
0x112854fa <+78>: pop {r7}
0x112854fc <+80>: bx lr
End of assembler dump.
(gdb)
Any ideas, notes from previous porting efforts, etc. appreciated.
Cheers,
Todd