diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-01-12 14:19:49 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-01-12 14:19:49 -0500 |
commit | fe7a351a8ebd62e1c17fc94c3fff1007e0d30bad (patch) | |
tree | 6458673784b8ef02535eba64127405c6c9bf6a9b /gdb | |
parent | 16e9019ef738c251ecfbed512c6835f0f0a424f7 (diff) | |
download | gdb-fe7a351a8ebd62e1c17fc94c3fff1007e0d30bad.zip gdb-fe7a351a8ebd62e1c17fc94c3fff1007e0d30bad.tar.gz gdb-fe7a351a8ebd62e1c17fc94c3fff1007e0d30bad.tar.bz2 |
gdb: move read{now,never}_symbol_files declarations to symfile.h
... since they are defined in symfile.c.
gdb/ChangeLog:
* top.h (readnow_symbol_files, readnever_symbol_files): Move
declarations to ...
* symfile.h: ... here.
* symfile.c: Update doc.
Change-Id: Ie35a80d236bea70947bc496f66f62c8c621670b4
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/symfile.c | 10 | ||||
-rw-r--r-- | gdb/symfile.h | 8 | ||||
-rw-r--r-- | gdb/top.h | 4 |
4 files changed, 23 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 42ef34a..509e739 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca> + * top.h (readnow_symbol_files, readnever_symbol_files): Move + declarations to ... + * symfile.h: ... here. + * symfile.c: Update doc. + +2021-01-12 Simon Marchi <simon.marchi@polymtl.ca> + * target.h (baud_rate, serial_parity): Move declarations... * serial.h: ... here. * main.c: Include serial.h. diff --git a/gdb/symfile.c b/gdb/symfile.c index 82693f9..ec5d34a 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -85,8 +85,14 @@ using clear_symtab_users_cleanup = FORWARD_SCOPE_EXIT (clear_symtab_users); /* Global variables owned by this file. */ -int readnow_symbol_files; /* Read full symbols immediately. */ -int readnever_symbol_files; /* Never read full symbols. */ + +/* See symfile.h. */ + +int readnow_symbol_files; + +/* See symfile.h. */ + +int readnever_symbol_files; /* Functions this file defines. */ diff --git a/gdb/symfile.h b/gdb/symfile.h index a6f8faf..23e2ad8 100644 --- a/gdb/symfile.h +++ b/gdb/symfile.h @@ -641,4 +641,12 @@ extern gdb_bfd_ref_ptr find_separate_debug_file_in_section (struct objfile *); extern bool separate_debug_file_debug; +/* Read full symbols immediately. */ + +extern int readnow_symbol_files; + +/* Never read full symbols. */ + +extern int readnever_symbol_files; + #endif /* !defined(SYMFILE_H) */ @@ -273,10 +273,6 @@ extern void set_prompt (const char *s); extern int gdb_in_secondary_prompt_p (struct ui *ui); -/* From random places. */ -extern int readnow_symbol_files; -extern int readnever_symbol_files; - /* Perform _initialize initialization. */ extern void gdb_init (char *); |