Mirror of the gdb mailing list
 help / color / mirror / Atom feed
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	[thread overview]
Message-ID: <3BCD1075.3050405@ntb.ch> (raw)

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






             reply	other threads:[~2001-10-16 22:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-16 22:00 Jaeckle Sascha [this message]
2001-10-16 22:10 ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3BCD1075.3050405@ntb.ch \
    --to=sascha.jaeckle@ntb.ch \
    --cc=gdb@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox