Re: Two observations using GDB 13 snapshot

Tom Tromey
2023-01-04T01:03:55Z

>>>>> "Simon" == Simon Marchi <simark@simark.ca> writes:

Simon> It would be interesting to change that strcasecmp call to strcmp, just
Simon> to see if it makes an impact on the performance. Whether or not that
Simon> would be correct is another thing, but it would help see if that
Simon> strcasecmp / tolower call is really at fault here.

My series to fix the template lookup problem avoids strcasecmp in favor
of a hand-written alternative. So, I guess it's possible it would fix
this bug as well. The patch that does this in particular is:

https://sourceware.org/pipermail/gdb-patches/2022-December/194799.html

I wonder if it's possible to do the sort case-sensitively. I thought
this was for Fortran and/or Ada, but I'm not really sure. For instance
it could also possibly be solved by case-folding the lookup name. At
least, that's true for Ada, because GNAT already case-folds the DWARF
names. Not sure about Fortran compilers. Anyway, also not something
I'd want to experiment with just before the release.

Tom