This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.


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

Re: [srikanth@cup.hp.com: GDB questions]


> OK, who wants to speak to save bcache? -s

The one motivation I can see for avoiding any duplicated strings is that
STREQ() can then reduce to a pointer comparison, since the pointers may
be taken as opaque handles to the "one true" copy of each string.

Does the rest of the code exploit this property? If not, then I suppose
it dates back to the days before obstacks, and probably isn't doing any
good now...

-- 
Todd Whitesel
toddpw @ wrs.com