GUF-Yocto-jethro-9.0-r7707-0
i.MX6
User Manual
sudo apt-get install kdbg
The cross debugger to be used by KDbg is set up by starting
KDbg
on the development host once without
connecting to the target:
$ kdbg
Figure 18: KDbg global options
The GDB command to invoke can be set up under the dialog opened with
Settings->Global Options...
as shown
in
[
I
Figure 18]
.
Figure 19: KDbg global options dialog
Set up
How to invoke GDB
in the dialog as shown in
[
I
Figure 19]
as follows:
$ arm-guf-linux-gnueabi-gdb -iex "set sysroot /opt/guf/
,!
GUF-Yocto-jethro-9.0-r7707-0-sdk/sysroots/imx6guf-guf-linux-gnueabi set auto-
,!
load safe-path /opt/guf/GUF-Yocto-jethro-9.0-r7707-0-sdk/sysroots/imx6guf-guf-
,!
linux-gnueabi" `find /opt/guf/GUF-Yocto-jethro-9.0-r7707-0-sdk/sysroots/
,!
imx6guf-guf-linux-gnueabi/usr/src/debug/ -type d -printf '-d %p '` -d $PWD --
,!
fullname --nx
KDbg
does not have the possibility to enter gdb commands. So the sysroot setup is done through GDB’s
-iex
command line parameter instead.
71