all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Evgeniy Dushistov <dushistov@mail.ru>
To: 18961@debbugs.gnu.org
Subject: bug#18961: gud Cannot find bounds of current function, but gdb works
Date: Wed, 5 Nov 2014 23:26:56 +0300	[thread overview]
Message-ID: <20141105202656.GA2831@fifteen> (raw)

I try debug such simple C++ code(
from here: http://www.boost.org/doc/libs/1_55_0/libs/tokenizer/introduc.htm):

#include<iostream>
#include<boost/tokenizer.hpp>
#include<string>

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





             reply	other threads:[~2014-11-05 20:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-05 20:26 Evgeniy Dushistov [this message]
2014-11-05 20:43 ` bug#18961: gud Cannot find bounds of current function, but gdb works: version info Evgeniy Dushistov
2014-11-06 16:12 ` bug#18961: gud Cannot find bounds of current function, but gdb works Eli Zaretskii
2014-11-06 20:45   ` Evgeniy Dushistov
2014-11-06 20:45     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141105202656.GA2831@fifteen \
    --to=dushistov@mail.ru \
    --cc=18961@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.