Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Burgess <andrew.burgess@embecosm.com>
To: Nick Alcock <nick.alcock@oracle.com>
Cc: Stephen Casner <casner@acm.org>,
	gdb-patches <gdb-patches@sourceware.org>
Subject: Re: new gdb build failures on MacOS X (... fallout from libintl fixups, see users/nalcock/included-gettext)
Date: Tue, 9 Feb 2021 21:49:41 +0000	[thread overview]
Message-ID: <20210209214941.GJ265215@embecosm.com> (raw)
In-Reply-To: <87k0rna7w4.fsf_-_@esperi.org.uk>

* Nick Alcock <nick.alcock@oracle.com> [2021-02-04 20:35:23 +0000]:

> [gcc-patches Cc:ed for the elfcore failure, not so much for the iconv
>  stuff yet, since I'm revamping a lot of that stuff in bfd/opcodes/etc
>  and that should probably get looked at before the gdb side, I guess.
>  See the git branch referenced below.]
> 
> On 4 Feb 2021, Stephen Casner told this:
> 
> > On Thu, 4 Feb 2021, Nick Alcock wrote:
> >
> >> I've updated the users/nalcock/included-gettext branch on
> >> binutils-gdb.git with a new approach which is rather less gross than the
> >> horrible stuff I was doing before.
> >>
> >> It still seems to work for me: could you check to see if it still works
> >> for you?
> >
> > This version introduces two new undefined symbols in the gdb link:
> 
> Oh dammit.
> 
> > Undefined symbols for architecture x86_64:
> >   "_elfcore_write_prstatus", referenced from:
> >       gcore_collect_regset_section_cb(char const*, int, int, regset const*, char const*, void*) in gcore.o
> >   "_elfcore_write_register_note", referenced from:
> >       gcore_collect_regset_section_cb(char const*, int, int, regset const*, char const*, void*) in gcore.o
> 
> I think this may not be my fault but rather is unrelated fallout from
> commit 82a1fd3a4935fe665cf08bc6820942c4a091184c, which just landed.
> As of this commit, elfcore_write_register_note et al are unconditionally
> cited from gdb/gcore.c, but obviously these are only going to exist for
> ELF platforms, which MacOS X is not.

Sorry for causing this breakage.

I've now reverted commit 82a1fd3a4935 while I think of a better way to
make this change.

One thing that would be helpful is, do you know if there's a non-elf
targeting triple that I could configure GDB for that would allow me to
make sure I don't break this again?

Thanks,
Andrew

  parent reply	other threads:[~2021-02-09 21:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <874kird819.fsf@esperi.org.uk>
     [not found] ` <alpine.OSX.2.21.9999.2102041135350.86462@auge.attlocal.net>
2021-02-04 20:35   ` Nick Alcock via Gdb-patches
2021-02-04 20:43     ` Stephen Casner
2021-02-04 22:31       ` Nick Alcock via Gdb-patches
2021-02-04 21:40     ` Stephen Casner
2021-02-09 21:49     ` Andrew Burgess [this message]
2021-02-10 16:12       ` Christian Biesinger via Gdb-patches

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=20210209214941.GJ265215@embecosm.com \
    --to=andrew.burgess@embecosm.com \
    --cc=casner@acm.org \
    --cc=gdb-patches@sourceware.org \
    --cc=nick.alcock@oracle.com \
    /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