[pushed,gdbserver] mem-break.c:find_gdb_breakpoint_at: Make static.

Message ID 1398276334-5139-1-git-send-email-palves@redhat.com
State Committed
Headers

Commit Message

Pedro Alves April 23, 2014, 6:05 p.m. UTC
  Nothing calls this outside mem-break.c.

gdb/gdbserver/
2014-04-23  Pedro Alves  <palves@redhat.com>

	* mem-break.c (find_gdb_breakpoint_at): Make static.
	* mem-break.h (find_gdb_breakpoint_at): Delete declaration.
---
 gdb/gdbserver/ChangeLog   | 5 +++++
 gdb/gdbserver/mem-break.c | 5 ++++-
 gdb/gdbserver/mem-break.h | 5 -----
 3 files changed, 9 insertions(+), 6 deletions(-)
  

Patch

diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index c419e43..f6ece1c 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,10 @@ 
 2014-04-23  Pedro Alves  <palves@redhat.com>
 
+	* mem-break.c (find_gdb_breakpoint_at): Make static.
+	* mem-break.h (find_gdb_breakpoint_at): Delete declaration.
+
+2014-04-23  Pedro Alves  <palves@redhat.com>
+
 	* i386-low.c: Don't include break-common.h here.
 	(i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
 	prototype to take target_hw_bp_type as argument instead of a Z
diff --git a/gdb/gdbserver/mem-break.c b/gdb/gdbserver/mem-break.c
index 5df950d..680e97f 100644
--- a/gdb/gdbserver/mem-break.c
+++ b/gdb/gdbserver/mem-break.c
@@ -676,7 +676,10 @@  delete_breakpoint (struct breakpoint *todel)
   return delete_breakpoint_1 (proc, todel);
 }
 
-struct breakpoint *
+/* Locate a breakpoint placed at address WHERE and return a pointer
+   to its structure.  */
+
+static struct breakpoint *
 find_gdb_breakpoint_at (CORE_ADDR where)
 {
   struct process_info *proc = current_process ();
diff --git a/gdb/gdbserver/mem-break.h b/gdb/gdbserver/mem-break.h
index 4346881..74369a7 100644
--- a/gdb/gdbserver/mem-break.h
+++ b/gdb/gdbserver/mem-break.h
@@ -25,11 +25,6 @@ 
 struct breakpoint;
 struct fast_tracepoint_jump;
 
-/* Locate a breakpoint placed at address WHERE and return a pointer
-   to its structure.  */
-
-struct breakpoint *find_gdb_breakpoint_at (CORE_ADDR where);
-
 /* Create a new GDB breakpoint at WHERE.  Returns -1 if breakpoints
    are not supported on this target, 0 otherwise.  */