From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28622 invoked by alias); 28 Sep 2006 18:32:01 -0000 Received: (qmail 28612 invoked by uid 22791); 28 Sep 2006 18:32:01 -0000 X-Spam-Check-By: sourceware.org Received: from mx2.palmsource.com (HELO mx2.palmsource.com) (12.7.175.14) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 28 Sep 2006 18:31:59 +0000 Received: from localhost (localhost [127.0.0.1]) by localhost.domain.tld (Postfix) with ESMTP id 0589726C85; Thu, 28 Sep 2006 11:31:55 -0700 (PDT) Received: from mx2.palmsource.com ([127.0.0.1]) by localhost (mx2.palmsource.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 04174-02-11; Thu, 28 Sep 2006 11:31:54 -0700 (PDT) Received: from ussunex01.palmsource.com (unknown [192.168.101.9]) by mx2.palmsource.com (Postfix) with ESMTP id 1FDA926C80; Thu, 28 Sep 2006 11:31:54 -0700 (PDT) Received: from 192.168.92.59 ([192.168.92.59]) by ussunex01.palmsource.com ([192.168.101.9]) via Exchange Front-End Server owa.palmsource.com ([10.0.20.17]) with Microsoft Exchange Server HTTP-DAV ; Thu, 28 Sep 2006 18:31:53 +0000 Received: from svmsnyderlnx by owa.palmsource.com; 28 Sep 2006 11:31:53 -0700 Subject: Re: attach to a socket in localhost:8787 From: Michael Snyder To: Daniel Jacobowitz Cc: op132650c@mail.telepac.pt, gdb@sourceware.org In-Reply-To: <20060928150107.GA6844@nevyn.them.org> References: <1159431247.1wjx69rdmmgw@webmail.telepac.pt> <20060928125344.GA2415@nevyn.them.org> <1159453247.3m65oqlx4rpc@w6.webmail.telepac.pt> <20060928150107.GA6844@nevyn.them.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 28 Sep 2006 18:32:00 -0000 Message-Id: <1159468313.9768.183.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-09/txt/msg00181.txt.bz2 On Thu, 2006-09-28 at 11:01 -0400, Daniel Jacobowitz wrote: > On Thu, Sep 28, 2006 at 03:20:47PM +0100, op132650c@mail.telepac.pt wrote: > > Listening for transport dt_socket at address: 8787" > > > > I use to debug my ear in Eclipse, creating a remote connection Standard (Socket > > Attach) to localhost:8787. > > > > Now, i want to debug my ear using gdb. > > > > I used to do inside gdb: > > target remote localhost:8787 > > > > but this abort the AS. > > I have no idea what sort of server this is, but it is extremely > unlikely that it speaks the GDB protocol or can communicate with GDB. > I think I see the problem (maybe). Pedro, you're talking about Java, aren't you? You were using Eclipse in java-debugging mode? GDB can't do that -- at least not in the same way. The gdb socket and the Jboss application server socket are speaking different languages.