Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Keith Seitz <keiths@cygnus.com>
To: Grant Edwards <grante@visi.com>
Cc: Andrew Cagney <ac131313@cygnus.com>, <gdb@sourceware.cygnus.com>
Subject: Re: Semihosting output on ARM7TDMI
Date: Tue, 14 Aug 2001 09:31:00 -0000	[thread overview]
Message-ID: <Pine.GSO.4.33.0108140928480.23443-100000@makita.cygnus.com> (raw)
In-Reply-To: <20010814112608.A8586@visi.com>

On Tue, 14 Aug 2001, Grant Edwards wrote:

> But, the RDI stuff isn't aware of gdb, and it would take some
> work to make it aware.  It would be "a good thing" but somebody
> would have to want it bad enough to actuallly do it.

Isn't there already some machinery in place to do target I/O? You can
certainly do printf and the like on an arm board using rdi and gdb.

What do the the members writec, readc, write, gets in struct
Dbg_HostosInterface mean? Specifically:

/* Open a connection to a remote debugger.  NAME is the filename used
   for communication.  */

static void
arm_rdi_open (char *name, int from_tty)
{
 /* snip */
  rslt = Adp_OpenDevice (devName, openArgs, rdi_heartbeat);

  if (rslt != adp_ok)
    error ("Could not open device \"%s\"", name);

  gdb_config.bytesex = 2 | (TARGET_BYTE_ORDER == BIG_ENDIAN ? 1 : 0);
  gdb_config.fpe = 1;
  gdb_config.rditype = 2;
  gdb_config.heartbeat_on = 1;
  gdb_config.flags = 2;

  gdb_hostif.dbgprint = myprint;
  gdb_hostif.dbgpause = mypause;
  gdb_hostif.dbgarg = NULL;
  gdb_hostif.writec = mywritec;
  gdb_hostif.readc = myreadc;
  gdb_hostif.write = mywrite;
  gdb_hostif.gets = mygets;
  gdb_hostif.hostosarg = NULL;
  gdb_hostif.reset = voiddummy;

  rslt = angel_RDI_open (10, &gdb_config, &gdb_hostif, NULL);
  /* snip */

Doesn't any of this deal with "semi-hosting"?

Keith



  reply	other threads:[~2001-08-14  9:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-14  4:51 Joel Brenner
2001-08-14  7:56 ` Grant Edwards
2001-08-14  8:33   ` Andrew Cagney
2001-08-14  8:46     ` Grant Edwards
2001-08-14  9:11       ` Andrew Cagney
2001-08-14  9:24         ` Grant Edwards
2001-08-14  9:31           ` Keith Seitz [this message]
2001-08-14 11:43             ` 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=Pine.GSO.4.33.0108140928480.23443-100000@makita.cygnus.com \
    --to=keiths@cygnus.com \
    --cc=ac131313@cygnus.com \
    --cc=gdb@sourceware.cygnus.com \
    --cc=grante@visi.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