[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ltib] On-target debugging
From: |
Stuart Hughes |
Subject: |
Re: [Ltib] On-target debugging |
Date: |
Thu, 08 Oct 2009 16:09:33 +0100 |
User-agent: |
Thunderbird 2.0.0.16 (X11/20080707) |
Hi Vadim,
I've not tried on the i.mx27, but the method for building is the same.
$ ./ltib -m config
find the entry for gdb (hint use the 's' search). Enable it, it should
set as below (--- means selected by something else).
[*] gdb
[ ] gdb to run natively on the target
[*] cross gdb (runs on build machine)
[ ] XML support
--- gdbserver to run natively on the target
$ ./ltib
When it's finished you'll have gdbserver on the target. You can start
this with: gdbserver :1235 /some/thing/to/debug
On the build machine the cross-gdb is in the bin directory. You can run
this on it's own or wrap with a GUI gdb (such as ddd --debugger bin/gdb
<unstripped_target>
Once the client gdb is running you run:
gdb> b main
gdb> target remote _IPADDR_:1234
gdb> cont
Regards, Stuart
Vadim Lebedev wrote:
Hello,
Folks can somebdoy share his experience with debugging on the target (in
my case it's a Freescale i.mx27)
How do you build the gdbserver for the target?
and how do you build a gdb running on host and connecting to the target?
Thanks
Vadim
_______________________________________________
LTIB home page: http://ltib.org
Ltib mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/ltib