+2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * breakpoint.c (print_solib_event, check_status_catch_solib):
+ Remove struct keyword in range-based for loops.
+ * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
+ * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
+ Likewise.
+ * linespec.c (find_superclass_methods, search_minsyms_for_name):
+ Likewise.
+ * symfile.c (addr_info_make_relative): Likewise.
+ * thread.c (value_in_thread_stack_temporaries): Likewise.
+
2018-05-29 Weimin Pan <weimin.pan@oracle.com>
* minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
current_uiout->text (_(" Inferior loaded "));
ui_out_emit_list list_emitter (current_uiout, "added");
bool first = true;
- for (struct so_list *iter : current_program_space->added_solibs)
+ for (so_list *iter : current_program_space->added_solibs)
{
if (!first)
current_uiout->text (" ");
if (self->is_load)
{
- for (struct so_list *iter : current_program_space->added_solibs)
+ for (so_list *iter : current_program_space->added_solibs)
{
if (!self->regex
|| self->compiled->exec (iter->so_name, 0, NULL, 0) == 0)
static struct partial_symtab *
find_corresponding_bincl_psymtab (const char *name, int instance)
{
- for (struct header_file_location &bincl : *bincl_list)
+ for (const header_file_location &bincl : *bincl_list)
if (bincl.instance == instance
&& strcmp (name, bincl.name) == 0)
return bincl.pst;
return;
gdb_assert (cu->language == language_cplus);
- for (struct delayed_method_info &mi : cu->method_list)
+ for (const delayed_method_info &mi : cu->method_list)
{
const char *physname;
struct fn_fieldlist *fn_flp
rust_union_quirks (struct dwarf2_cu *cu)
{
gdb_assert (cu->language == language_rust);
- for (struct type *type : cu->rust_unions)
- quirk_rust_enum (type, cu->per_cu->dwarf2_per_objfile->objfile);
+ for (type *type_ : cu->rust_unions)
+ quirk_rust_enum (type_, cu->per_cu->dwarf2_per_objfile->objfile);
/* We don't need this any more. */
cu->rust_unions.clear ();
}
{
std::vector<struct type *> new_supers;
- for (struct type *t : superclasses)
+ for (type *t : superclasses)
find_methods (t, name_lang, name, result_names, &new_supers);
if (result_names->size () != old_len || new_supers.empty ())
classification as the very first minsym in the list. */
classification = classify_mtype (MSYMBOL_TYPE (minsyms[0].minsym));
- for (const struct bound_minimal_symbol &item : minsyms)
+ for (const bound_minimal_symbol &item : minsyms)
{
if (classify_mtype (MSYMBOL_TYPE (item.minsym)) != classification)
break;
std::vector<const struct other_sections *>::iterator abfd_sorted_iter
= abfd_addrs_sorted.begin ();
- for (const struct other_sections *sect : addrs_sorted)
+ for (const other_sections *sect : addrs_sorted)
{
const char *sect_name = addr_section_name (sect->name.c_str ());
struct thread_info *tp = find_thread_ptid (ptid);
gdb_assert (tp != NULL && tp->stack_temporaries_enabled);
- for (struct value *v : tp->stack_temporaries)
+ for (value *v : tp->stack_temporaries)
if (v == val)
return true;