* gdbserver/remote-util.c (remote_open): Print remote-side's
IP address when remote debugging over the network.
This commit is contained in:
parent
9ce88e60f3
commit
e641a1ca3d
@ -1,3 +1,8 @@
|
|||||||
|
2002-03-13 Michal Ludvig <mludvig@suse.cz>
|
||||||
|
|
||||||
|
* gdbserver/remote-util.c (remote_open): Print remote-side's
|
||||||
|
IP address when remote debugging over the network.
|
||||||
|
|
||||||
2002-03-12 David O'Brien <obrien@FreeBSD.org>
|
2002-03-12 David O'Brien <obrien@FreeBSD.org>
|
||||||
|
|
||||||
* config/sparc/fbsd.mh: Fix copyright.
|
* config/sparc/fbsd.mh: Fix copyright.
|
||||||
|
@ -48,7 +48,7 @@ void
|
|||||||
remote_open (char *name)
|
remote_open (char *name)
|
||||||
{
|
{
|
||||||
int save_fcntl_flags;
|
int save_fcntl_flags;
|
||||||
|
|
||||||
if (!strchr (name, ':'))
|
if (!strchr (name, ':'))
|
||||||
{
|
{
|
||||||
remote_desc = open (name, O_RDWR);
|
remote_desc = open (name, O_RDWR);
|
||||||
@ -99,7 +99,7 @@ remote_open (char *name)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
fprintf (stderr, "Remote debugging using %s\n", name);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -154,6 +154,10 @@ remote_open (char *name)
|
|||||||
|
|
||||||
signal (SIGPIPE, SIG_IGN); /* If we don't do this, then gdbserver simply
|
signal (SIGPIPE, SIG_IGN); /* If we don't do this, then gdbserver simply
|
||||||
exits when the remote side dies. */
|
exits when the remote side dies. */
|
||||||
|
|
||||||
|
/* Convert IP address to string. */
|
||||||
|
fprintf (stderr, "Remote debugging from host %s\n",
|
||||||
|
inet_ntoa (sockaddr.sin_addr));
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(F_SETFL) && defined (FASYNC)
|
#if defined(F_SETFL) && defined (FASYNC)
|
||||||
@ -164,7 +168,6 @@ remote_open (char *name)
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
disable_async_io ();
|
disable_async_io ();
|
||||||
fprintf (stderr, "Remote debugging using %s\n", name);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user