This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFA: manual updates for c++
- From: Tom Tromey <tromey at redhat dot com>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 11 Nov 2011 08:00:01 -0700
- Subject: Re: RFA: manual updates for c++
- References: <m3mxc3byv7.fsf@fleche.redhat.com> <838vnngj7b.fsf@gnu.org>
>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:
>> Both -gstabs+ and -gdwarf-2 are obsolete nowadays
Eli> On most platforms, but not on all of them. It's true that -gdwarf-2
Eli> is the default, though.
No, -gdwarf-3 is the default. Someday it will be -gdwarf-4. -gdwarf-2
really is obsolete, DWARF 2 is quite ancient and there have been many
important additions since then.
-gstabs+ ... I don't know as much about stabs. My impression is that
they don't handle C++ very well. Certainly on the GCC side nobody puts
any work into them at all, and very little work in GDB.
So, I think that sentence remains true. Perhaps it is untrue on
platforms which are themselves obsolete.
>> + Starting with version
>> +4.7, @value{NGCC} can emit macro information in a more compact format.
Eli> Why is this part important to a GDB user?
A previous sentence mentions that the information is large. Assuming
that this earlier sentence provides any value to the GDB user,
mentioning that the problem can be ameliorated also seems appropriate.
>> + Recent versions of @value{NGCC} support @option{-gdwarf-3}
>> +@option{-gdwarf-4};
Eli> Should there be an "and" between the two option names? They are
Eli> orthogonal, right?
Yes.
Tom