Improvements for gdbserver configuration
PATCH v4 1/1 Improvements for gdbserver configuration
[Yocto #13722]
The Yocto bug reports a few improvements in the gdbserver configuration which improves the configuration of gdb more easier for novice users.
Signed-off-by Sundeep KOKKONDA <[email protected]>
--- documentation/dev-manual/common-tasks.rst | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
documentation/dev-manual/common-tasks.rst +5 -6
@@ -10177,10 +10177,9 @@ debugger. 2. *Configure the system to include gdbserver in the target filesystem:* - Make the following addition in either your ``local.conf`` file or in - an image recipe:: + Make the following addition in your ``local.conf`` file:: - IMAGE_INSTALL:append = " gdbserver" + EXTRA_IMAGE_FEATURES:append = " tools-debug" The change makes sure the ``gdbserver`` package is included.
@@ -10227,14 +10226,14 @@ debugger. $ mkdir debugfs $ cd debugfs - $ tar xvfj build-dir/tmp-glibc/deploy/images/machine/image.rootfs.tar.bz2 - $ tar xvfj build-dir/tmp-glibc/deploy/images/machine/image-dbg.rootfs.tar.bz2 + $ tar xvfj build-dir/tmp/deploy/images/machine/image.rootfs.tar.bz2 + $ tar xvfj build-dir/tmp/deploy/images/machine/image-dbg.rootfs.tar.bz2 5. *Set up GDB:* Install the SDK (if you built one) and then source the correct environment file. Sourcing the environment file puts the SDK in your - ``PATH`` environment variable. + ``PATH`` environment variable and sets ``$GDB`` to the SDK's debugger. If you are using the build system, Gdb is located in `build-dir`\ ``/tmp/sysroots/``\ `host`\ ``/usr/bin/``\ `architecture`\ ``/``\ `architecture`\ ``-gdb``
Signature · 1 line
2.25.1
Hi Sundeep,
Quoted 33 lines · Sundeep KOKKONDA
[Yocto #13722]
The Yocto bug reports a few improvements in the gdbserver configuration which improves the configuration of gdb more easier for novice users.Signed-off-by Sundeep KOKKONDA <[email protected]>--- documentation/dev-manual/common-tasks.rst | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)documentation/dev-manual/common-tasks.rst +4
-5@@ -10177,10 +10177,9 @@ debugger. 2. *Configure the system to include gdbserver in the target filesystem:* - Make the following addition in either your ``local.conf`` file or in - an image recipe:: + Make the following addition in your ``local.conf`` file:: - IMAGE_INSTALL:append = " gdbserver" + EXTRA_IMAGE_FEATURES:append = " tools-debug" The change makes sure the ``gdbserver`` package is included.@@ -10227,14 +10226,14 @@ debugger. $ mkdir debugfs $ cd debugfs - $ tar xvfj build-dir/tmp-glibc/deploy/images/machine/image.rootfs.tar.bz2 - $ tar xvfj build-dir/tmp-glibc/deploy/images/machine/image-dbg.rootfs.tar.bz2 + $ tar xvfj build-dir/tmp/deploy/images/machine/image.rootfs.tar.bz2 + $ tar xvfj build-dir/tmp/deploy/images/machine/image-dbg.rootfs.tar.bz2
documentation/dev-manual/common-tasks.rst debugger. · line 10239
Quoted 10 lines
documentation/dev-manual/common-tasks.rst +1
-15. *Set up GDB:* Install the SDK (if you built one) and then source the correct environment file. Sourcing the environment file puts the SDK in your - ``PATH`` environment variable. + ``PATH`` environment variable and sets ``$GDB`` to the SDK's debugger. If you are using the build system, Gdb is located in `build-dir`\ ``/tmp/sysroots/``\ `host`\ ``/usr/bin/``\ `architecture`\ ``/``\ `architecture`\ ``-gdb``
Everything looks good now.
Reviewed-by Michael Opdenacker <[email protected]>
... and merged into "master-next". This should be in "master" in a few days.
Many thanks for your patience!
Cheers
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com