diff options
author | Tom Tromey <tromey@redhat.com> | 2014-07-18 09:27:17 -0600 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-07-18 09:59:31 -0600 |
commit | e8b2341cd2c3663d245651129202f22548766a64 (patch) | |
tree | 7a439066080bf18270cad9e69d0823e527dccf0d /gdb/exec.c | |
parent | 44e89118cb33b71a1eaf6514ea2b686aac1974dd (diff) | |
download | gdb-e8b2341cd2c3663d245651129202f22548766a64.zip gdb-e8b2341cd2c3663d245651129202f22548766a64.tar.gz gdb-e8b2341cd2c3663d245651129202f22548766a64.tar.bz2 |
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.
Diffstat (limited to 'gdb/exec.c')
-rw-r--r-- | gdb/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |