From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27810 invoked by alias); 18 Dec 2014 12:19:43 -0000 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 Received: (qmail 27801 invoked by uid 89); 18 Dec 2014 12:19:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KAM_STOCKGEN,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-pd0-f173.google.com Received: from mail-pd0-f173.google.com (HELO mail-pd0-f173.google.com) (209.85.192.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 18 Dec 2014 12:19:42 +0000 Received: by mail-pd0-f173.google.com with SMTP id ft15so1318251pdb.18 for ; Thu, 18 Dec 2014 04:19:40 -0800 (PST) X-Received: by 10.70.129.106 with SMTP id nv10mr2842098pdb.7.1418905180384; Thu, 18 Dec 2014 04:19:40 -0800 (PST) Received: from seba.sebabeach.org.gmail.com (173-13-178-53-sfba.hfc.comcastbusiness.net. [173.13.178.53]) by mx.google.com with ESMTPSA id b9sm6601820pbu.95.2014.12.18.04.19.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Dec 2014 04:19:39 -0800 (PST) From: Doug Evans To: gdb-patches@sourceware.org Subject: [PATCH 0/6] [PR 17684] Look up primitive types as symbols Date: Thu, 18 Dec 2014 12:19:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00521.txt.bz2 Hi. This is a follow-on to https://sourceware.org/ml/gdb-patches/2014-12/msg00169.html and implements the looking up of primitive types at the appropriate time in the symbol lookup machinery. Namely, after the STATIC_BLOCK of the current compunit has been searched and before anything else. The main piece is allowing symbols to be "owned" by gdbarch, just like types are. The patch is in six parts: 1) new functions symbol_arch, symbol_symtab, symbol_objfile, symbol_set_symtab 2) lookup_symbol_nonlocal routines get langdef parameter 3) rename initialize_symbol -> initialize_objfile_symbol 4) new macro SYMBOL_DOMAIN_BITS 5) basic support for looking up primitive types as symbols 6) c++ support This patch requires the cp-namespace.c cleanup patchset: https://sourceware.org/ml/gdb-patches/2014-12/msg00364.html