[FE training-materials-updates] strace and ltrace updates

Michael Opdenacker michael.opdenacker at free-electrons.com
Thu Jan 28 22:50:54 CET 2016


Repository : git://git.free-electrons.com/training-materials.git
On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=6a6adc0367c5dcdfb1f2b77cc1b5b9f8151371e9

>---------------------------------------------------------------

commit 6a6adc0367c5dcdfb1f2b77cc1b5b9f8151371e9
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date:   Thu Jan 28 22:50:54 2016 +0100

    strace and ltrace updates
    
    Compile them from Crosstool-ng
    (I saw a user have an ltrace build failure in Buildroot with
    our current toolchain, let's take a solution that works, just
    tested)
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at free-electrons.com>


>---------------------------------------------------------------

6a6adc0367c5dcdfb1f2b77cc1b5b9f8151371e9
 .../sysdev-application-debugging.tex                    | 17 ++++++++---------
 labs/sysdev-toolchain/sysdev-toolchain.tex              |  6 +++---
 2 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/labs/sysdev-application-debugging/sysdev-application-debugging.tex b/labs/sysdev-application-debugging/sysdev-application-debugging.tex
index 4119fda..d79f4c9 100644
--- a/labs/sysdev-application-debugging/sysdev-application-debugging.tex
+++ b/labs/sysdev-application-debugging/sysdev-application-debugging.tex
@@ -13,15 +13,14 @@ Boot your ARM board over NFS on the filesystem produced in the {\em
 
 \section{Setting up gdbserver, strace and ltrace}
 
-\code{gdbserver} has already been compiled for your target
-architecture as part of the cross-compiling toolchain. It has been
-copied in your target filesystem thanks to the
-\code{Copy gdb server to the Target} option.
-
-Buildroot can also help you compile debugging tools. Select the
-\code{strace} and \code{ltrace} packages.
-
-Now, you can compile and install everything in your root filesystem.
+\code{gdbserver}, \code{strace} and \code{ltrace} have already been
+compiled for your target architecture as part of the cross-compiling
+toolchain. \code{gdbserver} has already been copied in your target
+filesystem thanks to the \code{Copy gdb server to the Target} Buildroot option.
+
+So you just need to find the \code{strace} and \code{ltrace} in
+your toolchain installation directory and copy them into your
+root filesystem (typically in \code{/usr/bin}).
 
 \section{Using strace}
 
diff --git a/labs/sysdev-toolchain/sysdev-toolchain.tex b/labs/sysdev-toolchain/sysdev-toolchain.tex
index 440c3f4..64b9654 100644
--- a/labs/sysdev-toolchain/sysdev-toolchain.tex
+++ b/labs/sysdev-toolchain/sysdev-toolchain.tex
@@ -109,9 +109,9 @@ In \code{C-library}:
 
 In \code{Debug facilities}:
 \begin{itemize}
-\item Make sure that \code{gdb} is enabled.
-\item Remove the other options (\code{dmalloc}, \code{duma},
-      \code{strace} and \code{ltrace}).
+\item Make sure that \code{gdb}, \code{strace} and \code{ltrace})
+      are enabled.
+\item Remove the remaining options (\code{dmalloc} and \code{duma}).
 \item In \code{gdb} options, make sure that the \code{Cross-gdb} and
       \code{Build a static gdbserver} options are enabled; the other
       options are not needed.




More information about the training-materials-updates mailing list