From 111dfaae0479f43eab9f3411c90ee03104a2be2d Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Fri, 20 Apr 2012 16:57:17 +0000 Subject: [PATCH] 2012-04-20 Sergio Durigan Junior * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC declaration. * gdb_vecs.h: Declare `const_char_ptr' VEC. --- gdb/ChangeLog | 6 ++++++ gdb/cp-support.h | 3 +-- gdb/gdb_vecs.h | 2 ++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1ca9671c21..31a8b5a020 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2012-04-20 Sergio Durigan Junior + + * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC + declaration. + * gdb_vecs.h: Declare `const_char_ptr' VEC. + 2012-04-20 Jan Kratochvil Fix compilation compatibility with python-2.4 diff --git a/gdb/cp-support.h b/gdb/cp-support.h index 59884180fa..03ccb733cb 100644 --- a/gdb/cp-support.h +++ b/gdb/cp-support.h @@ -26,6 +26,7 @@ #include "symtab.h" #include "vec.h" +#include "gdb_vecs.h" #include "gdb_obstack.h" /* Opaque declarations. */ @@ -174,8 +175,6 @@ extern struct type *cp_lookup_rtti_type (const char *name, extern int cp_is_anonymous (const char *namespace); -DEF_VEC_P (const_char_ptr); - extern void cp_add_using_directive (const char *dest, const char *src, const char *alias, diff --git a/gdb/gdb_vecs.h b/gdb/gdb_vecs.h index b9e0b14dd5..ce32de33cb 100644 --- a/gdb/gdb_vecs.h +++ b/gdb/gdb_vecs.h @@ -25,6 +25,8 @@ DEF_VEC_P (char_ptr); +DEF_VEC_P (const_char_ptr); + /* From utils.c: */ extern void free_char_ptr_vec (VEC (char_ptr) *char_ptr_vec); -- 2.34.1