From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8963 invoked by alias); 19 Dec 2007 16:29:46 -0000 Received: (qmail 8952 invoked by uid 22791); 19 Dec 2007 16:29:45 -0000 X-Spam-Check-By: sourceware.org Received: from exprod8og106.obsmtp.com (HELO psmtp.com) (64.18.3.92) by sourceware.org (qpsmtpd/0.31) with SMTP; Wed, 19 Dec 2007 16:29:34 +0000 Received: from source ([12.110.134.31]) by exprod8ob106.postini.com ([64.18.7.12]) with SMTP; Wed, 19 Dec 2007 08:29:14 PST Received: from pkoning-laptop.equallogic.com.equallogic.com ([172.25.202.114]) by M31.equallogic.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 19 Dec 2007 11:28:57 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18281.18120.96289.181270@pkoning-laptop.equallogic.com> Date: Wed, 19 Dec 2007 16:29:00 -0000 From: Paul Koning To: sfora.dim@gmail.com Cc: drow@false.org, gdb@sourceware.org Subject: Re: target remote and UDP source port (needed for kgdb debugging) References: <35e5b7760712190440l248b3d91tc5a597d3d2b667b1@mail.gmail.com> <20071219135609.GB20046@caradoc.them.org> <35e5b7760712190631x37c0dd81u967f514f8ffd9f78@mail.gmail.com> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-12/txt/msg00147.txt.bz2 >>>>> "sfora" == sfora dim writes: sfora> On 12/19/07, Daniel Jacobowitz wrote: >> On Wed, Dec 19, 2007 at 02:40:28PM +0200, sfora dim wrote: > Is >> there a way to ask gdb to use a specific UDP port when debugging > >> a remote target ? >> >> No, there is not. sfora> So how do people work with this ? sfora> I use tcpdump every time I begin a debugging session, and once sfora> I see the source port, I reconfigure my kgdb. sfora> Is there a better way (this is rather awkward) ? Fix the stub so it doesn't require a hardcoded source port? It's pretty weird to expect the originator of traffic to have a fixed port number. paul