From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13793 invoked by alias); 28 Sep 2006 14:21:02 -0000 Received: (qmail 13743 invoked by uid 22791); 28 Sep 2006 14:21:01 -0000 X-Spam-Check-By: sourceware.org Received: from relay2.ptmail.sapo.pt (HELO sapo.pt) (212.55.154.22) by sourceware.org (qpsmtpd/0.31) with SMTP; Thu, 28 Sep 2006 14:20:56 +0000 Received: (qmail 14446 invoked from network); 28 Sep 2006 14:20:50 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.146) by relay2 with SMTP; 28 Sep 2006 14:20:50 -0000 Received: (qmail 440 invoked by uid 64140); 28 Sep 2006 14:20:47 -0000 Received: from 192.168.25.49 (192.168.25.49 [192.168.25.49]) by w6.webmail.telepac.pt (Horde) with HTTP for ; Thu, 28 Sep 2006 15:20:47 +0100 Message-ID: <1159453247.3m65oqlx4rpc@w6.webmail.telepac.pt> Date: Thu, 28 Sep 2006 14:21:00 -0000 From: op132650c@mail.telepac.pt To: Daniel Jacobowitz Cc: gdb@sourceware.org Subject: Re: attach to a socket in localhost:8787 References: <1159431247.1wjx69rdmmgw@webmail.telepac.pt> <20060928125344.GA2415@nevyn.them.org> In-Reply-To: <20060928125344.GA2415@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: PTMail Webmail v2.0.13 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/msg00177.txt.bz2 I want to debug my Enterprise archive (ear) that is deployed in Jboss Application Server. When I start Jboss Application Server(AS) in debug mode, i've the following message: =============================================================================== . JBoss Bootstrap Environment . JBOSS_HOME: c:\jboss-4.0.3SP1\bin\\.. . JAVA: D:\Java\jdk1.5.0_06\bin\java . JAVA_OPTS: -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y -Dprogram.name=debug.bat -Xms128m -Xmx512m . CLASSPATH: D:\Java\jdk1.5.0_06\lib\tools.jar;c:\jboss-4.0.3SP1\bin\\run.jar ". =============================================================================== . 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 hope that this will help. Thanks, Pedro Citando Daniel Jacobowitz : > On Thu, Sep 28, 2006 at 09:14:07AM +0100, op132650c@mail.telepac.pt wrote: > > Hi, > > > > i would like to debug my program remotely, attaching my the gdb to a socket > on > > localhost:8787. How can i do that? > > > > I've tried target remote 127.0.0.1:8787 and it doesn't work. Ie, the Jboss > > application server aborts. > > Sorry, but we need a lot more information about what you're doing to > help. What's running on that port - is it gdbserver? Does it abort > when you connect or when you try to step or...? > > -- > Daniel Jacobowitz > CodeSourcery >