qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [RESEND][PATCH] gdbstub: listen on ipv4 address
Date: Wed, 28 Jan 2009 10:14:22 +0100	[thread overview]
Message-ID: <498021EE.5060801@siemens.com> (raw)
In-Reply-To: <497F9177.6050008@codemonkey.ws>

Anthony Liguori wrote:
> Sebastian Herbszt wrote:
>> Anthony Liguori wrote:
>>> Sebastian Herbszt wrote:
>>>> Make gdbstub listen on ipv4 address like before r5697.
>>>
>>> Any reason to make it explicit?
>>
>> There seems to be no support for IPv6 in gdb.
> 
> Are you unable to connect without the ipv4 option?  My understanding was
> that we shouldn't explicitly need this option.

inet_listen (which is finally called for this) falls back to PF_UNSPEC
when no protocol is given. I'm not sure if we can expect (according to
specs) that all our host OSes pick the protocol we want (normally IPv4).
But at least it worked so far, not only for gdb.

However, before hard-coding any protocol here, I would suggest to rework
the command line parameters. I mean: drop "-p port" and extend "-s" to
"-s [dev]" where "dev" falls back to
"tcp::1234,nowait,nodelay,server,ipv4" when omitted.

Jan

-- 
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux

  reply	other threads:[~2009-01-28  9:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-26 20:24 [Qemu-devel] [RESEND][PATCH] gdbstub: listen on ipv4 address Sebastian Herbszt
2009-01-26 22:11 ` Anthony Liguori
2009-01-27 22:32   ` [Qemu-devel] " Sebastian Herbszt
2009-01-27 22:57     ` Anthony Liguori
2009-01-28  9:14       ` Jan Kiszka [this message]
2009-01-28 10:38         ` Daniel P. Berrange
2009-01-28 12:04           ` Jan Kiszka
2009-01-28 16:39       ` Jamie Lokier

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=498021EE.5060801@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=qemu-devel@nongnu.org \
    /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;
as well as URLs for NNTP newsgroup(s).