From: Pedro Alves Date: Tue, 22 Apr 2014 18:47:06 +0000 (+0100) Subject: [gdbserver] mem-break.c:find_gdb_breakpoint_at: Make static. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51aa91f97976e0b4d6103d5c6e6a60bbd09be2fb;p=binutils-gdb.git [gdbserver] mem-break.c:find_gdb_breakpoint_at: Make static. Nothing calls this outside mem-break.c. gdb/gdbserver/ 2014-04-23 Pedro Alves * mem-break.c (find_gdb_breakpoint_at): Make static. * mem-break.h (find_gdb_breakpoint_at): Delete declaration. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index c419e43c9f2..f6ece1c7b0f 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2014-04-23 Pedro Alves + + * mem-break.c (find_gdb_breakpoint_at): Make static. + * mem-break.h (find_gdb_breakpoint_at): Delete declaration. + 2014-04-23 Pedro Alves * i386-low.c: Don't include break-common.h here. diff --git a/gdb/gdbserver/mem-break.c b/gdb/gdbserver/mem-break.c index 5df950d3480..680e97fe62d 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 4346881b5b7..74369a7b79a 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. */