mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-19 23:42:57 +00:00
make exec_ops static
While working on some target stack changes, I noticed that exec_ops is only used from exec.c. This patch makes it "static". This is cleaner and makes it simpler to reason about the use of the target. Tested by rebuilding. I'm checking this in as obvious. 2014-07-18 Tom Tromey <tromey@redhat.com> * exec.c (exec_ops): Now static. * exec.h (exec_ops): Don't declare.
This commit is contained in:
parent
44e89118cb
commit
e8b2341cd2
@ -1,3 +1,8 @@
|
||||
2014-07-18 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* exec.c (exec_ops): Now static.
|
||||
* exec.h (exec_ops): Don't declare.
|
||||
|
||||
2014-07-18 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user