+2004-10-07 Jim Blandy <jimb@redhat.com>
+
+ * server.c (main): Check for an error return from
+ gdbsocket_startup.
+
2004-09-22 Jim Blandy <jimb@theseus.home>
* thread-db.c (thread_db_open, thread_db_get_gen): Doc fixes.
if (portno != 0)
{
- gdbsocket_startup (portno, gdbserver.attach, process);
+ if (gdbsocket_startup (portno, gdbserver.attach, process) < 0)
+ {
+ fprintf (stderr, "Error listening on port %d: %s\n",
+ portno, strerror (errno));
+ return 2;
+ }
if (process->debug_informational)
fprintf (stderr, "Started listening socket on port %d.\n", portno);
}