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".
This commit is contained in:
parent
d86d4aafd4
commit
8838afaf75
@ -1,3 +1,8 @@
|
||||
2014-02-20 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
|
||||
(ada_varobj_ops): Mark "extern".
|
||||
|
||||
2014-02-20 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* dbxread.c (read_dbx_symtab): Remove last_o_file_start.
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user