URL
https://opencores.org/ocsvn/or1k/or1k/trunk
[/] [or1k/] [trunk/] [jtag/] [gdb2.c] - Diff between revs 1274 and 1322
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 1274 |
Rev 1322 |
Line 129... |
Line 129... |
close(sockfd);
|
close(sockfd);
|
return 0;
|
return 0;
|
}
|
}
|
|
|
/* The server should also be non blocking. Get the current flags. */
|
/* 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);
|
sprintf(sTemp, "Unable to get flags for socket %d", sockfd);
|
perror(sTemp);
|
perror(sTemp);
|
close(sockfd);
|
close(sockfd);
|
return 0;
|
return 0;
|
}
|
}
|
Line 268... |
Line 268... |
if(gdb_fd) {
|
if(gdb_fd) {
|
close(fd);
|
close(fd);
|
return;
|
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);
|
sprintf(sTemp, "Unable to get flags for gdb socket %d", fd);
|
perror(sTemp);
|
perror(sTemp);
|
close(fd);
|
close(fd);
|
return;
|
return;
|
}
|
}
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.