This is the mail archive of the
mailing list for the GDB project.
Re: target remote and UDP source port (needed for kgdb debugging)
>>>>> "sfora" == sfora dim <email@example.com> writes:
sfora> On 12/19/07, Daniel Jacobowitz <firstname.lastname@example.org> 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