1 2019-01-09 Tom Tromey <tom@tromey.com>
3 * source.c (select_source_symtab)
4 (forget_cached_source_info_for_objfile): Remove declaration.
5 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
7 * maint.c (count_symtabs_and_blocks): Remove declaration.
8 * cp-support.c (add_symbol_overload_list_qualified): Remove
10 * coffread.c (coff_symtab_read): Remove declaration.
11 * symtab.c (lookup_symbol_in_objfile_symtabs)
12 (basic_lookup_transparent_type_1): Use objfile_compunits.
13 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14 (info_sources_command, search_symbols)
15 (default_collect_symbol_completion_matches_break_on)
16 (make_source_files_completion_list): Remove declaration.
17 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
18 (ada_collect_symbol_completion_matches)
19 (ada_add_global_exceptions): Remove declaration.
20 * linespec.c (iterate_over_all_matching_symtabs): Use
22 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
23 (class objfile_compunits): New.
24 (ALL_COMPUNITS): Use objfile_compunits.
25 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
26 (maintenance_check_symtabs, maintenance_info_line_tables): Use
28 * objfiles.c (objfile_relocate1): Use objfile_compunits.
30 2019-01-09 Tom Tromey <tom@tromey.com>
32 * symtab.c (search_symbols)
33 (default_collect_symbol_completion_matches_break_on): Use
35 * ada-lang.c (ada_lookup_simple_minsym)
36 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
37 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
38 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
40 * coffread.c (coff_symfile_read): Use objfile_msymbols.
41 * symmisc.c (dump_msymbols): Use objfile_msymbols.
42 * objc-lang.c (find_methods): Use objfile_msymbols.
43 (info_selectors_command, info_classes_command): Likewise.
44 * stabsread.c (scan_file_globals): Use objfile_msymbols.
45 * objfiles.h (class objfile_msymbols): New.
46 (ALL_OBJFILE_MSYMBOLS): Remove.
47 (ALL_MSYMBOLS): Remove.
49 2019-01-09 Tom Tromey <tom@tromey.com>
51 * common/next-iterator.h (next_adapter): Add Iterator template
53 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
54 (class all_objfiles_safe): New.
55 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
56 * objfiles.c (put_objfile_before): Update comment.
57 (add_separate_debug_objfile): Likewise.
58 (free_all_objfiles): Use all_objfiles_safe.
59 (objfile_purge_solibs): Likewise.
61 2019-01-09 Tom Tromey <tom@tromey.com>
63 * symtab.c (iterate_over_symtabs, matching_obj_sections)
64 (expand_symtab_containing_pc, lookup_static_symbol)
65 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
66 (find_symbol_at_address, find_line_symtab, find_main_name): Use
68 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
69 * breakpoint.c (create_overlay_event_breakpoint)
70 (create_longjmp_master_breakpoint)
71 (create_std_terminate_master_breakpoint)
72 (create_exception_master_breakpoint): Use all_objfiles.
73 * linux-thread-db.c (try_thread_db_load_from_pdir)
74 (has_libpthread): Use all_objfiles.
75 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
76 * linespec.c (iterate_over_all_matching_symtabs)
77 (search_minsyms_for_name): Use all_objfiles.
78 * maint.c (maintenance_info_sections): Use all_objfiles.
79 * main.c (captured_main_1): Use all_objfiles.
80 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
81 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
82 * guile/scm-pretty-print.c
83 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
84 * solib-spu.c (append_ocl_sos): Use all_objfiles.
85 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
86 (maintenance_print_msymbols): Use all_objfiles.
87 * source.c (select_source_symtab): Use all_objfiles.
88 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
89 * symfile.c (remove_symbol_file_command)
90 (expand_symtabs_matching, map_symbol_filenames): Use
92 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
94 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
95 * objc-lang.c (find_methods): Use all_objfiles.
96 * objfiles.c (have_partial_symbols, have_full_symbols)
97 (have_minimal_symbols, qsort_cmp)
98 (default_iterate_over_objfiles_in_search_order): Use
100 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
101 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
102 (maintenance_check_psymtabs): Use all_objfiles.
103 (ALL_PSYMTABS): Remove.
104 * compile/compile-object-run.c (do_module_cleanup): Use
106 * blockframe.c (find_pc_partial_function): Use all_objfiles.
107 * cp-support.c (add_symbol_overload_list_qualified): Use
109 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
111 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
112 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
114 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
115 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
116 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
118 * solib.c (solib_read_symbols): Use all_objfiles
120 2019-01-09 Tom Tromey <tom@tromey.com>
122 * probe.c (parse_probes_in_pspace): Use all_objfiles.
123 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
125 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
126 * symmisc.c (print_symbol_bcache_statistics)
127 (print_objfile_statistics, maintenance_print_objfiles)
128 (maintenance_info_symtabs, maintenance_check_symtabs)
129 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
131 * source.c (forget_cached_source_info): Use all_objfiles.
132 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
133 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
134 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
135 * objfiles.c (update_section_map): Use all_objfiles.
136 (shared_objfile_contains_address_p): Likewise.
137 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
138 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
140 2019-01-09 Tom Tromey <tom@tromey.com>
142 * common/next-iterator.h: New file.
143 * objfiles.h (class all_objfiles): New.
144 (struct objfile_iterator): New.
146 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
148 * NEWS: Move the description of the changed "frame", "select-frame",
149 and "info frame" commands to the Changed commands section.
151 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
153 * gdbtypes.c (check_stub_method_group): Remove handling of old
155 * linespec.c (find_methods): Likewise.
156 * stabsread.c (read_member_functions): Likewise.
157 * valops.c (search_struct_method): Likewise.
158 (value_struct_elt_for_reference): Likewise.
159 * NEWS: Mention this change.
161 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
163 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
165 * source.c (print_source_lines_base): Update line number check.
166 (print_source_lines): New function.
167 (source_lines_range::source_lines_range): New function.
168 * source.h (class source_lines_range): New class.
169 (print_source_lines): New declaration.
171 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
173 * linespec.c (linespec_state_destructor): Free self->canonical_names.
175 2019-01-08 Tom Tromey <tom@tromey.com>
176 Simon Marchi <simon.marchi@ericsson.com>
179 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
180 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
181 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
182 * f-exp.y (DOLLAR_VARIABLE): Likewise.
183 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
184 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
186 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
188 * source.c (select_source_symtab): Move header comment to
189 declaration in source.h.
190 (forget_cached_source_info_for_objfile): Likewise.
191 (forget_cached_source_info): Likewise.
192 (identify_source_line): Likewise.
193 * source.h (identify_source_line): Move declaration from symtab.h
194 and add comment from source.c
195 (print_source_lines): Likewise.
196 (forget_cached_source_info_for_objfile): Likewise.
197 (forget_cached_source_info): Likewise.
198 (select_source_symtab): Likewise.
199 (enum print_source_lines_flag): Move definition from symtab.h.
200 * symtab.h (identify_source_line): Move declaration to source.h.
201 (print_source_lines): Likewise.
202 (forget_cached_source_info_for_objfile): Likewise.
203 (forget_cached_source_info): Likewise.
204 (select_source_symtab): Likewise.
205 (enum print_source_lines_flag): Move definition to source.h.
206 * tui/tui-hooks.c: Add 'source.h' include.
208 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
210 * source.c (print_source_lines_base): Handle requests to print
211 reverse line number sequences, and guard against empty lines
214 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
216 * source.c (print_source_lines_base): Fix skip of '\r' if next
219 2019-01-06 Tom Tromey <tom@tromey.com>
221 * c-exp.y (struct c_parse_state) <macro_original_text,
222 expansion_obstack>: New member.
223 (macro_original_text, expansion_obstack): Remove globals.
224 (scan_macro_expansion, scanning_macro_expansion)
225 (finished_macro_expansion): Update.
226 (scan_macro_cleanup): Remove.
227 (yylex, c_parse): Update.
229 2019-01-06 Tom Tromey <tom@tromey.com>
231 * c-exp.y (struct c_parse_state) <strings>: New member.
232 (operator_stoken): Update.
234 2019-01-06 Tom Tromey <tom@tromey.com>
236 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
237 (union type_stack_elt) <typelist_val>: Now a pointer to
239 (type_stack_cleanup): Don't declare.
240 (push_typelist): Update.
241 * parse.c (pop_typelist): Return a std::vector.
242 (push_typelist): Take a std::vector.
243 (follow_types): Update. Do not free args.
244 (type_stack_cleanup): Remove.
245 * c-exp.y (struct c_parse_state): New.
246 (cpstate): New global.
247 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
248 (nonempty_typelist): Update.
249 (func_mod): Create a new vector.
250 (c_parse): Create a c_parse_state.
251 (check_parameter_typelist): Do not delete params.
252 (function_method): Update. Do not delete type_list.
254 2019-01-06 Tom Tromey <tom@tromey.com>
257 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
259 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
260 (print_return_value): Likewise.
262 2019-01-05 Tom Tromey <tom@tromey.com>
264 * contrib/cleanup_check.py: Remove.
265 * contrib/gcc-with-excheck: Remove.
266 * contrib/exsummary.py: Remove.
267 * contrib/excheck.py: Remove.
269 2019-01-05 Joel Brobecker <brobecker@adacore.com>
271 * thread.c (delete_thread_1): Add gdb_assert that THR is not
272 NULL. Initialize tpprev to NULL instead of assigning it
273 to NULL on the next statement.
274 * windows-nat.c (windows_delete_thread): Remove check for
275 main_thread_id before printing thread exit notifications.
276 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
277 Remove thread ID check against main_thread_id.
278 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
279 windows_delete_thread.
280 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
282 2019-01-04 Tom Tromey <tom@tromey.com>
284 * compile/compile.c (_initialize_compile): Use upper case for
285 metasyntactic variables.
286 * symmisc.c (_initialize_symmisc): Use upper case for
287 metasyntactic variables.
288 * psymtab.c (_initialize_psymtab): Use upper case for
289 metasyntactic variables.
290 * demangle.c (demangle_command): Use upper case for metasyntactic
292 (_initialize_demangler): Likewise.
293 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
296 2019-01-03 Tom Tromey <tom@tromey.com>
298 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
300 2019-01-03 Tom Tromey <tom@tromey.com>
302 * python/py-symtab.c (salpy_str): Update.
303 (struct salpy_sal_object) <symtab>: Now a PyObject.
304 (salpy_dealloc): Update.
305 (del_objfile_sal): Use gdbpy_ref.
307 2019-01-03 Tom Tromey <tom@tromey.com>
309 * python/py-type.c (convert_field): Use new_reference. Return
311 (make_fielditem): Return gdbpy_ref.
312 (typy_fields): Update.
313 (typy_getitem): Update.
314 (field_name): Return gdbpy_ref. Use new_reference.
315 (typy_iterator_iternext): Update.
317 2019-01-03 Tom Tromey <tom@tromey.com>
319 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
321 2019-01-03 Tom Tromey <tom@tromey.com>
323 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
324 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
325 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
326 (pspy_set_frame_filters, pspy_set_frame_unwinders)
327 (pspy_set_type_printers): Likewise.
328 * python/py-function.c (fnpy_init): Use gdbpy_ref.
329 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
330 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
331 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
332 (objfpy_set_type_printers): Likewise.
334 2019-01-03 Tom Tromey <tom@tromey.com>
336 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
337 (gdbpy_print_stack): Use gdbpy_err_fetch.
338 * python/python-internal.h (class gdbpy_err_fetch): New class.
339 (class gdbpy_enter) <m_error_type, m_error_value,
340 m_error_traceback>: Remove.
341 <m_error>: New member.
342 (gdbpy_exception_to_string): Don't declare.
343 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
344 * python/py-value.c (convert_value_from_python): Use
346 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
347 gdbpy_exception_to_string.
348 (gdbpy_handle_exception): Use gdbpy_err_fetch.
349 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
352 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
354 * linux-nat.c (delete_lwp_cleanup): Delete.
355 (struct lwp_deleter): New struct.
356 (lwp_info_up): New typedef.
357 (linux_nat_target::follow_fork): Delete cleanup, and make use of
360 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
362 * linux-fork.c (class scoped_switch_fork_info): New class.
363 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
365 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
367 * valops.c (find_overload_match): Remove use of null_cleanup, and
368 calls to do_cleanups.
370 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
372 * compile/compile-cplus-types.c
373 (compile_cplus_instance::decl_name): Handle changes to
375 * cp-support.c (cp_func_name): Update header comment, update
377 * cp-support.h (cp_func_name): Update return type in declaration.
378 * valops.c (find_overload_match): Move temp_func local to top
379 level of function and change its type. Use temp_func to hold and
380 delete temporary string obtained from cp_func_name.
382 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
384 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
385 gdb::char_vector, remove cleanup, and update uses of `msg`.
387 2019-01-03 Jim Wilson <jimw@sifive.com>
389 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
391 2019-01-02 Tom Tromey <tom@tromey.com>
393 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
394 (tdesc_parse_xml): Remove cleanups.
395 * target-descriptions.h (make_cleanup_free_target_description):
397 (target_desc_deleter): New struct.
398 (target_desc_up): New typedef.
399 * target-descriptions.c (target_desc_deleter::operator()): Rename
400 from free_target_description.
401 (make_cleanup_free_target_description): Remove.
403 2019-01-02 Tom Tromey <tom@tromey.com>
405 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
406 constructor, destructor.
407 (linespec_parser): Remove typedef.
408 (~linespec_parser): Rename from linespec_parser_delete.
409 (linespec_lex_to_end, linespec_complete_label)
410 (linespec_complete): Update.
411 (decode_line_full): Remove cleanups.
412 (decode_line_1): Update.
414 2019-01-02 Tom Tromey <tom@tromey.com>
416 * python/python-internal.h (inferior_to_inferior_object): Change
418 * python/py-exitedevent.c (create_exited_event_object): Update.
419 * python/py-inferior.c (inferior_to_inferior_object): Return
421 (python_new_inferior, python_inferior_deleted)
422 (thread_to_thread_object, delete_thread_object)
423 (build_inferior_list, gdbpy_selected_inferior): Update.
424 * python/py-infthread.c (create_thread_object): Update. Also fail
425 if inferior_to_inferior_object fails.
427 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
429 * inferior.h (class inferior) <displaced_step_state>: New field.
430 * infrun.h (struct displaced_step_state): Move here from
431 infrun.c. Initialize fields, add constructor.
434 * infrun.c (struct displaced_step_inferior_state): Move to
436 (displaced_step_inferior_states): Remove.
437 (get_displaced_stepping_state): Adust.
438 (displaced_step_in_progress_any_inferior): Adjust.
439 (displaced_step_in_progress_thread): Adjust.
440 (displaced_step_in_progress): Adjust.
441 (add_displaced_stepping_state): Remove.
442 (get_displaced_step_closure_by_addr): Adjust.
443 (remove_displaced_stepping_state): Remove.
444 (infrun_inferior_exit): Call displaced_step_state.reset.
445 (use_displaced_stepping): Don't check for NULL.
446 (displaced_step_prepare_throw): Call
447 get_displaced_stepping_state.
448 (displaced_step_fixup): Don't check for NULL.
449 (prepare_for_detach): Don't check for NULL.
451 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
453 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
454 in case of call that did not complete.
456 2019-01-02 Andrey Utkin <autkin@undo.io>
458 * symfile.c (find_separate_debug_file): Fix search of debug files for
461 2019-01-02 Tom Tromey <tom@tromey.com>
463 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
465 * python/py-frame.c (frapy_older): Remove cast.
466 (frapy_newer): Likewise.
467 * python/py-breakpoint.c (local_setattro): Remove cast.
468 * python/py-arch.c (archpy_name): Remove local variable.
469 * python/py-type.c (gdbpy_lookup_type): Remove cast.
471 2019-01-02 Joel Brobecker <brobecker@adacore.com>
473 * unittests/basic_string_view/element_access/char/empty.cc:
474 Fix year range in copyright header.
476 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
478 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
480 <operator==>: Update with for removed field.
482 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
483 <isa_features>: ...this.
484 <abi_features>: New field.
485 (riscv_isa_flen): Update comment.
486 (riscv_abi_xlen): New declaration.
487 (riscv_abi_flen): New declaration.
488 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
490 (riscv_abi_xlen): New function.
491 (riscv_isa_flen): Update to get answer from isa_features.
492 (riscv_abi_flen): New function.
493 (riscv_has_fp_abi): Update to get answer from abi_features.
494 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
496 (riscv_call_info) <xlen, flen>: Update comment.
497 (riscv_call_arg_struct): Remove invalid assertions
498 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
500 (riscv_gdbarch_init): Gather isa features and abi features
501 separately, ensure both match on the gdbarch when reusing an old
502 gdbarch. Relax an error check to allow 32-bit abi float to run on
503 a target with 64-bit float hardware.
505 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
507 * source.c (search_command_helper): Stop reverse search
508 when line 1 has been searched.
510 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
512 * record-full.c (record_full_base_target::close): Rewrite
513 record_full_core_buf_list free logic.
515 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
517 * break-catch-syscall.c (print_one_catch_syscall): xfree
520 2019-01-01 Joel Brobecker <brobecker@adacore.com>
522 * top.c (print_gdb_version): Update Copyright year in version
525 2019-01-01 Joel Brobecker <brobecker@adacore.com>
527 Update copyright year range in all GDB files.
529 2019-01-01 Joel Brobecker <brobecker@adacore.com>
531 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
533 For older changes see ChangeLog-2018.
539 version-control: never