* How does remote debugging work on image with symbol stripped?
@ 2009-05-02 15:29 kkcheng
2009-05-02 15:57 ` Paul Pluzhnikov
0 siblings, 1 reply; 2+ messages in thread
From: kkcheng @ 2009-05-02 15:29 UTC (permalink / raw)
To: gdb
I understand that with GDB, one can remote debug a program with symbol
stripped, as long as the host machine has an unstripped image. My question
is how does it work and if it can be duplicate (easily) on other debugging
system as well. I assume somehow stripping the debugging info does not
impact the code and data section, and wonder if images generated from
multiple elf files can go thru the same process.
Thanks,
KK
--
View this message in context: http://www.nabble.com/How-does-remote-debugging-work-on-image-with-symbol-stripped--tp23347162p23347162.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How does remote debugging work on image with symbol stripped?
2009-05-02 15:29 How does remote debugging work on image with symbol stripped? kkcheng
@ 2009-05-02 15:57 ` Paul Pluzhnikov
0 siblings, 0 replies; 2+ messages in thread
From: Paul Pluzhnikov @ 2009-05-02 15:57 UTC (permalink / raw)
To: kkcheng; +Cc: gdb
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-05-02 15:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-02 15:29 How does remote debugging work on image with symbol stripped? kkcheng
2009-05-02 15:57 ` Paul Pluzhnikov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox