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

Subversion Repositories or1k

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 1321 to Rev 1322
    Reverse comparison

Rev 1321 → Rev 1322

/trunk/jtag/gdb2.c
131,7 → 131,7
}
 
/* The server should also be non blocking. Get the current flags. */
if(fcntl(sockfd, F_GETFL, &flags) < 0) {
if((flags = fcntl(sockfd, F_GETFL, 0)) < 0) {
sprintf(sTemp, "Unable to get flags for socket %d", sockfd);
perror(sTemp);
close(sockfd);
270,7 → 270,7
return;
}
 
if(fcntl(fd, F_GETFL, &flags) < 0) {
if((flags = fcntl(fd, F_GETFL, 0)) < 0) {
sprintf(sTemp, "Unable to get flags for gdb socket %d", fd);
perror(sTemp);
close(fd);
/trunk/jtag/jp1.c
1191,7 → 1191,7
}
 
/* The server should also be non blocking. Get the current flags. */
if(fcntl(sockfd,F_GETFL,&flags) < 0)
if((flags = fcntl(sockfd,F_GETFL,0)) < 0)
{
sprintf(sTemp,"Unable to get flags for socket %d",sockfd);
perror(sTemp);
1317,6 → 1317,12
return;
}
}
if (fds[1].revents && !gdb_fd) {
/* gdb_fd was cleared because connection was closed,
* but fd still in poll set */
fds[1].fd = -1;
n = 1;
}
break;
} /* End of switch statement */
} /* End of while statement */
1354,7 → 1360,7
return;
}
 
if(fcntl(fd,F_GETFL,&flags) < 0)
if((flags = fcntl(fd,F_GETFL,0)) < 0)
{
sprintf(sTemp,"Unable to get flags for gdb socket %d",fd);
perror(sTemp);
/trunk/jtag/gdb.c
122,7 → 122,7
}
 
/* The server should also be non blocking. Get the current flags. */
if(fcntl(sockfd, F_GETFL, &flags) < 0) {
if((flags = fcntl(sockfd, F_GETFL, 0)) < 0) {
sprintf(sTemp, "Unable to get flags for socket %d", sockfd);
perror(sTemp);
close(sockfd);
261,7 → 261,7
return;
}
 
if(fcntl(fd, F_GETFL, &flags) < 0) {
if((flags = fcntl(fd, F_GETFL,0)) < 0) {
sprintf(sTemp, "Unable to get flags for gdb socket %d", fd);
perror(sTemp);
close(fd);

powered by: WebSVN 2.1.0

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