From: Robert Berger <gmane@reliableembeddedsystems.com>
To: yocto@yoctoproject.org
Cc: Robert Berger
<public-gmane-G/ASJRsgvFgvW+L+VdN226ESeJV5RFUqQQ4Iyu8u01E@plane.gmane.org>,
Robert Berger
<public-public-gmane-G/ASJRsgvFgvW+L+VdN226ESeJV5RFUqQQ4Iyu8u01E-wOFGN7rlS/M9smdsby/KFg@plane.gmane.org>
Subject: Re: gdb/gdbserver vs. eclipse
Date: Sat, 05 Sep 2015 21:10:54 +0300 [thread overview]
Message-ID: <55EB302E.8050209@reliableembeddedsystems.com> (raw)
In-Reply-To: <1588577.KDHg4vLlIx@rjs-mbpro.streifs.net>
Hi,
On 09/05/2015 07:17 PM, Rudolf J Streif wrote:>>
> I do not have to do that. As a matter of fact the executable on my
target is
> copied to /usr/bin from the Eclipse workspace. See "Remote Absolute
File Path"
> in the Debug Configuration.
You are right. I erased the other folder on my target, moved it there as
well and it still works.
>
>
>> 2) .gdbinit
>>
>> I copied my gdbinit on the host to
>>
>> /home/student/BBBworkspace/HelloBBBAutotooled/.gdbinit
>>
>
> Yes, that's where Eclipse's Debug Configuration expects it if you do
not change
> the setting of "GDB Command File" in the Main subtab of the Debugger
tab in
> the Debug configuration.
...
>
>
> Yes, looks like mine except that my target is a MinnowBoard Max and I
> installed my SDK in a different location.
Hmmm
>
>
>> 3) Once you enter the debug view you need to go to the gdb console and:
>>
>> source /home/student/BBBworkspace/HelloBBBAutotooled/.gdbinit
>>
>
> Strange. I don't have to do that if GDB command file is set to the
path in the
> workspace.
Seems to work as well without sourcing ;)
> I would expect that Eclipse passes the .gdbinit from the workspace
> explicitly to GDB. However, I do have
>
> add-auto-load-safe-path .
>
> in my global .gdbinit (~/.gdbinit).
.gdbinit loads automatically for me now, I don't need to source and also
no add-auto-load-safe-path
Which Yocto version do you use? I use 1.8
>
> Cheers,
> Rudi
>
So let's try to summarize what seems to be necessary:
1) right .gdbinit on the right place ;)
2) Debug Configurations -> Debugger -> Main -> Use full file path to set
breakpoints (might not even be necessary)
3) Debug Configurations -> Debugger -> Shared Libraries -> Load shared
library symbols automatically
Regards,
Robert
..."A successful tool is one that was used to do something undreamed of
by its author." - S. C. Johnson
My public pgp key is available,at:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1
next prev parent reply other threads:[~2015-09-05 18:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-04 21:39 gdb/gdbserver vs. eclipse Robert Berger
2015-09-04 23:47 ` Rudolf J Streif
2015-09-05 15:26 ` Robert Berger
2015-09-05 16:17 ` Rudolf J Streif
2015-09-05 18:10 ` Robert Berger [this message]
2015-09-05 18:17 ` Rudolf J Streif
2015-09-05 18:12 ` Rudolf J Streif
2015-09-06 17:05 ` Robert Berger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55EB302E.8050209@reliableembeddedsystems.com \
--to=gmane@reliableembeddedsystems.com \
--cc=public-gmane-G/ASJRsgvFgvW+L+VdN226ESeJV5RFUqQQ4Iyu8u01E@plane.gmane.org \
--cc=public-public-gmane-G/ASJRsgvFgvW+L+VdN226ESeJV5RFUqQQ4Iyu8u01E-wOFGN7rlS/M9smdsby/KFg@plane.gmane.org \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.