qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [RESEND][PATCH] gdbstub: listen on ipv4 address


From: Jan Kiszka
Subject: [Qemu-devel] Re: [RESEND][PATCH] gdbstub: listen on ipv4 address
Date: Wed, 28 Jan 2009 10:14:22 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

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 via email to

[Prev in Thread] Current Thread [Next in Thread]