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

@ -245,11 +245,11 @@ not applicable. For this to work, you will need to enable PROC filesystem suppor
which will expose required task information (``CONFIG_FS_PROCFS=y``). which will expose required task information (``CONFIG_FS_PROCFS=y``).
To use this approach, you can load the ``nuttx/tools/gdb/__init__.py`` file. An To use this approach, you can load the ``nuttx/tools/gdb/__init__.py`` file. An
easy way to do this is to add an extra command: 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-.