This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: new 'temp' directory in CVS cinstall contains dependency WIP


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

-- 
=^..^=


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]