From: "Jiju George T" <jiju.george@nestgroup.net>
To: <gdb@sourceware.org>
Subject: Problem in using gdb 6.8 to step code in flash
Date: Wed, 14 May 2008 12:49:00 -0000 [thread overview]
Message-ID: <00b501c8b5c0$d47ed7d0$390aa8c0@ashmicro.ashling.com> (raw)
Hi All,
I am trying to single step some code in a MIPS embedded target flash memory
using GDB 6.8 and our own GDB Server for MIPS target. I am doing below steps
1) Start GDB server which connects to the MIPS target through a JTAG
debugger probe and breaks the target at reset vector (0xBFC00000)
2) Start gdb and connect to GDB server. Gdb now connects to the target and
shows $pc as 0xBFC00000
3) Issue stepi command. But gdb never gets back control since GDB server
fails to set breakpoint on ROM.
When I repeat the same step using the sde-gdb provided by www.mips.com I
am able to do the step operation successfully.
I checked the difference between these two and fond out that the issue is
caused by the difference in the way sde-gdb and gdb 6.8 does step operation.
SDE GDB issues step(s) command to GDB server where as gdb 6.8 tries to set
breakpoint on next line and issue continue(c) command. Any idea on why the
two gdb variants behave differently for step operation using same GDB
server? How gdb decides what mechanism to be used for stepping operation?
Thanks,
Jiju George
next reply other threads:[~2008-05-14 12:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-14 12:49 Jiju George T [this message]
2008-05-14 13:08 ` Daniel Jacobowitz
2008-05-14 14:29 ` Jiju George T
2008-05-14 14:49 ` 'Daniel Jacobowitz'
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='00b501c8b5c0$d47ed7d0$390aa8c0@ashmicro.ashling.com' \
--to=jiju.george@nestgroup.net \
--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