All of lore.kernel.org
 help / color / mirror / Atom feed
* Debug with gdbserver
@ 2012-08-01  2:46 Darren Hart
  2012-08-01  3:13 ` Khem Raj
  0 siblings, 1 reply; 10+ messages in thread
From: Darren Hart @ 2012-08-01  2:46 UTC (permalink / raw)
  To: Zhang, Jessica, Yocto Project

I am trying to debug a userpsace application that misbehaves under
poky-tiny. My current approach is use gdbserver on the target and attach
to the offending process, then connect to it on the client using the
yocto-built native gdb for the target.

I can easily add gdbserver to the target image, and can successfully
connect it to the process:

# From the target (qemux86) root shell:
# dropbearkey -t rsa -f ./rsa
# dropbear -r ./rsa
# DBPID=$(ps | grep dropbear | head -n1 | cut -f4 -d ' ')
# gdbserver 127.0.0.1:1234 --attach $DBPID

Now on the host machine (amd64) I want to:
$ gdb????
(gdb) target extended-remote 127.0.0.1:1234

Which package do I need to build to get the appropriate gdb for the host
to remote debug processes on the target?

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Technical Lead - Linux Kernel


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-08-01 22:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-01  2:46 Debug with gdbserver Darren Hart
2012-08-01  3:13 ` Khem Raj
2012-08-01  3:47   ` Darren Hart
2012-08-01  4:55     ` Khem Raj
2012-08-01  6:15     ` Martin Jansa
2012-08-01 16:22       ` Darren Hart
2012-08-01 17:09         ` Khem Raj
2012-08-01 17:16           ` Darren Hart
2012-08-01 22:34             ` Khem Raj
2012-08-01 22:35               ` Darren Hart

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.