1 2019-01-10 Tom Tromey <tom@tromey.com>
3 * symtab.h (SYMBOL_SET_NAMES): Update.
4 (symbol_set_names): Update.
5 (MSYMBOL_SET_NAMES): Update.
6 * symtab.c (symbol_set_names): Change argument to be an
7 objfile_per_bfd_storage.
8 * psymtab.c (add_psymbol_to_bcache): Update.
9 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
11 2019-01-10 Tom Tromey <tom@tromey.com>
13 * symtab.c (create_demangled_names_hash): Change argument to be an
14 objfile_per_bfd_storage.
15 (symbol_set_names): Update.
17 2019-01-10 Tom Tromey <tom@tromey.com>
19 * xcoffread.c (xcoff_initial_scan): Unconditionally call
21 * psymtab.c (init_psymbol_list): Do nothing if already called.
22 * psympriv.h (init_psymbol_list): Add comment.
23 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
25 * dbxread.c (dbx_symfile_read): Unconditionally call
28 2019-01-10 Tom Tromey <tom@tromey.com>
30 * xcoffread.c (scan_xcoff_symtab): Update.
31 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
33 * mdebugread.c (parse_partial_symbols)
34 (handle_psymbol_enumerators): Update.
35 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
36 * dbxread.c (read_dbx_symtab): Update.
37 * psympriv.h (psymbol_placement): New enum.
38 (add_psymbol_to_list): Update.
40 2019-01-10 Tom Tromey <tom@tromey.com>
42 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
43 static_psymbols parameters.
44 (scan_xcoff_symtab): Update.
45 * psymtab.c (start_psymtab_common): Remove global_psymbols and
46 static_psymbols parameters.
47 * psympriv.h (start_psymtab_common): Update.
48 * mdebugread.c (parse_partial_symbols): Update.
49 * dwarf2read.c (create_partial_symtab): Update.
50 * dbxread.c (read_dbx_symtab): Update.
51 (start_psymtab): Remove global_psymbols and static_psymbols
54 2019-01-10 Tom Tromey <tom@tromey.com>
56 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
57 * psymtab.c (allocate_psymtab): Add comment.
58 * psympriv.h (allocate_psymtab): Add comment.
59 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
61 * dbxread.c (dbx_end_psymtab): Remove some initializations.
63 2019-01-10 Tom Tromey <tom@tromey.com>
65 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
67 * mipsread.c: Include mdebugread.h.
68 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
70 * elfread.c: Include mdebugread.h.
72 2019-01-09 Tom Tromey <tom@tromey.com>
74 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
75 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
76 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
77 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
78 (psym_lookup_symbol, psym_find_last_source_symtab)
79 (psym_forget_cached_source_info, psym_print_stats)
80 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
81 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
82 (psym_map_matching_symbols, psym_expand_symtabs_matching)
83 (psym_find_compunit_symtab_by_address)
84 (maintenance_print_psymbols, maintenance_info_psymtabs)
85 (maintenance_check_psymtabs): Use ranged for.
86 * psymtab.h (class objfile_psymtabs): New.
87 (require_partial_symbols): Return objfile_psymtabs.
88 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
90 2019-01-09 Tom Tromey <tom@tromey.com>
92 * symfile.c (overlay_invalidate_all, find_pc_overlay)
93 (find_pc_mapped_section, list_overlays_command)
94 (map_overlay_command, unmap_overlay_command)
95 (simple_overlay_update): Use all_objfiles.
96 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
97 * printcmd.c (info_symbol_command): Use all_objfiles.
98 * objfiles.h (ALL_OBJSECTIONS): Remove.
99 * maint.c (maintenance_translate_address): Use all_objfiles.
100 * gcore.c (gcore_create_callback): Use all_objfiles.
101 (objfile_find_memory_regions): Likewise.
103 2019-01-09 Tom Tromey <tom@tromey.com>
105 * symtab.c (find_line_symtab, info_sources_command)
106 (make_source_files_completion_list): Use objfile_compunits.
107 * source.c (select_source_symtab): Use objfile_compunits.
108 * objfiles.h (struct objfile): Update comment.
109 (ALL_OBJFILES): Remove.
110 (ALL_FILETABS): Remove.
111 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
114 2019-01-09 Tom Tromey <tom@tromey.com>
116 * symmisc.c (print_objfile_statistics, dump_objfile)
117 (maintenance_print_symbols): Use compunit_filetabs.
118 * source.c (forget_cached_source_info_for_objfile): Use
120 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
121 (ALL_FILETABS): Use compunit_filetabs.
122 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
123 * coffread.c (coff_symtab_read): Use compunit_filetabs.
125 2019-01-09 Tom Tromey <tom@tromey.com>
127 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
128 (compunit_filetabs): New.
129 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
131 (info_sources_command, make_source_files_completion_list): Remove
133 * symmisc.c (print_objfile_statistics, dump_objfile)
134 (maintenance_print_symbols): Remove declaration.
135 (maintenance_info_symtabs): Use compunit_filetabs.
136 (maintenance_info_line_tables): Likewise.
137 * source.c (select_source_symtab): Change local variable name.
138 (forget_cached_source_info_for_objfile): Remove declaration.
139 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
140 * objfiles.c (objfile_relocate1): Remove declaration.
141 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
143 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
144 * coffread.c (coff_symtab_read): Remove declaration.
145 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
148 2019-01-09 Tom Tromey <tom@tromey.com>
150 * symtab.c (lookup_objfile_from_block)
151 (find_pc_sect_compunit_symtab, search_symbols)
152 (default_collect_symbol_completion_matches_break_on): Use
154 * objfiles.h (ALL_COMPUNITS): Remove.
155 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
156 * cp-support.c (add_symbol_overload_list_qualified): Use
158 * ada-lang.c (ada_collect_symbol_completion_matches)
159 (ada_add_global_exceptions): Use objfile_compunits.
161 2019-01-09 Tom Tromey <tom@tromey.com>
163 * source.c (select_source_symtab)
164 (forget_cached_source_info_for_objfile): Remove declaration.
165 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
167 * maint.c (count_symtabs_and_blocks): Remove declaration.
168 * cp-support.c (add_symbol_overload_list_qualified): Remove
170 * coffread.c (coff_symtab_read): Remove declaration.
171 * symtab.c (lookup_symbol_in_objfile_symtabs)
172 (basic_lookup_transparent_type_1): Use objfile_compunits.
173 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
174 (info_sources_command, search_symbols)
175 (default_collect_symbol_completion_matches_break_on)
176 (make_source_files_completion_list): Remove declaration.
177 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
178 (ada_collect_symbol_completion_matches)
179 (ada_add_global_exceptions): Remove declaration.
180 * linespec.c (iterate_over_all_matching_symtabs): Use
182 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
183 (class objfile_compunits): New.
184 (ALL_COMPUNITS): Use objfile_compunits.
185 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
186 (maintenance_check_symtabs, maintenance_info_line_tables): Use
188 * objfiles.c (objfile_relocate1): Use objfile_compunits.
190 2019-01-09 Tom Tromey <tom@tromey.com>
192 * symtab.c (search_symbols)
193 (default_collect_symbol_completion_matches_break_on): Use
195 * ada-lang.c (ada_lookup_simple_minsym)
196 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
197 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
198 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
200 * coffread.c (coff_symfile_read): Use objfile_msymbols.
201 * symmisc.c (dump_msymbols): Use objfile_msymbols.
202 * objc-lang.c (find_methods): Use objfile_msymbols.
203 (info_selectors_command, info_classes_command): Likewise.
204 * stabsread.c (scan_file_globals): Use objfile_msymbols.
205 * objfiles.h (class objfile_msymbols): New.
206 (ALL_OBJFILE_MSYMBOLS): Remove.
207 (ALL_MSYMBOLS): Remove.
209 2019-01-09 Tom Tromey <tom@tromey.com>
211 * common/next-iterator.h (next_adapter): Add Iterator template
213 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
214 (class all_objfiles_safe): New.
215 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
216 * objfiles.c (put_objfile_before): Update comment.
217 (add_separate_debug_objfile): Likewise.
218 (free_all_objfiles): Use all_objfiles_safe.
219 (objfile_purge_solibs): Likewise.
221 2019-01-09 Tom Tromey <tom@tromey.com>
223 * symtab.c (iterate_over_symtabs, matching_obj_sections)
224 (expand_symtab_containing_pc, lookup_static_symbol)
225 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
226 (find_symbol_at_address, find_line_symtab, find_main_name): Use
228 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
229 * breakpoint.c (create_overlay_event_breakpoint)
230 (create_longjmp_master_breakpoint)
231 (create_std_terminate_master_breakpoint)
232 (create_exception_master_breakpoint): Use all_objfiles.
233 * linux-thread-db.c (try_thread_db_load_from_pdir)
234 (has_libpthread): Use all_objfiles.
235 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
236 * linespec.c (iterate_over_all_matching_symtabs)
237 (search_minsyms_for_name): Use all_objfiles.
238 * maint.c (maintenance_info_sections): Use all_objfiles.
239 * main.c (captured_main_1): Use all_objfiles.
240 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
241 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
242 * guile/scm-pretty-print.c
243 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
244 * solib-spu.c (append_ocl_sos): Use all_objfiles.
245 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
246 (maintenance_print_msymbols): Use all_objfiles.
247 * source.c (select_source_symtab): Use all_objfiles.
248 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
249 * symfile.c (remove_symbol_file_command)
250 (expand_symtabs_matching, map_symbol_filenames): Use
252 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
254 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
255 * objc-lang.c (find_methods): Use all_objfiles.
256 * objfiles.c (have_partial_symbols, have_full_symbols)
257 (have_minimal_symbols, qsort_cmp)
258 (default_iterate_over_objfiles_in_search_order): Use
260 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
261 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
262 (maintenance_check_psymtabs): Use all_objfiles.
263 (ALL_PSYMTABS): Remove.
264 * compile/compile-object-run.c (do_module_cleanup): Use
266 * blockframe.c (find_pc_partial_function): Use all_objfiles.
267 * cp-support.c (add_symbol_overload_list_qualified): Use
269 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
271 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
272 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
274 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
275 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
276 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
278 * solib.c (solib_read_symbols): Use all_objfiles
280 2019-01-09 Tom Tromey <tom@tromey.com>
282 * probe.c (parse_probes_in_pspace): Use all_objfiles.
283 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
285 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
286 * symmisc.c (print_symbol_bcache_statistics)
287 (print_objfile_statistics, maintenance_print_objfiles)
288 (maintenance_info_symtabs, maintenance_check_symtabs)
289 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
291 * source.c (forget_cached_source_info): Use all_objfiles.
292 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
293 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
294 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
295 * objfiles.c (update_section_map): Use all_objfiles.
296 (shared_objfile_contains_address_p): Likewise.
297 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
298 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
300 2019-01-09 Tom Tromey <tom@tromey.com>
302 * common/next-iterator.h: New file.
303 * objfiles.h (class all_objfiles): New.
304 (struct objfile_iterator): New.
306 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
308 * NEWS: Move the description of the changed "frame", "select-frame",
309 and "info frame" commands to the Changed commands section.
311 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
313 * gdbtypes.c (check_stub_method_group): Remove handling of old
315 * linespec.c (find_methods): Likewise.
316 * stabsread.c (read_member_functions): Likewise.
317 * valops.c (search_struct_method): Likewise.
318 (value_struct_elt_for_reference): Likewise.
319 * NEWS: Mention this change.
321 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
323 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
325 * source.c (print_source_lines_base): Update line number check.
326 (print_source_lines): New function.
327 (source_lines_range::source_lines_range): New function.
328 * source.h (class source_lines_range): New class.
329 (print_source_lines): New declaration.
331 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
333 * linespec.c (linespec_state_destructor): Free self->canonical_names.
335 2019-01-08 Tom Tromey <tom@tromey.com>
336 Simon Marchi <simon.marchi@ericsson.com>
339 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
340 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
341 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
342 * f-exp.y (DOLLAR_VARIABLE): Likewise.
343 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
344 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
346 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
348 * source.c (select_source_symtab): Move header comment to
349 declaration in source.h.
350 (forget_cached_source_info_for_objfile): Likewise.
351 (forget_cached_source_info): Likewise.
352 (identify_source_line): Likewise.
353 * source.h (identify_source_line): Move declaration from symtab.h
354 and add comment from source.c
355 (print_source_lines): Likewise.
356 (forget_cached_source_info_for_objfile): Likewise.
357 (forget_cached_source_info): Likewise.
358 (select_source_symtab): Likewise.
359 (enum print_source_lines_flag): Move definition from symtab.h.
360 * symtab.h (identify_source_line): Move declaration to source.h.
361 (print_source_lines): Likewise.
362 (forget_cached_source_info_for_objfile): Likewise.
363 (forget_cached_source_info): Likewise.
364 (select_source_symtab): Likewise.
365 (enum print_source_lines_flag): Move definition to source.h.
366 * tui/tui-hooks.c: Add 'source.h' include.
368 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
370 * source.c (print_source_lines_base): Handle requests to print
371 reverse line number sequences, and guard against empty lines
374 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
376 * source.c (print_source_lines_base): Fix skip of '\r' if next
379 2019-01-06 Tom Tromey <tom@tromey.com>
381 * c-exp.y (struct c_parse_state) <macro_original_text,
382 expansion_obstack>: New member.
383 (macro_original_text, expansion_obstack): Remove globals.
384 (scan_macro_expansion, scanning_macro_expansion)
385 (finished_macro_expansion): Update.
386 (scan_macro_cleanup): Remove.
387 (yylex, c_parse): Update.
389 2019-01-06 Tom Tromey <tom@tromey.com>
391 * c-exp.y (struct c_parse_state) <strings>: New member.
392 (operator_stoken): Update.
394 2019-01-06 Tom Tromey <tom@tromey.com>
396 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
397 (union type_stack_elt) <typelist_val>: Now a pointer to
399 (type_stack_cleanup): Don't declare.
400 (push_typelist): Update.
401 * parse.c (pop_typelist): Return a std::vector.
402 (push_typelist): Take a std::vector.
403 (follow_types): Update. Do not free args.
404 (type_stack_cleanup): Remove.
405 * c-exp.y (struct c_parse_state): New.
406 (cpstate): New global.
407 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
408 (nonempty_typelist): Update.
409 (func_mod): Create a new vector.
410 (c_parse): Create a c_parse_state.
411 (check_parameter_typelist): Do not delete params.
412 (function_method): Update. Do not delete type_list.
414 2019-01-06 Tom Tromey <tom@tromey.com>
417 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
419 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
420 (print_return_value): Likewise.
422 2019-01-05 Tom Tromey <tom@tromey.com>
424 * contrib/cleanup_check.py: Remove.
425 * contrib/gcc-with-excheck: Remove.
426 * contrib/exsummary.py: Remove.
427 * contrib/excheck.py: Remove.
429 2019-01-05 Joel Brobecker <brobecker@adacore.com>
431 * thread.c (delete_thread_1): Add gdb_assert that THR is not
432 NULL. Initialize tpprev to NULL instead of assigning it
433 to NULL on the next statement.
434 * windows-nat.c (windows_delete_thread): Remove check for
435 main_thread_id before printing thread exit notifications.
436 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
437 Remove thread ID check against main_thread_id.
438 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
439 windows_delete_thread.
440 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
442 2019-01-04 Tom Tromey <tom@tromey.com>
444 * compile/compile.c (_initialize_compile): Use upper case for
445 metasyntactic variables.
446 * symmisc.c (_initialize_symmisc): Use upper case for
447 metasyntactic variables.
448 * psymtab.c (_initialize_psymtab): Use upper case for
449 metasyntactic variables.
450 * demangle.c (demangle_command): Use upper case for metasyntactic
452 (_initialize_demangler): Likewise.
453 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
456 2019-01-03 Tom Tromey <tom@tromey.com>
458 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
460 2019-01-03 Tom Tromey <tom@tromey.com>
462 * python/py-symtab.c (salpy_str): Update.
463 (struct salpy_sal_object) <symtab>: Now a PyObject.
464 (salpy_dealloc): Update.
465 (del_objfile_sal): Use gdbpy_ref.
467 2019-01-03 Tom Tromey <tom@tromey.com>
469 * python/py-type.c (convert_field): Use new_reference. Return
471 (make_fielditem): Return gdbpy_ref.
472 (typy_fields): Update.
473 (typy_getitem): Update.
474 (field_name): Return gdbpy_ref. Use new_reference.
475 (typy_iterator_iternext): Update.
477 2019-01-03 Tom Tromey <tom@tromey.com>
479 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
481 2019-01-03 Tom Tromey <tom@tromey.com>
483 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
484 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
485 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
486 (pspy_set_frame_filters, pspy_set_frame_unwinders)
487 (pspy_set_type_printers): Likewise.
488 * python/py-function.c (fnpy_init): Use gdbpy_ref.
489 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
490 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
491 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
492 (objfpy_set_type_printers): Likewise.
494 2019-01-03 Tom Tromey <tom@tromey.com>
496 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
497 (gdbpy_print_stack): Use gdbpy_err_fetch.
498 * python/python-internal.h (class gdbpy_err_fetch): New class.
499 (class gdbpy_enter) <m_error_type, m_error_value,
500 m_error_traceback>: Remove.
501 <m_error>: New member.
502 (gdbpy_exception_to_string): Don't declare.
503 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
504 * python/py-value.c (convert_value_from_python): Use
506 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
507 gdbpy_exception_to_string.
508 (gdbpy_handle_exception): Use gdbpy_err_fetch.
509 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
512 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
514 * linux-nat.c (delete_lwp_cleanup): Delete.
515 (struct lwp_deleter): New struct.
516 (lwp_info_up): New typedef.
517 (linux_nat_target::follow_fork): Delete cleanup, and make use of
520 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
522 * linux-fork.c (class scoped_switch_fork_info): New class.
523 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
525 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
527 * valops.c (find_overload_match): Remove use of null_cleanup, and
528 calls to do_cleanups.
530 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
532 * compile/compile-cplus-types.c
533 (compile_cplus_instance::decl_name): Handle changes to
535 * cp-support.c (cp_func_name): Update header comment, update
537 * cp-support.h (cp_func_name): Update return type in declaration.
538 * valops.c (find_overload_match): Move temp_func local to top
539 level of function and change its type. Use temp_func to hold and
540 delete temporary string obtained from cp_func_name.
542 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
544 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
545 gdb::char_vector, remove cleanup, and update uses of `msg`.
547 2019-01-03 Jim Wilson <jimw@sifive.com>
549 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
551 2019-01-02 Tom Tromey <tom@tromey.com>
553 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
554 (tdesc_parse_xml): Remove cleanups.
555 * target-descriptions.h (make_cleanup_free_target_description):
557 (target_desc_deleter): New struct.
558 (target_desc_up): New typedef.
559 * target-descriptions.c (target_desc_deleter::operator()): Rename
560 from free_target_description.
561 (make_cleanup_free_target_description): Remove.
563 2019-01-02 Tom Tromey <tom@tromey.com>
565 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
566 constructor, destructor.
567 (linespec_parser): Remove typedef.
568 (~linespec_parser): Rename from linespec_parser_delete.
569 (linespec_lex_to_end, linespec_complete_label)
570 (linespec_complete): Update.
571 (decode_line_full): Remove cleanups.
572 (decode_line_1): Update.
574 2019-01-02 Tom Tromey <tom@tromey.com>
576 * python/python-internal.h (inferior_to_inferior_object): Change
578 * python/py-exitedevent.c (create_exited_event_object): Update.
579 * python/py-inferior.c (inferior_to_inferior_object): Return
581 (python_new_inferior, python_inferior_deleted)
582 (thread_to_thread_object, delete_thread_object)
583 (build_inferior_list, gdbpy_selected_inferior): Update.
584 * python/py-infthread.c (create_thread_object): Update. Also fail
585 if inferior_to_inferior_object fails.
587 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
589 * inferior.h (class inferior) <displaced_step_state>: New field.
590 * infrun.h (struct displaced_step_state): Move here from
591 infrun.c. Initialize fields, add constructor.
594 * infrun.c (struct displaced_step_inferior_state): Move to
596 (displaced_step_inferior_states): Remove.
597 (get_displaced_stepping_state): Adust.
598 (displaced_step_in_progress_any_inferior): Adjust.
599 (displaced_step_in_progress_thread): Adjust.
600 (displaced_step_in_progress): Adjust.
601 (add_displaced_stepping_state): Remove.
602 (get_displaced_step_closure_by_addr): Adjust.
603 (remove_displaced_stepping_state): Remove.
604 (infrun_inferior_exit): Call displaced_step_state.reset.
605 (use_displaced_stepping): Don't check for NULL.
606 (displaced_step_prepare_throw): Call
607 get_displaced_stepping_state.
608 (displaced_step_fixup): Don't check for NULL.
609 (prepare_for_detach): Don't check for NULL.
611 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
613 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
614 in case of call that did not complete.
616 2019-01-02 Andrey Utkin <autkin@undo.io>
618 * symfile.c (find_separate_debug_file): Fix search of debug files for
621 2019-01-02 Tom Tromey <tom@tromey.com>
623 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
625 * python/py-frame.c (frapy_older): Remove cast.
626 (frapy_newer): Likewise.
627 * python/py-breakpoint.c (local_setattro): Remove cast.
628 * python/py-arch.c (archpy_name): Remove local variable.
629 * python/py-type.c (gdbpy_lookup_type): Remove cast.
631 2019-01-02 Joel Brobecker <brobecker@adacore.com>
633 * unittests/basic_string_view/element_access/char/empty.cc:
634 Fix year range in copyright header.
636 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
638 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
640 <operator==>: Update with for removed field.
642 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
643 <isa_features>: ...this.
644 <abi_features>: New field.
645 (riscv_isa_flen): Update comment.
646 (riscv_abi_xlen): New declaration.
647 (riscv_abi_flen): New declaration.
648 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
650 (riscv_abi_xlen): New function.
651 (riscv_isa_flen): Update to get answer from isa_features.
652 (riscv_abi_flen): New function.
653 (riscv_has_fp_abi): Update to get answer from abi_features.
654 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
656 (riscv_call_info) <xlen, flen>: Update comment.
657 (riscv_call_arg_struct): Remove invalid assertions
658 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
660 (riscv_gdbarch_init): Gather isa features and abi features
661 separately, ensure both match on the gdbarch when reusing an old
662 gdbarch. Relax an error check to allow 32-bit abi float to run on
663 a target with 64-bit float hardware.
665 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
667 * source.c (search_command_helper): Stop reverse search
668 when line 1 has been searched.
670 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
672 * record-full.c (record_full_base_target::close): Rewrite
673 record_full_core_buf_list free logic.
675 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
677 * break-catch-syscall.c (print_one_catch_syscall): xfree
680 2019-01-01 Joel Brobecker <brobecker@adacore.com>
682 * top.c (print_gdb_version): Update Copyright year in version
685 2019-01-01 Joel Brobecker <brobecker@adacore.com>
687 Update copyright year range in all GDB files.
689 2019-01-01 Joel Brobecker <brobecker@adacore.com>
691 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
693 For older changes see ChangeLog-2018.
699 version-control: never