* macrotab.c (macro_include): Use the correct comparison to find
authorJim Blandy <jimb@codesourcery.com>
Fri, 19 Sep 2003 21:51:32 +0000 (21:51 +0000)
committerJim Blandy <jimb@codesourcery.com>
Fri, 19 Sep 2003 21:51:32 +0000 (21:51 +0000)
the appropriate place for this inclusion in the list.

gdb/ChangeLog
gdb/macrotab.c

index 6e5885451b37f4a666a1dc68b9161cb1d945f966..39d5a98d495c329b6d70532312e8a9f342b3fc48 100644 (file)
@@ -1,3 +1,8 @@
+2003-09-19  Jim Blandy  <jimb@redhat.com>
+
+       * macrotab.c (macro_include): Use the correct comparison to find
+       the appropriate place for this inclusion in the list.
+
 2003-09-19  Andrew Cagney  <cagney@redhat.com>
 
        * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
index 4f0761d7dec4f5bbd2701ac1468d67a3644c58ca..56ee2a4c2844d3f8940848b1878d208fa208dbc1 100644 (file)
@@ -426,11 +426,10 @@ macro_include (struct macro_source_file *source,
   struct macro_source_file **link;
 
   /* Find the right position in SOURCE's `includes' list for the new
-     file.  Scan until we find the first file we shouldn't follow ---
-     which is therefore the file we should directly precede --- or
-     reach the end of the list.  */
+     file.  Skip inclusions at earlier lines, until we find one at the
+     same line or later --- or until the end of the list.  */
   for (link = &source->includes;
-       *link && line < (*link)->included_at_line;
+       *link && (*link)->included_at_line < line;
        link = &(*link)->next_included)
     ;
 
This page took 0.045639 seconds and 4 git commands to generate.