HomeFreeBSD

MFH: r416247 r416392

Description

MFH: r416247 r416392

Make GDB build when basename() is POSIX compliant.

GDB's libiberty.h has a prototype of the basename() function it which
does not match the one that is part of POSIX, declared in libgen.h. This
is normally never visible, as GDB never includes libgen.h. On FreeBSD,
it unfortunately is, as our locally added copy of kgdb includes both.

Fix up libiberty.h to just include libgen.h. I'm currently discussing
with upstream how a clean fix should be done, but I guess that
requires more refactoring to the existing code. We'd better not bother
importing that and stick to this compact workaround.

Reviewed by: bapt@, mi@, Luca Pizzamiglio
Differential Revision: https://reviews.freebsd.org/D6630

Update to upstream release 7.11.1

Includes several runtime fixes, e.g. crashes on reverse-stepi
and use-after-free errors, see https://www.gnu.org/software/gdb/news/

PR: 209935
Submitted by: luca.pizzamiglio@gmail.com (maintainer)

Approved by: ports-secteam (junovitch)

Details

Provenance
riggsAuthored on
Parents
rP416423: Update to 2.8.5-19.el6_7.
Branches
Unknown
Tags
Unknown