public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: K Srinivas Aithal <ksaithal_ecos@yahoo.com>
To: Jesper Skov <jskov@redhat.com>
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] Problems with GDB on MPC8240
Date: Mon, 20 Aug 2001 09:11:00 -0000	[thread overview]
Message-ID: <20010820161144.92443.qmail@web14309.mail.yahoo.com> (raw)
In-Reply-To: <15227.36090.597251.491727@zoftcorp.adsl.dk>

Hi Jesper,

I had specified "CYGNUM_HAL_BREAKPOINT_LIST_SIZE" as 10. Now I have
disabled it. It does break and step now. But still the problem exists.

Single step (i have checked "si") works fine if I just continue doing
only that!

Now if I give a breakpoint and "continue" it does stop at that
breakpoint. But it gets struck there. If I give a continue now (or even
"si") the program loops around at the same breakpoint. I changed the
value of PC (and set the values of register at PC where it had stopped)
and continued my program ends safely (ofcourse again printf() is not
printing "Hello" at the gdb console). Even if I delete the old
breakpoint and set a new one it will halt at the same old breakpoint;
but gdb console is infact setting the breakInstrcution at the new
breakpoint I specify!. This i observed that the "send_t_packet()" is
still sending the information about the old breakpoint!. As suggested
by you I disabled the cache; but it is the same.  

I analyzed the code and found that the break works on s/w breakpoints.
The gdb console is setting the breakInstruction at the the specified
breakpoint location. Once the 8240 looks that breakInstruction, it
enters the exception state, it is getting filed with the actual
instruction when the gdb console recevies the "T" packet from the stub.
It is getting struck after this; even "si" donot work. Where could the
stub going wrong. Do I need to port anything extra for this. 

I'm working on the CVS eCos.  

Regards,
K Srinivas Aithal

--- Jesper Skov <jskov@redhat.com> wrote:
> >>>>> "K" == K Srinivas Aithal <ksaithal_ecos@yahoo.com> writes:
> 
> K> I do have still more problems. The program is not stopping at the
> K> given breakpoint. Do I need to port any extra stubs for my
> K> platform. But I saw the that the 603 pased simulator works fine in
> K> this regard; so I think even MPC8240 based board should work the
> K> same. Or does the "target sim" at the (gdb) prompt of
> K> "powerpc-eabi-gdb" will take care of this. Should I port the
> K> InstructionBreak exception of 8240 also for this.
> 
> The sim does not rely on stub support, so the stubs are untested on a
> 603. In any event, GDB is the one setting breakpoints, so all I can
> think of causing the problem would be the cache. Try disabling it.
> 
> K> I have one more doubt. My sample application is a hello program
> K> (which I took it from the eCos example secion). I'm expecting
> K> "Hello" at the gdb console; but I'm not getting it. The reason for
> K> this is incorrect serial device base address specified in the
> K> serial driver at "packages/devs/serial". My doubt is "Can the
> K> serial driver within hello application pack the string ..hello..
> as
> K> required by the gdb protocol so that the gdb console can
> K> understand" Or "if it donot can the gdb console print it on the
> K> host properly".
> 
> The hello world example uses printf() which (in the default
> configuration) layers on the HAL diag functions. These will do the
> necessary encoding for GDB.
> 
> Jesper


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

      reply	other threads:[~2001-08-20  9:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-09 10:46 K Srinivas Aithal
2001-08-10  0:19 ` Jesper Skov
2001-08-16  1:55   ` K Srinivas Aithal
2001-08-16  2:06     ` Jesper Skov
2001-08-20  9:11       ` K Srinivas Aithal [this message]

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=20010820161144.92443.qmail@web14309.mail.yahoo.com \
    --to=ksaithal_ecos@yahoo.com \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=jskov@redhat.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).