[Christoph Biedl
> Tried to handle this bug but it seems this fix doesn't help - and
> honestly I fail to see how adding a definition in
> sysdeps/linux-gnu/arm/plt.c should help against the problem.
I tested the patch, and can confirm that it did not change anything
on armhf (abel.debian.org). I suspect the correct fix for Debian is
to add a configure test to detect when PTRACE_SINGLESTEP is not
supported, and ask ftpmasters to remove the binary packages from all
arm architectures. The alternative is to rewrite ltrace to use a
different kernel mechanism for tracing, and that is more than one
can ask of the Debian package maintainer. :)
I found this in NEWS in the source tarball:
*** [arm] Tracing is not supported at all on ARM
ltrace might work on older kernels, but no attempt was made to
fully support it. Newer kernels don't support PTRACE_SINGLESTEP,
which ltrace depends on. Before singlestepping is implemented in
software, ARM is considered unsupported.
It seem prettly clear to me that until arm handle PTRACE_SINGLESTEP,
ltrace will not work on arm.
Note, the readdir_r() patch is already part of the ltrace package, applied
using debian/patches/deprecated-readdir_r.diff.
--
Happy hacking
Petter Reinholdtsen