[bootlin/training-materials updates] master: common/gdb.tex: fix order of commands (37c62a75)

Michael Opdenacker michael.opdenacker at bootlin.com
Fri Jan 20 18:26:41 CET 2023


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/37c62a750fb03ce3dd1dbec7259c8642d4e92e85

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

commit 37c62a750fb03ce3dd1dbec7259c8642d4e92e85
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Fri Jan 20 18:26:41 2023 +0100

    common/gdb.tex: fix order of commands
    
    More natural to set sysroot before starting debugging
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


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

37c62a750fb03ce3dd1dbec7259c8642d4e92e85
 common/gdb.tex | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/gdb.tex b/common/gdb.tex
index 722c7394..2d4b16c0 100644
--- a/common/gdb.tex
+++ b/common/gdb.tex
@@ -127,11 +127,11 @@
   \item Then, on the host, start \code{ARCH-linux-gdb <executable>},\\
     and use the following \code{gdb} commands:
     \begin{itemize}
-    \item To connect to the target:\\
-      \code{gdb> target remote <ip-addr>:<port>} (networking)\\
-      \code{gdb>  target remote /dev/ttyUSB0} (serial link)
     \item To tell \code{gdb} where shared libraries are:\\
       \code{gdb> set sysroot <library-path>} (without \code{lib/})
+    \item To connect to the target:\\
+      \code{gdb> target remote <ip-addr>:<port>} (networking)\\
+      \code{gdb> target remote /dev/ttyUSB0} (serial link)
     \end{itemize}
   \end{itemize}
 \end{frame}




More information about the training-materials-updates mailing list