From patchwork Fri Aug 15 23:25:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Evans X-Patchwork-Id: 2405 Received: (qmail 25637 invoked by alias); 15 Aug 2014 23:25:21 -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 25628 invoked by uid 89); 15 Aug 2014 23:25:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ob0-f202.google.com Received: from mail-ob0-f202.google.com (HELO mail-ob0-f202.google.com) (209.85.214.202) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 15 Aug 2014 23:25:19 +0000 Received: by mail-ob0-f202.google.com with SMTP id wp18so715049obc.3 for ; Fri, 15 Aug 2014 16:25:18 -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:date:message-id:mime-version :content-type; bh=usRB3gBJeLu19Q/MHyY2xChXDxFIMIh4oLhaQc7BUdk=; b=YAc4dmR6mxt79T1miLyQoqmbA9hi8B9UFL1fQ24Y9BiRC525CD5Xc8Z0r69q1JkLyC 76NT7gqx3ZQ8v8I9FpdHakLk5Lgq10zXReLy478weyx+nfaGW4ITphUS5zYWnXVFuk5k 3dzbsXfZDprEUq75mjm1Dmfad/6neJpZJy8vfxY5vLd7a3jRinuZmAnUvWcJfVI3bxEO l+8ldJ6qB8ZY3ENKonxH7efEqGiJvoE1xbCJnGe/9ZvQBnCS46hERz6V+oMFRQJFSeYE FPs7ghcDw5iafa3nL7ErrHwDAWFsV7NH5azWQ/ZT2NzjTlOWNk98CvnSmaASccnwtVir sYBg== X-Gm-Message-State: ALoCoQkF039UgmIbtwXm+CNfxjUOCuBZ8LxasZXOmQJNTK9DDxadONFIEnkp0ciNOUQMl4FrncE3QsBAwThjejExzp87wwpjgnPF4SzmcSSWcnhJNJTIh+qlXf7G1ad6mCI2Tfu2Ox+j X-Received: by 10.50.138.167 with SMTP id qr7mr11488449igb.6.1408145118051; Fri, 15 Aug 2014 16:25:18 -0700 (PDT) Received: from corp2gmr1-1.hot.corp.google.com (corp2gmr1-1.hot.corp.google.com [172.24.189.92]) by gmr-mx.google.com with ESMTPS id v20si800766yhe.2.2014.08.15.16.25.18 for (version=TLSv1.1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 Aug 2014 16:25:18 -0700 (PDT) Received: from ruffy.mtv.corp.google.com (ruffy.mtv.corp.google.com [172.17.128.44]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTP id 9FB1B31C4F7 for ; Fri, 15 Aug 2014 16:25:17 -0700 (PDT) From: Doug Evans To: gdb-patches@sourceware.org Subject: [commit] (dwarf_decode_lines_1): Move definition of adj_opcode Date: Fri, 15 Aug 2014 16:25:17 -0700 Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes Hi. Just a simple cleanup. 2014-08-15 Doug Evans * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode closer to use. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 6bc5793..801f05d 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -17182,7 +17182,7 @@ dwarf_decode_lines_1 (struct line_header *lh, const char *comp_dir, const gdb_byte *line_ptr, *extended_end; const gdb_byte *line_end; unsigned int bytes_read, extended_len; - unsigned char op_code, extended_op, adj_opcode; + unsigned char op_code, extended_op; CORE_ADDR baseaddr; struct objfile *objfile = cu->objfile; bfd *abfd = objfile->obfd; @@ -17237,6 +17237,7 @@ dwarf_decode_lines_1 (struct line_header *lh, const char *comp_dir, if (op_code >= lh->opcode_base) { /* Special opcode. */ + unsigned char adj_opcode; adj_opcode = op_code - lh->opcode_base; address += (((op_index + (adj_opcode / lh->line_range))