This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: PATCH: Remove ancient GNU catch catch/catch throw support
- From: David Carlton <carlton at math dot stanford dot edu>
- To: Andrew Cagney <ac131313 at redhat dot com>
- Cc: Daniel Jacobowitz <drow at mvista dot com>, gdb-patches at sources dot redhat dot com
- Date: 14 Apr 2003 13:11:53 -0700
- Subject: Re: PATCH: Remove ancient GNU catch catch/catch throw support
- References: <20030325030555.GA6101@nevyn.them.org><3E807451.6050009@redhat.com>
[ Going through old e-mail. ]
On Tue, 25 Mar 2003 10:22:57 -0500, Andrew Cagney <ac131313 at redhat dot com> said:
>> This is for either g++ 1.x or early 2.x; it doesn't work for 2.95 which is
>> the oldest C++ compiler we're interested in supporting. I'll commit this in
>> a day or so unless anyone has a good reason not to.
> The statement that GDB doesn't support anything before 2.95 should
> also be formalized. At present there isn't anything in writing :-(
There is the following statement in gdb.texinfo:
Currently, @value{GDBN} works best when debugging C at t{++} code that
is compiled with @value{NGCC} 2.95.3 or with @value{NGCC} 3.1 or
newer, using the options @option{-gdwarf-2} or @option{-gstabs+}.
DWARF 2 is preferred over stabs+. Most configurations of
@value{NGCC} emit either DWARF 2 or stabs+ as their default debug
format, so you usually don't need to specify a debug format
explicitly. Other compilers and/or debug formats are likely to work
badly or not at all when using @value{GDBN} to debug C at t{++} code.
But it probably should be mentioned more prominently somewhere. I'm
not sure exactly what we want to say: we're not going through and
ripping out support for HP's C++ compiler, after all. (At least not
yet...)
David Carlton
carlton at math dot stanford dot edu