1 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
3 * MAINTAINERS (Write After Approval): Add myself.
5 2019-05-17 Tom de Vries <tdevries@suse.de>
8 * dwarf2read.c (struct cu_partial_die_info): New struct.
9 (find_partial_die): Return cu_partial_die_info.
10 (partial_die_parent_scope, guess_partial_die_structure_name)
11 (partial_die_info::fixup): Handle new return type of find_partial_die.
13 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
15 * stap-probe.c (stap_parse_register_operand): Make "regname" an
16 "std::string", simplifying the algorithm.
18 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
20 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
21 (stap_static_probe_ops::get_probes): Likewise.
23 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
25 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
27 (stap_parse_single_operand): Join checks for
28 "gdbarch_stap_parse_special_token_p" and
29 "gdbarch_stap_parse_special_token" in the same "if" statement.
30 Invert check when verifying for operation on register
33 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
35 * stap-probe.c (stap_get_opcode): Update comment.
36 (stap_get_expected_argument_type): Likewise.
37 (handle_stap_probe): Likewise.
39 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
41 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
42 return type to 'bool'. Adjust comment. Use 'bool' when
44 (i386_stap_parse_special_token_three_arg_disp): Likewise.
45 * stap-probe.c (stap_parse_argument_1): Likewise.
46 (stap_is_operator): Likewise.
47 (stap_is_generic_prefix): Likewise.
48 (stap_is_register_prefix): Likewise.
49 (stap_is_register_indirection_prefix): Likewise.
50 (stap_is_integer_prefix): Likewise.
51 (stap_generic_check_suffix): Likewise.
52 (stap_check_integer_suffix): Likewise.
53 (stap_check_register_suffix): Likewise.
54 (stap_check_register_indirection_suffix): Likewise.
55 (stap_parse_register_operand): Likewise.
56 (stap_parse_single_operand): Likewise.
57 (stap_parse_argument_1): Likewise.
58 (stap_probe::get_argument_count): Likewise.
59 (stap_is_operator): Likewise.
61 2019-05-16 Tom Tromey <tromey@adacore.com>
63 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
66 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
68 * linux-thread-db.c (try_thread_db_load_1): Change return type
70 (try_thread_db_load): Likewise.
71 (try_thread_db_load_from_pdir_1): Likewise.
72 (try_thread_db_load_from_pdir): Likewise.
73 (try_thread_db_load_from_sdir): Likewise.
74 (try_thread_db_load_from_dir): Likewise.
75 (thread_db_load_search): Likewise.
76 (has_libpthread): Likewise.
77 (thread_db_load): Likewise.
79 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
81 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
82 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
83 NULL, and complain/return if that's the case.
85 2019-05-15 John Darrington <john@darrington.wattle.id.au>
87 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
88 (advance, posn, abstract_read_memory): New functions.
89 [struct mem_read_abstraction]: New struct.
90 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
92 2019-05-14 Tom Tromey <tromey@adacore.com>
94 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
95 value is not lval_memory.
97 2019-05-14 Tom Tromey <tromey@adacore.com>
99 * solib.c (info_sharedlibrary_command): Style the file name.
101 2019-05-14 Alan Hayward <alan.hayward@arm.com>
103 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
104 (aarch64_vnv_type): Likewise.
105 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
106 * common/tdesc.c: Likewise.
107 * common/tdesc.h (enum tdesc_type_kind): Likewise.
108 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
109 * features/aarch64-fpu.xml: Add ieee half view.
110 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
111 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
112 * gdbtypes.h (struct builtin_type): Likewise.
113 (struct objfile_type): Likewise.
115 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
117 * language.c (language_sniff_from_mangled_name): Fix "langauge"
119 * location.h (string_to_event_location): Likewise.
121 2019-05-11 Joel Brobecker <brobecker@adacore.com>
125 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
127 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
128 New variable declaration.
129 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
131 (print_one_breakpoint): Use ui_out::test_flags and new global
132 variable to compute use_fixed_output.
133 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
135 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
136 (mi_multi_location_breakpoint_output_fixed): Remove.
137 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
139 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
140 fix_multi_location_breakpoint_output flag if version >= 3.
141 * ui-out.h (enum ui_out_flag)
142 <fix_multi_location_breakpoint_output>: New enumerator.
144 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
146 * contrib/cc-with-tweaks.sh: Validate dwz's work.
148 2019-05-10 Tom Tromey <tromey@adacore.com>
150 * ada-lang.c (catch_ada_completer): New function.
151 (_initialize_ada_language): Use it.
153 2019-05-10 Tom Tromey <tromey@adacore.com>
155 * thread.c (print_thread_info): Make "requested_threads" const.
156 * gdbthread.h (print_thread_info): Make "requested_threads"
158 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
159 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
161 2019-05-08 Tom Tromey <tom@tromey.com>
163 * gdbtypes.c (objfile_type_data): Change type.
164 (objfile_type, _initialize_gdbtypes): Update.
166 2019-05-08 Tom Tromey <tom@tromey.com>
168 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
169 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
170 (_initialize_dwarf2_frame): Update.
172 2019-05-08 Tom Tromey <tom@tromey.com>
174 * objc-lang.c (objc_objfile_data): Change type.
175 (find_methods): Update.
176 (_initialize_objc_lang): Remove.
178 2019-05-08 Tom Tromey <tom@tromey.com>
180 * stabsread.c (rs6000_builtin_type_data): Change type.
181 (rs6000_builtin_type, _initialize_stabsread): Update.
183 2019-05-08 Tom Tromey <tom@tromey.com>
185 * mips-tdep.c (mips_pdr_data): Remove.
186 (_initialize_mips_tdep): Update.
188 2019-05-08 Tom Tromey <tom@tromey.com>
190 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
191 (hppa_init_objfile_priv_data, read_unwind_info)
192 (find_unwind_entry, _initialize_hppa_tdep): Update.
194 2019-05-08 Tom Tromey <tom@tromey.com>
196 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
197 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
199 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
201 2019-05-08 Tom Tromey <tom@tromey.com>
203 * mdebugread.c (basic_type_data): Change type.
204 (basic_type, _initialize_mdebugread): Update.
206 2019-05-08 Tom Tromey <tom@tromey.com>
208 * common/gdb_unique_ptr.h (struct noop_deleter): New.
210 2019-05-08 Tom Tromey <tom@tromey.com>
212 * nto-tdep.c (nto_inferior_data_reg): Change type.
213 (nto_inferior_data): Update.
214 (nto_inferior_data_cleanup, nto_new_inferior_data)
215 (_initialize_nto_tdep): Remove.
216 * nto-tdep.h (struct nto_inferior_data): Add initializers.
218 2019-05-08 Tom Tromey <tom@tromey.com>
220 * ada-lang.c (struct ada_inferior_data): Add initializers.
221 (ada_inferior_data): Change type.
222 (ada_inferior_data_cleanup): Remove.
223 (get_ada_inferior_data, ada_inferior_exit)
224 (struct ada_pspace_data): Add initializers, destructor.
225 (ada_pspace_data_handle): Change type.
226 (get_ada_pspace_data): Update.
227 (ada_pspace_data_cleanup): Remove.
229 2019-05-08 Tom Tromey <tom@tromey.com>
231 * coffread.c (struct coff_symfile_info): Add initializers.
232 (coff_objfile_data_key): Move lower. Change type.
233 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
235 (coff_free_info): Remove.
237 2019-05-08 Tom Tromey <tom@tromey.com>
239 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
240 (fbsd_pspace_data_handle): Move lower. Change type.
241 (get_fbsd_pspace_data): Update.
242 (fbsd_pspace_data_cleanup): Remove.
243 (_initialize_fbsd_tdep): Update.
245 2019-05-08 Tom Tromey <tom@tromey.com>
247 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
248 (get_ada_tasks_pspace_data): Update.
249 (ada_tasks_pspace_data_cleanup): Remove.
250 (_initialize_tasks): Update.
251 (ada_tasks_inferior_data_handle): Change type.
252 (get_ada_tasks_inferior_data): Update.
253 (ada_tasks_inferior_data_cleanup): Remove.
254 (struct ada_tasks_pspace_data): Add initializers.
256 2019-05-08 Tom Tromey <tom@tromey.com>
258 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
259 * symfile-debug.c (debug_sym_get_probes): Change type.
260 * stap-probe.c (handle_stap_probe):
261 (stap_static_probe_ops::get_probes): Change type.
262 * probe.h (class static_probe_ops) <get_probes>: Change type.
263 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
264 (parse_probes_in_pspace): Update.
265 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
267 (any_static_probe_ops::get_probes): Change type.
268 * elfread.c (elfread_data): New typedef.
269 (probe_key): Change type.
270 (elf_get_probes): Likewise. Update.
271 (probe_key_free): Remove.
272 (_initialize_elfread): Update.
273 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
275 (dtrace_process_dof_probe, dtrace_process_dof)
276 (dtrace_static_probe_ops::get_probe): Change type.
278 2019-05-08 Tom Tromey <tom@tromey.com>
280 * xcoffread.c (struct xcoff_symfile_info): Rename from
281 coff_symfile_info. Add initializers.
282 (xcoff_objfile_data_key): Move lower. Change type.
283 (XCOFF_DATA): Rewrite.
284 (xcoff_free_info): Remove.
285 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
286 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
287 (xcoff_initial_scan): Update.
289 2019-05-08 Tom Tromey <tom@tromey.com>
291 * solib-svr4.c (struct svr4_info): Add initializers and
293 <probes_table>: Now an htab_up.
294 (solib_svr4_pspace_data): Change type.
295 (free_probes_table): Simplify.
296 (~svr4_info): Rename from svr4_pspace_data_cleanup.
297 (get_svr4_info, probes_table_htab_remove_objfile_probes)
298 (probes_table_remove_objfile_probes, register_solib_event_probe)
299 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
300 (_initialize_svr4_solib): Update.
302 2019-05-08 Tom Tromey <tom@tromey.com>
304 * remote.c (remote_pspace_data): Change type.
305 (remote_pspace_data_cleanup): Remove.
306 (get_remote_exec_file, set_pspace_remote_exec_file)
307 (_initialize_remote): Update.
309 2019-05-08 Tom Tromey <tom@tromey.com>
311 * breakpoint.c (breakpoint_objfile_key): Change type.
312 (get_breakpoint_objfile_data): Update.
313 (free_breakpoint_objfile_data): Remove.
314 (_initialize_breakpoint): Update.
316 2019-05-08 Tom Tromey <tom@tromey.com>
318 * linux-tdep.c (struct linux_info): Add initializers.
319 (linux_inferior_data): Move. Change type.
320 (invalidate_linux_cache_inf): Update.
321 (linux_inferior_data_cleanup): Remove.
322 (get_linux_inferior_data, _initialize_linux_tdep): Update.
324 2019-05-08 Tom Tromey <tom@tromey.com>
326 * auxv.c (auxv_inferior_data): Move. Change type.
327 (auxv_inferior_data_cleanup): Remove.
328 (invalidate_auxv_cache_inf): Rewrite.
329 (get_auxv_inferior_data, _initialize_auxv): Update.
331 2019-05-08 Tom Tromey <tom@tromey.com>
333 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
334 (symfile_debug_objfile_data_key): Change type.
335 (symfile_debug_installed, debug_qf_has_symbols)
336 (debug_qf_find_last_source_symtab)
337 (debug_qf_forget_cached_source_info)
338 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
339 (debug_qf_print_stats, debug_qf_dump)
340 (debug_qf_expand_symtabs_for_function)
341 (debug_qf_expand_all_symtabs)
342 (debug_qf_expand_symtabs_with_fullname)
343 (debug_qf_map_matching_symbols)
344 (debug_qf_expand_symtabs_matching)
345 (debug_qf_find_pc_sect_compunit_symtab)
346 (debug_qf_map_symbol_filenames)
347 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
348 (debug_sym_new_init, debug_sym_init, debug_sym_read)
349 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
350 (debug_sym_read_linetable, debug_sym_relocate): Update.
351 (symfile_debug_free_objfile): Remove.
352 (install_symfile_debug_logging, _initialize_symfile_debug):
355 2019-05-08 Tom Tromey <tom@tromey.com>
357 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
359 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
360 (get_dwarf2_per_objfile): Update.
361 (set_dwarf2_per_objfile): Remove.
362 (dwarf2_has_info, dwarf2_get_section_info): Update.
363 (dwarf2_free_objfile): Remove.
364 (_initialize_dwarf2_read): Update.
366 2019-05-08 Tom Tromey <tom@tromey.com>
368 * auto-load.c (struct auto_load_pspace_info): Add destructor and
370 <unsupported_script_warning_printed,
371 script_not_found_warning_printed>: Now bool.
372 (auto_load_pspace_data): Change type.
373 (~auto_load_pspace_info): Rename from
374 auto_load_pspace_data_cleanup.
375 (get_auto_load_pspace_data, init_loaded_scripts_info)
376 (clear_section_scripts, maybe_print_unsupported_script_warning)
377 (maybe_print_script_not_found_warning, _initialize_auto_load):
380 2019-05-08 Tom Tromey <tom@tromey.com>
382 * objfiles.c (objfile_pspace_info): Add destructor and
384 (objfiles_pspace_data): Change type.
385 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
386 (get_objfile_pspace_data): Update.
387 (objfiles_bfd_data): Change type.
388 (get_objfile_bfd_data): Update.
389 (objfile_bfd_data_free, _initialize_objfiles): Remove.
391 2019-05-08 Tom Tromey <tom@tromey.com>
393 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
395 (get_catch_syscall_inferior_data): Update.
396 (catch_syscall_inferior_data_cleanup): Remove.
397 (_initialize_break_catch_syscall): Update.
399 2019-05-08 Tom Tromey <tom@tromey.com>
401 * inflow.c (struct terminal_info): Add destructor and
403 (inflow_inferior_data): Change type.
404 (~terminal_info): Rename from inflow_inferior_data_cleanup.
405 (get_inflow_inferior_data, inflow_inferior_exit)
406 (swap_terminal_info, _initialize_inflow): Update.
408 2019-05-08 Tom Tromey <tom@tromey.com>
410 * target-dcache.c (target_dcache_cleanup): Remove.
411 (target_dcache_aspace_key): Change type.
412 (target_dcache_init_p, target_dcache_invalidate)
413 (target_dcache_get, target_dcache_get_or_init)
414 (_initialize_target_dcache): Update.
415 * dcache.h (struct dcache_deleter): New.
417 2019-05-08 Tom Tromey <tom@tromey.com>
419 * symtab.c (struct symbol_cache): Add destructor and
421 (symbol_cache_key): Move. Change type.
422 (make_symbol_cache, free_symbol_cache): Remove.
423 (get_symbol_cache): Update.
424 (symbol_cache_cleanup): Remove.
425 (ALL_PSPACES, symbol_cache_flush)
426 (maintenance_print_symbol_cache)
427 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
430 2019-05-08 Tom Tromey <tom@tromey.com>
432 * symtab.c (struct main_info): Add destructor and initializers.
433 (main_progspace_key): Move. Change type.
434 (get_main_info): Update.
435 (main_info_cleanup): Remove.
436 (_initialize_symtab): Update.
438 2019-05-08 Tom Tromey <tom@tromey.com>
440 * registry.h (DECLARE_REGISTRY): Define the _key class.
442 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
444 * NEWS: Merge two 'New commands' sections.
446 2019-05-08 Joel Brobecker <brobecker@adacore.com>
448 * ada-valprint.c (ada_val_print_gnat_array): Remove language
449 parameter and use Ada language definition instead.
450 (ada_val_print_ptr): Remove unused language parameter.
451 (ada_val_print_num): Remove language parameter and use Ada language
453 (ada_val_print_enum, ada_val_print_flt): Remove unused language
455 (ada_val_print_struct_union, ada_val_print_ref): Remove language
456 parameter and use Ada language definition instead.
457 (ada_val_print_1): Update all ada_val_print_xxx calls.
458 Remove language parameter.
459 (ada_val_print): Update ada_val_print_1 call.
461 2019-05-08 Tom Tromey <tromey@adacore.com>
463 * remote.c (remote_hw_watchpoint_limit)
464 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
467 2019-05-08 Tom Tromey <tromey@adacore.com>
469 * maint.c (_initialize_maint_cmds): Move initialization code to
471 (watchdog, show_watchdog): Move to remote.c.
472 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
474 (_initialize_remote): Move initialization code from maint.c.
475 * defs.h (watchdog): Don't declare.
477 2019-05-08 Tom Tromey <tromey@adacore.com>
479 * tui/tui-interp.c: Include main.h.
480 * interps.c: Include main.h.
481 * main.h (interpreter_p): Declare.
482 * defs.h (interpreter_p): Don't declare.
484 2019-05-08 Tom Tromey <tromey@adacore.com>
486 * dwarf2loc.c: Include dwarf2read.h.
487 * defs.h (read_unsigned_leb128): Don't declare.
488 * dwarf2read.h (read_unsigned_leb128): Declare.
490 2019-05-08 Tom Tromey <tromey@adacore.com>
492 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
495 2019-05-08 Tom Tromey <tromey@adacore.com>
497 * utils.c (fputs_maybe_filtered): Reset style after paging, even
498 when no wrap column is set.
500 2019-05-08 Tom Tromey <tromey@adacore.com>
502 * c-lang.c (c_get_string): Handle non-C-style arrays.
504 2019-05-08 Tom Tromey <tromey@adacore.com>
506 * typeprint.c (print_offset_data::update): Print the bit offset,
507 not the number of bits remaining.
509 2019-05-08 Tom Tromey <tromey@adacore.com>
511 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
512 padding at end of comment.
514 2019-05-08 Tom Tromey <tromey@adacore.com>
516 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
519 2019-05-06 Tom Tromey <tom@tromey.com>
521 * common/scoped_mmap.c: Include common-defs.h.
522 * common/scoped_mmap.h: Don't include config.h.
524 2019-05-04 Tom Tromey <tom@tromey.com>
526 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
527 (struct aarch64_call_info): Add initializers.
528 <si>: Now a std::vector.
529 (pass_on_stack, aarch64_push_dummy_call): Update.
531 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
532 Tom Tromey <tom@tromey.com>
534 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
535 (ppc_threads): Now a std::vector. Now static.
536 (hwdebug_find_thread_points_by_tid)
537 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
540 2019-05-04 Tom Tromey <tom@tromey.com>
542 * arc-tdep.c (arc_tdesc_init): Return bool.
544 2019-05-04 Tom Tromey <tom@tromey.com>
546 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
547 Use gdb_assert_not_reached.
549 2019-05-04 Tom Tromey <tom@tromey.com>
551 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
554 2019-05-04 Tom Tromey <tom@tromey.com>
556 * arc-tdep.c (arc_tdesc_init): Use bool.
558 2019-05-04 Tom Tromey <tom@tromey.com>
560 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
562 2019-05-04 Tom Tromey <tom@tromey.com>
564 * cli/cli-cmds.c (valid_command_p): Return bool.
566 2019-05-04 Tom Tromey <tom@tromey.com>
568 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
569 * command.h (valid_user_defined_cmd_name_p): Channge return type.
571 2019-05-04 Raul Tambre <raul@tambre.ee>
573 * python/lib/gdb/prompt.py (_ExtendedPrompt)
574 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
575 operator for comparison.
577 2019-05-04 Tom Tromey <tom@tromey.com>
579 * psymtab.c (psymbol_name_matches, match_partial_symbol)
580 (lookup_partial_symbol, print_partial_symbols)
581 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
582 (psymbol_compare): Update.
583 (add_psymbol_to_bcache): Clear the entire psymbol.
584 (maintenance_check_psymtabs): Update.
585 * psympriv.h (struct partial_symbol): Don't derive from
587 <obj_section, unrelocated_address, address,
588 set_unrelocated_address>: Update.
590 * dwarf-index-write.c (write_psymbols, debug_names::insert)
591 (debug_names::write_psymbols): Update.
593 2019-05-04 Tom de Vries <tdevries@suse.de>
595 * contrib/cc-with-tweaks.sh: Support -n arg.
597 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
599 * corelow.c (core_target::detach): Ensure frame cache and
600 register caches are cleared.
601 inferior.c (exit_inferior_1): Likewise.
603 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
604 Tom Tromey <tom@tromey.com>
606 * dictionary.c (collate_pending_symbols_by_language): Remove
607 "struct" from foreach.
608 * symtab.c (lookup_global_symbol_from_objfile)
609 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
611 * ser-tcp.c (net_open): Remove "struct" from foreach.
612 * objfiles.c (objfile_relocate, objfile_rebase)
613 (objfile_has_symbols): Remove "struct" from foreach.
614 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
616 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
618 * darwin-nat.c (thread_info_from_private_thread_info): Remove
619 "struct" from foreach.
620 * ada-lang.c (create_excep_cond_exprs)
621 (ada_exception_catchpoint_cond_string): Remove "struct" from
624 2019-05-03 Tom Tromey <tromey@adacore.com>
626 * ada-exp.y (convert_char_literal): Check suffix of each
629 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
632 * ada-exp.y (yywrap): Don't define.
633 * ada-lex.l (%option): Add noyywrap
636 2019-05-03 Eli Zaretskii <eliz@gnu.org>
638 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
639 _WIN32_WINNT to the XP level, unless already defined to a higher
642 * unittests/parse-connection-spec-selftests.c:
644 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
647 * symfile.c (find_separate_debug_file): Remove colon from the
648 drive spec of DOS/Windows file names of the target, so that the
649 file name produced from DEBUGDIR and the target's directory will
650 be valid on DOS/Windows systems.
652 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
654 * rust-lang.c (val_print_struct): Handle printing structures
657 2019-05-02 Tom Tromey <tromey@adacore.com>
659 * valarith.c (_initialize_valarith): Remove.
661 2019-05-01 Tom Tromey <tromey@adacore.com>
663 * ada-lang.c (ada_value_primitive_field): Treat more fields as
666 2019-05-01 Tom Tromey <tromey@adacore.com>
668 * ada-lang.c (ada_value_assign): Correctly compute starting offset
669 for big-endian copies.
671 2019-04-30 Ali Tamur <tamur@google.com>
672 * gdb/dwarf2read.c (read_3_bytes): New declaration.
673 (read_attribute_value): Added DW_FORM_strx1-4 cases.
674 (read_3_bytes): New function.
676 2019-04-30 Joel Brobecker <brobecker@adacore.com>
678 * windows-nat.c (main_thread_id): Delete.
679 (handle_output_debug_string): Replace main_thread_id by
680 current_event.dwThreadId.
681 (fake_create_process): Likewise.
682 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
683 Do not set main_thread_id.
684 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
685 current_event.dwThreadId.
686 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
688 2019-04-30 Joel Brobecker <brobecker@adacore.com>
690 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
691 Use current_event.dwThreadId instead of main_thread_id.
693 2019-04-30 Tom Tromey <tromey@adacore.com>
695 * ada-lang.c (ada_lookup_simple_minsyms): New function.
696 (create_excep_cond_exprs): Iterate over program spaces.
697 (ada_exception_catchpoint_cond_string): Examine all minimal
698 symbols for exception types.
700 2019-04-30 Tom Tromey <tromey@adacore.com>
703 * dwarf2read.c (process_structure_scope): Handle case where type
704 has template parameters but no symbol was created.
706 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
707 Chris January <chris.january@arm.com>
709 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
711 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
713 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
715 * f-typeprint.c (f_print_type): Update rules for printing
717 (f_type_print_varspec_suffix): Likewise.
719 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
720 Chris January <chris.january@arm.com>
722 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
725 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
727 * f-lang.c (build_fortran_types): Change name of void type to
729 * f-typeprint.c (f_type_print_base): Print the name of the void
730 type, rather than a fixed string.
731 * f-valprint.c (f_decorations): Use lower case void string.
733 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
734 Chris January <chris.january@arm.com>
736 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
739 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
740 Chris January <chris.january@arm.com>
741 David Lecomber <david.lecomber@arm.com>
743 * f-exp.y (BINOP_INTRINSIC): New token.
744 (exp): New parser rule handling BINOP_INTRINSIC.
745 (f77_keywords): Add new builtin procedures.
746 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
747 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
748 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
749 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
750 (print_unop_subexp_f): New function.
751 (print_binop_subexp_f): New function.
752 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
753 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
754 (dump_subexp_body_f): Likewise.
755 (operator_check_f): Likewise.
756 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
757 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
759 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
761 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
763 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
764 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
765 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
766 (operator_length_f): New fuction.
767 (print_subexp_f): New function.
768 (op_name_f): New function.
769 (dump_subexp_body_f): New function.
770 (operator_check_f): New function.
771 (exp_descriptor_f): Replace standard expression handling functions
773 * gdb/fortran-operator.def: New file.
774 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
775 * gdb/std-operator.def: Remove UNOP_KIND.
777 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
779 * std-operator.def: Remove unbalanced, stray double quote
782 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
783 Chris January <chris.january@arm.com>
784 Daniel Everett <daniel.everett@arm.com>
785 Nick Forrington <nick.forrington@arm.com>
786 Richard Bunt <richard.bunt@arm.com>
788 * cp-valprint.c (cp_print_value_fields): Allow an additional level
789 of depth when printing anonymous structs or unions.
790 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
791 Don't print either the top-level value, or the children if the
792 max-depth is exceeded.
793 (ppscm_print_children): When printing the key of a map, allow one
794 extra level of depth.
795 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
796 print either the top-level value, or the children if the max-depth
798 (print_children): When printing the key of a map, allow one extra
800 * python/py-value.c (valpy_format_string): Add max_depth keyword.
801 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
802 (user_print_options): Initialise max_depth field.
803 (val_print_scalar_or_string_type_p): New function.
804 (val_print): Check to see if the max depth has been reached.
805 (val_print_check_max_depth): Define new function.
806 (show_print_max_depth): New function.
807 (_initialize_valprint): Add 'print max-depth' option.
808 * valprint.h (struct value_print_options) <max_depth>: New field.
809 (val_print_check_max_depth): Declare new function.
810 * NEWS: Document new feature.
812 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
814 * ada-lang.c (ada_language_defn): Initialise new field.
815 * c-lang.c (c_is_string_type_p): New function.
816 (c_language_defn): Initialise new field.
817 (cplus_language_defn): Initialise new field.
818 (asm_language_defn): Initialise new field.
819 (minimal_language_defn): Initialise new field.
820 * c-lang.h (c_is_string_type_p): Declare new function.
821 * d-lang.c (d_language_defn): Initialise new field.
822 * f-lang.c (f_is_string_type_p): New function.
823 (f_language_defn): Initialise new field.
824 * go-lang.c (go_is_string_type_p): New function.
825 (go_language_defn): Initialise new field.
826 * language.c (default_is_string_type_p): New function.
827 (unknown_language_defn): Initialise new field.
828 (auto_language_defn): Initialise new field.
829 * language.h (struct language_defn) <la_is_string_type_p>: New
831 (default_is_string_type_p): Declare new function.
832 * m2-lang.c (m2_language_defn): Initialise new field.
833 * objc-lang.c (objc_language_defn): Initialise new field.
834 * opencl-lang.c (opencl_language_defn): Initialise new field.
835 * p-lang.c (pascal_is_string_type_p): New function.
836 (pascal_language_defn): Initialise new field.
837 * rust-lang.c (rust_is_string_type_p): New function.
838 (rust_language_defn): Initialise new field.
840 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
842 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
844 * ada-lang.c (ada_language_defn): Initialise new field.
845 * c-lang.c (c_language_defn): Likewise.
846 (cplus_language_defn): Likewise.
847 (asm_language_defn): Likewise.
848 (minimal_language_defn): Likewise.
849 * d-lang.c (d_language_defn): Likewise.
850 * f-lang.c (f_language_defn): Likewise.
851 * go-lang.c (go_language_defn): Likewise.
852 * language.c (unknown_language_defn): Likewise.
853 (auto_language_defn): Likewise.
854 * m2-lang.c (m2_language_defn): Likewise.
855 * objc-lang.c (objc_language_defn): Likewise.
856 * opencl-lang.c (opencl_language_defn): Likewise.
857 * p-lang.c (pascal_language_defn): Likewise.
858 * rust-lang.c (rust_language_defn): Likewise.
860 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
862 * ada-lang.c (ada_is_character_type): Change return type to bool.
863 (ada_is_string_type): Likewise.
864 * ada-lang.h (ada_is_character_type): Update declaration
865 (ada_is_string_type): Likewise.
867 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
869 Support style in 'frame|thread apply'
871 * gdbcmd.h (execute_command_to_string): New term_out parameter.
872 * record.c (record_start, record_stop): Update callers of
873 execute_command_to_string with false.
874 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
875 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
877 (class string_file): New constructor with term_out parameter.
878 Override methods term_out and can_emit_style_escape. New member
880 (class stdio_file): Override can_emit_style_escape.
881 (class tee_file): Override term_out and can_emit_style_escape.
882 * utils.h (can_emit_style_escape): Remove.
883 * utils.c (can_emit_style_escape): Likewise.
884 Update all callers of can_emit_style_escape (SOMESTREAM) to
885 SOMESTREAM->can_emit_style_escape.
886 * source-cache.c (source_cache::get_source_lines): Likewise.
887 * stack.c (frame_apply_command_count): Call execute_command_to_string
888 passing the term_out characteristic of the current gdb_stdout.
889 * thread.c (thr_try_catch_cmd): Likewise.
890 * top.c (execute_command_to_string): pass term_out parameter
891 to construct the string_file for the command output.
892 * ui-file.c (term_cli_styling): New function (most code moved
893 from utils.c can_emit_style_escape).
894 (string_file::string_file, string_file::can_emit_style_escape,
895 stdio_file::can_emit_style_escape, tee_file::term_out,
896 tee_file::can_emit_style_escape): New functions.
898 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
900 * NEWS: Mention the new set|show may-call-functions.
901 * infcall.c (may_call_functions_p): New variable.
902 (show_may_call_functions_p): New function.
903 (call_function_by_hand_dummy): Throws an error if not
905 (_initialize_infcall): Call add_setshow_boolean_cmd for
908 2019-04-25 Keith Seitz <keiths@redhat.com>
911 * cp-support.c (inspect_type): Don't attempt substitutions
912 of symbol with the same name.
914 2019-04-25 Tom Tromey <tromey@adacore.com>
917 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
920 2019-04-25 Tom Tromey <tromey@adacore.com>
922 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
924 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
925 (gdb_xml_parser::parse): Use std::move.
926 * python/python-internal.h (gdbpy_convert_exception): Take a const
928 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
930 * python/py-utils.c (gdbpy_convert_exception): Take a const
932 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
934 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
936 * mi/mi-main.c (mi_print_exception): Take a const reference.
937 * main.c (handle_command_errors): Take a const reference.
938 * linespec.c (parse_linespec): Use std::move.
939 * infcall.c (run_inferior_call): Use std::move.
940 (call_function_by_hand_dummy): Use std::move.
941 * exec.c (try_open_exec_file): Use std::move.
942 * exceptions.h (exception_print, exception_fprintf)
943 (exception_print_same): Update.
944 * exceptions.c (print_exception, exception_print)
945 (exception_fprintf, exception_print_same): Change parameters to
947 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
948 * common/new-op.c: Use std::move.
949 * common/common-exceptions.h (struct gdb_exception): Add move
951 (struct gdb_exception_error, struct gdb_exception_quit, struct
952 gdb_quit_bad_alloc): Change constructor to move constructor.
953 (throw_exception): Change parameter to rvalue reference.
954 * common/common-exceptions.c (throw_exception): Take rvalue
956 * cli/cli-interp.c (safe_execute_command): Use std::move.
957 * breakpoint.c (insert_bp_location, location_to_sals): Use
960 2019-04-25 Tom Tromey <tromey@adacore.com>
962 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
963 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
964 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
965 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
966 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
967 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
968 guile/scm-value.c: Use unpack.
969 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
970 gdbscm_gdb_exception.
971 (gdbscm_throw_gdb_exception): Likewise.
972 (struct gdbscm_gdb_exception): New.
973 (unpack): New function.
974 (gdbscm_wrap): Use unpack.
976 2019-04-25 Tom Tromey <tromey@adacore.com>
978 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
979 (gdb_rl_callback_handler): Use std::move.
980 * common/common-exceptions.h (struct gdb_exception): Add move
982 (throw_exception_sjlj): Change "exception" to const reference.
983 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
984 (throw_exception_sjlj): Change "exception" to const reference.
986 2019-04-25 Tom Tromey <tromey@adacore.com>
988 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
989 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
990 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
992 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
994 * mi/mi-interp.c (mi_interp::exec): Update.
995 * linespec.c (parse_linespec): Update.
996 * infcall.c (run_inferior_call): Update.
997 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
998 * guile/scm-symbol.c (gdbscm_lookup_symbol)
999 (gdbscm_lookup_global_symbol): Update.
1000 * guile/scm-param.c (gdbscm_parameter_value): Update.
1001 * guile/scm-frame.c (gdbscm_frame_read_register)
1002 (gdbscm_frame_read_var): Update.
1003 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1004 * exec.c (try_open_exec_file): Update.
1005 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1006 (gdb_rl_callback_handler): Update.
1007 * common/common-exceptions.h (exception_none): Don't declare.
1008 * common/common-exceptions.c (exception_none): Don't define.
1009 (struct catcher) <exception>: Update.
1010 * cli/cli-interp.c (safe_execute_command): Update.
1011 * breakpoint.c (insert_bp_location, location_to_sals): Update.
1013 2019-04-25 Ali Tamur <tamur@google.com>
1015 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
1016 (read_attribute_value): Likewise.
1017 (dwarf2_read_addr_index): Update comment.
1018 (read_str_index): Add DW_FORM_strx.
1019 (dwarf2_string_attr): Likewise.
1020 (dwarf2_const_value_attr): Likewise.
1021 (dump_die_shallow): Likewise.
1022 (dwarf2_fetch_constant_bytes): Likewise.
1023 (skip_form_bytes): Likewise.
1024 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
1026 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
1030 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
1031 OFFSET. Verify if current mapping contains an ELF header.
1032 (linux_find_memory_regions_full): Adjust call to
1035 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
1036 Kang Li <kanglictf@gmail.com>
1040 * dwarf2-frame.c (read_initial_length): Be consistent about using
1041 unsigned representation of length.
1042 (decode_frame_entry_1): Likewise. Check for wraparound of
1043 end pointer as well as buffer overflow.
1045 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
1047 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
1050 2019-04-24 Tom Tromey <tromey@adacore.com>
1052 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
1054 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1056 * s12z-tdep.c (s12z_unwind_pc): Delete.
1057 (s12z_unwind_sp): Delete.
1058 (s12z_gdbarch_init): Don't register deleted functions with
1061 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1063 * rl78-tdep.c (rl78_unwind_sp): Delete.
1064 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
1066 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1068 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
1069 (xstormy16_unwind_pc): Delete.
1070 (xstormy16_dummy_id): Delete.
1071 (xstormy16_gdbarch_init): Don't register deleted functions with
1074 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1076 * vax-tdep.c (vax_unwind_pc): Delete.
1077 (vax_gdbarch_init): Don't register deleted function with gdbarch.
1079 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1081 * v850-tdep.c (v850_unwind_sp): Delete.
1082 (v850_unwind_pc): Delete.
1083 (v850_dummy_id): Delete.
1084 (v850_gdbarch_init): Don't register deleted functions with
1087 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1089 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
1090 (tilegx_unwind_pc): Delete.
1091 (tilegx_unwind_dummy_id): Delete.
1092 (tilegx_gdbarch_init): Don't register deleted functions with
1095 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1097 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
1098 (tic6x_dummy_id): Delete.
1099 (tic6x_gdbarch_init): Don't register deleted functions with
1102 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1104 * sparc-tdep.c (sparc_unwind_pc): Delete.
1105 (sparc32_gdbarch_init): Don't register deleted function with
1108 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1110 * sh-tdep.c (sh_unwind_sp): Delete.
1111 (sh_unwind_pc): Delete.
1112 (sh_dummy_id): Delete.
1113 (sh_gdbarch_init): Don't register deleted functions with
1116 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1118 * score-tdep.c (score_unwind_sp): Delete.
1119 (score_unwind_pc): Delete.
1120 (score_dummy_id): Delete.
1121 (score_gdbarch_init): Don't register deleted functions with
1124 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1126 * rx-tdep.c (rx_unwind_pc): Delete.
1127 (rx_unwind_sp): Delete.
1128 (rx_dummy_id): Delete.
1129 (rx_gdbarch_init): Don't register deleted functions with
1130 gdbarch. Update comment.
1132 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1134 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
1135 (rs6000_dummy_id): Delete.
1136 (rs6000_gdbarch_init): Don't register deleted functions with
1139 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1141 * or1k-tdep.c (or1k_dummy_id): Delete.
1142 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
1144 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1146 * nios2-tdep.c (nios2_dummy_id): Delete.
1147 (nios2_unwind_sp): Delete.
1148 (nios2_gdbarch_init): Don't register deleted functions with
1151 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1153 * nds32-tdep.c (nds32_dummy_id): Delete.
1154 (nds32_unwind_pc): Delete.
1155 (nds32_unwind_sp): Delete.
1156 (nds32_gdbarch_init): Don't register deleted functions with
1159 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1161 * msp430-tdep.c (msp430_unwind_pc): Delete.
1162 (msp430_unwind_sp): Delete.
1163 (msp430_dummy_id): Delete.
1164 (msp430_gdbarch_init): Don't register deleted functions with
1167 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1169 * moxie-tdep.c (moxie_unwind_sp): Delete.
1170 (moxie_unwind_pc): Delete.
1171 (moxie_dummy_id): Delete.
1172 (moxie_gdbarch_init): Don't register deleted functions with
1175 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1177 * mn10300-tdep.c (mn10300_dummy_id): Delete.
1178 (mn10300_unwind_pc): Delete.
1179 (mn10300_unwind_sp): Delete.
1180 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
1182 (mn10300_frame_unwind_init): Don't register deleted functions with
1185 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1187 * mep-tdep.c (mep_unwind_pc): Delete.
1188 (mep_unwind_sp): Delete.
1189 (mep_dummy_id): Delete.
1190 (mep_gdbarch_init): Don't register deleted functions with
1193 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1195 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
1196 (m68hc11_unwind_sp): Delete.
1197 (m68hc11_gdbarch_init): Don't register deleted functions with
1200 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1202 * m32r-tdep.c (m32r_unwind_sp): Delete.
1203 (m32r_unwind_pc): Delete.
1204 (m32r_dummy_id): Delete.
1205 (m32r_gdbarch_init): Don't register deleted functions with
1208 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1210 * m32c-tdep.c (m32c_unwind_pc): Delete.
1211 (m32c_unwind_sp): Delete.
1212 (m32c_dummy_id): Delete.
1213 (m32c_gdbarch_init): Don't register deleted functions with
1216 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1218 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
1219 (lm32_unwind_pc): Delete.
1220 (lm32_dummy_id): Delete.
1221 (lm32_gdbarch_init): Don't register deleted functions with
1224 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1226 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
1227 (iq2000_unwind_pc): Delete.
1228 (iq2000_dummy_id): Delete.
1229 (iq2000_gdbarch_init): Don't register deleted functions with
1232 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1234 * nds32-tdep.c (nds32_type_align): Delete.
1235 (nds32_push_dummy_call): Use type_align instead.
1237 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1239 * arm-tdep.c (arm_type_align): Only handle vector override case.
1240 (arm_push_dummy_call): Use type_align.
1241 (arm_gdbarch_init): Register arm_type_align gdbarch function.
1243 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1245 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
1247 (pass_on_stack): Use type_align.
1248 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
1251 2019-04-23 Tom Tromey <tromey@adacore.com>
1253 * dwarf2read.c (line_header::file_name_at): Remove unused
1256 2019-04-23 Tom de Vries <tdevries@suse.de>
1259 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
1263 2019-03-27 Ali Tamur <tamur@google.com>
1265 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
1266 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
1267 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
1268 (dwarf_expr_context::get_addr_index): Likewise
1269 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
1270 (symbol_needs_eval_context::get_addr_index): Likewise
1271 (disassemble_dwarf_expression): Add DW_OP_addrx
1272 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
1273 (read_cutu_die_from_dwo): Update comment
1274 (skip_one_die): Add DW_FORM_addrx
1275 (read_attribute_value): Likewise
1276 (var_decode_location): Add DW_OP_addrx
1277 (dwarf2_const_value_attr): Add DW_FORM_addrx
1278 (dump_die_shallow): Likewise
1279 (dwarf2_fetch_constant_bytes): Likewise
1280 (decode_locdesc): Add DW_OP_addrx
1281 (skip_form_bytes): Add DW_FORM_addrx
1283 2019-04-22 Ali Tamur <tamur@google.com>
1285 * MAINTAINERS (Write After Approval): Add self.
1287 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
1289 * solib-svr4.c (get_svr4_info): Add pspace parameter.
1290 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
1291 (open_symbol_file_object): Likewise.
1292 (svr4_default_sos): Add info parameter.
1293 (svr4_read_so_list): Likewise.
1294 (svr4_current_sos_direct): Adjust functions calls to pass down
1296 (svr4_current_sos_1): Add info parameter.
1297 (svr4_current_sos): Call get_svr4_info, pass info down to
1299 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
1301 (svr4_in_dynsym_resolve_code): Pass current_program_space to
1303 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
1305 (probes_table_remove_objfile_probes): Likewise.
1306 (register_solib_event_probe): Add info parameter.
1307 (solist_update_incremental): Pass info parameter down to
1309 (disable_probes_interface): Add info parameter.
1310 (svr4_handle_solib_event): Pass current_program_space to
1311 get_svr4_info. Adjust disable_probes_interface cleanup.
1312 (svr4_create_probe_breakpoints): Add info parameter, pass it
1313 down to register_solib_event_probe.
1314 (svr4_create_solib_event_breakpoints): Add info parameter,
1315 pass it down to svr4_create_probe_breakpoints.
1316 (enable_break): Pass info down to
1317 svr4_create_solib_event_breakpoints.
1318 (svr4_solib_create_inferior_hook): Pass current_program_space to
1320 (svr4_clear_solib): Likewise.
1322 2019-04-22 Pedro Alves <palves@redhat.com>
1324 * solib-svr4.c (svr4_free_objfile_observer): New.
1325 (probe_and_action::objfile): New field.
1326 (probes_table_htab_remove_objfile_probes)
1327 (probes_table_remove_objfile_probes): New functions.
1328 (register_solib_event_probe): Add 'objfile' parameter. Store it
1329 in the new probe_and_action. Don't store the probe in 'lookup'.
1330 (svr4_create_probe_breakpoints): Pass objfile to
1331 register_solib_event_probe.
1332 (_initialize_svr4_solib): Register a free_objfile observer.
1334 2019-04-19 Tom Tromey <tom@tromey.com>
1336 * common/queue.h: Remove.
1338 2019-04-19 Tom Tromey <tom@tromey.com>
1340 * event-loop.c: Don't include "common/queue.h".
1342 2019-04-19 Tom Tromey <tom@tromey.com>
1344 * remote.c (remote_target): Use delete.
1345 * remote-notif.h: Include <list>, not "common/queue.h".
1346 (notif_client_p): Remove typedef.
1347 (remote_notif_state): Add constructor, destructor, initializer.
1348 <notif_queue>: Now a std::list.
1349 (remote_notif_state_xfree): Don't declare.
1350 * remote-notif.c (remote_notif_process, handle_notification)
1351 (remote_notif_state_allocate): Update.
1352 (~remote_notif_state): Rename from remote_notif_state_xfree.
1354 2019-04-19 Tom Tromey <tom@tromey.com>
1356 * symfile.c (reread_symbols): Update.
1357 * objfiles.c (objfile_register_static_link)
1358 (objfile_lookup_static_link): Update
1359 (~objfile) Don't delete static_links.
1360 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
1362 2019-04-19 Tom Tromey <tom@tromey.com>
1364 * type-stack.h (struct type_stack) <insert>: Constify string.
1365 * type-stack.c (type_stack::insert): Constify string.
1366 * gdbtypes.h (lookup_template_type): Update.
1367 (address_space_name_to_int): Update.
1368 * gdbtypes.c (address_space_name_to_int): Make space_identifier
1370 (lookup_template_type): Make name const.
1371 * c-exp.y: Update rules.
1372 (lex_one_token, classify_name, classify_inner_name)
1373 (c_print_token): Update.
1374 * p-exp.y: Update rules.
1376 * f-exp.y: Update rules.
1378 * d-exp.y: Update rules.
1379 (lex_one_token, classify_name, classify_inner_name): Update.
1380 * parse.c (write_dollar_variable, copy_name): Return std::string.
1381 * parser-defs.h (copy_name): Change return type.
1382 * m2-exp.y: Update rules.
1384 * go-exp.y (lex_one_token): Update.
1386 (classify_unsafe_function, classify_packaged_name)
1387 (classify_name, yylex): Update.
1389 2019-04-19 Sergei Trofimovich <siarheit@google.com>
1391 * configure.ac: add --enable-source-highlight switch.
1392 * configure: Regenerate.
1393 * top.c (print_gdb_version): plumb --enable-source-highlight
1394 status to "show configuration".
1396 2019-04-19 Tom Tromey <tromey@adacore.com>
1398 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
1400 (empty_record, ada_template_to_fixed_record_type_1)
1401 (template_to_static_fixed_type)
1402 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
1403 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
1404 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
1407 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
1410 * source.c (print_source_lines_base): Advance "iter" when a
1411 control character is seen.
1413 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1415 * inferior.h (struct infcall_suspend_state_deleter):
1416 Catch exception in destructor to avoid crash.
1418 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1420 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
1421 close to the add_com "shell".
1423 2019-04-18 Tom Tromey <tromey@adacore.com>
1425 * process-stratum-target.h (class process_stratum_target)
1426 <stratum>: Add "final".
1428 2019-04-17 Tom Tromey <tromey@adacore.com>
1430 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
1431 against nullptr before use.
1433 2019-04-17 Alan Hayward <alan.hayward@arm.com>
1435 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
1437 2019-04-17 Jim Wilson <jimw@sifive.com>
1438 Andrew Burgess <andrew.burgess@embecosm.com>
1440 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
1441 code read might fail, assume 4-byte breakpoint in that case.
1443 2019-04-15 Leszek Swirski <leszeks@google.com>
1445 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
1446 rather than a hand-rolled POD check when checking for forced MEMORY
1449 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1451 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
1452 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
1454 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
1455 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
1456 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
1459 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1461 * aarch64-linux-nat.c
1462 (aarch64_linux_nat_target::thread_architecture): Add override.
1463 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
1466 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1468 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
1470 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
1472 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
1473 target types of size 96-bits, add some additional comments, and
1474 check that the builtin type we found was the correct size.
1476 2019-04-12 Eli Zaretskii <eliz@gnu.org>
1478 * utils.c (prompt_for_continue): Don't restore the styling at the
1479 end, as applied_style has the wrong value. This fixes styling in
1480 long lists of file names that are interrupted by the "Continue?"
1483 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
1485 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
1486 * c-lang.c (c_language_defn): Likewise.
1487 (cplus_language_defn): Likewise.
1488 (asm_language_defn): Likewise.
1489 (minimal_language_defn): Likewise.
1490 * d-lang.c (d_language_defn): Likewise.
1491 * f-lang.c (f_language_defn): Likewise.
1492 * go-lang.c (go_language_defn): Likewise.
1493 * language.c (unknown_language_defn): Likewise.
1494 (auto_language_defn): Likewise.
1495 * language.h (struct language_defn): Remove la_magic field.
1496 (LANG_MAGIC): Delete.
1497 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
1498 * objc-lang.c (objc_language_defn): Likewise.
1499 * opencl-lang.c (opencl_language_defn): Likewise.
1500 * p-lang.c (pascal_language_defn): Likewise.
1501 * rust-lang.c (rust_language_defn): Likewise.
1503 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1505 * riscv-tdep.c (riscv_type_align): New function.
1506 (riscv_type_alignment): Delete.
1507 (riscv_arg_location): Use 'type_align'.
1508 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
1510 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1512 * gdbtypes.c (type_align): A struct with no non-static fields also
1515 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1517 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
1519 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
1521 (riscv_struct_info::analyse): New implementation using new
1522 analyse_inner member function.
1523 (riscv_struct_info::field_offset): New member function.
1524 (riscv_struct_info::m_offsets): New member variable.
1525 (riscv_struct_info::analyse_inner): New private member function,
1526 takes the old implementation of riscv_struct_info::analyse but
1527 extended to track field offsets.
1528 (riscv_call_arg_struct): Update the struct folding special cases
1529 to handle cases where empty C++ structs, which are non-zero
1531 (riscv_arg_location): Initialise the length of each location, a
1532 non-zero length now indicates the location is in use.
1533 (riscv_push_dummy_call): Allow for the first location having a
1534 non-zero offset when setting up arguments.
1535 (riscv_return_value): Likewise, but for return values.
1537 2019-04-11 Tom Tromey <tromey@adacore.com>
1539 * utils.c (internal_vproblem): Make "msg" const.
1541 2019-04-11 Alan Hayward <alan.hayward@arm.com>
1543 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
1544 * trad-frame.c (trad_frame_reset_saved_regs): New function.
1545 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
1546 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
1548 2019-04-10 Kevin Buettner <kevinb@redhat.com>
1550 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
1552 (fill_gregset): Call amd64_linux_collect_native_gregset instead
1553 of amd64_collect_native_gregset.
1554 (amd64_linux_nat_target::store_registers): Likewise.
1556 2019-04-10 Tom Tromey <tom@tromey.com>
1558 * symtab.c (lookup_global_symbol_from_objfile)
1559 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
1560 * objfiles.h (class separate_debug_iterator): New.
1561 (class separate_debug_range): New.
1562 (struct objfile) <separate_debug_objfiles>: New method.
1563 (objfile_separate_debug_iterate): Don't declare.
1564 * objfiles.c (separate_debug_iterator::operator++): Rename from
1565 objfile_separate_debug_iterate.
1566 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
1568 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
1571 2019-04-10 Tom Tromey <tom@tromey.com>
1573 * symfile.c (reread_symbols): Remove old comment.
1574 * objfiles.c (free_all_objfiles): Fix a typo.
1576 2019-04-10 Tom Tromey <tom@tromey.com>
1578 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
1579 * minsyms.c (lookup_minimal_symbol): Use foreach.
1580 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
1581 (lookup_minimal_symbol_solib_trampoline): Likewise.
1582 * symfile.c (reread_symbols): Use foreach.
1584 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
1585 Tom Tromey <tromey@adacore.com>
1588 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
1589 (rust_lex_int_test): Change "value" to be LONGEST.
1590 (rust_lex_tests): Add test for long integer literal.
1592 2019-04-09 Tom Tromey <tromey@adacore.com>
1594 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
1596 (extended_remote_target::attach): Update.
1597 (remote_target::remote_notice_new_inferior): Update.
1598 (remote_target::add_current_inferior_and_thread): Update.
1599 * inferior.c (exit_inferior_1): Use "false".
1600 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
1602 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
1604 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
1605 the "start" command.
1607 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1609 * python/py-inferior.c (infpy_thread_from_thread_handle):
1610 Adjust comments to reflect renaming of thread_from_thread_handle
1611 to thread_from_handle. Adjust keywords. Fix type error message.
1612 (inferior_object_methods): Add thread_from_handle. Retain
1613 thread_from_thread_handle, but mark it as deprecated.
1615 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1617 * gdbthread.h (find_thread_by_handle): Revise declaration.
1618 * thread.c (find_thread_by_handle): Likewise. Adjust
1620 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
1621 support for buffer objects as handles.
1623 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1625 * python/py-infthread.c (thpy_thread_handle): New function.
1626 (thread_object_methods): Register thpy_thread_handle.
1628 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1630 * gdbthread.h (thread_to_thread_handle): Declare.
1631 * thread.c (gdbtypes.h): Include.
1632 (thread_to_thread_handle): New function.
1634 * target.h (struct target_ops): Add thread_info_to_thread_handle.
1635 (target_thread_info_to_thread_handle): Declare.
1636 * target.c (target_thread_info_to_thread_handle): New function.
1637 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
1638 * target-delegates.c: Regenerate.
1640 * linux-thread-db.c (class thread_db_target): Add method
1641 thread_info_to_thread_handle.
1642 (thread_db_target::thread_info_to_thread_handle): Define.
1643 * remote.c (class remote_target): Add new method
1644 thread_info_to_thread_handle.
1645 (remote_target::thread_info_to_thread_handle): Define.
1647 2019-04-08 Pedro Alves <palves@redhat.com>
1649 * common/common-exceptions.c (throw_exception): Don't create
1650 named object to throw; throw directly.
1651 (throw_it): Likewise. Don't initialize gdb_exception::message
1652 here, with new; pass FMT and AP to the ctor instead.
1653 * common/common-exceptions.h: Include <string>.
1654 (gdb_exception::gdb_exception(enum return_reason, enum errors,
1655 const char *, va_list)): New ctor. Use std::make_shared.
1656 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
1658 (gdb_exception_error::gdb_exception_error(enum errors, const char
1660 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
1662 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
1664 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
1665 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
1668 2019-04-08 Tom Tromey <tom@tromey.com>
1670 * valops.c (value_rtti_indirect_type): Replace throw_exception
1672 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
1674 * thread.c (thr_try_catch_cmd): Replace throw_exception with
1676 * target.c (target_translate_tls_address): Replace throw_exception
1678 * stack.c (frame_apply_command_count): Replace throw_exception
1680 * solib-spu.c (append_ocl_sos): Replace throw_exception with
1682 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
1684 * rs6000-tdep.c (rs6000_frame_cache)
1685 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
1686 * remote.c: Replace throw_exception with throw.
1687 * record-full.c (record_full_message, record_full_wait_1)
1688 (record_full_restore): Replace throw_exception with throw.
1690 (get_thread_current_frame_id, record_btrace_start_replaying)
1691 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
1692 (cmd_record_btrace_start): Replace throw_exception with throw.
1693 * parse.c (parse_exp_in_context_1): Replace throw_exception with
1695 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
1696 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
1698 (find_linespec_symbols): Replace throw_exception with throw.
1699 * infrun.c (displaced_step_prepare, resume): Replace
1700 throw_exception with throw.
1701 * infcmd.c (post_create_inferior): Replace throw_exception with
1703 * inf-loop.c (inferior_event_handler): Replace throw_exception
1705 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
1706 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
1707 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
1708 (get_prev_frame_always, get_frame_pc_if_available)
1709 (get_frame_address_in_block_if_available, get_frame_language):
1710 Replace throw_exception with throw.
1711 * frame-unwind.c (frame_unwind_try_unwinder): Replace
1712 throw_exception with throw.
1713 * eval.c (fetch_subexp_value, evaluate_var_value)
1714 (evaluate_funcall, evaluate_subexp_standard): Replace
1715 throw_exception with throw.
1716 * dwarf2loc.c (call_site_find_chain)
1717 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
1718 Replace throw_exception with throw.
1719 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
1721 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
1723 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
1724 * completer.c (complete_line_internal): Replace throw_exception
1726 * compile/compile-object-run.c (compile_object_run): Replace
1727 throw_exception with throw.
1728 * cli/cli-script.c (process_next_line): Replace throw_exception
1730 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
1731 (btrace_enable, btrace_maint_update_pt_packets): Replace
1732 throw_exception with throw.
1733 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
1734 throw_exception with throw.
1735 * break-catch-throw.c (re_set_exception_catchpoint): Replace
1736 throw_exception with throw.
1737 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
1738 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
1739 * aarch64-tdep.c (aarch64_make_prologue_cache)
1740 (aarch64_make_stub_cache): Replace throw_exception with throw.
1742 2019-04-08 Tom Tromey <tom@tromey.com>
1744 * common/common-exceptions.c (throw_exception): Rename from
1745 throw_exception_cxx. Remove old copy. Make argument const.
1746 (throw_it): Create and throw exception objects directly.
1747 * common/common-exceptions.h (throw_exception): Make argument
1749 (struct gdb_exception_error): Add constructor.
1750 (struct gdb_exception_quit): Add constructor.
1752 2019-04-08 Tom Tromey <tom@tromey.com>
1754 * common/common-exceptions.h (exception_rethrow): Don't declare.
1755 (TRY_SJLJ): Update comment.
1756 (TRY, CATCH, END_CATCH): Remove.
1757 * common/common-exceptions.c (exception_rethrow): Remove.
1759 2019-04-08 Tom Tromey <tom@tromey.com>
1761 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
1763 (gdb_exception_error): Rename from
1764 gdb_exception_RETURN_MASK_ERROR.
1765 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
1766 (gdb_quit_bad_alloc): Update.
1767 * aarch64-tdep.c: Update.
1768 * ada-lang.c: Update.
1769 * ada-typeprint.c: Update.
1770 * ada-valprint.c: Update.
1771 * amd64-tdep.c: Update.
1772 * arch-utils.c: Update.
1773 * break-catch-throw.c: Update.
1774 * breakpoint.c: Update.
1776 * c-varobj.c: Update.
1777 * cli/cli-cmds.c: Update.
1778 * cli/cli-interp.c: Update.
1779 * cli/cli-script.c: Update.
1780 * common/common-exceptions.c: Update.
1781 * common/new-op.c: Update.
1782 * common/selftest.c: Update.
1783 * compile/compile-c-symbols.c: Update.
1784 * compile/compile-cplus-symbols.c: Update.
1785 * compile/compile-object-load.c: Update.
1786 * compile/compile-object-run.c: Update.
1787 * completer.c: Update.
1788 * corelow.c: Update.
1790 * cp-support.c: Update.
1791 * cp-valprint.c: Update.
1792 * darwin-nat.c: Update.
1793 * disasm-selftests.c: Update.
1794 * dtrace-probe.c: Update.
1795 * dwarf-index-cache.c: Update.
1796 * dwarf-index-write.c: Update.
1797 * dwarf2-frame-tailcall.c: Update.
1798 * dwarf2-frame.c: Update.
1799 * dwarf2loc.c: Update.
1800 * dwarf2read.c: Update.
1802 * event-loop.c: Update.
1803 * event-top.c: Update.
1805 * f-valprint.c: Update.
1806 * fbsd-tdep.c: Update.
1807 * frame-unwind.c: Update.
1809 * gdbtypes.c: Update.
1810 * gnu-v3-abi.c: Update.
1811 * guile/guile-internal.h: Update.
1812 * guile/scm-block.c: Update.
1813 * guile/scm-breakpoint.c: Update.
1814 * guile/scm-cmd.c: Update.
1815 * guile/scm-disasm.c: Update.
1816 * guile/scm-frame.c: Update.
1817 * guile/scm-lazy-string.c: Update.
1818 * guile/scm-math.c: Update.
1819 * guile/scm-param.c: Update.
1820 * guile/scm-ports.c: Update.
1821 * guile/scm-pretty-print.c: Update.
1822 * guile/scm-symbol.c: Update.
1823 * guile/scm-symtab.c: Update.
1824 * guile/scm-type.c: Update.
1825 * guile/scm-value.c: Update.
1826 * i386-linux-tdep.c: Update.
1827 * i386-tdep.c: Update.
1828 * inf-loop.c: Update.
1829 * infcall.c: Update.
1833 * language.c: Update.
1834 * linespec.c: Update.
1835 * linux-fork.c: Update.
1836 * linux-nat.c: Update.
1837 * linux-tdep.c: Update.
1838 * linux-thread-db.c: Update.
1840 * mi/mi-cmd-break.c: Update.
1841 * mi/mi-cmd-stack.c: Update.
1842 * mi/mi-interp.c: Update.
1843 * mi/mi-main.c: Update.
1844 * objc-lang.c: Update.
1845 * p-valprint.c: Update.
1847 * ppc-linux-tdep.c: Update.
1848 * printcmd.c: Update.
1849 * python/py-arch.c: Update.
1850 * python/py-breakpoint.c: Update.
1851 * python/py-cmd.c: Update.
1852 * python/py-finishbreakpoint.c: Update.
1853 * python/py-frame.c: Update.
1854 * python/py-framefilter.c: Update.
1855 * python/py-gdb-readline.c: Update.
1856 * python/py-inferior.c: Update.
1857 * python/py-infthread.c: Update.
1858 * python/py-lazy-string.c: Update.
1859 * python/py-linetable.c: Update.
1860 * python/py-objfile.c: Update.
1861 * python/py-param.c: Update.
1862 * python/py-prettyprint.c: Update.
1863 * python/py-progspace.c: Update.
1864 * python/py-record-btrace.c: Update.
1865 * python/py-record.c: Update.
1866 * python/py-symbol.c: Update.
1867 * python/py-type.c: Update.
1868 * python/py-unwind.c: Update.
1869 * python/py-utils.c: Update.
1870 * python/py-value.c: Update.
1871 * python/python.c: Update.
1872 * record-btrace.c: Update.
1873 * record-full.c: Update.
1874 * remote-fileio.c: Update.
1876 * riscv-tdep.c: Update.
1877 * rs6000-aix-tdep.c: Update.
1878 * rs6000-tdep.c: Update.
1879 * rust-exp.y: Update.
1880 * rust-lang.c: Update.
1881 * s390-tdep.c: Update.
1882 * selftest-arch.c: Update.
1883 * solib-dsbt.c: Update.
1884 * solib-frv.c: Update.
1885 * solib-spu.c: Update.
1886 * solib-svr4.c: Update.
1888 * sparc64-linux-tdep.c: Update.
1890 * symfile-mem.c: Update.
1891 * symmisc.c: Update.
1895 * tracefile-tfile.c: Update.
1896 * tui/tui.c: Update.
1897 * typeprint.c: Update.
1898 * unittests/cli-utils-selftests.c: Update.
1899 * unittests/parse-connection-spec-selftests.c: Update.
1901 * valprint.c: Update.
1904 * windows-nat.c: Update.
1905 * x86-linux-nat.c: Update.
1906 * xml-support.c: Update.
1908 2019-04-08 Tom Tromey <tom@tromey.com>
1910 * xml-support.c: Use C++ exception handling.
1911 * x86-linux-nat.c: Use C++ exception handling.
1912 * windows-nat.c: Use C++ exception handling.
1913 * varobj.c: Use C++ exception handling.
1914 * value.c: Use C++ exception handling.
1915 * valprint.c: Use C++ exception handling.
1916 * valops.c: Use C++ exception handling.
1917 * unittests/parse-connection-spec-selftests.c: Use C++ exception
1919 * unittests/cli-utils-selftests.c: Use C++ exception handling.
1920 * typeprint.c: Use C++ exception handling.
1921 * tui/tui.c: Use C++ exception handling.
1922 * tracefile-tfile.c: Use C++ exception handling.
1923 * top.c: Use C++ exception handling.
1924 * thread.c: Use C++ exception handling.
1925 * target.c: Use C++ exception handling.
1926 * symmisc.c: Use C++ exception handling.
1927 * symfile-mem.c: Use C++ exception handling.
1928 * stack.c: Use C++ exception handling.
1929 * sparc64-linux-tdep.c: Use C++ exception handling.
1930 * solib.c: Use C++ exception handling.
1931 * solib-svr4.c: Use C++ exception handling.
1932 * solib-spu.c: Use C++ exception handling.
1933 * solib-frv.c: Use C++ exception handling.
1934 * solib-dsbt.c: Use C++ exception handling.
1935 * selftest-arch.c: Use C++ exception handling.
1936 * s390-tdep.c: Use C++ exception handling.
1937 * rust-lang.c: Use C++ exception handling.
1938 * rust-exp.y: Use C++ exception handling.
1939 * rs6000-tdep.c: Use C++ exception handling.
1940 * rs6000-aix-tdep.c: Use C++ exception handling.
1941 * riscv-tdep.c: Use C++ exception handling.
1942 * remote.c: Use C++ exception handling.
1943 * remote-fileio.c: Use C++ exception handling.
1944 * record-full.c: Use C++ exception handling.
1945 * record-btrace.c: Use C++ exception handling.
1946 * python/python.c: Use C++ exception handling.
1947 * python/py-value.c: Use C++ exception handling.
1948 * python/py-utils.c: Use C++ exception handling.
1949 * python/py-unwind.c: Use C++ exception handling.
1950 * python/py-type.c: Use C++ exception handling.
1951 * python/py-symbol.c: Use C++ exception handling.
1952 * python/py-record.c: Use C++ exception handling.
1953 * python/py-record-btrace.c: Use C++ exception handling.
1954 * python/py-progspace.c: Use C++ exception handling.
1955 * python/py-prettyprint.c: Use C++ exception handling.
1956 * python/py-param.c: Use C++ exception handling.
1957 * python/py-objfile.c: Use C++ exception handling.
1958 * python/py-linetable.c: Use C++ exception handling.
1959 * python/py-lazy-string.c: Use C++ exception handling.
1960 * python/py-infthread.c: Use C++ exception handling.
1961 * python/py-inferior.c: Use C++ exception handling.
1962 * python/py-gdb-readline.c: Use C++ exception handling.
1963 * python/py-framefilter.c: Use C++ exception handling.
1964 * python/py-frame.c: Use C++ exception handling.
1965 * python/py-finishbreakpoint.c: Use C++ exception handling.
1966 * python/py-cmd.c: Use C++ exception handling.
1967 * python/py-breakpoint.c: Use C++ exception handling.
1968 * python/py-arch.c: Use C++ exception handling.
1969 * printcmd.c: Use C++ exception handling.
1970 * ppc-linux-tdep.c: Use C++ exception handling.
1971 * parse.c: Use C++ exception handling.
1972 * p-valprint.c: Use C++ exception handling.
1973 * objc-lang.c: Use C++ exception handling.
1974 * mi/mi-main.c: Use C++ exception handling.
1975 * mi/mi-interp.c: Use C++ exception handling.
1976 * mi/mi-cmd-stack.c: Use C++ exception handling.
1977 * mi/mi-cmd-break.c: Use C++ exception handling.
1978 * main.c: Use C++ exception handling.
1979 * linux-thread-db.c: Use C++ exception handling.
1980 * linux-tdep.c: Use C++ exception handling.
1981 * linux-nat.c: Use C++ exception handling.
1982 * linux-fork.c: Use C++ exception handling.
1983 * linespec.c: Use C++ exception handling.
1984 * language.c: Use C++ exception handling.
1985 * jit.c: Use C++ exception handling.
1986 * infrun.c: Use C++ exception handling.
1987 * infcmd.c: Use C++ exception handling.
1988 * infcall.c: Use C++ exception handling.
1989 * inf-loop.c: Use C++ exception handling.
1990 * i386-tdep.c: Use C++ exception handling.
1991 * i386-linux-tdep.c: Use C++ exception handling.
1992 * guile/scm-value.c: Use C++ exception handling.
1993 * guile/scm-type.c: Use C++ exception handling.
1994 * guile/scm-symtab.c: Use C++ exception handling.
1995 * guile/scm-symbol.c: Use C++ exception handling.
1996 * guile/scm-pretty-print.c: Use C++ exception handling.
1997 * guile/scm-ports.c: Use C++ exception handling.
1998 * guile/scm-param.c: Use C++ exception handling.
1999 * guile/scm-math.c: Use C++ exception handling.
2000 * guile/scm-lazy-string.c: Use C++ exception handling.
2001 * guile/scm-frame.c: Use C++ exception handling.
2002 * guile/scm-disasm.c: Use C++ exception handling.
2003 * guile/scm-cmd.c: Use C++ exception handling.
2004 * guile/scm-breakpoint.c: Use C++ exception handling.
2005 * guile/scm-block.c: Use C++ exception handling.
2006 * guile/guile-internal.h: Use C++ exception handling.
2007 * gnu-v3-abi.c: Use C++ exception handling.
2008 * gdbtypes.c: Use C++ exception handling.
2009 * frame.c: Use C++ exception handling.
2010 * frame-unwind.c: Use C++ exception handling.
2011 * fbsd-tdep.c: Use C++ exception handling.
2012 * f-valprint.c: Use C++ exception handling.
2013 * exec.c: Use C++ exception handling.
2014 * event-top.c: Use C++ exception handling.
2015 * event-loop.c: Use C++ exception handling.
2016 * eval.c: Use C++ exception handling.
2017 * dwarf2read.c: Use C++ exception handling.
2018 * dwarf2loc.c: Use C++ exception handling.
2019 * dwarf2-frame.c: Use C++ exception handling.
2020 * dwarf2-frame-tailcall.c: Use C++ exception handling.
2021 * dwarf-index-write.c: Use C++ exception handling.
2022 * dwarf-index-cache.c: Use C++ exception handling.
2023 * dtrace-probe.c: Use C++ exception handling.
2024 * disasm-selftests.c: Use C++ exception handling.
2025 * darwin-nat.c: Use C++ exception handling.
2026 * cp-valprint.c: Use C++ exception handling.
2027 * cp-support.c: Use C++ exception handling.
2028 * cp-abi.c: Use C++ exception handling.
2029 * corelow.c: Use C++ exception handling.
2030 * completer.c: Use C++ exception handling.
2031 * compile/compile-object-run.c: Use C++ exception handling.
2032 * compile/compile-object-load.c: Use C++ exception handling.
2033 * compile/compile-cplus-symbols.c: Use C++ exception handling.
2034 * compile/compile-c-symbols.c: Use C++ exception handling.
2035 * common/selftest.c: Use C++ exception handling.
2036 * common/new-op.c: Use C++ exception handling.
2037 * cli/cli-script.c: Use C++ exception handling.
2038 * cli/cli-interp.c: Use C++ exception handling.
2039 * cli/cli-cmds.c: Use C++ exception handling.
2040 * c-varobj.c: Use C++ exception handling.
2041 * btrace.c: Use C++ exception handling.
2042 * breakpoint.c: Use C++ exception handling.
2043 * break-catch-throw.c: Use C++ exception handling.
2044 * arch-utils.c: Use C++ exception handling.
2045 * amd64-tdep.c: Use C++ exception handling.
2046 * ada-valprint.c: Use C++ exception handling.
2047 * ada-typeprint.c: Use C++ exception handling.
2048 * ada-lang.c: Use C++ exception handling.
2049 * aarch64-tdep.c: Use C++ exception handling.
2051 2019-04-08 Tom Tromey <tom@tromey.com>
2053 * xml-support.c (gdb_xml_parser::parse): Update.
2054 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2055 * value.c (show_convenience): Update.
2056 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
2057 (test_parse_flags_qcs): Update.
2058 * thread.c (thr_try_catch_cmd): Update.
2059 * target.c (target_translate_tls_address): Update.
2060 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2061 (info_frame_command_core, frame_apply_command_count): Update.
2062 * rust-exp.y (rust_lex_exception_test): Update.
2063 * riscv-tdep.c (riscv_print_one_register_info): Update.
2064 * remote.c (remote_target::enable_btrace): Update.
2065 * record-btrace.c (record_btrace_enable_warn): Update.
2066 * python/py-utils.c (gdbpy_convert_exception): Update.
2067 * printcmd.c (do_one_display, print_variable_and_value): Update.
2068 * mi/mi-main.c (mi_print_exception): Update.
2069 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
2070 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2071 * linux-nat.c (linux_nat_target::attach): Update.
2072 * linux-fork.c (class scoped_switch_fork_info): Update.
2073 * infrun.c (displaced_step_prepare): Update.
2074 * infcall.c (call_function_by_hand_dummy): Update.
2075 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
2076 * gnu-v3-abi.c (print_one_vtable): Update.
2077 * frame.c (get_prev_frame_always): Update.
2078 * f-valprint.c (info_common_command_for_block): Update.
2079 * exec.c (try_open_exec_file): Update.
2080 * exceptions.c (print_exception, exception_print)
2081 (exception_fprintf, exception_print_same): Update.
2082 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
2083 * dwarf-index-cache.c (index_cache::store)
2084 (index_cache::lookup_gdb_index): Update.
2085 * darwin-nat.c (maybe_cache_shell): Update.
2086 * cp-valprint.c (cp_print_value_fields): Update.
2087 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
2088 (gcc_cplus_symbol_address): Update.
2089 * compile/compile-c-symbols.c (gcc_convert_symbol)
2090 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
2091 * common/selftest.c: Update.
2092 * common/common-exceptions.h (struct gdb_exception) <message>: Now
2094 (exception_try_scope_entry, exception_try_scope_exit): Don't
2096 (struct exception_try_scope): Remove.
2097 (TRY): Don't use exception_try_scope.
2098 (struct gdb_exception): Add constructor, operator=.
2100 (struct gdb_exception_RETURN_MASK_ALL)
2101 (struct gdb_exception_RETURN_MASK_ERROR)
2102 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
2103 (struct gdb_quit_bad_alloc): Update.
2104 * common/common-exceptions.c (exception_none): Change
2106 (struct catcher) <state, exception>: Initialize inline.
2107 <prev>: Remove member.
2108 (current_catcher): Remove.
2109 (catchers): New global.
2110 (exceptions_state_mc_init): Simplify.
2111 (catcher_pop): Remove.
2112 (exceptions_state_mc, exceptions_state_mc_catch): Update.
2113 (try_scope_depth, exception_try_scope_entry)
2114 (exception_try_scope_exit): Remove.
2115 (throw_exception_sjlj): Update.
2116 (exception_messages, exception_messages_size): Remove.
2117 (throw_it): Simplify.
2118 (gdb_exception_sliced_copy): Remove.
2119 (throw_exception_cxx): Update.
2120 * cli/cli-script.c (script_from_file): Update.
2121 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
2123 * ada-valprint.c (ada_val_print): Update.
2124 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
2125 (create_excep_cond_exprs): Update.
2127 2019-04-08 Tom Tromey <tom@tromey.com>
2129 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
2130 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
2131 (TRY, CATCH, END_CATCH): Remove some definitions.
2132 * common/common-exceptions.c: Don't use GDB_XCPT.
2133 (catcher_list_size): Remove.
2134 (throw_exception, throw_it): Simplify.
2136 2019-04-05 Tom Tromey <tom@tromey.com>
2138 Revert the header-sorting patch.
2139 * ft32-tdep.c: Revert.
2140 * frv-tdep.c: Revert.
2141 * frv-linux-tdep.c: Revert.
2143 * frame-unwind.c: Revert.
2144 * frame-base.c: Revert.
2145 * fork-child.c: Revert.
2146 * findvar.c: Revert.
2147 * findcmd.c: Revert.
2148 * filesystem.c: Revert.
2149 * filename-seen-cache.h: Revert.
2150 * filename-seen-cache.c: Revert.
2151 * fbsd-tdep.c: Revert.
2152 * fbsd-nat.h: Revert.
2153 * fbsd-nat.c: Revert.
2154 * f-valprint.c: Revert.
2155 * f-typeprint.c: Revert.
2157 * extension.h: Revert.
2158 * extension.c: Revert.
2159 * extension-priv.h: Revert.
2160 * expprint.c: Revert.
2163 * exceptions.c: Revert.
2164 * event-top.c: Revert.
2165 * event-loop.c: Revert.
2167 * elfread.c: Revert.
2168 * dwarf2read.h: Revert.
2169 * dwarf2read.c: Revert.
2170 * dwarf2loc.c: Revert.
2171 * dwarf2expr.h: Revert.
2172 * dwarf2expr.c: Revert.
2173 * dwarf2-frame.c: Revert.
2174 * dwarf2-frame-tailcall.c: Revert.
2175 * dwarf-index-write.h: Revert.
2176 * dwarf-index-write.c: Revert.
2177 * dwarf-index-common.c: Revert.
2178 * dwarf-index-cache.h: Revert.
2179 * dwarf-index-cache.c: Revert.
2180 * dummy-frame.c: Revert.
2181 * dtrace-probe.c: Revert.
2184 * disasm-selftests.c: Revert.
2185 * dictionary.c: Revert.
2186 * dicos-tdep.c: Revert.
2187 * demangle.c: Revert.
2190 * darwin-nat.h: Revert.
2191 * darwin-nat.c: Revert.
2192 * darwin-nat-info.c: Revert.
2193 * d-valprint.c: Revert.
2194 * d-namespace.c: Revert.
2197 * csky-tdep.c: Revert.
2198 * csky-linux-tdep.c: Revert.
2199 * cris-tdep.c: Revert.
2200 * cris-linux-tdep.c: Revert.
2201 * cp-valprint.c: Revert.
2202 * cp-support.c: Revert.
2203 * cp-namespace.c: Revert.
2205 * corelow.c: Revert.
2206 * corefile.c: Revert.
2207 * continuations.c: Revert.
2208 * completer.h: Revert.
2209 * completer.c: Revert.
2210 * complaints.c: Revert.
2211 * coffread.c: Revert.
2212 * coff-pe-read.c: Revert.
2213 * cli-out.h: Revert.
2214 * cli-out.c: Revert.
2215 * charset.c: Revert.
2216 * c-varobj.c: Revert.
2217 * c-valprint.c: Revert.
2218 * c-typeprint.c: Revert.
2220 * buildsym.c: Revert.
2221 * buildsym-legacy.c: Revert.
2222 * build-id.h: Revert.
2223 * build-id.c: Revert.
2225 * bsd-uthread.c: Revert.
2226 * breakpoint.h: Revert.
2227 * breakpoint.c: Revert.
2228 * break-catch-throw.c: Revert.
2229 * break-catch-syscall.c: Revert.
2230 * break-catch-sig.c: Revert.
2231 * blockframe.c: Revert.
2233 * bfin-tdep.c: Revert.
2234 * bfin-linux-tdep.c: Revert.
2235 * bfd-target.c: Revert.
2237 * ax-general.c: Revert.
2240 * avr-tdep.c: Revert.
2242 * auto-load.c: Revert.
2243 * arm-wince-tdep.c: Revert.
2244 * arm-tdep.c: Revert.
2245 * arm-symbian-tdep.c: Revert.
2246 * arm-pikeos-tdep.c: Revert.
2247 * arm-obsd-tdep.c: Revert.
2248 * arm-nbsd-tdep.c: Revert.
2249 * arm-nbsd-nat.c: Revert.
2250 * arm-linux-tdep.c: Revert.
2251 * arm-linux-nat.c: Revert.
2252 * arm-fbsd-tdep.c: Revert.
2253 * arm-fbsd-nat.c: Revert.
2254 * arm-bsd-tdep.c: Revert.
2255 * arch-utils.c: Revert.
2256 * arc-tdep.c: Revert.
2257 * arc-newlib-tdep.c: Revert.
2258 * annotate.h: Revert.
2259 * annotate.c: Revert.
2260 * amd64-windows-tdep.c: Revert.
2261 * amd64-windows-nat.c: Revert.
2262 * amd64-tdep.c: Revert.
2263 * amd64-sol2-tdep.c: Revert.
2264 * amd64-obsd-tdep.c: Revert.
2265 * amd64-obsd-nat.c: Revert.
2266 * amd64-nbsd-tdep.c: Revert.
2267 * amd64-nbsd-nat.c: Revert.
2268 * amd64-nat.c: Revert.
2269 * amd64-linux-tdep.c: Revert.
2270 * amd64-linux-nat.c: Revert.
2271 * amd64-fbsd-tdep.c: Revert.
2272 * amd64-fbsd-nat.c: Revert.
2273 * amd64-dicos-tdep.c: Revert.
2274 * amd64-darwin-tdep.c: Revert.
2275 * amd64-bsd-nat.c: Revert.
2276 * alpha-tdep.c: Revert.
2277 * alpha-obsd-tdep.c: Revert.
2278 * alpha-nbsd-tdep.c: Revert.
2279 * alpha-mdebug-tdep.c: Revert.
2280 * alpha-linux-tdep.c: Revert.
2281 * alpha-linux-nat.c: Revert.
2282 * alpha-bsd-tdep.c: Revert.
2283 * alpha-bsd-nat.c: Revert.
2284 * aix-thread.c: Revert.
2286 * addrmap.c: Revert.
2287 * ada-varobj.c: Revert.
2288 * ada-valprint.c: Revert.
2289 * ada-typeprint.c: Revert.
2290 * ada-tasks.c: Revert.
2291 * ada-lang.c: Revert.
2292 * aarch64-tdep.c: Revert.
2293 * aarch64-ravenscar-thread.c: Revert.
2294 * aarch64-newlib-tdep.c: Revert.
2295 * aarch64-linux-tdep.c: Revert.
2296 * aarch64-linux-nat.c: Revert.
2297 * aarch64-fbsd-tdep.c: Revert.
2298 * aarch64-fbsd-nat.c: Revert.
2299 * aarch32-linux-nat.c: Revert.
2301 2019-04-05 Tom Tromey <tom@tromey.com>
2303 * ft32-tdep.c: Sort headers.
2304 * frv-tdep.c: Sort headers.
2305 * frv-linux-tdep.c: Sort headers.
2306 * frame.c: Sort headers.
2307 * frame-unwind.c: Sort headers.
2308 * frame-base.c: Sort headers.
2309 * fork-child.c: Sort headers.
2310 * findvar.c: Sort headers.
2311 * findcmd.c: Sort headers.
2312 * filesystem.c: Sort headers.
2313 * filename-seen-cache.h: Sort headers.
2314 * filename-seen-cache.c: Sort headers.
2315 * fbsd-tdep.c: Sort headers.
2316 * fbsd-nat.h: Sort headers.
2317 * fbsd-nat.c: Sort headers.
2318 * f-valprint.c: Sort headers.
2319 * f-typeprint.c: Sort headers.
2320 * f-lang.c: Sort headers.
2321 * extension.h: Sort headers.
2322 * extension.c: Sort headers.
2323 * extension-priv.h: Sort headers.
2324 * expprint.c: Sort headers.
2325 * exec.h: Sort headers.
2326 * exec.c: Sort headers.
2327 * exceptions.c: Sort headers.
2328 * event-top.c: Sort headers.
2329 * event-loop.c: Sort headers.
2330 * eval.c: Sort headers.
2331 * elfread.c: Sort headers.
2332 * dwarf2read.h: Sort headers.
2333 * dwarf2read.c: Sort headers.
2334 * dwarf2loc.c: Sort headers.
2335 * dwarf2expr.h: Sort headers.
2336 * dwarf2expr.c: Sort headers.
2337 * dwarf2-frame.c: Sort headers.
2338 * dwarf2-frame-tailcall.c: Sort headers.
2339 * dwarf-index-write.h: Sort headers.
2340 * dwarf-index-write.c: Sort headers.
2341 * dwarf-index-common.c: Sort headers.
2342 * dwarf-index-cache.h: Sort headers.
2343 * dwarf-index-cache.c: Sort headers.
2344 * dummy-frame.c: Sort headers.
2345 * dtrace-probe.c: Sort headers.
2346 * disasm.h: Sort headers.
2347 * disasm.c: Sort headers.
2348 * disasm-selftests.c: Sort headers.
2349 * dictionary.c: Sort headers.
2350 * dicos-tdep.c: Sort headers.
2351 * demangle.c: Sort headers.
2352 * dcache.h: Sort headers.
2353 * dcache.c: Sort headers.
2354 * darwin-nat.h: Sort headers.
2355 * darwin-nat.c: Sort headers.
2356 * darwin-nat-info.c: Sort headers.
2357 * d-valprint.c: Sort headers.
2358 * d-namespace.c: Sort headers.
2359 * d-lang.c: Sort headers.
2360 * ctf.c: Sort headers.
2361 * csky-tdep.c: Sort headers.
2362 * csky-linux-tdep.c: Sort headers.
2363 * cris-tdep.c: Sort headers.
2364 * cris-linux-tdep.c: Sort headers.
2365 * cp-valprint.c: Sort headers.
2366 * cp-support.c: Sort headers.
2367 * cp-namespace.c: Sort headers.
2368 * cp-abi.c: Sort headers.
2369 * corelow.c: Sort headers.
2370 * corefile.c: Sort headers.
2371 * continuations.c: Sort headers.
2372 * completer.h: Sort headers.
2373 * completer.c: Sort headers.
2374 * complaints.c: Sort headers.
2375 * coffread.c: Sort headers.
2376 * coff-pe-read.c: Sort headers.
2377 * cli-out.h: Sort headers.
2378 * cli-out.c: Sort headers.
2379 * charset.c: Sort headers.
2380 * c-varobj.c: Sort headers.
2381 * c-valprint.c: Sort headers.
2382 * c-typeprint.c: Sort headers.
2383 * c-lang.c: Sort headers.
2384 * buildsym.c: Sort headers.
2385 * buildsym-legacy.c: Sort headers.
2386 * build-id.h: Sort headers.
2387 * build-id.c: Sort headers.
2388 * btrace.c: Sort headers.
2389 * bsd-uthread.c: Sort headers.
2390 * breakpoint.h: Sort headers.
2391 * breakpoint.c: Sort headers.
2392 * break-catch-throw.c: Sort headers.
2393 * break-catch-syscall.c: Sort headers.
2394 * break-catch-sig.c: Sort headers.
2395 * blockframe.c: Sort headers.
2396 * block.c: Sort headers.
2397 * bfin-tdep.c: Sort headers.
2398 * bfin-linux-tdep.c: Sort headers.
2399 * bfd-target.c: Sort headers.
2400 * bcache.c: Sort headers.
2401 * ax-general.c: Sort headers.
2402 * ax-gdb.h: Sort headers.
2403 * ax-gdb.c: Sort headers.
2404 * avr-tdep.c: Sort headers.
2405 * auxv.c: Sort headers.
2406 * auto-load.c: Sort headers.
2407 * arm-wince-tdep.c: Sort headers.
2408 * arm-tdep.c: Sort headers.
2409 * arm-symbian-tdep.c: Sort headers.
2410 * arm-pikeos-tdep.c: Sort headers.
2411 * arm-obsd-tdep.c: Sort headers.
2412 * arm-nbsd-tdep.c: Sort headers.
2413 * arm-nbsd-nat.c: Sort headers.
2414 * arm-linux-tdep.c: Sort headers.
2415 * arm-linux-nat.c: Sort headers.
2416 * arm-fbsd-tdep.c: Sort headers.
2417 * arm-fbsd-nat.c: Sort headers.
2418 * arm-bsd-tdep.c: Sort headers.
2419 * arch-utils.c: Sort headers.
2420 * arc-tdep.c: Sort headers.
2421 * arc-newlib-tdep.c: Sort headers.
2422 * annotate.h: Sort headers.
2423 * annotate.c: Sort headers.
2424 * amd64-windows-tdep.c: Sort headers.
2425 * amd64-windows-nat.c: Sort headers.
2426 * amd64-tdep.c: Sort headers.
2427 * amd64-sol2-tdep.c: Sort headers.
2428 * amd64-obsd-tdep.c: Sort headers.
2429 * amd64-obsd-nat.c: Sort headers.
2430 * amd64-nbsd-tdep.c: Sort headers.
2431 * amd64-nbsd-nat.c: Sort headers.
2432 * amd64-nat.c: Sort headers.
2433 * amd64-linux-tdep.c: Sort headers.
2434 * amd64-linux-nat.c: Sort headers.
2435 * amd64-fbsd-tdep.c: Sort headers.
2436 * amd64-fbsd-nat.c: Sort headers.
2437 * amd64-dicos-tdep.c: Sort headers.
2438 * amd64-darwin-tdep.c: Sort headers.
2439 * amd64-bsd-nat.c: Sort headers.
2440 * alpha-tdep.c: Sort headers.
2441 * alpha-obsd-tdep.c: Sort headers.
2442 * alpha-nbsd-tdep.c: Sort headers.
2443 * alpha-mdebug-tdep.c: Sort headers.
2444 * alpha-linux-tdep.c: Sort headers.
2445 * alpha-linux-nat.c: Sort headers.
2446 * alpha-bsd-tdep.c: Sort headers.
2447 * alpha-bsd-nat.c: Sort headers.
2448 * aix-thread.c: Sort headers.
2449 * agent.c: Sort headers.
2450 * addrmap.c: Sort headers.
2451 * ada-varobj.c: Sort headers.
2452 * ada-valprint.c: Sort headers.
2453 * ada-typeprint.c: Sort headers.
2454 * ada-tasks.c: Sort headers.
2455 * ada-lang.c: Sort headers.
2456 * aarch64-tdep.c: Sort headers.
2457 * aarch64-ravenscar-thread.c: Sort headers.
2458 * aarch64-newlib-tdep.c: Sort headers.
2459 * aarch64-linux-tdep.c: Sort headers.
2460 * aarch64-linux-nat.c: Sort headers.
2461 * aarch64-fbsd-tdep.c: Sort headers.
2462 * aarch64-fbsd-nat.c: Sort headers.
2463 * aarch32-linux-nat.c: Sort headers.
2465 2019-04-04 Tom Tromey <tom@tromey.com>
2467 * varobj.c (varobj_create): Update.
2468 * rust-exp.y (struct rust_parser) <update_innermost_block,
2469 lookup_symbol>: New methods.
2470 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
2472 (rust_parser::rust_lookup_type)
2473 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2474 * printcmd.c (display_command, do_one_display): Update.
2475 * parser-defs.h (struct parser_state) <parser_state>: Add
2476 "tracker" parameter.
2477 (block_tracker): New member.
2478 (class innermost_block_tracker) <innermost_block_tracker>: Add
2480 <reset>: Remove method.
2481 (innermost_block): Don't declare.
2482 (null_post_parser): Update.
2483 * parse.c (innermost_block): Remove global.
2484 (write_dollar_variable): Update.
2485 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
2486 Remove "tracker_types" parameter.
2487 (parse_expression): Add "tracker" parameter.
2488 (parse_expression_for_completion): Update.
2489 (null_post_parser): Add "tracker" parameter.
2490 * p-exp.y: Update rules.
2491 * m2-exp.y: Update rules.
2492 * language.h (struct language_defn) <la_post_parser>: Add
2493 "tracker" parameter.
2494 * go-exp.y: Update rules.
2495 * f-exp.y: Update rules.
2496 * expression.h (parse_expression, parse_exp_1): Add "tracker"
2498 * d-exp.y: Update rules.
2499 * c-exp.y: Update rules.
2500 * breakpoint.c (set_breakpoint_condition): Create an
2501 innermost_block_tracker.
2502 (watch_command_1): Likewise.
2503 * ada-lang.c (resolve): Add "tracker" parameter.
2504 (resolve_subexp): Likewise.
2505 * ada-exp.y (write_var_from_sym): Update.
2507 2019-04-04 Tom Tromey <tom@tromey.com>
2509 * type-stack.h: New file.
2510 * type-stack.c: New file.
2511 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
2513 (insert_into_type_stack, insert_type, push_type, push_type_int)
2514 (insert_type_address_space, pop_type, pop_type_int)
2515 (pop_typelist, pop_type_stack, append_type_stack)
2516 (push_type_stack, get_type_stack, push_typelist)
2517 (follow_type_instance_flags, follow_types): Don't declare.
2518 * parse.c (type_stack): Remove global.
2519 (parse_exp_in_context): Update.
2520 (insert_into_type_stack, insert_type, push_type, push_type_int)
2521 (insert_type_address_space, pop_type, pop_type_int)
2522 (pop_typelist, pop_type_stack, append_type_stack)
2523 (push_type_stack, get_type_stack, push_typelist)
2524 (follow_type_instance_flags, follow_types): Remove (moved to
2526 * f-exp.y (type_stack): New global.
2528 (push_kind_type, f_parse): Update.
2529 * d-exp.y (type_stack): New global.
2532 * c-exp.y (struct c_parse_state) <type_stack>: New member.
2534 * Makefile.in (COMMON_SFILES): Add type-stack.c.
2535 (HFILES_NO_SRCDIR): Add type-stack.h.
2537 2019-04-04 Tom Tromey <tom@tromey.com>
2539 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
2540 (rust_parser::convert_ast_to_expression, rust_parse)
2541 (rust_lex_test_completion, rust_lex_tests): Update.
2542 * parser-defs.h (struct expr_completion_state): New.
2543 (struct parser_state) <parser_state>: Add completion parameter.
2544 <mark_struct_expression, mark_completion_tag>: New methods.
2545 <parse_completion, m_completion_state>: New members.
2546 (prefixify_expression, null_post_parser): Update.
2547 (mark_struct_expression, mark_completion_tag): Don't declare.
2548 * parse.c (parse_completion, expout_last_struct)
2549 (expout_tag_completion_type, expout_completion_name): Remove
2551 (parser_state::mark_struct_expression)
2552 (parser_state::mark_completion_tag): Now methods.
2553 (prefixify_expression): Add last_struct parameter.
2554 (prefixify_subexp): Likewise.
2555 (parse_exp_1): Update.
2556 (parse_exp_in_context): Add cstate parameter. Update.
2557 (parse_expression_for_completion): Create an
2558 expr_completion_state.
2559 (null_post_parser): Add "completion" parameter.
2560 * p-exp.y: Update rules.
2562 * language.h (struct language_defn) <la_post_parser>: Add
2563 "completing" parameter.
2564 * go-exp.y: Update rules.
2565 (lex_one_token): Update.
2566 * expression.h (parse_completion): Don't declare.
2567 * d-exp.y: Update rules.
2568 (lex_one_token): Update rules.
2569 * c-exp.y: Update rules.
2570 (lex_one_token): Update.
2571 * ada-lang.c (resolve): Add "parse_completion" parameter.
2572 (resolve_subexp): Likewise.
2573 (ada_resolve_function): Likewise.
2575 2019-04-04 Tom Tromey <tom@tromey.com>
2577 * parser-defs.h (struct parser_state) <start_arglist,
2578 end_arglist>: New methods.
2579 <arglist_len, m_funcall_chain>: New members.
2580 (arglist_len, start_arglist, end_arglist): Don't declare.
2581 * parse.c (arglist_len, funcall_chain): Remove global.
2582 (start_arglist, end_arglist): Remove functions.
2583 (parse_exp_in_context): Update.
2584 * p-exp.y: Update rules.
2585 * m2-exp.y: Update rules.
2586 * go-exp.y: Update rules.
2587 * f-exp.y: Update rules.
2588 * d-exp.y: Update rules.
2589 * c-exp.y: Update rules.
2591 2019-04-04 Tom Tromey <tom@tromey.com>
2593 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
2594 lex_operator, push_back>: New methods.
2596 (rust_parser::lex_hex, lex_escape): Rename and update.
2597 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
2598 (rust_parser::lex_operator): Rename and update.
2599 (rust_parser::lex_number, rustyylex, rustyyerror)
2600 (rust_lex_test_init, rust_lex_test_sequence)
2601 (rust_lex_test_push_back, rust_lex_tests): Update.
2602 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
2604 <lexptr, prev_lexptr>: New members.
2605 (lexptr, prev_lexptr): Don't declare.
2606 * parse.c (lexptr, prev_lexptr): Remove globals.
2607 (parse_exp_in_context): Update.
2608 * p-exp.y (yylex, yyerror): Update.
2609 * m2-exp.y (parse_number, yylex, yyerror): Update.
2610 * go-exp.y (lex_one_token, yyerror): Update.
2611 * f-exp.y (match_string_literal, yylex, yyerror): Update.
2612 * d-exp.y (lex_one_token, yyerror): Update.
2613 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
2614 (lex_one_token, yyerror): Update.
2615 * ada-lex.l (YY_INPUT): Update.
2616 (rewind_to_char): Update.
2617 * ada-exp.y (yyerror): Update.
2619 2019-04-04 Tom Tromey <tom@tromey.com>
2621 * rust-exp.y (rustyylex, rust_lex_tests): Update.
2622 * parser-defs.h (struct parser_state) <parser_state>: Add new
2624 <comma_terminates>: New member.
2625 (comma_terminates): Don't declare global.
2626 * parse.c (comma_terminates): Remove global.
2627 (parse_exp_in_context): Update.
2628 * p-exp.y (yylex): Update.
2629 * m2-exp.y (yylex): Update.
2630 * go-exp.y (lex_one_token): Update.
2631 * f-exp.y (yylex): Update.
2632 * d-exp.y (lex_one_token): Update.
2633 * c-exp.y (lex_one_token): Update.
2634 * ada-lex.l: Update.
2636 2019-04-04 Tom Tromey <tom@tromey.com>
2638 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
2639 (rustyylex, rust_lex_test_init, rust_lex_test_one)
2640 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
2641 * parser-defs.h (paren_depth): Don't declare.
2642 * parse.c (paren_depth): Remove global.
2643 (parse_exp_in_context): Update.
2644 * p-exp.y (paren_depth): New global.
2645 (pascal_parse): Initialize it.
2646 * m2-exp.y (paren_depth): New global.
2647 (m2_parse): Initialize it.
2648 * go-exp.y (paren_depth): New global.
2649 (go_parse): Initialize it.
2650 * f-exp.y (paren_depth): New global.
2651 (f_parse): Initialize it.
2652 * d-exp.y (paren_depth): New global.
2653 (d_parse): Initialize it.
2654 * c-exp.y (paren_depth): New global.
2655 (c_parse): Initialize it.
2656 * ada-lex.l (paren_depth): New global.
2657 (lexer_init): Initialize it.
2659 2019-04-04 Tom Tromey <tom@tromey.com>
2661 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
2662 (rust_parser::convert_ast_to_type)
2663 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2664 * parser-defs.h (struct parser_state) <parser_state>: Add
2665 parameters. Initialize new members.
2666 <expression_context_block, expression_context_pc>: New members.
2667 * parse.c (expression_context_block, expression_context_pc):
2669 (parse_exp_in_context): Update.
2670 * p-exp.y: Update all rules.
2672 * m2-exp.y: Update all rules.
2674 * go-exp.y (yylex): Update.
2675 * f-exp.y (yylex): Update.
2676 * d-exp.y: Update all rules.
2678 * c-exp.y: Update all rules.
2679 (lex_one_token, classify_name, yylex, c_parse): Update.
2680 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
2682 2019-04-04 Tom Tromey <tom@tromey.com>
2684 * gdbarch.h, gdbarch.c: Rebuild.
2685 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
2687 (struct stap_parse_info): Replace "parser_state" with
2689 * parser-defs.h (struct expr_builder): Rename from "parser_state".
2690 (parser_state): New class.
2691 * parse.c (expr_builder): Rename.
2692 (expr_builder::release): Rename.
2693 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2694 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2695 (write_exp_elt_longcst, write_exp_elt_floatcst)
2696 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2697 (write_exp_string_vector, write_exp_bitstring)
2698 (write_exp_msymbol, mark_struct_expression)
2699 (write_dollar_variable)
2700 (insert_type_address_space, increase_expout_size): Replace
2701 "parser_state" with "expr_builder".
2702 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
2703 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
2704 "parser_state" with "expr_builder".
2706 2019-04-04 Tom Tromey <tom@tromey.com>
2708 * rust-exp.y: Replace "parse_language" with method call.
2710 (yylex): Replace "parse_language" with method call.
2712 (yylex): Replace "parse_language" with method call.
2713 * go-exp.y (classify_name): Replace "parse_language" with method
2715 * f-exp.y (yylex): Replace "parse_language" with method call.
2716 * d-exp.y (lex_one_token): Replace "parse_language" with method
2719 (lex_one_token, classify_name, yylex): Replace "parse_language"
2721 * ada-exp.y (find_primitive_type, type_char)
2722 (type_system_address): Replace "parse_language" with method call.
2724 2019-04-04 Tom Tromey <tom@tromey.com>
2726 * rust-exp.y: Replace "parse_gdbarch" with method call.
2727 * parse.c (write_dollar_variable, insert_type_address_space):
2728 Replace "parse_gdbarch" with method call.
2729 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
2731 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
2733 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
2734 "parse_gdbarch" with method call.
2735 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
2737 * f-exp.y (parse_type, parse_f_type, yylex): Replace
2738 "parse_gdbarch" with method call.
2739 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
2740 "parse_gdbarch" with method call.
2741 * c-exp.y (parse_type, parse_number, classify_name): Replace
2742 "parse_gdbarch" with method call.
2743 * ada-lex.l: Replace "parse_gdbarch" with method call.
2744 * ada-exp.y (parse_type, find_primitive_type, type_char)
2745 (type_system_address): Replace "parse_gdbarch" with method call.
2747 2019-04-04 Tom Tromey <tom@tromey.com>
2749 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
2750 * stap-probe.c (stap_parse_argument): Update.
2751 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
2752 initial_size parameter.
2753 * rust-exp.y (rust_lex_tests): Update.
2754 * parse.c (parser_state): Update.
2755 (parse_exp_in_context): Update.
2756 * parser-defs.h (struct parser_state) <parser_state>: Remove
2757 "initial_size" parameter.
2759 2019-04-04 Tom Tromey <tom@tromey.com>
2761 * parser-defs.h (increase_expout_size): Don't declare.
2762 * parse.c (increase_expout_size): Now static.
2764 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
2766 * gnu-nat.c (gnu_nat_target::wait): Fix
2767 target_waitstatus_to_string call.
2769 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
2771 * eval.c (evaluate_subexp_standard): Handle internal functions
2772 during Fortran function call handling.
2774 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
2776 * NEWS: Mention new internal functions.
2777 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
2778 (read_base_type): Use dwarf2_init_complex_target_type.
2779 * value.c (creal_internal_fn): New function.
2780 (cimag_internal_fn): New function.
2781 (_initialize_values): Register new internal functions.
2783 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2785 * infrun.c (stop_all_threads): If debug_infrun, always
2786 trace the wait status after wait_one, using
2787 target_waitstatus_to_string and target_pid_to_str.
2788 (handle_inferior_event): Replace various trace of
2789 wait status kind by a single trace.
2790 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
2791 wait status kind image by target_waitstatus_to_string.
2792 * target/waitstatus.c (target_waitstatus_to_string): Fix
2795 2019-04-01 Tom Tromey <tromey@adacore.com>
2798 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
2800 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
2801 Pedro Alves <palves@redhat.com>
2803 * top.c (quit_force): Call 'finalize_values'.
2804 * value.c (finalize_values): New function.
2805 * value.h (finalize_values): Declare.
2807 2019-03-30 Eli Zaretskii <eliz@gnu.org>
2809 * NEWS: Announce $_gdb_major and $_gdb_minor.
2811 * top.c (init_gdb_version_vars): New function.
2812 (gdb_init): Call init_gdb_version_vars.
2814 2019-03-29 Tom Tromey <tromey@adacore.com>
2816 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
2817 help text. Remove dead code.
2819 2019-03-29 Keith Seitz <keiths@redhat.com>
2821 From Siddhesh Poyarekar:
2822 * f-lang.h (f77_get_upperbound): Return LONGEST.
2823 (f77_get_lowerbound): Likewise.
2824 * f-typeprint.c (f_type_print_varspec_suffix): Expand
2825 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
2827 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
2828 plongest to format print it.
2829 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
2830 (f77_get_upperbound): Likewise.
2831 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
2832 LOWER_BOUND to LONGEST.
2833 (f77_create_arrayprint_offset_tbl): Likewise.
2835 2019-03-29 Keith Seitz <keiths@redhat.com>
2837 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2838 %s/pulongest for TYPE_LENGTH instead of %d in format
2840 * ada-typerint.c (ada_print_type): Likewise.
2841 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
2842 * compile/compile-c-support.c (generate_register_struct): Likewise.
2843 * gdbtypes.c (recursive_dump_type): Likewise.
2844 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
2845 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
2846 instead of %d in format strings.
2847 * riscv-tdep.c (riscv_type_alignment): Cast second argument
2848 to std::min to ULONGEST.
2849 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
2850 instead of %d in format strings.
2851 * tracepoint.c (info_scope_command): Likewise.
2852 * typeprint.c (print_offset_data::update)
2853 (print_offset_data::finish): Likewise.
2854 * xtensa-tdep.c (xtensa_store_return_value)
2855 (xtensa_push_dummy_call): Likewise.
2857 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
2859 * windows-nat.c (display_selector): Fixed format specifications
2862 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2864 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
2866 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
2868 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
2869 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
2870 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
2871 (nios2_linux_init_abi): Install it.
2873 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2875 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
2877 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2879 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
2881 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2882 Tom Tromey <tromey@adacore.com>
2884 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
2886 2019-03-26 Joel Brobecker <brobecker@adacore.com>
2888 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
2889 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
2890 method to compute the bounds of range types. Also print "[evaluated]"
2891 if the bounds' values come from a dynamic evaluation.
2893 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
2895 * cp-valprint.c (cp_print_value_fields): Don't print trailing
2896 whitespace when pretty printing is on.
2898 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2900 * ppc-linux-nat.c: Add include.
2902 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2904 * NEWS: Mention AArch64 Pointer Authentication.
2906 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2908 * arm-linux-nat.c: Add include.
2910 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
2912 * source-cache.c (source_cache::get_source_lines): Re-read
2913 fullname after calling open_source_file.
2915 2019-03-25 John Baldwin <jhb@FreeBSD.org>
2917 * NEWS: Mention TLS support for FreeBSD.
2919 2019-03-25 Tom Tromey <tromey@adacore.com>
2921 * minsyms.c (BUNCH_SIZE): Update comment.
2922 (~minimal_symbol_reader): Remove old comment.
2923 (compact_minimal_symbols): Update comment.
2924 (minimal_symbol_reader::install): Remove old comment. Update
2927 2019-03-25 Alan Hayward <alan.hayward@arm.com>
2929 * s390-linux-nat.c: Add include.
2931 2019-03-25 Alan Hayward <alan.hayward@arm.com>
2933 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2934 Call linux_get_hwcap.
2935 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
2937 (aarch64_linux_get_hwcap): Remove function.
2938 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
2940 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
2942 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2943 * linux-tdep.c (linux_get_hwcap): Add function.
2944 (linux_get_hwcap2): Likewise.
2945 * linux-tdep.h (linux_get_hwcap): Add declaration.
2946 (linux_get_hwcap2): Likewise.
2947 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
2948 (ppc_linux_get_hwcap2): Likewise.
2949 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
2951 (ppc_linux_nat_target::insert_watchpoint): Likewise.
2952 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
2953 (ppc_linux_nat_target::read_description): Likewise.
2954 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
2955 * s390-linux-nat.c: Likewise.
2956 * s390-linux-tdep.c (s390_core_read_description): Likewise.
2958 2019-03-24 Tom Tromey <tom@tromey.com>
2960 * ada-lang.c (standard_lookup): Simplify initialization.
2961 (ada_lookup_symbol_nonlocal): Simplify return.
2962 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
2963 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
2964 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
2965 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
2967 * solib.c (solib_global_lookup): Simplify.
2968 * symtab.c (null_block_symbol): Remove.
2969 (symbol_cache_lookup): Simplify returns.
2970 (lookup_language_this): Simplify returns.
2971 (lookup_symbol_aux): Simplify return.
2972 (lookup_local_symbol): Simplify returns.
2973 (lookup_global_symbol_from_objfile): Simplify return.
2974 (lookup_symbol_in_objfile_symtabs)
2975 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
2976 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
2977 (lookup_static_symbol, lookup_global_symbol): Simplify return.
2978 * cp-namespace.c (cp_lookup_bare_symbol)
2979 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
2980 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
2981 (cp_lookup_nested_symbol): Don't use null_block_symbol.
2982 (cp_lookup_symbol_via_imports): Simplify initialization.
2983 (find_symbol_in_baseclass): Likewise.
2984 * symtab.h (null_block_symbol): Remove.
2985 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
2986 (d_lookup_nested_symbol, d_lookup_symbol_imports)
2987 (d_lookup_symbol_module): Likewise.
2988 (find_symbol_in_baseclass): Simplify initialization.
2990 2019-03-24 Tom Tromey <tom@tromey.com>
2992 * expression.h: Don't include symtab.h.
2993 (struct block): Forward declare.
2995 2019-03-24 Tom Tromey <tom@tromey.com>
2997 * c-exp.y (typebase): Remove casts.
2998 * gdbtypes.c (lookup_unsigned_typename, )
2999 (lookup_signed_typename): Remove cast.
3000 * eval.c (parse_to_comma_and_eval): Remove cast.
3001 * parse.c (write_dollar_variable): Remove cast.
3002 * block.h (struct block) <superblock>: Now const.
3003 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
3004 * psymtab.c (psym_map_matching_symbols): Make "block" const.
3005 (map_block): Make "block" const.
3006 * symfile.h (struct quick_symbol_functions)
3007 <map_matching_symbols>: Constify block argument to "callback".
3008 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
3010 (find_pc_sect_compunit_symtab): Make "b" const.
3011 (find_symbol_at_address): Likewise.
3012 (search_symbols): Likewise.
3013 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
3014 (dw2_debug_names_lookup_symbol): Likewise.
3015 (dw2_map_matching_symbols): Update.
3016 * p-valprint.c (pascal_val_print): Remove "block".
3017 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
3018 (aux_add_nonlocal_symbols): Make "block" const.
3019 (resolve_subexp): Remove cast.
3020 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
3022 (iterate_over_file_blocks): Likewise.
3023 * f-exp.y (%union) <bval>: Remove.
3024 * coffread.c (patch_opaque_types): Make "b" const.
3025 * spu-tdep.c (spu_catch_start): Make "block" const.
3026 * c-valprint.c (print_unpacked_pointer): Remove "block".
3027 * symmisc.c (dump_symtab_1): Make "b" const.
3028 (block_depth): Make "block" const.
3029 * d-exp.y (%union) <bval>: Remove.
3030 * cp-support.h (cp_lookup_rtti_type): Update.
3031 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
3032 * psymtab.c (psym_lookup_symbol): Make "block" const.
3033 (maintenance_check_psymtabs): Make "b" const.
3034 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
3035 (enumerate_locals, enumerate_args): Update.
3036 * python/py-symtab.c (stpy_global_block): Make "block" const.
3037 (stpy_static_block): Likewise.
3038 * inline-frame.c (block_starting_point_at): Make "new_block"
3040 * block.c (find_block_in_blockvector): Make return type const.
3041 (blockvector_for_pc_sect): Make "b" const.
3042 (find_block_in_blockvector): Make "b" const.
3044 2019-03-23 Tom Tromey <tom@tromey.com>
3046 * varobj.c (varobj_create): Update.
3047 * symfile.c (clear_symtab_users): Don't reset innermost_block.
3048 * printcmd.c (display_command, do_one_display): Don't reset
3050 * parser-defs.h (enum innermost_block_tracker_type): Move to
3052 (innermost_block): Update comment.
3053 * parse.c (parse_exp_1): Add tracker_types parameter.
3054 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
3055 tracker_types parameter. Reset innermost_block.
3056 (parse_exp_in_context): Remove.
3057 (parse_expression_for_completion): Update.
3058 * objfiles.c (~objfile): Don't reset expression_context_block or
3060 * expression.h (enum innermost_block_tracker_type): Move from
3062 (parse_exp_1): Add tracker_types parameter.
3063 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
3064 reset innermost_block.
3066 2019-03-23 Tom Tromey <tom@tromey.com>
3068 * objfiles.h: Include bcache.h.
3070 2019-03-23 Tom Tromey <tom@tromey.com>
3072 * linespec.c (get_current_search_block): Use
3073 scoped_restore_current_language.
3074 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
3076 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3077 Jiong Wang <jiong.wang@arm.com>
3079 * aarch64-linux-tdep.c
3080 (aarch64_linux_iterate_over_regset_sections): Check for pauth
3082 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
3084 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3085 Jiong Wang <jiong.wang@arm.com>
3087 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
3089 (aarch64_analyze_prologue_test): Add PACIASP test.
3090 (aarch64_prologue_prev_register): Unmask PC value.
3092 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3093 Jiong Wang <jiong.wang@arm.com>
3095 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
3096 (aarch64_dwarf2_prev_register): Unmask PC value.
3097 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
3098 (aarch64_execute_dwarf_cfa_vendor_op): Check for
3099 DW_CFA_AARCH64_negate_ra_state.
3100 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
3102 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3103 Jiong Wang <jiong.wang@arm.com>
3105 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
3107 (aarch64_pseudo_register_name): Likewise.
3108 (aarch64_pseudo_register_type): Likewise.
3109 (aarch64_pseudo_register_reggroup_p): Likewise.
3110 (aarch64_gdbarch_init): Add pauth registers.
3111 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
3112 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
3113 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
3114 (struct gdbarch_tdep): Add regnum for ra_state.
3116 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3117 Jiong Wang <jiong.wang@arm.com>
3119 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
3121 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3122 Jiong Wang <jiong.wang@arm.com>
3124 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
3126 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
3127 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
3128 (aarch64_gdbarch_init): Add puth registers.
3129 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
3130 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
3131 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
3133 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3134 Jiong Wang <jiong.wang@arm.com>
3136 * aarch64-linux-nat.c
3137 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
3138 * aarch64-linux-tdep.c
3139 (aarch64_linux_core_read_description): Likewise.
3140 (aarch64_linux_get_hwcap): New function.
3141 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
3142 (aarch64_linux_get_hwcap): New declaration.
3144 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3145 Jiong Wang <jiong.wang@arm.com>
3147 * aarch64-linux-nat.c
3148 (aarch64_linux_nat_target::read_description): Add pauth param.
3149 * aarch64-linux-tdep.c
3150 (aarch64_linux_core_read_description): Likewise.
3151 * aarch64-tdep.c (struct target_desc): Add in pauth.
3152 (aarch64_read_description): Add pauth param.
3153 (aarch64_gdbarch_init): Likewise.
3154 * aarch64-tdep.h (aarch64_read_description): Likewise.
3155 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3156 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3157 * features/Makefile: Add new files.
3158 * features/aarch64-pauth.c: New file.
3159 * features/aarch64-pauth.xml: New file.
3161 2019-03-20 Tom Tromey <tromey@adacore.com>
3163 * infrun.c (handle_inferior_event): Rename from
3164 handle_inferior_event_1. Create a scoped_value_mark.
3165 (handle_inferior_event): Remove.
3167 2019-03-19 Tom Tromey <tromey@adacore.com>
3169 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
3170 * infrun.h (print_stop_event): Add "displays" parameter.
3171 * infrun.c (print_stop_event): Add "displays" parameter.
3173 2019-03-19 Pedro Alves <palves@redhat.com>
3175 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
3176 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
3177 to -1. Fix TABs vs spaces.
3178 (tui_ui_out::tui_ui_out): Don't initialize fields here.
3179 * tui/tui-out.h (tui_ui_out) Add intro comments.
3180 <m_line, m_start_of_line>: In-class initialize, and add describing
3183 2019-03-18 Alan Hayward <alan.hayward@arm.com>
3185 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
3187 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
3189 2019-03-18 Pedro Alves <palves@redhat.com>
3190 Eli Zaretskii <eliz@gnu.org>
3192 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
3193 m_line and m_start_of_line.
3195 2019-03-18 Eli Zaretskii <eliz@gnu.org>
3197 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
3198 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
3199 it returns a newline. This fixes a regression in TU mode, whereby
3200 the next line is output on the same screen line as the user input.
3202 2019-03-18 Tom Tromey <tromey@adacore.com>
3204 * minsyms.c (minimal_symbol_reader::install): Remove call to
3207 2019-03-18 Pedro Alves <palves@redhat.com>
3209 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
3211 (apply_style): New, factored out from ...
3212 (apply_ansi_escape): ... this. Handle reverse video mode.
3213 (tui_set_reverse_mode): New function.
3214 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
3215 * tui/tui-winsource.c (tui_show_source_line): Use
3216 tui_set_reverse_mode instead of setting A_STANDOUT.
3217 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
3220 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
3222 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
3225 2019-03-18 Tom Tromey <tromey@adacore.com>
3227 * ada-lang.c (empty_array): Add "high" parameter.
3228 (ada_evaluate_subexp): Update.
3230 2019-03-17 Sergei Trofimovich <siarheit@google.com>
3232 * unittests/string_view-selftests.c: Define
3233 _initialize_string_view_selftests unconditionally.
3235 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3238 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
3240 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3243 * windows-nat.c (display_selector): Fix format specifiers.
3245 2019-03-17 Eli Zaretskii <eliz@gnu.org>
3247 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
3248 tui_refill_source_window instead of tui_refresh_win, to update the
3249 current execution line. This fixes redisplay of the current line
3250 when stepping through the code with "next" or "step".
3252 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3254 * source-cache.c (source_cache::get_source_lines): Call
3255 find_source_lines to initialize s->nlines. This fixes vertical
3256 scrolling of TUI source window when the DOWN arrow is pressed.
3258 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3260 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
3261 linux-thread-db.c (_initialize_thread_db): Likewise.
3263 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3265 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
3266 wclrtoeol in tui_show_source_line". This reverts changes made in
3267 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
3269 2019-03-15 Tom Tromey <tom@tromey.com>
3271 * symtab.h (struct minimal_symbol): Derive from
3272 general_symbol_info.
3273 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
3274 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3275 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3276 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3277 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
3278 (MSYMBOL_SEARCH_NAME): Update.
3279 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
3280 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
3281 * minsyms.c (minimal_symbol_reader::record_full): Update.
3283 2019-03-15 Tom Tromey <tom@tromey.com>
3285 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
3287 2019-03-15 Tom Tromey <tom@tromey.com>
3289 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
3291 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
3293 * minsyms.c (lookup_minimal_symbol_by_pc_section)
3294 (build_minimal_symbol_hash_tables)
3295 (minimal_symbol_reader::install): Update.
3297 2019-03-15 Tom Tromey <tom@tromey.com>
3299 * symtab.c (create_demangled_names_hash): Update.
3300 (symbol_set_names): Update.
3301 * objfiles.h (struct objfile_per_bfd_storage)
3302 <demangled_names_hash>: Now an htab_up.
3303 * objfiles.c (objfile_per_bfd_storage): Simplify.
3305 2019-03-15 Tom Tromey <tom@tromey.com>
3307 * objfiles.h (struct objfile_per_bfd_storage): Declare
3309 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
3311 (get_objfile_bfd_data): Use new. Don't initialize
3313 (free_objfile_per_bfd_storage): Remove.
3314 (objfile_bfd_data_free, objfile::~objfile): Use delete.
3316 2019-03-15 Tom Tromey <tom@tromey.com>
3318 * symfile.c (reread_symbols): Update.
3319 * objfiles.c (objfile::objfile): Update.
3320 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
3321 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
3323 (minimal_symbol_reader::install): Update.
3324 (terminate_minimal_symbol_table): Remove.
3325 * jit.c (jit_object_close_impl): Update.
3327 2019-03-15 Tom Tromey <tom@tromey.com>
3329 * minsyms.c (minimal_symbol_reader::record_full): Remove some
3332 2019-03-15 Tom Tromey <tom@tromey.com>
3334 * objfiles.h (struct objfile_per_bfd_storage)
3335 <demangled_hash_languages>: Now a bitset.
3336 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
3337 (lookup_minimal_symbol): Update.
3339 2019-03-15 Tom Tromey <tom@tromey.com>
3341 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
3342 Don't return the symbol.
3343 * coffread.c (record_minimal_symbol): Use record_full.
3345 2019-03-14 Eli Zaretskii <eliz@gnu.org>
3347 The MS-Windows port of ncurses fails to switch to a color pair if
3348 one or both of the colors are the implicit default colors. This
3349 change records the default colors when TUI is initialized, and
3350 then specifies them explicitly when a color pair uses the default
3351 colors. This allows color styling in TUI mode on MS-Windows.
3353 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
3355 (tui_initialize_io) [__MINGW32__]: Record the default terminal
3356 colors in ncurses_norm_attr.
3357 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
3358 "none", replace it with the default color recorded in
3361 2019-03-14 Tom Tromey <tromey@adacore.com>
3363 * source-cache.h (class source_cache) <get_source_lines>: Return
3365 * source-cache.c (source_cache::extract_lines): Handle case where
3366 first_pos==npos. Return std::string.
3367 (source_cache::get_source_lines): Update.
3369 2019-03-14 Tom Tromey <tromey@adacore.com>
3371 * NEWS: Add item for "style sources" commands.
3372 * source-cache.c (source_cache::get_source_lines): Check
3374 * cli/cli-style.c (source_styling): New global.
3375 (_initialize_cli_style): Add "style sources" commands.
3376 (show_style_sources): New function.
3377 * cli/cli-style.h (source_styling): Declare.
3379 2019-03-14 Pedro Alves <palves@redhat.com>
3380 Tom Tromey <tromey@adacore.com>
3382 * tui/tui-winsource.h (tui_refill_source_window): Declare.
3383 * tui/tui-winsource.c (tui_refill_source_window): New function,
3385 (tui_horizontal_source_scroll): ... here. Move some logic.
3386 * cli/cli-style.c (set_style_enabled): Notify new observable.
3387 * tui/tui-hooks.c (tui_redisplay_source): New function.
3388 (tui_attach_detach_observers): Attach or detach
3389 tui_redisplay_source.
3390 * observable.h (source_styling_changed): New observable.
3391 * observable.c: Define source_styling_changed observable.
3393 2019-03-13 Tom Tromey <tromey@adacore.com>
3395 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
3396 (i386_gnu_nat_target::store_registers): Update.
3397 * target-debug.h (target_debug_print_std_string): New macro.
3398 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
3399 * windows-tdep.c (display_one_tib): Update.
3400 * tui/tui-stack.c (tui_make_status_line): Update.
3401 * top.c (print_inferior_quit_action): Update.
3402 * thread.c (thr_try_catch_cmd): Update.
3403 (add_thread_with_info): Update.
3404 (thread_target_id_str): Update.
3405 (thr_try_catch_cmd): Update.
3406 (thread_command): Update.
3407 (thread_find_command): Update.
3408 * record-btrace.c (record_btrace_target::info_record)
3409 (record_btrace_resume_thread, record_btrace_target::resume)
3410 (record_btrace_cancel_resume, record_btrace_step_thread)
3411 (record_btrace_target::wait, record_btrace_target::wait)
3412 (record_btrace_target::wait, record_btrace_target::stop): Update.
3413 * progspace.c (print_program_space): Update.
3414 * process-stratum-target.c
3415 (process_stratum_target::thread_address_space): Update.
3416 * linux-fork.c (linux_fork_mourn_inferior)
3417 (detach_checkpoint_command, info_checkpoints_command)
3418 (linux_fork_context): Update.
3419 (linux_fork_detach): Update.
3420 (class scoped_switch_fork_info): Update.
3421 (delete_checkpoint_command): Update.
3422 * infrun.c (follow_fork_inferior): Update.
3423 (follow_fork_inferior): Update.
3424 (proceed_after_vfork_done): Update.
3425 (handle_vfork_child_exec_or_exit): Update.
3426 (follow_exec): Update.
3427 (displaced_step_prepare_throw): Update.
3428 (displaced_step_restore): Update.
3429 (start_step_over): Update.
3431 (clear_proceed_status_thread): Update.
3433 (print_target_wait_results): Update.
3434 (do_target_wait): Update.
3435 (context_switch): Update.
3436 (stop_all_threads): Update.
3437 (restart_threads): Update.
3438 (finish_step_over): Update.
3439 (handle_signal_stop): Update.
3440 (switch_back_to_stepped_thread): Update.
3441 (keep_going_pass_signal): Update.
3442 (print_exited_reason): Update.
3443 (normal_stop): Update.
3444 * inferior.c (inferior_pid_to_str): Change return type.
3445 (print_selected_inferior): Update.
3446 (add_inferior): Update.
3447 (detach_inferior): Update.
3448 * dummy-frame.c (fprint_dummy_frames): Update.
3449 * dcache.c (dcache_info_1): Update.
3450 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
3451 (btrace_fetch, btrace_clear): Update.
3452 * linux-tdep.c (linux_core_pid_to_str): Change return type.
3453 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
3455 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
3456 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
3457 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
3458 * gdbarch.c, gdbarch.h: Rebuild.
3459 * gdbarch.sh (core_pid_to_str): Change return type.
3460 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
3462 (windows_nat_target::pid_to_str): Change return type.
3463 (windows_delete_thread): Update.
3464 (windows_nat_target::attach): Update.
3465 (windows_nat_target::files_info): Update.
3466 * target-delegates.c: Rebuild.
3467 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
3469 (sol_thread_target::pid_to_str): Change return type.
3470 * remote.c (class remote_target) <pid_to_str>: Change return
3472 (remote_target::pid_to_str): Change return type.
3473 (extended_remote_target::attach, remote_target::remote_stop_ns)
3474 (remote_target::remote_notif_remove_queued_reply)
3475 (remote_target::push_stop_reply, remote_target::disable_btrace):
3477 (extended_remote_target::attach): Update.
3478 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
3480 (gdbsim_target::pid_to_str): Change return type.
3481 * ravenscar-thread.c (struct ravenscar_thread_target)
3482 <pid_to_str>: Change return type.
3483 (ravenscar_thread_target::pid_to_str): Change return type.
3484 * procfs.c (class procfs_target) <pid_to_str>: Change return
3486 (procfs_target::pid_to_str): Change return type.
3487 (procfs_target::attach): Update.
3488 (procfs_target::detach): Update.
3489 (procfs_target::fetch_registers): Update.
3490 (procfs_target::store_registers): Update.
3491 (procfs_target::wait): Update.
3492 (procfs_target::files_info): Update.
3493 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
3494 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
3496 (nto_procfs_target::pid_to_str): Change return type.
3497 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
3498 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
3500 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
3502 (attach_proc_task_lwp_callback, get_detach_signal)
3503 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
3504 (linux_nat_target::resume, wait_lwp, stop_callback)
3505 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
3506 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
3507 (linux_nat_wait_1, resume_stopped_resumed_lwps)
3508 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
3509 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
3511 (inf_ptrace_target::attach): Update.
3512 (inf_ptrace_target::files_info): Update.
3513 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
3515 (go32_nat_target::pid_to_str): Change return type.
3516 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
3517 (gnu_nat_target::wait): Update.
3518 (gnu_nat_target::wait): Update.
3519 (gnu_nat_target::resume): Update.
3520 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
3521 (fbsd_nat_target::wait): Update.
3522 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
3524 (darwin_nat_target::attach): Update.
3525 * corelow.c (class core_target) <pid_to_str>: Change return type.
3526 (core_target::pid_to_str): Change return type.
3527 * target.c (normal_pid_to_str): Change return type.
3528 (default_pid_to_str): Likewise.
3529 (target_pid_to_str): Change return type.
3530 (target_translate_tls_address): Update.
3531 (target_announce_detach): Update.
3532 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
3534 (bsd_uthread_target::pid_to_str): Change return type.
3535 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
3537 (bsd_kvm_target::pid_to_str): Change return type.
3538 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
3540 (aix_thread_target::pid_to_str): Change return type.
3541 * target.h (struct target_ops) <pid_to_str>: Change return type.
3542 (target_pid_to_str, normal_pid_to_str): Likewise.
3543 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
3545 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
3547 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
3549 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
3551 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
3553 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
3556 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
3558 * NEWS: Mention that the new default MI version is 3. Mention
3559 changes to the output of commands and events that deal with
3560 multi-location breakpoints.
3561 * breakpoint.c: Include "mi/mi-out.h".
3562 (print_one_breakpoint): Change output syntax if using MI version
3564 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
3566 (mi_multi_location_breakpoint_output_fixed): New.
3567 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
3568 (mi_cmd_fix_multi_location_breakpoint_output): New.
3569 (mi_multi_location_breakpoint_output_fixed): New.
3570 * mi/mi-cmds.c (mi_cmds): Register command
3571 -fix-multi-location-breakpoint-output.
3572 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
3575 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3577 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
3578 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
3579 instantiate mi_ui_out based on interpreter name.
3580 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
3581 * mi/mi-main.c (mi_load_progress): Likewise.
3583 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3585 * NEWS: Combine separate "New targets" sections for 8.3.
3587 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3589 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
3590 (ppcfbsd_init_abi): Install gdbarch
3591 "fetch_tls_load_module_address" and "get_thread_local_address"
3594 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3596 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
3597 (riscv_fbsd_init_abi): Install gdbarch
3598 "fetch_tls_load_module_address" and "get_thread_local_address"
3601 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3603 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
3604 (i386fbsd_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 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
3611 (amd64fbsd_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 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
3618 (struct fbsd_pspace_data): New type.
3619 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
3620 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
3621 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
3622 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
3623 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
3625 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3627 * gdbtypes.c (lookup_struct_elt): New function.
3628 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
3629 * gdbtypes.h (struct struct_elt): New type.
3630 (lookup_struct_elt): New prototype.
3632 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3634 * gdbtypes.c (lookup_struct_elt_type): Update comment and
3635 remove disabled code block.
3637 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3639 * gdbarch.sh (get_thread_local_address): New method.
3640 * gdbarch.h, gdbarch.c: Regenerate.
3641 * target.c (target_translate_tls_address): Use
3642 gdbarch_get_thread_local_address if present instead of
3643 target::get_thread_local_address.
3645 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3647 * target.h (target::get_thread_local_address): Update comment.
3649 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3651 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
3652 objfile->separate_debug_objfile_backlink if not NULL.
3654 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3656 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
3657 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
3658 (amd64bsd_store_inferior_registers): Likewise.
3659 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
3660 Enable segment base registers.
3661 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
3662 PT_GETFSBASE and PT_GETGSBASE.
3663 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
3665 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
3666 segment base registers.
3667 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
3669 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3671 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
3672 Update calls to i386_target_description to add 'segments'
3674 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
3675 add segment base registers.
3676 * arch/i386.c (i386_create_target_description): Add 'segments'
3677 parameter to enable segment base registers.
3678 * arch/i386.h (i386_create_target_description): Likewise.
3679 * features/i386/32bit-segments.xml: New file.
3680 * features/i386/32bit-segments.c: Generate.
3681 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
3682 call to i386_target_description to add 'segments' parameter.
3683 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
3684 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
3685 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
3686 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
3687 if feature is present.
3688 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
3689 Add 'segments' parameter to call to i386_target_description.
3690 (i386_target_description): Add 'segments' parameter to enable
3691 segment base registers.
3692 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
3693 to call to i386_target_description.
3694 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
3695 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
3696 Define I386_NUM_REGS.
3697 (i386_target_description): Add 'segments' parameter to enable
3698 segment base registers.
3700 2019-03-12 Eli Zaretskii <eliz@gnu.org>
3703 * source-cache.c: #undef open and close, to avoid unresolved
3704 externals during linking.
3706 2019-03-12 Tom Tromey <tromey@adacore.com>
3708 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
3709 const. Add initializers.
3710 (_initialize_remote): Don't initialize ptid globals.
3712 2019-03-12 Pedro Alves <palves@redhat.com>
3714 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
3716 2019-03-12 Pedro Alves <palves@redhat.com>
3718 * cp-name-parser.y (main): Remove unused 'len' variable.
3720 2019-03-12 Tom Tromey <tromey@adacore.com>
3722 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
3723 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
3725 2019-03-12 Tom Tromey <tromey@adacore.com>
3727 * linux-nat.c (iterate_over_lwps): Update.
3728 (stop_callback): Remove parameter.
3729 (stop_wait_callback, detach_callback, resume_set_callback)
3730 (select_singlestep_lwp_callback, set_ignore_sigint)
3731 (status_callback, resumed_callback, resume_clear_callback)
3732 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
3734 (linux_nat_target::detach, linux_nat_target::resume)
3735 (linux_stop_and_wait_all_lwps, select_event_lwp)
3736 (linux_nat_filter_event, linux_nat_wait_1)
3737 (linux_nat_target::kill, linux_nat_target::stop)
3738 (linux_nat_target::stop): Update.
3739 (linux_nat_resume_callback): Change type.
3740 (resume_stopped_resumed_lwps, count_events_callback)
3741 (select_event_lwp_callback): Likewise.
3742 (linux_stop_lwp, linux_nat_stop_lwp): Update.
3743 * arm-linux-nat.c (struct update_registers_data): Remove.
3744 (update_registers_callback): Change type.
3745 (arm_linux_insert_hw_breakpoint1): Update.
3746 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
3748 (x86_linux_dr_set_addr): Update.
3749 (x86_linux_dr_set_control): Update.
3750 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
3751 (iterate_over_lwps): Use gdb::function_view.
3752 * nat/aarch64-linux-hw-point.c (struct
3753 aarch64_dr_update_callback_param): Remove.
3754 (debug_reg_change_callback): Change type.
3755 (aarch64_notify_debug_reg_change): Update.
3756 * s390-linux-nat.c (s390_refresh_per_info): Update.
3758 2019-03-11 Tom Tromey <tromey@adacore.com>
3760 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
3761 redundant assignment to "this_cu".
3763 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3765 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
3767 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3769 * gdbtypes.c (rank_one_type_parm_set): New function extracted
3771 (rank_one_type): ... this.
3773 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3775 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
3777 (rank_one_type): ... this.
3779 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3781 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
3783 (rank_one_type): ... this.
3785 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3787 * gdbtypes.c (rank_one_type_parm_float): New function extracted
3789 (rank_one_type): ... this.
3791 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3793 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
3795 (rank_one_type): ... this.
3797 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3799 * gdbtypes.c (rank_one_type_parm_range): New function extracted
3801 (rank_one_type): ... this.
3803 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3805 * gdbtypes.c (rank_one_type_parm_char): New function extracted
3807 (rank_one_type): ... this.
3809 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3811 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
3813 (rank_one_type): ... this.
3815 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3817 * gdbtypes.c (rank_one_type_parm_int): New function extracted
3819 (rank_one_type): ... this.
3821 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3823 * gdbtypes.c (rank_one_type_parm_func): New function extracted
3825 (rank_one_type): ... this.
3827 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3829 * gdbtypes.c (rank_one_type_parm_array): New function extracted
3831 (rank_one_type): ... this.
3833 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3835 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
3837 (rank_one_type): ... this.
3839 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3841 * inferior.c (initialize_inferiors): Ensure 'help set/show print
3842 inferior-events' shows the example events.
3844 2019-03-08 Eli Zaretskii <eliz@gnu.org>
3846 Support styling on native MS-Windows console
3849 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
3850 on MS-Windows if $TERM is not defined.
3852 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
3854 * posix-hdep.c (gdb_console_fputs):
3855 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
3857 * ui-file.h (gdb_console_fputs): Add prototype.
3859 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
3860 back to fputs only if the former returns zero.
3862 2019-03-07 Tom Tromey <tom@tromey.com>
3864 * symmisc.c (print_symbol_bcache_statistics): Update.
3865 (print_objfile_statistics): Update.
3866 * symfile.c (allocate_symtab): Update.
3867 * stabsread.c: Don't include bcache.h.
3868 * psymtab.h (struct psymbol_bcache): Don't declare.
3869 (class psymtab_storage) <psymbol_cache>: Now a bcache.
3870 (psymbol_bcache_init, psymbol_bcache_free)
3871 (psymbol_bcache_get_bcache): Don't declare.
3872 * psymtab.c (struct psymbol_bcache): Remove.
3873 (psymtab_storage::psymtab_storage): Update.
3874 (psymtab_storage::~psymtab_storage): Update.
3875 (psymbol_bcache_init, psymbol_bcache_free)
3876 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
3877 (add_psymbol_to_bcache): Update.
3878 (allocate_psymtab): Update.
3879 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
3880 macro_cache>: No longer pointers.
3881 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
3882 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
3883 * macrotab.c (macro_bcache): Update.
3884 * macroexp.c: Don't include bcache.h.
3885 * gdbtypes.c (check_types_worklist): Update.
3886 (types_deeply_equal): Remove TRY/CATCH. Update.
3887 * elfread.c (elf_symtab_read): Update.
3888 * dwarf2read.c: Don't include bcache.h.
3889 * buildsym.c (buildsym_compunit::get_macro_table): Update.
3890 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
3891 (print_bcache_statistics, bcache_memory_used): Don't declare.
3892 (struct bcache): Move from bcache.c. Add constructor, destructor,
3893 methods. Rename all data members.
3894 * bcache.c (struct bcache): Move to bcache.h.
3895 (bcache::expand_hash_table): Rename from expand_hash_table.
3897 (bcache::insert): Rename from bcache_full.
3898 (bcache::compare): Rename from bcache_compare.
3899 (bcache_xmalloc): Remove.
3900 (bcache::~bcache): Rename from bcache_xfree.
3901 (bcache::print_statistics): Rename from print_bcache_statistics.
3902 (bcache::memory_used): Rename from bcache_memory_used.
3904 2019-03-07 Pedro Alves <palves@redhat.com>
3906 * infrun.c (normal_stop): Also check for
3907 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
3909 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
3911 * f-lang.c (value_from_host_double): Moved to...
3912 * value.c (value_from_host_double): ...here.
3913 * value.h (value_from_host_double): Declare.
3914 * guile/scm-math.c (vlscm_convert_typed_number): Use
3915 value_from_host_double.
3916 (vlscm_convert_number): Likewise.
3917 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
3918 * python/py-value.c (convert_value_from_python): Likewise.
3920 2019-03-06 Tom Tromey <tom@tromey.com>
3922 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
3924 2019-03-06 Tom Tromey <tom@tromey.com>
3926 * utils.h (free_current_contents): Don't declare.
3927 * utils.c (free_current_contents): Remove.
3929 2019-03-06 Tom Tromey <tom@tromey.com>
3931 * top.c (quit_force): Update.
3932 * main.c (captured_command_loop): Update.
3933 * common/new-op.c (operator new): Update.
3934 * common/common-exceptions.c (struct catcher)
3935 <save_cleanup_chain>: Remove member.
3936 (exceptions_state_mc_init): Update.
3937 (exception_try_scope_entry): Return nullptr.
3938 (exception_try_scope_exit, exception_rethrow)
3939 (throw_exception_sjlj, throw_exception_cxx): Update.
3940 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
3941 (all_cleanups, do_cleanups, discard_cleanups)
3942 (discard_final_cleanups, save_cleanups, save_final_cleanups)
3943 (restore_cleanups, restore_final_cleanups): Don't declare.
3944 (do_final_cleanups): Remove parameter.
3945 * common/cleanups.c (cleanup_chain, make_cleanup)
3946 (make_cleanup_dtor, all_cleanups, do_cleanups)
3947 (discard_my_cleanups, discard_cleanups)
3948 (discard_final_cleanups, save_my_cleanups, save_cleanups)
3949 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
3950 (null_cleanup): Remove.
3951 (do_final_cleanups): Remove parameter.
3953 2019-03-06 Tom Tromey <tom@tromey.com>
3955 * remote.c (remote_target::remote_parse_stop_reply): Use
3958 2019-03-06 Tom Tromey <tom@tromey.com>
3960 * stabsread.c (struct stabs_field_info): Rename from field_info.
3961 <list, fnlist>: Add initializers.
3962 <obstack>: New member.
3963 (read_member_functions, read_struct_fields, read_baseclasses):
3964 Allocate on obstack. Don't use cleanups.
3965 (read_one_struct_field, read_member_functions, read_struct_fields)
3966 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
3967 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
3968 (read_struct_type): Update.
3970 2019-03-06 Tom Tromey <tom@tromey.com>
3972 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
3973 * common/filestuff.h (make_cleanup_close): Don't declare.
3974 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
3977 2019-03-06 Tom Tromey <tom@tromey.com>
3979 * solib-aix.c: Use make_scope_exit.
3981 2019-03-06 Tom Tromey <tom@tromey.com>
3983 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
3984 Use make_scope_exit.
3986 2019-03-06 Tom Tromey <tom@tromey.com>
3988 * solib-svr4.c (disable_probes_interface): Remove parameter.
3989 (svr4_handle_solib_event): Use make_scope_exit.
3991 2019-03-06 Tom Tromey <tom@tromey.com>
3993 * remote.c (struct stop_reply_deleter): Remove.
3994 (stop_reply_up): Update.
3995 (struct stop_reply): Derive from notif_event. Don't typedef.
3996 <regcache>: Now a std::vector.
3997 (stop_reply_xfree): Remove.
3998 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
3999 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
4000 (remote_target::discard_pending_stop_replies): Use delete.
4001 (remote_target::remote_parse_stop_reply): Update.
4002 (remote_target::process_stop_reply): Update.
4003 * remote-notif.h (struct notif_event): Add virtual destructor.
4004 Remove "dtr" member.
4005 (struct notif_client) <alloc_event>: Return a unique_ptr.
4006 (notif_event_xfree): Don't declare.
4007 (notif_event_up): New typedef.
4008 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
4009 (notif_event_xfree, do_notif_event_xfree): Remove.
4010 (remote_notif_state_xfree): Update.
4012 2019-03-06 Tom Tromey <tom@tromey.com>
4014 * infrun.c (displaced_step_clear_cleanup): Now a
4015 forward_scope_exit type.
4016 (displaced_step_prepare_throw): Update.
4017 (displaced_step_fixup): Update.
4019 2019-03-06 Tom Tromey <tom@tromey.com>
4021 * inferior.h (class inferior): Update comment.
4022 * gdbthread.h (class thread_info): Update comment.
4024 2019-03-06 Joel Brobecker <brobecker@adacore.com>
4025 Tom Tromey <tom@tromey.com>
4027 * stabsread.h (struct stab_section_list): Remove.
4028 (coffstab_build_psymtabs): Update.
4029 * dbxread.c (symbuf_sections): Now a std::vector.
4030 (sect_idx): New global.
4031 (fill_symbuf): Update.
4032 (coffstab_build_psymtabs): Change type of stabsects parameter.
4034 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
4036 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
4037 (coff_locate_sections): Update.
4038 (coff_symfile_read): Remove cleanups. Update.
4039 (init_stringtab): Add storage parameter.
4040 (free_stringtab, free_stringtab_cleanup): Remove.
4041 (init_lineno): Add storage parameter.
4042 (free_linetab, free_linetab_cleanup): Remove.
4044 2019-03-06 Pedro Alves <palves@redhat.com>
4046 * linux-fork.c (fork_info::clobber_regs): Delete.
4047 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
4048 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
4050 (scoped_switch_fork_info::scoped_switch_fork_info)
4051 (checkpoint_command, linux_fork_context): Adjust
4052 fork_save_infrun_state calls.
4054 2019-03-06 Pedro Alves <palves@redhat.com>
4056 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
4057 (inf_has_multiple_threads): Return 'bool' and rewrite using
4058 inferior_info::threads().
4060 2019-03-06 Pedro Alves <palves@redhat.com>
4062 * linux-fork.c: Include <list>.
4063 (fork_list): Now a std::list instance.
4064 (fork_info): Add ctor, dtor, and in-class initialize all fields.
4065 (forks_exist_p, find_last_fork): Adjust.
4069 (free_fork): Delete, folded into fork_info::~fork_info().
4070 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
4072 (init_fork_list): Delete.
4073 (linux_fork_killall, linux_fork_mourn_inferior)
4074 (linux_fork_detach, info_checkpoints_command): Adjust.
4075 (_initialize_linux_fork): No longer call init_fork_list.
4077 2019-03-06 Pedro Alves <palves@redhat.com>
4079 * linux-fork.c (new_fork): New, split out of ...
4080 (add_fork): ... this. Return void. Move "first fork" special
4081 case from here, to ...
4082 (checkpoint_command): ... here.
4083 * linux-linux.h (add_fork): Return void.
4085 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4087 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
4089 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4090 Chris January <chris.january@arm.com>
4091 David Lecomber <david.lecomber@arm.com>
4093 * f-exp.y: New token, UNOP_INTRINSIC.
4094 (exp): New pattern using UNOP_INTRINSIC token.
4095 (f77_keywords): Add 'abs' keyword.
4096 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
4097 (value_from_host_double): New function.
4098 (evaluate_subexp_f): Support UNOP_ABS.
4100 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4102 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
4105 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4107 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
4108 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
4109 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
4111 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4113 * f-exp.y (convert_to_kind_type): Handle more type kinds.
4115 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4116 Chris January <chris.january@arm.com>
4118 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
4119 * f-exp.y: Define 'KIND' token.
4120 (exp): New pattern for KIND expressions.
4121 (ptype): Handle types with a kind extension.
4122 (direct_abs_decl): Extend to spot kind extensions.
4123 (f77_keywords): Add 'kind' to the list.
4124 (push_kind_type): New function.
4125 (convert_to_kind_type): New function.
4126 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
4127 * parse.c (operator_length_standard): Likewise.
4128 * parser-defs.h (enum type_pieces): Add tp_kind.
4129 * std-operator.def: Add UNOP_KIND.
4131 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4133 * f-exp.y (f_parse): Set yydebug.
4135 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4137 * f-lang.c (evaluate_subexp_f): New function.
4138 (exp_descriptor_f): New global.
4139 (f_language_defn): Use exp_descriptor_f instead of
4140 exp_descriptor_standard.
4142 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4144 * f-exp.y (struct token): Add comments.
4145 (dot_ops): Remove uppercase versions and the end marker.
4146 (f77_keywords): Likewise.
4147 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
4148 entries in the dot_ops array are case insensitive, and use
4149 strncasecmp to compare strings. Also some whitespace cleanup in
4150 this area. Similar for the f77_keywords array, except entries in
4151 this list might be case sensitive.
4153 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4155 * f-exp.y (struct f77_boolean_val): Add comments.
4156 (boolean_values): Remove uppercase versions, and end marker.
4157 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
4158 and use strncasecmp to achieve case insensitivity. Additionally,
4159 perform whitespace cleanup around this code.
4161 2019-03-06 Tom Tromey <tromey@adacore.com>
4163 * remote-sim.c (gdbsim_target_open): Use result of
4166 2019-03-06 Richard Bunt <richard.bunt@arm.com>
4167 Dirk Schubert <dirk.schubert@arm.com>
4168 Chris January <chris.january@arm.com>
4170 * eval.c (evaluate_subexp_standard): Call Fortran argument
4172 * f-lang.c (struct value): A value which can be passed into a
4173 Fortran function call.
4174 (fortran_argument_convert): Wrap Fortran arguments in a pointer
4176 (struct type): Value ready for a Fortran function call.
4177 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
4179 * f-lang.h (fortran_argument_convert): Declaration.
4180 (fortran_preserve_arg_pointer): Declaration.
4181 * infcall.c (value_arg_coerce): Call Fortran argument logic.
4183 2019-03-05 Tom Tromey <tromey@adacore.com>
4185 * python/py-prettyprint.c (print_string_repr): Remove #if.
4186 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
4188 2019-03-05 Tom Tromey <tromey@adacore.com>
4190 * target.c (the_dummy_target): Move later. Change type to
4192 (initialize_targets): Don't initialize the_dummy_target.
4194 2019-03-05 Tom Tromey <tromey@adacore.com>
4196 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
4197 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
4199 2019-03-05 Tom Tromey <tromey@adacore.com>
4201 * windows-nat.c (windows_nat_target::attach)
4202 (windows_nat_target::detach): Don't call gdb_flush.
4203 * valprint.c (generic_val_print, val_print, val_print_string):
4204 Don't call gdb_flush.
4205 * utils.c (defaulted_query): Don't call gdb_flush.
4206 * typeprint.c (print_type_scalar): Don't call gdb_flush.
4207 * target.c (target_announce_detach): Don't call gdb_flush.
4208 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
4209 * remote.c (extended_remote_target::attach): Don't call
4211 * procfs.c (procfs_target::detach): Don't call gdb_flush.
4212 * printcmd.c (do_examine): Don't call gdb_flush.
4213 (info_display_command): Don't call gdb_flush.
4214 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
4215 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
4216 * memattr.c (info_mem_command): Don't call gdb_flush.
4217 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
4218 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
4219 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
4220 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
4221 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
4222 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
4223 (gnu_nat_target::detach): Don't call gdb_flush.
4224 * f-valprint.c (f_val_print): Don't call gdb_flush.
4225 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
4226 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
4227 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
4229 * c-valprint.c (c_val_print): Don't call gdb_flush.
4230 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
4232 2019-03-05 Tom Tromey <tromey@adacore.com>
4234 * varobj.c (update_dynamic_varobj_children): Update.
4235 (install_default_visualizer): Use reset, not release.
4236 * value.c (set_internalvar): Update.
4237 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
4238 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
4239 ATTRIBUTE_UNUSED_RESULT.
4241 2019-03-05 Tom Tromey <tromey@adacore.com>
4243 * remote.c (class scoped_remote_fd) <release>: Add
4244 ATTRIBUTE_UNUSED_RESULT.
4246 2019-03-05 Tom Tromey <tromey@adacore.com>
4248 * macroexp.c (struct macro_buffer) <release>: Add
4249 ATTRIBUTE_UNUSED_RESULT.
4251 2019-03-05 Tom Tromey <tromey@adacore.com>
4253 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
4254 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
4255 ATTRIBUTE_UNUSED_RESULT.
4257 2019-03-05 Tom Tromey <tromey@adacore.com>
4259 * common/scoped_fd.h (class scoped_fd) <release>: Add
4260 ATTRIBUTE_UNUSED_RESULT.
4262 2019-03-05 Tom Tromey <tromey@adacore.com>
4264 * parser-defs.h (struct parser_state) <release>: Add
4265 ATTRIBUTE_UNUSED_RESULT.
4267 2019-03-05 Tom Tromey <tromey@adacore.com>
4269 * utils.h (class gdb_argv) <release>: Add
4270 ATTRIBUTE_UNUSED_RESULT.
4271 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
4273 2019-03-02 Eli Zaretskii <eliz@gnu.org>
4275 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
4276 for-loop range, to avoid compiler warnings.
4278 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
4279 avoid compiler warnings about unused variables.
4281 * NEWS: Mention end of support for native debugging on MS-Windows
4285 * common/netstuff.c:
4286 * gdbserver/gdbreplay.c
4287 * gdbserver/remote-utils.c:
4289 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
4290 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
4291 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
4292 'getaddrinfo' and 'freeaddrinfo' were not available before
4293 Windows XP, and mingw.org's MinGW headers by default define
4294 _WIN32_WINNT to 0x500.
4296 2019-03-01 Gary Benson <gbenson@redhat.com>
4298 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
4300 2019-02-28 Brian Vandenberg <phantall@gmail.com>
4301 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4304 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
4305 set_sigint_trap, clear_sigint_trap.
4307 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4309 * target.c (target_detach): Clear the regcache and the
4312 2019-02-27 Pedro Alves <palves@redhat.com>
4314 * utils.c (set_screen_size): When we cap the height/width sizes,
4315 tweak the corresponding command variable to show "unlimited":
4317 2019-02-27 Saagar Jha <saagar@saagarjha.com>
4318 Pedro Alves <palves@redhat.com>
4320 * utils.c (set_screen_size): Reduce "infinite" rows and columns
4321 before calling rl_set_screen_size.
4323 2019-02-27 Tom Tromey <tromey@adacore.com>
4325 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
4327 * python/py-value.c: Remove Python 2.4 workaround.
4328 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
4330 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
4331 Python 2.4 workaround.
4332 * python/python-internal.h: Remove Python 2.4 comment.
4333 (Py_ssize_t): Don't define.
4334 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
4335 (gdb_Py_DECREF): Remove Python 2.4 workaround.
4336 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
4337 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
4338 * python/python.c (do_start_initialization): Remove Python 2.4
4340 * python/py-prettyprint.c (class dummy_python_frame): Remove.
4341 (print_children): Remove Python 2.4 workaround.
4342 * python/py-inferior.c (buffer_procs): Remove Python 2.4
4344 (CHARBUFFERPROC_NAME): Remove.
4345 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
4346 Python 2.4 workaround.
4348 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4350 * NEWS: Note minimum Python version.
4352 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4354 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
4355 code from these functions. Remove corresponding ifdefs. Use
4356 Py_buffer_up instead of explicit calls to PyBuffer_Release.
4357 Remove gotos and target of gotos.
4358 (infpy_search_memory): Likewise.
4360 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4362 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
4363 (hppa_gdbarch_init): Don't register deleted functions with
4366 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4368 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
4369 (h8300_unwind_sp): Delete.
4370 (h8300_dummy_id): Delete.
4371 (h8300_gdbarch_init): Don't register deleted functions with
4374 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4376 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
4377 (ft32_unwind_pc): Delete.
4378 (ft32_unwind_sp): Delete.
4379 (ft32_gdbarch_init): Don't register deleted functions with
4382 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4384 * gdb/frv-tdep.c (frv_dummy_id): Delete.
4385 (frv_unwind_pc): Delete.
4386 (frv_unwind_sp): Delete.
4387 (frv_gdbarch_init): Don't register deleted functions with
4390 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4392 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
4393 (riscv_unwind_pc): Delete.
4394 (riscv_unwind_sp): Delete.
4395 (riscv_gdbarch_init): Don't register deleted functions with
4398 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4400 * gdb/csky-tdep.c (csky_dummy_id): Delete.
4401 (csky_unwind_pc): Delete.
4402 (csky_unwind_sp): Delete.
4403 (csky_gdbarch_init): Don't register deleted functions with
4406 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4408 * gdb/cris-tdep.c (cris_dummy_id): Delete.
4409 (cris_unwind_pc): Delete.
4410 (cris_unwind_sp): Delete.
4411 (cris_gdbarch_init): Don't register deleted functions with
4414 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4416 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
4417 (bfin_unwind_pc): Delete.
4418 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
4420 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4422 * gdb/arm-tdep.c (arm_dummy_id): Delete.
4423 (arm_unwind_pc): Delete.
4424 (arm_unwind_sp): Delete.
4425 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
4427 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4429 * gdb/arc-tdep.c (arc_dummy_id): Delete.
4430 (arc_unwind_pc): Delete.
4431 (arc_unwind_sp): Delete.
4432 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
4434 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4436 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
4437 (alpha_unwind_pc): Delete.
4438 (alpha_gdbarch_init): Don't register deleted functions with
4441 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4443 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
4444 (aarch64_unwind_pc): Delete.
4445 (aarch64_unwind_sp): Delete.
4446 (aarch64_gdbarch_init): Don't register deleted functions with
4449 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4451 * gdbtypes.c (type_align): Don't consider static members when
4452 computing structure alignment.
4454 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4456 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
4457 return 0 for other types.
4458 * arch-utils.c (default_type_align): Always return 0.
4459 * gdbarch.h: Regenerate.
4460 * gdbarch.sh (type_align): Extend comment.
4461 * gdbtypes.c (type_align): Add additional comments, always call
4462 gdbarch_type_align before applying the default rules.
4463 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
4464 generic code will then apply a suitable default.
4465 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
4466 types, return 0 for other types.
4468 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4470 * NEWS: Create a new section for the next release branch.
4471 Rename the section of the current branch, now that it has
4474 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4476 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
4477 * version.in: Bump version to 8.3.50.DATE-git.
4479 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
4481 * aix-thread.c (ptid_cmp): Remove unused variable.
4482 (get_signaled_thread): Likewise.
4483 (store_regs_user_thread): Likewise.
4484 (store_regs_kernel_thread): Likewise.
4485 (fetch_regs_kernel_thread): Remove shadowed variable.
4487 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
4489 * features/riscv/32bit-cpu.xml: Add register numbers.
4490 * features/riscv/32bit-fpu.c: Regenerate.
4491 * features/riscv/32bit-fpu.xml: Add register numbers.
4492 * features/riscv/64bit-cpu.xml: Add register numbers.
4493 * features/riscv/64bit-fpu.c: Regenerate.
4494 * features/riscv/64bit-fpu.xml: Add register numbers.
4496 2019-02-26 Kevin Buettner <kevinb@redhat.com>
4498 * NEWS: Mention two argument form of gdb.Value constructor.
4499 * python/py-value.c (convert_buffer_and_type_to_value): New
4501 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
4502 Add support for handling an optional second argument. Call
4503 convert_buffer_and_type_to_value as appropriate.
4504 * python/python-internal.h (Py_buffer_deleter): New struct.
4505 (Py_buffer_up): New typedef.
4507 2019-02-25 John Baldwin <jhb@FreeBSD.org>
4509 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
4510 instead of releasing ownership.
4512 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
4514 * dwarf2read.c (open_and_init_dwp_file): Call
4515 elf_numsections instead of bfd_count_sections to initialize
4516 dwp_file->num_sections.
4518 2019-02-25 Tom Tromey <tromey@adacore.com>
4520 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
4522 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
4524 * gcore.in: Add '--readnever' option when invoking GDB.
4526 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4528 * MAINTAINERS: Update my email address.
4530 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4532 * build-id.c (build_id_to_debug_bfd_1): New function.
4533 (build_id_to_debug_bfd): Look for separate debug file in
4536 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
4538 * gdbarch.sh: Update the copyright year range that is placed into
4541 2019-02-22 Keith Seitz <keiths@redhat.com>
4544 * linespec.c (create_sals_line_offset): Search for the default
4545 symtab's filename instead of its fullname.
4547 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4549 * NEWS: Update style defaults.
4551 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4553 * main.c (captured_main_1): Disable styling in batch mode.
4555 2019-02-20 Tom Tromey <tom@tromey.com>
4557 * symtab.c (symtab_symbol_info): Fix typos.
4559 2019-02-20 Tom Tromey <tromey@adacore.com>
4561 * findcmd.c (_initialize_mem_search): Use upper case for
4562 metasyntactic variables.
4564 2019-02-20 Alan Hayward <alan.hayward@arm.com>
4566 * aarch64-tdep.c (aarch64_add_reggroups): New function.
4567 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
4569 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
4571 * top.h (source_file_name): Change to std::string.
4572 * top.c (source_file_name): Likewise.
4573 (command_line_input): Adjust.
4574 * cli/cli-script.c (script_from_file): Adjust.
4576 2019-02-19 Tom Tromey <tromey@adacore.com>
4578 * ravenscar-thread.c
4579 (ravenscar_thread_target::update_thread_list): Don't call
4580 ada_build_task_list.
4581 * ada-lang.h (ada_build_task_list): Don't declare.
4582 * ada-tasks.c (struct ada_tasks_inferior_data)
4583 <task_list_valid_p>: Now bool.
4584 (read_known_tasks, ada_task_list_changed)
4585 (ada_tasks_invalidate_inferior_data): Update.
4586 (read_known_tasks_array): Return bool.
4587 (read_known_tasks_list): Likewise.
4588 (read_known_tasks): Return void.
4589 (ada_build_task_list): Now static.
4591 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
4593 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
4594 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
4596 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4598 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
4599 variant for ada_tasks_pspace_data_handle and
4600 ada_tasks_inferior_data_handle.
4601 (ada_tasks_pspace_data_cleanup): New function.
4602 (ada_tasks_inferior_data_cleanup): New function.
4604 2019-02-17 Tom Tromey <tom@tromey.com>
4606 * macrotab.h (macro_source_fullname): Return a std::string.
4607 * macrotab.c (macro_include, check_for_redefinition)
4608 (macro_undef, macro_lookup_definition, foreach_macro)
4609 (foreach_macro_in_scope): Update.
4610 (macro_source_fullname): Return a std::string.
4611 * macrocmd.c (show_pp_source_pos): Update.
4613 2019-02-17 Tom Tromey <tom@tromey.com>
4615 * macrocmd.c (show_pp_source_pos): Style the file names.
4617 2019-02-17 Tom Tromey <tom@tromey.com>
4620 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
4622 2019-02-17 Tom Tromey <tom@tromey.com>
4624 * ada-lang.c (user_select_syms): Use filtered printing.
4625 * utils.c (wrap_style): New global.
4626 (desired_style): Remove.
4627 (emit_style_escape): Add stream parameter.
4628 (set_output_style, reset_terminal_style, prompt_for_continue):
4630 (flush_wrap_buffer): Only flush gdb_stdout.
4631 (wrap_here): Set wrap_style.
4632 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
4633 treat escape sequences as a character. Change when wrap buffer is
4635 (fputs_styled): Do not set the output style when the default is
4637 * ui-style.h (struct ui_file_style) <is_default>: New method.
4638 * source.c (print_source_lines_base): Emit escape sequences in one
4641 2019-02-17 Joel Brobecker <brobecker@adacore.com>
4643 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
4644 integers and enumeration types.
4646 2019-02-17 Joel Brobecker <brobecker@adacore.com>
4648 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
4649 instead of lookup_symbol_in_language
4650 (do_exact_match): New function.
4651 (ada_get_symbol_name_matcher): Return do_exact_match when
4652 doing a verbatim match.
4654 2019-02-15 Tom Tromey <tromey@adacore.com>
4656 * ravenscar-thread.c (ravenscar_thread_target::resume)
4657 (ravenscar_thread_target::wait): Special case wildcard requests.
4659 2019-02-15 Tom Tromey <tromey@adacore.com>
4661 * ravenscar-thread.c (base_ptid): Remove.
4662 (struct ravenscar_thread_target) <close>: New method.
4663 <m_base_ptid>: New member.
4664 <update_inferior_ptid, active_task, task_is_currently_active,
4665 runtime_initialized>: Declare methods.
4666 <ravenscar_thread_target>: Add constructor.
4667 (ravenscar_thread_target::task_is_currently_active)
4668 (ravenscar_thread_target::update_inferior_ptid)
4669 (ravenscar_runtime_initialized): Rename. Now methods.
4670 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
4671 (ravenscar_thread_target::update_thread_list): Update.
4672 (ravenscar_thread_target::active_task): Now method.
4673 (ravenscar_thread_target::store_registers)
4674 (ravenscar_thread_target::prepare_to_store)
4675 (ravenscar_thread_target::prepare_to_store)
4676 (ravenscar_thread_target::mourn_inferior): Update.
4677 (ravenscar_inferior_created): Use "new" to create target.
4678 (ravenscar_thread_target::get_ada_task_ptid): Update.
4679 (_initialize_ravenscar): Don't initialize base_ptid.
4680 (ravenscar_ops): Remove global.
4682 2019-02-15 Tom Tromey <tromey@adacore.com>
4684 * target.h (push_target): Declare new overload.
4685 * target.c (push_target): New overload, taking an rvalue reference.
4686 * remote.c (remote_target::open_1): Use push_target overload.
4687 * corelow.c (core_target_open): Use push_target overload.
4689 2019-02-15 Tom Tromey <tromey@adacore.com>
4691 * ravenscar-thread.c (is_ravenscar_task)
4692 (ravenscar_task_is_currently_active): Return bool.
4693 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
4694 (_initialize_ravenscar): Remove "(void)".
4695 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
4698 2019-02-15 Tom Tromey <tromey@adacore.com>
4700 * ravenscar-thread.c (ravenscar_runtime_initializer)
4701 (has_ravenscar_runtime, get_running_thread_id)
4702 (ravenscar_thread_target::resume): Fix indentation.
4704 2019-02-15 Tom Tromey <tromey@adacore.com>
4706 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
4707 from ravenscar_arch_ops.
4708 (sparc_ravenscar_ops::fetch_registers)
4709 (sparc_ravenscar_ops::store_registers): Now methods.
4710 (sparc_ravenscar_prepare_to_store): Remove.
4711 (sparc_ravenscar_ops): Redefine.
4712 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
4713 methods and destructor. Remove members.
4714 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
4715 (ravenscar_thread_target::store_registers)
4716 (ravenscar_thread_target::prepare_to_store): Update.
4717 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
4719 (struct ppc_ravenscar_powerpc_ops): Derive from
4721 (ppc_ravenscar_powerpc_ops::fetch_registers)
4722 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
4723 (ppc_ravenscar_powerpc_ops): Redefine.
4724 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
4725 (ppc_ravenscar_e500_ops::fetch_registers)
4726 (ppc_ravenscar_e500_ops::store_registers): Now methods.
4727 (ppc_ravenscar_e500_ops): Redefine.
4728 * aarch64-ravenscar-thread.c
4729 (aarch64_ravenscar_generic_prepare_to_store): Remove.
4730 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
4731 (aarch64_ravenscar_fetch_registers)
4732 (aarch64_ravenscar_store_registers): Now methods.
4733 (aarch64_ravenscar_ops): Redefine.
4735 2019-02-15 Tom Tromey <tromey@adacore.com>
4737 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
4738 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4739 (ravenscar_thread_target::stopped_by_watchpoint)
4740 (ravenscar_thread_target::stopped_data_address)
4741 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
4743 2019-02-15 Tom Tromey <tromey@adacore.com>
4745 * ravenscar-thread.c: Fix some typos.
4747 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4748 Tom Tromey <tromey@adacore.com>
4750 * ada-lang.c (ada_exception_sal): Change addr_string to a
4752 (create_ada_exception_catchpoint): Update.
4754 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4755 Tom Tromey <tromey@adacore.com>
4757 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
4758 (bp_location_ops): Remove.
4759 (base_breakpoint_allocate_location): Update.
4760 (free_bp_location): Update.
4761 * ada-lang.c (class ada_catchpoint_location)
4762 <ada_catchpoint_location>: Remove ops parameter.
4763 (ada_catchpoint_location_dtor): Remove.
4764 (ada_catchpoint_location_ops): Remove.
4765 (allocate_location_exception): Update.
4766 * breakpoint.h (struct bp_location_ops): Remove.
4767 (class bp_location) <bp_location>: Remove bp_location_ops
4769 <~bp_location>: Add destructor.
4772 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
4773 Pedro Alves <palves@redhat.com>
4775 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
4778 2019-02-14 David Michael <fedora.dm0@gmail.com>
4779 Samuel Thibault <samuel.thibault@gnu.org>
4780 Thomas Schwinge <thomas@codesourcery.com>
4782 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
4783 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
4785 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
4787 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
4788 (check_empty): Use "const char *".
4790 * gnu-nat.c (gnu_nat_target::detach): Instead of
4791 'detach_inferior (pid)' call
4792 'detach_inferior (find_inferior_pid (pid))'.
4794 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
4795 'nat/fork-inferior.o'.
4796 * gnu-nat.c: #include "nat/fork-inferior.h".
4798 * gnu-nat.c (gnu_nat_target::detach): Instead of
4799 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
4800 * gnu-nat.h: #include "inf-child.h".
4801 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
4802 'i386_gnu_nat_target::fetch_registers'.
4803 (gnu_store_registers): Rename/move to
4804 'i386_gnu_nat_target::store_registers'.
4806 * config/i386/nm-i386gnu.h: Don't "#include" any files.
4807 * gnu-nat.h (mach_thread_info): New function.
4808 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
4810 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
4812 2019-02-14 Frederic Konrad <konrad@adacore.com>
4814 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
4816 2019-02-14 Joel Brobecker <brobecker@adacore.com>
4818 * windows-nat.c (windows_add_thread): Add new parameter
4819 "main_thread_p" with default value set to false. Update
4820 function documentation as well as all callers.
4821 (windows_delete_thread): Likewise.
4822 (fake_create_process): Update call to windows_add_thread.
4823 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
4824 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
4825 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
4826 call to windows_delete_thread.
4828 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
4830 * MAINTAINERS: Add Andrew Burgess as global maintainer.
4832 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4834 * symfile.c (find_separate_debug_file): Use canonical path of
4835 sysroot with child_path instead of gdb_sysroot if it is valid.
4837 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4839 * symfile.c (find_separate_debug_file): Use child_path to
4840 determine if an object file is under a sysroot.
4842 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4844 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4845 unittests/child-path-selftests.c.
4846 * common/pathstuff.c (child_path): New function.
4847 * common/pathstuff.h (child_path): New prototype.
4848 * unittests/child-path-selftests.c: New file.
4850 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4852 * symfile.c (find_separate_debug_file): Look for separate debug
4853 files in debug directories under the sysroot.
4855 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4857 * symtab.h (struct minimal_symbol data_p): New const method.
4858 (struct minimal_symbol text_p): Likewise.
4859 * symtab.c (output_source_filename): Use file name style
4861 (print_symbol_info): Likewise.
4862 (print_msymbol_info): Use address style to print addresses.
4863 Use function name style to print executable text symbols.
4864 (expand_symtab_containing_pc): Use data_p.
4865 (find_pc_sect_compunit_symtab): Likewise.
4867 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4869 * breakpoint.c (describe_other_breakpoints): Use address style
4871 (say_where): Likewise.
4873 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4875 * ada-typeprint.c (print_func_type): Print function name
4876 style to print function name.
4877 * c-typeprint.c (c_print_type_1): Likewise.
4879 2019-02-11 Alan Hayward <alan.hayward@arm.com>
4881 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
4884 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4886 * c-exp.y (direct_abs_decl): Use emplace_back to record the
4889 2019-02-10 Joel Brobecker <brobecker@adacore.com>
4891 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
4892 TYPE_CODE_REF types.
4894 2019-02-08 Jim Wilson <jimw@sifive.com>
4896 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
4897 (riscv_linux_fregset): New.
4898 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
4900 2019-02-07 Tom Tromey <tom@tromey.com>
4902 * thread.c (thread_cancel_execution_command): Update.
4903 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
4905 (struct thread_fsm_ops): Remove.
4906 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
4907 (thread_fsm_should_stop, thread_fsm_return_value)
4908 (thread_fsm_set_finished, thread_fsm_finished_p)
4909 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
4911 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
4912 * infrun.c (clear_proceed_status_thread)
4913 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
4914 (print_stop_event): Update.
4915 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
4917 (step_command_fsm_ops): Remove.
4918 (new_step_command_fsm): Remove.
4920 (step_command_fsm::should_stop): Rename from
4921 step_command_fsm_should_stop.
4922 (step_command_fsm::clean_up): Rename from
4923 step_command_fsm_clean_up.
4924 (step_command_fsm::do_async_reply_reason): Rename from
4925 step_command_fsm_async_reply_reason.
4926 (struct until_next_fsm): Inherit from thread_fsm. Add
4928 (until_next_fsm_ops): Remove.
4929 (new_until_next_fsm): Remove.
4930 (until_next_fsm::should_stop): Rename from
4931 until_next_fsm_should_stop.
4932 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
4933 (until_next_fsm::do_async_reply_reason): Rename from
4934 until_next_fsm_async_reply_reason.
4935 (struct finish_command_fsm): Inherit from thread_fsm. Add
4936 constructor. Change type of breakpoint.
4937 (finish_command_fsm_ops): Remove.
4938 (new_finish_command_fsm): Remove.
4939 (finish_command_fsm::should_stop): Rename from
4940 finish_command_fsm_should_stop.
4941 (finish_command_fsm::clean_up): Rename from
4942 finish_command_fsm_clean_up.
4943 (finish_command_fsm::return_value): Rename from
4944 finish_command_fsm_return_value.
4945 (finish_command_fsm::do_async_reply_reason): Rename from
4946 finish_command_fsm_async_reply_reason.
4947 (finish_command): Update.
4948 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
4950 (call_thread_fsm_ops): Remove.
4951 (call_thread_fsm::call_thread_fsm): Rename from
4952 new_call_thread_fsm.
4953 (call_thread_fsm::should_stop): Rename from
4954 call_thread_fsm_should_stop.
4955 (call_thread_fsm::should_notify_stop): Rename from
4956 call_thread_fsm_should_notify_stop.
4957 (run_inferior_call, call_function_by_hand_dummy): Update.
4958 * cli/cli-interp.c (should_print_stop_to_console): Update.
4959 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
4960 Add constructor. Change type of location_breakpoint,
4962 (until_break_fsm_ops): Remove.
4963 (new_until_break_fsm): Remove.
4964 (until_break_fsm::should_stop): Rename from
4965 until_break_fsm_should_stop.
4966 (until_break_fsm::clean_up): Rename from
4967 until_break_fsm_clean_up.
4968 (until_break_fsm::do_async_reply_reason): Rename from
4969 until_break_fsm_async_reply_reason.
4970 (until_break_command): Update.
4971 * thread-fsm.c: Remove.
4972 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
4974 2019-02-07 Tom Tromey <tom@tromey.com>
4976 * yy-remap.h: Add include guard.
4977 * xtensa-tdep.h: Add include guard.
4978 * xcoffread.h: Rename include guard.
4979 * varobj-iter.h: Add include guard.
4980 * tui/tui.h: Rename include guard.
4981 * tui/tui-winsource.h: Rename include guard.
4982 * tui/tui-wingeneral.h: Rename include guard.
4983 * tui/tui-windata.h: Rename include guard.
4984 * tui/tui-win.h: Rename include guard.
4985 * tui/tui-stack.h: Rename include guard.
4986 * tui/tui-source.h: Rename include guard.
4987 * tui/tui-regs.h: Rename include guard.
4988 * tui/tui-out.h: Rename include guard.
4989 * tui/tui-layout.h: Rename include guard.
4990 * tui/tui-io.h: Rename include guard.
4991 * tui/tui-hooks.h: Rename include guard.
4992 * tui/tui-file.h: Rename include guard.
4993 * tui/tui-disasm.h: Rename include guard.
4994 * tui/tui-data.h: Rename include guard.
4995 * tui/tui-command.h: Rename include guard.
4996 * tic6x-tdep.h: Add include guard.
4997 * target/waitstatus.h: Rename include guard.
4998 * target/wait.h: Rename include guard.
4999 * target/target.h: Rename include guard.
5000 * target/resume.h: Rename include guard.
5001 * target-float.h: Rename include guard.
5002 * stabsread.h: Add include guard.
5003 * rs6000-tdep.h: Add include guard.
5004 * riscv-fbsd-tdep.h: Add include guard.
5005 * regformats/regdef.h: Rename include guard.
5006 * record.h: Rename include guard.
5007 * python/python.h: Rename include guard.
5008 * python/python-internal.h: Rename include guard.
5009 * python/py-stopevent.h: Rename include guard.
5010 * python/py-ref.h: Rename include guard.
5011 * python/py-record.h: Rename include guard.
5012 * python/py-record-full.h: Rename include guard.
5013 * python/py-record-btrace.h: Rename include guard.
5014 * python/py-instruction.h: Rename include guard.
5015 * python/py-events.h: Rename include guard.
5016 * python/py-event.h: Rename include guard.
5017 * procfs.h: Add include guard.
5018 * proc-utils.h: Add include guard.
5019 * p-lang.h: Add include guard.
5020 * or1k-tdep.h: Rename include guard.
5021 * observable.h: Rename include guard.
5022 * nto-tdep.h: Rename include guard.
5023 * nat/x86-linux.h: Rename include guard.
5024 * nat/x86-linux-dregs.h: Rename include guard.
5025 * nat/x86-gcc-cpuid.h: Add include guard.
5026 * nat/x86-dregs.h: Rename include guard.
5027 * nat/x86-cpuid.h: Rename include guard.
5028 * nat/ppc-linux.h: Rename include guard.
5029 * nat/mips-linux-watch.h: Rename include guard.
5030 * nat/linux-waitpid.h: Rename include guard.
5031 * nat/linux-ptrace.h: Rename include guard.
5032 * nat/linux-procfs.h: Rename include guard.
5033 * nat/linux-osdata.h: Rename include guard.
5034 * nat/linux-nat.h: Rename include guard.
5035 * nat/linux-namespaces.h: Rename include guard.
5036 * nat/linux-btrace.h: Rename include guard.
5037 * nat/glibc_thread_db.h: Rename include guard.
5038 * nat/gdb_thread_db.h: Rename include guard.
5039 * nat/gdb_ptrace.h: Rename include guard.
5040 * nat/fork-inferior.h: Rename include guard.
5041 * nat/amd64-linux-siginfo.h: Rename include guard.
5042 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
5043 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
5044 * nat/aarch64-linux.h: Rename include guard.
5045 * nat/aarch64-linux-hw-point.h: Rename include guard.
5046 * mn10300-tdep.h: Add include guard.
5047 * mips-linux-tdep.h: Add include guard.
5048 * mi/mi-parse.h: Rename include guard.
5049 * mi/mi-out.h: Rename include guard.
5050 * mi/mi-main.h: Rename include guard.
5051 * mi/mi-interp.h: Rename include guard.
5052 * mi/mi-getopt.h: Rename include guard.
5053 * mi/mi-console.h: Rename include guard.
5054 * mi/mi-common.h: Rename include guard.
5055 * mi/mi-cmds.h: Rename include guard.
5056 * mi/mi-cmd-break.h: Rename include guard.
5057 * m2-lang.h: Add include guard.
5058 * location.h: Rename include guard.
5059 * linux-record.h: Rename include guard.
5060 * linux-nat.h: Add include guard.
5061 * linux-fork.h: Add include guard.
5062 * i386-darwin-tdep.h: Rename include guard.
5063 * hppa-linux-offsets.h: Add include guard.
5064 * guile/guile.h: Rename include guard.
5065 * guile/guile-internal.h: Rename include guard.
5066 * gnu-nat.h: Rename include guard.
5067 * gdb-stabs.h: Rename include guard.
5068 * frv-tdep.h: Add include guard.
5069 * f-lang.h: Add include guard.
5070 * event-loop.h: Add include guard.
5071 * darwin-nat.h: Rename include guard.
5072 * cp-abi.h: Rename include guard.
5073 * config/sparc/nm-sol2.h: Rename include guard.
5074 * config/nm-nto.h: Rename include guard.
5075 * config/nm-linux.h: Add include guard.
5076 * config/i386/nm-i386gnu.h: Rename include guard.
5077 * config/djgpp/nl_types.h: Rename include guard.
5078 * config/djgpp/langinfo.h: Rename include guard.
5079 * compile/gcc-cp-plugin.h: Add include guard.
5080 * compile/gcc-c-plugin.h: Add include guard.
5081 * compile/compile.h: Rename include guard.
5082 * compile/compile-object-run.h: Rename include guard.
5083 * compile/compile-object-load.h: Rename include guard.
5084 * compile/compile-internal.h: Rename include guard.
5085 * compile/compile-cplus.h: Rename include guard.
5086 * compile/compile-c.h: Rename include guard.
5087 * common/xml-utils.h: Rename include guard.
5088 * common/x86-xstate.h: Rename include guard.
5089 * common/version.h: Rename include guard.
5090 * common/vec.h: Rename include guard.
5091 * common/tdesc.h: Rename include guard.
5092 * common/selftest.h: Rename include guard.
5093 * common/scoped_restore.h: Rename include guard.
5094 * common/scoped_mmap.h: Rename include guard.
5095 * common/scoped_fd.h: Rename include guard.
5096 * common/safe-iterator.h: Rename include guard.
5097 * common/run-time-clock.h: Rename include guard.
5098 * common/refcounted-object.h: Rename include guard.
5099 * common/queue.h: Rename include guard.
5100 * common/ptid.h: Rename include guard.
5101 * common/print-utils.h: Rename include guard.
5102 * common/preprocessor.h: Rename include guard.
5103 * common/pathstuff.h: Rename include guard.
5104 * common/observable.h: Rename include guard.
5105 * common/netstuff.h: Rename include guard.
5106 * common/job-control.h: Rename include guard.
5107 * common/host-defs.h: Rename include guard.
5108 * common/gdb_wait.h: Rename include guard.
5109 * common/gdb_vecs.h: Rename include guard.
5110 * common/gdb_unlinker.h: Rename include guard.
5111 * common/gdb_unique_ptr.h: Rename include guard.
5112 * common/gdb_tilde_expand.h: Rename include guard.
5113 * common/gdb_sys_time.h: Rename include guard.
5114 * common/gdb_string_view.h: Rename include guard.
5115 * common/gdb_splay_tree.h: Rename include guard.
5116 * common/gdb_setjmp.h: Rename include guard.
5117 * common/gdb_ref_ptr.h: Rename include guard.
5118 * common/gdb_optional.h: Rename include guard.
5119 * common/gdb_locale.h: Rename include guard.
5120 * common/gdb_assert.h: Rename include guard.
5121 * common/filtered-iterator.h: Rename include guard.
5122 * common/filestuff.h: Rename include guard.
5123 * common/fileio.h: Rename include guard.
5124 * common/environ.h: Rename include guard.
5125 * common/common-utils.h: Rename include guard.
5126 * common/common-types.h: Rename include guard.
5127 * common/common-regcache.h: Rename include guard.
5128 * common/common-inferior.h: Rename include guard.
5129 * common/common-gdbthread.h: Rename include guard.
5130 * common/common-exceptions.h: Rename include guard.
5131 * common/common-defs.h: Rename include guard.
5132 * common/common-debug.h: Rename include guard.
5133 * common/cleanups.h: Rename include guard.
5134 * common/buffer.h: Rename include guard.
5135 * common/btrace-common.h: Rename include guard.
5136 * common/break-common.h: Rename include guard.
5137 * cli/cli-utils.h: Rename include guard.
5138 * cli/cli-style.h: Rename include guard.
5139 * cli/cli-setshow.h: Rename include guard.
5140 * cli/cli-script.h: Rename include guard.
5141 * cli/cli-interp.h: Rename include guard.
5142 * cli/cli-decode.h: Rename include guard.
5143 * cli/cli-cmds.h: Rename include guard.
5144 * charset-list.h: Add include guard.
5145 * buildsym-legacy.h: Rename include guard.
5146 * bfin-tdep.h: Add include guard.
5147 * ax.h: Rename include guard.
5148 * arm-linux-tdep.h: Add include guard.
5149 * arm-fbsd-tdep.h: Add include guard.
5150 * arch/xtensa.h: Rename include guard.
5151 * arch/tic6x.h: Add include guard.
5152 * arch/i386.h: Add include guard.
5153 * arch/arm.h: Rename include guard.
5154 * arch/arm-linux.h: Rename include guard.
5155 * arch/arm-get-next-pcs.h: Rename include guard.
5156 * arch/amd64.h: Add include guard.
5157 * arch/aarch64-insn.h: Rename include guard.
5158 * arch-utils.h: Rename include guard.
5159 * annotate.h: Add include guard.
5160 * amd64-darwin-tdep.h: Rename include guard.
5161 * aarch64-linux-tdep.h: Add include guard.
5162 * aarch64-fbsd-tdep.h: Add include guard.
5163 * aarch32-linux-nat.h: Add include guard.
5165 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5167 * macrotab.c (macro_define_internal): New function that
5168 factorizes macro_define_object_internal and macro_define_function
5170 (macro_define_object_internal): Use macro_define_internal.
5171 (macro_define_function): Likewise.
5173 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5175 * macrocmd.c (extract_identifier): Return
5176 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
5179 2019-02-06 John Baldwin <jhb@FreeBSD.org>
5181 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
5183 2019-02-05 Tom Tromey <tom@tromey.com>
5185 * target.c (target_stack::unpush): Move assertion earlier.
5187 2019-01-30 Tom Tromey <tom@tromey.com>
5190 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
5191 (gdbpy_parse_and_eval): Likewise.
5192 * python/python-internal.h (gdbpy_allow_threads): New class.
5194 2019-01-28 John Baldwin <jhb@FreeBSD.org>
5196 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
5197 (aarch64_fbsd_fpregmap): Move earlier.
5198 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
5199 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5200 instead of individual calls to trad_frame_set_reg_addr.
5201 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
5203 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
5204 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5205 instead of individual calls to trad_frame_set_reg_addr.
5207 2019-01-28 Alan Hayward <alan.hayward@arm.com>
5209 * CONTRIBUTE: Replace contribution list with wiki link.
5211 2019-01-25 Tom Tromey <tom@tromey.com>
5213 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
5215 2019-01-25 Tom Tromey <tom@tromey.com>
5217 * xtensa-linux-nat.c: Fix common/ includes.
5218 * xml-support.h: Fix common/ includes.
5219 * xml-support.c: Fix common/ includes.
5220 * x86-linux-nat.c: Fix common/ includes.
5221 * windows-nat.c: Fix common/ includes.
5222 * varobj.h: Fix common/ includes.
5223 * varobj.c: Fix common/ includes.
5224 * value.c: Fix common/ includes.
5225 * valops.c: Fix common/ includes.
5226 * utils.c: Fix common/ includes.
5227 * unittests/xml-utils-selftests.c: Fix common/ includes.
5228 * unittests/utils-selftests.c: Fix common/ includes.
5229 * unittests/unpack-selftests.c: Fix common/ includes.
5230 * unittests/tracepoint-selftests.c: Fix common/ includes.
5231 * unittests/style-selftests.c: Fix common/ includes.
5232 * unittests/string_view-selftests.c: Fix common/ includes.
5233 * unittests/scoped_restore-selftests.c: Fix common/ includes.
5234 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
5235 * unittests/scoped_fd-selftests.c: Fix common/ includes.
5236 * unittests/rsp-low-selftests.c: Fix common/ includes.
5237 * unittests/parse-connection-spec-selftests.c: Fix common/
5239 * unittests/optional-selftests.c: Fix common/ includes.
5240 * unittests/offset-type-selftests.c: Fix common/ includes.
5241 * unittests/observable-selftests.c: Fix common/ includes.
5242 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
5243 * unittests/memrange-selftests.c: Fix common/ includes.
5244 * unittests/memory-map-selftests.c: Fix common/ includes.
5245 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
5246 * unittests/function-view-selftests.c: Fix common/ includes.
5247 * unittests/environ-selftests.c: Fix common/ includes.
5248 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
5249 * unittests/common-utils-selftests.c: Fix common/ includes.
5250 * unittests/cli-utils-selftests.c: Fix common/ includes.
5251 * unittests/array-view-selftests.c: Fix common/ includes.
5252 * ui-file.c: Fix common/ includes.
5253 * tui/tui-io.c: Fix common/ includes.
5254 * tracepoint.h: Fix common/ includes.
5255 * tracepoint.c: Fix common/ includes.
5256 * tracefile-tfile.c: Fix common/ includes.
5257 * top.h: Fix common/ includes.
5258 * top.c: Fix common/ includes.
5259 * thread.c: Fix common/ includes.
5260 * target/waitstatus.h: Fix common/ includes.
5261 * target/waitstatus.c: Fix common/ includes.
5262 * target.h: Fix common/ includes.
5263 * target.c: Fix common/ includes.
5264 * target-memory.c: Fix common/ includes.
5265 * target-descriptions.c: Fix common/ includes.
5266 * symtab.h: Fix common/ includes.
5267 * symfile.c: Fix common/ includes.
5268 * stap-probe.c: Fix common/ includes.
5269 * spu-linux-nat.c: Fix common/ includes.
5270 * sparc-nat.c: Fix common/ includes.
5271 * source.c: Fix common/ includes.
5272 * solib.c: Fix common/ includes.
5273 * solib-target.c: Fix common/ includes.
5274 * ser-unix.c: Fix common/ includes.
5275 * ser-tcp.c: Fix common/ includes.
5276 * ser-pipe.c: Fix common/ includes.
5277 * ser-base.c: Fix common/ includes.
5278 * selftest-arch.c: Fix common/ includes.
5279 * s12z-tdep.c: Fix common/ includes.
5280 * rust-exp.y: Fix common/ includes.
5281 * rs6000-aix-tdep.c: Fix common/ includes.
5282 * riscv-tdep.c: Fix common/ includes.
5283 * remote.c: Fix common/ includes.
5284 * remote-notif.h: Fix common/ includes.
5285 * remote-fileio.h: Fix common/ includes.
5286 * remote-fileio.c: Fix common/ includes.
5287 * regcache.h: Fix common/ includes.
5288 * regcache.c: Fix common/ includes.
5289 * record-btrace.c: Fix common/ includes.
5290 * python/python.c: Fix common/ includes.
5291 * python/py-type.c: Fix common/ includes.
5292 * python/py-inferior.c: Fix common/ includes.
5293 * progspace.h: Fix common/ includes.
5294 * producer.c: Fix common/ includes.
5295 * procfs.c: Fix common/ includes.
5296 * proc-api.c: Fix common/ includes.
5297 * printcmd.c: Fix common/ includes.
5298 * ppc-linux-nat.c: Fix common/ includes.
5299 * parser-defs.h: Fix common/ includes.
5300 * osdata.c: Fix common/ includes.
5301 * obsd-nat.c: Fix common/ includes.
5302 * nat/x86-linux.c: Fix common/ includes.
5303 * nat/x86-linux-dregs.c: Fix common/ includes.
5304 * nat/x86-dregs.h: Fix common/ includes.
5305 * nat/x86-dregs.c: Fix common/ includes.
5306 * nat/ppc-linux.c: Fix common/ includes.
5307 * nat/mips-linux-watch.h: Fix common/ includes.
5308 * nat/mips-linux-watch.c: Fix common/ includes.
5309 * nat/linux-waitpid.c: Fix common/ includes.
5310 * nat/linux-ptrace.h: Fix common/ includes.
5311 * nat/linux-ptrace.c: Fix common/ includes.
5312 * nat/linux-procfs.c: Fix common/ includes.
5313 * nat/linux-personality.c: Fix common/ includes.
5314 * nat/linux-osdata.c: Fix common/ includes.
5315 * nat/linux-namespaces.c: Fix common/ includes.
5316 * nat/linux-btrace.h: Fix common/ includes.
5317 * nat/linux-btrace.c: Fix common/ includes.
5318 * nat/fork-inferior.c: Fix common/ includes.
5319 * nat/amd64-linux-siginfo.c: Fix common/ includes.
5320 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
5321 * nat/aarch64-linux.c: Fix common/ includes.
5322 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
5323 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
5324 * namespace.h: Fix common/ includes.
5325 * mips-linux-tdep.c: Fix common/ includes.
5326 * minsyms.c: Fix common/ includes.
5327 * mi/mi-parse.h: Fix common/ includes.
5328 * mi/mi-main.c: Fix common/ includes.
5329 * mi/mi-cmd-env.c: Fix common/ includes.
5330 * memrange.h: Fix common/ includes.
5331 * memattr.c: Fix common/ includes.
5332 * maint.h: Fix common/ includes.
5333 * maint.c: Fix common/ includes.
5334 * main.c: Fix common/ includes.
5335 * machoread.c: Fix common/ includes.
5336 * location.c: Fix common/ includes.
5337 * linux-thread-db.c: Fix common/ includes.
5338 * linux-nat.c: Fix common/ includes.
5339 * linux-fork.c: Fix common/ includes.
5340 * inline-frame.c: Fix common/ includes.
5341 * infrun.c: Fix common/ includes.
5342 * inflow.c: Fix common/ includes.
5343 * inferior.h: Fix common/ includes.
5344 * inferior.c: Fix common/ includes.
5345 * infcmd.c: Fix common/ includes.
5346 * inf-ptrace.c: Fix common/ includes.
5347 * inf-child.c: Fix common/ includes.
5348 * ia64-linux-nat.c: Fix common/ includes.
5349 * i387-tdep.c: Fix common/ includes.
5350 * i386-tdep.c: Fix common/ includes.
5351 * i386-linux-tdep.c: Fix common/ includes.
5352 * i386-linux-nat.c: Fix common/ includes.
5353 * i386-go32-tdep.c: Fix common/ includes.
5354 * i386-fbsd-tdep.c: Fix common/ includes.
5355 * i386-fbsd-nat.c: Fix common/ includes.
5356 * guile/scm-type.c: Fix common/ includes.
5357 * guile/guile.c: Fix common/ includes.
5358 * go32-nat.c: Fix common/ includes.
5359 * gnu-nat.c: Fix common/ includes.
5360 * gdbthread.h: Fix common/ includes.
5361 * gdbarch-selftests.c: Fix common/ includes.
5362 * gdb_usleep.c: Fix common/ includes.
5363 * gdb_select.h: Fix common/ includes.
5364 * gdb_bfd.c: Fix common/ includes.
5365 * gcore.c: Fix common/ includes.
5366 * fork-child.c: Fix common/ includes.
5367 * findvar.c: Fix common/ includes.
5368 * fbsd-nat.c: Fix common/ includes.
5369 * event-top.c: Fix common/ includes.
5370 * event-loop.c: Fix common/ includes.
5371 * dwarf2read.c: Fix common/ includes.
5372 * dwarf2loc.c: Fix common/ includes.
5373 * dwarf2-frame.c: Fix common/ includes.
5374 * dwarf-index-cache.c: Fix common/ includes.
5375 * dtrace-probe.c: Fix common/ includes.
5376 * disasm-selftests.c: Fix common/ includes.
5377 * defs.h: Fix common/ includes.
5378 * csky-tdep.c: Fix common/ includes.
5379 * cp-valprint.c: Fix common/ includes.
5380 * cp-support.h: Fix common/ includes.
5381 * cp-support.c: Fix common/ includes.
5382 * corelow.c: Fix common/ includes.
5383 * completer.h: Fix common/ includes.
5384 * completer.c: Fix common/ includes.
5385 * compile/compile.c: Fix common/ includes.
5386 * compile/compile-loc2c.c: Fix common/ includes.
5387 * compile/compile-cplus-types.c: Fix common/ includes.
5388 * compile/compile-cplus-symbols.c: Fix common/ includes.
5389 * command.h: Fix common/ includes.
5390 * cli/cli-dump.c: Fix common/ includes.
5391 * cli/cli-cmds.c: Fix common/ includes.
5392 * charset.c: Fix common/ includes.
5393 * build-id.c: Fix common/ includes.
5394 * btrace.h: Fix common/ includes.
5395 * btrace.c: Fix common/ includes.
5396 * breakpoint.h: Fix common/ includes.
5397 * breakpoint.c: Fix common/ includes.
5399 (enum agent_op): Fix common/ includes.
5400 * ax-general.c (struct aop_map): Fix common/ includes.
5401 * ax-gdb.c: Fix common/ includes.
5402 * auxv.c: Fix common/ includes.
5403 * auto-load.c: Fix common/ includes.
5404 * arm-tdep.c: Fix common/ includes.
5405 * arch/riscv.c: Fix common/ includes.
5406 * arch/ppc-linux-common.c: Fix common/ includes.
5407 * arch/i386.c: Fix common/ includes.
5408 * arch/arm.c: Fix common/ includes.
5409 * arch/arm-linux.c: Fix common/ includes.
5410 * arch/arm-get-next-pcs.c: Fix common/ includes.
5411 * arch/amd64.c: Fix common/ includes.
5412 * arch/aarch64.c: Fix common/ includes.
5413 * arch/aarch64-insn.c: Fix common/ includes.
5414 * arch-utils.c: Fix common/ includes.
5415 * amd64-windows-tdep.c: Fix common/ includes.
5416 * amd64-tdep.c: Fix common/ includes.
5417 * amd64-sol2-tdep.c: Fix common/ includes.
5418 * amd64-obsd-tdep.c: Fix common/ includes.
5419 * amd64-nbsd-tdep.c: Fix common/ includes.
5420 * amd64-linux-tdep.c: Fix common/ includes.
5421 * amd64-linux-nat.c: Fix common/ includes.
5422 * amd64-fbsd-tdep.c: Fix common/ includes.
5423 * amd64-fbsd-nat.c: Fix common/ includes.
5424 * amd64-dicos-tdep.c: Fix common/ includes.
5425 * amd64-darwin-tdep.c: Fix common/ includes.
5426 * agent.c: Fix common/ includes.
5427 * ada-lang.h: Fix common/ includes.
5428 * ada-lang.c: Fix common/ includes.
5429 * aarch64-tdep.c: Fix common/ includes.
5431 2019-01-25 Tom Tromey <tom@tromey.com>
5433 * common/create-version.sh: Use common/version.h.
5435 2019-01-24 Pedro Alves <palves@redhat.com>
5437 * infrun.c (signal_stop, signal_print, signal_program)
5438 (signal_catch, signal_pass): Now arrays instead of pointers.
5439 (update_signals_program_target, do_target_resume)
5440 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
5441 * linux-nat.c (linux_nat_target::pass_signals)
5442 (linux_nat_target::create_inferior, linux_nat_target::attach):
5444 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
5445 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
5446 * procfs.c (procfs_target::pass_signals): Adjust.
5447 * record-full.c (record_full_target::resume): Adjust.
5448 * remote.c (remote_target::pass_signals)
5449 (remote_target::program_signals): Adjust.
5450 * target-debug.h (target_debug_print_signals): Now takes a
5451 gdb::array_view as parameter. Adjust.
5452 * target.h (target_ops) <pass_signals, program_signals>: Replace
5453 pointer and length parameters with gdb::array_view.
5454 (target_pass_signals, target_program_signals): Likewise.
5455 * target-delegates.c: Regenerate.
5457 2019-01-24 Pedro Alves <palves@redhat.com>
5459 * common/forward-scope-exit.h
5460 (forward_scope_exit::forward_scope_exit): Pass arguments to
5461 m_bind_function directly, instead of creating a std::bind and
5464 2019-01-24 Alan Hayward <alan.hayward@arm.com>
5466 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5468 (pass_in_v_vfp_candidate): Likewise.
5470 2019-01-23 Tom Tromey <tom@tromey.com>
5471 Pedro Alves <palves@redhat.com>
5473 * regcache.c (class regcache_invalidator): Remove.
5474 (regcache::raw_write): Use make_scope_exit.
5476 2019-01-23 Tom Tromey <tom@tromey.com>
5478 * ui-out.h (class ui_out_emit_type): Update comment.
5480 2019-01-23 Tom Tromey <tom@tromey.com>
5482 * infrun.c (fetch_inferior_event): Update comment.
5484 2019-01-23 Tom Tromey <tom@tromey.com>
5485 Pedro Alves <palves@redhat.com>
5487 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
5489 (fetch_inferior_event): Use SCOPE_EXIT.
5492 2019-01-23 Tom Tromey <tom@tromey.com>
5493 Pedro Alves <palves@redhat.com>
5495 * infrun.c (disable_thread_events): Delete.
5496 (stop_all_threads): Use SCOPE_EXIT.
5498 2019-01-23 Tom Tromey <tom@tromey.com>
5499 Pedro Alves <palves@redhat.com>
5501 * symfile.c: Include forward-scope-exit.h.
5502 (clear_symtab_users_cleanup): Replace forward declaration with
5503 a FORWARD_SCOPE_EXIT.
5504 (syms_from_objfile_1): Use the forward_scope_exit and
5505 gdb::optional instead of cleanup_function.
5506 (reread_symbols): Use the forward_scope_exit instead of
5508 (clear_symtab_users_cleanup): Remove function.
5510 2019-01-23 Tom Tromey <tom@tromey.com>
5511 Pedro Alves <palves@redhat.com>
5513 * linux-nat.c: Include scope-exit.h.
5514 (cleanup_target_stop): Remove.
5515 (linux_nat_target::static_tracepoint_markers_by_strid): Use
5518 2019-01-23 Tom Tromey <tom@tromey.com>
5519 Pedro Alves <palves@redhat.com>
5521 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
5522 (call_function_by_hand_dummy): Use SCOPE_EXIT.
5524 2019-01-23 Tom Tromey <tom@tromey.com>
5525 Andrew Burgess <andrew.burgess@embecosm.com>
5526 Pedro Alves <palves@redhat.com>
5528 * infrun.c (fetch_inferior_event): Use scope_exit.
5529 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
5530 * top.c (execute_command): Use scope_exit.
5531 * breakpoint.c (bpstat_do_actions): Use scope_exit.
5532 * utils.c (do_bpstat_clear_actions_cleanup)
5533 (make_bpstat_clear_actions_cleanup): Remove.
5535 2019-01-23 Tom Tromey <tom@tromey.com>
5536 Pedro Alves <palves@redhat.com>
5538 * infrun.c: Include "common/scope-exit.h"
5539 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
5540 (wait_for_inferior): Use SCOPE_EXIT.
5541 (fetch_inferior_event): Use scope_exit.
5543 2019-01-23 Tom Tromey <tom@tromey.com>
5544 Pedro Alves <palves@redhat.com>
5546 * breakpoint.c (create_breakpoint): Remove cleanup.
5548 2019-01-23 Tom Tromey <tom@tromey.com>
5549 Andrew Burgess <andrew.burgess@embecosm.com>
5550 Pedro Alves <palves@redhat.com>
5552 2019-01-23 Pedro Alves <palves@redhat.com>
5554 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
5556 2019-01-23 Pedro Alves <palves@redhat.com>
5557 Andrew Burgess <andrew.burgess@embecosm.com>
5559 * gdbthread.h: Include "common/forward-scope-exit.h".
5560 (scoped_finish_thread_state): Redefine custom class in terms of
5563 2019-01-23 Pedro Alves <palves@redhat.com>
5564 Andrew Burgess <andrew.burgess@embecosm.com>
5566 * common/forward-scope-exit.h: New file.
5568 2019-01-23 Pedro Alves <palves@redhat.com>
5569 Andrew Burgess <andrew.burgess@embecosm.com>
5570 Tom Tromey <tom@tromey.com>
5572 * common/scope-exit.h: New file.
5574 2019-01-23 Pedro Alves <palves@redhat.com>
5576 * common/preprocessor.h (ESC): Rename to ...
5577 (ESC_PARENS): ... this.
5578 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
5579 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
5581 2019-01-23 Tom Tromey <tom@tromey.com>
5583 * language.h (class scoped_switch_to_sym_language_if_auto):
5584 Initialize m_lang in both cases.
5586 2019-01-23 Alan Hayward <alan.hayward@arm.com>
5588 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
5591 2019-01-22 Tom Tromey <tom@tromey.com>
5593 * corelow.c: Do not include sys/file.h.
5595 2019-01-22 Tom Tromey <tom@tromey.com>
5597 * tui/tui-wingeneral.h: Include gdb_curses.h.
5599 2019-01-22 Tom Tromey <tom@tromey.com>
5601 * source-cache.h (class source_cache) <get_source_lines,
5602 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
5604 2019-01-22 Tom Tromey <tom@tromey.com>
5606 * remote-fileio.h (struct remote_target): Declare.
5608 2019-01-22 Tom Tromey <tom@tromey.com>
5610 * python/py-arch.c: Do not include py-ref.h.
5611 * python/py-bpevent.c: Do not include py-ref.h.
5612 * python/py-cmd.c: Do not include py-ref.h.
5613 * python/py-continueevent.c: Do not include py-ref.h.
5614 * python/py-event.h: Do not include py-ref.h.
5615 * python/py-evtregistry.c: Do not include py-ref.h.
5616 * python/py-finishbreakpoint.c: Do not include py-ref.h.
5617 * python/py-frame.c: Do not include py-ref.h.
5618 * python/py-framefilter.c: Do not include py-ref.h.
5619 * python/py-function.c: Do not include py-ref.h.
5620 * python/py-infevents.c: Do not include py-ref.h.
5621 * python/py-linetable.c: Do not include py-ref.h.
5622 * python/py-objfile.c: Do not include py-ref.h.
5623 * python/py-param.c: Do not include py-ref.h.
5624 * python/py-prettyprint.c: Do not include py-ref.h.
5625 * python/py-progspace.c: Do not include py-ref.h.
5626 * python/py-symbol.c: Do not include py-ref.h.
5627 * python/py-symtab.c: Do not include py-ref.h.
5628 * python/py-type.c: Do not include py-ref.h.
5629 * python/py-unwind.c: Do not include py-ref.h.
5630 * python/py-utils.c: Do not include py-ref.h.
5631 * python/py-value.c: Do not include py-ref.h.
5632 * python/py-varobj.c: Do not include py-ref.h.
5633 * python/py-xmethods.c: Do not include py-ref.h.
5634 * python/python.c: Do not include py-ref.h.
5635 * varobj.c: Do not include py-ref.h.
5637 2019-01-22 Tom Tromey <tom@tromey.com>
5639 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
5642 2019-01-22 Tom Tromey <tom@tromey.com>
5644 * compile/compile-cplus-types.c: Remove a comment by #include.
5646 2019-01-22 Tom Tromey <tom@tromey.com>
5648 * compile/gcc-c-plugin.h: Include compile-internal.h.
5650 2019-01-22 Tom Tromey <tom@tromey.com>
5652 * stabsread.c (EXTERN): Do not define.
5653 (symnum, next_symbol_text_func, processing_gcc_compilation)
5654 (within_function, global_sym_chain, global_stabs)
5655 (previous_stab_code, this_object_header_files)
5656 (n_this_object_header_files)
5657 (n_allocated_this_object_header_files): Define.
5658 * stabsread.h (EXTERN): Never define. Use "extern".
5660 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5662 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
5665 2019-01-21 Tom Tromey <tom@tromey.com>
5667 * ui-out.c: Fix includes.
5668 * tui/tui-source.c: Fix includes.
5669 * target.c: Fix includes.
5670 * remote.c: Fix includes.
5671 * regcache.c: Fix includes.
5672 * python/py-block.c: Fix includes.
5673 * printcmd.c: Fix includes.
5674 * or1k-tdep.c: Fix includes.
5675 * mi/mi-main.c: Fix includes.
5676 * m32r-tdep.c: Fix includes.
5677 * csky-tdep.c: Fix includes.
5678 * compile/compile-cplus-types.c: Fix includes.
5679 * cli/cli-interp.c: Fix includes.
5681 2019-01-21 Alan Hayward <alan.hayward@arm.com>
5683 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5686 2019-01-16 Tom Tromey <tom@tromey.com>
5688 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
5690 (struct objfile) <msymbols_range>: Move from top level.
5691 <msymbols>: New method.
5692 (class objfile_msymbols): Remove.
5693 * symtab.c (default_collect_symbol_completion_matches_break_on):
5695 * symmisc.c (dump_msymbols): Update.
5696 * stabsread.c (scan_file_globals): Update.
5697 * objc-lang.c (info_selectors_command, info_classes_command)
5698 (find_methods): Update.
5699 * minsyms.c (find_solib_trampoline_target): Update.
5700 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
5701 * coffread.c (coff_symfile_read): Update.
5702 * ada-lang.c (ada_lookup_simple_minsym)
5703 (ada_collect_symbol_completion_matches): Update.
5705 2019-01-16 Tom Tromey <tom@tromey.com>
5707 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
5708 type. Remove no-argument constructor.
5709 <iterator::operator++>: Simplify.
5711 <end>: Use minimal_symbol_count.
5713 2019-01-16 Tom Tromey <tom@tromey.com>
5715 * objfiles.h (struct objfile) <psymtabs>: New method.
5716 (class objfile_psymtabs): Remove.
5717 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
5719 <range>: New method.
5720 (require_partial_symbols): Change return type.
5721 * psymtab.c (require_partial_symbols)
5722 (psym_expand_symtabs_matching): Update.
5723 * mdebugread.c (parse_partial_symbols): Update.
5724 * dbxread.c (dbx_end_psymtab): Update.
5726 2019-01-15 Tom Tromey <tom@tromey.com>
5728 * symtab.c (lookup_objfile_from_block)
5729 (lookup_symbol_in_objfile_symtabs)
5730 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
5731 (find_line_symtab, info_sources_command)
5732 (default_collect_symbol_completion_matches_break_on)
5733 (make_source_files_completion_list): Update.
5734 * symmisc.c (print_objfile_statistics, dump_objfile)
5735 (maintenance_print_symbols, maintenance_info_symtabs)
5736 (maintenance_check_symtabs, maintenance_info_line_tables):
5738 * source.c (select_source_symtab)
5739 (forget_cached_source_info_for_objfile): Update.
5740 * objfiles.h (class objfile_compunits): Remove.
5741 (struct objfile) <compunits_range>: New typedef.
5742 (compunits): New method.
5743 * objfiles.c (objfile_relocate1): Update.
5744 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
5745 * maint.c (count_symtabs_and_blocks): Update.
5746 * linespec.c (iterate_over_all_matching_symtabs): Update.
5747 * cp-support.c (add_symbol_overload_list_qualified): Update.
5748 * coffread.c (coff_symtab_read): Update.
5749 * ada-lang.c (add_nonlocal_symbols)
5750 (ada_collect_symbol_completion_matches)
5751 (ada_add_global_exceptions): Update.
5753 2019-01-15 Tom Tromey <tom@tromey.com>
5755 * progspace.h (program_space) <objfiles_safe_range>: New
5757 <objfiles_safe>: New method.
5758 * objfiles.h (class all_objfiles_safe): Remove.
5759 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
5760 * jit.c (jit_inferior_exit_hook): Update.
5762 2019-01-17 Tom Tromey <tom@tromey.com>
5764 * progspace.h (program_space) <objfiles_range>: New typedef.
5765 <objfiles>: New method.
5766 <objfiles_head>: Rename from objfiles.
5767 (object_files): Update.
5768 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
5769 * guile/scm-pretty-print.c
5770 (ppscm_find_pretty_printer_from_objfiles): Update.
5771 * guile/scm-objfile.c (gdbscm_objfiles): Update.
5772 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
5774 * python/py-progspace.c (pspy_get_objfiles): Update.
5775 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
5777 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
5778 (objfpy_lookup_objfile_by_build_id): Update.
5779 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
5780 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
5782 * symtab.c (iterate_over_symtabs, matching_obj_sections)
5783 (expand_symtab_containing_pc, lookup_objfile_from_block)
5784 (lookup_static_symbol, basic_lookup_transparent_type)
5785 (find_pc_sect_compunit_symtab, find_symbol_at_address)
5786 (find_line_symtab, info_sources_command)
5787 (default_collect_symbol_completion_matches_break_on)
5788 (make_source_files_completion_list, find_main_name): Update.
5789 * symmisc.c (print_symbol_bcache_statistics)
5790 (print_objfile_statistics, maintenance_print_symbols)
5791 (maintenance_print_msymbols, maintenance_print_objfiles)
5792 (maintenance_info_symtabs, maintenance_check_symtabs)
5793 (maintenance_expand_symtabs, maintenance_info_line_tables):
5795 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
5796 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
5797 (map_overlay_command, unmap_overlay_command)
5798 (simple_overlay_update, expand_symtabs_matching)
5799 (map_symbol_filenames): Update.
5800 * symfile-debug.c (set_debug_symfile): Update.
5801 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
5803 * source.c (select_source_symtab, forget_cached_source_info):
5805 * solib.c (solib_read_symbols): Update.
5806 * solib-spu.c (append_ocl_sos): Update.
5807 * psymtab.c (maintenance_print_psymbols)
5808 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
5809 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
5810 * printcmd.c (info_symbol_command): Update.
5811 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
5813 * objfiles.h (class all_objfiles): Remove.
5814 * objfiles.c (have_partial_symbols, have_full_symbols)
5815 (have_minimal_symbols, qsort_cmp, update_section_map)
5816 (shared_objfile_contains_address_p)
5817 (default_iterate_over_objfiles_in_search_order): Update.
5818 * objc-lang.c (info_selectors_command, info_classes_command)
5819 (find_methods): Update.
5820 * minsyms.c (find_solib_trampoline_target): Update.
5821 * maint.c (maintenance_info_sections)
5822 (maintenance_translate_address, count_symtabs_and_blocks):
5824 * main.c (captured_main_1): Update.
5825 * linux-thread-db.c (try_thread_db_load_from_pdir)
5826 (has_libpthread): Update.
5827 * linespec.c (iterate_over_all_matching_symtabs)
5828 (search_minsyms_for_name): Update.
5829 * jit.c (jit_find_objf_with_entry_addr): Update.
5830 * hppa-tdep.c (find_unwind_entry)
5831 (hppa_lookup_stub_minimal_symbol): Update.
5832 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
5834 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
5835 (elf_gnu_ifunc_resolve_by_got): Update.
5836 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
5837 * dwarf-index-write.c (save_gdb_index_command): Update.
5838 * cp-support.c (add_symbol_overload_list_qualified): Update.
5839 * breakpoint.c (create_overlay_event_breakpoint)
5840 (create_longjmp_master_breakpoint)
5841 (create_std_terminate_master_breakpoint)
5842 (create_exception_master_breakpoint): Update.
5843 * blockframe.c (find_pc_partial_function): Update.
5844 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
5845 (ada_collect_symbol_completion_matches)
5846 (ada_add_global_exceptions): Update.
5848 2019-01-17 Tom Tromey <tom@tromey.com>
5850 * solib-target.c (lm_info_target_p): Remove typedef. Don't
5852 (solib_target_parse_libraries): Change return type.
5853 (library_list_start_segment, library_list_start_section)
5854 (library_list_end_library, library_list_start_library); Update.
5855 (solib_target_free_library_list): Remove.
5856 (solib_target_parse_libraries): Remove cleanup. Change return
5858 (solib_target_current_sos): Update.
5860 2019-01-17 Tom Tromey <tromey@bapiya>
5862 * valprint.c: Replace "the the" with "the".
5863 * symtab.c: Replace "the the" with "the".
5864 * solib.c: Replace "the the" with "the".
5865 * solib-dsbt.c: Replace "the the" with "the".
5866 * linespec.c: Replace "the the" with "the".
5867 * dwarf2loc.h: Replace "the the" with "the".
5868 * amd64-windows-tdep.c: Replace "the the" with "the".
5869 * aarch64-tdep.c: Replace "the the" with "the".
5871 2019-01-16 Keith Seitz <keiths@redhat.com>
5874 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
5875 <builder>: Rename to ..
5876 <m_builder>: ... this and make private.
5877 (dwarf2_cu::get_builder): New method. Change all users of
5878 `builder' to use this method.
5879 (dwarf2_start_symtab): Move to ...
5880 (dwarf2_cu::start_symtab): ... here. Update all callers
5881 (setup_type_unit_groups): Move to ...
5882 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
5884 (dwarf2_cu::reset_builder): New method.
5885 (process_full_compunit, process_full_type_unit): Use
5886 dwarf2_cu::reset_builder.
5887 (follow_die_offset): Record the ancestor CU if it is different
5888 from the followed DIE's CU.
5889 (follow_die_sig_1): Likewise.
5891 2019-01-15 Tom Tromey <tom@tromey.com>
5893 * remote.c (class remote_state) <buf>: Now a char_vector.
5895 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
5897 (remote_target::getpkt_or_notif_sane_1)
5898 (remote_target::getpkt_sane)
5899 (remote_target::getpkt_or_notif_sane): Likewise.
5900 (class remote_target) <putpkt>: New overload.
5901 (remote_target::read_frame): Change type of "buf_p". Remove
5903 (packet_ok): New overload.
5904 (packet_check_result): New overload.
5907 2019-01-14 Tom Tromey <tom@tromey.com>
5909 * remote-notif.c (handle_notification, remote_notif_ack)
5910 (remote_notif_parse): Make "buf" const.
5911 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
5913 (remote_notif_parse, remote_notif_ack, handle_notification):
5915 * remote.c (remote_notif_stop_parse): Make "buf" const.
5916 (remote_target::remote_parse_stop_reply): Make "buf" const.
5917 (remote_notif_stop_ack): Make "buf" const.
5919 2019-01-14 Tom Tromey <tom@tromey.com>
5921 * remote.c (remote_console_output): Make parameter const.
5923 2019-01-14 Tom Tromey <tom@tromey.com>
5925 * target-debug.h (target_debug_print_signals): Constify.
5926 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
5927 * procfs.c (procfs_target::pass_signals): Update.
5928 * linux-nat.c (linux_nat_target::pass_signals): Update.
5929 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
5930 * target-delegates.c: Rebuild.
5931 * remote.c (remote_target::program_signals): Update.
5932 (remote_target::pass_signals): Update.
5933 * target.c (target_pass_signals): Constify argument.
5934 (target_program_signals): Likewise.
5935 * target.h (struct target_ops) <pass_signals, program_signals>:
5937 (target_pass_signals, target_program_signals): Constify argument.
5939 2019-01-14 Tom Tromey <tom@tromey.com>
5942 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
5944 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5946 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
5948 * rs6000-tdep.c: Include reggroups.h.
5949 (IS_V_ALIAS_PSEUDOREG): Define.
5950 (rs6000_register_name): Return names for the "vX" aliases.
5951 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
5952 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
5953 aliases. Call default_register_reggroup_p for all other
5955 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
5957 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
5958 Handle "vX" aliases.
5959 (v_alias_pseudo_register_collect): New function.
5960 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
5961 (rs6000_gdbarch_init): Initialize "vX" aliases as
5962 pseudo-registers. Restore registration of
5963 rs6000_pseudo_register_reggroup_p with
5964 set_tdesc_pseudo_register_reggroup_p.
5966 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
5968 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
5969 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
5970 set_gdbarch_num_pseudo_regs.
5972 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5974 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
5975 Remove arg prefixname, add do_set and do_show.
5976 Add member functions set_list and show_list.
5977 * cli/cli-style.c (class cli_style_option): Update accordingly.
5978 (style_set_list): Move to file scope.
5979 (style_show_list): Likewise.
5980 (set_style): Call help_list.
5981 (show_style): Call cmd_show_list.
5982 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
5983 Update to use the new macro.
5985 2019-10-12 Joel Brobecker <brobecker@adacore.com>
5987 * ada-lang.c (_initialize_ada_language): Expand the help text
5988 for the "catch exception" command.
5990 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5992 * symtab.c (matching_obj_sections): Initialize obj,
5993 declare it closer to its usage.
5995 2019-01-10 Tom Tromey <tom@tromey.com>
5997 * thread-iter.h (inf_threads_iterator): Use next_iterator.
5998 (basic_inf_threads_range): Remove.
5999 (inf_threads_range, inf_non_exited_threads_range)
6000 (safe_inf_threads_range): Use next_adapter.
6002 2019-01-10 Keith Seitz <keiths@redhat.com>
6006 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
6007 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
6009 2019-01-10 Keith Seitz <keiths@redhat.com>
6013 * dictionary.c (pending_to_vector): Remove.
6014 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6015 Remove _1 suffix, replacing functions of the same name. Update
6017 (dict_create_hashed, dict_create_hashed_expandable)
6018 (dict_create_linear, dict_create_linear_expandable, dict_free)
6019 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
6020 Make functions static.
6022 2019-01-10 Keith Seitz <keiths@redhat.com>
6026 * dictionary.h (struct dictionary): Replace declaration with
6028 (dict_create_hashed, dict_create_hashed_expandable)
6029 (dict_create_linear, dict_create_linear_expandable)
6030 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
6031 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
6032 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
6033 taking multidictionary argument.
6034 [ALL_DICT_SYMBOLS]: Update for multidictionary.
6035 * block.h (struct block) <dict>: Change to multidictionary
6036 and rename `multidict'.
6037 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
6038 symmisc.c: Update all dictionary references to multidictionary.
6040 2019-01-10 Keith Seitz <keiths@redhat.com>
6044 * dictionary.c: Include unordered_map.
6045 (pending_to_vector): New function.
6046 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6047 Rewrite the non-"_1" functions to take vector instead
6049 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
6050 "new" _1 versions of the same name.
6051 (multidictionary): Define.
6052 (std::hash<enum language): New definition.
6053 (collate_pending_symbols_by_language, mdict_create_hashed)
6054 (mdict_create_hashed_expandable, mdict_create_linear)
6055 (mdict_create_linear_expandable, mdict_free)
6056 (find_language_dictionary, create_new_language_dictionary)
6057 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
6058 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
6059 (mdict_size, mdict_empty): New functions.
6060 * dictionary.h (mdict_iterator): Define.
6062 2019-01-10 Pedro Alves <palves@redhat.com>
6064 * breakpoint.c (read_uploaded_action)
6065 (create_tracepoint_from_upload): Adjust to use
6066 gdb::unique_xmalloc_ptr.
6067 * ctf.c (ctf_write_uploaded_tp):
6068 (SET_ARRAY_FIELD): Use emplace_back.
6069 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
6070 * tracefile-tfile.c (tfile_write_uploaded_tp):
6071 * tracepoint.c (parse_tracepoint_definition): Adjust to use
6072 gdb::unique_xmalloc_ptr.
6073 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
6074 at_string, cond_string, cmd_strings>: Replace char pointers
6075 with gdb::unique_xmalloc_ptr.
6077 2019-01-10 Pedro Alves <palves@redhat.com>
6079 * solib-target.c (library_list_start_library): Don't xstrdup name.
6081 2019-01-10 Pedro Alves <palves@redhat.com>
6083 * mdebugread.c (parse_partial_symbols): Use
6084 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
6086 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6088 * linux-fork.c (scoped_switch_fork_info)
6089 <~scoped_switch_fork_info>: Fix incorrect variable name.
6091 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6093 * linux-fork.c (scoped_switch_fork_info)
6094 <scoped_switch_fork_info>: Make explicit.
6095 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
6097 2019-01-10 Tom Tromey <tom@tromey.com>
6099 * objfiles.h (objfile::reset_psymtabs): Update.
6100 * objfiles.c (objfile::objfile): Update.
6101 * psymtab.h (psymtab_storage::obstack): Update.
6102 (psymtab_storage::m_obstack): Use gdb::optional.
6103 (class psymtab_storage): Update comment. Remove objfile
6105 * psymtab.c (psymtab_storage::psymtab_storage): Update.
6107 2019-01-10 Tom Tromey <tom@tromey.com>
6109 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
6110 <free_psymtabs>: Now private.
6111 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
6112 (allocate_psymtab): Use new method.
6114 2019-01-10 Tom Tromey <tom@tromey.com>
6116 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
6117 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
6118 * mdebugread.c (parse_partial_symbols): Use
6119 allocate_dependencies.
6120 * dwarf2read.c (dwarf2_create_include_psymtab): Use
6121 allocate_dependencies.
6122 (process_psymtab_comp_unit_reader)
6123 (build_type_psymtab_dependencies): Likewise.
6124 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
6126 2019-01-10 Tom Tromey <tom@tromey.com>
6128 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
6129 PSYMBOL_SET_LANGUAGE.
6130 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
6132 2019-01-10 Tom Tromey <tom@tromey.com>
6134 * psymtab.h (psymtab_storage::obstack): New method.
6135 <m_obstack>: Rename from obstack; now private.
6136 * psymtab.c (psymtab_storage): Update.
6137 * dwarf2read.c (create_addrmap_from_index)
6138 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
6141 2019-01-10 Tom Tromey <tom@tromey.com>
6143 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
6144 * objfiles.h (objfile::reset_psymtabs): New method.
6146 2019-01-10 Tom Tromey <tom@tromey.com>
6148 * symmisc.c (print_symbol_bcache_statistics): Update.
6149 (print_objfile_statistics): Update.
6150 * symfile.c (reread_symbols): Update.
6151 * psymtab.h (class psymtab_storage): New.
6152 * psymtab.c (psymtab_storage): New constructor.
6153 (~psymtab_storage): New destructor.
6154 (require_partial_symbols): Update.
6155 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
6156 (find_pc_sect_psymtab, find_pc_sect_psymbol)
6157 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
6158 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
6159 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
6160 (start_psymtab_common, end_psymtab_common)
6161 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
6162 (allocate_psymtab): Update.
6163 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
6165 (dump_psymtab_addrmap, maintenance_print_psymbols)
6166 (maintenance_check_psymtabs): Update.
6167 (class objfile_psymtabs): Move to objfiles.h.
6168 * psympriv.h (discard_psymtab): Now inline.
6169 (psymtab_discarder::psymtab_discarder): Update.
6170 (psymtab_discarder::~psymtab_discarder): Update.
6171 (ALL_OBJFILE_PSYMTABS): Rewrite.
6172 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
6173 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
6175 <partial_symtabs>: New field.
6176 (class objfile_psymtabs): Move from psymtab.h. Update.
6177 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
6179 (objfile::~objfile): Don't destroy psymbol_cache.
6180 * mdebugread.c (parse_partial_symbols): Update.
6181 * dwarf2read.c (create_addrmap_from_index)
6182 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6183 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
6184 (add_partial_subprogram, dwarf2_ranges_read): Update.
6185 * dwarf-index-write.c (write_address_map)
6186 (write_one_signatured_type, recursively_write_psymbols)
6187 (class debug_names, class debug_names, write_psymtabs_to_index):
6190 2019-01-10 Tom Tromey <tom@tromey.com>
6192 * symtab.h (SYMBOL_SET_NAMES): Update.
6193 (symbol_set_names): Update.
6194 (MSYMBOL_SET_NAMES): Update.
6195 * symtab.c (symbol_set_names): Change argument to be an
6196 objfile_per_bfd_storage.
6197 * psymtab.c (add_psymbol_to_bcache): Update.
6198 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
6200 2019-01-10 Tom Tromey <tom@tromey.com>
6202 * symtab.c (create_demangled_names_hash): Change argument to be an
6203 objfile_per_bfd_storage.
6204 (symbol_set_names): Update.
6206 2019-01-10 Tom Tromey <tom@tromey.com>
6208 * xcoffread.c (xcoff_initial_scan): Unconditionally call
6210 * psymtab.c (init_psymbol_list): Do nothing if already called.
6211 * psympriv.h (init_psymbol_list): Add comment.
6212 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
6214 * dbxread.c (dbx_symfile_read): Unconditionally call
6217 2019-01-10 Tom Tromey <tom@tromey.com>
6219 * xcoffread.c (scan_xcoff_symtab): Update.
6220 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
6222 * mdebugread.c (parse_partial_symbols)
6223 (handle_psymbol_enumerators): Update.
6224 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
6225 * dbxread.c (read_dbx_symtab): Update.
6226 * psympriv.h (psymbol_placement): New enum.
6227 (add_psymbol_to_list): Update.
6229 2019-01-10 Tom Tromey <tom@tromey.com>
6231 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
6232 static_psymbols parameters.
6233 (scan_xcoff_symtab): Update.
6234 * psymtab.c (start_psymtab_common): Remove global_psymbols and
6235 static_psymbols parameters.
6236 * psympriv.h (start_psymtab_common): Update.
6237 * mdebugread.c (parse_partial_symbols): Update.
6238 * dwarf2read.c (create_partial_symtab): Update.
6239 * dbxread.c (read_dbx_symtab): Update.
6240 (start_psymtab): Remove global_psymbols and static_psymbols
6243 2019-01-10 Tom Tromey <tom@tromey.com>
6245 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
6246 * psymtab.c (allocate_psymtab): Add comment.
6247 * psympriv.h (allocate_psymtab): Add comment.
6248 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
6250 * dbxread.c (dbx_end_psymtab): Remove some initializations.
6252 2019-01-10 Tom Tromey <tom@tromey.com>
6254 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6256 * mipsread.c: Include mdebugread.h.
6257 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6259 * elfread.c: Include mdebugread.h.
6261 2019-01-09 Tom Tromey <tom@tromey.com>
6263 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
6264 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
6265 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
6266 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
6267 (psym_lookup_symbol, psym_find_last_source_symtab)
6268 (psym_forget_cached_source_info, psym_print_stats)
6269 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
6270 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
6271 (psym_map_matching_symbols, psym_expand_symtabs_matching)
6272 (psym_find_compunit_symtab_by_address)
6273 (maintenance_print_psymbols, maintenance_info_psymtabs)
6274 (maintenance_check_psymtabs): Use ranged for.
6275 * psymtab.h (class objfile_psymtabs): New.
6276 (require_partial_symbols): Return objfile_psymtabs.
6277 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
6279 2019-01-09 Tom Tromey <tom@tromey.com>
6281 * symfile.c (overlay_invalidate_all, find_pc_overlay)
6282 (find_pc_mapped_section, list_overlays_command)
6283 (map_overlay_command, unmap_overlay_command)
6284 (simple_overlay_update): Use all_objfiles.
6285 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
6286 * printcmd.c (info_symbol_command): Use all_objfiles.
6287 * objfiles.h (ALL_OBJSECTIONS): Remove.
6288 * maint.c (maintenance_translate_address): Use all_objfiles.
6289 * gcore.c (gcore_create_callback): Use all_objfiles.
6290 (objfile_find_memory_regions): Likewise.
6292 2019-01-09 Tom Tromey <tom@tromey.com>
6294 * symtab.c (find_line_symtab, info_sources_command)
6295 (make_source_files_completion_list): Use objfile_compunits.
6296 * source.c (select_source_symtab): Use objfile_compunits.
6297 * objfiles.h (struct objfile): Update comment.
6298 (ALL_OBJFILES): Remove.
6299 (ALL_FILETABS): Remove.
6300 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
6303 2019-01-09 Tom Tromey <tom@tromey.com>
6305 * symmisc.c (print_objfile_statistics, dump_objfile)
6306 (maintenance_print_symbols): Use compunit_filetabs.
6307 * source.c (forget_cached_source_info_for_objfile): Use
6309 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
6310 (ALL_FILETABS): Use compunit_filetabs.
6311 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
6312 * coffread.c (coff_symtab_read): Use compunit_filetabs.
6314 2019-01-09 Tom Tromey <tom@tromey.com>
6316 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
6317 (compunit_filetabs): New.
6318 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
6320 (info_sources_command, make_source_files_completion_list): Remove
6322 * symmisc.c (print_objfile_statistics, dump_objfile)
6323 (maintenance_print_symbols): Remove declaration.
6324 (maintenance_info_symtabs): Use compunit_filetabs.
6325 (maintenance_info_line_tables): Likewise.
6326 * source.c (select_source_symtab): Change local variable name.
6327 (forget_cached_source_info_for_objfile): Remove declaration.
6328 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
6329 * objfiles.c (objfile_relocate1): Remove declaration.
6330 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6332 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
6333 * coffread.c (coff_symtab_read): Remove declaration.
6334 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6337 2019-01-09 Tom Tromey <tom@tromey.com>
6339 * symtab.c (lookup_objfile_from_block)
6340 (find_pc_sect_compunit_symtab, search_symbols)
6341 (default_collect_symbol_completion_matches_break_on): Use
6343 * objfiles.h (ALL_COMPUNITS): Remove.
6344 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
6345 * cp-support.c (add_symbol_overload_list_qualified): Use
6347 * ada-lang.c (ada_collect_symbol_completion_matches)
6348 (ada_add_global_exceptions): Use objfile_compunits.
6350 2019-01-09 Tom Tromey <tom@tromey.com>
6352 * source.c (select_source_symtab)
6353 (forget_cached_source_info_for_objfile): Remove declaration.
6354 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6356 * maint.c (count_symtabs_and_blocks): Remove declaration.
6357 * cp-support.c (add_symbol_overload_list_qualified): Remove
6359 * coffread.c (coff_symtab_read): Remove declaration.
6360 * symtab.c (lookup_symbol_in_objfile_symtabs)
6361 (basic_lookup_transparent_type_1): Use objfile_compunits.
6362 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
6363 (info_sources_command, search_symbols)
6364 (default_collect_symbol_completion_matches_break_on)
6365 (make_source_files_completion_list): Remove declaration.
6366 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
6367 (ada_collect_symbol_completion_matches)
6368 (ada_add_global_exceptions): Remove declaration.
6369 * linespec.c (iterate_over_all_matching_symtabs): Use
6371 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
6372 (class objfile_compunits): New.
6373 (ALL_COMPUNITS): Use objfile_compunits.
6374 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
6375 (maintenance_check_symtabs, maintenance_info_line_tables): Use
6377 * objfiles.c (objfile_relocate1): Use objfile_compunits.
6379 2019-01-09 Tom Tromey <tom@tromey.com>
6381 * symtab.c (search_symbols)
6382 (default_collect_symbol_completion_matches_break_on): Use
6384 * ada-lang.c (ada_lookup_simple_minsym)
6385 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
6386 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
6387 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
6389 * coffread.c (coff_symfile_read): Use objfile_msymbols.
6390 * symmisc.c (dump_msymbols): Use objfile_msymbols.
6391 * objc-lang.c (find_methods): Use objfile_msymbols.
6392 (info_selectors_command, info_classes_command): Likewise.
6393 * stabsread.c (scan_file_globals): Use objfile_msymbols.
6394 * objfiles.h (class objfile_msymbols): New.
6395 (ALL_OBJFILE_MSYMBOLS): Remove.
6396 (ALL_MSYMBOLS): Remove.
6398 2019-01-09 Tom Tromey <tom@tromey.com>
6400 * common/next-iterator.h (next_adapter): Add Iterator template
6402 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
6403 (class all_objfiles_safe): New.
6404 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
6405 * objfiles.c (put_objfile_before): Update comment.
6406 (add_separate_debug_objfile): Likewise.
6407 (free_all_objfiles): Use all_objfiles_safe.
6408 (objfile_purge_solibs): Likewise.
6410 2019-01-09 Tom Tromey <tom@tromey.com>
6412 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6413 (expand_symtab_containing_pc, lookup_static_symbol)
6414 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
6415 (find_symbol_at_address, find_line_symtab, find_main_name): Use
6417 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
6418 * breakpoint.c (create_overlay_event_breakpoint)
6419 (create_longjmp_master_breakpoint)
6420 (create_std_terminate_master_breakpoint)
6421 (create_exception_master_breakpoint): Use all_objfiles.
6422 * linux-thread-db.c (try_thread_db_load_from_pdir)
6423 (has_libpthread): Use all_objfiles.
6424 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
6425 * linespec.c (iterate_over_all_matching_symtabs)
6426 (search_minsyms_for_name): Use all_objfiles.
6427 * maint.c (maintenance_info_sections): Use all_objfiles.
6428 * main.c (captured_main_1): Use all_objfiles.
6429 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
6430 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
6431 * guile/scm-pretty-print.c
6432 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
6433 * solib-spu.c (append_ocl_sos): Use all_objfiles.
6434 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
6435 (maintenance_print_msymbols): Use all_objfiles.
6436 * source.c (select_source_symtab): Use all_objfiles.
6437 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
6438 * symfile.c (remove_symbol_file_command)
6439 (expand_symtabs_matching, map_symbol_filenames): Use
6441 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
6443 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
6444 * objc-lang.c (find_methods): Use all_objfiles.
6445 * objfiles.c (have_partial_symbols, have_full_symbols)
6446 (have_minimal_symbols, qsort_cmp)
6447 (default_iterate_over_objfiles_in_search_order): Use
6449 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
6450 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
6451 (maintenance_check_psymtabs): Use all_objfiles.
6452 (ALL_PSYMTABS): Remove.
6453 * compile/compile-object-run.c (do_module_cleanup): Use
6455 * blockframe.c (find_pc_partial_function): Use all_objfiles.
6456 * cp-support.c (add_symbol_overload_list_qualified): Use
6458 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6460 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
6461 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
6463 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6464 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
6465 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6467 * solib.c (solib_read_symbols): Use all_objfiles
6469 2019-01-09 Tom Tromey <tom@tromey.com>
6471 * probe.c (parse_probes_in_pspace): Use all_objfiles.
6472 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
6474 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
6475 * symmisc.c (print_symbol_bcache_statistics)
6476 (print_objfile_statistics, maintenance_print_objfiles)
6477 (maintenance_info_symtabs, maintenance_check_symtabs)
6478 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
6480 * source.c (forget_cached_source_info): Use all_objfiles.
6481 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
6482 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6483 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
6484 * objfiles.c (update_section_map): Use all_objfiles.
6485 (shared_objfile_contains_address_p): Likewise.
6486 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
6487 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
6489 2019-01-09 Tom Tromey <tom@tromey.com>
6491 * common/next-iterator.h: New file.
6492 * objfiles.h (class all_objfiles): New.
6493 (struct objfile_iterator): New.
6495 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6497 * NEWS: Move the description of the changed "frame", "select-frame",
6498 and "info frame" commands to the Changed commands section.
6500 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
6502 * gdbtypes.c (check_stub_method_group): Remove handling of old
6504 * linespec.c (find_methods): Likewise.
6505 * stabsread.c (read_member_functions): Likewise.
6506 * valops.c (search_struct_method): Likewise.
6507 (value_struct_elt_for_reference): Likewise.
6508 * NEWS: Mention this change.
6510 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6512 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
6514 * source.c (print_source_lines_base): Update line number check.
6515 (print_source_lines): New function.
6516 (source_lines_range::source_lines_range): New function.
6517 * source.h (class source_lines_range): New class.
6518 (print_source_lines): New declaration.
6520 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6522 * linespec.c (linespec_state_destructor): Free self->canonical_names.
6524 2019-01-08 Tom Tromey <tom@tromey.com>
6525 Simon Marchi <simon.marchi@ericsson.com>
6528 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
6529 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
6530 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6531 * f-exp.y (DOLLAR_VARIABLE): Likewise.
6532 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
6533 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6535 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6537 * source.c (select_source_symtab): Move header comment to
6538 declaration in source.h.
6539 (forget_cached_source_info_for_objfile): Likewise.
6540 (forget_cached_source_info): Likewise.
6541 (identify_source_line): Likewise.
6542 * source.h (identify_source_line): Move declaration from symtab.h
6543 and add comment from source.c
6544 (print_source_lines): Likewise.
6545 (forget_cached_source_info_for_objfile): Likewise.
6546 (forget_cached_source_info): Likewise.
6547 (select_source_symtab): Likewise.
6548 (enum print_source_lines_flag): Move definition from symtab.h.
6549 * symtab.h (identify_source_line): Move declaration to source.h.
6550 (print_source_lines): Likewise.
6551 (forget_cached_source_info_for_objfile): Likewise.
6552 (forget_cached_source_info): Likewise.
6553 (select_source_symtab): Likewise.
6554 (enum print_source_lines_flag): Move definition to source.h.
6555 * tui/tui-hooks.c: Add 'source.h' include.
6557 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6559 * source.c (print_source_lines_base): Handle requests to print
6560 reverse line number sequences, and guard against empty lines
6563 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6565 * source.c (print_source_lines_base): Fix skip of '\r' if next
6568 2019-01-06 Tom Tromey <tom@tromey.com>
6570 * c-exp.y (struct c_parse_state) <macro_original_text,
6571 expansion_obstack>: New member.
6572 (macro_original_text, expansion_obstack): Remove globals.
6573 (scan_macro_expansion, scanning_macro_expansion)
6574 (finished_macro_expansion): Update.
6575 (scan_macro_cleanup): Remove.
6576 (yylex, c_parse): Update.
6578 2019-01-06 Tom Tromey <tom@tromey.com>
6580 * c-exp.y (struct c_parse_state) <strings>: New member.
6581 (operator_stoken): Update.
6583 2019-01-06 Tom Tromey <tom@tromey.com>
6585 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
6586 (union type_stack_elt) <typelist_val>: Now a pointer to
6588 (type_stack_cleanup): Don't declare.
6589 (push_typelist): Update.
6590 * parse.c (pop_typelist): Return a std::vector.
6591 (push_typelist): Take a std::vector.
6592 (follow_types): Update. Do not free args.
6593 (type_stack_cleanup): Remove.
6594 * c-exp.y (struct c_parse_state): New.
6595 (cpstate): New global.
6596 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
6597 (nonempty_typelist): Update.
6598 (func_mod): Create a new vector.
6599 (c_parse): Create a c_parse_state.
6600 (check_parameter_typelist): Do not delete params.
6601 (function_method): Update. Do not delete type_list.
6603 2019-01-06 Tom Tromey <tom@tromey.com>
6606 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
6608 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
6609 (print_return_value): Likewise.
6611 2019-01-05 Tom Tromey <tom@tromey.com>
6613 * contrib/cleanup_check.py: Remove.
6614 * contrib/gcc-with-excheck: Remove.
6615 * contrib/exsummary.py: Remove.
6616 * contrib/excheck.py: Remove.
6618 2019-01-05 Joel Brobecker <brobecker@adacore.com>
6620 * thread.c (delete_thread_1): Add gdb_assert that THR is not
6621 NULL. Initialize tpprev to NULL instead of assigning it
6622 to NULL on the next statement.
6623 * windows-nat.c (windows_delete_thread): Remove check for
6624 main_thread_id before printing thread exit notifications.
6625 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
6626 Remove thread ID check against main_thread_id.
6627 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
6628 windows_delete_thread.
6629 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
6631 2019-01-04 Tom Tromey <tom@tromey.com>
6633 * compile/compile.c (_initialize_compile): Use upper case for
6634 metasyntactic variables.
6635 * symmisc.c (_initialize_symmisc): Use upper case for
6636 metasyntactic variables.
6637 * psymtab.c (_initialize_psymtab): Use upper case for
6638 metasyntactic variables.
6639 * demangle.c (demangle_command): Use upper case for metasyntactic
6641 (_initialize_demangler): Likewise.
6642 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
6645 2019-01-03 Tom Tromey <tom@tromey.com>
6647 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
6649 2019-01-03 Tom Tromey <tom@tromey.com>
6651 * python/py-symtab.c (salpy_str): Update.
6652 (struct salpy_sal_object) <symtab>: Now a PyObject.
6653 (salpy_dealloc): Update.
6654 (del_objfile_sal): Use gdbpy_ref.
6656 2019-01-03 Tom Tromey <tom@tromey.com>
6658 * python/py-type.c (convert_field): Use new_reference. Return
6660 (make_fielditem): Return gdbpy_ref.
6661 (typy_fields): Update.
6662 (typy_getitem): Update.
6663 (field_name): Return gdbpy_ref. Use new_reference.
6664 (typy_iterator_iternext): Update.
6666 2019-01-03 Tom Tromey <tom@tromey.com>
6668 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
6670 2019-01-03 Tom Tromey <tom@tromey.com>
6672 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
6673 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
6674 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
6675 (pspy_set_frame_filters, pspy_set_frame_unwinders)
6676 (pspy_set_type_printers): Likewise.
6677 * python/py-function.c (fnpy_init): Use gdbpy_ref.
6678 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
6679 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
6680 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
6681 (objfpy_set_type_printers): Likewise.
6683 2019-01-03 Tom Tromey <tom@tromey.com>
6685 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
6686 (gdbpy_print_stack): Use gdbpy_err_fetch.
6687 * python/python-internal.h (class gdbpy_err_fetch): New class.
6688 (class gdbpy_enter) <m_error_type, m_error_value,
6689 m_error_traceback>: Remove.
6690 <m_error>: New member.
6691 (gdbpy_exception_to_string): Don't declare.
6692 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
6693 * python/py-value.c (convert_value_from_python): Use
6695 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
6696 gdbpy_exception_to_string.
6697 (gdbpy_handle_exception): Use gdbpy_err_fetch.
6698 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
6701 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6703 * linux-nat.c (delete_lwp_cleanup): Delete.
6704 (struct lwp_deleter): New struct.
6705 (lwp_info_up): New typedef.
6706 (linux_nat_target::follow_fork): Delete cleanup, and make use of
6709 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6711 * linux-fork.c (class scoped_switch_fork_info): New class.
6712 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
6714 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6716 * valops.c (find_overload_match): Remove use of null_cleanup, and
6717 calls to do_cleanups.
6719 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6721 * compile/compile-cplus-types.c
6722 (compile_cplus_instance::decl_name): Handle changes to
6724 * cp-support.c (cp_func_name): Update header comment, update
6726 * cp-support.h (cp_func_name): Update return type in declaration.
6727 * valops.c (find_overload_match): Move temp_func local to top
6728 level of function and change its type. Use temp_func to hold and
6729 delete temporary string obtained from cp_func_name.
6731 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6733 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
6734 gdb::char_vector, remove cleanup, and update uses of `msg`.
6736 2019-01-03 Jim Wilson <jimw@sifive.com>
6738 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
6740 2019-01-02 Tom Tromey <tom@tromey.com>
6742 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
6743 (tdesc_parse_xml): Remove cleanups.
6744 * target-descriptions.h (make_cleanup_free_target_description):
6746 (target_desc_deleter): New struct.
6747 (target_desc_up): New typedef.
6748 * target-descriptions.c (target_desc_deleter::operator()): Rename
6749 from free_target_description.
6750 (make_cleanup_free_target_description): Remove.
6752 2019-01-02 Tom Tromey <tom@tromey.com>
6754 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
6755 constructor, destructor.
6756 (linespec_parser): Remove typedef.
6757 (~linespec_parser): Rename from linespec_parser_delete.
6758 (linespec_lex_to_end, linespec_complete_label)
6759 (linespec_complete): Update.
6760 (decode_line_full): Remove cleanups.
6761 (decode_line_1): Update.
6763 2019-01-02 Tom Tromey <tom@tromey.com>
6765 * python/python-internal.h (inferior_to_inferior_object): Change
6767 * python/py-exitedevent.c (create_exited_event_object): Update.
6768 * python/py-inferior.c (inferior_to_inferior_object): Return
6770 (python_new_inferior, python_inferior_deleted)
6771 (thread_to_thread_object, delete_thread_object)
6772 (build_inferior_list, gdbpy_selected_inferior): Update.
6773 * python/py-infthread.c (create_thread_object): Update. Also fail
6774 if inferior_to_inferior_object fails.
6776 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
6778 * inferior.h (class inferior) <displaced_step_state>: New field.
6779 * infrun.h (struct displaced_step_state): Move here from
6780 infrun.c. Initialize fields, add constructor.
6781 <inf>: Remove field.
6782 <reset>: New method.
6783 * infrun.c (struct displaced_step_inferior_state): Move to
6785 (displaced_step_inferior_states): Remove.
6786 (get_displaced_stepping_state): Adust.
6787 (displaced_step_in_progress_any_inferior): Adjust.
6788 (displaced_step_in_progress_thread): Adjust.
6789 (displaced_step_in_progress): Adjust.
6790 (add_displaced_stepping_state): Remove.
6791 (get_displaced_step_closure_by_addr): Adjust.
6792 (remove_displaced_stepping_state): Remove.
6793 (infrun_inferior_exit): Call displaced_step_state.reset.
6794 (use_displaced_stepping): Don't check for NULL.
6795 (displaced_step_prepare_throw): Call
6796 get_displaced_stepping_state.
6797 (displaced_step_fixup): Don't check for NULL.
6798 (prepare_for_detach): Don't check for NULL.
6800 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6802 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
6803 in case of call that did not complete.
6805 2019-01-02 Andrey Utkin <autkin@undo.io>
6807 * symfile.c (find_separate_debug_file): Fix search of debug files for
6810 2019-01-02 Tom Tromey <tom@tromey.com>
6812 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
6814 * python/py-frame.c (frapy_older): Remove cast.
6815 (frapy_newer): Likewise.
6816 * python/py-breakpoint.c (local_setattro): Remove cast.
6817 * python/py-arch.c (archpy_name): Remove local variable.
6818 * python/py-type.c (gdbpy_lookup_type): Remove cast.
6820 2019-01-02 Joel Brobecker <brobecker@adacore.com>
6822 * unittests/basic_string_view/element_access/char/empty.cc:
6823 Fix year range in copyright header.
6825 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
6827 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
6829 <operator==>: Update with for removed field.
6831 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
6832 <isa_features>: ...this.
6833 <abi_features>: New field.
6834 (riscv_isa_flen): Update comment.
6835 (riscv_abi_xlen): New declaration.
6836 (riscv_abi_flen): New declaration.
6837 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
6839 (riscv_abi_xlen): New function.
6840 (riscv_isa_flen): Update to get answer from isa_features.
6841 (riscv_abi_flen): New function.
6842 (riscv_has_fp_abi): Update to get answer from abi_features.
6843 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
6845 (riscv_call_info) <xlen, flen>: Update comment.
6846 (riscv_call_arg_struct): Remove invalid assertions
6847 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
6849 (riscv_gdbarch_init): Gather isa features and abi features
6850 separately, ensure both match on the gdbarch when reusing an old
6851 gdbarch. Relax an error check to allow 32-bit abi float to run on
6852 a target with 64-bit float hardware.
6854 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6856 * source.c (search_command_helper): Stop reverse search
6857 when line 1 has been searched.
6859 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6861 * record-full.c (record_full_base_target::close): Rewrite
6862 record_full_core_buf_list free logic.
6864 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6866 * break-catch-syscall.c (print_one_catch_syscall): xfree
6869 2019-01-01 Joel Brobecker <brobecker@adacore.com>
6871 * top.c (print_gdb_version): Update Copyright year in version
6874 2019-01-01 Joel Brobecker <brobecker@adacore.com>
6876 Update copyright year range in all GDB files.
6878 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
6880 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
6882 For older changes see ChangeLog-2018.
6888 version-control: never