Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdbserver hangs while debugging threads
@ 2001-10-16 22:00 Jaeckle Sascha
  2001-10-16 22:10 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Jaeckle Sascha @ 2001-10-16 22:00 UTC (permalink / raw)
  To: gdb

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






^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gdbserver hangs while debugging threads
  2001-10-16 22:00 gdbserver hangs while debugging threads Jaeckle Sascha
@ 2001-10-16 22:10 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2001-10-16 22:10 UTC (permalink / raw)
  To: Jaeckle Sascha; +Cc: gdb

On Wed, Oct 17, 2001 at 07:00:37AM +0200, Jaeckle Sascha wrote:
> 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.

Well, first of all, with current CVS sources you should not be getting
'packet too long'.  Is the gdbserver binary built from the same
sources?

Second, gdbserver simply does not support threads.  I believe patches
for this should be materializing soon (I hope...).

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-10-16 22:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-16 22:00 gdbserver hangs while debugging threads Jaeckle Sascha
2001-10-16 22:10 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox