This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/9593] "next" command in a function that throws a C++exception causes GDB to lose control of the inferior
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 14 Nov 2011 14:25:57 +0000
- Subject: [Bug c++/9593] "next" command in a function that throws a C++exception causes GDB to lose control of the inferior
- Auto-submitted: auto-generated
- References: <bug-9593-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=9593
Tom Tromey <tromey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |WAITING
--- Comment #8 from Tom Tromey <tromey at redhat dot com> 2011-11-14 14:25:57 UTC ---
I had to modify your program to get it to compile and link.
It might help if you posted the exact commands you used to do this;
maybe as a Makefile.
Meanwhile, the feature still works for me, even with the modified
program:
Breakpoint 1, main () at main.cpp:27
27 if((errMsg=dlerror())!=NULL)
(gdb) n
33 result = FuncCreator(10, 0);
(gdb) n
0x0000000000400950 35 catch(int)
(gdb) n
37 printf("Catch an exception\n");
In my modified version, the call to FuncCreator throws.
I'm using Fedora 15. It is possible that the problem is a system
problem, as this feature relies on a system feature in order to
work. However, if it works for you in other cases, then it is not
too likely that this is the problem.
--
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.