all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#18961: gud Cannot find bounds of current function, but gdb works
@ 2014-11-05 20:26 Evgeniy Dushistov
  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
  0 siblings, 2 replies; 5+ messages in thread
From: Evgeniy Dushistov @ 2014-11-05 20:26 UTC (permalink / raw)
  To: 18961

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





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-11-06 20:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-05 20:26 bug#18961: gud Cannot find bounds of current function, but gdb works Evgeniy Dushistov
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

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.