This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Make server.c:myresume static.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Cc: Joel Brobecker <brobecker at adacore dot com>
- Date: Tue, 6 Jul 2010 14:21:19 -0700
- Subject: [commit] Make server.c:myresume static.
I just happened to notice that this function was exclusively used in
server.c, and thus could be made static.
2010-07-06 Joel Brobecker <brobecker@adacore.com>
* server.c (myresume): Make static.
Tested on x86_64-linux with native gdbserver.
Checked in.
--
Joel
---
gdb/ChangeLog | 4 ++++
gdb/gdbserver/server.c | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2baef12..4bb3be4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2010-07-06 Joel Brobecker <brobecker@adacore.com>
+
+ * server.c (myresume): Make static.
+
2010-07-06 Tom Tromey <tromey@redhat.com>
* configure, config.in: Rebuild.
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c
index e666684..226d123 100644
--- a/gdb/gdbserver/server.c
+++ b/gdb/gdbserver/server.c
@@ -2035,7 +2035,7 @@ handle_v_requests (char *own_buf, int packet_len, int *new_packet_len)
/* Resume inferior and wait for another event. In non-stop mode,
don't really wait here, but return immediatelly to the event
loop. */
-void
+static void
myresume (char *own_buf, int step, int sig)
{
struct thread_resume resume_info[2];
--
1.7.1