diff options
author | Tom Tromey <tromey@redhat.com> | 2008-06-11 00:18:49 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2008-06-11 00:18:49 +0000 |
commit | 711b251097ea6beff11c363fd5006daffa521272 (patch) | |
tree | 22c2159e94ab06ab309cd8278e78f35ba13d3ebe /gcc/c-lex.c | |
parent | 87a04876a13186c1b346ced5d30a6c81e34dde68 (diff) | |
download | gcc-711b251097ea6beff11c363fd5006daffa521272.zip gcc-711b251097ea6beff11c363fd5006daffa521272.tar.gz gcc-711b251097ea6beff11c363fd5006daffa521272.tar.bz2 |
c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file debug hook.
* c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
debug hook.
From-SVN: r136647
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r-- | gcc/c-lex.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c index c3e7f6e..c2a0fa3 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -205,10 +205,13 @@ fe_file_change (const struct line_map *new_map) we already did in compile_file. */ if (!MAIN_FILE_P (new_map)) { - int included_at = LAST_SOURCE_LINE_LOCATION (new_map - 1); + unsigned int included_at = LAST_SOURCE_LINE_LOCATION (new_map - 1); + int line = 0; + if (included_at > BUILTINS_LOCATION) + line = SOURCE_LINE (new_map - 1, included_at); input_location = new_map->start_location; - (*debug_hooks->start_source_file) (included_at, new_map->to_file); + (*debug_hooks->start_source_file) (line, new_map->to_file); #ifndef NO_IMPLICIT_EXTERN_C if (c_header_level) ++c_header_level; |