This is the mail archive of the
mailing list for the eCos project.
Re: GDB question.
- From: Ottawa Guy <ottawaguy81 at yahoo dot com>
- To: Gary Thomas <gary at mlbassoc dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Mon, 9 Feb 2004 15:33:27 -0800 (PST)
- Subject: Re: [ECOS] GDB question.
Thanks for your response, I am writing the STUB code
for SPARC simulator. It turns out that the Uart I/O
function was returning "char" and ECOS converts the
"char" to a int. Since the coversion process failed,
ECOS GDB stub keeps on sending the same response over
and over again. Once I realized that, it fixed some of
--- Gary Thomas <firstname.lastname@example.org> wrote:
> On Fri, 2004-02-06 at 23:15, Ottawa Guy wrote:
> > Hello,
> > I am very new at implementing GDB stuff. I have
> > simulator which can a talk to a GDB host software
> > throught a serial port. I loaded GDB stubs in my
> > simulator and called "breakpoint()".
> What kind of simulator is this? Who wrote the GDB
> stubs that
> run on the simulator?
> > I start my gdb host program, and type the
> > (gdb) target extended-remote /dev/ttyS0
> > Remote debugging using /dev/ttyS0
> > Couldn't establish connection to remote target
> > Malformed response to offset query,
> > T0544:00000000;0e:00000000;
> > (gdb)
> > I found the GDB host was sending "+$Hc-1#09" to my
> > target.
> > It seems my GDB stub program keep on sending
> > "T0544:00000000;0e:00000000" string I have no idea
> > why.
> This is an indication from the remote system that it
> has stopped,
> probably abnormally. It most likely means that your
> stubs are not
> working properly. The fact that the values are 0
> also implies that
> there is something wrong at the other end.
> > Can someone let me know what are the sequence of
> > events suppose to happen at the target when the
> > host request for a connection. By that I mean when
> > GDB host type "target extended-remote /dev/ttyS0"
> > should be the sequence of response expected from
> > target.
> The actual request/reply script will differ from
> platform to platform
> and architecture to architecture. To understand
> this completely, you'll
> need to read about the GDB remote protocol. If you
> are running Linux,
> you can get a very complete description from "info
> Gary Thomas <email@example.com>
> MLB Associates
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss