Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdbserver "load" command
@ 2010-05-17  7:38 Venkata Subbarao
  2010-05-17  9:17 ` Pedro Alves
  0 siblings, 1 reply; 5+ messages in thread
From: Venkata Subbarao @ 2010-05-17  7:38 UTC (permalink / raw)
  To: gdb

Hi,

I am trying to debug a i386 program using gdb. All I wanted to do is
to run gdbserver without the binary file and load the program using
"load" command. So following were the steps followed by me. I request
you to help me in this regard.

I have downloaded and installed GNU debugger. I ran the gdbserver as follows.

gdbserver --multi :9999


Then I ran the gdb client and tried to load the program using the
following command

gdb> target remote :9999
(This resulted in error The target is not running (try
extended-remote?). So I had to use the following command)
gdb> target extended-remote :9999
gdb> load

This printed following error.
Loading section .interp, size 0x13 lma 0x8048114
Load failed

I have following questions:

1) What is the difference between gdbserver and gdb stub ?
2) How can i load a program dynamically using "load" command in gdb ?

I kindly request you to help me in this regard.

Thanks in advance,

-- Subbarao.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-05-20 14:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-17  7:38 gdbserver "load" command Venkata Subbarao
2010-05-17  9:17 ` Pedro Alves
2010-05-18 15:05   ` Venkata Subbarao
2010-05-18 15:22     ` Pedro Alves
2010-05-20 14:08       ` Venkata Subbarao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox