diff options
author | Pedro Alves <palves@redhat.com> | 2011-06-22 17:16:00 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-06-22 17:16:00 +0000 |
commit | d2f3fc74b7bcb54623e8887c9c2015262f74f90b (patch) | |
tree | e2b16ec120f2729f0e5c10c0c8ff775e067af143 | |
parent | b4d900402c4bcfc98a49931a40546421042d0344 (diff) | |
download | gdb-d2f3fc74b7bcb54623e8887c9c2015262f74f90b.zip gdb-d2f3fc74b7bcb54623e8887c9c2015262f74f90b.tar.gz gdb-d2f3fc74b7bcb54623e8887c9c2015262f74f90b.tar.bz2 |
2011-06-22 Pedro Alves <pedro@codesourcery.com>
* breakpoint.c (create_catchpoint_without_mention)
(create_catchpoint): Delete.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/breakpoint.c | 42 |
2 files changed, 5 insertions, 42 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 041a8bb..20d60f6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2011-06-22 Pedro Alves <pedro@codesourcery.com> + * breakpoint.c (create_catchpoint_without_mention) + (create_catchpoint): Delete. + +2011-06-22 Pedro Alves <pedro@codesourcery.com> + * breakpoint.h (struct breakpoint): Delete field `exec_pathname'. * breakpoint.c (init_raw_breakpoint_without_location): Remove reference to exec_pathname. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 5fc4562..e42034e 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -6873,48 +6873,6 @@ init_catchpoint (struct breakpoint *b, b->ops = ops; } -/* Create a new breakpoint of the bp_catchpoint kind and return it, - but does NOT mention it nor update the global location list. - This is useful if you need to fill more fields in the - struct breakpoint before calling mention. - - If TEMPFLAG is non-zero, then make the breakpoint temporary. - If COND_STRING is not NULL, then store it in the breakpoint. - OPS, if not NULL, is the breakpoint_ops structure associated - to the catchpoint. */ - -static struct breakpoint * -create_catchpoint_without_mention (struct gdbarch *gdbarch, int tempflag, - char *cond_string, - struct breakpoint_ops *ops) -{ - struct breakpoint *b = XNEW (struct breakpoint); - - init_catchpoint (b, gdbarch, tempflag, cond_string, ops); - return b; -} - -/* Create a new breakpoint of the bp_catchpoint kind and return it. - - If TEMPFLAG is non-zero, then make the breakpoint temporary. - If COND_STRING is not NULL, then store it in the breakpoint. - OPS, if not NULL, is the breakpoint_ops structure associated - to the catchpoint. */ - -static struct breakpoint * -create_catchpoint (struct gdbarch *gdbarch, int tempflag, - char *cond_string, struct breakpoint_ops *ops) -{ - struct breakpoint *b = - create_catchpoint_without_mention (gdbarch, tempflag, cond_string, ops); - - mention (b); - observer_notify_breakpoint_created (b); - update_global_location_list (1); - - return b; -} - static void create_fork_vfork_event_catchpoint (struct gdbarch *gdbarch, int tempflag, char *cond_string, |