public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Grant Edwards <grante@visi.com>
To: danish iftikhar <d_iftikhar@hotmail.com>
Cc: fnasser@cygnus.com, gdb@sourceware.cygnus.com
Subject: Re: Jeeni & ARM720T with GDB
Date: Fri, 24 Nov 2000 17:34:00 -0000	[thread overview]
Message-ID: <20001124193438.A25544@visi.com> (raw)
In-Reply-To: <F285Ca3Eky00sp0yx2p0000234c@hotmail.com>

>   i went through the code and checked the addresses of bss as well as other
> sections and they are perfectly o.k. ya , grant , it's zeroing the bss
> address only and i was able to come out of that loop . where it stucks is
> in <cyg_hal_invoke_constructors> : take a look at code below :

I don't think you have any problems with gdb or the Jeeni.

>   things seem to work perfectly fine for h/w initialisation . i wonder
> whether some special options have to be configured in ecos build to make it
> work. i have a basic doubt ..how the diagnostic output is handled . i don't
> think that jeeni will be able to send it back to console .. or will
> connecting through the serial port work . is the diag printf 's are the one
> causing it to hang.

You probably have eCos configured incorrectly.  Diag_printf calls
hal_diag_write_char (or something like that) to write diagnostic output. The
platform (and therefore the HAL package) you selected when you configured
eCos must provide diagnostic output routines that work with your board.

There are two ways to handle diagnostic output:

1) Use a UART or other output device and have hal_diag_xxx write to that
   device.

2) Send diagnostic output to the debugger.

I don't think you can use option 2 with the Jeeni.  While the RDI protocol
does allow for a debug channel, there is no way to write debug data to the
Jeeni using the JTAG interface.  If you were debugging via GDB stubs or via
the Angel ROM monitor, I think you could use option 2.

If you want to use option 1, you have to have an extra UART or some other
type of comm port available for use by the hal_diag_xxx routines.  Having an
extra UART available for use during debugging can be _extremely_ handy.

In any case, it looks like gdb and Jeeni are working fine.  Perhaps the eCos
documentation and mailing list would be a good place to look for advice on
getting the hal_diag_write_char() routine to work for your hardware.

-- 
Grant Edwards
grante@visi.com

  reply	other threads:[~2000-11-24 17:34 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-22 23:15 danish iftikhar
2000-11-24 17:34 ` Grant Edwards [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-11-22  2:35 danish iftikhar
2000-11-22  6:36 ` Grant Edwards
2000-11-20 22:23 danish iftikhar
2000-11-21  9:36 ` Fernando Nasser
2000-11-20  8:06 danish iftikhar
2000-11-20  8:48 ` Fernando Nasser
2000-11-20  9:01   ` Michael Leibowitz
2000-11-20  9:18     ` Fernando Nasser
2000-11-20 14:28       ` Grant Edwards
2000-11-20 14:27     ` Grant Edwards
2000-11-20 15:34       ` Michael Leibowitz
2000-11-20 15:43         ` Grant Edwards
2000-11-20 14:25   ` Grant Edwards

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=20001124193438.A25544@visi.com \
    --to=grante@visi.com \
    --cc=d_iftikhar@hotmail.com \
    --cc=fnasser@cygnus.com \
    --cc=gdb@sourceware.cygnus.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).