* Whats things the gdbserver and gdb communicates when startup a program?
@ 2008-02-13 13:40 Bin Chen
2008-02-13 13:46 ` Daniel Jacobowitz
0 siblings, 1 reply; 5+ messages in thread
From: Bin Chen @ 2008-02-13 13:40 UTC (permalink / raw)
To: gdb
Hello,
I am debugging a remote program in a MIPS board. This program is small
but it uses a large library(8M bytes, stripped). The library in my
host is far more large, unstripped, about 10M bytes.
When I start the program in the target:
gdbserver :9988 GtkLanucher
Then start gdb from host:
gdb GtkLauncher
blahblahblah...
> target remote 192.168.3.2:9988
Then the gdb stuck(actually is transferring some data thru network,
according the capture from ethereal).
Honestly my target's network card is buggy, not capable to run in a
long time. After several minutes, all things broken...
I just want to know whats data is transfered? In my case how much data
need to transferred to / from target/host?
Thanks.
Bin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Whats things the gdbserver and gdb communicates when startup a program?
2008-02-13 13:40 Whats things the gdbserver and gdb communicates when startup a program? Bin Chen
@ 2008-02-13 13:46 ` Daniel Jacobowitz
2008-02-13 14:27 ` Bin Chen
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Jacobowitz @ 2008-02-13 13:46 UTC (permalink / raw)
To: Bin Chen; +Cc: gdb
On Wed, Feb 13, 2008 at 09:40:32PM +0800, Bin Chen wrote:
> I just want to know whats data is transfered? In my case how much data
> need to transferred to / from target/host?
You can use "set debug remote" and the GDB manual to see what is
transferred.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Whats things the gdbserver and gdb communicates when startup a program?
2008-02-13 13:46 ` Daniel Jacobowitz
@ 2008-02-13 14:27 ` Bin Chen
2008-02-13 14:38 ` Daniel Jacobowitz
0 siblings, 1 reply; 5+ messages in thread
From: Bin Chen @ 2008-02-13 14:27 UTC (permalink / raw)
To: Bin Chen, gdb
On Wed, Feb 13, 2008 at 9:45 PM, Daniel Jacobowitz <drow@false.org> wrote:
> On Wed, Feb 13, 2008 at 09:40:32PM +0800, Bin Chen wrote:
> > I just want to know whats data is transfered? In my case how much data
> > need to transferred to / from target/host?
>
> You can use "set debug remote" and the GDB manual to see what is
> transferred.
>
Thanks!
Do you think it is normal for the 10Mbps network card use hundreds of
second to transfer the gdb data for my 10M + library size?
Bin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Whats things the gdbserver and gdb communicates when startup a program?
2008-02-13 14:27 ` Bin Chen
@ 2008-02-13 14:38 ` Daniel Jacobowitz
2008-02-14 0:07 ` Bin Chen
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Jacobowitz @ 2008-02-13 14:38 UTC (permalink / raw)
To: Bin Chen; +Cc: gdb
On Wed, Feb 13, 2008 at 10:27:20PM +0800, Bin Chen wrote:
> Thanks!
> Do you think it is normal for the 10Mbps network card use hundreds of
> second to transfer the gdb data for my 10M + library size?
No. It doesn't transfer the library. Startup data is usually no more
than 2K.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Whats things the gdbserver and gdb communicates when startup a program?
2008-02-13 14:38 ` Daniel Jacobowitz
@ 2008-02-14 0:07 ` Bin Chen
0 siblings, 0 replies; 5+ messages in thread
From: Bin Chen @ 2008-02-14 0:07 UTC (permalink / raw)
To: Bin Chen, gdb
OK, I try to find the problem.
On Wed, Feb 13, 2008 at 10:37 PM, Daniel Jacobowitz <drow@false.org> wrote:
> On Wed, Feb 13, 2008 at 10:27:20PM +0800, Bin Chen wrote:
> > Thanks!
> > Do you think it is normal for the 10Mbps network card use hundreds of
> > second to transfer the gdb data for my 10M + library size?
>
> No. It doesn't transfer the library. Startup data is usually no more
> than 2K.
>
> --
> Daniel Jacobowitz
> CodeSourcery
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-02-14 0:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-13 13:40 Whats things the gdbserver and gdb communicates when startup a program? Bin Chen
2008-02-13 13:46 ` Daniel Jacobowitz
2008-02-13 14:27 ` Bin Chen
2008-02-13 14:38 ` Daniel Jacobowitz
2008-02-14 0:07 ` Bin Chen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox