* remote-utils.c (remote_open): Print a status notice after

opening a TCP port.
	* server.c (attach_inferior): Print a status notice after
	attaching.
This commit is contained in:
Daniel Jacobowitz 2004-02-29 16:46:01 +00:00
parent d677d77d05
commit 6910d122ac
3 changed files with 12 additions and 1 deletions

View File

@ -1,4 +1,11 @@
2004-02-28 Daniel Jacobowitz <drow@mvista.com> 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
* remote-utils.c (remote_open): Print a status notice after
opening a TCP port.
* server.c (attach_inferior): Print a status notice after
attaching.
2004-02-29 Daniel Jacobowitz <drow@mvista.com>
* linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode. * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.

View File

@ -135,6 +135,8 @@ remote_open (char *name)
|| listen (tmp_desc, 1)) || listen (tmp_desc, 1))
perror_with_name ("Can't bind address"); perror_with_name ("Can't bind address");
fprintf (stderr, "Listening on port %d\n", port);
tmp = sizeof (sockaddr); tmp = sizeof (sockaddr);
remote_desc = accept (tmp_desc, (struct sockaddr *) &sockaddr, &tmp); remote_desc = accept (tmp_desc, (struct sockaddr *) &sockaddr, &tmp);
if (remote_desc == -1) if (remote_desc == -1)

View File

@ -70,6 +70,8 @@ attach_inferior (int pid, char *statusptr, unsigned char *sigptr)
if (myattach (pid) != 0) if (myattach (pid) != 0)
return -1; return -1;
fprintf (stderr, "Attached; pid = %d\n", pid);
/* FIXME - It may be that we should get the SIGNAL_PID from the /* FIXME - It may be that we should get the SIGNAL_PID from the
attach function, so that it can be the main thread instead of attach function, so that it can be the main thread instead of
whichever we were told to attach to. */ whichever we were told to attach to. */