[v2,27/28] Make dw_expand_symtabs_matching_file_matcher static
Checks
| Context |
Check |
Description |
| linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 |
success
|
Build passed
|
| linaro-tcwg-bot/tcwg_gdb_build--master-arm |
success
|
Build passed
|
| linaro-tcwg-bot/tcwg_gdb_check--master-arm |
fail
|
Test failed
|
| linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 |
fail
|
Test failed
|
Commit Message
dw_expand_symtabs_matching_file_matcher is no longer needed outside of
read.c, so it can be made static.
---
gdb/dwarf2/read.c | 11 +++++++++--
gdb/dwarf2/read.h | 9 ---------
2 files changed, 9 insertions(+), 11 deletions(-)
Comments
> @@ -1961,9 +1966,11 @@ dw2_expand_symtabs_matching_one
> return true;
> }
>
> -/* See read.h. */
> +/* If FILE_MATCHER is non-NULL, set all the
> + dwarf2_per_cu_quick_data::MARK of the current DWARF2_PER_OBJFILE
> + that match FILE_MATCHER. */
The name dwarf2_per_cu_quick_data sounds outdated, the comment could
perhaps be refreshed, while at it.
Simon
>>>>> "Simon" == Simon Marchi <simark@simark.ca> writes:
>> @@ -1961,9 +1966,11 @@ dw2_expand_symtabs_matching_one
>> return true;
>> }
>>
>> -/* See read.h. */
>> +/* If FILE_MATCHER is non-NULL, set all the
>> + dwarf2_per_cu_quick_data::MARK of the current DWARF2_PER_OBJFILE
>> + that match FILE_MATCHER. */
Simon> The name dwarf2_per_cu_quick_data sounds outdated, the comment could
Simon> perhaps be refreshed, while at it.
FWIW I updated the comment already when renaming the vectors in that
earlier patch.
Tom
>>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:
>>>>> "Simon" == Simon Marchi <simark@simark.ca> writes:
>>> @@ -1961,9 +1966,11 @@ dw2_expand_symtabs_matching_one
>>> return true;
>>> }
>>>
>>> -/* See read.h. */
>>> +/* If FILE_MATCHER is non-NULL, set all the
>>> + dwarf2_per_cu_quick_data::MARK of the current DWARF2_PER_OBJFILE
>>> + that match FILE_MATCHER. */
Simon> The name dwarf2_per_cu_quick_data sounds outdated, the comment could
Simon> perhaps be refreshed, while at it.
Tom> FWIW I updated the comment already when renaming the vectors in that
Tom> earlier patch.
... but double-checking showed that I didn't update this patch, and also
that the rewritten comment had a typo...
Tom
@@ -843,6 +843,11 @@ static struct dwarf2_section_info *cu_debug_loc_section (struct dwarf2_cu *cu);
static struct dwarf2_section_info *cu_debug_rnglists_section
(struct dwarf2_cu *cu, dwarf_tag tag);
+static void dw_expand_symtabs_matching_file_matcher
+ (dwarf2_per_objfile *per_objfile,
+ auto_bool_vector &marked,
+ expand_symtabs_file_matcher file_matcher);
+
static void get_scope_pc_bounds (struct die_info *,
unrelocated_addr *, unrelocated_addr *,
struct dwarf2_cu *);
@@ -1961,9 +1966,11 @@ dw2_expand_symtabs_matching_one
return true;
}
-/* See read.h. */
+/* If FILE_MATCHER is non-NULL, set all the
+ dwarf2_per_cu_quick_data::MARK of the current DWARF2_PER_OBJFILE
+ that match FILE_MATCHER. */
-void
+static void
dw_expand_symtabs_matching_file_matcher
(dwarf2_per_objfile *per_objfile,
auto_bool_vector &marked,
@@ -1215,15 +1215,6 @@ extern bool dw2_expand_symtabs_matching_one
expand_symtabs_expansion_listener expansion_notify,
expand_symtabs_lang_matcher lang_matcher);
-/* If FILE_MATCHER is non-NULL, set all the
- dwarf2_per_cu_quick_data::MARK of the current DWARF2_PER_OBJFILE
- that match FILE_MATCHER. */
-
-extern void dw_expand_symtabs_matching_file_matcher
- (dwarf2_per_objfile *per_objfile,
- auto_bool_vector &marked,
- expand_symtabs_file_matcher file_matcher);
-
/* Return pointer to string at .debug_str offset STR_OFFSET. */
extern const char *read_indirect_string_at_offset