OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [debug/] [rsp-server.c] - Diff between revs 143 and 236

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 143 Rev 236
Line 1755... Line 1755...
                   back.                                                     */
                   back.                                                     */
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
static void
static void
rsp_query (struct rsp_buf *buf)
rsp_query (struct rsp_buf *buf)
{
{
  if (0 == strcmp ("qC", buf->data))
  if (0 == strcmp ("qAttached", buf->data))
 
    {
 
      /* We are always attaching to an existing process with the bare metal
 
         embedded system. */
 
      put_str_packet ("1");
 
    }
 
  else if (0 == strcmp ("qC", buf->data))
    {
    {
      /* Return the current thread ID (unsigned hex). A null response
      /* Return the current thread ID (unsigned hex). A null response
         indicates to use the previously selected thread. We use the constant
         indicates to use the previously selected thread. We use the constant
         OR1KSIM_TID to represent our single thread of control. */
         OR1KSIM_TID to represent our single thread of control. */
      sprintf (buf->data, "QC%x", OR1KSIM_TID);
      sprintf (buf->data, "QC%x", OR1KSIM_TID);

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.