This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Move VEC (const_char_ptr) to gdb_vecs.h


Hi,

This patch moves the definition of VEC (const_char_ptr) to gdb_vecs.h.
It is rather obvious, but I decided to ask either way.  Ok to apply?

The reason behind this change is that the next iteration of the
SystemTap integration patch is going to need it.

Thanks,

-- 
Sergio

2012-20-04  Sergio Durigan Junior  <sergiodj@redhat.com>

	* cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
	declaration.
	* gdb_vecs.h: Declare `const_char_ptr' VEC.

diff --git a/gdb/cp-support.h b/gdb/cp-support.h
index 5988418..03ccb73 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 b9e0b14..ce32de3 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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]