Re: [patch] info threads sort by name and name regex matching

Tom Tromey
2012-08-23T16:00:28Z

Sergio> Why not `-r regex'? I think it would be more clear.

Me too.

Sergio> Other commands (`sharedlibrary', `info variables', etc) take a regex as
Sergio> their first argument, without requiring a modifier like `-r'. If the
Sergio> "pipe" patch were already in, this alphabetical sorting would not be
Sergio> needed... Anyway, just thinking here.

Piping is nice but I think it is also good to have options for common
cases.

Sergio> I guess Tom did not suggest this because of performance per se, but
Sergio> rather because if you have to make a list in GDB then it is already a
Sergio> convention to use VEC for these things.

Yeah. I thought it would make the code simpler.

Tom