From 61a672f17d6544eb69a59aaed93c9eafdba74613 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Tue, 19 Feb 2013 19:41:28 +0000 Subject: Garbage collect struct monitor_ops::load_routine. While touching monitor_load in a previous patch, I noticed this method is no longer set to anything other than NULL in the tree, so we can remove it. Tested by building with --enable-targets=all. 2013-02-19 Pedro Alves Garbage collect 'struct monitor_ops'::load_routine. * monitor.h (struct monitor_ops) : Remove field. * monitor.c (monitor_load): No longer call current_monitor->load_routine. * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'. * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'. * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'. --- gdb/monitor.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'gdb/monitor.h') diff --git a/gdb/monitor.h b/gdb/monitor.h index 1f30c70..e715729 100644 --- a/gdb/monitor.h +++ b/gdb/monitor.h @@ -102,8 +102,6 @@ struct monitor_ops from reg dump */ void (*supply_register) (struct regcache *regcache, char *name, int namelen, char *val, int vallen); - void (*load_routine) (struct serial *desc, char *file, - int hashmark); /* Download routine */ int (*dumpregs) (struct regcache *); /* Dump all registers */ int (*continue_hook) (void); /* Emit the continue command */ int (*wait_filter) (char *buf, /* Maybe contains registers */ -- cgit v1.1