diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d0536af53d..6a6708a7de 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-07-18 Tom Tromey + + * exec.c (exec_ops): Now static. + * exec.h (exec_ops): Don't declare. + 2014-07-18 Tom Tromey * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self" diff --git a/gdb/exec.c b/gdb/exec.c index 5176bf1ffc..7ba2720b82 100644 --- a/gdb/exec.c +++ b/gdb/exec.c @@ -61,7 +61,7 @@ void _initialize_exec (void); /* The target vector for executable files. */ -struct target_ops exec_ops; +static struct target_ops exec_ops; /* True if the exec target is pushed on the stack. */ static int using_exec_ops; diff --git a/gdb/exec.h b/gdb/exec.h index 304310fcfc..1d77e24497 100644 --- a/gdb/exec.h +++ b/gdb/exec.h @@ -29,8 +29,6 @@ struct target_ops; struct bfd; struct objfile; -extern struct target_ops exec_ops; - #define exec_bfd current_program_space->ebfd #define exec_bfd_mtime current_program_space->ebfd_mtime #define exec_filename current_program_space->pspace_exec_filename