From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Leon Pollak <leonp@plris.com>
Cc: gdb@sourceware.org
Subject: Re: Restarting gdbserver
Date: Thu, 20 Jan 2011 17:29:00 -0000 [thread overview]
Message-ID: <20110120172917.GA1605@host1.dyn.jankratochvil.net> (raw)
In-Reply-To: <201101201700.08641.leonp@plris.com>
On Thu, 20 Jan 2011 16:00:07 +0100, Leon Pollak wrote:
> I read the docs about `set debug-file-directory' - it says that this is
> applicable in the case of the SEPARATE debug info, but I suppose that in my
> case it is inside the ELF module, no?
According to your environment description I agree you do not need
`set debug-file-directory'.
> I have the target's root FS on my PC in /opt/FS directory mounted via NFS.
> The development is done in another separate place - /Projects/CSU/...
> The compiled&linked executable module is hard-linked to the file in the
> /opt/FS/common/csu and I start the gdb saying:
> set sysroot /opt/FS/
> set remote exec-file /common/csu
>
> Is this insufficient?
> I can put break points and step through the code. The problem seems to be just
> with frame/backtrace only.
`set remote exec-file' only instructs remote gdbserver in --multi mode.
It does not provide symbols to local GDB in any way.
Tested two cases, run on machine A, with remote host host1s which is also
mounted at /host1:
./gdb -nx -ex 'set sysroot /host1' -ex 'set debug-file-directory /host1/usr/lib/debug' -ex 'file /host1/home/jkratoch/t/1' -ex 'target remote host1s:1234' -ex 'b main' -ex c
./gdbserver :1234 /home/jkratoch/t/1
or:
./gdb -nx -ex 'file /host1/home/jkratoch/t/1' -ex 'target extended-remote host1s:1234' -ex 'set sysroot /host1' -ex 'set remote exec-file /home/jkratoch/t/1' -ex start
./gdbserver --multi :1234
The `file' command provides the symbols for local GDB.
Regards,
Jan
next prev parent reply other threads:[~2011-01-20 17:29 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-20 9:25 Leon Pollak
2011-01-20 9:36 ` Jan Kratochvil
2011-01-20 14:07 ` Leon Pollak
2011-01-20 14:11 ` Jan Kratochvil
2011-01-20 14:55 ` Leon Pollak
2011-01-20 17:29 ` Jan Kratochvil [this message]
2011-01-21 22:48 ` Leon Pollak
2011-01-23 13:28 ` Jan Kratochvil
2011-01-23 16:39 ` Leon Pollak
2011-01-23 16:48 ` Jan Kratochvil
2011-01-23 18:01 ` Leon Pollak
2011-01-23 18:20 ` Jan Kratochvil
2011-01-23 18:25 ` Andreas Schwab
2011-01-20 14:10 Leon Pollak
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=20110120172917.GA1605@host1.dyn.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=gdb@sourceware.org \
--cc=leonp@plris.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox