diff options
author | Tom Tromey <tromey@redhat.com> | 2014-02-20 14:05:32 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-20 14:12:33 -0700 |
commit | 8838afaf75d0c3fcf43e246e09664219bc5bfc74 (patch) | |
tree | d392499521e66d8ee0016ba800876873bc601831 /gdb/varobj.h | |
parent | d86d4aafd4fa22fa4cccb83253fb187b03f97f48 (diff) | |
download | gdb-8838afaf75d0c3fcf43e246e09664219bc5bfc74.zip gdb-8838afaf75d0c3fcf43e246e09664219bc5bfc74.tar.gz gdb-8838afaf75d0c3fcf43e246e09664219bc5bfc74.tar.bz2 |
mark *_varobj_ops as "extern"
The AIX linker pointed out that gdb had multiple definitions of the
various *_varobj_ops objects. This patch fixes the problem by marking
the declarations as "extern" in varobj.h. Tested by rebuilding on
x86-64 Fedora 18 and on AIX.
2014-02-20 Tom Tromey <tromey@redhat.com>
* varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
(ada_varobj_ops): Mark "extern".
Diffstat (limited to 'gdb/varobj.h')
-rw-r--r-- | gdb/varobj.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/varobj.h b/gdb/varobj.h index e4007bf..1199e0b 100644 --- a/gdb/varobj.h +++ b/gdb/varobj.h @@ -215,10 +215,10 @@ struct lang_varobj_ops struct type *new_type); }; -const struct lang_varobj_ops c_varobj_ops; -const struct lang_varobj_ops cplus_varobj_ops; -const struct lang_varobj_ops java_varobj_ops; -const struct lang_varobj_ops ada_varobj_ops; +extern const struct lang_varobj_ops c_varobj_ops; +extern const struct lang_varobj_ops cplus_varobj_ops; +extern const struct lang_varobj_ops java_varobj_ops; +extern const struct lang_varobj_ops ada_varobj_ops; #define default_varobj_ops c_varobj_ops /* API functions */ |