aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-28 14:56:18 -0700
committerTom Tromey <tromey@redhat.com>2014-01-13 12:33:43 -0700
commit42c85435d662ce7e355bb7d2b9c14675ebb6a1a1 (patch)
tree99877f4bf211578118afe19009487c8ac6e03d83 /gdb
parent66af0f440b7c203b3e3bc9b2e7fdee9f81e6ae77 (diff)
downloadgdb-42c85435d662ce7e355bb7d2b9c14675ebb6a1a1.zip
gdb-42c85435d662ce7e355bb7d2b9c14675ebb6a1a1.tar.gz
gdb-42c85435d662ce7e355bb7d2b9c14675ebb6a1a1.tar.bz2
remove deprecated_set_hook
This removes deprecated_set_hook. Insight was the last user of this hook, but I recently checked in a patch to have it use the command_param_changed observer instead. 2014-01-13 Tom Tromey <tromey@redhat.com> * cli/cli-setshow.c (do_set_command): Update. * defs.h (deprecated_set_hook): Remove. * top.c (deprecated_set_hook): Remove.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/cli/cli-setshow.c2
-rw-r--r--gdb/defs.h2
-rw-r--r--gdb/top.c5
4 files changed, 6 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 88ff989..6cdafcc 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2014-01-13 Tom Tromey <tromey@redhat.com>
+
+ * cli/cli-setshow.c (do_set_command): Update.
+ * defs.h (deprecated_set_hook): Remove.
+ * top.c (deprecated_set_hook): Remove.
+
2014-01-13 Pedro Alves <palves@redhat.com>
* tracepoint.c (tfile_fetch_registers): Don't infer the PC from
diff --git a/gdb/cli/cli-setshow.c b/gdb/cli/cli-setshow.c
index 8baf37b..75f1526 100644
--- a/gdb/cli/cli-setshow.c
+++ b/gdb/cli/cli-setshow.c
@@ -452,8 +452,6 @@ do_set_command (char *arg, int from_tty, struct cmd_list_element *c)
error (_("gdb internal error: bad var_type in do_setshow_command"));
}
c->func (c, NULL, from_tty);
- if (deprecated_set_hook)
- deprecated_set_hook (c);
if (notify_command_param_changed_p (option_changed, c))
{
diff --git a/gdb/defs.h b/gdb/defs.h
index a7ce88a..4aee7bb 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -727,8 +727,6 @@ extern void (*deprecated_detach_hook) (void);
extern void (*deprecated_call_command_hook) (struct cmd_list_element * c,
char *cmd, int from_tty);
-extern void (*deprecated_set_hook) (struct cmd_list_element * c);
-
extern int (*deprecated_ui_load_progress_hook) (const char *section,
unsigned long num);
diff --git a/gdb/top.c b/gdb/top.c
index d068450..d5ef034 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -253,11 +253,6 @@ ptid_t (*deprecated_target_wait_hook) (ptid_t ptid,
void (*deprecated_call_command_hook) (struct cmd_list_element * c,
char *cmd, int from_tty);
-/* Called after a `set' command has finished. Is only run if the
- `set' command succeeded. */
-
-void (*deprecated_set_hook) (struct cmd_list_element * c);
-
/* Called when the current thread changes. Argument is thread id. */
void (*deprecated_context_hook) (int id);