From: Daniel Jacobowitz <drow@false.org>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch] IPv6 support for gdbserver
Date: Wed, 27 Sep 2006 18:20:00 -0000 [thread overview]
Message-ID: <20060927182038.GA5635@nevyn.them.org> (raw)
In-Reply-To: <20060927163337.GA27149@host0.dyn.jankratochvil.net>
On Wed, Sep 27, 2006 at 06:33:37PM +0200, Jan Kratochvil wrote:
> Hi,
>
> while it may not make too much sense here is IPv6 support ("tcp6:"/"udp6:"
> address prefixes, autodetected if possible) for
> target-remote/gdbserver/gdbreplay.
Hi Jan,
One trend I've noticed in a lot of your patches is that they're very
focused on the environment you're working in (Red Hat Linux). It's
very important that when you modify the FSF GDB, you consider all the
places where it is used and the different possible environments. As a
specific example, I suspect that this would break GDB builds on a
number of targets - getaddrinfo is not sufficiently widely available
to use without testing for it, and I don't know if it requires
additional libraries. It's usually better to be safe than sorry
with these things. Maybe another list reader knows better than I do
what we would need to do to use this support portably.
Do you think the GDB support is useful enough to merge? I don't have a
feeling either way; I don't use IPv6, but I realize more and more
people do, so this might be a good (and NEWS-worthy) feature.
The gdbserver/gdbreplay support I am more skeptical about. You've
added lots of address parsing code to what is supposed to be a very
minimal program. But today gdbserver always binds to any available
interface, so there must be a simpler way to check for any INET6
interfaces similarly (assuming the current code won't).
Maybe we should add stdin/stdout support to gdbserver and make an
external utility handle any more fancy networking scenarios. I'm
thinking of "socat" here. What do you think of that idea? We've done
stdin/stdout for other stubs in the past and it's quite handy. Or if
you want to leave inferior stdout alone you can use two specified file
descriptors.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2006-09-27 18:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-27 16:33 Jan Kratochvil
2006-09-27 18:20 ` Daniel Jacobowitz [this message]
2006-09-27 18:56 ` Jan Kratochvil
2006-09-27 19:06 ` Daniel Jacobowitz
2006-09-30 15:28 ` Jan Kratochvil
2006-10-08 19:03 ` Jan Kratochvil
2006-10-09 4:33 ` Eli Zaretskii
2006-10-09 14:17 ` Jan Kratochvil
2006-10-09 19:01 ` Daniel Jacobowitz
2006-10-09 19:36 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060927182038.GA5635@nevyn.them.org \
--to=drow@false.org \
--cc=gdb-patches@sourceware.org \
--cc=jan.kratochvil@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox