aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2001-06-01 22:22:25 +0000
committerJim Blandy <jimb@codesourcery.com>2001-06-01 22:22:25 +0000
commitb27b8843dcccc202de20a9ac2d32d2017c07d859 (patch)
tree8167f6400cde1c3bfad7e7c81abc5382cbe33b84
parentd0bbfec7b60c10ff4bda54e7a4b72233c5ad1fb2 (diff)
downloadgdb-b27b8843dcccc202de20a9ac2d32d2017c07d859.zip
gdb-b27b8843dcccc202de20a9ac2d32d2017c07d859.tar.gz
gdb-b27b8843dcccc202de20a9ac2d32d2017c07d859.tar.bz2
* gnu-v3-abi.c (gnu_v3_abi_ops, vtable_type_gdbarch_data): Make
these static --- there's no reason other files should use these.
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/gnu-v3-abi.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f3a4026..7504d2c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,8 @@
2001-06-01 Jim Blandy <jimb@redhat.com>
+ * gnu-v3-abi.c (gnu_v3_abi_ops, vtable_type_gdbarch_data): Make
+ these static --- there's no reason other files should use these.
+
* partial-stab.h (case N_FUN: case 'f':, case N_FUN: case 'F':)
Fix memory leak.
diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c
index 1bd4ce6..015bead 100644
--- a/gdb/gnu-v3-abi.c
+++ b/gdb/gnu-v3-abi.c
@@ -24,7 +24,7 @@
#include "cp-abi.h"
#include "demangle.h"
-struct cp_abi_ops gnu_v3_abi_ops;
+static struct cp_abi_ops gnu_v3_abi_ops;
static int
gnuv3_is_vtable_name (const char *name)
@@ -76,7 +76,7 @@ gnuv3_is_operator_name (const char *name)
vtable_type_gdbarch_data is a gdbarch per-architecture data pointer
which refers to the struct type * for this structure, laid out
appropriately for the architecture. */
-struct gdbarch_data *vtable_type_gdbarch_data;
+static struct gdbarch_data *vtable_type_gdbarch_data;
/* Human-readable names for the numbers of the fields above. */