diff options
author | Jim Blandy <jimb@codesourcery.com> | 2003-09-19 21:51:32 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2003-09-19 21:51:32 +0000 |
commit | 9b297dc70e998cf7c9d34134e5a128307e6bf594 (patch) | |
tree | 173033d0681491cc67a3e15b3245f5b7b79e3f13 /gdb/macrotab.c | |
parent | b98a99af0ebd8ca8c467044f5ac3dc655b715aff (diff) | |
download | gdb-9b297dc70e998cf7c9d34134e5a128307e6bf594.tar.gz |
* macrotab.c (macro_include): Use the correct comparison to find
the appropriate place for this inclusion in the list.
Diffstat (limited to 'gdb/macrotab.c')
-rw-r--r-- | gdb/macrotab.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/macrotab.c b/gdb/macrotab.c index 4f0761d7dec..56ee2a4c284 100644 --- a/gdb/macrotab.c +++ b/gdb/macrotab.c @@ -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) ; |