From: Paul Pluzhnikov <ppluzhnikov@google.com>
To: kkcheng <kkhcheng@hotmail.com>
Cc: gdb@sourceware.org
Subject: Re: How does remote debugging work on image with symbol stripped?
Date: Sat, 02 May 2009 15:57:00 -0000 [thread overview]
Message-ID: <8ac60eac0905020857q71d6ff97v7f6c328609afae9e@mail.gmail.com> (raw)
In-Reply-To: <23347162.post@talk.nabble.com>
On Sat, May 2, 2009 at 8:29 AM, kkcheng <kkhcheng@hotmail.com> wrote:
>
> I understand that with GDB, one can remote debug a program with symbol
> stripped, as long as the host machine has an unstripped image.
Correct.
> My question is how does it work
GDB (on host) has access to all the debugging symbols, and communicates
with gdbserver (on target) to read/write memory/registers and to control
the inferior process.
> and if it can be duplicate (easily) on other debugging
> system as well.
Many other debuggers (e.g. TotalView and Microsoft Visual Studio)
implement a similar approach.
> I assume somehow stripping the debugging info does not
> impact the code and data section,
Correct: most object file formats keep debug info separate, precisely
so it can be stripped.
> and wonder if images generated from
> multiple elf files can go thru the same process.
Yes, ELF images linked from multiple ELF object files can be stripped.
Cheers,
--
Paul Pluzhnikov
prev parent reply other threads:[~2009-05-02 15:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-02 15:29 kkcheng
2009-05-02 15:57 ` Paul Pluzhnikov [this message]
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=8ac60eac0905020857q71d6ff97v7f6c328609afae9e@mail.gmail.com \
--to=ppluzhnikov@google.com \
--cc=gdb@sourceware.org \
--cc=kkhcheng@hotmail.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