From mboxrd@z Thu Jan 1 00:00:00 1970 From: sascha.jaeckle@ntb.ch (Jaeckle Sascha) To: gdb@sourceware.cygnus.com Subject: gdbserver hangs while debugging threads Date: Tue, 16 Oct 2001 22:00:00 -0000 Message-id: <3BCD1075.3050405@ntb.ch> X-SW-Source: 2001-10/msg00166.html Hi. I'm trying to use gdb on a x86 host and gdbserver on a powerpc-linux target (MPC823). gdb is from the latest CVS-Sources and configured with --target=powerpc-linux. My files look like this: //Test.java public class Test { public static void main(String args[]){ TestThread tt[] = new TestThread[10]; for (int i=0;i<10;i++){ tt[i] = new TestThread(); tt[i].start(); } } } >>TestThread public class TestThread extends Thread { public void run(){ System.out.println(this.getName()); yield(); } } host> #powerpc-linux-gcj --static --save-temps --main=Test -o Test Test.java TestThread.java target> #gdbserver localhost:2345 Test Process Test created; pid = 31 host> #powerpc-linux-gdb Test core GNU gdb 2001-10-09-cvs (MI_OUT) Copyright 2001 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "--host=i686-pc-linux-gnu --target=powerpc-linux". (gdb) target remote 146.136.4.201:2345 Remote debugging using 146.136.4.201:2345 Remote packet too long: 000000b27ffffb60c0272000fffffffc000000087ffffb8800000008800000007fffffff10204960000000007ffffb6055ff9f331020c16000ff3c00007fffa30000000000000001007fff00ffffffff00fede8c0000000000fafc001022903c102192dc10054e24000000027ffffd3810247fc0101db7a01020485c7ffffb6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100d792c0000d03245ff9f33100d72901001e7cce000a47fc0170000000000b2000000000000000 0x100d792c in __syscall_rt_sigsuspend () at cni.h:106 106 { _Jv_MonitorExit (obj); } Did anybody have the same problem? What I'm doing wrong? C and C++ Sources are working fine. Thanks Sascha