Hello: I am trying to reliably debug a system process running in android emulator, something like the "ril" module.
1/ It would be preferable that I can debug this with eclipse. But it seems to me that eclipse is to be used for application debugging rather system processes. When I started DDMS, I only see app's processes show up there, none of system processes are on this list. Anyone had tried this with success, please let me know. 2/ The other alternative is to debug this to run gdbserver on the avd and have adb listen to port 5039. Then get the debugger attach to the process running on the avd via adb, port 5039. The main problem that I am running into is that I can't reliably step through the code. I got the below symptoms: a/ Each time stepping over the code, it would randomly jump to incorrect source line within the same function, but finish correctly if I enter "continue" b/ printing local variable sometimes show incorrect values, but it would complete correctly if "continued" c/ along with symptom a/ described above, if I keep step thru the code, most likely I get segmentation and the process get terminated. I compiled the code with "-O1 -g", the result is similar when compiled with "-O2 -g" If I recompiled the code with "-O0 -g", the set breakpoint won't break, and gdb does not see the correct source line when setting the breakpoint. So completely turn of compiler optimization does not seem to work at all. Any help is appreciated. -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
