summaryrefslogtreecommitdiffstats
path: root/user/testing/gdb-jtag.rst
blob: 83e950e27dbcefa37243485d4890a6306263a76c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.. SPDX-License-Identifier: CC-BY-SA-4.0

.. Copyright (C) 2018 Chris Johns <chrisj@rtems.org>

GDB and JTAG
------------
.. index:: GDB, JTAG, Testing

GDB with JTAG provides a low level way to runs tests on hardware with limited
resources. The RTEMS Tester runs and controls an instance of GDB per test and
GDB connects via the GDB remote protocol to a GDB server that interfaces to the
JTAG port of a target.

.. _fig-tester-gdb-jtag:

.. figure:: ../../images/user/test-gdb-jtag.png
   :width: 35%
   :alt: RTEMS Tester using GDB and  JTAG
   :figclass: align-center

   RTEMS Tester using GDB and JTAG

The Figure :ref:`fig-tester-gdb-jtag` shows the structure of RTEMS Testing
using GDB and JTAG. The executables are built and the ``rtems-test`` command is
run from the top of the build directory. The RTEMS Tester executes the BSP
architecture's GDB and expects the user to provide a ``gdb-script`` to connect
t the JTAG GDB server.