From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24363 invoked by alias); 28 Sep 2006 18:26:06 -0000 Received: (qmail 24355 invoked by uid 22791); 28 Sep 2006 18:26:05 -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:26:03 +0000 Received: from localhost (localhost [127.0.0.1]) by localhost.domain.tld (Postfix) with ESMTP id 27F9726043; Thu, 28 Sep 2006 11:26:02 -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 03944-07-3; Thu, 28 Sep 2006 11:26:01 -0700 (PDT) Received: from ussunex01.palmsource.com (unknown [192.168.101.9]) by mx2.palmsource.com (Postfix) with ESMTP id 5670D24894; Thu, 28 Sep 2006 11:26:01 -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:26:01 +0000 Received: from svmsnyderlnx by owa.palmsource.com; 28 Sep 2006 11:26:00 -0700 Subject: Re: attach to a socket in localhost:8787 From: Michael Snyder To: op132650c@mail.telepac.pt Cc: gdb@sourceware.org In-Reply-To: <1159431247.1wjx69rdmmgw@webmail.telepac.pt> References: <1159431247.1wjx69rdmmgw@webmail.telepac.pt> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 28 Sep 2006 18:26:00 -0000 Message-Id: <1159467960.9768.179.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/msg00180.txt.bz2 On Thu, 2006-09-28 at 09:14 +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. If it's really the localhost, ie. the same IP that gdb is running on, then you just say "target remote :8787". Or I think you can say "target remote localhost:8787", but I'm not sure. The first syntax should work.