Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kamil Rytarowski <n54@gmx.com>
To: Nick Alcock <nick.alcock@oracle.com>
Cc: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>,
	Simon Marchi <simark@simark.ca>, Nick Clifton <nickc@redhat.com>,
	gdb-patches@sourceware.org, binutils@sourceware.org
Subject: Re: [PATCH] Fix a number of build problems found on Solaris and NetBSD (was Re: Oh dear. I regret to inform you that commit 0e65dfbaf3a0299e4837216a103c28625d4b4f1d might be unfortunate)
Date: Thu, 30 May 2019 07:14:00 -0000	[thread overview]
Message-ID: <60d87039-3084-6d56-3de6-8a29a3d8591f@gmx.com> (raw)
In-Reply-To: <87d0k13pf4.fsf@esperi.org.uk>


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

On 29.05.2019 23:45, Nick Alcock wrote:
> [Do we want to Cc: the gdb buildbot on this? I presume not: dropped from Cc:.]
> 
> On 29 May 2019, Kamil Rytarowski uttered the following:
> 
>> On 29.05.2019 18:33, Nick Alcock wrote:
>>> On 29 May 2019, Rainer Orth stated:
>>>
>>>> Nix <nix@esperi.org.uk> writes:
>>>>> I stripped almost all of these out, but it looks like one single one
>>>>> survived. It is gone now.
>>>>
>>>> Thanks.
>>>
>>> If you'd like to try the entirely unreviewed patch I'm trying out (works
>>> for me on x86_64-pc-linux-gnu, i686-pc-linux-gnu, mingw, Solaris), here
>>> it is:
>>>
>>
>> I wanted to check this patch on NetBSD but it does not apply for me for
>> some reason (I've used the original source of the mail as a patch).
> 
> It is based on commit 9698cf9b1c485edbbeabc9f65bfd0fdef92e3854, for what
> it's worth.
> 
>> Is it safe to use this off64_t define? Won't there be issues with off_t
>> that is 64-bit on NetBSD and 32-bit on some other OSs?
> 
> Unlikely. This definition is only used for platforms that don't have an
> off64_t already, and is only used for the size of ctf_sect_t.offset.
> Platforms on which off_t is 32-bit and without a 64-bit off_t will
> presumably have a 32-bit limit on the size of their binaries, too, so it
> is not a limitation to restrict section offsets to 32-bit.
> 
> (However... we don't *use* the offset field in any case. If we don't
> mind losing things from the ctf_sect_t, we *could* just entirely drop
> that field, and the cts_type and cts_flags as well. None are used since
> the old ELF reading code was dropped.)
> 
> ... yeah, I'll rejig things that way. It's easier. There's no point
> going through portability trouble for a field we're not even *using*.
> 
> ... found an outright bug in the process: we were sometimes failing to
> set the section size when opening associated string and symbol tables.
> Fixed at the same time (it was right next to a line we were removing).
> 
>>                                                        NetBSD uses the
>> libctf stack from FreeBSD/SunOS for DTrace, will that be compatible with
>> this GDB code?
> 
> As previously noted, the formats are incompatible (and will get more so:
> there are a number of huge size reductions that can be made, all of
> which are of course format changes).
> 
> I can, however, add backward-compatibility code to dynamically upgrade
> the old CTF format to the new one at open time, if this seems to be
> useful. (It's not too different from our format v1). I'm just skeptical
> that it *is* useful, since CTF info is mostly found in OS kernels so
> far, and is in a differently-named section.
> 

We build every binary on NetBSD with CTF and it is used by DTrace.
FreeBSD additionally ported mdb from SunOS.

However there is still DWARF available always so it's not a big problem,
at least in the default environment.

> ... new patch (though I'm not sure you'll be able to apply it any more
> than you could apply the last one). Observe lack of dependence on
> off64_t :)
> 
> Still builds on Solaris. :)
> 

After an attempt to apply the patch and manual fixups of rejected chunks
(patch seems to be malformed in the inlined form), gdb builds again on
NetBSD/amd64 8.99.41.


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

  parent reply	other threads:[~2019-05-30  7:14 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-29  0:02 Oh dear. I regret to inform you that commit 0e65dfbaf3a0299e4837216a103c28625d4b4f1d might be unfortunate gdb-buildbot
2019-05-29  0:02 ` Breakage on builder Solaris11-sparcv9-m64, revision 0e65dfbaf3a0299e4837216a103c28625d4b4f1d gdb-buildbot
2019-05-29  1:34 ` Breakage on builder Solaris11-amd64-m64, " gdb-buildbot
2019-05-29  2:16 ` Oh dear. I regret to inform you that commit 0e65dfbaf3a0299e4837216a103c28625d4b4f1d might be unfortunate Simon Marchi
2019-05-29 10:21   ` Rainer Orth
2019-05-29 12:46     ` Nix
2019-05-29 13:14       ` Andreas Schwab
2019-05-29 13:38       ` Rainer Orth
2019-05-29 14:18         ` Nick Alcock
2019-05-29 16:33         ` [PATCH] Fix a number of build problems found on Solaris and NetBSD (was Re: Oh dear. I regret to inform you that commit 0e65dfbaf3a0299e4837216a103c28625d4b4f1d might be unfortunate) Nick Alcock
2019-05-29 18:22           ` Rainer Orth
2019-05-29 20:08             ` Nick Alcock
2019-05-29 20:34           ` Kamil Rytarowski
2019-05-29 21:46             ` Nick Alcock
2019-05-30  0:54               ` Sergio Durigan Junior
2019-05-30  7:14               ` Kamil Rytarowski [this message]
2019-05-30  9:35                 ` Nick Alcock
2019-05-29 16:04     ` Oh dear. I regret to inform you that commit 0e65dfbaf3a0299e4837216a103c28625d4b4f1d might be unfortunate Nick Alcock
2019-05-29  4:26 ` Breakage on builder NetBSD-x86_64-m64, revision 0e65dfbaf3a0299e4837216a103c28625d4b4f1d gdb-buildbot
2019-05-29  5:51   ` Kamil Rytarowski
2019-05-29 12:51     ` Nick Alcock
2019-05-29 23:31 ` Breakage on builder Fedora-x86_64-w64-mingw32, " gdb-buildbot
2019-05-30  0:13   ` Nick Alcock

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=60d87039-3084-6d56-3de6-8a29a3d8591f@gmx.com \
    --to=n54@gmx.com \
    --cc=binutils@sourceware.org \
    --cc=gdb-patches@sourceware.org \
    --cc=nick.alcock@oracle.com \
    --cc=nickc@redhat.com \
    --cc=ro@CeBiTec.Uni-Bielefeld.DE \
    --cc=simark@simark.ca \
    /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