From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28634 invoked by alias); 29 Aug 2018 22:35:11 -0000 Mailing-List: contact gdb-testers-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-testers-owner@sourceware.org Received: (qmail 28624 invoked by uid 89); 29 Aug 2018 22:35:11 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1063, sk:symtabs X-HELO: kwanyin.sergiodj.net Received: from kwanyin.sergiodj.net (HELO kwanyin.sergiodj.net) (158.69.185.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 29 Aug 2018 22:35:09 +0000 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [binutils-gdb] Change `file_symtabs' to std::vector From: sergiodj+buildbot@sergiodj.net To: gdb-testers@sourceware.org Message-Id: <2a90824133f9d46970c9c52b68ef2ccbeb6389ac@gdb-build> Date: Thu, 30 Aug 2018 00:06:00 -0000 X-SW-Source: 2018-q3/txt/msg05227.txt.bz2 *** TEST RESULTS FOR COMMIT 2a90824133f9d46970c9c52b68ef2ccbeb6389ac *** Author: Keith Seitz Branch: master Commit: 2a90824133f9d46970c9c52b68ef2ccbeb6389ac Change `file_symtabs' to std::vector This patch changes the `file_symtabs' members in linespec.c structures from a VEC to a std::vector (or unique_ptr thereof), eliminating a cleanup in the process. gdb/ChangeLog: * linespec.c (symtab_vector_up): Define. (struct linespec) : Change type to std::vector *. Update all uses. (struct collect_info) : Likewise. (collect_symtabs_from_filename): Return symtab_vector_up. Update all callers. (decode_objc): Remove cleanup. (symtab_collector::symtab_collector): Initialize `m_symtabs'. (symtab_collector::release_symtabs): Return symtab_vector_up. Update all callers. (class symtab_collector) : Change type to symtab_vector_up. Update all users. (collect_symtabs_from_filename, symtabs_from_filename): Return symtab_vector_up. Update all callers.