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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [or1ksim/] [debug/] [gdbcomm.c] - Diff between revs 1557 and 1744

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

Rev 1557 Rev 1744
Line 1... Line 1...
/* gdbcomm.c -- Communication routines for gdb
/* gdbcomm.c -- 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
   Copyright (C) 2008 Embecosm Limited
 
 
 
   Contributor Jeremy Bennett <jeremy.bennett@embecosm.com>
 
 
         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
         it under the terms of the GNU General Public License as published by
   under the terms of the GNU General Public License as published by the Free
         the Free Software Foundation; either version 2 of the License, or
   Software Foundation; either version 3 of the License, or (at your option)
         (at your option) any later version.
   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
         but WITHOUT ANY WARRANTY; without even the implied warranty of
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.    See the
   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
         GNU General Public License for more details.
   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
         along with this program; if not, write to the Free Software
   with this program.  If not, see <http://www.gnu.org/licenses/>. */
         Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
*/
 
 
/* Code copied from toplevel.c */
 
 
#include <stdlib.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/types.h>
Line 291... Line 295...
    {
    {
      close(fd);
      close(fd);
      return;
      return;
    }
    }
 
 
  if(fcntl(fd,F_GETFL,&flags) < 0)
  if((flags = fcntl(fd,F_GETFL)) < 0)    /* JPB */
    {
    {
      sprintf(sTemp,"Unable to get flags for gdb socket %d",fd);
      sprintf(sTemp,"Unable to get flags for gdb socket %d",fd);
      perror(sTemp);
      perror(sTemp);
      close(fd);
      close(fd);
      return;
      return;

powered by: WebSVN 2.1.0

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