aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2003-11-06 18:35:05 +0000
committerDaniel Jacobowitz <drow@false.org>2003-11-06 18:35:05 +0000
commit26bb91f3005ca817c833dcfae48f3d830c9749eb (patch)
tree08e19bae5f59782dd17d8569e1f008f9b4d93c68
parent0bde7532f1e2f1ecc0585b4edbaeeeccdfb55b94 (diff)
downloadgdb-26bb91f3005ca817c833dcfae48f3d830c9749eb.zip
gdb-26bb91f3005ca817c833dcfae48f3d830c9749eb.tar.gz
gdb-26bb91f3005ca817c833dcfae48f3d830c9749eb.tar.bz2
* breakpoint.c (insert_bp_location, allocate_bp_location): Make
static.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/breakpoint.c10
2 files changed, 10 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0813e67..169d79e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2003-11-06 Daniel Jacobowitz <drow@mvista.com>
+ * breakpoint.c (insert_bp_location, allocate_bp_location): Make
+ static.
+
+2003-11-06 Daniel Jacobowitz <drow@mvista.com>
+
* breakpoint.c (remove_breakpoint): Take an bp_location
instead of a breakpoint argument. Check the bp_location's type.
Fix a reversed condition for hardware breakpoints.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index b683c2a..962f83a 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -747,11 +747,11 @@ insert_catchpoint (struct ui_out *uo, void *args)
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 bpaddr)
/* 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;