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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [bench/] [verilog/] [vpi/] [c/] [gdb.c] - Diff between revs 397 and 425

Show entire file | Details | Blame | View Log

Rev 397 Rev 425
Line 2802... Line 2802...
   @param[in] p_buf  The request                                               */
   @param[in] p_buf  The request                                               */
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
static void
static void
rsp_query (struct rsp_buf *p_buf)
rsp_query (struct rsp_buf *p_buf)
{
{
  if (0 == strcmp ("qC", p_buf->data))
  if (0 == strcmp ("qAttached", p_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", p_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. Since we do not
         indicates to use the previously selected thread. Since we do not
         support a thread concept, this is the appropriate response. */
         support a thread concept, this is the appropriate response. */
      put_str_packet ("");
      put_str_packet ("");
Line 2882... Line 2888...
      sprintf (p_buf->data, "%02x%02x%02x%02x%02x%02x%02x%02x%02x",
      sprintf (p_buf->data, "%02x%02x%02x%02x%02x%02x%02x%02x%02x",
               'R', 'u', 'n', 'n', 'a', 'b', 'l', 'e', 0);
               'R', 'u', 'n', 'n', 'a', 'b', 'l', 'e', 0);
      p_buf->len = strlen (p_buf->data);
      p_buf->len = strlen (p_buf->data);
      put_packet (p_buf);
      put_packet (p_buf);
    }
    }
 
  else if (0 == strncmp ("qTStatus", p_buf->data, strlen ("qTStatus")))
 
    {
 
      /* We don't support tracing, so return empty packet. */
 
      put_str_packet ("");
 
    }
  else if (0 == strncmp ("qXfer:", p_buf->data, strlen ("qXfer:")))
  else if (0 == strncmp ("qXfer:", p_buf->data, strlen ("qXfer:")))
    {
    {
      /* For now we support no 'qXfer' requests, but these should not be
      /* For now we support no 'qXfer' requests, but these should not be
         expected, since they were not reported by 'qSupported' */
         expected, since they were not reported by 'qSupported' */
      fprintf (stderr, "Warning: RSP 'qXfer' not supported: ignored\n");
      fprintf (stderr, "Warning: RSP 'qXfer' not supported: ignored\n");

powered by: WebSVN 2.1.0

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