1 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
3 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
4 return type to 'bool'. Adjust comment. Use 'bool' when
6 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7 * stap-probe.c (stap_parse_argument_1): Likewise.
8 (stap_is_operator): Likewise.
9 (stap_is_generic_prefix): Likewise.
10 (stap_is_register_prefix): Likewise.
11 (stap_is_register_indirection_prefix): Likewise.
12 (stap_is_integer_prefix): Likewise.
13 (stap_generic_check_suffix): Likewise.
14 (stap_check_integer_suffix): Likewise.
15 (stap_check_register_suffix): Likewise.
16 (stap_check_register_indirection_suffix): Likewise.
17 (stap_parse_register_operand): Likewise.
18 (stap_parse_single_operand): Likewise.
19 (stap_parse_argument_1): Likewise.
20 (stap_probe::get_argument_count): Likewise.
21 (stap_is_operator): Likewise.
23 2019-05-16 Tom Tromey <tromey@adacore.com>
25 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
28 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
30 * linux-thread-db.c (try_thread_db_load_1): Change return type
32 (try_thread_db_load): Likewise.
33 (try_thread_db_load_from_pdir_1): Likewise.
34 (try_thread_db_load_from_pdir): Likewise.
35 (try_thread_db_load_from_sdir): Likewise.
36 (try_thread_db_load_from_dir): Likewise.
37 (thread_db_load_search): Likewise.
38 (has_libpthread): Likewise.
39 (thread_db_load): Likewise.
41 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
43 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
44 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
45 NULL, and complain/return if that's the case.
47 2019-05-15 John Darrington <john@darrington.wattle.id.au>
49 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
50 (advance, posn, abstract_read_memory): New functions.
51 [struct mem_read_abstraction]: New struct.
52 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
54 2019-05-14 Tom Tromey <tromey@adacore.com>
56 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
57 value is not lval_memory.
59 2019-05-14 Tom Tromey <tromey@adacore.com>
61 * solib.c (info_sharedlibrary_command): Style the file name.
63 2019-05-14 Alan Hayward <alan.hayward@arm.com>
65 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
66 (aarch64_vnv_type): Likewise.
67 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
68 * common/tdesc.c: Likewise.
69 * common/tdesc.h (enum tdesc_type_kind): Likewise.
70 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
71 * features/aarch64-fpu.xml: Add ieee half view.
72 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
73 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
74 * gdbtypes.h (struct builtin_type): Likewise.
75 (struct objfile_type): Likewise.
77 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
79 * language.c (language_sniff_from_mangled_name): Fix "langauge"
81 * location.h (string_to_event_location): Likewise.
83 2019-05-11 Joel Brobecker <brobecker@adacore.com>
87 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
89 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
90 New variable declaration.
91 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
93 (print_one_breakpoint): Use ui_out::test_flags and new global
94 variable to compute use_fixed_output.
95 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
97 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
98 (mi_multi_location_breakpoint_output_fixed): Remove.
99 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
101 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
102 fix_multi_location_breakpoint_output flag if version >= 3.
103 * ui-out.h (enum ui_out_flag)
104 <fix_multi_location_breakpoint_output>: New enumerator.
106 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
108 * contrib/cc-with-tweaks.sh: Validate dwz's work.
110 2019-05-10 Tom Tromey <tromey@adacore.com>
112 * ada-lang.c (catch_ada_completer): New function.
113 (_initialize_ada_language): Use it.
115 2019-05-10 Tom Tromey <tromey@adacore.com>
117 * thread.c (print_thread_info): Make "requested_threads" const.
118 * gdbthread.h (print_thread_info): Make "requested_threads"
120 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
121 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
123 2019-05-08 Tom Tromey <tom@tromey.com>
125 * gdbtypes.c (objfile_type_data): Change type.
126 (objfile_type, _initialize_gdbtypes): Update.
128 2019-05-08 Tom Tromey <tom@tromey.com>
130 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
131 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
132 (_initialize_dwarf2_frame): Update.
134 2019-05-08 Tom Tromey <tom@tromey.com>
136 * objc-lang.c (objc_objfile_data): Change type.
137 (find_methods): Update.
138 (_initialize_objc_lang): Remove.
140 2019-05-08 Tom Tromey <tom@tromey.com>
142 * stabsread.c (rs6000_builtin_type_data): Change type.
143 (rs6000_builtin_type, _initialize_stabsread): Update.
145 2019-05-08 Tom Tromey <tom@tromey.com>
147 * mips-tdep.c (mips_pdr_data): Remove.
148 (_initialize_mips_tdep): Update.
150 2019-05-08 Tom Tromey <tom@tromey.com>
152 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
153 (hppa_init_objfile_priv_data, read_unwind_info)
154 (find_unwind_entry, _initialize_hppa_tdep): Update.
156 2019-05-08 Tom Tromey <tom@tromey.com>
158 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
159 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
161 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
163 2019-05-08 Tom Tromey <tom@tromey.com>
165 * mdebugread.c (basic_type_data): Change type.
166 (basic_type, _initialize_mdebugread): Update.
168 2019-05-08 Tom Tromey <tom@tromey.com>
170 * common/gdb_unique_ptr.h (struct noop_deleter): New.
172 2019-05-08 Tom Tromey <tom@tromey.com>
174 * nto-tdep.c (nto_inferior_data_reg): Change type.
175 (nto_inferior_data): Update.
176 (nto_inferior_data_cleanup, nto_new_inferior_data)
177 (_initialize_nto_tdep): Remove.
178 * nto-tdep.h (struct nto_inferior_data): Add initializers.
180 2019-05-08 Tom Tromey <tom@tromey.com>
182 * ada-lang.c (struct ada_inferior_data): Add initializers.
183 (ada_inferior_data): Change type.
184 (ada_inferior_data_cleanup): Remove.
185 (get_ada_inferior_data, ada_inferior_exit)
186 (struct ada_pspace_data): Add initializers, destructor.
187 (ada_pspace_data_handle): Change type.
188 (get_ada_pspace_data): Update.
189 (ada_pspace_data_cleanup): Remove.
191 2019-05-08 Tom Tromey <tom@tromey.com>
193 * coffread.c (struct coff_symfile_info): Add initializers.
194 (coff_objfile_data_key): Move lower. Change type.
195 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
197 (coff_free_info): Remove.
199 2019-05-08 Tom Tromey <tom@tromey.com>
201 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
202 (fbsd_pspace_data_handle): Move lower. Change type.
203 (get_fbsd_pspace_data): Update.
204 (fbsd_pspace_data_cleanup): Remove.
205 (_initialize_fbsd_tdep): Update.
207 2019-05-08 Tom Tromey <tom@tromey.com>
209 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
210 (get_ada_tasks_pspace_data): Update.
211 (ada_tasks_pspace_data_cleanup): Remove.
212 (_initialize_tasks): Update.
213 (ada_tasks_inferior_data_handle): Change type.
214 (get_ada_tasks_inferior_data): Update.
215 (ada_tasks_inferior_data_cleanup): Remove.
216 (struct ada_tasks_pspace_data): Add initializers.
218 2019-05-08 Tom Tromey <tom@tromey.com>
220 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
221 * symfile-debug.c (debug_sym_get_probes): Change type.
222 * stap-probe.c (handle_stap_probe):
223 (stap_static_probe_ops::get_probes): Change type.
224 * probe.h (class static_probe_ops) <get_probes>: Change type.
225 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
226 (parse_probes_in_pspace): Update.
227 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
229 (any_static_probe_ops::get_probes): Change type.
230 * elfread.c (elfread_data): New typedef.
231 (probe_key): Change type.
232 (elf_get_probes): Likewise. Update.
233 (probe_key_free): Remove.
234 (_initialize_elfread): Update.
235 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
237 (dtrace_process_dof_probe, dtrace_process_dof)
238 (dtrace_static_probe_ops::get_probe): Change type.
240 2019-05-08 Tom Tromey <tom@tromey.com>
242 * xcoffread.c (struct xcoff_symfile_info): Rename from
243 coff_symfile_info. Add initializers.
244 (xcoff_objfile_data_key): Move lower. Change type.
245 (XCOFF_DATA): Rewrite.
246 (xcoff_free_info): Remove.
247 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
248 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
249 (xcoff_initial_scan): Update.
251 2019-05-08 Tom Tromey <tom@tromey.com>
253 * solib-svr4.c (struct svr4_info): Add initializers and
255 <probes_table>: Now an htab_up.
256 (solib_svr4_pspace_data): Change type.
257 (free_probes_table): Simplify.
258 (~svr4_info): Rename from svr4_pspace_data_cleanup.
259 (get_svr4_info, probes_table_htab_remove_objfile_probes)
260 (probes_table_remove_objfile_probes, register_solib_event_probe)
261 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
262 (_initialize_svr4_solib): Update.
264 2019-05-08 Tom Tromey <tom@tromey.com>
266 * remote.c (remote_pspace_data): Change type.
267 (remote_pspace_data_cleanup): Remove.
268 (get_remote_exec_file, set_pspace_remote_exec_file)
269 (_initialize_remote): Update.
271 2019-05-08 Tom Tromey <tom@tromey.com>
273 * breakpoint.c (breakpoint_objfile_key): Change type.
274 (get_breakpoint_objfile_data): Update.
275 (free_breakpoint_objfile_data): Remove.
276 (_initialize_breakpoint): Update.
278 2019-05-08 Tom Tromey <tom@tromey.com>
280 * linux-tdep.c (struct linux_info): Add initializers.
281 (linux_inferior_data): Move. Change type.
282 (invalidate_linux_cache_inf): Update.
283 (linux_inferior_data_cleanup): Remove.
284 (get_linux_inferior_data, _initialize_linux_tdep): Update.
286 2019-05-08 Tom Tromey <tom@tromey.com>
288 * auxv.c (auxv_inferior_data): Move. Change type.
289 (auxv_inferior_data_cleanup): Remove.
290 (invalidate_auxv_cache_inf): Rewrite.
291 (get_auxv_inferior_data, _initialize_auxv): Update.
293 2019-05-08 Tom Tromey <tom@tromey.com>
295 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
296 (symfile_debug_objfile_data_key): Change type.
297 (symfile_debug_installed, debug_qf_has_symbols)
298 (debug_qf_find_last_source_symtab)
299 (debug_qf_forget_cached_source_info)
300 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
301 (debug_qf_print_stats, debug_qf_dump)
302 (debug_qf_expand_symtabs_for_function)
303 (debug_qf_expand_all_symtabs)
304 (debug_qf_expand_symtabs_with_fullname)
305 (debug_qf_map_matching_symbols)
306 (debug_qf_expand_symtabs_matching)
307 (debug_qf_find_pc_sect_compunit_symtab)
308 (debug_qf_map_symbol_filenames)
309 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
310 (debug_sym_new_init, debug_sym_init, debug_sym_read)
311 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
312 (debug_sym_read_linetable, debug_sym_relocate): Update.
313 (symfile_debug_free_objfile): Remove.
314 (install_symfile_debug_logging, _initialize_symfile_debug):
317 2019-05-08 Tom Tromey <tom@tromey.com>
319 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
321 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
322 (get_dwarf2_per_objfile): Update.
323 (set_dwarf2_per_objfile): Remove.
324 (dwarf2_has_info, dwarf2_get_section_info): Update.
325 (dwarf2_free_objfile): Remove.
326 (_initialize_dwarf2_read): Update.
328 2019-05-08 Tom Tromey <tom@tromey.com>
330 * auto-load.c (struct auto_load_pspace_info): Add destructor and
332 <unsupported_script_warning_printed,
333 script_not_found_warning_printed>: Now bool.
334 (auto_load_pspace_data): Change type.
335 (~auto_load_pspace_info): Rename from
336 auto_load_pspace_data_cleanup.
337 (get_auto_load_pspace_data, init_loaded_scripts_info)
338 (clear_section_scripts, maybe_print_unsupported_script_warning)
339 (maybe_print_script_not_found_warning, _initialize_auto_load):
342 2019-05-08 Tom Tromey <tom@tromey.com>
344 * objfiles.c (objfile_pspace_info): Add destructor and
346 (objfiles_pspace_data): Change type.
347 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
348 (get_objfile_pspace_data): Update.
349 (objfiles_bfd_data): Change type.
350 (get_objfile_bfd_data): Update.
351 (objfile_bfd_data_free, _initialize_objfiles): Remove.
353 2019-05-08 Tom Tromey <tom@tromey.com>
355 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
357 (get_catch_syscall_inferior_data): Update.
358 (catch_syscall_inferior_data_cleanup): Remove.
359 (_initialize_break_catch_syscall): Update.
361 2019-05-08 Tom Tromey <tom@tromey.com>
363 * inflow.c (struct terminal_info): Add destructor and
365 (inflow_inferior_data): Change type.
366 (~terminal_info): Rename from inflow_inferior_data_cleanup.
367 (get_inflow_inferior_data, inflow_inferior_exit)
368 (swap_terminal_info, _initialize_inflow): Update.
370 2019-05-08 Tom Tromey <tom@tromey.com>
372 * target-dcache.c (target_dcache_cleanup): Remove.
373 (target_dcache_aspace_key): Change type.
374 (target_dcache_init_p, target_dcache_invalidate)
375 (target_dcache_get, target_dcache_get_or_init)
376 (_initialize_target_dcache): Update.
377 * dcache.h (struct dcache_deleter): New.
379 2019-05-08 Tom Tromey <tom@tromey.com>
381 * symtab.c (struct symbol_cache): Add destructor and
383 (symbol_cache_key): Move. Change type.
384 (make_symbol_cache, free_symbol_cache): Remove.
385 (get_symbol_cache): Update.
386 (symbol_cache_cleanup): Remove.
387 (ALL_PSPACES, symbol_cache_flush)
388 (maintenance_print_symbol_cache)
389 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
392 2019-05-08 Tom Tromey <tom@tromey.com>
394 * symtab.c (struct main_info): Add destructor and initializers.
395 (main_progspace_key): Move. Change type.
396 (get_main_info): Update.
397 (main_info_cleanup): Remove.
398 (_initialize_symtab): Update.
400 2019-05-08 Tom Tromey <tom@tromey.com>
402 * registry.h (DECLARE_REGISTRY): Define the _key class.
404 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
406 * NEWS: Merge two 'New commands' sections.
408 2019-05-08 Joel Brobecker <brobecker@adacore.com>
410 * ada-valprint.c (ada_val_print_gnat_array): Remove language
411 parameter and use Ada language definition instead.
412 (ada_val_print_ptr): Remove unused language parameter.
413 (ada_val_print_num): Remove language parameter and use Ada language
415 (ada_val_print_enum, ada_val_print_flt): Remove unused language
417 (ada_val_print_struct_union, ada_val_print_ref): Remove language
418 parameter and use Ada language definition instead.
419 (ada_val_print_1): Update all ada_val_print_xxx calls.
420 Remove language parameter.
421 (ada_val_print): Update ada_val_print_1 call.
423 2019-05-08 Tom Tromey <tromey@adacore.com>
425 * remote.c (remote_hw_watchpoint_limit)
426 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
429 2019-05-08 Tom Tromey <tromey@adacore.com>
431 * maint.c (_initialize_maint_cmds): Move initialization code to
433 (watchdog, show_watchdog): Move to remote.c.
434 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
436 (_initialize_remote): Move initialization code from maint.c.
437 * defs.h (watchdog): Don't declare.
439 2019-05-08 Tom Tromey <tromey@adacore.com>
441 * tui/tui-interp.c: Include main.h.
442 * interps.c: Include main.h.
443 * main.h (interpreter_p): Declare.
444 * defs.h (interpreter_p): Don't declare.
446 2019-05-08 Tom Tromey <tromey@adacore.com>
448 * dwarf2loc.c: Include dwarf2read.h.
449 * defs.h (read_unsigned_leb128): Don't declare.
450 * dwarf2read.h (read_unsigned_leb128): Declare.
452 2019-05-08 Tom Tromey <tromey@adacore.com>
454 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
457 2019-05-08 Tom Tromey <tromey@adacore.com>
459 * utils.c (fputs_maybe_filtered): Reset style after paging, even
460 when no wrap column is set.
462 2019-05-08 Tom Tromey <tromey@adacore.com>
464 * c-lang.c (c_get_string): Handle non-C-style arrays.
466 2019-05-08 Tom Tromey <tromey@adacore.com>
468 * typeprint.c (print_offset_data::update): Print the bit offset,
469 not the number of bits remaining.
471 2019-05-08 Tom Tromey <tromey@adacore.com>
473 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
474 padding at end of comment.
476 2019-05-08 Tom Tromey <tromey@adacore.com>
478 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
481 2019-05-06 Tom Tromey <tom@tromey.com>
483 * common/scoped_mmap.c: Include common-defs.h.
484 * common/scoped_mmap.h: Don't include config.h.
486 2019-05-04 Tom Tromey <tom@tromey.com>
488 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
489 (struct aarch64_call_info): Add initializers.
490 <si>: Now a std::vector.
491 (pass_on_stack, aarch64_push_dummy_call): Update.
493 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
494 Tom Tromey <tom@tromey.com>
496 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
497 (ppc_threads): Now a std::vector. Now static.
498 (hwdebug_find_thread_points_by_tid)
499 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
502 2019-05-04 Tom Tromey <tom@tromey.com>
504 * arc-tdep.c (arc_tdesc_init): Return bool.
506 2019-05-04 Tom Tromey <tom@tromey.com>
508 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
509 Use gdb_assert_not_reached.
511 2019-05-04 Tom Tromey <tom@tromey.com>
513 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
516 2019-05-04 Tom Tromey <tom@tromey.com>
518 * arc-tdep.c (arc_tdesc_init): Use bool.
520 2019-05-04 Tom Tromey <tom@tromey.com>
522 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
524 2019-05-04 Tom Tromey <tom@tromey.com>
526 * cli/cli-cmds.c (valid_command_p): Return bool.
528 2019-05-04 Tom Tromey <tom@tromey.com>
530 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
531 * command.h (valid_user_defined_cmd_name_p): Channge return type.
533 2019-05-04 Raul Tambre <raul@tambre.ee>
535 * python/lib/gdb/prompt.py (_ExtendedPrompt)
536 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
537 operator for comparison.
539 2019-05-04 Tom Tromey <tom@tromey.com>
541 * psymtab.c (psymbol_name_matches, match_partial_symbol)
542 (lookup_partial_symbol, print_partial_symbols)
543 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
544 (psymbol_compare): Update.
545 (add_psymbol_to_bcache): Clear the entire psymbol.
546 (maintenance_check_psymtabs): Update.
547 * psympriv.h (struct partial_symbol): Don't derive from
549 <obj_section, unrelocated_address, address,
550 set_unrelocated_address>: Update.
552 * dwarf-index-write.c (write_psymbols, debug_names::insert)
553 (debug_names::write_psymbols): Update.
555 2019-05-04 Tom de Vries <tdevries@suse.de>
557 * contrib/cc-with-tweaks.sh: Support -n arg.
559 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
561 * corelow.c (core_target::detach): Ensure frame cache and
562 register caches are cleared.
563 inferior.c (exit_inferior_1): Likewise.
565 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
566 Tom Tromey <tom@tromey.com>
568 * dictionary.c (collate_pending_symbols_by_language): Remove
569 "struct" from foreach.
570 * symtab.c (lookup_global_symbol_from_objfile)
571 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
573 * ser-tcp.c (net_open): Remove "struct" from foreach.
574 * objfiles.c (objfile_relocate, objfile_rebase)
575 (objfile_has_symbols): Remove "struct" from foreach.
576 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
578 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
580 * darwin-nat.c (thread_info_from_private_thread_info): Remove
581 "struct" from foreach.
582 * ada-lang.c (create_excep_cond_exprs)
583 (ada_exception_catchpoint_cond_string): Remove "struct" from
586 2019-05-03 Tom Tromey <tromey@adacore.com>
588 * ada-exp.y (convert_char_literal): Check suffix of each
591 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
594 * ada-exp.y (yywrap): Don't define.
595 * ada-lex.l (%option): Add noyywrap
598 2019-05-03 Eli Zaretskii <eliz@gnu.org>
600 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
601 _WIN32_WINNT to the XP level, unless already defined to a higher
604 * unittests/parse-connection-spec-selftests.c:
606 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
609 * symfile.c (find_separate_debug_file): Remove colon from the
610 drive spec of DOS/Windows file names of the target, so that the
611 file name produced from DEBUGDIR and the target's directory will
612 be valid on DOS/Windows systems.
614 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
616 * rust-lang.c (val_print_struct): Handle printing structures
619 2019-05-02 Tom Tromey <tromey@adacore.com>
621 * valarith.c (_initialize_valarith): Remove.
623 2019-05-01 Tom Tromey <tromey@adacore.com>
625 * ada-lang.c (ada_value_primitive_field): Treat more fields as
628 2019-05-01 Tom Tromey <tromey@adacore.com>
630 * ada-lang.c (ada_value_assign): Correctly compute starting offset
631 for big-endian copies.
633 2019-04-30 Ali Tamur <tamur@google.com>
634 * gdb/dwarf2read.c (read_3_bytes): New declaration.
635 (read_attribute_value): Added DW_FORM_strx1-4 cases.
636 (read_3_bytes): New function.
638 2019-04-30 Joel Brobecker <brobecker@adacore.com>
640 * windows-nat.c (main_thread_id): Delete.
641 (handle_output_debug_string): Replace main_thread_id by
642 current_event.dwThreadId.
643 (fake_create_process): Likewise.
644 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
645 Do not set main_thread_id.
646 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
647 current_event.dwThreadId.
648 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
650 2019-04-30 Joel Brobecker <brobecker@adacore.com>
652 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
653 Use current_event.dwThreadId instead of main_thread_id.
655 2019-04-30 Tom Tromey <tromey@adacore.com>
657 * ada-lang.c (ada_lookup_simple_minsyms): New function.
658 (create_excep_cond_exprs): Iterate over program spaces.
659 (ada_exception_catchpoint_cond_string): Examine all minimal
660 symbols for exception types.
662 2019-04-30 Tom Tromey <tromey@adacore.com>
665 * dwarf2read.c (process_structure_scope): Handle case where type
666 has template parameters but no symbol was created.
668 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
669 Chris January <chris.january@arm.com>
671 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
673 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
675 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
677 * f-typeprint.c (f_print_type): Update rules for printing
679 (f_type_print_varspec_suffix): Likewise.
681 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
682 Chris January <chris.january@arm.com>
684 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
687 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
689 * f-lang.c (build_fortran_types): Change name of void type to
691 * f-typeprint.c (f_type_print_base): Print the name of the void
692 type, rather than a fixed string.
693 * f-valprint.c (f_decorations): Use lower case void string.
695 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
696 Chris January <chris.january@arm.com>
698 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
701 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
702 Chris January <chris.january@arm.com>
703 David Lecomber <david.lecomber@arm.com>
705 * f-exp.y (BINOP_INTRINSIC): New token.
706 (exp): New parser rule handling BINOP_INTRINSIC.
707 (f77_keywords): Add new builtin procedures.
708 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
709 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
710 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
711 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
712 (print_unop_subexp_f): New function.
713 (print_binop_subexp_f): New function.
714 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
715 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
716 (dump_subexp_body_f): Likewise.
717 (operator_check_f): Likewise.
718 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
719 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
721 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
723 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
725 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
726 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
727 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
728 (operator_length_f): New fuction.
729 (print_subexp_f): New function.
730 (op_name_f): New function.
731 (dump_subexp_body_f): New function.
732 (operator_check_f): New function.
733 (exp_descriptor_f): Replace standard expression handling functions
735 * gdb/fortran-operator.def: New file.
736 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
737 * gdb/std-operator.def: Remove UNOP_KIND.
739 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
741 * std-operator.def: Remove unbalanced, stray double quote
744 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
745 Chris January <chris.january@arm.com>
746 Daniel Everett <daniel.everett@arm.com>
747 Nick Forrington <nick.forrington@arm.com>
748 Richard Bunt <richard.bunt@arm.com>
750 * cp-valprint.c (cp_print_value_fields): Allow an additional level
751 of depth when printing anonymous structs or unions.
752 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
753 Don't print either the top-level value, or the children if the
754 max-depth is exceeded.
755 (ppscm_print_children): When printing the key of a map, allow one
756 extra level of depth.
757 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
758 print either the top-level value, or the children if the max-depth
760 (print_children): When printing the key of a map, allow one extra
762 * python/py-value.c (valpy_format_string): Add max_depth keyword.
763 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
764 (user_print_options): Initialise max_depth field.
765 (val_print_scalar_or_string_type_p): New function.
766 (val_print): Check to see if the max depth has been reached.
767 (val_print_check_max_depth): Define new function.
768 (show_print_max_depth): New function.
769 (_initialize_valprint): Add 'print max-depth' option.
770 * valprint.h (struct value_print_options) <max_depth>: New field.
771 (val_print_check_max_depth): Declare new function.
772 * NEWS: Document new feature.
774 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
776 * ada-lang.c (ada_language_defn): Initialise new field.
777 * c-lang.c (c_is_string_type_p): New function.
778 (c_language_defn): Initialise new field.
779 (cplus_language_defn): Initialise new field.
780 (asm_language_defn): Initialise new field.
781 (minimal_language_defn): Initialise new field.
782 * c-lang.h (c_is_string_type_p): Declare new function.
783 * d-lang.c (d_language_defn): Initialise new field.
784 * f-lang.c (f_is_string_type_p): New function.
785 (f_language_defn): Initialise new field.
786 * go-lang.c (go_is_string_type_p): New function.
787 (go_language_defn): Initialise new field.
788 * language.c (default_is_string_type_p): New function.
789 (unknown_language_defn): Initialise new field.
790 (auto_language_defn): Initialise new field.
791 * language.h (struct language_defn) <la_is_string_type_p>: New
793 (default_is_string_type_p): Declare new function.
794 * m2-lang.c (m2_language_defn): Initialise new field.
795 * objc-lang.c (objc_language_defn): Initialise new field.
796 * opencl-lang.c (opencl_language_defn): Initialise new field.
797 * p-lang.c (pascal_is_string_type_p): New function.
798 (pascal_language_defn): Initialise new field.
799 * rust-lang.c (rust_is_string_type_p): New function.
800 (rust_language_defn): Initialise new field.
802 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
804 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
806 * ada-lang.c (ada_language_defn): Initialise new field.
807 * c-lang.c (c_language_defn): Likewise.
808 (cplus_language_defn): Likewise.
809 (asm_language_defn): Likewise.
810 (minimal_language_defn): Likewise.
811 * d-lang.c (d_language_defn): Likewise.
812 * f-lang.c (f_language_defn): Likewise.
813 * go-lang.c (go_language_defn): Likewise.
814 * language.c (unknown_language_defn): Likewise.
815 (auto_language_defn): Likewise.
816 * m2-lang.c (m2_language_defn): Likewise.
817 * objc-lang.c (objc_language_defn): Likewise.
818 * opencl-lang.c (opencl_language_defn): Likewise.
819 * p-lang.c (pascal_language_defn): Likewise.
820 * rust-lang.c (rust_language_defn): Likewise.
822 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
824 * ada-lang.c (ada_is_character_type): Change return type to bool.
825 (ada_is_string_type): Likewise.
826 * ada-lang.h (ada_is_character_type): Update declaration
827 (ada_is_string_type): Likewise.
829 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
831 Support style in 'frame|thread apply'
833 * gdbcmd.h (execute_command_to_string): New term_out parameter.
834 * record.c (record_start, record_stop): Update callers of
835 execute_command_to_string with false.
836 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
837 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
839 (class string_file): New constructor with term_out parameter.
840 Override methods term_out and can_emit_style_escape. New member
842 (class stdio_file): Override can_emit_style_escape.
843 (class tee_file): Override term_out and can_emit_style_escape.
844 * utils.h (can_emit_style_escape): Remove.
845 * utils.c (can_emit_style_escape): Likewise.
846 Update all callers of can_emit_style_escape (SOMESTREAM) to
847 SOMESTREAM->can_emit_style_escape.
848 * source-cache.c (source_cache::get_source_lines): Likewise.
849 * stack.c (frame_apply_command_count): Call execute_command_to_string
850 passing the term_out characteristic of the current gdb_stdout.
851 * thread.c (thr_try_catch_cmd): Likewise.
852 * top.c (execute_command_to_string): pass term_out parameter
853 to construct the string_file for the command output.
854 * ui-file.c (term_cli_styling): New function (most code moved
855 from utils.c can_emit_style_escape).
856 (string_file::string_file, string_file::can_emit_style_escape,
857 stdio_file::can_emit_style_escape, tee_file::term_out,
858 tee_file::can_emit_style_escape): New functions.
860 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
862 * NEWS: Mention the new set|show may-call-functions.
863 * infcall.c (may_call_functions_p): New variable.
864 (show_may_call_functions_p): New function.
865 (call_function_by_hand_dummy): Throws an error if not
867 (_initialize_infcall): Call add_setshow_boolean_cmd for
870 2019-04-25 Keith Seitz <keiths@redhat.com>
873 * cp-support.c (inspect_type): Don't attempt substitutions
874 of symbol with the same name.
876 2019-04-25 Tom Tromey <tromey@adacore.com>
879 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
882 2019-04-25 Tom Tromey <tromey@adacore.com>
884 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
886 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
887 (gdb_xml_parser::parse): Use std::move.
888 * python/python-internal.h (gdbpy_convert_exception): Take a const
890 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
892 * python/py-utils.c (gdbpy_convert_exception): Take a const
894 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
896 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
898 * mi/mi-main.c (mi_print_exception): Take a const reference.
899 * main.c (handle_command_errors): Take a const reference.
900 * linespec.c (parse_linespec): Use std::move.
901 * infcall.c (run_inferior_call): Use std::move.
902 (call_function_by_hand_dummy): Use std::move.
903 * exec.c (try_open_exec_file): Use std::move.
904 * exceptions.h (exception_print, exception_fprintf)
905 (exception_print_same): Update.
906 * exceptions.c (print_exception, exception_print)
907 (exception_fprintf, exception_print_same): Change parameters to
909 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
910 * common/new-op.c: Use std::move.
911 * common/common-exceptions.h (struct gdb_exception): Add move
913 (struct gdb_exception_error, struct gdb_exception_quit, struct
914 gdb_quit_bad_alloc): Change constructor to move constructor.
915 (throw_exception): Change parameter to rvalue reference.
916 * common/common-exceptions.c (throw_exception): Take rvalue
918 * cli/cli-interp.c (safe_execute_command): Use std::move.
919 * breakpoint.c (insert_bp_location, location_to_sals): Use
922 2019-04-25 Tom Tromey <tromey@adacore.com>
924 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
925 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
926 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
927 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
928 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
929 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
930 guile/scm-value.c: Use unpack.
931 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
932 gdbscm_gdb_exception.
933 (gdbscm_throw_gdb_exception): Likewise.
934 (struct gdbscm_gdb_exception): New.
935 (unpack): New function.
936 (gdbscm_wrap): Use unpack.
938 2019-04-25 Tom Tromey <tromey@adacore.com>
940 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
941 (gdb_rl_callback_handler): Use std::move.
942 * common/common-exceptions.h (struct gdb_exception): Add move
944 (throw_exception_sjlj): Change "exception" to const reference.
945 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
946 (throw_exception_sjlj): Change "exception" to const reference.
948 2019-04-25 Tom Tromey <tromey@adacore.com>
950 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
951 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
952 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
954 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
956 * mi/mi-interp.c (mi_interp::exec): Update.
957 * linespec.c (parse_linespec): Update.
958 * infcall.c (run_inferior_call): Update.
959 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
960 * guile/scm-symbol.c (gdbscm_lookup_symbol)
961 (gdbscm_lookup_global_symbol): Update.
962 * guile/scm-param.c (gdbscm_parameter_value): Update.
963 * guile/scm-frame.c (gdbscm_frame_read_register)
964 (gdbscm_frame_read_var): Update.
965 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
966 * exec.c (try_open_exec_file): Update.
967 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
968 (gdb_rl_callback_handler): Update.
969 * common/common-exceptions.h (exception_none): Don't declare.
970 * common/common-exceptions.c (exception_none): Don't define.
971 (struct catcher) <exception>: Update.
972 * cli/cli-interp.c (safe_execute_command): Update.
973 * breakpoint.c (insert_bp_location, location_to_sals): Update.
975 2019-04-25 Ali Tamur <tamur@google.com>
977 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
978 (read_attribute_value): Likewise.
979 (dwarf2_read_addr_index): Update comment.
980 (read_str_index): Add DW_FORM_strx.
981 (dwarf2_string_attr): Likewise.
982 (dwarf2_const_value_attr): Likewise.
983 (dump_die_shallow): Likewise.
984 (dwarf2_fetch_constant_bytes): Likewise.
985 (skip_form_bytes): Likewise.
986 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
988 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
992 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
993 OFFSET. Verify if current mapping contains an ELF header.
994 (linux_find_memory_regions_full): Adjust call to
997 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
998 Kang Li <kanglictf@gmail.com>
1002 * dwarf2-frame.c (read_initial_length): Be consistent about using
1003 unsigned representation of length.
1004 (decode_frame_entry_1): Likewise. Check for wraparound of
1005 end pointer as well as buffer overflow.
1007 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
1009 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
1012 2019-04-24 Tom Tromey <tromey@adacore.com>
1014 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
1016 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1018 * s12z-tdep.c (s12z_unwind_pc): Delete.
1019 (s12z_unwind_sp): Delete.
1020 (s12z_gdbarch_init): Don't register deleted functions with
1023 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1025 * rl78-tdep.c (rl78_unwind_sp): Delete.
1026 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
1028 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1030 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
1031 (xstormy16_unwind_pc): Delete.
1032 (xstormy16_dummy_id): Delete.
1033 (xstormy16_gdbarch_init): Don't register deleted functions with
1036 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1038 * vax-tdep.c (vax_unwind_pc): Delete.
1039 (vax_gdbarch_init): Don't register deleted function with gdbarch.
1041 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1043 * v850-tdep.c (v850_unwind_sp): Delete.
1044 (v850_unwind_pc): Delete.
1045 (v850_dummy_id): Delete.
1046 (v850_gdbarch_init): Don't register deleted functions with
1049 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1051 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
1052 (tilegx_unwind_pc): Delete.
1053 (tilegx_unwind_dummy_id): Delete.
1054 (tilegx_gdbarch_init): Don't register deleted functions with
1057 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1059 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
1060 (tic6x_dummy_id): Delete.
1061 (tic6x_gdbarch_init): Don't register deleted functions with
1064 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1066 * sparc-tdep.c (sparc_unwind_pc): Delete.
1067 (sparc32_gdbarch_init): Don't register deleted function with
1070 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1072 * sh-tdep.c (sh_unwind_sp): Delete.
1073 (sh_unwind_pc): Delete.
1074 (sh_dummy_id): Delete.
1075 (sh_gdbarch_init): Don't register deleted functions with
1078 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1080 * score-tdep.c (score_unwind_sp): Delete.
1081 (score_unwind_pc): Delete.
1082 (score_dummy_id): Delete.
1083 (score_gdbarch_init): Don't register deleted functions with
1086 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1088 * rx-tdep.c (rx_unwind_pc): Delete.
1089 (rx_unwind_sp): Delete.
1090 (rx_dummy_id): Delete.
1091 (rx_gdbarch_init): Don't register deleted functions with
1092 gdbarch. Update comment.
1094 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1096 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
1097 (rs6000_dummy_id): Delete.
1098 (rs6000_gdbarch_init): Don't register deleted functions with
1101 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1103 * or1k-tdep.c (or1k_dummy_id): Delete.
1104 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
1106 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1108 * nios2-tdep.c (nios2_dummy_id): Delete.
1109 (nios2_unwind_sp): Delete.
1110 (nios2_gdbarch_init): Don't register deleted functions with
1113 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1115 * nds32-tdep.c (nds32_dummy_id): Delete.
1116 (nds32_unwind_pc): Delete.
1117 (nds32_unwind_sp): Delete.
1118 (nds32_gdbarch_init): Don't register deleted functions with
1121 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1123 * msp430-tdep.c (msp430_unwind_pc): Delete.
1124 (msp430_unwind_sp): Delete.
1125 (msp430_dummy_id): Delete.
1126 (msp430_gdbarch_init): Don't register deleted functions with
1129 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1131 * moxie-tdep.c (moxie_unwind_sp): Delete.
1132 (moxie_unwind_pc): Delete.
1133 (moxie_dummy_id): Delete.
1134 (moxie_gdbarch_init): Don't register deleted functions with
1137 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1139 * mn10300-tdep.c (mn10300_dummy_id): Delete.
1140 (mn10300_unwind_pc): Delete.
1141 (mn10300_unwind_sp): Delete.
1142 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
1144 (mn10300_frame_unwind_init): Don't register deleted functions with
1147 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1149 * mep-tdep.c (mep_unwind_pc): Delete.
1150 (mep_unwind_sp): Delete.
1151 (mep_dummy_id): Delete.
1152 (mep_gdbarch_init): Don't register deleted functions with
1155 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1157 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
1158 (m68hc11_unwind_sp): Delete.
1159 (m68hc11_gdbarch_init): Don't register deleted functions with
1162 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1164 * m32r-tdep.c (m32r_unwind_sp): Delete.
1165 (m32r_unwind_pc): Delete.
1166 (m32r_dummy_id): Delete.
1167 (m32r_gdbarch_init): Don't register deleted functions with
1170 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1172 * m32c-tdep.c (m32c_unwind_pc): Delete.
1173 (m32c_unwind_sp): Delete.
1174 (m32c_dummy_id): Delete.
1175 (m32c_gdbarch_init): Don't register deleted functions with
1178 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1180 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
1181 (lm32_unwind_pc): Delete.
1182 (lm32_dummy_id): Delete.
1183 (lm32_gdbarch_init): Don't register deleted functions with
1186 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1188 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
1189 (iq2000_unwind_pc): Delete.
1190 (iq2000_dummy_id): Delete.
1191 (iq2000_gdbarch_init): Don't register deleted functions with
1194 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1196 * nds32-tdep.c (nds32_type_align): Delete.
1197 (nds32_push_dummy_call): Use type_align instead.
1199 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1201 * arm-tdep.c (arm_type_align): Only handle vector override case.
1202 (arm_push_dummy_call): Use type_align.
1203 (arm_gdbarch_init): Register arm_type_align gdbarch function.
1205 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1207 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
1209 (pass_on_stack): Use type_align.
1210 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
1213 2019-04-23 Tom Tromey <tromey@adacore.com>
1215 * dwarf2read.c (line_header::file_name_at): Remove unused
1218 2019-04-23 Tom de Vries <tdevries@suse.de>
1221 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
1225 2019-03-27 Ali Tamur <tamur@google.com>
1227 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
1228 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
1229 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
1230 (dwarf_expr_context::get_addr_index): Likewise
1231 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
1232 (symbol_needs_eval_context::get_addr_index): Likewise
1233 (disassemble_dwarf_expression): Add DW_OP_addrx
1234 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
1235 (read_cutu_die_from_dwo): Update comment
1236 (skip_one_die): Add DW_FORM_addrx
1237 (read_attribute_value): Likewise
1238 (var_decode_location): Add DW_OP_addrx
1239 (dwarf2_const_value_attr): Add DW_FORM_addrx
1240 (dump_die_shallow): Likewise
1241 (dwarf2_fetch_constant_bytes): Likewise
1242 (decode_locdesc): Add DW_OP_addrx
1243 (skip_form_bytes): Add DW_FORM_addrx
1245 2019-04-22 Ali Tamur <tamur@google.com>
1247 * MAINTAINERS (Write After Approval): Add self.
1249 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
1251 * solib-svr4.c (get_svr4_info): Add pspace parameter.
1252 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
1253 (open_symbol_file_object): Likewise.
1254 (svr4_default_sos): Add info parameter.
1255 (svr4_read_so_list): Likewise.
1256 (svr4_current_sos_direct): Adjust functions calls to pass down
1258 (svr4_current_sos_1): Add info parameter.
1259 (svr4_current_sos): Call get_svr4_info, pass info down to
1261 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
1263 (svr4_in_dynsym_resolve_code): Pass current_program_space to
1265 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
1267 (probes_table_remove_objfile_probes): Likewise.
1268 (register_solib_event_probe): Add info parameter.
1269 (solist_update_incremental): Pass info parameter down to
1271 (disable_probes_interface): Add info parameter.
1272 (svr4_handle_solib_event): Pass current_program_space to
1273 get_svr4_info. Adjust disable_probes_interface cleanup.
1274 (svr4_create_probe_breakpoints): Add info parameter, pass it
1275 down to register_solib_event_probe.
1276 (svr4_create_solib_event_breakpoints): Add info parameter,
1277 pass it down to svr4_create_probe_breakpoints.
1278 (enable_break): Pass info down to
1279 svr4_create_solib_event_breakpoints.
1280 (svr4_solib_create_inferior_hook): Pass current_program_space to
1282 (svr4_clear_solib): Likewise.
1284 2019-04-22 Pedro Alves <palves@redhat.com>
1286 * solib-svr4.c (svr4_free_objfile_observer): New.
1287 (probe_and_action::objfile): New field.
1288 (probes_table_htab_remove_objfile_probes)
1289 (probes_table_remove_objfile_probes): New functions.
1290 (register_solib_event_probe): Add 'objfile' parameter. Store it
1291 in the new probe_and_action. Don't store the probe in 'lookup'.
1292 (svr4_create_probe_breakpoints): Pass objfile to
1293 register_solib_event_probe.
1294 (_initialize_svr4_solib): Register a free_objfile observer.
1296 2019-04-19 Tom Tromey <tom@tromey.com>
1298 * common/queue.h: Remove.
1300 2019-04-19 Tom Tromey <tom@tromey.com>
1302 * event-loop.c: Don't include "common/queue.h".
1304 2019-04-19 Tom Tromey <tom@tromey.com>
1306 * remote.c (remote_target): Use delete.
1307 * remote-notif.h: Include <list>, not "common/queue.h".
1308 (notif_client_p): Remove typedef.
1309 (remote_notif_state): Add constructor, destructor, initializer.
1310 <notif_queue>: Now a std::list.
1311 (remote_notif_state_xfree): Don't declare.
1312 * remote-notif.c (remote_notif_process, handle_notification)
1313 (remote_notif_state_allocate): Update.
1314 (~remote_notif_state): Rename from remote_notif_state_xfree.
1316 2019-04-19 Tom Tromey <tom@tromey.com>
1318 * symfile.c (reread_symbols): Update.
1319 * objfiles.c (objfile_register_static_link)
1320 (objfile_lookup_static_link): Update
1321 (~objfile) Don't delete static_links.
1322 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
1324 2019-04-19 Tom Tromey <tom@tromey.com>
1326 * type-stack.h (struct type_stack) <insert>: Constify string.
1327 * type-stack.c (type_stack::insert): Constify string.
1328 * gdbtypes.h (lookup_template_type): Update.
1329 (address_space_name_to_int): Update.
1330 * gdbtypes.c (address_space_name_to_int): Make space_identifier
1332 (lookup_template_type): Make name const.
1333 * c-exp.y: Update rules.
1334 (lex_one_token, classify_name, classify_inner_name)
1335 (c_print_token): Update.
1336 * p-exp.y: Update rules.
1338 * f-exp.y: Update rules.
1340 * d-exp.y: Update rules.
1341 (lex_one_token, classify_name, classify_inner_name): Update.
1342 * parse.c (write_dollar_variable, copy_name): Return std::string.
1343 * parser-defs.h (copy_name): Change return type.
1344 * m2-exp.y: Update rules.
1346 * go-exp.y (lex_one_token): Update.
1348 (classify_unsafe_function, classify_packaged_name)
1349 (classify_name, yylex): Update.
1351 2019-04-19 Sergei Trofimovich <siarheit@google.com>
1353 * configure.ac: add --enable-source-highlight switch.
1354 * configure: Regenerate.
1355 * top.c (print_gdb_version): plumb --enable-source-highlight
1356 status to "show configuration".
1358 2019-04-19 Tom Tromey <tromey@adacore.com>
1360 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
1362 (empty_record, ada_template_to_fixed_record_type_1)
1363 (template_to_static_fixed_type)
1364 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
1365 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
1366 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
1369 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
1372 * source.c (print_source_lines_base): Advance "iter" when a
1373 control character is seen.
1375 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1377 * inferior.h (struct infcall_suspend_state_deleter):
1378 Catch exception in destructor to avoid crash.
1380 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1382 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
1383 close to the add_com "shell".
1385 2019-04-18 Tom Tromey <tromey@adacore.com>
1387 * process-stratum-target.h (class process_stratum_target)
1388 <stratum>: Add "final".
1390 2019-04-17 Tom Tromey <tromey@adacore.com>
1392 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
1393 against nullptr before use.
1395 2019-04-17 Alan Hayward <alan.hayward@arm.com>
1397 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
1399 2019-04-17 Jim Wilson <jimw@sifive.com>
1400 Andrew Burgess <andrew.burgess@embecosm.com>
1402 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
1403 code read might fail, assume 4-byte breakpoint in that case.
1405 2019-04-15 Leszek Swirski <leszeks@google.com>
1407 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
1408 rather than a hand-rolled POD check when checking for forced MEMORY
1411 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1413 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
1414 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
1416 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
1417 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
1418 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
1421 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1423 * aarch64-linux-nat.c
1424 (aarch64_linux_nat_target::thread_architecture): Add override.
1425 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
1428 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1430 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
1432 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
1434 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
1435 target types of size 96-bits, add some additional comments, and
1436 check that the builtin type we found was the correct size.
1438 2019-04-12 Eli Zaretskii <eliz@gnu.org>
1440 * utils.c (prompt_for_continue): Don't restore the styling at the
1441 end, as applied_style has the wrong value. This fixes styling in
1442 long lists of file names that are interrupted by the "Continue?"
1445 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
1447 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
1448 * c-lang.c (c_language_defn): Likewise.
1449 (cplus_language_defn): Likewise.
1450 (asm_language_defn): Likewise.
1451 (minimal_language_defn): Likewise.
1452 * d-lang.c (d_language_defn): Likewise.
1453 * f-lang.c (f_language_defn): Likewise.
1454 * go-lang.c (go_language_defn): Likewise.
1455 * language.c (unknown_language_defn): Likewise.
1456 (auto_language_defn): Likewise.
1457 * language.h (struct language_defn): Remove la_magic field.
1458 (LANG_MAGIC): Delete.
1459 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
1460 * objc-lang.c (objc_language_defn): Likewise.
1461 * opencl-lang.c (opencl_language_defn): Likewise.
1462 * p-lang.c (pascal_language_defn): Likewise.
1463 * rust-lang.c (rust_language_defn): Likewise.
1465 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1467 * riscv-tdep.c (riscv_type_align): New function.
1468 (riscv_type_alignment): Delete.
1469 (riscv_arg_location): Use 'type_align'.
1470 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
1472 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1474 * gdbtypes.c (type_align): A struct with no non-static fields also
1477 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1479 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
1481 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
1483 (riscv_struct_info::analyse): New implementation using new
1484 analyse_inner member function.
1485 (riscv_struct_info::field_offset): New member function.
1486 (riscv_struct_info::m_offsets): New member variable.
1487 (riscv_struct_info::analyse_inner): New private member function,
1488 takes the old implementation of riscv_struct_info::analyse but
1489 extended to track field offsets.
1490 (riscv_call_arg_struct): Update the struct folding special cases
1491 to handle cases where empty C++ structs, which are non-zero
1493 (riscv_arg_location): Initialise the length of each location, a
1494 non-zero length now indicates the location is in use.
1495 (riscv_push_dummy_call): Allow for the first location having a
1496 non-zero offset when setting up arguments.
1497 (riscv_return_value): Likewise, but for return values.
1499 2019-04-11 Tom Tromey <tromey@adacore.com>
1501 * utils.c (internal_vproblem): Make "msg" const.
1503 2019-04-11 Alan Hayward <alan.hayward@arm.com>
1505 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
1506 * trad-frame.c (trad_frame_reset_saved_regs): New function.
1507 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
1508 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
1510 2019-04-10 Kevin Buettner <kevinb@redhat.com>
1512 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
1514 (fill_gregset): Call amd64_linux_collect_native_gregset instead
1515 of amd64_collect_native_gregset.
1516 (amd64_linux_nat_target::store_registers): Likewise.
1518 2019-04-10 Tom Tromey <tom@tromey.com>
1520 * symtab.c (lookup_global_symbol_from_objfile)
1521 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
1522 * objfiles.h (class separate_debug_iterator): New.
1523 (class separate_debug_range): New.
1524 (struct objfile) <separate_debug_objfiles>: New method.
1525 (objfile_separate_debug_iterate): Don't declare.
1526 * objfiles.c (separate_debug_iterator::operator++): Rename from
1527 objfile_separate_debug_iterate.
1528 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
1530 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
1533 2019-04-10 Tom Tromey <tom@tromey.com>
1535 * symfile.c (reread_symbols): Remove old comment.
1536 * objfiles.c (free_all_objfiles): Fix a typo.
1538 2019-04-10 Tom Tromey <tom@tromey.com>
1540 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
1541 * minsyms.c (lookup_minimal_symbol): Use foreach.
1542 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
1543 (lookup_minimal_symbol_solib_trampoline): Likewise.
1544 * symfile.c (reread_symbols): Use foreach.
1546 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
1547 Tom Tromey <tromey@adacore.com>
1550 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
1551 (rust_lex_int_test): Change "value" to be LONGEST.
1552 (rust_lex_tests): Add test for long integer literal.
1554 2019-04-09 Tom Tromey <tromey@adacore.com>
1556 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
1558 (extended_remote_target::attach): Update.
1559 (remote_target::remote_notice_new_inferior): Update.
1560 (remote_target::add_current_inferior_and_thread): Update.
1561 * inferior.c (exit_inferior_1): Use "false".
1562 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
1564 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
1566 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
1567 the "start" command.
1569 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1571 * python/py-inferior.c (infpy_thread_from_thread_handle):
1572 Adjust comments to reflect renaming of thread_from_thread_handle
1573 to thread_from_handle. Adjust keywords. Fix type error message.
1574 (inferior_object_methods): Add thread_from_handle. Retain
1575 thread_from_thread_handle, but mark it as deprecated.
1577 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1579 * gdbthread.h (find_thread_by_handle): Revise declaration.
1580 * thread.c (find_thread_by_handle): Likewise. Adjust
1582 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
1583 support for buffer objects as handles.
1585 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1587 * python/py-infthread.c (thpy_thread_handle): New function.
1588 (thread_object_methods): Register thpy_thread_handle.
1590 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1592 * gdbthread.h (thread_to_thread_handle): Declare.
1593 * thread.c (gdbtypes.h): Include.
1594 (thread_to_thread_handle): New function.
1596 * target.h (struct target_ops): Add thread_info_to_thread_handle.
1597 (target_thread_info_to_thread_handle): Declare.
1598 * target.c (target_thread_info_to_thread_handle): New function.
1599 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
1600 * target-delegates.c: Regenerate.
1602 * linux-thread-db.c (class thread_db_target): Add method
1603 thread_info_to_thread_handle.
1604 (thread_db_target::thread_info_to_thread_handle): Define.
1605 * remote.c (class remote_target): Add new method
1606 thread_info_to_thread_handle.
1607 (remote_target::thread_info_to_thread_handle): Define.
1609 2019-04-08 Pedro Alves <palves@redhat.com>
1611 * common/common-exceptions.c (throw_exception): Don't create
1612 named object to throw; throw directly.
1613 (throw_it): Likewise. Don't initialize gdb_exception::message
1614 here, with new; pass FMT and AP to the ctor instead.
1615 * common/common-exceptions.h: Include <string>.
1616 (gdb_exception::gdb_exception(enum return_reason, enum errors,
1617 const char *, va_list)): New ctor. Use std::make_shared.
1618 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
1620 (gdb_exception_error::gdb_exception_error(enum errors, const char
1622 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
1624 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
1626 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
1627 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
1630 2019-04-08 Tom Tromey <tom@tromey.com>
1632 * valops.c (value_rtti_indirect_type): Replace throw_exception
1634 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
1636 * thread.c (thr_try_catch_cmd): Replace throw_exception with
1638 * target.c (target_translate_tls_address): Replace throw_exception
1640 * stack.c (frame_apply_command_count): Replace throw_exception
1642 * solib-spu.c (append_ocl_sos): Replace throw_exception with
1644 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
1646 * rs6000-tdep.c (rs6000_frame_cache)
1647 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
1648 * remote.c: Replace throw_exception with throw.
1649 * record-full.c (record_full_message, record_full_wait_1)
1650 (record_full_restore): Replace throw_exception with throw.
1652 (get_thread_current_frame_id, record_btrace_start_replaying)
1653 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
1654 (cmd_record_btrace_start): Replace throw_exception with throw.
1655 * parse.c (parse_exp_in_context_1): Replace throw_exception with
1657 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
1658 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
1660 (find_linespec_symbols): Replace throw_exception with throw.
1661 * infrun.c (displaced_step_prepare, resume): Replace
1662 throw_exception with throw.
1663 * infcmd.c (post_create_inferior): Replace throw_exception with
1665 * inf-loop.c (inferior_event_handler): Replace throw_exception
1667 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
1668 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
1669 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
1670 (get_prev_frame_always, get_frame_pc_if_available)
1671 (get_frame_address_in_block_if_available, get_frame_language):
1672 Replace throw_exception with throw.
1673 * frame-unwind.c (frame_unwind_try_unwinder): Replace
1674 throw_exception with throw.
1675 * eval.c (fetch_subexp_value, evaluate_var_value)
1676 (evaluate_funcall, evaluate_subexp_standard): Replace
1677 throw_exception with throw.
1678 * dwarf2loc.c (call_site_find_chain)
1679 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
1680 Replace throw_exception with throw.
1681 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
1683 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
1685 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
1686 * completer.c (complete_line_internal): Replace throw_exception
1688 * compile/compile-object-run.c (compile_object_run): Replace
1689 throw_exception with throw.
1690 * cli/cli-script.c (process_next_line): Replace throw_exception
1692 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
1693 (btrace_enable, btrace_maint_update_pt_packets): Replace
1694 throw_exception with throw.
1695 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
1696 throw_exception with throw.
1697 * break-catch-throw.c (re_set_exception_catchpoint): Replace
1698 throw_exception with throw.
1699 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
1700 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
1701 * aarch64-tdep.c (aarch64_make_prologue_cache)
1702 (aarch64_make_stub_cache): Replace throw_exception with throw.
1704 2019-04-08 Tom Tromey <tom@tromey.com>
1706 * common/common-exceptions.c (throw_exception): Rename from
1707 throw_exception_cxx. Remove old copy. Make argument const.
1708 (throw_it): Create and throw exception objects directly.
1709 * common/common-exceptions.h (throw_exception): Make argument
1711 (struct gdb_exception_error): Add constructor.
1712 (struct gdb_exception_quit): Add constructor.
1714 2019-04-08 Tom Tromey <tom@tromey.com>
1716 * common/common-exceptions.h (exception_rethrow): Don't declare.
1717 (TRY_SJLJ): Update comment.
1718 (TRY, CATCH, END_CATCH): Remove.
1719 * common/common-exceptions.c (exception_rethrow): Remove.
1721 2019-04-08 Tom Tromey <tom@tromey.com>
1723 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
1725 (gdb_exception_error): Rename from
1726 gdb_exception_RETURN_MASK_ERROR.
1727 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
1728 (gdb_quit_bad_alloc): Update.
1729 * aarch64-tdep.c: Update.
1730 * ada-lang.c: Update.
1731 * ada-typeprint.c: Update.
1732 * ada-valprint.c: Update.
1733 * amd64-tdep.c: Update.
1734 * arch-utils.c: Update.
1735 * break-catch-throw.c: Update.
1736 * breakpoint.c: Update.
1738 * c-varobj.c: Update.
1739 * cli/cli-cmds.c: Update.
1740 * cli/cli-interp.c: Update.
1741 * cli/cli-script.c: Update.
1742 * common/common-exceptions.c: Update.
1743 * common/new-op.c: Update.
1744 * common/selftest.c: Update.
1745 * compile/compile-c-symbols.c: Update.
1746 * compile/compile-cplus-symbols.c: Update.
1747 * compile/compile-object-load.c: Update.
1748 * compile/compile-object-run.c: Update.
1749 * completer.c: Update.
1750 * corelow.c: Update.
1752 * cp-support.c: Update.
1753 * cp-valprint.c: Update.
1754 * darwin-nat.c: Update.
1755 * disasm-selftests.c: Update.
1756 * dtrace-probe.c: Update.
1757 * dwarf-index-cache.c: Update.
1758 * dwarf-index-write.c: Update.
1759 * dwarf2-frame-tailcall.c: Update.
1760 * dwarf2-frame.c: Update.
1761 * dwarf2loc.c: Update.
1762 * dwarf2read.c: Update.
1764 * event-loop.c: Update.
1765 * event-top.c: Update.
1767 * f-valprint.c: Update.
1768 * fbsd-tdep.c: Update.
1769 * frame-unwind.c: Update.
1771 * gdbtypes.c: Update.
1772 * gnu-v3-abi.c: Update.
1773 * guile/guile-internal.h: Update.
1774 * guile/scm-block.c: Update.
1775 * guile/scm-breakpoint.c: Update.
1776 * guile/scm-cmd.c: Update.
1777 * guile/scm-disasm.c: Update.
1778 * guile/scm-frame.c: Update.
1779 * guile/scm-lazy-string.c: Update.
1780 * guile/scm-math.c: Update.
1781 * guile/scm-param.c: Update.
1782 * guile/scm-ports.c: Update.
1783 * guile/scm-pretty-print.c: Update.
1784 * guile/scm-symbol.c: Update.
1785 * guile/scm-symtab.c: Update.
1786 * guile/scm-type.c: Update.
1787 * guile/scm-value.c: Update.
1788 * i386-linux-tdep.c: Update.
1789 * i386-tdep.c: Update.
1790 * inf-loop.c: Update.
1791 * infcall.c: Update.
1795 * language.c: Update.
1796 * linespec.c: Update.
1797 * linux-fork.c: Update.
1798 * linux-nat.c: Update.
1799 * linux-tdep.c: Update.
1800 * linux-thread-db.c: Update.
1802 * mi/mi-cmd-break.c: Update.
1803 * mi/mi-cmd-stack.c: Update.
1804 * mi/mi-interp.c: Update.
1805 * mi/mi-main.c: Update.
1806 * objc-lang.c: Update.
1807 * p-valprint.c: Update.
1809 * ppc-linux-tdep.c: Update.
1810 * printcmd.c: Update.
1811 * python/py-arch.c: Update.
1812 * python/py-breakpoint.c: Update.
1813 * python/py-cmd.c: Update.
1814 * python/py-finishbreakpoint.c: Update.
1815 * python/py-frame.c: Update.
1816 * python/py-framefilter.c: Update.
1817 * python/py-gdb-readline.c: Update.
1818 * python/py-inferior.c: Update.
1819 * python/py-infthread.c: Update.
1820 * python/py-lazy-string.c: Update.
1821 * python/py-linetable.c: Update.
1822 * python/py-objfile.c: Update.
1823 * python/py-param.c: Update.
1824 * python/py-prettyprint.c: Update.
1825 * python/py-progspace.c: Update.
1826 * python/py-record-btrace.c: Update.
1827 * python/py-record.c: Update.
1828 * python/py-symbol.c: Update.
1829 * python/py-type.c: Update.
1830 * python/py-unwind.c: Update.
1831 * python/py-utils.c: Update.
1832 * python/py-value.c: Update.
1833 * python/python.c: Update.
1834 * record-btrace.c: Update.
1835 * record-full.c: Update.
1836 * remote-fileio.c: Update.
1838 * riscv-tdep.c: Update.
1839 * rs6000-aix-tdep.c: Update.
1840 * rs6000-tdep.c: Update.
1841 * rust-exp.y: Update.
1842 * rust-lang.c: Update.
1843 * s390-tdep.c: Update.
1844 * selftest-arch.c: Update.
1845 * solib-dsbt.c: Update.
1846 * solib-frv.c: Update.
1847 * solib-spu.c: Update.
1848 * solib-svr4.c: Update.
1850 * sparc64-linux-tdep.c: Update.
1852 * symfile-mem.c: Update.
1853 * symmisc.c: Update.
1857 * tracefile-tfile.c: Update.
1858 * tui/tui.c: Update.
1859 * typeprint.c: Update.
1860 * unittests/cli-utils-selftests.c: Update.
1861 * unittests/parse-connection-spec-selftests.c: Update.
1863 * valprint.c: Update.
1866 * windows-nat.c: Update.
1867 * x86-linux-nat.c: Update.
1868 * xml-support.c: Update.
1870 2019-04-08 Tom Tromey <tom@tromey.com>
1872 * xml-support.c: Use C++ exception handling.
1873 * x86-linux-nat.c: Use C++ exception handling.
1874 * windows-nat.c: Use C++ exception handling.
1875 * varobj.c: Use C++ exception handling.
1876 * value.c: Use C++ exception handling.
1877 * valprint.c: Use C++ exception handling.
1878 * valops.c: Use C++ exception handling.
1879 * unittests/parse-connection-spec-selftests.c: Use C++ exception
1881 * unittests/cli-utils-selftests.c: Use C++ exception handling.
1882 * typeprint.c: Use C++ exception handling.
1883 * tui/tui.c: Use C++ exception handling.
1884 * tracefile-tfile.c: Use C++ exception handling.
1885 * top.c: Use C++ exception handling.
1886 * thread.c: Use C++ exception handling.
1887 * target.c: Use C++ exception handling.
1888 * symmisc.c: Use C++ exception handling.
1889 * symfile-mem.c: Use C++ exception handling.
1890 * stack.c: Use C++ exception handling.
1891 * sparc64-linux-tdep.c: Use C++ exception handling.
1892 * solib.c: Use C++ exception handling.
1893 * solib-svr4.c: Use C++ exception handling.
1894 * solib-spu.c: Use C++ exception handling.
1895 * solib-frv.c: Use C++ exception handling.
1896 * solib-dsbt.c: Use C++ exception handling.
1897 * selftest-arch.c: Use C++ exception handling.
1898 * s390-tdep.c: Use C++ exception handling.
1899 * rust-lang.c: Use C++ exception handling.
1900 * rust-exp.y: Use C++ exception handling.
1901 * rs6000-tdep.c: Use C++ exception handling.
1902 * rs6000-aix-tdep.c: Use C++ exception handling.
1903 * riscv-tdep.c: Use C++ exception handling.
1904 * remote.c: Use C++ exception handling.
1905 * remote-fileio.c: Use C++ exception handling.
1906 * record-full.c: Use C++ exception handling.
1907 * record-btrace.c: Use C++ exception handling.
1908 * python/python.c: Use C++ exception handling.
1909 * python/py-value.c: Use C++ exception handling.
1910 * python/py-utils.c: Use C++ exception handling.
1911 * python/py-unwind.c: Use C++ exception handling.
1912 * python/py-type.c: Use C++ exception handling.
1913 * python/py-symbol.c: Use C++ exception handling.
1914 * python/py-record.c: Use C++ exception handling.
1915 * python/py-record-btrace.c: Use C++ exception handling.
1916 * python/py-progspace.c: Use C++ exception handling.
1917 * python/py-prettyprint.c: Use C++ exception handling.
1918 * python/py-param.c: Use C++ exception handling.
1919 * python/py-objfile.c: Use C++ exception handling.
1920 * python/py-linetable.c: Use C++ exception handling.
1921 * python/py-lazy-string.c: Use C++ exception handling.
1922 * python/py-infthread.c: Use C++ exception handling.
1923 * python/py-inferior.c: Use C++ exception handling.
1924 * python/py-gdb-readline.c: Use C++ exception handling.
1925 * python/py-framefilter.c: Use C++ exception handling.
1926 * python/py-frame.c: Use C++ exception handling.
1927 * python/py-finishbreakpoint.c: Use C++ exception handling.
1928 * python/py-cmd.c: Use C++ exception handling.
1929 * python/py-breakpoint.c: Use C++ exception handling.
1930 * python/py-arch.c: Use C++ exception handling.
1931 * printcmd.c: Use C++ exception handling.
1932 * ppc-linux-tdep.c: Use C++ exception handling.
1933 * parse.c: Use C++ exception handling.
1934 * p-valprint.c: Use C++ exception handling.
1935 * objc-lang.c: Use C++ exception handling.
1936 * mi/mi-main.c: Use C++ exception handling.
1937 * mi/mi-interp.c: Use C++ exception handling.
1938 * mi/mi-cmd-stack.c: Use C++ exception handling.
1939 * mi/mi-cmd-break.c: Use C++ exception handling.
1940 * main.c: Use C++ exception handling.
1941 * linux-thread-db.c: Use C++ exception handling.
1942 * linux-tdep.c: Use C++ exception handling.
1943 * linux-nat.c: Use C++ exception handling.
1944 * linux-fork.c: Use C++ exception handling.
1945 * linespec.c: Use C++ exception handling.
1946 * language.c: Use C++ exception handling.
1947 * jit.c: Use C++ exception handling.
1948 * infrun.c: Use C++ exception handling.
1949 * infcmd.c: Use C++ exception handling.
1950 * infcall.c: Use C++ exception handling.
1951 * inf-loop.c: Use C++ exception handling.
1952 * i386-tdep.c: Use C++ exception handling.
1953 * i386-linux-tdep.c: Use C++ exception handling.
1954 * guile/scm-value.c: Use C++ exception handling.
1955 * guile/scm-type.c: Use C++ exception handling.
1956 * guile/scm-symtab.c: Use C++ exception handling.
1957 * guile/scm-symbol.c: Use C++ exception handling.
1958 * guile/scm-pretty-print.c: Use C++ exception handling.
1959 * guile/scm-ports.c: Use C++ exception handling.
1960 * guile/scm-param.c: Use C++ exception handling.
1961 * guile/scm-math.c: Use C++ exception handling.
1962 * guile/scm-lazy-string.c: Use C++ exception handling.
1963 * guile/scm-frame.c: Use C++ exception handling.
1964 * guile/scm-disasm.c: Use C++ exception handling.
1965 * guile/scm-cmd.c: Use C++ exception handling.
1966 * guile/scm-breakpoint.c: Use C++ exception handling.
1967 * guile/scm-block.c: Use C++ exception handling.
1968 * guile/guile-internal.h: Use C++ exception handling.
1969 * gnu-v3-abi.c: Use C++ exception handling.
1970 * gdbtypes.c: Use C++ exception handling.
1971 * frame.c: Use C++ exception handling.
1972 * frame-unwind.c: Use C++ exception handling.
1973 * fbsd-tdep.c: Use C++ exception handling.
1974 * f-valprint.c: Use C++ exception handling.
1975 * exec.c: Use C++ exception handling.
1976 * event-top.c: Use C++ exception handling.
1977 * event-loop.c: Use C++ exception handling.
1978 * eval.c: Use C++ exception handling.
1979 * dwarf2read.c: Use C++ exception handling.
1980 * dwarf2loc.c: Use C++ exception handling.
1981 * dwarf2-frame.c: Use C++ exception handling.
1982 * dwarf2-frame-tailcall.c: Use C++ exception handling.
1983 * dwarf-index-write.c: Use C++ exception handling.
1984 * dwarf-index-cache.c: Use C++ exception handling.
1985 * dtrace-probe.c: Use C++ exception handling.
1986 * disasm-selftests.c: Use C++ exception handling.
1987 * darwin-nat.c: Use C++ exception handling.
1988 * cp-valprint.c: Use C++ exception handling.
1989 * cp-support.c: Use C++ exception handling.
1990 * cp-abi.c: Use C++ exception handling.
1991 * corelow.c: Use C++ exception handling.
1992 * completer.c: Use C++ exception handling.
1993 * compile/compile-object-run.c: Use C++ exception handling.
1994 * compile/compile-object-load.c: Use C++ exception handling.
1995 * compile/compile-cplus-symbols.c: Use C++ exception handling.
1996 * compile/compile-c-symbols.c: Use C++ exception handling.
1997 * common/selftest.c: Use C++ exception handling.
1998 * common/new-op.c: Use C++ exception handling.
1999 * cli/cli-script.c: Use C++ exception handling.
2000 * cli/cli-interp.c: Use C++ exception handling.
2001 * cli/cli-cmds.c: Use C++ exception handling.
2002 * c-varobj.c: Use C++ exception handling.
2003 * btrace.c: Use C++ exception handling.
2004 * breakpoint.c: Use C++ exception handling.
2005 * break-catch-throw.c: Use C++ exception handling.
2006 * arch-utils.c: Use C++ exception handling.
2007 * amd64-tdep.c: Use C++ exception handling.
2008 * ada-valprint.c: Use C++ exception handling.
2009 * ada-typeprint.c: Use C++ exception handling.
2010 * ada-lang.c: Use C++ exception handling.
2011 * aarch64-tdep.c: Use C++ exception handling.
2013 2019-04-08 Tom Tromey <tom@tromey.com>
2015 * xml-support.c (gdb_xml_parser::parse): Update.
2016 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2017 * value.c (show_convenience): Update.
2018 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
2019 (test_parse_flags_qcs): Update.
2020 * thread.c (thr_try_catch_cmd): Update.
2021 * target.c (target_translate_tls_address): Update.
2022 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2023 (info_frame_command_core, frame_apply_command_count): Update.
2024 * rust-exp.y (rust_lex_exception_test): Update.
2025 * riscv-tdep.c (riscv_print_one_register_info): Update.
2026 * remote.c (remote_target::enable_btrace): Update.
2027 * record-btrace.c (record_btrace_enable_warn): Update.
2028 * python/py-utils.c (gdbpy_convert_exception): Update.
2029 * printcmd.c (do_one_display, print_variable_and_value): Update.
2030 * mi/mi-main.c (mi_print_exception): Update.
2031 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
2032 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2033 * linux-nat.c (linux_nat_target::attach): Update.
2034 * linux-fork.c (class scoped_switch_fork_info): Update.
2035 * infrun.c (displaced_step_prepare): Update.
2036 * infcall.c (call_function_by_hand_dummy): Update.
2037 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
2038 * gnu-v3-abi.c (print_one_vtable): Update.
2039 * frame.c (get_prev_frame_always): Update.
2040 * f-valprint.c (info_common_command_for_block): Update.
2041 * exec.c (try_open_exec_file): Update.
2042 * exceptions.c (print_exception, exception_print)
2043 (exception_fprintf, exception_print_same): Update.
2044 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
2045 * dwarf-index-cache.c (index_cache::store)
2046 (index_cache::lookup_gdb_index): Update.
2047 * darwin-nat.c (maybe_cache_shell): Update.
2048 * cp-valprint.c (cp_print_value_fields): Update.
2049 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
2050 (gcc_cplus_symbol_address): Update.
2051 * compile/compile-c-symbols.c (gcc_convert_symbol)
2052 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
2053 * common/selftest.c: Update.
2054 * common/common-exceptions.h (struct gdb_exception) <message>: Now
2056 (exception_try_scope_entry, exception_try_scope_exit): Don't
2058 (struct exception_try_scope): Remove.
2059 (TRY): Don't use exception_try_scope.
2060 (struct gdb_exception): Add constructor, operator=.
2062 (struct gdb_exception_RETURN_MASK_ALL)
2063 (struct gdb_exception_RETURN_MASK_ERROR)
2064 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
2065 (struct gdb_quit_bad_alloc): Update.
2066 * common/common-exceptions.c (exception_none): Change
2068 (struct catcher) <state, exception>: Initialize inline.
2069 <prev>: Remove member.
2070 (current_catcher): Remove.
2071 (catchers): New global.
2072 (exceptions_state_mc_init): Simplify.
2073 (catcher_pop): Remove.
2074 (exceptions_state_mc, exceptions_state_mc_catch): Update.
2075 (try_scope_depth, exception_try_scope_entry)
2076 (exception_try_scope_exit): Remove.
2077 (throw_exception_sjlj): Update.
2078 (exception_messages, exception_messages_size): Remove.
2079 (throw_it): Simplify.
2080 (gdb_exception_sliced_copy): Remove.
2081 (throw_exception_cxx): Update.
2082 * cli/cli-script.c (script_from_file): Update.
2083 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
2085 * ada-valprint.c (ada_val_print): Update.
2086 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
2087 (create_excep_cond_exprs): Update.
2089 2019-04-08 Tom Tromey <tom@tromey.com>
2091 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
2092 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
2093 (TRY, CATCH, END_CATCH): Remove some definitions.
2094 * common/common-exceptions.c: Don't use GDB_XCPT.
2095 (catcher_list_size): Remove.
2096 (throw_exception, throw_it): Simplify.
2098 2019-04-05 Tom Tromey <tom@tromey.com>
2100 Revert the header-sorting patch.
2101 * ft32-tdep.c: Revert.
2102 * frv-tdep.c: Revert.
2103 * frv-linux-tdep.c: Revert.
2105 * frame-unwind.c: Revert.
2106 * frame-base.c: Revert.
2107 * fork-child.c: Revert.
2108 * findvar.c: Revert.
2109 * findcmd.c: Revert.
2110 * filesystem.c: Revert.
2111 * filename-seen-cache.h: Revert.
2112 * filename-seen-cache.c: Revert.
2113 * fbsd-tdep.c: Revert.
2114 * fbsd-nat.h: Revert.
2115 * fbsd-nat.c: Revert.
2116 * f-valprint.c: Revert.
2117 * f-typeprint.c: Revert.
2119 * extension.h: Revert.
2120 * extension.c: Revert.
2121 * extension-priv.h: Revert.
2122 * expprint.c: Revert.
2125 * exceptions.c: Revert.
2126 * event-top.c: Revert.
2127 * event-loop.c: Revert.
2129 * elfread.c: Revert.
2130 * dwarf2read.h: Revert.
2131 * dwarf2read.c: Revert.
2132 * dwarf2loc.c: Revert.
2133 * dwarf2expr.h: Revert.
2134 * dwarf2expr.c: Revert.
2135 * dwarf2-frame.c: Revert.
2136 * dwarf2-frame-tailcall.c: Revert.
2137 * dwarf-index-write.h: Revert.
2138 * dwarf-index-write.c: Revert.
2139 * dwarf-index-common.c: Revert.
2140 * dwarf-index-cache.h: Revert.
2141 * dwarf-index-cache.c: Revert.
2142 * dummy-frame.c: Revert.
2143 * dtrace-probe.c: Revert.
2146 * disasm-selftests.c: Revert.
2147 * dictionary.c: Revert.
2148 * dicos-tdep.c: Revert.
2149 * demangle.c: Revert.
2152 * darwin-nat.h: Revert.
2153 * darwin-nat.c: Revert.
2154 * darwin-nat-info.c: Revert.
2155 * d-valprint.c: Revert.
2156 * d-namespace.c: Revert.
2159 * csky-tdep.c: Revert.
2160 * csky-linux-tdep.c: Revert.
2161 * cris-tdep.c: Revert.
2162 * cris-linux-tdep.c: Revert.
2163 * cp-valprint.c: Revert.
2164 * cp-support.c: Revert.
2165 * cp-namespace.c: Revert.
2167 * corelow.c: Revert.
2168 * corefile.c: Revert.
2169 * continuations.c: Revert.
2170 * completer.h: Revert.
2171 * completer.c: Revert.
2172 * complaints.c: Revert.
2173 * coffread.c: Revert.
2174 * coff-pe-read.c: Revert.
2175 * cli-out.h: Revert.
2176 * cli-out.c: Revert.
2177 * charset.c: Revert.
2178 * c-varobj.c: Revert.
2179 * c-valprint.c: Revert.
2180 * c-typeprint.c: Revert.
2182 * buildsym.c: Revert.
2183 * buildsym-legacy.c: Revert.
2184 * build-id.h: Revert.
2185 * build-id.c: Revert.
2187 * bsd-uthread.c: Revert.
2188 * breakpoint.h: Revert.
2189 * breakpoint.c: Revert.
2190 * break-catch-throw.c: Revert.
2191 * break-catch-syscall.c: Revert.
2192 * break-catch-sig.c: Revert.
2193 * blockframe.c: Revert.
2195 * bfin-tdep.c: Revert.
2196 * bfin-linux-tdep.c: Revert.
2197 * bfd-target.c: Revert.
2199 * ax-general.c: Revert.
2202 * avr-tdep.c: Revert.
2204 * auto-load.c: Revert.
2205 * arm-wince-tdep.c: Revert.
2206 * arm-tdep.c: Revert.
2207 * arm-symbian-tdep.c: Revert.
2208 * arm-pikeos-tdep.c: Revert.
2209 * arm-obsd-tdep.c: Revert.
2210 * arm-nbsd-tdep.c: Revert.
2211 * arm-nbsd-nat.c: Revert.
2212 * arm-linux-tdep.c: Revert.
2213 * arm-linux-nat.c: Revert.
2214 * arm-fbsd-tdep.c: Revert.
2215 * arm-fbsd-nat.c: Revert.
2216 * arm-bsd-tdep.c: Revert.
2217 * arch-utils.c: Revert.
2218 * arc-tdep.c: Revert.
2219 * arc-newlib-tdep.c: Revert.
2220 * annotate.h: Revert.
2221 * annotate.c: Revert.
2222 * amd64-windows-tdep.c: Revert.
2223 * amd64-windows-nat.c: Revert.
2224 * amd64-tdep.c: Revert.
2225 * amd64-sol2-tdep.c: Revert.
2226 * amd64-obsd-tdep.c: Revert.
2227 * amd64-obsd-nat.c: Revert.
2228 * amd64-nbsd-tdep.c: Revert.
2229 * amd64-nbsd-nat.c: Revert.
2230 * amd64-nat.c: Revert.
2231 * amd64-linux-tdep.c: Revert.
2232 * amd64-linux-nat.c: Revert.
2233 * amd64-fbsd-tdep.c: Revert.
2234 * amd64-fbsd-nat.c: Revert.
2235 * amd64-dicos-tdep.c: Revert.
2236 * amd64-darwin-tdep.c: Revert.
2237 * amd64-bsd-nat.c: Revert.
2238 * alpha-tdep.c: Revert.
2239 * alpha-obsd-tdep.c: Revert.
2240 * alpha-nbsd-tdep.c: Revert.
2241 * alpha-mdebug-tdep.c: Revert.
2242 * alpha-linux-tdep.c: Revert.
2243 * alpha-linux-nat.c: Revert.
2244 * alpha-bsd-tdep.c: Revert.
2245 * alpha-bsd-nat.c: Revert.
2246 * aix-thread.c: Revert.
2248 * addrmap.c: Revert.
2249 * ada-varobj.c: Revert.
2250 * ada-valprint.c: Revert.
2251 * ada-typeprint.c: Revert.
2252 * ada-tasks.c: Revert.
2253 * ada-lang.c: Revert.
2254 * aarch64-tdep.c: Revert.
2255 * aarch64-ravenscar-thread.c: Revert.
2256 * aarch64-newlib-tdep.c: Revert.
2257 * aarch64-linux-tdep.c: Revert.
2258 * aarch64-linux-nat.c: Revert.
2259 * aarch64-fbsd-tdep.c: Revert.
2260 * aarch64-fbsd-nat.c: Revert.
2261 * aarch32-linux-nat.c: Revert.
2263 2019-04-05 Tom Tromey <tom@tromey.com>
2265 * ft32-tdep.c: Sort headers.
2266 * frv-tdep.c: Sort headers.
2267 * frv-linux-tdep.c: Sort headers.
2268 * frame.c: Sort headers.
2269 * frame-unwind.c: Sort headers.
2270 * frame-base.c: Sort headers.
2271 * fork-child.c: Sort headers.
2272 * findvar.c: Sort headers.
2273 * findcmd.c: Sort headers.
2274 * filesystem.c: Sort headers.
2275 * filename-seen-cache.h: Sort headers.
2276 * filename-seen-cache.c: Sort headers.
2277 * fbsd-tdep.c: Sort headers.
2278 * fbsd-nat.h: Sort headers.
2279 * fbsd-nat.c: Sort headers.
2280 * f-valprint.c: Sort headers.
2281 * f-typeprint.c: Sort headers.
2282 * f-lang.c: Sort headers.
2283 * extension.h: Sort headers.
2284 * extension.c: Sort headers.
2285 * extension-priv.h: Sort headers.
2286 * expprint.c: Sort headers.
2287 * exec.h: Sort headers.
2288 * exec.c: Sort headers.
2289 * exceptions.c: Sort headers.
2290 * event-top.c: Sort headers.
2291 * event-loop.c: Sort headers.
2292 * eval.c: Sort headers.
2293 * elfread.c: Sort headers.
2294 * dwarf2read.h: Sort headers.
2295 * dwarf2read.c: Sort headers.
2296 * dwarf2loc.c: Sort headers.
2297 * dwarf2expr.h: Sort headers.
2298 * dwarf2expr.c: Sort headers.
2299 * dwarf2-frame.c: Sort headers.
2300 * dwarf2-frame-tailcall.c: Sort headers.
2301 * dwarf-index-write.h: Sort headers.
2302 * dwarf-index-write.c: Sort headers.
2303 * dwarf-index-common.c: Sort headers.
2304 * dwarf-index-cache.h: Sort headers.
2305 * dwarf-index-cache.c: Sort headers.
2306 * dummy-frame.c: Sort headers.
2307 * dtrace-probe.c: Sort headers.
2308 * disasm.h: Sort headers.
2309 * disasm.c: Sort headers.
2310 * disasm-selftests.c: Sort headers.
2311 * dictionary.c: Sort headers.
2312 * dicos-tdep.c: Sort headers.
2313 * demangle.c: Sort headers.
2314 * dcache.h: Sort headers.
2315 * dcache.c: Sort headers.
2316 * darwin-nat.h: Sort headers.
2317 * darwin-nat.c: Sort headers.
2318 * darwin-nat-info.c: Sort headers.
2319 * d-valprint.c: Sort headers.
2320 * d-namespace.c: Sort headers.
2321 * d-lang.c: Sort headers.
2322 * ctf.c: Sort headers.
2323 * csky-tdep.c: Sort headers.
2324 * csky-linux-tdep.c: Sort headers.
2325 * cris-tdep.c: Sort headers.
2326 * cris-linux-tdep.c: Sort headers.
2327 * cp-valprint.c: Sort headers.
2328 * cp-support.c: Sort headers.
2329 * cp-namespace.c: Sort headers.
2330 * cp-abi.c: Sort headers.
2331 * corelow.c: Sort headers.
2332 * corefile.c: Sort headers.
2333 * continuations.c: Sort headers.
2334 * completer.h: Sort headers.
2335 * completer.c: Sort headers.
2336 * complaints.c: Sort headers.
2337 * coffread.c: Sort headers.
2338 * coff-pe-read.c: Sort headers.
2339 * cli-out.h: Sort headers.
2340 * cli-out.c: Sort headers.
2341 * charset.c: Sort headers.
2342 * c-varobj.c: Sort headers.
2343 * c-valprint.c: Sort headers.
2344 * c-typeprint.c: Sort headers.
2345 * c-lang.c: Sort headers.
2346 * buildsym.c: Sort headers.
2347 * buildsym-legacy.c: Sort headers.
2348 * build-id.h: Sort headers.
2349 * build-id.c: Sort headers.
2350 * btrace.c: Sort headers.
2351 * bsd-uthread.c: Sort headers.
2352 * breakpoint.h: Sort headers.
2353 * breakpoint.c: Sort headers.
2354 * break-catch-throw.c: Sort headers.
2355 * break-catch-syscall.c: Sort headers.
2356 * break-catch-sig.c: Sort headers.
2357 * blockframe.c: Sort headers.
2358 * block.c: Sort headers.
2359 * bfin-tdep.c: Sort headers.
2360 * bfin-linux-tdep.c: Sort headers.
2361 * bfd-target.c: Sort headers.
2362 * bcache.c: Sort headers.
2363 * ax-general.c: Sort headers.
2364 * ax-gdb.h: Sort headers.
2365 * ax-gdb.c: Sort headers.
2366 * avr-tdep.c: Sort headers.
2367 * auxv.c: Sort headers.
2368 * auto-load.c: Sort headers.
2369 * arm-wince-tdep.c: Sort headers.
2370 * arm-tdep.c: Sort headers.
2371 * arm-symbian-tdep.c: Sort headers.
2372 * arm-pikeos-tdep.c: Sort headers.
2373 * arm-obsd-tdep.c: Sort headers.
2374 * arm-nbsd-tdep.c: Sort headers.
2375 * arm-nbsd-nat.c: Sort headers.
2376 * arm-linux-tdep.c: Sort headers.
2377 * arm-linux-nat.c: Sort headers.
2378 * arm-fbsd-tdep.c: Sort headers.
2379 * arm-fbsd-nat.c: Sort headers.
2380 * arm-bsd-tdep.c: Sort headers.
2381 * arch-utils.c: Sort headers.
2382 * arc-tdep.c: Sort headers.
2383 * arc-newlib-tdep.c: Sort headers.
2384 * annotate.h: Sort headers.
2385 * annotate.c: Sort headers.
2386 * amd64-windows-tdep.c: Sort headers.
2387 * amd64-windows-nat.c: Sort headers.
2388 * amd64-tdep.c: Sort headers.
2389 * amd64-sol2-tdep.c: Sort headers.
2390 * amd64-obsd-tdep.c: Sort headers.
2391 * amd64-obsd-nat.c: Sort headers.
2392 * amd64-nbsd-tdep.c: Sort headers.
2393 * amd64-nbsd-nat.c: Sort headers.
2394 * amd64-nat.c: Sort headers.
2395 * amd64-linux-tdep.c: Sort headers.
2396 * amd64-linux-nat.c: Sort headers.
2397 * amd64-fbsd-tdep.c: Sort headers.
2398 * amd64-fbsd-nat.c: Sort headers.
2399 * amd64-dicos-tdep.c: Sort headers.
2400 * amd64-darwin-tdep.c: Sort headers.
2401 * amd64-bsd-nat.c: Sort headers.
2402 * alpha-tdep.c: Sort headers.
2403 * alpha-obsd-tdep.c: Sort headers.
2404 * alpha-nbsd-tdep.c: Sort headers.
2405 * alpha-mdebug-tdep.c: Sort headers.
2406 * alpha-linux-tdep.c: Sort headers.
2407 * alpha-linux-nat.c: Sort headers.
2408 * alpha-bsd-tdep.c: Sort headers.
2409 * alpha-bsd-nat.c: Sort headers.
2410 * aix-thread.c: Sort headers.
2411 * agent.c: Sort headers.
2412 * addrmap.c: Sort headers.
2413 * ada-varobj.c: Sort headers.
2414 * ada-valprint.c: Sort headers.
2415 * ada-typeprint.c: Sort headers.
2416 * ada-tasks.c: Sort headers.
2417 * ada-lang.c: Sort headers.
2418 * aarch64-tdep.c: Sort headers.
2419 * aarch64-ravenscar-thread.c: Sort headers.
2420 * aarch64-newlib-tdep.c: Sort headers.
2421 * aarch64-linux-tdep.c: Sort headers.
2422 * aarch64-linux-nat.c: Sort headers.
2423 * aarch64-fbsd-tdep.c: Sort headers.
2424 * aarch64-fbsd-nat.c: Sort headers.
2425 * aarch32-linux-nat.c: Sort headers.
2427 2019-04-04 Tom Tromey <tom@tromey.com>
2429 * varobj.c (varobj_create): Update.
2430 * rust-exp.y (struct rust_parser) <update_innermost_block,
2431 lookup_symbol>: New methods.
2432 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
2434 (rust_parser::rust_lookup_type)
2435 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2436 * printcmd.c (display_command, do_one_display): Update.
2437 * parser-defs.h (struct parser_state) <parser_state>: Add
2438 "tracker" parameter.
2439 (block_tracker): New member.
2440 (class innermost_block_tracker) <innermost_block_tracker>: Add
2442 <reset>: Remove method.
2443 (innermost_block): Don't declare.
2444 (null_post_parser): Update.
2445 * parse.c (innermost_block): Remove global.
2446 (write_dollar_variable): Update.
2447 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
2448 Remove "tracker_types" parameter.
2449 (parse_expression): Add "tracker" parameter.
2450 (parse_expression_for_completion): Update.
2451 (null_post_parser): Add "tracker" parameter.
2452 * p-exp.y: Update rules.
2453 * m2-exp.y: Update rules.
2454 * language.h (struct language_defn) <la_post_parser>: Add
2455 "tracker" parameter.
2456 * go-exp.y: Update rules.
2457 * f-exp.y: Update rules.
2458 * expression.h (parse_expression, parse_exp_1): Add "tracker"
2460 * d-exp.y: Update rules.
2461 * c-exp.y: Update rules.
2462 * breakpoint.c (set_breakpoint_condition): Create an
2463 innermost_block_tracker.
2464 (watch_command_1): Likewise.
2465 * ada-lang.c (resolve): Add "tracker" parameter.
2466 (resolve_subexp): Likewise.
2467 * ada-exp.y (write_var_from_sym): Update.
2469 2019-04-04 Tom Tromey <tom@tromey.com>
2471 * type-stack.h: New file.
2472 * type-stack.c: New file.
2473 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
2475 (insert_into_type_stack, insert_type, push_type, push_type_int)
2476 (insert_type_address_space, pop_type, pop_type_int)
2477 (pop_typelist, pop_type_stack, append_type_stack)
2478 (push_type_stack, get_type_stack, push_typelist)
2479 (follow_type_instance_flags, follow_types): Don't declare.
2480 * parse.c (type_stack): Remove global.
2481 (parse_exp_in_context): Update.
2482 (insert_into_type_stack, insert_type, push_type, push_type_int)
2483 (insert_type_address_space, pop_type, pop_type_int)
2484 (pop_typelist, pop_type_stack, append_type_stack)
2485 (push_type_stack, get_type_stack, push_typelist)
2486 (follow_type_instance_flags, follow_types): Remove (moved to
2488 * f-exp.y (type_stack): New global.
2490 (push_kind_type, f_parse): Update.
2491 * d-exp.y (type_stack): New global.
2494 * c-exp.y (struct c_parse_state) <type_stack>: New member.
2496 * Makefile.in (COMMON_SFILES): Add type-stack.c.
2497 (HFILES_NO_SRCDIR): Add type-stack.h.
2499 2019-04-04 Tom Tromey <tom@tromey.com>
2501 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
2502 (rust_parser::convert_ast_to_expression, rust_parse)
2503 (rust_lex_test_completion, rust_lex_tests): Update.
2504 * parser-defs.h (struct expr_completion_state): New.
2505 (struct parser_state) <parser_state>: Add completion parameter.
2506 <mark_struct_expression, mark_completion_tag>: New methods.
2507 <parse_completion, m_completion_state>: New members.
2508 (prefixify_expression, null_post_parser): Update.
2509 (mark_struct_expression, mark_completion_tag): Don't declare.
2510 * parse.c (parse_completion, expout_last_struct)
2511 (expout_tag_completion_type, expout_completion_name): Remove
2513 (parser_state::mark_struct_expression)
2514 (parser_state::mark_completion_tag): Now methods.
2515 (prefixify_expression): Add last_struct parameter.
2516 (prefixify_subexp): Likewise.
2517 (parse_exp_1): Update.
2518 (parse_exp_in_context): Add cstate parameter. Update.
2519 (parse_expression_for_completion): Create an
2520 expr_completion_state.
2521 (null_post_parser): Add "completion" parameter.
2522 * p-exp.y: Update rules.
2524 * language.h (struct language_defn) <la_post_parser>: Add
2525 "completing" parameter.
2526 * go-exp.y: Update rules.
2527 (lex_one_token): Update.
2528 * expression.h (parse_completion): Don't declare.
2529 * d-exp.y: Update rules.
2530 (lex_one_token): Update rules.
2531 * c-exp.y: Update rules.
2532 (lex_one_token): Update.
2533 * ada-lang.c (resolve): Add "parse_completion" parameter.
2534 (resolve_subexp): Likewise.
2535 (ada_resolve_function): Likewise.
2537 2019-04-04 Tom Tromey <tom@tromey.com>
2539 * parser-defs.h (struct parser_state) <start_arglist,
2540 end_arglist>: New methods.
2541 <arglist_len, m_funcall_chain>: New members.
2542 (arglist_len, start_arglist, end_arglist): Don't declare.
2543 * parse.c (arglist_len, funcall_chain): Remove global.
2544 (start_arglist, end_arglist): Remove functions.
2545 (parse_exp_in_context): Update.
2546 * p-exp.y: Update rules.
2547 * m2-exp.y: Update rules.
2548 * go-exp.y: Update rules.
2549 * f-exp.y: Update rules.
2550 * d-exp.y: Update rules.
2551 * c-exp.y: Update rules.
2553 2019-04-04 Tom Tromey <tom@tromey.com>
2555 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
2556 lex_operator, push_back>: New methods.
2558 (rust_parser::lex_hex, lex_escape): Rename and update.
2559 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
2560 (rust_parser::lex_operator): Rename and update.
2561 (rust_parser::lex_number, rustyylex, rustyyerror)
2562 (rust_lex_test_init, rust_lex_test_sequence)
2563 (rust_lex_test_push_back, rust_lex_tests): Update.
2564 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
2566 <lexptr, prev_lexptr>: New members.
2567 (lexptr, prev_lexptr): Don't declare.
2568 * parse.c (lexptr, prev_lexptr): Remove globals.
2569 (parse_exp_in_context): Update.
2570 * p-exp.y (yylex, yyerror): Update.
2571 * m2-exp.y (parse_number, yylex, yyerror): Update.
2572 * go-exp.y (lex_one_token, yyerror): Update.
2573 * f-exp.y (match_string_literal, yylex, yyerror): Update.
2574 * d-exp.y (lex_one_token, yyerror): Update.
2575 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
2576 (lex_one_token, yyerror): Update.
2577 * ada-lex.l (YY_INPUT): Update.
2578 (rewind_to_char): Update.
2579 * ada-exp.y (yyerror): Update.
2581 2019-04-04 Tom Tromey <tom@tromey.com>
2583 * rust-exp.y (rustyylex, rust_lex_tests): Update.
2584 * parser-defs.h (struct parser_state) <parser_state>: Add new
2586 <comma_terminates>: New member.
2587 (comma_terminates): Don't declare global.
2588 * parse.c (comma_terminates): Remove global.
2589 (parse_exp_in_context): Update.
2590 * p-exp.y (yylex): Update.
2591 * m2-exp.y (yylex): Update.
2592 * go-exp.y (lex_one_token): Update.
2593 * f-exp.y (yylex): Update.
2594 * d-exp.y (lex_one_token): Update.
2595 * c-exp.y (lex_one_token): Update.
2596 * ada-lex.l: Update.
2598 2019-04-04 Tom Tromey <tom@tromey.com>
2600 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
2601 (rustyylex, rust_lex_test_init, rust_lex_test_one)
2602 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
2603 * parser-defs.h (paren_depth): Don't declare.
2604 * parse.c (paren_depth): Remove global.
2605 (parse_exp_in_context): Update.
2606 * p-exp.y (paren_depth): New global.
2607 (pascal_parse): Initialize it.
2608 * m2-exp.y (paren_depth): New global.
2609 (m2_parse): Initialize it.
2610 * go-exp.y (paren_depth): New global.
2611 (go_parse): Initialize it.
2612 * f-exp.y (paren_depth): New global.
2613 (f_parse): Initialize it.
2614 * d-exp.y (paren_depth): New global.
2615 (d_parse): Initialize it.
2616 * c-exp.y (paren_depth): New global.
2617 (c_parse): Initialize it.
2618 * ada-lex.l (paren_depth): New global.
2619 (lexer_init): Initialize it.
2621 2019-04-04 Tom Tromey <tom@tromey.com>
2623 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
2624 (rust_parser::convert_ast_to_type)
2625 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2626 * parser-defs.h (struct parser_state) <parser_state>: Add
2627 parameters. Initialize new members.
2628 <expression_context_block, expression_context_pc>: New members.
2629 * parse.c (expression_context_block, expression_context_pc):
2631 (parse_exp_in_context): Update.
2632 * p-exp.y: Update all rules.
2634 * m2-exp.y: Update all rules.
2636 * go-exp.y (yylex): Update.
2637 * f-exp.y (yylex): Update.
2638 * d-exp.y: Update all rules.
2640 * c-exp.y: Update all rules.
2641 (lex_one_token, classify_name, yylex, c_parse): Update.
2642 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
2644 2019-04-04 Tom Tromey <tom@tromey.com>
2646 * gdbarch.h, gdbarch.c: Rebuild.
2647 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
2649 (struct stap_parse_info): Replace "parser_state" with
2651 * parser-defs.h (struct expr_builder): Rename from "parser_state".
2652 (parser_state): New class.
2653 * parse.c (expr_builder): Rename.
2654 (expr_builder::release): Rename.
2655 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2656 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2657 (write_exp_elt_longcst, write_exp_elt_floatcst)
2658 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2659 (write_exp_string_vector, write_exp_bitstring)
2660 (write_exp_msymbol, mark_struct_expression)
2661 (write_dollar_variable)
2662 (insert_type_address_space, increase_expout_size): Replace
2663 "parser_state" with "expr_builder".
2664 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
2665 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
2666 "parser_state" with "expr_builder".
2668 2019-04-04 Tom Tromey <tom@tromey.com>
2670 * rust-exp.y: Replace "parse_language" with method call.
2672 (yylex): Replace "parse_language" with method call.
2674 (yylex): Replace "parse_language" with method call.
2675 * go-exp.y (classify_name): Replace "parse_language" with method
2677 * f-exp.y (yylex): Replace "parse_language" with method call.
2678 * d-exp.y (lex_one_token): Replace "parse_language" with method
2681 (lex_one_token, classify_name, yylex): Replace "parse_language"
2683 * ada-exp.y (find_primitive_type, type_char)
2684 (type_system_address): Replace "parse_language" with method call.
2686 2019-04-04 Tom Tromey <tom@tromey.com>
2688 * rust-exp.y: Replace "parse_gdbarch" with method call.
2689 * parse.c (write_dollar_variable, insert_type_address_space):
2690 Replace "parse_gdbarch" with method call.
2691 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
2693 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
2695 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
2696 "parse_gdbarch" with method call.
2697 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
2699 * f-exp.y (parse_type, parse_f_type, yylex): Replace
2700 "parse_gdbarch" with method call.
2701 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
2702 "parse_gdbarch" with method call.
2703 * c-exp.y (parse_type, parse_number, classify_name): Replace
2704 "parse_gdbarch" with method call.
2705 * ada-lex.l: Replace "parse_gdbarch" with method call.
2706 * ada-exp.y (parse_type, find_primitive_type, type_char)
2707 (type_system_address): Replace "parse_gdbarch" with method call.
2709 2019-04-04 Tom Tromey <tom@tromey.com>
2711 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
2712 * stap-probe.c (stap_parse_argument): Update.
2713 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
2714 initial_size parameter.
2715 * rust-exp.y (rust_lex_tests): Update.
2716 * parse.c (parser_state): Update.
2717 (parse_exp_in_context): Update.
2718 * parser-defs.h (struct parser_state) <parser_state>: Remove
2719 "initial_size" parameter.
2721 2019-04-04 Tom Tromey <tom@tromey.com>
2723 * parser-defs.h (increase_expout_size): Don't declare.
2724 * parse.c (increase_expout_size): Now static.
2726 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
2728 * gnu-nat.c (gnu_nat_target::wait): Fix
2729 target_waitstatus_to_string call.
2731 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
2733 * eval.c (evaluate_subexp_standard): Handle internal functions
2734 during Fortran function call handling.
2736 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
2738 * NEWS: Mention new internal functions.
2739 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
2740 (read_base_type): Use dwarf2_init_complex_target_type.
2741 * value.c (creal_internal_fn): New function.
2742 (cimag_internal_fn): New function.
2743 (_initialize_values): Register new internal functions.
2745 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2747 * infrun.c (stop_all_threads): If debug_infrun, always
2748 trace the wait status after wait_one, using
2749 target_waitstatus_to_string and target_pid_to_str.
2750 (handle_inferior_event): Replace various trace of
2751 wait status kind by a single trace.
2752 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
2753 wait status kind image by target_waitstatus_to_string.
2754 * target/waitstatus.c (target_waitstatus_to_string): Fix
2757 2019-04-01 Tom Tromey <tromey@adacore.com>
2760 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
2762 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
2763 Pedro Alves <palves@redhat.com>
2765 * top.c (quit_force): Call 'finalize_values'.
2766 * value.c (finalize_values): New function.
2767 * value.h (finalize_values): Declare.
2769 2019-03-30 Eli Zaretskii <eliz@gnu.org>
2771 * NEWS: Announce $_gdb_major and $_gdb_minor.
2773 * top.c (init_gdb_version_vars): New function.
2774 (gdb_init): Call init_gdb_version_vars.
2776 2019-03-29 Tom Tromey <tromey@adacore.com>
2778 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
2779 help text. Remove dead code.
2781 2019-03-29 Keith Seitz <keiths@redhat.com>
2783 From Siddhesh Poyarekar:
2784 * f-lang.h (f77_get_upperbound): Return LONGEST.
2785 (f77_get_lowerbound): Likewise.
2786 * f-typeprint.c (f_type_print_varspec_suffix): Expand
2787 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
2789 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
2790 plongest to format print it.
2791 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
2792 (f77_get_upperbound): Likewise.
2793 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
2794 LOWER_BOUND to LONGEST.
2795 (f77_create_arrayprint_offset_tbl): Likewise.
2797 2019-03-29 Keith Seitz <keiths@redhat.com>
2799 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2800 %s/pulongest for TYPE_LENGTH instead of %d in format
2802 * ada-typerint.c (ada_print_type): Likewise.
2803 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
2804 * compile/compile-c-support.c (generate_register_struct): Likewise.
2805 * gdbtypes.c (recursive_dump_type): Likewise.
2806 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
2807 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
2808 instead of %d in format strings.
2809 * riscv-tdep.c (riscv_type_alignment): Cast second argument
2810 to std::min to ULONGEST.
2811 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
2812 instead of %d in format strings.
2813 * tracepoint.c (info_scope_command): Likewise.
2814 * typeprint.c (print_offset_data::update)
2815 (print_offset_data::finish): Likewise.
2816 * xtensa-tdep.c (xtensa_store_return_value)
2817 (xtensa_push_dummy_call): Likewise.
2819 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
2821 * windows-nat.c (display_selector): Fixed format specifications
2824 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2826 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
2828 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
2830 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
2831 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
2832 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
2833 (nios2_linux_init_abi): Install it.
2835 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2837 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
2839 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2841 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
2843 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2844 Tom Tromey <tromey@adacore.com>
2846 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
2848 2019-03-26 Joel Brobecker <brobecker@adacore.com>
2850 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
2851 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
2852 method to compute the bounds of range types. Also print "[evaluated]"
2853 if the bounds' values come from a dynamic evaluation.
2855 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
2857 * cp-valprint.c (cp_print_value_fields): Don't print trailing
2858 whitespace when pretty printing is on.
2860 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2862 * ppc-linux-nat.c: Add include.
2864 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2866 * NEWS: Mention AArch64 Pointer Authentication.
2868 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2870 * arm-linux-nat.c: Add include.
2872 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
2874 * source-cache.c (source_cache::get_source_lines): Re-read
2875 fullname after calling open_source_file.
2877 2019-03-25 John Baldwin <jhb@FreeBSD.org>
2879 * NEWS: Mention TLS support for FreeBSD.
2881 2019-03-25 Tom Tromey <tromey@adacore.com>
2883 * minsyms.c (BUNCH_SIZE): Update comment.
2884 (~minimal_symbol_reader): Remove old comment.
2885 (compact_minimal_symbols): Update comment.
2886 (minimal_symbol_reader::install): Remove old comment. Update
2889 2019-03-25 Alan Hayward <alan.hayward@arm.com>
2891 * s390-linux-nat.c: Add include.
2893 2019-03-25 Alan Hayward <alan.hayward@arm.com>
2895 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2896 Call linux_get_hwcap.
2897 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
2899 (aarch64_linux_get_hwcap): Remove function.
2900 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
2902 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
2904 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2905 * linux-tdep.c (linux_get_hwcap): Add function.
2906 (linux_get_hwcap2): Likewise.
2907 * linux-tdep.h (linux_get_hwcap): Add declaration.
2908 (linux_get_hwcap2): Likewise.
2909 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
2910 (ppc_linux_get_hwcap2): Likewise.
2911 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
2913 (ppc_linux_nat_target::insert_watchpoint): Likewise.
2914 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
2915 (ppc_linux_nat_target::read_description): Likewise.
2916 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
2917 * s390-linux-nat.c: Likewise.
2918 * s390-linux-tdep.c (s390_core_read_description): Likewise.
2920 2019-03-24 Tom Tromey <tom@tromey.com>
2922 * ada-lang.c (standard_lookup): Simplify initialization.
2923 (ada_lookup_symbol_nonlocal): Simplify return.
2924 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
2925 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
2926 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
2927 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
2929 * solib.c (solib_global_lookup): Simplify.
2930 * symtab.c (null_block_symbol): Remove.
2931 (symbol_cache_lookup): Simplify returns.
2932 (lookup_language_this): Simplify returns.
2933 (lookup_symbol_aux): Simplify return.
2934 (lookup_local_symbol): Simplify returns.
2935 (lookup_global_symbol_from_objfile): Simplify return.
2936 (lookup_symbol_in_objfile_symtabs)
2937 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
2938 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
2939 (lookup_static_symbol, lookup_global_symbol): Simplify return.
2940 * cp-namespace.c (cp_lookup_bare_symbol)
2941 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
2942 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
2943 (cp_lookup_nested_symbol): Don't use null_block_symbol.
2944 (cp_lookup_symbol_via_imports): Simplify initialization.
2945 (find_symbol_in_baseclass): Likewise.
2946 * symtab.h (null_block_symbol): Remove.
2947 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
2948 (d_lookup_nested_symbol, d_lookup_symbol_imports)
2949 (d_lookup_symbol_module): Likewise.
2950 (find_symbol_in_baseclass): Simplify initialization.
2952 2019-03-24 Tom Tromey <tom@tromey.com>
2954 * expression.h: Don't include symtab.h.
2955 (struct block): Forward declare.
2957 2019-03-24 Tom Tromey <tom@tromey.com>
2959 * c-exp.y (typebase): Remove casts.
2960 * gdbtypes.c (lookup_unsigned_typename, )
2961 (lookup_signed_typename): Remove cast.
2962 * eval.c (parse_to_comma_and_eval): Remove cast.
2963 * parse.c (write_dollar_variable): Remove cast.
2964 * block.h (struct block) <superblock>: Now const.
2965 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
2966 * psymtab.c (psym_map_matching_symbols): Make "block" const.
2967 (map_block): Make "block" const.
2968 * symfile.h (struct quick_symbol_functions)
2969 <map_matching_symbols>: Constify block argument to "callback".
2970 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
2972 (find_pc_sect_compunit_symtab): Make "b" const.
2973 (find_symbol_at_address): Likewise.
2974 (search_symbols): Likewise.
2975 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
2976 (dw2_debug_names_lookup_symbol): Likewise.
2977 (dw2_map_matching_symbols): Update.
2978 * p-valprint.c (pascal_val_print): Remove "block".
2979 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
2980 (aux_add_nonlocal_symbols): Make "block" const.
2981 (resolve_subexp): Remove cast.
2982 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
2984 (iterate_over_file_blocks): Likewise.
2985 * f-exp.y (%union) <bval>: Remove.
2986 * coffread.c (patch_opaque_types): Make "b" const.
2987 * spu-tdep.c (spu_catch_start): Make "block" const.
2988 * c-valprint.c (print_unpacked_pointer): Remove "block".
2989 * symmisc.c (dump_symtab_1): Make "b" const.
2990 (block_depth): Make "block" const.
2991 * d-exp.y (%union) <bval>: Remove.
2992 * cp-support.h (cp_lookup_rtti_type): Update.
2993 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
2994 * psymtab.c (psym_lookup_symbol): Make "block" const.
2995 (maintenance_check_psymtabs): Make "b" const.
2996 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
2997 (enumerate_locals, enumerate_args): Update.
2998 * python/py-symtab.c (stpy_global_block): Make "block" const.
2999 (stpy_static_block): Likewise.
3000 * inline-frame.c (block_starting_point_at): Make "new_block"
3002 * block.c (find_block_in_blockvector): Make return type const.
3003 (blockvector_for_pc_sect): Make "b" const.
3004 (find_block_in_blockvector): Make "b" const.
3006 2019-03-23 Tom Tromey <tom@tromey.com>
3008 * varobj.c (varobj_create): Update.
3009 * symfile.c (clear_symtab_users): Don't reset innermost_block.
3010 * printcmd.c (display_command, do_one_display): Don't reset
3012 * parser-defs.h (enum innermost_block_tracker_type): Move to
3014 (innermost_block): Update comment.
3015 * parse.c (parse_exp_1): Add tracker_types parameter.
3016 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
3017 tracker_types parameter. Reset innermost_block.
3018 (parse_exp_in_context): Remove.
3019 (parse_expression_for_completion): Update.
3020 * objfiles.c (~objfile): Don't reset expression_context_block or
3022 * expression.h (enum innermost_block_tracker_type): Move from
3024 (parse_exp_1): Add tracker_types parameter.
3025 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
3026 reset innermost_block.
3028 2019-03-23 Tom Tromey <tom@tromey.com>
3030 * objfiles.h: Include bcache.h.
3032 2019-03-23 Tom Tromey <tom@tromey.com>
3034 * linespec.c (get_current_search_block): Use
3035 scoped_restore_current_language.
3036 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
3038 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3039 Jiong Wang <jiong.wang@arm.com>
3041 * aarch64-linux-tdep.c
3042 (aarch64_linux_iterate_over_regset_sections): Check for pauth
3044 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
3046 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3047 Jiong Wang <jiong.wang@arm.com>
3049 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
3051 (aarch64_analyze_prologue_test): Add PACIASP test.
3052 (aarch64_prologue_prev_register): Unmask PC value.
3054 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3055 Jiong Wang <jiong.wang@arm.com>
3057 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
3058 (aarch64_dwarf2_prev_register): Unmask PC value.
3059 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
3060 (aarch64_execute_dwarf_cfa_vendor_op): Check for
3061 DW_CFA_AARCH64_negate_ra_state.
3062 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
3064 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3065 Jiong Wang <jiong.wang@arm.com>
3067 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
3069 (aarch64_pseudo_register_name): Likewise.
3070 (aarch64_pseudo_register_type): Likewise.
3071 (aarch64_pseudo_register_reggroup_p): Likewise.
3072 (aarch64_gdbarch_init): Add pauth registers.
3073 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
3074 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
3075 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
3076 (struct gdbarch_tdep): Add regnum for ra_state.
3078 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3079 Jiong Wang <jiong.wang@arm.com>
3081 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
3083 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3084 Jiong Wang <jiong.wang@arm.com>
3086 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
3088 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
3089 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
3090 (aarch64_gdbarch_init): Add puth registers.
3091 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
3092 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
3093 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
3095 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3096 Jiong Wang <jiong.wang@arm.com>
3098 * aarch64-linux-nat.c
3099 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
3100 * aarch64-linux-tdep.c
3101 (aarch64_linux_core_read_description): Likewise.
3102 (aarch64_linux_get_hwcap): New function.
3103 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
3104 (aarch64_linux_get_hwcap): New declaration.
3106 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3107 Jiong Wang <jiong.wang@arm.com>
3109 * aarch64-linux-nat.c
3110 (aarch64_linux_nat_target::read_description): Add pauth param.
3111 * aarch64-linux-tdep.c
3112 (aarch64_linux_core_read_description): Likewise.
3113 * aarch64-tdep.c (struct target_desc): Add in pauth.
3114 (aarch64_read_description): Add pauth param.
3115 (aarch64_gdbarch_init): Likewise.
3116 * aarch64-tdep.h (aarch64_read_description): Likewise.
3117 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3118 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3119 * features/Makefile: Add new files.
3120 * features/aarch64-pauth.c: New file.
3121 * features/aarch64-pauth.xml: New file.
3123 2019-03-20 Tom Tromey <tromey@adacore.com>
3125 * infrun.c (handle_inferior_event): Rename from
3126 handle_inferior_event_1. Create a scoped_value_mark.
3127 (handle_inferior_event): Remove.
3129 2019-03-19 Tom Tromey <tromey@adacore.com>
3131 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
3132 * infrun.h (print_stop_event): Add "displays" parameter.
3133 * infrun.c (print_stop_event): Add "displays" parameter.
3135 2019-03-19 Pedro Alves <palves@redhat.com>
3137 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
3138 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
3139 to -1. Fix TABs vs spaces.
3140 (tui_ui_out::tui_ui_out): Don't initialize fields here.
3141 * tui/tui-out.h (tui_ui_out) Add intro comments.
3142 <m_line, m_start_of_line>: In-class initialize, and add describing
3145 2019-03-18 Alan Hayward <alan.hayward@arm.com>
3147 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
3149 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
3151 2019-03-18 Pedro Alves <palves@redhat.com>
3152 Eli Zaretskii <eliz@gnu.org>
3154 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
3155 m_line and m_start_of_line.
3157 2019-03-18 Eli Zaretskii <eliz@gnu.org>
3159 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
3160 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
3161 it returns a newline. This fixes a regression in TU mode, whereby
3162 the next line is output on the same screen line as the user input.
3164 2019-03-18 Tom Tromey <tromey@adacore.com>
3166 * minsyms.c (minimal_symbol_reader::install): Remove call to
3169 2019-03-18 Pedro Alves <palves@redhat.com>
3171 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
3173 (apply_style): New, factored out from ...
3174 (apply_ansi_escape): ... this. Handle reverse video mode.
3175 (tui_set_reverse_mode): New function.
3176 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
3177 * tui/tui-winsource.c (tui_show_source_line): Use
3178 tui_set_reverse_mode instead of setting A_STANDOUT.
3179 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
3182 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
3184 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
3187 2019-03-18 Tom Tromey <tromey@adacore.com>
3189 * ada-lang.c (empty_array): Add "high" parameter.
3190 (ada_evaluate_subexp): Update.
3192 2019-03-17 Sergei Trofimovich <siarheit@google.com>
3194 * unittests/string_view-selftests.c: Define
3195 _initialize_string_view_selftests unconditionally.
3197 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3200 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
3202 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3205 * windows-nat.c (display_selector): Fix format specifiers.
3207 2019-03-17 Eli Zaretskii <eliz@gnu.org>
3209 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
3210 tui_refill_source_window instead of tui_refresh_win, to update the
3211 current execution line. This fixes redisplay of the current line
3212 when stepping through the code with "next" or "step".
3214 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3216 * source-cache.c (source_cache::get_source_lines): Call
3217 find_source_lines to initialize s->nlines. This fixes vertical
3218 scrolling of TUI source window when the DOWN arrow is pressed.
3220 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3222 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
3223 linux-thread-db.c (_initialize_thread_db): Likewise.
3225 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3227 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
3228 wclrtoeol in tui_show_source_line". This reverts changes made in
3229 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
3231 2019-03-15 Tom Tromey <tom@tromey.com>
3233 * symtab.h (struct minimal_symbol): Derive from
3234 general_symbol_info.
3235 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
3236 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3237 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3238 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3239 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
3240 (MSYMBOL_SEARCH_NAME): Update.
3241 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
3242 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
3243 * minsyms.c (minimal_symbol_reader::record_full): Update.
3245 2019-03-15 Tom Tromey <tom@tromey.com>
3247 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
3249 2019-03-15 Tom Tromey <tom@tromey.com>
3251 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
3253 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
3255 * minsyms.c (lookup_minimal_symbol_by_pc_section)
3256 (build_minimal_symbol_hash_tables)
3257 (minimal_symbol_reader::install): Update.
3259 2019-03-15 Tom Tromey <tom@tromey.com>
3261 * symtab.c (create_demangled_names_hash): Update.
3262 (symbol_set_names): Update.
3263 * objfiles.h (struct objfile_per_bfd_storage)
3264 <demangled_names_hash>: Now an htab_up.
3265 * objfiles.c (objfile_per_bfd_storage): Simplify.
3267 2019-03-15 Tom Tromey <tom@tromey.com>
3269 * objfiles.h (struct objfile_per_bfd_storage): Declare
3271 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
3273 (get_objfile_bfd_data): Use new. Don't initialize
3275 (free_objfile_per_bfd_storage): Remove.
3276 (objfile_bfd_data_free, objfile::~objfile): Use delete.
3278 2019-03-15 Tom Tromey <tom@tromey.com>
3280 * symfile.c (reread_symbols): Update.
3281 * objfiles.c (objfile::objfile): Update.
3282 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
3283 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
3285 (minimal_symbol_reader::install): Update.
3286 (terminate_minimal_symbol_table): Remove.
3287 * jit.c (jit_object_close_impl): Update.
3289 2019-03-15 Tom Tromey <tom@tromey.com>
3291 * minsyms.c (minimal_symbol_reader::record_full): Remove some
3294 2019-03-15 Tom Tromey <tom@tromey.com>
3296 * objfiles.h (struct objfile_per_bfd_storage)
3297 <demangled_hash_languages>: Now a bitset.
3298 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
3299 (lookup_minimal_symbol): Update.
3301 2019-03-15 Tom Tromey <tom@tromey.com>
3303 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
3304 Don't return the symbol.
3305 * coffread.c (record_minimal_symbol): Use record_full.
3307 2019-03-14 Eli Zaretskii <eliz@gnu.org>
3309 The MS-Windows port of ncurses fails to switch to a color pair if
3310 one or both of the colors are the implicit default colors. This
3311 change records the default colors when TUI is initialized, and
3312 then specifies them explicitly when a color pair uses the default
3313 colors. This allows color styling in TUI mode on MS-Windows.
3315 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
3317 (tui_initialize_io) [__MINGW32__]: Record the default terminal
3318 colors in ncurses_norm_attr.
3319 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
3320 "none", replace it with the default color recorded in
3323 2019-03-14 Tom Tromey <tromey@adacore.com>
3325 * source-cache.h (class source_cache) <get_source_lines>: Return
3327 * source-cache.c (source_cache::extract_lines): Handle case where
3328 first_pos==npos. Return std::string.
3329 (source_cache::get_source_lines): Update.
3331 2019-03-14 Tom Tromey <tromey@adacore.com>
3333 * NEWS: Add item for "style sources" commands.
3334 * source-cache.c (source_cache::get_source_lines): Check
3336 * cli/cli-style.c (source_styling): New global.
3337 (_initialize_cli_style): Add "style sources" commands.
3338 (show_style_sources): New function.
3339 * cli/cli-style.h (source_styling): Declare.
3341 2019-03-14 Pedro Alves <palves@redhat.com>
3342 Tom Tromey <tromey@adacore.com>
3344 * tui/tui-winsource.h (tui_refill_source_window): Declare.
3345 * tui/tui-winsource.c (tui_refill_source_window): New function,
3347 (tui_horizontal_source_scroll): ... here. Move some logic.
3348 * cli/cli-style.c (set_style_enabled): Notify new observable.
3349 * tui/tui-hooks.c (tui_redisplay_source): New function.
3350 (tui_attach_detach_observers): Attach or detach
3351 tui_redisplay_source.
3352 * observable.h (source_styling_changed): New observable.
3353 * observable.c: Define source_styling_changed observable.
3355 2019-03-13 Tom Tromey <tromey@adacore.com>
3357 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
3358 (i386_gnu_nat_target::store_registers): Update.
3359 * target-debug.h (target_debug_print_std_string): New macro.
3360 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
3361 * windows-tdep.c (display_one_tib): Update.
3362 * tui/tui-stack.c (tui_make_status_line): Update.
3363 * top.c (print_inferior_quit_action): Update.
3364 * thread.c (thr_try_catch_cmd): Update.
3365 (add_thread_with_info): Update.
3366 (thread_target_id_str): Update.
3367 (thr_try_catch_cmd): Update.
3368 (thread_command): Update.
3369 (thread_find_command): Update.
3370 * record-btrace.c (record_btrace_target::info_record)
3371 (record_btrace_resume_thread, record_btrace_target::resume)
3372 (record_btrace_cancel_resume, record_btrace_step_thread)
3373 (record_btrace_target::wait, record_btrace_target::wait)
3374 (record_btrace_target::wait, record_btrace_target::stop): Update.
3375 * progspace.c (print_program_space): Update.
3376 * process-stratum-target.c
3377 (process_stratum_target::thread_address_space): Update.
3378 * linux-fork.c (linux_fork_mourn_inferior)
3379 (detach_checkpoint_command, info_checkpoints_command)
3380 (linux_fork_context): Update.
3381 (linux_fork_detach): Update.
3382 (class scoped_switch_fork_info): Update.
3383 (delete_checkpoint_command): Update.
3384 * infrun.c (follow_fork_inferior): Update.
3385 (follow_fork_inferior): Update.
3386 (proceed_after_vfork_done): Update.
3387 (handle_vfork_child_exec_or_exit): Update.
3388 (follow_exec): Update.
3389 (displaced_step_prepare_throw): Update.
3390 (displaced_step_restore): Update.
3391 (start_step_over): Update.
3393 (clear_proceed_status_thread): Update.
3395 (print_target_wait_results): Update.
3396 (do_target_wait): Update.
3397 (context_switch): Update.
3398 (stop_all_threads): Update.
3399 (restart_threads): Update.
3400 (finish_step_over): Update.
3401 (handle_signal_stop): Update.
3402 (switch_back_to_stepped_thread): Update.
3403 (keep_going_pass_signal): Update.
3404 (print_exited_reason): Update.
3405 (normal_stop): Update.
3406 * inferior.c (inferior_pid_to_str): Change return type.
3407 (print_selected_inferior): Update.
3408 (add_inferior): Update.
3409 (detach_inferior): Update.
3410 * dummy-frame.c (fprint_dummy_frames): Update.
3411 * dcache.c (dcache_info_1): Update.
3412 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
3413 (btrace_fetch, btrace_clear): Update.
3414 * linux-tdep.c (linux_core_pid_to_str): Change return type.
3415 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
3417 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
3418 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
3419 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
3420 * gdbarch.c, gdbarch.h: Rebuild.
3421 * gdbarch.sh (core_pid_to_str): Change return type.
3422 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
3424 (windows_nat_target::pid_to_str): Change return type.
3425 (windows_delete_thread): Update.
3426 (windows_nat_target::attach): Update.
3427 (windows_nat_target::files_info): Update.
3428 * target-delegates.c: Rebuild.
3429 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
3431 (sol_thread_target::pid_to_str): Change return type.
3432 * remote.c (class remote_target) <pid_to_str>: Change return
3434 (remote_target::pid_to_str): Change return type.
3435 (extended_remote_target::attach, remote_target::remote_stop_ns)
3436 (remote_target::remote_notif_remove_queued_reply)
3437 (remote_target::push_stop_reply, remote_target::disable_btrace):
3439 (extended_remote_target::attach): Update.
3440 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
3442 (gdbsim_target::pid_to_str): Change return type.
3443 * ravenscar-thread.c (struct ravenscar_thread_target)
3444 <pid_to_str>: Change return type.
3445 (ravenscar_thread_target::pid_to_str): Change return type.
3446 * procfs.c (class procfs_target) <pid_to_str>: Change return
3448 (procfs_target::pid_to_str): Change return type.
3449 (procfs_target::attach): Update.
3450 (procfs_target::detach): Update.
3451 (procfs_target::fetch_registers): Update.
3452 (procfs_target::store_registers): Update.
3453 (procfs_target::wait): Update.
3454 (procfs_target::files_info): Update.
3455 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
3456 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
3458 (nto_procfs_target::pid_to_str): Change return type.
3459 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
3460 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
3462 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
3464 (attach_proc_task_lwp_callback, get_detach_signal)
3465 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
3466 (linux_nat_target::resume, wait_lwp, stop_callback)
3467 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
3468 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
3469 (linux_nat_wait_1, resume_stopped_resumed_lwps)
3470 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
3471 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
3473 (inf_ptrace_target::attach): Update.
3474 (inf_ptrace_target::files_info): Update.
3475 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
3477 (go32_nat_target::pid_to_str): Change return type.
3478 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
3479 (gnu_nat_target::wait): Update.
3480 (gnu_nat_target::wait): Update.
3481 (gnu_nat_target::resume): Update.
3482 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
3483 (fbsd_nat_target::wait): Update.
3484 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
3486 (darwin_nat_target::attach): Update.
3487 * corelow.c (class core_target) <pid_to_str>: Change return type.
3488 (core_target::pid_to_str): Change return type.
3489 * target.c (normal_pid_to_str): Change return type.
3490 (default_pid_to_str): Likewise.
3491 (target_pid_to_str): Change return type.
3492 (target_translate_tls_address): Update.
3493 (target_announce_detach): Update.
3494 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
3496 (bsd_uthread_target::pid_to_str): Change return type.
3497 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
3499 (bsd_kvm_target::pid_to_str): Change return type.
3500 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
3502 (aix_thread_target::pid_to_str): Change return type.
3503 * target.h (struct target_ops) <pid_to_str>: Change return type.
3504 (target_pid_to_str, normal_pid_to_str): Likewise.
3505 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
3507 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
3509 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
3511 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
3513 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
3515 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
3518 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
3520 * NEWS: Mention that the new default MI version is 3. Mention
3521 changes to the output of commands and events that deal with
3522 multi-location breakpoints.
3523 * breakpoint.c: Include "mi/mi-out.h".
3524 (print_one_breakpoint): Change output syntax if using MI version
3526 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
3528 (mi_multi_location_breakpoint_output_fixed): New.
3529 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
3530 (mi_cmd_fix_multi_location_breakpoint_output): New.
3531 (mi_multi_location_breakpoint_output_fixed): New.
3532 * mi/mi-cmds.c (mi_cmds): Register command
3533 -fix-multi-location-breakpoint-output.
3534 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
3537 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3539 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
3540 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
3541 instantiate mi_ui_out based on interpreter name.
3542 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
3543 * mi/mi-main.c (mi_load_progress): Likewise.
3545 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3547 * NEWS: Combine separate "New targets" sections for 8.3.
3549 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3551 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
3552 (ppcfbsd_init_abi): Install gdbarch
3553 "fetch_tls_load_module_address" and "get_thread_local_address"
3556 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3558 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
3559 (riscv_fbsd_init_abi): Install gdbarch
3560 "fetch_tls_load_module_address" and "get_thread_local_address"
3563 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3565 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
3566 (i386fbsd_init_abi): Install gdbarch
3567 "fetch_tls_load_module_address" and "get_thread_local_address"
3570 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3572 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
3573 (amd64fbsd_init_abi): Install gdbarch
3574 "fetch_tls_load_module_address" and "get_thread_local_address"
3577 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3579 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
3580 (struct fbsd_pspace_data): New type.
3581 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
3582 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
3583 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
3584 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
3585 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
3587 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3589 * gdbtypes.c (lookup_struct_elt): New function.
3590 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
3591 * gdbtypes.h (struct struct_elt): New type.
3592 (lookup_struct_elt): New prototype.
3594 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3596 * gdbtypes.c (lookup_struct_elt_type): Update comment and
3597 remove disabled code block.
3599 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3601 * gdbarch.sh (get_thread_local_address): New method.
3602 * gdbarch.h, gdbarch.c: Regenerate.
3603 * target.c (target_translate_tls_address): Use
3604 gdbarch_get_thread_local_address if present instead of
3605 target::get_thread_local_address.
3607 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3609 * target.h (target::get_thread_local_address): Update comment.
3611 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3613 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
3614 objfile->separate_debug_objfile_backlink if not NULL.
3616 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3618 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
3619 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
3620 (amd64bsd_store_inferior_registers): Likewise.
3621 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
3622 Enable segment base registers.
3623 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
3624 PT_GETFSBASE and PT_GETGSBASE.
3625 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
3627 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
3628 segment base registers.
3629 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
3631 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3633 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
3634 Update calls to i386_target_description to add 'segments'
3636 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
3637 add segment base registers.
3638 * arch/i386.c (i386_create_target_description): Add 'segments'
3639 parameter to enable segment base registers.
3640 * arch/i386.h (i386_create_target_description): Likewise.
3641 * features/i386/32bit-segments.xml: New file.
3642 * features/i386/32bit-segments.c: Generate.
3643 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
3644 call to i386_target_description to add 'segments' parameter.
3645 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
3646 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
3647 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
3648 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
3649 if feature is present.
3650 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
3651 Add 'segments' parameter to call to i386_target_description.
3652 (i386_target_description): Add 'segments' parameter to enable
3653 segment base registers.
3654 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
3655 to call to i386_target_description.
3656 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
3657 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
3658 Define I386_NUM_REGS.
3659 (i386_target_description): Add 'segments' parameter to enable
3660 segment base registers.
3662 2019-03-12 Eli Zaretskii <eliz@gnu.org>
3665 * source-cache.c: #undef open and close, to avoid unresolved
3666 externals during linking.
3668 2019-03-12 Tom Tromey <tromey@adacore.com>
3670 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
3671 const. Add initializers.
3672 (_initialize_remote): Don't initialize ptid globals.
3674 2019-03-12 Pedro Alves <palves@redhat.com>
3676 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
3678 2019-03-12 Pedro Alves <palves@redhat.com>
3680 * cp-name-parser.y (main): Remove unused 'len' variable.
3682 2019-03-12 Tom Tromey <tromey@adacore.com>
3684 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
3685 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
3687 2019-03-12 Tom Tromey <tromey@adacore.com>
3689 * linux-nat.c (iterate_over_lwps): Update.
3690 (stop_callback): Remove parameter.
3691 (stop_wait_callback, detach_callback, resume_set_callback)
3692 (select_singlestep_lwp_callback, set_ignore_sigint)
3693 (status_callback, resumed_callback, resume_clear_callback)
3694 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
3696 (linux_nat_target::detach, linux_nat_target::resume)
3697 (linux_stop_and_wait_all_lwps, select_event_lwp)
3698 (linux_nat_filter_event, linux_nat_wait_1)
3699 (linux_nat_target::kill, linux_nat_target::stop)
3700 (linux_nat_target::stop): Update.
3701 (linux_nat_resume_callback): Change type.
3702 (resume_stopped_resumed_lwps, count_events_callback)
3703 (select_event_lwp_callback): Likewise.
3704 (linux_stop_lwp, linux_nat_stop_lwp): Update.
3705 * arm-linux-nat.c (struct update_registers_data): Remove.
3706 (update_registers_callback): Change type.
3707 (arm_linux_insert_hw_breakpoint1): Update.
3708 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
3710 (x86_linux_dr_set_addr): Update.
3711 (x86_linux_dr_set_control): Update.
3712 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
3713 (iterate_over_lwps): Use gdb::function_view.
3714 * nat/aarch64-linux-hw-point.c (struct
3715 aarch64_dr_update_callback_param): Remove.
3716 (debug_reg_change_callback): Change type.
3717 (aarch64_notify_debug_reg_change): Update.
3718 * s390-linux-nat.c (s390_refresh_per_info): Update.
3720 2019-03-11 Tom Tromey <tromey@adacore.com>
3722 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
3723 redundant assignment to "this_cu".
3725 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3727 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
3729 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3731 * gdbtypes.c (rank_one_type_parm_set): New function extracted
3733 (rank_one_type): ... this.
3735 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3737 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
3739 (rank_one_type): ... this.
3741 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3743 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
3745 (rank_one_type): ... this.
3747 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3749 * gdbtypes.c (rank_one_type_parm_float): New function extracted
3751 (rank_one_type): ... this.
3753 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3755 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
3757 (rank_one_type): ... this.
3759 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3761 * gdbtypes.c (rank_one_type_parm_range): New function extracted
3763 (rank_one_type): ... this.
3765 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3767 * gdbtypes.c (rank_one_type_parm_char): New function extracted
3769 (rank_one_type): ... this.
3771 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3773 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
3775 (rank_one_type): ... this.
3777 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3779 * gdbtypes.c (rank_one_type_parm_int): New function extracted
3781 (rank_one_type): ... this.
3783 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3785 * gdbtypes.c (rank_one_type_parm_func): New function extracted
3787 (rank_one_type): ... this.
3789 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3791 * gdbtypes.c (rank_one_type_parm_array): New function extracted
3793 (rank_one_type): ... this.
3795 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3797 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
3799 (rank_one_type): ... this.
3801 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3803 * inferior.c (initialize_inferiors): Ensure 'help set/show print
3804 inferior-events' shows the example events.
3806 2019-03-08 Eli Zaretskii <eliz@gnu.org>
3808 Support styling on native MS-Windows console
3811 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
3812 on MS-Windows if $TERM is not defined.
3814 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
3816 * posix-hdep.c (gdb_console_fputs):
3817 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
3819 * ui-file.h (gdb_console_fputs): Add prototype.
3821 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
3822 back to fputs only if the former returns zero.
3824 2019-03-07 Tom Tromey <tom@tromey.com>
3826 * symmisc.c (print_symbol_bcache_statistics): Update.
3827 (print_objfile_statistics): Update.
3828 * symfile.c (allocate_symtab): Update.
3829 * stabsread.c: Don't include bcache.h.
3830 * psymtab.h (struct psymbol_bcache): Don't declare.
3831 (class psymtab_storage) <psymbol_cache>: Now a bcache.
3832 (psymbol_bcache_init, psymbol_bcache_free)
3833 (psymbol_bcache_get_bcache): Don't declare.
3834 * psymtab.c (struct psymbol_bcache): Remove.
3835 (psymtab_storage::psymtab_storage): Update.
3836 (psymtab_storage::~psymtab_storage): Update.
3837 (psymbol_bcache_init, psymbol_bcache_free)
3838 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
3839 (add_psymbol_to_bcache): Update.
3840 (allocate_psymtab): Update.
3841 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
3842 macro_cache>: No longer pointers.
3843 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
3844 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
3845 * macrotab.c (macro_bcache): Update.
3846 * macroexp.c: Don't include bcache.h.
3847 * gdbtypes.c (check_types_worklist): Update.
3848 (types_deeply_equal): Remove TRY/CATCH. Update.
3849 * elfread.c (elf_symtab_read): Update.
3850 * dwarf2read.c: Don't include bcache.h.
3851 * buildsym.c (buildsym_compunit::get_macro_table): Update.
3852 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
3853 (print_bcache_statistics, bcache_memory_used): Don't declare.
3854 (struct bcache): Move from bcache.c. Add constructor, destructor,
3855 methods. Rename all data members.
3856 * bcache.c (struct bcache): Move to bcache.h.
3857 (bcache::expand_hash_table): Rename from expand_hash_table.
3859 (bcache::insert): Rename from bcache_full.
3860 (bcache::compare): Rename from bcache_compare.
3861 (bcache_xmalloc): Remove.
3862 (bcache::~bcache): Rename from bcache_xfree.
3863 (bcache::print_statistics): Rename from print_bcache_statistics.
3864 (bcache::memory_used): Rename from bcache_memory_used.
3866 2019-03-07 Pedro Alves <palves@redhat.com>
3868 * infrun.c (normal_stop): Also check for
3869 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
3871 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
3873 * f-lang.c (value_from_host_double): Moved to...
3874 * value.c (value_from_host_double): ...here.
3875 * value.h (value_from_host_double): Declare.
3876 * guile/scm-math.c (vlscm_convert_typed_number): Use
3877 value_from_host_double.
3878 (vlscm_convert_number): Likewise.
3879 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
3880 * python/py-value.c (convert_value_from_python): Likewise.
3882 2019-03-06 Tom Tromey <tom@tromey.com>
3884 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
3886 2019-03-06 Tom Tromey <tom@tromey.com>
3888 * utils.h (free_current_contents): Don't declare.
3889 * utils.c (free_current_contents): Remove.
3891 2019-03-06 Tom Tromey <tom@tromey.com>
3893 * top.c (quit_force): Update.
3894 * main.c (captured_command_loop): Update.
3895 * common/new-op.c (operator new): Update.
3896 * common/common-exceptions.c (struct catcher)
3897 <save_cleanup_chain>: Remove member.
3898 (exceptions_state_mc_init): Update.
3899 (exception_try_scope_entry): Return nullptr.
3900 (exception_try_scope_exit, exception_rethrow)
3901 (throw_exception_sjlj, throw_exception_cxx): Update.
3902 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
3903 (all_cleanups, do_cleanups, discard_cleanups)
3904 (discard_final_cleanups, save_cleanups, save_final_cleanups)
3905 (restore_cleanups, restore_final_cleanups): Don't declare.
3906 (do_final_cleanups): Remove parameter.
3907 * common/cleanups.c (cleanup_chain, make_cleanup)
3908 (make_cleanup_dtor, all_cleanups, do_cleanups)
3909 (discard_my_cleanups, discard_cleanups)
3910 (discard_final_cleanups, save_my_cleanups, save_cleanups)
3911 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
3912 (null_cleanup): Remove.
3913 (do_final_cleanups): Remove parameter.
3915 2019-03-06 Tom Tromey <tom@tromey.com>
3917 * remote.c (remote_target::remote_parse_stop_reply): Use
3920 2019-03-06 Tom Tromey <tom@tromey.com>
3922 * stabsread.c (struct stabs_field_info): Rename from field_info.
3923 <list, fnlist>: Add initializers.
3924 <obstack>: New member.
3925 (read_member_functions, read_struct_fields, read_baseclasses):
3926 Allocate on obstack. Don't use cleanups.
3927 (read_one_struct_field, read_member_functions, read_struct_fields)
3928 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
3929 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
3930 (read_struct_type): Update.
3932 2019-03-06 Tom Tromey <tom@tromey.com>
3934 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
3935 * common/filestuff.h (make_cleanup_close): Don't declare.
3936 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
3939 2019-03-06 Tom Tromey <tom@tromey.com>
3941 * solib-aix.c: Use make_scope_exit.
3943 2019-03-06 Tom Tromey <tom@tromey.com>
3945 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
3946 Use make_scope_exit.
3948 2019-03-06 Tom Tromey <tom@tromey.com>
3950 * solib-svr4.c (disable_probes_interface): Remove parameter.
3951 (svr4_handle_solib_event): Use make_scope_exit.
3953 2019-03-06 Tom Tromey <tom@tromey.com>
3955 * remote.c (struct stop_reply_deleter): Remove.
3956 (stop_reply_up): Update.
3957 (struct stop_reply): Derive from notif_event. Don't typedef.
3958 <regcache>: Now a std::vector.
3959 (stop_reply_xfree): Remove.
3960 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
3961 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
3962 (remote_target::discard_pending_stop_replies): Use delete.
3963 (remote_target::remote_parse_stop_reply): Update.
3964 (remote_target::process_stop_reply): Update.
3965 * remote-notif.h (struct notif_event): Add virtual destructor.
3966 Remove "dtr" member.
3967 (struct notif_client) <alloc_event>: Return a unique_ptr.
3968 (notif_event_xfree): Don't declare.
3969 (notif_event_up): New typedef.
3970 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
3971 (notif_event_xfree, do_notif_event_xfree): Remove.
3972 (remote_notif_state_xfree): Update.
3974 2019-03-06 Tom Tromey <tom@tromey.com>
3976 * infrun.c (displaced_step_clear_cleanup): Now a
3977 forward_scope_exit type.
3978 (displaced_step_prepare_throw): Update.
3979 (displaced_step_fixup): Update.
3981 2019-03-06 Tom Tromey <tom@tromey.com>
3983 * inferior.h (class inferior): Update comment.
3984 * gdbthread.h (class thread_info): Update comment.
3986 2019-03-06 Joel Brobecker <brobecker@adacore.com>
3987 Tom Tromey <tom@tromey.com>
3989 * stabsread.h (struct stab_section_list): Remove.
3990 (coffstab_build_psymtabs): Update.
3991 * dbxread.c (symbuf_sections): Now a std::vector.
3992 (sect_idx): New global.
3993 (fill_symbuf): Update.
3994 (coffstab_build_psymtabs): Change type of stabsects parameter.
3996 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
3998 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
3999 (coff_locate_sections): Update.
4000 (coff_symfile_read): Remove cleanups. Update.
4001 (init_stringtab): Add storage parameter.
4002 (free_stringtab, free_stringtab_cleanup): Remove.
4003 (init_lineno): Add storage parameter.
4004 (free_linetab, free_linetab_cleanup): Remove.
4006 2019-03-06 Pedro Alves <palves@redhat.com>
4008 * linux-fork.c (fork_info::clobber_regs): Delete.
4009 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
4010 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
4012 (scoped_switch_fork_info::scoped_switch_fork_info)
4013 (checkpoint_command, linux_fork_context): Adjust
4014 fork_save_infrun_state calls.
4016 2019-03-06 Pedro Alves <palves@redhat.com>
4018 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
4019 (inf_has_multiple_threads): Return 'bool' and rewrite using
4020 inferior_info::threads().
4022 2019-03-06 Pedro Alves <palves@redhat.com>
4024 * linux-fork.c: Include <list>.
4025 (fork_list): Now a std::list instance.
4026 (fork_info): Add ctor, dtor, and in-class initialize all fields.
4027 (forks_exist_p, find_last_fork): Adjust.
4031 (free_fork): Delete, folded into fork_info::~fork_info().
4032 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
4034 (init_fork_list): Delete.
4035 (linux_fork_killall, linux_fork_mourn_inferior)
4036 (linux_fork_detach, info_checkpoints_command): Adjust.
4037 (_initialize_linux_fork): No longer call init_fork_list.
4039 2019-03-06 Pedro Alves <palves@redhat.com>
4041 * linux-fork.c (new_fork): New, split out of ...
4042 (add_fork): ... this. Return void. Move "first fork" special
4043 case from here, to ...
4044 (checkpoint_command): ... here.
4045 * linux-linux.h (add_fork): Return void.
4047 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4049 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
4051 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4052 Chris January <chris.january@arm.com>
4053 David Lecomber <david.lecomber@arm.com>
4055 * f-exp.y: New token, UNOP_INTRINSIC.
4056 (exp): New pattern using UNOP_INTRINSIC token.
4057 (f77_keywords): Add 'abs' keyword.
4058 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
4059 (value_from_host_double): New function.
4060 (evaluate_subexp_f): Support UNOP_ABS.
4062 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4064 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
4067 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4069 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
4070 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
4071 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
4073 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4075 * f-exp.y (convert_to_kind_type): Handle more type kinds.
4077 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4078 Chris January <chris.january@arm.com>
4080 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
4081 * f-exp.y: Define 'KIND' token.
4082 (exp): New pattern for KIND expressions.
4083 (ptype): Handle types with a kind extension.
4084 (direct_abs_decl): Extend to spot kind extensions.
4085 (f77_keywords): Add 'kind' to the list.
4086 (push_kind_type): New function.
4087 (convert_to_kind_type): New function.
4088 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
4089 * parse.c (operator_length_standard): Likewise.
4090 * parser-defs.h (enum type_pieces): Add tp_kind.
4091 * std-operator.def: Add UNOP_KIND.
4093 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4095 * f-exp.y (f_parse): Set yydebug.
4097 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4099 * f-lang.c (evaluate_subexp_f): New function.
4100 (exp_descriptor_f): New global.
4101 (f_language_defn): Use exp_descriptor_f instead of
4102 exp_descriptor_standard.
4104 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4106 * f-exp.y (struct token): Add comments.
4107 (dot_ops): Remove uppercase versions and the end marker.
4108 (f77_keywords): Likewise.
4109 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
4110 entries in the dot_ops array are case insensitive, and use
4111 strncasecmp to compare strings. Also some whitespace cleanup in
4112 this area. Similar for the f77_keywords array, except entries in
4113 this list might be case sensitive.
4115 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4117 * f-exp.y (struct f77_boolean_val): Add comments.
4118 (boolean_values): Remove uppercase versions, and end marker.
4119 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
4120 and use strncasecmp to achieve case insensitivity. Additionally,
4121 perform whitespace cleanup around this code.
4123 2019-03-06 Tom Tromey <tromey@adacore.com>
4125 * remote-sim.c (gdbsim_target_open): Use result of
4128 2019-03-06 Richard Bunt <richard.bunt@arm.com>
4129 Dirk Schubert <dirk.schubert@arm.com>
4130 Chris January <chris.january@arm.com>
4132 * eval.c (evaluate_subexp_standard): Call Fortran argument
4134 * f-lang.c (struct value): A value which can be passed into a
4135 Fortran function call.
4136 (fortran_argument_convert): Wrap Fortran arguments in a pointer
4138 (struct type): Value ready for a Fortran function call.
4139 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
4141 * f-lang.h (fortran_argument_convert): Declaration.
4142 (fortran_preserve_arg_pointer): Declaration.
4143 * infcall.c (value_arg_coerce): Call Fortran argument logic.
4145 2019-03-05 Tom Tromey <tromey@adacore.com>
4147 * python/py-prettyprint.c (print_string_repr): Remove #if.
4148 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
4150 2019-03-05 Tom Tromey <tromey@adacore.com>
4152 * target.c (the_dummy_target): Move later. Change type to
4154 (initialize_targets): Don't initialize the_dummy_target.
4156 2019-03-05 Tom Tromey <tromey@adacore.com>
4158 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
4159 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
4161 2019-03-05 Tom Tromey <tromey@adacore.com>
4163 * windows-nat.c (windows_nat_target::attach)
4164 (windows_nat_target::detach): Don't call gdb_flush.
4165 * valprint.c (generic_val_print, val_print, val_print_string):
4166 Don't call gdb_flush.
4167 * utils.c (defaulted_query): Don't call gdb_flush.
4168 * typeprint.c (print_type_scalar): Don't call gdb_flush.
4169 * target.c (target_announce_detach): Don't call gdb_flush.
4170 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
4171 * remote.c (extended_remote_target::attach): Don't call
4173 * procfs.c (procfs_target::detach): Don't call gdb_flush.
4174 * printcmd.c (do_examine): Don't call gdb_flush.
4175 (info_display_command): Don't call gdb_flush.
4176 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
4177 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
4178 * memattr.c (info_mem_command): Don't call gdb_flush.
4179 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
4180 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
4181 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
4182 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
4183 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
4184 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
4185 (gnu_nat_target::detach): Don't call gdb_flush.
4186 * f-valprint.c (f_val_print): Don't call gdb_flush.
4187 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
4188 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
4189 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
4191 * c-valprint.c (c_val_print): Don't call gdb_flush.
4192 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
4194 2019-03-05 Tom Tromey <tromey@adacore.com>
4196 * varobj.c (update_dynamic_varobj_children): Update.
4197 (install_default_visualizer): Use reset, not release.
4198 * value.c (set_internalvar): Update.
4199 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
4200 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
4201 ATTRIBUTE_UNUSED_RESULT.
4203 2019-03-05 Tom Tromey <tromey@adacore.com>
4205 * remote.c (class scoped_remote_fd) <release>: Add
4206 ATTRIBUTE_UNUSED_RESULT.
4208 2019-03-05 Tom Tromey <tromey@adacore.com>
4210 * macroexp.c (struct macro_buffer) <release>: Add
4211 ATTRIBUTE_UNUSED_RESULT.
4213 2019-03-05 Tom Tromey <tromey@adacore.com>
4215 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
4216 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
4217 ATTRIBUTE_UNUSED_RESULT.
4219 2019-03-05 Tom Tromey <tromey@adacore.com>
4221 * common/scoped_fd.h (class scoped_fd) <release>: Add
4222 ATTRIBUTE_UNUSED_RESULT.
4224 2019-03-05 Tom Tromey <tromey@adacore.com>
4226 * parser-defs.h (struct parser_state) <release>: Add
4227 ATTRIBUTE_UNUSED_RESULT.
4229 2019-03-05 Tom Tromey <tromey@adacore.com>
4231 * utils.h (class gdb_argv) <release>: Add
4232 ATTRIBUTE_UNUSED_RESULT.
4233 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
4235 2019-03-02 Eli Zaretskii <eliz@gnu.org>
4237 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
4238 for-loop range, to avoid compiler warnings.
4240 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
4241 avoid compiler warnings about unused variables.
4243 * NEWS: Mention end of support for native debugging on MS-Windows
4247 * common/netstuff.c:
4248 * gdbserver/gdbreplay.c
4249 * gdbserver/remote-utils.c:
4251 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
4252 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
4253 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
4254 'getaddrinfo' and 'freeaddrinfo' were not available before
4255 Windows XP, and mingw.org's MinGW headers by default define
4256 _WIN32_WINNT to 0x500.
4258 2019-03-01 Gary Benson <gbenson@redhat.com>
4260 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
4262 2019-02-28 Brian Vandenberg <phantall@gmail.com>
4263 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4266 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
4267 set_sigint_trap, clear_sigint_trap.
4269 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4271 * target.c (target_detach): Clear the regcache and the
4274 2019-02-27 Pedro Alves <palves@redhat.com>
4276 * utils.c (set_screen_size): When we cap the height/width sizes,
4277 tweak the corresponding command variable to show "unlimited":
4279 2019-02-27 Saagar Jha <saagar@saagarjha.com>
4280 Pedro Alves <palves@redhat.com>
4282 * utils.c (set_screen_size): Reduce "infinite" rows and columns
4283 before calling rl_set_screen_size.
4285 2019-02-27 Tom Tromey <tromey@adacore.com>
4287 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
4289 * python/py-value.c: Remove Python 2.4 workaround.
4290 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
4292 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
4293 Python 2.4 workaround.
4294 * python/python-internal.h: Remove Python 2.4 comment.
4295 (Py_ssize_t): Don't define.
4296 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
4297 (gdb_Py_DECREF): Remove Python 2.4 workaround.
4298 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
4299 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
4300 * python/python.c (do_start_initialization): Remove Python 2.4
4302 * python/py-prettyprint.c (class dummy_python_frame): Remove.
4303 (print_children): Remove Python 2.4 workaround.
4304 * python/py-inferior.c (buffer_procs): Remove Python 2.4
4306 (CHARBUFFERPROC_NAME): Remove.
4307 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
4308 Python 2.4 workaround.
4310 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4312 * NEWS: Note minimum Python version.
4314 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4316 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
4317 code from these functions. Remove corresponding ifdefs. Use
4318 Py_buffer_up instead of explicit calls to PyBuffer_Release.
4319 Remove gotos and target of gotos.
4320 (infpy_search_memory): Likewise.
4322 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4324 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
4325 (hppa_gdbarch_init): Don't register deleted functions with
4328 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4330 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
4331 (h8300_unwind_sp): Delete.
4332 (h8300_dummy_id): Delete.
4333 (h8300_gdbarch_init): Don't register deleted functions with
4336 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4338 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
4339 (ft32_unwind_pc): Delete.
4340 (ft32_unwind_sp): Delete.
4341 (ft32_gdbarch_init): Don't register deleted functions with
4344 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4346 * gdb/frv-tdep.c (frv_dummy_id): Delete.
4347 (frv_unwind_pc): Delete.
4348 (frv_unwind_sp): Delete.
4349 (frv_gdbarch_init): Don't register deleted functions with
4352 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4354 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
4355 (riscv_unwind_pc): Delete.
4356 (riscv_unwind_sp): Delete.
4357 (riscv_gdbarch_init): Don't register deleted functions with
4360 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4362 * gdb/csky-tdep.c (csky_dummy_id): Delete.
4363 (csky_unwind_pc): Delete.
4364 (csky_unwind_sp): Delete.
4365 (csky_gdbarch_init): Don't register deleted functions with
4368 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4370 * gdb/cris-tdep.c (cris_dummy_id): Delete.
4371 (cris_unwind_pc): Delete.
4372 (cris_unwind_sp): Delete.
4373 (cris_gdbarch_init): Don't register deleted functions with
4376 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4378 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
4379 (bfin_unwind_pc): Delete.
4380 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
4382 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4384 * gdb/arm-tdep.c (arm_dummy_id): Delete.
4385 (arm_unwind_pc): Delete.
4386 (arm_unwind_sp): Delete.
4387 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
4389 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4391 * gdb/arc-tdep.c (arc_dummy_id): Delete.
4392 (arc_unwind_pc): Delete.
4393 (arc_unwind_sp): Delete.
4394 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
4396 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4398 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
4399 (alpha_unwind_pc): Delete.
4400 (alpha_gdbarch_init): Don't register deleted functions with
4403 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4405 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
4406 (aarch64_unwind_pc): Delete.
4407 (aarch64_unwind_sp): Delete.
4408 (aarch64_gdbarch_init): Don't register deleted functions with
4411 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4413 * gdbtypes.c (type_align): Don't consider static members when
4414 computing structure alignment.
4416 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4418 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
4419 return 0 for other types.
4420 * arch-utils.c (default_type_align): Always return 0.
4421 * gdbarch.h: Regenerate.
4422 * gdbarch.sh (type_align): Extend comment.
4423 * gdbtypes.c (type_align): Add additional comments, always call
4424 gdbarch_type_align before applying the default rules.
4425 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
4426 generic code will then apply a suitable default.
4427 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
4428 types, return 0 for other types.
4430 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4432 * NEWS: Create a new section for the next release branch.
4433 Rename the section of the current branch, now that it has
4436 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4438 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
4439 * version.in: Bump version to 8.3.50.DATE-git.
4441 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
4443 * aix-thread.c (ptid_cmp): Remove unused variable.
4444 (get_signaled_thread): Likewise.
4445 (store_regs_user_thread): Likewise.
4446 (store_regs_kernel_thread): Likewise.
4447 (fetch_regs_kernel_thread): Remove shadowed variable.
4449 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
4451 * features/riscv/32bit-cpu.xml: Add register numbers.
4452 * features/riscv/32bit-fpu.c: Regenerate.
4453 * features/riscv/32bit-fpu.xml: Add register numbers.
4454 * features/riscv/64bit-cpu.xml: Add register numbers.
4455 * features/riscv/64bit-fpu.c: Regenerate.
4456 * features/riscv/64bit-fpu.xml: Add register numbers.
4458 2019-02-26 Kevin Buettner <kevinb@redhat.com>
4460 * NEWS: Mention two argument form of gdb.Value constructor.
4461 * python/py-value.c (convert_buffer_and_type_to_value): New
4463 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
4464 Add support for handling an optional second argument. Call
4465 convert_buffer_and_type_to_value as appropriate.
4466 * python/python-internal.h (Py_buffer_deleter): New struct.
4467 (Py_buffer_up): New typedef.
4469 2019-02-25 John Baldwin <jhb@FreeBSD.org>
4471 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
4472 instead of releasing ownership.
4474 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
4476 * dwarf2read.c (open_and_init_dwp_file): Call
4477 elf_numsections instead of bfd_count_sections to initialize
4478 dwp_file->num_sections.
4480 2019-02-25 Tom Tromey <tromey@adacore.com>
4482 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
4484 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
4486 * gcore.in: Add '--readnever' option when invoking GDB.
4488 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4490 * MAINTAINERS: Update my email address.
4492 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4494 * build-id.c (build_id_to_debug_bfd_1): New function.
4495 (build_id_to_debug_bfd): Look for separate debug file in
4498 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
4500 * gdbarch.sh: Update the copyright year range that is placed into
4503 2019-02-22 Keith Seitz <keiths@redhat.com>
4506 * linespec.c (create_sals_line_offset): Search for the default
4507 symtab's filename instead of its fullname.
4509 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4511 * NEWS: Update style defaults.
4513 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4515 * main.c (captured_main_1): Disable styling in batch mode.
4517 2019-02-20 Tom Tromey <tom@tromey.com>
4519 * symtab.c (symtab_symbol_info): Fix typos.
4521 2019-02-20 Tom Tromey <tromey@adacore.com>
4523 * findcmd.c (_initialize_mem_search): Use upper case for
4524 metasyntactic variables.
4526 2019-02-20 Alan Hayward <alan.hayward@arm.com>
4528 * aarch64-tdep.c (aarch64_add_reggroups): New function.
4529 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
4531 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
4533 * top.h (source_file_name): Change to std::string.
4534 * top.c (source_file_name): Likewise.
4535 (command_line_input): Adjust.
4536 * cli/cli-script.c (script_from_file): Adjust.
4538 2019-02-19 Tom Tromey <tromey@adacore.com>
4540 * ravenscar-thread.c
4541 (ravenscar_thread_target::update_thread_list): Don't call
4542 ada_build_task_list.
4543 * ada-lang.h (ada_build_task_list): Don't declare.
4544 * ada-tasks.c (struct ada_tasks_inferior_data)
4545 <task_list_valid_p>: Now bool.
4546 (read_known_tasks, ada_task_list_changed)
4547 (ada_tasks_invalidate_inferior_data): Update.
4548 (read_known_tasks_array): Return bool.
4549 (read_known_tasks_list): Likewise.
4550 (read_known_tasks): Return void.
4551 (ada_build_task_list): Now static.
4553 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
4555 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
4556 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
4558 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4560 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
4561 variant for ada_tasks_pspace_data_handle and
4562 ada_tasks_inferior_data_handle.
4563 (ada_tasks_pspace_data_cleanup): New function.
4564 (ada_tasks_inferior_data_cleanup): New function.
4566 2019-02-17 Tom Tromey <tom@tromey.com>
4568 * macrotab.h (macro_source_fullname): Return a std::string.
4569 * macrotab.c (macro_include, check_for_redefinition)
4570 (macro_undef, macro_lookup_definition, foreach_macro)
4571 (foreach_macro_in_scope): Update.
4572 (macro_source_fullname): Return a std::string.
4573 * macrocmd.c (show_pp_source_pos): Update.
4575 2019-02-17 Tom Tromey <tom@tromey.com>
4577 * macrocmd.c (show_pp_source_pos): Style the file names.
4579 2019-02-17 Tom Tromey <tom@tromey.com>
4582 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
4584 2019-02-17 Tom Tromey <tom@tromey.com>
4586 * ada-lang.c (user_select_syms): Use filtered printing.
4587 * utils.c (wrap_style): New global.
4588 (desired_style): Remove.
4589 (emit_style_escape): Add stream parameter.
4590 (set_output_style, reset_terminal_style, prompt_for_continue):
4592 (flush_wrap_buffer): Only flush gdb_stdout.
4593 (wrap_here): Set wrap_style.
4594 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
4595 treat escape sequences as a character. Change when wrap buffer is
4597 (fputs_styled): Do not set the output style when the default is
4599 * ui-style.h (struct ui_file_style) <is_default>: New method.
4600 * source.c (print_source_lines_base): Emit escape sequences in one
4603 2019-02-17 Joel Brobecker <brobecker@adacore.com>
4605 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
4606 integers and enumeration types.
4608 2019-02-17 Joel Brobecker <brobecker@adacore.com>
4610 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
4611 instead of lookup_symbol_in_language
4612 (do_exact_match): New function.
4613 (ada_get_symbol_name_matcher): Return do_exact_match when
4614 doing a verbatim match.
4616 2019-02-15 Tom Tromey <tromey@adacore.com>
4618 * ravenscar-thread.c (ravenscar_thread_target::resume)
4619 (ravenscar_thread_target::wait): Special case wildcard requests.
4621 2019-02-15 Tom Tromey <tromey@adacore.com>
4623 * ravenscar-thread.c (base_ptid): Remove.
4624 (struct ravenscar_thread_target) <close>: New method.
4625 <m_base_ptid>: New member.
4626 <update_inferior_ptid, active_task, task_is_currently_active,
4627 runtime_initialized>: Declare methods.
4628 <ravenscar_thread_target>: Add constructor.
4629 (ravenscar_thread_target::task_is_currently_active)
4630 (ravenscar_thread_target::update_inferior_ptid)
4631 (ravenscar_runtime_initialized): Rename. Now methods.
4632 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
4633 (ravenscar_thread_target::update_thread_list): Update.
4634 (ravenscar_thread_target::active_task): Now method.
4635 (ravenscar_thread_target::store_registers)
4636 (ravenscar_thread_target::prepare_to_store)
4637 (ravenscar_thread_target::prepare_to_store)
4638 (ravenscar_thread_target::mourn_inferior): Update.
4639 (ravenscar_inferior_created): Use "new" to create target.
4640 (ravenscar_thread_target::get_ada_task_ptid): Update.
4641 (_initialize_ravenscar): Don't initialize base_ptid.
4642 (ravenscar_ops): Remove global.
4644 2019-02-15 Tom Tromey <tromey@adacore.com>
4646 * target.h (push_target): Declare new overload.
4647 * target.c (push_target): New overload, taking an rvalue reference.
4648 * remote.c (remote_target::open_1): Use push_target overload.
4649 * corelow.c (core_target_open): Use push_target overload.
4651 2019-02-15 Tom Tromey <tromey@adacore.com>
4653 * ravenscar-thread.c (is_ravenscar_task)
4654 (ravenscar_task_is_currently_active): Return bool.
4655 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
4656 (_initialize_ravenscar): Remove "(void)".
4657 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
4660 2019-02-15 Tom Tromey <tromey@adacore.com>
4662 * ravenscar-thread.c (ravenscar_runtime_initializer)
4663 (has_ravenscar_runtime, get_running_thread_id)
4664 (ravenscar_thread_target::resume): Fix indentation.
4666 2019-02-15 Tom Tromey <tromey@adacore.com>
4668 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
4669 from ravenscar_arch_ops.
4670 (sparc_ravenscar_ops::fetch_registers)
4671 (sparc_ravenscar_ops::store_registers): Now methods.
4672 (sparc_ravenscar_prepare_to_store): Remove.
4673 (sparc_ravenscar_ops): Redefine.
4674 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
4675 methods and destructor. Remove members.
4676 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
4677 (ravenscar_thread_target::store_registers)
4678 (ravenscar_thread_target::prepare_to_store): Update.
4679 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
4681 (struct ppc_ravenscar_powerpc_ops): Derive from
4683 (ppc_ravenscar_powerpc_ops::fetch_registers)
4684 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
4685 (ppc_ravenscar_powerpc_ops): Redefine.
4686 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
4687 (ppc_ravenscar_e500_ops::fetch_registers)
4688 (ppc_ravenscar_e500_ops::store_registers): Now methods.
4689 (ppc_ravenscar_e500_ops): Redefine.
4690 * aarch64-ravenscar-thread.c
4691 (aarch64_ravenscar_generic_prepare_to_store): Remove.
4692 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
4693 (aarch64_ravenscar_fetch_registers)
4694 (aarch64_ravenscar_store_registers): Now methods.
4695 (aarch64_ravenscar_ops): Redefine.
4697 2019-02-15 Tom Tromey <tromey@adacore.com>
4699 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
4700 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4701 (ravenscar_thread_target::stopped_by_watchpoint)
4702 (ravenscar_thread_target::stopped_data_address)
4703 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
4705 2019-02-15 Tom Tromey <tromey@adacore.com>
4707 * ravenscar-thread.c: Fix some typos.
4709 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4710 Tom Tromey <tromey@adacore.com>
4712 * ada-lang.c (ada_exception_sal): Change addr_string to a
4714 (create_ada_exception_catchpoint): Update.
4716 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4717 Tom Tromey <tromey@adacore.com>
4719 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
4720 (bp_location_ops): Remove.
4721 (base_breakpoint_allocate_location): Update.
4722 (free_bp_location): Update.
4723 * ada-lang.c (class ada_catchpoint_location)
4724 <ada_catchpoint_location>: Remove ops parameter.
4725 (ada_catchpoint_location_dtor): Remove.
4726 (ada_catchpoint_location_ops): Remove.
4727 (allocate_location_exception): Update.
4728 * breakpoint.h (struct bp_location_ops): Remove.
4729 (class bp_location) <bp_location>: Remove bp_location_ops
4731 <~bp_location>: Add destructor.
4734 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
4735 Pedro Alves <palves@redhat.com>
4737 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
4740 2019-02-14 David Michael <fedora.dm0@gmail.com>
4741 Samuel Thibault <samuel.thibault@gnu.org>
4742 Thomas Schwinge <thomas@codesourcery.com>
4744 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
4745 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
4747 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
4749 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
4750 (check_empty): Use "const char *".
4752 * gnu-nat.c (gnu_nat_target::detach): Instead of
4753 'detach_inferior (pid)' call
4754 'detach_inferior (find_inferior_pid (pid))'.
4756 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
4757 'nat/fork-inferior.o'.
4758 * gnu-nat.c: #include "nat/fork-inferior.h".
4760 * gnu-nat.c (gnu_nat_target::detach): Instead of
4761 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
4762 * gnu-nat.h: #include "inf-child.h".
4763 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
4764 'i386_gnu_nat_target::fetch_registers'.
4765 (gnu_store_registers): Rename/move to
4766 'i386_gnu_nat_target::store_registers'.
4768 * config/i386/nm-i386gnu.h: Don't "#include" any files.
4769 * gnu-nat.h (mach_thread_info): New function.
4770 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
4772 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
4774 2019-02-14 Frederic Konrad <konrad@adacore.com>
4776 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
4778 2019-02-14 Joel Brobecker <brobecker@adacore.com>
4780 * windows-nat.c (windows_add_thread): Add new parameter
4781 "main_thread_p" with default value set to false. Update
4782 function documentation as well as all callers.
4783 (windows_delete_thread): Likewise.
4784 (fake_create_process): Update call to windows_add_thread.
4785 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
4786 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
4787 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
4788 call to windows_delete_thread.
4790 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
4792 * MAINTAINERS: Add Andrew Burgess as global maintainer.
4794 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4796 * symfile.c (find_separate_debug_file): Use canonical path of
4797 sysroot with child_path instead of gdb_sysroot if it is valid.
4799 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4801 * symfile.c (find_separate_debug_file): Use child_path to
4802 determine if an object file is under a sysroot.
4804 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4806 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4807 unittests/child-path-selftests.c.
4808 * common/pathstuff.c (child_path): New function.
4809 * common/pathstuff.h (child_path): New prototype.
4810 * unittests/child-path-selftests.c: New file.
4812 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4814 * symfile.c (find_separate_debug_file): Look for separate debug
4815 files in debug directories under the sysroot.
4817 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4819 * symtab.h (struct minimal_symbol data_p): New const method.
4820 (struct minimal_symbol text_p): Likewise.
4821 * symtab.c (output_source_filename): Use file name style
4823 (print_symbol_info): Likewise.
4824 (print_msymbol_info): Use address style to print addresses.
4825 Use function name style to print executable text symbols.
4826 (expand_symtab_containing_pc): Use data_p.
4827 (find_pc_sect_compunit_symtab): Likewise.
4829 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4831 * breakpoint.c (describe_other_breakpoints): Use address style
4833 (say_where): Likewise.
4835 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4837 * ada-typeprint.c (print_func_type): Print function name
4838 style to print function name.
4839 * c-typeprint.c (c_print_type_1): Likewise.
4841 2019-02-11 Alan Hayward <alan.hayward@arm.com>
4843 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
4846 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4848 * c-exp.y (direct_abs_decl): Use emplace_back to record the
4851 2019-02-10 Joel Brobecker <brobecker@adacore.com>
4853 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
4854 TYPE_CODE_REF types.
4856 2019-02-08 Jim Wilson <jimw@sifive.com>
4858 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
4859 (riscv_linux_fregset): New.
4860 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
4862 2019-02-07 Tom Tromey <tom@tromey.com>
4864 * thread.c (thread_cancel_execution_command): Update.
4865 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
4867 (struct thread_fsm_ops): Remove.
4868 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
4869 (thread_fsm_should_stop, thread_fsm_return_value)
4870 (thread_fsm_set_finished, thread_fsm_finished_p)
4871 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
4873 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
4874 * infrun.c (clear_proceed_status_thread)
4875 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
4876 (print_stop_event): Update.
4877 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
4879 (step_command_fsm_ops): Remove.
4880 (new_step_command_fsm): Remove.
4882 (step_command_fsm::should_stop): Rename from
4883 step_command_fsm_should_stop.
4884 (step_command_fsm::clean_up): Rename from
4885 step_command_fsm_clean_up.
4886 (step_command_fsm::do_async_reply_reason): Rename from
4887 step_command_fsm_async_reply_reason.
4888 (struct until_next_fsm): Inherit from thread_fsm. Add
4890 (until_next_fsm_ops): Remove.
4891 (new_until_next_fsm): Remove.
4892 (until_next_fsm::should_stop): Rename from
4893 until_next_fsm_should_stop.
4894 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
4895 (until_next_fsm::do_async_reply_reason): Rename from
4896 until_next_fsm_async_reply_reason.
4897 (struct finish_command_fsm): Inherit from thread_fsm. Add
4898 constructor. Change type of breakpoint.
4899 (finish_command_fsm_ops): Remove.
4900 (new_finish_command_fsm): Remove.
4901 (finish_command_fsm::should_stop): Rename from
4902 finish_command_fsm_should_stop.
4903 (finish_command_fsm::clean_up): Rename from
4904 finish_command_fsm_clean_up.
4905 (finish_command_fsm::return_value): Rename from
4906 finish_command_fsm_return_value.
4907 (finish_command_fsm::do_async_reply_reason): Rename from
4908 finish_command_fsm_async_reply_reason.
4909 (finish_command): Update.
4910 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
4912 (call_thread_fsm_ops): Remove.
4913 (call_thread_fsm::call_thread_fsm): Rename from
4914 new_call_thread_fsm.
4915 (call_thread_fsm::should_stop): Rename from
4916 call_thread_fsm_should_stop.
4917 (call_thread_fsm::should_notify_stop): Rename from
4918 call_thread_fsm_should_notify_stop.
4919 (run_inferior_call, call_function_by_hand_dummy): Update.
4920 * cli/cli-interp.c (should_print_stop_to_console): Update.
4921 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
4922 Add constructor. Change type of location_breakpoint,
4924 (until_break_fsm_ops): Remove.
4925 (new_until_break_fsm): Remove.
4926 (until_break_fsm::should_stop): Rename from
4927 until_break_fsm_should_stop.
4928 (until_break_fsm::clean_up): Rename from
4929 until_break_fsm_clean_up.
4930 (until_break_fsm::do_async_reply_reason): Rename from
4931 until_break_fsm_async_reply_reason.
4932 (until_break_command): Update.
4933 * thread-fsm.c: Remove.
4934 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
4936 2019-02-07 Tom Tromey <tom@tromey.com>
4938 * yy-remap.h: Add include guard.
4939 * xtensa-tdep.h: Add include guard.
4940 * xcoffread.h: Rename include guard.
4941 * varobj-iter.h: Add include guard.
4942 * tui/tui.h: Rename include guard.
4943 * tui/tui-winsource.h: Rename include guard.
4944 * tui/tui-wingeneral.h: Rename include guard.
4945 * tui/tui-windata.h: Rename include guard.
4946 * tui/tui-win.h: Rename include guard.
4947 * tui/tui-stack.h: Rename include guard.
4948 * tui/tui-source.h: Rename include guard.
4949 * tui/tui-regs.h: Rename include guard.
4950 * tui/tui-out.h: Rename include guard.
4951 * tui/tui-layout.h: Rename include guard.
4952 * tui/tui-io.h: Rename include guard.
4953 * tui/tui-hooks.h: Rename include guard.
4954 * tui/tui-file.h: Rename include guard.
4955 * tui/tui-disasm.h: Rename include guard.
4956 * tui/tui-data.h: Rename include guard.
4957 * tui/tui-command.h: Rename include guard.
4958 * tic6x-tdep.h: Add include guard.
4959 * target/waitstatus.h: Rename include guard.
4960 * target/wait.h: Rename include guard.
4961 * target/target.h: Rename include guard.
4962 * target/resume.h: Rename include guard.
4963 * target-float.h: Rename include guard.
4964 * stabsread.h: Add include guard.
4965 * rs6000-tdep.h: Add include guard.
4966 * riscv-fbsd-tdep.h: Add include guard.
4967 * regformats/regdef.h: Rename include guard.
4968 * record.h: Rename include guard.
4969 * python/python.h: Rename include guard.
4970 * python/python-internal.h: Rename include guard.
4971 * python/py-stopevent.h: Rename include guard.
4972 * python/py-ref.h: Rename include guard.
4973 * python/py-record.h: Rename include guard.
4974 * python/py-record-full.h: Rename include guard.
4975 * python/py-record-btrace.h: Rename include guard.
4976 * python/py-instruction.h: Rename include guard.
4977 * python/py-events.h: Rename include guard.
4978 * python/py-event.h: Rename include guard.
4979 * procfs.h: Add include guard.
4980 * proc-utils.h: Add include guard.
4981 * p-lang.h: Add include guard.
4982 * or1k-tdep.h: Rename include guard.
4983 * observable.h: Rename include guard.
4984 * nto-tdep.h: Rename include guard.
4985 * nat/x86-linux.h: Rename include guard.
4986 * nat/x86-linux-dregs.h: Rename include guard.
4987 * nat/x86-gcc-cpuid.h: Add include guard.
4988 * nat/x86-dregs.h: Rename include guard.
4989 * nat/x86-cpuid.h: Rename include guard.
4990 * nat/ppc-linux.h: Rename include guard.
4991 * nat/mips-linux-watch.h: Rename include guard.
4992 * nat/linux-waitpid.h: Rename include guard.
4993 * nat/linux-ptrace.h: Rename include guard.
4994 * nat/linux-procfs.h: Rename include guard.
4995 * nat/linux-osdata.h: Rename include guard.
4996 * nat/linux-nat.h: Rename include guard.
4997 * nat/linux-namespaces.h: Rename include guard.
4998 * nat/linux-btrace.h: Rename include guard.
4999 * nat/glibc_thread_db.h: Rename include guard.
5000 * nat/gdb_thread_db.h: Rename include guard.
5001 * nat/gdb_ptrace.h: Rename include guard.
5002 * nat/fork-inferior.h: Rename include guard.
5003 * nat/amd64-linux-siginfo.h: Rename include guard.
5004 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
5005 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
5006 * nat/aarch64-linux.h: Rename include guard.
5007 * nat/aarch64-linux-hw-point.h: Rename include guard.
5008 * mn10300-tdep.h: Add include guard.
5009 * mips-linux-tdep.h: Add include guard.
5010 * mi/mi-parse.h: Rename include guard.
5011 * mi/mi-out.h: Rename include guard.
5012 * mi/mi-main.h: Rename include guard.
5013 * mi/mi-interp.h: Rename include guard.
5014 * mi/mi-getopt.h: Rename include guard.
5015 * mi/mi-console.h: Rename include guard.
5016 * mi/mi-common.h: Rename include guard.
5017 * mi/mi-cmds.h: Rename include guard.
5018 * mi/mi-cmd-break.h: Rename include guard.
5019 * m2-lang.h: Add include guard.
5020 * location.h: Rename include guard.
5021 * linux-record.h: Rename include guard.
5022 * linux-nat.h: Add include guard.
5023 * linux-fork.h: Add include guard.
5024 * i386-darwin-tdep.h: Rename include guard.
5025 * hppa-linux-offsets.h: Add include guard.
5026 * guile/guile.h: Rename include guard.
5027 * guile/guile-internal.h: Rename include guard.
5028 * gnu-nat.h: Rename include guard.
5029 * gdb-stabs.h: Rename include guard.
5030 * frv-tdep.h: Add include guard.
5031 * f-lang.h: Add include guard.
5032 * event-loop.h: Add include guard.
5033 * darwin-nat.h: Rename include guard.
5034 * cp-abi.h: Rename include guard.
5035 * config/sparc/nm-sol2.h: Rename include guard.
5036 * config/nm-nto.h: Rename include guard.
5037 * config/nm-linux.h: Add include guard.
5038 * config/i386/nm-i386gnu.h: Rename include guard.
5039 * config/djgpp/nl_types.h: Rename include guard.
5040 * config/djgpp/langinfo.h: Rename include guard.
5041 * compile/gcc-cp-plugin.h: Add include guard.
5042 * compile/gcc-c-plugin.h: Add include guard.
5043 * compile/compile.h: Rename include guard.
5044 * compile/compile-object-run.h: Rename include guard.
5045 * compile/compile-object-load.h: Rename include guard.
5046 * compile/compile-internal.h: Rename include guard.
5047 * compile/compile-cplus.h: Rename include guard.
5048 * compile/compile-c.h: Rename include guard.
5049 * common/xml-utils.h: Rename include guard.
5050 * common/x86-xstate.h: Rename include guard.
5051 * common/version.h: Rename include guard.
5052 * common/vec.h: Rename include guard.
5053 * common/tdesc.h: Rename include guard.
5054 * common/selftest.h: Rename include guard.
5055 * common/scoped_restore.h: Rename include guard.
5056 * common/scoped_mmap.h: Rename include guard.
5057 * common/scoped_fd.h: Rename include guard.
5058 * common/safe-iterator.h: Rename include guard.
5059 * common/run-time-clock.h: Rename include guard.
5060 * common/refcounted-object.h: Rename include guard.
5061 * common/queue.h: Rename include guard.
5062 * common/ptid.h: Rename include guard.
5063 * common/print-utils.h: Rename include guard.
5064 * common/preprocessor.h: Rename include guard.
5065 * common/pathstuff.h: Rename include guard.
5066 * common/observable.h: Rename include guard.
5067 * common/netstuff.h: Rename include guard.
5068 * common/job-control.h: Rename include guard.
5069 * common/host-defs.h: Rename include guard.
5070 * common/gdb_wait.h: Rename include guard.
5071 * common/gdb_vecs.h: Rename include guard.
5072 * common/gdb_unlinker.h: Rename include guard.
5073 * common/gdb_unique_ptr.h: Rename include guard.
5074 * common/gdb_tilde_expand.h: Rename include guard.
5075 * common/gdb_sys_time.h: Rename include guard.
5076 * common/gdb_string_view.h: Rename include guard.
5077 * common/gdb_splay_tree.h: Rename include guard.
5078 * common/gdb_setjmp.h: Rename include guard.
5079 * common/gdb_ref_ptr.h: Rename include guard.
5080 * common/gdb_optional.h: Rename include guard.
5081 * common/gdb_locale.h: Rename include guard.
5082 * common/gdb_assert.h: Rename include guard.
5083 * common/filtered-iterator.h: Rename include guard.
5084 * common/filestuff.h: Rename include guard.
5085 * common/fileio.h: Rename include guard.
5086 * common/environ.h: Rename include guard.
5087 * common/common-utils.h: Rename include guard.
5088 * common/common-types.h: Rename include guard.
5089 * common/common-regcache.h: Rename include guard.
5090 * common/common-inferior.h: Rename include guard.
5091 * common/common-gdbthread.h: Rename include guard.
5092 * common/common-exceptions.h: Rename include guard.
5093 * common/common-defs.h: Rename include guard.
5094 * common/common-debug.h: Rename include guard.
5095 * common/cleanups.h: Rename include guard.
5096 * common/buffer.h: Rename include guard.
5097 * common/btrace-common.h: Rename include guard.
5098 * common/break-common.h: Rename include guard.
5099 * cli/cli-utils.h: Rename include guard.
5100 * cli/cli-style.h: Rename include guard.
5101 * cli/cli-setshow.h: Rename include guard.
5102 * cli/cli-script.h: Rename include guard.
5103 * cli/cli-interp.h: Rename include guard.
5104 * cli/cli-decode.h: Rename include guard.
5105 * cli/cli-cmds.h: Rename include guard.
5106 * charset-list.h: Add include guard.
5107 * buildsym-legacy.h: Rename include guard.
5108 * bfin-tdep.h: Add include guard.
5109 * ax.h: Rename include guard.
5110 * arm-linux-tdep.h: Add include guard.
5111 * arm-fbsd-tdep.h: Add include guard.
5112 * arch/xtensa.h: Rename include guard.
5113 * arch/tic6x.h: Add include guard.
5114 * arch/i386.h: Add include guard.
5115 * arch/arm.h: Rename include guard.
5116 * arch/arm-linux.h: Rename include guard.
5117 * arch/arm-get-next-pcs.h: Rename include guard.
5118 * arch/amd64.h: Add include guard.
5119 * arch/aarch64-insn.h: Rename include guard.
5120 * arch-utils.h: Rename include guard.
5121 * annotate.h: Add include guard.
5122 * amd64-darwin-tdep.h: Rename include guard.
5123 * aarch64-linux-tdep.h: Add include guard.
5124 * aarch64-fbsd-tdep.h: Add include guard.
5125 * aarch32-linux-nat.h: Add include guard.
5127 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5129 * macrotab.c (macro_define_internal): New function that
5130 factorizes macro_define_object_internal and macro_define_function
5132 (macro_define_object_internal): Use macro_define_internal.
5133 (macro_define_function): Likewise.
5135 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5137 * macrocmd.c (extract_identifier): Return
5138 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
5141 2019-02-06 John Baldwin <jhb@FreeBSD.org>
5143 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
5145 2019-02-05 Tom Tromey <tom@tromey.com>
5147 * target.c (target_stack::unpush): Move assertion earlier.
5149 2019-01-30 Tom Tromey <tom@tromey.com>
5152 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
5153 (gdbpy_parse_and_eval): Likewise.
5154 * python/python-internal.h (gdbpy_allow_threads): New class.
5156 2019-01-28 John Baldwin <jhb@FreeBSD.org>
5158 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
5159 (aarch64_fbsd_fpregmap): Move earlier.
5160 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
5161 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5162 instead of individual calls to trad_frame_set_reg_addr.
5163 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
5165 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
5166 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5167 instead of individual calls to trad_frame_set_reg_addr.
5169 2019-01-28 Alan Hayward <alan.hayward@arm.com>
5171 * CONTRIBUTE: Replace contribution list with wiki link.
5173 2019-01-25 Tom Tromey <tom@tromey.com>
5175 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
5177 2019-01-25 Tom Tromey <tom@tromey.com>
5179 * xtensa-linux-nat.c: Fix common/ includes.
5180 * xml-support.h: Fix common/ includes.
5181 * xml-support.c: Fix common/ includes.
5182 * x86-linux-nat.c: Fix common/ includes.
5183 * windows-nat.c: Fix common/ includes.
5184 * varobj.h: Fix common/ includes.
5185 * varobj.c: Fix common/ includes.
5186 * value.c: Fix common/ includes.
5187 * valops.c: Fix common/ includes.
5188 * utils.c: Fix common/ includes.
5189 * unittests/xml-utils-selftests.c: Fix common/ includes.
5190 * unittests/utils-selftests.c: Fix common/ includes.
5191 * unittests/unpack-selftests.c: Fix common/ includes.
5192 * unittests/tracepoint-selftests.c: Fix common/ includes.
5193 * unittests/style-selftests.c: Fix common/ includes.
5194 * unittests/string_view-selftests.c: Fix common/ includes.
5195 * unittests/scoped_restore-selftests.c: Fix common/ includes.
5196 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
5197 * unittests/scoped_fd-selftests.c: Fix common/ includes.
5198 * unittests/rsp-low-selftests.c: Fix common/ includes.
5199 * unittests/parse-connection-spec-selftests.c: Fix common/
5201 * unittests/optional-selftests.c: Fix common/ includes.
5202 * unittests/offset-type-selftests.c: Fix common/ includes.
5203 * unittests/observable-selftests.c: Fix common/ includes.
5204 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
5205 * unittests/memrange-selftests.c: Fix common/ includes.
5206 * unittests/memory-map-selftests.c: Fix common/ includes.
5207 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
5208 * unittests/function-view-selftests.c: Fix common/ includes.
5209 * unittests/environ-selftests.c: Fix common/ includes.
5210 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
5211 * unittests/common-utils-selftests.c: Fix common/ includes.
5212 * unittests/cli-utils-selftests.c: Fix common/ includes.
5213 * unittests/array-view-selftests.c: Fix common/ includes.
5214 * ui-file.c: Fix common/ includes.
5215 * tui/tui-io.c: Fix common/ includes.
5216 * tracepoint.h: Fix common/ includes.
5217 * tracepoint.c: Fix common/ includes.
5218 * tracefile-tfile.c: Fix common/ includes.
5219 * top.h: Fix common/ includes.
5220 * top.c: Fix common/ includes.
5221 * thread.c: Fix common/ includes.
5222 * target/waitstatus.h: Fix common/ includes.
5223 * target/waitstatus.c: Fix common/ includes.
5224 * target.h: Fix common/ includes.
5225 * target.c: Fix common/ includes.
5226 * target-memory.c: Fix common/ includes.
5227 * target-descriptions.c: Fix common/ includes.
5228 * symtab.h: Fix common/ includes.
5229 * symfile.c: Fix common/ includes.
5230 * stap-probe.c: Fix common/ includes.
5231 * spu-linux-nat.c: Fix common/ includes.
5232 * sparc-nat.c: Fix common/ includes.
5233 * source.c: Fix common/ includes.
5234 * solib.c: Fix common/ includes.
5235 * solib-target.c: Fix common/ includes.
5236 * ser-unix.c: Fix common/ includes.
5237 * ser-tcp.c: Fix common/ includes.
5238 * ser-pipe.c: Fix common/ includes.
5239 * ser-base.c: Fix common/ includes.
5240 * selftest-arch.c: Fix common/ includes.
5241 * s12z-tdep.c: Fix common/ includes.
5242 * rust-exp.y: Fix common/ includes.
5243 * rs6000-aix-tdep.c: Fix common/ includes.
5244 * riscv-tdep.c: Fix common/ includes.
5245 * remote.c: Fix common/ includes.
5246 * remote-notif.h: Fix common/ includes.
5247 * remote-fileio.h: Fix common/ includes.
5248 * remote-fileio.c: Fix common/ includes.
5249 * regcache.h: Fix common/ includes.
5250 * regcache.c: Fix common/ includes.
5251 * record-btrace.c: Fix common/ includes.
5252 * python/python.c: Fix common/ includes.
5253 * python/py-type.c: Fix common/ includes.
5254 * python/py-inferior.c: Fix common/ includes.
5255 * progspace.h: Fix common/ includes.
5256 * producer.c: Fix common/ includes.
5257 * procfs.c: Fix common/ includes.
5258 * proc-api.c: Fix common/ includes.
5259 * printcmd.c: Fix common/ includes.
5260 * ppc-linux-nat.c: Fix common/ includes.
5261 * parser-defs.h: Fix common/ includes.
5262 * osdata.c: Fix common/ includes.
5263 * obsd-nat.c: Fix common/ includes.
5264 * nat/x86-linux.c: Fix common/ includes.
5265 * nat/x86-linux-dregs.c: Fix common/ includes.
5266 * nat/x86-dregs.h: Fix common/ includes.
5267 * nat/x86-dregs.c: Fix common/ includes.
5268 * nat/ppc-linux.c: Fix common/ includes.
5269 * nat/mips-linux-watch.h: Fix common/ includes.
5270 * nat/mips-linux-watch.c: Fix common/ includes.
5271 * nat/linux-waitpid.c: Fix common/ includes.
5272 * nat/linux-ptrace.h: Fix common/ includes.
5273 * nat/linux-ptrace.c: Fix common/ includes.
5274 * nat/linux-procfs.c: Fix common/ includes.
5275 * nat/linux-personality.c: Fix common/ includes.
5276 * nat/linux-osdata.c: Fix common/ includes.
5277 * nat/linux-namespaces.c: Fix common/ includes.
5278 * nat/linux-btrace.h: Fix common/ includes.
5279 * nat/linux-btrace.c: Fix common/ includes.
5280 * nat/fork-inferior.c: Fix common/ includes.
5281 * nat/amd64-linux-siginfo.c: Fix common/ includes.
5282 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
5283 * nat/aarch64-linux.c: Fix common/ includes.
5284 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
5285 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
5286 * namespace.h: Fix common/ includes.
5287 * mips-linux-tdep.c: Fix common/ includes.
5288 * minsyms.c: Fix common/ includes.
5289 * mi/mi-parse.h: Fix common/ includes.
5290 * mi/mi-main.c: Fix common/ includes.
5291 * mi/mi-cmd-env.c: Fix common/ includes.
5292 * memrange.h: Fix common/ includes.
5293 * memattr.c: Fix common/ includes.
5294 * maint.h: Fix common/ includes.
5295 * maint.c: Fix common/ includes.
5296 * main.c: Fix common/ includes.
5297 * machoread.c: Fix common/ includes.
5298 * location.c: Fix common/ includes.
5299 * linux-thread-db.c: Fix common/ includes.
5300 * linux-nat.c: Fix common/ includes.
5301 * linux-fork.c: Fix common/ includes.
5302 * inline-frame.c: Fix common/ includes.
5303 * infrun.c: Fix common/ includes.
5304 * inflow.c: Fix common/ includes.
5305 * inferior.h: Fix common/ includes.
5306 * inferior.c: Fix common/ includes.
5307 * infcmd.c: Fix common/ includes.
5308 * inf-ptrace.c: Fix common/ includes.
5309 * inf-child.c: Fix common/ includes.
5310 * ia64-linux-nat.c: Fix common/ includes.
5311 * i387-tdep.c: Fix common/ includes.
5312 * i386-tdep.c: Fix common/ includes.
5313 * i386-linux-tdep.c: Fix common/ includes.
5314 * i386-linux-nat.c: Fix common/ includes.
5315 * i386-go32-tdep.c: Fix common/ includes.
5316 * i386-fbsd-tdep.c: Fix common/ includes.
5317 * i386-fbsd-nat.c: Fix common/ includes.
5318 * guile/scm-type.c: Fix common/ includes.
5319 * guile/guile.c: Fix common/ includes.
5320 * go32-nat.c: Fix common/ includes.
5321 * gnu-nat.c: Fix common/ includes.
5322 * gdbthread.h: Fix common/ includes.
5323 * gdbarch-selftests.c: Fix common/ includes.
5324 * gdb_usleep.c: Fix common/ includes.
5325 * gdb_select.h: Fix common/ includes.
5326 * gdb_bfd.c: Fix common/ includes.
5327 * gcore.c: Fix common/ includes.
5328 * fork-child.c: Fix common/ includes.
5329 * findvar.c: Fix common/ includes.
5330 * fbsd-nat.c: Fix common/ includes.
5331 * event-top.c: Fix common/ includes.
5332 * event-loop.c: Fix common/ includes.
5333 * dwarf2read.c: Fix common/ includes.
5334 * dwarf2loc.c: Fix common/ includes.
5335 * dwarf2-frame.c: Fix common/ includes.
5336 * dwarf-index-cache.c: Fix common/ includes.
5337 * dtrace-probe.c: Fix common/ includes.
5338 * disasm-selftests.c: Fix common/ includes.
5339 * defs.h: Fix common/ includes.
5340 * csky-tdep.c: Fix common/ includes.
5341 * cp-valprint.c: Fix common/ includes.
5342 * cp-support.h: Fix common/ includes.
5343 * cp-support.c: Fix common/ includes.
5344 * corelow.c: Fix common/ includes.
5345 * completer.h: Fix common/ includes.
5346 * completer.c: Fix common/ includes.
5347 * compile/compile.c: Fix common/ includes.
5348 * compile/compile-loc2c.c: Fix common/ includes.
5349 * compile/compile-cplus-types.c: Fix common/ includes.
5350 * compile/compile-cplus-symbols.c: Fix common/ includes.
5351 * command.h: Fix common/ includes.
5352 * cli/cli-dump.c: Fix common/ includes.
5353 * cli/cli-cmds.c: Fix common/ includes.
5354 * charset.c: Fix common/ includes.
5355 * build-id.c: Fix common/ includes.
5356 * btrace.h: Fix common/ includes.
5357 * btrace.c: Fix common/ includes.
5358 * breakpoint.h: Fix common/ includes.
5359 * breakpoint.c: Fix common/ includes.
5361 (enum agent_op): Fix common/ includes.
5362 * ax-general.c (struct aop_map): Fix common/ includes.
5363 * ax-gdb.c: Fix common/ includes.
5364 * auxv.c: Fix common/ includes.
5365 * auto-load.c: Fix common/ includes.
5366 * arm-tdep.c: Fix common/ includes.
5367 * arch/riscv.c: Fix common/ includes.
5368 * arch/ppc-linux-common.c: Fix common/ includes.
5369 * arch/i386.c: Fix common/ includes.
5370 * arch/arm.c: Fix common/ includes.
5371 * arch/arm-linux.c: Fix common/ includes.
5372 * arch/arm-get-next-pcs.c: Fix common/ includes.
5373 * arch/amd64.c: Fix common/ includes.
5374 * arch/aarch64.c: Fix common/ includes.
5375 * arch/aarch64-insn.c: Fix common/ includes.
5376 * arch-utils.c: Fix common/ includes.
5377 * amd64-windows-tdep.c: Fix common/ includes.
5378 * amd64-tdep.c: Fix common/ includes.
5379 * amd64-sol2-tdep.c: Fix common/ includes.
5380 * amd64-obsd-tdep.c: Fix common/ includes.
5381 * amd64-nbsd-tdep.c: Fix common/ includes.
5382 * amd64-linux-tdep.c: Fix common/ includes.
5383 * amd64-linux-nat.c: Fix common/ includes.
5384 * amd64-fbsd-tdep.c: Fix common/ includes.
5385 * amd64-fbsd-nat.c: Fix common/ includes.
5386 * amd64-dicos-tdep.c: Fix common/ includes.
5387 * amd64-darwin-tdep.c: Fix common/ includes.
5388 * agent.c: Fix common/ includes.
5389 * ada-lang.h: Fix common/ includes.
5390 * ada-lang.c: Fix common/ includes.
5391 * aarch64-tdep.c: Fix common/ includes.
5393 2019-01-25 Tom Tromey <tom@tromey.com>
5395 * common/create-version.sh: Use common/version.h.
5397 2019-01-24 Pedro Alves <palves@redhat.com>
5399 * infrun.c (signal_stop, signal_print, signal_program)
5400 (signal_catch, signal_pass): Now arrays instead of pointers.
5401 (update_signals_program_target, do_target_resume)
5402 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
5403 * linux-nat.c (linux_nat_target::pass_signals)
5404 (linux_nat_target::create_inferior, linux_nat_target::attach):
5406 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
5407 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
5408 * procfs.c (procfs_target::pass_signals): Adjust.
5409 * record-full.c (record_full_target::resume): Adjust.
5410 * remote.c (remote_target::pass_signals)
5411 (remote_target::program_signals): Adjust.
5412 * target-debug.h (target_debug_print_signals): Now takes a
5413 gdb::array_view as parameter. Adjust.
5414 * target.h (target_ops) <pass_signals, program_signals>: Replace
5415 pointer and length parameters with gdb::array_view.
5416 (target_pass_signals, target_program_signals): Likewise.
5417 * target-delegates.c: Regenerate.
5419 2019-01-24 Pedro Alves <palves@redhat.com>
5421 * common/forward-scope-exit.h
5422 (forward_scope_exit::forward_scope_exit): Pass arguments to
5423 m_bind_function directly, instead of creating a std::bind and
5426 2019-01-24 Alan Hayward <alan.hayward@arm.com>
5428 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5430 (pass_in_v_vfp_candidate): Likewise.
5432 2019-01-23 Tom Tromey <tom@tromey.com>
5433 Pedro Alves <palves@redhat.com>
5435 * regcache.c (class regcache_invalidator): Remove.
5436 (regcache::raw_write): Use make_scope_exit.
5438 2019-01-23 Tom Tromey <tom@tromey.com>
5440 * ui-out.h (class ui_out_emit_type): Update comment.
5442 2019-01-23 Tom Tromey <tom@tromey.com>
5444 * infrun.c (fetch_inferior_event): Update comment.
5446 2019-01-23 Tom Tromey <tom@tromey.com>
5447 Pedro Alves <palves@redhat.com>
5449 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
5451 (fetch_inferior_event): Use SCOPE_EXIT.
5454 2019-01-23 Tom Tromey <tom@tromey.com>
5455 Pedro Alves <palves@redhat.com>
5457 * infrun.c (disable_thread_events): Delete.
5458 (stop_all_threads): Use SCOPE_EXIT.
5460 2019-01-23 Tom Tromey <tom@tromey.com>
5461 Pedro Alves <palves@redhat.com>
5463 * symfile.c: Include forward-scope-exit.h.
5464 (clear_symtab_users_cleanup): Replace forward declaration with
5465 a FORWARD_SCOPE_EXIT.
5466 (syms_from_objfile_1): Use the forward_scope_exit and
5467 gdb::optional instead of cleanup_function.
5468 (reread_symbols): Use the forward_scope_exit instead of
5470 (clear_symtab_users_cleanup): Remove function.
5472 2019-01-23 Tom Tromey <tom@tromey.com>
5473 Pedro Alves <palves@redhat.com>
5475 * linux-nat.c: Include scope-exit.h.
5476 (cleanup_target_stop): Remove.
5477 (linux_nat_target::static_tracepoint_markers_by_strid): Use
5480 2019-01-23 Tom Tromey <tom@tromey.com>
5481 Pedro Alves <palves@redhat.com>
5483 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
5484 (call_function_by_hand_dummy): Use SCOPE_EXIT.
5486 2019-01-23 Tom Tromey <tom@tromey.com>
5487 Andrew Burgess <andrew.burgess@embecosm.com>
5488 Pedro Alves <palves@redhat.com>
5490 * infrun.c (fetch_inferior_event): Use scope_exit.
5491 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
5492 * top.c (execute_command): Use scope_exit.
5493 * breakpoint.c (bpstat_do_actions): Use scope_exit.
5494 * utils.c (do_bpstat_clear_actions_cleanup)
5495 (make_bpstat_clear_actions_cleanup): Remove.
5497 2019-01-23 Tom Tromey <tom@tromey.com>
5498 Pedro Alves <palves@redhat.com>
5500 * infrun.c: Include "common/scope-exit.h"
5501 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
5502 (wait_for_inferior): Use SCOPE_EXIT.
5503 (fetch_inferior_event): Use scope_exit.
5505 2019-01-23 Tom Tromey <tom@tromey.com>
5506 Pedro Alves <palves@redhat.com>
5508 * breakpoint.c (create_breakpoint): Remove cleanup.
5510 2019-01-23 Tom Tromey <tom@tromey.com>
5511 Andrew Burgess <andrew.burgess@embecosm.com>
5512 Pedro Alves <palves@redhat.com>
5514 2019-01-23 Pedro Alves <palves@redhat.com>
5516 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
5518 2019-01-23 Pedro Alves <palves@redhat.com>
5519 Andrew Burgess <andrew.burgess@embecosm.com>
5521 * gdbthread.h: Include "common/forward-scope-exit.h".
5522 (scoped_finish_thread_state): Redefine custom class in terms of
5525 2019-01-23 Pedro Alves <palves@redhat.com>
5526 Andrew Burgess <andrew.burgess@embecosm.com>
5528 * common/forward-scope-exit.h: New file.
5530 2019-01-23 Pedro Alves <palves@redhat.com>
5531 Andrew Burgess <andrew.burgess@embecosm.com>
5532 Tom Tromey <tom@tromey.com>
5534 * common/scope-exit.h: New file.
5536 2019-01-23 Pedro Alves <palves@redhat.com>
5538 * common/preprocessor.h (ESC): Rename to ...
5539 (ESC_PARENS): ... this.
5540 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
5541 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
5543 2019-01-23 Tom Tromey <tom@tromey.com>
5545 * language.h (class scoped_switch_to_sym_language_if_auto):
5546 Initialize m_lang in both cases.
5548 2019-01-23 Alan Hayward <alan.hayward@arm.com>
5550 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
5553 2019-01-22 Tom Tromey <tom@tromey.com>
5555 * corelow.c: Do not include sys/file.h.
5557 2019-01-22 Tom Tromey <tom@tromey.com>
5559 * tui/tui-wingeneral.h: Include gdb_curses.h.
5561 2019-01-22 Tom Tromey <tom@tromey.com>
5563 * source-cache.h (class source_cache) <get_source_lines,
5564 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
5566 2019-01-22 Tom Tromey <tom@tromey.com>
5568 * remote-fileio.h (struct remote_target): Declare.
5570 2019-01-22 Tom Tromey <tom@tromey.com>
5572 * python/py-arch.c: Do not include py-ref.h.
5573 * python/py-bpevent.c: Do not include py-ref.h.
5574 * python/py-cmd.c: Do not include py-ref.h.
5575 * python/py-continueevent.c: Do not include py-ref.h.
5576 * python/py-event.h: Do not include py-ref.h.
5577 * python/py-evtregistry.c: Do not include py-ref.h.
5578 * python/py-finishbreakpoint.c: Do not include py-ref.h.
5579 * python/py-frame.c: Do not include py-ref.h.
5580 * python/py-framefilter.c: Do not include py-ref.h.
5581 * python/py-function.c: Do not include py-ref.h.
5582 * python/py-infevents.c: Do not include py-ref.h.
5583 * python/py-linetable.c: Do not include py-ref.h.
5584 * python/py-objfile.c: Do not include py-ref.h.
5585 * python/py-param.c: Do not include py-ref.h.
5586 * python/py-prettyprint.c: Do not include py-ref.h.
5587 * python/py-progspace.c: Do not include py-ref.h.
5588 * python/py-symbol.c: Do not include py-ref.h.
5589 * python/py-symtab.c: Do not include py-ref.h.
5590 * python/py-type.c: Do not include py-ref.h.
5591 * python/py-unwind.c: Do not include py-ref.h.
5592 * python/py-utils.c: Do not include py-ref.h.
5593 * python/py-value.c: Do not include py-ref.h.
5594 * python/py-varobj.c: Do not include py-ref.h.
5595 * python/py-xmethods.c: Do not include py-ref.h.
5596 * python/python.c: Do not include py-ref.h.
5597 * varobj.c: Do not include py-ref.h.
5599 2019-01-22 Tom Tromey <tom@tromey.com>
5601 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
5604 2019-01-22 Tom Tromey <tom@tromey.com>
5606 * compile/compile-cplus-types.c: Remove a comment by #include.
5608 2019-01-22 Tom Tromey <tom@tromey.com>
5610 * compile/gcc-c-plugin.h: Include compile-internal.h.
5612 2019-01-22 Tom Tromey <tom@tromey.com>
5614 * stabsread.c (EXTERN): Do not define.
5615 (symnum, next_symbol_text_func, processing_gcc_compilation)
5616 (within_function, global_sym_chain, global_stabs)
5617 (previous_stab_code, this_object_header_files)
5618 (n_this_object_header_files)
5619 (n_allocated_this_object_header_files): Define.
5620 * stabsread.h (EXTERN): Never define. Use "extern".
5622 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5624 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
5627 2019-01-21 Tom Tromey <tom@tromey.com>
5629 * ui-out.c: Fix includes.
5630 * tui/tui-source.c: Fix includes.
5631 * target.c: Fix includes.
5632 * remote.c: Fix includes.
5633 * regcache.c: Fix includes.
5634 * python/py-block.c: Fix includes.
5635 * printcmd.c: Fix includes.
5636 * or1k-tdep.c: Fix includes.
5637 * mi/mi-main.c: Fix includes.
5638 * m32r-tdep.c: Fix includes.
5639 * csky-tdep.c: Fix includes.
5640 * compile/compile-cplus-types.c: Fix includes.
5641 * cli/cli-interp.c: Fix includes.
5643 2019-01-21 Alan Hayward <alan.hayward@arm.com>
5645 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5648 2019-01-16 Tom Tromey <tom@tromey.com>
5650 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
5652 (struct objfile) <msymbols_range>: Move from top level.
5653 <msymbols>: New method.
5654 (class objfile_msymbols): Remove.
5655 * symtab.c (default_collect_symbol_completion_matches_break_on):
5657 * symmisc.c (dump_msymbols): Update.
5658 * stabsread.c (scan_file_globals): Update.
5659 * objc-lang.c (info_selectors_command, info_classes_command)
5660 (find_methods): Update.
5661 * minsyms.c (find_solib_trampoline_target): Update.
5662 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
5663 * coffread.c (coff_symfile_read): Update.
5664 * ada-lang.c (ada_lookup_simple_minsym)
5665 (ada_collect_symbol_completion_matches): Update.
5667 2019-01-16 Tom Tromey <tom@tromey.com>
5669 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
5670 type. Remove no-argument constructor.
5671 <iterator::operator++>: Simplify.
5673 <end>: Use minimal_symbol_count.
5675 2019-01-16 Tom Tromey <tom@tromey.com>
5677 * objfiles.h (struct objfile) <psymtabs>: New method.
5678 (class objfile_psymtabs): Remove.
5679 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
5681 <range>: New method.
5682 (require_partial_symbols): Change return type.
5683 * psymtab.c (require_partial_symbols)
5684 (psym_expand_symtabs_matching): Update.
5685 * mdebugread.c (parse_partial_symbols): Update.
5686 * dbxread.c (dbx_end_psymtab): Update.
5688 2019-01-15 Tom Tromey <tom@tromey.com>
5690 * symtab.c (lookup_objfile_from_block)
5691 (lookup_symbol_in_objfile_symtabs)
5692 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
5693 (find_line_symtab, info_sources_command)
5694 (default_collect_symbol_completion_matches_break_on)
5695 (make_source_files_completion_list): Update.
5696 * symmisc.c (print_objfile_statistics, dump_objfile)
5697 (maintenance_print_symbols, maintenance_info_symtabs)
5698 (maintenance_check_symtabs, maintenance_info_line_tables):
5700 * source.c (select_source_symtab)
5701 (forget_cached_source_info_for_objfile): Update.
5702 * objfiles.h (class objfile_compunits): Remove.
5703 (struct objfile) <compunits_range>: New typedef.
5704 (compunits): New method.
5705 * objfiles.c (objfile_relocate1): Update.
5706 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
5707 * maint.c (count_symtabs_and_blocks): Update.
5708 * linespec.c (iterate_over_all_matching_symtabs): Update.
5709 * cp-support.c (add_symbol_overload_list_qualified): Update.
5710 * coffread.c (coff_symtab_read): Update.
5711 * ada-lang.c (add_nonlocal_symbols)
5712 (ada_collect_symbol_completion_matches)
5713 (ada_add_global_exceptions): Update.
5715 2019-01-15 Tom Tromey <tom@tromey.com>
5717 * progspace.h (program_space) <objfiles_safe_range>: New
5719 <objfiles_safe>: New method.
5720 * objfiles.h (class all_objfiles_safe): Remove.
5721 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
5722 * jit.c (jit_inferior_exit_hook): Update.
5724 2019-01-17 Tom Tromey <tom@tromey.com>
5726 * progspace.h (program_space) <objfiles_range>: New typedef.
5727 <objfiles>: New method.
5728 <objfiles_head>: Rename from objfiles.
5729 (object_files): Update.
5730 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
5731 * guile/scm-pretty-print.c
5732 (ppscm_find_pretty_printer_from_objfiles): Update.
5733 * guile/scm-objfile.c (gdbscm_objfiles): Update.
5734 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
5736 * python/py-progspace.c (pspy_get_objfiles): Update.
5737 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
5739 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
5740 (objfpy_lookup_objfile_by_build_id): Update.
5741 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
5742 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
5744 * symtab.c (iterate_over_symtabs, matching_obj_sections)
5745 (expand_symtab_containing_pc, lookup_objfile_from_block)
5746 (lookup_static_symbol, basic_lookup_transparent_type)
5747 (find_pc_sect_compunit_symtab, find_symbol_at_address)
5748 (find_line_symtab, info_sources_command)
5749 (default_collect_symbol_completion_matches_break_on)
5750 (make_source_files_completion_list, find_main_name): Update.
5751 * symmisc.c (print_symbol_bcache_statistics)
5752 (print_objfile_statistics, maintenance_print_symbols)
5753 (maintenance_print_msymbols, maintenance_print_objfiles)
5754 (maintenance_info_symtabs, maintenance_check_symtabs)
5755 (maintenance_expand_symtabs, maintenance_info_line_tables):
5757 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
5758 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
5759 (map_overlay_command, unmap_overlay_command)
5760 (simple_overlay_update, expand_symtabs_matching)
5761 (map_symbol_filenames): Update.
5762 * symfile-debug.c (set_debug_symfile): Update.
5763 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
5765 * source.c (select_source_symtab, forget_cached_source_info):
5767 * solib.c (solib_read_symbols): Update.
5768 * solib-spu.c (append_ocl_sos): Update.
5769 * psymtab.c (maintenance_print_psymbols)
5770 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
5771 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
5772 * printcmd.c (info_symbol_command): Update.
5773 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
5775 * objfiles.h (class all_objfiles): Remove.
5776 * objfiles.c (have_partial_symbols, have_full_symbols)
5777 (have_minimal_symbols, qsort_cmp, update_section_map)
5778 (shared_objfile_contains_address_p)
5779 (default_iterate_over_objfiles_in_search_order): Update.
5780 * objc-lang.c (info_selectors_command, info_classes_command)
5781 (find_methods): Update.
5782 * minsyms.c (find_solib_trampoline_target): Update.
5783 * maint.c (maintenance_info_sections)
5784 (maintenance_translate_address, count_symtabs_and_blocks):
5786 * main.c (captured_main_1): Update.
5787 * linux-thread-db.c (try_thread_db_load_from_pdir)
5788 (has_libpthread): Update.
5789 * linespec.c (iterate_over_all_matching_symtabs)
5790 (search_minsyms_for_name): Update.
5791 * jit.c (jit_find_objf_with_entry_addr): Update.
5792 * hppa-tdep.c (find_unwind_entry)
5793 (hppa_lookup_stub_minimal_symbol): Update.
5794 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
5796 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
5797 (elf_gnu_ifunc_resolve_by_got): Update.
5798 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
5799 * dwarf-index-write.c (save_gdb_index_command): Update.
5800 * cp-support.c (add_symbol_overload_list_qualified): Update.
5801 * breakpoint.c (create_overlay_event_breakpoint)
5802 (create_longjmp_master_breakpoint)
5803 (create_std_terminate_master_breakpoint)
5804 (create_exception_master_breakpoint): Update.
5805 * blockframe.c (find_pc_partial_function): Update.
5806 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
5807 (ada_collect_symbol_completion_matches)
5808 (ada_add_global_exceptions): Update.
5810 2019-01-17 Tom Tromey <tom@tromey.com>
5812 * solib-target.c (lm_info_target_p): Remove typedef. Don't
5814 (solib_target_parse_libraries): Change return type.
5815 (library_list_start_segment, library_list_start_section)
5816 (library_list_end_library, library_list_start_library); Update.
5817 (solib_target_free_library_list): Remove.
5818 (solib_target_parse_libraries): Remove cleanup. Change return
5820 (solib_target_current_sos): Update.
5822 2019-01-17 Tom Tromey <tromey@bapiya>
5824 * valprint.c: Replace "the the" with "the".
5825 * symtab.c: Replace "the the" with "the".
5826 * solib.c: Replace "the the" with "the".
5827 * solib-dsbt.c: Replace "the the" with "the".
5828 * linespec.c: Replace "the the" with "the".
5829 * dwarf2loc.h: Replace "the the" with "the".
5830 * amd64-windows-tdep.c: Replace "the the" with "the".
5831 * aarch64-tdep.c: Replace "the the" with "the".
5833 2019-01-16 Keith Seitz <keiths@redhat.com>
5836 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
5837 <builder>: Rename to ..
5838 <m_builder>: ... this and make private.
5839 (dwarf2_cu::get_builder): New method. Change all users of
5840 `builder' to use this method.
5841 (dwarf2_start_symtab): Move to ...
5842 (dwarf2_cu::start_symtab): ... here. Update all callers
5843 (setup_type_unit_groups): Move to ...
5844 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
5846 (dwarf2_cu::reset_builder): New method.
5847 (process_full_compunit, process_full_type_unit): Use
5848 dwarf2_cu::reset_builder.
5849 (follow_die_offset): Record the ancestor CU if it is different
5850 from the followed DIE's CU.
5851 (follow_die_sig_1): Likewise.
5853 2019-01-15 Tom Tromey <tom@tromey.com>
5855 * remote.c (class remote_state) <buf>: Now a char_vector.
5857 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
5859 (remote_target::getpkt_or_notif_sane_1)
5860 (remote_target::getpkt_sane)
5861 (remote_target::getpkt_or_notif_sane): Likewise.
5862 (class remote_target) <putpkt>: New overload.
5863 (remote_target::read_frame): Change type of "buf_p". Remove
5865 (packet_ok): New overload.
5866 (packet_check_result): New overload.
5869 2019-01-14 Tom Tromey <tom@tromey.com>
5871 * remote-notif.c (handle_notification, remote_notif_ack)
5872 (remote_notif_parse): Make "buf" const.
5873 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
5875 (remote_notif_parse, remote_notif_ack, handle_notification):
5877 * remote.c (remote_notif_stop_parse): Make "buf" const.
5878 (remote_target::remote_parse_stop_reply): Make "buf" const.
5879 (remote_notif_stop_ack): Make "buf" const.
5881 2019-01-14 Tom Tromey <tom@tromey.com>
5883 * remote.c (remote_console_output): Make parameter const.
5885 2019-01-14 Tom Tromey <tom@tromey.com>
5887 * target-debug.h (target_debug_print_signals): Constify.
5888 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
5889 * procfs.c (procfs_target::pass_signals): Update.
5890 * linux-nat.c (linux_nat_target::pass_signals): Update.
5891 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
5892 * target-delegates.c: Rebuild.
5893 * remote.c (remote_target::program_signals): Update.
5894 (remote_target::pass_signals): Update.
5895 * target.c (target_pass_signals): Constify argument.
5896 (target_program_signals): Likewise.
5897 * target.h (struct target_ops) <pass_signals, program_signals>:
5899 (target_pass_signals, target_program_signals): Constify argument.
5901 2019-01-14 Tom Tromey <tom@tromey.com>
5904 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
5906 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5908 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
5910 * rs6000-tdep.c: Include reggroups.h.
5911 (IS_V_ALIAS_PSEUDOREG): Define.
5912 (rs6000_register_name): Return names for the "vX" aliases.
5913 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
5914 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
5915 aliases. Call default_register_reggroup_p for all other
5917 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
5919 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
5920 Handle "vX" aliases.
5921 (v_alias_pseudo_register_collect): New function.
5922 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
5923 (rs6000_gdbarch_init): Initialize "vX" aliases as
5924 pseudo-registers. Restore registration of
5925 rs6000_pseudo_register_reggroup_p with
5926 set_tdesc_pseudo_register_reggroup_p.
5928 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
5930 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
5931 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
5932 set_gdbarch_num_pseudo_regs.
5934 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5936 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
5937 Remove arg prefixname, add do_set and do_show.
5938 Add member functions set_list and show_list.
5939 * cli/cli-style.c (class cli_style_option): Update accordingly.
5940 (style_set_list): Move to file scope.
5941 (style_show_list): Likewise.
5942 (set_style): Call help_list.
5943 (show_style): Call cmd_show_list.
5944 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
5945 Update to use the new macro.
5947 2019-10-12 Joel Brobecker <brobecker@adacore.com>
5949 * ada-lang.c (_initialize_ada_language): Expand the help text
5950 for the "catch exception" command.
5952 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5954 * symtab.c (matching_obj_sections): Initialize obj,
5955 declare it closer to its usage.
5957 2019-01-10 Tom Tromey <tom@tromey.com>
5959 * thread-iter.h (inf_threads_iterator): Use next_iterator.
5960 (basic_inf_threads_range): Remove.
5961 (inf_threads_range, inf_non_exited_threads_range)
5962 (safe_inf_threads_range): Use next_adapter.
5964 2019-01-10 Keith Seitz <keiths@redhat.com>
5968 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
5969 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
5971 2019-01-10 Keith Seitz <keiths@redhat.com>
5975 * dictionary.c (pending_to_vector): Remove.
5976 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
5977 Remove _1 suffix, replacing functions of the same name. Update
5979 (dict_create_hashed, dict_create_hashed_expandable)
5980 (dict_create_linear, dict_create_linear_expandable, dict_free)
5981 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
5982 Make functions static.
5984 2019-01-10 Keith Seitz <keiths@redhat.com>
5988 * dictionary.h (struct dictionary): Replace declaration with
5990 (dict_create_hashed, dict_create_hashed_expandable)
5991 (dict_create_linear, dict_create_linear_expandable)
5992 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
5993 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
5994 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
5995 taking multidictionary argument.
5996 [ALL_DICT_SYMBOLS]: Update for multidictionary.
5997 * block.h (struct block) <dict>: Change to multidictionary
5998 and rename `multidict'.
5999 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
6000 symmisc.c: Update all dictionary references to multidictionary.
6002 2019-01-10 Keith Seitz <keiths@redhat.com>
6006 * dictionary.c: Include unordered_map.
6007 (pending_to_vector): New function.
6008 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6009 Rewrite the non-"_1" functions to take vector instead
6011 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
6012 "new" _1 versions of the same name.
6013 (multidictionary): Define.
6014 (std::hash<enum language): New definition.
6015 (collate_pending_symbols_by_language, mdict_create_hashed)
6016 (mdict_create_hashed_expandable, mdict_create_linear)
6017 (mdict_create_linear_expandable, mdict_free)
6018 (find_language_dictionary, create_new_language_dictionary)
6019 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
6020 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
6021 (mdict_size, mdict_empty): New functions.
6022 * dictionary.h (mdict_iterator): Define.
6024 2019-01-10 Pedro Alves <palves@redhat.com>
6026 * breakpoint.c (read_uploaded_action)
6027 (create_tracepoint_from_upload): Adjust to use
6028 gdb::unique_xmalloc_ptr.
6029 * ctf.c (ctf_write_uploaded_tp):
6030 (SET_ARRAY_FIELD): Use emplace_back.
6031 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
6032 * tracefile-tfile.c (tfile_write_uploaded_tp):
6033 * tracepoint.c (parse_tracepoint_definition): Adjust to use
6034 gdb::unique_xmalloc_ptr.
6035 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
6036 at_string, cond_string, cmd_strings>: Replace char pointers
6037 with gdb::unique_xmalloc_ptr.
6039 2019-01-10 Pedro Alves <palves@redhat.com>
6041 * solib-target.c (library_list_start_library): Don't xstrdup name.
6043 2019-01-10 Pedro Alves <palves@redhat.com>
6045 * mdebugread.c (parse_partial_symbols): Use
6046 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
6048 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6050 * linux-fork.c (scoped_switch_fork_info)
6051 <~scoped_switch_fork_info>: Fix incorrect variable name.
6053 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6055 * linux-fork.c (scoped_switch_fork_info)
6056 <scoped_switch_fork_info>: Make explicit.
6057 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
6059 2019-01-10 Tom Tromey <tom@tromey.com>
6061 * objfiles.h (objfile::reset_psymtabs): Update.
6062 * objfiles.c (objfile::objfile): Update.
6063 * psymtab.h (psymtab_storage::obstack): Update.
6064 (psymtab_storage::m_obstack): Use gdb::optional.
6065 (class psymtab_storage): Update comment. Remove objfile
6067 * psymtab.c (psymtab_storage::psymtab_storage): Update.
6069 2019-01-10 Tom Tromey <tom@tromey.com>
6071 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
6072 <free_psymtabs>: Now private.
6073 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
6074 (allocate_psymtab): Use new method.
6076 2019-01-10 Tom Tromey <tom@tromey.com>
6078 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
6079 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
6080 * mdebugread.c (parse_partial_symbols): Use
6081 allocate_dependencies.
6082 * dwarf2read.c (dwarf2_create_include_psymtab): Use
6083 allocate_dependencies.
6084 (process_psymtab_comp_unit_reader)
6085 (build_type_psymtab_dependencies): Likewise.
6086 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
6088 2019-01-10 Tom Tromey <tom@tromey.com>
6090 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
6091 PSYMBOL_SET_LANGUAGE.
6092 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
6094 2019-01-10 Tom Tromey <tom@tromey.com>
6096 * psymtab.h (psymtab_storage::obstack): New method.
6097 <m_obstack>: Rename from obstack; now private.
6098 * psymtab.c (psymtab_storage): Update.
6099 * dwarf2read.c (create_addrmap_from_index)
6100 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
6103 2019-01-10 Tom Tromey <tom@tromey.com>
6105 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
6106 * objfiles.h (objfile::reset_psymtabs): New method.
6108 2019-01-10 Tom Tromey <tom@tromey.com>
6110 * symmisc.c (print_symbol_bcache_statistics): Update.
6111 (print_objfile_statistics): Update.
6112 * symfile.c (reread_symbols): Update.
6113 * psymtab.h (class psymtab_storage): New.
6114 * psymtab.c (psymtab_storage): New constructor.
6115 (~psymtab_storage): New destructor.
6116 (require_partial_symbols): Update.
6117 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
6118 (find_pc_sect_psymtab, find_pc_sect_psymbol)
6119 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
6120 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
6121 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
6122 (start_psymtab_common, end_psymtab_common)
6123 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
6124 (allocate_psymtab): Update.
6125 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
6127 (dump_psymtab_addrmap, maintenance_print_psymbols)
6128 (maintenance_check_psymtabs): Update.
6129 (class objfile_psymtabs): Move to objfiles.h.
6130 * psympriv.h (discard_psymtab): Now inline.
6131 (psymtab_discarder::psymtab_discarder): Update.
6132 (psymtab_discarder::~psymtab_discarder): Update.
6133 (ALL_OBJFILE_PSYMTABS): Rewrite.
6134 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
6135 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
6137 <partial_symtabs>: New field.
6138 (class objfile_psymtabs): Move from psymtab.h. Update.
6139 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
6141 (objfile::~objfile): Don't destroy psymbol_cache.
6142 * mdebugread.c (parse_partial_symbols): Update.
6143 * dwarf2read.c (create_addrmap_from_index)
6144 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6145 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
6146 (add_partial_subprogram, dwarf2_ranges_read): Update.
6147 * dwarf-index-write.c (write_address_map)
6148 (write_one_signatured_type, recursively_write_psymbols)
6149 (class debug_names, class debug_names, write_psymtabs_to_index):
6152 2019-01-10 Tom Tromey <tom@tromey.com>
6154 * symtab.h (SYMBOL_SET_NAMES): Update.
6155 (symbol_set_names): Update.
6156 (MSYMBOL_SET_NAMES): Update.
6157 * symtab.c (symbol_set_names): Change argument to be an
6158 objfile_per_bfd_storage.
6159 * psymtab.c (add_psymbol_to_bcache): Update.
6160 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
6162 2019-01-10 Tom Tromey <tom@tromey.com>
6164 * symtab.c (create_demangled_names_hash): Change argument to be an
6165 objfile_per_bfd_storage.
6166 (symbol_set_names): Update.
6168 2019-01-10 Tom Tromey <tom@tromey.com>
6170 * xcoffread.c (xcoff_initial_scan): Unconditionally call
6172 * psymtab.c (init_psymbol_list): Do nothing if already called.
6173 * psympriv.h (init_psymbol_list): Add comment.
6174 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
6176 * dbxread.c (dbx_symfile_read): Unconditionally call
6179 2019-01-10 Tom Tromey <tom@tromey.com>
6181 * xcoffread.c (scan_xcoff_symtab): Update.
6182 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
6184 * mdebugread.c (parse_partial_symbols)
6185 (handle_psymbol_enumerators): Update.
6186 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
6187 * dbxread.c (read_dbx_symtab): Update.
6188 * psympriv.h (psymbol_placement): New enum.
6189 (add_psymbol_to_list): Update.
6191 2019-01-10 Tom Tromey <tom@tromey.com>
6193 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
6194 static_psymbols parameters.
6195 (scan_xcoff_symtab): Update.
6196 * psymtab.c (start_psymtab_common): Remove global_psymbols and
6197 static_psymbols parameters.
6198 * psympriv.h (start_psymtab_common): Update.
6199 * mdebugread.c (parse_partial_symbols): Update.
6200 * dwarf2read.c (create_partial_symtab): Update.
6201 * dbxread.c (read_dbx_symtab): Update.
6202 (start_psymtab): Remove global_psymbols and static_psymbols
6205 2019-01-10 Tom Tromey <tom@tromey.com>
6207 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
6208 * psymtab.c (allocate_psymtab): Add comment.
6209 * psympriv.h (allocate_psymtab): Add comment.
6210 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
6212 * dbxread.c (dbx_end_psymtab): Remove some initializations.
6214 2019-01-10 Tom Tromey <tom@tromey.com>
6216 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6218 * mipsread.c: Include mdebugread.h.
6219 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6221 * elfread.c: Include mdebugread.h.
6223 2019-01-09 Tom Tromey <tom@tromey.com>
6225 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
6226 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
6227 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
6228 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
6229 (psym_lookup_symbol, psym_find_last_source_symtab)
6230 (psym_forget_cached_source_info, psym_print_stats)
6231 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
6232 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
6233 (psym_map_matching_symbols, psym_expand_symtabs_matching)
6234 (psym_find_compunit_symtab_by_address)
6235 (maintenance_print_psymbols, maintenance_info_psymtabs)
6236 (maintenance_check_psymtabs): Use ranged for.
6237 * psymtab.h (class objfile_psymtabs): New.
6238 (require_partial_symbols): Return objfile_psymtabs.
6239 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
6241 2019-01-09 Tom Tromey <tom@tromey.com>
6243 * symfile.c (overlay_invalidate_all, find_pc_overlay)
6244 (find_pc_mapped_section, list_overlays_command)
6245 (map_overlay_command, unmap_overlay_command)
6246 (simple_overlay_update): Use all_objfiles.
6247 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
6248 * printcmd.c (info_symbol_command): Use all_objfiles.
6249 * objfiles.h (ALL_OBJSECTIONS): Remove.
6250 * maint.c (maintenance_translate_address): Use all_objfiles.
6251 * gcore.c (gcore_create_callback): Use all_objfiles.
6252 (objfile_find_memory_regions): Likewise.
6254 2019-01-09 Tom Tromey <tom@tromey.com>
6256 * symtab.c (find_line_symtab, info_sources_command)
6257 (make_source_files_completion_list): Use objfile_compunits.
6258 * source.c (select_source_symtab): Use objfile_compunits.
6259 * objfiles.h (struct objfile): Update comment.
6260 (ALL_OBJFILES): Remove.
6261 (ALL_FILETABS): Remove.
6262 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
6265 2019-01-09 Tom Tromey <tom@tromey.com>
6267 * symmisc.c (print_objfile_statistics, dump_objfile)
6268 (maintenance_print_symbols): Use compunit_filetabs.
6269 * source.c (forget_cached_source_info_for_objfile): Use
6271 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
6272 (ALL_FILETABS): Use compunit_filetabs.
6273 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
6274 * coffread.c (coff_symtab_read): Use compunit_filetabs.
6276 2019-01-09 Tom Tromey <tom@tromey.com>
6278 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
6279 (compunit_filetabs): New.
6280 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
6282 (info_sources_command, make_source_files_completion_list): Remove
6284 * symmisc.c (print_objfile_statistics, dump_objfile)
6285 (maintenance_print_symbols): Remove declaration.
6286 (maintenance_info_symtabs): Use compunit_filetabs.
6287 (maintenance_info_line_tables): Likewise.
6288 * source.c (select_source_symtab): Change local variable name.
6289 (forget_cached_source_info_for_objfile): Remove declaration.
6290 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
6291 * objfiles.c (objfile_relocate1): Remove declaration.
6292 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6294 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
6295 * coffread.c (coff_symtab_read): Remove declaration.
6296 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6299 2019-01-09 Tom Tromey <tom@tromey.com>
6301 * symtab.c (lookup_objfile_from_block)
6302 (find_pc_sect_compunit_symtab, search_symbols)
6303 (default_collect_symbol_completion_matches_break_on): Use
6305 * objfiles.h (ALL_COMPUNITS): Remove.
6306 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
6307 * cp-support.c (add_symbol_overload_list_qualified): Use
6309 * ada-lang.c (ada_collect_symbol_completion_matches)
6310 (ada_add_global_exceptions): Use objfile_compunits.
6312 2019-01-09 Tom Tromey <tom@tromey.com>
6314 * source.c (select_source_symtab)
6315 (forget_cached_source_info_for_objfile): Remove declaration.
6316 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6318 * maint.c (count_symtabs_and_blocks): Remove declaration.
6319 * cp-support.c (add_symbol_overload_list_qualified): Remove
6321 * coffread.c (coff_symtab_read): Remove declaration.
6322 * symtab.c (lookup_symbol_in_objfile_symtabs)
6323 (basic_lookup_transparent_type_1): Use objfile_compunits.
6324 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
6325 (info_sources_command, search_symbols)
6326 (default_collect_symbol_completion_matches_break_on)
6327 (make_source_files_completion_list): Remove declaration.
6328 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
6329 (ada_collect_symbol_completion_matches)
6330 (ada_add_global_exceptions): Remove declaration.
6331 * linespec.c (iterate_over_all_matching_symtabs): Use
6333 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
6334 (class objfile_compunits): New.
6335 (ALL_COMPUNITS): Use objfile_compunits.
6336 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
6337 (maintenance_check_symtabs, maintenance_info_line_tables): Use
6339 * objfiles.c (objfile_relocate1): Use objfile_compunits.
6341 2019-01-09 Tom Tromey <tom@tromey.com>
6343 * symtab.c (search_symbols)
6344 (default_collect_symbol_completion_matches_break_on): Use
6346 * ada-lang.c (ada_lookup_simple_minsym)
6347 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
6348 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
6349 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
6351 * coffread.c (coff_symfile_read): Use objfile_msymbols.
6352 * symmisc.c (dump_msymbols): Use objfile_msymbols.
6353 * objc-lang.c (find_methods): Use objfile_msymbols.
6354 (info_selectors_command, info_classes_command): Likewise.
6355 * stabsread.c (scan_file_globals): Use objfile_msymbols.
6356 * objfiles.h (class objfile_msymbols): New.
6357 (ALL_OBJFILE_MSYMBOLS): Remove.
6358 (ALL_MSYMBOLS): Remove.
6360 2019-01-09 Tom Tromey <tom@tromey.com>
6362 * common/next-iterator.h (next_adapter): Add Iterator template
6364 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
6365 (class all_objfiles_safe): New.
6366 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
6367 * objfiles.c (put_objfile_before): Update comment.
6368 (add_separate_debug_objfile): Likewise.
6369 (free_all_objfiles): Use all_objfiles_safe.
6370 (objfile_purge_solibs): Likewise.
6372 2019-01-09 Tom Tromey <tom@tromey.com>
6374 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6375 (expand_symtab_containing_pc, lookup_static_symbol)
6376 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
6377 (find_symbol_at_address, find_line_symtab, find_main_name): Use
6379 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
6380 * breakpoint.c (create_overlay_event_breakpoint)
6381 (create_longjmp_master_breakpoint)
6382 (create_std_terminate_master_breakpoint)
6383 (create_exception_master_breakpoint): Use all_objfiles.
6384 * linux-thread-db.c (try_thread_db_load_from_pdir)
6385 (has_libpthread): Use all_objfiles.
6386 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
6387 * linespec.c (iterate_over_all_matching_symtabs)
6388 (search_minsyms_for_name): Use all_objfiles.
6389 * maint.c (maintenance_info_sections): Use all_objfiles.
6390 * main.c (captured_main_1): Use all_objfiles.
6391 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
6392 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
6393 * guile/scm-pretty-print.c
6394 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
6395 * solib-spu.c (append_ocl_sos): Use all_objfiles.
6396 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
6397 (maintenance_print_msymbols): Use all_objfiles.
6398 * source.c (select_source_symtab): Use all_objfiles.
6399 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
6400 * symfile.c (remove_symbol_file_command)
6401 (expand_symtabs_matching, map_symbol_filenames): Use
6403 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
6405 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
6406 * objc-lang.c (find_methods): Use all_objfiles.
6407 * objfiles.c (have_partial_symbols, have_full_symbols)
6408 (have_minimal_symbols, qsort_cmp)
6409 (default_iterate_over_objfiles_in_search_order): Use
6411 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
6412 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
6413 (maintenance_check_psymtabs): Use all_objfiles.
6414 (ALL_PSYMTABS): Remove.
6415 * compile/compile-object-run.c (do_module_cleanup): Use
6417 * blockframe.c (find_pc_partial_function): Use all_objfiles.
6418 * cp-support.c (add_symbol_overload_list_qualified): Use
6420 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6422 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
6423 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
6425 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6426 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
6427 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6429 * solib.c (solib_read_symbols): Use all_objfiles
6431 2019-01-09 Tom Tromey <tom@tromey.com>
6433 * probe.c (parse_probes_in_pspace): Use all_objfiles.
6434 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
6436 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
6437 * symmisc.c (print_symbol_bcache_statistics)
6438 (print_objfile_statistics, maintenance_print_objfiles)
6439 (maintenance_info_symtabs, maintenance_check_symtabs)
6440 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
6442 * source.c (forget_cached_source_info): Use all_objfiles.
6443 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
6444 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6445 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
6446 * objfiles.c (update_section_map): Use all_objfiles.
6447 (shared_objfile_contains_address_p): Likewise.
6448 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
6449 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
6451 2019-01-09 Tom Tromey <tom@tromey.com>
6453 * common/next-iterator.h: New file.
6454 * objfiles.h (class all_objfiles): New.
6455 (struct objfile_iterator): New.
6457 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6459 * NEWS: Move the description of the changed "frame", "select-frame",
6460 and "info frame" commands to the Changed commands section.
6462 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
6464 * gdbtypes.c (check_stub_method_group): Remove handling of old
6466 * linespec.c (find_methods): Likewise.
6467 * stabsread.c (read_member_functions): Likewise.
6468 * valops.c (search_struct_method): Likewise.
6469 (value_struct_elt_for_reference): Likewise.
6470 * NEWS: Mention this change.
6472 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6474 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
6476 * source.c (print_source_lines_base): Update line number check.
6477 (print_source_lines): New function.
6478 (source_lines_range::source_lines_range): New function.
6479 * source.h (class source_lines_range): New class.
6480 (print_source_lines): New declaration.
6482 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6484 * linespec.c (linespec_state_destructor): Free self->canonical_names.
6486 2019-01-08 Tom Tromey <tom@tromey.com>
6487 Simon Marchi <simon.marchi@ericsson.com>
6490 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
6491 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
6492 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6493 * f-exp.y (DOLLAR_VARIABLE): Likewise.
6494 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
6495 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6497 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6499 * source.c (select_source_symtab): Move header comment to
6500 declaration in source.h.
6501 (forget_cached_source_info_for_objfile): Likewise.
6502 (forget_cached_source_info): Likewise.
6503 (identify_source_line): Likewise.
6504 * source.h (identify_source_line): Move declaration from symtab.h
6505 and add comment from source.c
6506 (print_source_lines): Likewise.
6507 (forget_cached_source_info_for_objfile): Likewise.
6508 (forget_cached_source_info): Likewise.
6509 (select_source_symtab): Likewise.
6510 (enum print_source_lines_flag): Move definition from symtab.h.
6511 * symtab.h (identify_source_line): Move declaration to source.h.
6512 (print_source_lines): Likewise.
6513 (forget_cached_source_info_for_objfile): Likewise.
6514 (forget_cached_source_info): Likewise.
6515 (select_source_symtab): Likewise.
6516 (enum print_source_lines_flag): Move definition to source.h.
6517 * tui/tui-hooks.c: Add 'source.h' include.
6519 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6521 * source.c (print_source_lines_base): Handle requests to print
6522 reverse line number sequences, and guard against empty lines
6525 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6527 * source.c (print_source_lines_base): Fix skip of '\r' if next
6530 2019-01-06 Tom Tromey <tom@tromey.com>
6532 * c-exp.y (struct c_parse_state) <macro_original_text,
6533 expansion_obstack>: New member.
6534 (macro_original_text, expansion_obstack): Remove globals.
6535 (scan_macro_expansion, scanning_macro_expansion)
6536 (finished_macro_expansion): Update.
6537 (scan_macro_cleanup): Remove.
6538 (yylex, c_parse): Update.
6540 2019-01-06 Tom Tromey <tom@tromey.com>
6542 * c-exp.y (struct c_parse_state) <strings>: New member.
6543 (operator_stoken): Update.
6545 2019-01-06 Tom Tromey <tom@tromey.com>
6547 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
6548 (union type_stack_elt) <typelist_val>: Now a pointer to
6550 (type_stack_cleanup): Don't declare.
6551 (push_typelist): Update.
6552 * parse.c (pop_typelist): Return a std::vector.
6553 (push_typelist): Take a std::vector.
6554 (follow_types): Update. Do not free args.
6555 (type_stack_cleanup): Remove.
6556 * c-exp.y (struct c_parse_state): New.
6557 (cpstate): New global.
6558 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
6559 (nonempty_typelist): Update.
6560 (func_mod): Create a new vector.
6561 (c_parse): Create a c_parse_state.
6562 (check_parameter_typelist): Do not delete params.
6563 (function_method): Update. Do not delete type_list.
6565 2019-01-06 Tom Tromey <tom@tromey.com>
6568 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
6570 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
6571 (print_return_value): Likewise.
6573 2019-01-05 Tom Tromey <tom@tromey.com>
6575 * contrib/cleanup_check.py: Remove.
6576 * contrib/gcc-with-excheck: Remove.
6577 * contrib/exsummary.py: Remove.
6578 * contrib/excheck.py: Remove.
6580 2019-01-05 Joel Brobecker <brobecker@adacore.com>
6582 * thread.c (delete_thread_1): Add gdb_assert that THR is not
6583 NULL. Initialize tpprev to NULL instead of assigning it
6584 to NULL on the next statement.
6585 * windows-nat.c (windows_delete_thread): Remove check for
6586 main_thread_id before printing thread exit notifications.
6587 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
6588 Remove thread ID check against main_thread_id.
6589 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
6590 windows_delete_thread.
6591 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
6593 2019-01-04 Tom Tromey <tom@tromey.com>
6595 * compile/compile.c (_initialize_compile): Use upper case for
6596 metasyntactic variables.
6597 * symmisc.c (_initialize_symmisc): Use upper case for
6598 metasyntactic variables.
6599 * psymtab.c (_initialize_psymtab): Use upper case for
6600 metasyntactic variables.
6601 * demangle.c (demangle_command): Use upper case for metasyntactic
6603 (_initialize_demangler): Likewise.
6604 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
6607 2019-01-03 Tom Tromey <tom@tromey.com>
6609 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
6611 2019-01-03 Tom Tromey <tom@tromey.com>
6613 * python/py-symtab.c (salpy_str): Update.
6614 (struct salpy_sal_object) <symtab>: Now a PyObject.
6615 (salpy_dealloc): Update.
6616 (del_objfile_sal): Use gdbpy_ref.
6618 2019-01-03 Tom Tromey <tom@tromey.com>
6620 * python/py-type.c (convert_field): Use new_reference. Return
6622 (make_fielditem): Return gdbpy_ref.
6623 (typy_fields): Update.
6624 (typy_getitem): Update.
6625 (field_name): Return gdbpy_ref. Use new_reference.
6626 (typy_iterator_iternext): Update.
6628 2019-01-03 Tom Tromey <tom@tromey.com>
6630 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
6632 2019-01-03 Tom Tromey <tom@tromey.com>
6634 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
6635 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
6636 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
6637 (pspy_set_frame_filters, pspy_set_frame_unwinders)
6638 (pspy_set_type_printers): Likewise.
6639 * python/py-function.c (fnpy_init): Use gdbpy_ref.
6640 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
6641 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
6642 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
6643 (objfpy_set_type_printers): Likewise.
6645 2019-01-03 Tom Tromey <tom@tromey.com>
6647 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
6648 (gdbpy_print_stack): Use gdbpy_err_fetch.
6649 * python/python-internal.h (class gdbpy_err_fetch): New class.
6650 (class gdbpy_enter) <m_error_type, m_error_value,
6651 m_error_traceback>: Remove.
6652 <m_error>: New member.
6653 (gdbpy_exception_to_string): Don't declare.
6654 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
6655 * python/py-value.c (convert_value_from_python): Use
6657 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
6658 gdbpy_exception_to_string.
6659 (gdbpy_handle_exception): Use gdbpy_err_fetch.
6660 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
6663 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6665 * linux-nat.c (delete_lwp_cleanup): Delete.
6666 (struct lwp_deleter): New struct.
6667 (lwp_info_up): New typedef.
6668 (linux_nat_target::follow_fork): Delete cleanup, and make use of
6671 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6673 * linux-fork.c (class scoped_switch_fork_info): New class.
6674 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
6676 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6678 * valops.c (find_overload_match): Remove use of null_cleanup, and
6679 calls to do_cleanups.
6681 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6683 * compile/compile-cplus-types.c
6684 (compile_cplus_instance::decl_name): Handle changes to
6686 * cp-support.c (cp_func_name): Update header comment, update
6688 * cp-support.h (cp_func_name): Update return type in declaration.
6689 * valops.c (find_overload_match): Move temp_func local to top
6690 level of function and change its type. Use temp_func to hold and
6691 delete temporary string obtained from cp_func_name.
6693 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6695 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
6696 gdb::char_vector, remove cleanup, and update uses of `msg`.
6698 2019-01-03 Jim Wilson <jimw@sifive.com>
6700 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
6702 2019-01-02 Tom Tromey <tom@tromey.com>
6704 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
6705 (tdesc_parse_xml): Remove cleanups.
6706 * target-descriptions.h (make_cleanup_free_target_description):
6708 (target_desc_deleter): New struct.
6709 (target_desc_up): New typedef.
6710 * target-descriptions.c (target_desc_deleter::operator()): Rename
6711 from free_target_description.
6712 (make_cleanup_free_target_description): Remove.
6714 2019-01-02 Tom Tromey <tom@tromey.com>
6716 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
6717 constructor, destructor.
6718 (linespec_parser): Remove typedef.
6719 (~linespec_parser): Rename from linespec_parser_delete.
6720 (linespec_lex_to_end, linespec_complete_label)
6721 (linespec_complete): Update.
6722 (decode_line_full): Remove cleanups.
6723 (decode_line_1): Update.
6725 2019-01-02 Tom Tromey <tom@tromey.com>
6727 * python/python-internal.h (inferior_to_inferior_object): Change
6729 * python/py-exitedevent.c (create_exited_event_object): Update.
6730 * python/py-inferior.c (inferior_to_inferior_object): Return
6732 (python_new_inferior, python_inferior_deleted)
6733 (thread_to_thread_object, delete_thread_object)
6734 (build_inferior_list, gdbpy_selected_inferior): Update.
6735 * python/py-infthread.c (create_thread_object): Update. Also fail
6736 if inferior_to_inferior_object fails.
6738 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
6740 * inferior.h (class inferior) <displaced_step_state>: New field.
6741 * infrun.h (struct displaced_step_state): Move here from
6742 infrun.c. Initialize fields, add constructor.
6743 <inf>: Remove field.
6744 <reset>: New method.
6745 * infrun.c (struct displaced_step_inferior_state): Move to
6747 (displaced_step_inferior_states): Remove.
6748 (get_displaced_stepping_state): Adust.
6749 (displaced_step_in_progress_any_inferior): Adjust.
6750 (displaced_step_in_progress_thread): Adjust.
6751 (displaced_step_in_progress): Adjust.
6752 (add_displaced_stepping_state): Remove.
6753 (get_displaced_step_closure_by_addr): Adjust.
6754 (remove_displaced_stepping_state): Remove.
6755 (infrun_inferior_exit): Call displaced_step_state.reset.
6756 (use_displaced_stepping): Don't check for NULL.
6757 (displaced_step_prepare_throw): Call
6758 get_displaced_stepping_state.
6759 (displaced_step_fixup): Don't check for NULL.
6760 (prepare_for_detach): Don't check for NULL.
6762 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6764 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
6765 in case of call that did not complete.
6767 2019-01-02 Andrey Utkin <autkin@undo.io>
6769 * symfile.c (find_separate_debug_file): Fix search of debug files for
6772 2019-01-02 Tom Tromey <tom@tromey.com>
6774 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
6776 * python/py-frame.c (frapy_older): Remove cast.
6777 (frapy_newer): Likewise.
6778 * python/py-breakpoint.c (local_setattro): Remove cast.
6779 * python/py-arch.c (archpy_name): Remove local variable.
6780 * python/py-type.c (gdbpy_lookup_type): Remove cast.
6782 2019-01-02 Joel Brobecker <brobecker@adacore.com>
6784 * unittests/basic_string_view/element_access/char/empty.cc:
6785 Fix year range in copyright header.
6787 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
6789 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
6791 <operator==>: Update with for removed field.
6793 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
6794 <isa_features>: ...this.
6795 <abi_features>: New field.
6796 (riscv_isa_flen): Update comment.
6797 (riscv_abi_xlen): New declaration.
6798 (riscv_abi_flen): New declaration.
6799 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
6801 (riscv_abi_xlen): New function.
6802 (riscv_isa_flen): Update to get answer from isa_features.
6803 (riscv_abi_flen): New function.
6804 (riscv_has_fp_abi): Update to get answer from abi_features.
6805 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
6807 (riscv_call_info) <xlen, flen>: Update comment.
6808 (riscv_call_arg_struct): Remove invalid assertions
6809 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
6811 (riscv_gdbarch_init): Gather isa features and abi features
6812 separately, ensure both match on the gdbarch when reusing an old
6813 gdbarch. Relax an error check to allow 32-bit abi float to run on
6814 a target with 64-bit float hardware.
6816 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6818 * source.c (search_command_helper): Stop reverse search
6819 when line 1 has been searched.
6821 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6823 * record-full.c (record_full_base_target::close): Rewrite
6824 record_full_core_buf_list free logic.
6826 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6828 * break-catch-syscall.c (print_one_catch_syscall): xfree
6831 2019-01-01 Joel Brobecker <brobecker@adacore.com>
6833 * top.c (print_gdb_version): Update Copyright year in version
6836 2019-01-01 Joel Brobecker <brobecker@adacore.com>
6838 Update copyright year range in all GDB files.
6840 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
6842 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
6844 For older changes see ChangeLog-2018.
6850 version-control: never