This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/9593] "next" command in a function that throws a C++exception causes GDB to lose control of the inferior


http://sourceware.org/bugzilla/show_bug.cgi?id=9593

--- Comment #6 from George <zy1st2009 at hotmail dot com> 2011-11-14 07:38:35 UTC ---
Created attachment 6056
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6056
testcase includes 3 c++ files

The attachmnent contains a CDivide class ,which simpley implements a method
a/b. However,if b equals zero ,an exception is thrown . This class is compiled
as a dynamic linked library. And main.cpp loads the library to use its methods.
When debugging main.cpp,if step to "pCd->doDivide()", then run "next" command
,gdb will lose control of the inferor and the program will exit.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]