From patchwork Thu Mar 12 20:00:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Evans X-Patchwork-Id: 5593 Received: (qmail 92488 invoked by alias); 12 Mar 2015 20:00:29 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 92412 invoked by uid 89); 12 Mar 2015 20:00:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mail-oi0-f74.google.com Received: from mail-oi0-f74.google.com (HELO mail-oi0-f74.google.com) (209.85.218.74) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 12 Mar 2015 20:00:26 +0000 Received: by oiba3 with SMTP id a3so1332195oib.0 for ; Thu, 12 Mar 2015 13:00:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:cc:date:message-id:mime-version :content-type; bh=kgFxNaJ2SUNqmPJ1YEFnOe2GAAgBA3kqd2vLCZmnxoE=; b=QALfL+keTy0JpamTNWL0htmmz1BayxYxJ1fkNRYNeiZdw1l1ng4TlvKzCCjqXZLEZe GVb2TPUcR/Ho+3ZWB8iky0TygSOr6Wdf0tgA1AM7oUmV8fEiTQ0swPkW/rXYi3anxdxJ ZrhFRXD9uLf5gqjZR/K1N0+kXYRvzJNXb2HuDJyaBZSeviUnOyZQQYq0kFOLte9yxtO9 FSa4UfgMVrEYTz+3TjlJflaQPsyC2lWfZ/ae+yGCxbTzDfco9EvQdSBgcA6hjEbROcYP +FMDtkWvJuHL4xAUxmEDZ28xICaNDQqmsyav3ZBW39bwbcaGc9aOn+pFFHcDqQ7XEkKi FGPQ== X-Gm-Message-State: ALoCoQlxKXTRrMNtV0BHBOXL1oLIWcuu3NPG7b4u7hJzycomHSEdbjxy5bL3ZVaKLwmX0y7frkxW X-Received: by 10.182.176.35 with SMTP id cf3mr43594863obc.8.1426190423635; Thu, 12 Mar 2015 13:00:23 -0700 (PDT) Received: from corpmail-nozzle1-1.hot.corp.google.com ([100.108.1.104]) by gmr-mx.google.com with ESMTPS id 40si417343yho.6.2015.03.12.13.00.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Mar 2015 13:00:23 -0700 (PDT) Received: from ruffy.mtv.corp.google.com ([172.17.128.44]) by corpmail-nozzle1-1.hot.corp.google.com with ESMTPS id R4nJr3UQ.1; Thu, 12 Mar 2015 13:00:23 -0700 From: Doug Evans To: gdb-patches@sourceware.org Subject: [PATCH 1/6] DWARF Two Level Line Tables cc: ccoutant@google.com Date: Thu, 12 Mar 2015 13:00:22 -0700 Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes Patch 1 is just some minor cleanup I noticed along the way. 2015-03-12 Doug Evans * dwarf2read.c (struct file_entry): Tweak comments. (get_debug_line_section): Tweak comments. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index c185d51..c6f539d 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -1030,8 +1030,10 @@ struct file_entry unsigned int dir_index; unsigned int mod_time; unsigned int length; - int included_p; /* Non-zero if referenced by the Line Number Program. */ - struct symtab *symtab; /* The associated symbol table, if any. */ + /* Non-zero if referenced by the Line Number Program. */ + int included_p; + /* The associated symbol table, if any. */ + struct symtab *symtab; }; /* The line number information for a compilation unit (found in the @@ -17157,8 +17159,7 @@ add_file_name (struct line_header *lh, fe->symtab = NULL; } -/* A convenience function to find the proper .debug_line section for a - CU. */ +/* A convenience function to find the proper .debug_line section for a CU. */ static struct dwarf2_section_info * get_debug_line_section (struct dwarf2_cu *cu)