question about function combobox
Keith Seitz
keiths@cygnus.com
Thu Aug 23 16:54:00 GMT 2001
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
>
More information about the Insight
mailing list