On Fri, Nov 11, 2016 at 7:17 AM, Samuel Thibault <samuel.thiba...@gnu.org>
wrote:

> Hello,
>
> Debian is pushing more and more PIE builds, so that address
> randomization can be done. However, on GNU/Hurd, gdb can't work with
> core files from processes running PIE programs, so one has to pass
> CFLAGS=-no-pie etc. to be able to debug programs, it'll become more and
> more problematic.
>

I've found that I can't even debug PIE executables with gdb, let alone core
files.

I encountered this problem when trying to debug gdb on itself.  Downloading
the gdb source tree and building it with "dpkg-buildpackage -b" produced a
PIE executable that I couldn't set breakpoints on properly.  The Debian
/usr/bin/gdb, though, is not PIE, which makes me wonder if someone
(Samuel?) is compiling our Debian packages without PIE, to avoid this
problem.

    agape
    brent

Reply via email to