From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gateway31.websitewelcome.com (gateway31.websitewelcome.com [192.185.143.234]) by sourceware.org (Postfix) with ESMTPS id 105403948495 for ; Fri, 28 Aug 2020 16:59:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 105403948495 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=tom@tromey.com Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway31.websitewelcome.com (Postfix) with ESMTP id A8F85225CC21 for ; Fri, 28 Aug 2020 11:59:41 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id Bhj3kypNQn9FWBhj3kXFyn; Fri, 28 Aug 2020 11:59:41 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=o0DNy423T3E4Hxvz4iGZQwlmMLXaGC1Sarf8NrD4Z2A=; b=wZ/tGsUrWyfkngjAwzEs6qSIHE 9MwPKRTwKs/No3MOT6et7Jv3jjmffTNYYpaYGGx+EvF02Ok9Aj2po05UNJTzaZ1JrRoVMAyGQxVgB hFDpeWh91G8DE2P7DOXK8XHBd; Received: from 71-218-12-75.hlrn.qwest.net ([71.218.12.75]:38728 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1kBhj3-002p85-EA; Fri, 28 Aug 2020 10:59:41 -0600 From: Tom Tromey To: Jaydeep Chauhan via Gdb Subject: Re: Line number zero in line table gives incorrect debugging experince with gdb In-Reply-To: (Jaydeep Chauhan via Gdb's message of "Thu, 27 Aug 2020 20:32:56 +0530") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) X-Attribution: Tom Date: Fri, 28 Aug 2020 10:59:39 -0600 Message-ID: <87h7sm905g.fsf@tromey.com> MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 71.218.12.75 X-Source-L: No X-Exim-ID: 1kBhj3-002p85-EA X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 71-218-12-75.hlrn.qwest.net (bapiya) [71.218.12.75]:38728 X-Source-Auth: tom+tromey.com X-Email-Count: 17 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Status: No, score=-3028.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, JMQ_SPF_NEUTRAL, RCVD_IN_ABUSEAT, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_NEUTRAL, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Aug 2020 16:59:43 -0000 >>>>> "Jaydeep" == Jaydeep Chauhan via Gdb writes: Jaydeep> We have a situation with GDB(latest trunk) and below testcase Jaydeep> referred for further discussion : I tried git master gdb today on the gdb.o you sent, and I see a different result. I can't run the program in question, but setting a breakpoint seemed to work: (gdb) b main Breakpoint 1 at 0x1c: file gdb.c, line 5. I somewhat expected this, because some fixes here have landed, in particular: commit 876518dd0a0b6fd6f4ad0a0b247db0d6a267db27 Author: Tom de Vries Date: Sat Jul 25 00:23:06 2020 +0200 [gdb/symtab] Ignore zero line table entries Does your tree include this commit? If so, then I wonder why I see something different. If not, could you update to (at least) this revision and then try again? Maybe it's been fixed. Tom