From: Venkata Subbarao <venk2ksubbu@gmail.com>
To: gdb@sourceware.org
Subject: gdbserver "load" command
Date: Mon, 17 May 2010 07:38:00 -0000 [thread overview]
Message-ID: <AANLkTiktO_oe5RhfIrsQcaMs3alGfYMQSGEtLGRzZlOU@mail.gmail.com> (raw)
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.
next reply other threads:[~2010-05-17 7:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-17 7:38 Venkata Subbarao [this message]
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
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=AANLkTiktO_oe5RhfIrsQcaMs3alGfYMQSGEtLGRzZlOU@mail.gmail.com \
--to=venk2ksubbu@gmail.com \
--cc=gdb@sourceware.org \
/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