I want to debug opencore with the "arm-eabi-gdb" and "gdbserver" under
android, by attaching to the process "mediaserver".
But the process "/system/bin/mediaserver" always terminated with
signal = 0x5.

I built the code with "lunch 1" and use NFS.

Here is my debug operation:

On the target (arm device):
1. Launch a JAVA video player application. Record the PID of
mediaserver (eg. 1787)
2. #./gdbserver :3000 --attach 1787
   Attached; pid = 1787
   Listening on port 3000


Then on the host, run the cross gdb "arm-eabi-gdb":
$/home/amanda/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/
arm-eabi-gdb
/home/amanda/mydroid/out/target/product/generic/symbols/system/bin/
mediaserver
(gdb)set solib-search-path /home/amanda/mydroid/out/target/product/
generic/symbols/system/lib
(gdb)target remote 10.192.225.49:3000
                (--- 10.192.225.49 is my target board IP, the target is 
connected
and display:
                 Remote debugging from host 10.192.224.119 (my host IP)
                 gdb: Unable to get location for thread creation breakpoint:
requested event is not supported
                 gdb: Unable to get location for thread creation breakpoint:
requested event is not supported)


  (gdb)sharedlibrary

        I got an error and warning like this
        Error while mapping shared library sections:
        /system/bin/linker: No such file or directory.
        ...
        warning: .dynamic section for "/home/amanda/mydroid/out/target/
product/generic/symbols/system/lib/libopencorecommon.so" is not at the
expected address (wrong library or version mismatch?)
  --- I don't know why. But most libraries' symbol are loaded
successfully.

  Then I tried to set a breakpoint and it seems ok

 (gdb)b AndroidSurfaceOutput::initCheck()
 Breakpoint 1 at 0xa71a49b0: file external/opencore//android/
android_surface_output.cpp, line 1068.
 (gdb) c
 Continuing.

 However, when I let the video player try to play a MP4 clip. The
"mediaserver" process terminated unexpectedly.
 The host gdb display:
 Program terminated with signal SIGTRAP, Trace/breakpoint trap.
 The program no longer exists.


And the target display:
hild terminated with signal = 5
Child terminated with signal = 0x5

It seems the breakpoint is shot and it cause media server to
terminate.

Could anybody give me some advice? Many thanks!

Jasperr
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to