From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5691 invoked by alias); 8 Nov 2007 01:27:05 -0000 Received: (qmail 5682 invoked by uid 22791); 8 Nov 2007 01:27:04 -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; Thu, 08 Nov 2007 01:27:02 +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 ; Thu, 8 Nov 2007 09:28:47 +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 lA828RN5016465 for ; Thu, 8 Nov 2007 10:08:27 +0800 To: gdb@sourceware.org MIME-Version: 1.0 Subject: Re: Question about Dwarf2 for VLIW processor X-Mailer: Lotus Notes Release 6.5 September 26, 2003 Message-ID: From: wangjiong@sunnorth.com.cn Date: Thu, 08 Nov 2007 01:27: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/msg00052.txt.bz2 Dear Joel: I am using GDB6.1.1 GDB did not stop at the wrong location now, but I have see that the function: find_pc_line_pc_range (stop_pc, &step_range_start, &step_range_end) didn`t work correctly. when stop_pc is 0x8000035 the returned value of step_range_start and step_range_end is 0x800003c5 and 0x800003cb but they should be 0x800003c5 and 0x800003cf I have found all these are because there is something wrong with the Dwarf2 .debug_line section. Now every instruction has a entry in this section, maybe it should be every c statement. Cause I can not modify compiler or assembler now, So I want to know How can I solve this problem just within GDB. Thanks. Wang Jiong tel:2254