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++/11031] gdb terminates when trying to set breakpoint at C++ exception


------- Additional Comments From ppluzhnikov at google dot com  2009-11-30 04:03 -------
Does not reproduce for me using gdb-7.0 (official release) built with "gcc.exe
(GCC) 4.4.0" from:
http://sourceforge.net/projects/mingw/files/GCC%20Version%204/gcc-core-4.4.0-mingw32-bin.tar.gz/download

Here is what I see:

$ cat t.cc
int main(int argc, char *argv[])
{
  if (argc > 1)
    throw 1;
  return 0;
}

$ g++ -g t.cc -o t

$ ~/gdb-7.0/build-mingw32/gdb/gdb ./t.exe
GNU gdb (GDB) 7.0
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from C:\cygwin\tmp/./t.exe...done.
(gdb) catch throw
Catchpoint 1 (throw)
(gdb) run 1
Starting program: C:\cygwin\tmp/./t.exe 1
[New Thread 6736.0x2b8]
Catchpoint 1 (exception thrown), __cxa_throw (obj=0x3f2580, tinfo=0x40e98c,
    dest=0) at ../../../../gcc-4.4.0/libstdc++-v3/libsupc++/eh_throw.cc:66
        in ../../../../gcc-4.4.0/libstdc++-v3/libsupc++/eh_throw.cc
(gdb) Error: dll starting at 0x77d40000 not found.
warning: Can not parse XML library list; XML support was disabled at compile time
Error: dll starting at 0x77d40000 not found.
Error: dll starting at 0x77c20000 not found.
66      ../../../../gcc-4.4.0/libstdc++-v3/libsupc++/eh_throw.cc: No such file
or directory.
where
#0  __cxa_throw (obj=0x3f2580, tinfo=0x40e98c, dest=0)
    at ../../../../gcc-4.4.0/libstdc++-v3/libsupc++/eh_throw.cc:66
#1  0x004013d0 in main (argc=2, argv=0x3f24f8) at t.cc:4
(gdb) c
Continuing.

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
terminate called after throwing an instance of 'int'

Program exited with code 03.
(gdb) q



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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