Constify target_pass_signals and target_program_signals
[external/binutils.git] / gdb / ChangeLog
1 2019-01-14  Tom Tromey  <tom@tromey.com>
2
3         * target-debug.h (target_debug_print_signals): Constify.
4         * nto-procfs.c (nto_procfs_target::pass_signals): Update.
5         * procfs.c (procfs_target::pass_signals): Update.
6         * linux-nat.c (linux_nat_target::pass_signals): Update.
7         * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
8         * target-delegates.c: Rebuild.
9         * remote.c (remote_target::program_signals): Update.
10         (remote_target::pass_signals): Update.
11         * target.c (target_pass_signals): Constify argument.
12         (target_program_signals): Likewise.
13         * target.h (struct target_ops) <pass_signals, program_signals>:
14         Constify argument.
15         (target_pass_signals, target_program_signals): Constify argument.
16
17 2019-01-14  Tom Tromey  <tom@tromey.com>
18
19         PR tui/28819:
20         * tui/tui-io.c (gdb_wgetch): Print \r when needed.
21
22 2019-01-14  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
23
24         * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
25         field.
26         * rs6000-tdep.c: Include reggroups.h.
27         (IS_V_ALIAS_PSEUDOREG): Define.
28         (rs6000_register_name): Return names for the "vX" aliases.
29         (rs6000_pseudo_register_type): Return type for the "vX" aliases.
30         (rs6000_pseudo_register_reggroup_p): Restore.  Handle "vX"
31         aliases.  Call default_register_reggroup_p for all other
32         pseudo-registers.
33         (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
34         New functions.
35         (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
36         Handle "vX" aliases.
37         (v_alias_pseudo_register_collect): New function.
38         (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
39         (rs6000_gdbarch_init): Initialize "vX" aliases as
40         pseudo-registers.  Restore registration of
41         rs6000_pseudo_register_reggroup_p with
42         set_tdesc_pseudo_register_reggroup_p.
43
44 2019-01-13  Max Filippov  <jcmvbkbc@gmail.com>
45
46         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
47         tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
48         set_gdbarch_num_pseudo_regs.
49
50 2019-01-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
51
52         * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
53         Remove arg prefixname, add do_set and do_show.
54         Add member functions set_list and show_list.
55         * cli/cli-style.c (class cli_style_option): Update accordingly.
56         (style_set_list): Move to file scope.
57         (style_show_list): Likewise.
58         (set_style): Call help_list.
59         (show_style): Call cmd_show_list.
60         (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
61         Update to use the new macro.
62
63 2019-10-12  Joel Brobecker  <brobecker@adacore.com>
64
65         * ada-lang.c (_initialize_ada_language): Expand the help text
66         for the "catch exception" command.
67
68 2019-01-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
69
70         * symtab.c (matching_obj_sections): Initialize obj,
71         declare it closer to its usage.
72
73 2019-01-10  Tom Tromey  <tom@tromey.com>
74
75         * thread-iter.h (inf_threads_iterator): Use next_iterator.
76         (basic_inf_threads_range): Remove.
77         (inf_threads_range, inf_non_exited_threads_range)
78         (safe_inf_threads_range): Use next_adapter.
79
80 2019-01-10  Keith Seitz  <keiths@redhat.com>
81
82         PR gdb/23712
83         PR symtab/23010
84         * dwarf2read.c (dw2_add_symbol_to_list): Remove.
85         (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
86
87 2019-01-10  Keith Seitz  <keiths@redhat.com>
88
89         PR gdb/23712
90         PR symtab/23010
91         * dictionary.c (pending_to_vector): Remove.
92         (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
93         Remove _1 suffix, replacing functions of the same name.  Update
94         all callers.
95         (dict_create_hashed, dict_create_hashed_expandable)
96         (dict_create_linear, dict_create_linear_expandable, dict_free)
97         (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
98         Make functions static.
99
100 2019-01-10  Keith Seitz  <keiths@redhat.com>
101
102         PR gdb/23712
103         PR symtab/23010
104         * dictionary.h (struct dictionary): Replace declaration with
105         multidictionary.
106         (dict_create_hashed, dict_create_hashed_expandable)
107         (dict_create_linear, dict_create_linear_expandable)
108         (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
109         (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
110         (dict_iter_match_next, dict_size): Rename to "mdict_" versions
111         taking multidictionary argument.
112         [ALL_DICT_SYMBOLS]: Update for multidictionary.
113         * block.h (struct block) <dict>: Change to multidictionary
114         and rename `multidict'.
115         * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
116         symmisc.c: Update all dictionary references to multidictionary.
117
118 2019-01-10  Keith Seitz  <keiths@redhat.com>
119
120         PR gdb/23712
121         PR symtab/23010
122         * dictionary.c: Include unordered_map.
123         (pending_to_vector): New function.
124         (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
125         Rewrite the non-"_1" functions to take vector instead
126         of linked list.
127         (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
128         "new" _1 versions of the same name.
129         (multidictionary): Define.
130         (std::hash<enum language): New definition.
131         (collate_pending_symbols_by_language, mdict_create_hashed)
132         (mdict_create_hashed_expandable, mdict_create_linear)
133         (mdict_create_linear_expandable, mdict_free)
134         (find_language_dictionary, create_new_language_dictionary)
135         (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
136         (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
137         (mdict_size, mdict_empty): New functions.
138         * dictionary.h (mdict_iterator): Define.
139
140 2019-01-10  Pedro Alves  <palves@redhat.com>
141
142         * breakpoint.c (read_uploaded_action)
143         (create_tracepoint_from_upload): Adjust to use
144         gdb::unique_xmalloc_ptr.
145         * ctf.c (ctf_write_uploaded_tp):
146         (SET_ARRAY_FIELD): Use emplace_back.
147         (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
148         * tracefile-tfile.c (tfile_write_uploaded_tp):
149         * tracepoint.c (parse_tracepoint_definition): Adjust to use
150         gdb::unique_xmalloc_ptr.
151         * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
152         at_string, cond_string, cmd_strings>: Replace char pointers
153         with gdb::unique_xmalloc_ptr.
154
155 2019-01-10  Pedro Alves  <palves@redhat.com>
156
157         * solib-target.c (library_list_start_library): Don't xstrdup name.
158
159 2019-01-10  Pedro Alves  <palves@redhat.com>
160
161         * mdebugread.c (parse_partial_symbols): Use
162         gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
163
164 2019-01-10  Andrew Burgess  <andrew.burgess@embecosm.com>
165
166         * linux-fork.c (scoped_switch_fork_info)
167         <~scoped_switch_fork_info>: Fix incorrect variable name.
168
169 2019-01-10  Andrew Burgess  <andrew.burgess@embecosm.com>
170
171         * linux-fork.c (scoped_switch_fork_info)
172         <scoped_switch_fork_info>: Make explicit.
173         <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
174
175 2019-01-10  Tom Tromey  <tom@tromey.com>
176
177         * objfiles.h (objfile::reset_psymtabs): Update.
178         * objfiles.c (objfile::objfile): Update.
179         * psymtab.h (psymtab_storage::obstack): Update.
180         (psymtab_storage::m_obstack): Use gdb::optional.
181         (class psymtab_storage): Update comment.  Remove objfile
182         parameter.
183         * psymtab.c (psymtab_storage::psymtab_storage): Update.
184
185 2019-01-10  Tom Tromey  <tom@tromey.com>
186
187         * psymtab.h (psymtab_storage::allocate_psymtab): New method.
188         <free_psymtabs>: Now private.
189         * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
190         (allocate_psymtab): Use new method.
191
192 2019-01-10  Tom Tromey  <tom@tromey.com>
193
194         * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
195         * psymtab.h (psymtab_storage::allocate_dependencies): New method.
196         * mdebugread.c (parse_partial_symbols): Use
197         allocate_dependencies.
198         * dwarf2read.c (dwarf2_create_include_psymtab): Use
199         allocate_dependencies.
200         (process_psymtab_comp_unit_reader)
201         (build_type_psymtab_dependencies): Likewise.
202         * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
203
204 2019-01-10  Tom Tromey  <tom@tromey.com>
205
206         * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
207         PSYMBOL_SET_LANGUAGE.
208         (allocate_psymtab): Allocate psymtab on the psymtab obstack.
209
210 2019-01-10  Tom Tromey  <tom@tromey.com>
211
212         * psymtab.h (psymtab_storage::obstack): New method.
213         <m_obstack>: Rename from obstack; now private.
214         * psymtab.c (psymtab_storage): Update.
215         * dwarf2read.c (create_addrmap_from_index)
216         (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
217         Update.
218
219 2019-01-10  Tom Tromey  <tom@tromey.com>
220
221         * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
222         * objfiles.h (objfile::reset_psymtabs): New method.
223
224 2019-01-10  Tom Tromey  <tom@tromey.com>
225
226         * symmisc.c (print_symbol_bcache_statistics): Update.
227         (print_objfile_statistics): Update.
228         * symfile.c (reread_symbols): Update.
229         * psymtab.h (class psymtab_storage): New.
230         * psymtab.c (psymtab_storage): New constructor.
231         (~psymtab_storage): New destructor.
232         (require_partial_symbols): Update.
233         (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
234         (find_pc_sect_psymtab, find_pc_sect_psymbol)
235         (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
236         (psym_dump, recursively_search_psymtabs, psym_has_symbols)
237         (psym_find_compunit_symtab_by_address, sort_pst_symbols)
238         (start_psymtab_common, end_psymtab_common)
239         (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
240         (allocate_psymtab): Update.
241         (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
242         Update.
243         (dump_psymtab_addrmap, maintenance_print_psymbols)
244         (maintenance_check_psymtabs): Update.
245         (class objfile_psymtabs): Move to objfiles.h.
246         * psympriv.h (discard_psymtab): Now inline.
247         (psymtab_discarder::psymtab_discarder): Update.
248         (psymtab_discarder::~psymtab_discarder): Update.
249         (ALL_OBJFILE_PSYMTABS): Rewrite.
250         * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
251         free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
252         Remove fields.
253         <partial_symtabs>: New field.
254         (class objfile_psymtabs): Move from psymtab.h.  Update.
255         * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
256         psymbol_cache.
257         (objfile::~objfile): Don't destroy psymbol_cache.
258         * mdebugread.c (parse_partial_symbols): Update.
259         * dwarf2read.c (create_addrmap_from_index)
260         (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
261         (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
262         (add_partial_subprogram, dwarf2_ranges_read): Update.
263         * dwarf-index-write.c (write_address_map)
264         (write_one_signatured_type, recursively_write_psymbols)
265         (class debug_names, class debug_names, write_psymtabs_to_index):
266         Update.
267
268 2019-01-10  Tom Tromey  <tom@tromey.com>
269
270         * symtab.h (SYMBOL_SET_NAMES): Update.
271         (symbol_set_names): Update.
272         (MSYMBOL_SET_NAMES): Update.
273         * symtab.c (symbol_set_names): Change argument to be an
274         objfile_per_bfd_storage.
275         * psymtab.c (add_psymbol_to_bcache): Update.
276         * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
277
278 2019-01-10  Tom Tromey  <tom@tromey.com>
279
280         * symtab.c (create_demangled_names_hash): Change argument to be an
281         objfile_per_bfd_storage.
282         (symbol_set_names): Update.
283
284 2019-01-10  Tom Tromey  <tom@tromey.com>
285
286         * xcoffread.c (xcoff_initial_scan): Unconditionally call
287         init_psymbol_list.
288         * psymtab.c (init_psymbol_list): Do nothing if already called.
289         * psympriv.h (init_psymbol_list): Add comment.
290         * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
291         init_psymbol_list.
292         * dbxread.c (dbx_symfile_read): Unconditionally call
293         init_psymbol_list.
294
295 2019-01-10  Tom Tromey  <tom@tromey.com>
296
297         * xcoffread.c (scan_xcoff_symtab): Update.
298         * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
299         "where".
300         * mdebugread.c (parse_partial_symbols)
301         (handle_psymbol_enumerators): Update.
302         * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
303         * dbxread.c (read_dbx_symtab): Update.
304         * psympriv.h (psymbol_placement): New enum.
305         (add_psymbol_to_list): Update.
306
307 2019-01-10  Tom Tromey  <tom@tromey.com>
308
309         * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
310         static_psymbols parameters.
311         (scan_xcoff_symtab): Update.
312         * psymtab.c (start_psymtab_common): Remove global_psymbols and
313         static_psymbols parameters.
314         * psympriv.h (start_psymtab_common): Update.
315         * mdebugread.c (parse_partial_symbols): Update.
316         * dwarf2read.c (create_partial_symtab): Update.
317         * dbxread.c (read_dbx_symtab): Update.
318         (start_psymtab): Remove global_psymbols and static_psymbols
319         parameters.
320
321 2019-01-10  Tom Tromey  <tom@tromey.com>
322
323         * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
324         * psymtab.c (allocate_psymtab): Add comment.
325         * psympriv.h (allocate_psymtab): Add comment.
326         * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
327         initializations.
328         * dbxread.c (dbx_end_psymtab): Remove some initializations.
329
330 2019-01-10  Tom Tromey  <tom@tromey.com>
331
332         * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
333         Don't declare.
334         * mipsread.c: Include mdebugread.h.
335         * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
336         Declare.
337         * elfread.c: Include mdebugread.h.
338
339 2019-01-09  Tom Tromey  <tom@tromey.com>
340
341         * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
342         * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
343         * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
344         (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
345         (psym_lookup_symbol, psym_find_last_source_symtab)
346         (psym_forget_cached_source_info, psym_print_stats)
347         (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
348         (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
349         (psym_map_matching_symbols, psym_expand_symtabs_matching)
350         (psym_find_compunit_symtab_by_address)
351         (maintenance_print_psymbols, maintenance_info_psymtabs)
352         (maintenance_check_psymtabs): Use ranged for.
353         * psymtab.h (class objfile_psymtabs): New.
354         (require_partial_symbols): Return objfile_psymtabs.
355         * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
356
357 2019-01-09  Tom Tromey  <tom@tromey.com>
358
359         * symfile.c (overlay_invalidate_all, find_pc_overlay)
360         (find_pc_mapped_section, list_overlays_command)
361         (map_overlay_command, unmap_overlay_command)
362         (simple_overlay_update): Use all_objfiles.
363         * spu-tdep.c (spu_overlay_update): Use all_objfiles.
364         * printcmd.c (info_symbol_command): Use all_objfiles.
365         * objfiles.h (ALL_OBJSECTIONS): Remove.
366         * maint.c (maintenance_translate_address): Use all_objfiles.
367         * gcore.c (gcore_create_callback): Use all_objfiles.
368         (objfile_find_memory_regions): Likewise.
369
370 2019-01-09  Tom Tromey  <tom@tromey.com>
371
372         * symtab.c (find_line_symtab, info_sources_command)
373         (make_source_files_completion_list): Use objfile_compunits.
374         * source.c (select_source_symtab): Use objfile_compunits.
375         * objfiles.h (struct objfile): Update comment.
376         (ALL_OBJFILES): Remove.
377         (ALL_FILETABS): Remove.
378         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
379         objfile_compunits.
380
381 2019-01-09  Tom Tromey  <tom@tromey.com>
382
383         * symmisc.c (print_objfile_statistics, dump_objfile)
384         (maintenance_print_symbols): Use compunit_filetabs.
385         * source.c (forget_cached_source_info_for_objfile): Use
386         compunit_filetabs.
387         * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
388         (ALL_FILETABS): Use compunit_filetabs.
389         * objfiles.c (objfile_relocate1): Use compunit_filetabs.
390         * coffread.c (coff_symtab_read): Use compunit_filetabs.
391
392 2019-01-09  Tom Tromey  <tom@tromey.com>
393
394         * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
395         (compunit_filetabs): New.
396         * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
397         compunit_filetabs.
398         (info_sources_command, make_source_files_completion_list): Remove
399         declaration.
400         * symmisc.c (print_objfile_statistics, dump_objfile)
401         (maintenance_print_symbols): Remove declaration.
402         (maintenance_info_symtabs): Use compunit_filetabs.
403         (maintenance_info_line_tables): Likewise.
404         * source.c (select_source_symtab): Change local variable name.
405         (forget_cached_source_info_for_objfile): Remove declaration.
406         * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
407         * objfiles.c (objfile_relocate1): Remove declaration.
408         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
409         declaration.
410         * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
411         * coffread.c (coff_symtab_read): Remove declaration.
412         * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
413         compunit_filetabs.
414
415 2019-01-09  Tom Tromey  <tom@tromey.com>
416
417         * symtab.c (lookup_objfile_from_block)
418         (find_pc_sect_compunit_symtab, search_symbols)
419         (default_collect_symbol_completion_matches_break_on): Use
420         objfile_compunits.
421         * objfiles.h (ALL_COMPUNITS): Remove.
422         * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
423         * cp-support.c (add_symbol_overload_list_qualified): Use
424         objfile_compunits.
425         * ada-lang.c (ada_collect_symbol_completion_matches)
426         (ada_add_global_exceptions): Use objfile_compunits.
427
428 2019-01-09  Tom Tromey  <tom@tromey.com>
429
430         * source.c (select_source_symtab)
431         (forget_cached_source_info_for_objfile): Remove declaration.
432         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
433         declaration.
434         * maint.c (count_symtabs_and_blocks): Remove declaration.
435         * cp-support.c (add_symbol_overload_list_qualified): Remove
436         declaration.
437         * coffread.c (coff_symtab_read): Remove declaration.
438         * symtab.c (lookup_symbol_in_objfile_symtabs)
439         (basic_lookup_transparent_type_1): Use objfile_compunits.
440         (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
441         (info_sources_command, search_symbols)
442         (default_collect_symbol_completion_matches_break_on)
443         (make_source_files_completion_list): Remove declaration.
444         * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
445         (ada_collect_symbol_completion_matches)
446         (ada_add_global_exceptions): Remove declaration.
447         * linespec.c (iterate_over_all_matching_symtabs): Use
448         objfile_compunits.
449         * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
450         (class objfile_compunits): New.
451         (ALL_COMPUNITS): Use objfile_compunits.
452         * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
453         (maintenance_check_symtabs, maintenance_info_line_tables): Use
454         objfile_compunits.
455         * objfiles.c (objfile_relocate1): Use objfile_compunits.
456
457 2019-01-09  Tom Tromey  <tom@tromey.com>
458
459         * symtab.c (search_symbols)
460         (default_collect_symbol_completion_matches_break_on): Use
461         objfile_msymbols.
462         * ada-lang.c (ada_lookup_simple_minsym)
463         (ada_collect_symbol_completion_matches): Use objfile_msymbols.
464         * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
465         * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
466         objfile_msymbols.
467         * coffread.c (coff_symfile_read): Use objfile_msymbols.
468         * symmisc.c (dump_msymbols): Use objfile_msymbols.
469         * objc-lang.c (find_methods): Use objfile_msymbols.
470         (info_selectors_command, info_classes_command): Likewise.
471         * stabsread.c (scan_file_globals): Use objfile_msymbols.
472         * objfiles.h (class objfile_msymbols): New.
473         (ALL_OBJFILE_MSYMBOLS): Remove.
474         (ALL_MSYMBOLS): Remove.
475
476 2019-01-09  Tom Tromey  <tom@tromey.com>
477
478         * common/next-iterator.h (next_adapter): Add Iterator template
479         parameter.
480         * objfiles.h (ALL_OBJFILES_SAFE): Remove.
481         (class all_objfiles_safe): New.
482         * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
483         * objfiles.c (put_objfile_before): Update comment.
484         (add_separate_debug_objfile): Likewise.
485         (free_all_objfiles): Use all_objfiles_safe.
486         (objfile_purge_solibs): Likewise.
487
488 2019-01-09  Tom Tromey  <tom@tromey.com>
489
490         * symtab.c (iterate_over_symtabs, matching_obj_sections)
491         (expand_symtab_containing_pc, lookup_static_symbol)
492         (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
493         (find_symbol_at_address, find_line_symtab, find_main_name): Use
494         all_objfiles.
495         * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
496         * breakpoint.c (create_overlay_event_breakpoint)
497         (create_longjmp_master_breakpoint)
498         (create_std_terminate_master_breakpoint)
499         (create_exception_master_breakpoint): Use all_objfiles.
500         * linux-thread-db.c (try_thread_db_load_from_pdir)
501         (has_libpthread): Use all_objfiles.
502         * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
503         * linespec.c (iterate_over_all_matching_symtabs)
504         (search_minsyms_for_name): Use all_objfiles.
505         * maint.c (maintenance_info_sections): Use all_objfiles.
506         * main.c (captured_main_1): Use all_objfiles.
507         * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
508         * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
509         * guile/scm-pretty-print.c
510         (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
511         * solib-spu.c (append_ocl_sos): Use all_objfiles.
512         * symmisc.c (maintenance_print_symbols): Use all_objfiles.
513         (maintenance_print_msymbols): Use all_objfiles.
514         * source.c (select_source_symtab): Use all_objfiles.
515         * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
516         * symfile.c (remove_symbol_file_command)
517         (expand_symtabs_matching, map_symbol_filenames): Use
518         all_objfiles.
519         * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
520         all_objfiles.
521         * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
522         * objc-lang.c (find_methods): Use all_objfiles.
523         * objfiles.c (have_partial_symbols, have_full_symbols)
524         (have_minimal_symbols, qsort_cmp)
525         (default_iterate_over_objfiles_in_search_order): Use
526         all_objfiles.
527         * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
528         * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
529         (maintenance_check_psymtabs): Use all_objfiles.
530         (ALL_PSYMTABS): Remove.
531         * compile/compile-object-run.c (do_module_cleanup): Use
532         all_objfiles.
533         * blockframe.c (find_pc_partial_function): Use all_objfiles.
534         * cp-support.c (add_symbol_overload_list_qualified): Use
535         all_objfiles.
536         * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
537         Use all_objfiles.
538         * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
539         * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
540         all_objfiles.
541         * python/py-objfile.c (objfpy_lookup_objfile_by_name)
542         (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
543         * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
544         Uses all_objfiles.
545         * solib.c (solib_read_symbols): Use all_objfiles
546
547 2019-01-09  Tom Tromey  <tom@tromey.com>
548
549         * probe.c (parse_probes_in_pspace): Use all_objfiles.
550         * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
551         all_objfiles.
552         * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
553         * symmisc.c (print_symbol_bcache_statistics)
554         (print_objfile_statistics, maintenance_print_objfiles)
555         (maintenance_info_symtabs, maintenance_check_symtabs)
556         (maintenance_expand_symtabs, maintenance_info_line_tables): Use
557         all_objfiles.
558         * source.c (forget_cached_source_info): Use all_objfiles.
559         * symfile-debug.c (set_debug_symfile): Use all_objfiles.
560         * elfread.c (elf_gnu_ifunc_resolve_by_cache)
561         (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
562         * objfiles.c (update_section_map): Use all_objfiles.
563         (shared_objfile_contains_address_p): Likewise.
564         * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
565         * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
566
567 2019-01-09  Tom Tromey  <tom@tromey.com>
568
569         * common/next-iterator.h: New file.
570         * objfiles.h (class all_objfiles): New.
571         (struct objfile_iterator): New.
572
573 2019-01-09  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
574
575         * NEWS: Move the description of the changed "frame", "select-frame",
576          and "info frame" commands to the Changed commands section.
577
578 2019-01-09  Simon Marchi  <simon.marchi@ericsson.com>
579
580         * gdbtypes.c (check_stub_method_group): Remove handling of old
581         mangling schemes.
582         * linespec.c (find_methods): Likewise.
583         * stabsread.c (read_member_functions): Likewise.
584         * valops.c (search_struct_method): Likewise.
585         (value_struct_elt_for_reference): Likewise.
586         * NEWS: Mention this change.
587
588 2019-01-09  Andrew Burgess  <andrew.burgess@embecosm.com>
589
590         * cli/cli-cmds.c (list_command): Pass a source_lines_range to
591         print_source_lines.
592         * source.c (print_source_lines_base): Update line number check.
593         (print_source_lines): New function.
594         (source_lines_range::source_lines_range): New function.
595         * source.h (class source_lines_range): New class.
596         (print_source_lines): New declaration.
597
598 2019-01-09  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
599
600         * linespec.c (linespec_state_destructor): Free self->canonical_names.
601
602 2019-01-08  Tom Tromey  <tom@tromey.com>
603             Simon Marchi  <simon.marchi@ericsson.com>
604
605         PR gdb/24060
606         * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
607         * ada-lex.l (DOLLAR_VARIABLE): Likewise.
608         * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
609         * f-exp.y (DOLLAR_VARIABLE): Likewise.
610         * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
611         * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
612
613 2019-01-08  Andrew Burgess  <andrew.burgess@embecosm.com>
614
615         * source.c (select_source_symtab): Move header comment to
616         declaration in source.h.
617         (forget_cached_source_info_for_objfile): Likewise.
618         (forget_cached_source_info): Likewise.
619         (identify_source_line): Likewise.
620         * source.h (identify_source_line): Move declaration from symtab.h
621         and add comment from source.c
622         (print_source_lines): Likewise.
623         (forget_cached_source_info_for_objfile): Likewise.
624         (forget_cached_source_info): Likewise.
625         (select_source_symtab): Likewise.
626         (enum print_source_lines_flag): Move definition from symtab.h.
627         * symtab.h (identify_source_line): Move declaration to source.h.
628         (print_source_lines): Likewise.
629         (forget_cached_source_info_for_objfile): Likewise.
630         (forget_cached_source_info): Likewise.
631         (select_source_symtab): Likewise.
632         (enum print_source_lines_flag): Move definition to source.h.
633         * tui/tui-hooks.c: Add 'source.h' include.
634
635 2019-01-08  Andrew Burgess  <andrew.burgess@embecosm.com>
636
637         * source.c (print_source_lines_base): Handle requests to print
638         reverse line number sequences, and guard against empty lines
639         string.
640
641 2019-01-08  Andrew Burgess  <andrew.burgess@embecosm.com>
642
643         * source.c (print_source_lines_base): Fix skip of '\r' if next
644         character is '\n'.
645
646 2019-01-06  Tom Tromey  <tom@tromey.com>
647
648         * c-exp.y (struct c_parse_state) <macro_original_text,
649         expansion_obstack>: New member.
650         (macro_original_text, expansion_obstack): Remove globals.
651         (scan_macro_expansion, scanning_macro_expansion)
652         (finished_macro_expansion): Update.
653         (scan_macro_cleanup): Remove.
654         (yylex, c_parse): Update.
655
656 2019-01-06  Tom Tromey  <tom@tromey.com>
657
658         * c-exp.y (struct c_parse_state) <strings>: New member.
659         (operator_stoken): Update.
660
661 2019-01-06  Tom Tromey  <tom@tromey.com>
662
663         * parser-defs.h (type_ptr): Remove typedef.  Don't declare VEC.
664         (union type_stack_elt) <typelist_val>: Now a pointer to
665         std::vector.
666         (type_stack_cleanup): Don't declare.
667         (push_typelist): Update.
668         * parse.c (pop_typelist): Return a std::vector.
669         (push_typelist): Take a std::vector.
670         (follow_types): Update.  Do not free args.
671         (type_stack_cleanup): Remove.
672         * c-exp.y (struct c_parse_state): New.
673         (cpstate): New global.
674         (type_aggregate_p, exp, ptr_operator, parameter_typelist)
675         (nonempty_typelist): Update.
676         (func_mod): Create a new vector.
677         (c_parse): Create a c_parse_state.
678         (check_parameter_typelist): Do not delete params.
679         (function_method): Update.  Do not delete type_list.
680
681 2019-01-06  Tom Tromey  <tom@tromey.com>
682
683         PR gdb/28155:
684         * python/py-finishbreakpoint.c (bpfinishpy_init): Use
685         check_typedef.
686         * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
687         (print_return_value): Likewise.
688
689 2019-01-05  Tom Tromey  <tom@tromey.com>
690
691         * contrib/cleanup_check.py: Remove.
692         * contrib/gcc-with-excheck: Remove.
693         * contrib/exsummary.py: Remove.
694         * contrib/excheck.py: Remove.
695
696 2019-01-05  Joel Brobecker  <brobecker@adacore.com>
697
698         * thread.c (delete_thread_1): Add gdb_assert that THR is not
699         NULL. Initialize tpprev to NULL instead of assigning it
700         to NULL on the next statement.
701         * windows-nat.c (windows_delete_thread): Remove check for
702         main_thread_id before printing thread exit notifications.
703         (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
704         Remove thread ID check against main_thread_id.
705         <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
706         windows_delete_thread.
707         <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
708
709 2019-01-04  Tom Tromey  <tom@tromey.com>
710
711         * compile/compile.c (_initialize_compile): Use upper case for
712         metasyntactic variables.
713         * symmisc.c (_initialize_symmisc): Use upper case for
714         metasyntactic variables.
715         * psymtab.c (_initialize_psymtab): Use upper case for
716         metasyntactic variables.
717         * demangle.c (demangle_command): Use upper case for metasyntactic
718         variables.
719         (_initialize_demangler): Likewise.
720         * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
721         variables.
722
723 2019-01-03  Tom Tromey  <tom@tromey.com>
724
725         * tui/tui-source.c (tui_set_source_content): Use xstrdup.
726
727 2019-01-03  Tom Tromey  <tom@tromey.com>
728
729         * python/py-symtab.c (salpy_str): Update.
730         (struct salpy_sal_object) <symtab>: Now a PyObject.
731         (salpy_dealloc): Update.
732         (del_objfile_sal): Use gdbpy_ref.
733
734 2019-01-03  Tom Tromey  <tom@tromey.com>
735
736         * python/py-type.c (convert_field): Use new_reference.  Return
737         gdbpy_ref.
738         (make_fielditem): Return gdbpy_ref.
739         (typy_fields): Update.
740         (typy_getitem): Update.
741         (field_name): Return gdbpy_ref.  Use new_reference.
742         (typy_iterator_iternext): Update.
743
744 2019-01-03  Tom Tromey  <tom@tromey.com>
745
746         * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
747
748 2019-01-03  Tom Tromey  <tom@tromey.com>
749
750         * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
751         * python/py-type.c (typy_fields_items): Use gdbpy_ref.
752         * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
753         (pspy_set_frame_filters, pspy_set_frame_unwinders)
754         (pspy_set_type_printers): Likewise.
755         * python/py-function.c (fnpy_init): Use gdbpy_ref.
756         * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
757         * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
758         (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
759         (objfpy_set_type_printers): Likewise.
760
761 2019-01-03  Tom Tromey  <tom@tromey.com>
762
763         * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
764         (gdbpy_print_stack): Use gdbpy_err_fetch.
765         * python/python-internal.h (class gdbpy_err_fetch): New class.
766         (class gdbpy_enter) <m_error_type, m_error_value,
767         m_error_traceback>: Remove.
768         <m_error>: New member.
769         (gdbpy_exception_to_string): Don't declare.
770         * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
771         * python/py-value.c (convert_value_from_python): Use
772         gdbpy_err_fetch.
773         * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
774         gdbpy_exception_to_string.
775         (gdbpy_handle_exception): Use gdbpy_err_fetch.
776         * python/py-prettyprint.c (print_stack_unless_memory_error): Use
777         gdbpy_err_fetch.
778
779 2019-01-03  Andrew Burgess  <andrew.burgess@embecosm.com>
780
781         * linux-nat.c (delete_lwp_cleanup): Delete.
782         (struct lwp_deleter): New struct.
783         (lwp_info_up): New typedef.
784         (linux_nat_target::follow_fork): Delete cleanup, and make use of
785         lwp_info_up.
786
787 2019-01-03  Andrew Burgess  <andrew.burgess@embecosm.com>
788
789         * linux-fork.c (class scoped_switch_fork_info): New class.
790         (inferior_call_waitpid): Update to use scoped_switch_fork_info.
791
792 2019-01-03  Andrew Burgess  <andrew.burgess@embecosm.com>
793
794         * valops.c (find_overload_match): Remove use of null_cleanup, and
795         calls to do_cleanups.
796
797 2019-01-03  Andrew Burgess  <andrew.burgess@embecosm.com>
798
799         * compile/compile-cplus-types.c
800         (compile_cplus_instance::decl_name): Handle changes to
801         cp_func_name.
802         * cp-support.c (cp_func_name): Update header comment, update
803         return type.
804         * cp-support.h (cp_func_name): Update return type in declaration.
805         * valops.c (find_overload_match): Move temp_func local to top
806         level of function and change its type.  Use temp_func to hold and
807         delete temporary string obtained from cp_func_name.
808
809 2019-01-03  Andrew Burgess  <andrew.burgess@embecosm.com>
810
811         * remote.c (remote_target::remote_check_symbols): Convert `msg` to
812         gdb::char_vector, remove cleanup, and update uses of `msg`.
813
814 2019-01-03  Jim Wilson  <jimw@sifive.com>
815
816         * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
817
818 2019-01-02  Tom Tromey  <tom@tromey.com>
819
820         * xml-tdesc.c (xml_cache): Hold a target_desc_up.
821         (tdesc_parse_xml): Remove cleanups.
822         * target-descriptions.h (make_cleanup_free_target_description):
823         Don't declare.
824         (target_desc_deleter): New struct.
825         (target_desc_up): New typedef.
826         * target-descriptions.c (target_desc_deleter::operator()): Rename
827         from free_target_description.
828         (make_cleanup_free_target_description): Remove.
829
830 2019-01-02  Tom Tromey  <tom@tromey.com>
831
832         * linespec.c (struct linespec_parser): Rename from ls_parser.  Add
833         constructor, destructor.
834         (linespec_parser): Remove typedef.
835         (~linespec_parser): Rename from linespec_parser_delete.
836         (linespec_lex_to_end, linespec_complete_label)
837         (linespec_complete): Update.
838         (decode_line_full): Remove cleanups.
839         (decode_line_1): Update.
840
841 2019-01-02  Tom Tromey  <tom@tromey.com>
842
843         * python/python-internal.h (inferior_to_inferior_object): Change
844         return type.
845         * python/py-exitedevent.c (create_exited_event_object): Update.
846         * python/py-inferior.c (inferior_to_inferior_object): Return
847         gdbpy_ref.
848         (python_new_inferior, python_inferior_deleted)
849         (thread_to_thread_object, delete_thread_object)
850         (build_inferior_list, gdbpy_selected_inferior): Update.
851         * python/py-infthread.c (create_thread_object): Update.  Also fail
852         if inferior_to_inferior_object fails.
853
854 2019-01-02  Simon Marchi  <simon.marchi@ericsson.com>
855
856         * inferior.h (class inferior) <displaced_step_state>: New field.
857         * infrun.h (struct displaced_step_state): Move here from
858         infrun.c.  Initialize fields, add constructor.
859         <inf>: Remove field.
860         <reset>: New method.
861         * infrun.c (struct displaced_step_inferior_state): Move to
862         infrun.h.
863         (displaced_step_inferior_states): Remove.
864         (get_displaced_stepping_state): Adust.
865         (displaced_step_in_progress_any_inferior): Adjust.
866         (displaced_step_in_progress_thread): Adjust.
867         (displaced_step_in_progress): Adjust.
868         (add_displaced_stepping_state): Remove.
869         (get_displaced_step_closure_by_addr): Adjust.
870         (remove_displaced_stepping_state): Remove.
871         (infrun_inferior_exit): Call displaced_step_state.reset.
872         (use_displaced_stepping): Don't check for NULL.
873         (displaced_step_prepare_throw): Call
874         get_displaced_stepping_state.
875         (displaced_step_fixup): Don't check for NULL.
876         (prepare_for_detach): Don't check for NULL.
877
878 2019-01-02  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
879
880         * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
881          in case of call that did not complete.
882
883 2019-01-02  Andrey Utkin  <autkin@undo.io>
884
885         * symfile.c (find_separate_debug_file): Fix search of debug files for
886         remote debuggee.
887
888 2019-01-02  Tom Tromey  <tom@tromey.com>
889
890         * python/py-inferior.c (gdbpy_initialize_inferior): Fix
891         indentation.
892         * python/py-frame.c (frapy_older): Remove cast.
893         (frapy_newer): Likewise.
894         * python/py-breakpoint.c (local_setattro): Remove cast.
895         * python/py-arch.c (archpy_name): Remove local variable.
896         * python/py-type.c (gdbpy_lookup_type): Remove cast.
897
898 2019-01-02  Joel Brobecker  <brobecker@adacore.com>
899
900         * unittests/basic_string_view/element_access/char/empty.cc:
901         Fix year range in copyright header.
902
903 2019-01-01  Andrew Burgess  <andrew.burgess@embecosm.com>
904
905         * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
906         Delete.
907         <operator==>: Update with for removed field.
908         <hash>: Likewise.
909         * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
910         <isa_features>: ...this.
911         <abi_features>: New field.
912         (riscv_isa_flen): Update comment.
913         (riscv_abi_xlen): New declaration.
914         (riscv_abi_flen): New declaration.
915         * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
916         isa_features.
917         (riscv_abi_xlen): New function.
918         (riscv_isa_flen): Update to get answer from isa_features.
919         (riscv_abi_flen): New function.
920         (riscv_has_fp_abi): Update to get answer from abi_features.
921         (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
922         xlen and flen.
923         (riscv_call_info) <xlen, flen>: Update comment.
924         (riscv_call_arg_struct): Remove invalid assertions
925         (riscv_features_from_gdbarch_info): Update now hw_float_abi field
926         is removed.
927         (riscv_gdbarch_init): Gather isa features and abi features
928         separately, ensure both match on the gdbarch when reusing an old
929         gdbarch.  Relax an error check to allow 32-bit abi float to run on
930         a target with 64-bit float hardware.
931
932 2019-01-01  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
933
934         * source.c (search_command_helper): Stop reverse search
935         when line 1 has been searched.
936
937 2019-01-01  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
938
939         * record-full.c (record_full_base_target::close): Rewrite
940         record_full_core_buf_list free logic.
941
942 2019-01-01  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
943
944         * break-catch-syscall.c (print_one_catch_syscall): xfree
945         the last text.
946
947 2019-01-01  Joel Brobecker  <brobecker@adacore.com>
948
949         * top.c (print_gdb_version): Update Copyright year in version
950         message.
951
952 2019-01-01  Joel Brobecker  <brobecker@adacore.com>
953
954         Update copyright year range in all GDB files.
955
956 2019-01-01  Joel Brobecker  <brobecker@adacore.com>
957
958         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
959
960 For older changes see ChangeLog-2018.
961 \f
962 Local Variables:
963 mode: change-log
964 left-margin: 8
965 fill-column: 74
966 version-control: never
967 coding: utf-8
968 End:
969