public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Nick Garnett <nickg@ecoscentric.com>
To: "Uwe Kindler" <uwe_kindler@web.de>
Cc: <ecos-discuss@sources.redhat.com>
Subject: Re: [ECOS] EDOSK2674 GDB stub problem
Date: Mon, 27 Oct 2003 10:32:00 -0000	[thread overview]
Message-ID: <m38yn7108l.fsf@miso.calivar.com> (raw)
In-Reply-To: <000d01c39ba1$7077b880$53d7b43e@uwepc>

"Uwe Kindler" <uwe_kindler@web.de> writes:

> Hello,
> 
> I almost finished porting to a new architecture (Renesas H8S), variant
> (H8S/2674) and platform (EDOSK2674).

How does this differ from the EDOSK2674 support that is already
present in the H8/300 HAL?

> 
> When I build GDB stubs for the EDOSK board and use these stubs for
> debugging, then everything works fine.
> I can connect to target, upload, single step, set breakpoints and interrupt
> running programs with ctrl c. It is no
> problem to disconnect and reconnect to target.
> 
> 
> If I now build Redboot with GDB stubs included then debugging works fine.
> But when I disconnect from target then
> it is not possible to reconnect and I cannot communicate with Redboot with
> the CLI annymore.
> 
> Does someone have any idea why the GDB stubs work fine outside of Redboot
> and crash when deconnecting if used inside Redboot.
> I do not have any idea and it is almost impossible to debug this.

Support for reconnecting to GDB is mainly supported by resetting the
system. Since there is no way of knowing what the application has done
to the hardware, the safest way of dealing with this is to force a
hardware reset. However, RedBoot does not do this by default, the
command "maintenance packet r" to GDB will cause RedBoot to reboot
when GDB disconnects.

There is support for newlib based applications to call an exit syscall
which should return to the RedBoot prompt. However, I don't know
whether the H8/300 support in newlib provides this.


-- 
Nick Garnett                    eCos Kernel Architect
http://www.ecoscentric.com      The eCos and RedBoot experts


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

  reply	other threads:[~2003-10-27 10:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-26  9:10 Uwe Kindler
2003-10-27 10:32 ` Nick Garnett [this message]
2003-10-27 16:51   ` Uwe Kindler

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=m38yn7108l.fsf@miso.calivar.com \
    --to=nickg@ecoscentric.com \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=uwe_kindler@web.de \
    /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).