Documentation: Fix command to load `nuttx/tools/gdb/__init__.py`

According to `Documentation/guides/gdbwithpython.rst` and GDB's
documentation, the `-ix` option "Execute commands from file `file`
before loading the inferior (but after loading gdbinit files)",
being the correct way of loading it to GDB.
This commit is contained in:
Tiago Medicci Serrano 2023-08-20 10:56:24 -03:00 committed by Xiang Xiao
parent 5b35c4e5b0
commit 6055b64802
1 changed files with 2 additions and 2 deletions

View File

@ -249,7 +249,7 @@ easy way to do this is to add an extra command:
.. code-block:: console .. code-block:: console
$ gdb nuttx -ex "nuttx/tools/gdb/__init__.py" $ gdb nuttx -ix=tools/gdb/__init__.py
gdb can need to set the current elf support architecture, for example, gdb can need to set the current elf support architecture, for example,
the prefix is arm-ebai-none-. the prefix is arm-ebai-none-.