From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24024 invoked by alias); 29 Oct 2011 07:49:49 -0000 Received: (qmail 24011 invoked by uid 22791); 29 Oct 2011 07:49:46 -0000 X-SWARE-Spam-Status: No, hits=-6.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_SM,TW_TM X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 29 Oct 2011 07:49:27 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p9T7nQo2009838 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 29 Oct 2011 03:49:26 -0400 Received: from host1.jankratochvil.net (ovpn-116-23.ams2.redhat.com [10.36.116.23]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p9T7nOlD013310 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 29 Oct 2011 03:49:25 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p9T7nN4k011413; Sat, 29 Oct 2011 09:49:23 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p9T7nMqh011405; Sat, 29 Oct 2011 09:49:22 +0200 Date: Sat, 29 Oct 2011 10:39:00 -0000 From: Jan Kratochvil To: asmwarrior Cc: gdb@sourceware.org Subject: Re: Why running the next command will jump back to the previous line position Message-ID: <20111029074921.GA11261@host1.jankratochvil.net> References: <4EABA71D.600@gmail.com> <20111029072237.GA3977@host1.jankratochvil.net> <4EABAF25.7060605@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Content-Disposition: inline In-Reply-To: <4EABAF25.7060605@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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: 2011-10/txt/msg00213.txt.bz2 On Sat, 29 Oct 2011 09:45:41 +0200, asmwarrior wrote: > When leaving the main function body, the instruction piece of the destructor > will reached, and gdb just refer to the declaration line. So that gdb put > the current source line back to "std::map m;" again. > > My explanation is right? yes. > I'm not quite sure what DW_LNS_negate_stmt means, any way, I will forward my > question to GCC maillist. DWARF: is_stmt A boolean indicating that the current instruction is a recommended breakpoint location. A recommended breakpoint location is intended to “represent” a line, a statement and/or a semantically distinct subpart of a statement. I am not convinced myself it is right to hide destructor calls; but I am not C++ developer. Regards, Jan