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