diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2019-01-07 09:16:16 +0000 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2019-01-08 12:19:40 +0000 |
commit | 583068ca1d855abd09ac979c688f48b0ddaabe0f (patch) | |
tree | 28b2215fa6d4c9b14f0ff9d299a4abfbe4efbc12 /gdb/tui | |
parent | ec98a4ad5bfcba33deb5cb786c023082adbbfb46 (diff) | |
download | gdb-583068ca1d855abd09ac979c688f48b0ddaabe0f.zip gdb-583068ca1d855abd09ac979c688f48b0ddaabe0f.tar.gz gdb-583068ca1d855abd09ac979c688f48b0ddaabe0f.tar.bz2 |
gdb: Move declarations from symtab.h to source.h
Declarations for functions in source.c are split between source.h and
symtab.h. This commit moves the small number that are in symtab.h
into source.h. There's just one file that needs to add an include of
source.h in order to build.
I've moved the function header comments from source.c to source.h
inline with the recommended GDB style.
gdb/ChangeLog:
* source.c (select_source_symtab): Move header comment to
declaration in source.h.
(forget_cached_source_info_for_objfile): Likewise.
(forget_cached_source_info): Likewise.
(identify_source_line): Likewise.
* source.h (identify_source_line): Move declaration from symtab.h
and add comment from source.c
(print_source_lines): Likewise.
(forget_cached_source_info_for_objfile): Likewise.
(forget_cached_source_info): Likewise.
(select_source_symtab): Likewise.
(enum print_source_lines_flag): Move definition from symtab.h.
* symtab.h (identify_source_line): Move declaration to source.h.
(print_source_lines): Likewise.
(forget_cached_source_info_for_objfile): Likewise.
(forget_cached_source_info): Likewise.
(select_source_symtab): Likewise.
(enum print_source_lines_flag): Move definition to source.h.
* tui/tui-hooks.c: Add 'source.h' include.
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/tui-hooks.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/tui/tui-hooks.c b/gdb/tui/tui-hooks.c index b8c18a3..98c6fd6 100644 --- a/gdb/tui/tui-hooks.c +++ b/gdb/tui/tui-hooks.c @@ -33,6 +33,7 @@ #include "ui-out.h" #include "top.h" #include "observable.h" +#include "source.h" #include <unistd.h> #include <fcntl.h> |