From d99fdcc87447988b2acc23cab01a09fcdd0d796b Mon Sep 17 00:00:00 2001 From: brobecke Date: Mon, 5 Nov 2007 18:09:18 +0000 Subject: [PATCH] * breakpoint.h (set_breakpoint_sal): Remove declaration. * breakpoint.c (set_breakpoint_sal): Delete. --- gdb/ChangeLog | 5 +++++ gdb/breakpoint.c | 13 ------------- gdb/breakpoint.h | 2 -- 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0f0cf3599f..8011ab6660 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2007-11-05 Joel Brobecker + * breakpoint.h (set_breakpoint_sal): Remove declaration. + * breakpoint.c (set_breakpoint_sal): Delete. + +2007-11-05 Joel Brobecker + * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets. (make_blockvector): Likewise. Remove FIXME comment. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 8f2cbad9dc..7d92964a27 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -6982,19 +6982,6 @@ catch_command_1 (char *arg, int tempflag, int from_tty) } } -/* Used by the gui, could be made a worker for other things. */ - -struct breakpoint * -set_breakpoint_sal (struct symtab_and_line sal) -{ - struct breakpoint *b; - b = set_raw_breakpoint (sal, bp_breakpoint); - set_breakpoint_count (breakpoint_count + 1); - b->number = breakpoint_count; - b->thread = -1; - return b; -} - static void catch_command (char *arg, int from_tty) { diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index 1e68a2a805..c6e08f5991 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -848,8 +848,6 @@ extern int ep_is_catchpoint (struct breakpoint *); such as a library load or unload. */ extern int ep_is_shlib_catchpoint (struct breakpoint *); -extern struct breakpoint *set_breakpoint_sal (struct symtab_and_line); - /* Enable breakpoints and delete when hit. Called with ARG == NULL deletes all breakpoints. */ extern void delete_command (char *arg, int from_tty); -- 2.11.0