From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1766 invoked by alias); 20 Apr 2012 04:23:30 -0000 Received: (qmail 1757 invoked by uid 22791); 20 Apr 2012 04:23:26 -0000 X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-pz0-f41.google.com (HELO mail-pz0-f41.google.com) (209.85.210.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 20 Apr 2012 04:23:13 +0000 Received: by dajx4 with SMTP id x4so16080974daj.14 for ; Thu, 19 Apr 2012 21:23:13 -0700 (PDT) Received: by 10.68.201.73 with SMTP id jy9mr9894495pbc.35.1334895791418; Thu, 19 Apr 2012 21:23:11 -0700 (PDT) Received: from localhost ([201.82.152.100]) by mx.google.com with ESMTPS id d4sm4149878pbe.36.2012.04.19.21.23.08 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 19 Apr 2012 21:23:10 -0700 (PDT) From: Sergio Durigan Junior To: gdb-patches@sourceware.org Subject: [PATCH] Move VEC (const_char_ptr) to gdb_vecs.h X-URL: http://sergiodj.net/blog Date: Fri, 20 Apr 2012 04:26:00 -0000 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-04/txt/msg00657.txt.bz2 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 * 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);