This is the mail archive of the gdb-patches@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]

Re: [RFA 1/2] Make names in gdbtypes.h,symtab.h const char *.


>>>>> "Doug" == Doug Evans <dje@google.com> writes:

Doug> The concept is trivial: Change the name strings in gdbtypes.h,symtab.h
Doug> from char * to const char *.  Except for a couple of special cases
Doug> (documented in gdbtypes.h), all names do not come from malloc space,
Doug> and are generally freed with the objfile.
Doug> Recording them as const char * is cleaner.

I agree that it is cleaner.
I skimmed this patch and didn't see anything weird.

Tom


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