hartmannathan commented on code in PR #16601:
URL: https://github.com/apache/nuttx/pull/16601#discussion_r2257431770


##########
Documentation/quickstart/debugging.rst:
##########
@@ -66,13 +66,13 @@ This will start a ``gdb`` server. Then, start ``gdb`` with:
 .. code-block:: console
 
   $ cd nuttx/
-  $ gdb-multiarch nuttx/nuttx
+  $ gdb-multiarch ./nuttx
 
 Inside ``gdb`` console, connect to the ``gdb`` server with:
 
 .. code-block::
 
-  (gdb) target extended-remote :3333
+  (gdb) tar remote :3333

Review Comment:
   Hi, agreed the un-abbreviated form is preferred in documentation, but I have 
another question:
   
   According to the [openocd 
docs](https://openocd.org/doc/html/GDB-and-OpenOCD.html), they show `target 
extended-remote` and they say that "If any backward compatibility issue 
requires using the old remote protocol in place of the extended remote one, the 
former protocol is still available through" `target remote`.
   
   According to the [GDB 
manual](https://sourceware.org/gdb/current/onlinedocs/gdb), section 20.1 
compares `target remote` to `target extended-remote` and it looks like `target 
extended-remote` is newer/preferred if it works.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to