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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_47/] [or1ksim/] [debug/] [gdbcomm.h] - Diff between revs 321 and 439

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 321 Rev 439
/* gdbcomm.h -- Communication routines for gdb
/* gdbcomm.h -- Communication routines for gdb
         Copyright (C) 2001 by Marko Mlinar, markom@opencores.org
         Copyright (C) 2001 by Marko Mlinar, markom@opencores.org
         Code copied from toplevel.c
         Code copied from toplevel.c
 
 
         This file is part of OpenRISC 1000 Architectural Simulator.
         This file is part of OpenRISC 1000 Architectural Simulator.
 
 
         This program is free software; you can redistribute it and/or modify
         This program is free software; you can redistribute it and/or modify
         it under the terms of the GNU General Public License as published by
         it under the terms of the GNU General Public License as published by
         the Free Software Foundation; either version 2 of the License, or
         the Free Software Foundation; either version 2 of the License, or
         (at your option) any later version.
         (at your option) any later version.
 
 
         This program is distributed in the hope that it will be useful,
         This program is distributed in the hope that it will be useful,
         but WITHOUT ANY WARRANTY; without even the implied warranty of
         but WITHOUT ANY WARRANTY; without even the implied warranty of
         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.    See the
         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.    See the
         GNU General Public License for more details.
         GNU General Public License for more details.
 
 
         You should have received a copy of the GNU General Public License
         You should have received a copy of the GNU General Public License
         along with this program; if not, write to the Free Software
         along with this program; if not, write to the Free Software
         Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
         Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
*/
 
 
#include "gdb.h"
#include "gdb.h"
#include <signal.h>
#include <signal.h>
#include <errno.h>
#include <errno.h>
typedef enum {
typedef enum {
  false = 0,
  false = 0,
  true = 1,
  true = 1,
} Boolean;
} Boolean;
 
 
void HandleServerSocket(Boolean);
void HandleServerSocket(Boolean);
void JTAGRequest(void);
void JTAGRequest(void);
void GDBRequest(void);
void GDBRequest(void);
void ProtocolClean(int,int32_t);
void ProtocolClean(int,int32_t);
static int gdb_read(void*,int);
static int gdb_read(void*,int);
static int gdb_write(void*,int);
static int gdb_write(const void*,int);
void BlockJTAG(void);
void BlockJTAG(void);
int GetServerSocket(const char* name,const char* proto,int port);
int GetServerSocket(const char* name,const char* proto,int port);
 
 
int gdbcomm_init ();
int gdbcomm_init ();
 
 

powered by: WebSVN 2.1.0

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