From: TriKri <kristoferkrus@hotmail.com>
To: linux-mips@linux-mips.org
Subject: Debugging the MIPS processor using GDB
Date: Tue, 12 Aug 2008 06:23:57 -0700 (PDT) [thread overview]
Message-ID: <18944199.post@talk.nabble.com> (raw)
The questions are many, and I don't really know where to begin, but I shall
make a try.
I am developing software to debug a MIPS processor in an embedded system
using an EJTAG probe. Currently I have software to tell the processor to
perform certain instructions, and read/write from/to certain register
addresses. Now, I don't really know how to continue from here; I'm trying to
find out how to make GDB benefit from these functions in order to be able to
debug the processor.
I know that GDB needs a gdb-stub, but I don't really know what it is and
what it does, or why GDB needs it. The GDB manual suggests taking a look at
sparc-stub.c coming along with GDB, since it's the best organized. Not
finding any main function in it, I'm having a hard time figuring out to what
it does. How should this stub be implemented and how do I know what to write
in the stub file I'm going to write?
There is also something called gdb-hook, which I don't really know what it
is either. Do I need it?
Finally, there's a program called gdbserver, which comes with GDB. If I
write a remote stub, do I need this program? Where should it be run? Where
should my program be run? Since the stub is a c file, but lacks of a main
function, how do I compile it?
There are just so many unanswered questions, I don't know where to start
working or where to start looking for information. I haven't used GDB before
either, possibly contributing to some of the confusion; I hope I'll get this
straight soon, though.
/Kristofer
--
View this message in context: http://www.nabble.com/Debugging-the-MIPS-processor-using-GDB-tp18944199p18944199.html
Sent from the linux-mips main mailing list archive at Nabble.com.
next reply other threads:[~2008-08-12 13:46 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-12 13:23 TriKri [this message]
2008-08-12 14:14 ` Debugging the MIPS processor using GDB Martin Gebert
2008-08-12 14:37 ` Brian Foster
2008-08-12 16:27 ` Maciej W. Rozycki
2008-08-13 7:05 ` Brian Foster
2008-08-13 13:49 ` Maciej W. Rozycki
2008-08-13 15:07 ` Brian Foster
2008-08-13 15:16 ` Maciej W. Rozycki
2008-08-14 11:42 ` Debugging the MIPS processor using GDB (and FS2 EJTAG probe breakpoint issues) Brian Foster
2008-08-14 23:11 ` Maciej W. Rozycki
2008-08-13 14:41 ` Debugging the MIPS processor using GDB Jon Fraser
2008-08-13 15:12 ` Brian Foster
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=18944199.post@talk.nabble.com \
--to=kristoferkrus@hotmail.com \
--cc=linux-mips@linux-mips.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