Created attachment 7500 [details] gdb 7.7 log Attempting to run Eclipse Kepler Remote App Debug Launcher using gdb 7.7 and gdbserver 7.7. Running gdbserver on TI DM816x ARM A8: => gdbserver :10000 --attach 1011 Attached; pid = 1011 Listening on port 10000 Running Eclipse Kepler from Linux 2.6.32-220.el6.x86_64 GDB launches successfuly. Gdbserver reports: Remote debugging from host 10.223.1.45 GDB MI commands issued by Eclipse: -environment-cd /home/jliccese/ws/robocop/src -gdb-set breakpoint pending on -gdb-set detach-on-fork on -enable-pretty-printing -gdb-set print object on -gdb-set print sevenbit-strings on -gdb-set host-charset UTF-8 -gdb-set target-charset US-ASCII -gdb-set target-wide-charset UTF-32 -gdb-set target-async on -gdb-set pagination off -gdb-set non-stop on -gdb-set auto-solib-add on -gdb-set solib-search-path /opt/netra-tools/arm_a8_codegen_android-14_plcm7/sysroot/usr/lib -file-exec-and-symbols --thread-group i1 codec_engine At this point all is well. The following target-select command is then issued: -target-select remote 10.223.73.34:10000 which causes gdbserver to print: gdb-7.7/gdb/gdbserver/server.c:2490: A problem internal to GDBserver has been detected. queue_stop_reply_callback: Assertion `thread->last_status.kind != TARGET_WAITKIND_IGNORE' failed. and gdbserver terminates. I can debug successfully from Eclipse Kepler if I use GDB 7.3 and GDBSERVER 7.3. gdbserver 7.7 was built with the following cross-compile build command: ../gdb-7.7/gdb/gdbserver/configure --host=arm-linux-androideabi CFLAGS="-march=armv7-a -mfloat-abi=softfp -mfpu=neon" gdb 7.7 was built with the build command: ../gdb-7.7/configure --target=arm-linux-androideabi Both built without error.
Same assertion fails with gdb 7.5.1: # gdbserver --attach 0.0.0.0:10000 `pgrep java` Attached; pid = 14351 Listening on port 10000 Remote debugging from host 127.0.0.1 server.c:2356: A problem internal to GDBserver has been detected. queue_stop_reply_callback: Assertion `thread->last_status.kind != TARGET_WAITKIND_IGNORE' failed. # gdbserver --version|head -n1 GNU gdbserver (GDB) 7.5.1 # gdb --version|head -n1 GNU gdb (GDB) 7.5.1 Eclipse version: eclipse-kepler-SR2-linux-gtk
Same assertion fails with gdb 7.8.50.20140715-cvs (weekly): # gdbserver --attach 0.0.0.0:10000 `pgrep java` Attached; pid = 14351 Listening on port 10000 Remote debugging from host 127.0.0.1 server.c:2691: A problem internal to GDBserver has been detected. queue_stop_reply_callback: Assertion `thread->last_status.kind != TARGET_WAITKIND_IGNORE' failed. # gdb --version|head -n1 GNU gdb (GDB) 7.8.50.20140715-cvs # gdbserver --version|head -n1 GNU gdbserver (GDB) 7.8.50.20140715-cvs
My previous comments were done with: # uname -a Linux egp-ssd-ubuntu14-04 3.13.0-30-generic #55-Ubuntu SMP Fri Jul 4 21:43:42 UTC 2014 i686 i686 i686 GNU/Linux # lsb_release -dc Description: Ubuntu 14.04 LTS Codename: trusty Both of gdb versions were built with default parameters: ./configure && make && sudo make install
Since gdb 7.3 is not available anymore, I built gdb 7.3.1 with some tweaks to source code, it works with the above Kepler without triggering this assertion.