From patchwork Fri Aug 1 06:25:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 2268 Received: (qmail 18762 invoked by alias); 1 Aug 2014 06:29:28 -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 18753 invoked by uid 89); 1 Aug 2014 06:29:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 01 Aug 2014 06:29:25 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1XD6LC-0004V2-7s from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Thu, 31 Jul 2014 23:29:22 -0700 Received: from SVR-ORW-FEM-06.mgc.mentorg.com ([147.34.97.120]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 31 Jul 2014 23:29:22 -0700 Received: from qiyao.dyndns.org.com (147.34.91.1) by SVR-ORW-FEM-06.mgc.mentorg.com (147.34.97.120) with Microsoft SMTP Server id 14.2.247.3; Thu, 31 Jul 2014 23:29:21 -0700 From: Yao Qi To: Subject: [PATCH] Fix comment in dwarf_decode_lines_1 Date: Fri, 1 Aug 2014 14:25:31 +0800 Message-ID: <1406874331-12901-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 X-IsSubscribed: yes When I read dwarf_decode_lines_1 comments today, it should be called "special opcode" rather than "special operand", as said in DWARF spec. It is obvious to me. I'll push it in if no comments in three days. gdb: 2014-08-01 Yao Qi * dwarf2read.c (dwarf_decode_lines_1): Replace "Special operand" with "Special opcode" in comments. --- gdb/dwarf2read.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 276d2f1..837b1c1 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -17241,7 +17241,8 @@ dwarf_decode_lines_1 (struct line_header *lh, const char *comp_dir, if (op_code >= lh->opcode_base) { - /* Special operand. */ + /* Special opcode. */ + adj_opcode = op_code - lh->opcode_base; address += (((op_index + (adj_opcode / lh->line_range)) / lh->maximum_ops_per_instruction)