public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Bernd Schuster" <schuster_bernd@gmx.net>
To: John Dallaway <john@dallaway.org.uk>
Cc: ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] Re: GDB stub support
Date: Tue, 18 Dec 2012 12:09:00 -0000	[thread overview]
Message-ID: <20121218120939.21370@gmx.net> (raw)
In-Reply-To: <50D0453D.4090409@dallaway.org.uk>

here`s "where" output: 

(gdb) where
#0  0x8000c44c in ?? ()
#1  0x800400bc in debug_vector ()
    at /home/.../build/../eCos/packages/hal/mips/arch/current/src/vectors.S:131
#2  0x80000ab8 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) 


best regards
Bernd

-------- Original-Nachricht --------
> Datum: Tue, 18 Dec 2012 10:28:13 +0000
> Von: John Dallaway <john@dallaway.org.uk>
> An: schuster_bernd@gmx.net
> CC: eCos Discussion <ecos-discuss@ecos.sourceware.org>
> Betreff: [ECOS] Re: GDB stub support

> Bernd
> 
> On 17/12/12 21:04, Bernd Schuster wrote:
> 
> >> It is perfectly feasible to use a single channel for both debug and
> >> diagnostics as you suggest. You should configure eCos (for your
> >> application build) with CYG_HAL_STARTUP == "RAM" and with
> >> CYGSEM_HAL_USE_ROM_MONITOR enabled. You should then find that (by
> >> default) diagnostic/trace messages from your application are routed via
> >> the GDB stub and appear within your GDB session on the host.
> > 
> > That means, it is much more comfortable to download only the redboot
> > bootloader to my flash memory and download the application (eCos O/S
> > together with my own software app) by GDB instead of having already
> > everything installed on my MIPS board? I asked this because it will
> > take some time to download the application by serial port instead of
> > being able to download a new file by ethernet. 
> 
> If you have ethernet support built into RedBoot you should also be able
> to connect to the GDB stub via TCP for faster download. The default port
> number is 9000, so the GDB command would be:
> 
>   target remote <target IP address>:9000
> 
> > I already found the specific ecm file where 
> > cdl_component CYG_HAL_STARTUP {
> >     user_value ROMRAM
> > };
> > I have to specify RAM instead of ROMRAM. It seams that
> > CYGSEM_HAL_USE_ROM_MONITOR is already enabled if I use RAM instead of
> > ROMRAM. 
> 
> That makes sense.
> 
> >> For avoidance of doubt, you can use the GDB "load" command to download
> >> your application to RAM when debugging an application configured for
> RAM
> >> startup. It is not necessary to load it at the "RedBoot>" prompt.
> > 
> > Do I have to specify the correct RAM-addr where the application has to
> be
> > downloaded? Because the load command consists only of "load filename".
> 
> If you specify the ELF executable filename when you launch GDB then
> symbols will be loaded automatically. You can just use "load" with no
> filename and "continue" to start execution. The section records in the
> elf file will indicate where each section must be loaded. You do not
> need to specify the addresses manually.
> 
>   bash$ mipsisa32-elf-gdb myProgram.elf
>   (gdb) target remote <your parameters>
>   (gdb) load
>   (gdb) break web_init
>   (gdb) continue
> 
> I hope this helps...
> 
> John Dallaway
> eCos maintainer
> http://www.dallaway.org.uk/john
> 
> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
> 

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

      parent reply	other threads:[~2012-12-18 12:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-17 17:25 [ECOS] " Bernd Schuster
2012-12-17 19:01 ` [ECOS] " John Dallaway
2012-12-17 21:04   ` Bernd Schuster
2012-12-18  8:39     ` Bernd Schuster
2012-12-18  8:45       ` Bernd Schuster
2012-12-18 10:28     ` John Dallaway
2012-12-18 11:56       ` Bernd Schuster
2012-12-18 12:09       ` Bernd Schuster [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=20121218120939.21370@gmx.net \
    --to=schuster_bernd@gmx.net \
    --cc=ecos-discuss@ecos.sourceware.org \
    --cc=john@dallaway.org.uk \
    /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).