This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
PATCH: Some statics for breakpoint.c
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 6 Nov 2003 13:35:42 -0500
- Subject: PATCH: Some statics for breakpoint.c
My two build trees apparently have different warnings enabled, so I missed
these the first time through. Checked in.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
2003-11-06 Daniel Jacobowitz <drow@mvista.com>
* breakpoint.c (insert_bp_location, allocate_bp_location): Make
static.
Index: breakpoint.c
===================================================================
RCS file: /cvs/src/src/gdb/breakpoint.c,v
retrieving revision 1.141
diff -u -p -r1.141 breakpoint.c
--- breakpoint.c 6 Nov 2003 18:28:33 -0000 1.141
+++ breakpoint.c 6 Nov 2003 18:33:48 -0000
@@ -747,11 +747,11 @@ insert_catchpoint (struct ui_out *uo, vo
NOTE drow/2003-09-09: This routine could be broken down to an object-style
method for each breakpoint or catchpoint type. */
-int
+static int
insert_bp_location (struct bp_location *bpt,
- struct ui_file *tmp_error_stream,
- int *disabled_breaks, int *process_warning,
- int *hw_breakpoint_error)
+ struct ui_file *tmp_error_stream,
+ int *disabled_breaks, int *process_warning,
+ int *hw_breakpoint_error)
{
int val = 0;
@@ -3936,7 +3936,7 @@ adjust_breakpoint_address (CORE_ADDR bpa
/* Allocate a struct bp_location. */
-struct bp_location *
+static struct bp_location *
allocate_bp_location (struct breakpoint *bpt, enum bptype bp_type)
{
struct bp_location *loc, *loc_p;