diff options
author | Sundeep KOKKONDA <sundeep.kokkonda@gmail.com> | 2022-05-04 23:04:21 +0530 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-05-10 12:52:34 +0100 |
commit | f09f1de84ce060a83bd200c21796986aafa6538e (patch) | |
tree | f38530ce63706ded20b3ce880012deaf4e8f7f7a /documentation | |
parent | e2a51738066561dfa3a4486f6ab47cdfa9f0d0dc (diff) | |
download | poky-f09f1de84ce060a83bd200c21796986aafa6538e.tar.gz |
dev-manual: improvements for gdbserver configuration
[Yocto #13722]
The Yocto bug reports a few improvements in the gdbserver configuration
which makes the configuration of gdb easier for novice users.
(From yocto-docs rev: 48c96378fd5edd587025f3ca138bc5114e927f2f)
Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@gmail.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/dev-manual/common-tasks.rst | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/documentation/dev-manual/common-tasks.rst b/documentation/dev-manual/common-tasks.rst index b228c75aab..c9fc585a05 100644 --- a/documentation/dev-manual/common-tasks.rst +++ b/documentation/dev-manual/common-tasks.rst | |||
@@ -10177,10 +10177,9 @@ debugger. | |||
10177 | 10177 | ||
10178 | 2. *Configure the system to include gdbserver in the target filesystem:* | 10178 | 2. *Configure the system to include gdbserver in the target filesystem:* |
10179 | 10179 | ||
10180 | Make the following addition in either your ``local.conf`` file or in | 10180 | Make the following addition in your ``local.conf`` file:: |
10181 | an image recipe:: | ||
10182 | 10181 | ||
10183 | IMAGE_INSTALL:append = " gdbserver" | 10182 | EXTRA_IMAGE_FEATURES:append = " tools-debug" |
10184 | 10183 | ||
10185 | The change makes | 10184 | The change makes |
10186 | sure the ``gdbserver`` package is included. | 10185 | sure the ``gdbserver`` package is included. |
@@ -10227,14 +10226,14 @@ debugger. | |||
10227 | 10226 | ||
10228 | $ mkdir debugfs | 10227 | $ mkdir debugfs |
10229 | $ cd debugfs | 10228 | $ cd debugfs |
10230 | $ tar xvfj build-dir/tmp-glibc/deploy/images/machine/image.rootfs.tar.bz2 | 10229 | $ tar xvfj build-dir/tmp/deploy/images/machine/image.rootfs.tar.bz2 |
10231 | $ tar xvfj build-dir/tmp-glibc/deploy/images/machine/image-dbg.rootfs.tar.bz2 | 10230 | $ tar xvfj build-dir/tmp/deploy/images/machine/image-dbg.rootfs.tar.bz2 |
10232 | 10231 | ||
10233 | 5. *Set up GDB:* | 10232 | 5. *Set up GDB:* |
10234 | 10233 | ||
10235 | Install the SDK (if you built one) and then source the correct | 10234 | Install the SDK (if you built one) and then source the correct |
10236 | environment file. Sourcing the environment file puts the SDK in your | 10235 | environment file. Sourcing the environment file puts the SDK in your |
10237 | ``PATH`` environment variable. | 10236 | ``PATH`` environment variable and sets ``$GDB`` to the SDK's debugger. |
10238 | 10237 | ||
10239 | If you are using the build system, Gdb is located in | 10238 | If you are using the build system, Gdb is located in |
10240 | `build-dir`\ ``/tmp/sysroots/``\ `host`\ ``/usr/bin/``\ `architecture`\ ``/``\ `architecture`\ ``-gdb`` | 10239 | `build-dir`\ ``/tmp/sysroots/``\ `host`\ ``/usr/bin/``\ `architecture`\ ``/``\ `architecture`\ ``-gdb`` |