diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2007-11-15 06:46:21 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2007-11-15 06:46:21 +0000 |
commit | 55a3f01f6faa821319d9f8842117988adb1494ea (patch) | |
tree | 9bd718f9b088a412e27168370e537bf409a546ef | |
parent | d6e956e5c23eada4b0349092fb2864f69369cfd3 (diff) | |
download | gdb-55a3f01f6faa821319d9f8842117988adb1494ea.zip gdb-55a3f01f6faa821319d9f8842117988adb1494ea.tar.gz gdb-55a3f01f6faa821319d9f8842117988adb1494ea.tar.bz2 |
Make mark_breakpoints_out static.
* breakpoint.h (mark_breakpoints_out): Remove
declaration.
* breakpoint.c (mark_breakpoints_out): Make static.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | gdb/breakpoint.c | 4 | ||||
-rw-r--r-- | gdb/breakpoint.h | 2 |
3 files changed, 10 insertions, 3 deletions
@@ -1,5 +1,12 @@ 2007-10-15 Vladimir Prus <vladimir@codesourcery.com> + Make mark_breakpoints_out static. + * breakpoint.h (mark_breakpoints_out): Remove + declaration. + * breakpoint.c (mark_breakpoints_out): Make static. + +2007-10-15 Vladimir Prus <vladimir@codesourcery.com> + Prevent clear_command from directly modifying breakpoint list. * Makefile.in (breakpoint_h): Update dependency. * breakpoint.c (clear_command): Do not remove diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 3dae38f..b67851d 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -200,6 +200,8 @@ static int single_step_breakpoint_inserted_here_p (CORE_ADDR pc); static void free_bp_location (struct bp_location *loc); +static void mark_breakpoints_out (void); + /* Prototypes for exported functions. */ /* If FALSE, gdb will not use hardware support for watchpoints, even @@ -1650,7 +1652,7 @@ remove_breakpoint (struct bp_location *b, insertion_state_t is) /* Clear the "inserted" flag in all breakpoints. */ -void +static void mark_breakpoints_out (void) { struct bp_location *bpt; diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index 19b880c..7919d3f 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -701,8 +701,6 @@ extern void set_ignore_count (int, int, int); extern void set_default_breakpoint (int, CORE_ADDR, struct symtab *, int); -extern void mark_breakpoints_out (void); - extern void breakpoint_init_inferior (enum inf_context); extern struct cleanup *make_cleanup_delete_breakpoint (struct breakpoint *); |