https://sourceware.org/bugzilla/show_bug.cgi?id=32542

--- Comment #11 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The gdb-17-branch branch has been updated by Tom Tromey
<[email protected]>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=42fd2187f49a1ed768f786740bf2d5f221513753

commit 42fd2187f49a1ed768f786740bf2d5f221513753
Author: Tom Tromey <[email protected]>
Date:   Thu Sep 4 14:12:52 2025 -0600

    Change return value of _bfd_mmap_temporary

    _bfd_mmap_temporary will return MAP_FAILED in some cases, but only one
    caller was prepared for this.  This caused a couple of issues in gdb.

    This patch chnages _bfd_mmap_temporary to always return NULL on
    failure.  It also changes the logic to fall back to bfd_malloc if mmap
    fails.

    I took the opportunity to change some "(void *) -1" to MAP_FAILED
    where appropriate.

    Tested by "make check" in binutils, and also by applying a hack from
    bug 33354 to gdb and testing something approximating the original
    report.

    Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32542
    Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33354

    (cherry picked from commit 8b50cc76f19d129b3887dbcb58f8286a7b36099f)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to