This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/23558] Regression: REPLACE_GETCWD gets set to 1 when cross-compiling


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

--- Comment #26 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Sergio Durigan Junior
<sergiodj@sourceware.org>:

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

commit e2fc52e745757a11f7a4a256984cabbe5474f55a
Author: Sergio Durigan Junior <sergiodj@redhat.com>
Date:   Mon Sep 10 12:52:04 2018 -0400

    Fix PR gdb/23558: Use system's 'getcwd' when cross-compiling GDB

    This is a backport of a gnulib fix for the following bug:

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

    The problem reported there is about the replacement of 'getcwd' when
    cross-compiling GDB.  With our current gnulib copy, the mechanism for
    deciding whether to use the system's 'getcwd' or gnulib's version is
    too simplistic and pessimistic, so when cross-compiling we always end
    up using gnulib's version, which has a limitation: it cannot handle
    the situation when the parent directory doesn't have read permissions.

    The solution is to backport the following gnulib commit:

      commit a96d2e67052c879b1bcc5bc461722beac75fc372
      Author: Bruno Haible <bruno@clisp.org>
      Date:   Thu Aug 23 21:13:19 2018 +0200

          getcwd: Add cross-compilation guesses.

    gdb/ChangeLog:
    2018-09-10  Sergio Durigan Junior  <sergiodj@redhat.com>

        PR gdb/23555
        PR gdb/23558
        * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
        guesses.

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]