Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com From: "Gerrit P. Haase" Organization: Esse keine toten Tiere To: Date: Tue, 25 Sep 2001 11:05:52 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: new 'temp' directory in CVS cinstall contains dependency WIP Reply-to: gp AT familiehaase DOT de Message-ID: <3BB06510.18664.4B9F5BD6@localhost> In-reply-to: <0cc101c144cd$b249ccd0$0200a8c0@lifelesswks> X-mailer: Pegasus Mail for Win32 (v3.12cDE) X-Hops: 1 X-Sender: 320081107336-0001 AT t-dialin DOT net Something here is wrong (choose.cc, line 796): cat->name stays always at "Shells": for (Category *cat = pkg->category; cat; cat = cat->next) { /* insert the package under this category in the list. If this category is not visible, add it */ int n=0; while (n < nlines) { /* this should be a generic call to list_sort_cmp */ if (lines[n].get_category () && cat->name == lines[n].get_category ()->name) { insert_under (n, line); n++; } n++; } if (n == nlines) { /* the category wasn't visible - insert at the end */ insert_category (cat, CATEGORY_COLLAPSED); insert_pkg (pkg); } } Breakpoint 1, _view::insert_pkg (this=0x531720, pkg=0x1036418) at /winsup/src/winsup/cinstall/choose.cc:776 776 { 17: this = (_view *) 0x531720 13: line = {pkg = 0x7801296e, cat = 0x18} 11: pkg->category = (Category *) 0x533ee0 7: this->nlines = 7 1: pkg = (Package *) 0x1036418 (gdb) next 778 if (pkg->exclude) 17: this = (_view *) 0x531720 13: line = {pkg = 0x7801296e, cat = 0x18} 11: pkg->category = (Category *) 0x533ee0 7: this->nlines = 7 1: pkg = (Package *) 0x1036418 (gdb) next 780 line.set_line (pkg); 17: this = (_view *) 0x531720 13: line = {pkg = 0x7801296e, cat = 0x18} 11: pkg->category = (Category *) 0x533ee0 7: this->nlines = 7 1: pkg = (Package *) 0x1036418 (gdb) next 781 if (view_mode != VIEW_CATEGORY) 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 7: this->nlines = 7 1: pkg = (Package *) 0x1036418 (gdb) next 796 for (Category *cat = pkg->category; cat; cat = cat->next) 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 800 int n=0; 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 7 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 801 while (n < nlines) 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 0 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 804 if (lines[n].get_category () 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 0 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 805 && cat->name == lines[n].get_category ()->name) 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 0 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 810 n++; 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 0 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 804 if (lines[n].get_category () 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 1 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 805 && cat->name == lines[n].get_category ()->name) 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 1 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 810 n++; 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 1 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 804 if (lines[n].get_category () 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 2 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 805 && cat->name == lines[n].get_category ()->name) 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 2 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 810 n++; 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 2 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 804 if (lines[n].get_category () 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 3 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 805 && cat->name == lines[n].get_category ()->name) 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 3 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 807 insert_under (n, line); 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 3 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 808 n++; 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 3 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 807 insert_under (n, line); 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 4 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 808 n++; 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 4 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 810 n++; 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 4 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 804 if (lines[n].get_category () 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 5 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 805 && cat->name == lines[n].get_category ()->name) 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 5 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 810 n++; 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 5 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 804 if (lines[n].get_category () 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 6 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 805 && cat->name == lines[n].get_category ()->name) 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 6 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 810 n++; 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 6 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 812 if (n == nlines) 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 7 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 815 insert_category (cat, CATEGORY_COLLAPSED); 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 7 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next 816 insert_pkg (pkg); 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 8: n = 7 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) next Breakpoint 1, _view::insert_pkg (this=0x531720, pkg=0x1036418) at /winsup/src/winsup/cinstall/choose.cc:776 776 { 17: this = (_view *) 0x531720 13: line = {pkg = 0x7801296e, cat = 0x18} 11: pkg->category = (Category *) 0x533ee0 7: this->nlines = 7 1: pkg = (Package *) 0x1036418 (gdb) next 778 if (pkg->exclude) 17: this = (_view *) 0x531720 13: line = {pkg = 0x7801296e, cat = 0x18} 11: pkg->category = (Category *) 0x533ee0 7: this->nlines = 7 1: pkg = (Package *) 0x1036418 (gdb) next 780 line.set_line (pkg); 17: this = (_view *) 0x531720 13: line = {pkg = 0x7801296e, cat = 0x18} 11: pkg->category = (Category *) 0x533ee0 7: this->nlines = 7 1: pkg = (Package *) 0x1036418 (gdb) next 781 if (view_mode != VIEW_CATEGORY) 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 7: this->nlines = 7 1: pkg = (Package *) 0x1036418 (gdb) next 796 for (Category *cat = pkg->category; cat; cat = cat->next) 17: this = (_view *) 0x531720 13: line = {pkg = 0x1036418, cat = 0x0} 11: pkg->category = (Category *) 0x533ee0 10: cat->next = (_Category *) 0x533ea0 9: cat = (Category *) 0x533ee0 7: this->nlines = 7 6: cat->name = 0x533ed0 "Shells" 1: pkg = (Package *) 0x1036418 (gdb) Gerrit -- =^..^=