Re: [PATCH] Implement "info proc mappings" for NetBSD

Kamil Rytarowski
2020-03-20T19:14:51Z

[-- Attachment #1.1: Type: text/plain, Size: 1455 bytes --]

On 20.03.2020 19:50, Tom Tromey wrote:
>>>>>> "Kamil" == Kamil Rytarowski <n54@gmx.com> writes:
>
> Kamil> I see. I prefer to keep this called obfd, as it matches the FreeBSD code
> Kamil> more closely. If we want to rename it, we shall do it also in FreeBSD.
>
> Well, that FreeBSD code is wrong too...
>
>>> What if they stop matching?
>
> Kamil> Not a concern.
>
> Kamil> If that will ever change, it will be patched, same as the other
> Kamil> existing NetBSD support.
>
> How will cross debugging to different versions work in this situation?
>

Do you mean non-NetBSD cross debugging connected to NetBSD gdbserver?

In any other case there is no concern and APIs are stable. If there will
be ABI changes, we will version sysctl() for new vs old calls, keeping
compat and old prebuilt things will continue to work.

> Kamil> I prefer to keep similarity with FreeBSD. If we want to change it,
> Kamil> FreeBSD shall be changed too.
>
> ...
> Kamil> I don't have chance to work or test on FreeBSD myself so I defer
> Kamil> refactoring it into future.
>
> It sounds like maybe FreeBSD isn't as maintained? Unless the two need
> to share a lot of code, it seems like it would be better to do things as
> well as possible in the maintained code; and let the other code alone.
>

If that can make the code merged, I will apply some changes on the cost
of diverging from the FreeBSD model.

> Tom
>

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]