[Lsb-messages] /var/www/bzr/lsb/devel/build_env r2141: Add more debug info to mkheader's debug mode.

Jeff Licquia licquia at linuxfoundation.org
Fri Aug 23 18:44:50 UTC 2013


------------------------------------------------------------
revno: 2141
committer: Jeff Licquia <licquia at linuxfoundation.org>
branch nick: build_env
timestamp: Fri 2013-08-23 14:44:50 -0400
message:
  Add more debug info to mkheader's debug mode.
  
  Now, we also write comments describing when we postpone including
  certain include files, and why.
modified:
  headers/mkheader
-------------- next part --------------
=== modified file 'headers/mkheader'
--- a/headers/mkheader	2013-08-19 19:07:11 +0000
+++ b/headers/mkheader	2013-08-23 18:44:50 +0000
@@ -514,7 +514,7 @@
             #
             $header_typelist = get_typelist($entry->{'Hid'},1);
             if ($header_typelist) {
-                $select = "SELECT DISTINCT Tid FROM Type ";
+                $select = "SELECT DISTINCT Tid, Tname FROM Type ";
                 $select.= "LEFT JOIN HeaderGroup ON HGid=Theadgroup ";
                 $select.= "LEFT JOIN Header ON Hid=HGheader ";
                 $select.= "LEFT JOIN ArchType ON ATtid=Tid ";
@@ -533,6 +533,11 @@
 
                         $$header_name{$tid} = 1;
                         $$tid{$header_name} = 1;
+
+                        if ($debugmode) {
+                            my $tname = $header_entry->{'Tname'};
+                            print "/* DEBUG: Postponed ".$header_name."; depends on ".$tname.". */\n";
+                        }
                     }
                 } else {
                     print "#include <".$header_name.">\n";



More information about the lsb-messages mailing list