This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: question about function combobox
- To: Tom Tromey <tromey at redhat dot com>
- Subject: Re: question about function combobox
- From: Keith Seitz <keiths at cygnus dot com>
- Date: Thu, 23 Aug 2001 16:54:13 -0700 (PDT)
- cc: Insight List <insight at sourceware dot cygnus dot com>
On 23 Aug 2001, Tom Tromey wrote:
> Tom> Is there a reason why the function names aren't alphabetical?
> Tom> This would be a simple change in SrcWin::fillFuncCB.
>
> And here it is.
> Ok to commit?
Oddly, I thought that we sorted these already in C. I just looked at
gdb_listfiles and we don't do that at all. How strange!
Please check it in.
Thanks!
Keith
> Index: ChangeLog
> from Tom Tromey <tromey@redhat.com>
>
> * library/srcwin.itb (SrcWin::fillFuncCB): Sort function names.
>
> Index: library/srcwin.itb
> ===================================================================
> RCS file: /cvs/src/src/gdb/gdbtk/library/srcwin.itb,v
> retrieving revision 1.15
> diff -u -r1.15 srcwin.itb
> --- library/srcwin.itb 2001/06/04 15:49:53 1.15
> +++ library/srcwin.itb 2001/08/23 23:48:28
> @@ -386,7 +386,7 @@
> _set_name ""
> return
> }
> - foreach f $listfuncs {
> + foreach f [lsort -increasing $listfuncs] {
> lassign $f func mang
> set _mangled_func($func) $mang
> $_statbar.func list insert end $func
>