public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* IPv6 support
@ 2018-07-04 12:43 Ashutosh Pal
  2018-07-04 13:54 ` Ruslan Kabatsayev
  2018-07-14  4:32 ` Sergio Durigan Junior
  0 siblings, 2 replies; 8+ messages in thread
From: Ashutosh Pal @ 2018-07-04 12:43 UTC (permalink / raw)
  To: gdb

Hi Experts,

Could anyone please confirm if gdb today has support for connecting to IPv6 RSP targets? In the code (7.12), I still see references to old API's like gethostbyname(..) etc. and no use of types like sockaddr_in6 etc. Searching over internet, I found the following mail thread talking about a patch for supporting IPv6: https://sourceware.org/ml/gdb-patches/2014-02/msg00253.html

Is this patch or any other fixes related to IPv6 included in any latest gdb releases?

Thanks and Regards,
Ashutosh

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: IPv6 support
  2018-07-04 12:43 IPv6 support Ashutosh Pal
@ 2018-07-04 13:54 ` Ruslan Kabatsayev
  2018-07-04 17:23   ` Sergio Durigan Junior
  2018-07-14  4:32 ` Sergio Durigan Junior
  1 sibling, 1 reply; 8+ messages in thread
From: Ruslan Kabatsayev @ 2018-07-04 13:54 UTC (permalink / raw)
  To: Ashutosh Pal; +Cc: gdb

Hi,

On 4 July 2018 at 15:43, Ashutosh Pal <Ashutosh.Pal@synopsys.com> wrote:
> Hi Experts,
>
> Could anyone please confirm if gdb today has support for connecting to IPv6 RSP targets? In the code (7.12), I still see references to old API's like gethostbyname(..) etc. and no use of types like sockaddr_in6 etc. Searching over internet, I found the following mail thread talking about a patch for supporting IPv6: https://sourceware.org/ml/gdb-patches/2014-02/msg00253.html

Here're the newer threads related to IPv6 support:
patch v1: https://sourceware.org/ml/gdb-patches/2018-05/msg00629.html
patch v2: https://sourceware.org/ml/gdb-patches/2018-06/msg00384.html .

>
> Is this patch or any other fixes related to IPv6 included in any latest gdb releases?

AFAICT, previous attempts have not been finished. Maybe the current one will...

>
> Thanks and Regards,
> Ashutosh
>

Regards,
Ruslan

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: IPv6 support
  2018-07-04 13:54 ` Ruslan Kabatsayev
@ 2018-07-04 17:23   ` Sergio Durigan Junior
  0 siblings, 0 replies; 8+ messages in thread
From: Sergio Durigan Junior @ 2018-07-04 17:23 UTC (permalink / raw)
  To: Ruslan Kabatsayev; +Cc: Ashutosh Pal, gdb

On Wednesday, July 04 2018, Ruslan Kabatsayev wrote:

> Hi,
>
> On 4 July 2018 at 15:43, Ashutosh Pal <Ashutosh.Pal@synopsys.com> wrote:
>> Hi Experts,
>>
>> Could anyone please confirm if gdb today has support for connecting
>> to IPv6 RSP targets? In the code (7.12), I still see references to
>> old API's like gethostbyname(..) etc. and no use of types like
>> sockaddr_in6 etc. Searching over internet, I found the following
>> mail thread talking about a patch for supporting IPv6:
>> https://sourceware.org/ml/gdb-patches/2014-02/msg00253.html
>
> Here're the newer threads related to IPv6 support:
> patch v1: https://sourceware.org/ml/gdb-patches/2018-05/msg00629.html
> patch v2: https://sourceware.org/ml/gdb-patches/2018-06/msg00384.html .
>
>>
>> Is this patch or any other fixes related to IPv6 included in any latest gdb releases?
>
> AFAICT, previous attempts have not been finished. Maybe the current one will...

Yeah, I intend to submit a v3 today.

Cheers,

-- 
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
http://sergiodj.net/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: IPv6 support
  2018-07-04 12:43 IPv6 support Ashutosh Pal
  2018-07-04 13:54 ` Ruslan Kabatsayev
@ 2018-07-14  4:32 ` Sergio Durigan Junior
  1 sibling, 0 replies; 8+ messages in thread
From: Sergio Durigan Junior @ 2018-07-14  4:32 UTC (permalink / raw)
  To: Ashutosh Pal; +Cc: gdb

On Wednesday, July 04 2018, Ashutosh Pal wrote:

> Hi Experts,
>
> Could anyone please confirm if gdb today has support for connecting to
> IPv6 RSP targets? In the code (7.12), I still see references to old
> API's like gethostbyname(..) etc. and no use of types like
> sockaddr_in6 etc. Searching over internet, I found the following mail
> thread talking about a patch for supporting IPv6:
> https://sourceware.org/ml/gdb-patches/2014-02/msg00253.html
>
> Is this patch or any other fixes related to IPv6 included in any latest gdb releases?

FWIW, the patch has been recently pushed upstream.  Unfortunately it
won't be present in the 8.2 release, but you can always compile GDB.

Thanks,

-- 
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
http://sergiodj.net/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: IPv6 Support
  2018-05-11 18:28   ` Sergio Durigan Junior
@ 2018-05-15 14:23     ` Armánd Scholtes
  0 siblings, 0 replies; 8+ messages in thread
From: Armánd Scholtes @ 2018-05-15 14:23 UTC (permalink / raw)
  To: Jan Kratochvil, Sergio Durigan Junior; +Cc: gdb

Hello Sergio,

In the end i would need gdbserver and gdb to have IPv6 support for my solution. I assume that after gdbserver has been fitted with IPv6, gdb will be next. I'll monitor the site for updates. I still have some time before i must pick up this issue in our project.

B.r. 

Armánd

> Op 11 mei 2018 om 20:28 schreef Sergio Durigan Junior <sergiodj@redhat.com>:
> 
> On Wednesday, May 09 2018, Jan Kratochvil wrote:
> 
> > On Tue, 08 May 2018 17:17:34 +0200, Armánd Scholtes wrote:
> > 
> > > Does GDB support IPv6 for cross platform/remote debugging.
> > 
> > Not yet. Sergio Durigan Junior was recently talking about possibly working on
> > it.
> 
> Thanks for the reply, Jan.
> 
> Yes, I am working on it. Currently implementing IPv6 on gdbserver.
> 
> > > I have searched on the internet to obtain a definitive answer but i can find
> > > any. (Results are related to patches etc)
> > 
> > There were some patches in the past on gdb-patches mailing list so you may be
> > able to apply those but they will probably need some rebases/adjustments.
> 
> Most of the patches available only implement IPv6 on GDB, not
> gdbserver. Not sure if that's enough for Armánd, but by all means,
> feel free to take a look.
> 
> I expect to have something working in the next week.
> 
> Cheers,
> 
> --
> Sergio
> GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36
> Please send encrypted e-mail if possible
> http://sergiodj.net/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: IPv6 Support
  2018-05-09  7:27 ` Jan Kratochvil
@ 2018-05-11 18:28   ` Sergio Durigan Junior
  2018-05-15 14:23     ` Armánd Scholtes
  0 siblings, 1 reply; 8+ messages in thread
From: Sergio Durigan Junior @ 2018-05-11 18:28 UTC (permalink / raw)
  To: Jan Kratochvil; +Cc: Armánd Scholtes, gdb

On Wednesday, May 09 2018, Jan Kratochvil wrote:

> On Tue, 08 May 2018 17:17:34 +0200, Armánd Scholtes wrote:
>> Does GDB support IPv6 for cross platform/remote debugging.
>
> Not yet. Sergio Durigan Junior was recently talking about possibly working on
> it.

Thanks for the reply, Jan.

Yes, I am working on it.  Currently implementing IPv6 on gdbserver.

>> I have searched on the internet to obtain a definitive answer but i can find
>> any. (Results are related to patches etc)
>
> There were some patches in the past on gdb-patches mailing list so you may be
> able to apply those but they will probably need some rebases/adjustments.

Most of the patches available only implement IPv6 on GDB, not
gdbserver.  Not sure if that's enough for Armánd, but by all means,
feel free to take a look.

I expect to have something working in the next week.

Cheers,

-- 
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
http://sergiodj.net/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: IPv6 Support
  2018-05-08 15:17 IPv6 Support Armánd Scholtes
@ 2018-05-09  7:27 ` Jan Kratochvil
  2018-05-11 18:28   ` Sergio Durigan Junior
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Kratochvil @ 2018-05-09  7:27 UTC (permalink / raw)
  To: Armánd Scholtes; +Cc: gdb, Sergio Durigan Junior

On Tue, 08 May 2018 17:17:34 +0200, Armánd Scholtes wrote:
> Does GDB support IPv6 for cross platform/remote debugging.

Not yet. Sergio Durigan Junior was recently talking about possibly working on
it.


> I have searched on the internet to obtain a definitive answer but i can find
> any. (Results are related to patches etc)

There were some patches in the past on gdb-patches mailing list so you may be
able to apply those but they will probably need some rebases/adjustments.


> should work something out to revert to ipv4.

It may be now easier to rather configure IPv4 on the device.


Jan

^ permalink raw reply	[flat|nested] 8+ messages in thread

* IPv6 Support
@ 2018-05-08 15:17 Armánd Scholtes
  2018-05-09  7:27 ` Jan Kratochvil
  0 siblings, 1 reply; 8+ messages in thread
From: Armánd Scholtes @ 2018-05-08 15:17 UTC (permalink / raw)
  To: gdb

Dear Madam, Sir

First of all i hope I am asking this question at the right location. If not
sorry for the inconvenience.

Does GDB support IPv6 for cross platform/remote debugging.

I have searched on the internet to obtain a definitive answer but i can find
any. (Results are related to patches etc)

I am working on a project with a device that has IPv6 by default. IPv4 must be
activated on manually.

I did some testing with a cross platform version/build V7.5 of GDB but this one
did not seem to accept IPv6 addresses. I would like to know if IPv6 is supported
so i can determine if i need to invest time in building a version for this
project or should work something out to revert to ipv4.

b.r.

Armand

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-07-14  4:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-04 12:43 IPv6 support Ashutosh Pal
2018-07-04 13:54 ` Ruslan Kabatsayev
2018-07-04 17:23   ` Sergio Durigan Junior
2018-07-14  4:32 ` Sergio Durigan Junior
  -- strict thread matches above, loose matches on Subject: below --
2018-05-08 15:17 IPv6 Support Armánd Scholtes
2018-05-09  7:27 ` Jan Kratochvil
2018-05-11 18:28   ` Sergio Durigan Junior
2018-05-15 14:23     ` Armánd Scholtes

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 read-only IMAP folder(s) and NNTP newsgroup(s).