From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Evgeniy Dushistov Newsgroups: gmane.emacs.bugs Subject: bug#18961: gud Cannot find bounds of current function, but gdb works Date: Wed, 5 Nov 2014 23:26:56 +0300 Message-ID: <20141105202656.GA2831@fifteen> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1415219065 8416 80.91.229.3 (5 Nov 2014 20:24:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Nov 2014 20:24:25 +0000 (UTC) To: 18961@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 05 21:24:18 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xm77q-00059M-4Y for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Nov 2014 21:24:18 +0100 Original-Received: from localhost ([::1]:48423 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm77p-0003Et-No for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Nov 2014 15:24:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm77g-0003En-SM for bug-gnu-emacs@gnu.org; Wed, 05 Nov 2014 15:24:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xm77Z-000689-TJ for bug-gnu-emacs@gnu.org; Wed, 05 Nov 2014 15:24:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53232) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm77Z-000685-Qe for bug-gnu-emacs@gnu.org; Wed, 05 Nov 2014 15:24:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xm77Z-0000Se-LO for bug-gnu-emacs@gnu.org; Wed, 05 Nov 2014 15:24:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Evgeniy Dushistov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Nov 2014 20:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18961 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14152190041698 (code B ref -1); Wed, 05 Nov 2014 20:24:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Nov 2014 20:23:24 +0000 Original-Received: from localhost ([127.0.0.1]:50443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xm76x-0000RJ-UJ for submit@debbugs.gnu.org; Wed, 05 Nov 2014 15:23:24 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50575) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xm72Z-0000JA-31 for submit@debbugs.gnu.org; Wed, 05 Nov 2014 15:18:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xm72S-0004Q2-4X for submit@debbugs.gnu.org; Wed, 05 Nov 2014 15:18:51 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:39426) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm72S-0004Py-26 for submit@debbugs.gnu.org; Wed, 05 Nov 2014 15:18:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm72L-0002bc-VF for bug-gnu-emacs@gnu.org; Wed, 05 Nov 2014 15:18:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xm72F-0004Gj-UO for bug-gnu-emacs@gnu.org; Wed, 05 Nov 2014 15:18:37 -0500 Original-Received: from smtp41.i.mail.ru ([94.100.177.101]:58901) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm72F-0004GP-ES for bug-gnu-emacs@gnu.org; Wed, 05 Nov 2014 15:18:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Content-Type:MIME-Version:Message-ID:Subject:To:From:Date; bh=whPdtX56iZxrVgxTLuOvyuWb9shUmzdGdkLyVlD2b7g=; b=EsEjq6Q8uAusEXwjq5KVniNwK12T9l8YLdRptSbRGj4GIIgJBgjo/SsaXrglT1LDJe/UbKafFGDPbZ0l+lzeANgCN2GXo53f0df9gZs42wNGjd4joW4bceeAg5OANxHCfazICOeYVWK/jCu/XnMEIShdTQ3DbeYr/AR2Sy2HJP8=; Original-Received: from [89.23.194.117] (port=44419 helo=fifteen) by smtp41.i.mail.ru with esmtpa (envelope-from ) id 1Xm72D-0002vc-AM for bug-gnu-emacs@gnu.org; Wed, 05 Nov 2014 23:18:29 +0300 Content-Disposition: inline User-Agent: Mutt/1.5.22 (2013-10-16) X-Spam: Not detected X-Mras: Ok X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Wed, 05 Nov 2014 15:23:22 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:95578 I try debug such simple C++ code( from here: http://www.boost.org/doc/libs/1_55_0/libs/tokenizer/introduc.htm): #include #include #include int main(){ using namespace std; using namespace boost; string s = "This is, a test"; tokenizer<> tok(s); for(tokenizer<>::iterator beg=tok.begin(); beg!=tok.end();++beg){ cout << *beg << "\n"; } } compiled with "g++ -Wall -ggdb test.cpp". using "Next Line" I reach for(tokenizer<>::iterator beg=tok.begin(); beg!=tok.end();++beg) and the I use "Step Line" class iterator_facade in /usr/include/boost/iterator/iterator_facade.hpp, after that "Step Line" stop working, and gud says "Cannot find bounds of current function", bt show #0 0x00007fffffffdd40 in ?? () #1 0x00007ffff7ddb678 in std::string::_Rep::_S_empty_rep_storage () from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/libstdc++.so.6 #2 0x0000000000000000 in ?? () But if I run the same binary in gdb without emacs mediation, and use step on the same line, all works fine, I can step until the end of program, also simple script like this reach the end of main without any problems in plain gdb: br main run while true step end -- /Evgeniy