1 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
3 * mi/mi-cmds.h (mi_cmd_complete): New function.
4 * mi/mi-main.c (mi_cmd_complete): Likewise.
5 * mi/mi-cmds.c: Define new MI command -complete.
6 * NEWS: Mention new -complete command.
8 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
10 * completer.h (complete): New function.
11 * completer.c (complete): Likewise.
12 * cli/cli-cmds.c: (complete_command): Update to use new complete()
13 function defined in completer.h.
15 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
17 * MAINTAINERS (Write After Approval): Add myself.
19 2019-05-17 Tom de Vries <tdevries@suse.de>
22 * dwarf2read.c (struct cu_partial_die_info): New struct.
23 (find_partial_die): Return cu_partial_die_info.
24 (partial_die_parent_scope, guess_partial_die_structure_name)
25 (partial_die_info::fixup): Handle new return type of find_partial_die.
27 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
29 * stap-probe.c (stap_parse_register_operand): Make "regname" an
30 "std::string", simplifying the algorithm.
32 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
34 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
35 (stap_static_probe_ops::get_probes): Likewise.
37 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
39 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
41 (stap_parse_single_operand): Join checks for
42 "gdbarch_stap_parse_special_token_p" and
43 "gdbarch_stap_parse_special_token" in the same "if" statement.
44 Invert check when verifying for operation on register
47 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
49 * stap-probe.c (stap_get_opcode): Update comment.
50 (stap_get_expected_argument_type): Likewise.
51 (handle_stap_probe): Likewise.
53 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
55 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
56 return type to 'bool'. Adjust comment. Use 'bool' when
58 (i386_stap_parse_special_token_three_arg_disp): Likewise.
59 * stap-probe.c (stap_parse_argument_1): Likewise.
60 (stap_is_operator): Likewise.
61 (stap_is_generic_prefix): Likewise.
62 (stap_is_register_prefix): Likewise.
63 (stap_is_register_indirection_prefix): Likewise.
64 (stap_is_integer_prefix): Likewise.
65 (stap_generic_check_suffix): Likewise.
66 (stap_check_integer_suffix): Likewise.
67 (stap_check_register_suffix): Likewise.
68 (stap_check_register_indirection_suffix): Likewise.
69 (stap_parse_register_operand): Likewise.
70 (stap_parse_single_operand): Likewise.
71 (stap_parse_argument_1): Likewise.
72 (stap_probe::get_argument_count): Likewise.
73 (stap_is_operator): Likewise.
75 2019-05-16 Tom Tromey <tromey@adacore.com>
77 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
80 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
82 * linux-thread-db.c (try_thread_db_load_1): Change return type
84 (try_thread_db_load): Likewise.
85 (try_thread_db_load_from_pdir_1): Likewise.
86 (try_thread_db_load_from_pdir): Likewise.
87 (try_thread_db_load_from_sdir): Likewise.
88 (try_thread_db_load_from_dir): Likewise.
89 (thread_db_load_search): Likewise.
90 (has_libpthread): Likewise.
91 (thread_db_load): Likewise.
93 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
95 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
96 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
97 NULL, and complain/return if that's the case.
99 2019-05-15 John Darrington <john@darrington.wattle.id.au>
101 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
102 (advance, posn, abstract_read_memory): New functions.
103 [struct mem_read_abstraction]: New struct.
104 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
106 2019-05-14 Tom Tromey <tromey@adacore.com>
108 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
109 value is not lval_memory.
111 2019-05-14 Tom Tromey <tromey@adacore.com>
113 * solib.c (info_sharedlibrary_command): Style the file name.
115 2019-05-14 Alan Hayward <alan.hayward@arm.com>
117 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
118 (aarch64_vnv_type): Likewise.
119 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
120 * common/tdesc.c: Likewise.
121 * common/tdesc.h (enum tdesc_type_kind): Likewise.
122 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
123 * features/aarch64-fpu.xml: Add ieee half view.
124 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
125 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
126 * gdbtypes.h (struct builtin_type): Likewise.
127 (struct objfile_type): Likewise.
129 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
131 * language.c (language_sniff_from_mangled_name): Fix "langauge"
133 * location.h (string_to_event_location): Likewise.
135 2019-05-11 Joel Brobecker <brobecker@adacore.com>
139 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
141 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
142 New variable declaration.
143 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
145 (print_one_breakpoint): Use ui_out::test_flags and new global
146 variable to compute use_fixed_output.
147 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
149 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
150 (mi_multi_location_breakpoint_output_fixed): Remove.
151 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
153 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
154 fix_multi_location_breakpoint_output flag if version >= 3.
155 * ui-out.h (enum ui_out_flag)
156 <fix_multi_location_breakpoint_output>: New enumerator.
158 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
160 * contrib/cc-with-tweaks.sh: Validate dwz's work.
162 2019-05-10 Tom Tromey <tromey@adacore.com>
164 * ada-lang.c (catch_ada_completer): New function.
165 (_initialize_ada_language): Use it.
167 2019-05-10 Tom Tromey <tromey@adacore.com>
169 * thread.c (print_thread_info): Make "requested_threads" const.
170 * gdbthread.h (print_thread_info): Make "requested_threads"
172 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
173 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
175 2019-05-08 Tom Tromey <tom@tromey.com>
177 * gdbtypes.c (objfile_type_data): Change type.
178 (objfile_type, _initialize_gdbtypes): Update.
180 2019-05-08 Tom Tromey <tom@tromey.com>
182 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
183 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
184 (_initialize_dwarf2_frame): Update.
186 2019-05-08 Tom Tromey <tom@tromey.com>
188 * objc-lang.c (objc_objfile_data): Change type.
189 (find_methods): Update.
190 (_initialize_objc_lang): Remove.
192 2019-05-08 Tom Tromey <tom@tromey.com>
194 * stabsread.c (rs6000_builtin_type_data): Change type.
195 (rs6000_builtin_type, _initialize_stabsread): Update.
197 2019-05-08 Tom Tromey <tom@tromey.com>
199 * mips-tdep.c (mips_pdr_data): Remove.
200 (_initialize_mips_tdep): Update.
202 2019-05-08 Tom Tromey <tom@tromey.com>
204 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
205 (hppa_init_objfile_priv_data, read_unwind_info)
206 (find_unwind_entry, _initialize_hppa_tdep): Update.
208 2019-05-08 Tom Tromey <tom@tromey.com>
210 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
211 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
213 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
215 2019-05-08 Tom Tromey <tom@tromey.com>
217 * mdebugread.c (basic_type_data): Change type.
218 (basic_type, _initialize_mdebugread): Update.
220 2019-05-08 Tom Tromey <tom@tromey.com>
222 * common/gdb_unique_ptr.h (struct noop_deleter): New.
224 2019-05-08 Tom Tromey <tom@tromey.com>
226 * nto-tdep.c (nto_inferior_data_reg): Change type.
227 (nto_inferior_data): Update.
228 (nto_inferior_data_cleanup, nto_new_inferior_data)
229 (_initialize_nto_tdep): Remove.
230 * nto-tdep.h (struct nto_inferior_data): Add initializers.
232 2019-05-08 Tom Tromey <tom@tromey.com>
234 * ada-lang.c (struct ada_inferior_data): Add initializers.
235 (ada_inferior_data): Change type.
236 (ada_inferior_data_cleanup): Remove.
237 (get_ada_inferior_data, ada_inferior_exit)
238 (struct ada_pspace_data): Add initializers, destructor.
239 (ada_pspace_data_handle): Change type.
240 (get_ada_pspace_data): Update.
241 (ada_pspace_data_cleanup): Remove.
243 2019-05-08 Tom Tromey <tom@tromey.com>
245 * coffread.c (struct coff_symfile_info): Add initializers.
246 (coff_objfile_data_key): Move lower. Change type.
247 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
249 (coff_free_info): Remove.
251 2019-05-08 Tom Tromey <tom@tromey.com>
253 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
254 (fbsd_pspace_data_handle): Move lower. Change type.
255 (get_fbsd_pspace_data): Update.
256 (fbsd_pspace_data_cleanup): Remove.
257 (_initialize_fbsd_tdep): Update.
259 2019-05-08 Tom Tromey <tom@tromey.com>
261 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
262 (get_ada_tasks_pspace_data): Update.
263 (ada_tasks_pspace_data_cleanup): Remove.
264 (_initialize_tasks): Update.
265 (ada_tasks_inferior_data_handle): Change type.
266 (get_ada_tasks_inferior_data): Update.
267 (ada_tasks_inferior_data_cleanup): Remove.
268 (struct ada_tasks_pspace_data): Add initializers.
270 2019-05-08 Tom Tromey <tom@tromey.com>
272 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
273 * symfile-debug.c (debug_sym_get_probes): Change type.
274 * stap-probe.c (handle_stap_probe):
275 (stap_static_probe_ops::get_probes): Change type.
276 * probe.h (class static_probe_ops) <get_probes>: Change type.
277 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
278 (parse_probes_in_pspace): Update.
279 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
281 (any_static_probe_ops::get_probes): Change type.
282 * elfread.c (elfread_data): New typedef.
283 (probe_key): Change type.
284 (elf_get_probes): Likewise. Update.
285 (probe_key_free): Remove.
286 (_initialize_elfread): Update.
287 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
289 (dtrace_process_dof_probe, dtrace_process_dof)
290 (dtrace_static_probe_ops::get_probe): Change type.
292 2019-05-08 Tom Tromey <tom@tromey.com>
294 * xcoffread.c (struct xcoff_symfile_info): Rename from
295 coff_symfile_info. Add initializers.
296 (xcoff_objfile_data_key): Move lower. Change type.
297 (XCOFF_DATA): Rewrite.
298 (xcoff_free_info): Remove.
299 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
300 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
301 (xcoff_initial_scan): Update.
303 2019-05-08 Tom Tromey <tom@tromey.com>
305 * solib-svr4.c (struct svr4_info): Add initializers and
307 <probes_table>: Now an htab_up.
308 (solib_svr4_pspace_data): Change type.
309 (free_probes_table): Simplify.
310 (~svr4_info): Rename from svr4_pspace_data_cleanup.
311 (get_svr4_info, probes_table_htab_remove_objfile_probes)
312 (probes_table_remove_objfile_probes, register_solib_event_probe)
313 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
314 (_initialize_svr4_solib): Update.
316 2019-05-08 Tom Tromey <tom@tromey.com>
318 * remote.c (remote_pspace_data): Change type.
319 (remote_pspace_data_cleanup): Remove.
320 (get_remote_exec_file, set_pspace_remote_exec_file)
321 (_initialize_remote): Update.
323 2019-05-08 Tom Tromey <tom@tromey.com>
325 * breakpoint.c (breakpoint_objfile_key): Change type.
326 (get_breakpoint_objfile_data): Update.
327 (free_breakpoint_objfile_data): Remove.
328 (_initialize_breakpoint): Update.
330 2019-05-08 Tom Tromey <tom@tromey.com>
332 * linux-tdep.c (struct linux_info): Add initializers.
333 (linux_inferior_data): Move. Change type.
334 (invalidate_linux_cache_inf): Update.
335 (linux_inferior_data_cleanup): Remove.
336 (get_linux_inferior_data, _initialize_linux_tdep): Update.
338 2019-05-08 Tom Tromey <tom@tromey.com>
340 * auxv.c (auxv_inferior_data): Move. Change type.
341 (auxv_inferior_data_cleanup): Remove.
342 (invalidate_auxv_cache_inf): Rewrite.
343 (get_auxv_inferior_data, _initialize_auxv): Update.
345 2019-05-08 Tom Tromey <tom@tromey.com>
347 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
348 (symfile_debug_objfile_data_key): Change type.
349 (symfile_debug_installed, debug_qf_has_symbols)
350 (debug_qf_find_last_source_symtab)
351 (debug_qf_forget_cached_source_info)
352 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
353 (debug_qf_print_stats, debug_qf_dump)
354 (debug_qf_expand_symtabs_for_function)
355 (debug_qf_expand_all_symtabs)
356 (debug_qf_expand_symtabs_with_fullname)
357 (debug_qf_map_matching_symbols)
358 (debug_qf_expand_symtabs_matching)
359 (debug_qf_find_pc_sect_compunit_symtab)
360 (debug_qf_map_symbol_filenames)
361 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
362 (debug_sym_new_init, debug_sym_init, debug_sym_read)
363 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
364 (debug_sym_read_linetable, debug_sym_relocate): Update.
365 (symfile_debug_free_objfile): Remove.
366 (install_symfile_debug_logging, _initialize_symfile_debug):
369 2019-05-08 Tom Tromey <tom@tromey.com>
371 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
373 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
374 (get_dwarf2_per_objfile): Update.
375 (set_dwarf2_per_objfile): Remove.
376 (dwarf2_has_info, dwarf2_get_section_info): Update.
377 (dwarf2_free_objfile): Remove.
378 (_initialize_dwarf2_read): Update.
380 2019-05-08 Tom Tromey <tom@tromey.com>
382 * auto-load.c (struct auto_load_pspace_info): Add destructor and
384 <unsupported_script_warning_printed,
385 script_not_found_warning_printed>: Now bool.
386 (auto_load_pspace_data): Change type.
387 (~auto_load_pspace_info): Rename from
388 auto_load_pspace_data_cleanup.
389 (get_auto_load_pspace_data, init_loaded_scripts_info)
390 (clear_section_scripts, maybe_print_unsupported_script_warning)
391 (maybe_print_script_not_found_warning, _initialize_auto_load):
394 2019-05-08 Tom Tromey <tom@tromey.com>
396 * objfiles.c (objfile_pspace_info): Add destructor and
398 (objfiles_pspace_data): Change type.
399 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
400 (get_objfile_pspace_data): Update.
401 (objfiles_bfd_data): Change type.
402 (get_objfile_bfd_data): Update.
403 (objfile_bfd_data_free, _initialize_objfiles): Remove.
405 2019-05-08 Tom Tromey <tom@tromey.com>
407 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
409 (get_catch_syscall_inferior_data): Update.
410 (catch_syscall_inferior_data_cleanup): Remove.
411 (_initialize_break_catch_syscall): Update.
413 2019-05-08 Tom Tromey <tom@tromey.com>
415 * inflow.c (struct terminal_info): Add destructor and
417 (inflow_inferior_data): Change type.
418 (~terminal_info): Rename from inflow_inferior_data_cleanup.
419 (get_inflow_inferior_data, inflow_inferior_exit)
420 (swap_terminal_info, _initialize_inflow): Update.
422 2019-05-08 Tom Tromey <tom@tromey.com>
424 * target-dcache.c (target_dcache_cleanup): Remove.
425 (target_dcache_aspace_key): Change type.
426 (target_dcache_init_p, target_dcache_invalidate)
427 (target_dcache_get, target_dcache_get_or_init)
428 (_initialize_target_dcache): Update.
429 * dcache.h (struct dcache_deleter): New.
431 2019-05-08 Tom Tromey <tom@tromey.com>
433 * symtab.c (struct symbol_cache): Add destructor and
435 (symbol_cache_key): Move. Change type.
436 (make_symbol_cache, free_symbol_cache): Remove.
437 (get_symbol_cache): Update.
438 (symbol_cache_cleanup): Remove.
439 (ALL_PSPACES, symbol_cache_flush)
440 (maintenance_print_symbol_cache)
441 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
444 2019-05-08 Tom Tromey <tom@tromey.com>
446 * symtab.c (struct main_info): Add destructor and initializers.
447 (main_progspace_key): Move. Change type.
448 (get_main_info): Update.
449 (main_info_cleanup): Remove.
450 (_initialize_symtab): Update.
452 2019-05-08 Tom Tromey <tom@tromey.com>
454 * registry.h (DECLARE_REGISTRY): Define the _key class.
456 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
458 * NEWS: Merge two 'New commands' sections.
460 2019-05-08 Joel Brobecker <brobecker@adacore.com>
462 * ada-valprint.c (ada_val_print_gnat_array): Remove language
463 parameter and use Ada language definition instead.
464 (ada_val_print_ptr): Remove unused language parameter.
465 (ada_val_print_num): Remove language parameter and use Ada language
467 (ada_val_print_enum, ada_val_print_flt): Remove unused language
469 (ada_val_print_struct_union, ada_val_print_ref): Remove language
470 parameter and use Ada language definition instead.
471 (ada_val_print_1): Update all ada_val_print_xxx calls.
472 Remove language parameter.
473 (ada_val_print): Update ada_val_print_1 call.
475 2019-05-08 Tom Tromey <tromey@adacore.com>
477 * remote.c (remote_hw_watchpoint_limit)
478 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
481 2019-05-08 Tom Tromey <tromey@adacore.com>
483 * maint.c (_initialize_maint_cmds): Move initialization code to
485 (watchdog, show_watchdog): Move to remote.c.
486 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
488 (_initialize_remote): Move initialization code from maint.c.
489 * defs.h (watchdog): Don't declare.
491 2019-05-08 Tom Tromey <tromey@adacore.com>
493 * tui/tui-interp.c: Include main.h.
494 * interps.c: Include main.h.
495 * main.h (interpreter_p): Declare.
496 * defs.h (interpreter_p): Don't declare.
498 2019-05-08 Tom Tromey <tromey@adacore.com>
500 * dwarf2loc.c: Include dwarf2read.h.
501 * defs.h (read_unsigned_leb128): Don't declare.
502 * dwarf2read.h (read_unsigned_leb128): Declare.
504 2019-05-08 Tom Tromey <tromey@adacore.com>
506 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
509 2019-05-08 Tom Tromey <tromey@adacore.com>
511 * utils.c (fputs_maybe_filtered): Reset style after paging, even
512 when no wrap column is set.
514 2019-05-08 Tom Tromey <tromey@adacore.com>
516 * c-lang.c (c_get_string): Handle non-C-style arrays.
518 2019-05-08 Tom Tromey <tromey@adacore.com>
520 * typeprint.c (print_offset_data::update): Print the bit offset,
521 not the number of bits remaining.
523 2019-05-08 Tom Tromey <tromey@adacore.com>
525 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
526 padding at end of comment.
528 2019-05-08 Tom Tromey <tromey@adacore.com>
530 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
533 2019-05-06 Tom Tromey <tom@tromey.com>
535 * common/scoped_mmap.c: Include common-defs.h.
536 * common/scoped_mmap.h: Don't include config.h.
538 2019-05-04 Tom Tromey <tom@tromey.com>
540 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
541 (struct aarch64_call_info): Add initializers.
542 <si>: Now a std::vector.
543 (pass_on_stack, aarch64_push_dummy_call): Update.
545 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
546 Tom Tromey <tom@tromey.com>
548 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
549 (ppc_threads): Now a std::vector. Now static.
550 (hwdebug_find_thread_points_by_tid)
551 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
554 2019-05-04 Tom Tromey <tom@tromey.com>
556 * arc-tdep.c (arc_tdesc_init): Return bool.
558 2019-05-04 Tom Tromey <tom@tromey.com>
560 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
561 Use gdb_assert_not_reached.
563 2019-05-04 Tom Tromey <tom@tromey.com>
565 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
568 2019-05-04 Tom Tromey <tom@tromey.com>
570 * arc-tdep.c (arc_tdesc_init): Use bool.
572 2019-05-04 Tom Tromey <tom@tromey.com>
574 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
576 2019-05-04 Tom Tromey <tom@tromey.com>
578 * cli/cli-cmds.c (valid_command_p): Return bool.
580 2019-05-04 Tom Tromey <tom@tromey.com>
582 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
583 * command.h (valid_user_defined_cmd_name_p): Channge return type.
585 2019-05-04 Raul Tambre <raul@tambre.ee>
587 * python/lib/gdb/prompt.py (_ExtendedPrompt)
588 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
589 operator for comparison.
591 2019-05-04 Tom Tromey <tom@tromey.com>
593 * psymtab.c (psymbol_name_matches, match_partial_symbol)
594 (lookup_partial_symbol, print_partial_symbols)
595 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
596 (psymbol_compare): Update.
597 (add_psymbol_to_bcache): Clear the entire psymbol.
598 (maintenance_check_psymtabs): Update.
599 * psympriv.h (struct partial_symbol): Don't derive from
601 <obj_section, unrelocated_address, address,
602 set_unrelocated_address>: Update.
604 * dwarf-index-write.c (write_psymbols, debug_names::insert)
605 (debug_names::write_psymbols): Update.
607 2019-05-04 Tom de Vries <tdevries@suse.de>
609 * contrib/cc-with-tweaks.sh: Support -n arg.
611 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
613 * corelow.c (core_target::detach): Ensure frame cache and
614 register caches are cleared.
615 inferior.c (exit_inferior_1): Likewise.
617 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
618 Tom Tromey <tom@tromey.com>
620 * dictionary.c (collate_pending_symbols_by_language): Remove
621 "struct" from foreach.
622 * symtab.c (lookup_global_symbol_from_objfile)
623 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
625 * ser-tcp.c (net_open): Remove "struct" from foreach.
626 * objfiles.c (objfile_relocate, objfile_rebase)
627 (objfile_has_symbols): Remove "struct" from foreach.
628 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
630 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
632 * darwin-nat.c (thread_info_from_private_thread_info): Remove
633 "struct" from foreach.
634 * ada-lang.c (create_excep_cond_exprs)
635 (ada_exception_catchpoint_cond_string): Remove "struct" from
638 2019-05-03 Tom Tromey <tromey@adacore.com>
640 * ada-exp.y (convert_char_literal): Check suffix of each
643 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
646 * ada-exp.y (yywrap): Don't define.
647 * ada-lex.l (%option): Add noyywrap
650 2019-05-03 Eli Zaretskii <eliz@gnu.org>
652 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
653 _WIN32_WINNT to the XP level, unless already defined to a higher
656 * unittests/parse-connection-spec-selftests.c:
658 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
661 * symfile.c (find_separate_debug_file): Remove colon from the
662 drive spec of DOS/Windows file names of the target, so that the
663 file name produced from DEBUGDIR and the target's directory will
664 be valid on DOS/Windows systems.
666 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
668 * rust-lang.c (val_print_struct): Handle printing structures
671 2019-05-02 Tom Tromey <tromey@adacore.com>
673 * valarith.c (_initialize_valarith): Remove.
675 2019-05-01 Tom Tromey <tromey@adacore.com>
677 * ada-lang.c (ada_value_primitive_field): Treat more fields as
680 2019-05-01 Tom Tromey <tromey@adacore.com>
682 * ada-lang.c (ada_value_assign): Correctly compute starting offset
683 for big-endian copies.
685 2019-04-30 Ali Tamur <tamur@google.com>
686 * gdb/dwarf2read.c (read_3_bytes): New declaration.
687 (read_attribute_value): Added DW_FORM_strx1-4 cases.
688 (read_3_bytes): New function.
690 2019-04-30 Joel Brobecker <brobecker@adacore.com>
692 * windows-nat.c (main_thread_id): Delete.
693 (handle_output_debug_string): Replace main_thread_id by
694 current_event.dwThreadId.
695 (fake_create_process): Likewise.
696 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
697 Do not set main_thread_id.
698 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
699 current_event.dwThreadId.
700 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
702 2019-04-30 Joel Brobecker <brobecker@adacore.com>
704 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
705 Use current_event.dwThreadId instead of main_thread_id.
707 2019-04-30 Tom Tromey <tromey@adacore.com>
709 * ada-lang.c (ada_lookup_simple_minsyms): New function.
710 (create_excep_cond_exprs): Iterate over program spaces.
711 (ada_exception_catchpoint_cond_string): Examine all minimal
712 symbols for exception types.
714 2019-04-30 Tom Tromey <tromey@adacore.com>
717 * dwarf2read.c (process_structure_scope): Handle case where type
718 has template parameters but no symbol was created.
720 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
721 Chris January <chris.january@arm.com>
723 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
725 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
727 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
729 * f-typeprint.c (f_print_type): Update rules for printing
731 (f_type_print_varspec_suffix): Likewise.
733 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
734 Chris January <chris.january@arm.com>
736 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
739 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
741 * f-lang.c (build_fortran_types): Change name of void type to
743 * f-typeprint.c (f_type_print_base): Print the name of the void
744 type, rather than a fixed string.
745 * f-valprint.c (f_decorations): Use lower case void string.
747 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
748 Chris January <chris.january@arm.com>
750 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
753 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
754 Chris January <chris.january@arm.com>
755 David Lecomber <david.lecomber@arm.com>
757 * f-exp.y (BINOP_INTRINSIC): New token.
758 (exp): New parser rule handling BINOP_INTRINSIC.
759 (f77_keywords): Add new builtin procedures.
760 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
761 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
762 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
763 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
764 (print_unop_subexp_f): New function.
765 (print_binop_subexp_f): New function.
766 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
767 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
768 (dump_subexp_body_f): Likewise.
769 (operator_check_f): Likewise.
770 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
771 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
773 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
775 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
777 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
778 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
779 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
780 (operator_length_f): New fuction.
781 (print_subexp_f): New function.
782 (op_name_f): New function.
783 (dump_subexp_body_f): New function.
784 (operator_check_f): New function.
785 (exp_descriptor_f): Replace standard expression handling functions
787 * gdb/fortran-operator.def: New file.
788 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
789 * gdb/std-operator.def: Remove UNOP_KIND.
791 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
793 * std-operator.def: Remove unbalanced, stray double quote
796 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
797 Chris January <chris.january@arm.com>
798 Daniel Everett <daniel.everett@arm.com>
799 Nick Forrington <nick.forrington@arm.com>
800 Richard Bunt <richard.bunt@arm.com>
802 * cp-valprint.c (cp_print_value_fields): Allow an additional level
803 of depth when printing anonymous structs or unions.
804 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
805 Don't print either the top-level value, or the children if the
806 max-depth is exceeded.
807 (ppscm_print_children): When printing the key of a map, allow one
808 extra level of depth.
809 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
810 print either the top-level value, or the children if the max-depth
812 (print_children): When printing the key of a map, allow one extra
814 * python/py-value.c (valpy_format_string): Add max_depth keyword.
815 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
816 (user_print_options): Initialise max_depth field.
817 (val_print_scalar_or_string_type_p): New function.
818 (val_print): Check to see if the max depth has been reached.
819 (val_print_check_max_depth): Define new function.
820 (show_print_max_depth): New function.
821 (_initialize_valprint): Add 'print max-depth' option.
822 * valprint.h (struct value_print_options) <max_depth>: New field.
823 (val_print_check_max_depth): Declare new function.
824 * NEWS: Document new feature.
826 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
828 * ada-lang.c (ada_language_defn): Initialise new field.
829 * c-lang.c (c_is_string_type_p): New function.
830 (c_language_defn): Initialise new field.
831 (cplus_language_defn): Initialise new field.
832 (asm_language_defn): Initialise new field.
833 (minimal_language_defn): Initialise new field.
834 * c-lang.h (c_is_string_type_p): Declare new function.
835 * d-lang.c (d_language_defn): Initialise new field.
836 * f-lang.c (f_is_string_type_p): New function.
837 (f_language_defn): Initialise new field.
838 * go-lang.c (go_is_string_type_p): New function.
839 (go_language_defn): Initialise new field.
840 * language.c (default_is_string_type_p): New function.
841 (unknown_language_defn): Initialise new field.
842 (auto_language_defn): Initialise new field.
843 * language.h (struct language_defn) <la_is_string_type_p>: New
845 (default_is_string_type_p): Declare new function.
846 * m2-lang.c (m2_language_defn): Initialise new field.
847 * objc-lang.c (objc_language_defn): Initialise new field.
848 * opencl-lang.c (opencl_language_defn): Initialise new field.
849 * p-lang.c (pascal_is_string_type_p): New function.
850 (pascal_language_defn): Initialise new field.
851 * rust-lang.c (rust_is_string_type_p): New function.
852 (rust_language_defn): Initialise new field.
854 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
856 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
858 * ada-lang.c (ada_language_defn): Initialise new field.
859 * c-lang.c (c_language_defn): Likewise.
860 (cplus_language_defn): Likewise.
861 (asm_language_defn): Likewise.
862 (minimal_language_defn): Likewise.
863 * d-lang.c (d_language_defn): Likewise.
864 * f-lang.c (f_language_defn): Likewise.
865 * go-lang.c (go_language_defn): Likewise.
866 * language.c (unknown_language_defn): Likewise.
867 (auto_language_defn): Likewise.
868 * m2-lang.c (m2_language_defn): Likewise.
869 * objc-lang.c (objc_language_defn): Likewise.
870 * opencl-lang.c (opencl_language_defn): Likewise.
871 * p-lang.c (pascal_language_defn): Likewise.
872 * rust-lang.c (rust_language_defn): Likewise.
874 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
876 * ada-lang.c (ada_is_character_type): Change return type to bool.
877 (ada_is_string_type): Likewise.
878 * ada-lang.h (ada_is_character_type): Update declaration
879 (ada_is_string_type): Likewise.
881 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
883 Support style in 'frame|thread apply'
885 * gdbcmd.h (execute_command_to_string): New term_out parameter.
886 * record.c (record_start, record_stop): Update callers of
887 execute_command_to_string with false.
888 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
889 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
891 (class string_file): New constructor with term_out parameter.
892 Override methods term_out and can_emit_style_escape. New member
894 (class stdio_file): Override can_emit_style_escape.
895 (class tee_file): Override term_out and can_emit_style_escape.
896 * utils.h (can_emit_style_escape): Remove.
897 * utils.c (can_emit_style_escape): Likewise.
898 Update all callers of can_emit_style_escape (SOMESTREAM) to
899 SOMESTREAM->can_emit_style_escape.
900 * source-cache.c (source_cache::get_source_lines): Likewise.
901 * stack.c (frame_apply_command_count): Call execute_command_to_string
902 passing the term_out characteristic of the current gdb_stdout.
903 * thread.c (thr_try_catch_cmd): Likewise.
904 * top.c (execute_command_to_string): pass term_out parameter
905 to construct the string_file for the command output.
906 * ui-file.c (term_cli_styling): New function (most code moved
907 from utils.c can_emit_style_escape).
908 (string_file::string_file, string_file::can_emit_style_escape,
909 stdio_file::can_emit_style_escape, tee_file::term_out,
910 tee_file::can_emit_style_escape): New functions.
912 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
914 * NEWS: Mention the new set|show may-call-functions.
915 * infcall.c (may_call_functions_p): New variable.
916 (show_may_call_functions_p): New function.
917 (call_function_by_hand_dummy): Throws an error if not
919 (_initialize_infcall): Call add_setshow_boolean_cmd for
922 2019-04-25 Keith Seitz <keiths@redhat.com>
925 * cp-support.c (inspect_type): Don't attempt substitutions
926 of symbol with the same name.
928 2019-04-25 Tom Tromey <tromey@adacore.com>
931 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
934 2019-04-25 Tom Tromey <tromey@adacore.com>
936 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
938 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
939 (gdb_xml_parser::parse): Use std::move.
940 * python/python-internal.h (gdbpy_convert_exception): Take a const
942 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
944 * python/py-utils.c (gdbpy_convert_exception): Take a const
946 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
948 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
950 * mi/mi-main.c (mi_print_exception): Take a const reference.
951 * main.c (handle_command_errors): Take a const reference.
952 * linespec.c (parse_linespec): Use std::move.
953 * infcall.c (run_inferior_call): Use std::move.
954 (call_function_by_hand_dummy): Use std::move.
955 * exec.c (try_open_exec_file): Use std::move.
956 * exceptions.h (exception_print, exception_fprintf)
957 (exception_print_same): Update.
958 * exceptions.c (print_exception, exception_print)
959 (exception_fprintf, exception_print_same): Change parameters to
961 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
962 * common/new-op.c: Use std::move.
963 * common/common-exceptions.h (struct gdb_exception): Add move
965 (struct gdb_exception_error, struct gdb_exception_quit, struct
966 gdb_quit_bad_alloc): Change constructor to move constructor.
967 (throw_exception): Change parameter to rvalue reference.
968 * common/common-exceptions.c (throw_exception): Take rvalue
970 * cli/cli-interp.c (safe_execute_command): Use std::move.
971 * breakpoint.c (insert_bp_location, location_to_sals): Use
974 2019-04-25 Tom Tromey <tromey@adacore.com>
976 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
977 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
978 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
979 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
980 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
981 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
982 guile/scm-value.c: Use unpack.
983 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
984 gdbscm_gdb_exception.
985 (gdbscm_throw_gdb_exception): Likewise.
986 (struct gdbscm_gdb_exception): New.
987 (unpack): New function.
988 (gdbscm_wrap): Use unpack.
990 2019-04-25 Tom Tromey <tromey@adacore.com>
992 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
993 (gdb_rl_callback_handler): Use std::move.
994 * common/common-exceptions.h (struct gdb_exception): Add move
996 (throw_exception_sjlj): Change "exception" to const reference.
997 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
998 (throw_exception_sjlj): Change "exception" to const reference.
1000 2019-04-25 Tom Tromey <tromey@adacore.com>
1002 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
1003 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
1004 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1006 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1008 * mi/mi-interp.c (mi_interp::exec): Update.
1009 * linespec.c (parse_linespec): Update.
1010 * infcall.c (run_inferior_call): Update.
1011 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
1012 * guile/scm-symbol.c (gdbscm_lookup_symbol)
1013 (gdbscm_lookup_global_symbol): Update.
1014 * guile/scm-param.c (gdbscm_parameter_value): Update.
1015 * guile/scm-frame.c (gdbscm_frame_read_register)
1016 (gdbscm_frame_read_var): Update.
1017 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1018 * exec.c (try_open_exec_file): Update.
1019 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1020 (gdb_rl_callback_handler): Update.
1021 * common/common-exceptions.h (exception_none): Don't declare.
1022 * common/common-exceptions.c (exception_none): Don't define.
1023 (struct catcher) <exception>: Update.
1024 * cli/cli-interp.c (safe_execute_command): Update.
1025 * breakpoint.c (insert_bp_location, location_to_sals): Update.
1027 2019-04-25 Ali Tamur <tamur@google.com>
1029 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
1030 (read_attribute_value): Likewise.
1031 (dwarf2_read_addr_index): Update comment.
1032 (read_str_index): Add DW_FORM_strx.
1033 (dwarf2_string_attr): Likewise.
1034 (dwarf2_const_value_attr): Likewise.
1035 (dump_die_shallow): Likewise.
1036 (dwarf2_fetch_constant_bytes): Likewise.
1037 (skip_form_bytes): Likewise.
1038 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
1040 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
1044 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
1045 OFFSET. Verify if current mapping contains an ELF header.
1046 (linux_find_memory_regions_full): Adjust call to
1049 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
1050 Kang Li <kanglictf@gmail.com>
1054 * dwarf2-frame.c (read_initial_length): Be consistent about using
1055 unsigned representation of length.
1056 (decode_frame_entry_1): Likewise. Check for wraparound of
1057 end pointer as well as buffer overflow.
1059 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
1061 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
1064 2019-04-24 Tom Tromey <tromey@adacore.com>
1066 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
1068 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1070 * s12z-tdep.c (s12z_unwind_pc): Delete.
1071 (s12z_unwind_sp): Delete.
1072 (s12z_gdbarch_init): Don't register deleted functions with
1075 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1077 * rl78-tdep.c (rl78_unwind_sp): Delete.
1078 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
1080 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1082 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
1083 (xstormy16_unwind_pc): Delete.
1084 (xstormy16_dummy_id): Delete.
1085 (xstormy16_gdbarch_init): Don't register deleted functions with
1088 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1090 * vax-tdep.c (vax_unwind_pc): Delete.
1091 (vax_gdbarch_init): Don't register deleted function with gdbarch.
1093 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1095 * v850-tdep.c (v850_unwind_sp): Delete.
1096 (v850_unwind_pc): Delete.
1097 (v850_dummy_id): Delete.
1098 (v850_gdbarch_init): Don't register deleted functions with
1101 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1103 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
1104 (tilegx_unwind_pc): Delete.
1105 (tilegx_unwind_dummy_id): Delete.
1106 (tilegx_gdbarch_init): Don't register deleted functions with
1109 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1111 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
1112 (tic6x_dummy_id): Delete.
1113 (tic6x_gdbarch_init): Don't register deleted functions with
1116 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1118 * sparc-tdep.c (sparc_unwind_pc): Delete.
1119 (sparc32_gdbarch_init): Don't register deleted function with
1122 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1124 * sh-tdep.c (sh_unwind_sp): Delete.
1125 (sh_unwind_pc): Delete.
1126 (sh_dummy_id): Delete.
1127 (sh_gdbarch_init): Don't register deleted functions with
1130 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1132 * score-tdep.c (score_unwind_sp): Delete.
1133 (score_unwind_pc): Delete.
1134 (score_dummy_id): Delete.
1135 (score_gdbarch_init): Don't register deleted functions with
1138 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1140 * rx-tdep.c (rx_unwind_pc): Delete.
1141 (rx_unwind_sp): Delete.
1142 (rx_dummy_id): Delete.
1143 (rx_gdbarch_init): Don't register deleted functions with
1144 gdbarch. Update comment.
1146 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1148 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
1149 (rs6000_dummy_id): Delete.
1150 (rs6000_gdbarch_init): Don't register deleted functions with
1153 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1155 * or1k-tdep.c (or1k_dummy_id): Delete.
1156 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
1158 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1160 * nios2-tdep.c (nios2_dummy_id): Delete.
1161 (nios2_unwind_sp): Delete.
1162 (nios2_gdbarch_init): Don't register deleted functions with
1165 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1167 * nds32-tdep.c (nds32_dummy_id): Delete.
1168 (nds32_unwind_pc): Delete.
1169 (nds32_unwind_sp): Delete.
1170 (nds32_gdbarch_init): Don't register deleted functions with
1173 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1175 * msp430-tdep.c (msp430_unwind_pc): Delete.
1176 (msp430_unwind_sp): Delete.
1177 (msp430_dummy_id): Delete.
1178 (msp430_gdbarch_init): Don't register deleted functions with
1181 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1183 * moxie-tdep.c (moxie_unwind_sp): Delete.
1184 (moxie_unwind_pc): Delete.
1185 (moxie_dummy_id): Delete.
1186 (moxie_gdbarch_init): Don't register deleted functions with
1189 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1191 * mn10300-tdep.c (mn10300_dummy_id): Delete.
1192 (mn10300_unwind_pc): Delete.
1193 (mn10300_unwind_sp): Delete.
1194 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
1196 (mn10300_frame_unwind_init): Don't register deleted functions with
1199 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1201 * mep-tdep.c (mep_unwind_pc): Delete.
1202 (mep_unwind_sp): Delete.
1203 (mep_dummy_id): Delete.
1204 (mep_gdbarch_init): Don't register deleted functions with
1207 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1209 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
1210 (m68hc11_unwind_sp): Delete.
1211 (m68hc11_gdbarch_init): Don't register deleted functions with
1214 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1216 * m32r-tdep.c (m32r_unwind_sp): Delete.
1217 (m32r_unwind_pc): Delete.
1218 (m32r_dummy_id): Delete.
1219 (m32r_gdbarch_init): Don't register deleted functions with
1222 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1224 * m32c-tdep.c (m32c_unwind_pc): Delete.
1225 (m32c_unwind_sp): Delete.
1226 (m32c_dummy_id): Delete.
1227 (m32c_gdbarch_init): Don't register deleted functions with
1230 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1232 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
1233 (lm32_unwind_pc): Delete.
1234 (lm32_dummy_id): Delete.
1235 (lm32_gdbarch_init): Don't register deleted functions with
1238 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1240 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
1241 (iq2000_unwind_pc): Delete.
1242 (iq2000_dummy_id): Delete.
1243 (iq2000_gdbarch_init): Don't register deleted functions with
1246 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1248 * nds32-tdep.c (nds32_type_align): Delete.
1249 (nds32_push_dummy_call): Use type_align instead.
1251 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1253 * arm-tdep.c (arm_type_align): Only handle vector override case.
1254 (arm_push_dummy_call): Use type_align.
1255 (arm_gdbarch_init): Register arm_type_align gdbarch function.
1257 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1259 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
1261 (pass_on_stack): Use type_align.
1262 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
1265 2019-04-23 Tom Tromey <tromey@adacore.com>
1267 * dwarf2read.c (line_header::file_name_at): Remove unused
1270 2019-04-23 Tom de Vries <tdevries@suse.de>
1273 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
1277 2019-03-27 Ali Tamur <tamur@google.com>
1279 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
1280 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
1281 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
1282 (dwarf_expr_context::get_addr_index): Likewise
1283 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
1284 (symbol_needs_eval_context::get_addr_index): Likewise
1285 (disassemble_dwarf_expression): Add DW_OP_addrx
1286 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
1287 (read_cutu_die_from_dwo): Update comment
1288 (skip_one_die): Add DW_FORM_addrx
1289 (read_attribute_value): Likewise
1290 (var_decode_location): Add DW_OP_addrx
1291 (dwarf2_const_value_attr): Add DW_FORM_addrx
1292 (dump_die_shallow): Likewise
1293 (dwarf2_fetch_constant_bytes): Likewise
1294 (decode_locdesc): Add DW_OP_addrx
1295 (skip_form_bytes): Add DW_FORM_addrx
1297 2019-04-22 Ali Tamur <tamur@google.com>
1299 * MAINTAINERS (Write After Approval): Add self.
1301 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
1303 * solib-svr4.c (get_svr4_info): Add pspace parameter.
1304 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
1305 (open_symbol_file_object): Likewise.
1306 (svr4_default_sos): Add info parameter.
1307 (svr4_read_so_list): Likewise.
1308 (svr4_current_sos_direct): Adjust functions calls to pass down
1310 (svr4_current_sos_1): Add info parameter.
1311 (svr4_current_sos): Call get_svr4_info, pass info down to
1313 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
1315 (svr4_in_dynsym_resolve_code): Pass current_program_space to
1317 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
1319 (probes_table_remove_objfile_probes): Likewise.
1320 (register_solib_event_probe): Add info parameter.
1321 (solist_update_incremental): Pass info parameter down to
1323 (disable_probes_interface): Add info parameter.
1324 (svr4_handle_solib_event): Pass current_program_space to
1325 get_svr4_info. Adjust disable_probes_interface cleanup.
1326 (svr4_create_probe_breakpoints): Add info parameter, pass it
1327 down to register_solib_event_probe.
1328 (svr4_create_solib_event_breakpoints): Add info parameter,
1329 pass it down to svr4_create_probe_breakpoints.
1330 (enable_break): Pass info down to
1331 svr4_create_solib_event_breakpoints.
1332 (svr4_solib_create_inferior_hook): Pass current_program_space to
1334 (svr4_clear_solib): Likewise.
1336 2019-04-22 Pedro Alves <palves@redhat.com>
1338 * solib-svr4.c (svr4_free_objfile_observer): New.
1339 (probe_and_action::objfile): New field.
1340 (probes_table_htab_remove_objfile_probes)
1341 (probes_table_remove_objfile_probes): New functions.
1342 (register_solib_event_probe): Add 'objfile' parameter. Store it
1343 in the new probe_and_action. Don't store the probe in 'lookup'.
1344 (svr4_create_probe_breakpoints): Pass objfile to
1345 register_solib_event_probe.
1346 (_initialize_svr4_solib): Register a free_objfile observer.
1348 2019-04-19 Tom Tromey <tom@tromey.com>
1350 * common/queue.h: Remove.
1352 2019-04-19 Tom Tromey <tom@tromey.com>
1354 * event-loop.c: Don't include "common/queue.h".
1356 2019-04-19 Tom Tromey <tom@tromey.com>
1358 * remote.c (remote_target): Use delete.
1359 * remote-notif.h: Include <list>, not "common/queue.h".
1360 (notif_client_p): Remove typedef.
1361 (remote_notif_state): Add constructor, destructor, initializer.
1362 <notif_queue>: Now a std::list.
1363 (remote_notif_state_xfree): Don't declare.
1364 * remote-notif.c (remote_notif_process, handle_notification)
1365 (remote_notif_state_allocate): Update.
1366 (~remote_notif_state): Rename from remote_notif_state_xfree.
1368 2019-04-19 Tom Tromey <tom@tromey.com>
1370 * symfile.c (reread_symbols): Update.
1371 * objfiles.c (objfile_register_static_link)
1372 (objfile_lookup_static_link): Update
1373 (~objfile) Don't delete static_links.
1374 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
1376 2019-04-19 Tom Tromey <tom@tromey.com>
1378 * type-stack.h (struct type_stack) <insert>: Constify string.
1379 * type-stack.c (type_stack::insert): Constify string.
1380 * gdbtypes.h (lookup_template_type): Update.
1381 (address_space_name_to_int): Update.
1382 * gdbtypes.c (address_space_name_to_int): Make space_identifier
1384 (lookup_template_type): Make name const.
1385 * c-exp.y: Update rules.
1386 (lex_one_token, classify_name, classify_inner_name)
1387 (c_print_token): Update.
1388 * p-exp.y: Update rules.
1390 * f-exp.y: Update rules.
1392 * d-exp.y: Update rules.
1393 (lex_one_token, classify_name, classify_inner_name): Update.
1394 * parse.c (write_dollar_variable, copy_name): Return std::string.
1395 * parser-defs.h (copy_name): Change return type.
1396 * m2-exp.y: Update rules.
1398 * go-exp.y (lex_one_token): Update.
1400 (classify_unsafe_function, classify_packaged_name)
1401 (classify_name, yylex): Update.
1403 2019-04-19 Sergei Trofimovich <siarheit@google.com>
1405 * configure.ac: add --enable-source-highlight switch.
1406 * configure: Regenerate.
1407 * top.c (print_gdb_version): plumb --enable-source-highlight
1408 status to "show configuration".
1410 2019-04-19 Tom Tromey <tromey@adacore.com>
1412 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
1414 (empty_record, ada_template_to_fixed_record_type_1)
1415 (template_to_static_fixed_type)
1416 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
1417 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
1418 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
1421 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
1424 * source.c (print_source_lines_base): Advance "iter" when a
1425 control character is seen.
1427 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1429 * inferior.h (struct infcall_suspend_state_deleter):
1430 Catch exception in destructor to avoid crash.
1432 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1434 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
1435 close to the add_com "shell".
1437 2019-04-18 Tom Tromey <tromey@adacore.com>
1439 * process-stratum-target.h (class process_stratum_target)
1440 <stratum>: Add "final".
1442 2019-04-17 Tom Tromey <tromey@adacore.com>
1444 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
1445 against nullptr before use.
1447 2019-04-17 Alan Hayward <alan.hayward@arm.com>
1449 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
1451 2019-04-17 Jim Wilson <jimw@sifive.com>
1452 Andrew Burgess <andrew.burgess@embecosm.com>
1454 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
1455 code read might fail, assume 4-byte breakpoint in that case.
1457 2019-04-15 Leszek Swirski <leszeks@google.com>
1459 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
1460 rather than a hand-rolled POD check when checking for forced MEMORY
1463 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1465 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
1466 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
1468 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
1469 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
1470 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
1473 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1475 * aarch64-linux-nat.c
1476 (aarch64_linux_nat_target::thread_architecture): Add override.
1477 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
1480 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1482 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
1484 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
1486 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
1487 target types of size 96-bits, add some additional comments, and
1488 check that the builtin type we found was the correct size.
1490 2019-04-12 Eli Zaretskii <eliz@gnu.org>
1492 * utils.c (prompt_for_continue): Don't restore the styling at the
1493 end, as applied_style has the wrong value. This fixes styling in
1494 long lists of file names that are interrupted by the "Continue?"
1497 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
1499 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
1500 * c-lang.c (c_language_defn): Likewise.
1501 (cplus_language_defn): Likewise.
1502 (asm_language_defn): Likewise.
1503 (minimal_language_defn): Likewise.
1504 * d-lang.c (d_language_defn): Likewise.
1505 * f-lang.c (f_language_defn): Likewise.
1506 * go-lang.c (go_language_defn): Likewise.
1507 * language.c (unknown_language_defn): Likewise.
1508 (auto_language_defn): Likewise.
1509 * language.h (struct language_defn): Remove la_magic field.
1510 (LANG_MAGIC): Delete.
1511 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
1512 * objc-lang.c (objc_language_defn): Likewise.
1513 * opencl-lang.c (opencl_language_defn): Likewise.
1514 * p-lang.c (pascal_language_defn): Likewise.
1515 * rust-lang.c (rust_language_defn): Likewise.
1517 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1519 * riscv-tdep.c (riscv_type_align): New function.
1520 (riscv_type_alignment): Delete.
1521 (riscv_arg_location): Use 'type_align'.
1522 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
1524 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1526 * gdbtypes.c (type_align): A struct with no non-static fields also
1529 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1531 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
1533 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
1535 (riscv_struct_info::analyse): New implementation using new
1536 analyse_inner member function.
1537 (riscv_struct_info::field_offset): New member function.
1538 (riscv_struct_info::m_offsets): New member variable.
1539 (riscv_struct_info::analyse_inner): New private member function,
1540 takes the old implementation of riscv_struct_info::analyse but
1541 extended to track field offsets.
1542 (riscv_call_arg_struct): Update the struct folding special cases
1543 to handle cases where empty C++ structs, which are non-zero
1545 (riscv_arg_location): Initialise the length of each location, a
1546 non-zero length now indicates the location is in use.
1547 (riscv_push_dummy_call): Allow for the first location having a
1548 non-zero offset when setting up arguments.
1549 (riscv_return_value): Likewise, but for return values.
1551 2019-04-11 Tom Tromey <tromey@adacore.com>
1553 * utils.c (internal_vproblem): Make "msg" const.
1555 2019-04-11 Alan Hayward <alan.hayward@arm.com>
1557 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
1558 * trad-frame.c (trad_frame_reset_saved_regs): New function.
1559 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
1560 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
1562 2019-04-10 Kevin Buettner <kevinb@redhat.com>
1564 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
1566 (fill_gregset): Call amd64_linux_collect_native_gregset instead
1567 of amd64_collect_native_gregset.
1568 (amd64_linux_nat_target::store_registers): Likewise.
1570 2019-04-10 Tom Tromey <tom@tromey.com>
1572 * symtab.c (lookup_global_symbol_from_objfile)
1573 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
1574 * objfiles.h (class separate_debug_iterator): New.
1575 (class separate_debug_range): New.
1576 (struct objfile) <separate_debug_objfiles>: New method.
1577 (objfile_separate_debug_iterate): Don't declare.
1578 * objfiles.c (separate_debug_iterator::operator++): Rename from
1579 objfile_separate_debug_iterate.
1580 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
1582 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
1585 2019-04-10 Tom Tromey <tom@tromey.com>
1587 * symfile.c (reread_symbols): Remove old comment.
1588 * objfiles.c (free_all_objfiles): Fix a typo.
1590 2019-04-10 Tom Tromey <tom@tromey.com>
1592 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
1593 * minsyms.c (lookup_minimal_symbol): Use foreach.
1594 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
1595 (lookup_minimal_symbol_solib_trampoline): Likewise.
1596 * symfile.c (reread_symbols): Use foreach.
1598 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
1599 Tom Tromey <tromey@adacore.com>
1602 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
1603 (rust_lex_int_test): Change "value" to be LONGEST.
1604 (rust_lex_tests): Add test for long integer literal.
1606 2019-04-09 Tom Tromey <tromey@adacore.com>
1608 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
1610 (extended_remote_target::attach): Update.
1611 (remote_target::remote_notice_new_inferior): Update.
1612 (remote_target::add_current_inferior_and_thread): Update.
1613 * inferior.c (exit_inferior_1): Use "false".
1614 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
1616 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
1618 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
1619 the "start" command.
1621 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1623 * python/py-inferior.c (infpy_thread_from_thread_handle):
1624 Adjust comments to reflect renaming of thread_from_thread_handle
1625 to thread_from_handle. Adjust keywords. Fix type error message.
1626 (inferior_object_methods): Add thread_from_handle. Retain
1627 thread_from_thread_handle, but mark it as deprecated.
1629 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1631 * gdbthread.h (find_thread_by_handle): Revise declaration.
1632 * thread.c (find_thread_by_handle): Likewise. Adjust
1634 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
1635 support for buffer objects as handles.
1637 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1639 * python/py-infthread.c (thpy_thread_handle): New function.
1640 (thread_object_methods): Register thpy_thread_handle.
1642 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1644 * gdbthread.h (thread_to_thread_handle): Declare.
1645 * thread.c (gdbtypes.h): Include.
1646 (thread_to_thread_handle): New function.
1648 * target.h (struct target_ops): Add thread_info_to_thread_handle.
1649 (target_thread_info_to_thread_handle): Declare.
1650 * target.c (target_thread_info_to_thread_handle): New function.
1651 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
1652 * target-delegates.c: Regenerate.
1654 * linux-thread-db.c (class thread_db_target): Add method
1655 thread_info_to_thread_handle.
1656 (thread_db_target::thread_info_to_thread_handle): Define.
1657 * remote.c (class remote_target): Add new method
1658 thread_info_to_thread_handle.
1659 (remote_target::thread_info_to_thread_handle): Define.
1661 2019-04-08 Pedro Alves <palves@redhat.com>
1663 * common/common-exceptions.c (throw_exception): Don't create
1664 named object to throw; throw directly.
1665 (throw_it): Likewise. Don't initialize gdb_exception::message
1666 here, with new; pass FMT and AP to the ctor instead.
1667 * common/common-exceptions.h: Include <string>.
1668 (gdb_exception::gdb_exception(enum return_reason, enum errors,
1669 const char *, va_list)): New ctor. Use std::make_shared.
1670 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
1672 (gdb_exception_error::gdb_exception_error(enum errors, const char
1674 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
1676 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
1678 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
1679 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
1682 2019-04-08 Tom Tromey <tom@tromey.com>
1684 * valops.c (value_rtti_indirect_type): Replace throw_exception
1686 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
1688 * thread.c (thr_try_catch_cmd): Replace throw_exception with
1690 * target.c (target_translate_tls_address): Replace throw_exception
1692 * stack.c (frame_apply_command_count): Replace throw_exception
1694 * solib-spu.c (append_ocl_sos): Replace throw_exception with
1696 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
1698 * rs6000-tdep.c (rs6000_frame_cache)
1699 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
1700 * remote.c: Replace throw_exception with throw.
1701 * record-full.c (record_full_message, record_full_wait_1)
1702 (record_full_restore): Replace throw_exception with throw.
1704 (get_thread_current_frame_id, record_btrace_start_replaying)
1705 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
1706 (cmd_record_btrace_start): Replace throw_exception with throw.
1707 * parse.c (parse_exp_in_context_1): Replace throw_exception with
1709 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
1710 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
1712 (find_linespec_symbols): Replace throw_exception with throw.
1713 * infrun.c (displaced_step_prepare, resume): Replace
1714 throw_exception with throw.
1715 * infcmd.c (post_create_inferior): Replace throw_exception with
1717 * inf-loop.c (inferior_event_handler): Replace throw_exception
1719 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
1720 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
1721 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
1722 (get_prev_frame_always, get_frame_pc_if_available)
1723 (get_frame_address_in_block_if_available, get_frame_language):
1724 Replace throw_exception with throw.
1725 * frame-unwind.c (frame_unwind_try_unwinder): Replace
1726 throw_exception with throw.
1727 * eval.c (fetch_subexp_value, evaluate_var_value)
1728 (evaluate_funcall, evaluate_subexp_standard): Replace
1729 throw_exception with throw.
1730 * dwarf2loc.c (call_site_find_chain)
1731 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
1732 Replace throw_exception with throw.
1733 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
1735 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
1737 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
1738 * completer.c (complete_line_internal): Replace throw_exception
1740 * compile/compile-object-run.c (compile_object_run): Replace
1741 throw_exception with throw.
1742 * cli/cli-script.c (process_next_line): Replace throw_exception
1744 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
1745 (btrace_enable, btrace_maint_update_pt_packets): Replace
1746 throw_exception with throw.
1747 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
1748 throw_exception with throw.
1749 * break-catch-throw.c (re_set_exception_catchpoint): Replace
1750 throw_exception with throw.
1751 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
1752 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
1753 * aarch64-tdep.c (aarch64_make_prologue_cache)
1754 (aarch64_make_stub_cache): Replace throw_exception with throw.
1756 2019-04-08 Tom Tromey <tom@tromey.com>
1758 * common/common-exceptions.c (throw_exception): Rename from
1759 throw_exception_cxx. Remove old copy. Make argument const.
1760 (throw_it): Create and throw exception objects directly.
1761 * common/common-exceptions.h (throw_exception): Make argument
1763 (struct gdb_exception_error): Add constructor.
1764 (struct gdb_exception_quit): Add constructor.
1766 2019-04-08 Tom Tromey <tom@tromey.com>
1768 * common/common-exceptions.h (exception_rethrow): Don't declare.
1769 (TRY_SJLJ): Update comment.
1770 (TRY, CATCH, END_CATCH): Remove.
1771 * common/common-exceptions.c (exception_rethrow): Remove.
1773 2019-04-08 Tom Tromey <tom@tromey.com>
1775 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
1777 (gdb_exception_error): Rename from
1778 gdb_exception_RETURN_MASK_ERROR.
1779 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
1780 (gdb_quit_bad_alloc): Update.
1781 * aarch64-tdep.c: Update.
1782 * ada-lang.c: Update.
1783 * ada-typeprint.c: Update.
1784 * ada-valprint.c: Update.
1785 * amd64-tdep.c: Update.
1786 * arch-utils.c: Update.
1787 * break-catch-throw.c: Update.
1788 * breakpoint.c: Update.
1790 * c-varobj.c: Update.
1791 * cli/cli-cmds.c: Update.
1792 * cli/cli-interp.c: Update.
1793 * cli/cli-script.c: Update.
1794 * common/common-exceptions.c: Update.
1795 * common/new-op.c: Update.
1796 * common/selftest.c: Update.
1797 * compile/compile-c-symbols.c: Update.
1798 * compile/compile-cplus-symbols.c: Update.
1799 * compile/compile-object-load.c: Update.
1800 * compile/compile-object-run.c: Update.
1801 * completer.c: Update.
1802 * corelow.c: Update.
1804 * cp-support.c: Update.
1805 * cp-valprint.c: Update.
1806 * darwin-nat.c: Update.
1807 * disasm-selftests.c: Update.
1808 * dtrace-probe.c: Update.
1809 * dwarf-index-cache.c: Update.
1810 * dwarf-index-write.c: Update.
1811 * dwarf2-frame-tailcall.c: Update.
1812 * dwarf2-frame.c: Update.
1813 * dwarf2loc.c: Update.
1814 * dwarf2read.c: Update.
1816 * event-loop.c: Update.
1817 * event-top.c: Update.
1819 * f-valprint.c: Update.
1820 * fbsd-tdep.c: Update.
1821 * frame-unwind.c: Update.
1823 * gdbtypes.c: Update.
1824 * gnu-v3-abi.c: Update.
1825 * guile/guile-internal.h: Update.
1826 * guile/scm-block.c: Update.
1827 * guile/scm-breakpoint.c: Update.
1828 * guile/scm-cmd.c: Update.
1829 * guile/scm-disasm.c: Update.
1830 * guile/scm-frame.c: Update.
1831 * guile/scm-lazy-string.c: Update.
1832 * guile/scm-math.c: Update.
1833 * guile/scm-param.c: Update.
1834 * guile/scm-ports.c: Update.
1835 * guile/scm-pretty-print.c: Update.
1836 * guile/scm-symbol.c: Update.
1837 * guile/scm-symtab.c: Update.
1838 * guile/scm-type.c: Update.
1839 * guile/scm-value.c: Update.
1840 * i386-linux-tdep.c: Update.
1841 * i386-tdep.c: Update.
1842 * inf-loop.c: Update.
1843 * infcall.c: Update.
1847 * language.c: Update.
1848 * linespec.c: Update.
1849 * linux-fork.c: Update.
1850 * linux-nat.c: Update.
1851 * linux-tdep.c: Update.
1852 * linux-thread-db.c: Update.
1854 * mi/mi-cmd-break.c: Update.
1855 * mi/mi-cmd-stack.c: Update.
1856 * mi/mi-interp.c: Update.
1857 * mi/mi-main.c: Update.
1858 * objc-lang.c: Update.
1859 * p-valprint.c: Update.
1861 * ppc-linux-tdep.c: Update.
1862 * printcmd.c: Update.
1863 * python/py-arch.c: Update.
1864 * python/py-breakpoint.c: Update.
1865 * python/py-cmd.c: Update.
1866 * python/py-finishbreakpoint.c: Update.
1867 * python/py-frame.c: Update.
1868 * python/py-framefilter.c: Update.
1869 * python/py-gdb-readline.c: Update.
1870 * python/py-inferior.c: Update.
1871 * python/py-infthread.c: Update.
1872 * python/py-lazy-string.c: Update.
1873 * python/py-linetable.c: Update.
1874 * python/py-objfile.c: Update.
1875 * python/py-param.c: Update.
1876 * python/py-prettyprint.c: Update.
1877 * python/py-progspace.c: Update.
1878 * python/py-record-btrace.c: Update.
1879 * python/py-record.c: Update.
1880 * python/py-symbol.c: Update.
1881 * python/py-type.c: Update.
1882 * python/py-unwind.c: Update.
1883 * python/py-utils.c: Update.
1884 * python/py-value.c: Update.
1885 * python/python.c: Update.
1886 * record-btrace.c: Update.
1887 * record-full.c: Update.
1888 * remote-fileio.c: Update.
1890 * riscv-tdep.c: Update.
1891 * rs6000-aix-tdep.c: Update.
1892 * rs6000-tdep.c: Update.
1893 * rust-exp.y: Update.
1894 * rust-lang.c: Update.
1895 * s390-tdep.c: Update.
1896 * selftest-arch.c: Update.
1897 * solib-dsbt.c: Update.
1898 * solib-frv.c: Update.
1899 * solib-spu.c: Update.
1900 * solib-svr4.c: Update.
1902 * sparc64-linux-tdep.c: Update.
1904 * symfile-mem.c: Update.
1905 * symmisc.c: Update.
1909 * tracefile-tfile.c: Update.
1910 * tui/tui.c: Update.
1911 * typeprint.c: Update.
1912 * unittests/cli-utils-selftests.c: Update.
1913 * unittests/parse-connection-spec-selftests.c: Update.
1915 * valprint.c: Update.
1918 * windows-nat.c: Update.
1919 * x86-linux-nat.c: Update.
1920 * xml-support.c: Update.
1922 2019-04-08 Tom Tromey <tom@tromey.com>
1924 * xml-support.c: Use C++ exception handling.
1925 * x86-linux-nat.c: Use C++ exception handling.
1926 * windows-nat.c: Use C++ exception handling.
1927 * varobj.c: Use C++ exception handling.
1928 * value.c: Use C++ exception handling.
1929 * valprint.c: Use C++ exception handling.
1930 * valops.c: Use C++ exception handling.
1931 * unittests/parse-connection-spec-selftests.c: Use C++ exception
1933 * unittests/cli-utils-selftests.c: Use C++ exception handling.
1934 * typeprint.c: Use C++ exception handling.
1935 * tui/tui.c: Use C++ exception handling.
1936 * tracefile-tfile.c: Use C++ exception handling.
1937 * top.c: Use C++ exception handling.
1938 * thread.c: Use C++ exception handling.
1939 * target.c: Use C++ exception handling.
1940 * symmisc.c: Use C++ exception handling.
1941 * symfile-mem.c: Use C++ exception handling.
1942 * stack.c: Use C++ exception handling.
1943 * sparc64-linux-tdep.c: Use C++ exception handling.
1944 * solib.c: Use C++ exception handling.
1945 * solib-svr4.c: Use C++ exception handling.
1946 * solib-spu.c: Use C++ exception handling.
1947 * solib-frv.c: Use C++ exception handling.
1948 * solib-dsbt.c: Use C++ exception handling.
1949 * selftest-arch.c: Use C++ exception handling.
1950 * s390-tdep.c: Use C++ exception handling.
1951 * rust-lang.c: Use C++ exception handling.
1952 * rust-exp.y: Use C++ exception handling.
1953 * rs6000-tdep.c: Use C++ exception handling.
1954 * rs6000-aix-tdep.c: Use C++ exception handling.
1955 * riscv-tdep.c: Use C++ exception handling.
1956 * remote.c: Use C++ exception handling.
1957 * remote-fileio.c: Use C++ exception handling.
1958 * record-full.c: Use C++ exception handling.
1959 * record-btrace.c: Use C++ exception handling.
1960 * python/python.c: Use C++ exception handling.
1961 * python/py-value.c: Use C++ exception handling.
1962 * python/py-utils.c: Use C++ exception handling.
1963 * python/py-unwind.c: Use C++ exception handling.
1964 * python/py-type.c: Use C++ exception handling.
1965 * python/py-symbol.c: Use C++ exception handling.
1966 * python/py-record.c: Use C++ exception handling.
1967 * python/py-record-btrace.c: Use C++ exception handling.
1968 * python/py-progspace.c: Use C++ exception handling.
1969 * python/py-prettyprint.c: Use C++ exception handling.
1970 * python/py-param.c: Use C++ exception handling.
1971 * python/py-objfile.c: Use C++ exception handling.
1972 * python/py-linetable.c: Use C++ exception handling.
1973 * python/py-lazy-string.c: Use C++ exception handling.
1974 * python/py-infthread.c: Use C++ exception handling.
1975 * python/py-inferior.c: Use C++ exception handling.
1976 * python/py-gdb-readline.c: Use C++ exception handling.
1977 * python/py-framefilter.c: Use C++ exception handling.
1978 * python/py-frame.c: Use C++ exception handling.
1979 * python/py-finishbreakpoint.c: Use C++ exception handling.
1980 * python/py-cmd.c: Use C++ exception handling.
1981 * python/py-breakpoint.c: Use C++ exception handling.
1982 * python/py-arch.c: Use C++ exception handling.
1983 * printcmd.c: Use C++ exception handling.
1984 * ppc-linux-tdep.c: Use C++ exception handling.
1985 * parse.c: Use C++ exception handling.
1986 * p-valprint.c: Use C++ exception handling.
1987 * objc-lang.c: Use C++ exception handling.
1988 * mi/mi-main.c: Use C++ exception handling.
1989 * mi/mi-interp.c: Use C++ exception handling.
1990 * mi/mi-cmd-stack.c: Use C++ exception handling.
1991 * mi/mi-cmd-break.c: Use C++ exception handling.
1992 * main.c: Use C++ exception handling.
1993 * linux-thread-db.c: Use C++ exception handling.
1994 * linux-tdep.c: Use C++ exception handling.
1995 * linux-nat.c: Use C++ exception handling.
1996 * linux-fork.c: Use C++ exception handling.
1997 * linespec.c: Use C++ exception handling.
1998 * language.c: Use C++ exception handling.
1999 * jit.c: Use C++ exception handling.
2000 * infrun.c: Use C++ exception handling.
2001 * infcmd.c: Use C++ exception handling.
2002 * infcall.c: Use C++ exception handling.
2003 * inf-loop.c: Use C++ exception handling.
2004 * i386-tdep.c: Use C++ exception handling.
2005 * i386-linux-tdep.c: Use C++ exception handling.
2006 * guile/scm-value.c: Use C++ exception handling.
2007 * guile/scm-type.c: Use C++ exception handling.
2008 * guile/scm-symtab.c: Use C++ exception handling.
2009 * guile/scm-symbol.c: Use C++ exception handling.
2010 * guile/scm-pretty-print.c: Use C++ exception handling.
2011 * guile/scm-ports.c: Use C++ exception handling.
2012 * guile/scm-param.c: Use C++ exception handling.
2013 * guile/scm-math.c: Use C++ exception handling.
2014 * guile/scm-lazy-string.c: Use C++ exception handling.
2015 * guile/scm-frame.c: Use C++ exception handling.
2016 * guile/scm-disasm.c: Use C++ exception handling.
2017 * guile/scm-cmd.c: Use C++ exception handling.
2018 * guile/scm-breakpoint.c: Use C++ exception handling.
2019 * guile/scm-block.c: Use C++ exception handling.
2020 * guile/guile-internal.h: Use C++ exception handling.
2021 * gnu-v3-abi.c: Use C++ exception handling.
2022 * gdbtypes.c: Use C++ exception handling.
2023 * frame.c: Use C++ exception handling.
2024 * frame-unwind.c: Use C++ exception handling.
2025 * fbsd-tdep.c: Use C++ exception handling.
2026 * f-valprint.c: Use C++ exception handling.
2027 * exec.c: Use C++ exception handling.
2028 * event-top.c: Use C++ exception handling.
2029 * event-loop.c: Use C++ exception handling.
2030 * eval.c: Use C++ exception handling.
2031 * dwarf2read.c: Use C++ exception handling.
2032 * dwarf2loc.c: Use C++ exception handling.
2033 * dwarf2-frame.c: Use C++ exception handling.
2034 * dwarf2-frame-tailcall.c: Use C++ exception handling.
2035 * dwarf-index-write.c: Use C++ exception handling.
2036 * dwarf-index-cache.c: Use C++ exception handling.
2037 * dtrace-probe.c: Use C++ exception handling.
2038 * disasm-selftests.c: Use C++ exception handling.
2039 * darwin-nat.c: Use C++ exception handling.
2040 * cp-valprint.c: Use C++ exception handling.
2041 * cp-support.c: Use C++ exception handling.
2042 * cp-abi.c: Use C++ exception handling.
2043 * corelow.c: Use C++ exception handling.
2044 * completer.c: Use C++ exception handling.
2045 * compile/compile-object-run.c: Use C++ exception handling.
2046 * compile/compile-object-load.c: Use C++ exception handling.
2047 * compile/compile-cplus-symbols.c: Use C++ exception handling.
2048 * compile/compile-c-symbols.c: Use C++ exception handling.
2049 * common/selftest.c: Use C++ exception handling.
2050 * common/new-op.c: Use C++ exception handling.
2051 * cli/cli-script.c: Use C++ exception handling.
2052 * cli/cli-interp.c: Use C++ exception handling.
2053 * cli/cli-cmds.c: Use C++ exception handling.
2054 * c-varobj.c: Use C++ exception handling.
2055 * btrace.c: Use C++ exception handling.
2056 * breakpoint.c: Use C++ exception handling.
2057 * break-catch-throw.c: Use C++ exception handling.
2058 * arch-utils.c: Use C++ exception handling.
2059 * amd64-tdep.c: Use C++ exception handling.
2060 * ada-valprint.c: Use C++ exception handling.
2061 * ada-typeprint.c: Use C++ exception handling.
2062 * ada-lang.c: Use C++ exception handling.
2063 * aarch64-tdep.c: Use C++ exception handling.
2065 2019-04-08 Tom Tromey <tom@tromey.com>
2067 * xml-support.c (gdb_xml_parser::parse): Update.
2068 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2069 * value.c (show_convenience): Update.
2070 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
2071 (test_parse_flags_qcs): Update.
2072 * thread.c (thr_try_catch_cmd): Update.
2073 * target.c (target_translate_tls_address): Update.
2074 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2075 (info_frame_command_core, frame_apply_command_count): Update.
2076 * rust-exp.y (rust_lex_exception_test): Update.
2077 * riscv-tdep.c (riscv_print_one_register_info): Update.
2078 * remote.c (remote_target::enable_btrace): Update.
2079 * record-btrace.c (record_btrace_enable_warn): Update.
2080 * python/py-utils.c (gdbpy_convert_exception): Update.
2081 * printcmd.c (do_one_display, print_variable_and_value): Update.
2082 * mi/mi-main.c (mi_print_exception): Update.
2083 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
2084 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2085 * linux-nat.c (linux_nat_target::attach): Update.
2086 * linux-fork.c (class scoped_switch_fork_info): Update.
2087 * infrun.c (displaced_step_prepare): Update.
2088 * infcall.c (call_function_by_hand_dummy): Update.
2089 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
2090 * gnu-v3-abi.c (print_one_vtable): Update.
2091 * frame.c (get_prev_frame_always): Update.
2092 * f-valprint.c (info_common_command_for_block): Update.
2093 * exec.c (try_open_exec_file): Update.
2094 * exceptions.c (print_exception, exception_print)
2095 (exception_fprintf, exception_print_same): Update.
2096 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
2097 * dwarf-index-cache.c (index_cache::store)
2098 (index_cache::lookup_gdb_index): Update.
2099 * darwin-nat.c (maybe_cache_shell): Update.
2100 * cp-valprint.c (cp_print_value_fields): Update.
2101 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
2102 (gcc_cplus_symbol_address): Update.
2103 * compile/compile-c-symbols.c (gcc_convert_symbol)
2104 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
2105 * common/selftest.c: Update.
2106 * common/common-exceptions.h (struct gdb_exception) <message>: Now
2108 (exception_try_scope_entry, exception_try_scope_exit): Don't
2110 (struct exception_try_scope): Remove.
2111 (TRY): Don't use exception_try_scope.
2112 (struct gdb_exception): Add constructor, operator=.
2114 (struct gdb_exception_RETURN_MASK_ALL)
2115 (struct gdb_exception_RETURN_MASK_ERROR)
2116 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
2117 (struct gdb_quit_bad_alloc): Update.
2118 * common/common-exceptions.c (exception_none): Change
2120 (struct catcher) <state, exception>: Initialize inline.
2121 <prev>: Remove member.
2122 (current_catcher): Remove.
2123 (catchers): New global.
2124 (exceptions_state_mc_init): Simplify.
2125 (catcher_pop): Remove.
2126 (exceptions_state_mc, exceptions_state_mc_catch): Update.
2127 (try_scope_depth, exception_try_scope_entry)
2128 (exception_try_scope_exit): Remove.
2129 (throw_exception_sjlj): Update.
2130 (exception_messages, exception_messages_size): Remove.
2131 (throw_it): Simplify.
2132 (gdb_exception_sliced_copy): Remove.
2133 (throw_exception_cxx): Update.
2134 * cli/cli-script.c (script_from_file): Update.
2135 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
2137 * ada-valprint.c (ada_val_print): Update.
2138 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
2139 (create_excep_cond_exprs): Update.
2141 2019-04-08 Tom Tromey <tom@tromey.com>
2143 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
2144 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
2145 (TRY, CATCH, END_CATCH): Remove some definitions.
2146 * common/common-exceptions.c: Don't use GDB_XCPT.
2147 (catcher_list_size): Remove.
2148 (throw_exception, throw_it): Simplify.
2150 2019-04-05 Tom Tromey <tom@tromey.com>
2152 Revert the header-sorting patch.
2153 * ft32-tdep.c: Revert.
2154 * frv-tdep.c: Revert.
2155 * frv-linux-tdep.c: Revert.
2157 * frame-unwind.c: Revert.
2158 * frame-base.c: Revert.
2159 * fork-child.c: Revert.
2160 * findvar.c: Revert.
2161 * findcmd.c: Revert.
2162 * filesystem.c: Revert.
2163 * filename-seen-cache.h: Revert.
2164 * filename-seen-cache.c: Revert.
2165 * fbsd-tdep.c: Revert.
2166 * fbsd-nat.h: Revert.
2167 * fbsd-nat.c: Revert.
2168 * f-valprint.c: Revert.
2169 * f-typeprint.c: Revert.
2171 * extension.h: Revert.
2172 * extension.c: Revert.
2173 * extension-priv.h: Revert.
2174 * expprint.c: Revert.
2177 * exceptions.c: Revert.
2178 * event-top.c: Revert.
2179 * event-loop.c: Revert.
2181 * elfread.c: Revert.
2182 * dwarf2read.h: Revert.
2183 * dwarf2read.c: Revert.
2184 * dwarf2loc.c: Revert.
2185 * dwarf2expr.h: Revert.
2186 * dwarf2expr.c: Revert.
2187 * dwarf2-frame.c: Revert.
2188 * dwarf2-frame-tailcall.c: Revert.
2189 * dwarf-index-write.h: Revert.
2190 * dwarf-index-write.c: Revert.
2191 * dwarf-index-common.c: Revert.
2192 * dwarf-index-cache.h: Revert.
2193 * dwarf-index-cache.c: Revert.
2194 * dummy-frame.c: Revert.
2195 * dtrace-probe.c: Revert.
2198 * disasm-selftests.c: Revert.
2199 * dictionary.c: Revert.
2200 * dicos-tdep.c: Revert.
2201 * demangle.c: Revert.
2204 * darwin-nat.h: Revert.
2205 * darwin-nat.c: Revert.
2206 * darwin-nat-info.c: Revert.
2207 * d-valprint.c: Revert.
2208 * d-namespace.c: Revert.
2211 * csky-tdep.c: Revert.
2212 * csky-linux-tdep.c: Revert.
2213 * cris-tdep.c: Revert.
2214 * cris-linux-tdep.c: Revert.
2215 * cp-valprint.c: Revert.
2216 * cp-support.c: Revert.
2217 * cp-namespace.c: Revert.
2219 * corelow.c: Revert.
2220 * corefile.c: Revert.
2221 * continuations.c: Revert.
2222 * completer.h: Revert.
2223 * completer.c: Revert.
2224 * complaints.c: Revert.
2225 * coffread.c: Revert.
2226 * coff-pe-read.c: Revert.
2227 * cli-out.h: Revert.
2228 * cli-out.c: Revert.
2229 * charset.c: Revert.
2230 * c-varobj.c: Revert.
2231 * c-valprint.c: Revert.
2232 * c-typeprint.c: Revert.
2234 * buildsym.c: Revert.
2235 * buildsym-legacy.c: Revert.
2236 * build-id.h: Revert.
2237 * build-id.c: Revert.
2239 * bsd-uthread.c: Revert.
2240 * breakpoint.h: Revert.
2241 * breakpoint.c: Revert.
2242 * break-catch-throw.c: Revert.
2243 * break-catch-syscall.c: Revert.
2244 * break-catch-sig.c: Revert.
2245 * blockframe.c: Revert.
2247 * bfin-tdep.c: Revert.
2248 * bfin-linux-tdep.c: Revert.
2249 * bfd-target.c: Revert.
2251 * ax-general.c: Revert.
2254 * avr-tdep.c: Revert.
2256 * auto-load.c: Revert.
2257 * arm-wince-tdep.c: Revert.
2258 * arm-tdep.c: Revert.
2259 * arm-symbian-tdep.c: Revert.
2260 * arm-pikeos-tdep.c: Revert.
2261 * arm-obsd-tdep.c: Revert.
2262 * arm-nbsd-tdep.c: Revert.
2263 * arm-nbsd-nat.c: Revert.
2264 * arm-linux-tdep.c: Revert.
2265 * arm-linux-nat.c: Revert.
2266 * arm-fbsd-tdep.c: Revert.
2267 * arm-fbsd-nat.c: Revert.
2268 * arm-bsd-tdep.c: Revert.
2269 * arch-utils.c: Revert.
2270 * arc-tdep.c: Revert.
2271 * arc-newlib-tdep.c: Revert.
2272 * annotate.h: Revert.
2273 * annotate.c: Revert.
2274 * amd64-windows-tdep.c: Revert.
2275 * amd64-windows-nat.c: Revert.
2276 * amd64-tdep.c: Revert.
2277 * amd64-sol2-tdep.c: Revert.
2278 * amd64-obsd-tdep.c: Revert.
2279 * amd64-obsd-nat.c: Revert.
2280 * amd64-nbsd-tdep.c: Revert.
2281 * amd64-nbsd-nat.c: Revert.
2282 * amd64-nat.c: Revert.
2283 * amd64-linux-tdep.c: Revert.
2284 * amd64-linux-nat.c: Revert.
2285 * amd64-fbsd-tdep.c: Revert.
2286 * amd64-fbsd-nat.c: Revert.
2287 * amd64-dicos-tdep.c: Revert.
2288 * amd64-darwin-tdep.c: Revert.
2289 * amd64-bsd-nat.c: Revert.
2290 * alpha-tdep.c: Revert.
2291 * alpha-obsd-tdep.c: Revert.
2292 * alpha-nbsd-tdep.c: Revert.
2293 * alpha-mdebug-tdep.c: Revert.
2294 * alpha-linux-tdep.c: Revert.
2295 * alpha-linux-nat.c: Revert.
2296 * alpha-bsd-tdep.c: Revert.
2297 * alpha-bsd-nat.c: Revert.
2298 * aix-thread.c: Revert.
2300 * addrmap.c: Revert.
2301 * ada-varobj.c: Revert.
2302 * ada-valprint.c: Revert.
2303 * ada-typeprint.c: Revert.
2304 * ada-tasks.c: Revert.
2305 * ada-lang.c: Revert.
2306 * aarch64-tdep.c: Revert.
2307 * aarch64-ravenscar-thread.c: Revert.
2308 * aarch64-newlib-tdep.c: Revert.
2309 * aarch64-linux-tdep.c: Revert.
2310 * aarch64-linux-nat.c: Revert.
2311 * aarch64-fbsd-tdep.c: Revert.
2312 * aarch64-fbsd-nat.c: Revert.
2313 * aarch32-linux-nat.c: Revert.
2315 2019-04-05 Tom Tromey <tom@tromey.com>
2317 * ft32-tdep.c: Sort headers.
2318 * frv-tdep.c: Sort headers.
2319 * frv-linux-tdep.c: Sort headers.
2320 * frame.c: Sort headers.
2321 * frame-unwind.c: Sort headers.
2322 * frame-base.c: Sort headers.
2323 * fork-child.c: Sort headers.
2324 * findvar.c: Sort headers.
2325 * findcmd.c: Sort headers.
2326 * filesystem.c: Sort headers.
2327 * filename-seen-cache.h: Sort headers.
2328 * filename-seen-cache.c: Sort headers.
2329 * fbsd-tdep.c: Sort headers.
2330 * fbsd-nat.h: Sort headers.
2331 * fbsd-nat.c: Sort headers.
2332 * f-valprint.c: Sort headers.
2333 * f-typeprint.c: Sort headers.
2334 * f-lang.c: Sort headers.
2335 * extension.h: Sort headers.
2336 * extension.c: Sort headers.
2337 * extension-priv.h: Sort headers.
2338 * expprint.c: Sort headers.
2339 * exec.h: Sort headers.
2340 * exec.c: Sort headers.
2341 * exceptions.c: Sort headers.
2342 * event-top.c: Sort headers.
2343 * event-loop.c: Sort headers.
2344 * eval.c: Sort headers.
2345 * elfread.c: Sort headers.
2346 * dwarf2read.h: Sort headers.
2347 * dwarf2read.c: Sort headers.
2348 * dwarf2loc.c: Sort headers.
2349 * dwarf2expr.h: Sort headers.
2350 * dwarf2expr.c: Sort headers.
2351 * dwarf2-frame.c: Sort headers.
2352 * dwarf2-frame-tailcall.c: Sort headers.
2353 * dwarf-index-write.h: Sort headers.
2354 * dwarf-index-write.c: Sort headers.
2355 * dwarf-index-common.c: Sort headers.
2356 * dwarf-index-cache.h: Sort headers.
2357 * dwarf-index-cache.c: Sort headers.
2358 * dummy-frame.c: Sort headers.
2359 * dtrace-probe.c: Sort headers.
2360 * disasm.h: Sort headers.
2361 * disasm.c: Sort headers.
2362 * disasm-selftests.c: Sort headers.
2363 * dictionary.c: Sort headers.
2364 * dicos-tdep.c: Sort headers.
2365 * demangle.c: Sort headers.
2366 * dcache.h: Sort headers.
2367 * dcache.c: Sort headers.
2368 * darwin-nat.h: Sort headers.
2369 * darwin-nat.c: Sort headers.
2370 * darwin-nat-info.c: Sort headers.
2371 * d-valprint.c: Sort headers.
2372 * d-namespace.c: Sort headers.
2373 * d-lang.c: Sort headers.
2374 * ctf.c: Sort headers.
2375 * csky-tdep.c: Sort headers.
2376 * csky-linux-tdep.c: Sort headers.
2377 * cris-tdep.c: Sort headers.
2378 * cris-linux-tdep.c: Sort headers.
2379 * cp-valprint.c: Sort headers.
2380 * cp-support.c: Sort headers.
2381 * cp-namespace.c: Sort headers.
2382 * cp-abi.c: Sort headers.
2383 * corelow.c: Sort headers.
2384 * corefile.c: Sort headers.
2385 * continuations.c: Sort headers.
2386 * completer.h: Sort headers.
2387 * completer.c: Sort headers.
2388 * complaints.c: Sort headers.
2389 * coffread.c: Sort headers.
2390 * coff-pe-read.c: Sort headers.
2391 * cli-out.h: Sort headers.
2392 * cli-out.c: Sort headers.
2393 * charset.c: Sort headers.
2394 * c-varobj.c: Sort headers.
2395 * c-valprint.c: Sort headers.
2396 * c-typeprint.c: Sort headers.
2397 * c-lang.c: Sort headers.
2398 * buildsym.c: Sort headers.
2399 * buildsym-legacy.c: Sort headers.
2400 * build-id.h: Sort headers.
2401 * build-id.c: Sort headers.
2402 * btrace.c: Sort headers.
2403 * bsd-uthread.c: Sort headers.
2404 * breakpoint.h: Sort headers.
2405 * breakpoint.c: Sort headers.
2406 * break-catch-throw.c: Sort headers.
2407 * break-catch-syscall.c: Sort headers.
2408 * break-catch-sig.c: Sort headers.
2409 * blockframe.c: Sort headers.
2410 * block.c: Sort headers.
2411 * bfin-tdep.c: Sort headers.
2412 * bfin-linux-tdep.c: Sort headers.
2413 * bfd-target.c: Sort headers.
2414 * bcache.c: Sort headers.
2415 * ax-general.c: Sort headers.
2416 * ax-gdb.h: Sort headers.
2417 * ax-gdb.c: Sort headers.
2418 * avr-tdep.c: Sort headers.
2419 * auxv.c: Sort headers.
2420 * auto-load.c: Sort headers.
2421 * arm-wince-tdep.c: Sort headers.
2422 * arm-tdep.c: Sort headers.
2423 * arm-symbian-tdep.c: Sort headers.
2424 * arm-pikeos-tdep.c: Sort headers.
2425 * arm-obsd-tdep.c: Sort headers.
2426 * arm-nbsd-tdep.c: Sort headers.
2427 * arm-nbsd-nat.c: Sort headers.
2428 * arm-linux-tdep.c: Sort headers.
2429 * arm-linux-nat.c: Sort headers.
2430 * arm-fbsd-tdep.c: Sort headers.
2431 * arm-fbsd-nat.c: Sort headers.
2432 * arm-bsd-tdep.c: Sort headers.
2433 * arch-utils.c: Sort headers.
2434 * arc-tdep.c: Sort headers.
2435 * arc-newlib-tdep.c: Sort headers.
2436 * annotate.h: Sort headers.
2437 * annotate.c: Sort headers.
2438 * amd64-windows-tdep.c: Sort headers.
2439 * amd64-windows-nat.c: Sort headers.
2440 * amd64-tdep.c: Sort headers.
2441 * amd64-sol2-tdep.c: Sort headers.
2442 * amd64-obsd-tdep.c: Sort headers.
2443 * amd64-obsd-nat.c: Sort headers.
2444 * amd64-nbsd-tdep.c: Sort headers.
2445 * amd64-nbsd-nat.c: Sort headers.
2446 * amd64-nat.c: Sort headers.
2447 * amd64-linux-tdep.c: Sort headers.
2448 * amd64-linux-nat.c: Sort headers.
2449 * amd64-fbsd-tdep.c: Sort headers.
2450 * amd64-fbsd-nat.c: Sort headers.
2451 * amd64-dicos-tdep.c: Sort headers.
2452 * amd64-darwin-tdep.c: Sort headers.
2453 * amd64-bsd-nat.c: Sort headers.
2454 * alpha-tdep.c: Sort headers.
2455 * alpha-obsd-tdep.c: Sort headers.
2456 * alpha-nbsd-tdep.c: Sort headers.
2457 * alpha-mdebug-tdep.c: Sort headers.
2458 * alpha-linux-tdep.c: Sort headers.
2459 * alpha-linux-nat.c: Sort headers.
2460 * alpha-bsd-tdep.c: Sort headers.
2461 * alpha-bsd-nat.c: Sort headers.
2462 * aix-thread.c: Sort headers.
2463 * agent.c: Sort headers.
2464 * addrmap.c: Sort headers.
2465 * ada-varobj.c: Sort headers.
2466 * ada-valprint.c: Sort headers.
2467 * ada-typeprint.c: Sort headers.
2468 * ada-tasks.c: Sort headers.
2469 * ada-lang.c: Sort headers.
2470 * aarch64-tdep.c: Sort headers.
2471 * aarch64-ravenscar-thread.c: Sort headers.
2472 * aarch64-newlib-tdep.c: Sort headers.
2473 * aarch64-linux-tdep.c: Sort headers.
2474 * aarch64-linux-nat.c: Sort headers.
2475 * aarch64-fbsd-tdep.c: Sort headers.
2476 * aarch64-fbsd-nat.c: Sort headers.
2477 * aarch32-linux-nat.c: Sort headers.
2479 2019-04-04 Tom Tromey <tom@tromey.com>
2481 * varobj.c (varobj_create): Update.
2482 * rust-exp.y (struct rust_parser) <update_innermost_block,
2483 lookup_symbol>: New methods.
2484 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
2486 (rust_parser::rust_lookup_type)
2487 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2488 * printcmd.c (display_command, do_one_display): Update.
2489 * parser-defs.h (struct parser_state) <parser_state>: Add
2490 "tracker" parameter.
2491 (block_tracker): New member.
2492 (class innermost_block_tracker) <innermost_block_tracker>: Add
2494 <reset>: Remove method.
2495 (innermost_block): Don't declare.
2496 (null_post_parser): Update.
2497 * parse.c (innermost_block): Remove global.
2498 (write_dollar_variable): Update.
2499 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
2500 Remove "tracker_types" parameter.
2501 (parse_expression): Add "tracker" parameter.
2502 (parse_expression_for_completion): Update.
2503 (null_post_parser): Add "tracker" parameter.
2504 * p-exp.y: Update rules.
2505 * m2-exp.y: Update rules.
2506 * language.h (struct language_defn) <la_post_parser>: Add
2507 "tracker" parameter.
2508 * go-exp.y: Update rules.
2509 * f-exp.y: Update rules.
2510 * expression.h (parse_expression, parse_exp_1): Add "tracker"
2512 * d-exp.y: Update rules.
2513 * c-exp.y: Update rules.
2514 * breakpoint.c (set_breakpoint_condition): Create an
2515 innermost_block_tracker.
2516 (watch_command_1): Likewise.
2517 * ada-lang.c (resolve): Add "tracker" parameter.
2518 (resolve_subexp): Likewise.
2519 * ada-exp.y (write_var_from_sym): Update.
2521 2019-04-04 Tom Tromey <tom@tromey.com>
2523 * type-stack.h: New file.
2524 * type-stack.c: New file.
2525 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
2527 (insert_into_type_stack, insert_type, push_type, push_type_int)
2528 (insert_type_address_space, pop_type, pop_type_int)
2529 (pop_typelist, pop_type_stack, append_type_stack)
2530 (push_type_stack, get_type_stack, push_typelist)
2531 (follow_type_instance_flags, follow_types): Don't declare.
2532 * parse.c (type_stack): Remove global.
2533 (parse_exp_in_context): Update.
2534 (insert_into_type_stack, insert_type, push_type, push_type_int)
2535 (insert_type_address_space, pop_type, pop_type_int)
2536 (pop_typelist, pop_type_stack, append_type_stack)
2537 (push_type_stack, get_type_stack, push_typelist)
2538 (follow_type_instance_flags, follow_types): Remove (moved to
2540 * f-exp.y (type_stack): New global.
2542 (push_kind_type, f_parse): Update.
2543 * d-exp.y (type_stack): New global.
2546 * c-exp.y (struct c_parse_state) <type_stack>: New member.
2548 * Makefile.in (COMMON_SFILES): Add type-stack.c.
2549 (HFILES_NO_SRCDIR): Add type-stack.h.
2551 2019-04-04 Tom Tromey <tom@tromey.com>
2553 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
2554 (rust_parser::convert_ast_to_expression, rust_parse)
2555 (rust_lex_test_completion, rust_lex_tests): Update.
2556 * parser-defs.h (struct expr_completion_state): New.
2557 (struct parser_state) <parser_state>: Add completion parameter.
2558 <mark_struct_expression, mark_completion_tag>: New methods.
2559 <parse_completion, m_completion_state>: New members.
2560 (prefixify_expression, null_post_parser): Update.
2561 (mark_struct_expression, mark_completion_tag): Don't declare.
2562 * parse.c (parse_completion, expout_last_struct)
2563 (expout_tag_completion_type, expout_completion_name): Remove
2565 (parser_state::mark_struct_expression)
2566 (parser_state::mark_completion_tag): Now methods.
2567 (prefixify_expression): Add last_struct parameter.
2568 (prefixify_subexp): Likewise.
2569 (parse_exp_1): Update.
2570 (parse_exp_in_context): Add cstate parameter. Update.
2571 (parse_expression_for_completion): Create an
2572 expr_completion_state.
2573 (null_post_parser): Add "completion" parameter.
2574 * p-exp.y: Update rules.
2576 * language.h (struct language_defn) <la_post_parser>: Add
2577 "completing" parameter.
2578 * go-exp.y: Update rules.
2579 (lex_one_token): Update.
2580 * expression.h (parse_completion): Don't declare.
2581 * d-exp.y: Update rules.
2582 (lex_one_token): Update rules.
2583 * c-exp.y: Update rules.
2584 (lex_one_token): Update.
2585 * ada-lang.c (resolve): Add "parse_completion" parameter.
2586 (resolve_subexp): Likewise.
2587 (ada_resolve_function): Likewise.
2589 2019-04-04 Tom Tromey <tom@tromey.com>
2591 * parser-defs.h (struct parser_state) <start_arglist,
2592 end_arglist>: New methods.
2593 <arglist_len, m_funcall_chain>: New members.
2594 (arglist_len, start_arglist, end_arglist): Don't declare.
2595 * parse.c (arglist_len, funcall_chain): Remove global.
2596 (start_arglist, end_arglist): Remove functions.
2597 (parse_exp_in_context): Update.
2598 * p-exp.y: Update rules.
2599 * m2-exp.y: Update rules.
2600 * go-exp.y: Update rules.
2601 * f-exp.y: Update rules.
2602 * d-exp.y: Update rules.
2603 * c-exp.y: Update rules.
2605 2019-04-04 Tom Tromey <tom@tromey.com>
2607 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
2608 lex_operator, push_back>: New methods.
2610 (rust_parser::lex_hex, lex_escape): Rename and update.
2611 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
2612 (rust_parser::lex_operator): Rename and update.
2613 (rust_parser::lex_number, rustyylex, rustyyerror)
2614 (rust_lex_test_init, rust_lex_test_sequence)
2615 (rust_lex_test_push_back, rust_lex_tests): Update.
2616 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
2618 <lexptr, prev_lexptr>: New members.
2619 (lexptr, prev_lexptr): Don't declare.
2620 * parse.c (lexptr, prev_lexptr): Remove globals.
2621 (parse_exp_in_context): Update.
2622 * p-exp.y (yylex, yyerror): Update.
2623 * m2-exp.y (parse_number, yylex, yyerror): Update.
2624 * go-exp.y (lex_one_token, yyerror): Update.
2625 * f-exp.y (match_string_literal, yylex, yyerror): Update.
2626 * d-exp.y (lex_one_token, yyerror): Update.
2627 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
2628 (lex_one_token, yyerror): Update.
2629 * ada-lex.l (YY_INPUT): Update.
2630 (rewind_to_char): Update.
2631 * ada-exp.y (yyerror): Update.
2633 2019-04-04 Tom Tromey <tom@tromey.com>
2635 * rust-exp.y (rustyylex, rust_lex_tests): Update.
2636 * parser-defs.h (struct parser_state) <parser_state>: Add new
2638 <comma_terminates>: New member.
2639 (comma_terminates): Don't declare global.
2640 * parse.c (comma_terminates): Remove global.
2641 (parse_exp_in_context): Update.
2642 * p-exp.y (yylex): Update.
2643 * m2-exp.y (yylex): Update.
2644 * go-exp.y (lex_one_token): Update.
2645 * f-exp.y (yylex): Update.
2646 * d-exp.y (lex_one_token): Update.
2647 * c-exp.y (lex_one_token): Update.
2648 * ada-lex.l: Update.
2650 2019-04-04 Tom Tromey <tom@tromey.com>
2652 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
2653 (rustyylex, rust_lex_test_init, rust_lex_test_one)
2654 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
2655 * parser-defs.h (paren_depth): Don't declare.
2656 * parse.c (paren_depth): Remove global.
2657 (parse_exp_in_context): Update.
2658 * p-exp.y (paren_depth): New global.
2659 (pascal_parse): Initialize it.
2660 * m2-exp.y (paren_depth): New global.
2661 (m2_parse): Initialize it.
2662 * go-exp.y (paren_depth): New global.
2663 (go_parse): Initialize it.
2664 * f-exp.y (paren_depth): New global.
2665 (f_parse): Initialize it.
2666 * d-exp.y (paren_depth): New global.
2667 (d_parse): Initialize it.
2668 * c-exp.y (paren_depth): New global.
2669 (c_parse): Initialize it.
2670 * ada-lex.l (paren_depth): New global.
2671 (lexer_init): Initialize it.
2673 2019-04-04 Tom Tromey <tom@tromey.com>
2675 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
2676 (rust_parser::convert_ast_to_type)
2677 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2678 * parser-defs.h (struct parser_state) <parser_state>: Add
2679 parameters. Initialize new members.
2680 <expression_context_block, expression_context_pc>: New members.
2681 * parse.c (expression_context_block, expression_context_pc):
2683 (parse_exp_in_context): Update.
2684 * p-exp.y: Update all rules.
2686 * m2-exp.y: Update all rules.
2688 * go-exp.y (yylex): Update.
2689 * f-exp.y (yylex): Update.
2690 * d-exp.y: Update all rules.
2692 * c-exp.y: Update all rules.
2693 (lex_one_token, classify_name, yylex, c_parse): Update.
2694 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
2696 2019-04-04 Tom Tromey <tom@tromey.com>
2698 * gdbarch.h, gdbarch.c: Rebuild.
2699 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
2701 (struct stap_parse_info): Replace "parser_state" with
2703 * parser-defs.h (struct expr_builder): Rename from "parser_state".
2704 (parser_state): New class.
2705 * parse.c (expr_builder): Rename.
2706 (expr_builder::release): Rename.
2707 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2708 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2709 (write_exp_elt_longcst, write_exp_elt_floatcst)
2710 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2711 (write_exp_string_vector, write_exp_bitstring)
2712 (write_exp_msymbol, mark_struct_expression)
2713 (write_dollar_variable)
2714 (insert_type_address_space, increase_expout_size): Replace
2715 "parser_state" with "expr_builder".
2716 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
2717 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
2718 "parser_state" with "expr_builder".
2720 2019-04-04 Tom Tromey <tom@tromey.com>
2722 * rust-exp.y: Replace "parse_language" with method call.
2724 (yylex): Replace "parse_language" with method call.
2726 (yylex): Replace "parse_language" with method call.
2727 * go-exp.y (classify_name): Replace "parse_language" with method
2729 * f-exp.y (yylex): Replace "parse_language" with method call.
2730 * d-exp.y (lex_one_token): Replace "parse_language" with method
2733 (lex_one_token, classify_name, yylex): Replace "parse_language"
2735 * ada-exp.y (find_primitive_type, type_char)
2736 (type_system_address): Replace "parse_language" with method call.
2738 2019-04-04 Tom Tromey <tom@tromey.com>
2740 * rust-exp.y: Replace "parse_gdbarch" with method call.
2741 * parse.c (write_dollar_variable, insert_type_address_space):
2742 Replace "parse_gdbarch" with method call.
2743 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
2745 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
2747 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
2748 "parse_gdbarch" with method call.
2749 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
2751 * f-exp.y (parse_type, parse_f_type, yylex): Replace
2752 "parse_gdbarch" with method call.
2753 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
2754 "parse_gdbarch" with method call.
2755 * c-exp.y (parse_type, parse_number, classify_name): Replace
2756 "parse_gdbarch" with method call.
2757 * ada-lex.l: Replace "parse_gdbarch" with method call.
2758 * ada-exp.y (parse_type, find_primitive_type, type_char)
2759 (type_system_address): Replace "parse_gdbarch" with method call.
2761 2019-04-04 Tom Tromey <tom@tromey.com>
2763 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
2764 * stap-probe.c (stap_parse_argument): Update.
2765 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
2766 initial_size parameter.
2767 * rust-exp.y (rust_lex_tests): Update.
2768 * parse.c (parser_state): Update.
2769 (parse_exp_in_context): Update.
2770 * parser-defs.h (struct parser_state) <parser_state>: Remove
2771 "initial_size" parameter.
2773 2019-04-04 Tom Tromey <tom@tromey.com>
2775 * parser-defs.h (increase_expout_size): Don't declare.
2776 * parse.c (increase_expout_size): Now static.
2778 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
2780 * gnu-nat.c (gnu_nat_target::wait): Fix
2781 target_waitstatus_to_string call.
2783 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
2785 * eval.c (evaluate_subexp_standard): Handle internal functions
2786 during Fortran function call handling.
2788 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
2790 * NEWS: Mention new internal functions.
2791 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
2792 (read_base_type): Use dwarf2_init_complex_target_type.
2793 * value.c (creal_internal_fn): New function.
2794 (cimag_internal_fn): New function.
2795 (_initialize_values): Register new internal functions.
2797 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2799 * infrun.c (stop_all_threads): If debug_infrun, always
2800 trace the wait status after wait_one, using
2801 target_waitstatus_to_string and target_pid_to_str.
2802 (handle_inferior_event): Replace various trace of
2803 wait status kind by a single trace.
2804 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
2805 wait status kind image by target_waitstatus_to_string.
2806 * target/waitstatus.c (target_waitstatus_to_string): Fix
2809 2019-04-01 Tom Tromey <tromey@adacore.com>
2812 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
2814 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
2815 Pedro Alves <palves@redhat.com>
2817 * top.c (quit_force): Call 'finalize_values'.
2818 * value.c (finalize_values): New function.
2819 * value.h (finalize_values): Declare.
2821 2019-03-30 Eli Zaretskii <eliz@gnu.org>
2823 * NEWS: Announce $_gdb_major and $_gdb_minor.
2825 * top.c (init_gdb_version_vars): New function.
2826 (gdb_init): Call init_gdb_version_vars.
2828 2019-03-29 Tom Tromey <tromey@adacore.com>
2830 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
2831 help text. Remove dead code.
2833 2019-03-29 Keith Seitz <keiths@redhat.com>
2835 From Siddhesh Poyarekar:
2836 * f-lang.h (f77_get_upperbound): Return LONGEST.
2837 (f77_get_lowerbound): Likewise.
2838 * f-typeprint.c (f_type_print_varspec_suffix): Expand
2839 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
2841 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
2842 plongest to format print it.
2843 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
2844 (f77_get_upperbound): Likewise.
2845 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
2846 LOWER_BOUND to LONGEST.
2847 (f77_create_arrayprint_offset_tbl): Likewise.
2849 2019-03-29 Keith Seitz <keiths@redhat.com>
2851 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2852 %s/pulongest for TYPE_LENGTH instead of %d in format
2854 * ada-typerint.c (ada_print_type): Likewise.
2855 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
2856 * compile/compile-c-support.c (generate_register_struct): Likewise.
2857 * gdbtypes.c (recursive_dump_type): Likewise.
2858 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
2859 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
2860 instead of %d in format strings.
2861 * riscv-tdep.c (riscv_type_alignment): Cast second argument
2862 to std::min to ULONGEST.
2863 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
2864 instead of %d in format strings.
2865 * tracepoint.c (info_scope_command): Likewise.
2866 * typeprint.c (print_offset_data::update)
2867 (print_offset_data::finish): Likewise.
2868 * xtensa-tdep.c (xtensa_store_return_value)
2869 (xtensa_push_dummy_call): Likewise.
2871 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
2873 * windows-nat.c (display_selector): Fixed format specifications
2876 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2878 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
2880 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
2882 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
2883 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
2884 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
2885 (nios2_linux_init_abi): Install it.
2887 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2889 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
2891 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2893 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
2895 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2896 Tom Tromey <tromey@adacore.com>
2898 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
2900 2019-03-26 Joel Brobecker <brobecker@adacore.com>
2902 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
2903 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
2904 method to compute the bounds of range types. Also print "[evaluated]"
2905 if the bounds' values come from a dynamic evaluation.
2907 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
2909 * cp-valprint.c (cp_print_value_fields): Don't print trailing
2910 whitespace when pretty printing is on.
2912 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2914 * ppc-linux-nat.c: Add include.
2916 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2918 * NEWS: Mention AArch64 Pointer Authentication.
2920 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2922 * arm-linux-nat.c: Add include.
2924 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
2926 * source-cache.c (source_cache::get_source_lines): Re-read
2927 fullname after calling open_source_file.
2929 2019-03-25 John Baldwin <jhb@FreeBSD.org>
2931 * NEWS: Mention TLS support for FreeBSD.
2933 2019-03-25 Tom Tromey <tromey@adacore.com>
2935 * minsyms.c (BUNCH_SIZE): Update comment.
2936 (~minimal_symbol_reader): Remove old comment.
2937 (compact_minimal_symbols): Update comment.
2938 (minimal_symbol_reader::install): Remove old comment. Update
2941 2019-03-25 Alan Hayward <alan.hayward@arm.com>
2943 * s390-linux-nat.c: Add include.
2945 2019-03-25 Alan Hayward <alan.hayward@arm.com>
2947 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2948 Call linux_get_hwcap.
2949 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
2951 (aarch64_linux_get_hwcap): Remove function.
2952 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
2954 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
2956 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2957 * linux-tdep.c (linux_get_hwcap): Add function.
2958 (linux_get_hwcap2): Likewise.
2959 * linux-tdep.h (linux_get_hwcap): Add declaration.
2960 (linux_get_hwcap2): Likewise.
2961 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
2962 (ppc_linux_get_hwcap2): Likewise.
2963 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
2965 (ppc_linux_nat_target::insert_watchpoint): Likewise.
2966 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
2967 (ppc_linux_nat_target::read_description): Likewise.
2968 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
2969 * s390-linux-nat.c: Likewise.
2970 * s390-linux-tdep.c (s390_core_read_description): Likewise.
2972 2019-03-24 Tom Tromey <tom@tromey.com>
2974 * ada-lang.c (standard_lookup): Simplify initialization.
2975 (ada_lookup_symbol_nonlocal): Simplify return.
2976 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
2977 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
2978 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
2979 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
2981 * solib.c (solib_global_lookup): Simplify.
2982 * symtab.c (null_block_symbol): Remove.
2983 (symbol_cache_lookup): Simplify returns.
2984 (lookup_language_this): Simplify returns.
2985 (lookup_symbol_aux): Simplify return.
2986 (lookup_local_symbol): Simplify returns.
2987 (lookup_global_symbol_from_objfile): Simplify return.
2988 (lookup_symbol_in_objfile_symtabs)
2989 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
2990 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
2991 (lookup_static_symbol, lookup_global_symbol): Simplify return.
2992 * cp-namespace.c (cp_lookup_bare_symbol)
2993 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
2994 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
2995 (cp_lookup_nested_symbol): Don't use null_block_symbol.
2996 (cp_lookup_symbol_via_imports): Simplify initialization.
2997 (find_symbol_in_baseclass): Likewise.
2998 * symtab.h (null_block_symbol): Remove.
2999 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
3000 (d_lookup_nested_symbol, d_lookup_symbol_imports)
3001 (d_lookup_symbol_module): Likewise.
3002 (find_symbol_in_baseclass): Simplify initialization.
3004 2019-03-24 Tom Tromey <tom@tromey.com>
3006 * expression.h: Don't include symtab.h.
3007 (struct block): Forward declare.
3009 2019-03-24 Tom Tromey <tom@tromey.com>
3011 * c-exp.y (typebase): Remove casts.
3012 * gdbtypes.c (lookup_unsigned_typename, )
3013 (lookup_signed_typename): Remove cast.
3014 * eval.c (parse_to_comma_and_eval): Remove cast.
3015 * parse.c (write_dollar_variable): Remove cast.
3016 * block.h (struct block) <superblock>: Now const.
3017 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
3018 * psymtab.c (psym_map_matching_symbols): Make "block" const.
3019 (map_block): Make "block" const.
3020 * symfile.h (struct quick_symbol_functions)
3021 <map_matching_symbols>: Constify block argument to "callback".
3022 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
3024 (find_pc_sect_compunit_symtab): Make "b" const.
3025 (find_symbol_at_address): Likewise.
3026 (search_symbols): Likewise.
3027 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
3028 (dw2_debug_names_lookup_symbol): Likewise.
3029 (dw2_map_matching_symbols): Update.
3030 * p-valprint.c (pascal_val_print): Remove "block".
3031 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
3032 (aux_add_nonlocal_symbols): Make "block" const.
3033 (resolve_subexp): Remove cast.
3034 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
3036 (iterate_over_file_blocks): Likewise.
3037 * f-exp.y (%union) <bval>: Remove.
3038 * coffread.c (patch_opaque_types): Make "b" const.
3039 * spu-tdep.c (spu_catch_start): Make "block" const.
3040 * c-valprint.c (print_unpacked_pointer): Remove "block".
3041 * symmisc.c (dump_symtab_1): Make "b" const.
3042 (block_depth): Make "block" const.
3043 * d-exp.y (%union) <bval>: Remove.
3044 * cp-support.h (cp_lookup_rtti_type): Update.
3045 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
3046 * psymtab.c (psym_lookup_symbol): Make "block" const.
3047 (maintenance_check_psymtabs): Make "b" const.
3048 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
3049 (enumerate_locals, enumerate_args): Update.
3050 * python/py-symtab.c (stpy_global_block): Make "block" const.
3051 (stpy_static_block): Likewise.
3052 * inline-frame.c (block_starting_point_at): Make "new_block"
3054 * block.c (find_block_in_blockvector): Make return type const.
3055 (blockvector_for_pc_sect): Make "b" const.
3056 (find_block_in_blockvector): Make "b" const.
3058 2019-03-23 Tom Tromey <tom@tromey.com>
3060 * varobj.c (varobj_create): Update.
3061 * symfile.c (clear_symtab_users): Don't reset innermost_block.
3062 * printcmd.c (display_command, do_one_display): Don't reset
3064 * parser-defs.h (enum innermost_block_tracker_type): Move to
3066 (innermost_block): Update comment.
3067 * parse.c (parse_exp_1): Add tracker_types parameter.
3068 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
3069 tracker_types parameter. Reset innermost_block.
3070 (parse_exp_in_context): Remove.
3071 (parse_expression_for_completion): Update.
3072 * objfiles.c (~objfile): Don't reset expression_context_block or
3074 * expression.h (enum innermost_block_tracker_type): Move from
3076 (parse_exp_1): Add tracker_types parameter.
3077 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
3078 reset innermost_block.
3080 2019-03-23 Tom Tromey <tom@tromey.com>
3082 * objfiles.h: Include bcache.h.
3084 2019-03-23 Tom Tromey <tom@tromey.com>
3086 * linespec.c (get_current_search_block): Use
3087 scoped_restore_current_language.
3088 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
3090 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3091 Jiong Wang <jiong.wang@arm.com>
3093 * aarch64-linux-tdep.c
3094 (aarch64_linux_iterate_over_regset_sections): Check for pauth
3096 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
3098 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3099 Jiong Wang <jiong.wang@arm.com>
3101 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
3103 (aarch64_analyze_prologue_test): Add PACIASP test.
3104 (aarch64_prologue_prev_register): Unmask PC value.
3106 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3107 Jiong Wang <jiong.wang@arm.com>
3109 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
3110 (aarch64_dwarf2_prev_register): Unmask PC value.
3111 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
3112 (aarch64_execute_dwarf_cfa_vendor_op): Check for
3113 DW_CFA_AARCH64_negate_ra_state.
3114 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
3116 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3117 Jiong Wang <jiong.wang@arm.com>
3119 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
3121 (aarch64_pseudo_register_name): Likewise.
3122 (aarch64_pseudo_register_type): Likewise.
3123 (aarch64_pseudo_register_reggroup_p): Likewise.
3124 (aarch64_gdbarch_init): Add pauth registers.
3125 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
3126 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
3127 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
3128 (struct gdbarch_tdep): Add regnum for ra_state.
3130 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3131 Jiong Wang <jiong.wang@arm.com>
3133 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
3135 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3136 Jiong Wang <jiong.wang@arm.com>
3138 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
3140 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
3141 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
3142 (aarch64_gdbarch_init): Add puth registers.
3143 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
3144 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
3145 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
3147 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3148 Jiong Wang <jiong.wang@arm.com>
3150 * aarch64-linux-nat.c
3151 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
3152 * aarch64-linux-tdep.c
3153 (aarch64_linux_core_read_description): Likewise.
3154 (aarch64_linux_get_hwcap): New function.
3155 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
3156 (aarch64_linux_get_hwcap): New declaration.
3158 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3159 Jiong Wang <jiong.wang@arm.com>
3161 * aarch64-linux-nat.c
3162 (aarch64_linux_nat_target::read_description): Add pauth param.
3163 * aarch64-linux-tdep.c
3164 (aarch64_linux_core_read_description): Likewise.
3165 * aarch64-tdep.c (struct target_desc): Add in pauth.
3166 (aarch64_read_description): Add pauth param.
3167 (aarch64_gdbarch_init): Likewise.
3168 * aarch64-tdep.h (aarch64_read_description): Likewise.
3169 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3170 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3171 * features/Makefile: Add new files.
3172 * features/aarch64-pauth.c: New file.
3173 * features/aarch64-pauth.xml: New file.
3175 2019-03-20 Tom Tromey <tromey@adacore.com>
3177 * infrun.c (handle_inferior_event): Rename from
3178 handle_inferior_event_1. Create a scoped_value_mark.
3179 (handle_inferior_event): Remove.
3181 2019-03-19 Tom Tromey <tromey@adacore.com>
3183 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
3184 * infrun.h (print_stop_event): Add "displays" parameter.
3185 * infrun.c (print_stop_event): Add "displays" parameter.
3187 2019-03-19 Pedro Alves <palves@redhat.com>
3189 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
3190 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
3191 to -1. Fix TABs vs spaces.
3192 (tui_ui_out::tui_ui_out): Don't initialize fields here.
3193 * tui/tui-out.h (tui_ui_out) Add intro comments.
3194 <m_line, m_start_of_line>: In-class initialize, and add describing
3197 2019-03-18 Alan Hayward <alan.hayward@arm.com>
3199 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
3201 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
3203 2019-03-18 Pedro Alves <palves@redhat.com>
3204 Eli Zaretskii <eliz@gnu.org>
3206 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
3207 m_line and m_start_of_line.
3209 2019-03-18 Eli Zaretskii <eliz@gnu.org>
3211 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
3212 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
3213 it returns a newline. This fixes a regression in TU mode, whereby
3214 the next line is output on the same screen line as the user input.
3216 2019-03-18 Tom Tromey <tromey@adacore.com>
3218 * minsyms.c (minimal_symbol_reader::install): Remove call to
3221 2019-03-18 Pedro Alves <palves@redhat.com>
3223 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
3225 (apply_style): New, factored out from ...
3226 (apply_ansi_escape): ... this. Handle reverse video mode.
3227 (tui_set_reverse_mode): New function.
3228 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
3229 * tui/tui-winsource.c (tui_show_source_line): Use
3230 tui_set_reverse_mode instead of setting A_STANDOUT.
3231 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
3234 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
3236 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
3239 2019-03-18 Tom Tromey <tromey@adacore.com>
3241 * ada-lang.c (empty_array): Add "high" parameter.
3242 (ada_evaluate_subexp): Update.
3244 2019-03-17 Sergei Trofimovich <siarheit@google.com>
3246 * unittests/string_view-selftests.c: Define
3247 _initialize_string_view_selftests unconditionally.
3249 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3252 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
3254 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3257 * windows-nat.c (display_selector): Fix format specifiers.
3259 2019-03-17 Eli Zaretskii <eliz@gnu.org>
3261 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
3262 tui_refill_source_window instead of tui_refresh_win, to update the
3263 current execution line. This fixes redisplay of the current line
3264 when stepping through the code with "next" or "step".
3266 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3268 * source-cache.c (source_cache::get_source_lines): Call
3269 find_source_lines to initialize s->nlines. This fixes vertical
3270 scrolling of TUI source window when the DOWN arrow is pressed.
3272 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3274 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
3275 linux-thread-db.c (_initialize_thread_db): Likewise.
3277 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3279 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
3280 wclrtoeol in tui_show_source_line". This reverts changes made in
3281 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
3283 2019-03-15 Tom Tromey <tom@tromey.com>
3285 * symtab.h (struct minimal_symbol): Derive from
3286 general_symbol_info.
3287 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
3288 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3289 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3290 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3291 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
3292 (MSYMBOL_SEARCH_NAME): Update.
3293 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
3294 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
3295 * minsyms.c (minimal_symbol_reader::record_full): Update.
3297 2019-03-15 Tom Tromey <tom@tromey.com>
3299 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
3301 2019-03-15 Tom Tromey <tom@tromey.com>
3303 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
3305 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
3307 * minsyms.c (lookup_minimal_symbol_by_pc_section)
3308 (build_minimal_symbol_hash_tables)
3309 (minimal_symbol_reader::install): Update.
3311 2019-03-15 Tom Tromey <tom@tromey.com>
3313 * symtab.c (create_demangled_names_hash): Update.
3314 (symbol_set_names): Update.
3315 * objfiles.h (struct objfile_per_bfd_storage)
3316 <demangled_names_hash>: Now an htab_up.
3317 * objfiles.c (objfile_per_bfd_storage): Simplify.
3319 2019-03-15 Tom Tromey <tom@tromey.com>
3321 * objfiles.h (struct objfile_per_bfd_storage): Declare
3323 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
3325 (get_objfile_bfd_data): Use new. Don't initialize
3327 (free_objfile_per_bfd_storage): Remove.
3328 (objfile_bfd_data_free, objfile::~objfile): Use delete.
3330 2019-03-15 Tom Tromey <tom@tromey.com>
3332 * symfile.c (reread_symbols): Update.
3333 * objfiles.c (objfile::objfile): Update.
3334 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
3335 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
3337 (minimal_symbol_reader::install): Update.
3338 (terminate_minimal_symbol_table): Remove.
3339 * jit.c (jit_object_close_impl): Update.
3341 2019-03-15 Tom Tromey <tom@tromey.com>
3343 * minsyms.c (minimal_symbol_reader::record_full): Remove some
3346 2019-03-15 Tom Tromey <tom@tromey.com>
3348 * objfiles.h (struct objfile_per_bfd_storage)
3349 <demangled_hash_languages>: Now a bitset.
3350 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
3351 (lookup_minimal_symbol): Update.
3353 2019-03-15 Tom Tromey <tom@tromey.com>
3355 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
3356 Don't return the symbol.
3357 * coffread.c (record_minimal_symbol): Use record_full.
3359 2019-03-14 Eli Zaretskii <eliz@gnu.org>
3361 The MS-Windows port of ncurses fails to switch to a color pair if
3362 one or both of the colors are the implicit default colors. This
3363 change records the default colors when TUI is initialized, and
3364 then specifies them explicitly when a color pair uses the default
3365 colors. This allows color styling in TUI mode on MS-Windows.
3367 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
3369 (tui_initialize_io) [__MINGW32__]: Record the default terminal
3370 colors in ncurses_norm_attr.
3371 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
3372 "none", replace it with the default color recorded in
3375 2019-03-14 Tom Tromey <tromey@adacore.com>
3377 * source-cache.h (class source_cache) <get_source_lines>: Return
3379 * source-cache.c (source_cache::extract_lines): Handle case where
3380 first_pos==npos. Return std::string.
3381 (source_cache::get_source_lines): Update.
3383 2019-03-14 Tom Tromey <tromey@adacore.com>
3385 * NEWS: Add item for "style sources" commands.
3386 * source-cache.c (source_cache::get_source_lines): Check
3388 * cli/cli-style.c (source_styling): New global.
3389 (_initialize_cli_style): Add "style sources" commands.
3390 (show_style_sources): New function.
3391 * cli/cli-style.h (source_styling): Declare.
3393 2019-03-14 Pedro Alves <palves@redhat.com>
3394 Tom Tromey <tromey@adacore.com>
3396 * tui/tui-winsource.h (tui_refill_source_window): Declare.
3397 * tui/tui-winsource.c (tui_refill_source_window): New function,
3399 (tui_horizontal_source_scroll): ... here. Move some logic.
3400 * cli/cli-style.c (set_style_enabled): Notify new observable.
3401 * tui/tui-hooks.c (tui_redisplay_source): New function.
3402 (tui_attach_detach_observers): Attach or detach
3403 tui_redisplay_source.
3404 * observable.h (source_styling_changed): New observable.
3405 * observable.c: Define source_styling_changed observable.
3407 2019-03-13 Tom Tromey <tromey@adacore.com>
3409 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
3410 (i386_gnu_nat_target::store_registers): Update.
3411 * target-debug.h (target_debug_print_std_string): New macro.
3412 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
3413 * windows-tdep.c (display_one_tib): Update.
3414 * tui/tui-stack.c (tui_make_status_line): Update.
3415 * top.c (print_inferior_quit_action): Update.
3416 * thread.c (thr_try_catch_cmd): Update.
3417 (add_thread_with_info): Update.
3418 (thread_target_id_str): Update.
3419 (thr_try_catch_cmd): Update.
3420 (thread_command): Update.
3421 (thread_find_command): Update.
3422 * record-btrace.c (record_btrace_target::info_record)
3423 (record_btrace_resume_thread, record_btrace_target::resume)
3424 (record_btrace_cancel_resume, record_btrace_step_thread)
3425 (record_btrace_target::wait, record_btrace_target::wait)
3426 (record_btrace_target::wait, record_btrace_target::stop): Update.
3427 * progspace.c (print_program_space): Update.
3428 * process-stratum-target.c
3429 (process_stratum_target::thread_address_space): Update.
3430 * linux-fork.c (linux_fork_mourn_inferior)
3431 (detach_checkpoint_command, info_checkpoints_command)
3432 (linux_fork_context): Update.
3433 (linux_fork_detach): Update.
3434 (class scoped_switch_fork_info): Update.
3435 (delete_checkpoint_command): Update.
3436 * infrun.c (follow_fork_inferior): Update.
3437 (follow_fork_inferior): Update.
3438 (proceed_after_vfork_done): Update.
3439 (handle_vfork_child_exec_or_exit): Update.
3440 (follow_exec): Update.
3441 (displaced_step_prepare_throw): Update.
3442 (displaced_step_restore): Update.
3443 (start_step_over): Update.
3445 (clear_proceed_status_thread): Update.
3447 (print_target_wait_results): Update.
3448 (do_target_wait): Update.
3449 (context_switch): Update.
3450 (stop_all_threads): Update.
3451 (restart_threads): Update.
3452 (finish_step_over): Update.
3453 (handle_signal_stop): Update.
3454 (switch_back_to_stepped_thread): Update.
3455 (keep_going_pass_signal): Update.
3456 (print_exited_reason): Update.
3457 (normal_stop): Update.
3458 * inferior.c (inferior_pid_to_str): Change return type.
3459 (print_selected_inferior): Update.
3460 (add_inferior): Update.
3461 (detach_inferior): Update.
3462 * dummy-frame.c (fprint_dummy_frames): Update.
3463 * dcache.c (dcache_info_1): Update.
3464 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
3465 (btrace_fetch, btrace_clear): Update.
3466 * linux-tdep.c (linux_core_pid_to_str): Change return type.
3467 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
3469 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
3470 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
3471 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
3472 * gdbarch.c, gdbarch.h: Rebuild.
3473 * gdbarch.sh (core_pid_to_str): Change return type.
3474 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
3476 (windows_nat_target::pid_to_str): Change return type.
3477 (windows_delete_thread): Update.
3478 (windows_nat_target::attach): Update.
3479 (windows_nat_target::files_info): Update.
3480 * target-delegates.c: Rebuild.
3481 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
3483 (sol_thread_target::pid_to_str): Change return type.
3484 * remote.c (class remote_target) <pid_to_str>: Change return
3486 (remote_target::pid_to_str): Change return type.
3487 (extended_remote_target::attach, remote_target::remote_stop_ns)
3488 (remote_target::remote_notif_remove_queued_reply)
3489 (remote_target::push_stop_reply, remote_target::disable_btrace):
3491 (extended_remote_target::attach): Update.
3492 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
3494 (gdbsim_target::pid_to_str): Change return type.
3495 * ravenscar-thread.c (struct ravenscar_thread_target)
3496 <pid_to_str>: Change return type.
3497 (ravenscar_thread_target::pid_to_str): Change return type.
3498 * procfs.c (class procfs_target) <pid_to_str>: Change return
3500 (procfs_target::pid_to_str): Change return type.
3501 (procfs_target::attach): Update.
3502 (procfs_target::detach): Update.
3503 (procfs_target::fetch_registers): Update.
3504 (procfs_target::store_registers): Update.
3505 (procfs_target::wait): Update.
3506 (procfs_target::files_info): Update.
3507 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
3508 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
3510 (nto_procfs_target::pid_to_str): Change return type.
3511 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
3512 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
3514 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
3516 (attach_proc_task_lwp_callback, get_detach_signal)
3517 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
3518 (linux_nat_target::resume, wait_lwp, stop_callback)
3519 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
3520 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
3521 (linux_nat_wait_1, resume_stopped_resumed_lwps)
3522 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
3523 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
3525 (inf_ptrace_target::attach): Update.
3526 (inf_ptrace_target::files_info): Update.
3527 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
3529 (go32_nat_target::pid_to_str): Change return type.
3530 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
3531 (gnu_nat_target::wait): Update.
3532 (gnu_nat_target::wait): Update.
3533 (gnu_nat_target::resume): Update.
3534 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
3535 (fbsd_nat_target::wait): Update.
3536 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
3538 (darwin_nat_target::attach): Update.
3539 * corelow.c (class core_target) <pid_to_str>: Change return type.
3540 (core_target::pid_to_str): Change return type.
3541 * target.c (normal_pid_to_str): Change return type.
3542 (default_pid_to_str): Likewise.
3543 (target_pid_to_str): Change return type.
3544 (target_translate_tls_address): Update.
3545 (target_announce_detach): Update.
3546 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
3548 (bsd_uthread_target::pid_to_str): Change return type.
3549 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
3551 (bsd_kvm_target::pid_to_str): Change return type.
3552 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
3554 (aix_thread_target::pid_to_str): Change return type.
3555 * target.h (struct target_ops) <pid_to_str>: Change return type.
3556 (target_pid_to_str, normal_pid_to_str): Likewise.
3557 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
3559 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
3561 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
3563 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
3565 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
3567 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
3570 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
3572 * NEWS: Mention that the new default MI version is 3. Mention
3573 changes to the output of commands and events that deal with
3574 multi-location breakpoints.
3575 * breakpoint.c: Include "mi/mi-out.h".
3576 (print_one_breakpoint): Change output syntax if using MI version
3578 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
3580 (mi_multi_location_breakpoint_output_fixed): New.
3581 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
3582 (mi_cmd_fix_multi_location_breakpoint_output): New.
3583 (mi_multi_location_breakpoint_output_fixed): New.
3584 * mi/mi-cmds.c (mi_cmds): Register command
3585 -fix-multi-location-breakpoint-output.
3586 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
3589 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3591 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
3592 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
3593 instantiate mi_ui_out based on interpreter name.
3594 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
3595 * mi/mi-main.c (mi_load_progress): Likewise.
3597 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3599 * NEWS: Combine separate "New targets" sections for 8.3.
3601 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3603 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
3604 (ppcfbsd_init_abi): Install gdbarch
3605 "fetch_tls_load_module_address" and "get_thread_local_address"
3608 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3610 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
3611 (riscv_fbsd_init_abi): Install gdbarch
3612 "fetch_tls_load_module_address" and "get_thread_local_address"
3615 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3617 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
3618 (i386fbsd_init_abi): Install gdbarch
3619 "fetch_tls_load_module_address" and "get_thread_local_address"
3622 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3624 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
3625 (amd64fbsd_init_abi): Install gdbarch
3626 "fetch_tls_load_module_address" and "get_thread_local_address"
3629 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3631 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
3632 (struct fbsd_pspace_data): New type.
3633 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
3634 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
3635 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
3636 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
3637 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
3639 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3641 * gdbtypes.c (lookup_struct_elt): New function.
3642 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
3643 * gdbtypes.h (struct struct_elt): New type.
3644 (lookup_struct_elt): New prototype.
3646 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3648 * gdbtypes.c (lookup_struct_elt_type): Update comment and
3649 remove disabled code block.
3651 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3653 * gdbarch.sh (get_thread_local_address): New method.
3654 * gdbarch.h, gdbarch.c: Regenerate.
3655 * target.c (target_translate_tls_address): Use
3656 gdbarch_get_thread_local_address if present instead of
3657 target::get_thread_local_address.
3659 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3661 * target.h (target::get_thread_local_address): Update comment.
3663 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3665 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
3666 objfile->separate_debug_objfile_backlink if not NULL.
3668 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3670 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
3671 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
3672 (amd64bsd_store_inferior_registers): Likewise.
3673 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
3674 Enable segment base registers.
3675 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
3676 PT_GETFSBASE and PT_GETGSBASE.
3677 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
3679 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
3680 segment base registers.
3681 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
3683 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3685 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
3686 Update calls to i386_target_description to add 'segments'
3688 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
3689 add segment base registers.
3690 * arch/i386.c (i386_create_target_description): Add 'segments'
3691 parameter to enable segment base registers.
3692 * arch/i386.h (i386_create_target_description): Likewise.
3693 * features/i386/32bit-segments.xml: New file.
3694 * features/i386/32bit-segments.c: Generate.
3695 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
3696 call to i386_target_description to add 'segments' parameter.
3697 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
3698 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
3699 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
3700 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
3701 if feature is present.
3702 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
3703 Add 'segments' parameter to call to i386_target_description.
3704 (i386_target_description): Add 'segments' parameter to enable
3705 segment base registers.
3706 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
3707 to call to i386_target_description.
3708 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
3709 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
3710 Define I386_NUM_REGS.
3711 (i386_target_description): Add 'segments' parameter to enable
3712 segment base registers.
3714 2019-03-12 Eli Zaretskii <eliz@gnu.org>
3717 * source-cache.c: #undef open and close, to avoid unresolved
3718 externals during linking.
3720 2019-03-12 Tom Tromey <tromey@adacore.com>
3722 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
3723 const. Add initializers.
3724 (_initialize_remote): Don't initialize ptid globals.
3726 2019-03-12 Pedro Alves <palves@redhat.com>
3728 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
3730 2019-03-12 Pedro Alves <palves@redhat.com>
3732 * cp-name-parser.y (main): Remove unused 'len' variable.
3734 2019-03-12 Tom Tromey <tromey@adacore.com>
3736 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
3737 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
3739 2019-03-12 Tom Tromey <tromey@adacore.com>
3741 * linux-nat.c (iterate_over_lwps): Update.
3742 (stop_callback): Remove parameter.
3743 (stop_wait_callback, detach_callback, resume_set_callback)
3744 (select_singlestep_lwp_callback, set_ignore_sigint)
3745 (status_callback, resumed_callback, resume_clear_callback)
3746 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
3748 (linux_nat_target::detach, linux_nat_target::resume)
3749 (linux_stop_and_wait_all_lwps, select_event_lwp)
3750 (linux_nat_filter_event, linux_nat_wait_1)
3751 (linux_nat_target::kill, linux_nat_target::stop)
3752 (linux_nat_target::stop): Update.
3753 (linux_nat_resume_callback): Change type.
3754 (resume_stopped_resumed_lwps, count_events_callback)
3755 (select_event_lwp_callback): Likewise.
3756 (linux_stop_lwp, linux_nat_stop_lwp): Update.
3757 * arm-linux-nat.c (struct update_registers_data): Remove.
3758 (update_registers_callback): Change type.
3759 (arm_linux_insert_hw_breakpoint1): Update.
3760 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
3762 (x86_linux_dr_set_addr): Update.
3763 (x86_linux_dr_set_control): Update.
3764 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
3765 (iterate_over_lwps): Use gdb::function_view.
3766 * nat/aarch64-linux-hw-point.c (struct
3767 aarch64_dr_update_callback_param): Remove.
3768 (debug_reg_change_callback): Change type.
3769 (aarch64_notify_debug_reg_change): Update.
3770 * s390-linux-nat.c (s390_refresh_per_info): Update.
3772 2019-03-11 Tom Tromey <tromey@adacore.com>
3774 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
3775 redundant assignment to "this_cu".
3777 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3779 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
3781 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3783 * gdbtypes.c (rank_one_type_parm_set): New function extracted
3785 (rank_one_type): ... this.
3787 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3789 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
3791 (rank_one_type): ... this.
3793 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3795 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
3797 (rank_one_type): ... this.
3799 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3801 * gdbtypes.c (rank_one_type_parm_float): New function extracted
3803 (rank_one_type): ... this.
3805 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3807 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
3809 (rank_one_type): ... this.
3811 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3813 * gdbtypes.c (rank_one_type_parm_range): New function extracted
3815 (rank_one_type): ... this.
3817 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3819 * gdbtypes.c (rank_one_type_parm_char): New function extracted
3821 (rank_one_type): ... this.
3823 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3825 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
3827 (rank_one_type): ... this.
3829 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3831 * gdbtypes.c (rank_one_type_parm_int): New function extracted
3833 (rank_one_type): ... this.
3835 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3837 * gdbtypes.c (rank_one_type_parm_func): New function extracted
3839 (rank_one_type): ... this.
3841 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3843 * gdbtypes.c (rank_one_type_parm_array): New function extracted
3845 (rank_one_type): ... this.
3847 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3849 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
3851 (rank_one_type): ... this.
3853 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3855 * inferior.c (initialize_inferiors): Ensure 'help set/show print
3856 inferior-events' shows the example events.
3858 2019-03-08 Eli Zaretskii <eliz@gnu.org>
3860 Support styling on native MS-Windows console
3863 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
3864 on MS-Windows if $TERM is not defined.
3866 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
3868 * posix-hdep.c (gdb_console_fputs):
3869 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
3871 * ui-file.h (gdb_console_fputs): Add prototype.
3873 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
3874 back to fputs only if the former returns zero.
3876 2019-03-07 Tom Tromey <tom@tromey.com>
3878 * symmisc.c (print_symbol_bcache_statistics): Update.
3879 (print_objfile_statistics): Update.
3880 * symfile.c (allocate_symtab): Update.
3881 * stabsread.c: Don't include bcache.h.
3882 * psymtab.h (struct psymbol_bcache): Don't declare.
3883 (class psymtab_storage) <psymbol_cache>: Now a bcache.
3884 (psymbol_bcache_init, psymbol_bcache_free)
3885 (psymbol_bcache_get_bcache): Don't declare.
3886 * psymtab.c (struct psymbol_bcache): Remove.
3887 (psymtab_storage::psymtab_storage): Update.
3888 (psymtab_storage::~psymtab_storage): Update.
3889 (psymbol_bcache_init, psymbol_bcache_free)
3890 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
3891 (add_psymbol_to_bcache): Update.
3892 (allocate_psymtab): Update.
3893 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
3894 macro_cache>: No longer pointers.
3895 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
3896 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
3897 * macrotab.c (macro_bcache): Update.
3898 * macroexp.c: Don't include bcache.h.
3899 * gdbtypes.c (check_types_worklist): Update.
3900 (types_deeply_equal): Remove TRY/CATCH. Update.
3901 * elfread.c (elf_symtab_read): Update.
3902 * dwarf2read.c: Don't include bcache.h.
3903 * buildsym.c (buildsym_compunit::get_macro_table): Update.
3904 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
3905 (print_bcache_statistics, bcache_memory_used): Don't declare.
3906 (struct bcache): Move from bcache.c. Add constructor, destructor,
3907 methods. Rename all data members.
3908 * bcache.c (struct bcache): Move to bcache.h.
3909 (bcache::expand_hash_table): Rename from expand_hash_table.
3911 (bcache::insert): Rename from bcache_full.
3912 (bcache::compare): Rename from bcache_compare.
3913 (bcache_xmalloc): Remove.
3914 (bcache::~bcache): Rename from bcache_xfree.
3915 (bcache::print_statistics): Rename from print_bcache_statistics.
3916 (bcache::memory_used): Rename from bcache_memory_used.
3918 2019-03-07 Pedro Alves <palves@redhat.com>
3920 * infrun.c (normal_stop): Also check for
3921 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
3923 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
3925 * f-lang.c (value_from_host_double): Moved to...
3926 * value.c (value_from_host_double): ...here.
3927 * value.h (value_from_host_double): Declare.
3928 * guile/scm-math.c (vlscm_convert_typed_number): Use
3929 value_from_host_double.
3930 (vlscm_convert_number): Likewise.
3931 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
3932 * python/py-value.c (convert_value_from_python): Likewise.
3934 2019-03-06 Tom Tromey <tom@tromey.com>
3936 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
3938 2019-03-06 Tom Tromey <tom@tromey.com>
3940 * utils.h (free_current_contents): Don't declare.
3941 * utils.c (free_current_contents): Remove.
3943 2019-03-06 Tom Tromey <tom@tromey.com>
3945 * top.c (quit_force): Update.
3946 * main.c (captured_command_loop): Update.
3947 * common/new-op.c (operator new): Update.
3948 * common/common-exceptions.c (struct catcher)
3949 <save_cleanup_chain>: Remove member.
3950 (exceptions_state_mc_init): Update.
3951 (exception_try_scope_entry): Return nullptr.
3952 (exception_try_scope_exit, exception_rethrow)
3953 (throw_exception_sjlj, throw_exception_cxx): Update.
3954 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
3955 (all_cleanups, do_cleanups, discard_cleanups)
3956 (discard_final_cleanups, save_cleanups, save_final_cleanups)
3957 (restore_cleanups, restore_final_cleanups): Don't declare.
3958 (do_final_cleanups): Remove parameter.
3959 * common/cleanups.c (cleanup_chain, make_cleanup)
3960 (make_cleanup_dtor, all_cleanups, do_cleanups)
3961 (discard_my_cleanups, discard_cleanups)
3962 (discard_final_cleanups, save_my_cleanups, save_cleanups)
3963 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
3964 (null_cleanup): Remove.
3965 (do_final_cleanups): Remove parameter.
3967 2019-03-06 Tom Tromey <tom@tromey.com>
3969 * remote.c (remote_target::remote_parse_stop_reply): Use
3972 2019-03-06 Tom Tromey <tom@tromey.com>
3974 * stabsread.c (struct stabs_field_info): Rename from field_info.
3975 <list, fnlist>: Add initializers.
3976 <obstack>: New member.
3977 (read_member_functions, read_struct_fields, read_baseclasses):
3978 Allocate on obstack. Don't use cleanups.
3979 (read_one_struct_field, read_member_functions, read_struct_fields)
3980 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
3981 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
3982 (read_struct_type): Update.
3984 2019-03-06 Tom Tromey <tom@tromey.com>
3986 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
3987 * common/filestuff.h (make_cleanup_close): Don't declare.
3988 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
3991 2019-03-06 Tom Tromey <tom@tromey.com>
3993 * solib-aix.c: Use make_scope_exit.
3995 2019-03-06 Tom Tromey <tom@tromey.com>
3997 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
3998 Use make_scope_exit.
4000 2019-03-06 Tom Tromey <tom@tromey.com>
4002 * solib-svr4.c (disable_probes_interface): Remove parameter.
4003 (svr4_handle_solib_event): Use make_scope_exit.
4005 2019-03-06 Tom Tromey <tom@tromey.com>
4007 * remote.c (struct stop_reply_deleter): Remove.
4008 (stop_reply_up): Update.
4009 (struct stop_reply): Derive from notif_event. Don't typedef.
4010 <regcache>: Now a std::vector.
4011 (stop_reply_xfree): Remove.
4012 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
4013 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
4014 (remote_target::discard_pending_stop_replies): Use delete.
4015 (remote_target::remote_parse_stop_reply): Update.
4016 (remote_target::process_stop_reply): Update.
4017 * remote-notif.h (struct notif_event): Add virtual destructor.
4018 Remove "dtr" member.
4019 (struct notif_client) <alloc_event>: Return a unique_ptr.
4020 (notif_event_xfree): Don't declare.
4021 (notif_event_up): New typedef.
4022 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
4023 (notif_event_xfree, do_notif_event_xfree): Remove.
4024 (remote_notif_state_xfree): Update.
4026 2019-03-06 Tom Tromey <tom@tromey.com>
4028 * infrun.c (displaced_step_clear_cleanup): Now a
4029 forward_scope_exit type.
4030 (displaced_step_prepare_throw): Update.
4031 (displaced_step_fixup): Update.
4033 2019-03-06 Tom Tromey <tom@tromey.com>
4035 * inferior.h (class inferior): Update comment.
4036 * gdbthread.h (class thread_info): Update comment.
4038 2019-03-06 Joel Brobecker <brobecker@adacore.com>
4039 Tom Tromey <tom@tromey.com>
4041 * stabsread.h (struct stab_section_list): Remove.
4042 (coffstab_build_psymtabs): Update.
4043 * dbxread.c (symbuf_sections): Now a std::vector.
4044 (sect_idx): New global.
4045 (fill_symbuf): Update.
4046 (coffstab_build_psymtabs): Change type of stabsects parameter.
4048 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
4050 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
4051 (coff_locate_sections): Update.
4052 (coff_symfile_read): Remove cleanups. Update.
4053 (init_stringtab): Add storage parameter.
4054 (free_stringtab, free_stringtab_cleanup): Remove.
4055 (init_lineno): Add storage parameter.
4056 (free_linetab, free_linetab_cleanup): Remove.
4058 2019-03-06 Pedro Alves <palves@redhat.com>
4060 * linux-fork.c (fork_info::clobber_regs): Delete.
4061 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
4062 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
4064 (scoped_switch_fork_info::scoped_switch_fork_info)
4065 (checkpoint_command, linux_fork_context): Adjust
4066 fork_save_infrun_state calls.
4068 2019-03-06 Pedro Alves <palves@redhat.com>
4070 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
4071 (inf_has_multiple_threads): Return 'bool' and rewrite using
4072 inferior_info::threads().
4074 2019-03-06 Pedro Alves <palves@redhat.com>
4076 * linux-fork.c: Include <list>.
4077 (fork_list): Now a std::list instance.
4078 (fork_info): Add ctor, dtor, and in-class initialize all fields.
4079 (forks_exist_p, find_last_fork): Adjust.
4083 (free_fork): Delete, folded into fork_info::~fork_info().
4084 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
4086 (init_fork_list): Delete.
4087 (linux_fork_killall, linux_fork_mourn_inferior)
4088 (linux_fork_detach, info_checkpoints_command): Adjust.
4089 (_initialize_linux_fork): No longer call init_fork_list.
4091 2019-03-06 Pedro Alves <palves@redhat.com>
4093 * linux-fork.c (new_fork): New, split out of ...
4094 (add_fork): ... this. Return void. Move "first fork" special
4095 case from here, to ...
4096 (checkpoint_command): ... here.
4097 * linux-linux.h (add_fork): Return void.
4099 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4101 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
4103 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4104 Chris January <chris.january@arm.com>
4105 David Lecomber <david.lecomber@arm.com>
4107 * f-exp.y: New token, UNOP_INTRINSIC.
4108 (exp): New pattern using UNOP_INTRINSIC token.
4109 (f77_keywords): Add 'abs' keyword.
4110 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
4111 (value_from_host_double): New function.
4112 (evaluate_subexp_f): Support UNOP_ABS.
4114 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4116 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
4119 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4121 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
4122 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
4123 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
4125 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4127 * f-exp.y (convert_to_kind_type): Handle more type kinds.
4129 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4130 Chris January <chris.january@arm.com>
4132 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
4133 * f-exp.y: Define 'KIND' token.
4134 (exp): New pattern for KIND expressions.
4135 (ptype): Handle types with a kind extension.
4136 (direct_abs_decl): Extend to spot kind extensions.
4137 (f77_keywords): Add 'kind' to the list.
4138 (push_kind_type): New function.
4139 (convert_to_kind_type): New function.
4140 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
4141 * parse.c (operator_length_standard): Likewise.
4142 * parser-defs.h (enum type_pieces): Add tp_kind.
4143 * std-operator.def: Add UNOP_KIND.
4145 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4147 * f-exp.y (f_parse): Set yydebug.
4149 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4151 * f-lang.c (evaluate_subexp_f): New function.
4152 (exp_descriptor_f): New global.
4153 (f_language_defn): Use exp_descriptor_f instead of
4154 exp_descriptor_standard.
4156 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4158 * f-exp.y (struct token): Add comments.
4159 (dot_ops): Remove uppercase versions and the end marker.
4160 (f77_keywords): Likewise.
4161 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
4162 entries in the dot_ops array are case insensitive, and use
4163 strncasecmp to compare strings. Also some whitespace cleanup in
4164 this area. Similar for the f77_keywords array, except entries in
4165 this list might be case sensitive.
4167 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4169 * f-exp.y (struct f77_boolean_val): Add comments.
4170 (boolean_values): Remove uppercase versions, and end marker.
4171 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
4172 and use strncasecmp to achieve case insensitivity. Additionally,
4173 perform whitespace cleanup around this code.
4175 2019-03-06 Tom Tromey <tromey@adacore.com>
4177 * remote-sim.c (gdbsim_target_open): Use result of
4180 2019-03-06 Richard Bunt <richard.bunt@arm.com>
4181 Dirk Schubert <dirk.schubert@arm.com>
4182 Chris January <chris.january@arm.com>
4184 * eval.c (evaluate_subexp_standard): Call Fortran argument
4186 * f-lang.c (struct value): A value which can be passed into a
4187 Fortran function call.
4188 (fortran_argument_convert): Wrap Fortran arguments in a pointer
4190 (struct type): Value ready for a Fortran function call.
4191 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
4193 * f-lang.h (fortran_argument_convert): Declaration.
4194 (fortran_preserve_arg_pointer): Declaration.
4195 * infcall.c (value_arg_coerce): Call Fortran argument logic.
4197 2019-03-05 Tom Tromey <tromey@adacore.com>
4199 * python/py-prettyprint.c (print_string_repr): Remove #if.
4200 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
4202 2019-03-05 Tom Tromey <tromey@adacore.com>
4204 * target.c (the_dummy_target): Move later. Change type to
4206 (initialize_targets): Don't initialize the_dummy_target.
4208 2019-03-05 Tom Tromey <tromey@adacore.com>
4210 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
4211 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
4213 2019-03-05 Tom Tromey <tromey@adacore.com>
4215 * windows-nat.c (windows_nat_target::attach)
4216 (windows_nat_target::detach): Don't call gdb_flush.
4217 * valprint.c (generic_val_print, val_print, val_print_string):
4218 Don't call gdb_flush.
4219 * utils.c (defaulted_query): Don't call gdb_flush.
4220 * typeprint.c (print_type_scalar): Don't call gdb_flush.
4221 * target.c (target_announce_detach): Don't call gdb_flush.
4222 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
4223 * remote.c (extended_remote_target::attach): Don't call
4225 * procfs.c (procfs_target::detach): Don't call gdb_flush.
4226 * printcmd.c (do_examine): Don't call gdb_flush.
4227 (info_display_command): Don't call gdb_flush.
4228 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
4229 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
4230 * memattr.c (info_mem_command): Don't call gdb_flush.
4231 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
4232 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
4233 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
4234 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
4235 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
4236 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
4237 (gnu_nat_target::detach): Don't call gdb_flush.
4238 * f-valprint.c (f_val_print): Don't call gdb_flush.
4239 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
4240 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
4241 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
4243 * c-valprint.c (c_val_print): Don't call gdb_flush.
4244 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
4246 2019-03-05 Tom Tromey <tromey@adacore.com>
4248 * varobj.c (update_dynamic_varobj_children): Update.
4249 (install_default_visualizer): Use reset, not release.
4250 * value.c (set_internalvar): Update.
4251 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
4252 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
4253 ATTRIBUTE_UNUSED_RESULT.
4255 2019-03-05 Tom Tromey <tromey@adacore.com>
4257 * remote.c (class scoped_remote_fd) <release>: Add
4258 ATTRIBUTE_UNUSED_RESULT.
4260 2019-03-05 Tom Tromey <tromey@adacore.com>
4262 * macroexp.c (struct macro_buffer) <release>: Add
4263 ATTRIBUTE_UNUSED_RESULT.
4265 2019-03-05 Tom Tromey <tromey@adacore.com>
4267 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
4268 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
4269 ATTRIBUTE_UNUSED_RESULT.
4271 2019-03-05 Tom Tromey <tromey@adacore.com>
4273 * common/scoped_fd.h (class scoped_fd) <release>: Add
4274 ATTRIBUTE_UNUSED_RESULT.
4276 2019-03-05 Tom Tromey <tromey@adacore.com>
4278 * parser-defs.h (struct parser_state) <release>: Add
4279 ATTRIBUTE_UNUSED_RESULT.
4281 2019-03-05 Tom Tromey <tromey@adacore.com>
4283 * utils.h (class gdb_argv) <release>: Add
4284 ATTRIBUTE_UNUSED_RESULT.
4285 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
4287 2019-03-02 Eli Zaretskii <eliz@gnu.org>
4289 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
4290 for-loop range, to avoid compiler warnings.
4292 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
4293 avoid compiler warnings about unused variables.
4295 * NEWS: Mention end of support for native debugging on MS-Windows
4299 * common/netstuff.c:
4300 * gdbserver/gdbreplay.c
4301 * gdbserver/remote-utils.c:
4303 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
4304 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
4305 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
4306 'getaddrinfo' and 'freeaddrinfo' were not available before
4307 Windows XP, and mingw.org's MinGW headers by default define
4308 _WIN32_WINNT to 0x500.
4310 2019-03-01 Gary Benson <gbenson@redhat.com>
4312 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
4314 2019-02-28 Brian Vandenberg <phantall@gmail.com>
4315 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4318 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
4319 set_sigint_trap, clear_sigint_trap.
4321 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4323 * target.c (target_detach): Clear the regcache and the
4326 2019-02-27 Pedro Alves <palves@redhat.com>
4328 * utils.c (set_screen_size): When we cap the height/width sizes,
4329 tweak the corresponding command variable to show "unlimited":
4331 2019-02-27 Saagar Jha <saagar@saagarjha.com>
4332 Pedro Alves <palves@redhat.com>
4334 * utils.c (set_screen_size): Reduce "infinite" rows and columns
4335 before calling rl_set_screen_size.
4337 2019-02-27 Tom Tromey <tromey@adacore.com>
4339 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
4341 * python/py-value.c: Remove Python 2.4 workaround.
4342 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
4344 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
4345 Python 2.4 workaround.
4346 * python/python-internal.h: Remove Python 2.4 comment.
4347 (Py_ssize_t): Don't define.
4348 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
4349 (gdb_Py_DECREF): Remove Python 2.4 workaround.
4350 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
4351 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
4352 * python/python.c (do_start_initialization): Remove Python 2.4
4354 * python/py-prettyprint.c (class dummy_python_frame): Remove.
4355 (print_children): Remove Python 2.4 workaround.
4356 * python/py-inferior.c (buffer_procs): Remove Python 2.4
4358 (CHARBUFFERPROC_NAME): Remove.
4359 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
4360 Python 2.4 workaround.
4362 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4364 * NEWS: Note minimum Python version.
4366 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4368 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
4369 code from these functions. Remove corresponding ifdefs. Use
4370 Py_buffer_up instead of explicit calls to PyBuffer_Release.
4371 Remove gotos and target of gotos.
4372 (infpy_search_memory): Likewise.
4374 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4376 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
4377 (hppa_gdbarch_init): Don't register deleted functions with
4380 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4382 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
4383 (h8300_unwind_sp): Delete.
4384 (h8300_dummy_id): Delete.
4385 (h8300_gdbarch_init): Don't register deleted functions with
4388 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4390 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
4391 (ft32_unwind_pc): Delete.
4392 (ft32_unwind_sp): Delete.
4393 (ft32_gdbarch_init): Don't register deleted functions with
4396 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4398 * gdb/frv-tdep.c (frv_dummy_id): Delete.
4399 (frv_unwind_pc): Delete.
4400 (frv_unwind_sp): Delete.
4401 (frv_gdbarch_init): Don't register deleted functions with
4404 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4406 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
4407 (riscv_unwind_pc): Delete.
4408 (riscv_unwind_sp): Delete.
4409 (riscv_gdbarch_init): Don't register deleted functions with
4412 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4414 * gdb/csky-tdep.c (csky_dummy_id): Delete.
4415 (csky_unwind_pc): Delete.
4416 (csky_unwind_sp): Delete.
4417 (csky_gdbarch_init): Don't register deleted functions with
4420 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4422 * gdb/cris-tdep.c (cris_dummy_id): Delete.
4423 (cris_unwind_pc): Delete.
4424 (cris_unwind_sp): Delete.
4425 (cris_gdbarch_init): Don't register deleted functions with
4428 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4430 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
4431 (bfin_unwind_pc): Delete.
4432 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
4434 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4436 * gdb/arm-tdep.c (arm_dummy_id): Delete.
4437 (arm_unwind_pc): Delete.
4438 (arm_unwind_sp): Delete.
4439 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
4441 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4443 * gdb/arc-tdep.c (arc_dummy_id): Delete.
4444 (arc_unwind_pc): Delete.
4445 (arc_unwind_sp): Delete.
4446 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
4448 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4450 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
4451 (alpha_unwind_pc): Delete.
4452 (alpha_gdbarch_init): Don't register deleted functions with
4455 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4457 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
4458 (aarch64_unwind_pc): Delete.
4459 (aarch64_unwind_sp): Delete.
4460 (aarch64_gdbarch_init): Don't register deleted functions with
4463 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4465 * gdbtypes.c (type_align): Don't consider static members when
4466 computing structure alignment.
4468 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4470 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
4471 return 0 for other types.
4472 * arch-utils.c (default_type_align): Always return 0.
4473 * gdbarch.h: Regenerate.
4474 * gdbarch.sh (type_align): Extend comment.
4475 * gdbtypes.c (type_align): Add additional comments, always call
4476 gdbarch_type_align before applying the default rules.
4477 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
4478 generic code will then apply a suitable default.
4479 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
4480 types, return 0 for other types.
4482 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4484 * NEWS: Create a new section for the next release branch.
4485 Rename the section of the current branch, now that it has
4488 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4490 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
4491 * version.in: Bump version to 8.3.50.DATE-git.
4493 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
4495 * aix-thread.c (ptid_cmp): Remove unused variable.
4496 (get_signaled_thread): Likewise.
4497 (store_regs_user_thread): Likewise.
4498 (store_regs_kernel_thread): Likewise.
4499 (fetch_regs_kernel_thread): Remove shadowed variable.
4501 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
4503 * features/riscv/32bit-cpu.xml: Add register numbers.
4504 * features/riscv/32bit-fpu.c: Regenerate.
4505 * features/riscv/32bit-fpu.xml: Add register numbers.
4506 * features/riscv/64bit-cpu.xml: Add register numbers.
4507 * features/riscv/64bit-fpu.c: Regenerate.
4508 * features/riscv/64bit-fpu.xml: Add register numbers.
4510 2019-02-26 Kevin Buettner <kevinb@redhat.com>
4512 * NEWS: Mention two argument form of gdb.Value constructor.
4513 * python/py-value.c (convert_buffer_and_type_to_value): New
4515 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
4516 Add support for handling an optional second argument. Call
4517 convert_buffer_and_type_to_value as appropriate.
4518 * python/python-internal.h (Py_buffer_deleter): New struct.
4519 (Py_buffer_up): New typedef.
4521 2019-02-25 John Baldwin <jhb@FreeBSD.org>
4523 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
4524 instead of releasing ownership.
4526 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
4528 * dwarf2read.c (open_and_init_dwp_file): Call
4529 elf_numsections instead of bfd_count_sections to initialize
4530 dwp_file->num_sections.
4532 2019-02-25 Tom Tromey <tromey@adacore.com>
4534 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
4536 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
4538 * gcore.in: Add '--readnever' option when invoking GDB.
4540 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4542 * MAINTAINERS: Update my email address.
4544 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4546 * build-id.c (build_id_to_debug_bfd_1): New function.
4547 (build_id_to_debug_bfd): Look for separate debug file in
4550 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
4552 * gdbarch.sh: Update the copyright year range that is placed into
4555 2019-02-22 Keith Seitz <keiths@redhat.com>
4558 * linespec.c (create_sals_line_offset): Search for the default
4559 symtab's filename instead of its fullname.
4561 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4563 * NEWS: Update style defaults.
4565 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4567 * main.c (captured_main_1): Disable styling in batch mode.
4569 2019-02-20 Tom Tromey <tom@tromey.com>
4571 * symtab.c (symtab_symbol_info): Fix typos.
4573 2019-02-20 Tom Tromey <tromey@adacore.com>
4575 * findcmd.c (_initialize_mem_search): Use upper case for
4576 metasyntactic variables.
4578 2019-02-20 Alan Hayward <alan.hayward@arm.com>
4580 * aarch64-tdep.c (aarch64_add_reggroups): New function.
4581 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
4583 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
4585 * top.h (source_file_name): Change to std::string.
4586 * top.c (source_file_name): Likewise.
4587 (command_line_input): Adjust.
4588 * cli/cli-script.c (script_from_file): Adjust.
4590 2019-02-19 Tom Tromey <tromey@adacore.com>
4592 * ravenscar-thread.c
4593 (ravenscar_thread_target::update_thread_list): Don't call
4594 ada_build_task_list.
4595 * ada-lang.h (ada_build_task_list): Don't declare.
4596 * ada-tasks.c (struct ada_tasks_inferior_data)
4597 <task_list_valid_p>: Now bool.
4598 (read_known_tasks, ada_task_list_changed)
4599 (ada_tasks_invalidate_inferior_data): Update.
4600 (read_known_tasks_array): Return bool.
4601 (read_known_tasks_list): Likewise.
4602 (read_known_tasks): Return void.
4603 (ada_build_task_list): Now static.
4605 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
4607 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
4608 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
4610 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4612 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
4613 variant for ada_tasks_pspace_data_handle and
4614 ada_tasks_inferior_data_handle.
4615 (ada_tasks_pspace_data_cleanup): New function.
4616 (ada_tasks_inferior_data_cleanup): New function.
4618 2019-02-17 Tom Tromey <tom@tromey.com>
4620 * macrotab.h (macro_source_fullname): Return a std::string.
4621 * macrotab.c (macro_include, check_for_redefinition)
4622 (macro_undef, macro_lookup_definition, foreach_macro)
4623 (foreach_macro_in_scope): Update.
4624 (macro_source_fullname): Return a std::string.
4625 * macrocmd.c (show_pp_source_pos): Update.
4627 2019-02-17 Tom Tromey <tom@tromey.com>
4629 * macrocmd.c (show_pp_source_pos): Style the file names.
4631 2019-02-17 Tom Tromey <tom@tromey.com>
4634 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
4636 2019-02-17 Tom Tromey <tom@tromey.com>
4638 * ada-lang.c (user_select_syms): Use filtered printing.
4639 * utils.c (wrap_style): New global.
4640 (desired_style): Remove.
4641 (emit_style_escape): Add stream parameter.
4642 (set_output_style, reset_terminal_style, prompt_for_continue):
4644 (flush_wrap_buffer): Only flush gdb_stdout.
4645 (wrap_here): Set wrap_style.
4646 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
4647 treat escape sequences as a character. Change when wrap buffer is
4649 (fputs_styled): Do not set the output style when the default is
4651 * ui-style.h (struct ui_file_style) <is_default>: New method.
4652 * source.c (print_source_lines_base): Emit escape sequences in one
4655 2019-02-17 Joel Brobecker <brobecker@adacore.com>
4657 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
4658 integers and enumeration types.
4660 2019-02-17 Joel Brobecker <brobecker@adacore.com>
4662 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
4663 instead of lookup_symbol_in_language
4664 (do_exact_match): New function.
4665 (ada_get_symbol_name_matcher): Return do_exact_match when
4666 doing a verbatim match.
4668 2019-02-15 Tom Tromey <tromey@adacore.com>
4670 * ravenscar-thread.c (ravenscar_thread_target::resume)
4671 (ravenscar_thread_target::wait): Special case wildcard requests.
4673 2019-02-15 Tom Tromey <tromey@adacore.com>
4675 * ravenscar-thread.c (base_ptid): Remove.
4676 (struct ravenscar_thread_target) <close>: New method.
4677 <m_base_ptid>: New member.
4678 <update_inferior_ptid, active_task, task_is_currently_active,
4679 runtime_initialized>: Declare methods.
4680 <ravenscar_thread_target>: Add constructor.
4681 (ravenscar_thread_target::task_is_currently_active)
4682 (ravenscar_thread_target::update_inferior_ptid)
4683 (ravenscar_runtime_initialized): Rename. Now methods.
4684 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
4685 (ravenscar_thread_target::update_thread_list): Update.
4686 (ravenscar_thread_target::active_task): Now method.
4687 (ravenscar_thread_target::store_registers)
4688 (ravenscar_thread_target::prepare_to_store)
4689 (ravenscar_thread_target::prepare_to_store)
4690 (ravenscar_thread_target::mourn_inferior): Update.
4691 (ravenscar_inferior_created): Use "new" to create target.
4692 (ravenscar_thread_target::get_ada_task_ptid): Update.
4693 (_initialize_ravenscar): Don't initialize base_ptid.
4694 (ravenscar_ops): Remove global.
4696 2019-02-15 Tom Tromey <tromey@adacore.com>
4698 * target.h (push_target): Declare new overload.
4699 * target.c (push_target): New overload, taking an rvalue reference.
4700 * remote.c (remote_target::open_1): Use push_target overload.
4701 * corelow.c (core_target_open): Use push_target overload.
4703 2019-02-15 Tom Tromey <tromey@adacore.com>
4705 * ravenscar-thread.c (is_ravenscar_task)
4706 (ravenscar_task_is_currently_active): Return bool.
4707 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
4708 (_initialize_ravenscar): Remove "(void)".
4709 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
4712 2019-02-15 Tom Tromey <tromey@adacore.com>
4714 * ravenscar-thread.c (ravenscar_runtime_initializer)
4715 (has_ravenscar_runtime, get_running_thread_id)
4716 (ravenscar_thread_target::resume): Fix indentation.
4718 2019-02-15 Tom Tromey <tromey@adacore.com>
4720 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
4721 from ravenscar_arch_ops.
4722 (sparc_ravenscar_ops::fetch_registers)
4723 (sparc_ravenscar_ops::store_registers): Now methods.
4724 (sparc_ravenscar_prepare_to_store): Remove.
4725 (sparc_ravenscar_ops): Redefine.
4726 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
4727 methods and destructor. Remove members.
4728 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
4729 (ravenscar_thread_target::store_registers)
4730 (ravenscar_thread_target::prepare_to_store): Update.
4731 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
4733 (struct ppc_ravenscar_powerpc_ops): Derive from
4735 (ppc_ravenscar_powerpc_ops::fetch_registers)
4736 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
4737 (ppc_ravenscar_powerpc_ops): Redefine.
4738 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
4739 (ppc_ravenscar_e500_ops::fetch_registers)
4740 (ppc_ravenscar_e500_ops::store_registers): Now methods.
4741 (ppc_ravenscar_e500_ops): Redefine.
4742 * aarch64-ravenscar-thread.c
4743 (aarch64_ravenscar_generic_prepare_to_store): Remove.
4744 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
4745 (aarch64_ravenscar_fetch_registers)
4746 (aarch64_ravenscar_store_registers): Now methods.
4747 (aarch64_ravenscar_ops): Redefine.
4749 2019-02-15 Tom Tromey <tromey@adacore.com>
4751 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
4752 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4753 (ravenscar_thread_target::stopped_by_watchpoint)
4754 (ravenscar_thread_target::stopped_data_address)
4755 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
4757 2019-02-15 Tom Tromey <tromey@adacore.com>
4759 * ravenscar-thread.c: Fix some typos.
4761 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4762 Tom Tromey <tromey@adacore.com>
4764 * ada-lang.c (ada_exception_sal): Change addr_string to a
4766 (create_ada_exception_catchpoint): Update.
4768 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4769 Tom Tromey <tromey@adacore.com>
4771 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
4772 (bp_location_ops): Remove.
4773 (base_breakpoint_allocate_location): Update.
4774 (free_bp_location): Update.
4775 * ada-lang.c (class ada_catchpoint_location)
4776 <ada_catchpoint_location>: Remove ops parameter.
4777 (ada_catchpoint_location_dtor): Remove.
4778 (ada_catchpoint_location_ops): Remove.
4779 (allocate_location_exception): Update.
4780 * breakpoint.h (struct bp_location_ops): Remove.
4781 (class bp_location) <bp_location>: Remove bp_location_ops
4783 <~bp_location>: Add destructor.
4786 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
4787 Pedro Alves <palves@redhat.com>
4789 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
4792 2019-02-14 David Michael <fedora.dm0@gmail.com>
4793 Samuel Thibault <samuel.thibault@gnu.org>
4794 Thomas Schwinge <thomas@codesourcery.com>
4796 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
4797 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
4799 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
4801 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
4802 (check_empty): Use "const char *".
4804 * gnu-nat.c (gnu_nat_target::detach): Instead of
4805 'detach_inferior (pid)' call
4806 'detach_inferior (find_inferior_pid (pid))'.
4808 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
4809 'nat/fork-inferior.o'.
4810 * gnu-nat.c: #include "nat/fork-inferior.h".
4812 * gnu-nat.c (gnu_nat_target::detach): Instead of
4813 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
4814 * gnu-nat.h: #include "inf-child.h".
4815 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
4816 'i386_gnu_nat_target::fetch_registers'.
4817 (gnu_store_registers): Rename/move to
4818 'i386_gnu_nat_target::store_registers'.
4820 * config/i386/nm-i386gnu.h: Don't "#include" any files.
4821 * gnu-nat.h (mach_thread_info): New function.
4822 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
4824 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
4826 2019-02-14 Frederic Konrad <konrad@adacore.com>
4828 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
4830 2019-02-14 Joel Brobecker <brobecker@adacore.com>
4832 * windows-nat.c (windows_add_thread): Add new parameter
4833 "main_thread_p" with default value set to false. Update
4834 function documentation as well as all callers.
4835 (windows_delete_thread): Likewise.
4836 (fake_create_process): Update call to windows_add_thread.
4837 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
4838 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
4839 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
4840 call to windows_delete_thread.
4842 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
4844 * MAINTAINERS: Add Andrew Burgess as global maintainer.
4846 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4848 * symfile.c (find_separate_debug_file): Use canonical path of
4849 sysroot with child_path instead of gdb_sysroot if it is valid.
4851 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4853 * symfile.c (find_separate_debug_file): Use child_path to
4854 determine if an object file is under a sysroot.
4856 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4858 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4859 unittests/child-path-selftests.c.
4860 * common/pathstuff.c (child_path): New function.
4861 * common/pathstuff.h (child_path): New prototype.
4862 * unittests/child-path-selftests.c: New file.
4864 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4866 * symfile.c (find_separate_debug_file): Look for separate debug
4867 files in debug directories under the sysroot.
4869 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4871 * symtab.h (struct minimal_symbol data_p): New const method.
4872 (struct minimal_symbol text_p): Likewise.
4873 * symtab.c (output_source_filename): Use file name style
4875 (print_symbol_info): Likewise.
4876 (print_msymbol_info): Use address style to print addresses.
4877 Use function name style to print executable text symbols.
4878 (expand_symtab_containing_pc): Use data_p.
4879 (find_pc_sect_compunit_symtab): Likewise.
4881 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4883 * breakpoint.c (describe_other_breakpoints): Use address style
4885 (say_where): Likewise.
4887 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4889 * ada-typeprint.c (print_func_type): Print function name
4890 style to print function name.
4891 * c-typeprint.c (c_print_type_1): Likewise.
4893 2019-02-11 Alan Hayward <alan.hayward@arm.com>
4895 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
4898 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4900 * c-exp.y (direct_abs_decl): Use emplace_back to record the
4903 2019-02-10 Joel Brobecker <brobecker@adacore.com>
4905 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
4906 TYPE_CODE_REF types.
4908 2019-02-08 Jim Wilson <jimw@sifive.com>
4910 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
4911 (riscv_linux_fregset): New.
4912 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
4914 2019-02-07 Tom Tromey <tom@tromey.com>
4916 * thread.c (thread_cancel_execution_command): Update.
4917 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
4919 (struct thread_fsm_ops): Remove.
4920 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
4921 (thread_fsm_should_stop, thread_fsm_return_value)
4922 (thread_fsm_set_finished, thread_fsm_finished_p)
4923 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
4925 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
4926 * infrun.c (clear_proceed_status_thread)
4927 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
4928 (print_stop_event): Update.
4929 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
4931 (step_command_fsm_ops): Remove.
4932 (new_step_command_fsm): Remove.
4934 (step_command_fsm::should_stop): Rename from
4935 step_command_fsm_should_stop.
4936 (step_command_fsm::clean_up): Rename from
4937 step_command_fsm_clean_up.
4938 (step_command_fsm::do_async_reply_reason): Rename from
4939 step_command_fsm_async_reply_reason.
4940 (struct until_next_fsm): Inherit from thread_fsm. Add
4942 (until_next_fsm_ops): Remove.
4943 (new_until_next_fsm): Remove.
4944 (until_next_fsm::should_stop): Rename from
4945 until_next_fsm_should_stop.
4946 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
4947 (until_next_fsm::do_async_reply_reason): Rename from
4948 until_next_fsm_async_reply_reason.
4949 (struct finish_command_fsm): Inherit from thread_fsm. Add
4950 constructor. Change type of breakpoint.
4951 (finish_command_fsm_ops): Remove.
4952 (new_finish_command_fsm): Remove.
4953 (finish_command_fsm::should_stop): Rename from
4954 finish_command_fsm_should_stop.
4955 (finish_command_fsm::clean_up): Rename from
4956 finish_command_fsm_clean_up.
4957 (finish_command_fsm::return_value): Rename from
4958 finish_command_fsm_return_value.
4959 (finish_command_fsm::do_async_reply_reason): Rename from
4960 finish_command_fsm_async_reply_reason.
4961 (finish_command): Update.
4962 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
4964 (call_thread_fsm_ops): Remove.
4965 (call_thread_fsm::call_thread_fsm): Rename from
4966 new_call_thread_fsm.
4967 (call_thread_fsm::should_stop): Rename from
4968 call_thread_fsm_should_stop.
4969 (call_thread_fsm::should_notify_stop): Rename from
4970 call_thread_fsm_should_notify_stop.
4971 (run_inferior_call, call_function_by_hand_dummy): Update.
4972 * cli/cli-interp.c (should_print_stop_to_console): Update.
4973 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
4974 Add constructor. Change type of location_breakpoint,
4976 (until_break_fsm_ops): Remove.
4977 (new_until_break_fsm): Remove.
4978 (until_break_fsm::should_stop): Rename from
4979 until_break_fsm_should_stop.
4980 (until_break_fsm::clean_up): Rename from
4981 until_break_fsm_clean_up.
4982 (until_break_fsm::do_async_reply_reason): Rename from
4983 until_break_fsm_async_reply_reason.
4984 (until_break_command): Update.
4985 * thread-fsm.c: Remove.
4986 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
4988 2019-02-07 Tom Tromey <tom@tromey.com>
4990 * yy-remap.h: Add include guard.
4991 * xtensa-tdep.h: Add include guard.
4992 * xcoffread.h: Rename include guard.
4993 * varobj-iter.h: Add include guard.
4994 * tui/tui.h: Rename include guard.
4995 * tui/tui-winsource.h: Rename include guard.
4996 * tui/tui-wingeneral.h: Rename include guard.
4997 * tui/tui-windata.h: Rename include guard.
4998 * tui/tui-win.h: Rename include guard.
4999 * tui/tui-stack.h: Rename include guard.
5000 * tui/tui-source.h: Rename include guard.
5001 * tui/tui-regs.h: Rename include guard.
5002 * tui/tui-out.h: Rename include guard.
5003 * tui/tui-layout.h: Rename include guard.
5004 * tui/tui-io.h: Rename include guard.
5005 * tui/tui-hooks.h: Rename include guard.
5006 * tui/tui-file.h: Rename include guard.
5007 * tui/tui-disasm.h: Rename include guard.
5008 * tui/tui-data.h: Rename include guard.
5009 * tui/tui-command.h: Rename include guard.
5010 * tic6x-tdep.h: Add include guard.
5011 * target/waitstatus.h: Rename include guard.
5012 * target/wait.h: Rename include guard.
5013 * target/target.h: Rename include guard.
5014 * target/resume.h: Rename include guard.
5015 * target-float.h: Rename include guard.
5016 * stabsread.h: Add include guard.
5017 * rs6000-tdep.h: Add include guard.
5018 * riscv-fbsd-tdep.h: Add include guard.
5019 * regformats/regdef.h: Rename include guard.
5020 * record.h: Rename include guard.
5021 * python/python.h: Rename include guard.
5022 * python/python-internal.h: Rename include guard.
5023 * python/py-stopevent.h: Rename include guard.
5024 * python/py-ref.h: Rename include guard.
5025 * python/py-record.h: Rename include guard.
5026 * python/py-record-full.h: Rename include guard.
5027 * python/py-record-btrace.h: Rename include guard.
5028 * python/py-instruction.h: Rename include guard.
5029 * python/py-events.h: Rename include guard.
5030 * python/py-event.h: Rename include guard.
5031 * procfs.h: Add include guard.
5032 * proc-utils.h: Add include guard.
5033 * p-lang.h: Add include guard.
5034 * or1k-tdep.h: Rename include guard.
5035 * observable.h: Rename include guard.
5036 * nto-tdep.h: Rename include guard.
5037 * nat/x86-linux.h: Rename include guard.
5038 * nat/x86-linux-dregs.h: Rename include guard.
5039 * nat/x86-gcc-cpuid.h: Add include guard.
5040 * nat/x86-dregs.h: Rename include guard.
5041 * nat/x86-cpuid.h: Rename include guard.
5042 * nat/ppc-linux.h: Rename include guard.
5043 * nat/mips-linux-watch.h: Rename include guard.
5044 * nat/linux-waitpid.h: Rename include guard.
5045 * nat/linux-ptrace.h: Rename include guard.
5046 * nat/linux-procfs.h: Rename include guard.
5047 * nat/linux-osdata.h: Rename include guard.
5048 * nat/linux-nat.h: Rename include guard.
5049 * nat/linux-namespaces.h: Rename include guard.
5050 * nat/linux-btrace.h: Rename include guard.
5051 * nat/glibc_thread_db.h: Rename include guard.
5052 * nat/gdb_thread_db.h: Rename include guard.
5053 * nat/gdb_ptrace.h: Rename include guard.
5054 * nat/fork-inferior.h: Rename include guard.
5055 * nat/amd64-linux-siginfo.h: Rename include guard.
5056 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
5057 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
5058 * nat/aarch64-linux.h: Rename include guard.
5059 * nat/aarch64-linux-hw-point.h: Rename include guard.
5060 * mn10300-tdep.h: Add include guard.
5061 * mips-linux-tdep.h: Add include guard.
5062 * mi/mi-parse.h: Rename include guard.
5063 * mi/mi-out.h: Rename include guard.
5064 * mi/mi-main.h: Rename include guard.
5065 * mi/mi-interp.h: Rename include guard.
5066 * mi/mi-getopt.h: Rename include guard.
5067 * mi/mi-console.h: Rename include guard.
5068 * mi/mi-common.h: Rename include guard.
5069 * mi/mi-cmds.h: Rename include guard.
5070 * mi/mi-cmd-break.h: Rename include guard.
5071 * m2-lang.h: Add include guard.
5072 * location.h: Rename include guard.
5073 * linux-record.h: Rename include guard.
5074 * linux-nat.h: Add include guard.
5075 * linux-fork.h: Add include guard.
5076 * i386-darwin-tdep.h: Rename include guard.
5077 * hppa-linux-offsets.h: Add include guard.
5078 * guile/guile.h: Rename include guard.
5079 * guile/guile-internal.h: Rename include guard.
5080 * gnu-nat.h: Rename include guard.
5081 * gdb-stabs.h: Rename include guard.
5082 * frv-tdep.h: Add include guard.
5083 * f-lang.h: Add include guard.
5084 * event-loop.h: Add include guard.
5085 * darwin-nat.h: Rename include guard.
5086 * cp-abi.h: Rename include guard.
5087 * config/sparc/nm-sol2.h: Rename include guard.
5088 * config/nm-nto.h: Rename include guard.
5089 * config/nm-linux.h: Add include guard.
5090 * config/i386/nm-i386gnu.h: Rename include guard.
5091 * config/djgpp/nl_types.h: Rename include guard.
5092 * config/djgpp/langinfo.h: Rename include guard.
5093 * compile/gcc-cp-plugin.h: Add include guard.
5094 * compile/gcc-c-plugin.h: Add include guard.
5095 * compile/compile.h: Rename include guard.
5096 * compile/compile-object-run.h: Rename include guard.
5097 * compile/compile-object-load.h: Rename include guard.
5098 * compile/compile-internal.h: Rename include guard.
5099 * compile/compile-cplus.h: Rename include guard.
5100 * compile/compile-c.h: Rename include guard.
5101 * common/xml-utils.h: Rename include guard.
5102 * common/x86-xstate.h: Rename include guard.
5103 * common/version.h: Rename include guard.
5104 * common/vec.h: Rename include guard.
5105 * common/tdesc.h: Rename include guard.
5106 * common/selftest.h: Rename include guard.
5107 * common/scoped_restore.h: Rename include guard.
5108 * common/scoped_mmap.h: Rename include guard.
5109 * common/scoped_fd.h: Rename include guard.
5110 * common/safe-iterator.h: Rename include guard.
5111 * common/run-time-clock.h: Rename include guard.
5112 * common/refcounted-object.h: Rename include guard.
5113 * common/queue.h: Rename include guard.
5114 * common/ptid.h: Rename include guard.
5115 * common/print-utils.h: Rename include guard.
5116 * common/preprocessor.h: Rename include guard.
5117 * common/pathstuff.h: Rename include guard.
5118 * common/observable.h: Rename include guard.
5119 * common/netstuff.h: Rename include guard.
5120 * common/job-control.h: Rename include guard.
5121 * common/host-defs.h: Rename include guard.
5122 * common/gdb_wait.h: Rename include guard.
5123 * common/gdb_vecs.h: Rename include guard.
5124 * common/gdb_unlinker.h: Rename include guard.
5125 * common/gdb_unique_ptr.h: Rename include guard.
5126 * common/gdb_tilde_expand.h: Rename include guard.
5127 * common/gdb_sys_time.h: Rename include guard.
5128 * common/gdb_string_view.h: Rename include guard.
5129 * common/gdb_splay_tree.h: Rename include guard.
5130 * common/gdb_setjmp.h: Rename include guard.
5131 * common/gdb_ref_ptr.h: Rename include guard.
5132 * common/gdb_optional.h: Rename include guard.
5133 * common/gdb_locale.h: Rename include guard.
5134 * common/gdb_assert.h: Rename include guard.
5135 * common/filtered-iterator.h: Rename include guard.
5136 * common/filestuff.h: Rename include guard.
5137 * common/fileio.h: Rename include guard.
5138 * common/environ.h: Rename include guard.
5139 * common/common-utils.h: Rename include guard.
5140 * common/common-types.h: Rename include guard.
5141 * common/common-regcache.h: Rename include guard.
5142 * common/common-inferior.h: Rename include guard.
5143 * common/common-gdbthread.h: Rename include guard.
5144 * common/common-exceptions.h: Rename include guard.
5145 * common/common-defs.h: Rename include guard.
5146 * common/common-debug.h: Rename include guard.
5147 * common/cleanups.h: Rename include guard.
5148 * common/buffer.h: Rename include guard.
5149 * common/btrace-common.h: Rename include guard.
5150 * common/break-common.h: Rename include guard.
5151 * cli/cli-utils.h: Rename include guard.
5152 * cli/cli-style.h: Rename include guard.
5153 * cli/cli-setshow.h: Rename include guard.
5154 * cli/cli-script.h: Rename include guard.
5155 * cli/cli-interp.h: Rename include guard.
5156 * cli/cli-decode.h: Rename include guard.
5157 * cli/cli-cmds.h: Rename include guard.
5158 * charset-list.h: Add include guard.
5159 * buildsym-legacy.h: Rename include guard.
5160 * bfin-tdep.h: Add include guard.
5161 * ax.h: Rename include guard.
5162 * arm-linux-tdep.h: Add include guard.
5163 * arm-fbsd-tdep.h: Add include guard.
5164 * arch/xtensa.h: Rename include guard.
5165 * arch/tic6x.h: Add include guard.
5166 * arch/i386.h: Add include guard.
5167 * arch/arm.h: Rename include guard.
5168 * arch/arm-linux.h: Rename include guard.
5169 * arch/arm-get-next-pcs.h: Rename include guard.
5170 * arch/amd64.h: Add include guard.
5171 * arch/aarch64-insn.h: Rename include guard.
5172 * arch-utils.h: Rename include guard.
5173 * annotate.h: Add include guard.
5174 * amd64-darwin-tdep.h: Rename include guard.
5175 * aarch64-linux-tdep.h: Add include guard.
5176 * aarch64-fbsd-tdep.h: Add include guard.
5177 * aarch32-linux-nat.h: Add include guard.
5179 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5181 * macrotab.c (macro_define_internal): New function that
5182 factorizes macro_define_object_internal and macro_define_function
5184 (macro_define_object_internal): Use macro_define_internal.
5185 (macro_define_function): Likewise.
5187 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5189 * macrocmd.c (extract_identifier): Return
5190 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
5193 2019-02-06 John Baldwin <jhb@FreeBSD.org>
5195 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
5197 2019-02-05 Tom Tromey <tom@tromey.com>
5199 * target.c (target_stack::unpush): Move assertion earlier.
5201 2019-01-30 Tom Tromey <tom@tromey.com>
5204 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
5205 (gdbpy_parse_and_eval): Likewise.
5206 * python/python-internal.h (gdbpy_allow_threads): New class.
5208 2019-01-28 John Baldwin <jhb@FreeBSD.org>
5210 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
5211 (aarch64_fbsd_fpregmap): Move earlier.
5212 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
5213 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5214 instead of individual calls to trad_frame_set_reg_addr.
5215 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
5217 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
5218 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5219 instead of individual calls to trad_frame_set_reg_addr.
5221 2019-01-28 Alan Hayward <alan.hayward@arm.com>
5223 * CONTRIBUTE: Replace contribution list with wiki link.
5225 2019-01-25 Tom Tromey <tom@tromey.com>
5227 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
5229 2019-01-25 Tom Tromey <tom@tromey.com>
5231 * xtensa-linux-nat.c: Fix common/ includes.
5232 * xml-support.h: Fix common/ includes.
5233 * xml-support.c: Fix common/ includes.
5234 * x86-linux-nat.c: Fix common/ includes.
5235 * windows-nat.c: Fix common/ includes.
5236 * varobj.h: Fix common/ includes.
5237 * varobj.c: Fix common/ includes.
5238 * value.c: Fix common/ includes.
5239 * valops.c: Fix common/ includes.
5240 * utils.c: Fix common/ includes.
5241 * unittests/xml-utils-selftests.c: Fix common/ includes.
5242 * unittests/utils-selftests.c: Fix common/ includes.
5243 * unittests/unpack-selftests.c: Fix common/ includes.
5244 * unittests/tracepoint-selftests.c: Fix common/ includes.
5245 * unittests/style-selftests.c: Fix common/ includes.
5246 * unittests/string_view-selftests.c: Fix common/ includes.
5247 * unittests/scoped_restore-selftests.c: Fix common/ includes.
5248 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
5249 * unittests/scoped_fd-selftests.c: Fix common/ includes.
5250 * unittests/rsp-low-selftests.c: Fix common/ includes.
5251 * unittests/parse-connection-spec-selftests.c: Fix common/
5253 * unittests/optional-selftests.c: Fix common/ includes.
5254 * unittests/offset-type-selftests.c: Fix common/ includes.
5255 * unittests/observable-selftests.c: Fix common/ includes.
5256 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
5257 * unittests/memrange-selftests.c: Fix common/ includes.
5258 * unittests/memory-map-selftests.c: Fix common/ includes.
5259 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
5260 * unittests/function-view-selftests.c: Fix common/ includes.
5261 * unittests/environ-selftests.c: Fix common/ includes.
5262 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
5263 * unittests/common-utils-selftests.c: Fix common/ includes.
5264 * unittests/cli-utils-selftests.c: Fix common/ includes.
5265 * unittests/array-view-selftests.c: Fix common/ includes.
5266 * ui-file.c: Fix common/ includes.
5267 * tui/tui-io.c: Fix common/ includes.
5268 * tracepoint.h: Fix common/ includes.
5269 * tracepoint.c: Fix common/ includes.
5270 * tracefile-tfile.c: Fix common/ includes.
5271 * top.h: Fix common/ includes.
5272 * top.c: Fix common/ includes.
5273 * thread.c: Fix common/ includes.
5274 * target/waitstatus.h: Fix common/ includes.
5275 * target/waitstatus.c: Fix common/ includes.
5276 * target.h: Fix common/ includes.
5277 * target.c: Fix common/ includes.
5278 * target-memory.c: Fix common/ includes.
5279 * target-descriptions.c: Fix common/ includes.
5280 * symtab.h: Fix common/ includes.
5281 * symfile.c: Fix common/ includes.
5282 * stap-probe.c: Fix common/ includes.
5283 * spu-linux-nat.c: Fix common/ includes.
5284 * sparc-nat.c: Fix common/ includes.
5285 * source.c: Fix common/ includes.
5286 * solib.c: Fix common/ includes.
5287 * solib-target.c: Fix common/ includes.
5288 * ser-unix.c: Fix common/ includes.
5289 * ser-tcp.c: Fix common/ includes.
5290 * ser-pipe.c: Fix common/ includes.
5291 * ser-base.c: Fix common/ includes.
5292 * selftest-arch.c: Fix common/ includes.
5293 * s12z-tdep.c: Fix common/ includes.
5294 * rust-exp.y: Fix common/ includes.
5295 * rs6000-aix-tdep.c: Fix common/ includes.
5296 * riscv-tdep.c: Fix common/ includes.
5297 * remote.c: Fix common/ includes.
5298 * remote-notif.h: Fix common/ includes.
5299 * remote-fileio.h: Fix common/ includes.
5300 * remote-fileio.c: Fix common/ includes.
5301 * regcache.h: Fix common/ includes.
5302 * regcache.c: Fix common/ includes.
5303 * record-btrace.c: Fix common/ includes.
5304 * python/python.c: Fix common/ includes.
5305 * python/py-type.c: Fix common/ includes.
5306 * python/py-inferior.c: Fix common/ includes.
5307 * progspace.h: Fix common/ includes.
5308 * producer.c: Fix common/ includes.
5309 * procfs.c: Fix common/ includes.
5310 * proc-api.c: Fix common/ includes.
5311 * printcmd.c: Fix common/ includes.
5312 * ppc-linux-nat.c: Fix common/ includes.
5313 * parser-defs.h: Fix common/ includes.
5314 * osdata.c: Fix common/ includes.
5315 * obsd-nat.c: Fix common/ includes.
5316 * nat/x86-linux.c: Fix common/ includes.
5317 * nat/x86-linux-dregs.c: Fix common/ includes.
5318 * nat/x86-dregs.h: Fix common/ includes.
5319 * nat/x86-dregs.c: Fix common/ includes.
5320 * nat/ppc-linux.c: Fix common/ includes.
5321 * nat/mips-linux-watch.h: Fix common/ includes.
5322 * nat/mips-linux-watch.c: Fix common/ includes.
5323 * nat/linux-waitpid.c: Fix common/ includes.
5324 * nat/linux-ptrace.h: Fix common/ includes.
5325 * nat/linux-ptrace.c: Fix common/ includes.
5326 * nat/linux-procfs.c: Fix common/ includes.
5327 * nat/linux-personality.c: Fix common/ includes.
5328 * nat/linux-osdata.c: Fix common/ includes.
5329 * nat/linux-namespaces.c: Fix common/ includes.
5330 * nat/linux-btrace.h: Fix common/ includes.
5331 * nat/linux-btrace.c: Fix common/ includes.
5332 * nat/fork-inferior.c: Fix common/ includes.
5333 * nat/amd64-linux-siginfo.c: Fix common/ includes.
5334 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
5335 * nat/aarch64-linux.c: Fix common/ includes.
5336 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
5337 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
5338 * namespace.h: Fix common/ includes.
5339 * mips-linux-tdep.c: Fix common/ includes.
5340 * minsyms.c: Fix common/ includes.
5341 * mi/mi-parse.h: Fix common/ includes.
5342 * mi/mi-main.c: Fix common/ includes.
5343 * mi/mi-cmd-env.c: Fix common/ includes.
5344 * memrange.h: Fix common/ includes.
5345 * memattr.c: Fix common/ includes.
5346 * maint.h: Fix common/ includes.
5347 * maint.c: Fix common/ includes.
5348 * main.c: Fix common/ includes.
5349 * machoread.c: Fix common/ includes.
5350 * location.c: Fix common/ includes.
5351 * linux-thread-db.c: Fix common/ includes.
5352 * linux-nat.c: Fix common/ includes.
5353 * linux-fork.c: Fix common/ includes.
5354 * inline-frame.c: Fix common/ includes.
5355 * infrun.c: Fix common/ includes.
5356 * inflow.c: Fix common/ includes.
5357 * inferior.h: Fix common/ includes.
5358 * inferior.c: Fix common/ includes.
5359 * infcmd.c: Fix common/ includes.
5360 * inf-ptrace.c: Fix common/ includes.
5361 * inf-child.c: Fix common/ includes.
5362 * ia64-linux-nat.c: Fix common/ includes.
5363 * i387-tdep.c: Fix common/ includes.
5364 * i386-tdep.c: Fix common/ includes.
5365 * i386-linux-tdep.c: Fix common/ includes.
5366 * i386-linux-nat.c: Fix common/ includes.
5367 * i386-go32-tdep.c: Fix common/ includes.
5368 * i386-fbsd-tdep.c: Fix common/ includes.
5369 * i386-fbsd-nat.c: Fix common/ includes.
5370 * guile/scm-type.c: Fix common/ includes.
5371 * guile/guile.c: Fix common/ includes.
5372 * go32-nat.c: Fix common/ includes.
5373 * gnu-nat.c: Fix common/ includes.
5374 * gdbthread.h: Fix common/ includes.
5375 * gdbarch-selftests.c: Fix common/ includes.
5376 * gdb_usleep.c: Fix common/ includes.
5377 * gdb_select.h: Fix common/ includes.
5378 * gdb_bfd.c: Fix common/ includes.
5379 * gcore.c: Fix common/ includes.
5380 * fork-child.c: Fix common/ includes.
5381 * findvar.c: Fix common/ includes.
5382 * fbsd-nat.c: Fix common/ includes.
5383 * event-top.c: Fix common/ includes.
5384 * event-loop.c: Fix common/ includes.
5385 * dwarf2read.c: Fix common/ includes.
5386 * dwarf2loc.c: Fix common/ includes.
5387 * dwarf2-frame.c: Fix common/ includes.
5388 * dwarf-index-cache.c: Fix common/ includes.
5389 * dtrace-probe.c: Fix common/ includes.
5390 * disasm-selftests.c: Fix common/ includes.
5391 * defs.h: Fix common/ includes.
5392 * csky-tdep.c: Fix common/ includes.
5393 * cp-valprint.c: Fix common/ includes.
5394 * cp-support.h: Fix common/ includes.
5395 * cp-support.c: Fix common/ includes.
5396 * corelow.c: Fix common/ includes.
5397 * completer.h: Fix common/ includes.
5398 * completer.c: Fix common/ includes.
5399 * compile/compile.c: Fix common/ includes.
5400 * compile/compile-loc2c.c: Fix common/ includes.
5401 * compile/compile-cplus-types.c: Fix common/ includes.
5402 * compile/compile-cplus-symbols.c: Fix common/ includes.
5403 * command.h: Fix common/ includes.
5404 * cli/cli-dump.c: Fix common/ includes.
5405 * cli/cli-cmds.c: Fix common/ includes.
5406 * charset.c: Fix common/ includes.
5407 * build-id.c: Fix common/ includes.
5408 * btrace.h: Fix common/ includes.
5409 * btrace.c: Fix common/ includes.
5410 * breakpoint.h: Fix common/ includes.
5411 * breakpoint.c: Fix common/ includes.
5413 (enum agent_op): Fix common/ includes.
5414 * ax-general.c (struct aop_map): Fix common/ includes.
5415 * ax-gdb.c: Fix common/ includes.
5416 * auxv.c: Fix common/ includes.
5417 * auto-load.c: Fix common/ includes.
5418 * arm-tdep.c: Fix common/ includes.
5419 * arch/riscv.c: Fix common/ includes.
5420 * arch/ppc-linux-common.c: Fix common/ includes.
5421 * arch/i386.c: Fix common/ includes.
5422 * arch/arm.c: Fix common/ includes.
5423 * arch/arm-linux.c: Fix common/ includes.
5424 * arch/arm-get-next-pcs.c: Fix common/ includes.
5425 * arch/amd64.c: Fix common/ includes.
5426 * arch/aarch64.c: Fix common/ includes.
5427 * arch/aarch64-insn.c: Fix common/ includes.
5428 * arch-utils.c: Fix common/ includes.
5429 * amd64-windows-tdep.c: Fix common/ includes.
5430 * amd64-tdep.c: Fix common/ includes.
5431 * amd64-sol2-tdep.c: Fix common/ includes.
5432 * amd64-obsd-tdep.c: Fix common/ includes.
5433 * amd64-nbsd-tdep.c: Fix common/ includes.
5434 * amd64-linux-tdep.c: Fix common/ includes.
5435 * amd64-linux-nat.c: Fix common/ includes.
5436 * amd64-fbsd-tdep.c: Fix common/ includes.
5437 * amd64-fbsd-nat.c: Fix common/ includes.
5438 * amd64-dicos-tdep.c: Fix common/ includes.
5439 * amd64-darwin-tdep.c: Fix common/ includes.
5440 * agent.c: Fix common/ includes.
5441 * ada-lang.h: Fix common/ includes.
5442 * ada-lang.c: Fix common/ includes.
5443 * aarch64-tdep.c: Fix common/ includes.
5445 2019-01-25 Tom Tromey <tom@tromey.com>
5447 * common/create-version.sh: Use common/version.h.
5449 2019-01-24 Pedro Alves <palves@redhat.com>
5451 * infrun.c (signal_stop, signal_print, signal_program)
5452 (signal_catch, signal_pass): Now arrays instead of pointers.
5453 (update_signals_program_target, do_target_resume)
5454 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
5455 * linux-nat.c (linux_nat_target::pass_signals)
5456 (linux_nat_target::create_inferior, linux_nat_target::attach):
5458 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
5459 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
5460 * procfs.c (procfs_target::pass_signals): Adjust.
5461 * record-full.c (record_full_target::resume): Adjust.
5462 * remote.c (remote_target::pass_signals)
5463 (remote_target::program_signals): Adjust.
5464 * target-debug.h (target_debug_print_signals): Now takes a
5465 gdb::array_view as parameter. Adjust.
5466 * target.h (target_ops) <pass_signals, program_signals>: Replace
5467 pointer and length parameters with gdb::array_view.
5468 (target_pass_signals, target_program_signals): Likewise.
5469 * target-delegates.c: Regenerate.
5471 2019-01-24 Pedro Alves <palves@redhat.com>
5473 * common/forward-scope-exit.h
5474 (forward_scope_exit::forward_scope_exit): Pass arguments to
5475 m_bind_function directly, instead of creating a std::bind and
5478 2019-01-24 Alan Hayward <alan.hayward@arm.com>
5480 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5482 (pass_in_v_vfp_candidate): Likewise.
5484 2019-01-23 Tom Tromey <tom@tromey.com>
5485 Pedro Alves <palves@redhat.com>
5487 * regcache.c (class regcache_invalidator): Remove.
5488 (regcache::raw_write): Use make_scope_exit.
5490 2019-01-23 Tom Tromey <tom@tromey.com>
5492 * ui-out.h (class ui_out_emit_type): Update comment.
5494 2019-01-23 Tom Tromey <tom@tromey.com>
5496 * infrun.c (fetch_inferior_event): Update comment.
5498 2019-01-23 Tom Tromey <tom@tromey.com>
5499 Pedro Alves <palves@redhat.com>
5501 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
5503 (fetch_inferior_event): Use SCOPE_EXIT.
5506 2019-01-23 Tom Tromey <tom@tromey.com>
5507 Pedro Alves <palves@redhat.com>
5509 * infrun.c (disable_thread_events): Delete.
5510 (stop_all_threads): Use SCOPE_EXIT.
5512 2019-01-23 Tom Tromey <tom@tromey.com>
5513 Pedro Alves <palves@redhat.com>
5515 * symfile.c: Include forward-scope-exit.h.
5516 (clear_symtab_users_cleanup): Replace forward declaration with
5517 a FORWARD_SCOPE_EXIT.
5518 (syms_from_objfile_1): Use the forward_scope_exit and
5519 gdb::optional instead of cleanup_function.
5520 (reread_symbols): Use the forward_scope_exit instead of
5522 (clear_symtab_users_cleanup): Remove function.
5524 2019-01-23 Tom Tromey <tom@tromey.com>
5525 Pedro Alves <palves@redhat.com>
5527 * linux-nat.c: Include scope-exit.h.
5528 (cleanup_target_stop): Remove.
5529 (linux_nat_target::static_tracepoint_markers_by_strid): Use
5532 2019-01-23 Tom Tromey <tom@tromey.com>
5533 Pedro Alves <palves@redhat.com>
5535 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
5536 (call_function_by_hand_dummy): Use SCOPE_EXIT.
5538 2019-01-23 Tom Tromey <tom@tromey.com>
5539 Andrew Burgess <andrew.burgess@embecosm.com>
5540 Pedro Alves <palves@redhat.com>
5542 * infrun.c (fetch_inferior_event): Use scope_exit.
5543 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
5544 * top.c (execute_command): Use scope_exit.
5545 * breakpoint.c (bpstat_do_actions): Use scope_exit.
5546 * utils.c (do_bpstat_clear_actions_cleanup)
5547 (make_bpstat_clear_actions_cleanup): Remove.
5549 2019-01-23 Tom Tromey <tom@tromey.com>
5550 Pedro Alves <palves@redhat.com>
5552 * infrun.c: Include "common/scope-exit.h"
5553 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
5554 (wait_for_inferior): Use SCOPE_EXIT.
5555 (fetch_inferior_event): Use scope_exit.
5557 2019-01-23 Tom Tromey <tom@tromey.com>
5558 Pedro Alves <palves@redhat.com>
5560 * breakpoint.c (create_breakpoint): Remove cleanup.
5562 2019-01-23 Tom Tromey <tom@tromey.com>
5563 Andrew Burgess <andrew.burgess@embecosm.com>
5564 Pedro Alves <palves@redhat.com>
5566 2019-01-23 Pedro Alves <palves@redhat.com>
5568 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
5570 2019-01-23 Pedro Alves <palves@redhat.com>
5571 Andrew Burgess <andrew.burgess@embecosm.com>
5573 * gdbthread.h: Include "common/forward-scope-exit.h".
5574 (scoped_finish_thread_state): Redefine custom class in terms of
5577 2019-01-23 Pedro Alves <palves@redhat.com>
5578 Andrew Burgess <andrew.burgess@embecosm.com>
5580 * common/forward-scope-exit.h: New file.
5582 2019-01-23 Pedro Alves <palves@redhat.com>
5583 Andrew Burgess <andrew.burgess@embecosm.com>
5584 Tom Tromey <tom@tromey.com>
5586 * common/scope-exit.h: New file.
5588 2019-01-23 Pedro Alves <palves@redhat.com>
5590 * common/preprocessor.h (ESC): Rename to ...
5591 (ESC_PARENS): ... this.
5592 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
5593 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
5595 2019-01-23 Tom Tromey <tom@tromey.com>
5597 * language.h (class scoped_switch_to_sym_language_if_auto):
5598 Initialize m_lang in both cases.
5600 2019-01-23 Alan Hayward <alan.hayward@arm.com>
5602 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
5605 2019-01-22 Tom Tromey <tom@tromey.com>
5607 * corelow.c: Do not include sys/file.h.
5609 2019-01-22 Tom Tromey <tom@tromey.com>
5611 * tui/tui-wingeneral.h: Include gdb_curses.h.
5613 2019-01-22 Tom Tromey <tom@tromey.com>
5615 * source-cache.h (class source_cache) <get_source_lines,
5616 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
5618 2019-01-22 Tom Tromey <tom@tromey.com>
5620 * remote-fileio.h (struct remote_target): Declare.
5622 2019-01-22 Tom Tromey <tom@tromey.com>
5624 * python/py-arch.c: Do not include py-ref.h.
5625 * python/py-bpevent.c: Do not include py-ref.h.
5626 * python/py-cmd.c: Do not include py-ref.h.
5627 * python/py-continueevent.c: Do not include py-ref.h.
5628 * python/py-event.h: Do not include py-ref.h.
5629 * python/py-evtregistry.c: Do not include py-ref.h.
5630 * python/py-finishbreakpoint.c: Do not include py-ref.h.
5631 * python/py-frame.c: Do not include py-ref.h.
5632 * python/py-framefilter.c: Do not include py-ref.h.
5633 * python/py-function.c: Do not include py-ref.h.
5634 * python/py-infevents.c: Do not include py-ref.h.
5635 * python/py-linetable.c: Do not include py-ref.h.
5636 * python/py-objfile.c: Do not include py-ref.h.
5637 * python/py-param.c: Do not include py-ref.h.
5638 * python/py-prettyprint.c: Do not include py-ref.h.
5639 * python/py-progspace.c: Do not include py-ref.h.
5640 * python/py-symbol.c: Do not include py-ref.h.
5641 * python/py-symtab.c: Do not include py-ref.h.
5642 * python/py-type.c: Do not include py-ref.h.
5643 * python/py-unwind.c: Do not include py-ref.h.
5644 * python/py-utils.c: Do not include py-ref.h.
5645 * python/py-value.c: Do not include py-ref.h.
5646 * python/py-varobj.c: Do not include py-ref.h.
5647 * python/py-xmethods.c: Do not include py-ref.h.
5648 * python/python.c: Do not include py-ref.h.
5649 * varobj.c: Do not include py-ref.h.
5651 2019-01-22 Tom Tromey <tom@tromey.com>
5653 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
5656 2019-01-22 Tom Tromey <tom@tromey.com>
5658 * compile/compile-cplus-types.c: Remove a comment by #include.
5660 2019-01-22 Tom Tromey <tom@tromey.com>
5662 * compile/gcc-c-plugin.h: Include compile-internal.h.
5664 2019-01-22 Tom Tromey <tom@tromey.com>
5666 * stabsread.c (EXTERN): Do not define.
5667 (symnum, next_symbol_text_func, processing_gcc_compilation)
5668 (within_function, global_sym_chain, global_stabs)
5669 (previous_stab_code, this_object_header_files)
5670 (n_this_object_header_files)
5671 (n_allocated_this_object_header_files): Define.
5672 * stabsread.h (EXTERN): Never define. Use "extern".
5674 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5676 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
5679 2019-01-21 Tom Tromey <tom@tromey.com>
5681 * ui-out.c: Fix includes.
5682 * tui/tui-source.c: Fix includes.
5683 * target.c: Fix includes.
5684 * remote.c: Fix includes.
5685 * regcache.c: Fix includes.
5686 * python/py-block.c: Fix includes.
5687 * printcmd.c: Fix includes.
5688 * or1k-tdep.c: Fix includes.
5689 * mi/mi-main.c: Fix includes.
5690 * m32r-tdep.c: Fix includes.
5691 * csky-tdep.c: Fix includes.
5692 * compile/compile-cplus-types.c: Fix includes.
5693 * cli/cli-interp.c: Fix includes.
5695 2019-01-21 Alan Hayward <alan.hayward@arm.com>
5697 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5700 2019-01-16 Tom Tromey <tom@tromey.com>
5702 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
5704 (struct objfile) <msymbols_range>: Move from top level.
5705 <msymbols>: New method.
5706 (class objfile_msymbols): Remove.
5707 * symtab.c (default_collect_symbol_completion_matches_break_on):
5709 * symmisc.c (dump_msymbols): Update.
5710 * stabsread.c (scan_file_globals): Update.
5711 * objc-lang.c (info_selectors_command, info_classes_command)
5712 (find_methods): Update.
5713 * minsyms.c (find_solib_trampoline_target): Update.
5714 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
5715 * coffread.c (coff_symfile_read): Update.
5716 * ada-lang.c (ada_lookup_simple_minsym)
5717 (ada_collect_symbol_completion_matches): Update.
5719 2019-01-16 Tom Tromey <tom@tromey.com>
5721 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
5722 type. Remove no-argument constructor.
5723 <iterator::operator++>: Simplify.
5725 <end>: Use minimal_symbol_count.
5727 2019-01-16 Tom Tromey <tom@tromey.com>
5729 * objfiles.h (struct objfile) <psymtabs>: New method.
5730 (class objfile_psymtabs): Remove.
5731 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
5733 <range>: New method.
5734 (require_partial_symbols): Change return type.
5735 * psymtab.c (require_partial_symbols)
5736 (psym_expand_symtabs_matching): Update.
5737 * mdebugread.c (parse_partial_symbols): Update.
5738 * dbxread.c (dbx_end_psymtab): Update.
5740 2019-01-15 Tom Tromey <tom@tromey.com>
5742 * symtab.c (lookup_objfile_from_block)
5743 (lookup_symbol_in_objfile_symtabs)
5744 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
5745 (find_line_symtab, info_sources_command)
5746 (default_collect_symbol_completion_matches_break_on)
5747 (make_source_files_completion_list): Update.
5748 * symmisc.c (print_objfile_statistics, dump_objfile)
5749 (maintenance_print_symbols, maintenance_info_symtabs)
5750 (maintenance_check_symtabs, maintenance_info_line_tables):
5752 * source.c (select_source_symtab)
5753 (forget_cached_source_info_for_objfile): Update.
5754 * objfiles.h (class objfile_compunits): Remove.
5755 (struct objfile) <compunits_range>: New typedef.
5756 (compunits): New method.
5757 * objfiles.c (objfile_relocate1): Update.
5758 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
5759 * maint.c (count_symtabs_and_blocks): Update.
5760 * linespec.c (iterate_over_all_matching_symtabs): Update.
5761 * cp-support.c (add_symbol_overload_list_qualified): Update.
5762 * coffread.c (coff_symtab_read): Update.
5763 * ada-lang.c (add_nonlocal_symbols)
5764 (ada_collect_symbol_completion_matches)
5765 (ada_add_global_exceptions): Update.
5767 2019-01-15 Tom Tromey <tom@tromey.com>
5769 * progspace.h (program_space) <objfiles_safe_range>: New
5771 <objfiles_safe>: New method.
5772 * objfiles.h (class all_objfiles_safe): Remove.
5773 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
5774 * jit.c (jit_inferior_exit_hook): Update.
5776 2019-01-17 Tom Tromey <tom@tromey.com>
5778 * progspace.h (program_space) <objfiles_range>: New typedef.
5779 <objfiles>: New method.
5780 <objfiles_head>: Rename from objfiles.
5781 (object_files): Update.
5782 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
5783 * guile/scm-pretty-print.c
5784 (ppscm_find_pretty_printer_from_objfiles): Update.
5785 * guile/scm-objfile.c (gdbscm_objfiles): Update.
5786 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
5788 * python/py-progspace.c (pspy_get_objfiles): Update.
5789 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
5791 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
5792 (objfpy_lookup_objfile_by_build_id): Update.
5793 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
5794 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
5796 * symtab.c (iterate_over_symtabs, matching_obj_sections)
5797 (expand_symtab_containing_pc, lookup_objfile_from_block)
5798 (lookup_static_symbol, basic_lookup_transparent_type)
5799 (find_pc_sect_compunit_symtab, find_symbol_at_address)
5800 (find_line_symtab, info_sources_command)
5801 (default_collect_symbol_completion_matches_break_on)
5802 (make_source_files_completion_list, find_main_name): Update.
5803 * symmisc.c (print_symbol_bcache_statistics)
5804 (print_objfile_statistics, maintenance_print_symbols)
5805 (maintenance_print_msymbols, maintenance_print_objfiles)
5806 (maintenance_info_symtabs, maintenance_check_symtabs)
5807 (maintenance_expand_symtabs, maintenance_info_line_tables):
5809 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
5810 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
5811 (map_overlay_command, unmap_overlay_command)
5812 (simple_overlay_update, expand_symtabs_matching)
5813 (map_symbol_filenames): Update.
5814 * symfile-debug.c (set_debug_symfile): Update.
5815 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
5817 * source.c (select_source_symtab, forget_cached_source_info):
5819 * solib.c (solib_read_symbols): Update.
5820 * solib-spu.c (append_ocl_sos): Update.
5821 * psymtab.c (maintenance_print_psymbols)
5822 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
5823 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
5824 * printcmd.c (info_symbol_command): Update.
5825 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
5827 * objfiles.h (class all_objfiles): Remove.
5828 * objfiles.c (have_partial_symbols, have_full_symbols)
5829 (have_minimal_symbols, qsort_cmp, update_section_map)
5830 (shared_objfile_contains_address_p)
5831 (default_iterate_over_objfiles_in_search_order): Update.
5832 * objc-lang.c (info_selectors_command, info_classes_command)
5833 (find_methods): Update.
5834 * minsyms.c (find_solib_trampoline_target): Update.
5835 * maint.c (maintenance_info_sections)
5836 (maintenance_translate_address, count_symtabs_and_blocks):
5838 * main.c (captured_main_1): Update.
5839 * linux-thread-db.c (try_thread_db_load_from_pdir)
5840 (has_libpthread): Update.
5841 * linespec.c (iterate_over_all_matching_symtabs)
5842 (search_minsyms_for_name): Update.
5843 * jit.c (jit_find_objf_with_entry_addr): Update.
5844 * hppa-tdep.c (find_unwind_entry)
5845 (hppa_lookup_stub_minimal_symbol): Update.
5846 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
5848 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
5849 (elf_gnu_ifunc_resolve_by_got): Update.
5850 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
5851 * dwarf-index-write.c (save_gdb_index_command): Update.
5852 * cp-support.c (add_symbol_overload_list_qualified): Update.
5853 * breakpoint.c (create_overlay_event_breakpoint)
5854 (create_longjmp_master_breakpoint)
5855 (create_std_terminate_master_breakpoint)
5856 (create_exception_master_breakpoint): Update.
5857 * blockframe.c (find_pc_partial_function): Update.
5858 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
5859 (ada_collect_symbol_completion_matches)
5860 (ada_add_global_exceptions): Update.
5862 2019-01-17 Tom Tromey <tom@tromey.com>
5864 * solib-target.c (lm_info_target_p): Remove typedef. Don't
5866 (solib_target_parse_libraries): Change return type.
5867 (library_list_start_segment, library_list_start_section)
5868 (library_list_end_library, library_list_start_library); Update.
5869 (solib_target_free_library_list): Remove.
5870 (solib_target_parse_libraries): Remove cleanup. Change return
5872 (solib_target_current_sos): Update.
5874 2019-01-17 Tom Tromey <tromey@bapiya>
5876 * valprint.c: Replace "the the" with "the".
5877 * symtab.c: Replace "the the" with "the".
5878 * solib.c: Replace "the the" with "the".
5879 * solib-dsbt.c: Replace "the the" with "the".
5880 * linespec.c: Replace "the the" with "the".
5881 * dwarf2loc.h: Replace "the the" with "the".
5882 * amd64-windows-tdep.c: Replace "the the" with "the".
5883 * aarch64-tdep.c: Replace "the the" with "the".
5885 2019-01-16 Keith Seitz <keiths@redhat.com>
5888 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
5889 <builder>: Rename to ..
5890 <m_builder>: ... this and make private.
5891 (dwarf2_cu::get_builder): New method. Change all users of
5892 `builder' to use this method.
5893 (dwarf2_start_symtab): Move to ...
5894 (dwarf2_cu::start_symtab): ... here. Update all callers
5895 (setup_type_unit_groups): Move to ...
5896 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
5898 (dwarf2_cu::reset_builder): New method.
5899 (process_full_compunit, process_full_type_unit): Use
5900 dwarf2_cu::reset_builder.
5901 (follow_die_offset): Record the ancestor CU if it is different
5902 from the followed DIE's CU.
5903 (follow_die_sig_1): Likewise.
5905 2019-01-15 Tom Tromey <tom@tromey.com>
5907 * remote.c (class remote_state) <buf>: Now a char_vector.
5909 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
5911 (remote_target::getpkt_or_notif_sane_1)
5912 (remote_target::getpkt_sane)
5913 (remote_target::getpkt_or_notif_sane): Likewise.
5914 (class remote_target) <putpkt>: New overload.
5915 (remote_target::read_frame): Change type of "buf_p". Remove
5917 (packet_ok): New overload.
5918 (packet_check_result): New overload.
5921 2019-01-14 Tom Tromey <tom@tromey.com>
5923 * remote-notif.c (handle_notification, remote_notif_ack)
5924 (remote_notif_parse): Make "buf" const.
5925 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
5927 (remote_notif_parse, remote_notif_ack, handle_notification):
5929 * remote.c (remote_notif_stop_parse): Make "buf" const.
5930 (remote_target::remote_parse_stop_reply): Make "buf" const.
5931 (remote_notif_stop_ack): Make "buf" const.
5933 2019-01-14 Tom Tromey <tom@tromey.com>
5935 * remote.c (remote_console_output): Make parameter const.
5937 2019-01-14 Tom Tromey <tom@tromey.com>
5939 * target-debug.h (target_debug_print_signals): Constify.
5940 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
5941 * procfs.c (procfs_target::pass_signals): Update.
5942 * linux-nat.c (linux_nat_target::pass_signals): Update.
5943 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
5944 * target-delegates.c: Rebuild.
5945 * remote.c (remote_target::program_signals): Update.
5946 (remote_target::pass_signals): Update.
5947 * target.c (target_pass_signals): Constify argument.
5948 (target_program_signals): Likewise.
5949 * target.h (struct target_ops) <pass_signals, program_signals>:
5951 (target_pass_signals, target_program_signals): Constify argument.
5953 2019-01-14 Tom Tromey <tom@tromey.com>
5956 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
5958 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5960 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
5962 * rs6000-tdep.c: Include reggroups.h.
5963 (IS_V_ALIAS_PSEUDOREG): Define.
5964 (rs6000_register_name): Return names for the "vX" aliases.
5965 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
5966 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
5967 aliases. Call default_register_reggroup_p for all other
5969 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
5971 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
5972 Handle "vX" aliases.
5973 (v_alias_pseudo_register_collect): New function.
5974 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
5975 (rs6000_gdbarch_init): Initialize "vX" aliases as
5976 pseudo-registers. Restore registration of
5977 rs6000_pseudo_register_reggroup_p with
5978 set_tdesc_pseudo_register_reggroup_p.
5980 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
5982 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
5983 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
5984 set_gdbarch_num_pseudo_regs.
5986 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5988 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
5989 Remove arg prefixname, add do_set and do_show.
5990 Add member functions set_list and show_list.
5991 * cli/cli-style.c (class cli_style_option): Update accordingly.
5992 (style_set_list): Move to file scope.
5993 (style_show_list): Likewise.
5994 (set_style): Call help_list.
5995 (show_style): Call cmd_show_list.
5996 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
5997 Update to use the new macro.
5999 2019-10-12 Joel Brobecker <brobecker@adacore.com>
6001 * ada-lang.c (_initialize_ada_language): Expand the help text
6002 for the "catch exception" command.
6004 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6006 * symtab.c (matching_obj_sections): Initialize obj,
6007 declare it closer to its usage.
6009 2019-01-10 Tom Tromey <tom@tromey.com>
6011 * thread-iter.h (inf_threads_iterator): Use next_iterator.
6012 (basic_inf_threads_range): Remove.
6013 (inf_threads_range, inf_non_exited_threads_range)
6014 (safe_inf_threads_range): Use next_adapter.
6016 2019-01-10 Keith Seitz <keiths@redhat.com>
6020 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
6021 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
6023 2019-01-10 Keith Seitz <keiths@redhat.com>
6027 * dictionary.c (pending_to_vector): Remove.
6028 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6029 Remove _1 suffix, replacing functions of the same name. Update
6031 (dict_create_hashed, dict_create_hashed_expandable)
6032 (dict_create_linear, dict_create_linear_expandable, dict_free)
6033 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
6034 Make functions static.
6036 2019-01-10 Keith Seitz <keiths@redhat.com>
6040 * dictionary.h (struct dictionary): Replace declaration with
6042 (dict_create_hashed, dict_create_hashed_expandable)
6043 (dict_create_linear, dict_create_linear_expandable)
6044 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
6045 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
6046 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
6047 taking multidictionary argument.
6048 [ALL_DICT_SYMBOLS]: Update for multidictionary.
6049 * block.h (struct block) <dict>: Change to multidictionary
6050 and rename `multidict'.
6051 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
6052 symmisc.c: Update all dictionary references to multidictionary.
6054 2019-01-10 Keith Seitz <keiths@redhat.com>
6058 * dictionary.c: Include unordered_map.
6059 (pending_to_vector): New function.
6060 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6061 Rewrite the non-"_1" functions to take vector instead
6063 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
6064 "new" _1 versions of the same name.
6065 (multidictionary): Define.
6066 (std::hash<enum language): New definition.
6067 (collate_pending_symbols_by_language, mdict_create_hashed)
6068 (mdict_create_hashed_expandable, mdict_create_linear)
6069 (mdict_create_linear_expandable, mdict_free)
6070 (find_language_dictionary, create_new_language_dictionary)
6071 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
6072 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
6073 (mdict_size, mdict_empty): New functions.
6074 * dictionary.h (mdict_iterator): Define.
6076 2019-01-10 Pedro Alves <palves@redhat.com>
6078 * breakpoint.c (read_uploaded_action)
6079 (create_tracepoint_from_upload): Adjust to use
6080 gdb::unique_xmalloc_ptr.
6081 * ctf.c (ctf_write_uploaded_tp):
6082 (SET_ARRAY_FIELD): Use emplace_back.
6083 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
6084 * tracefile-tfile.c (tfile_write_uploaded_tp):
6085 * tracepoint.c (parse_tracepoint_definition): Adjust to use
6086 gdb::unique_xmalloc_ptr.
6087 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
6088 at_string, cond_string, cmd_strings>: Replace char pointers
6089 with gdb::unique_xmalloc_ptr.
6091 2019-01-10 Pedro Alves <palves@redhat.com>
6093 * solib-target.c (library_list_start_library): Don't xstrdup name.
6095 2019-01-10 Pedro Alves <palves@redhat.com>
6097 * mdebugread.c (parse_partial_symbols): Use
6098 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
6100 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6102 * linux-fork.c (scoped_switch_fork_info)
6103 <~scoped_switch_fork_info>: Fix incorrect variable name.
6105 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6107 * linux-fork.c (scoped_switch_fork_info)
6108 <scoped_switch_fork_info>: Make explicit.
6109 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
6111 2019-01-10 Tom Tromey <tom@tromey.com>
6113 * objfiles.h (objfile::reset_psymtabs): Update.
6114 * objfiles.c (objfile::objfile): Update.
6115 * psymtab.h (psymtab_storage::obstack): Update.
6116 (psymtab_storage::m_obstack): Use gdb::optional.
6117 (class psymtab_storage): Update comment. Remove objfile
6119 * psymtab.c (psymtab_storage::psymtab_storage): Update.
6121 2019-01-10 Tom Tromey <tom@tromey.com>
6123 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
6124 <free_psymtabs>: Now private.
6125 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
6126 (allocate_psymtab): Use new method.
6128 2019-01-10 Tom Tromey <tom@tromey.com>
6130 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
6131 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
6132 * mdebugread.c (parse_partial_symbols): Use
6133 allocate_dependencies.
6134 * dwarf2read.c (dwarf2_create_include_psymtab): Use
6135 allocate_dependencies.
6136 (process_psymtab_comp_unit_reader)
6137 (build_type_psymtab_dependencies): Likewise.
6138 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
6140 2019-01-10 Tom Tromey <tom@tromey.com>
6142 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
6143 PSYMBOL_SET_LANGUAGE.
6144 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
6146 2019-01-10 Tom Tromey <tom@tromey.com>
6148 * psymtab.h (psymtab_storage::obstack): New method.
6149 <m_obstack>: Rename from obstack; now private.
6150 * psymtab.c (psymtab_storage): Update.
6151 * dwarf2read.c (create_addrmap_from_index)
6152 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
6155 2019-01-10 Tom Tromey <tom@tromey.com>
6157 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
6158 * objfiles.h (objfile::reset_psymtabs): New method.
6160 2019-01-10 Tom Tromey <tom@tromey.com>
6162 * symmisc.c (print_symbol_bcache_statistics): Update.
6163 (print_objfile_statistics): Update.
6164 * symfile.c (reread_symbols): Update.
6165 * psymtab.h (class psymtab_storage): New.
6166 * psymtab.c (psymtab_storage): New constructor.
6167 (~psymtab_storage): New destructor.
6168 (require_partial_symbols): Update.
6169 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
6170 (find_pc_sect_psymtab, find_pc_sect_psymbol)
6171 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
6172 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
6173 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
6174 (start_psymtab_common, end_psymtab_common)
6175 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
6176 (allocate_psymtab): Update.
6177 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
6179 (dump_psymtab_addrmap, maintenance_print_psymbols)
6180 (maintenance_check_psymtabs): Update.
6181 (class objfile_psymtabs): Move to objfiles.h.
6182 * psympriv.h (discard_psymtab): Now inline.
6183 (psymtab_discarder::psymtab_discarder): Update.
6184 (psymtab_discarder::~psymtab_discarder): Update.
6185 (ALL_OBJFILE_PSYMTABS): Rewrite.
6186 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
6187 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
6189 <partial_symtabs>: New field.
6190 (class objfile_psymtabs): Move from psymtab.h. Update.
6191 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
6193 (objfile::~objfile): Don't destroy psymbol_cache.
6194 * mdebugread.c (parse_partial_symbols): Update.
6195 * dwarf2read.c (create_addrmap_from_index)
6196 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6197 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
6198 (add_partial_subprogram, dwarf2_ranges_read): Update.
6199 * dwarf-index-write.c (write_address_map)
6200 (write_one_signatured_type, recursively_write_psymbols)
6201 (class debug_names, class debug_names, write_psymtabs_to_index):
6204 2019-01-10 Tom Tromey <tom@tromey.com>
6206 * symtab.h (SYMBOL_SET_NAMES): Update.
6207 (symbol_set_names): Update.
6208 (MSYMBOL_SET_NAMES): Update.
6209 * symtab.c (symbol_set_names): Change argument to be an
6210 objfile_per_bfd_storage.
6211 * psymtab.c (add_psymbol_to_bcache): Update.
6212 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
6214 2019-01-10 Tom Tromey <tom@tromey.com>
6216 * symtab.c (create_demangled_names_hash): Change argument to be an
6217 objfile_per_bfd_storage.
6218 (symbol_set_names): Update.
6220 2019-01-10 Tom Tromey <tom@tromey.com>
6222 * xcoffread.c (xcoff_initial_scan): Unconditionally call
6224 * psymtab.c (init_psymbol_list): Do nothing if already called.
6225 * psympriv.h (init_psymbol_list): Add comment.
6226 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
6228 * dbxread.c (dbx_symfile_read): Unconditionally call
6231 2019-01-10 Tom Tromey <tom@tromey.com>
6233 * xcoffread.c (scan_xcoff_symtab): Update.
6234 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
6236 * mdebugread.c (parse_partial_symbols)
6237 (handle_psymbol_enumerators): Update.
6238 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
6239 * dbxread.c (read_dbx_symtab): Update.
6240 * psympriv.h (psymbol_placement): New enum.
6241 (add_psymbol_to_list): Update.
6243 2019-01-10 Tom Tromey <tom@tromey.com>
6245 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
6246 static_psymbols parameters.
6247 (scan_xcoff_symtab): Update.
6248 * psymtab.c (start_psymtab_common): Remove global_psymbols and
6249 static_psymbols parameters.
6250 * psympriv.h (start_psymtab_common): Update.
6251 * mdebugread.c (parse_partial_symbols): Update.
6252 * dwarf2read.c (create_partial_symtab): Update.
6253 * dbxread.c (read_dbx_symtab): Update.
6254 (start_psymtab): Remove global_psymbols and static_psymbols
6257 2019-01-10 Tom Tromey <tom@tromey.com>
6259 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
6260 * psymtab.c (allocate_psymtab): Add comment.
6261 * psympriv.h (allocate_psymtab): Add comment.
6262 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
6264 * dbxread.c (dbx_end_psymtab): Remove some initializations.
6266 2019-01-10 Tom Tromey <tom@tromey.com>
6268 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6270 * mipsread.c: Include mdebugread.h.
6271 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6273 * elfread.c: Include mdebugread.h.
6275 2019-01-09 Tom Tromey <tom@tromey.com>
6277 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
6278 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
6279 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
6280 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
6281 (psym_lookup_symbol, psym_find_last_source_symtab)
6282 (psym_forget_cached_source_info, psym_print_stats)
6283 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
6284 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
6285 (psym_map_matching_symbols, psym_expand_symtabs_matching)
6286 (psym_find_compunit_symtab_by_address)
6287 (maintenance_print_psymbols, maintenance_info_psymtabs)
6288 (maintenance_check_psymtabs): Use ranged for.
6289 * psymtab.h (class objfile_psymtabs): New.
6290 (require_partial_symbols): Return objfile_psymtabs.
6291 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
6293 2019-01-09 Tom Tromey <tom@tromey.com>
6295 * symfile.c (overlay_invalidate_all, find_pc_overlay)
6296 (find_pc_mapped_section, list_overlays_command)
6297 (map_overlay_command, unmap_overlay_command)
6298 (simple_overlay_update): Use all_objfiles.
6299 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
6300 * printcmd.c (info_symbol_command): Use all_objfiles.
6301 * objfiles.h (ALL_OBJSECTIONS): Remove.
6302 * maint.c (maintenance_translate_address): Use all_objfiles.
6303 * gcore.c (gcore_create_callback): Use all_objfiles.
6304 (objfile_find_memory_regions): Likewise.
6306 2019-01-09 Tom Tromey <tom@tromey.com>
6308 * symtab.c (find_line_symtab, info_sources_command)
6309 (make_source_files_completion_list): Use objfile_compunits.
6310 * source.c (select_source_symtab): Use objfile_compunits.
6311 * objfiles.h (struct objfile): Update comment.
6312 (ALL_OBJFILES): Remove.
6313 (ALL_FILETABS): Remove.
6314 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
6317 2019-01-09 Tom Tromey <tom@tromey.com>
6319 * symmisc.c (print_objfile_statistics, dump_objfile)
6320 (maintenance_print_symbols): Use compunit_filetabs.
6321 * source.c (forget_cached_source_info_for_objfile): Use
6323 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
6324 (ALL_FILETABS): Use compunit_filetabs.
6325 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
6326 * coffread.c (coff_symtab_read): Use compunit_filetabs.
6328 2019-01-09 Tom Tromey <tom@tromey.com>
6330 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
6331 (compunit_filetabs): New.
6332 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
6334 (info_sources_command, make_source_files_completion_list): Remove
6336 * symmisc.c (print_objfile_statistics, dump_objfile)
6337 (maintenance_print_symbols): Remove declaration.
6338 (maintenance_info_symtabs): Use compunit_filetabs.
6339 (maintenance_info_line_tables): Likewise.
6340 * source.c (select_source_symtab): Change local variable name.
6341 (forget_cached_source_info_for_objfile): Remove declaration.
6342 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
6343 * objfiles.c (objfile_relocate1): Remove declaration.
6344 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6346 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
6347 * coffread.c (coff_symtab_read): Remove declaration.
6348 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6351 2019-01-09 Tom Tromey <tom@tromey.com>
6353 * symtab.c (lookup_objfile_from_block)
6354 (find_pc_sect_compunit_symtab, search_symbols)
6355 (default_collect_symbol_completion_matches_break_on): Use
6357 * objfiles.h (ALL_COMPUNITS): Remove.
6358 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
6359 * cp-support.c (add_symbol_overload_list_qualified): Use
6361 * ada-lang.c (ada_collect_symbol_completion_matches)
6362 (ada_add_global_exceptions): Use objfile_compunits.
6364 2019-01-09 Tom Tromey <tom@tromey.com>
6366 * source.c (select_source_symtab)
6367 (forget_cached_source_info_for_objfile): Remove declaration.
6368 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6370 * maint.c (count_symtabs_and_blocks): Remove declaration.
6371 * cp-support.c (add_symbol_overload_list_qualified): Remove
6373 * coffread.c (coff_symtab_read): Remove declaration.
6374 * symtab.c (lookup_symbol_in_objfile_symtabs)
6375 (basic_lookup_transparent_type_1): Use objfile_compunits.
6376 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
6377 (info_sources_command, search_symbols)
6378 (default_collect_symbol_completion_matches_break_on)
6379 (make_source_files_completion_list): Remove declaration.
6380 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
6381 (ada_collect_symbol_completion_matches)
6382 (ada_add_global_exceptions): Remove declaration.
6383 * linespec.c (iterate_over_all_matching_symtabs): Use
6385 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
6386 (class objfile_compunits): New.
6387 (ALL_COMPUNITS): Use objfile_compunits.
6388 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
6389 (maintenance_check_symtabs, maintenance_info_line_tables): Use
6391 * objfiles.c (objfile_relocate1): Use objfile_compunits.
6393 2019-01-09 Tom Tromey <tom@tromey.com>
6395 * symtab.c (search_symbols)
6396 (default_collect_symbol_completion_matches_break_on): Use
6398 * ada-lang.c (ada_lookup_simple_minsym)
6399 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
6400 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
6401 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
6403 * coffread.c (coff_symfile_read): Use objfile_msymbols.
6404 * symmisc.c (dump_msymbols): Use objfile_msymbols.
6405 * objc-lang.c (find_methods): Use objfile_msymbols.
6406 (info_selectors_command, info_classes_command): Likewise.
6407 * stabsread.c (scan_file_globals): Use objfile_msymbols.
6408 * objfiles.h (class objfile_msymbols): New.
6409 (ALL_OBJFILE_MSYMBOLS): Remove.
6410 (ALL_MSYMBOLS): Remove.
6412 2019-01-09 Tom Tromey <tom@tromey.com>
6414 * common/next-iterator.h (next_adapter): Add Iterator template
6416 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
6417 (class all_objfiles_safe): New.
6418 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
6419 * objfiles.c (put_objfile_before): Update comment.
6420 (add_separate_debug_objfile): Likewise.
6421 (free_all_objfiles): Use all_objfiles_safe.
6422 (objfile_purge_solibs): Likewise.
6424 2019-01-09 Tom Tromey <tom@tromey.com>
6426 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6427 (expand_symtab_containing_pc, lookup_static_symbol)
6428 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
6429 (find_symbol_at_address, find_line_symtab, find_main_name): Use
6431 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
6432 * breakpoint.c (create_overlay_event_breakpoint)
6433 (create_longjmp_master_breakpoint)
6434 (create_std_terminate_master_breakpoint)
6435 (create_exception_master_breakpoint): Use all_objfiles.
6436 * linux-thread-db.c (try_thread_db_load_from_pdir)
6437 (has_libpthread): Use all_objfiles.
6438 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
6439 * linespec.c (iterate_over_all_matching_symtabs)
6440 (search_minsyms_for_name): Use all_objfiles.
6441 * maint.c (maintenance_info_sections): Use all_objfiles.
6442 * main.c (captured_main_1): Use all_objfiles.
6443 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
6444 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
6445 * guile/scm-pretty-print.c
6446 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
6447 * solib-spu.c (append_ocl_sos): Use all_objfiles.
6448 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
6449 (maintenance_print_msymbols): Use all_objfiles.
6450 * source.c (select_source_symtab): Use all_objfiles.
6451 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
6452 * symfile.c (remove_symbol_file_command)
6453 (expand_symtabs_matching, map_symbol_filenames): Use
6455 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
6457 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
6458 * objc-lang.c (find_methods): Use all_objfiles.
6459 * objfiles.c (have_partial_symbols, have_full_symbols)
6460 (have_minimal_symbols, qsort_cmp)
6461 (default_iterate_over_objfiles_in_search_order): Use
6463 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
6464 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
6465 (maintenance_check_psymtabs): Use all_objfiles.
6466 (ALL_PSYMTABS): Remove.
6467 * compile/compile-object-run.c (do_module_cleanup): Use
6469 * blockframe.c (find_pc_partial_function): Use all_objfiles.
6470 * cp-support.c (add_symbol_overload_list_qualified): Use
6472 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6474 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
6475 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
6477 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6478 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
6479 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6481 * solib.c (solib_read_symbols): Use all_objfiles
6483 2019-01-09 Tom Tromey <tom@tromey.com>
6485 * probe.c (parse_probes_in_pspace): Use all_objfiles.
6486 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
6488 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
6489 * symmisc.c (print_symbol_bcache_statistics)
6490 (print_objfile_statistics, maintenance_print_objfiles)
6491 (maintenance_info_symtabs, maintenance_check_symtabs)
6492 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
6494 * source.c (forget_cached_source_info): Use all_objfiles.
6495 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
6496 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6497 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
6498 * objfiles.c (update_section_map): Use all_objfiles.
6499 (shared_objfile_contains_address_p): Likewise.
6500 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
6501 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
6503 2019-01-09 Tom Tromey <tom@tromey.com>
6505 * common/next-iterator.h: New file.
6506 * objfiles.h (class all_objfiles): New.
6507 (struct objfile_iterator): New.
6509 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6511 * NEWS: Move the description of the changed "frame", "select-frame",
6512 and "info frame" commands to the Changed commands section.
6514 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
6516 * gdbtypes.c (check_stub_method_group): Remove handling of old
6518 * linespec.c (find_methods): Likewise.
6519 * stabsread.c (read_member_functions): Likewise.
6520 * valops.c (search_struct_method): Likewise.
6521 (value_struct_elt_for_reference): Likewise.
6522 * NEWS: Mention this change.
6524 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6526 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
6528 * source.c (print_source_lines_base): Update line number check.
6529 (print_source_lines): New function.
6530 (source_lines_range::source_lines_range): New function.
6531 * source.h (class source_lines_range): New class.
6532 (print_source_lines): New declaration.
6534 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6536 * linespec.c (linespec_state_destructor): Free self->canonical_names.
6538 2019-01-08 Tom Tromey <tom@tromey.com>
6539 Simon Marchi <simon.marchi@ericsson.com>
6542 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
6543 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
6544 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6545 * f-exp.y (DOLLAR_VARIABLE): Likewise.
6546 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
6547 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6549 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6551 * source.c (select_source_symtab): Move header comment to
6552 declaration in source.h.
6553 (forget_cached_source_info_for_objfile): Likewise.
6554 (forget_cached_source_info): Likewise.
6555 (identify_source_line): Likewise.
6556 * source.h (identify_source_line): Move declaration from symtab.h
6557 and add comment from source.c
6558 (print_source_lines): Likewise.
6559 (forget_cached_source_info_for_objfile): Likewise.
6560 (forget_cached_source_info): Likewise.
6561 (select_source_symtab): Likewise.
6562 (enum print_source_lines_flag): Move definition from symtab.h.
6563 * symtab.h (identify_source_line): Move declaration to source.h.
6564 (print_source_lines): Likewise.
6565 (forget_cached_source_info_for_objfile): Likewise.
6566 (forget_cached_source_info): Likewise.
6567 (select_source_symtab): Likewise.
6568 (enum print_source_lines_flag): Move definition to source.h.
6569 * tui/tui-hooks.c: Add 'source.h' include.
6571 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6573 * source.c (print_source_lines_base): Handle requests to print
6574 reverse line number sequences, and guard against empty lines
6577 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6579 * source.c (print_source_lines_base): Fix skip of '\r' if next
6582 2019-01-06 Tom Tromey <tom@tromey.com>
6584 * c-exp.y (struct c_parse_state) <macro_original_text,
6585 expansion_obstack>: New member.
6586 (macro_original_text, expansion_obstack): Remove globals.
6587 (scan_macro_expansion, scanning_macro_expansion)
6588 (finished_macro_expansion): Update.
6589 (scan_macro_cleanup): Remove.
6590 (yylex, c_parse): Update.
6592 2019-01-06 Tom Tromey <tom@tromey.com>
6594 * c-exp.y (struct c_parse_state) <strings>: New member.
6595 (operator_stoken): Update.
6597 2019-01-06 Tom Tromey <tom@tromey.com>
6599 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
6600 (union type_stack_elt) <typelist_val>: Now a pointer to
6602 (type_stack_cleanup): Don't declare.
6603 (push_typelist): Update.
6604 * parse.c (pop_typelist): Return a std::vector.
6605 (push_typelist): Take a std::vector.
6606 (follow_types): Update. Do not free args.
6607 (type_stack_cleanup): Remove.
6608 * c-exp.y (struct c_parse_state): New.
6609 (cpstate): New global.
6610 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
6611 (nonempty_typelist): Update.
6612 (func_mod): Create a new vector.
6613 (c_parse): Create a c_parse_state.
6614 (check_parameter_typelist): Do not delete params.
6615 (function_method): Update. Do not delete type_list.
6617 2019-01-06 Tom Tromey <tom@tromey.com>
6620 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
6622 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
6623 (print_return_value): Likewise.
6625 2019-01-05 Tom Tromey <tom@tromey.com>
6627 * contrib/cleanup_check.py: Remove.
6628 * contrib/gcc-with-excheck: Remove.
6629 * contrib/exsummary.py: Remove.
6630 * contrib/excheck.py: Remove.
6632 2019-01-05 Joel Brobecker <brobecker@adacore.com>
6634 * thread.c (delete_thread_1): Add gdb_assert that THR is not
6635 NULL. Initialize tpprev to NULL instead of assigning it
6636 to NULL on the next statement.
6637 * windows-nat.c (windows_delete_thread): Remove check for
6638 main_thread_id before printing thread exit notifications.
6639 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
6640 Remove thread ID check against main_thread_id.
6641 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
6642 windows_delete_thread.
6643 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
6645 2019-01-04 Tom Tromey <tom@tromey.com>
6647 * compile/compile.c (_initialize_compile): Use upper case for
6648 metasyntactic variables.
6649 * symmisc.c (_initialize_symmisc): Use upper case for
6650 metasyntactic variables.
6651 * psymtab.c (_initialize_psymtab): Use upper case for
6652 metasyntactic variables.
6653 * demangle.c (demangle_command): Use upper case for metasyntactic
6655 (_initialize_demangler): Likewise.
6656 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
6659 2019-01-03 Tom Tromey <tom@tromey.com>
6661 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
6663 2019-01-03 Tom Tromey <tom@tromey.com>
6665 * python/py-symtab.c (salpy_str): Update.
6666 (struct salpy_sal_object) <symtab>: Now a PyObject.
6667 (salpy_dealloc): Update.
6668 (del_objfile_sal): Use gdbpy_ref.
6670 2019-01-03 Tom Tromey <tom@tromey.com>
6672 * python/py-type.c (convert_field): Use new_reference. Return
6674 (make_fielditem): Return gdbpy_ref.
6675 (typy_fields): Update.
6676 (typy_getitem): Update.
6677 (field_name): Return gdbpy_ref. Use new_reference.
6678 (typy_iterator_iternext): Update.
6680 2019-01-03 Tom Tromey <tom@tromey.com>
6682 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
6684 2019-01-03 Tom Tromey <tom@tromey.com>
6686 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
6687 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
6688 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
6689 (pspy_set_frame_filters, pspy_set_frame_unwinders)
6690 (pspy_set_type_printers): Likewise.
6691 * python/py-function.c (fnpy_init): Use gdbpy_ref.
6692 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
6693 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
6694 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
6695 (objfpy_set_type_printers): Likewise.
6697 2019-01-03 Tom Tromey <tom@tromey.com>
6699 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
6700 (gdbpy_print_stack): Use gdbpy_err_fetch.
6701 * python/python-internal.h (class gdbpy_err_fetch): New class.
6702 (class gdbpy_enter) <m_error_type, m_error_value,
6703 m_error_traceback>: Remove.
6704 <m_error>: New member.
6705 (gdbpy_exception_to_string): Don't declare.
6706 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
6707 * python/py-value.c (convert_value_from_python): Use
6709 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
6710 gdbpy_exception_to_string.
6711 (gdbpy_handle_exception): Use gdbpy_err_fetch.
6712 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
6715 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6717 * linux-nat.c (delete_lwp_cleanup): Delete.
6718 (struct lwp_deleter): New struct.
6719 (lwp_info_up): New typedef.
6720 (linux_nat_target::follow_fork): Delete cleanup, and make use of
6723 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6725 * linux-fork.c (class scoped_switch_fork_info): New class.
6726 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
6728 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6730 * valops.c (find_overload_match): Remove use of null_cleanup, and
6731 calls to do_cleanups.
6733 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6735 * compile/compile-cplus-types.c
6736 (compile_cplus_instance::decl_name): Handle changes to
6738 * cp-support.c (cp_func_name): Update header comment, update
6740 * cp-support.h (cp_func_name): Update return type in declaration.
6741 * valops.c (find_overload_match): Move temp_func local to top
6742 level of function and change its type. Use temp_func to hold and
6743 delete temporary string obtained from cp_func_name.
6745 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6747 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
6748 gdb::char_vector, remove cleanup, and update uses of `msg`.
6750 2019-01-03 Jim Wilson <jimw@sifive.com>
6752 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
6754 2019-01-02 Tom Tromey <tom@tromey.com>
6756 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
6757 (tdesc_parse_xml): Remove cleanups.
6758 * target-descriptions.h (make_cleanup_free_target_description):
6760 (target_desc_deleter): New struct.
6761 (target_desc_up): New typedef.
6762 * target-descriptions.c (target_desc_deleter::operator()): Rename
6763 from free_target_description.
6764 (make_cleanup_free_target_description): Remove.
6766 2019-01-02 Tom Tromey <tom@tromey.com>
6768 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
6769 constructor, destructor.
6770 (linespec_parser): Remove typedef.
6771 (~linespec_parser): Rename from linespec_parser_delete.
6772 (linespec_lex_to_end, linespec_complete_label)
6773 (linespec_complete): Update.
6774 (decode_line_full): Remove cleanups.
6775 (decode_line_1): Update.
6777 2019-01-02 Tom Tromey <tom@tromey.com>
6779 * python/python-internal.h (inferior_to_inferior_object): Change
6781 * python/py-exitedevent.c (create_exited_event_object): Update.
6782 * python/py-inferior.c (inferior_to_inferior_object): Return
6784 (python_new_inferior, python_inferior_deleted)
6785 (thread_to_thread_object, delete_thread_object)
6786 (build_inferior_list, gdbpy_selected_inferior): Update.
6787 * python/py-infthread.c (create_thread_object): Update. Also fail
6788 if inferior_to_inferior_object fails.
6790 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
6792 * inferior.h (class inferior) <displaced_step_state>: New field.
6793 * infrun.h (struct displaced_step_state): Move here from
6794 infrun.c. Initialize fields, add constructor.
6795 <inf>: Remove field.
6796 <reset>: New method.
6797 * infrun.c (struct displaced_step_inferior_state): Move to
6799 (displaced_step_inferior_states): Remove.
6800 (get_displaced_stepping_state): Adust.
6801 (displaced_step_in_progress_any_inferior): Adjust.
6802 (displaced_step_in_progress_thread): Adjust.
6803 (displaced_step_in_progress): Adjust.
6804 (add_displaced_stepping_state): Remove.
6805 (get_displaced_step_closure_by_addr): Adjust.
6806 (remove_displaced_stepping_state): Remove.
6807 (infrun_inferior_exit): Call displaced_step_state.reset.
6808 (use_displaced_stepping): Don't check for NULL.
6809 (displaced_step_prepare_throw): Call
6810 get_displaced_stepping_state.
6811 (displaced_step_fixup): Don't check for NULL.
6812 (prepare_for_detach): Don't check for NULL.
6814 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6816 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
6817 in case of call that did not complete.
6819 2019-01-02 Andrey Utkin <autkin@undo.io>
6821 * symfile.c (find_separate_debug_file): Fix search of debug files for
6824 2019-01-02 Tom Tromey <tom@tromey.com>
6826 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
6828 * python/py-frame.c (frapy_older): Remove cast.
6829 (frapy_newer): Likewise.
6830 * python/py-breakpoint.c (local_setattro): Remove cast.
6831 * python/py-arch.c (archpy_name): Remove local variable.
6832 * python/py-type.c (gdbpy_lookup_type): Remove cast.
6834 2019-01-02 Joel Brobecker <brobecker@adacore.com>
6836 * unittests/basic_string_view/element_access/char/empty.cc:
6837 Fix year range in copyright header.
6839 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
6841 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
6843 <operator==>: Update with for removed field.
6845 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
6846 <isa_features>: ...this.
6847 <abi_features>: New field.
6848 (riscv_isa_flen): Update comment.
6849 (riscv_abi_xlen): New declaration.
6850 (riscv_abi_flen): New declaration.
6851 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
6853 (riscv_abi_xlen): New function.
6854 (riscv_isa_flen): Update to get answer from isa_features.
6855 (riscv_abi_flen): New function.
6856 (riscv_has_fp_abi): Update to get answer from abi_features.
6857 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
6859 (riscv_call_info) <xlen, flen>: Update comment.
6860 (riscv_call_arg_struct): Remove invalid assertions
6861 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
6863 (riscv_gdbarch_init): Gather isa features and abi features
6864 separately, ensure both match on the gdbarch when reusing an old
6865 gdbarch. Relax an error check to allow 32-bit abi float to run on
6866 a target with 64-bit float hardware.
6868 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6870 * source.c (search_command_helper): Stop reverse search
6871 when line 1 has been searched.
6873 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6875 * record-full.c (record_full_base_target::close): Rewrite
6876 record_full_core_buf_list free logic.
6878 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6880 * break-catch-syscall.c (print_one_catch_syscall): xfree
6883 2019-01-01 Joel Brobecker <brobecker@adacore.com>
6885 * top.c (print_gdb_version): Update Copyright year in version
6888 2019-01-01 Joel Brobecker <brobecker@adacore.com>
6890 Update copyright year range in all GDB files.
6892 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
6894 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
6896 For older changes see ChangeLog-2018.
6902 version-control: never