1 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
3 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
4 New variable declaration.
5 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
7 (print_one_breakpoint): Use ui_out::test_flags and new global
8 variable to compute use_fixed_output.
9 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
11 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
12 (mi_multi_location_breakpoint_output_fixed): Remove.
13 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
15 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
16 fix_multi_location_breakpoint_output flag if version >= 3.
17 * ui-out.h (enum ui_out_flag)
18 <fix_multi_location_breakpoint_output>: New enumerator.
20 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
22 * contrib/cc-with-tweaks.sh: Validate dwz's work.
24 2019-05-10 Tom Tromey <tromey@adacore.com>
26 * ada-lang.c (catch_ada_completer): New function.
27 (_initialize_ada_language): Use it.
29 2019-05-10 Tom Tromey <tromey@adacore.com>
31 * thread.c (print_thread_info): Make "requested_threads" const.
32 * gdbthread.h (print_thread_info): Make "requested_threads"
34 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
35 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
37 2019-05-08 Tom Tromey <tom@tromey.com>
39 * gdbtypes.c (objfile_type_data): Change type.
40 (objfile_type, _initialize_gdbtypes): Update.
42 2019-05-08 Tom Tromey <tom@tromey.com>
44 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
45 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
46 (_initialize_dwarf2_frame): Update.
48 2019-05-08 Tom Tromey <tom@tromey.com>
50 * objc-lang.c (objc_objfile_data): Change type.
51 (find_methods): Update.
52 (_initialize_objc_lang): Remove.
54 2019-05-08 Tom Tromey <tom@tromey.com>
56 * stabsread.c (rs6000_builtin_type_data): Change type.
57 (rs6000_builtin_type, _initialize_stabsread): Update.
59 2019-05-08 Tom Tromey <tom@tromey.com>
61 * mips-tdep.c (mips_pdr_data): Remove.
62 (_initialize_mips_tdep): Update.
64 2019-05-08 Tom Tromey <tom@tromey.com>
66 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
67 (hppa_init_objfile_priv_data, read_unwind_info)
68 (find_unwind_entry, _initialize_hppa_tdep): Update.
70 2019-05-08 Tom Tromey <tom@tromey.com>
72 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
73 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
75 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
77 2019-05-08 Tom Tromey <tom@tromey.com>
79 * mdebugread.c (basic_type_data): Change type.
80 (basic_type, _initialize_mdebugread): Update.
82 2019-05-08 Tom Tromey <tom@tromey.com>
84 * common/gdb_unique_ptr.h (struct noop_deleter): New.
86 2019-05-08 Tom Tromey <tom@tromey.com>
88 * nto-tdep.c (nto_inferior_data_reg): Change type.
89 (nto_inferior_data): Update.
90 (nto_inferior_data_cleanup, nto_new_inferior_data)
91 (_initialize_nto_tdep): Remove.
92 * nto-tdep.h (struct nto_inferior_data): Add initializers.
94 2019-05-08 Tom Tromey <tom@tromey.com>
96 * ada-lang.c (struct ada_inferior_data): Add initializers.
97 (ada_inferior_data): Change type.
98 (ada_inferior_data_cleanup): Remove.
99 (get_ada_inferior_data, ada_inferior_exit)
100 (struct ada_pspace_data): Add initializers, destructor.
101 (ada_pspace_data_handle): Change type.
102 (get_ada_pspace_data): Update.
103 (ada_pspace_data_cleanup): Remove.
105 2019-05-08 Tom Tromey <tom@tromey.com>
107 * coffread.c (struct coff_symfile_info): Add initializers.
108 (coff_objfile_data_key): Move lower. Change type.
109 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
111 (coff_free_info): Remove.
113 2019-05-08 Tom Tromey <tom@tromey.com>
115 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
116 (fbsd_pspace_data_handle): Move lower. Change type.
117 (get_fbsd_pspace_data): Update.
118 (fbsd_pspace_data_cleanup): Remove.
119 (_initialize_fbsd_tdep): Update.
121 2019-05-08 Tom Tromey <tom@tromey.com>
123 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
124 (get_ada_tasks_pspace_data): Update.
125 (ada_tasks_pspace_data_cleanup): Remove.
126 (_initialize_tasks): Update.
127 (ada_tasks_inferior_data_handle): Change type.
128 (get_ada_tasks_inferior_data): Update.
129 (ada_tasks_inferior_data_cleanup): Remove.
130 (struct ada_tasks_pspace_data): Add initializers.
132 2019-05-08 Tom Tromey <tom@tromey.com>
134 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
135 * symfile-debug.c (debug_sym_get_probes): Change type.
136 * stap-probe.c (handle_stap_probe):
137 (stap_static_probe_ops::get_probes): Change type.
138 * probe.h (class static_probe_ops) <get_probes>: Change type.
139 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
140 (parse_probes_in_pspace): Update.
141 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
143 (any_static_probe_ops::get_probes): Change type.
144 * elfread.c (elfread_data): New typedef.
145 (probe_key): Change type.
146 (elf_get_probes): Likewise. Update.
147 (probe_key_free): Remove.
148 (_initialize_elfread): Update.
149 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
151 (dtrace_process_dof_probe, dtrace_process_dof)
152 (dtrace_static_probe_ops::get_probe): Change type.
154 2019-05-08 Tom Tromey <tom@tromey.com>
156 * xcoffread.c (struct xcoff_symfile_info): Rename from
157 coff_symfile_info. Add initializers.
158 (xcoff_objfile_data_key): Move lower. Change type.
159 (XCOFF_DATA): Rewrite.
160 (xcoff_free_info): Remove.
161 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
162 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
163 (xcoff_initial_scan): Update.
165 2019-05-08 Tom Tromey <tom@tromey.com>
167 * solib-svr4.c (struct svr4_info): Add initializers and
169 <probes_table>: Now an htab_up.
170 (solib_svr4_pspace_data): Change type.
171 (free_probes_table): Simplify.
172 (~svr4_info): Rename from svr4_pspace_data_cleanup.
173 (get_svr4_info, probes_table_htab_remove_objfile_probes)
174 (probes_table_remove_objfile_probes, register_solib_event_probe)
175 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
176 (_initialize_svr4_solib): Update.
178 2019-05-08 Tom Tromey <tom@tromey.com>
180 * remote.c (remote_pspace_data): Change type.
181 (remote_pspace_data_cleanup): Remove.
182 (get_remote_exec_file, set_pspace_remote_exec_file)
183 (_initialize_remote): Update.
185 2019-05-08 Tom Tromey <tom@tromey.com>
187 * breakpoint.c (breakpoint_objfile_key): Change type.
188 (get_breakpoint_objfile_data): Update.
189 (free_breakpoint_objfile_data): Remove.
190 (_initialize_breakpoint): Update.
192 2019-05-08 Tom Tromey <tom@tromey.com>
194 * linux-tdep.c (struct linux_info): Add initializers.
195 (linux_inferior_data): Move. Change type.
196 (invalidate_linux_cache_inf): Update.
197 (linux_inferior_data_cleanup): Remove.
198 (get_linux_inferior_data, _initialize_linux_tdep): Update.
200 2019-05-08 Tom Tromey <tom@tromey.com>
202 * auxv.c (auxv_inferior_data): Move. Change type.
203 (auxv_inferior_data_cleanup): Remove.
204 (invalidate_auxv_cache_inf): Rewrite.
205 (get_auxv_inferior_data, _initialize_auxv): Update.
207 2019-05-08 Tom Tromey <tom@tromey.com>
209 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
210 (symfile_debug_objfile_data_key): Change type.
211 (symfile_debug_installed, debug_qf_has_symbols)
212 (debug_qf_find_last_source_symtab)
213 (debug_qf_forget_cached_source_info)
214 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
215 (debug_qf_print_stats, debug_qf_dump)
216 (debug_qf_expand_symtabs_for_function)
217 (debug_qf_expand_all_symtabs)
218 (debug_qf_expand_symtabs_with_fullname)
219 (debug_qf_map_matching_symbols)
220 (debug_qf_expand_symtabs_matching)
221 (debug_qf_find_pc_sect_compunit_symtab)
222 (debug_qf_map_symbol_filenames)
223 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
224 (debug_sym_new_init, debug_sym_init, debug_sym_read)
225 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
226 (debug_sym_read_linetable, debug_sym_relocate): Update.
227 (symfile_debug_free_objfile): Remove.
228 (install_symfile_debug_logging, _initialize_symfile_debug):
231 2019-05-08 Tom Tromey <tom@tromey.com>
233 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
235 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
236 (get_dwarf2_per_objfile): Update.
237 (set_dwarf2_per_objfile): Remove.
238 (dwarf2_has_info, dwarf2_get_section_info): Update.
239 (dwarf2_free_objfile): Remove.
240 (_initialize_dwarf2_read): Update.
242 2019-05-08 Tom Tromey <tom@tromey.com>
244 * auto-load.c (struct auto_load_pspace_info): Add destructor and
246 <unsupported_script_warning_printed,
247 script_not_found_warning_printed>: Now bool.
248 (auto_load_pspace_data): Change type.
249 (~auto_load_pspace_info): Rename from
250 auto_load_pspace_data_cleanup.
251 (get_auto_load_pspace_data, init_loaded_scripts_info)
252 (clear_section_scripts, maybe_print_unsupported_script_warning)
253 (maybe_print_script_not_found_warning, _initialize_auto_load):
256 2019-05-08 Tom Tromey <tom@tromey.com>
258 * objfiles.c (objfile_pspace_info): Add destructor and
260 (objfiles_pspace_data): Change type.
261 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
262 (get_objfile_pspace_data): Update.
263 (objfiles_bfd_data): Change type.
264 (get_objfile_bfd_data): Update.
265 (objfile_bfd_data_free, _initialize_objfiles): Remove.
267 2019-05-08 Tom Tromey <tom@tromey.com>
269 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
271 (get_catch_syscall_inferior_data): Update.
272 (catch_syscall_inferior_data_cleanup): Remove.
273 (_initialize_break_catch_syscall): Update.
275 2019-05-08 Tom Tromey <tom@tromey.com>
277 * inflow.c (struct terminal_info): Add destructor and
279 (inflow_inferior_data): Change type.
280 (~terminal_info): Rename from inflow_inferior_data_cleanup.
281 (get_inflow_inferior_data, inflow_inferior_exit)
282 (swap_terminal_info, _initialize_inflow): Update.
284 2019-05-08 Tom Tromey <tom@tromey.com>
286 * target-dcache.c (target_dcache_cleanup): Remove.
287 (target_dcache_aspace_key): Change type.
288 (target_dcache_init_p, target_dcache_invalidate)
289 (target_dcache_get, target_dcache_get_or_init)
290 (_initialize_target_dcache): Update.
291 * dcache.h (struct dcache_deleter): New.
293 2019-05-08 Tom Tromey <tom@tromey.com>
295 * symtab.c (struct symbol_cache): Add destructor and
297 (symbol_cache_key): Move. Change type.
298 (make_symbol_cache, free_symbol_cache): Remove.
299 (get_symbol_cache): Update.
300 (symbol_cache_cleanup): Remove.
301 (ALL_PSPACES, symbol_cache_flush)
302 (maintenance_print_symbol_cache)
303 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
306 2019-05-08 Tom Tromey <tom@tromey.com>
308 * symtab.c (struct main_info): Add destructor and initializers.
309 (main_progspace_key): Move. Change type.
310 (get_main_info): Update.
311 (main_info_cleanup): Remove.
312 (_initialize_symtab): Update.
314 2019-05-08 Tom Tromey <tom@tromey.com>
316 * registry.h (DECLARE_REGISTRY): Define the _key class.
318 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
320 * NEWS: Merge two 'New commands' sections.
322 2019-05-08 Joel Brobecker <brobecker@adacore.com>
324 * ada-valprint.c (ada_val_print_gnat_array): Remove language
325 parameter and use Ada language definition instead.
326 (ada_val_print_ptr): Remove unused language parameter.
327 (ada_val_print_num): Remove language parameter and use Ada language
329 (ada_val_print_enum, ada_val_print_flt): Remove unused language
331 (ada_val_print_struct_union, ada_val_print_ref): Remove language
332 parameter and use Ada language definition instead.
333 (ada_val_print_1): Update all ada_val_print_xxx calls.
334 Remove language parameter.
335 (ada_val_print): Update ada_val_print_1 call.
337 2019-05-08 Tom Tromey <tromey@adacore.com>
339 * remote.c (remote_hw_watchpoint_limit)
340 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
343 2019-05-08 Tom Tromey <tromey@adacore.com>
345 * maint.c (_initialize_maint_cmds): Move initialization code to
347 (watchdog, show_watchdog): Move to remote.c.
348 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
350 (_initialize_remote): Move initialization code from maint.c.
351 * defs.h (watchdog): Don't declare.
353 2019-05-08 Tom Tromey <tromey@adacore.com>
355 * tui/tui-interp.c: Include main.h.
356 * interps.c: Include main.h.
357 * main.h (interpreter_p): Declare.
358 * defs.h (interpreter_p): Don't declare.
360 2019-05-08 Tom Tromey <tromey@adacore.com>
362 * dwarf2loc.c: Include dwarf2read.h.
363 * defs.h (read_unsigned_leb128): Don't declare.
364 * dwarf2read.h (read_unsigned_leb128): Declare.
366 2019-05-08 Tom Tromey <tromey@adacore.com>
368 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
371 2019-05-08 Tom Tromey <tromey@adacore.com>
373 * utils.c (fputs_maybe_filtered): Reset style after paging, even
374 when no wrap column is set.
376 2019-05-08 Tom Tromey <tromey@adacore.com>
378 * c-lang.c (c_get_string): Handle non-C-style arrays.
380 2019-05-08 Tom Tromey <tromey@adacore.com>
382 * typeprint.c (print_offset_data::update): Print the bit offset,
383 not the number of bits remaining.
385 2019-05-08 Tom Tromey <tromey@adacore.com>
387 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
388 padding at end of comment.
390 2019-05-08 Tom Tromey <tromey@adacore.com>
392 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
395 2019-05-06 Tom Tromey <tom@tromey.com>
397 * common/scoped_mmap.c: Include common-defs.h.
398 * common/scoped_mmap.h: Don't include config.h.
400 2019-05-04 Tom Tromey <tom@tromey.com>
402 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
403 (struct aarch64_call_info): Add initializers.
404 <si>: Now a std::vector.
405 (pass_on_stack, aarch64_push_dummy_call): Update.
407 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
408 Tom Tromey <tom@tromey.com>
410 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
411 (ppc_threads): Now a std::vector. Now static.
412 (hwdebug_find_thread_points_by_tid)
413 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
416 2019-05-04 Tom Tromey <tom@tromey.com>
418 * arc-tdep.c (arc_tdesc_init): Return bool.
420 2019-05-04 Tom Tromey <tom@tromey.com>
422 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
423 Use gdb_assert_not_reached.
425 2019-05-04 Tom Tromey <tom@tromey.com>
427 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
430 2019-05-04 Tom Tromey <tom@tromey.com>
432 * arc-tdep.c (arc_tdesc_init): Use bool.
434 2019-05-04 Tom Tromey <tom@tromey.com>
436 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
438 2019-05-04 Tom Tromey <tom@tromey.com>
440 * cli/cli-cmds.c (valid_command_p): Return bool.
442 2019-05-04 Tom Tromey <tom@tromey.com>
444 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
445 * command.h (valid_user_defined_cmd_name_p): Channge return type.
447 2019-05-04 Raul Tambre <raul@tambre.ee>
449 * python/lib/gdb/prompt.py (_ExtendedPrompt)
450 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
451 operator for comparison.
453 2019-05-04 Tom Tromey <tom@tromey.com>
455 * psymtab.c (psymbol_name_matches, match_partial_symbol)
456 (lookup_partial_symbol, print_partial_symbols)
457 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
458 (psymbol_compare): Update.
459 (add_psymbol_to_bcache): Clear the entire psymbol.
460 (maintenance_check_psymtabs): Update.
461 * psympriv.h (struct partial_symbol): Don't derive from
463 <obj_section, unrelocated_address, address,
464 set_unrelocated_address>: Update.
466 * dwarf-index-write.c (write_psymbols, debug_names::insert)
467 (debug_names::write_psymbols): Update.
469 2019-05-04 Tom de Vries <tdevries@suse.de>
471 * contrib/cc-with-tweaks.sh: Support -n arg.
473 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
475 * corelow.c (core_target::detach): Ensure frame cache and
476 register caches are cleared.
477 inferior.c (exit_inferior_1): Likewise.
479 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
480 Tom Tromey <tom@tromey.com>
482 * dictionary.c (collate_pending_symbols_by_language): Remove
483 "struct" from foreach.
484 * symtab.c (lookup_global_symbol_from_objfile)
485 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
487 * ser-tcp.c (net_open): Remove "struct" from foreach.
488 * objfiles.c (objfile_relocate, objfile_rebase)
489 (objfile_has_symbols): Remove "struct" from foreach.
490 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
492 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
494 * darwin-nat.c (thread_info_from_private_thread_info): Remove
495 "struct" from foreach.
496 * ada-lang.c (create_excep_cond_exprs)
497 (ada_exception_catchpoint_cond_string): Remove "struct" from
500 2019-05-03 Tom Tromey <tromey@adacore.com>
502 * ada-exp.y (convert_char_literal): Check suffix of each
505 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
508 * ada-exp.y (yywrap): Don't define.
509 * ada-lex.l (%option): Add noyywrap
512 2019-05-03 Eli Zaretskii <eliz@gnu.org>
514 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
515 _WIN32_WINNT to the XP level, unless already defined to a higher
518 * unittests/parse-connection-spec-selftests.c:
520 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
523 * symfile.c (find_separate_debug_file): Remove colon from the
524 drive spec of DOS/Windows file names of the target, so that the
525 file name produced from DEBUGDIR and the target's directory will
526 be valid on DOS/Windows systems.
528 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
530 * rust-lang.c (val_print_struct): Handle printing structures
533 2019-05-02 Tom Tromey <tromey@adacore.com>
535 * valarith.c (_initialize_valarith): Remove.
537 2019-05-01 Tom Tromey <tromey@adacore.com>
539 * ada-lang.c (ada_value_primitive_field): Treat more fields as
542 2019-05-01 Tom Tromey <tromey@adacore.com>
544 * ada-lang.c (ada_value_assign): Correctly compute starting offset
545 for big-endian copies.
547 2019-04-30 Ali Tamur <tamur@google.com>
548 * gdb/dwarf2read.c (read_3_bytes): New declaration.
549 (read_attribute_value): Added DW_FORM_strx1-4 cases.
550 (read_3_bytes): New function.
552 2019-04-30 Joel Brobecker <brobecker@adacore.com>
554 * windows-nat.c (main_thread_id): Delete.
555 (handle_output_debug_string): Replace main_thread_id by
556 current_event.dwThreadId.
557 (fake_create_process): Likewise.
558 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
559 Do not set main_thread_id.
560 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
561 current_event.dwThreadId.
562 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
564 2019-04-30 Joel Brobecker <brobecker@adacore.com>
566 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
567 Use current_event.dwThreadId instead of main_thread_id.
569 2019-04-30 Tom Tromey <tromey@adacore.com>
571 * ada-lang.c (ada_lookup_simple_minsyms): New function.
572 (create_excep_cond_exprs): Iterate over program spaces.
573 (ada_exception_catchpoint_cond_string): Examine all minimal
574 symbols for exception types.
576 2019-04-30 Tom Tromey <tromey@adacore.com>
579 * dwarf2read.c (process_structure_scope): Handle case where type
580 has template parameters but no symbol was created.
582 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
583 Chris January <chris.january@arm.com>
585 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
587 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
589 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
591 * f-typeprint.c (f_print_type): Update rules for printing
593 (f_type_print_varspec_suffix): Likewise.
595 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
596 Chris January <chris.january@arm.com>
598 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
601 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
603 * f-lang.c (build_fortran_types): Change name of void type to
605 * f-typeprint.c (f_type_print_base): Print the name of the void
606 type, rather than a fixed string.
607 * f-valprint.c (f_decorations): Use lower case void string.
609 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
610 Chris January <chris.january@arm.com>
612 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
615 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
616 Chris January <chris.january@arm.com>
617 David Lecomber <david.lecomber@arm.com>
619 * f-exp.y (BINOP_INTRINSIC): New token.
620 (exp): New parser rule handling BINOP_INTRINSIC.
621 (f77_keywords): Add new builtin procedures.
622 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
623 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
624 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
625 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
626 (print_unop_subexp_f): New function.
627 (print_binop_subexp_f): New function.
628 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
629 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
630 (dump_subexp_body_f): Likewise.
631 (operator_check_f): Likewise.
632 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
633 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
635 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
637 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
639 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
640 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
641 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
642 (operator_length_f): New fuction.
643 (print_subexp_f): New function.
644 (op_name_f): New function.
645 (dump_subexp_body_f): New function.
646 (operator_check_f): New function.
647 (exp_descriptor_f): Replace standard expression handling functions
649 * gdb/fortran-operator.def: New file.
650 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
651 * gdb/std-operator.def: Remove UNOP_KIND.
653 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
655 * std-operator.def: Remove unbalanced, stray double quote
658 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
659 Chris January <chris.january@arm.com>
660 Daniel Everett <daniel.everett@arm.com>
661 Nick Forrington <nick.forrington@arm.com>
662 Richard Bunt <richard.bunt@arm.com>
664 * cp-valprint.c (cp_print_value_fields): Allow an additional level
665 of depth when printing anonymous structs or unions.
666 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
667 Don't print either the top-level value, or the children if the
668 max-depth is exceeded.
669 (ppscm_print_children): When printing the key of a map, allow one
670 extra level of depth.
671 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
672 print either the top-level value, or the children if the max-depth
674 (print_children): When printing the key of a map, allow one extra
676 * python/py-value.c (valpy_format_string): Add max_depth keyword.
677 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
678 (user_print_options): Initialise max_depth field.
679 (val_print_scalar_or_string_type_p): New function.
680 (val_print): Check to see if the max depth has been reached.
681 (val_print_check_max_depth): Define new function.
682 (show_print_max_depth): New function.
683 (_initialize_valprint): Add 'print max-depth' option.
684 * valprint.h (struct value_print_options) <max_depth>: New field.
685 (val_print_check_max_depth): Declare new function.
686 * NEWS: Document new feature.
688 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
690 * ada-lang.c (ada_language_defn): Initialise new field.
691 * c-lang.c (c_is_string_type_p): New function.
692 (c_language_defn): Initialise new field.
693 (cplus_language_defn): Initialise new field.
694 (asm_language_defn): Initialise new field.
695 (minimal_language_defn): Initialise new field.
696 * c-lang.h (c_is_string_type_p): Declare new function.
697 * d-lang.c (d_language_defn): Initialise new field.
698 * f-lang.c (f_is_string_type_p): New function.
699 (f_language_defn): Initialise new field.
700 * go-lang.c (go_is_string_type_p): New function.
701 (go_language_defn): Initialise new field.
702 * language.c (default_is_string_type_p): New function.
703 (unknown_language_defn): Initialise new field.
704 (auto_language_defn): Initialise new field.
705 * language.h (struct language_defn) <la_is_string_type_p>: New
707 (default_is_string_type_p): Declare new function.
708 * m2-lang.c (m2_language_defn): Initialise new field.
709 * objc-lang.c (objc_language_defn): Initialise new field.
710 * opencl-lang.c (opencl_language_defn): Initialise new field.
711 * p-lang.c (pascal_is_string_type_p): New function.
712 (pascal_language_defn): Initialise new field.
713 * rust-lang.c (rust_is_string_type_p): New function.
714 (rust_language_defn): Initialise new field.
716 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
718 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
720 * ada-lang.c (ada_language_defn): Initialise new field.
721 * c-lang.c (c_language_defn): Likewise.
722 (cplus_language_defn): Likewise.
723 (asm_language_defn): Likewise.
724 (minimal_language_defn): Likewise.
725 * d-lang.c (d_language_defn): Likewise.
726 * f-lang.c (f_language_defn): Likewise.
727 * go-lang.c (go_language_defn): Likewise.
728 * language.c (unknown_language_defn): Likewise.
729 (auto_language_defn): Likewise.
730 * m2-lang.c (m2_language_defn): Likewise.
731 * objc-lang.c (objc_language_defn): Likewise.
732 * opencl-lang.c (opencl_language_defn): Likewise.
733 * p-lang.c (pascal_language_defn): Likewise.
734 * rust-lang.c (rust_language_defn): Likewise.
736 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
738 * ada-lang.c (ada_is_character_type): Change return type to bool.
739 (ada_is_string_type): Likewise.
740 * ada-lang.h (ada_is_character_type): Update declaration
741 (ada_is_string_type): Likewise.
743 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
745 Support style in 'frame|thread apply'
747 * gdbcmd.h (execute_command_to_string): New term_out parameter.
748 * record.c (record_start, record_stop): Update callers of
749 execute_command_to_string with false.
750 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
751 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
753 (class string_file): New constructor with term_out parameter.
754 Override methods term_out and can_emit_style_escape. New member
756 (class stdio_file): Override can_emit_style_escape.
757 (class tee_file): Override term_out and can_emit_style_escape.
758 * utils.h (can_emit_style_escape): Remove.
759 * utils.c (can_emit_style_escape): Likewise.
760 Update all callers of can_emit_style_escape (SOMESTREAM) to
761 SOMESTREAM->can_emit_style_escape.
762 * source-cache.c (source_cache::get_source_lines): Likewise.
763 * stack.c (frame_apply_command_count): Call execute_command_to_string
764 passing the term_out characteristic of the current gdb_stdout.
765 * thread.c (thr_try_catch_cmd): Likewise.
766 * top.c (execute_command_to_string): pass term_out parameter
767 to construct the string_file for the command output.
768 * ui-file.c (term_cli_styling): New function (most code moved
769 from utils.c can_emit_style_escape).
770 (string_file::string_file, string_file::can_emit_style_escape,
771 stdio_file::can_emit_style_escape, tee_file::term_out,
772 tee_file::can_emit_style_escape): New functions.
774 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
776 * NEWS: Mention the new set|show may-call-functions.
777 * infcall.c (may_call_functions_p): New variable.
778 (show_may_call_functions_p): New function.
779 (call_function_by_hand_dummy): Throws an error if not
781 (_initialize_infcall): Call add_setshow_boolean_cmd for
784 2019-04-25 Keith Seitz <keiths@redhat.com>
787 * cp-support.c (inspect_type): Don't attempt substitutions
788 of symbol with the same name.
790 2019-04-25 Tom Tromey <tromey@adacore.com>
793 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
796 2019-04-25 Tom Tromey <tromey@adacore.com>
798 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
800 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
801 (gdb_xml_parser::parse): Use std::move.
802 * python/python-internal.h (gdbpy_convert_exception): Take a const
804 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
806 * python/py-utils.c (gdbpy_convert_exception): Take a const
808 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
810 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
812 * mi/mi-main.c (mi_print_exception): Take a const reference.
813 * main.c (handle_command_errors): Take a const reference.
814 * linespec.c (parse_linespec): Use std::move.
815 * infcall.c (run_inferior_call): Use std::move.
816 (call_function_by_hand_dummy): Use std::move.
817 * exec.c (try_open_exec_file): Use std::move.
818 * exceptions.h (exception_print, exception_fprintf)
819 (exception_print_same): Update.
820 * exceptions.c (print_exception, exception_print)
821 (exception_fprintf, exception_print_same): Change parameters to
823 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
824 * common/new-op.c: Use std::move.
825 * common/common-exceptions.h (struct gdb_exception): Add move
827 (struct gdb_exception_error, struct gdb_exception_quit, struct
828 gdb_quit_bad_alloc): Change constructor to move constructor.
829 (throw_exception): Change parameter to rvalue reference.
830 * common/common-exceptions.c (throw_exception): Take rvalue
832 * cli/cli-interp.c (safe_execute_command): Use std::move.
833 * breakpoint.c (insert_bp_location, location_to_sals): Use
836 2019-04-25 Tom Tromey <tromey@adacore.com>
838 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
839 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
840 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
841 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
842 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
843 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
844 guile/scm-value.c: Use unpack.
845 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
846 gdbscm_gdb_exception.
847 (gdbscm_throw_gdb_exception): Likewise.
848 (struct gdbscm_gdb_exception): New.
849 (unpack): New function.
850 (gdbscm_wrap): Use unpack.
852 2019-04-25 Tom Tromey <tromey@adacore.com>
854 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
855 (gdb_rl_callback_handler): Use std::move.
856 * common/common-exceptions.h (struct gdb_exception): Add move
858 (throw_exception_sjlj): Change "exception" to const reference.
859 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
860 (throw_exception_sjlj): Change "exception" to const reference.
862 2019-04-25 Tom Tromey <tromey@adacore.com>
864 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
865 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
866 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
868 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
870 * mi/mi-interp.c (mi_interp::exec): Update.
871 * linespec.c (parse_linespec): Update.
872 * infcall.c (run_inferior_call): Update.
873 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
874 * guile/scm-symbol.c (gdbscm_lookup_symbol)
875 (gdbscm_lookup_global_symbol): Update.
876 * guile/scm-param.c (gdbscm_parameter_value): Update.
877 * guile/scm-frame.c (gdbscm_frame_read_register)
878 (gdbscm_frame_read_var): Update.
879 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
880 * exec.c (try_open_exec_file): Update.
881 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
882 (gdb_rl_callback_handler): Update.
883 * common/common-exceptions.h (exception_none): Don't declare.
884 * common/common-exceptions.c (exception_none): Don't define.
885 (struct catcher) <exception>: Update.
886 * cli/cli-interp.c (safe_execute_command): Update.
887 * breakpoint.c (insert_bp_location, location_to_sals): Update.
889 2019-04-25 Ali Tamur <tamur@google.com>
891 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
892 (read_attribute_value): Likewise.
893 (dwarf2_read_addr_index): Update comment.
894 (read_str_index): Add DW_FORM_strx.
895 (dwarf2_string_attr): Likewise.
896 (dwarf2_const_value_attr): Likewise.
897 (dump_die_shallow): Likewise.
898 (dwarf2_fetch_constant_bytes): Likewise.
899 (skip_form_bytes): Likewise.
900 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
902 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
906 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
907 OFFSET. Verify if current mapping contains an ELF header.
908 (linux_find_memory_regions_full): Adjust call to
911 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
912 Kang Li <kanglictf@gmail.com>
916 * dwarf2-frame.c (read_initial_length): Be consistent about using
917 unsigned representation of length.
918 (decode_frame_entry_1): Likewise. Check for wraparound of
919 end pointer as well as buffer overflow.
921 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
923 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
926 2019-04-24 Tom Tromey <tromey@adacore.com>
928 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
930 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
932 * s12z-tdep.c (s12z_unwind_pc): Delete.
933 (s12z_unwind_sp): Delete.
934 (s12z_gdbarch_init): Don't register deleted functions with
937 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
939 * rl78-tdep.c (rl78_unwind_sp): Delete.
940 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
942 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
944 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
945 (xstormy16_unwind_pc): Delete.
946 (xstormy16_dummy_id): Delete.
947 (xstormy16_gdbarch_init): Don't register deleted functions with
950 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
952 * vax-tdep.c (vax_unwind_pc): Delete.
953 (vax_gdbarch_init): Don't register deleted function with gdbarch.
955 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
957 * v850-tdep.c (v850_unwind_sp): Delete.
958 (v850_unwind_pc): Delete.
959 (v850_dummy_id): Delete.
960 (v850_gdbarch_init): Don't register deleted functions with
963 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
965 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
966 (tilegx_unwind_pc): Delete.
967 (tilegx_unwind_dummy_id): Delete.
968 (tilegx_gdbarch_init): Don't register deleted functions with
971 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
973 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
974 (tic6x_dummy_id): Delete.
975 (tic6x_gdbarch_init): Don't register deleted functions with
978 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
980 * sparc-tdep.c (sparc_unwind_pc): Delete.
981 (sparc32_gdbarch_init): Don't register deleted function with
984 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
986 * sh-tdep.c (sh_unwind_sp): Delete.
987 (sh_unwind_pc): Delete.
988 (sh_dummy_id): Delete.
989 (sh_gdbarch_init): Don't register deleted functions with
992 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
994 * score-tdep.c (score_unwind_sp): Delete.
995 (score_unwind_pc): Delete.
996 (score_dummy_id): Delete.
997 (score_gdbarch_init): Don't register deleted functions with
1000 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1002 * rx-tdep.c (rx_unwind_pc): Delete.
1003 (rx_unwind_sp): Delete.
1004 (rx_dummy_id): Delete.
1005 (rx_gdbarch_init): Don't register deleted functions with
1006 gdbarch. Update comment.
1008 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1010 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
1011 (rs6000_dummy_id): Delete.
1012 (rs6000_gdbarch_init): Don't register deleted functions with
1015 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1017 * or1k-tdep.c (or1k_dummy_id): Delete.
1018 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
1020 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1022 * nios2-tdep.c (nios2_dummy_id): Delete.
1023 (nios2_unwind_sp): Delete.
1024 (nios2_gdbarch_init): Don't register deleted functions with
1027 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1029 * nds32-tdep.c (nds32_dummy_id): Delete.
1030 (nds32_unwind_pc): Delete.
1031 (nds32_unwind_sp): Delete.
1032 (nds32_gdbarch_init): Don't register deleted functions with
1035 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1037 * msp430-tdep.c (msp430_unwind_pc): Delete.
1038 (msp430_unwind_sp): Delete.
1039 (msp430_dummy_id): Delete.
1040 (msp430_gdbarch_init): Don't register deleted functions with
1043 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1045 * moxie-tdep.c (moxie_unwind_sp): Delete.
1046 (moxie_unwind_pc): Delete.
1047 (moxie_dummy_id): Delete.
1048 (moxie_gdbarch_init): Don't register deleted functions with
1051 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1053 * mn10300-tdep.c (mn10300_dummy_id): Delete.
1054 (mn10300_unwind_pc): Delete.
1055 (mn10300_unwind_sp): Delete.
1056 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
1058 (mn10300_frame_unwind_init): Don't register deleted functions with
1061 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1063 * mep-tdep.c (mep_unwind_pc): Delete.
1064 (mep_unwind_sp): Delete.
1065 (mep_dummy_id): Delete.
1066 (mep_gdbarch_init): Don't register deleted functions with
1069 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1071 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
1072 (m68hc11_unwind_sp): Delete.
1073 (m68hc11_gdbarch_init): Don't register deleted functions with
1076 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1078 * m32r-tdep.c (m32r_unwind_sp): Delete.
1079 (m32r_unwind_pc): Delete.
1080 (m32r_dummy_id): Delete.
1081 (m32r_gdbarch_init): Don't register deleted functions with
1084 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1086 * m32c-tdep.c (m32c_unwind_pc): Delete.
1087 (m32c_unwind_sp): Delete.
1088 (m32c_dummy_id): Delete.
1089 (m32c_gdbarch_init): Don't register deleted functions with
1092 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1094 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
1095 (lm32_unwind_pc): Delete.
1096 (lm32_dummy_id): Delete.
1097 (lm32_gdbarch_init): Don't register deleted functions with
1100 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1102 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
1103 (iq2000_unwind_pc): Delete.
1104 (iq2000_dummy_id): Delete.
1105 (iq2000_gdbarch_init): Don't register deleted functions with
1108 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1110 * nds32-tdep.c (nds32_type_align): Delete.
1111 (nds32_push_dummy_call): Use type_align instead.
1113 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1115 * arm-tdep.c (arm_type_align): Only handle vector override case.
1116 (arm_push_dummy_call): Use type_align.
1117 (arm_gdbarch_init): Register arm_type_align gdbarch function.
1119 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1121 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
1123 (pass_on_stack): Use type_align.
1124 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
1127 2019-04-23 Tom Tromey <tromey@adacore.com>
1129 * dwarf2read.c (line_header::file_name_at): Remove unused
1132 2019-04-23 Tom de Vries <tdevries@suse.de>
1135 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
1139 2019-03-27 Ali Tamur <tamur@google.com>
1141 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
1142 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
1143 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
1144 (dwarf_expr_context::get_addr_index): Likewise
1145 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
1146 (symbol_needs_eval_context::get_addr_index): Likewise
1147 (disassemble_dwarf_expression): Add DW_OP_addrx
1148 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
1149 (read_cutu_die_from_dwo): Update comment
1150 (skip_one_die): Add DW_FORM_addrx
1151 (read_attribute_value): Likewise
1152 (var_decode_location): Add DW_OP_addrx
1153 (dwarf2_const_value_attr): Add DW_FORM_addrx
1154 (dump_die_shallow): Likewise
1155 (dwarf2_fetch_constant_bytes): Likewise
1156 (decode_locdesc): Add DW_OP_addrx
1157 (skip_form_bytes): Add DW_FORM_addrx
1159 2019-04-22 Ali Tamur <tamur@google.com>
1161 * MAINTAINERS (Write After Approval): Add self.
1163 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
1165 * solib-svr4.c (get_svr4_info): Add pspace parameter.
1166 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
1167 (open_symbol_file_object): Likewise.
1168 (svr4_default_sos): Add info parameter.
1169 (svr4_read_so_list): Likewise.
1170 (svr4_current_sos_direct): Adjust functions calls to pass down
1172 (svr4_current_sos_1): Add info parameter.
1173 (svr4_current_sos): Call get_svr4_info, pass info down to
1175 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
1177 (svr4_in_dynsym_resolve_code): Pass current_program_space to
1179 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
1181 (probes_table_remove_objfile_probes): Likewise.
1182 (register_solib_event_probe): Add info parameter.
1183 (solist_update_incremental): Pass info parameter down to
1185 (disable_probes_interface): Add info parameter.
1186 (svr4_handle_solib_event): Pass current_program_space to
1187 get_svr4_info. Adjust disable_probes_interface cleanup.
1188 (svr4_create_probe_breakpoints): Add info parameter, pass it
1189 down to register_solib_event_probe.
1190 (svr4_create_solib_event_breakpoints): Add info parameter,
1191 pass it down to svr4_create_probe_breakpoints.
1192 (enable_break): Pass info down to
1193 svr4_create_solib_event_breakpoints.
1194 (svr4_solib_create_inferior_hook): Pass current_program_space to
1196 (svr4_clear_solib): Likewise.
1198 2019-04-22 Pedro Alves <palves@redhat.com>
1200 * solib-svr4.c (svr4_free_objfile_observer): New.
1201 (probe_and_action::objfile): New field.
1202 (probes_table_htab_remove_objfile_probes)
1203 (probes_table_remove_objfile_probes): New functions.
1204 (register_solib_event_probe): Add 'objfile' parameter. Store it
1205 in the new probe_and_action. Don't store the probe in 'lookup'.
1206 (svr4_create_probe_breakpoints): Pass objfile to
1207 register_solib_event_probe.
1208 (_initialize_svr4_solib): Register a free_objfile observer.
1210 2019-04-19 Tom Tromey <tom@tromey.com>
1212 * common/queue.h: Remove.
1214 2019-04-19 Tom Tromey <tom@tromey.com>
1216 * event-loop.c: Don't include "common/queue.h".
1218 2019-04-19 Tom Tromey <tom@tromey.com>
1220 * remote.c (remote_target): Use delete.
1221 * remote-notif.h: Include <list>, not "common/queue.h".
1222 (notif_client_p): Remove typedef.
1223 (remote_notif_state): Add constructor, destructor, initializer.
1224 <notif_queue>: Now a std::list.
1225 (remote_notif_state_xfree): Don't declare.
1226 * remote-notif.c (remote_notif_process, handle_notification)
1227 (remote_notif_state_allocate): Update.
1228 (~remote_notif_state): Rename from remote_notif_state_xfree.
1230 2019-04-19 Tom Tromey <tom@tromey.com>
1232 * symfile.c (reread_symbols): Update.
1233 * objfiles.c (objfile_register_static_link)
1234 (objfile_lookup_static_link): Update
1235 (~objfile) Don't delete static_links.
1236 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
1238 2019-04-19 Tom Tromey <tom@tromey.com>
1240 * type-stack.h (struct type_stack) <insert>: Constify string.
1241 * type-stack.c (type_stack::insert): Constify string.
1242 * gdbtypes.h (lookup_template_type): Update.
1243 (address_space_name_to_int): Update.
1244 * gdbtypes.c (address_space_name_to_int): Make space_identifier
1246 (lookup_template_type): Make name const.
1247 * c-exp.y: Update rules.
1248 (lex_one_token, classify_name, classify_inner_name)
1249 (c_print_token): Update.
1250 * p-exp.y: Update rules.
1252 * f-exp.y: Update rules.
1254 * d-exp.y: Update rules.
1255 (lex_one_token, classify_name, classify_inner_name): Update.
1256 * parse.c (write_dollar_variable, copy_name): Return std::string.
1257 * parser-defs.h (copy_name): Change return type.
1258 * m2-exp.y: Update rules.
1260 * go-exp.y (lex_one_token): Update.
1262 (classify_unsafe_function, classify_packaged_name)
1263 (classify_name, yylex): Update.
1265 2019-04-19 Sergei Trofimovich <siarheit@google.com>
1267 * configure.ac: add --enable-source-highlight switch.
1268 * configure: Regenerate.
1269 * top.c (print_gdb_version): plumb --enable-source-highlight
1270 status to "show configuration".
1272 2019-04-19 Tom Tromey <tromey@adacore.com>
1274 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
1276 (empty_record, ada_template_to_fixed_record_type_1)
1277 (template_to_static_fixed_type)
1278 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
1279 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
1280 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
1283 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
1286 * source.c (print_source_lines_base): Advance "iter" when a
1287 control character is seen.
1289 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1291 * inferior.h (struct infcall_suspend_state_deleter):
1292 Catch exception in destructor to avoid crash.
1294 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1296 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
1297 close to the add_com "shell".
1299 2019-04-18 Tom Tromey <tromey@adacore.com>
1301 * process-stratum-target.h (class process_stratum_target)
1302 <stratum>: Add "final".
1304 2019-04-17 Tom Tromey <tromey@adacore.com>
1306 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
1307 against nullptr before use.
1309 2019-04-17 Alan Hayward <alan.hayward@arm.com>
1311 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
1313 2019-04-17 Jim Wilson <jimw@sifive.com>
1314 Andrew Burgess <andrew.burgess@embecosm.com>
1316 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
1317 code read might fail, assume 4-byte breakpoint in that case.
1319 2019-04-15 Leszek Swirski <leszeks@google.com>
1321 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
1322 rather than a hand-rolled POD check when checking for forced MEMORY
1325 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1327 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
1328 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
1330 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
1331 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
1332 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
1335 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1337 * aarch64-linux-nat.c
1338 (aarch64_linux_nat_target::thread_architecture): Add override.
1339 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
1342 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1344 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
1346 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
1348 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
1349 target types of size 96-bits, add some additional comments, and
1350 check that the builtin type we found was the correct size.
1352 2019-04-12 Eli Zaretskii <eliz@gnu.org>
1354 * utils.c (prompt_for_continue): Don't restore the styling at the
1355 end, as applied_style has the wrong value. This fixes styling in
1356 long lists of file names that are interrupted by the "Continue?"
1359 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
1361 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
1362 * c-lang.c (c_language_defn): Likewise.
1363 (cplus_language_defn): Likewise.
1364 (asm_language_defn): Likewise.
1365 (minimal_language_defn): Likewise.
1366 * d-lang.c (d_language_defn): Likewise.
1367 * f-lang.c (f_language_defn): Likewise.
1368 * go-lang.c (go_language_defn): Likewise.
1369 * language.c (unknown_language_defn): Likewise.
1370 (auto_language_defn): Likewise.
1371 * language.h (struct language_defn): Remove la_magic field.
1372 (LANG_MAGIC): Delete.
1373 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
1374 * objc-lang.c (objc_language_defn): Likewise.
1375 * opencl-lang.c (opencl_language_defn): Likewise.
1376 * p-lang.c (pascal_language_defn): Likewise.
1377 * rust-lang.c (rust_language_defn): Likewise.
1379 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1381 * riscv-tdep.c (riscv_type_align): New function.
1382 (riscv_type_alignment): Delete.
1383 (riscv_arg_location): Use 'type_align'.
1384 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
1386 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1388 * gdbtypes.c (type_align): A struct with no non-static fields also
1391 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1393 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
1395 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
1397 (riscv_struct_info::analyse): New implementation using new
1398 analyse_inner member function.
1399 (riscv_struct_info::field_offset): New member function.
1400 (riscv_struct_info::m_offsets): New member variable.
1401 (riscv_struct_info::analyse_inner): New private member function,
1402 takes the old implementation of riscv_struct_info::analyse but
1403 extended to track field offsets.
1404 (riscv_call_arg_struct): Update the struct folding special cases
1405 to handle cases where empty C++ structs, which are non-zero
1407 (riscv_arg_location): Initialise the length of each location, a
1408 non-zero length now indicates the location is in use.
1409 (riscv_push_dummy_call): Allow for the first location having a
1410 non-zero offset when setting up arguments.
1411 (riscv_return_value): Likewise, but for return values.
1413 2019-04-11 Tom Tromey <tromey@adacore.com>
1415 * utils.c (internal_vproblem): Make "msg" const.
1417 2019-04-11 Alan Hayward <alan.hayward@arm.com>
1419 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
1420 * trad-frame.c (trad_frame_reset_saved_regs): New function.
1421 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
1422 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
1424 2019-04-10 Kevin Buettner <kevinb@redhat.com>
1426 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
1428 (fill_gregset): Call amd64_linux_collect_native_gregset instead
1429 of amd64_collect_native_gregset.
1430 (amd64_linux_nat_target::store_registers): Likewise.
1432 2019-04-10 Tom Tromey <tom@tromey.com>
1434 * symtab.c (lookup_global_symbol_from_objfile)
1435 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
1436 * objfiles.h (class separate_debug_iterator): New.
1437 (class separate_debug_range): New.
1438 (struct objfile) <separate_debug_objfiles>: New method.
1439 (objfile_separate_debug_iterate): Don't declare.
1440 * objfiles.c (separate_debug_iterator::operator++): Rename from
1441 objfile_separate_debug_iterate.
1442 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
1444 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
1447 2019-04-10 Tom Tromey <tom@tromey.com>
1449 * symfile.c (reread_symbols): Remove old comment.
1450 * objfiles.c (free_all_objfiles): Fix a typo.
1452 2019-04-10 Tom Tromey <tom@tromey.com>
1454 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
1455 * minsyms.c (lookup_minimal_symbol): Use foreach.
1456 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
1457 (lookup_minimal_symbol_solib_trampoline): Likewise.
1458 * symfile.c (reread_symbols): Use foreach.
1460 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
1461 Tom Tromey <tromey@adacore.com>
1464 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
1465 (rust_lex_int_test): Change "value" to be LONGEST.
1466 (rust_lex_tests): Add test for long integer literal.
1468 2019-04-09 Tom Tromey <tromey@adacore.com>
1470 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
1472 (extended_remote_target::attach): Update.
1473 (remote_target::remote_notice_new_inferior): Update.
1474 (remote_target::add_current_inferior_and_thread): Update.
1475 * inferior.c (exit_inferior_1): Use "false".
1476 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
1478 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
1480 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
1481 the "start" command.
1483 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1485 * python/py-inferior.c (infpy_thread_from_thread_handle):
1486 Adjust comments to reflect renaming of thread_from_thread_handle
1487 to thread_from_handle. Adjust keywords. Fix type error message.
1488 (inferior_object_methods): Add thread_from_handle. Retain
1489 thread_from_thread_handle, but mark it as deprecated.
1491 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1493 * gdbthread.h (find_thread_by_handle): Revise declaration.
1494 * thread.c (find_thread_by_handle): Likewise. Adjust
1496 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
1497 support for buffer objects as handles.
1499 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1501 * python/py-infthread.c (thpy_thread_handle): New function.
1502 (thread_object_methods): Register thpy_thread_handle.
1504 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1506 * gdbthread.h (thread_to_thread_handle): Declare.
1507 * thread.c (gdbtypes.h): Include.
1508 (thread_to_thread_handle): New function.
1510 * target.h (struct target_ops): Add thread_info_to_thread_handle.
1511 (target_thread_info_to_thread_handle): Declare.
1512 * target.c (target_thread_info_to_thread_handle): New function.
1513 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
1514 * target-delegates.c: Regenerate.
1516 * linux-thread-db.c (class thread_db_target): Add method
1517 thread_info_to_thread_handle.
1518 (thread_db_target::thread_info_to_thread_handle): Define.
1519 * remote.c (class remote_target): Add new method
1520 thread_info_to_thread_handle.
1521 (remote_target::thread_info_to_thread_handle): Define.
1523 2019-04-08 Pedro Alves <palves@redhat.com>
1525 * common/common-exceptions.c (throw_exception): Don't create
1526 named object to throw; throw directly.
1527 (throw_it): Likewise. Don't initialize gdb_exception::message
1528 here, with new; pass FMT and AP to the ctor instead.
1529 * common/common-exceptions.h: Include <string>.
1530 (gdb_exception::gdb_exception(enum return_reason, enum errors,
1531 const char *, va_list)): New ctor. Use std::make_shared.
1532 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
1534 (gdb_exception_error::gdb_exception_error(enum errors, const char
1536 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
1538 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
1540 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
1541 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
1544 2019-04-08 Tom Tromey <tom@tromey.com>
1546 * valops.c (value_rtti_indirect_type): Replace throw_exception
1548 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
1550 * thread.c (thr_try_catch_cmd): Replace throw_exception with
1552 * target.c (target_translate_tls_address): Replace throw_exception
1554 * stack.c (frame_apply_command_count): Replace throw_exception
1556 * solib-spu.c (append_ocl_sos): Replace throw_exception with
1558 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
1560 * rs6000-tdep.c (rs6000_frame_cache)
1561 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
1562 * remote.c: Replace throw_exception with throw.
1563 * record-full.c (record_full_message, record_full_wait_1)
1564 (record_full_restore): Replace throw_exception with throw.
1566 (get_thread_current_frame_id, record_btrace_start_replaying)
1567 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
1568 (cmd_record_btrace_start): Replace throw_exception with throw.
1569 * parse.c (parse_exp_in_context_1): Replace throw_exception with
1571 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
1572 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
1574 (find_linespec_symbols): Replace throw_exception with throw.
1575 * infrun.c (displaced_step_prepare, resume): Replace
1576 throw_exception with throw.
1577 * infcmd.c (post_create_inferior): Replace throw_exception with
1579 * inf-loop.c (inferior_event_handler): Replace throw_exception
1581 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
1582 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
1583 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
1584 (get_prev_frame_always, get_frame_pc_if_available)
1585 (get_frame_address_in_block_if_available, get_frame_language):
1586 Replace throw_exception with throw.
1587 * frame-unwind.c (frame_unwind_try_unwinder): Replace
1588 throw_exception with throw.
1589 * eval.c (fetch_subexp_value, evaluate_var_value)
1590 (evaluate_funcall, evaluate_subexp_standard): Replace
1591 throw_exception with throw.
1592 * dwarf2loc.c (call_site_find_chain)
1593 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
1594 Replace throw_exception with throw.
1595 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
1597 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
1599 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
1600 * completer.c (complete_line_internal): Replace throw_exception
1602 * compile/compile-object-run.c (compile_object_run): Replace
1603 throw_exception with throw.
1604 * cli/cli-script.c (process_next_line): Replace throw_exception
1606 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
1607 (btrace_enable, btrace_maint_update_pt_packets): Replace
1608 throw_exception with throw.
1609 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
1610 throw_exception with throw.
1611 * break-catch-throw.c (re_set_exception_catchpoint): Replace
1612 throw_exception with throw.
1613 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
1614 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
1615 * aarch64-tdep.c (aarch64_make_prologue_cache)
1616 (aarch64_make_stub_cache): Replace throw_exception with throw.
1618 2019-04-08 Tom Tromey <tom@tromey.com>
1620 * common/common-exceptions.c (throw_exception): Rename from
1621 throw_exception_cxx. Remove old copy. Make argument const.
1622 (throw_it): Create and throw exception objects directly.
1623 * common/common-exceptions.h (throw_exception): Make argument
1625 (struct gdb_exception_error): Add constructor.
1626 (struct gdb_exception_quit): Add constructor.
1628 2019-04-08 Tom Tromey <tom@tromey.com>
1630 * common/common-exceptions.h (exception_rethrow): Don't declare.
1631 (TRY_SJLJ): Update comment.
1632 (TRY, CATCH, END_CATCH): Remove.
1633 * common/common-exceptions.c (exception_rethrow): Remove.
1635 2019-04-08 Tom Tromey <tom@tromey.com>
1637 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
1639 (gdb_exception_error): Rename from
1640 gdb_exception_RETURN_MASK_ERROR.
1641 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
1642 (gdb_quit_bad_alloc): Update.
1643 * aarch64-tdep.c: Update.
1644 * ada-lang.c: Update.
1645 * ada-typeprint.c: Update.
1646 * ada-valprint.c: Update.
1647 * amd64-tdep.c: Update.
1648 * arch-utils.c: Update.
1649 * break-catch-throw.c: Update.
1650 * breakpoint.c: Update.
1652 * c-varobj.c: Update.
1653 * cli/cli-cmds.c: Update.
1654 * cli/cli-interp.c: Update.
1655 * cli/cli-script.c: Update.
1656 * common/common-exceptions.c: Update.
1657 * common/new-op.c: Update.
1658 * common/selftest.c: Update.
1659 * compile/compile-c-symbols.c: Update.
1660 * compile/compile-cplus-symbols.c: Update.
1661 * compile/compile-object-load.c: Update.
1662 * compile/compile-object-run.c: Update.
1663 * completer.c: Update.
1664 * corelow.c: Update.
1666 * cp-support.c: Update.
1667 * cp-valprint.c: Update.
1668 * darwin-nat.c: Update.
1669 * disasm-selftests.c: Update.
1670 * dtrace-probe.c: Update.
1671 * dwarf-index-cache.c: Update.
1672 * dwarf-index-write.c: Update.
1673 * dwarf2-frame-tailcall.c: Update.
1674 * dwarf2-frame.c: Update.
1675 * dwarf2loc.c: Update.
1676 * dwarf2read.c: Update.
1678 * event-loop.c: Update.
1679 * event-top.c: Update.
1681 * f-valprint.c: Update.
1682 * fbsd-tdep.c: Update.
1683 * frame-unwind.c: Update.
1685 * gdbtypes.c: Update.
1686 * gnu-v3-abi.c: Update.
1687 * guile/guile-internal.h: Update.
1688 * guile/scm-block.c: Update.
1689 * guile/scm-breakpoint.c: Update.
1690 * guile/scm-cmd.c: Update.
1691 * guile/scm-disasm.c: Update.
1692 * guile/scm-frame.c: Update.
1693 * guile/scm-lazy-string.c: Update.
1694 * guile/scm-math.c: Update.
1695 * guile/scm-param.c: Update.
1696 * guile/scm-ports.c: Update.
1697 * guile/scm-pretty-print.c: Update.
1698 * guile/scm-symbol.c: Update.
1699 * guile/scm-symtab.c: Update.
1700 * guile/scm-type.c: Update.
1701 * guile/scm-value.c: Update.
1702 * i386-linux-tdep.c: Update.
1703 * i386-tdep.c: Update.
1704 * inf-loop.c: Update.
1705 * infcall.c: Update.
1709 * language.c: Update.
1710 * linespec.c: Update.
1711 * linux-fork.c: Update.
1712 * linux-nat.c: Update.
1713 * linux-tdep.c: Update.
1714 * linux-thread-db.c: Update.
1716 * mi/mi-cmd-break.c: Update.
1717 * mi/mi-cmd-stack.c: Update.
1718 * mi/mi-interp.c: Update.
1719 * mi/mi-main.c: Update.
1720 * objc-lang.c: Update.
1721 * p-valprint.c: Update.
1723 * ppc-linux-tdep.c: Update.
1724 * printcmd.c: Update.
1725 * python/py-arch.c: Update.
1726 * python/py-breakpoint.c: Update.
1727 * python/py-cmd.c: Update.
1728 * python/py-finishbreakpoint.c: Update.
1729 * python/py-frame.c: Update.
1730 * python/py-framefilter.c: Update.
1731 * python/py-gdb-readline.c: Update.
1732 * python/py-inferior.c: Update.
1733 * python/py-infthread.c: Update.
1734 * python/py-lazy-string.c: Update.
1735 * python/py-linetable.c: Update.
1736 * python/py-objfile.c: Update.
1737 * python/py-param.c: Update.
1738 * python/py-prettyprint.c: Update.
1739 * python/py-progspace.c: Update.
1740 * python/py-record-btrace.c: Update.
1741 * python/py-record.c: Update.
1742 * python/py-symbol.c: Update.
1743 * python/py-type.c: Update.
1744 * python/py-unwind.c: Update.
1745 * python/py-utils.c: Update.
1746 * python/py-value.c: Update.
1747 * python/python.c: Update.
1748 * record-btrace.c: Update.
1749 * record-full.c: Update.
1750 * remote-fileio.c: Update.
1752 * riscv-tdep.c: Update.
1753 * rs6000-aix-tdep.c: Update.
1754 * rs6000-tdep.c: Update.
1755 * rust-exp.y: Update.
1756 * rust-lang.c: Update.
1757 * s390-tdep.c: Update.
1758 * selftest-arch.c: Update.
1759 * solib-dsbt.c: Update.
1760 * solib-frv.c: Update.
1761 * solib-spu.c: Update.
1762 * solib-svr4.c: Update.
1764 * sparc64-linux-tdep.c: Update.
1766 * symfile-mem.c: Update.
1767 * symmisc.c: Update.
1771 * tracefile-tfile.c: Update.
1772 * tui/tui.c: Update.
1773 * typeprint.c: Update.
1774 * unittests/cli-utils-selftests.c: Update.
1775 * unittests/parse-connection-spec-selftests.c: Update.
1777 * valprint.c: Update.
1780 * windows-nat.c: Update.
1781 * x86-linux-nat.c: Update.
1782 * xml-support.c: Update.
1784 2019-04-08 Tom Tromey <tom@tromey.com>
1786 * xml-support.c: Use C++ exception handling.
1787 * x86-linux-nat.c: Use C++ exception handling.
1788 * windows-nat.c: Use C++ exception handling.
1789 * varobj.c: Use C++ exception handling.
1790 * value.c: Use C++ exception handling.
1791 * valprint.c: Use C++ exception handling.
1792 * valops.c: Use C++ exception handling.
1793 * unittests/parse-connection-spec-selftests.c: Use C++ exception
1795 * unittests/cli-utils-selftests.c: Use C++ exception handling.
1796 * typeprint.c: Use C++ exception handling.
1797 * tui/tui.c: Use C++ exception handling.
1798 * tracefile-tfile.c: Use C++ exception handling.
1799 * top.c: Use C++ exception handling.
1800 * thread.c: Use C++ exception handling.
1801 * target.c: Use C++ exception handling.
1802 * symmisc.c: Use C++ exception handling.
1803 * symfile-mem.c: Use C++ exception handling.
1804 * stack.c: Use C++ exception handling.
1805 * sparc64-linux-tdep.c: Use C++ exception handling.
1806 * solib.c: Use C++ exception handling.
1807 * solib-svr4.c: Use C++ exception handling.
1808 * solib-spu.c: Use C++ exception handling.
1809 * solib-frv.c: Use C++ exception handling.
1810 * solib-dsbt.c: Use C++ exception handling.
1811 * selftest-arch.c: Use C++ exception handling.
1812 * s390-tdep.c: Use C++ exception handling.
1813 * rust-lang.c: Use C++ exception handling.
1814 * rust-exp.y: Use C++ exception handling.
1815 * rs6000-tdep.c: Use C++ exception handling.
1816 * rs6000-aix-tdep.c: Use C++ exception handling.
1817 * riscv-tdep.c: Use C++ exception handling.
1818 * remote.c: Use C++ exception handling.
1819 * remote-fileio.c: Use C++ exception handling.
1820 * record-full.c: Use C++ exception handling.
1821 * record-btrace.c: Use C++ exception handling.
1822 * python/python.c: Use C++ exception handling.
1823 * python/py-value.c: Use C++ exception handling.
1824 * python/py-utils.c: Use C++ exception handling.
1825 * python/py-unwind.c: Use C++ exception handling.
1826 * python/py-type.c: Use C++ exception handling.
1827 * python/py-symbol.c: Use C++ exception handling.
1828 * python/py-record.c: Use C++ exception handling.
1829 * python/py-record-btrace.c: Use C++ exception handling.
1830 * python/py-progspace.c: Use C++ exception handling.
1831 * python/py-prettyprint.c: Use C++ exception handling.
1832 * python/py-param.c: Use C++ exception handling.
1833 * python/py-objfile.c: Use C++ exception handling.
1834 * python/py-linetable.c: Use C++ exception handling.
1835 * python/py-lazy-string.c: Use C++ exception handling.
1836 * python/py-infthread.c: Use C++ exception handling.
1837 * python/py-inferior.c: Use C++ exception handling.
1838 * python/py-gdb-readline.c: Use C++ exception handling.
1839 * python/py-framefilter.c: Use C++ exception handling.
1840 * python/py-frame.c: Use C++ exception handling.
1841 * python/py-finishbreakpoint.c: Use C++ exception handling.
1842 * python/py-cmd.c: Use C++ exception handling.
1843 * python/py-breakpoint.c: Use C++ exception handling.
1844 * python/py-arch.c: Use C++ exception handling.
1845 * printcmd.c: Use C++ exception handling.
1846 * ppc-linux-tdep.c: Use C++ exception handling.
1847 * parse.c: Use C++ exception handling.
1848 * p-valprint.c: Use C++ exception handling.
1849 * objc-lang.c: Use C++ exception handling.
1850 * mi/mi-main.c: Use C++ exception handling.
1851 * mi/mi-interp.c: Use C++ exception handling.
1852 * mi/mi-cmd-stack.c: Use C++ exception handling.
1853 * mi/mi-cmd-break.c: Use C++ exception handling.
1854 * main.c: Use C++ exception handling.
1855 * linux-thread-db.c: Use C++ exception handling.
1856 * linux-tdep.c: Use C++ exception handling.
1857 * linux-nat.c: Use C++ exception handling.
1858 * linux-fork.c: Use C++ exception handling.
1859 * linespec.c: Use C++ exception handling.
1860 * language.c: Use C++ exception handling.
1861 * jit.c: Use C++ exception handling.
1862 * infrun.c: Use C++ exception handling.
1863 * infcmd.c: Use C++ exception handling.
1864 * infcall.c: Use C++ exception handling.
1865 * inf-loop.c: Use C++ exception handling.
1866 * i386-tdep.c: Use C++ exception handling.
1867 * i386-linux-tdep.c: Use C++ exception handling.
1868 * guile/scm-value.c: Use C++ exception handling.
1869 * guile/scm-type.c: Use C++ exception handling.
1870 * guile/scm-symtab.c: Use C++ exception handling.
1871 * guile/scm-symbol.c: Use C++ exception handling.
1872 * guile/scm-pretty-print.c: Use C++ exception handling.
1873 * guile/scm-ports.c: Use C++ exception handling.
1874 * guile/scm-param.c: Use C++ exception handling.
1875 * guile/scm-math.c: Use C++ exception handling.
1876 * guile/scm-lazy-string.c: Use C++ exception handling.
1877 * guile/scm-frame.c: Use C++ exception handling.
1878 * guile/scm-disasm.c: Use C++ exception handling.
1879 * guile/scm-cmd.c: Use C++ exception handling.
1880 * guile/scm-breakpoint.c: Use C++ exception handling.
1881 * guile/scm-block.c: Use C++ exception handling.
1882 * guile/guile-internal.h: Use C++ exception handling.
1883 * gnu-v3-abi.c: Use C++ exception handling.
1884 * gdbtypes.c: Use C++ exception handling.
1885 * frame.c: Use C++ exception handling.
1886 * frame-unwind.c: Use C++ exception handling.
1887 * fbsd-tdep.c: Use C++ exception handling.
1888 * f-valprint.c: Use C++ exception handling.
1889 * exec.c: Use C++ exception handling.
1890 * event-top.c: Use C++ exception handling.
1891 * event-loop.c: Use C++ exception handling.
1892 * eval.c: Use C++ exception handling.
1893 * dwarf2read.c: Use C++ exception handling.
1894 * dwarf2loc.c: Use C++ exception handling.
1895 * dwarf2-frame.c: Use C++ exception handling.
1896 * dwarf2-frame-tailcall.c: Use C++ exception handling.
1897 * dwarf-index-write.c: Use C++ exception handling.
1898 * dwarf-index-cache.c: Use C++ exception handling.
1899 * dtrace-probe.c: Use C++ exception handling.
1900 * disasm-selftests.c: Use C++ exception handling.
1901 * darwin-nat.c: Use C++ exception handling.
1902 * cp-valprint.c: Use C++ exception handling.
1903 * cp-support.c: Use C++ exception handling.
1904 * cp-abi.c: Use C++ exception handling.
1905 * corelow.c: Use C++ exception handling.
1906 * completer.c: Use C++ exception handling.
1907 * compile/compile-object-run.c: Use C++ exception handling.
1908 * compile/compile-object-load.c: Use C++ exception handling.
1909 * compile/compile-cplus-symbols.c: Use C++ exception handling.
1910 * compile/compile-c-symbols.c: Use C++ exception handling.
1911 * common/selftest.c: Use C++ exception handling.
1912 * common/new-op.c: Use C++ exception handling.
1913 * cli/cli-script.c: Use C++ exception handling.
1914 * cli/cli-interp.c: Use C++ exception handling.
1915 * cli/cli-cmds.c: Use C++ exception handling.
1916 * c-varobj.c: Use C++ exception handling.
1917 * btrace.c: Use C++ exception handling.
1918 * breakpoint.c: Use C++ exception handling.
1919 * break-catch-throw.c: Use C++ exception handling.
1920 * arch-utils.c: Use C++ exception handling.
1921 * amd64-tdep.c: Use C++ exception handling.
1922 * ada-valprint.c: Use C++ exception handling.
1923 * ada-typeprint.c: Use C++ exception handling.
1924 * ada-lang.c: Use C++ exception handling.
1925 * aarch64-tdep.c: Use C++ exception handling.
1927 2019-04-08 Tom Tromey <tom@tromey.com>
1929 * xml-support.c (gdb_xml_parser::parse): Update.
1930 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
1931 * value.c (show_convenience): Update.
1932 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
1933 (test_parse_flags_qcs): Update.
1934 * thread.c (thr_try_catch_cmd): Update.
1935 * target.c (target_translate_tls_address): Update.
1936 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1937 (info_frame_command_core, frame_apply_command_count): Update.
1938 * rust-exp.y (rust_lex_exception_test): Update.
1939 * riscv-tdep.c (riscv_print_one_register_info): Update.
1940 * remote.c (remote_target::enable_btrace): Update.
1941 * record-btrace.c (record_btrace_enable_warn): Update.
1942 * python/py-utils.c (gdbpy_convert_exception): Update.
1943 * printcmd.c (do_one_display, print_variable_and_value): Update.
1944 * mi/mi-main.c (mi_print_exception): Update.
1945 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
1946 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1947 * linux-nat.c (linux_nat_target::attach): Update.
1948 * linux-fork.c (class scoped_switch_fork_info): Update.
1949 * infrun.c (displaced_step_prepare): Update.
1950 * infcall.c (call_function_by_hand_dummy): Update.
1951 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
1952 * gnu-v3-abi.c (print_one_vtable): Update.
1953 * frame.c (get_prev_frame_always): Update.
1954 * f-valprint.c (info_common_command_for_block): Update.
1955 * exec.c (try_open_exec_file): Update.
1956 * exceptions.c (print_exception, exception_print)
1957 (exception_fprintf, exception_print_same): Update.
1958 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
1959 * dwarf-index-cache.c (index_cache::store)
1960 (index_cache::lookup_gdb_index): Update.
1961 * darwin-nat.c (maybe_cache_shell): Update.
1962 * cp-valprint.c (cp_print_value_fields): Update.
1963 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
1964 (gcc_cplus_symbol_address): Update.
1965 * compile/compile-c-symbols.c (gcc_convert_symbol)
1966 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
1967 * common/selftest.c: Update.
1968 * common/common-exceptions.h (struct gdb_exception) <message>: Now
1970 (exception_try_scope_entry, exception_try_scope_exit): Don't
1972 (struct exception_try_scope): Remove.
1973 (TRY): Don't use exception_try_scope.
1974 (struct gdb_exception): Add constructor, operator=.
1976 (struct gdb_exception_RETURN_MASK_ALL)
1977 (struct gdb_exception_RETURN_MASK_ERROR)
1978 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
1979 (struct gdb_quit_bad_alloc): Update.
1980 * common/common-exceptions.c (exception_none): Change
1982 (struct catcher) <state, exception>: Initialize inline.
1983 <prev>: Remove member.
1984 (current_catcher): Remove.
1985 (catchers): New global.
1986 (exceptions_state_mc_init): Simplify.
1987 (catcher_pop): Remove.
1988 (exceptions_state_mc, exceptions_state_mc_catch): Update.
1989 (try_scope_depth, exception_try_scope_entry)
1990 (exception_try_scope_exit): Remove.
1991 (throw_exception_sjlj): Update.
1992 (exception_messages, exception_messages_size): Remove.
1993 (throw_it): Simplify.
1994 (gdb_exception_sliced_copy): Remove.
1995 (throw_exception_cxx): Update.
1996 * cli/cli-script.c (script_from_file): Update.
1997 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
1999 * ada-valprint.c (ada_val_print): Update.
2000 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
2001 (create_excep_cond_exprs): Update.
2003 2019-04-08 Tom Tromey <tom@tromey.com>
2005 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
2006 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
2007 (TRY, CATCH, END_CATCH): Remove some definitions.
2008 * common/common-exceptions.c: Don't use GDB_XCPT.
2009 (catcher_list_size): Remove.
2010 (throw_exception, throw_it): Simplify.
2012 2019-04-05 Tom Tromey <tom@tromey.com>
2014 Revert the header-sorting patch.
2015 * ft32-tdep.c: Revert.
2016 * frv-tdep.c: Revert.
2017 * frv-linux-tdep.c: Revert.
2019 * frame-unwind.c: Revert.
2020 * frame-base.c: Revert.
2021 * fork-child.c: Revert.
2022 * findvar.c: Revert.
2023 * findcmd.c: Revert.
2024 * filesystem.c: Revert.
2025 * filename-seen-cache.h: Revert.
2026 * filename-seen-cache.c: Revert.
2027 * fbsd-tdep.c: Revert.
2028 * fbsd-nat.h: Revert.
2029 * fbsd-nat.c: Revert.
2030 * f-valprint.c: Revert.
2031 * f-typeprint.c: Revert.
2033 * extension.h: Revert.
2034 * extension.c: Revert.
2035 * extension-priv.h: Revert.
2036 * expprint.c: Revert.
2039 * exceptions.c: Revert.
2040 * event-top.c: Revert.
2041 * event-loop.c: Revert.
2043 * elfread.c: Revert.
2044 * dwarf2read.h: Revert.
2045 * dwarf2read.c: Revert.
2046 * dwarf2loc.c: Revert.
2047 * dwarf2expr.h: Revert.
2048 * dwarf2expr.c: Revert.
2049 * dwarf2-frame.c: Revert.
2050 * dwarf2-frame-tailcall.c: Revert.
2051 * dwarf-index-write.h: Revert.
2052 * dwarf-index-write.c: Revert.
2053 * dwarf-index-common.c: Revert.
2054 * dwarf-index-cache.h: Revert.
2055 * dwarf-index-cache.c: Revert.
2056 * dummy-frame.c: Revert.
2057 * dtrace-probe.c: Revert.
2060 * disasm-selftests.c: Revert.
2061 * dictionary.c: Revert.
2062 * dicos-tdep.c: Revert.
2063 * demangle.c: Revert.
2066 * darwin-nat.h: Revert.
2067 * darwin-nat.c: Revert.
2068 * darwin-nat-info.c: Revert.
2069 * d-valprint.c: Revert.
2070 * d-namespace.c: Revert.
2073 * csky-tdep.c: Revert.
2074 * csky-linux-tdep.c: Revert.
2075 * cris-tdep.c: Revert.
2076 * cris-linux-tdep.c: Revert.
2077 * cp-valprint.c: Revert.
2078 * cp-support.c: Revert.
2079 * cp-namespace.c: Revert.
2081 * corelow.c: Revert.
2082 * corefile.c: Revert.
2083 * continuations.c: Revert.
2084 * completer.h: Revert.
2085 * completer.c: Revert.
2086 * complaints.c: Revert.
2087 * coffread.c: Revert.
2088 * coff-pe-read.c: Revert.
2089 * cli-out.h: Revert.
2090 * cli-out.c: Revert.
2091 * charset.c: Revert.
2092 * c-varobj.c: Revert.
2093 * c-valprint.c: Revert.
2094 * c-typeprint.c: Revert.
2096 * buildsym.c: Revert.
2097 * buildsym-legacy.c: Revert.
2098 * build-id.h: Revert.
2099 * build-id.c: Revert.
2101 * bsd-uthread.c: Revert.
2102 * breakpoint.h: Revert.
2103 * breakpoint.c: Revert.
2104 * break-catch-throw.c: Revert.
2105 * break-catch-syscall.c: Revert.
2106 * break-catch-sig.c: Revert.
2107 * blockframe.c: Revert.
2109 * bfin-tdep.c: Revert.
2110 * bfin-linux-tdep.c: Revert.
2111 * bfd-target.c: Revert.
2113 * ax-general.c: Revert.
2116 * avr-tdep.c: Revert.
2118 * auto-load.c: Revert.
2119 * arm-wince-tdep.c: Revert.
2120 * arm-tdep.c: Revert.
2121 * arm-symbian-tdep.c: Revert.
2122 * arm-pikeos-tdep.c: Revert.
2123 * arm-obsd-tdep.c: Revert.
2124 * arm-nbsd-tdep.c: Revert.
2125 * arm-nbsd-nat.c: Revert.
2126 * arm-linux-tdep.c: Revert.
2127 * arm-linux-nat.c: Revert.
2128 * arm-fbsd-tdep.c: Revert.
2129 * arm-fbsd-nat.c: Revert.
2130 * arm-bsd-tdep.c: Revert.
2131 * arch-utils.c: Revert.
2132 * arc-tdep.c: Revert.
2133 * arc-newlib-tdep.c: Revert.
2134 * annotate.h: Revert.
2135 * annotate.c: Revert.
2136 * amd64-windows-tdep.c: Revert.
2137 * amd64-windows-nat.c: Revert.
2138 * amd64-tdep.c: Revert.
2139 * amd64-sol2-tdep.c: Revert.
2140 * amd64-obsd-tdep.c: Revert.
2141 * amd64-obsd-nat.c: Revert.
2142 * amd64-nbsd-tdep.c: Revert.
2143 * amd64-nbsd-nat.c: Revert.
2144 * amd64-nat.c: Revert.
2145 * amd64-linux-tdep.c: Revert.
2146 * amd64-linux-nat.c: Revert.
2147 * amd64-fbsd-tdep.c: Revert.
2148 * amd64-fbsd-nat.c: Revert.
2149 * amd64-dicos-tdep.c: Revert.
2150 * amd64-darwin-tdep.c: Revert.
2151 * amd64-bsd-nat.c: Revert.
2152 * alpha-tdep.c: Revert.
2153 * alpha-obsd-tdep.c: Revert.
2154 * alpha-nbsd-tdep.c: Revert.
2155 * alpha-mdebug-tdep.c: Revert.
2156 * alpha-linux-tdep.c: Revert.
2157 * alpha-linux-nat.c: Revert.
2158 * alpha-bsd-tdep.c: Revert.
2159 * alpha-bsd-nat.c: Revert.
2160 * aix-thread.c: Revert.
2162 * addrmap.c: Revert.
2163 * ada-varobj.c: Revert.
2164 * ada-valprint.c: Revert.
2165 * ada-typeprint.c: Revert.
2166 * ada-tasks.c: Revert.
2167 * ada-lang.c: Revert.
2168 * aarch64-tdep.c: Revert.
2169 * aarch64-ravenscar-thread.c: Revert.
2170 * aarch64-newlib-tdep.c: Revert.
2171 * aarch64-linux-tdep.c: Revert.
2172 * aarch64-linux-nat.c: Revert.
2173 * aarch64-fbsd-tdep.c: Revert.
2174 * aarch64-fbsd-nat.c: Revert.
2175 * aarch32-linux-nat.c: Revert.
2177 2019-04-05 Tom Tromey <tom@tromey.com>
2179 * ft32-tdep.c: Sort headers.
2180 * frv-tdep.c: Sort headers.
2181 * frv-linux-tdep.c: Sort headers.
2182 * frame.c: Sort headers.
2183 * frame-unwind.c: Sort headers.
2184 * frame-base.c: Sort headers.
2185 * fork-child.c: Sort headers.
2186 * findvar.c: Sort headers.
2187 * findcmd.c: Sort headers.
2188 * filesystem.c: Sort headers.
2189 * filename-seen-cache.h: Sort headers.
2190 * filename-seen-cache.c: Sort headers.
2191 * fbsd-tdep.c: Sort headers.
2192 * fbsd-nat.h: Sort headers.
2193 * fbsd-nat.c: Sort headers.
2194 * f-valprint.c: Sort headers.
2195 * f-typeprint.c: Sort headers.
2196 * f-lang.c: Sort headers.
2197 * extension.h: Sort headers.
2198 * extension.c: Sort headers.
2199 * extension-priv.h: Sort headers.
2200 * expprint.c: Sort headers.
2201 * exec.h: Sort headers.
2202 * exec.c: Sort headers.
2203 * exceptions.c: Sort headers.
2204 * event-top.c: Sort headers.
2205 * event-loop.c: Sort headers.
2206 * eval.c: Sort headers.
2207 * elfread.c: Sort headers.
2208 * dwarf2read.h: Sort headers.
2209 * dwarf2read.c: Sort headers.
2210 * dwarf2loc.c: Sort headers.
2211 * dwarf2expr.h: Sort headers.
2212 * dwarf2expr.c: Sort headers.
2213 * dwarf2-frame.c: Sort headers.
2214 * dwarf2-frame-tailcall.c: Sort headers.
2215 * dwarf-index-write.h: Sort headers.
2216 * dwarf-index-write.c: Sort headers.
2217 * dwarf-index-common.c: Sort headers.
2218 * dwarf-index-cache.h: Sort headers.
2219 * dwarf-index-cache.c: Sort headers.
2220 * dummy-frame.c: Sort headers.
2221 * dtrace-probe.c: Sort headers.
2222 * disasm.h: Sort headers.
2223 * disasm.c: Sort headers.
2224 * disasm-selftests.c: Sort headers.
2225 * dictionary.c: Sort headers.
2226 * dicos-tdep.c: Sort headers.
2227 * demangle.c: Sort headers.
2228 * dcache.h: Sort headers.
2229 * dcache.c: Sort headers.
2230 * darwin-nat.h: Sort headers.
2231 * darwin-nat.c: Sort headers.
2232 * darwin-nat-info.c: Sort headers.
2233 * d-valprint.c: Sort headers.
2234 * d-namespace.c: Sort headers.
2235 * d-lang.c: Sort headers.
2236 * ctf.c: Sort headers.
2237 * csky-tdep.c: Sort headers.
2238 * csky-linux-tdep.c: Sort headers.
2239 * cris-tdep.c: Sort headers.
2240 * cris-linux-tdep.c: Sort headers.
2241 * cp-valprint.c: Sort headers.
2242 * cp-support.c: Sort headers.
2243 * cp-namespace.c: Sort headers.
2244 * cp-abi.c: Sort headers.
2245 * corelow.c: Sort headers.
2246 * corefile.c: Sort headers.
2247 * continuations.c: Sort headers.
2248 * completer.h: Sort headers.
2249 * completer.c: Sort headers.
2250 * complaints.c: Sort headers.
2251 * coffread.c: Sort headers.
2252 * coff-pe-read.c: Sort headers.
2253 * cli-out.h: Sort headers.
2254 * cli-out.c: Sort headers.
2255 * charset.c: Sort headers.
2256 * c-varobj.c: Sort headers.
2257 * c-valprint.c: Sort headers.
2258 * c-typeprint.c: Sort headers.
2259 * c-lang.c: Sort headers.
2260 * buildsym.c: Sort headers.
2261 * buildsym-legacy.c: Sort headers.
2262 * build-id.h: Sort headers.
2263 * build-id.c: Sort headers.
2264 * btrace.c: Sort headers.
2265 * bsd-uthread.c: Sort headers.
2266 * breakpoint.h: Sort headers.
2267 * breakpoint.c: Sort headers.
2268 * break-catch-throw.c: Sort headers.
2269 * break-catch-syscall.c: Sort headers.
2270 * break-catch-sig.c: Sort headers.
2271 * blockframe.c: Sort headers.
2272 * block.c: Sort headers.
2273 * bfin-tdep.c: Sort headers.
2274 * bfin-linux-tdep.c: Sort headers.
2275 * bfd-target.c: Sort headers.
2276 * bcache.c: Sort headers.
2277 * ax-general.c: Sort headers.
2278 * ax-gdb.h: Sort headers.
2279 * ax-gdb.c: Sort headers.
2280 * avr-tdep.c: Sort headers.
2281 * auxv.c: Sort headers.
2282 * auto-load.c: Sort headers.
2283 * arm-wince-tdep.c: Sort headers.
2284 * arm-tdep.c: Sort headers.
2285 * arm-symbian-tdep.c: Sort headers.
2286 * arm-pikeos-tdep.c: Sort headers.
2287 * arm-obsd-tdep.c: Sort headers.
2288 * arm-nbsd-tdep.c: Sort headers.
2289 * arm-nbsd-nat.c: Sort headers.
2290 * arm-linux-tdep.c: Sort headers.
2291 * arm-linux-nat.c: Sort headers.
2292 * arm-fbsd-tdep.c: Sort headers.
2293 * arm-fbsd-nat.c: Sort headers.
2294 * arm-bsd-tdep.c: Sort headers.
2295 * arch-utils.c: Sort headers.
2296 * arc-tdep.c: Sort headers.
2297 * arc-newlib-tdep.c: Sort headers.
2298 * annotate.h: Sort headers.
2299 * annotate.c: Sort headers.
2300 * amd64-windows-tdep.c: Sort headers.
2301 * amd64-windows-nat.c: Sort headers.
2302 * amd64-tdep.c: Sort headers.
2303 * amd64-sol2-tdep.c: Sort headers.
2304 * amd64-obsd-tdep.c: Sort headers.
2305 * amd64-obsd-nat.c: Sort headers.
2306 * amd64-nbsd-tdep.c: Sort headers.
2307 * amd64-nbsd-nat.c: Sort headers.
2308 * amd64-nat.c: Sort headers.
2309 * amd64-linux-tdep.c: Sort headers.
2310 * amd64-linux-nat.c: Sort headers.
2311 * amd64-fbsd-tdep.c: Sort headers.
2312 * amd64-fbsd-nat.c: Sort headers.
2313 * amd64-dicos-tdep.c: Sort headers.
2314 * amd64-darwin-tdep.c: Sort headers.
2315 * amd64-bsd-nat.c: Sort headers.
2316 * alpha-tdep.c: Sort headers.
2317 * alpha-obsd-tdep.c: Sort headers.
2318 * alpha-nbsd-tdep.c: Sort headers.
2319 * alpha-mdebug-tdep.c: Sort headers.
2320 * alpha-linux-tdep.c: Sort headers.
2321 * alpha-linux-nat.c: Sort headers.
2322 * alpha-bsd-tdep.c: Sort headers.
2323 * alpha-bsd-nat.c: Sort headers.
2324 * aix-thread.c: Sort headers.
2325 * agent.c: Sort headers.
2326 * addrmap.c: Sort headers.
2327 * ada-varobj.c: Sort headers.
2328 * ada-valprint.c: Sort headers.
2329 * ada-typeprint.c: Sort headers.
2330 * ada-tasks.c: Sort headers.
2331 * ada-lang.c: Sort headers.
2332 * aarch64-tdep.c: Sort headers.
2333 * aarch64-ravenscar-thread.c: Sort headers.
2334 * aarch64-newlib-tdep.c: Sort headers.
2335 * aarch64-linux-tdep.c: Sort headers.
2336 * aarch64-linux-nat.c: Sort headers.
2337 * aarch64-fbsd-tdep.c: Sort headers.
2338 * aarch64-fbsd-nat.c: Sort headers.
2339 * aarch32-linux-nat.c: Sort headers.
2341 2019-04-04 Tom Tromey <tom@tromey.com>
2343 * varobj.c (varobj_create): Update.
2344 * rust-exp.y (struct rust_parser) <update_innermost_block,
2345 lookup_symbol>: New methods.
2346 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
2348 (rust_parser::rust_lookup_type)
2349 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2350 * printcmd.c (display_command, do_one_display): Update.
2351 * parser-defs.h (struct parser_state) <parser_state>: Add
2352 "tracker" parameter.
2353 (block_tracker): New member.
2354 (class innermost_block_tracker) <innermost_block_tracker>: Add
2356 <reset>: Remove method.
2357 (innermost_block): Don't declare.
2358 (null_post_parser): Update.
2359 * parse.c (innermost_block): Remove global.
2360 (write_dollar_variable): Update.
2361 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
2362 Remove "tracker_types" parameter.
2363 (parse_expression): Add "tracker" parameter.
2364 (parse_expression_for_completion): Update.
2365 (null_post_parser): Add "tracker" parameter.
2366 * p-exp.y: Update rules.
2367 * m2-exp.y: Update rules.
2368 * language.h (struct language_defn) <la_post_parser>: Add
2369 "tracker" parameter.
2370 * go-exp.y: Update rules.
2371 * f-exp.y: Update rules.
2372 * expression.h (parse_expression, parse_exp_1): Add "tracker"
2374 * d-exp.y: Update rules.
2375 * c-exp.y: Update rules.
2376 * breakpoint.c (set_breakpoint_condition): Create an
2377 innermost_block_tracker.
2378 (watch_command_1): Likewise.
2379 * ada-lang.c (resolve): Add "tracker" parameter.
2380 (resolve_subexp): Likewise.
2381 * ada-exp.y (write_var_from_sym): Update.
2383 2019-04-04 Tom Tromey <tom@tromey.com>
2385 * type-stack.h: New file.
2386 * type-stack.c: New file.
2387 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
2389 (insert_into_type_stack, insert_type, push_type, push_type_int)
2390 (insert_type_address_space, pop_type, pop_type_int)
2391 (pop_typelist, pop_type_stack, append_type_stack)
2392 (push_type_stack, get_type_stack, push_typelist)
2393 (follow_type_instance_flags, follow_types): Don't declare.
2394 * parse.c (type_stack): Remove global.
2395 (parse_exp_in_context): Update.
2396 (insert_into_type_stack, insert_type, push_type, push_type_int)
2397 (insert_type_address_space, pop_type, pop_type_int)
2398 (pop_typelist, pop_type_stack, append_type_stack)
2399 (push_type_stack, get_type_stack, push_typelist)
2400 (follow_type_instance_flags, follow_types): Remove (moved to
2402 * f-exp.y (type_stack): New global.
2404 (push_kind_type, f_parse): Update.
2405 * d-exp.y (type_stack): New global.
2408 * c-exp.y (struct c_parse_state) <type_stack>: New member.
2410 * Makefile.in (COMMON_SFILES): Add type-stack.c.
2411 (HFILES_NO_SRCDIR): Add type-stack.h.
2413 2019-04-04 Tom Tromey <tom@tromey.com>
2415 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
2416 (rust_parser::convert_ast_to_expression, rust_parse)
2417 (rust_lex_test_completion, rust_lex_tests): Update.
2418 * parser-defs.h (struct expr_completion_state): New.
2419 (struct parser_state) <parser_state>: Add completion parameter.
2420 <mark_struct_expression, mark_completion_tag>: New methods.
2421 <parse_completion, m_completion_state>: New members.
2422 (prefixify_expression, null_post_parser): Update.
2423 (mark_struct_expression, mark_completion_tag): Don't declare.
2424 * parse.c (parse_completion, expout_last_struct)
2425 (expout_tag_completion_type, expout_completion_name): Remove
2427 (parser_state::mark_struct_expression)
2428 (parser_state::mark_completion_tag): Now methods.
2429 (prefixify_expression): Add last_struct parameter.
2430 (prefixify_subexp): Likewise.
2431 (parse_exp_1): Update.
2432 (parse_exp_in_context): Add cstate parameter. Update.
2433 (parse_expression_for_completion): Create an
2434 expr_completion_state.
2435 (null_post_parser): Add "completion" parameter.
2436 * p-exp.y: Update rules.
2438 * language.h (struct language_defn) <la_post_parser>: Add
2439 "completing" parameter.
2440 * go-exp.y: Update rules.
2441 (lex_one_token): Update.
2442 * expression.h (parse_completion): Don't declare.
2443 * d-exp.y: Update rules.
2444 (lex_one_token): Update rules.
2445 * c-exp.y: Update rules.
2446 (lex_one_token): Update.
2447 * ada-lang.c (resolve): Add "parse_completion" parameter.
2448 (resolve_subexp): Likewise.
2449 (ada_resolve_function): Likewise.
2451 2019-04-04 Tom Tromey <tom@tromey.com>
2453 * parser-defs.h (struct parser_state) <start_arglist,
2454 end_arglist>: New methods.
2455 <arglist_len, m_funcall_chain>: New members.
2456 (arglist_len, start_arglist, end_arglist): Don't declare.
2457 * parse.c (arglist_len, funcall_chain): Remove global.
2458 (start_arglist, end_arglist): Remove functions.
2459 (parse_exp_in_context): Update.
2460 * p-exp.y: Update rules.
2461 * m2-exp.y: Update rules.
2462 * go-exp.y: Update rules.
2463 * f-exp.y: Update rules.
2464 * d-exp.y: Update rules.
2465 * c-exp.y: Update rules.
2467 2019-04-04 Tom Tromey <tom@tromey.com>
2469 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
2470 lex_operator, push_back>: New methods.
2472 (rust_parser::lex_hex, lex_escape): Rename and update.
2473 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
2474 (rust_parser::lex_operator): Rename and update.
2475 (rust_parser::lex_number, rustyylex, rustyyerror)
2476 (rust_lex_test_init, rust_lex_test_sequence)
2477 (rust_lex_test_push_back, rust_lex_tests): Update.
2478 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
2480 <lexptr, prev_lexptr>: New members.
2481 (lexptr, prev_lexptr): Don't declare.
2482 * parse.c (lexptr, prev_lexptr): Remove globals.
2483 (parse_exp_in_context): Update.
2484 * p-exp.y (yylex, yyerror): Update.
2485 * m2-exp.y (parse_number, yylex, yyerror): Update.
2486 * go-exp.y (lex_one_token, yyerror): Update.
2487 * f-exp.y (match_string_literal, yylex, yyerror): Update.
2488 * d-exp.y (lex_one_token, yyerror): Update.
2489 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
2490 (lex_one_token, yyerror): Update.
2491 * ada-lex.l (YY_INPUT): Update.
2492 (rewind_to_char): Update.
2493 * ada-exp.y (yyerror): Update.
2495 2019-04-04 Tom Tromey <tom@tromey.com>
2497 * rust-exp.y (rustyylex, rust_lex_tests): Update.
2498 * parser-defs.h (struct parser_state) <parser_state>: Add new
2500 <comma_terminates>: New member.
2501 (comma_terminates): Don't declare global.
2502 * parse.c (comma_terminates): Remove global.
2503 (parse_exp_in_context): Update.
2504 * p-exp.y (yylex): Update.
2505 * m2-exp.y (yylex): Update.
2506 * go-exp.y (lex_one_token): Update.
2507 * f-exp.y (yylex): Update.
2508 * d-exp.y (lex_one_token): Update.
2509 * c-exp.y (lex_one_token): Update.
2510 * ada-lex.l: Update.
2512 2019-04-04 Tom Tromey <tom@tromey.com>
2514 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
2515 (rustyylex, rust_lex_test_init, rust_lex_test_one)
2516 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
2517 * parser-defs.h (paren_depth): Don't declare.
2518 * parse.c (paren_depth): Remove global.
2519 (parse_exp_in_context): Update.
2520 * p-exp.y (paren_depth): New global.
2521 (pascal_parse): Initialize it.
2522 * m2-exp.y (paren_depth): New global.
2523 (m2_parse): Initialize it.
2524 * go-exp.y (paren_depth): New global.
2525 (go_parse): Initialize it.
2526 * f-exp.y (paren_depth): New global.
2527 (f_parse): Initialize it.
2528 * d-exp.y (paren_depth): New global.
2529 (d_parse): Initialize it.
2530 * c-exp.y (paren_depth): New global.
2531 (c_parse): Initialize it.
2532 * ada-lex.l (paren_depth): New global.
2533 (lexer_init): Initialize it.
2535 2019-04-04 Tom Tromey <tom@tromey.com>
2537 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
2538 (rust_parser::convert_ast_to_type)
2539 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2540 * parser-defs.h (struct parser_state) <parser_state>: Add
2541 parameters. Initialize new members.
2542 <expression_context_block, expression_context_pc>: New members.
2543 * parse.c (expression_context_block, expression_context_pc):
2545 (parse_exp_in_context): Update.
2546 * p-exp.y: Update all rules.
2548 * m2-exp.y: Update all rules.
2550 * go-exp.y (yylex): Update.
2551 * f-exp.y (yylex): Update.
2552 * d-exp.y: Update all rules.
2554 * c-exp.y: Update all rules.
2555 (lex_one_token, classify_name, yylex, c_parse): Update.
2556 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
2558 2019-04-04 Tom Tromey <tom@tromey.com>
2560 * gdbarch.h, gdbarch.c: Rebuild.
2561 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
2563 (struct stap_parse_info): Replace "parser_state" with
2565 * parser-defs.h (struct expr_builder): Rename from "parser_state".
2566 (parser_state): New class.
2567 * parse.c (expr_builder): Rename.
2568 (expr_builder::release): Rename.
2569 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2570 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2571 (write_exp_elt_longcst, write_exp_elt_floatcst)
2572 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2573 (write_exp_string_vector, write_exp_bitstring)
2574 (write_exp_msymbol, mark_struct_expression)
2575 (write_dollar_variable)
2576 (insert_type_address_space, increase_expout_size): Replace
2577 "parser_state" with "expr_builder".
2578 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
2579 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
2580 "parser_state" with "expr_builder".
2582 2019-04-04 Tom Tromey <tom@tromey.com>
2584 * rust-exp.y: Replace "parse_language" with method call.
2586 (yylex): Replace "parse_language" with method call.
2588 (yylex): Replace "parse_language" with method call.
2589 * go-exp.y (classify_name): Replace "parse_language" with method
2591 * f-exp.y (yylex): Replace "parse_language" with method call.
2592 * d-exp.y (lex_one_token): Replace "parse_language" with method
2595 (lex_one_token, classify_name, yylex): Replace "parse_language"
2597 * ada-exp.y (find_primitive_type, type_char)
2598 (type_system_address): Replace "parse_language" with method call.
2600 2019-04-04 Tom Tromey <tom@tromey.com>
2602 * rust-exp.y: Replace "parse_gdbarch" with method call.
2603 * parse.c (write_dollar_variable, insert_type_address_space):
2604 Replace "parse_gdbarch" with method call.
2605 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
2607 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
2609 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
2610 "parse_gdbarch" with method call.
2611 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
2613 * f-exp.y (parse_type, parse_f_type, yylex): Replace
2614 "parse_gdbarch" with method call.
2615 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
2616 "parse_gdbarch" with method call.
2617 * c-exp.y (parse_type, parse_number, classify_name): Replace
2618 "parse_gdbarch" with method call.
2619 * ada-lex.l: Replace "parse_gdbarch" with method call.
2620 * ada-exp.y (parse_type, find_primitive_type, type_char)
2621 (type_system_address): Replace "parse_gdbarch" with method call.
2623 2019-04-04 Tom Tromey <tom@tromey.com>
2625 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
2626 * stap-probe.c (stap_parse_argument): Update.
2627 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
2628 initial_size parameter.
2629 * rust-exp.y (rust_lex_tests): Update.
2630 * parse.c (parser_state): Update.
2631 (parse_exp_in_context): Update.
2632 * parser-defs.h (struct parser_state) <parser_state>: Remove
2633 "initial_size" parameter.
2635 2019-04-04 Tom Tromey <tom@tromey.com>
2637 * parser-defs.h (increase_expout_size): Don't declare.
2638 * parse.c (increase_expout_size): Now static.
2640 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
2642 * gnu-nat.c (gnu_nat_target::wait): Fix
2643 target_waitstatus_to_string call.
2645 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
2647 * eval.c (evaluate_subexp_standard): Handle internal functions
2648 during Fortran function call handling.
2650 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
2652 * NEWS: Mention new internal functions.
2653 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
2654 (read_base_type): Use dwarf2_init_complex_target_type.
2655 * value.c (creal_internal_fn): New function.
2656 (cimag_internal_fn): New function.
2657 (_initialize_values): Register new internal functions.
2659 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2661 * infrun.c (stop_all_threads): If debug_infrun, always
2662 trace the wait status after wait_one, using
2663 target_waitstatus_to_string and target_pid_to_str.
2664 (handle_inferior_event): Replace various trace of
2665 wait status kind by a single trace.
2666 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
2667 wait status kind image by target_waitstatus_to_string.
2668 * target/waitstatus.c (target_waitstatus_to_string): Fix
2671 2019-04-01 Tom Tromey <tromey@adacore.com>
2674 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
2676 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
2677 Pedro Alves <palves@redhat.com>
2679 * top.c (quit_force): Call 'finalize_values'.
2680 * value.c (finalize_values): New function.
2681 * value.h (finalize_values): Declare.
2683 2019-03-30 Eli Zaretskii <eliz@gnu.org>
2685 * NEWS: Announce $_gdb_major and $_gdb_minor.
2687 * top.c (init_gdb_version_vars): New function.
2688 (gdb_init): Call init_gdb_version_vars.
2690 2019-03-29 Tom Tromey <tromey@adacore.com>
2692 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
2693 help text. Remove dead code.
2695 2019-03-29 Keith Seitz <keiths@redhat.com>
2697 From Siddhesh Poyarekar:
2698 * f-lang.h (f77_get_upperbound): Return LONGEST.
2699 (f77_get_lowerbound): Likewise.
2700 * f-typeprint.c (f_type_print_varspec_suffix): Expand
2701 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
2703 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
2704 plongest to format print it.
2705 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
2706 (f77_get_upperbound): Likewise.
2707 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
2708 LOWER_BOUND to LONGEST.
2709 (f77_create_arrayprint_offset_tbl): Likewise.
2711 2019-03-29 Keith Seitz <keiths@redhat.com>
2713 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2714 %s/pulongest for TYPE_LENGTH instead of %d in format
2716 * ada-typerint.c (ada_print_type): Likewise.
2717 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
2718 * compile/compile-c-support.c (generate_register_struct): Likewise.
2719 * gdbtypes.c (recursive_dump_type): Likewise.
2720 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
2721 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
2722 instead of %d in format strings.
2723 * riscv-tdep.c (riscv_type_alignment): Cast second argument
2724 to std::min to ULONGEST.
2725 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
2726 instead of %d in format strings.
2727 * tracepoint.c (info_scope_command): Likewise.
2728 * typeprint.c (print_offset_data::update)
2729 (print_offset_data::finish): Likewise.
2730 * xtensa-tdep.c (xtensa_store_return_value)
2731 (xtensa_push_dummy_call): Likewise.
2733 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
2735 * windows-nat.c (display_selector): Fixed format specifications
2738 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2740 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
2742 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
2744 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
2745 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
2746 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
2747 (nios2_linux_init_abi): Install it.
2749 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2751 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
2753 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2755 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
2757 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2758 Tom Tromey <tromey@adacore.com>
2760 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
2762 2019-03-26 Joel Brobecker <brobecker@adacore.com>
2764 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
2765 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
2766 method to compute the bounds of range types. Also print "[evaluated]"
2767 if the bounds' values come from a dynamic evaluation.
2769 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
2771 * cp-valprint.c (cp_print_value_fields): Don't print trailing
2772 whitespace when pretty printing is on.
2774 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2776 * ppc-linux-nat.c: Add include.
2778 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2780 * NEWS: Mention AArch64 Pointer Authentication.
2782 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2784 * arm-linux-nat.c: Add include.
2786 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
2788 * source-cache.c (source_cache::get_source_lines): Re-read
2789 fullname after calling open_source_file.
2791 2019-03-25 John Baldwin <jhb@FreeBSD.org>
2793 * NEWS: Mention TLS support for FreeBSD.
2795 2019-03-25 Tom Tromey <tromey@adacore.com>
2797 * minsyms.c (BUNCH_SIZE): Update comment.
2798 (~minimal_symbol_reader): Remove old comment.
2799 (compact_minimal_symbols): Update comment.
2800 (minimal_symbol_reader::install): Remove old comment. Update
2803 2019-03-25 Alan Hayward <alan.hayward@arm.com>
2805 * s390-linux-nat.c: Add include.
2807 2019-03-25 Alan Hayward <alan.hayward@arm.com>
2809 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2810 Call linux_get_hwcap.
2811 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
2813 (aarch64_linux_get_hwcap): Remove function.
2814 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
2816 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
2818 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2819 * linux-tdep.c (linux_get_hwcap): Add function.
2820 (linux_get_hwcap2): Likewise.
2821 * linux-tdep.h (linux_get_hwcap): Add declaration.
2822 (linux_get_hwcap2): Likewise.
2823 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
2824 (ppc_linux_get_hwcap2): Likewise.
2825 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
2827 (ppc_linux_nat_target::insert_watchpoint): Likewise.
2828 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
2829 (ppc_linux_nat_target::read_description): Likewise.
2830 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
2831 * s390-linux-nat.c: Likewise.
2832 * s390-linux-tdep.c (s390_core_read_description): Likewise.
2834 2019-03-24 Tom Tromey <tom@tromey.com>
2836 * ada-lang.c (standard_lookup): Simplify initialization.
2837 (ada_lookup_symbol_nonlocal): Simplify return.
2838 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
2839 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
2840 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
2841 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
2843 * solib.c (solib_global_lookup): Simplify.
2844 * symtab.c (null_block_symbol): Remove.
2845 (symbol_cache_lookup): Simplify returns.
2846 (lookup_language_this): Simplify returns.
2847 (lookup_symbol_aux): Simplify return.
2848 (lookup_local_symbol): Simplify returns.
2849 (lookup_global_symbol_from_objfile): Simplify return.
2850 (lookup_symbol_in_objfile_symtabs)
2851 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
2852 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
2853 (lookup_static_symbol, lookup_global_symbol): Simplify return.
2854 * cp-namespace.c (cp_lookup_bare_symbol)
2855 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
2856 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
2857 (cp_lookup_nested_symbol): Don't use null_block_symbol.
2858 (cp_lookup_symbol_via_imports): Simplify initialization.
2859 (find_symbol_in_baseclass): Likewise.
2860 * symtab.h (null_block_symbol): Remove.
2861 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
2862 (d_lookup_nested_symbol, d_lookup_symbol_imports)
2863 (d_lookup_symbol_module): Likewise.
2864 (find_symbol_in_baseclass): Simplify initialization.
2866 2019-03-24 Tom Tromey <tom@tromey.com>
2868 * expression.h: Don't include symtab.h.
2869 (struct block): Forward declare.
2871 2019-03-24 Tom Tromey <tom@tromey.com>
2873 * c-exp.y (typebase): Remove casts.
2874 * gdbtypes.c (lookup_unsigned_typename, )
2875 (lookup_signed_typename): Remove cast.
2876 * eval.c (parse_to_comma_and_eval): Remove cast.
2877 * parse.c (write_dollar_variable): Remove cast.
2878 * block.h (struct block) <superblock>: Now const.
2879 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
2880 * psymtab.c (psym_map_matching_symbols): Make "block" const.
2881 (map_block): Make "block" const.
2882 * symfile.h (struct quick_symbol_functions)
2883 <map_matching_symbols>: Constify block argument to "callback".
2884 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
2886 (find_pc_sect_compunit_symtab): Make "b" const.
2887 (find_symbol_at_address): Likewise.
2888 (search_symbols): Likewise.
2889 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
2890 (dw2_debug_names_lookup_symbol): Likewise.
2891 (dw2_map_matching_symbols): Update.
2892 * p-valprint.c (pascal_val_print): Remove "block".
2893 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
2894 (aux_add_nonlocal_symbols): Make "block" const.
2895 (resolve_subexp): Remove cast.
2896 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
2898 (iterate_over_file_blocks): Likewise.
2899 * f-exp.y (%union) <bval>: Remove.
2900 * coffread.c (patch_opaque_types): Make "b" const.
2901 * spu-tdep.c (spu_catch_start): Make "block" const.
2902 * c-valprint.c (print_unpacked_pointer): Remove "block".
2903 * symmisc.c (dump_symtab_1): Make "b" const.
2904 (block_depth): Make "block" const.
2905 * d-exp.y (%union) <bval>: Remove.
2906 * cp-support.h (cp_lookup_rtti_type): Update.
2907 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
2908 * psymtab.c (psym_lookup_symbol): Make "block" const.
2909 (maintenance_check_psymtabs): Make "b" const.
2910 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
2911 (enumerate_locals, enumerate_args): Update.
2912 * python/py-symtab.c (stpy_global_block): Make "block" const.
2913 (stpy_static_block): Likewise.
2914 * inline-frame.c (block_starting_point_at): Make "new_block"
2916 * block.c (find_block_in_blockvector): Make return type const.
2917 (blockvector_for_pc_sect): Make "b" const.
2918 (find_block_in_blockvector): Make "b" const.
2920 2019-03-23 Tom Tromey <tom@tromey.com>
2922 * varobj.c (varobj_create): Update.
2923 * symfile.c (clear_symtab_users): Don't reset innermost_block.
2924 * printcmd.c (display_command, do_one_display): Don't reset
2926 * parser-defs.h (enum innermost_block_tracker_type): Move to
2928 (innermost_block): Update comment.
2929 * parse.c (parse_exp_1): Add tracker_types parameter.
2930 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
2931 tracker_types parameter. Reset innermost_block.
2932 (parse_exp_in_context): Remove.
2933 (parse_expression_for_completion): Update.
2934 * objfiles.c (~objfile): Don't reset expression_context_block or
2936 * expression.h (enum innermost_block_tracker_type): Move from
2938 (parse_exp_1): Add tracker_types parameter.
2939 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
2940 reset innermost_block.
2942 2019-03-23 Tom Tromey <tom@tromey.com>
2944 * objfiles.h: Include bcache.h.
2946 2019-03-23 Tom Tromey <tom@tromey.com>
2948 * linespec.c (get_current_search_block): Use
2949 scoped_restore_current_language.
2950 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
2952 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2953 Jiong Wang <jiong.wang@arm.com>
2955 * aarch64-linux-tdep.c
2956 (aarch64_linux_iterate_over_regset_sections): Check for pauth
2958 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
2960 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2961 Jiong Wang <jiong.wang@arm.com>
2963 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
2965 (aarch64_analyze_prologue_test): Add PACIASP test.
2966 (aarch64_prologue_prev_register): Unmask PC value.
2968 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2969 Jiong Wang <jiong.wang@arm.com>
2971 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
2972 (aarch64_dwarf2_prev_register): Unmask PC value.
2973 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
2974 (aarch64_execute_dwarf_cfa_vendor_op): Check for
2975 DW_CFA_AARCH64_negate_ra_state.
2976 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
2978 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2979 Jiong Wang <jiong.wang@arm.com>
2981 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
2983 (aarch64_pseudo_register_name): Likewise.
2984 (aarch64_pseudo_register_type): Likewise.
2985 (aarch64_pseudo_register_reggroup_p): Likewise.
2986 (aarch64_gdbarch_init): Add pauth registers.
2987 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
2988 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
2989 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
2990 (struct gdbarch_tdep): Add regnum for ra_state.
2992 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2993 Jiong Wang <jiong.wang@arm.com>
2995 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
2997 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2998 Jiong Wang <jiong.wang@arm.com>
3000 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
3002 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
3003 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
3004 (aarch64_gdbarch_init): Add puth registers.
3005 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
3006 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
3007 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
3009 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3010 Jiong Wang <jiong.wang@arm.com>
3012 * aarch64-linux-nat.c
3013 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
3014 * aarch64-linux-tdep.c
3015 (aarch64_linux_core_read_description): Likewise.
3016 (aarch64_linux_get_hwcap): New function.
3017 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
3018 (aarch64_linux_get_hwcap): New declaration.
3020 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3021 Jiong Wang <jiong.wang@arm.com>
3023 * aarch64-linux-nat.c
3024 (aarch64_linux_nat_target::read_description): Add pauth param.
3025 * aarch64-linux-tdep.c
3026 (aarch64_linux_core_read_description): Likewise.
3027 * aarch64-tdep.c (struct target_desc): Add in pauth.
3028 (aarch64_read_description): Add pauth param.
3029 (aarch64_gdbarch_init): Likewise.
3030 * aarch64-tdep.h (aarch64_read_description): Likewise.
3031 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3032 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3033 * features/Makefile: Add new files.
3034 * features/aarch64-pauth.c: New file.
3035 * features/aarch64-pauth.xml: New file.
3037 2019-03-20 Tom Tromey <tromey@adacore.com>
3039 * infrun.c (handle_inferior_event): Rename from
3040 handle_inferior_event_1. Create a scoped_value_mark.
3041 (handle_inferior_event): Remove.
3043 2019-03-19 Tom Tromey <tromey@adacore.com>
3045 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
3046 * infrun.h (print_stop_event): Add "displays" parameter.
3047 * infrun.c (print_stop_event): Add "displays" parameter.
3049 2019-03-19 Pedro Alves <palves@redhat.com>
3051 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
3052 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
3053 to -1. Fix TABs vs spaces.
3054 (tui_ui_out::tui_ui_out): Don't initialize fields here.
3055 * tui/tui-out.h (tui_ui_out) Add intro comments.
3056 <m_line, m_start_of_line>: In-class initialize, and add describing
3059 2019-03-18 Alan Hayward <alan.hayward@arm.com>
3061 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
3063 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
3065 2019-03-18 Pedro Alves <palves@redhat.com>
3066 Eli Zaretskii <eliz@gnu.org>
3068 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
3069 m_line and m_start_of_line.
3071 2019-03-18 Eli Zaretskii <eliz@gnu.org>
3073 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
3074 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
3075 it returns a newline. This fixes a regression in TU mode, whereby
3076 the next line is output on the same screen line as the user input.
3078 2019-03-18 Tom Tromey <tromey@adacore.com>
3080 * minsyms.c (minimal_symbol_reader::install): Remove call to
3083 2019-03-18 Pedro Alves <palves@redhat.com>
3085 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
3087 (apply_style): New, factored out from ...
3088 (apply_ansi_escape): ... this. Handle reverse video mode.
3089 (tui_set_reverse_mode): New function.
3090 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
3091 * tui/tui-winsource.c (tui_show_source_line): Use
3092 tui_set_reverse_mode instead of setting A_STANDOUT.
3093 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
3096 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
3098 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
3101 2019-03-18 Tom Tromey <tromey@adacore.com>
3103 * ada-lang.c (empty_array): Add "high" parameter.
3104 (ada_evaluate_subexp): Update.
3106 2019-03-17 Sergei Trofimovich <siarheit@google.com>
3108 * unittests/string_view-selftests.c: Define
3109 _initialize_string_view_selftests unconditionally.
3111 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3114 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
3116 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3119 * windows-nat.c (display_selector): Fix format specifiers.
3121 2019-03-17 Eli Zaretskii <eliz@gnu.org>
3123 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
3124 tui_refill_source_window instead of tui_refresh_win, to update the
3125 current execution line. This fixes redisplay of the current line
3126 when stepping through the code with "next" or "step".
3128 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3130 * source-cache.c (source_cache::get_source_lines): Call
3131 find_source_lines to initialize s->nlines. This fixes vertical
3132 scrolling of TUI source window when the DOWN arrow is pressed.
3134 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3136 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
3137 linux-thread-db.c (_initialize_thread_db): Likewise.
3139 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3141 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
3142 wclrtoeol in tui_show_source_line". This reverts changes made in
3143 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
3145 2019-03-15 Tom Tromey <tom@tromey.com>
3147 * symtab.h (struct minimal_symbol): Derive from
3148 general_symbol_info.
3149 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
3150 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3151 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3152 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3153 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
3154 (MSYMBOL_SEARCH_NAME): Update.
3155 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
3156 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
3157 * minsyms.c (minimal_symbol_reader::record_full): Update.
3159 2019-03-15 Tom Tromey <tom@tromey.com>
3161 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
3163 2019-03-15 Tom Tromey <tom@tromey.com>
3165 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
3167 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
3169 * minsyms.c (lookup_minimal_symbol_by_pc_section)
3170 (build_minimal_symbol_hash_tables)
3171 (minimal_symbol_reader::install): Update.
3173 2019-03-15 Tom Tromey <tom@tromey.com>
3175 * symtab.c (create_demangled_names_hash): Update.
3176 (symbol_set_names): Update.
3177 * objfiles.h (struct objfile_per_bfd_storage)
3178 <demangled_names_hash>: Now an htab_up.
3179 * objfiles.c (objfile_per_bfd_storage): Simplify.
3181 2019-03-15 Tom Tromey <tom@tromey.com>
3183 * objfiles.h (struct objfile_per_bfd_storage): Declare
3185 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
3187 (get_objfile_bfd_data): Use new. Don't initialize
3189 (free_objfile_per_bfd_storage): Remove.
3190 (objfile_bfd_data_free, objfile::~objfile): Use delete.
3192 2019-03-15 Tom Tromey <tom@tromey.com>
3194 * symfile.c (reread_symbols): Update.
3195 * objfiles.c (objfile::objfile): Update.
3196 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
3197 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
3199 (minimal_symbol_reader::install): Update.
3200 (terminate_minimal_symbol_table): Remove.
3201 * jit.c (jit_object_close_impl): Update.
3203 2019-03-15 Tom Tromey <tom@tromey.com>
3205 * minsyms.c (minimal_symbol_reader::record_full): Remove some
3208 2019-03-15 Tom Tromey <tom@tromey.com>
3210 * objfiles.h (struct objfile_per_bfd_storage)
3211 <demangled_hash_languages>: Now a bitset.
3212 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
3213 (lookup_minimal_symbol): Update.
3215 2019-03-15 Tom Tromey <tom@tromey.com>
3217 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
3218 Don't return the symbol.
3219 * coffread.c (record_minimal_symbol): Use record_full.
3221 2019-03-14 Eli Zaretskii <eliz@gnu.org>
3223 The MS-Windows port of ncurses fails to switch to a color pair if
3224 one or both of the colors are the implicit default colors. This
3225 change records the default colors when TUI is initialized, and
3226 then specifies them explicitly when a color pair uses the default
3227 colors. This allows color styling in TUI mode on MS-Windows.
3229 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
3231 (tui_initialize_io) [__MINGW32__]: Record the default terminal
3232 colors in ncurses_norm_attr.
3233 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
3234 "none", replace it with the default color recorded in
3237 2019-03-14 Tom Tromey <tromey@adacore.com>
3239 * source-cache.h (class source_cache) <get_source_lines>: Return
3241 * source-cache.c (source_cache::extract_lines): Handle case where
3242 first_pos==npos. Return std::string.
3243 (source_cache::get_source_lines): Update.
3245 2019-03-14 Tom Tromey <tromey@adacore.com>
3247 * NEWS: Add item for "style sources" commands.
3248 * source-cache.c (source_cache::get_source_lines): Check
3250 * cli/cli-style.c (source_styling): New global.
3251 (_initialize_cli_style): Add "style sources" commands.
3252 (show_style_sources): New function.
3253 * cli/cli-style.h (source_styling): Declare.
3255 2019-03-14 Pedro Alves <palves@redhat.com>
3256 Tom Tromey <tromey@adacore.com>
3258 * tui/tui-winsource.h (tui_refill_source_window): Declare.
3259 * tui/tui-winsource.c (tui_refill_source_window): New function,
3261 (tui_horizontal_source_scroll): ... here. Move some logic.
3262 * cli/cli-style.c (set_style_enabled): Notify new observable.
3263 * tui/tui-hooks.c (tui_redisplay_source): New function.
3264 (tui_attach_detach_observers): Attach or detach
3265 tui_redisplay_source.
3266 * observable.h (source_styling_changed): New observable.
3267 * observable.c: Define source_styling_changed observable.
3269 2019-03-13 Tom Tromey <tromey@adacore.com>
3271 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
3272 (i386_gnu_nat_target::store_registers): Update.
3273 * target-debug.h (target_debug_print_std_string): New macro.
3274 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
3275 * windows-tdep.c (display_one_tib): Update.
3276 * tui/tui-stack.c (tui_make_status_line): Update.
3277 * top.c (print_inferior_quit_action): Update.
3278 * thread.c (thr_try_catch_cmd): Update.
3279 (add_thread_with_info): Update.
3280 (thread_target_id_str): Update.
3281 (thr_try_catch_cmd): Update.
3282 (thread_command): Update.
3283 (thread_find_command): Update.
3284 * record-btrace.c (record_btrace_target::info_record)
3285 (record_btrace_resume_thread, record_btrace_target::resume)
3286 (record_btrace_cancel_resume, record_btrace_step_thread)
3287 (record_btrace_target::wait, record_btrace_target::wait)
3288 (record_btrace_target::wait, record_btrace_target::stop): Update.
3289 * progspace.c (print_program_space): Update.
3290 * process-stratum-target.c
3291 (process_stratum_target::thread_address_space): Update.
3292 * linux-fork.c (linux_fork_mourn_inferior)
3293 (detach_checkpoint_command, info_checkpoints_command)
3294 (linux_fork_context): Update.
3295 (linux_fork_detach): Update.
3296 (class scoped_switch_fork_info): Update.
3297 (delete_checkpoint_command): Update.
3298 * infrun.c (follow_fork_inferior): Update.
3299 (follow_fork_inferior): Update.
3300 (proceed_after_vfork_done): Update.
3301 (handle_vfork_child_exec_or_exit): Update.
3302 (follow_exec): Update.
3303 (displaced_step_prepare_throw): Update.
3304 (displaced_step_restore): Update.
3305 (start_step_over): Update.
3307 (clear_proceed_status_thread): Update.
3309 (print_target_wait_results): Update.
3310 (do_target_wait): Update.
3311 (context_switch): Update.
3312 (stop_all_threads): Update.
3313 (restart_threads): Update.
3314 (finish_step_over): Update.
3315 (handle_signal_stop): Update.
3316 (switch_back_to_stepped_thread): Update.
3317 (keep_going_pass_signal): Update.
3318 (print_exited_reason): Update.
3319 (normal_stop): Update.
3320 * inferior.c (inferior_pid_to_str): Change return type.
3321 (print_selected_inferior): Update.
3322 (add_inferior): Update.
3323 (detach_inferior): Update.
3324 * dummy-frame.c (fprint_dummy_frames): Update.
3325 * dcache.c (dcache_info_1): Update.
3326 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
3327 (btrace_fetch, btrace_clear): Update.
3328 * linux-tdep.c (linux_core_pid_to_str): Change return type.
3329 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
3331 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
3332 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
3333 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
3334 * gdbarch.c, gdbarch.h: Rebuild.
3335 * gdbarch.sh (core_pid_to_str): Change return type.
3336 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
3338 (windows_nat_target::pid_to_str): Change return type.
3339 (windows_delete_thread): Update.
3340 (windows_nat_target::attach): Update.
3341 (windows_nat_target::files_info): Update.
3342 * target-delegates.c: Rebuild.
3343 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
3345 (sol_thread_target::pid_to_str): Change return type.
3346 * remote.c (class remote_target) <pid_to_str>: Change return
3348 (remote_target::pid_to_str): Change return type.
3349 (extended_remote_target::attach, remote_target::remote_stop_ns)
3350 (remote_target::remote_notif_remove_queued_reply)
3351 (remote_target::push_stop_reply, remote_target::disable_btrace):
3353 (extended_remote_target::attach): Update.
3354 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
3356 (gdbsim_target::pid_to_str): Change return type.
3357 * ravenscar-thread.c (struct ravenscar_thread_target)
3358 <pid_to_str>: Change return type.
3359 (ravenscar_thread_target::pid_to_str): Change return type.
3360 * procfs.c (class procfs_target) <pid_to_str>: Change return
3362 (procfs_target::pid_to_str): Change return type.
3363 (procfs_target::attach): Update.
3364 (procfs_target::detach): Update.
3365 (procfs_target::fetch_registers): Update.
3366 (procfs_target::store_registers): Update.
3367 (procfs_target::wait): Update.
3368 (procfs_target::files_info): Update.
3369 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
3370 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
3372 (nto_procfs_target::pid_to_str): Change return type.
3373 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
3374 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
3376 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
3378 (attach_proc_task_lwp_callback, get_detach_signal)
3379 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
3380 (linux_nat_target::resume, wait_lwp, stop_callback)
3381 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
3382 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
3383 (linux_nat_wait_1, resume_stopped_resumed_lwps)
3384 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
3385 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
3387 (inf_ptrace_target::attach): Update.
3388 (inf_ptrace_target::files_info): Update.
3389 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
3391 (go32_nat_target::pid_to_str): Change return type.
3392 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
3393 (gnu_nat_target::wait): Update.
3394 (gnu_nat_target::wait): Update.
3395 (gnu_nat_target::resume): Update.
3396 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
3397 (fbsd_nat_target::wait): Update.
3398 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
3400 (darwin_nat_target::attach): Update.
3401 * corelow.c (class core_target) <pid_to_str>: Change return type.
3402 (core_target::pid_to_str): Change return type.
3403 * target.c (normal_pid_to_str): Change return type.
3404 (default_pid_to_str): Likewise.
3405 (target_pid_to_str): Change return type.
3406 (target_translate_tls_address): Update.
3407 (target_announce_detach): Update.
3408 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
3410 (bsd_uthread_target::pid_to_str): Change return type.
3411 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
3413 (bsd_kvm_target::pid_to_str): Change return type.
3414 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
3416 (aix_thread_target::pid_to_str): Change return type.
3417 * target.h (struct target_ops) <pid_to_str>: Change return type.
3418 (target_pid_to_str, normal_pid_to_str): Likewise.
3419 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
3421 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
3423 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
3425 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
3427 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
3429 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
3432 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
3434 * NEWS: Mention that the new default MI version is 3. Mention
3435 changes to the output of commands and events that deal with
3436 multi-location breakpoints.
3437 * breakpoint.c: Include "mi/mi-out.h".
3438 (print_one_breakpoint): Change output syntax if using MI version
3440 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
3442 (mi_multi_location_breakpoint_output_fixed): New.
3443 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
3444 (mi_cmd_fix_multi_location_breakpoint_output): New.
3445 (mi_multi_location_breakpoint_output_fixed): New.
3446 * mi/mi-cmds.c (mi_cmds): Register command
3447 -fix-multi-location-breakpoint-output.
3448 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
3451 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3453 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
3454 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
3455 instantiate mi_ui_out based on interpreter name.
3456 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
3457 * mi/mi-main.c (mi_load_progress): Likewise.
3459 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3461 * NEWS: Combine separate "New targets" sections for 8.3.
3463 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3465 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
3466 (ppcfbsd_init_abi): Install gdbarch
3467 "fetch_tls_load_module_address" and "get_thread_local_address"
3470 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3472 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
3473 (riscv_fbsd_init_abi): Install gdbarch
3474 "fetch_tls_load_module_address" and "get_thread_local_address"
3477 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3479 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
3480 (i386fbsd_init_abi): Install gdbarch
3481 "fetch_tls_load_module_address" and "get_thread_local_address"
3484 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3486 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
3487 (amd64fbsd_init_abi): Install gdbarch
3488 "fetch_tls_load_module_address" and "get_thread_local_address"
3491 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3493 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
3494 (struct fbsd_pspace_data): New type.
3495 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
3496 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
3497 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
3498 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
3499 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
3501 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3503 * gdbtypes.c (lookup_struct_elt): New function.
3504 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
3505 * gdbtypes.h (struct struct_elt): New type.
3506 (lookup_struct_elt): New prototype.
3508 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3510 * gdbtypes.c (lookup_struct_elt_type): Update comment and
3511 remove disabled code block.
3513 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3515 * gdbarch.sh (get_thread_local_address): New method.
3516 * gdbarch.h, gdbarch.c: Regenerate.
3517 * target.c (target_translate_tls_address): Use
3518 gdbarch_get_thread_local_address if present instead of
3519 target::get_thread_local_address.
3521 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3523 * target.h (target::get_thread_local_address): Update comment.
3525 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3527 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
3528 objfile->separate_debug_objfile_backlink if not NULL.
3530 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3532 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
3533 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
3534 (amd64bsd_store_inferior_registers): Likewise.
3535 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
3536 Enable segment base registers.
3537 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
3538 PT_GETFSBASE and PT_GETGSBASE.
3539 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
3541 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
3542 segment base registers.
3543 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
3545 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3547 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
3548 Update calls to i386_target_description to add 'segments'
3550 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
3551 add segment base registers.
3552 * arch/i386.c (i386_create_target_description): Add 'segments'
3553 parameter to enable segment base registers.
3554 * arch/i386.h (i386_create_target_description): Likewise.
3555 * features/i386/32bit-segments.xml: New file.
3556 * features/i386/32bit-segments.c: Generate.
3557 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
3558 call to i386_target_description to add 'segments' parameter.
3559 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
3560 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
3561 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
3562 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
3563 if feature is present.
3564 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
3565 Add 'segments' parameter to call to i386_target_description.
3566 (i386_target_description): Add 'segments' parameter to enable
3567 segment base registers.
3568 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
3569 to call to i386_target_description.
3570 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
3571 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
3572 Define I386_NUM_REGS.
3573 (i386_target_description): Add 'segments' parameter to enable
3574 segment base registers.
3576 2019-03-12 Eli Zaretskii <eliz@gnu.org>
3579 * source-cache.c: #undef open and close, to avoid unresolved
3580 externals during linking.
3582 2019-03-12 Tom Tromey <tromey@adacore.com>
3584 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
3585 const. Add initializers.
3586 (_initialize_remote): Don't initialize ptid globals.
3588 2019-03-12 Pedro Alves <palves@redhat.com>
3590 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
3592 2019-03-12 Pedro Alves <palves@redhat.com>
3594 * cp-name-parser.y (main): Remove unused 'len' variable.
3596 2019-03-12 Tom Tromey <tromey@adacore.com>
3598 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
3599 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
3601 2019-03-12 Tom Tromey <tromey@adacore.com>
3603 * linux-nat.c (iterate_over_lwps): Update.
3604 (stop_callback): Remove parameter.
3605 (stop_wait_callback, detach_callback, resume_set_callback)
3606 (select_singlestep_lwp_callback, set_ignore_sigint)
3607 (status_callback, resumed_callback, resume_clear_callback)
3608 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
3610 (linux_nat_target::detach, linux_nat_target::resume)
3611 (linux_stop_and_wait_all_lwps, select_event_lwp)
3612 (linux_nat_filter_event, linux_nat_wait_1)
3613 (linux_nat_target::kill, linux_nat_target::stop)
3614 (linux_nat_target::stop): Update.
3615 (linux_nat_resume_callback): Change type.
3616 (resume_stopped_resumed_lwps, count_events_callback)
3617 (select_event_lwp_callback): Likewise.
3618 (linux_stop_lwp, linux_nat_stop_lwp): Update.
3619 * arm-linux-nat.c (struct update_registers_data): Remove.
3620 (update_registers_callback): Change type.
3621 (arm_linux_insert_hw_breakpoint1): Update.
3622 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
3624 (x86_linux_dr_set_addr): Update.
3625 (x86_linux_dr_set_control): Update.
3626 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
3627 (iterate_over_lwps): Use gdb::function_view.
3628 * nat/aarch64-linux-hw-point.c (struct
3629 aarch64_dr_update_callback_param): Remove.
3630 (debug_reg_change_callback): Change type.
3631 (aarch64_notify_debug_reg_change): Update.
3632 * s390-linux-nat.c (s390_refresh_per_info): Update.
3634 2019-03-11 Tom Tromey <tromey@adacore.com>
3636 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
3637 redundant assignment to "this_cu".
3639 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3641 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
3643 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3645 * gdbtypes.c (rank_one_type_parm_set): New function extracted
3647 (rank_one_type): ... this.
3649 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3651 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
3653 (rank_one_type): ... this.
3655 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3657 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
3659 (rank_one_type): ... this.
3661 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3663 * gdbtypes.c (rank_one_type_parm_float): New function extracted
3665 (rank_one_type): ... this.
3667 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3669 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
3671 (rank_one_type): ... this.
3673 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3675 * gdbtypes.c (rank_one_type_parm_range): New function extracted
3677 (rank_one_type): ... this.
3679 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3681 * gdbtypes.c (rank_one_type_parm_char): New function extracted
3683 (rank_one_type): ... this.
3685 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3687 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
3689 (rank_one_type): ... this.
3691 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3693 * gdbtypes.c (rank_one_type_parm_int): New function extracted
3695 (rank_one_type): ... this.
3697 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3699 * gdbtypes.c (rank_one_type_parm_func): New function extracted
3701 (rank_one_type): ... this.
3703 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3705 * gdbtypes.c (rank_one_type_parm_array): New function extracted
3707 (rank_one_type): ... this.
3709 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3711 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
3713 (rank_one_type): ... this.
3715 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3717 * inferior.c (initialize_inferiors): Ensure 'help set/show print
3718 inferior-events' shows the example events.
3720 2019-03-08 Eli Zaretskii <eliz@gnu.org>
3722 Support styling on native MS-Windows console
3725 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
3726 on MS-Windows if $TERM is not defined.
3728 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
3730 * posix-hdep.c (gdb_console_fputs):
3731 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
3733 * ui-file.h (gdb_console_fputs): Add prototype.
3735 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
3736 back to fputs only if the former returns zero.
3738 2019-03-07 Tom Tromey <tom@tromey.com>
3740 * symmisc.c (print_symbol_bcache_statistics): Update.
3741 (print_objfile_statistics): Update.
3742 * symfile.c (allocate_symtab): Update.
3743 * stabsread.c: Don't include bcache.h.
3744 * psymtab.h (struct psymbol_bcache): Don't declare.
3745 (class psymtab_storage) <psymbol_cache>: Now a bcache.
3746 (psymbol_bcache_init, psymbol_bcache_free)
3747 (psymbol_bcache_get_bcache): Don't declare.
3748 * psymtab.c (struct psymbol_bcache): Remove.
3749 (psymtab_storage::psymtab_storage): Update.
3750 (psymtab_storage::~psymtab_storage): Update.
3751 (psymbol_bcache_init, psymbol_bcache_free)
3752 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
3753 (add_psymbol_to_bcache): Update.
3754 (allocate_psymtab): Update.
3755 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
3756 macro_cache>: No longer pointers.
3757 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
3758 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
3759 * macrotab.c (macro_bcache): Update.
3760 * macroexp.c: Don't include bcache.h.
3761 * gdbtypes.c (check_types_worklist): Update.
3762 (types_deeply_equal): Remove TRY/CATCH. Update.
3763 * elfread.c (elf_symtab_read): Update.
3764 * dwarf2read.c: Don't include bcache.h.
3765 * buildsym.c (buildsym_compunit::get_macro_table): Update.
3766 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
3767 (print_bcache_statistics, bcache_memory_used): Don't declare.
3768 (struct bcache): Move from bcache.c. Add constructor, destructor,
3769 methods. Rename all data members.
3770 * bcache.c (struct bcache): Move to bcache.h.
3771 (bcache::expand_hash_table): Rename from expand_hash_table.
3773 (bcache::insert): Rename from bcache_full.
3774 (bcache::compare): Rename from bcache_compare.
3775 (bcache_xmalloc): Remove.
3776 (bcache::~bcache): Rename from bcache_xfree.
3777 (bcache::print_statistics): Rename from print_bcache_statistics.
3778 (bcache::memory_used): Rename from bcache_memory_used.
3780 2019-03-07 Pedro Alves <palves@redhat.com>
3782 * infrun.c (normal_stop): Also check for
3783 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
3785 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
3787 * f-lang.c (value_from_host_double): Moved to...
3788 * value.c (value_from_host_double): ...here.
3789 * value.h (value_from_host_double): Declare.
3790 * guile/scm-math.c (vlscm_convert_typed_number): Use
3791 value_from_host_double.
3792 (vlscm_convert_number): Likewise.
3793 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
3794 * python/py-value.c (convert_value_from_python): Likewise.
3796 2019-03-06 Tom Tromey <tom@tromey.com>
3798 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
3800 2019-03-06 Tom Tromey <tom@tromey.com>
3802 * utils.h (free_current_contents): Don't declare.
3803 * utils.c (free_current_contents): Remove.
3805 2019-03-06 Tom Tromey <tom@tromey.com>
3807 * top.c (quit_force): Update.
3808 * main.c (captured_command_loop): Update.
3809 * common/new-op.c (operator new): Update.
3810 * common/common-exceptions.c (struct catcher)
3811 <save_cleanup_chain>: Remove member.
3812 (exceptions_state_mc_init): Update.
3813 (exception_try_scope_entry): Return nullptr.
3814 (exception_try_scope_exit, exception_rethrow)
3815 (throw_exception_sjlj, throw_exception_cxx): Update.
3816 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
3817 (all_cleanups, do_cleanups, discard_cleanups)
3818 (discard_final_cleanups, save_cleanups, save_final_cleanups)
3819 (restore_cleanups, restore_final_cleanups): Don't declare.
3820 (do_final_cleanups): Remove parameter.
3821 * common/cleanups.c (cleanup_chain, make_cleanup)
3822 (make_cleanup_dtor, all_cleanups, do_cleanups)
3823 (discard_my_cleanups, discard_cleanups)
3824 (discard_final_cleanups, save_my_cleanups, save_cleanups)
3825 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
3826 (null_cleanup): Remove.
3827 (do_final_cleanups): Remove parameter.
3829 2019-03-06 Tom Tromey <tom@tromey.com>
3831 * remote.c (remote_target::remote_parse_stop_reply): Use
3834 2019-03-06 Tom Tromey <tom@tromey.com>
3836 * stabsread.c (struct stabs_field_info): Rename from field_info.
3837 <list, fnlist>: Add initializers.
3838 <obstack>: New member.
3839 (read_member_functions, read_struct_fields, read_baseclasses):
3840 Allocate on obstack. Don't use cleanups.
3841 (read_one_struct_field, read_member_functions, read_struct_fields)
3842 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
3843 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
3844 (read_struct_type): Update.
3846 2019-03-06 Tom Tromey <tom@tromey.com>
3848 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
3849 * common/filestuff.h (make_cleanup_close): Don't declare.
3850 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
3853 2019-03-06 Tom Tromey <tom@tromey.com>
3855 * solib-aix.c: Use make_scope_exit.
3857 2019-03-06 Tom Tromey <tom@tromey.com>
3859 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
3860 Use make_scope_exit.
3862 2019-03-06 Tom Tromey <tom@tromey.com>
3864 * solib-svr4.c (disable_probes_interface): Remove parameter.
3865 (svr4_handle_solib_event): Use make_scope_exit.
3867 2019-03-06 Tom Tromey <tom@tromey.com>
3869 * remote.c (struct stop_reply_deleter): Remove.
3870 (stop_reply_up): Update.
3871 (struct stop_reply): Derive from notif_event. Don't typedef.
3872 <regcache>: Now a std::vector.
3873 (stop_reply_xfree): Remove.
3874 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
3875 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
3876 (remote_target::discard_pending_stop_replies): Use delete.
3877 (remote_target::remote_parse_stop_reply): Update.
3878 (remote_target::process_stop_reply): Update.
3879 * remote-notif.h (struct notif_event): Add virtual destructor.
3880 Remove "dtr" member.
3881 (struct notif_client) <alloc_event>: Return a unique_ptr.
3882 (notif_event_xfree): Don't declare.
3883 (notif_event_up): New typedef.
3884 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
3885 (notif_event_xfree, do_notif_event_xfree): Remove.
3886 (remote_notif_state_xfree): Update.
3888 2019-03-06 Tom Tromey <tom@tromey.com>
3890 * infrun.c (displaced_step_clear_cleanup): Now a
3891 forward_scope_exit type.
3892 (displaced_step_prepare_throw): Update.
3893 (displaced_step_fixup): Update.
3895 2019-03-06 Tom Tromey <tom@tromey.com>
3897 * inferior.h (class inferior): Update comment.
3898 * gdbthread.h (class thread_info): Update comment.
3900 2019-03-06 Joel Brobecker <brobecker@adacore.com>
3901 Tom Tromey <tom@tromey.com>
3903 * stabsread.h (struct stab_section_list): Remove.
3904 (coffstab_build_psymtabs): Update.
3905 * dbxread.c (symbuf_sections): Now a std::vector.
3906 (sect_idx): New global.
3907 (fill_symbuf): Update.
3908 (coffstab_build_psymtabs): Change type of stabsects parameter.
3910 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
3912 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
3913 (coff_locate_sections): Update.
3914 (coff_symfile_read): Remove cleanups. Update.
3915 (init_stringtab): Add storage parameter.
3916 (free_stringtab, free_stringtab_cleanup): Remove.
3917 (init_lineno): Add storage parameter.
3918 (free_linetab, free_linetab_cleanup): Remove.
3920 2019-03-06 Pedro Alves <palves@redhat.com>
3922 * linux-fork.c (fork_info::clobber_regs): Delete.
3923 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
3924 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
3926 (scoped_switch_fork_info::scoped_switch_fork_info)
3927 (checkpoint_command, linux_fork_context): Adjust
3928 fork_save_infrun_state calls.
3930 2019-03-06 Pedro Alves <palves@redhat.com>
3932 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
3933 (inf_has_multiple_threads): Return 'bool' and rewrite using
3934 inferior_info::threads().
3936 2019-03-06 Pedro Alves <palves@redhat.com>
3938 * linux-fork.c: Include <list>.
3939 (fork_list): Now a std::list instance.
3940 (fork_info): Add ctor, dtor, and in-class initialize all fields.
3941 (forks_exist_p, find_last_fork): Adjust.
3945 (free_fork): Delete, folded into fork_info::~fork_info().
3946 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
3948 (init_fork_list): Delete.
3949 (linux_fork_killall, linux_fork_mourn_inferior)
3950 (linux_fork_detach, info_checkpoints_command): Adjust.
3951 (_initialize_linux_fork): No longer call init_fork_list.
3953 2019-03-06 Pedro Alves <palves@redhat.com>
3955 * linux-fork.c (new_fork): New, split out of ...
3956 (add_fork): ... this. Return void. Move "first fork" special
3957 case from here, to ...
3958 (checkpoint_command): ... here.
3959 * linux-linux.h (add_fork): Return void.
3961 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3963 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
3965 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3966 Chris January <chris.january@arm.com>
3967 David Lecomber <david.lecomber@arm.com>
3969 * f-exp.y: New token, UNOP_INTRINSIC.
3970 (exp): New pattern using UNOP_INTRINSIC token.
3971 (f77_keywords): Add 'abs' keyword.
3972 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
3973 (value_from_host_double): New function.
3974 (evaluate_subexp_f): Support UNOP_ABS.
3976 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3978 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
3981 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3983 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
3984 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
3985 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
3987 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3989 * f-exp.y (convert_to_kind_type): Handle more type kinds.
3991 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3992 Chris January <chris.january@arm.com>
3994 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
3995 * f-exp.y: Define 'KIND' token.
3996 (exp): New pattern for KIND expressions.
3997 (ptype): Handle types with a kind extension.
3998 (direct_abs_decl): Extend to spot kind extensions.
3999 (f77_keywords): Add 'kind' to the list.
4000 (push_kind_type): New function.
4001 (convert_to_kind_type): New function.
4002 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
4003 * parse.c (operator_length_standard): Likewise.
4004 * parser-defs.h (enum type_pieces): Add tp_kind.
4005 * std-operator.def: Add UNOP_KIND.
4007 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4009 * f-exp.y (f_parse): Set yydebug.
4011 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4013 * f-lang.c (evaluate_subexp_f): New function.
4014 (exp_descriptor_f): New global.
4015 (f_language_defn): Use exp_descriptor_f instead of
4016 exp_descriptor_standard.
4018 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4020 * f-exp.y (struct token): Add comments.
4021 (dot_ops): Remove uppercase versions and the end marker.
4022 (f77_keywords): Likewise.
4023 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
4024 entries in the dot_ops array are case insensitive, and use
4025 strncasecmp to compare strings. Also some whitespace cleanup in
4026 this area. Similar for the f77_keywords array, except entries in
4027 this list might be case sensitive.
4029 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4031 * f-exp.y (struct f77_boolean_val): Add comments.
4032 (boolean_values): Remove uppercase versions, and end marker.
4033 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
4034 and use strncasecmp to achieve case insensitivity. Additionally,
4035 perform whitespace cleanup around this code.
4037 2019-03-06 Tom Tromey <tromey@adacore.com>
4039 * remote-sim.c (gdbsim_target_open): Use result of
4042 2019-03-06 Richard Bunt <richard.bunt@arm.com>
4043 Dirk Schubert <dirk.schubert@arm.com>
4044 Chris January <chris.january@arm.com>
4046 * eval.c (evaluate_subexp_standard): Call Fortran argument
4048 * f-lang.c (struct value): A value which can be passed into a
4049 Fortran function call.
4050 (fortran_argument_convert): Wrap Fortran arguments in a pointer
4052 (struct type): Value ready for a Fortran function call.
4053 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
4055 * f-lang.h (fortran_argument_convert): Declaration.
4056 (fortran_preserve_arg_pointer): Declaration.
4057 * infcall.c (value_arg_coerce): Call Fortran argument logic.
4059 2019-03-05 Tom Tromey <tromey@adacore.com>
4061 * python/py-prettyprint.c (print_string_repr): Remove #if.
4062 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
4064 2019-03-05 Tom Tromey <tromey@adacore.com>
4066 * target.c (the_dummy_target): Move later. Change type to
4068 (initialize_targets): Don't initialize the_dummy_target.
4070 2019-03-05 Tom Tromey <tromey@adacore.com>
4072 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
4073 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
4075 2019-03-05 Tom Tromey <tromey@adacore.com>
4077 * windows-nat.c (windows_nat_target::attach)
4078 (windows_nat_target::detach): Don't call gdb_flush.
4079 * valprint.c (generic_val_print, val_print, val_print_string):
4080 Don't call gdb_flush.
4081 * utils.c (defaulted_query): Don't call gdb_flush.
4082 * typeprint.c (print_type_scalar): Don't call gdb_flush.
4083 * target.c (target_announce_detach): Don't call gdb_flush.
4084 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
4085 * remote.c (extended_remote_target::attach): Don't call
4087 * procfs.c (procfs_target::detach): Don't call gdb_flush.
4088 * printcmd.c (do_examine): Don't call gdb_flush.
4089 (info_display_command): Don't call gdb_flush.
4090 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
4091 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
4092 * memattr.c (info_mem_command): Don't call gdb_flush.
4093 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
4094 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
4095 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
4096 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
4097 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
4098 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
4099 (gnu_nat_target::detach): Don't call gdb_flush.
4100 * f-valprint.c (f_val_print): Don't call gdb_flush.
4101 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
4102 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
4103 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
4105 * c-valprint.c (c_val_print): Don't call gdb_flush.
4106 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
4108 2019-03-05 Tom Tromey <tromey@adacore.com>
4110 * varobj.c (update_dynamic_varobj_children): Update.
4111 (install_default_visualizer): Use reset, not release.
4112 * value.c (set_internalvar): Update.
4113 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
4114 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
4115 ATTRIBUTE_UNUSED_RESULT.
4117 2019-03-05 Tom Tromey <tromey@adacore.com>
4119 * remote.c (class scoped_remote_fd) <release>: Add
4120 ATTRIBUTE_UNUSED_RESULT.
4122 2019-03-05 Tom Tromey <tromey@adacore.com>
4124 * macroexp.c (struct macro_buffer) <release>: Add
4125 ATTRIBUTE_UNUSED_RESULT.
4127 2019-03-05 Tom Tromey <tromey@adacore.com>
4129 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
4130 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
4131 ATTRIBUTE_UNUSED_RESULT.
4133 2019-03-05 Tom Tromey <tromey@adacore.com>
4135 * common/scoped_fd.h (class scoped_fd) <release>: Add
4136 ATTRIBUTE_UNUSED_RESULT.
4138 2019-03-05 Tom Tromey <tromey@adacore.com>
4140 * parser-defs.h (struct parser_state) <release>: Add
4141 ATTRIBUTE_UNUSED_RESULT.
4143 2019-03-05 Tom Tromey <tromey@adacore.com>
4145 * utils.h (class gdb_argv) <release>: Add
4146 ATTRIBUTE_UNUSED_RESULT.
4147 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
4149 2019-03-02 Eli Zaretskii <eliz@gnu.org>
4151 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
4152 for-loop range, to avoid compiler warnings.
4154 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
4155 avoid compiler warnings about unused variables.
4157 * NEWS: Mention end of support for native debugging on MS-Windows
4161 * common/netstuff.c:
4162 * gdbserver/gdbreplay.c
4163 * gdbserver/remote-utils.c:
4165 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
4166 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
4167 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
4168 'getaddrinfo' and 'freeaddrinfo' were not available before
4169 Windows XP, and mingw.org's MinGW headers by default define
4170 _WIN32_WINNT to 0x500.
4172 2019-03-01 Gary Benson <gbenson@redhat.com>
4174 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
4176 2019-02-28 Brian Vandenberg <phantall@gmail.com>
4177 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4180 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
4181 set_sigint_trap, clear_sigint_trap.
4183 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4185 * target.c (target_detach): Clear the regcache and the
4188 2019-02-27 Pedro Alves <palves@redhat.com>
4190 * utils.c (set_screen_size): When we cap the height/width sizes,
4191 tweak the corresponding command variable to show "unlimited":
4193 2019-02-27 Saagar Jha <saagar@saagarjha.com>
4194 Pedro Alves <palves@redhat.com>
4196 * utils.c (set_screen_size): Reduce "infinite" rows and columns
4197 before calling rl_set_screen_size.
4199 2019-02-27 Tom Tromey <tromey@adacore.com>
4201 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
4203 * python/py-value.c: Remove Python 2.4 workaround.
4204 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
4206 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
4207 Python 2.4 workaround.
4208 * python/python-internal.h: Remove Python 2.4 comment.
4209 (Py_ssize_t): Don't define.
4210 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
4211 (gdb_Py_DECREF): Remove Python 2.4 workaround.
4212 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
4213 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
4214 * python/python.c (do_start_initialization): Remove Python 2.4
4216 * python/py-prettyprint.c (class dummy_python_frame): Remove.
4217 (print_children): Remove Python 2.4 workaround.
4218 * python/py-inferior.c (buffer_procs): Remove Python 2.4
4220 (CHARBUFFERPROC_NAME): Remove.
4221 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
4222 Python 2.4 workaround.
4224 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4226 * NEWS: Note minimum Python version.
4228 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4230 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
4231 code from these functions. Remove corresponding ifdefs. Use
4232 Py_buffer_up instead of explicit calls to PyBuffer_Release.
4233 Remove gotos and target of gotos.
4234 (infpy_search_memory): Likewise.
4236 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4238 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
4239 (hppa_gdbarch_init): Don't register deleted functions with
4242 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4244 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
4245 (h8300_unwind_sp): Delete.
4246 (h8300_dummy_id): Delete.
4247 (h8300_gdbarch_init): Don't register deleted functions with
4250 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4252 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
4253 (ft32_unwind_pc): Delete.
4254 (ft32_unwind_sp): Delete.
4255 (ft32_gdbarch_init): Don't register deleted functions with
4258 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4260 * gdb/frv-tdep.c (frv_dummy_id): Delete.
4261 (frv_unwind_pc): Delete.
4262 (frv_unwind_sp): Delete.
4263 (frv_gdbarch_init): Don't register deleted functions with
4266 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4268 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
4269 (riscv_unwind_pc): Delete.
4270 (riscv_unwind_sp): Delete.
4271 (riscv_gdbarch_init): Don't register deleted functions with
4274 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4276 * gdb/csky-tdep.c (csky_dummy_id): Delete.
4277 (csky_unwind_pc): Delete.
4278 (csky_unwind_sp): Delete.
4279 (csky_gdbarch_init): Don't register deleted functions with
4282 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4284 * gdb/cris-tdep.c (cris_dummy_id): Delete.
4285 (cris_unwind_pc): Delete.
4286 (cris_unwind_sp): Delete.
4287 (cris_gdbarch_init): Don't register deleted functions with
4290 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4292 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
4293 (bfin_unwind_pc): Delete.
4294 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
4296 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4298 * gdb/arm-tdep.c (arm_dummy_id): Delete.
4299 (arm_unwind_pc): Delete.
4300 (arm_unwind_sp): Delete.
4301 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
4303 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4305 * gdb/arc-tdep.c (arc_dummy_id): Delete.
4306 (arc_unwind_pc): Delete.
4307 (arc_unwind_sp): Delete.
4308 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
4310 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4312 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
4313 (alpha_unwind_pc): Delete.
4314 (alpha_gdbarch_init): Don't register deleted functions with
4317 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4319 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
4320 (aarch64_unwind_pc): Delete.
4321 (aarch64_unwind_sp): Delete.
4322 (aarch64_gdbarch_init): Don't register deleted functions with
4325 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4327 * gdbtypes.c (type_align): Don't consider static members when
4328 computing structure alignment.
4330 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4332 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
4333 return 0 for other types.
4334 * arch-utils.c (default_type_align): Always return 0.
4335 * gdbarch.h: Regenerate.
4336 * gdbarch.sh (type_align): Extend comment.
4337 * gdbtypes.c (type_align): Add additional comments, always call
4338 gdbarch_type_align before applying the default rules.
4339 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
4340 generic code will then apply a suitable default.
4341 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
4342 types, return 0 for other types.
4344 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4346 * NEWS: Create a new section for the next release branch.
4347 Rename the section of the current branch, now that it has
4350 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4352 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
4353 * version.in: Bump version to 8.3.50.DATE-git.
4355 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
4357 * aix-thread.c (ptid_cmp): Remove unused variable.
4358 (get_signaled_thread): Likewise.
4359 (store_regs_user_thread): Likewise.
4360 (store_regs_kernel_thread): Likewise.
4361 (fetch_regs_kernel_thread): Remove shadowed variable.
4363 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
4365 * features/riscv/32bit-cpu.xml: Add register numbers.
4366 * features/riscv/32bit-fpu.c: Regenerate.
4367 * features/riscv/32bit-fpu.xml: Add register numbers.
4368 * features/riscv/64bit-cpu.xml: Add register numbers.
4369 * features/riscv/64bit-fpu.c: Regenerate.
4370 * features/riscv/64bit-fpu.xml: Add register numbers.
4372 2019-02-26 Kevin Buettner <kevinb@redhat.com>
4374 * NEWS: Mention two argument form of gdb.Value constructor.
4375 * python/py-value.c (convert_buffer_and_type_to_value): New
4377 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
4378 Add support for handling an optional second argument. Call
4379 convert_buffer_and_type_to_value as appropriate.
4380 * python/python-internal.h (Py_buffer_deleter): New struct.
4381 (Py_buffer_up): New typedef.
4383 2019-02-25 John Baldwin <jhb@FreeBSD.org>
4385 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
4386 instead of releasing ownership.
4388 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
4390 * dwarf2read.c (open_and_init_dwp_file): Call
4391 elf_numsections instead of bfd_count_sections to initialize
4392 dwp_file->num_sections.
4394 2019-02-25 Tom Tromey <tromey@adacore.com>
4396 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
4398 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
4400 * gcore.in: Add '--readnever' option when invoking GDB.
4402 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4404 * MAINTAINERS: Update my email address.
4406 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4408 * build-id.c (build_id_to_debug_bfd_1): New function.
4409 (build_id_to_debug_bfd): Look for separate debug file in
4412 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
4414 * gdbarch.sh: Update the copyright year range that is placed into
4417 2019-02-22 Keith Seitz <keiths@redhat.com>
4420 * linespec.c (create_sals_line_offset): Search for the default
4421 symtab's filename instead of its fullname.
4423 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4425 * NEWS: Update style defaults.
4427 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4429 * main.c (captured_main_1): Disable styling in batch mode.
4431 2019-02-20 Tom Tromey <tom@tromey.com>
4433 * symtab.c (symtab_symbol_info): Fix typos.
4435 2019-02-20 Tom Tromey <tromey@adacore.com>
4437 * findcmd.c (_initialize_mem_search): Use upper case for
4438 metasyntactic variables.
4440 2019-02-20 Alan Hayward <alan.hayward@arm.com>
4442 * aarch64-tdep.c (aarch64_add_reggroups): New function.
4443 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
4445 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
4447 * top.h (source_file_name): Change to std::string.
4448 * top.c (source_file_name): Likewise.
4449 (command_line_input): Adjust.
4450 * cli/cli-script.c (script_from_file): Adjust.
4452 2019-02-19 Tom Tromey <tromey@adacore.com>
4454 * ravenscar-thread.c
4455 (ravenscar_thread_target::update_thread_list): Don't call
4456 ada_build_task_list.
4457 * ada-lang.h (ada_build_task_list): Don't declare.
4458 * ada-tasks.c (struct ada_tasks_inferior_data)
4459 <task_list_valid_p>: Now bool.
4460 (read_known_tasks, ada_task_list_changed)
4461 (ada_tasks_invalidate_inferior_data): Update.
4462 (read_known_tasks_array): Return bool.
4463 (read_known_tasks_list): Likewise.
4464 (read_known_tasks): Return void.
4465 (ada_build_task_list): Now static.
4467 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
4469 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
4470 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
4472 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4474 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
4475 variant for ada_tasks_pspace_data_handle and
4476 ada_tasks_inferior_data_handle.
4477 (ada_tasks_pspace_data_cleanup): New function.
4478 (ada_tasks_inferior_data_cleanup): New function.
4480 2019-02-17 Tom Tromey <tom@tromey.com>
4482 * macrotab.h (macro_source_fullname): Return a std::string.
4483 * macrotab.c (macro_include, check_for_redefinition)
4484 (macro_undef, macro_lookup_definition, foreach_macro)
4485 (foreach_macro_in_scope): Update.
4486 (macro_source_fullname): Return a std::string.
4487 * macrocmd.c (show_pp_source_pos): Update.
4489 2019-02-17 Tom Tromey <tom@tromey.com>
4491 * macrocmd.c (show_pp_source_pos): Style the file names.
4493 2019-02-17 Tom Tromey <tom@tromey.com>
4496 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
4498 2019-02-17 Tom Tromey <tom@tromey.com>
4500 * ada-lang.c (user_select_syms): Use filtered printing.
4501 * utils.c (wrap_style): New global.
4502 (desired_style): Remove.
4503 (emit_style_escape): Add stream parameter.
4504 (set_output_style, reset_terminal_style, prompt_for_continue):
4506 (flush_wrap_buffer): Only flush gdb_stdout.
4507 (wrap_here): Set wrap_style.
4508 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
4509 treat escape sequences as a character. Change when wrap buffer is
4511 (fputs_styled): Do not set the output style when the default is
4513 * ui-style.h (struct ui_file_style) <is_default>: New method.
4514 * source.c (print_source_lines_base): Emit escape sequences in one
4517 2019-02-17 Joel Brobecker <brobecker@adacore.com>
4519 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
4520 integers and enumeration types.
4522 2019-02-17 Joel Brobecker <brobecker@adacore.com>
4524 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
4525 instead of lookup_symbol_in_language
4526 (do_exact_match): New function.
4527 (ada_get_symbol_name_matcher): Return do_exact_match when
4528 doing a verbatim match.
4530 2019-02-15 Tom Tromey <tromey@adacore.com>
4532 * ravenscar-thread.c (ravenscar_thread_target::resume)
4533 (ravenscar_thread_target::wait): Special case wildcard requests.
4535 2019-02-15 Tom Tromey <tromey@adacore.com>
4537 * ravenscar-thread.c (base_ptid): Remove.
4538 (struct ravenscar_thread_target) <close>: New method.
4539 <m_base_ptid>: New member.
4540 <update_inferior_ptid, active_task, task_is_currently_active,
4541 runtime_initialized>: Declare methods.
4542 <ravenscar_thread_target>: Add constructor.
4543 (ravenscar_thread_target::task_is_currently_active)
4544 (ravenscar_thread_target::update_inferior_ptid)
4545 (ravenscar_runtime_initialized): Rename. Now methods.
4546 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
4547 (ravenscar_thread_target::update_thread_list): Update.
4548 (ravenscar_thread_target::active_task): Now method.
4549 (ravenscar_thread_target::store_registers)
4550 (ravenscar_thread_target::prepare_to_store)
4551 (ravenscar_thread_target::prepare_to_store)
4552 (ravenscar_thread_target::mourn_inferior): Update.
4553 (ravenscar_inferior_created): Use "new" to create target.
4554 (ravenscar_thread_target::get_ada_task_ptid): Update.
4555 (_initialize_ravenscar): Don't initialize base_ptid.
4556 (ravenscar_ops): Remove global.
4558 2019-02-15 Tom Tromey <tromey@adacore.com>
4560 * target.h (push_target): Declare new overload.
4561 * target.c (push_target): New overload, taking an rvalue reference.
4562 * remote.c (remote_target::open_1): Use push_target overload.
4563 * corelow.c (core_target_open): Use push_target overload.
4565 2019-02-15 Tom Tromey <tromey@adacore.com>
4567 * ravenscar-thread.c (is_ravenscar_task)
4568 (ravenscar_task_is_currently_active): Return bool.
4569 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
4570 (_initialize_ravenscar): Remove "(void)".
4571 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
4574 2019-02-15 Tom Tromey <tromey@adacore.com>
4576 * ravenscar-thread.c (ravenscar_runtime_initializer)
4577 (has_ravenscar_runtime, get_running_thread_id)
4578 (ravenscar_thread_target::resume): Fix indentation.
4580 2019-02-15 Tom Tromey <tromey@adacore.com>
4582 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
4583 from ravenscar_arch_ops.
4584 (sparc_ravenscar_ops::fetch_registers)
4585 (sparc_ravenscar_ops::store_registers): Now methods.
4586 (sparc_ravenscar_prepare_to_store): Remove.
4587 (sparc_ravenscar_ops): Redefine.
4588 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
4589 methods and destructor. Remove members.
4590 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
4591 (ravenscar_thread_target::store_registers)
4592 (ravenscar_thread_target::prepare_to_store): Update.
4593 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
4595 (struct ppc_ravenscar_powerpc_ops): Derive from
4597 (ppc_ravenscar_powerpc_ops::fetch_registers)
4598 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
4599 (ppc_ravenscar_powerpc_ops): Redefine.
4600 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
4601 (ppc_ravenscar_e500_ops::fetch_registers)
4602 (ppc_ravenscar_e500_ops::store_registers): Now methods.
4603 (ppc_ravenscar_e500_ops): Redefine.
4604 * aarch64-ravenscar-thread.c
4605 (aarch64_ravenscar_generic_prepare_to_store): Remove.
4606 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
4607 (aarch64_ravenscar_fetch_registers)
4608 (aarch64_ravenscar_store_registers): Now methods.
4609 (aarch64_ravenscar_ops): Redefine.
4611 2019-02-15 Tom Tromey <tromey@adacore.com>
4613 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
4614 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4615 (ravenscar_thread_target::stopped_by_watchpoint)
4616 (ravenscar_thread_target::stopped_data_address)
4617 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
4619 2019-02-15 Tom Tromey <tromey@adacore.com>
4621 * ravenscar-thread.c: Fix some typos.
4623 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4624 Tom Tromey <tromey@adacore.com>
4626 * ada-lang.c (ada_exception_sal): Change addr_string to a
4628 (create_ada_exception_catchpoint): Update.
4630 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4631 Tom Tromey <tromey@adacore.com>
4633 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
4634 (bp_location_ops): Remove.
4635 (base_breakpoint_allocate_location): Update.
4636 (free_bp_location): Update.
4637 * ada-lang.c (class ada_catchpoint_location)
4638 <ada_catchpoint_location>: Remove ops parameter.
4639 (ada_catchpoint_location_dtor): Remove.
4640 (ada_catchpoint_location_ops): Remove.
4641 (allocate_location_exception): Update.
4642 * breakpoint.h (struct bp_location_ops): Remove.
4643 (class bp_location) <bp_location>: Remove bp_location_ops
4645 <~bp_location>: Add destructor.
4648 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
4649 Pedro Alves <palves@redhat.com>
4651 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
4654 2019-02-14 David Michael <fedora.dm0@gmail.com>
4655 Samuel Thibault <samuel.thibault@gnu.org>
4656 Thomas Schwinge <thomas@codesourcery.com>
4658 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
4659 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
4661 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
4663 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
4664 (check_empty): Use "const char *".
4666 * gnu-nat.c (gnu_nat_target::detach): Instead of
4667 'detach_inferior (pid)' call
4668 'detach_inferior (find_inferior_pid (pid))'.
4670 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
4671 'nat/fork-inferior.o'.
4672 * gnu-nat.c: #include "nat/fork-inferior.h".
4674 * gnu-nat.c (gnu_nat_target::detach): Instead of
4675 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
4676 * gnu-nat.h: #include "inf-child.h".
4677 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
4678 'i386_gnu_nat_target::fetch_registers'.
4679 (gnu_store_registers): Rename/move to
4680 'i386_gnu_nat_target::store_registers'.
4682 * config/i386/nm-i386gnu.h: Don't "#include" any files.
4683 * gnu-nat.h (mach_thread_info): New function.
4684 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
4686 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
4688 2019-02-14 Frederic Konrad <konrad@adacore.com>
4690 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
4692 2019-02-14 Joel Brobecker <brobecker@adacore.com>
4694 * windows-nat.c (windows_add_thread): Add new parameter
4695 "main_thread_p" with default value set to false. Update
4696 function documentation as well as all callers.
4697 (windows_delete_thread): Likewise.
4698 (fake_create_process): Update call to windows_add_thread.
4699 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
4700 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
4701 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
4702 call to windows_delete_thread.
4704 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
4706 * MAINTAINERS: Add Andrew Burgess as global maintainer.
4708 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4710 * symfile.c (find_separate_debug_file): Use canonical path of
4711 sysroot with child_path instead of gdb_sysroot if it is valid.
4713 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4715 * symfile.c (find_separate_debug_file): Use child_path to
4716 determine if an object file is under a sysroot.
4718 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4720 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4721 unittests/child-path-selftests.c.
4722 * common/pathstuff.c (child_path): New function.
4723 * common/pathstuff.h (child_path): New prototype.
4724 * unittests/child-path-selftests.c: New file.
4726 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4728 * symfile.c (find_separate_debug_file): Look for separate debug
4729 files in debug directories under the sysroot.
4731 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4733 * symtab.h (struct minimal_symbol data_p): New const method.
4734 (struct minimal_symbol text_p): Likewise.
4735 * symtab.c (output_source_filename): Use file name style
4737 (print_symbol_info): Likewise.
4738 (print_msymbol_info): Use address style to print addresses.
4739 Use function name style to print executable text symbols.
4740 (expand_symtab_containing_pc): Use data_p.
4741 (find_pc_sect_compunit_symtab): Likewise.
4743 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4745 * breakpoint.c (describe_other_breakpoints): Use address style
4747 (say_where): Likewise.
4749 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4751 * ada-typeprint.c (print_func_type): Print function name
4752 style to print function name.
4753 * c-typeprint.c (c_print_type_1): Likewise.
4755 2019-02-11 Alan Hayward <alan.hayward@arm.com>
4757 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
4760 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4762 * c-exp.y (direct_abs_decl): Use emplace_back to record the
4765 2019-02-10 Joel Brobecker <brobecker@adacore.com>
4767 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
4768 TYPE_CODE_REF types.
4770 2019-02-08 Jim Wilson <jimw@sifive.com>
4772 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
4773 (riscv_linux_fregset): New.
4774 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
4776 2019-02-07 Tom Tromey <tom@tromey.com>
4778 * thread.c (thread_cancel_execution_command): Update.
4779 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
4781 (struct thread_fsm_ops): Remove.
4782 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
4783 (thread_fsm_should_stop, thread_fsm_return_value)
4784 (thread_fsm_set_finished, thread_fsm_finished_p)
4785 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
4787 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
4788 * infrun.c (clear_proceed_status_thread)
4789 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
4790 (print_stop_event): Update.
4791 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
4793 (step_command_fsm_ops): Remove.
4794 (new_step_command_fsm): Remove.
4796 (step_command_fsm::should_stop): Rename from
4797 step_command_fsm_should_stop.
4798 (step_command_fsm::clean_up): Rename from
4799 step_command_fsm_clean_up.
4800 (step_command_fsm::do_async_reply_reason): Rename from
4801 step_command_fsm_async_reply_reason.
4802 (struct until_next_fsm): Inherit from thread_fsm. Add
4804 (until_next_fsm_ops): Remove.
4805 (new_until_next_fsm): Remove.
4806 (until_next_fsm::should_stop): Rename from
4807 until_next_fsm_should_stop.
4808 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
4809 (until_next_fsm::do_async_reply_reason): Rename from
4810 until_next_fsm_async_reply_reason.
4811 (struct finish_command_fsm): Inherit from thread_fsm. Add
4812 constructor. Change type of breakpoint.
4813 (finish_command_fsm_ops): Remove.
4814 (new_finish_command_fsm): Remove.
4815 (finish_command_fsm::should_stop): Rename from
4816 finish_command_fsm_should_stop.
4817 (finish_command_fsm::clean_up): Rename from
4818 finish_command_fsm_clean_up.
4819 (finish_command_fsm::return_value): Rename from
4820 finish_command_fsm_return_value.
4821 (finish_command_fsm::do_async_reply_reason): Rename from
4822 finish_command_fsm_async_reply_reason.
4823 (finish_command): Update.
4824 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
4826 (call_thread_fsm_ops): Remove.
4827 (call_thread_fsm::call_thread_fsm): Rename from
4828 new_call_thread_fsm.
4829 (call_thread_fsm::should_stop): Rename from
4830 call_thread_fsm_should_stop.
4831 (call_thread_fsm::should_notify_stop): Rename from
4832 call_thread_fsm_should_notify_stop.
4833 (run_inferior_call, call_function_by_hand_dummy): Update.
4834 * cli/cli-interp.c (should_print_stop_to_console): Update.
4835 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
4836 Add constructor. Change type of location_breakpoint,
4838 (until_break_fsm_ops): Remove.
4839 (new_until_break_fsm): Remove.
4840 (until_break_fsm::should_stop): Rename from
4841 until_break_fsm_should_stop.
4842 (until_break_fsm::clean_up): Rename from
4843 until_break_fsm_clean_up.
4844 (until_break_fsm::do_async_reply_reason): Rename from
4845 until_break_fsm_async_reply_reason.
4846 (until_break_command): Update.
4847 * thread-fsm.c: Remove.
4848 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
4850 2019-02-07 Tom Tromey <tom@tromey.com>
4852 * yy-remap.h: Add include guard.
4853 * xtensa-tdep.h: Add include guard.
4854 * xcoffread.h: Rename include guard.
4855 * varobj-iter.h: Add include guard.
4856 * tui/tui.h: Rename include guard.
4857 * tui/tui-winsource.h: Rename include guard.
4858 * tui/tui-wingeneral.h: Rename include guard.
4859 * tui/tui-windata.h: Rename include guard.
4860 * tui/tui-win.h: Rename include guard.
4861 * tui/tui-stack.h: Rename include guard.
4862 * tui/tui-source.h: Rename include guard.
4863 * tui/tui-regs.h: Rename include guard.
4864 * tui/tui-out.h: Rename include guard.
4865 * tui/tui-layout.h: Rename include guard.
4866 * tui/tui-io.h: Rename include guard.
4867 * tui/tui-hooks.h: Rename include guard.
4868 * tui/tui-file.h: Rename include guard.
4869 * tui/tui-disasm.h: Rename include guard.
4870 * tui/tui-data.h: Rename include guard.
4871 * tui/tui-command.h: Rename include guard.
4872 * tic6x-tdep.h: Add include guard.
4873 * target/waitstatus.h: Rename include guard.
4874 * target/wait.h: Rename include guard.
4875 * target/target.h: Rename include guard.
4876 * target/resume.h: Rename include guard.
4877 * target-float.h: Rename include guard.
4878 * stabsread.h: Add include guard.
4879 * rs6000-tdep.h: Add include guard.
4880 * riscv-fbsd-tdep.h: Add include guard.
4881 * regformats/regdef.h: Rename include guard.
4882 * record.h: Rename include guard.
4883 * python/python.h: Rename include guard.
4884 * python/python-internal.h: Rename include guard.
4885 * python/py-stopevent.h: Rename include guard.
4886 * python/py-ref.h: Rename include guard.
4887 * python/py-record.h: Rename include guard.
4888 * python/py-record-full.h: Rename include guard.
4889 * python/py-record-btrace.h: Rename include guard.
4890 * python/py-instruction.h: Rename include guard.
4891 * python/py-events.h: Rename include guard.
4892 * python/py-event.h: Rename include guard.
4893 * procfs.h: Add include guard.
4894 * proc-utils.h: Add include guard.
4895 * p-lang.h: Add include guard.
4896 * or1k-tdep.h: Rename include guard.
4897 * observable.h: Rename include guard.
4898 * nto-tdep.h: Rename include guard.
4899 * nat/x86-linux.h: Rename include guard.
4900 * nat/x86-linux-dregs.h: Rename include guard.
4901 * nat/x86-gcc-cpuid.h: Add include guard.
4902 * nat/x86-dregs.h: Rename include guard.
4903 * nat/x86-cpuid.h: Rename include guard.
4904 * nat/ppc-linux.h: Rename include guard.
4905 * nat/mips-linux-watch.h: Rename include guard.
4906 * nat/linux-waitpid.h: Rename include guard.
4907 * nat/linux-ptrace.h: Rename include guard.
4908 * nat/linux-procfs.h: Rename include guard.
4909 * nat/linux-osdata.h: Rename include guard.
4910 * nat/linux-nat.h: Rename include guard.
4911 * nat/linux-namespaces.h: Rename include guard.
4912 * nat/linux-btrace.h: Rename include guard.
4913 * nat/glibc_thread_db.h: Rename include guard.
4914 * nat/gdb_thread_db.h: Rename include guard.
4915 * nat/gdb_ptrace.h: Rename include guard.
4916 * nat/fork-inferior.h: Rename include guard.
4917 * nat/amd64-linux-siginfo.h: Rename include guard.
4918 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
4919 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
4920 * nat/aarch64-linux.h: Rename include guard.
4921 * nat/aarch64-linux-hw-point.h: Rename include guard.
4922 * mn10300-tdep.h: Add include guard.
4923 * mips-linux-tdep.h: Add include guard.
4924 * mi/mi-parse.h: Rename include guard.
4925 * mi/mi-out.h: Rename include guard.
4926 * mi/mi-main.h: Rename include guard.
4927 * mi/mi-interp.h: Rename include guard.
4928 * mi/mi-getopt.h: Rename include guard.
4929 * mi/mi-console.h: Rename include guard.
4930 * mi/mi-common.h: Rename include guard.
4931 * mi/mi-cmds.h: Rename include guard.
4932 * mi/mi-cmd-break.h: Rename include guard.
4933 * m2-lang.h: Add include guard.
4934 * location.h: Rename include guard.
4935 * linux-record.h: Rename include guard.
4936 * linux-nat.h: Add include guard.
4937 * linux-fork.h: Add include guard.
4938 * i386-darwin-tdep.h: Rename include guard.
4939 * hppa-linux-offsets.h: Add include guard.
4940 * guile/guile.h: Rename include guard.
4941 * guile/guile-internal.h: Rename include guard.
4942 * gnu-nat.h: Rename include guard.
4943 * gdb-stabs.h: Rename include guard.
4944 * frv-tdep.h: Add include guard.
4945 * f-lang.h: Add include guard.
4946 * event-loop.h: Add include guard.
4947 * darwin-nat.h: Rename include guard.
4948 * cp-abi.h: Rename include guard.
4949 * config/sparc/nm-sol2.h: Rename include guard.
4950 * config/nm-nto.h: Rename include guard.
4951 * config/nm-linux.h: Add include guard.
4952 * config/i386/nm-i386gnu.h: Rename include guard.
4953 * config/djgpp/nl_types.h: Rename include guard.
4954 * config/djgpp/langinfo.h: Rename include guard.
4955 * compile/gcc-cp-plugin.h: Add include guard.
4956 * compile/gcc-c-plugin.h: Add include guard.
4957 * compile/compile.h: Rename include guard.
4958 * compile/compile-object-run.h: Rename include guard.
4959 * compile/compile-object-load.h: Rename include guard.
4960 * compile/compile-internal.h: Rename include guard.
4961 * compile/compile-cplus.h: Rename include guard.
4962 * compile/compile-c.h: Rename include guard.
4963 * common/xml-utils.h: Rename include guard.
4964 * common/x86-xstate.h: Rename include guard.
4965 * common/version.h: Rename include guard.
4966 * common/vec.h: Rename include guard.
4967 * common/tdesc.h: Rename include guard.
4968 * common/selftest.h: Rename include guard.
4969 * common/scoped_restore.h: Rename include guard.
4970 * common/scoped_mmap.h: Rename include guard.
4971 * common/scoped_fd.h: Rename include guard.
4972 * common/safe-iterator.h: Rename include guard.
4973 * common/run-time-clock.h: Rename include guard.
4974 * common/refcounted-object.h: Rename include guard.
4975 * common/queue.h: Rename include guard.
4976 * common/ptid.h: Rename include guard.
4977 * common/print-utils.h: Rename include guard.
4978 * common/preprocessor.h: Rename include guard.
4979 * common/pathstuff.h: Rename include guard.
4980 * common/observable.h: Rename include guard.
4981 * common/netstuff.h: Rename include guard.
4982 * common/job-control.h: Rename include guard.
4983 * common/host-defs.h: Rename include guard.
4984 * common/gdb_wait.h: Rename include guard.
4985 * common/gdb_vecs.h: Rename include guard.
4986 * common/gdb_unlinker.h: Rename include guard.
4987 * common/gdb_unique_ptr.h: Rename include guard.
4988 * common/gdb_tilde_expand.h: Rename include guard.
4989 * common/gdb_sys_time.h: Rename include guard.
4990 * common/gdb_string_view.h: Rename include guard.
4991 * common/gdb_splay_tree.h: Rename include guard.
4992 * common/gdb_setjmp.h: Rename include guard.
4993 * common/gdb_ref_ptr.h: Rename include guard.
4994 * common/gdb_optional.h: Rename include guard.
4995 * common/gdb_locale.h: Rename include guard.
4996 * common/gdb_assert.h: Rename include guard.
4997 * common/filtered-iterator.h: Rename include guard.
4998 * common/filestuff.h: Rename include guard.
4999 * common/fileio.h: Rename include guard.
5000 * common/environ.h: Rename include guard.
5001 * common/common-utils.h: Rename include guard.
5002 * common/common-types.h: Rename include guard.
5003 * common/common-regcache.h: Rename include guard.
5004 * common/common-inferior.h: Rename include guard.
5005 * common/common-gdbthread.h: Rename include guard.
5006 * common/common-exceptions.h: Rename include guard.
5007 * common/common-defs.h: Rename include guard.
5008 * common/common-debug.h: Rename include guard.
5009 * common/cleanups.h: Rename include guard.
5010 * common/buffer.h: Rename include guard.
5011 * common/btrace-common.h: Rename include guard.
5012 * common/break-common.h: Rename include guard.
5013 * cli/cli-utils.h: Rename include guard.
5014 * cli/cli-style.h: Rename include guard.
5015 * cli/cli-setshow.h: Rename include guard.
5016 * cli/cli-script.h: Rename include guard.
5017 * cli/cli-interp.h: Rename include guard.
5018 * cli/cli-decode.h: Rename include guard.
5019 * cli/cli-cmds.h: Rename include guard.
5020 * charset-list.h: Add include guard.
5021 * buildsym-legacy.h: Rename include guard.
5022 * bfin-tdep.h: Add include guard.
5023 * ax.h: Rename include guard.
5024 * arm-linux-tdep.h: Add include guard.
5025 * arm-fbsd-tdep.h: Add include guard.
5026 * arch/xtensa.h: Rename include guard.
5027 * arch/tic6x.h: Add include guard.
5028 * arch/i386.h: Add include guard.
5029 * arch/arm.h: Rename include guard.
5030 * arch/arm-linux.h: Rename include guard.
5031 * arch/arm-get-next-pcs.h: Rename include guard.
5032 * arch/amd64.h: Add include guard.
5033 * arch/aarch64-insn.h: Rename include guard.
5034 * arch-utils.h: Rename include guard.
5035 * annotate.h: Add include guard.
5036 * amd64-darwin-tdep.h: Rename include guard.
5037 * aarch64-linux-tdep.h: Add include guard.
5038 * aarch64-fbsd-tdep.h: Add include guard.
5039 * aarch32-linux-nat.h: Add include guard.
5041 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5043 * macrotab.c (macro_define_internal): New function that
5044 factorizes macro_define_object_internal and macro_define_function
5046 (macro_define_object_internal): Use macro_define_internal.
5047 (macro_define_function): Likewise.
5049 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5051 * macrocmd.c (extract_identifier): Return
5052 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
5055 2019-02-06 John Baldwin <jhb@FreeBSD.org>
5057 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
5059 2019-02-05 Tom Tromey <tom@tromey.com>
5061 * target.c (target_stack::unpush): Move assertion earlier.
5063 2019-01-30 Tom Tromey <tom@tromey.com>
5066 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
5067 (gdbpy_parse_and_eval): Likewise.
5068 * python/python-internal.h (gdbpy_allow_threads): New class.
5070 2019-01-28 John Baldwin <jhb@FreeBSD.org>
5072 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
5073 (aarch64_fbsd_fpregmap): Move earlier.
5074 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
5075 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5076 instead of individual calls to trad_frame_set_reg_addr.
5077 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
5079 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
5080 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5081 instead of individual calls to trad_frame_set_reg_addr.
5083 2019-01-28 Alan Hayward <alan.hayward@arm.com>
5085 * CONTRIBUTE: Replace contribution list with wiki link.
5087 2019-01-25 Tom Tromey <tom@tromey.com>
5089 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
5091 2019-01-25 Tom Tromey <tom@tromey.com>
5093 * xtensa-linux-nat.c: Fix common/ includes.
5094 * xml-support.h: Fix common/ includes.
5095 * xml-support.c: Fix common/ includes.
5096 * x86-linux-nat.c: Fix common/ includes.
5097 * windows-nat.c: Fix common/ includes.
5098 * varobj.h: Fix common/ includes.
5099 * varobj.c: Fix common/ includes.
5100 * value.c: Fix common/ includes.
5101 * valops.c: Fix common/ includes.
5102 * utils.c: Fix common/ includes.
5103 * unittests/xml-utils-selftests.c: Fix common/ includes.
5104 * unittests/utils-selftests.c: Fix common/ includes.
5105 * unittests/unpack-selftests.c: Fix common/ includes.
5106 * unittests/tracepoint-selftests.c: Fix common/ includes.
5107 * unittests/style-selftests.c: Fix common/ includes.
5108 * unittests/string_view-selftests.c: Fix common/ includes.
5109 * unittests/scoped_restore-selftests.c: Fix common/ includes.
5110 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
5111 * unittests/scoped_fd-selftests.c: Fix common/ includes.
5112 * unittests/rsp-low-selftests.c: Fix common/ includes.
5113 * unittests/parse-connection-spec-selftests.c: Fix common/
5115 * unittests/optional-selftests.c: Fix common/ includes.
5116 * unittests/offset-type-selftests.c: Fix common/ includes.
5117 * unittests/observable-selftests.c: Fix common/ includes.
5118 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
5119 * unittests/memrange-selftests.c: Fix common/ includes.
5120 * unittests/memory-map-selftests.c: Fix common/ includes.
5121 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
5122 * unittests/function-view-selftests.c: Fix common/ includes.
5123 * unittests/environ-selftests.c: Fix common/ includes.
5124 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
5125 * unittests/common-utils-selftests.c: Fix common/ includes.
5126 * unittests/cli-utils-selftests.c: Fix common/ includes.
5127 * unittests/array-view-selftests.c: Fix common/ includes.
5128 * ui-file.c: Fix common/ includes.
5129 * tui/tui-io.c: Fix common/ includes.
5130 * tracepoint.h: Fix common/ includes.
5131 * tracepoint.c: Fix common/ includes.
5132 * tracefile-tfile.c: Fix common/ includes.
5133 * top.h: Fix common/ includes.
5134 * top.c: Fix common/ includes.
5135 * thread.c: Fix common/ includes.
5136 * target/waitstatus.h: Fix common/ includes.
5137 * target/waitstatus.c: Fix common/ includes.
5138 * target.h: Fix common/ includes.
5139 * target.c: Fix common/ includes.
5140 * target-memory.c: Fix common/ includes.
5141 * target-descriptions.c: Fix common/ includes.
5142 * symtab.h: Fix common/ includes.
5143 * symfile.c: Fix common/ includes.
5144 * stap-probe.c: Fix common/ includes.
5145 * spu-linux-nat.c: Fix common/ includes.
5146 * sparc-nat.c: Fix common/ includes.
5147 * source.c: Fix common/ includes.
5148 * solib.c: Fix common/ includes.
5149 * solib-target.c: Fix common/ includes.
5150 * ser-unix.c: Fix common/ includes.
5151 * ser-tcp.c: Fix common/ includes.
5152 * ser-pipe.c: Fix common/ includes.
5153 * ser-base.c: Fix common/ includes.
5154 * selftest-arch.c: Fix common/ includes.
5155 * s12z-tdep.c: Fix common/ includes.
5156 * rust-exp.y: Fix common/ includes.
5157 * rs6000-aix-tdep.c: Fix common/ includes.
5158 * riscv-tdep.c: Fix common/ includes.
5159 * remote.c: Fix common/ includes.
5160 * remote-notif.h: Fix common/ includes.
5161 * remote-fileio.h: Fix common/ includes.
5162 * remote-fileio.c: Fix common/ includes.
5163 * regcache.h: Fix common/ includes.
5164 * regcache.c: Fix common/ includes.
5165 * record-btrace.c: Fix common/ includes.
5166 * python/python.c: Fix common/ includes.
5167 * python/py-type.c: Fix common/ includes.
5168 * python/py-inferior.c: Fix common/ includes.
5169 * progspace.h: Fix common/ includes.
5170 * producer.c: Fix common/ includes.
5171 * procfs.c: Fix common/ includes.
5172 * proc-api.c: Fix common/ includes.
5173 * printcmd.c: Fix common/ includes.
5174 * ppc-linux-nat.c: Fix common/ includes.
5175 * parser-defs.h: Fix common/ includes.
5176 * osdata.c: Fix common/ includes.
5177 * obsd-nat.c: Fix common/ includes.
5178 * nat/x86-linux.c: Fix common/ includes.
5179 * nat/x86-linux-dregs.c: Fix common/ includes.
5180 * nat/x86-dregs.h: Fix common/ includes.
5181 * nat/x86-dregs.c: Fix common/ includes.
5182 * nat/ppc-linux.c: Fix common/ includes.
5183 * nat/mips-linux-watch.h: Fix common/ includes.
5184 * nat/mips-linux-watch.c: Fix common/ includes.
5185 * nat/linux-waitpid.c: Fix common/ includes.
5186 * nat/linux-ptrace.h: Fix common/ includes.
5187 * nat/linux-ptrace.c: Fix common/ includes.
5188 * nat/linux-procfs.c: Fix common/ includes.
5189 * nat/linux-personality.c: Fix common/ includes.
5190 * nat/linux-osdata.c: Fix common/ includes.
5191 * nat/linux-namespaces.c: Fix common/ includes.
5192 * nat/linux-btrace.h: Fix common/ includes.
5193 * nat/linux-btrace.c: Fix common/ includes.
5194 * nat/fork-inferior.c: Fix common/ includes.
5195 * nat/amd64-linux-siginfo.c: Fix common/ includes.
5196 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
5197 * nat/aarch64-linux.c: Fix common/ includes.
5198 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
5199 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
5200 * namespace.h: Fix common/ includes.
5201 * mips-linux-tdep.c: Fix common/ includes.
5202 * minsyms.c: Fix common/ includes.
5203 * mi/mi-parse.h: Fix common/ includes.
5204 * mi/mi-main.c: Fix common/ includes.
5205 * mi/mi-cmd-env.c: Fix common/ includes.
5206 * memrange.h: Fix common/ includes.
5207 * memattr.c: Fix common/ includes.
5208 * maint.h: Fix common/ includes.
5209 * maint.c: Fix common/ includes.
5210 * main.c: Fix common/ includes.
5211 * machoread.c: Fix common/ includes.
5212 * location.c: Fix common/ includes.
5213 * linux-thread-db.c: Fix common/ includes.
5214 * linux-nat.c: Fix common/ includes.
5215 * linux-fork.c: Fix common/ includes.
5216 * inline-frame.c: Fix common/ includes.
5217 * infrun.c: Fix common/ includes.
5218 * inflow.c: Fix common/ includes.
5219 * inferior.h: Fix common/ includes.
5220 * inferior.c: Fix common/ includes.
5221 * infcmd.c: Fix common/ includes.
5222 * inf-ptrace.c: Fix common/ includes.
5223 * inf-child.c: Fix common/ includes.
5224 * ia64-linux-nat.c: Fix common/ includes.
5225 * i387-tdep.c: Fix common/ includes.
5226 * i386-tdep.c: Fix common/ includes.
5227 * i386-linux-tdep.c: Fix common/ includes.
5228 * i386-linux-nat.c: Fix common/ includes.
5229 * i386-go32-tdep.c: Fix common/ includes.
5230 * i386-fbsd-tdep.c: Fix common/ includes.
5231 * i386-fbsd-nat.c: Fix common/ includes.
5232 * guile/scm-type.c: Fix common/ includes.
5233 * guile/guile.c: Fix common/ includes.
5234 * go32-nat.c: Fix common/ includes.
5235 * gnu-nat.c: Fix common/ includes.
5236 * gdbthread.h: Fix common/ includes.
5237 * gdbarch-selftests.c: Fix common/ includes.
5238 * gdb_usleep.c: Fix common/ includes.
5239 * gdb_select.h: Fix common/ includes.
5240 * gdb_bfd.c: Fix common/ includes.
5241 * gcore.c: Fix common/ includes.
5242 * fork-child.c: Fix common/ includes.
5243 * findvar.c: Fix common/ includes.
5244 * fbsd-nat.c: Fix common/ includes.
5245 * event-top.c: Fix common/ includes.
5246 * event-loop.c: Fix common/ includes.
5247 * dwarf2read.c: Fix common/ includes.
5248 * dwarf2loc.c: Fix common/ includes.
5249 * dwarf2-frame.c: Fix common/ includes.
5250 * dwarf-index-cache.c: Fix common/ includes.
5251 * dtrace-probe.c: Fix common/ includes.
5252 * disasm-selftests.c: Fix common/ includes.
5253 * defs.h: Fix common/ includes.
5254 * csky-tdep.c: Fix common/ includes.
5255 * cp-valprint.c: Fix common/ includes.
5256 * cp-support.h: Fix common/ includes.
5257 * cp-support.c: Fix common/ includes.
5258 * corelow.c: Fix common/ includes.
5259 * completer.h: Fix common/ includes.
5260 * completer.c: Fix common/ includes.
5261 * compile/compile.c: Fix common/ includes.
5262 * compile/compile-loc2c.c: Fix common/ includes.
5263 * compile/compile-cplus-types.c: Fix common/ includes.
5264 * compile/compile-cplus-symbols.c: Fix common/ includes.
5265 * command.h: Fix common/ includes.
5266 * cli/cli-dump.c: Fix common/ includes.
5267 * cli/cli-cmds.c: Fix common/ includes.
5268 * charset.c: Fix common/ includes.
5269 * build-id.c: Fix common/ includes.
5270 * btrace.h: Fix common/ includes.
5271 * btrace.c: Fix common/ includes.
5272 * breakpoint.h: Fix common/ includes.
5273 * breakpoint.c: Fix common/ includes.
5275 (enum agent_op): Fix common/ includes.
5276 * ax-general.c (struct aop_map): Fix common/ includes.
5277 * ax-gdb.c: Fix common/ includes.
5278 * auxv.c: Fix common/ includes.
5279 * auto-load.c: Fix common/ includes.
5280 * arm-tdep.c: Fix common/ includes.
5281 * arch/riscv.c: Fix common/ includes.
5282 * arch/ppc-linux-common.c: Fix common/ includes.
5283 * arch/i386.c: Fix common/ includes.
5284 * arch/arm.c: Fix common/ includes.
5285 * arch/arm-linux.c: Fix common/ includes.
5286 * arch/arm-get-next-pcs.c: Fix common/ includes.
5287 * arch/amd64.c: Fix common/ includes.
5288 * arch/aarch64.c: Fix common/ includes.
5289 * arch/aarch64-insn.c: Fix common/ includes.
5290 * arch-utils.c: Fix common/ includes.
5291 * amd64-windows-tdep.c: Fix common/ includes.
5292 * amd64-tdep.c: Fix common/ includes.
5293 * amd64-sol2-tdep.c: Fix common/ includes.
5294 * amd64-obsd-tdep.c: Fix common/ includes.
5295 * amd64-nbsd-tdep.c: Fix common/ includes.
5296 * amd64-linux-tdep.c: Fix common/ includes.
5297 * amd64-linux-nat.c: Fix common/ includes.
5298 * amd64-fbsd-tdep.c: Fix common/ includes.
5299 * amd64-fbsd-nat.c: Fix common/ includes.
5300 * amd64-dicos-tdep.c: Fix common/ includes.
5301 * amd64-darwin-tdep.c: Fix common/ includes.
5302 * agent.c: Fix common/ includes.
5303 * ada-lang.h: Fix common/ includes.
5304 * ada-lang.c: Fix common/ includes.
5305 * aarch64-tdep.c: Fix common/ includes.
5307 2019-01-25 Tom Tromey <tom@tromey.com>
5309 * common/create-version.sh: Use common/version.h.
5311 2019-01-24 Pedro Alves <palves@redhat.com>
5313 * infrun.c (signal_stop, signal_print, signal_program)
5314 (signal_catch, signal_pass): Now arrays instead of pointers.
5315 (update_signals_program_target, do_target_resume)
5316 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
5317 * linux-nat.c (linux_nat_target::pass_signals)
5318 (linux_nat_target::create_inferior, linux_nat_target::attach):
5320 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
5321 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
5322 * procfs.c (procfs_target::pass_signals): Adjust.
5323 * record-full.c (record_full_target::resume): Adjust.
5324 * remote.c (remote_target::pass_signals)
5325 (remote_target::program_signals): Adjust.
5326 * target-debug.h (target_debug_print_signals): Now takes a
5327 gdb::array_view as parameter. Adjust.
5328 * target.h (target_ops) <pass_signals, program_signals>: Replace
5329 pointer and length parameters with gdb::array_view.
5330 (target_pass_signals, target_program_signals): Likewise.
5331 * target-delegates.c: Regenerate.
5333 2019-01-24 Pedro Alves <palves@redhat.com>
5335 * common/forward-scope-exit.h
5336 (forward_scope_exit::forward_scope_exit): Pass arguments to
5337 m_bind_function directly, instead of creating a std::bind and
5340 2019-01-24 Alan Hayward <alan.hayward@arm.com>
5342 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5344 (pass_in_v_vfp_candidate): Likewise.
5346 2019-01-23 Tom Tromey <tom@tromey.com>
5347 Pedro Alves <palves@redhat.com>
5349 * regcache.c (class regcache_invalidator): Remove.
5350 (regcache::raw_write): Use make_scope_exit.
5352 2019-01-23 Tom Tromey <tom@tromey.com>
5354 * ui-out.h (class ui_out_emit_type): Update comment.
5356 2019-01-23 Tom Tromey <tom@tromey.com>
5358 * infrun.c (fetch_inferior_event): Update comment.
5360 2019-01-23 Tom Tromey <tom@tromey.com>
5361 Pedro Alves <palves@redhat.com>
5363 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
5365 (fetch_inferior_event): Use SCOPE_EXIT.
5368 2019-01-23 Tom Tromey <tom@tromey.com>
5369 Pedro Alves <palves@redhat.com>
5371 * infrun.c (disable_thread_events): Delete.
5372 (stop_all_threads): Use SCOPE_EXIT.
5374 2019-01-23 Tom Tromey <tom@tromey.com>
5375 Pedro Alves <palves@redhat.com>
5377 * symfile.c: Include forward-scope-exit.h.
5378 (clear_symtab_users_cleanup): Replace forward declaration with
5379 a FORWARD_SCOPE_EXIT.
5380 (syms_from_objfile_1): Use the forward_scope_exit and
5381 gdb::optional instead of cleanup_function.
5382 (reread_symbols): Use the forward_scope_exit instead of
5384 (clear_symtab_users_cleanup): Remove function.
5386 2019-01-23 Tom Tromey <tom@tromey.com>
5387 Pedro Alves <palves@redhat.com>
5389 * linux-nat.c: Include scope-exit.h.
5390 (cleanup_target_stop): Remove.
5391 (linux_nat_target::static_tracepoint_markers_by_strid): Use
5394 2019-01-23 Tom Tromey <tom@tromey.com>
5395 Pedro Alves <palves@redhat.com>
5397 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
5398 (call_function_by_hand_dummy): Use SCOPE_EXIT.
5400 2019-01-23 Tom Tromey <tom@tromey.com>
5401 Andrew Burgess <andrew.burgess@embecosm.com>
5402 Pedro Alves <palves@redhat.com>
5404 * infrun.c (fetch_inferior_event): Use scope_exit.
5405 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
5406 * top.c (execute_command): Use scope_exit.
5407 * breakpoint.c (bpstat_do_actions): Use scope_exit.
5408 * utils.c (do_bpstat_clear_actions_cleanup)
5409 (make_bpstat_clear_actions_cleanup): Remove.
5411 2019-01-23 Tom Tromey <tom@tromey.com>
5412 Pedro Alves <palves@redhat.com>
5414 * infrun.c: Include "common/scope-exit.h"
5415 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
5416 (wait_for_inferior): Use SCOPE_EXIT.
5417 (fetch_inferior_event): Use scope_exit.
5419 2019-01-23 Tom Tromey <tom@tromey.com>
5420 Pedro Alves <palves@redhat.com>
5422 * breakpoint.c (create_breakpoint): Remove cleanup.
5424 2019-01-23 Tom Tromey <tom@tromey.com>
5425 Andrew Burgess <andrew.burgess@embecosm.com>
5426 Pedro Alves <palves@redhat.com>
5428 2019-01-23 Pedro Alves <palves@redhat.com>
5430 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
5432 2019-01-23 Pedro Alves <palves@redhat.com>
5433 Andrew Burgess <andrew.burgess@embecosm.com>
5435 * gdbthread.h: Include "common/forward-scope-exit.h".
5436 (scoped_finish_thread_state): Redefine custom class in terms of
5439 2019-01-23 Pedro Alves <palves@redhat.com>
5440 Andrew Burgess <andrew.burgess@embecosm.com>
5442 * common/forward-scope-exit.h: New file.
5444 2019-01-23 Pedro Alves <palves@redhat.com>
5445 Andrew Burgess <andrew.burgess@embecosm.com>
5446 Tom Tromey <tom@tromey.com>
5448 * common/scope-exit.h: New file.
5450 2019-01-23 Pedro Alves <palves@redhat.com>
5452 * common/preprocessor.h (ESC): Rename to ...
5453 (ESC_PARENS): ... this.
5454 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
5455 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
5457 2019-01-23 Tom Tromey <tom@tromey.com>
5459 * language.h (class scoped_switch_to_sym_language_if_auto):
5460 Initialize m_lang in both cases.
5462 2019-01-23 Alan Hayward <alan.hayward@arm.com>
5464 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
5467 2019-01-22 Tom Tromey <tom@tromey.com>
5469 * corelow.c: Do not include sys/file.h.
5471 2019-01-22 Tom Tromey <tom@tromey.com>
5473 * tui/tui-wingeneral.h: Include gdb_curses.h.
5475 2019-01-22 Tom Tromey <tom@tromey.com>
5477 * source-cache.h (class source_cache) <get_source_lines,
5478 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
5480 2019-01-22 Tom Tromey <tom@tromey.com>
5482 * remote-fileio.h (struct remote_target): Declare.
5484 2019-01-22 Tom Tromey <tom@tromey.com>
5486 * python/py-arch.c: Do not include py-ref.h.
5487 * python/py-bpevent.c: Do not include py-ref.h.
5488 * python/py-cmd.c: Do not include py-ref.h.
5489 * python/py-continueevent.c: Do not include py-ref.h.
5490 * python/py-event.h: Do not include py-ref.h.
5491 * python/py-evtregistry.c: Do not include py-ref.h.
5492 * python/py-finishbreakpoint.c: Do not include py-ref.h.
5493 * python/py-frame.c: Do not include py-ref.h.
5494 * python/py-framefilter.c: Do not include py-ref.h.
5495 * python/py-function.c: Do not include py-ref.h.
5496 * python/py-infevents.c: Do not include py-ref.h.
5497 * python/py-linetable.c: Do not include py-ref.h.
5498 * python/py-objfile.c: Do not include py-ref.h.
5499 * python/py-param.c: Do not include py-ref.h.
5500 * python/py-prettyprint.c: Do not include py-ref.h.
5501 * python/py-progspace.c: Do not include py-ref.h.
5502 * python/py-symbol.c: Do not include py-ref.h.
5503 * python/py-symtab.c: Do not include py-ref.h.
5504 * python/py-type.c: Do not include py-ref.h.
5505 * python/py-unwind.c: Do not include py-ref.h.
5506 * python/py-utils.c: Do not include py-ref.h.
5507 * python/py-value.c: Do not include py-ref.h.
5508 * python/py-varobj.c: Do not include py-ref.h.
5509 * python/py-xmethods.c: Do not include py-ref.h.
5510 * python/python.c: Do not include py-ref.h.
5511 * varobj.c: Do not include py-ref.h.
5513 2019-01-22 Tom Tromey <tom@tromey.com>
5515 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
5518 2019-01-22 Tom Tromey <tom@tromey.com>
5520 * compile/compile-cplus-types.c: Remove a comment by #include.
5522 2019-01-22 Tom Tromey <tom@tromey.com>
5524 * compile/gcc-c-plugin.h: Include compile-internal.h.
5526 2019-01-22 Tom Tromey <tom@tromey.com>
5528 * stabsread.c (EXTERN): Do not define.
5529 (symnum, next_symbol_text_func, processing_gcc_compilation)
5530 (within_function, global_sym_chain, global_stabs)
5531 (previous_stab_code, this_object_header_files)
5532 (n_this_object_header_files)
5533 (n_allocated_this_object_header_files): Define.
5534 * stabsread.h (EXTERN): Never define. Use "extern".
5536 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5538 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
5541 2019-01-21 Tom Tromey <tom@tromey.com>
5543 * ui-out.c: Fix includes.
5544 * tui/tui-source.c: Fix includes.
5545 * target.c: Fix includes.
5546 * remote.c: Fix includes.
5547 * regcache.c: Fix includes.
5548 * python/py-block.c: Fix includes.
5549 * printcmd.c: Fix includes.
5550 * or1k-tdep.c: Fix includes.
5551 * mi/mi-main.c: Fix includes.
5552 * m32r-tdep.c: Fix includes.
5553 * csky-tdep.c: Fix includes.
5554 * compile/compile-cplus-types.c: Fix includes.
5555 * cli/cli-interp.c: Fix includes.
5557 2019-01-21 Alan Hayward <alan.hayward@arm.com>
5559 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5562 2019-01-16 Tom Tromey <tom@tromey.com>
5564 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
5566 (struct objfile) <msymbols_range>: Move from top level.
5567 <msymbols>: New method.
5568 (class objfile_msymbols): Remove.
5569 * symtab.c (default_collect_symbol_completion_matches_break_on):
5571 * symmisc.c (dump_msymbols): Update.
5572 * stabsread.c (scan_file_globals): Update.
5573 * objc-lang.c (info_selectors_command, info_classes_command)
5574 (find_methods): Update.
5575 * minsyms.c (find_solib_trampoline_target): Update.
5576 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
5577 * coffread.c (coff_symfile_read): Update.
5578 * ada-lang.c (ada_lookup_simple_minsym)
5579 (ada_collect_symbol_completion_matches): Update.
5581 2019-01-16 Tom Tromey <tom@tromey.com>
5583 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
5584 type. Remove no-argument constructor.
5585 <iterator::operator++>: Simplify.
5587 <end>: Use minimal_symbol_count.
5589 2019-01-16 Tom Tromey <tom@tromey.com>
5591 * objfiles.h (struct objfile) <psymtabs>: New method.
5592 (class objfile_psymtabs): Remove.
5593 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
5595 <range>: New method.
5596 (require_partial_symbols): Change return type.
5597 * psymtab.c (require_partial_symbols)
5598 (psym_expand_symtabs_matching): Update.
5599 * mdebugread.c (parse_partial_symbols): Update.
5600 * dbxread.c (dbx_end_psymtab): Update.
5602 2019-01-15 Tom Tromey <tom@tromey.com>
5604 * symtab.c (lookup_objfile_from_block)
5605 (lookup_symbol_in_objfile_symtabs)
5606 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
5607 (find_line_symtab, info_sources_command)
5608 (default_collect_symbol_completion_matches_break_on)
5609 (make_source_files_completion_list): Update.
5610 * symmisc.c (print_objfile_statistics, dump_objfile)
5611 (maintenance_print_symbols, maintenance_info_symtabs)
5612 (maintenance_check_symtabs, maintenance_info_line_tables):
5614 * source.c (select_source_symtab)
5615 (forget_cached_source_info_for_objfile): Update.
5616 * objfiles.h (class objfile_compunits): Remove.
5617 (struct objfile) <compunits_range>: New typedef.
5618 (compunits): New method.
5619 * objfiles.c (objfile_relocate1): Update.
5620 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
5621 * maint.c (count_symtabs_and_blocks): Update.
5622 * linespec.c (iterate_over_all_matching_symtabs): Update.
5623 * cp-support.c (add_symbol_overload_list_qualified): Update.
5624 * coffread.c (coff_symtab_read): Update.
5625 * ada-lang.c (add_nonlocal_symbols)
5626 (ada_collect_symbol_completion_matches)
5627 (ada_add_global_exceptions): Update.
5629 2019-01-15 Tom Tromey <tom@tromey.com>
5631 * progspace.h (program_space) <objfiles_safe_range>: New
5633 <objfiles_safe>: New method.
5634 * objfiles.h (class all_objfiles_safe): Remove.
5635 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
5636 * jit.c (jit_inferior_exit_hook): Update.
5638 2019-01-17 Tom Tromey <tom@tromey.com>
5640 * progspace.h (program_space) <objfiles_range>: New typedef.
5641 <objfiles>: New method.
5642 <objfiles_head>: Rename from objfiles.
5643 (object_files): Update.
5644 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
5645 * guile/scm-pretty-print.c
5646 (ppscm_find_pretty_printer_from_objfiles): Update.
5647 * guile/scm-objfile.c (gdbscm_objfiles): Update.
5648 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
5650 * python/py-progspace.c (pspy_get_objfiles): Update.
5651 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
5653 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
5654 (objfpy_lookup_objfile_by_build_id): Update.
5655 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
5656 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
5658 * symtab.c (iterate_over_symtabs, matching_obj_sections)
5659 (expand_symtab_containing_pc, lookup_objfile_from_block)
5660 (lookup_static_symbol, basic_lookup_transparent_type)
5661 (find_pc_sect_compunit_symtab, find_symbol_at_address)
5662 (find_line_symtab, info_sources_command)
5663 (default_collect_symbol_completion_matches_break_on)
5664 (make_source_files_completion_list, find_main_name): Update.
5665 * symmisc.c (print_symbol_bcache_statistics)
5666 (print_objfile_statistics, maintenance_print_symbols)
5667 (maintenance_print_msymbols, maintenance_print_objfiles)
5668 (maintenance_info_symtabs, maintenance_check_symtabs)
5669 (maintenance_expand_symtabs, maintenance_info_line_tables):
5671 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
5672 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
5673 (map_overlay_command, unmap_overlay_command)
5674 (simple_overlay_update, expand_symtabs_matching)
5675 (map_symbol_filenames): Update.
5676 * symfile-debug.c (set_debug_symfile): Update.
5677 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
5679 * source.c (select_source_symtab, forget_cached_source_info):
5681 * solib.c (solib_read_symbols): Update.
5682 * solib-spu.c (append_ocl_sos): Update.
5683 * psymtab.c (maintenance_print_psymbols)
5684 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
5685 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
5686 * printcmd.c (info_symbol_command): Update.
5687 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
5689 * objfiles.h (class all_objfiles): Remove.
5690 * objfiles.c (have_partial_symbols, have_full_symbols)
5691 (have_minimal_symbols, qsort_cmp, update_section_map)
5692 (shared_objfile_contains_address_p)
5693 (default_iterate_over_objfiles_in_search_order): Update.
5694 * objc-lang.c (info_selectors_command, info_classes_command)
5695 (find_methods): Update.
5696 * minsyms.c (find_solib_trampoline_target): Update.
5697 * maint.c (maintenance_info_sections)
5698 (maintenance_translate_address, count_symtabs_and_blocks):
5700 * main.c (captured_main_1): Update.
5701 * linux-thread-db.c (try_thread_db_load_from_pdir)
5702 (has_libpthread): Update.
5703 * linespec.c (iterate_over_all_matching_symtabs)
5704 (search_minsyms_for_name): Update.
5705 * jit.c (jit_find_objf_with_entry_addr): Update.
5706 * hppa-tdep.c (find_unwind_entry)
5707 (hppa_lookup_stub_minimal_symbol): Update.
5708 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
5710 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
5711 (elf_gnu_ifunc_resolve_by_got): Update.
5712 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
5713 * dwarf-index-write.c (save_gdb_index_command): Update.
5714 * cp-support.c (add_symbol_overload_list_qualified): Update.
5715 * breakpoint.c (create_overlay_event_breakpoint)
5716 (create_longjmp_master_breakpoint)
5717 (create_std_terminate_master_breakpoint)
5718 (create_exception_master_breakpoint): Update.
5719 * blockframe.c (find_pc_partial_function): Update.
5720 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
5721 (ada_collect_symbol_completion_matches)
5722 (ada_add_global_exceptions): Update.
5724 2019-01-17 Tom Tromey <tom@tromey.com>
5726 * solib-target.c (lm_info_target_p): Remove typedef. Don't
5728 (solib_target_parse_libraries): Change return type.
5729 (library_list_start_segment, library_list_start_section)
5730 (library_list_end_library, library_list_start_library); Update.
5731 (solib_target_free_library_list): Remove.
5732 (solib_target_parse_libraries): Remove cleanup. Change return
5734 (solib_target_current_sos): Update.
5736 2019-01-17 Tom Tromey <tromey@bapiya>
5738 * valprint.c: Replace "the the" with "the".
5739 * symtab.c: Replace "the the" with "the".
5740 * solib.c: Replace "the the" with "the".
5741 * solib-dsbt.c: Replace "the the" with "the".
5742 * linespec.c: Replace "the the" with "the".
5743 * dwarf2loc.h: Replace "the the" with "the".
5744 * amd64-windows-tdep.c: Replace "the the" with "the".
5745 * aarch64-tdep.c: Replace "the the" with "the".
5747 2019-01-16 Keith Seitz <keiths@redhat.com>
5750 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
5751 <builder>: Rename to ..
5752 <m_builder>: ... this and make private.
5753 (dwarf2_cu::get_builder): New method. Change all users of
5754 `builder' to use this method.
5755 (dwarf2_start_symtab): Move to ...
5756 (dwarf2_cu::start_symtab): ... here. Update all callers
5757 (setup_type_unit_groups): Move to ...
5758 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
5760 (dwarf2_cu::reset_builder): New method.
5761 (process_full_compunit, process_full_type_unit): Use
5762 dwarf2_cu::reset_builder.
5763 (follow_die_offset): Record the ancestor CU if it is different
5764 from the followed DIE's CU.
5765 (follow_die_sig_1): Likewise.
5767 2019-01-15 Tom Tromey <tom@tromey.com>
5769 * remote.c (class remote_state) <buf>: Now a char_vector.
5771 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
5773 (remote_target::getpkt_or_notif_sane_1)
5774 (remote_target::getpkt_sane)
5775 (remote_target::getpkt_or_notif_sane): Likewise.
5776 (class remote_target) <putpkt>: New overload.
5777 (remote_target::read_frame): Change type of "buf_p". Remove
5779 (packet_ok): New overload.
5780 (packet_check_result): New overload.
5783 2019-01-14 Tom Tromey <tom@tromey.com>
5785 * remote-notif.c (handle_notification, remote_notif_ack)
5786 (remote_notif_parse): Make "buf" const.
5787 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
5789 (remote_notif_parse, remote_notif_ack, handle_notification):
5791 * remote.c (remote_notif_stop_parse): Make "buf" const.
5792 (remote_target::remote_parse_stop_reply): Make "buf" const.
5793 (remote_notif_stop_ack): Make "buf" const.
5795 2019-01-14 Tom Tromey <tom@tromey.com>
5797 * remote.c (remote_console_output): Make parameter const.
5799 2019-01-14 Tom Tromey <tom@tromey.com>
5801 * target-debug.h (target_debug_print_signals): Constify.
5802 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
5803 * procfs.c (procfs_target::pass_signals): Update.
5804 * linux-nat.c (linux_nat_target::pass_signals): Update.
5805 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
5806 * target-delegates.c: Rebuild.
5807 * remote.c (remote_target::program_signals): Update.
5808 (remote_target::pass_signals): Update.
5809 * target.c (target_pass_signals): Constify argument.
5810 (target_program_signals): Likewise.
5811 * target.h (struct target_ops) <pass_signals, program_signals>:
5813 (target_pass_signals, target_program_signals): Constify argument.
5815 2019-01-14 Tom Tromey <tom@tromey.com>
5818 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
5820 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5822 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
5824 * rs6000-tdep.c: Include reggroups.h.
5825 (IS_V_ALIAS_PSEUDOREG): Define.
5826 (rs6000_register_name): Return names for the "vX" aliases.
5827 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
5828 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
5829 aliases. Call default_register_reggroup_p for all other
5831 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
5833 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
5834 Handle "vX" aliases.
5835 (v_alias_pseudo_register_collect): New function.
5836 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
5837 (rs6000_gdbarch_init): Initialize "vX" aliases as
5838 pseudo-registers. Restore registration of
5839 rs6000_pseudo_register_reggroup_p with
5840 set_tdesc_pseudo_register_reggroup_p.
5842 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
5844 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
5845 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
5846 set_gdbarch_num_pseudo_regs.
5848 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5850 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
5851 Remove arg prefixname, add do_set and do_show.
5852 Add member functions set_list and show_list.
5853 * cli/cli-style.c (class cli_style_option): Update accordingly.
5854 (style_set_list): Move to file scope.
5855 (style_show_list): Likewise.
5856 (set_style): Call help_list.
5857 (show_style): Call cmd_show_list.
5858 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
5859 Update to use the new macro.
5861 2019-10-12 Joel Brobecker <brobecker@adacore.com>
5863 * ada-lang.c (_initialize_ada_language): Expand the help text
5864 for the "catch exception" command.
5866 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5868 * symtab.c (matching_obj_sections): Initialize obj,
5869 declare it closer to its usage.
5871 2019-01-10 Tom Tromey <tom@tromey.com>
5873 * thread-iter.h (inf_threads_iterator): Use next_iterator.
5874 (basic_inf_threads_range): Remove.
5875 (inf_threads_range, inf_non_exited_threads_range)
5876 (safe_inf_threads_range): Use next_adapter.
5878 2019-01-10 Keith Seitz <keiths@redhat.com>
5882 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
5883 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
5885 2019-01-10 Keith Seitz <keiths@redhat.com>
5889 * dictionary.c (pending_to_vector): Remove.
5890 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
5891 Remove _1 suffix, replacing functions of the same name. Update
5893 (dict_create_hashed, dict_create_hashed_expandable)
5894 (dict_create_linear, dict_create_linear_expandable, dict_free)
5895 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
5896 Make functions static.
5898 2019-01-10 Keith Seitz <keiths@redhat.com>
5902 * dictionary.h (struct dictionary): Replace declaration with
5904 (dict_create_hashed, dict_create_hashed_expandable)
5905 (dict_create_linear, dict_create_linear_expandable)
5906 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
5907 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
5908 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
5909 taking multidictionary argument.
5910 [ALL_DICT_SYMBOLS]: Update for multidictionary.
5911 * block.h (struct block) <dict>: Change to multidictionary
5912 and rename `multidict'.
5913 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
5914 symmisc.c: Update all dictionary references to multidictionary.
5916 2019-01-10 Keith Seitz <keiths@redhat.com>
5920 * dictionary.c: Include unordered_map.
5921 (pending_to_vector): New function.
5922 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
5923 Rewrite the non-"_1" functions to take vector instead
5925 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
5926 "new" _1 versions of the same name.
5927 (multidictionary): Define.
5928 (std::hash<enum language): New definition.
5929 (collate_pending_symbols_by_language, mdict_create_hashed)
5930 (mdict_create_hashed_expandable, mdict_create_linear)
5931 (mdict_create_linear_expandable, mdict_free)
5932 (find_language_dictionary, create_new_language_dictionary)
5933 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
5934 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
5935 (mdict_size, mdict_empty): New functions.
5936 * dictionary.h (mdict_iterator): Define.
5938 2019-01-10 Pedro Alves <palves@redhat.com>
5940 * breakpoint.c (read_uploaded_action)
5941 (create_tracepoint_from_upload): Adjust to use
5942 gdb::unique_xmalloc_ptr.
5943 * ctf.c (ctf_write_uploaded_tp):
5944 (SET_ARRAY_FIELD): Use emplace_back.
5945 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
5946 * tracefile-tfile.c (tfile_write_uploaded_tp):
5947 * tracepoint.c (parse_tracepoint_definition): Adjust to use
5948 gdb::unique_xmalloc_ptr.
5949 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
5950 at_string, cond_string, cmd_strings>: Replace char pointers
5951 with gdb::unique_xmalloc_ptr.
5953 2019-01-10 Pedro Alves <palves@redhat.com>
5955 * solib-target.c (library_list_start_library): Don't xstrdup name.
5957 2019-01-10 Pedro Alves <palves@redhat.com>
5959 * mdebugread.c (parse_partial_symbols): Use
5960 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
5962 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
5964 * linux-fork.c (scoped_switch_fork_info)
5965 <~scoped_switch_fork_info>: Fix incorrect variable name.
5967 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
5969 * linux-fork.c (scoped_switch_fork_info)
5970 <scoped_switch_fork_info>: Make explicit.
5971 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
5973 2019-01-10 Tom Tromey <tom@tromey.com>
5975 * objfiles.h (objfile::reset_psymtabs): Update.
5976 * objfiles.c (objfile::objfile): Update.
5977 * psymtab.h (psymtab_storage::obstack): Update.
5978 (psymtab_storage::m_obstack): Use gdb::optional.
5979 (class psymtab_storage): Update comment. Remove objfile
5981 * psymtab.c (psymtab_storage::psymtab_storage): Update.
5983 2019-01-10 Tom Tromey <tom@tromey.com>
5985 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
5986 <free_psymtabs>: Now private.
5987 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
5988 (allocate_psymtab): Use new method.
5990 2019-01-10 Tom Tromey <tom@tromey.com>
5992 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
5993 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
5994 * mdebugread.c (parse_partial_symbols): Use
5995 allocate_dependencies.
5996 * dwarf2read.c (dwarf2_create_include_psymtab): Use
5997 allocate_dependencies.
5998 (process_psymtab_comp_unit_reader)
5999 (build_type_psymtab_dependencies): Likewise.
6000 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
6002 2019-01-10 Tom Tromey <tom@tromey.com>
6004 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
6005 PSYMBOL_SET_LANGUAGE.
6006 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
6008 2019-01-10 Tom Tromey <tom@tromey.com>
6010 * psymtab.h (psymtab_storage::obstack): New method.
6011 <m_obstack>: Rename from obstack; now private.
6012 * psymtab.c (psymtab_storage): Update.
6013 * dwarf2read.c (create_addrmap_from_index)
6014 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
6017 2019-01-10 Tom Tromey <tom@tromey.com>
6019 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
6020 * objfiles.h (objfile::reset_psymtabs): New method.
6022 2019-01-10 Tom Tromey <tom@tromey.com>
6024 * symmisc.c (print_symbol_bcache_statistics): Update.
6025 (print_objfile_statistics): Update.
6026 * symfile.c (reread_symbols): Update.
6027 * psymtab.h (class psymtab_storage): New.
6028 * psymtab.c (psymtab_storage): New constructor.
6029 (~psymtab_storage): New destructor.
6030 (require_partial_symbols): Update.
6031 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
6032 (find_pc_sect_psymtab, find_pc_sect_psymbol)
6033 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
6034 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
6035 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
6036 (start_psymtab_common, end_psymtab_common)
6037 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
6038 (allocate_psymtab): Update.
6039 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
6041 (dump_psymtab_addrmap, maintenance_print_psymbols)
6042 (maintenance_check_psymtabs): Update.
6043 (class objfile_psymtabs): Move to objfiles.h.
6044 * psympriv.h (discard_psymtab): Now inline.
6045 (psymtab_discarder::psymtab_discarder): Update.
6046 (psymtab_discarder::~psymtab_discarder): Update.
6047 (ALL_OBJFILE_PSYMTABS): Rewrite.
6048 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
6049 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
6051 <partial_symtabs>: New field.
6052 (class objfile_psymtabs): Move from psymtab.h. Update.
6053 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
6055 (objfile::~objfile): Don't destroy psymbol_cache.
6056 * mdebugread.c (parse_partial_symbols): Update.
6057 * dwarf2read.c (create_addrmap_from_index)
6058 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6059 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
6060 (add_partial_subprogram, dwarf2_ranges_read): Update.
6061 * dwarf-index-write.c (write_address_map)
6062 (write_one_signatured_type, recursively_write_psymbols)
6063 (class debug_names, class debug_names, write_psymtabs_to_index):
6066 2019-01-10 Tom Tromey <tom@tromey.com>
6068 * symtab.h (SYMBOL_SET_NAMES): Update.
6069 (symbol_set_names): Update.
6070 (MSYMBOL_SET_NAMES): Update.
6071 * symtab.c (symbol_set_names): Change argument to be an
6072 objfile_per_bfd_storage.
6073 * psymtab.c (add_psymbol_to_bcache): Update.
6074 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
6076 2019-01-10 Tom Tromey <tom@tromey.com>
6078 * symtab.c (create_demangled_names_hash): Change argument to be an
6079 objfile_per_bfd_storage.
6080 (symbol_set_names): Update.
6082 2019-01-10 Tom Tromey <tom@tromey.com>
6084 * xcoffread.c (xcoff_initial_scan): Unconditionally call
6086 * psymtab.c (init_psymbol_list): Do nothing if already called.
6087 * psympriv.h (init_psymbol_list): Add comment.
6088 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
6090 * dbxread.c (dbx_symfile_read): Unconditionally call
6093 2019-01-10 Tom Tromey <tom@tromey.com>
6095 * xcoffread.c (scan_xcoff_symtab): Update.
6096 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
6098 * mdebugread.c (parse_partial_symbols)
6099 (handle_psymbol_enumerators): Update.
6100 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
6101 * dbxread.c (read_dbx_symtab): Update.
6102 * psympriv.h (psymbol_placement): New enum.
6103 (add_psymbol_to_list): Update.
6105 2019-01-10 Tom Tromey <tom@tromey.com>
6107 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
6108 static_psymbols parameters.
6109 (scan_xcoff_symtab): Update.
6110 * psymtab.c (start_psymtab_common): Remove global_psymbols and
6111 static_psymbols parameters.
6112 * psympriv.h (start_psymtab_common): Update.
6113 * mdebugread.c (parse_partial_symbols): Update.
6114 * dwarf2read.c (create_partial_symtab): Update.
6115 * dbxread.c (read_dbx_symtab): Update.
6116 (start_psymtab): Remove global_psymbols and static_psymbols
6119 2019-01-10 Tom Tromey <tom@tromey.com>
6121 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
6122 * psymtab.c (allocate_psymtab): Add comment.
6123 * psympriv.h (allocate_psymtab): Add comment.
6124 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
6126 * dbxread.c (dbx_end_psymtab): Remove some initializations.
6128 2019-01-10 Tom Tromey <tom@tromey.com>
6130 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6132 * mipsread.c: Include mdebugread.h.
6133 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6135 * elfread.c: Include mdebugread.h.
6137 2019-01-09 Tom Tromey <tom@tromey.com>
6139 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
6140 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
6141 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
6142 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
6143 (psym_lookup_symbol, psym_find_last_source_symtab)
6144 (psym_forget_cached_source_info, psym_print_stats)
6145 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
6146 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
6147 (psym_map_matching_symbols, psym_expand_symtabs_matching)
6148 (psym_find_compunit_symtab_by_address)
6149 (maintenance_print_psymbols, maintenance_info_psymtabs)
6150 (maintenance_check_psymtabs): Use ranged for.
6151 * psymtab.h (class objfile_psymtabs): New.
6152 (require_partial_symbols): Return objfile_psymtabs.
6153 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
6155 2019-01-09 Tom Tromey <tom@tromey.com>
6157 * symfile.c (overlay_invalidate_all, find_pc_overlay)
6158 (find_pc_mapped_section, list_overlays_command)
6159 (map_overlay_command, unmap_overlay_command)
6160 (simple_overlay_update): Use all_objfiles.
6161 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
6162 * printcmd.c (info_symbol_command): Use all_objfiles.
6163 * objfiles.h (ALL_OBJSECTIONS): Remove.
6164 * maint.c (maintenance_translate_address): Use all_objfiles.
6165 * gcore.c (gcore_create_callback): Use all_objfiles.
6166 (objfile_find_memory_regions): Likewise.
6168 2019-01-09 Tom Tromey <tom@tromey.com>
6170 * symtab.c (find_line_symtab, info_sources_command)
6171 (make_source_files_completion_list): Use objfile_compunits.
6172 * source.c (select_source_symtab): Use objfile_compunits.
6173 * objfiles.h (struct objfile): Update comment.
6174 (ALL_OBJFILES): Remove.
6175 (ALL_FILETABS): Remove.
6176 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
6179 2019-01-09 Tom Tromey <tom@tromey.com>
6181 * symmisc.c (print_objfile_statistics, dump_objfile)
6182 (maintenance_print_symbols): Use compunit_filetabs.
6183 * source.c (forget_cached_source_info_for_objfile): Use
6185 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
6186 (ALL_FILETABS): Use compunit_filetabs.
6187 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
6188 * coffread.c (coff_symtab_read): Use compunit_filetabs.
6190 2019-01-09 Tom Tromey <tom@tromey.com>
6192 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
6193 (compunit_filetabs): New.
6194 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
6196 (info_sources_command, make_source_files_completion_list): Remove
6198 * symmisc.c (print_objfile_statistics, dump_objfile)
6199 (maintenance_print_symbols): Remove declaration.
6200 (maintenance_info_symtabs): Use compunit_filetabs.
6201 (maintenance_info_line_tables): Likewise.
6202 * source.c (select_source_symtab): Change local variable name.
6203 (forget_cached_source_info_for_objfile): Remove declaration.
6204 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
6205 * objfiles.c (objfile_relocate1): Remove declaration.
6206 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6208 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
6209 * coffread.c (coff_symtab_read): Remove declaration.
6210 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6213 2019-01-09 Tom Tromey <tom@tromey.com>
6215 * symtab.c (lookup_objfile_from_block)
6216 (find_pc_sect_compunit_symtab, search_symbols)
6217 (default_collect_symbol_completion_matches_break_on): Use
6219 * objfiles.h (ALL_COMPUNITS): Remove.
6220 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
6221 * cp-support.c (add_symbol_overload_list_qualified): Use
6223 * ada-lang.c (ada_collect_symbol_completion_matches)
6224 (ada_add_global_exceptions): Use objfile_compunits.
6226 2019-01-09 Tom Tromey <tom@tromey.com>
6228 * source.c (select_source_symtab)
6229 (forget_cached_source_info_for_objfile): Remove declaration.
6230 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6232 * maint.c (count_symtabs_and_blocks): Remove declaration.
6233 * cp-support.c (add_symbol_overload_list_qualified): Remove
6235 * coffread.c (coff_symtab_read): Remove declaration.
6236 * symtab.c (lookup_symbol_in_objfile_symtabs)
6237 (basic_lookup_transparent_type_1): Use objfile_compunits.
6238 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
6239 (info_sources_command, search_symbols)
6240 (default_collect_symbol_completion_matches_break_on)
6241 (make_source_files_completion_list): Remove declaration.
6242 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
6243 (ada_collect_symbol_completion_matches)
6244 (ada_add_global_exceptions): Remove declaration.
6245 * linespec.c (iterate_over_all_matching_symtabs): Use
6247 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
6248 (class objfile_compunits): New.
6249 (ALL_COMPUNITS): Use objfile_compunits.
6250 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
6251 (maintenance_check_symtabs, maintenance_info_line_tables): Use
6253 * objfiles.c (objfile_relocate1): Use objfile_compunits.
6255 2019-01-09 Tom Tromey <tom@tromey.com>
6257 * symtab.c (search_symbols)
6258 (default_collect_symbol_completion_matches_break_on): Use
6260 * ada-lang.c (ada_lookup_simple_minsym)
6261 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
6262 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
6263 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
6265 * coffread.c (coff_symfile_read): Use objfile_msymbols.
6266 * symmisc.c (dump_msymbols): Use objfile_msymbols.
6267 * objc-lang.c (find_methods): Use objfile_msymbols.
6268 (info_selectors_command, info_classes_command): Likewise.
6269 * stabsread.c (scan_file_globals): Use objfile_msymbols.
6270 * objfiles.h (class objfile_msymbols): New.
6271 (ALL_OBJFILE_MSYMBOLS): Remove.
6272 (ALL_MSYMBOLS): Remove.
6274 2019-01-09 Tom Tromey <tom@tromey.com>
6276 * common/next-iterator.h (next_adapter): Add Iterator template
6278 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
6279 (class all_objfiles_safe): New.
6280 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
6281 * objfiles.c (put_objfile_before): Update comment.
6282 (add_separate_debug_objfile): Likewise.
6283 (free_all_objfiles): Use all_objfiles_safe.
6284 (objfile_purge_solibs): Likewise.
6286 2019-01-09 Tom Tromey <tom@tromey.com>
6288 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6289 (expand_symtab_containing_pc, lookup_static_symbol)
6290 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
6291 (find_symbol_at_address, find_line_symtab, find_main_name): Use
6293 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
6294 * breakpoint.c (create_overlay_event_breakpoint)
6295 (create_longjmp_master_breakpoint)
6296 (create_std_terminate_master_breakpoint)
6297 (create_exception_master_breakpoint): Use all_objfiles.
6298 * linux-thread-db.c (try_thread_db_load_from_pdir)
6299 (has_libpthread): Use all_objfiles.
6300 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
6301 * linespec.c (iterate_over_all_matching_symtabs)
6302 (search_minsyms_for_name): Use all_objfiles.
6303 * maint.c (maintenance_info_sections): Use all_objfiles.
6304 * main.c (captured_main_1): Use all_objfiles.
6305 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
6306 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
6307 * guile/scm-pretty-print.c
6308 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
6309 * solib-spu.c (append_ocl_sos): Use all_objfiles.
6310 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
6311 (maintenance_print_msymbols): Use all_objfiles.
6312 * source.c (select_source_symtab): Use all_objfiles.
6313 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
6314 * symfile.c (remove_symbol_file_command)
6315 (expand_symtabs_matching, map_symbol_filenames): Use
6317 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
6319 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
6320 * objc-lang.c (find_methods): Use all_objfiles.
6321 * objfiles.c (have_partial_symbols, have_full_symbols)
6322 (have_minimal_symbols, qsort_cmp)
6323 (default_iterate_over_objfiles_in_search_order): Use
6325 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
6326 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
6327 (maintenance_check_psymtabs): Use all_objfiles.
6328 (ALL_PSYMTABS): Remove.
6329 * compile/compile-object-run.c (do_module_cleanup): Use
6331 * blockframe.c (find_pc_partial_function): Use all_objfiles.
6332 * cp-support.c (add_symbol_overload_list_qualified): Use
6334 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6336 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
6337 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
6339 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6340 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
6341 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6343 * solib.c (solib_read_symbols): Use all_objfiles
6345 2019-01-09 Tom Tromey <tom@tromey.com>
6347 * probe.c (parse_probes_in_pspace): Use all_objfiles.
6348 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
6350 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
6351 * symmisc.c (print_symbol_bcache_statistics)
6352 (print_objfile_statistics, maintenance_print_objfiles)
6353 (maintenance_info_symtabs, maintenance_check_symtabs)
6354 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
6356 * source.c (forget_cached_source_info): Use all_objfiles.
6357 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
6358 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6359 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
6360 * objfiles.c (update_section_map): Use all_objfiles.
6361 (shared_objfile_contains_address_p): Likewise.
6362 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
6363 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
6365 2019-01-09 Tom Tromey <tom@tromey.com>
6367 * common/next-iterator.h: New file.
6368 * objfiles.h (class all_objfiles): New.
6369 (struct objfile_iterator): New.
6371 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6373 * NEWS: Move the description of the changed "frame", "select-frame",
6374 and "info frame" commands to the Changed commands section.
6376 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
6378 * gdbtypes.c (check_stub_method_group): Remove handling of old
6380 * linespec.c (find_methods): Likewise.
6381 * stabsread.c (read_member_functions): Likewise.
6382 * valops.c (search_struct_method): Likewise.
6383 (value_struct_elt_for_reference): Likewise.
6384 * NEWS: Mention this change.
6386 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6388 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
6390 * source.c (print_source_lines_base): Update line number check.
6391 (print_source_lines): New function.
6392 (source_lines_range::source_lines_range): New function.
6393 * source.h (class source_lines_range): New class.
6394 (print_source_lines): New declaration.
6396 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6398 * linespec.c (linespec_state_destructor): Free self->canonical_names.
6400 2019-01-08 Tom Tromey <tom@tromey.com>
6401 Simon Marchi <simon.marchi@ericsson.com>
6404 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
6405 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
6406 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6407 * f-exp.y (DOLLAR_VARIABLE): Likewise.
6408 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
6409 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6411 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6413 * source.c (select_source_symtab): Move header comment to
6414 declaration in source.h.
6415 (forget_cached_source_info_for_objfile): Likewise.
6416 (forget_cached_source_info): Likewise.
6417 (identify_source_line): Likewise.
6418 * source.h (identify_source_line): Move declaration from symtab.h
6419 and add comment from source.c
6420 (print_source_lines): Likewise.
6421 (forget_cached_source_info_for_objfile): Likewise.
6422 (forget_cached_source_info): Likewise.
6423 (select_source_symtab): Likewise.
6424 (enum print_source_lines_flag): Move definition from symtab.h.
6425 * symtab.h (identify_source_line): Move declaration to source.h.
6426 (print_source_lines): Likewise.
6427 (forget_cached_source_info_for_objfile): Likewise.
6428 (forget_cached_source_info): Likewise.
6429 (select_source_symtab): Likewise.
6430 (enum print_source_lines_flag): Move definition to source.h.
6431 * tui/tui-hooks.c: Add 'source.h' include.
6433 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6435 * source.c (print_source_lines_base): Handle requests to print
6436 reverse line number sequences, and guard against empty lines
6439 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6441 * source.c (print_source_lines_base): Fix skip of '\r' if next
6444 2019-01-06 Tom Tromey <tom@tromey.com>
6446 * c-exp.y (struct c_parse_state) <macro_original_text,
6447 expansion_obstack>: New member.
6448 (macro_original_text, expansion_obstack): Remove globals.
6449 (scan_macro_expansion, scanning_macro_expansion)
6450 (finished_macro_expansion): Update.
6451 (scan_macro_cleanup): Remove.
6452 (yylex, c_parse): Update.
6454 2019-01-06 Tom Tromey <tom@tromey.com>
6456 * c-exp.y (struct c_parse_state) <strings>: New member.
6457 (operator_stoken): Update.
6459 2019-01-06 Tom Tromey <tom@tromey.com>
6461 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
6462 (union type_stack_elt) <typelist_val>: Now a pointer to
6464 (type_stack_cleanup): Don't declare.
6465 (push_typelist): Update.
6466 * parse.c (pop_typelist): Return a std::vector.
6467 (push_typelist): Take a std::vector.
6468 (follow_types): Update. Do not free args.
6469 (type_stack_cleanup): Remove.
6470 * c-exp.y (struct c_parse_state): New.
6471 (cpstate): New global.
6472 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
6473 (nonempty_typelist): Update.
6474 (func_mod): Create a new vector.
6475 (c_parse): Create a c_parse_state.
6476 (check_parameter_typelist): Do not delete params.
6477 (function_method): Update. Do not delete type_list.
6479 2019-01-06 Tom Tromey <tom@tromey.com>
6482 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
6484 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
6485 (print_return_value): Likewise.
6487 2019-01-05 Tom Tromey <tom@tromey.com>
6489 * contrib/cleanup_check.py: Remove.
6490 * contrib/gcc-with-excheck: Remove.
6491 * contrib/exsummary.py: Remove.
6492 * contrib/excheck.py: Remove.
6494 2019-01-05 Joel Brobecker <brobecker@adacore.com>
6496 * thread.c (delete_thread_1): Add gdb_assert that THR is not
6497 NULL. Initialize tpprev to NULL instead of assigning it
6498 to NULL on the next statement.
6499 * windows-nat.c (windows_delete_thread): Remove check for
6500 main_thread_id before printing thread exit notifications.
6501 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
6502 Remove thread ID check against main_thread_id.
6503 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
6504 windows_delete_thread.
6505 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
6507 2019-01-04 Tom Tromey <tom@tromey.com>
6509 * compile/compile.c (_initialize_compile): Use upper case for
6510 metasyntactic variables.
6511 * symmisc.c (_initialize_symmisc): Use upper case for
6512 metasyntactic variables.
6513 * psymtab.c (_initialize_psymtab): Use upper case for
6514 metasyntactic variables.
6515 * demangle.c (demangle_command): Use upper case for metasyntactic
6517 (_initialize_demangler): Likewise.
6518 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
6521 2019-01-03 Tom Tromey <tom@tromey.com>
6523 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
6525 2019-01-03 Tom Tromey <tom@tromey.com>
6527 * python/py-symtab.c (salpy_str): Update.
6528 (struct salpy_sal_object) <symtab>: Now a PyObject.
6529 (salpy_dealloc): Update.
6530 (del_objfile_sal): Use gdbpy_ref.
6532 2019-01-03 Tom Tromey <tom@tromey.com>
6534 * python/py-type.c (convert_field): Use new_reference. Return
6536 (make_fielditem): Return gdbpy_ref.
6537 (typy_fields): Update.
6538 (typy_getitem): Update.
6539 (field_name): Return gdbpy_ref. Use new_reference.
6540 (typy_iterator_iternext): Update.
6542 2019-01-03 Tom Tromey <tom@tromey.com>
6544 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
6546 2019-01-03 Tom Tromey <tom@tromey.com>
6548 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
6549 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
6550 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
6551 (pspy_set_frame_filters, pspy_set_frame_unwinders)
6552 (pspy_set_type_printers): Likewise.
6553 * python/py-function.c (fnpy_init): Use gdbpy_ref.
6554 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
6555 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
6556 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
6557 (objfpy_set_type_printers): Likewise.
6559 2019-01-03 Tom Tromey <tom@tromey.com>
6561 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
6562 (gdbpy_print_stack): Use gdbpy_err_fetch.
6563 * python/python-internal.h (class gdbpy_err_fetch): New class.
6564 (class gdbpy_enter) <m_error_type, m_error_value,
6565 m_error_traceback>: Remove.
6566 <m_error>: New member.
6567 (gdbpy_exception_to_string): Don't declare.
6568 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
6569 * python/py-value.c (convert_value_from_python): Use
6571 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
6572 gdbpy_exception_to_string.
6573 (gdbpy_handle_exception): Use gdbpy_err_fetch.
6574 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
6577 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6579 * linux-nat.c (delete_lwp_cleanup): Delete.
6580 (struct lwp_deleter): New struct.
6581 (lwp_info_up): New typedef.
6582 (linux_nat_target::follow_fork): Delete cleanup, and make use of
6585 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6587 * linux-fork.c (class scoped_switch_fork_info): New class.
6588 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
6590 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6592 * valops.c (find_overload_match): Remove use of null_cleanup, and
6593 calls to do_cleanups.
6595 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6597 * compile/compile-cplus-types.c
6598 (compile_cplus_instance::decl_name): Handle changes to
6600 * cp-support.c (cp_func_name): Update header comment, update
6602 * cp-support.h (cp_func_name): Update return type in declaration.
6603 * valops.c (find_overload_match): Move temp_func local to top
6604 level of function and change its type. Use temp_func to hold and
6605 delete temporary string obtained from cp_func_name.
6607 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6609 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
6610 gdb::char_vector, remove cleanup, and update uses of `msg`.
6612 2019-01-03 Jim Wilson <jimw@sifive.com>
6614 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
6616 2019-01-02 Tom Tromey <tom@tromey.com>
6618 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
6619 (tdesc_parse_xml): Remove cleanups.
6620 * target-descriptions.h (make_cleanup_free_target_description):
6622 (target_desc_deleter): New struct.
6623 (target_desc_up): New typedef.
6624 * target-descriptions.c (target_desc_deleter::operator()): Rename
6625 from free_target_description.
6626 (make_cleanup_free_target_description): Remove.
6628 2019-01-02 Tom Tromey <tom@tromey.com>
6630 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
6631 constructor, destructor.
6632 (linespec_parser): Remove typedef.
6633 (~linespec_parser): Rename from linespec_parser_delete.
6634 (linespec_lex_to_end, linespec_complete_label)
6635 (linespec_complete): Update.
6636 (decode_line_full): Remove cleanups.
6637 (decode_line_1): Update.
6639 2019-01-02 Tom Tromey <tom@tromey.com>
6641 * python/python-internal.h (inferior_to_inferior_object): Change
6643 * python/py-exitedevent.c (create_exited_event_object): Update.
6644 * python/py-inferior.c (inferior_to_inferior_object): Return
6646 (python_new_inferior, python_inferior_deleted)
6647 (thread_to_thread_object, delete_thread_object)
6648 (build_inferior_list, gdbpy_selected_inferior): Update.
6649 * python/py-infthread.c (create_thread_object): Update. Also fail
6650 if inferior_to_inferior_object fails.
6652 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
6654 * inferior.h (class inferior) <displaced_step_state>: New field.
6655 * infrun.h (struct displaced_step_state): Move here from
6656 infrun.c. Initialize fields, add constructor.
6657 <inf>: Remove field.
6658 <reset>: New method.
6659 * infrun.c (struct displaced_step_inferior_state): Move to
6661 (displaced_step_inferior_states): Remove.
6662 (get_displaced_stepping_state): Adust.
6663 (displaced_step_in_progress_any_inferior): Adjust.
6664 (displaced_step_in_progress_thread): Adjust.
6665 (displaced_step_in_progress): Adjust.
6666 (add_displaced_stepping_state): Remove.
6667 (get_displaced_step_closure_by_addr): Adjust.
6668 (remove_displaced_stepping_state): Remove.
6669 (infrun_inferior_exit): Call displaced_step_state.reset.
6670 (use_displaced_stepping): Don't check for NULL.
6671 (displaced_step_prepare_throw): Call
6672 get_displaced_stepping_state.
6673 (displaced_step_fixup): Don't check for NULL.
6674 (prepare_for_detach): Don't check for NULL.
6676 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6678 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
6679 in case of call that did not complete.
6681 2019-01-02 Andrey Utkin <autkin@undo.io>
6683 * symfile.c (find_separate_debug_file): Fix search of debug files for
6686 2019-01-02 Tom Tromey <tom@tromey.com>
6688 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
6690 * python/py-frame.c (frapy_older): Remove cast.
6691 (frapy_newer): Likewise.
6692 * python/py-breakpoint.c (local_setattro): Remove cast.
6693 * python/py-arch.c (archpy_name): Remove local variable.
6694 * python/py-type.c (gdbpy_lookup_type): Remove cast.
6696 2019-01-02 Joel Brobecker <brobecker@adacore.com>
6698 * unittests/basic_string_view/element_access/char/empty.cc:
6699 Fix year range in copyright header.
6701 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
6703 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
6705 <operator==>: Update with for removed field.
6707 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
6708 <isa_features>: ...this.
6709 <abi_features>: New field.
6710 (riscv_isa_flen): Update comment.
6711 (riscv_abi_xlen): New declaration.
6712 (riscv_abi_flen): New declaration.
6713 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
6715 (riscv_abi_xlen): New function.
6716 (riscv_isa_flen): Update to get answer from isa_features.
6717 (riscv_abi_flen): New function.
6718 (riscv_has_fp_abi): Update to get answer from abi_features.
6719 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
6721 (riscv_call_info) <xlen, flen>: Update comment.
6722 (riscv_call_arg_struct): Remove invalid assertions
6723 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
6725 (riscv_gdbarch_init): Gather isa features and abi features
6726 separately, ensure both match on the gdbarch when reusing an old
6727 gdbarch. Relax an error check to allow 32-bit abi float to run on
6728 a target with 64-bit float hardware.
6730 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6732 * source.c (search_command_helper): Stop reverse search
6733 when line 1 has been searched.
6735 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6737 * record-full.c (record_full_base_target::close): Rewrite
6738 record_full_core_buf_list free logic.
6740 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6742 * break-catch-syscall.c (print_one_catch_syscall): xfree
6745 2019-01-01 Joel Brobecker <brobecker@adacore.com>
6747 * top.c (print_gdb_version): Update Copyright year in version
6750 2019-01-01 Joel Brobecker <brobecker@adacore.com>
6752 Update copyright year range in all GDB files.
6754 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
6756 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
6758 For older changes see ChangeLog-2018.
6764 version-control: never