From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28196 invoked by alias); 7 Nov 2007 06:17:03 -0000 Received: (qmail 28183 invoked by uid 22791); 7 Nov 2007 06:17:02 -0000 X-Spam-Check-By: sourceware.org Received: from mail.sunnorth.com.cn (HELO bjmsw01.sunnorth.com.cn) (124.42.0.200) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 07 Nov 2007 06:16:59 +0000 Received: from maillog.sunnorth.com.cn (unverified [172.20.10.250]) by bjmsw01.sunnorth.com.cn (Clearswift SMTPRS 5.2.9) with ESMTP id for ; Wed, 7 Nov 2007 14:18:44 +0800 Received: from ntns1cn.sunnorth.com.cn (ntns1cn.sunnorth.com.cn [172.20.10.252]) by maillog.sunnorth.com.cn (8.12.10/8.12.10) with ESMTP id lA76wIN5011575 for ; Wed, 7 Nov 2007 14:58:18 +0800 To: gdb@sourceware.org MIME-Version: 1.0 Subject: Question about Dwarf2 for VLIW processor X-Mailer: Lotus Notes Release 6.5 September 26, 2003 Message-ID: From: wangjiong@sunnorth.com.cn Date: Wed, 07 Nov 2007 06:17:00 -0000 Content-Type: text/plain; charset="US-ASCII" Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-11/txt/msg00046.txt.bz2 Dear all: Suppose I have a c file example.c, the 15th line is " int i=1 " ... ... int i=1; // the 15th line ... ... And this statement corresponds to two instruction groups, the first instruction group ranges from from 0x800003c5 to 0x800003ca and the second from 0x800003cb to 0x800003cf. But the dwarf2 information of the line range generated is: Special opcode 89: advance Address by 6 to 0x800003bd and Line by 0 to 14 Special opcode 6: advance Address by 0 to 0x800003bd and Line by 1 to 15 **** Special opcode 117: advance Address by 8 to 0x800003c5 and Line by 0 to 15 **** These three lines should be compressed to one ??? Special opcode 89: advance Address by 6 to 0x800003cb and Line by 0 to 15 **** Special opcode 76: advance Address by 5 to 0x800003d0 and Line by 1 to 16 that is one line for each instruction group which should be one statement. so gdb will think the statement "int i=1" is from 0x800003c5 to 0x800003cb which should be 0x800003c5 to 0x800003cf. How should I handle this situation, wish your advice . Wang Jiong tel:2254