[PATCH 4/4][libbacktrace] Add tests for unused formats

Ian Lance Taylor via gcc-patches gcc-patches@gcc.gnu.org
Thu Jan 3 23:10:00 GMT 2019


On Thu, Jan 3, 2019 at 3:49 AM Iain Sandoe <idsandoe@googlemail.com> wrote:
>
> > On 2 Jan 2019, at 13:26, Iain Sandoe <idsandoe@googlemail.com> wrote:
> >
> >
> >> On 2 Jan 2019, at 13:20, Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> wrote:
> >>
> >> Gerald Pfeifer <gerald@pfeifer.com> writes:
> >>
> >>>
> <snip>
> >>>
> >>> I believe that in addition to FreeBSD this probably also fails on
> >>> Solaris and Darwin.
> >>
> >> I cannot test Darwin right now,
> >
> > I have builds running on a number of versions, will take a look
> > - is it missing a “macho_xx.c” implementation, anyway ?
>
> (on darwin17 / macOS 10.13)
>
> make check-target-libbacktrace
>
> fails for me at trunk r267505 with:
>
> /src-local/gcc-trunk/libbacktrace/elf.c:144:2: error: #error "Unknown BACKTRACE_ELF_SIZE"
>   144 | #error "Unknown BACKTRACE_ELF_SIZE"
>       |  ^~~~~
>
> So, it looks like there’s some configury-fixing/implementation work needed for Darwin.

Someone needs to write a macho.c that roughly corresponds to the
existing elf.c, pecoff.c, and xcoff.c.

Ian



More information about the Gcc-patches mailing list