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 gdb/21240] arm-none-eabi-gdb crashes on start


https://sourceware.org/bugzilla/show_bug.cgi?id=21240

--- Comment #8 from Yao Qi <qiyao at gcc dot gnu.org> ---
It turns out a libgcc issue.  If C++ program is linked with -static-libgcc and
throws exception, it won't be caught.

$ cat test.cpp 

int main()
{
        try
        {
            throw 0;
        }
        catch (...)
        {
        }

        return 0;
}

$ /opt/local/bin/g++ -static-libgcc test.cpp -o test.exe
$ ./test.exe 
Abort trap: 6
$ /opt/local/bin/g++ --version
g++ (MacPorts gcc5 5.4.0_0) 5.4.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

-- 
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]