From ed2b7c1703246eef1ce6b393ced99fe267cbeb7b Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 1 May 2019 12:35:20 -0600 Subject: Move "watchdog" to remote.c The "watchdog" global is only used in remote.c, so this patch moves it there and makes it static. gdb/ChangeLog 2019-05-08 Tom Tromey * maint.c (_initialize_maint_cmds): Move initialization code to remote.c. (watchdog, show_watchdog): Move to remote.c. * remote.c (watchdog, show_watchdog): Move from maint.c. Make "watchdog" static. (_initialize_remote): Move initialization code from maint.c. * defs.h (watchdog): Don't declare. --- gdb/defs.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'gdb/defs.h') diff --git a/gdb/defs.h b/gdb/defs.h index 5a1995b..e95d0d4 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -578,10 +578,6 @@ extern void copy_integer_to_size (gdb_byte *dest, int dest_size, const gdb_byte *source, int source_size, bool is_signed, enum bfd_endian byte_order); -/* From valops.c */ - -extern int watchdog; - /* Hooks for alternate command interfaces. */ struct target_waitstatus; -- cgit v1.1