From: Daniel Jacobowitz Date: Sun, 29 Feb 2004 16:46:01 +0000 (+0000) Subject: * remote-utils.c (remote_open): Print a status notice after X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6910d122aca0a6e1e9e81b6d74a9ef3215f34137;p=binutils-gdb.git * remote-utils.c (remote_open): Print a status notice after opening a TCP port. * server.c (attach_inferior): Print a status notice after attaching. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 63bbc91c76e..ae1117f3a68 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,4 +1,11 @@ -2004-02-28 Daniel Jacobowitz +2004-02-29 Daniel Jacobowitz + + * 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 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode. diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c index 4e9ca0218b1..c9d198fb289 100644 --- a/gdb/gdbserver/remote-utils.c +++ b/gdb/gdbserver/remote-utils.c @@ -135,6 +135,8 @@ remote_open (char *name) || listen (tmp_desc, 1)) perror_with_name ("Can't bind address"); + fprintf (stderr, "Listening on port %d\n", port); + tmp = sizeof (sockaddr); remote_desc = accept (tmp_desc, (struct sockaddr *) &sockaddr, &tmp); if (remote_desc == -1) diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index df226e37df6..aa7a0d0beed 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -70,6 +70,8 @@ attach_inferior (int pid, char *statusptr, unsigned char *sigptr) if (myattach (pid) != 0) return -1; + fprintf (stderr, "Attached; pid = %d\n", pid); + /* 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 whichever we were told to attach to. */