[FE training-materials-updates] labs/buildroot-appdev: don't use Linaro 2017.02 gdbserver

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Oct 17 13:41:13 CEST 2017


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

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

commit 9d004ef061e0b073f8bea82a04649d61cbe0811d
Author: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Date:   Tue Oct 17 13:41:13 2017 +0200

    labs/buildroot-appdev: don't use Linaro 2017.02 gdbserver
    
    Unfortunately, the gdbserver provided in the Linaro 2017.02 is
    broken. Use a gdbserver built by Buildroot instead.
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>


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

9d004ef061e0b073f8bea82a04649d61cbe0811d
 labs/buildroot-appdev/buildroot-appdev.tex | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/labs/buildroot-appdev/buildroot-appdev.tex b/labs/buildroot-appdev/buildroot-appdev.tex
index fef0b94..27cb494 100644
--- a/labs/buildroot-appdev/buildroot-appdev.tex
+++ b/labs/buildroot-appdev/buildroot-appdev.tex
@@ -104,19 +104,19 @@ again.
 Our application is simple and works, but what if you need to debug it?
 So let's set up remote debugging.
 
-In Buildroot \code{menuconfig}, enable
-\code{Copy gdb server to the Target} in the \code{Toolchain}
-menu. Since we don't want to rebuild everything, we will force only
-the reinstallation of the \code{toolchain-external} package. So just
-do:
-
-\begin{verbatim}
-make toolchain-external-reinstall all
-\end{verbatim}
-
-You can reflash your system, or alternatively, just copy
-\code{output/target/usr/bin/gdbserver} to the target \code{/usr/bin/}
-directory using \code{scp}.
+Since we're using a {\em Linaro} toolchain, the easiest would be to
+use the \code{gdbserver} integrated with it. Unfortunately, in {\em
+  Linaro 2017.02}, the pre-built \code{gdbserver} is
+broken\footnote{We have reported a bug to Linaro about this,
+  \url{https://bugs.linaro.org/show_bug.cgi?id=3344}}. We will instead
+ask Buildroot to build its own \code{gdbserver}. In
+\code{Target packages}, \code{Debugging, profiling and benchmark},
+enable \code{gdb}, and keep only the \code{gdbserver} sub-option
+enabled.
+
+Rebuild with \code{make}, and reflash your system, or alternatively,
+just copy \code{output/target/usr/bin/gdbserver} to the target
+\code{/usr/bin/} directory using \code{scp}.
 
 To do some appropriate debugging, we need to have debugging symbols
 available. So we need to do two things:




More information about the training-materials-updates mailing list