Remove make_bpstat_clear_actions_cleanup
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
694c6bf5
TT
12019-01-23 Tom Tromey <tom@tromey.com>
2 Andrew Burgess <andrew.burgess@embecosm.com>
3 Pedro Alves <palves@redhat.com>
4
5 * infrun.c (fetch_inferior_event): Use scope_exit.
6 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
7 * top.c (execute_command): Use scope_exit.
8 * breakpoint.c (bpstat_do_actions): Use scope_exit.
9 * utils.c (do_bpstat_clear_actions_cleanup)
10 (make_bpstat_clear_actions_cleanup): Remove.
11
4c41382a
TT
122019-01-23 Tom Tromey <tom@tromey.com>
13 Pedro Alves <palves@redhat.com>
14
15 * infrun.c: Include "common/scope-exit.h"
16 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
17 (wait_for_inferior): Use SCOPE_EXIT.
18 (fetch_inferior_event): Use scope_exit.
19
89f8fb50
TT
202019-01-23 Tom Tromey <tom@tromey.com>
21 Pedro Alves <palves@redhat.com>
22
23 * breakpoint.c (create_breakpoint): Remove cleanup.
24
5419bdae
TT
252019-01-23 Tom Tromey <tom@tromey.com>
26 Andrew Burgess <andrew.burgess@embecosm.com>
27 Pedro Alves <palves@redhat.com>
28
e587ef42
PA
292019-01-23 Pedro Alves <palves@redhat.com>
30
31 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
32
77f0e74c
PA
332019-01-23 Pedro Alves <palves@redhat.com>
34 Andrew Burgess <andrew.burgess@embecosm.com>
35
36 * gdbthread.h: Include "common/forward-scope-exit.h".
37 (scoped_finish_thread_state): Redefine custom class in terms of
38 forward_scope_exit.
39
5b9b3e53
PA
402019-01-23 Pedro Alves <palves@redhat.com>
41 Andrew Burgess <andrew.burgess@embecosm.com>
42
43 * common/forward-scope-exit.h: New file.
44
54b65c9b
PA
452019-01-23 Pedro Alves <palves@redhat.com>
46 Andrew Burgess <andrew.burgess@embecosm.com>
47 Tom Tromey <tom@tromey.com>
48
49 * common/scope-exit.h: New file.
50
cf08fb29
PA
512019-01-23 Pedro Alves <palves@redhat.com>
52
53 * common/preprocessor.h (ESC): Rename to ...
54 (ESC_PARENS): ... this.
55 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
56 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
57
ae73e2e2
TT
582019-01-23 Tom Tromey <tom@tromey.com>
59
60 * language.h (class scoped_switch_to_sym_language_if_auto):
61 Initialize m_lang in both cases.
62
6594e122
AH
632019-01-23 Alan Hayward <alan.hayward@arm.com>
64
65 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
66 with XCNEW.
67
a7c9855d
TT
682019-01-22 Tom Tromey <tom@tromey.com>
69
70 * corelow.c: Do not include sys/file.h.
71
93cc1d53
TT
722019-01-22 Tom Tromey <tom@tromey.com>
73
74 * tui/tui-wingeneral.h: Include gdb_curses.h.
75
38561778
TT
762019-01-22 Tom Tromey <tom@tromey.com>
77
78 * source-cache.h (class source_cache) <get_source_lines,
79 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
80
37b3ab5b
TT
812019-01-22 Tom Tromey <tom@tromey.com>
82
83 * remote-fileio.h (struct remote_target): Declare.
84
3fabc016
TT
852019-01-22 Tom Tromey <tom@tromey.com>
86
87 * python/py-arch.c: Do not include py-ref.h.
88 * python/py-bpevent.c: Do not include py-ref.h.
89 * python/py-cmd.c: Do not include py-ref.h.
90 * python/py-continueevent.c: Do not include py-ref.h.
91 * python/py-event.h: Do not include py-ref.h.
92 * python/py-evtregistry.c: Do not include py-ref.h.
93 * python/py-finishbreakpoint.c: Do not include py-ref.h.
94 * python/py-frame.c: Do not include py-ref.h.
95 * python/py-framefilter.c: Do not include py-ref.h.
96 * python/py-function.c: Do not include py-ref.h.
97 * python/py-infevents.c: Do not include py-ref.h.
98 * python/py-linetable.c: Do not include py-ref.h.
99 * python/py-objfile.c: Do not include py-ref.h.
100 * python/py-param.c: Do not include py-ref.h.
101 * python/py-prettyprint.c: Do not include py-ref.h.
102 * python/py-progspace.c: Do not include py-ref.h.
103 * python/py-symbol.c: Do not include py-ref.h.
104 * python/py-symtab.c: Do not include py-ref.h.
105 * python/py-type.c: Do not include py-ref.h.
106 * python/py-unwind.c: Do not include py-ref.h.
107 * python/py-utils.c: Do not include py-ref.h.
108 * python/py-value.c: Do not include py-ref.h.
109 * python/py-varobj.c: Do not include py-ref.h.
110 * python/py-xmethods.c: Do not include py-ref.h.
111 * python/python.c: Do not include py-ref.h.
112 * varobj.c: Do not include py-ref.h.
113
6b4d7774
TT
1142019-01-22 Tom Tromey <tom@tromey.com>
115
116 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
117 keyword for bcache.
118
7af7e9b5
TT
1192019-01-22 Tom Tromey <tom@tromey.com>
120
121 * compile/compile-cplus-types.c: Remove a comment by #include.
122
951d1049
TT
1232019-01-22 Tom Tromey <tom@tromey.com>
124
125 * compile/gcc-c-plugin.h: Include compile-internal.h.
126
d65d5705
TT
1272019-01-22 Tom Tromey <tom@tromey.com>
128
129 * stabsread.c (EXTERN): Do not define.
130 (symnum, next_symbol_text_func, processing_gcc_compilation)
131 (within_function, global_sym_chain, global_stabs)
132 (previous_stab_code, this_object_header_files)
133 (n_this_object_header_files)
134 (n_allocated_this_object_header_files): Define.
135 * stabsread.h (EXTERN): Never define. Use "extern".
136
b6fb1ee5
PW
1372019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
138
139 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
140 history_value.
141
be6d4f74
TT
1422019-01-21 Tom Tromey <tom@tromey.com>
143
144 * ui-out.c: Fix includes.
145 * tui/tui-source.c: Fix includes.
146 * target.c: Fix includes.
147 * remote.c: Fix includes.
148 * regcache.c: Fix includes.
149 * python/py-block.c: Fix includes.
150 * printcmd.c: Fix includes.
151 * or1k-tdep.c: Fix includes.
152 * mi/mi-main.c: Fix includes.
153 * m32r-tdep.c: Fix includes.
154 * csky-tdep.c: Fix includes.
155 * compile/compile-cplus-types.c: Fix includes.
156 * cli/cli-interp.c: Fix includes.
157
73021deb
AH
1582019-01-21 Alan Hayward <alan.hayward@arm.com>
159
160 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
161 for padding.
162
7932255d
TT
1632019-01-16 Tom Tromey <tom@tromey.com>
164
165 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
166 earlier.
167 (struct objfile) <msymbols_range>: Move from top level.
168 <msymbols>: New method.
169 (class objfile_msymbols): Remove.
170 * symtab.c (default_collect_symbol_completion_matches_break_on):
171 Update.
172 * symmisc.c (dump_msymbols): Update.
173 * stabsread.c (scan_file_globals): Update.
174 * objc-lang.c (info_selectors_command, info_classes_command)
175 (find_methods): Update.
176 * minsyms.c (find_solib_trampoline_target): Update.
177 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
178 * coffread.c (coff_symfile_read): Update.
179 * ada-lang.c (ada_lookup_simple_minsym)
180 (ada_collect_symbol_completion_matches): Update.
181
604b1bfb
TT
1822019-01-16 Tom Tromey <tom@tromey.com>
183
184 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
185 type. Remove no-argument constructor.
186 <iterator::operator++>: Simplify.
187 <begin>: Update.
188 <end>: Use minimal_symbol_count.
189
f252c6d5
TT
1902019-01-16 Tom Tromey <tom@tromey.com>
191
192 * objfiles.h (struct objfile) <psymtabs>: New method.
193 (class objfile_psymtabs): Remove.
194 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
195 typedef.
196 <range>: New method.
197 (require_partial_symbols): Change return type.
198 * psymtab.c (require_partial_symbols)
199 (psym_expand_symtabs_matching): Update.
200 * mdebugread.c (parse_partial_symbols): Update.
201 * dbxread.c (dbx_end_psymtab): Update.
202
b669c953
TT
2032019-01-15 Tom Tromey <tom@tromey.com>
204
205 * symtab.c (lookup_objfile_from_block)
206 (lookup_symbol_in_objfile_symtabs)
207 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
208 (find_line_symtab, info_sources_command)
209 (default_collect_symbol_completion_matches_break_on)
210 (make_source_files_completion_list): Update.
211 * symmisc.c (print_objfile_statistics, dump_objfile)
212 (maintenance_print_symbols, maintenance_info_symtabs)
213 (maintenance_check_symtabs, maintenance_info_line_tables):
214 Update.
215 * source.c (select_source_symtab)
216 (forget_cached_source_info_for_objfile): Update.
217 * objfiles.h (class objfile_compunits): Remove.
218 (struct objfile) <compunits_range>: New typedef.
219 (compunits): New method.
220 * objfiles.c (objfile_relocate1): Update.
221 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
222 * maint.c (count_symtabs_and_blocks): Update.
223 * linespec.c (iterate_over_all_matching_symtabs): Update.
224 * cp-support.c (add_symbol_overload_list_qualified): Update.
225 * coffread.c (coff_symtab_read): Update.
226 * ada-lang.c (add_nonlocal_symbols)
227 (ada_collect_symbol_completion_matches)
228 (ada_add_global_exceptions): Update.
229
7e955d83
TT
2302019-01-15 Tom Tromey <tom@tromey.com>
231
232 * progspace.h (program_space) <objfiles_safe_range>: New
233 typedef.
234 <objfiles_safe>: New method.
235 * objfiles.h (class all_objfiles_safe): Remove.
236 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
237 * jit.c (jit_inferior_exit_hook): Update.
238
2030c079
TT
2392019-01-17 Tom Tromey <tom@tromey.com>
240
241 * progspace.h (program_space) <objfiles_range>: New typedef.
242 <objfiles>: New method.
243 <objfiles_head>: Rename from objfiles.
244 (object_files): Update.
245 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
246 * guile/scm-pretty-print.c
247 (ppscm_find_pretty_printer_from_objfiles): Update.
248 * guile/scm-objfile.c (gdbscm_objfiles): Update.
249 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
250 Update.
251 * python/py-progspace.c (pspy_get_objfiles): Update.
252 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
253 Update.
254 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
255 (objfpy_lookup_objfile_by_build_id): Update.
256 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
257 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
258 Update.
259 * symtab.c (iterate_over_symtabs, matching_obj_sections)
260 (expand_symtab_containing_pc, lookup_objfile_from_block)
261 (lookup_static_symbol, basic_lookup_transparent_type)
262 (find_pc_sect_compunit_symtab, find_symbol_at_address)
263 (find_line_symtab, info_sources_command)
264 (default_collect_symbol_completion_matches_break_on)
265 (make_source_files_completion_list, find_main_name): Update.
266 * symmisc.c (print_symbol_bcache_statistics)
267 (print_objfile_statistics, maintenance_print_symbols)
268 (maintenance_print_msymbols, maintenance_print_objfiles)
269 (maintenance_info_symtabs, maintenance_check_symtabs)
270 (maintenance_expand_symtabs, maintenance_info_line_tables):
271 Update.
272 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
273 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
274 (map_overlay_command, unmap_overlay_command)
275 (simple_overlay_update, expand_symtabs_matching)
276 (map_symbol_filenames): Update.
277 * symfile-debug.c (set_debug_symfile): Update.
278 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
279 Update.
280 * source.c (select_source_symtab, forget_cached_source_info):
281 Update.
282 * solib.c (solib_read_symbols): Update.
283 * solib-spu.c (append_ocl_sos): Update.
284 * psymtab.c (maintenance_print_psymbols)
285 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
286 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
287 * printcmd.c (info_symbol_command): Update.
288 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
289 Update.
290 * objfiles.h (class all_objfiles): Remove.
291 * objfiles.c (have_partial_symbols, have_full_symbols)
292 (have_minimal_symbols, qsort_cmp, update_section_map)
293 (shared_objfile_contains_address_p)
294 (default_iterate_over_objfiles_in_search_order): Update.
295 * objc-lang.c (info_selectors_command, info_classes_command)
296 (find_methods): Update.
297 * minsyms.c (find_solib_trampoline_target): Update.
298 * maint.c (maintenance_info_sections)
299 (maintenance_translate_address, count_symtabs_and_blocks):
300 Update.
301 * main.c (captured_main_1): Update.
302 * linux-thread-db.c (try_thread_db_load_from_pdir)
303 (has_libpthread): Update.
304 * linespec.c (iterate_over_all_matching_symtabs)
305 (search_minsyms_for_name): Update.
306 * jit.c (jit_find_objf_with_entry_addr): Update.
307 * hppa-tdep.c (find_unwind_entry)
308 (hppa_lookup_stub_minimal_symbol): Update.
309 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
310 Update.
311 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
312 (elf_gnu_ifunc_resolve_by_got): Update.
313 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
314 * dwarf-index-write.c (save_gdb_index_command): Update.
315 * cp-support.c (add_symbol_overload_list_qualified): Update.
316 * breakpoint.c (create_overlay_event_breakpoint)
317 (create_longjmp_master_breakpoint)
318 (create_std_terminate_master_breakpoint)
319 (create_exception_master_breakpoint): Update.
320 * blockframe.c (find_pc_partial_function): Update.
321 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
322 (ada_collect_symbol_completion_matches)
323 (ada_add_global_exceptions): Update.
324
776489e0
TT
3252019-01-17 Tom Tromey <tom@tromey.com>
326
327 * solib-target.c (lm_info_target_p): Remove typedef. Don't
328 declare VEC.
329 (solib_target_parse_libraries): Change return type.
330 (library_list_start_segment, library_list_start_section)
331 (library_list_end_library, library_list_start_library); Update.
332 (solib_target_free_library_list): Remove.
333 (solib_target_parse_libraries): Remove cleanup. Change return
334 type.
335 (solib_target_current_sos): Update.
336
6471e7d2
TT
3372019-01-17 Tom Tromey <tromey@bapiya>
338
339 * valprint.c: Replace "the the" with "the".
340 * symtab.c: Replace "the the" with "the".
341 * solib.c: Replace "the the" with "the".
342 * solib-dsbt.c: Replace "the the" with "the".
343 * linespec.c: Replace "the the" with "the".
344 * dwarf2loc.h: Replace "the the" with "the".
345 * amd64-windows-tdep.c: Replace "the the" with "the".
346 * aarch64-tdep.c: Replace "the the" with "the".
347
c24bdb02
KS
3482019-01-16 Keith Seitz <keiths@redhat.com>
349
350 PR gdb/23773
351 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
352 <builder>: Rename to ..
353 <m_builder>: ... this and make private.
354 (dwarf2_cu::get_builder): New method. Change all users of
355 `builder' to use this method.
356 (dwarf2_start_symtab): Move to ...
357 (dwarf2_cu::start_symtab): ... here. Update all callers
358 (setup_type_unit_groups): Move to ...
359 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
360 callers.
361 (dwarf2_cu::reset_builder): New method.
362 (process_full_compunit, process_full_type_unit): Use
363 dwarf2_cu::reset_builder.
364 (follow_die_offset): Record the ancestor CU if it is different
365 from the followed DIE's CU.
366 (follow_die_sig_1): Likewise.
367
8d64371b
TT
3682019-01-15 Tom Tromey <tom@tromey.com>
369
370 * remote.c (class remote_state) <buf>: Now a char_vector.
371 <buf_size>: Remove.
372 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
373 parameter.
374 (remote_target::getpkt_or_notif_sane_1)
375 (remote_target::getpkt_sane)
376 (remote_target::getpkt_or_notif_sane): Likewise.
377 (class remote_target) <putpkt>: New overload.
378 (remote_target::read_frame): Change type of "buf_p". Remove
379 sizeof_p parameter.
380 (packet_ok): New overload.
381 (packet_check_result): New overload.
382 Update all uses.
383
bb277751
TT
3842019-01-14 Tom Tromey <tom@tromey.com>
385
386 * remote-notif.c (handle_notification, remote_notif_ack)
387 (remote_notif_parse): Make "buf" const.
388 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
389 const.
390 (remote_notif_parse, remote_notif_ack, handle_notification):
391 Likewise.
392 * remote.c (remote_notif_stop_parse): Make "buf" const.
393 (remote_target::remote_parse_stop_reply): Make "buf" const.
394 (remote_notif_stop_ack): Make "buf" const.
395
05be00a8
TT
3962019-01-14 Tom Tromey <tom@tromey.com>
397
398 * remote.c (remote_console_output): Make parameter const.
399
491adeca
TT
4002019-01-14 Tom Tromey <tom@tromey.com>
401
402 * target-debug.h (target_debug_print_signals): Constify.
403 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
404 * procfs.c (procfs_target::pass_signals): Update.
405 * linux-nat.c (linux_nat_target::pass_signals): Update.
406 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
407 * target-delegates.c: Rebuild.
408 * remote.c (remote_target::program_signals): Update.
409 (remote_target::pass_signals): Update.
410 * target.c (target_pass_signals): Constify argument.
411 (target_program_signals): Likewise.
412 * target.h (struct target_ops) <pass_signals, program_signals>:
413 Constify argument.
414 (target_pass_signals, target_program_signals): Constify argument.
415
bbd94648
TT
4162019-01-14 Tom Tromey <tom@tromey.com>
417
418 PR tui/28819:
419 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
420
6f072a10
PFC
4212019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
422
423 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
424 field.
425 * rs6000-tdep.c: Include reggroups.h.
426 (IS_V_ALIAS_PSEUDOREG): Define.
427 (rs6000_register_name): Return names for the "vX" aliases.
428 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
429 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
430 aliases. Call default_register_reggroup_p for all other
431 pseudo-registers.
432 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
433 New functions.
434 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
435 Handle "vX" aliases.
436 (v_alias_pseudo_register_collect): New function.
437 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
438 (rs6000_gdbarch_init): Initialize "vX" aliases as
439 pseudo-registers. Restore registration of
440 rs6000_pseudo_register_reggroup_p with
441 set_tdesc_pseudo_register_reggroup_p.
442
1a782351
MF
4432019-01-13 Max Filippov <jcmvbkbc@gmail.com>
444
445 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
446 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
447 set_gdbarch_num_pseudo_regs.
448
d73cff18
PW
4492019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
450
451 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
452 Remove arg prefixname, add do_set and do_show.
453 Add member functions set_list and show_list.
454 * cli/cli-style.c (class cli_style_option): Update accordingly.
455 (style_set_list): Move to file scope.
456 (style_show_list): Likewise.
457 (set_style): Call help_list.
458 (show_style): Call cmd_show_list.
459 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
460 Update to use the new macro.
461
60a90376
JB
4622019-10-12 Joel Brobecker <brobecker@adacore.com>
463
464 * ada-lang.c (_initialize_ada_language): Expand the help text
465 for the "catch exception" command.
466
9d7c67bf
PW
4672019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
468
469 * symtab.c (matching_obj_sections): Initialize obj,
470 declare it closer to its usage.
471
7cf47dc4
TT
4722019-01-10 Tom Tromey <tom@tromey.com>
473
474 * thread-iter.h (inf_threads_iterator): Use next_iterator.
475 (basic_inf_threads_range): Remove.
476 (inf_threads_range, inf_non_exited_threads_range)
477 (safe_inf_threads_range): Use next_adapter.
478
d3cb6808
KS
4792019-01-10 Keith Seitz <keiths@redhat.com>
480
481 PR gdb/23712
482 PR symtab/23010
483 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
484 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
485
63a20375
KS
4862019-01-10 Keith Seitz <keiths@redhat.com>
487
488 PR gdb/23712
489 PR symtab/23010
490 * dictionary.c (pending_to_vector): Remove.
491 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
492 Remove _1 suffix, replacing functions of the same name. Update
493 all callers.
494 (dict_create_hashed, dict_create_hashed_expandable)
495 (dict_create_linear, dict_create_linear_expandable, dict_free)
496 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
497 Make functions static.
498
b026f593
KS
4992019-01-10 Keith Seitz <keiths@redhat.com>
500
501 PR gdb/23712
502 PR symtab/23010
503 * dictionary.h (struct dictionary): Replace declaration with
504 multidictionary.
505 (dict_create_hashed, dict_create_hashed_expandable)
506 (dict_create_linear, dict_create_linear_expandable)
507 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
508 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
509 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
510 taking multidictionary argument.
511 [ALL_DICT_SYMBOLS]: Update for multidictionary.
512 * block.h (struct block) <dict>: Change to multidictionary
513 and rename `multidict'.
514 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
515 symmisc.c: Update all dictionary references to multidictionary.
516
c7748ee9
KS
5172019-01-10 Keith Seitz <keiths@redhat.com>
518
519 PR gdb/23712
520 PR symtab/23010
521 * dictionary.c: Include unordered_map.
522 (pending_to_vector): New function.
523 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
524 Rewrite the non-"_1" functions to take vector instead
525 of linked list.
526 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
527 "new" _1 versions of the same name.
528 (multidictionary): Define.
529 (std::hash<enum language): New definition.
530 (collate_pending_symbols_by_language, mdict_create_hashed)
531 (mdict_create_hashed_expandable, mdict_create_linear)
532 (mdict_create_linear_expandable, mdict_free)
533 (find_language_dictionary, create_new_language_dictionary)
534 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
535 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
536 (mdict_size, mdict_empty): New functions.
537 * dictionary.h (mdict_iterator): Define.
538
67aa1f3c
PA
5392019-01-10 Pedro Alves <palves@redhat.com>
540
541 * breakpoint.c (read_uploaded_action)
542 (create_tracepoint_from_upload): Adjust to use
543 gdb::unique_xmalloc_ptr.
544 * ctf.c (ctf_write_uploaded_tp):
545 (SET_ARRAY_FIELD): Use emplace_back.
546 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
547 * tracefile-tfile.c (tfile_write_uploaded_tp):
548 * tracepoint.c (parse_tracepoint_definition): Adjust to use
549 gdb::unique_xmalloc_ptr.
550 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
551 at_string, cond_string, cmd_strings>: Replace char pointers
552 with gdb::unique_xmalloc_ptr.
553
2f667667
PA
5542019-01-10 Pedro Alves <palves@redhat.com>
555
556 * solib-target.c (library_list_start_library): Don't xstrdup name.
557
36cb7237
PA
5582019-01-10 Pedro Alves <palves@redhat.com>
559
560 * mdebugread.c (parse_partial_symbols): Use
561 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
562
da584958
AB
5632019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
564
565 * linux-fork.c (scoped_switch_fork_info)
566 <~scoped_switch_fork_info>: Fix incorrect variable name.
567
1ef8573c
AB
5682019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
569
570 * linux-fork.c (scoped_switch_fork_info)
571 <scoped_switch_fork_info>: Make explicit.
572 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
573
8d7bcccb
TT
5742019-01-10 Tom Tromey <tom@tromey.com>
575
576 * objfiles.h (objfile::reset_psymtabs): Update.
577 * objfiles.c (objfile::objfile): Update.
578 * psymtab.h (psymtab_storage::obstack): Update.
579 (psymtab_storage::m_obstack): Use gdb::optional.
580 (class psymtab_storage): Update comment. Remove objfile
581 parameter.
582 * psymtab.c (psymtab_storage::psymtab_storage): Update.
583
b596a3c7
TT
5842019-01-10 Tom Tromey <tom@tromey.com>
585
586 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
587 <free_psymtabs>: Now private.
588 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
589 (allocate_psymtab): Use new method.
590
a9342b62
TT
5912019-01-10 Tom Tromey <tom@tromey.com>
592
593 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
594 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
595 * mdebugread.c (parse_partial_symbols): Use
596 allocate_dependencies.
597 * dwarf2read.c (dwarf2_create_include_psymtab): Use
598 allocate_dependencies.
599 (process_psymtab_comp_unit_reader)
600 (build_type_psymtab_dependencies): Likewise.
601 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
602
5af70966
TT
6032019-01-10 Tom Tromey <tom@tromey.com>
604
605 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
606 PSYMBOL_SET_LANGUAGE.
607 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
608
5923a04c
TT
6092019-01-10 Tom Tromey <tom@tromey.com>
610
611 * psymtab.h (psymtab_storage::obstack): New method.
612 <m_obstack>: Rename from obstack; now private.
613 * psymtab.c (psymtab_storage): Update.
614 * dwarf2read.c (create_addrmap_from_index)
615 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
616 Update.
617
6d6a12bf
TT
6182019-01-10 Tom Tromey <tom@tromey.com>
619
620 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
621 * objfiles.h (objfile::reset_psymtabs): New method.
622
d320c2b5
TT
6232019-01-10 Tom Tromey <tom@tromey.com>
624
625 * symmisc.c (print_symbol_bcache_statistics): Update.
626 (print_objfile_statistics): Update.
627 * symfile.c (reread_symbols): Update.
628 * psymtab.h (class psymtab_storage): New.
629 * psymtab.c (psymtab_storage): New constructor.
630 (~psymtab_storage): New destructor.
631 (require_partial_symbols): Update.
632 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
633 (find_pc_sect_psymtab, find_pc_sect_psymbol)
634 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
635 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
636 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
637 (start_psymtab_common, end_psymtab_common)
638 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
639 (allocate_psymtab): Update.
640 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
641 Update.
642 (dump_psymtab_addrmap, maintenance_print_psymbols)
643 (maintenance_check_psymtabs): Update.
644 (class objfile_psymtabs): Move to objfiles.h.
645 * psympriv.h (discard_psymtab): Now inline.
646 (psymtab_discarder::psymtab_discarder): Update.
647 (psymtab_discarder::~psymtab_discarder): Update.
648 (ALL_OBJFILE_PSYMTABS): Rewrite.
649 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
650 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
651 Remove fields.
652 <partial_symtabs>: New field.
653 (class objfile_psymtabs): Move from psymtab.h. Update.
654 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
655 psymbol_cache.
656 (objfile::~objfile): Don't destroy psymbol_cache.
657 * mdebugread.c (parse_partial_symbols): Update.
658 * dwarf2read.c (create_addrmap_from_index)
659 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
660 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
661 (add_partial_subprogram, dwarf2_ranges_read): Update.
662 * dwarf-index-write.c (write_address_map)
663 (write_one_signatured_type, recursively_write_psymbols)
664 (class debug_names, class debug_names, write_psymtabs_to_index):
665 Update.
666
1d94a5a3
TT
6672019-01-10 Tom Tromey <tom@tromey.com>
668
669 * symtab.h (SYMBOL_SET_NAMES): Update.
670 (symbol_set_names): Update.
671 (MSYMBOL_SET_NAMES): Update.
672 * symtab.c (symbol_set_names): Change argument to be an
673 objfile_per_bfd_storage.
674 * psymtab.c (add_psymbol_to_bcache): Update.
675 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
676
0f14768a
TT
6772019-01-10 Tom Tromey <tom@tromey.com>
678
679 * symtab.c (create_demangled_names_hash): Change argument to be an
680 objfile_per_bfd_storage.
681 (symbol_set_names): Update.
682
6eee24ce
TT
6832019-01-10 Tom Tromey <tom@tromey.com>
684
685 * xcoffread.c (xcoff_initial_scan): Unconditionally call
686 init_psymbol_list.
687 * psymtab.c (init_psymbol_list): Do nothing if already called.
688 * psympriv.h (init_psymbol_list): Add comment.
689 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
690 init_psymbol_list.
691 * dbxread.c (dbx_symfile_read): Unconditionally call
692 init_psymbol_list.
693
75aedd27
TT
6942019-01-10 Tom Tromey <tom@tromey.com>
695
696 * xcoffread.c (scan_xcoff_symtab): Update.
697 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
698 "where".
699 * mdebugread.c (parse_partial_symbols)
700 (handle_psymbol_enumerators): Update.
701 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
702 * dbxread.c (read_dbx_symtab): Update.
703 * psympriv.h (psymbol_placement): New enum.
704 (add_psymbol_to_list): Update.
705
939652a5
TT
7062019-01-10 Tom Tromey <tom@tromey.com>
707
708 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
709 static_psymbols parameters.
710 (scan_xcoff_symtab): Update.
711 * psymtab.c (start_psymtab_common): Remove global_psymbols and
712 static_psymbols parameters.
713 * psympriv.h (start_psymtab_common): Update.
714 * mdebugread.c (parse_partial_symbols): Update.
715 * dwarf2read.c (create_partial_symtab): Update.
716 * dbxread.c (read_dbx_symtab): Update.
717 (start_psymtab): Remove global_psymbols and static_psymbols
718 parameters.
719
baa62830
TT
7202019-01-10 Tom Tromey <tom@tromey.com>
721
722 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
723 * psymtab.c (allocate_psymtab): Add comment.
724 * psympriv.h (allocate_psymtab): Add comment.
725 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
726 initializations.
727 * dbxread.c (dbx_end_psymtab): Remove some initializations.
728
0e8f53ba
TT
7292019-01-10 Tom Tromey <tom@tromey.com>
730
731 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
732 Don't declare.
733 * mipsread.c: Include mdebugread.h.
734 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
735 Declare.
736 * elfread.c: Include mdebugread.h.
737
b22a7c6a
TT
7382019-01-09 Tom Tromey <tom@tromey.com>
739
740 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
741 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
742 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
743 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
744 (psym_lookup_symbol, psym_find_last_source_symtab)
745 (psym_forget_cached_source_info, psym_print_stats)
746 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
747 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
748 (psym_map_matching_symbols, psym_expand_symtabs_matching)
749 (psym_find_compunit_symtab_by_address)
750 (maintenance_print_psymbols, maintenance_info_psymtabs)
751 (maintenance_check_psymtabs): Use ranged for.
752 * psymtab.h (class objfile_psymtabs): New.
753 (require_partial_symbols): Return objfile_psymtabs.
754 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
755
3b9d3ac2
TT
7562019-01-09 Tom Tromey <tom@tromey.com>
757
758 * symfile.c (overlay_invalidate_all, find_pc_overlay)
759 (find_pc_mapped_section, list_overlays_command)
760 (map_overlay_command, unmap_overlay_command)
761 (simple_overlay_update): Use all_objfiles.
762 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
763 * printcmd.c (info_symbol_command): Use all_objfiles.
764 * objfiles.h (ALL_OBJSECTIONS): Remove.
765 * maint.c (maintenance_translate_address): Use all_objfiles.
766 * gcore.c (gcore_create_callback): Use all_objfiles.
767 (objfile_find_memory_regions): Likewise.
768
8b31193a
TT
7692019-01-09 Tom Tromey <tom@tromey.com>
770
771 * symtab.c (find_line_symtab, info_sources_command)
772 (make_source_files_completion_list): Use objfile_compunits.
773 * source.c (select_source_symtab): Use objfile_compunits.
774 * objfiles.h (struct objfile): Update comment.
775 (ALL_OBJFILES): Remove.
776 (ALL_FILETABS): Remove.
777 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
778 objfile_compunits.
779
d5da8b3c
TT
7802019-01-09 Tom Tromey <tom@tromey.com>
781
782 * symmisc.c (print_objfile_statistics, dump_objfile)
783 (maintenance_print_symbols): Use compunit_filetabs.
784 * source.c (forget_cached_source_info_for_objfile): Use
785 compunit_filetabs.
786 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
787 (ALL_FILETABS): Use compunit_filetabs.
788 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
789 * coffread.c (coff_symtab_read): Use compunit_filetabs.
790
5accd1a0
TT
7912019-01-09 Tom Tromey <tom@tromey.com>
792
793 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
794 (compunit_filetabs): New.
795 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
796 compunit_filetabs.
797 (info_sources_command, make_source_files_completion_list): Remove
798 declaration.
799 * symmisc.c (print_objfile_statistics, dump_objfile)
800 (maintenance_print_symbols): Remove declaration.
801 (maintenance_info_symtabs): Use compunit_filetabs.
802 (maintenance_info_line_tables): Likewise.
803 * source.c (select_source_symtab): Change local variable name.
804 (forget_cached_source_info_for_objfile): Remove declaration.
805 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
806 * objfiles.c (objfile_relocate1): Remove declaration.
807 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
808 declaration.
809 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
810 * coffread.c (coff_symtab_read): Remove declaration.
811 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
812 compunit_filetabs.
813
d8aeb77f
TT
8142019-01-09 Tom Tromey <tom@tromey.com>
815
816 * symtab.c (lookup_objfile_from_block)
817 (find_pc_sect_compunit_symtab, search_symbols)
818 (default_collect_symbol_completion_matches_break_on): Use
819 objfile_compunits.
820 * objfiles.h (ALL_COMPUNITS): Remove.
821 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
822 * cp-support.c (add_symbol_overload_list_qualified): Use
823 objfile_compunits.
824 * ada-lang.c (ada_collect_symbol_completion_matches)
825 (ada_add_global_exceptions): Use objfile_compunits.
826
592553c4
TT
8272019-01-09 Tom Tromey <tom@tromey.com>
828
829 * source.c (select_source_symtab)
830 (forget_cached_source_info_for_objfile): Remove declaration.
831 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
832 declaration.
833 * maint.c (count_symtabs_and_blocks): Remove declaration.
834 * cp-support.c (add_symbol_overload_list_qualified): Remove
835 declaration.
836 * coffread.c (coff_symtab_read): Remove declaration.
837 * symtab.c (lookup_symbol_in_objfile_symtabs)
838 (basic_lookup_transparent_type_1): Use objfile_compunits.
839 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
840 (info_sources_command, search_symbols)
841 (default_collect_symbol_completion_matches_break_on)
842 (make_source_files_completion_list): Remove declaration.
843 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
844 (ada_collect_symbol_completion_matches)
845 (ada_add_global_exceptions): Remove declaration.
846 * linespec.c (iterate_over_all_matching_symtabs): Use
847 objfile_compunits.
848 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
849 (class objfile_compunits): New.
850 (ALL_COMPUNITS): Use objfile_compunits.
851 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
852 (maintenance_check_symtabs, maintenance_info_line_tables): Use
853 objfile_compunits.
854 * objfiles.c (objfile_relocate1): Use objfile_compunits.
855
5325b9bf
TT
8562019-01-09 Tom Tromey <tom@tromey.com>
857
858 * symtab.c (search_symbols)
859 (default_collect_symbol_completion_matches_break_on): Use
860 objfile_msymbols.
861 * ada-lang.c (ada_lookup_simple_minsym)
862 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
863 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
864 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
865 objfile_msymbols.
866 * coffread.c (coff_symfile_read): Use objfile_msymbols.
867 * symmisc.c (dump_msymbols): Use objfile_msymbols.
868 * objc-lang.c (find_methods): Use objfile_msymbols.
869 (info_selectors_command, info_classes_command): Likewise.
870 * stabsread.c (scan_file_globals): Use objfile_msymbols.
871 * objfiles.h (class objfile_msymbols): New.
872 (ALL_OBJFILE_MSYMBOLS): Remove.
873 (ALL_MSYMBOLS): Remove.
874
cac85af2
TT
8752019-01-09 Tom Tromey <tom@tromey.com>
876
877 * common/next-iterator.h (next_adapter): Add Iterator template
878 parameter.
879 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
880 (class all_objfiles_safe): New.
881 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
882 * objfiles.c (put_objfile_before): Update comment.
883 (add_separate_debug_objfile): Likewise.
884 (free_all_objfiles): Use all_objfiles_safe.
885 (objfile_purge_solibs): Likewise.
886
aed57c53
TT
8872019-01-09 Tom Tromey <tom@tromey.com>
888
889 * symtab.c (iterate_over_symtabs, matching_obj_sections)
890 (expand_symtab_containing_pc, lookup_static_symbol)
891 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
892 (find_symbol_at_address, find_line_symtab, find_main_name): Use
893 all_objfiles.
894 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
895 * breakpoint.c (create_overlay_event_breakpoint)
896 (create_longjmp_master_breakpoint)
897 (create_std_terminate_master_breakpoint)
898 (create_exception_master_breakpoint): Use all_objfiles.
899 * linux-thread-db.c (try_thread_db_load_from_pdir)
900 (has_libpthread): Use all_objfiles.
901 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
902 * linespec.c (iterate_over_all_matching_symtabs)
903 (search_minsyms_for_name): Use all_objfiles.
904 * maint.c (maintenance_info_sections): Use all_objfiles.
905 * main.c (captured_main_1): Use all_objfiles.
906 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
907 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
908 * guile/scm-pretty-print.c
909 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
910 * solib-spu.c (append_ocl_sos): Use all_objfiles.
911 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
912 (maintenance_print_msymbols): Use all_objfiles.
913 * source.c (select_source_symtab): Use all_objfiles.
914 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
915 * symfile.c (remove_symbol_file_command)
916 (expand_symtabs_matching, map_symbol_filenames): Use
917 all_objfiles.
918 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
919 all_objfiles.
920 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
921 * objc-lang.c (find_methods): Use all_objfiles.
922 * objfiles.c (have_partial_symbols, have_full_symbols)
923 (have_minimal_symbols, qsort_cmp)
924 (default_iterate_over_objfiles_in_search_order): Use
925 all_objfiles.
926 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
927 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
928 (maintenance_check_psymtabs): Use all_objfiles.
929 (ALL_PSYMTABS): Remove.
930 * compile/compile-object-run.c (do_module_cleanup): Use
931 all_objfiles.
932 * blockframe.c (find_pc_partial_function): Use all_objfiles.
933 * cp-support.c (add_symbol_overload_list_qualified): Use
934 all_objfiles.
935 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
936 Use all_objfiles.
937 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
938 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
939 all_objfiles.
940 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
941 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
942 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
943 Uses all_objfiles.
944 * solib.c (solib_read_symbols): Use all_objfiles
945
99d89cde
TT
9462019-01-09 Tom Tromey <tom@tromey.com>
947
948 * probe.c (parse_probes_in_pspace): Use all_objfiles.
949 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
950 all_objfiles.
951 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
952 * symmisc.c (print_symbol_bcache_statistics)
953 (print_objfile_statistics, maintenance_print_objfiles)
954 (maintenance_info_symtabs, maintenance_check_symtabs)
955 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
956 all_objfiles.
957 * source.c (forget_cached_source_info): Use all_objfiles.
958 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
959 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
960 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
961 * objfiles.c (update_section_map): Use all_objfiles.
962 (shared_objfile_contains_address_p): Likewise.
963 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
964 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
965
21708325
TT
9662019-01-09 Tom Tromey <tom@tromey.com>
967
968 * common/next-iterator.h: New file.
969 * objfiles.h (class all_objfiles): New.
970 (struct objfile_iterator): New.
971
669e09f6
PW
9722019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
973
974 * NEWS: Move the description of the changed "frame", "select-frame",
975 and "info frame" commands to the Changed commands section.
976
041be526
SM
9772019-01-09 Simon Marchi <simon.marchi@ericsson.com>
978
979 * gdbtypes.c (check_stub_method_group): Remove handling of old
980 mangling schemes.
981 * linespec.c (find_methods): Likewise.
982 * stabsread.c (read_member_functions): Likewise.
983 * valops.c (search_struct_method): Likewise.
984 (value_struct_elt_for_reference): Likewise.
985 * NEWS: Mention this change.
986
0e2a2133
AB
9872019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
988
989 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
990 print_source_lines.
991 * source.c (print_source_lines_base): Update line number check.
992 (print_source_lines): New function.
993 (source_lines_range::source_lines_range): New function.
994 * source.h (class source_lines_range): New class.
995 (print_source_lines): New declaration.
996
1055a3b4
PW
9972019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
998
999 * linespec.c (linespec_state_destructor): Free self->canonical_names.
1000
cfeadda5
TT
10012019-01-08 Tom Tromey <tom@tromey.com>
1002 Simon Marchi <simon.marchi@ericsson.com>
1003
1004 PR gdb/24060
1005 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
1006 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
1007 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
1008 * f-exp.y (DOLLAR_VARIABLE): Likewise.
1009 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
1010 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
1011
583068ca
AB
10122019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
1013
1014 * source.c (select_source_symtab): Move header comment to
1015 declaration in source.h.
1016 (forget_cached_source_info_for_objfile): Likewise.
1017 (forget_cached_source_info): Likewise.
1018 (identify_source_line): Likewise.
1019 * source.h (identify_source_line): Move declaration from symtab.h
1020 and add comment from source.c
1021 (print_source_lines): Likewise.
1022 (forget_cached_source_info_for_objfile): Likewise.
1023 (forget_cached_source_info): Likewise.
1024 (select_source_symtab): Likewise.
1025 (enum print_source_lines_flag): Move definition from symtab.h.
1026 * symtab.h (identify_source_line): Move declaration to source.h.
1027 (print_source_lines): Likewise.
1028 (forget_cached_source_info_for_objfile): Likewise.
1029 (forget_cached_source_info): Likewise.
1030 (select_source_symtab): Likewise.
1031 (enum print_source_lines_flag): Move definition to source.h.
1032 * tui/tui-hooks.c: Add 'source.h' include.
1033
ec98a4ad
AB
10342019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
1035
1036 * source.c (print_source_lines_base): Handle requests to print
1037 reverse line number sequences, and guard against empty lines
1038 string.
1039
62ea19c1
AB
10402019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
1041
1042 * source.c (print_source_lines_base): Fix skip of '\r' if next
1043 character is '\n'.
1044
9d30e1fd
TT
10452019-01-06 Tom Tromey <tom@tromey.com>
1046
1047 * c-exp.y (struct c_parse_state) <macro_original_text,
1048 expansion_obstack>: New member.
1049 (macro_original_text, expansion_obstack): Remove globals.
1050 (scan_macro_expansion, scanning_macro_expansion)
1051 (finished_macro_expansion): Update.
1052 (scan_macro_cleanup): Remove.
1053 (yylex, c_parse): Update.
1054
c65bac38
TT
10552019-01-06 Tom Tromey <tom@tromey.com>
1056
1057 * c-exp.y (struct c_parse_state) <strings>: New member.
1058 (operator_stoken): Update.
1059
02e12e38
TT
10602019-01-06 Tom Tromey <tom@tromey.com>
1061
1062 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
1063 (union type_stack_elt) <typelist_val>: Now a pointer to
1064 std::vector.
1065 (type_stack_cleanup): Don't declare.
1066 (push_typelist): Update.
1067 * parse.c (pop_typelist): Return a std::vector.
1068 (push_typelist): Take a std::vector.
1069 (follow_types): Update. Do not free args.
1070 (type_stack_cleanup): Remove.
1071 * c-exp.y (struct c_parse_state): New.
1072 (cpstate): New global.
1073 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
1074 (nonempty_typelist): Update.
1075 (func_mod): Create a new vector.
1076 (c_parse): Create a c_parse_state.
1077 (check_parameter_typelist): Do not delete params.
1078 (function_method): Update. Do not delete type_list.
1079
f097f5ad
TT
10802019-01-06 Tom Tromey <tom@tromey.com>
1081
1082 PR gdb/28155:
1083 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
1084 check_typedef.
1085 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
1086 (print_return_value): Likewise.
1087
d2adf9f1
TT
10882019-01-05 Tom Tromey <tom@tromey.com>
1089
1090 * contrib/cleanup_check.py: Remove.
1091 * contrib/gcc-with-excheck: Remove.
1092 * contrib/exsummary.py: Remove.
1093 * contrib/excheck.py: Remove.
1094
2eab46b1
JB
10952019-01-05 Joel Brobecker <brobecker@adacore.com>
1096
1097 * thread.c (delete_thread_1): Add gdb_assert that THR is not
1098 NULL. Initialize tpprev to NULL instead of assigning it
1099 to NULL on the next statement.
1100 * windows-nat.c (windows_delete_thread): Remove check for
1101 main_thread_id before printing thread exit notifications.
1102 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
1103 Remove thread ID check against main_thread_id.
1104 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
1105 windows_delete_thread.
1106 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
1107
48c5e7e2
TT
11082019-01-04 Tom Tromey <tom@tromey.com>
1109
1110 * compile/compile.c (_initialize_compile): Use upper case for
1111 metasyntactic variables.
1112 * symmisc.c (_initialize_symmisc): Use upper case for
1113 metasyntactic variables.
1114 * psymtab.c (_initialize_psymtab): Use upper case for
1115 metasyntactic variables.
1116 * demangle.c (demangle_command): Use upper case for metasyntactic
1117 variables.
1118 (_initialize_demangler): Likewise.
1119 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
1120 variables.
1121
986041cd
TT
11222019-01-03 Tom Tromey <tom@tromey.com>
1123
1124 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
1125
7c711119
TT
11262019-01-03 Tom Tromey <tom@tromey.com>
1127
1128 * python/py-symtab.c (salpy_str): Update.
1129 (struct salpy_sal_object) <symtab>: Now a PyObject.
1130 (salpy_dealloc): Update.
1131 (del_objfile_sal): Use gdbpy_ref.
1132
1b20edf0
TT
11332019-01-03 Tom Tromey <tom@tromey.com>
1134
1135 * python/py-type.c (convert_field): Use new_reference. Return
1136 gdbpy_ref.
1137 (make_fielditem): Return gdbpy_ref.
1138 (typy_fields): Update.
1139 (typy_getitem): Update.
1140 (field_name): Return gdbpy_ref. Use new_reference.
1141 (typy_iterator_iternext): Update.
1142
ea41325b
TT
11432019-01-03 Tom Tromey <tom@tromey.com>
1144
1145 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
1146
2a3c71d6
TT
11472019-01-03 Tom Tromey <tom@tromey.com>
1148
1149 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
1150 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
1151 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
1152 (pspy_set_frame_filters, pspy_set_frame_unwinders)
1153 (pspy_set_type_printers): Likewise.
1154 * python/py-function.c (fnpy_init): Use gdbpy_ref.
1155 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
1156 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
1157 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
1158 (objfpy_set_type_printers): Likewise.
1159
5c329e6a
TT
11602019-01-03 Tom Tromey <tom@tromey.com>
1161
1162 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
1163 (gdbpy_print_stack): Use gdbpy_err_fetch.
1164 * python/python-internal.h (class gdbpy_err_fetch): New class.
1165 (class gdbpy_enter) <m_error_type, m_error_value,
1166 m_error_traceback>: Remove.
1167 <m_error>: New member.
1168 (gdbpy_exception_to_string): Don't declare.
1169 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
1170 * python/py-value.c (convert_value_from_python): Use
1171 gdbpy_err_fetch.
1172 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
1173 gdbpy_exception_to_string.
1174 (gdbpy_handle_exception): Use gdbpy_err_fetch.
1175 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1176 gdbpy_err_fetch.
1177
169bb27b
AB
11782019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
1179
1180 * linux-nat.c (delete_lwp_cleanup): Delete.
1181 (struct lwp_deleter): New struct.
1182 (lwp_info_up): New typedef.
1183 (linux_nat_target::follow_fork): Delete cleanup, and make use of
1184 lwp_info_up.
1185
a07c8880
AB
11862019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
1187
1188 * linux-fork.c (class scoped_switch_fork_info): New class.
1189 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
1190
26089c49
AB
11912019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
1192
1193 * valops.c (find_overload_match): Remove use of null_cleanup, and
1194 calls to do_cleanups.
1195
06d3e5b0
AB
11962019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
1197
1198 * compile/compile-cplus-types.c
1199 (compile_cplus_instance::decl_name): Handle changes to
1200 cp_func_name.
1201 * cp-support.c (cp_func_name): Update header comment, update
1202 return type.
1203 * cp-support.h (cp_func_name): Update return type in declaration.
1204 * valops.c (find_overload_match): Move temp_func local to top
1205 level of function and change its type. Use temp_func to hold and
1206 delete temporary string obtained from cp_func_name.
1207
66644cd3
AB
12082019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
1209
1210 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
1211 gdb::char_vector, remove cleanup, and update uses of `msg`.
1212
592d8c0a
JW
12132019-01-03 Jim Wilson <jimw@sifive.com>
1214
1215 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
1216
c55d06ec
TT
12172019-01-02 Tom Tromey <tom@tromey.com>
1218
1219 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
1220 (tdesc_parse_xml): Remove cleanups.
1221 * target-descriptions.h (make_cleanup_free_target_description):
1222 Don't declare.
1223 (target_desc_deleter): New struct.
1224 (target_desc_up): New typedef.
1225 * target-descriptions.c (target_desc_deleter::operator()): Rename
1226 from free_target_description.
1227 (make_cleanup_free_target_description): Remove.
1228
3a6ae42d
TT
12292019-01-02 Tom Tromey <tom@tromey.com>
1230
1231 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
1232 constructor, destructor.
1233 (linespec_parser): Remove typedef.
1234 (~linespec_parser): Rename from linespec_parser_delete.
1235 (linespec_lex_to_end, linespec_complete_label)
1236 (linespec_complete): Update.
1237 (decode_line_full): Remove cleanups.
1238 (decode_line_1): Update.
1239
61fd3e73
TT
12402019-01-02 Tom Tromey <tom@tromey.com>
1241
1242 * python/python-internal.h (inferior_to_inferior_object): Change
1243 return type.
1244 * python/py-exitedevent.c (create_exited_event_object): Update.
1245 * python/py-inferior.c (inferior_to_inferior_object): Return
1246 gdbpy_ref.
1247 (python_new_inferior, python_inferior_deleted)
1248 (thread_to_thread_object, delete_thread_object)
1249 (build_inferior_list, gdbpy_selected_inferior): Update.
1250 * python/py-infthread.c (create_thread_object): Update. Also fail
1251 if inferior_to_inferior_object fails.
1252
d20172fc
SM
12532019-01-02 Simon Marchi <simon.marchi@ericsson.com>
1254
1255 * inferior.h (class inferior) <displaced_step_state>: New field.
1256 * infrun.h (struct displaced_step_state): Move here from
1257 infrun.c. Initialize fields, add constructor.
1258 <inf>: Remove field.
1259 <reset>: New method.
1260 * infrun.c (struct displaced_step_inferior_state): Move to
1261 infrun.h.
1262 (displaced_step_inferior_states): Remove.
1263 (get_displaced_stepping_state): Adust.
1264 (displaced_step_in_progress_any_inferior): Adjust.
1265 (displaced_step_in_progress_thread): Adjust.
1266 (displaced_step_in_progress): Adjust.
1267 (add_displaced_stepping_state): Remove.
1268 (get_displaced_step_closure_by_addr): Adjust.
1269 (remove_displaced_stepping_state): Remove.
1270 (infrun_inferior_exit): Call displaced_step_state.reset.
1271 (use_displaced_stepping): Don't check for NULL.
1272 (displaced_step_prepare_throw): Call
1273 get_displaced_stepping_state.
1274 (displaced_step_fixup): Don't check for NULL.
1275 (prepare_for_detach): Don't check for NULL.
1276
e3319240
PW
12772019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1278
1279 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
1280 in case of call that did not complete.
1281
5d36dfb9
AU
12822019-01-02 Andrey Utkin <autkin@undo.io>
1283
1284 * symfile.c (find_separate_debug_file): Fix search of debug files for
1285 remote debuggee.
1286
8833fbf0
TT
12872019-01-02 Tom Tromey <tom@tromey.com>
1288
1289 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
1290 indentation.
1291 * python/py-frame.c (frapy_older): Remove cast.
1292 (frapy_newer): Likewise.
1293 * python/py-breakpoint.c (local_setattro): Remove cast.
1294 * python/py-arch.c (archpy_name): Remove local variable.
1295 * python/py-type.c (gdbpy_lookup_type): Remove cast.
1296
4ada3dfd
JB
12972019-01-02 Joel Brobecker <brobecker@adacore.com>
1298
1299 * unittests/basic_string_view/element_access/char/empty.cc:
1300 Fix year range in copyright header.
1301
113b7b81
AB
13022019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
1303
1304 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
1305 Delete.
1306 <operator==>: Update with for removed field.
1307 <hash>: Likewise.
1308 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
1309 <isa_features>: ...this.
1310 <abi_features>: New field.
1311 (riscv_isa_flen): Update comment.
1312 (riscv_abi_xlen): New declaration.
1313 (riscv_abi_flen): New declaration.
1314 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
1315 isa_features.
1316 (riscv_abi_xlen): New function.
1317 (riscv_isa_flen): Update to get answer from isa_features.
1318 (riscv_abi_flen): New function.
1319 (riscv_has_fp_abi): Update to get answer from abi_features.
1320 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
1321 xlen and flen.
1322 (riscv_call_info) <xlen, flen>: Update comment.
1323 (riscv_call_arg_struct): Remove invalid assertions
1324 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
1325 is removed.
1326 (riscv_gdbarch_init): Gather isa features and abi features
1327 separately, ensure both match on the gdbarch when reusing an old
1328 gdbarch. Relax an error check to allow 32-bit abi float to run on
1329 a target with 64-bit float hardware.
1330
b18ca514
PW
13312019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1332
1333 * source.c (search_command_helper): Stop reverse search
1334 when line 1 has been searched.
1335
ec70d8db
PW
13362019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1337
1338 * record-full.c (record_full_base_target::close): Rewrite
1339 record_full_core_buf_list free logic.
1340
5b38f9c1
PW
13412019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1342
1343 * break-catch-syscall.c (print_one_catch_syscall): xfree
1344 the last text.
1345
66d91b39
JB
13462019-01-01 Joel Brobecker <brobecker@adacore.com>
1347
1348 * top.c (print_gdb_version): Update Copyright year in version
1349 message.
1350
42a4f53d
JB
13512019-01-01 Joel Brobecker <brobecker@adacore.com>
1352
1353 Update copyright year range in all GDB files.
1354
7e955d83 13552019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 1356
5bbd631d 1357 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 1358
5bbd631d 1359For older changes see ChangeLog-2018.
c906108c
SS
1360\f
1361Local Variables:
1362mode: change-log
1363left-margin: 8
1364fill-column: 74
1365version-control: never
57da7796 1366coding: utf-8
c906108c 1367End:
5bbd631d 1368
This page took 2.57571 seconds and 4 git commands to generate.