[bootlin/training-materials updates] master: common: gdb: use simpler syntax for listening port (8a2f786d)

Luca Ceresoli luca.ceresoli at bootlin.com
Wed Nov 15 18:51:36 CET 2023


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

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

commit 8a2f786d266430ab9ab4b199278968d3c9c4c455
Author: Luca Ceresoli <luca.ceresoli at bootlin.com>
Date:   Wed Nov 15 18:42:26 2023 +0100

    common: gdb: use simpler syntax for listening port
    
    The 'localhost' is not adding much here. Also in the debugging labs we use
    the ':<port>' syntax so let's be consistent.
    
    Signed-off-by: Luca Ceresoli <luca.ceresoli at bootlin.com>


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

8a2f786d266430ab9ab4b199278968d3c9c4c455
 common/gdb.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/gdb.tex b/common/gdb.tex
index cf7c27af..ba88dc60 100644
--- a/common/gdb.tex
+++ b/common/gdb.tex
@@ -179,10 +179,10 @@
   \begin{itemize}
   \item On the target, run a program through \code{gdbserver}.\\
     Program execution will not start immediately.\\
-    \code{gdbserver localhost:<port> <executable> <args>}
+    \code{gdbserver :<port> <executable> <args>}
     \code{gdbserver /dev/ttyS0 <executable> <args>}
   \item Otherwise, attach \code{gdbserver} to an already running program:\\
-    \code{gdbserver --attach localhost:<port> <pid>}
+    \code{gdbserver --attach :<port> <pid>}
   \item Then, on the host, start \code{ARCH-linux-gdb <executable>},\\
     and use the following \code{gdb} commands:
     \begin{itemize}




More information about the training-materials-updates mailing list