1 2019-05-08 Tom Tromey <tom@tromey.com>
3 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
4 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
5 (_initialize_dwarf2_frame): Update.
7 2019-05-08 Tom Tromey <tom@tromey.com>
9 * objc-lang.c (objc_objfile_data): Change type.
10 (find_methods): Update.
11 (_initialize_objc_lang): Remove.
13 2019-05-08 Tom Tromey <tom@tromey.com>
15 * stabsread.c (rs6000_builtin_type_data): Change type.
16 (rs6000_builtin_type, _initialize_stabsread): Update.
18 2019-05-08 Tom Tromey <tom@tromey.com>
20 * mips-tdep.c (mips_pdr_data): Remove.
21 (_initialize_mips_tdep): Update.
23 2019-05-08 Tom Tromey <tom@tromey.com>
25 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
26 (hppa_init_objfile_priv_data, read_unwind_info)
27 (find_unwind_entry, _initialize_hppa_tdep): Update.
29 2019-05-08 Tom Tromey <tom@tromey.com>
31 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
32 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
34 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
36 2019-05-08 Tom Tromey <tom@tromey.com>
38 * mdebugread.c (basic_type_data): Change type.
39 (basic_type, _initialize_mdebugread): Update.
41 2019-05-08 Tom Tromey <tom@tromey.com>
43 * common/gdb_unique_ptr.h (struct noop_deleter): New.
45 2019-05-08 Tom Tromey <tom@tromey.com>
47 * nto-tdep.c (nto_inferior_data_reg): Change type.
48 (nto_inferior_data): Update.
49 (nto_inferior_data_cleanup, nto_new_inferior_data)
50 (_initialize_nto_tdep): Remove.
51 * nto-tdep.h (struct nto_inferior_data): Add initializers.
53 2019-05-08 Tom Tromey <tom@tromey.com>
55 * ada-lang.c (struct ada_inferior_data): Add initializers.
56 (ada_inferior_data): Change type.
57 (ada_inferior_data_cleanup): Remove.
58 (get_ada_inferior_data, ada_inferior_exit)
59 (struct ada_pspace_data): Add initializers, destructor.
60 (ada_pspace_data_handle): Change type.
61 (get_ada_pspace_data): Update.
62 (ada_pspace_data_cleanup): Remove.
64 2019-05-08 Tom Tromey <tom@tromey.com>
66 * coffread.c (struct coff_symfile_info): Add initializers.
67 (coff_objfile_data_key): Move lower. Change type.
68 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
70 (coff_free_info): Remove.
72 2019-05-08 Tom Tromey <tom@tromey.com>
74 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
75 (fbsd_pspace_data_handle): Move lower. Change type.
76 (get_fbsd_pspace_data): Update.
77 (fbsd_pspace_data_cleanup): Remove.
78 (_initialize_fbsd_tdep): Update.
80 2019-05-08 Tom Tromey <tom@tromey.com>
82 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
83 (get_ada_tasks_pspace_data): Update.
84 (ada_tasks_pspace_data_cleanup): Remove.
85 (_initialize_tasks): Update.
86 (ada_tasks_inferior_data_handle): Change type.
87 (get_ada_tasks_inferior_data): Update.
88 (ada_tasks_inferior_data_cleanup): Remove.
89 (struct ada_tasks_pspace_data): Add initializers.
91 2019-05-08 Tom Tromey <tom@tromey.com>
93 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
94 * symfile-debug.c (debug_sym_get_probes): Change type.
95 * stap-probe.c (handle_stap_probe):
96 (stap_static_probe_ops::get_probes): Change type.
97 * probe.h (class static_probe_ops) <get_probes>: Change type.
98 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
99 (parse_probes_in_pspace): Update.
100 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
102 (any_static_probe_ops::get_probes): Change type.
103 * elfread.c (elfread_data): New typedef.
104 (probe_key): Change type.
105 (elf_get_probes): Likewise. Update.
106 (probe_key_free): Remove.
107 (_initialize_elfread): Update.
108 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
110 (dtrace_process_dof_probe, dtrace_process_dof)
111 (dtrace_static_probe_ops::get_probe): Change type.
113 2019-05-08 Tom Tromey <tom@tromey.com>
115 * xcoffread.c (struct xcoff_symfile_info): Rename from
116 coff_symfile_info. Add initializers.
117 (xcoff_objfile_data_key): Move lower. Change type.
118 (XCOFF_DATA): Rewrite.
119 (xcoff_free_info): Remove.
120 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
121 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
122 (xcoff_initial_scan): Update.
124 2019-05-08 Tom Tromey <tom@tromey.com>
126 * solib-svr4.c (struct svr4_info): Add initializers and
128 <probes_table>: Now an htab_up.
129 (solib_svr4_pspace_data): Change type.
130 (free_probes_table): Simplify.
131 (~svr4_info): Rename from svr4_pspace_data_cleanup.
132 (get_svr4_info, probes_table_htab_remove_objfile_probes)
133 (probes_table_remove_objfile_probes, register_solib_event_probe)
134 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
135 (_initialize_svr4_solib): Update.
137 2019-05-08 Tom Tromey <tom@tromey.com>
139 * remote.c (remote_pspace_data): Change type.
140 (remote_pspace_data_cleanup): Remove.
141 (get_remote_exec_file, set_pspace_remote_exec_file)
142 (_initialize_remote): Update.
144 2019-05-08 Tom Tromey <tom@tromey.com>
146 * breakpoint.c (breakpoint_objfile_key): Change type.
147 (get_breakpoint_objfile_data): Update.
148 (free_breakpoint_objfile_data): Remove.
149 (_initialize_breakpoint): Update.
151 2019-05-08 Tom Tromey <tom@tromey.com>
153 * linux-tdep.c (struct linux_info): Add initializers.
154 (linux_inferior_data): Move. Change type.
155 (invalidate_linux_cache_inf): Update.
156 (linux_inferior_data_cleanup): Remove.
157 (get_linux_inferior_data, _initialize_linux_tdep): Update.
159 2019-05-08 Tom Tromey <tom@tromey.com>
161 * auxv.c (auxv_inferior_data): Move. Change type.
162 (auxv_inferior_data_cleanup): Remove.
163 (invalidate_auxv_cache_inf): Rewrite.
164 (get_auxv_inferior_data, _initialize_auxv): Update.
166 2019-05-08 Tom Tromey <tom@tromey.com>
168 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
169 (symfile_debug_objfile_data_key): Change type.
170 (symfile_debug_installed, debug_qf_has_symbols)
171 (debug_qf_find_last_source_symtab)
172 (debug_qf_forget_cached_source_info)
173 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
174 (debug_qf_print_stats, debug_qf_dump)
175 (debug_qf_expand_symtabs_for_function)
176 (debug_qf_expand_all_symtabs)
177 (debug_qf_expand_symtabs_with_fullname)
178 (debug_qf_map_matching_symbols)
179 (debug_qf_expand_symtabs_matching)
180 (debug_qf_find_pc_sect_compunit_symtab)
181 (debug_qf_map_symbol_filenames)
182 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
183 (debug_sym_new_init, debug_sym_init, debug_sym_read)
184 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
185 (debug_sym_read_linetable, debug_sym_relocate): Update.
186 (symfile_debug_free_objfile): Remove.
187 (install_symfile_debug_logging, _initialize_symfile_debug):
190 2019-05-08 Tom Tromey <tom@tromey.com>
192 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
194 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
195 (get_dwarf2_per_objfile): Update.
196 (set_dwarf2_per_objfile): Remove.
197 (dwarf2_has_info, dwarf2_get_section_info): Update.
198 (dwarf2_free_objfile): Remove.
199 (_initialize_dwarf2_read): Update.
201 2019-05-08 Tom Tromey <tom@tromey.com>
203 * auto-load.c (struct auto_load_pspace_info): Add destructor and
205 <unsupported_script_warning_printed,
206 script_not_found_warning_printed>: Now bool.
207 (auto_load_pspace_data): Change type.
208 (~auto_load_pspace_info): Rename from
209 auto_load_pspace_data_cleanup.
210 (get_auto_load_pspace_data, init_loaded_scripts_info)
211 (clear_section_scripts, maybe_print_unsupported_script_warning)
212 (maybe_print_script_not_found_warning, _initialize_auto_load):
215 2019-05-08 Tom Tromey <tom@tromey.com>
217 * objfiles.c (objfile_pspace_info): Add destructor and
219 (objfiles_pspace_data): Change type.
220 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
221 (get_objfile_pspace_data): Update.
222 (objfiles_bfd_data): Change type.
223 (get_objfile_bfd_data): Update.
224 (objfile_bfd_data_free, _initialize_objfiles): Remove.
226 2019-05-08 Tom Tromey <tom@tromey.com>
228 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
230 (get_catch_syscall_inferior_data): Update.
231 (catch_syscall_inferior_data_cleanup): Remove.
232 (_initialize_break_catch_syscall): Update.
234 2019-05-08 Tom Tromey <tom@tromey.com>
236 * inflow.c (struct terminal_info): Add destructor and
238 (inflow_inferior_data): Change type.
239 (~terminal_info): Rename from inflow_inferior_data_cleanup.
240 (get_inflow_inferior_data, inflow_inferior_exit)
241 (swap_terminal_info, _initialize_inflow): Update.
243 2019-05-08 Tom Tromey <tom@tromey.com>
245 * target-dcache.c (target_dcache_cleanup): Remove.
246 (target_dcache_aspace_key): Change type.
247 (target_dcache_init_p, target_dcache_invalidate)
248 (target_dcache_get, target_dcache_get_or_init)
249 (_initialize_target_dcache): Update.
250 * dcache.h (struct dcache_deleter): New.
252 2019-05-08 Tom Tromey <tom@tromey.com>
254 * symtab.c (struct symbol_cache): Add destructor and
256 (symbol_cache_key): Move. Change type.
257 (make_symbol_cache, free_symbol_cache): Remove.
258 (get_symbol_cache): Update.
259 (symbol_cache_cleanup): Remove.
260 (ALL_PSPACES, symbol_cache_flush)
261 (maintenance_print_symbol_cache)
262 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
265 2019-05-08 Tom Tromey <tom@tromey.com>
267 * symtab.c (struct main_info): Add destructor and initializers.
268 (main_progspace_key): Move. Change type.
269 (get_main_info): Update.
270 (main_info_cleanup): Remove.
271 (_initialize_symtab): Update.
273 2019-05-08 Tom Tromey <tom@tromey.com>
275 * registry.h (DECLARE_REGISTRY): Define the _key class.
277 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
279 * NEWS: Merge two 'New commands' sections.
281 2019-05-08 Joel Brobecker <brobecker@adacore.com>
283 * ada-valprint.c (ada_val_print_gnat_array): Remove language
284 parameter and use Ada language definition instead.
285 (ada_val_print_ptr): Remove unused language parameter.
286 (ada_val_print_num): Remove language parameter and use Ada language
288 (ada_val_print_enum, ada_val_print_flt): Remove unused language
290 (ada_val_print_struct_union, ada_val_print_ref): Remove language
291 parameter and use Ada language definition instead.
292 (ada_val_print_1): Update all ada_val_print_xxx calls.
293 Remove language parameter.
294 (ada_val_print): Update ada_val_print_1 call.
296 2019-05-08 Tom Tromey <tromey@adacore.com>
298 * remote.c (remote_hw_watchpoint_limit)
299 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
302 2019-05-08 Tom Tromey <tromey@adacore.com>
304 * maint.c (_initialize_maint_cmds): Move initialization code to
306 (watchdog, show_watchdog): Move to remote.c.
307 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
309 (_initialize_remote): Move initialization code from maint.c.
310 * defs.h (watchdog): Don't declare.
312 2019-05-08 Tom Tromey <tromey@adacore.com>
314 * tui/tui-interp.c: Include main.h.
315 * interps.c: Include main.h.
316 * main.h (interpreter_p): Declare.
317 * defs.h (interpreter_p): Don't declare.
319 2019-05-08 Tom Tromey <tromey@adacore.com>
321 * dwarf2loc.c: Include dwarf2read.h.
322 * defs.h (read_unsigned_leb128): Don't declare.
323 * dwarf2read.h (read_unsigned_leb128): Declare.
325 2019-05-08 Tom Tromey <tromey@adacore.com>
327 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
330 2019-05-08 Tom Tromey <tromey@adacore.com>
332 * utils.c (fputs_maybe_filtered): Reset style after paging, even
333 when no wrap column is set.
335 2019-05-08 Tom Tromey <tromey@adacore.com>
337 * c-lang.c (c_get_string): Handle non-C-style arrays.
339 2019-05-08 Tom Tromey <tromey@adacore.com>
341 * typeprint.c (print_offset_data::update): Print the bit offset,
342 not the number of bits remaining.
344 2019-05-08 Tom Tromey <tromey@adacore.com>
346 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
347 padding at end of comment.
349 2019-05-08 Tom Tromey <tromey@adacore.com>
351 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
354 2019-05-06 Tom Tromey <tom@tromey.com>
356 * common/scoped_mmap.c: Include common-defs.h.
357 * common/scoped_mmap.h: Don't include config.h.
359 2019-05-04 Tom Tromey <tom@tromey.com>
361 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
362 (struct aarch64_call_info): Add initializers.
363 <si>: Now a std::vector.
364 (pass_on_stack, aarch64_push_dummy_call): Update.
366 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
367 Tom Tromey <tom@tromey.com>
369 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
370 (ppc_threads): Now a std::vector. Now static.
371 (hwdebug_find_thread_points_by_tid)
372 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
375 2019-05-04 Tom Tromey <tom@tromey.com>
377 * arc-tdep.c (arc_tdesc_init): Return bool.
379 2019-05-04 Tom Tromey <tom@tromey.com>
381 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
382 Use gdb_assert_not_reached.
384 2019-05-04 Tom Tromey <tom@tromey.com>
386 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
389 2019-05-04 Tom Tromey <tom@tromey.com>
391 * arc-tdep.c (arc_tdesc_init): Use bool.
393 2019-05-04 Tom Tromey <tom@tromey.com>
395 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
397 2019-05-04 Tom Tromey <tom@tromey.com>
399 * cli/cli-cmds.c (valid_command_p): Return bool.
401 2019-05-04 Tom Tromey <tom@tromey.com>
403 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
404 * command.h (valid_user_defined_cmd_name_p): Channge return type.
406 2019-05-04 Raul Tambre <raul@tambre.ee>
408 * python/lib/gdb/prompt.py (_ExtendedPrompt)
409 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
410 operator for comparison.
412 2019-05-04 Tom Tromey <tom@tromey.com>
414 * psymtab.c (psymbol_name_matches, match_partial_symbol)
415 (lookup_partial_symbol, print_partial_symbols)
416 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
417 (psymbol_compare): Update.
418 (add_psymbol_to_bcache): Clear the entire psymbol.
419 (maintenance_check_psymtabs): Update.
420 * psympriv.h (struct partial_symbol): Don't derive from
422 <obj_section, unrelocated_address, address,
423 set_unrelocated_address>: Update.
425 * dwarf-index-write.c (write_psymbols, debug_names::insert)
426 (debug_names::write_psymbols): Update.
428 2019-05-04 Tom de Vries <tdevries@suse.de>
430 * contrib/cc-with-tweaks.sh: Support -n arg.
432 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
434 * corelow.c (core_target::detach): Ensure frame cache and
435 register caches are cleared.
436 inferior.c (exit_inferior_1): Likewise.
438 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
439 Tom Tromey <tom@tromey.com>
441 * dictionary.c (collate_pending_symbols_by_language): Remove
442 "struct" from foreach.
443 * symtab.c (lookup_global_symbol_from_objfile)
444 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
446 * ser-tcp.c (net_open): Remove "struct" from foreach.
447 * objfiles.c (objfile_relocate, objfile_rebase)
448 (objfile_has_symbols): Remove "struct" from foreach.
449 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
451 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
453 * darwin-nat.c (thread_info_from_private_thread_info): Remove
454 "struct" from foreach.
455 * ada-lang.c (create_excep_cond_exprs)
456 (ada_exception_catchpoint_cond_string): Remove "struct" from
459 2019-05-03 Tom Tromey <tromey@adacore.com>
461 * ada-exp.y (convert_char_literal): Check suffix of each
464 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
467 * ada-exp.y (yywrap): Don't define.
468 * ada-lex.l (%option): Add noyywrap
471 2019-05-03 Eli Zaretskii <eliz@gnu.org>
473 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
474 _WIN32_WINNT to the XP level, unless already defined to a higher
477 * unittests/parse-connection-spec-selftests.c:
479 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
482 * symfile.c (find_separate_debug_file): Remove colon from the
483 drive spec of DOS/Windows file names of the target, so that the
484 file name produced from DEBUGDIR and the target's directory will
485 be valid on DOS/Windows systems.
487 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
489 * rust-lang.c (val_print_struct): Handle printing structures
492 2019-05-02 Tom Tromey <tromey@adacore.com>
494 * valarith.c (_initialize_valarith): Remove.
496 2019-05-01 Tom Tromey <tromey@adacore.com>
498 * ada-lang.c (ada_value_primitive_field): Treat more fields as
501 2019-05-01 Tom Tromey <tromey@adacore.com>
503 * ada-lang.c (ada_value_assign): Correctly compute starting offset
504 for big-endian copies.
506 2019-04-30 Ali Tamur <tamur@google.com>
507 * gdb/dwarf2read.c (read_3_bytes): New declaration.
508 (read_attribute_value): Added DW_FORM_strx1-4 cases.
509 (read_3_bytes): New function.
511 2019-04-30 Joel Brobecker <brobecker@adacore.com>
513 * windows-nat.c (main_thread_id): Delete.
514 (handle_output_debug_string): Replace main_thread_id by
515 current_event.dwThreadId.
516 (fake_create_process): Likewise.
517 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
518 Do not set main_thread_id.
519 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
520 current_event.dwThreadId.
521 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
523 2019-04-30 Joel Brobecker <brobecker@adacore.com>
525 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
526 Use current_event.dwThreadId instead of main_thread_id.
528 2019-04-30 Tom Tromey <tromey@adacore.com>
530 * ada-lang.c (ada_lookup_simple_minsyms): New function.
531 (create_excep_cond_exprs): Iterate over program spaces.
532 (ada_exception_catchpoint_cond_string): Examine all minimal
533 symbols for exception types.
535 2019-04-30 Tom Tromey <tromey@adacore.com>
538 * dwarf2read.c (process_structure_scope): Handle case where type
539 has template parameters but no symbol was created.
541 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
542 Chris January <chris.january@arm.com>
544 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
546 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
548 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
550 * f-typeprint.c (f_print_type): Update rules for printing
552 (f_type_print_varspec_suffix): Likewise.
554 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
555 Chris January <chris.january@arm.com>
557 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
560 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
562 * f-lang.c (build_fortran_types): Change name of void type to
564 * f-typeprint.c (f_type_print_base): Print the name of the void
565 type, rather than a fixed string.
566 * f-valprint.c (f_decorations): Use lower case void string.
568 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
569 Chris January <chris.january@arm.com>
571 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
574 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
575 Chris January <chris.january@arm.com>
576 David Lecomber <david.lecomber@arm.com>
578 * f-exp.y (BINOP_INTRINSIC): New token.
579 (exp): New parser rule handling BINOP_INTRINSIC.
580 (f77_keywords): Add new builtin procedures.
581 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
582 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
583 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
584 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
585 (print_unop_subexp_f): New function.
586 (print_binop_subexp_f): New function.
587 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
588 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
589 (dump_subexp_body_f): Likewise.
590 (operator_check_f): Likewise.
591 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
592 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
594 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
596 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
598 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
599 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
600 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
601 (operator_length_f): New fuction.
602 (print_subexp_f): New function.
603 (op_name_f): New function.
604 (dump_subexp_body_f): New function.
605 (operator_check_f): New function.
606 (exp_descriptor_f): Replace standard expression handling functions
608 * gdb/fortran-operator.def: New file.
609 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
610 * gdb/std-operator.def: Remove UNOP_KIND.
612 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
614 * std-operator.def: Remove unbalanced, stray double quote
617 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
618 Chris January <chris.january@arm.com>
619 Daniel Everett <daniel.everett@arm.com>
620 Nick Forrington <nick.forrington@arm.com>
621 Richard Bunt <richard.bunt@arm.com>
623 * cp-valprint.c (cp_print_value_fields): Allow an additional level
624 of depth when printing anonymous structs or unions.
625 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
626 Don't print either the top-level value, or the children if the
627 max-depth is exceeded.
628 (ppscm_print_children): When printing the key of a map, allow one
629 extra level of depth.
630 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
631 print either the top-level value, or the children if the max-depth
633 (print_children): When printing the key of a map, allow one extra
635 * python/py-value.c (valpy_format_string): Add max_depth keyword.
636 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
637 (user_print_options): Initialise max_depth field.
638 (val_print_scalar_or_string_type_p): New function.
639 (val_print): Check to see if the max depth has been reached.
640 (val_print_check_max_depth): Define new function.
641 (show_print_max_depth): New function.
642 (_initialize_valprint): Add 'print max-depth' option.
643 * valprint.h (struct value_print_options) <max_depth>: New field.
644 (val_print_check_max_depth): Declare new function.
645 * NEWS: Document new feature.
647 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
649 * ada-lang.c (ada_language_defn): Initialise new field.
650 * c-lang.c (c_is_string_type_p): New function.
651 (c_language_defn): Initialise new field.
652 (cplus_language_defn): Initialise new field.
653 (asm_language_defn): Initialise new field.
654 (minimal_language_defn): Initialise new field.
655 * c-lang.h (c_is_string_type_p): Declare new function.
656 * d-lang.c (d_language_defn): Initialise new field.
657 * f-lang.c (f_is_string_type_p): New function.
658 (f_language_defn): Initialise new field.
659 * go-lang.c (go_is_string_type_p): New function.
660 (go_language_defn): Initialise new field.
661 * language.c (default_is_string_type_p): New function.
662 (unknown_language_defn): Initialise new field.
663 (auto_language_defn): Initialise new field.
664 * language.h (struct language_defn) <la_is_string_type_p>: New
666 (default_is_string_type_p): Declare new function.
667 * m2-lang.c (m2_language_defn): Initialise new field.
668 * objc-lang.c (objc_language_defn): Initialise new field.
669 * opencl-lang.c (opencl_language_defn): Initialise new field.
670 * p-lang.c (pascal_is_string_type_p): New function.
671 (pascal_language_defn): Initialise new field.
672 * rust-lang.c (rust_is_string_type_p): New function.
673 (rust_language_defn): Initialise new field.
675 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
677 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
679 * ada-lang.c (ada_language_defn): Initialise new field.
680 * c-lang.c (c_language_defn): Likewise.
681 (cplus_language_defn): Likewise.
682 (asm_language_defn): Likewise.
683 (minimal_language_defn): Likewise.
684 * d-lang.c (d_language_defn): Likewise.
685 * f-lang.c (f_language_defn): Likewise.
686 * go-lang.c (go_language_defn): Likewise.
687 * language.c (unknown_language_defn): Likewise.
688 (auto_language_defn): Likewise.
689 * m2-lang.c (m2_language_defn): Likewise.
690 * objc-lang.c (objc_language_defn): Likewise.
691 * opencl-lang.c (opencl_language_defn): Likewise.
692 * p-lang.c (pascal_language_defn): Likewise.
693 * rust-lang.c (rust_language_defn): Likewise.
695 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
697 * ada-lang.c (ada_is_character_type): Change return type to bool.
698 (ada_is_string_type): Likewise.
699 * ada-lang.h (ada_is_character_type): Update declaration
700 (ada_is_string_type): Likewise.
702 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
704 Support style in 'frame|thread apply'
706 * gdbcmd.h (execute_command_to_string): New term_out parameter.
707 * record.c (record_start, record_stop): Update callers of
708 execute_command_to_string with false.
709 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
710 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
712 (class string_file): New constructor with term_out parameter.
713 Override methods term_out and can_emit_style_escape. New member
715 (class stdio_file): Override can_emit_style_escape.
716 (class tee_file): Override term_out and can_emit_style_escape.
717 * utils.h (can_emit_style_escape): Remove.
718 * utils.c (can_emit_style_escape): Likewise.
719 Update all callers of can_emit_style_escape (SOMESTREAM) to
720 SOMESTREAM->can_emit_style_escape.
721 * source-cache.c (source_cache::get_source_lines): Likewise.
722 * stack.c (frame_apply_command_count): Call execute_command_to_string
723 passing the term_out characteristic of the current gdb_stdout.
724 * thread.c (thr_try_catch_cmd): Likewise.
725 * top.c (execute_command_to_string): pass term_out parameter
726 to construct the string_file for the command output.
727 * ui-file.c (term_cli_styling): New function (most code moved
728 from utils.c can_emit_style_escape).
729 (string_file::string_file, string_file::can_emit_style_escape,
730 stdio_file::can_emit_style_escape, tee_file::term_out,
731 tee_file::can_emit_style_escape): New functions.
733 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
735 * NEWS: Mention the new set|show may-call-functions.
736 * infcall.c (may_call_functions_p): New variable.
737 (show_may_call_functions_p): New function.
738 (call_function_by_hand_dummy): Throws an error if not
740 (_initialize_infcall): Call add_setshow_boolean_cmd for
743 2019-04-25 Keith Seitz <keiths@redhat.com>
746 * cp-support.c (inspect_type): Don't attempt substitutions
747 of symbol with the same name.
749 2019-04-25 Tom Tromey <tromey@adacore.com>
752 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
755 2019-04-25 Tom Tromey <tromey@adacore.com>
757 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
759 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
760 (gdb_xml_parser::parse): Use std::move.
761 * python/python-internal.h (gdbpy_convert_exception): Take a const
763 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
765 * python/py-utils.c (gdbpy_convert_exception): Take a const
767 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
769 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
771 * mi/mi-main.c (mi_print_exception): Take a const reference.
772 * main.c (handle_command_errors): Take a const reference.
773 * linespec.c (parse_linespec): Use std::move.
774 * infcall.c (run_inferior_call): Use std::move.
775 (call_function_by_hand_dummy): Use std::move.
776 * exec.c (try_open_exec_file): Use std::move.
777 * exceptions.h (exception_print, exception_fprintf)
778 (exception_print_same): Update.
779 * exceptions.c (print_exception, exception_print)
780 (exception_fprintf, exception_print_same): Change parameters to
782 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
783 * common/new-op.c: Use std::move.
784 * common/common-exceptions.h (struct gdb_exception): Add move
786 (struct gdb_exception_error, struct gdb_exception_quit, struct
787 gdb_quit_bad_alloc): Change constructor to move constructor.
788 (throw_exception): Change parameter to rvalue reference.
789 * common/common-exceptions.c (throw_exception): Take rvalue
791 * cli/cli-interp.c (safe_execute_command): Use std::move.
792 * breakpoint.c (insert_bp_location, location_to_sals): Use
795 2019-04-25 Tom Tromey <tromey@adacore.com>
797 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
798 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
799 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
800 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
801 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
802 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
803 guile/scm-value.c: Use unpack.
804 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
805 gdbscm_gdb_exception.
806 (gdbscm_throw_gdb_exception): Likewise.
807 (struct gdbscm_gdb_exception): New.
808 (unpack): New function.
809 (gdbscm_wrap): Use unpack.
811 2019-04-25 Tom Tromey <tromey@adacore.com>
813 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
814 (gdb_rl_callback_handler): Use std::move.
815 * common/common-exceptions.h (struct gdb_exception): Add move
817 (throw_exception_sjlj): Change "exception" to const reference.
818 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
819 (throw_exception_sjlj): Change "exception" to const reference.
821 2019-04-25 Tom Tromey <tromey@adacore.com>
823 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
824 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
825 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
827 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
829 * mi/mi-interp.c (mi_interp::exec): Update.
830 * linespec.c (parse_linespec): Update.
831 * infcall.c (run_inferior_call): Update.
832 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
833 * guile/scm-symbol.c (gdbscm_lookup_symbol)
834 (gdbscm_lookup_global_symbol): Update.
835 * guile/scm-param.c (gdbscm_parameter_value): Update.
836 * guile/scm-frame.c (gdbscm_frame_read_register)
837 (gdbscm_frame_read_var): Update.
838 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
839 * exec.c (try_open_exec_file): Update.
840 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
841 (gdb_rl_callback_handler): Update.
842 * common/common-exceptions.h (exception_none): Don't declare.
843 * common/common-exceptions.c (exception_none): Don't define.
844 (struct catcher) <exception>: Update.
845 * cli/cli-interp.c (safe_execute_command): Update.
846 * breakpoint.c (insert_bp_location, location_to_sals): Update.
848 2019-04-25 Ali Tamur <tamur@google.com>
850 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
851 (read_attribute_value): Likewise.
852 (dwarf2_read_addr_index): Update comment.
853 (read_str_index): Add DW_FORM_strx.
854 (dwarf2_string_attr): Likewise.
855 (dwarf2_const_value_attr): Likewise.
856 (dump_die_shallow): Likewise.
857 (dwarf2_fetch_constant_bytes): Likewise.
858 (skip_form_bytes): Likewise.
859 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
861 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
865 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
866 OFFSET. Verify if current mapping contains an ELF header.
867 (linux_find_memory_regions_full): Adjust call to
870 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
871 Kang Li <kanglictf@gmail.com>
875 * dwarf2-frame.c (read_initial_length): Be consistent about using
876 unsigned representation of length.
877 (decode_frame_entry_1): Likewise. Check for wraparound of
878 end pointer as well as buffer overflow.
880 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
882 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
885 2019-04-24 Tom Tromey <tromey@adacore.com>
887 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
889 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
891 * s12z-tdep.c (s12z_unwind_pc): Delete.
892 (s12z_unwind_sp): Delete.
893 (s12z_gdbarch_init): Don't register deleted functions with
896 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
898 * rl78-tdep.c (rl78_unwind_sp): Delete.
899 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
901 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
903 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
904 (xstormy16_unwind_pc): Delete.
905 (xstormy16_dummy_id): Delete.
906 (xstormy16_gdbarch_init): Don't register deleted functions with
909 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
911 * vax-tdep.c (vax_unwind_pc): Delete.
912 (vax_gdbarch_init): Don't register deleted function with gdbarch.
914 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
916 * v850-tdep.c (v850_unwind_sp): Delete.
917 (v850_unwind_pc): Delete.
918 (v850_dummy_id): Delete.
919 (v850_gdbarch_init): Don't register deleted functions with
922 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
924 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
925 (tilegx_unwind_pc): Delete.
926 (tilegx_unwind_dummy_id): Delete.
927 (tilegx_gdbarch_init): Don't register deleted functions with
930 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
932 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
933 (tic6x_dummy_id): Delete.
934 (tic6x_gdbarch_init): Don't register deleted functions with
937 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
939 * sparc-tdep.c (sparc_unwind_pc): Delete.
940 (sparc32_gdbarch_init): Don't register deleted function with
943 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
945 * sh-tdep.c (sh_unwind_sp): Delete.
946 (sh_unwind_pc): Delete.
947 (sh_dummy_id): Delete.
948 (sh_gdbarch_init): Don't register deleted functions with
951 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
953 * score-tdep.c (score_unwind_sp): Delete.
954 (score_unwind_pc): Delete.
955 (score_dummy_id): Delete.
956 (score_gdbarch_init): Don't register deleted functions with
959 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
961 * rx-tdep.c (rx_unwind_pc): Delete.
962 (rx_unwind_sp): Delete.
963 (rx_dummy_id): Delete.
964 (rx_gdbarch_init): Don't register deleted functions with
965 gdbarch. Update comment.
967 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
969 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
970 (rs6000_dummy_id): Delete.
971 (rs6000_gdbarch_init): Don't register deleted functions with
974 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
976 * or1k-tdep.c (or1k_dummy_id): Delete.
977 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
979 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
981 * nios2-tdep.c (nios2_dummy_id): Delete.
982 (nios2_unwind_sp): Delete.
983 (nios2_gdbarch_init): Don't register deleted functions with
986 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
988 * nds32-tdep.c (nds32_dummy_id): Delete.
989 (nds32_unwind_pc): Delete.
990 (nds32_unwind_sp): Delete.
991 (nds32_gdbarch_init): Don't register deleted functions with
994 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
996 * msp430-tdep.c (msp430_unwind_pc): Delete.
997 (msp430_unwind_sp): Delete.
998 (msp430_dummy_id): Delete.
999 (msp430_gdbarch_init): Don't register deleted functions with
1002 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1004 * moxie-tdep.c (moxie_unwind_sp): Delete.
1005 (moxie_unwind_pc): Delete.
1006 (moxie_dummy_id): Delete.
1007 (moxie_gdbarch_init): Don't register deleted functions with
1010 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1012 * mn10300-tdep.c (mn10300_dummy_id): Delete.
1013 (mn10300_unwind_pc): Delete.
1014 (mn10300_unwind_sp): Delete.
1015 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
1017 (mn10300_frame_unwind_init): Don't register deleted functions with
1020 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1022 * mep-tdep.c (mep_unwind_pc): Delete.
1023 (mep_unwind_sp): Delete.
1024 (mep_dummy_id): Delete.
1025 (mep_gdbarch_init): Don't register deleted functions with
1028 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1030 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
1031 (m68hc11_unwind_sp): Delete.
1032 (m68hc11_gdbarch_init): Don't register deleted functions with
1035 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1037 * m32r-tdep.c (m32r_unwind_sp): Delete.
1038 (m32r_unwind_pc): Delete.
1039 (m32r_dummy_id): Delete.
1040 (m32r_gdbarch_init): Don't register deleted functions with
1043 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1045 * m32c-tdep.c (m32c_unwind_pc): Delete.
1046 (m32c_unwind_sp): Delete.
1047 (m32c_dummy_id): Delete.
1048 (m32c_gdbarch_init): Don't register deleted functions with
1051 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1053 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
1054 (lm32_unwind_pc): Delete.
1055 (lm32_dummy_id): Delete.
1056 (lm32_gdbarch_init): Don't register deleted functions with
1059 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1061 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
1062 (iq2000_unwind_pc): Delete.
1063 (iq2000_dummy_id): Delete.
1064 (iq2000_gdbarch_init): Don't register deleted functions with
1067 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1069 * nds32-tdep.c (nds32_type_align): Delete.
1070 (nds32_push_dummy_call): Use type_align instead.
1072 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1074 * arm-tdep.c (arm_type_align): Only handle vector override case.
1075 (arm_push_dummy_call): Use type_align.
1076 (arm_gdbarch_init): Register arm_type_align gdbarch function.
1078 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1080 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
1082 (pass_on_stack): Use type_align.
1083 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
1086 2019-04-23 Tom Tromey <tromey@adacore.com>
1088 * dwarf2read.c (line_header::file_name_at): Remove unused
1091 2019-04-23 Tom de Vries <tdevries@suse.de>
1094 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
1098 2019-03-27 Ali Tamur <tamur@google.com>
1100 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
1101 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
1102 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
1103 (dwarf_expr_context::get_addr_index): Likewise
1104 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
1105 (symbol_needs_eval_context::get_addr_index): Likewise
1106 (disassemble_dwarf_expression): Add DW_OP_addrx
1107 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
1108 (read_cutu_die_from_dwo): Update comment
1109 (skip_one_die): Add DW_FORM_addrx
1110 (read_attribute_value): Likewise
1111 (var_decode_location): Add DW_OP_addrx
1112 (dwarf2_const_value_attr): Add DW_FORM_addrx
1113 (dump_die_shallow): Likewise
1114 (dwarf2_fetch_constant_bytes): Likewise
1115 (decode_locdesc): Add DW_OP_addrx
1116 (skip_form_bytes): Add DW_FORM_addrx
1118 2019-04-22 Ali Tamur <tamur@google.com>
1120 * MAINTAINERS (Write After Approval): Add self.
1122 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
1124 * solib-svr4.c (get_svr4_info): Add pspace parameter.
1125 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
1126 (open_symbol_file_object): Likewise.
1127 (svr4_default_sos): Add info parameter.
1128 (svr4_read_so_list): Likewise.
1129 (svr4_current_sos_direct): Adjust functions calls to pass down
1131 (svr4_current_sos_1): Add info parameter.
1132 (svr4_current_sos): Call get_svr4_info, pass info down to
1134 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
1136 (svr4_in_dynsym_resolve_code): Pass current_program_space to
1138 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
1140 (probes_table_remove_objfile_probes): Likewise.
1141 (register_solib_event_probe): Add info parameter.
1142 (solist_update_incremental): Pass info parameter down to
1144 (disable_probes_interface): Add info parameter.
1145 (svr4_handle_solib_event): Pass current_program_space to
1146 get_svr4_info. Adjust disable_probes_interface cleanup.
1147 (svr4_create_probe_breakpoints): Add info parameter, pass it
1148 down to register_solib_event_probe.
1149 (svr4_create_solib_event_breakpoints): Add info parameter,
1150 pass it down to svr4_create_probe_breakpoints.
1151 (enable_break): Pass info down to
1152 svr4_create_solib_event_breakpoints.
1153 (svr4_solib_create_inferior_hook): Pass current_program_space to
1155 (svr4_clear_solib): Likewise.
1157 2019-04-22 Pedro Alves <palves@redhat.com>
1159 * solib-svr4.c (svr4_free_objfile_observer): New.
1160 (probe_and_action::objfile): New field.
1161 (probes_table_htab_remove_objfile_probes)
1162 (probes_table_remove_objfile_probes): New functions.
1163 (register_solib_event_probe): Add 'objfile' parameter. Store it
1164 in the new probe_and_action. Don't store the probe in 'lookup'.
1165 (svr4_create_probe_breakpoints): Pass objfile to
1166 register_solib_event_probe.
1167 (_initialize_svr4_solib): Register a free_objfile observer.
1169 2019-04-19 Tom Tromey <tom@tromey.com>
1171 * common/queue.h: Remove.
1173 2019-04-19 Tom Tromey <tom@tromey.com>
1175 * event-loop.c: Don't include "common/queue.h".
1177 2019-04-19 Tom Tromey <tom@tromey.com>
1179 * remote.c (remote_target): Use delete.
1180 * remote-notif.h: Include <list>, not "common/queue.h".
1181 (notif_client_p): Remove typedef.
1182 (remote_notif_state): Add constructor, destructor, initializer.
1183 <notif_queue>: Now a std::list.
1184 (remote_notif_state_xfree): Don't declare.
1185 * remote-notif.c (remote_notif_process, handle_notification)
1186 (remote_notif_state_allocate): Update.
1187 (~remote_notif_state): Rename from remote_notif_state_xfree.
1189 2019-04-19 Tom Tromey <tom@tromey.com>
1191 * symfile.c (reread_symbols): Update.
1192 * objfiles.c (objfile_register_static_link)
1193 (objfile_lookup_static_link): Update
1194 (~objfile) Don't delete static_links.
1195 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
1197 2019-04-19 Tom Tromey <tom@tromey.com>
1199 * type-stack.h (struct type_stack) <insert>: Constify string.
1200 * type-stack.c (type_stack::insert): Constify string.
1201 * gdbtypes.h (lookup_template_type): Update.
1202 (address_space_name_to_int): Update.
1203 * gdbtypes.c (address_space_name_to_int): Make space_identifier
1205 (lookup_template_type): Make name const.
1206 * c-exp.y: Update rules.
1207 (lex_one_token, classify_name, classify_inner_name)
1208 (c_print_token): Update.
1209 * p-exp.y: Update rules.
1211 * f-exp.y: Update rules.
1213 * d-exp.y: Update rules.
1214 (lex_one_token, classify_name, classify_inner_name): Update.
1215 * parse.c (write_dollar_variable, copy_name): Return std::string.
1216 * parser-defs.h (copy_name): Change return type.
1217 * m2-exp.y: Update rules.
1219 * go-exp.y (lex_one_token): Update.
1221 (classify_unsafe_function, classify_packaged_name)
1222 (classify_name, yylex): Update.
1224 2019-04-19 Sergei Trofimovich <siarheit@google.com>
1226 * configure.ac: add --enable-source-highlight switch.
1227 * configure: Regenerate.
1228 * top.c (print_gdb_version): plumb --enable-source-highlight
1229 status to "show configuration".
1231 2019-04-19 Tom Tromey <tromey@adacore.com>
1233 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
1235 (empty_record, ada_template_to_fixed_record_type_1)
1236 (template_to_static_fixed_type)
1237 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
1238 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
1239 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
1242 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
1245 * source.c (print_source_lines_base): Advance "iter" when a
1246 control character is seen.
1248 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1250 * inferior.h (struct infcall_suspend_state_deleter):
1251 Catch exception in destructor to avoid crash.
1253 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1255 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
1256 close to the add_com "shell".
1258 2019-04-18 Tom Tromey <tromey@adacore.com>
1260 * process-stratum-target.h (class process_stratum_target)
1261 <stratum>: Add "final".
1263 2019-04-17 Tom Tromey <tromey@adacore.com>
1265 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
1266 against nullptr before use.
1268 2019-04-17 Alan Hayward <alan.hayward@arm.com>
1270 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
1272 2019-04-17 Jim Wilson <jimw@sifive.com>
1273 Andrew Burgess <andrew.burgess@embecosm.com>
1275 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
1276 code read might fail, assume 4-byte breakpoint in that case.
1278 2019-04-15 Leszek Swirski <leszeks@google.com>
1280 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
1281 rather than a hand-rolled POD check when checking for forced MEMORY
1284 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1286 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
1287 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
1289 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
1290 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
1291 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
1294 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1296 * aarch64-linux-nat.c
1297 (aarch64_linux_nat_target::thread_architecture): Add override.
1298 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
1301 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1303 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
1305 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
1307 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
1308 target types of size 96-bits, add some additional comments, and
1309 check that the builtin type we found was the correct size.
1311 2019-04-12 Eli Zaretskii <eliz@gnu.org>
1313 * utils.c (prompt_for_continue): Don't restore the styling at the
1314 end, as applied_style has the wrong value. This fixes styling in
1315 long lists of file names that are interrupted by the "Continue?"
1318 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
1320 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
1321 * c-lang.c (c_language_defn): Likewise.
1322 (cplus_language_defn): Likewise.
1323 (asm_language_defn): Likewise.
1324 (minimal_language_defn): Likewise.
1325 * d-lang.c (d_language_defn): Likewise.
1326 * f-lang.c (f_language_defn): Likewise.
1327 * go-lang.c (go_language_defn): Likewise.
1328 * language.c (unknown_language_defn): Likewise.
1329 (auto_language_defn): Likewise.
1330 * language.h (struct language_defn): Remove la_magic field.
1331 (LANG_MAGIC): Delete.
1332 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
1333 * objc-lang.c (objc_language_defn): Likewise.
1334 * opencl-lang.c (opencl_language_defn): Likewise.
1335 * p-lang.c (pascal_language_defn): Likewise.
1336 * rust-lang.c (rust_language_defn): Likewise.
1338 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1340 * riscv-tdep.c (riscv_type_align): New function.
1341 (riscv_type_alignment): Delete.
1342 (riscv_arg_location): Use 'type_align'.
1343 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
1345 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1347 * gdbtypes.c (type_align): A struct with no non-static fields also
1350 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1352 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
1354 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
1356 (riscv_struct_info::analyse): New implementation using new
1357 analyse_inner member function.
1358 (riscv_struct_info::field_offset): New member function.
1359 (riscv_struct_info::m_offsets): New member variable.
1360 (riscv_struct_info::analyse_inner): New private member function,
1361 takes the old implementation of riscv_struct_info::analyse but
1362 extended to track field offsets.
1363 (riscv_call_arg_struct): Update the struct folding special cases
1364 to handle cases where empty C++ structs, which are non-zero
1366 (riscv_arg_location): Initialise the length of each location, a
1367 non-zero length now indicates the location is in use.
1368 (riscv_push_dummy_call): Allow for the first location having a
1369 non-zero offset when setting up arguments.
1370 (riscv_return_value): Likewise, but for return values.
1372 2019-04-11 Tom Tromey <tromey@adacore.com>
1374 * utils.c (internal_vproblem): Make "msg" const.
1376 2019-04-11 Alan Hayward <alan.hayward@arm.com>
1378 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
1379 * trad-frame.c (trad_frame_reset_saved_regs): New function.
1380 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
1381 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
1383 2019-04-10 Kevin Buettner <kevinb@redhat.com>
1385 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
1387 (fill_gregset): Call amd64_linux_collect_native_gregset instead
1388 of amd64_collect_native_gregset.
1389 (amd64_linux_nat_target::store_registers): Likewise.
1391 2019-04-10 Tom Tromey <tom@tromey.com>
1393 * symtab.c (lookup_global_symbol_from_objfile)
1394 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
1395 * objfiles.h (class separate_debug_iterator): New.
1396 (class separate_debug_range): New.
1397 (struct objfile) <separate_debug_objfiles>: New method.
1398 (objfile_separate_debug_iterate): Don't declare.
1399 * objfiles.c (separate_debug_iterator::operator++): Rename from
1400 objfile_separate_debug_iterate.
1401 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
1403 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
1406 2019-04-10 Tom Tromey <tom@tromey.com>
1408 * symfile.c (reread_symbols): Remove old comment.
1409 * objfiles.c (free_all_objfiles): Fix a typo.
1411 2019-04-10 Tom Tromey <tom@tromey.com>
1413 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
1414 * minsyms.c (lookup_minimal_symbol): Use foreach.
1415 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
1416 (lookup_minimal_symbol_solib_trampoline): Likewise.
1417 * symfile.c (reread_symbols): Use foreach.
1419 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
1420 Tom Tromey <tromey@adacore.com>
1423 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
1424 (rust_lex_int_test): Change "value" to be LONGEST.
1425 (rust_lex_tests): Add test for long integer literal.
1427 2019-04-09 Tom Tromey <tromey@adacore.com>
1429 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
1431 (extended_remote_target::attach): Update.
1432 (remote_target::remote_notice_new_inferior): Update.
1433 (remote_target::add_current_inferior_and_thread): Update.
1434 * inferior.c (exit_inferior_1): Use "false".
1435 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
1437 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
1439 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
1440 the "start" command.
1442 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1444 * python/py-inferior.c (infpy_thread_from_thread_handle):
1445 Adjust comments to reflect renaming of thread_from_thread_handle
1446 to thread_from_handle. Adjust keywords. Fix type error message.
1447 (inferior_object_methods): Add thread_from_handle. Retain
1448 thread_from_thread_handle, but mark it as deprecated.
1450 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1452 * gdbthread.h (find_thread_by_handle): Revise declaration.
1453 * thread.c (find_thread_by_handle): Likewise. Adjust
1455 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
1456 support for buffer objects as handles.
1458 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1460 * python/py-infthread.c (thpy_thread_handle): New function.
1461 (thread_object_methods): Register thpy_thread_handle.
1463 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1465 * gdbthread.h (thread_to_thread_handle): Declare.
1466 * thread.c (gdbtypes.h): Include.
1467 (thread_to_thread_handle): New function.
1469 * target.h (struct target_ops): Add thread_info_to_thread_handle.
1470 (target_thread_info_to_thread_handle): Declare.
1471 * target.c (target_thread_info_to_thread_handle): New function.
1472 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
1473 * target-delegates.c: Regenerate.
1475 * linux-thread-db.c (class thread_db_target): Add method
1476 thread_info_to_thread_handle.
1477 (thread_db_target::thread_info_to_thread_handle): Define.
1478 * remote.c (class remote_target): Add new method
1479 thread_info_to_thread_handle.
1480 (remote_target::thread_info_to_thread_handle): Define.
1482 2019-04-08 Pedro Alves <palves@redhat.com>
1484 * common/common-exceptions.c (throw_exception): Don't create
1485 named object to throw; throw directly.
1486 (throw_it): Likewise. Don't initialize gdb_exception::message
1487 here, with new; pass FMT and AP to the ctor instead.
1488 * common/common-exceptions.h: Include <string>.
1489 (gdb_exception::gdb_exception(enum return_reason, enum errors,
1490 const char *, va_list)): New ctor. Use std::make_shared.
1491 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
1493 (gdb_exception_error::gdb_exception_error(enum errors, const char
1495 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
1497 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
1499 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
1500 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
1503 2019-04-08 Tom Tromey <tom@tromey.com>
1505 * valops.c (value_rtti_indirect_type): Replace throw_exception
1507 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
1509 * thread.c (thr_try_catch_cmd): Replace throw_exception with
1511 * target.c (target_translate_tls_address): Replace throw_exception
1513 * stack.c (frame_apply_command_count): Replace throw_exception
1515 * solib-spu.c (append_ocl_sos): Replace throw_exception with
1517 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
1519 * rs6000-tdep.c (rs6000_frame_cache)
1520 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
1521 * remote.c: Replace throw_exception with throw.
1522 * record-full.c (record_full_message, record_full_wait_1)
1523 (record_full_restore): Replace throw_exception with throw.
1525 (get_thread_current_frame_id, record_btrace_start_replaying)
1526 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
1527 (cmd_record_btrace_start): Replace throw_exception with throw.
1528 * parse.c (parse_exp_in_context_1): Replace throw_exception with
1530 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
1531 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
1533 (find_linespec_symbols): Replace throw_exception with throw.
1534 * infrun.c (displaced_step_prepare, resume): Replace
1535 throw_exception with throw.
1536 * infcmd.c (post_create_inferior): Replace throw_exception with
1538 * inf-loop.c (inferior_event_handler): Replace throw_exception
1540 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
1541 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
1542 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
1543 (get_prev_frame_always, get_frame_pc_if_available)
1544 (get_frame_address_in_block_if_available, get_frame_language):
1545 Replace throw_exception with throw.
1546 * frame-unwind.c (frame_unwind_try_unwinder): Replace
1547 throw_exception with throw.
1548 * eval.c (fetch_subexp_value, evaluate_var_value)
1549 (evaluate_funcall, evaluate_subexp_standard): Replace
1550 throw_exception with throw.
1551 * dwarf2loc.c (call_site_find_chain)
1552 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
1553 Replace throw_exception with throw.
1554 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
1556 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
1558 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
1559 * completer.c (complete_line_internal): Replace throw_exception
1561 * compile/compile-object-run.c (compile_object_run): Replace
1562 throw_exception with throw.
1563 * cli/cli-script.c (process_next_line): Replace throw_exception
1565 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
1566 (btrace_enable, btrace_maint_update_pt_packets): Replace
1567 throw_exception with throw.
1568 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
1569 throw_exception with throw.
1570 * break-catch-throw.c (re_set_exception_catchpoint): Replace
1571 throw_exception with throw.
1572 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
1573 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
1574 * aarch64-tdep.c (aarch64_make_prologue_cache)
1575 (aarch64_make_stub_cache): Replace throw_exception with throw.
1577 2019-04-08 Tom Tromey <tom@tromey.com>
1579 * common/common-exceptions.c (throw_exception): Rename from
1580 throw_exception_cxx. Remove old copy. Make argument const.
1581 (throw_it): Create and throw exception objects directly.
1582 * common/common-exceptions.h (throw_exception): Make argument
1584 (struct gdb_exception_error): Add constructor.
1585 (struct gdb_exception_quit): Add constructor.
1587 2019-04-08 Tom Tromey <tom@tromey.com>
1589 * common/common-exceptions.h (exception_rethrow): Don't declare.
1590 (TRY_SJLJ): Update comment.
1591 (TRY, CATCH, END_CATCH): Remove.
1592 * common/common-exceptions.c (exception_rethrow): Remove.
1594 2019-04-08 Tom Tromey <tom@tromey.com>
1596 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
1598 (gdb_exception_error): Rename from
1599 gdb_exception_RETURN_MASK_ERROR.
1600 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
1601 (gdb_quit_bad_alloc): Update.
1602 * aarch64-tdep.c: Update.
1603 * ada-lang.c: Update.
1604 * ada-typeprint.c: Update.
1605 * ada-valprint.c: Update.
1606 * amd64-tdep.c: Update.
1607 * arch-utils.c: Update.
1608 * break-catch-throw.c: Update.
1609 * breakpoint.c: Update.
1611 * c-varobj.c: Update.
1612 * cli/cli-cmds.c: Update.
1613 * cli/cli-interp.c: Update.
1614 * cli/cli-script.c: Update.
1615 * common/common-exceptions.c: Update.
1616 * common/new-op.c: Update.
1617 * common/selftest.c: Update.
1618 * compile/compile-c-symbols.c: Update.
1619 * compile/compile-cplus-symbols.c: Update.
1620 * compile/compile-object-load.c: Update.
1621 * compile/compile-object-run.c: Update.
1622 * completer.c: Update.
1623 * corelow.c: Update.
1625 * cp-support.c: Update.
1626 * cp-valprint.c: Update.
1627 * darwin-nat.c: Update.
1628 * disasm-selftests.c: Update.
1629 * dtrace-probe.c: Update.
1630 * dwarf-index-cache.c: Update.
1631 * dwarf-index-write.c: Update.
1632 * dwarf2-frame-tailcall.c: Update.
1633 * dwarf2-frame.c: Update.
1634 * dwarf2loc.c: Update.
1635 * dwarf2read.c: Update.
1637 * event-loop.c: Update.
1638 * event-top.c: Update.
1640 * f-valprint.c: Update.
1641 * fbsd-tdep.c: Update.
1642 * frame-unwind.c: Update.
1644 * gdbtypes.c: Update.
1645 * gnu-v3-abi.c: Update.
1646 * guile/guile-internal.h: Update.
1647 * guile/scm-block.c: Update.
1648 * guile/scm-breakpoint.c: Update.
1649 * guile/scm-cmd.c: Update.
1650 * guile/scm-disasm.c: Update.
1651 * guile/scm-frame.c: Update.
1652 * guile/scm-lazy-string.c: Update.
1653 * guile/scm-math.c: Update.
1654 * guile/scm-param.c: Update.
1655 * guile/scm-ports.c: Update.
1656 * guile/scm-pretty-print.c: Update.
1657 * guile/scm-symbol.c: Update.
1658 * guile/scm-symtab.c: Update.
1659 * guile/scm-type.c: Update.
1660 * guile/scm-value.c: Update.
1661 * i386-linux-tdep.c: Update.
1662 * i386-tdep.c: Update.
1663 * inf-loop.c: Update.
1664 * infcall.c: Update.
1668 * language.c: Update.
1669 * linespec.c: Update.
1670 * linux-fork.c: Update.
1671 * linux-nat.c: Update.
1672 * linux-tdep.c: Update.
1673 * linux-thread-db.c: Update.
1675 * mi/mi-cmd-break.c: Update.
1676 * mi/mi-cmd-stack.c: Update.
1677 * mi/mi-interp.c: Update.
1678 * mi/mi-main.c: Update.
1679 * objc-lang.c: Update.
1680 * p-valprint.c: Update.
1682 * ppc-linux-tdep.c: Update.
1683 * printcmd.c: Update.
1684 * python/py-arch.c: Update.
1685 * python/py-breakpoint.c: Update.
1686 * python/py-cmd.c: Update.
1687 * python/py-finishbreakpoint.c: Update.
1688 * python/py-frame.c: Update.
1689 * python/py-framefilter.c: Update.
1690 * python/py-gdb-readline.c: Update.
1691 * python/py-inferior.c: Update.
1692 * python/py-infthread.c: Update.
1693 * python/py-lazy-string.c: Update.
1694 * python/py-linetable.c: Update.
1695 * python/py-objfile.c: Update.
1696 * python/py-param.c: Update.
1697 * python/py-prettyprint.c: Update.
1698 * python/py-progspace.c: Update.
1699 * python/py-record-btrace.c: Update.
1700 * python/py-record.c: Update.
1701 * python/py-symbol.c: Update.
1702 * python/py-type.c: Update.
1703 * python/py-unwind.c: Update.
1704 * python/py-utils.c: Update.
1705 * python/py-value.c: Update.
1706 * python/python.c: Update.
1707 * record-btrace.c: Update.
1708 * record-full.c: Update.
1709 * remote-fileio.c: Update.
1711 * riscv-tdep.c: Update.
1712 * rs6000-aix-tdep.c: Update.
1713 * rs6000-tdep.c: Update.
1714 * rust-exp.y: Update.
1715 * rust-lang.c: Update.
1716 * s390-tdep.c: Update.
1717 * selftest-arch.c: Update.
1718 * solib-dsbt.c: Update.
1719 * solib-frv.c: Update.
1720 * solib-spu.c: Update.
1721 * solib-svr4.c: Update.
1723 * sparc64-linux-tdep.c: Update.
1725 * symfile-mem.c: Update.
1726 * symmisc.c: Update.
1730 * tracefile-tfile.c: Update.
1731 * tui/tui.c: Update.
1732 * typeprint.c: Update.
1733 * unittests/cli-utils-selftests.c: Update.
1734 * unittests/parse-connection-spec-selftests.c: Update.
1736 * valprint.c: Update.
1739 * windows-nat.c: Update.
1740 * x86-linux-nat.c: Update.
1741 * xml-support.c: Update.
1743 2019-04-08 Tom Tromey <tom@tromey.com>
1745 * xml-support.c: Use C++ exception handling.
1746 * x86-linux-nat.c: Use C++ exception handling.
1747 * windows-nat.c: Use C++ exception handling.
1748 * varobj.c: Use C++ exception handling.
1749 * value.c: Use C++ exception handling.
1750 * valprint.c: Use C++ exception handling.
1751 * valops.c: Use C++ exception handling.
1752 * unittests/parse-connection-spec-selftests.c: Use C++ exception
1754 * unittests/cli-utils-selftests.c: Use C++ exception handling.
1755 * typeprint.c: Use C++ exception handling.
1756 * tui/tui.c: Use C++ exception handling.
1757 * tracefile-tfile.c: Use C++ exception handling.
1758 * top.c: Use C++ exception handling.
1759 * thread.c: Use C++ exception handling.
1760 * target.c: Use C++ exception handling.
1761 * symmisc.c: Use C++ exception handling.
1762 * symfile-mem.c: Use C++ exception handling.
1763 * stack.c: Use C++ exception handling.
1764 * sparc64-linux-tdep.c: Use C++ exception handling.
1765 * solib.c: Use C++ exception handling.
1766 * solib-svr4.c: Use C++ exception handling.
1767 * solib-spu.c: Use C++ exception handling.
1768 * solib-frv.c: Use C++ exception handling.
1769 * solib-dsbt.c: Use C++ exception handling.
1770 * selftest-arch.c: Use C++ exception handling.
1771 * s390-tdep.c: Use C++ exception handling.
1772 * rust-lang.c: Use C++ exception handling.
1773 * rust-exp.y: Use C++ exception handling.
1774 * rs6000-tdep.c: Use C++ exception handling.
1775 * rs6000-aix-tdep.c: Use C++ exception handling.
1776 * riscv-tdep.c: Use C++ exception handling.
1777 * remote.c: Use C++ exception handling.
1778 * remote-fileio.c: Use C++ exception handling.
1779 * record-full.c: Use C++ exception handling.
1780 * record-btrace.c: Use C++ exception handling.
1781 * python/python.c: Use C++ exception handling.
1782 * python/py-value.c: Use C++ exception handling.
1783 * python/py-utils.c: Use C++ exception handling.
1784 * python/py-unwind.c: Use C++ exception handling.
1785 * python/py-type.c: Use C++ exception handling.
1786 * python/py-symbol.c: Use C++ exception handling.
1787 * python/py-record.c: Use C++ exception handling.
1788 * python/py-record-btrace.c: Use C++ exception handling.
1789 * python/py-progspace.c: Use C++ exception handling.
1790 * python/py-prettyprint.c: Use C++ exception handling.
1791 * python/py-param.c: Use C++ exception handling.
1792 * python/py-objfile.c: Use C++ exception handling.
1793 * python/py-linetable.c: Use C++ exception handling.
1794 * python/py-lazy-string.c: Use C++ exception handling.
1795 * python/py-infthread.c: Use C++ exception handling.
1796 * python/py-inferior.c: Use C++ exception handling.
1797 * python/py-gdb-readline.c: Use C++ exception handling.
1798 * python/py-framefilter.c: Use C++ exception handling.
1799 * python/py-frame.c: Use C++ exception handling.
1800 * python/py-finishbreakpoint.c: Use C++ exception handling.
1801 * python/py-cmd.c: Use C++ exception handling.
1802 * python/py-breakpoint.c: Use C++ exception handling.
1803 * python/py-arch.c: Use C++ exception handling.
1804 * printcmd.c: Use C++ exception handling.
1805 * ppc-linux-tdep.c: Use C++ exception handling.
1806 * parse.c: Use C++ exception handling.
1807 * p-valprint.c: Use C++ exception handling.
1808 * objc-lang.c: Use C++ exception handling.
1809 * mi/mi-main.c: Use C++ exception handling.
1810 * mi/mi-interp.c: Use C++ exception handling.
1811 * mi/mi-cmd-stack.c: Use C++ exception handling.
1812 * mi/mi-cmd-break.c: Use C++ exception handling.
1813 * main.c: Use C++ exception handling.
1814 * linux-thread-db.c: Use C++ exception handling.
1815 * linux-tdep.c: Use C++ exception handling.
1816 * linux-nat.c: Use C++ exception handling.
1817 * linux-fork.c: Use C++ exception handling.
1818 * linespec.c: Use C++ exception handling.
1819 * language.c: Use C++ exception handling.
1820 * jit.c: Use C++ exception handling.
1821 * infrun.c: Use C++ exception handling.
1822 * infcmd.c: Use C++ exception handling.
1823 * infcall.c: Use C++ exception handling.
1824 * inf-loop.c: Use C++ exception handling.
1825 * i386-tdep.c: Use C++ exception handling.
1826 * i386-linux-tdep.c: Use C++ exception handling.
1827 * guile/scm-value.c: Use C++ exception handling.
1828 * guile/scm-type.c: Use C++ exception handling.
1829 * guile/scm-symtab.c: Use C++ exception handling.
1830 * guile/scm-symbol.c: Use C++ exception handling.
1831 * guile/scm-pretty-print.c: Use C++ exception handling.
1832 * guile/scm-ports.c: Use C++ exception handling.
1833 * guile/scm-param.c: Use C++ exception handling.
1834 * guile/scm-math.c: Use C++ exception handling.
1835 * guile/scm-lazy-string.c: Use C++ exception handling.
1836 * guile/scm-frame.c: Use C++ exception handling.
1837 * guile/scm-disasm.c: Use C++ exception handling.
1838 * guile/scm-cmd.c: Use C++ exception handling.
1839 * guile/scm-breakpoint.c: Use C++ exception handling.
1840 * guile/scm-block.c: Use C++ exception handling.
1841 * guile/guile-internal.h: Use C++ exception handling.
1842 * gnu-v3-abi.c: Use C++ exception handling.
1843 * gdbtypes.c: Use C++ exception handling.
1844 * frame.c: Use C++ exception handling.
1845 * frame-unwind.c: Use C++ exception handling.
1846 * fbsd-tdep.c: Use C++ exception handling.
1847 * f-valprint.c: Use C++ exception handling.
1848 * exec.c: Use C++ exception handling.
1849 * event-top.c: Use C++ exception handling.
1850 * event-loop.c: Use C++ exception handling.
1851 * eval.c: Use C++ exception handling.
1852 * dwarf2read.c: Use C++ exception handling.
1853 * dwarf2loc.c: Use C++ exception handling.
1854 * dwarf2-frame.c: Use C++ exception handling.
1855 * dwarf2-frame-tailcall.c: Use C++ exception handling.
1856 * dwarf-index-write.c: Use C++ exception handling.
1857 * dwarf-index-cache.c: Use C++ exception handling.
1858 * dtrace-probe.c: Use C++ exception handling.
1859 * disasm-selftests.c: Use C++ exception handling.
1860 * darwin-nat.c: Use C++ exception handling.
1861 * cp-valprint.c: Use C++ exception handling.
1862 * cp-support.c: Use C++ exception handling.
1863 * cp-abi.c: Use C++ exception handling.
1864 * corelow.c: Use C++ exception handling.
1865 * completer.c: Use C++ exception handling.
1866 * compile/compile-object-run.c: Use C++ exception handling.
1867 * compile/compile-object-load.c: Use C++ exception handling.
1868 * compile/compile-cplus-symbols.c: Use C++ exception handling.
1869 * compile/compile-c-symbols.c: Use C++ exception handling.
1870 * common/selftest.c: Use C++ exception handling.
1871 * common/new-op.c: Use C++ exception handling.
1872 * cli/cli-script.c: Use C++ exception handling.
1873 * cli/cli-interp.c: Use C++ exception handling.
1874 * cli/cli-cmds.c: Use C++ exception handling.
1875 * c-varobj.c: Use C++ exception handling.
1876 * btrace.c: Use C++ exception handling.
1877 * breakpoint.c: Use C++ exception handling.
1878 * break-catch-throw.c: Use C++ exception handling.
1879 * arch-utils.c: Use C++ exception handling.
1880 * amd64-tdep.c: Use C++ exception handling.
1881 * ada-valprint.c: Use C++ exception handling.
1882 * ada-typeprint.c: Use C++ exception handling.
1883 * ada-lang.c: Use C++ exception handling.
1884 * aarch64-tdep.c: Use C++ exception handling.
1886 2019-04-08 Tom Tromey <tom@tromey.com>
1888 * xml-support.c (gdb_xml_parser::parse): Update.
1889 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
1890 * value.c (show_convenience): Update.
1891 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
1892 (test_parse_flags_qcs): Update.
1893 * thread.c (thr_try_catch_cmd): Update.
1894 * target.c (target_translate_tls_address): Update.
1895 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1896 (info_frame_command_core, frame_apply_command_count): Update.
1897 * rust-exp.y (rust_lex_exception_test): Update.
1898 * riscv-tdep.c (riscv_print_one_register_info): Update.
1899 * remote.c (remote_target::enable_btrace): Update.
1900 * record-btrace.c (record_btrace_enable_warn): Update.
1901 * python/py-utils.c (gdbpy_convert_exception): Update.
1902 * printcmd.c (do_one_display, print_variable_and_value): Update.
1903 * mi/mi-main.c (mi_print_exception): Update.
1904 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
1905 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1906 * linux-nat.c (linux_nat_target::attach): Update.
1907 * linux-fork.c (class scoped_switch_fork_info): Update.
1908 * infrun.c (displaced_step_prepare): Update.
1909 * infcall.c (call_function_by_hand_dummy): Update.
1910 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
1911 * gnu-v3-abi.c (print_one_vtable): Update.
1912 * frame.c (get_prev_frame_always): Update.
1913 * f-valprint.c (info_common_command_for_block): Update.
1914 * exec.c (try_open_exec_file): Update.
1915 * exceptions.c (print_exception, exception_print)
1916 (exception_fprintf, exception_print_same): Update.
1917 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
1918 * dwarf-index-cache.c (index_cache::store)
1919 (index_cache::lookup_gdb_index): Update.
1920 * darwin-nat.c (maybe_cache_shell): Update.
1921 * cp-valprint.c (cp_print_value_fields): Update.
1922 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
1923 (gcc_cplus_symbol_address): Update.
1924 * compile/compile-c-symbols.c (gcc_convert_symbol)
1925 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
1926 * common/selftest.c: Update.
1927 * common/common-exceptions.h (struct gdb_exception) <message>: Now
1929 (exception_try_scope_entry, exception_try_scope_exit): Don't
1931 (struct exception_try_scope): Remove.
1932 (TRY): Don't use exception_try_scope.
1933 (struct gdb_exception): Add constructor, operator=.
1935 (struct gdb_exception_RETURN_MASK_ALL)
1936 (struct gdb_exception_RETURN_MASK_ERROR)
1937 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
1938 (struct gdb_quit_bad_alloc): Update.
1939 * common/common-exceptions.c (exception_none): Change
1941 (struct catcher) <state, exception>: Initialize inline.
1942 <prev>: Remove member.
1943 (current_catcher): Remove.
1944 (catchers): New global.
1945 (exceptions_state_mc_init): Simplify.
1946 (catcher_pop): Remove.
1947 (exceptions_state_mc, exceptions_state_mc_catch): Update.
1948 (try_scope_depth, exception_try_scope_entry)
1949 (exception_try_scope_exit): Remove.
1950 (throw_exception_sjlj): Update.
1951 (exception_messages, exception_messages_size): Remove.
1952 (throw_it): Simplify.
1953 (gdb_exception_sliced_copy): Remove.
1954 (throw_exception_cxx): Update.
1955 * cli/cli-script.c (script_from_file): Update.
1956 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
1958 * ada-valprint.c (ada_val_print): Update.
1959 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
1960 (create_excep_cond_exprs): Update.
1962 2019-04-08 Tom Tromey <tom@tromey.com>
1964 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
1965 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
1966 (TRY, CATCH, END_CATCH): Remove some definitions.
1967 * common/common-exceptions.c: Don't use GDB_XCPT.
1968 (catcher_list_size): Remove.
1969 (throw_exception, throw_it): Simplify.
1971 2019-04-05 Tom Tromey <tom@tromey.com>
1973 Revert the header-sorting patch.
1974 * ft32-tdep.c: Revert.
1975 * frv-tdep.c: Revert.
1976 * frv-linux-tdep.c: Revert.
1978 * frame-unwind.c: Revert.
1979 * frame-base.c: Revert.
1980 * fork-child.c: Revert.
1981 * findvar.c: Revert.
1982 * findcmd.c: Revert.
1983 * filesystem.c: Revert.
1984 * filename-seen-cache.h: Revert.
1985 * filename-seen-cache.c: Revert.
1986 * fbsd-tdep.c: Revert.
1987 * fbsd-nat.h: Revert.
1988 * fbsd-nat.c: Revert.
1989 * f-valprint.c: Revert.
1990 * f-typeprint.c: Revert.
1992 * extension.h: Revert.
1993 * extension.c: Revert.
1994 * extension-priv.h: Revert.
1995 * expprint.c: Revert.
1998 * exceptions.c: Revert.
1999 * event-top.c: Revert.
2000 * event-loop.c: Revert.
2002 * elfread.c: Revert.
2003 * dwarf2read.h: Revert.
2004 * dwarf2read.c: Revert.
2005 * dwarf2loc.c: Revert.
2006 * dwarf2expr.h: Revert.
2007 * dwarf2expr.c: Revert.
2008 * dwarf2-frame.c: Revert.
2009 * dwarf2-frame-tailcall.c: Revert.
2010 * dwarf-index-write.h: Revert.
2011 * dwarf-index-write.c: Revert.
2012 * dwarf-index-common.c: Revert.
2013 * dwarf-index-cache.h: Revert.
2014 * dwarf-index-cache.c: Revert.
2015 * dummy-frame.c: Revert.
2016 * dtrace-probe.c: Revert.
2019 * disasm-selftests.c: Revert.
2020 * dictionary.c: Revert.
2021 * dicos-tdep.c: Revert.
2022 * demangle.c: Revert.
2025 * darwin-nat.h: Revert.
2026 * darwin-nat.c: Revert.
2027 * darwin-nat-info.c: Revert.
2028 * d-valprint.c: Revert.
2029 * d-namespace.c: Revert.
2032 * csky-tdep.c: Revert.
2033 * csky-linux-tdep.c: Revert.
2034 * cris-tdep.c: Revert.
2035 * cris-linux-tdep.c: Revert.
2036 * cp-valprint.c: Revert.
2037 * cp-support.c: Revert.
2038 * cp-namespace.c: Revert.
2040 * corelow.c: Revert.
2041 * corefile.c: Revert.
2042 * continuations.c: Revert.
2043 * completer.h: Revert.
2044 * completer.c: Revert.
2045 * complaints.c: Revert.
2046 * coffread.c: Revert.
2047 * coff-pe-read.c: Revert.
2048 * cli-out.h: Revert.
2049 * cli-out.c: Revert.
2050 * charset.c: Revert.
2051 * c-varobj.c: Revert.
2052 * c-valprint.c: Revert.
2053 * c-typeprint.c: Revert.
2055 * buildsym.c: Revert.
2056 * buildsym-legacy.c: Revert.
2057 * build-id.h: Revert.
2058 * build-id.c: Revert.
2060 * bsd-uthread.c: Revert.
2061 * breakpoint.h: Revert.
2062 * breakpoint.c: Revert.
2063 * break-catch-throw.c: Revert.
2064 * break-catch-syscall.c: Revert.
2065 * break-catch-sig.c: Revert.
2066 * blockframe.c: Revert.
2068 * bfin-tdep.c: Revert.
2069 * bfin-linux-tdep.c: Revert.
2070 * bfd-target.c: Revert.
2072 * ax-general.c: Revert.
2075 * avr-tdep.c: Revert.
2077 * auto-load.c: Revert.
2078 * arm-wince-tdep.c: Revert.
2079 * arm-tdep.c: Revert.
2080 * arm-symbian-tdep.c: Revert.
2081 * arm-pikeos-tdep.c: Revert.
2082 * arm-obsd-tdep.c: Revert.
2083 * arm-nbsd-tdep.c: Revert.
2084 * arm-nbsd-nat.c: Revert.
2085 * arm-linux-tdep.c: Revert.
2086 * arm-linux-nat.c: Revert.
2087 * arm-fbsd-tdep.c: Revert.
2088 * arm-fbsd-nat.c: Revert.
2089 * arm-bsd-tdep.c: Revert.
2090 * arch-utils.c: Revert.
2091 * arc-tdep.c: Revert.
2092 * arc-newlib-tdep.c: Revert.
2093 * annotate.h: Revert.
2094 * annotate.c: Revert.
2095 * amd64-windows-tdep.c: Revert.
2096 * amd64-windows-nat.c: Revert.
2097 * amd64-tdep.c: Revert.
2098 * amd64-sol2-tdep.c: Revert.
2099 * amd64-obsd-tdep.c: Revert.
2100 * amd64-obsd-nat.c: Revert.
2101 * amd64-nbsd-tdep.c: Revert.
2102 * amd64-nbsd-nat.c: Revert.
2103 * amd64-nat.c: Revert.
2104 * amd64-linux-tdep.c: Revert.
2105 * amd64-linux-nat.c: Revert.
2106 * amd64-fbsd-tdep.c: Revert.
2107 * amd64-fbsd-nat.c: Revert.
2108 * amd64-dicos-tdep.c: Revert.
2109 * amd64-darwin-tdep.c: Revert.
2110 * amd64-bsd-nat.c: Revert.
2111 * alpha-tdep.c: Revert.
2112 * alpha-obsd-tdep.c: Revert.
2113 * alpha-nbsd-tdep.c: Revert.
2114 * alpha-mdebug-tdep.c: Revert.
2115 * alpha-linux-tdep.c: Revert.
2116 * alpha-linux-nat.c: Revert.
2117 * alpha-bsd-tdep.c: Revert.
2118 * alpha-bsd-nat.c: Revert.
2119 * aix-thread.c: Revert.
2121 * addrmap.c: Revert.
2122 * ada-varobj.c: Revert.
2123 * ada-valprint.c: Revert.
2124 * ada-typeprint.c: Revert.
2125 * ada-tasks.c: Revert.
2126 * ada-lang.c: Revert.
2127 * aarch64-tdep.c: Revert.
2128 * aarch64-ravenscar-thread.c: Revert.
2129 * aarch64-newlib-tdep.c: Revert.
2130 * aarch64-linux-tdep.c: Revert.
2131 * aarch64-linux-nat.c: Revert.
2132 * aarch64-fbsd-tdep.c: Revert.
2133 * aarch64-fbsd-nat.c: Revert.
2134 * aarch32-linux-nat.c: Revert.
2136 2019-04-05 Tom Tromey <tom@tromey.com>
2138 * ft32-tdep.c: Sort headers.
2139 * frv-tdep.c: Sort headers.
2140 * frv-linux-tdep.c: Sort headers.
2141 * frame.c: Sort headers.
2142 * frame-unwind.c: Sort headers.
2143 * frame-base.c: Sort headers.
2144 * fork-child.c: Sort headers.
2145 * findvar.c: Sort headers.
2146 * findcmd.c: Sort headers.
2147 * filesystem.c: Sort headers.
2148 * filename-seen-cache.h: Sort headers.
2149 * filename-seen-cache.c: Sort headers.
2150 * fbsd-tdep.c: Sort headers.
2151 * fbsd-nat.h: Sort headers.
2152 * fbsd-nat.c: Sort headers.
2153 * f-valprint.c: Sort headers.
2154 * f-typeprint.c: Sort headers.
2155 * f-lang.c: Sort headers.
2156 * extension.h: Sort headers.
2157 * extension.c: Sort headers.
2158 * extension-priv.h: Sort headers.
2159 * expprint.c: Sort headers.
2160 * exec.h: Sort headers.
2161 * exec.c: Sort headers.
2162 * exceptions.c: Sort headers.
2163 * event-top.c: Sort headers.
2164 * event-loop.c: Sort headers.
2165 * eval.c: Sort headers.
2166 * elfread.c: Sort headers.
2167 * dwarf2read.h: Sort headers.
2168 * dwarf2read.c: Sort headers.
2169 * dwarf2loc.c: Sort headers.
2170 * dwarf2expr.h: Sort headers.
2171 * dwarf2expr.c: Sort headers.
2172 * dwarf2-frame.c: Sort headers.
2173 * dwarf2-frame-tailcall.c: Sort headers.
2174 * dwarf-index-write.h: Sort headers.
2175 * dwarf-index-write.c: Sort headers.
2176 * dwarf-index-common.c: Sort headers.
2177 * dwarf-index-cache.h: Sort headers.
2178 * dwarf-index-cache.c: Sort headers.
2179 * dummy-frame.c: Sort headers.
2180 * dtrace-probe.c: Sort headers.
2181 * disasm.h: Sort headers.
2182 * disasm.c: Sort headers.
2183 * disasm-selftests.c: Sort headers.
2184 * dictionary.c: Sort headers.
2185 * dicos-tdep.c: Sort headers.
2186 * demangle.c: Sort headers.
2187 * dcache.h: Sort headers.
2188 * dcache.c: Sort headers.
2189 * darwin-nat.h: Sort headers.
2190 * darwin-nat.c: Sort headers.
2191 * darwin-nat-info.c: Sort headers.
2192 * d-valprint.c: Sort headers.
2193 * d-namespace.c: Sort headers.
2194 * d-lang.c: Sort headers.
2195 * ctf.c: Sort headers.
2196 * csky-tdep.c: Sort headers.
2197 * csky-linux-tdep.c: Sort headers.
2198 * cris-tdep.c: Sort headers.
2199 * cris-linux-tdep.c: Sort headers.
2200 * cp-valprint.c: Sort headers.
2201 * cp-support.c: Sort headers.
2202 * cp-namespace.c: Sort headers.
2203 * cp-abi.c: Sort headers.
2204 * corelow.c: Sort headers.
2205 * corefile.c: Sort headers.
2206 * continuations.c: Sort headers.
2207 * completer.h: Sort headers.
2208 * completer.c: Sort headers.
2209 * complaints.c: Sort headers.
2210 * coffread.c: Sort headers.
2211 * coff-pe-read.c: Sort headers.
2212 * cli-out.h: Sort headers.
2213 * cli-out.c: Sort headers.
2214 * charset.c: Sort headers.
2215 * c-varobj.c: Sort headers.
2216 * c-valprint.c: Sort headers.
2217 * c-typeprint.c: Sort headers.
2218 * c-lang.c: Sort headers.
2219 * buildsym.c: Sort headers.
2220 * buildsym-legacy.c: Sort headers.
2221 * build-id.h: Sort headers.
2222 * build-id.c: Sort headers.
2223 * btrace.c: Sort headers.
2224 * bsd-uthread.c: Sort headers.
2225 * breakpoint.h: Sort headers.
2226 * breakpoint.c: Sort headers.
2227 * break-catch-throw.c: Sort headers.
2228 * break-catch-syscall.c: Sort headers.
2229 * break-catch-sig.c: Sort headers.
2230 * blockframe.c: Sort headers.
2231 * block.c: Sort headers.
2232 * bfin-tdep.c: Sort headers.
2233 * bfin-linux-tdep.c: Sort headers.
2234 * bfd-target.c: Sort headers.
2235 * bcache.c: Sort headers.
2236 * ax-general.c: Sort headers.
2237 * ax-gdb.h: Sort headers.
2238 * ax-gdb.c: Sort headers.
2239 * avr-tdep.c: Sort headers.
2240 * auxv.c: Sort headers.
2241 * auto-load.c: Sort headers.
2242 * arm-wince-tdep.c: Sort headers.
2243 * arm-tdep.c: Sort headers.
2244 * arm-symbian-tdep.c: Sort headers.
2245 * arm-pikeos-tdep.c: Sort headers.
2246 * arm-obsd-tdep.c: Sort headers.
2247 * arm-nbsd-tdep.c: Sort headers.
2248 * arm-nbsd-nat.c: Sort headers.
2249 * arm-linux-tdep.c: Sort headers.
2250 * arm-linux-nat.c: Sort headers.
2251 * arm-fbsd-tdep.c: Sort headers.
2252 * arm-fbsd-nat.c: Sort headers.
2253 * arm-bsd-tdep.c: Sort headers.
2254 * arch-utils.c: Sort headers.
2255 * arc-tdep.c: Sort headers.
2256 * arc-newlib-tdep.c: Sort headers.
2257 * annotate.h: Sort headers.
2258 * annotate.c: Sort headers.
2259 * amd64-windows-tdep.c: Sort headers.
2260 * amd64-windows-nat.c: Sort headers.
2261 * amd64-tdep.c: Sort headers.
2262 * amd64-sol2-tdep.c: Sort headers.
2263 * amd64-obsd-tdep.c: Sort headers.
2264 * amd64-obsd-nat.c: Sort headers.
2265 * amd64-nbsd-tdep.c: Sort headers.
2266 * amd64-nbsd-nat.c: Sort headers.
2267 * amd64-nat.c: Sort headers.
2268 * amd64-linux-tdep.c: Sort headers.
2269 * amd64-linux-nat.c: Sort headers.
2270 * amd64-fbsd-tdep.c: Sort headers.
2271 * amd64-fbsd-nat.c: Sort headers.
2272 * amd64-dicos-tdep.c: Sort headers.
2273 * amd64-darwin-tdep.c: Sort headers.
2274 * amd64-bsd-nat.c: Sort headers.
2275 * alpha-tdep.c: Sort headers.
2276 * alpha-obsd-tdep.c: Sort headers.
2277 * alpha-nbsd-tdep.c: Sort headers.
2278 * alpha-mdebug-tdep.c: Sort headers.
2279 * alpha-linux-tdep.c: Sort headers.
2280 * alpha-linux-nat.c: Sort headers.
2281 * alpha-bsd-tdep.c: Sort headers.
2282 * alpha-bsd-nat.c: Sort headers.
2283 * aix-thread.c: Sort headers.
2284 * agent.c: Sort headers.
2285 * addrmap.c: Sort headers.
2286 * ada-varobj.c: Sort headers.
2287 * ada-valprint.c: Sort headers.
2288 * ada-typeprint.c: Sort headers.
2289 * ada-tasks.c: Sort headers.
2290 * ada-lang.c: Sort headers.
2291 * aarch64-tdep.c: Sort headers.
2292 * aarch64-ravenscar-thread.c: Sort headers.
2293 * aarch64-newlib-tdep.c: Sort headers.
2294 * aarch64-linux-tdep.c: Sort headers.
2295 * aarch64-linux-nat.c: Sort headers.
2296 * aarch64-fbsd-tdep.c: Sort headers.
2297 * aarch64-fbsd-nat.c: Sort headers.
2298 * aarch32-linux-nat.c: Sort headers.
2300 2019-04-04 Tom Tromey <tom@tromey.com>
2302 * varobj.c (varobj_create): Update.
2303 * rust-exp.y (struct rust_parser) <update_innermost_block,
2304 lookup_symbol>: New methods.
2305 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
2307 (rust_parser::rust_lookup_type)
2308 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2309 * printcmd.c (display_command, do_one_display): Update.
2310 * parser-defs.h (struct parser_state) <parser_state>: Add
2311 "tracker" parameter.
2312 (block_tracker): New member.
2313 (class innermost_block_tracker) <innermost_block_tracker>: Add
2315 <reset>: Remove method.
2316 (innermost_block): Don't declare.
2317 (null_post_parser): Update.
2318 * parse.c (innermost_block): Remove global.
2319 (write_dollar_variable): Update.
2320 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
2321 Remove "tracker_types" parameter.
2322 (parse_expression): Add "tracker" parameter.
2323 (parse_expression_for_completion): Update.
2324 (null_post_parser): Add "tracker" parameter.
2325 * p-exp.y: Update rules.
2326 * m2-exp.y: Update rules.
2327 * language.h (struct language_defn) <la_post_parser>: Add
2328 "tracker" parameter.
2329 * go-exp.y: Update rules.
2330 * f-exp.y: Update rules.
2331 * expression.h (parse_expression, parse_exp_1): Add "tracker"
2333 * d-exp.y: Update rules.
2334 * c-exp.y: Update rules.
2335 * breakpoint.c (set_breakpoint_condition): Create an
2336 innermost_block_tracker.
2337 (watch_command_1): Likewise.
2338 * ada-lang.c (resolve): Add "tracker" parameter.
2339 (resolve_subexp): Likewise.
2340 * ada-exp.y (write_var_from_sym): Update.
2342 2019-04-04 Tom Tromey <tom@tromey.com>
2344 * type-stack.h: New file.
2345 * type-stack.c: New file.
2346 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
2348 (insert_into_type_stack, insert_type, push_type, push_type_int)
2349 (insert_type_address_space, pop_type, pop_type_int)
2350 (pop_typelist, pop_type_stack, append_type_stack)
2351 (push_type_stack, get_type_stack, push_typelist)
2352 (follow_type_instance_flags, follow_types): Don't declare.
2353 * parse.c (type_stack): Remove global.
2354 (parse_exp_in_context): Update.
2355 (insert_into_type_stack, insert_type, push_type, push_type_int)
2356 (insert_type_address_space, pop_type, pop_type_int)
2357 (pop_typelist, pop_type_stack, append_type_stack)
2358 (push_type_stack, get_type_stack, push_typelist)
2359 (follow_type_instance_flags, follow_types): Remove (moved to
2361 * f-exp.y (type_stack): New global.
2363 (push_kind_type, f_parse): Update.
2364 * d-exp.y (type_stack): New global.
2367 * c-exp.y (struct c_parse_state) <type_stack>: New member.
2369 * Makefile.in (COMMON_SFILES): Add type-stack.c.
2370 (HFILES_NO_SRCDIR): Add type-stack.h.
2372 2019-04-04 Tom Tromey <tom@tromey.com>
2374 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
2375 (rust_parser::convert_ast_to_expression, rust_parse)
2376 (rust_lex_test_completion, rust_lex_tests): Update.
2377 * parser-defs.h (struct expr_completion_state): New.
2378 (struct parser_state) <parser_state>: Add completion parameter.
2379 <mark_struct_expression, mark_completion_tag>: New methods.
2380 <parse_completion, m_completion_state>: New members.
2381 (prefixify_expression, null_post_parser): Update.
2382 (mark_struct_expression, mark_completion_tag): Don't declare.
2383 * parse.c (parse_completion, expout_last_struct)
2384 (expout_tag_completion_type, expout_completion_name): Remove
2386 (parser_state::mark_struct_expression)
2387 (parser_state::mark_completion_tag): Now methods.
2388 (prefixify_expression): Add last_struct parameter.
2389 (prefixify_subexp): Likewise.
2390 (parse_exp_1): Update.
2391 (parse_exp_in_context): Add cstate parameter. Update.
2392 (parse_expression_for_completion): Create an
2393 expr_completion_state.
2394 (null_post_parser): Add "completion" parameter.
2395 * p-exp.y: Update rules.
2397 * language.h (struct language_defn) <la_post_parser>: Add
2398 "completing" parameter.
2399 * go-exp.y: Update rules.
2400 (lex_one_token): Update.
2401 * expression.h (parse_completion): Don't declare.
2402 * d-exp.y: Update rules.
2403 (lex_one_token): Update rules.
2404 * c-exp.y: Update rules.
2405 (lex_one_token): Update.
2406 * ada-lang.c (resolve): Add "parse_completion" parameter.
2407 (resolve_subexp): Likewise.
2408 (ada_resolve_function): Likewise.
2410 2019-04-04 Tom Tromey <tom@tromey.com>
2412 * parser-defs.h (struct parser_state) <start_arglist,
2413 end_arglist>: New methods.
2414 <arglist_len, m_funcall_chain>: New members.
2415 (arglist_len, start_arglist, end_arglist): Don't declare.
2416 * parse.c (arglist_len, funcall_chain): Remove global.
2417 (start_arglist, end_arglist): Remove functions.
2418 (parse_exp_in_context): Update.
2419 * p-exp.y: Update rules.
2420 * m2-exp.y: Update rules.
2421 * go-exp.y: Update rules.
2422 * f-exp.y: Update rules.
2423 * d-exp.y: Update rules.
2424 * c-exp.y: Update rules.
2426 2019-04-04 Tom Tromey <tom@tromey.com>
2428 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
2429 lex_operator, push_back>: New methods.
2431 (rust_parser::lex_hex, lex_escape): Rename and update.
2432 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
2433 (rust_parser::lex_operator): Rename and update.
2434 (rust_parser::lex_number, rustyylex, rustyyerror)
2435 (rust_lex_test_init, rust_lex_test_sequence)
2436 (rust_lex_test_push_back, rust_lex_tests): Update.
2437 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
2439 <lexptr, prev_lexptr>: New members.
2440 (lexptr, prev_lexptr): Don't declare.
2441 * parse.c (lexptr, prev_lexptr): Remove globals.
2442 (parse_exp_in_context): Update.
2443 * p-exp.y (yylex, yyerror): Update.
2444 * m2-exp.y (parse_number, yylex, yyerror): Update.
2445 * go-exp.y (lex_one_token, yyerror): Update.
2446 * f-exp.y (match_string_literal, yylex, yyerror): Update.
2447 * d-exp.y (lex_one_token, yyerror): Update.
2448 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
2449 (lex_one_token, yyerror): Update.
2450 * ada-lex.l (YY_INPUT): Update.
2451 (rewind_to_char): Update.
2452 * ada-exp.y (yyerror): Update.
2454 2019-04-04 Tom Tromey <tom@tromey.com>
2456 * rust-exp.y (rustyylex, rust_lex_tests): Update.
2457 * parser-defs.h (struct parser_state) <parser_state>: Add new
2459 <comma_terminates>: New member.
2460 (comma_terminates): Don't declare global.
2461 * parse.c (comma_terminates): Remove global.
2462 (parse_exp_in_context): Update.
2463 * p-exp.y (yylex): Update.
2464 * m2-exp.y (yylex): Update.
2465 * go-exp.y (lex_one_token): Update.
2466 * f-exp.y (yylex): Update.
2467 * d-exp.y (lex_one_token): Update.
2468 * c-exp.y (lex_one_token): Update.
2469 * ada-lex.l: Update.
2471 2019-04-04 Tom Tromey <tom@tromey.com>
2473 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
2474 (rustyylex, rust_lex_test_init, rust_lex_test_one)
2475 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
2476 * parser-defs.h (paren_depth): Don't declare.
2477 * parse.c (paren_depth): Remove global.
2478 (parse_exp_in_context): Update.
2479 * p-exp.y (paren_depth): New global.
2480 (pascal_parse): Initialize it.
2481 * m2-exp.y (paren_depth): New global.
2482 (m2_parse): Initialize it.
2483 * go-exp.y (paren_depth): New global.
2484 (go_parse): Initialize it.
2485 * f-exp.y (paren_depth): New global.
2486 (f_parse): Initialize it.
2487 * d-exp.y (paren_depth): New global.
2488 (d_parse): Initialize it.
2489 * c-exp.y (paren_depth): New global.
2490 (c_parse): Initialize it.
2491 * ada-lex.l (paren_depth): New global.
2492 (lexer_init): Initialize it.
2494 2019-04-04 Tom Tromey <tom@tromey.com>
2496 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
2497 (rust_parser::convert_ast_to_type)
2498 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2499 * parser-defs.h (struct parser_state) <parser_state>: Add
2500 parameters. Initialize new members.
2501 <expression_context_block, expression_context_pc>: New members.
2502 * parse.c (expression_context_block, expression_context_pc):
2504 (parse_exp_in_context): Update.
2505 * p-exp.y: Update all rules.
2507 * m2-exp.y: Update all rules.
2509 * go-exp.y (yylex): Update.
2510 * f-exp.y (yylex): Update.
2511 * d-exp.y: Update all rules.
2513 * c-exp.y: Update all rules.
2514 (lex_one_token, classify_name, yylex, c_parse): Update.
2515 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
2517 2019-04-04 Tom Tromey <tom@tromey.com>
2519 * gdbarch.h, gdbarch.c: Rebuild.
2520 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
2522 (struct stap_parse_info): Replace "parser_state" with
2524 * parser-defs.h (struct expr_builder): Rename from "parser_state".
2525 (parser_state): New class.
2526 * parse.c (expr_builder): Rename.
2527 (expr_builder::release): Rename.
2528 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2529 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2530 (write_exp_elt_longcst, write_exp_elt_floatcst)
2531 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2532 (write_exp_string_vector, write_exp_bitstring)
2533 (write_exp_msymbol, mark_struct_expression)
2534 (write_dollar_variable)
2535 (insert_type_address_space, increase_expout_size): Replace
2536 "parser_state" with "expr_builder".
2537 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
2538 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
2539 "parser_state" with "expr_builder".
2541 2019-04-04 Tom Tromey <tom@tromey.com>
2543 * rust-exp.y: Replace "parse_language" with method call.
2545 (yylex): Replace "parse_language" with method call.
2547 (yylex): Replace "parse_language" with method call.
2548 * go-exp.y (classify_name): Replace "parse_language" with method
2550 * f-exp.y (yylex): Replace "parse_language" with method call.
2551 * d-exp.y (lex_one_token): Replace "parse_language" with method
2554 (lex_one_token, classify_name, yylex): Replace "parse_language"
2556 * ada-exp.y (find_primitive_type, type_char)
2557 (type_system_address): Replace "parse_language" with method call.
2559 2019-04-04 Tom Tromey <tom@tromey.com>
2561 * rust-exp.y: Replace "parse_gdbarch" with method call.
2562 * parse.c (write_dollar_variable, insert_type_address_space):
2563 Replace "parse_gdbarch" with method call.
2564 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
2566 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
2568 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
2569 "parse_gdbarch" with method call.
2570 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
2572 * f-exp.y (parse_type, parse_f_type, yylex): Replace
2573 "parse_gdbarch" with method call.
2574 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
2575 "parse_gdbarch" with method call.
2576 * c-exp.y (parse_type, parse_number, classify_name): Replace
2577 "parse_gdbarch" with method call.
2578 * ada-lex.l: Replace "parse_gdbarch" with method call.
2579 * ada-exp.y (parse_type, find_primitive_type, type_char)
2580 (type_system_address): Replace "parse_gdbarch" with method call.
2582 2019-04-04 Tom Tromey <tom@tromey.com>
2584 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
2585 * stap-probe.c (stap_parse_argument): Update.
2586 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
2587 initial_size parameter.
2588 * rust-exp.y (rust_lex_tests): Update.
2589 * parse.c (parser_state): Update.
2590 (parse_exp_in_context): Update.
2591 * parser-defs.h (struct parser_state) <parser_state>: Remove
2592 "initial_size" parameter.
2594 2019-04-04 Tom Tromey <tom@tromey.com>
2596 * parser-defs.h (increase_expout_size): Don't declare.
2597 * parse.c (increase_expout_size): Now static.
2599 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
2601 * gnu-nat.c (gnu_nat_target::wait): Fix
2602 target_waitstatus_to_string call.
2604 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
2606 * eval.c (evaluate_subexp_standard): Handle internal functions
2607 during Fortran function call handling.
2609 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
2611 * NEWS: Mention new internal functions.
2612 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
2613 (read_base_type): Use dwarf2_init_complex_target_type.
2614 * value.c (creal_internal_fn): New function.
2615 (cimag_internal_fn): New function.
2616 (_initialize_values): Register new internal functions.
2618 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2620 * infrun.c (stop_all_threads): If debug_infrun, always
2621 trace the wait status after wait_one, using
2622 target_waitstatus_to_string and target_pid_to_str.
2623 (handle_inferior_event): Replace various trace of
2624 wait status kind by a single trace.
2625 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
2626 wait status kind image by target_waitstatus_to_string.
2627 * target/waitstatus.c (target_waitstatus_to_string): Fix
2630 2019-04-01 Tom Tromey <tromey@adacore.com>
2633 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
2635 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
2636 Pedro Alves <palves@redhat.com>
2638 * top.c (quit_force): Call 'finalize_values'.
2639 * value.c (finalize_values): New function.
2640 * value.h (finalize_values): Declare.
2642 2019-03-30 Eli Zaretskii <eliz@gnu.org>
2644 * NEWS: Announce $_gdb_major and $_gdb_minor.
2646 * top.c (init_gdb_version_vars): New function.
2647 (gdb_init): Call init_gdb_version_vars.
2649 2019-03-29 Tom Tromey <tromey@adacore.com>
2651 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
2652 help text. Remove dead code.
2654 2019-03-29 Keith Seitz <keiths@redhat.com>
2656 From Siddhesh Poyarekar:
2657 * f-lang.h (f77_get_upperbound): Return LONGEST.
2658 (f77_get_lowerbound): Likewise.
2659 * f-typeprint.c (f_type_print_varspec_suffix): Expand
2660 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
2662 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
2663 plongest to format print it.
2664 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
2665 (f77_get_upperbound): Likewise.
2666 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
2667 LOWER_BOUND to LONGEST.
2668 (f77_create_arrayprint_offset_tbl): Likewise.
2670 2019-03-29 Keith Seitz <keiths@redhat.com>
2672 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2673 %s/pulongest for TYPE_LENGTH instead of %d in format
2675 * ada-typerint.c (ada_print_type): Likewise.
2676 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
2677 * compile/compile-c-support.c (generate_register_struct): Likewise.
2678 * gdbtypes.c (recursive_dump_type): Likewise.
2679 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
2680 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
2681 instead of %d in format strings.
2682 * riscv-tdep.c (riscv_type_alignment): Cast second argument
2683 to std::min to ULONGEST.
2684 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
2685 instead of %d in format strings.
2686 * tracepoint.c (info_scope_command): Likewise.
2687 * typeprint.c (print_offset_data::update)
2688 (print_offset_data::finish): Likewise.
2689 * xtensa-tdep.c (xtensa_store_return_value)
2690 (xtensa_push_dummy_call): Likewise.
2692 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
2694 * windows-nat.c (display_selector): Fixed format specifications
2697 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2699 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
2701 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
2703 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
2704 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
2705 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
2706 (nios2_linux_init_abi): Install it.
2708 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2710 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
2712 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2714 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
2716 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2717 Tom Tromey <tromey@adacore.com>
2719 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
2721 2019-03-26 Joel Brobecker <brobecker@adacore.com>
2723 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
2724 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
2725 method to compute the bounds of range types. Also print "[evaluated]"
2726 if the bounds' values come from a dynamic evaluation.
2728 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
2730 * cp-valprint.c (cp_print_value_fields): Don't print trailing
2731 whitespace when pretty printing is on.
2733 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2735 * ppc-linux-nat.c: Add include.
2737 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2739 * NEWS: Mention AArch64 Pointer Authentication.
2741 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2743 * arm-linux-nat.c: Add include.
2745 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
2747 * source-cache.c (source_cache::get_source_lines): Re-read
2748 fullname after calling open_source_file.
2750 2019-03-25 John Baldwin <jhb@FreeBSD.org>
2752 * NEWS: Mention TLS support for FreeBSD.
2754 2019-03-25 Tom Tromey <tromey@adacore.com>
2756 * minsyms.c (BUNCH_SIZE): Update comment.
2757 (~minimal_symbol_reader): Remove old comment.
2758 (compact_minimal_symbols): Update comment.
2759 (minimal_symbol_reader::install): Remove old comment. Update
2762 2019-03-25 Alan Hayward <alan.hayward@arm.com>
2764 * s390-linux-nat.c: Add include.
2766 2019-03-25 Alan Hayward <alan.hayward@arm.com>
2768 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2769 Call linux_get_hwcap.
2770 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
2772 (aarch64_linux_get_hwcap): Remove function.
2773 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
2775 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
2777 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2778 * linux-tdep.c (linux_get_hwcap): Add function.
2779 (linux_get_hwcap2): Likewise.
2780 * linux-tdep.h (linux_get_hwcap): Add declaration.
2781 (linux_get_hwcap2): Likewise.
2782 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
2783 (ppc_linux_get_hwcap2): Likewise.
2784 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
2786 (ppc_linux_nat_target::insert_watchpoint): Likewise.
2787 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
2788 (ppc_linux_nat_target::read_description): Likewise.
2789 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
2790 * s390-linux-nat.c: Likewise.
2791 * s390-linux-tdep.c (s390_core_read_description): Likewise.
2793 2019-03-24 Tom Tromey <tom@tromey.com>
2795 * ada-lang.c (standard_lookup): Simplify initialization.
2796 (ada_lookup_symbol_nonlocal): Simplify return.
2797 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
2798 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
2799 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
2800 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
2802 * solib.c (solib_global_lookup): Simplify.
2803 * symtab.c (null_block_symbol): Remove.
2804 (symbol_cache_lookup): Simplify returns.
2805 (lookup_language_this): Simplify returns.
2806 (lookup_symbol_aux): Simplify return.
2807 (lookup_local_symbol): Simplify returns.
2808 (lookup_global_symbol_from_objfile): Simplify return.
2809 (lookup_symbol_in_objfile_symtabs)
2810 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
2811 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
2812 (lookup_static_symbol, lookup_global_symbol): Simplify return.
2813 * cp-namespace.c (cp_lookup_bare_symbol)
2814 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
2815 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
2816 (cp_lookup_nested_symbol): Don't use null_block_symbol.
2817 (cp_lookup_symbol_via_imports): Simplify initialization.
2818 (find_symbol_in_baseclass): Likewise.
2819 * symtab.h (null_block_symbol): Remove.
2820 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
2821 (d_lookup_nested_symbol, d_lookup_symbol_imports)
2822 (d_lookup_symbol_module): Likewise.
2823 (find_symbol_in_baseclass): Simplify initialization.
2825 2019-03-24 Tom Tromey <tom@tromey.com>
2827 * expression.h: Don't include symtab.h.
2828 (struct block): Forward declare.
2830 2019-03-24 Tom Tromey <tom@tromey.com>
2832 * c-exp.y (typebase): Remove casts.
2833 * gdbtypes.c (lookup_unsigned_typename, )
2834 (lookup_signed_typename): Remove cast.
2835 * eval.c (parse_to_comma_and_eval): Remove cast.
2836 * parse.c (write_dollar_variable): Remove cast.
2837 * block.h (struct block) <superblock>: Now const.
2838 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
2839 * psymtab.c (psym_map_matching_symbols): Make "block" const.
2840 (map_block): Make "block" const.
2841 * symfile.h (struct quick_symbol_functions)
2842 <map_matching_symbols>: Constify block argument to "callback".
2843 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
2845 (find_pc_sect_compunit_symtab): Make "b" const.
2846 (find_symbol_at_address): Likewise.
2847 (search_symbols): Likewise.
2848 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
2849 (dw2_debug_names_lookup_symbol): Likewise.
2850 (dw2_map_matching_symbols): Update.
2851 * p-valprint.c (pascal_val_print): Remove "block".
2852 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
2853 (aux_add_nonlocal_symbols): Make "block" const.
2854 (resolve_subexp): Remove cast.
2855 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
2857 (iterate_over_file_blocks): Likewise.
2858 * f-exp.y (%union) <bval>: Remove.
2859 * coffread.c (patch_opaque_types): Make "b" const.
2860 * spu-tdep.c (spu_catch_start): Make "block" const.
2861 * c-valprint.c (print_unpacked_pointer): Remove "block".
2862 * symmisc.c (dump_symtab_1): Make "b" const.
2863 (block_depth): Make "block" const.
2864 * d-exp.y (%union) <bval>: Remove.
2865 * cp-support.h (cp_lookup_rtti_type): Update.
2866 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
2867 * psymtab.c (psym_lookup_symbol): Make "block" const.
2868 (maintenance_check_psymtabs): Make "b" const.
2869 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
2870 (enumerate_locals, enumerate_args): Update.
2871 * python/py-symtab.c (stpy_global_block): Make "block" const.
2872 (stpy_static_block): Likewise.
2873 * inline-frame.c (block_starting_point_at): Make "new_block"
2875 * block.c (find_block_in_blockvector): Make return type const.
2876 (blockvector_for_pc_sect): Make "b" const.
2877 (find_block_in_blockvector): Make "b" const.
2879 2019-03-23 Tom Tromey <tom@tromey.com>
2881 * varobj.c (varobj_create): Update.
2882 * symfile.c (clear_symtab_users): Don't reset innermost_block.
2883 * printcmd.c (display_command, do_one_display): Don't reset
2885 * parser-defs.h (enum innermost_block_tracker_type): Move to
2887 (innermost_block): Update comment.
2888 * parse.c (parse_exp_1): Add tracker_types parameter.
2889 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
2890 tracker_types parameter. Reset innermost_block.
2891 (parse_exp_in_context): Remove.
2892 (parse_expression_for_completion): Update.
2893 * objfiles.c (~objfile): Don't reset expression_context_block or
2895 * expression.h (enum innermost_block_tracker_type): Move from
2897 (parse_exp_1): Add tracker_types parameter.
2898 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
2899 reset innermost_block.
2901 2019-03-23 Tom Tromey <tom@tromey.com>
2903 * objfiles.h: Include bcache.h.
2905 2019-03-23 Tom Tromey <tom@tromey.com>
2907 * linespec.c (get_current_search_block): Use
2908 scoped_restore_current_language.
2909 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
2911 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2912 Jiong Wang <jiong.wang@arm.com>
2914 * aarch64-linux-tdep.c
2915 (aarch64_linux_iterate_over_regset_sections): Check for pauth
2917 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
2919 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2920 Jiong Wang <jiong.wang@arm.com>
2922 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
2924 (aarch64_analyze_prologue_test): Add PACIASP test.
2925 (aarch64_prologue_prev_register): Unmask PC value.
2927 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2928 Jiong Wang <jiong.wang@arm.com>
2930 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
2931 (aarch64_dwarf2_prev_register): Unmask PC value.
2932 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
2933 (aarch64_execute_dwarf_cfa_vendor_op): Check for
2934 DW_CFA_AARCH64_negate_ra_state.
2935 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
2937 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2938 Jiong Wang <jiong.wang@arm.com>
2940 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
2942 (aarch64_pseudo_register_name): Likewise.
2943 (aarch64_pseudo_register_type): Likewise.
2944 (aarch64_pseudo_register_reggroup_p): Likewise.
2945 (aarch64_gdbarch_init): Add pauth registers.
2946 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
2947 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
2948 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
2949 (struct gdbarch_tdep): Add regnum for ra_state.
2951 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2952 Jiong Wang <jiong.wang@arm.com>
2954 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
2956 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2957 Jiong Wang <jiong.wang@arm.com>
2959 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
2961 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
2962 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
2963 (aarch64_gdbarch_init): Add puth registers.
2964 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
2965 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
2966 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
2968 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2969 Jiong Wang <jiong.wang@arm.com>
2971 * aarch64-linux-nat.c
2972 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
2973 * aarch64-linux-tdep.c
2974 (aarch64_linux_core_read_description): Likewise.
2975 (aarch64_linux_get_hwcap): New function.
2976 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
2977 (aarch64_linux_get_hwcap): New declaration.
2979 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2980 Jiong Wang <jiong.wang@arm.com>
2982 * aarch64-linux-nat.c
2983 (aarch64_linux_nat_target::read_description): Add pauth param.
2984 * aarch64-linux-tdep.c
2985 (aarch64_linux_core_read_description): Likewise.
2986 * aarch64-tdep.c (struct target_desc): Add in pauth.
2987 (aarch64_read_description): Add pauth param.
2988 (aarch64_gdbarch_init): Likewise.
2989 * aarch64-tdep.h (aarch64_read_description): Likewise.
2990 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2991 * arch/aarch64.h (aarch64_create_target_description): Likewise.
2992 * features/Makefile: Add new files.
2993 * features/aarch64-pauth.c: New file.
2994 * features/aarch64-pauth.xml: New file.
2996 2019-03-20 Tom Tromey <tromey@adacore.com>
2998 * infrun.c (handle_inferior_event): Rename from
2999 handle_inferior_event_1. Create a scoped_value_mark.
3000 (handle_inferior_event): Remove.
3002 2019-03-19 Tom Tromey <tromey@adacore.com>
3004 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
3005 * infrun.h (print_stop_event): Add "displays" parameter.
3006 * infrun.c (print_stop_event): Add "displays" parameter.
3008 2019-03-19 Pedro Alves <palves@redhat.com>
3010 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
3011 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
3012 to -1. Fix TABs vs spaces.
3013 (tui_ui_out::tui_ui_out): Don't initialize fields here.
3014 * tui/tui-out.h (tui_ui_out) Add intro comments.
3015 <m_line, m_start_of_line>: In-class initialize, and add describing
3018 2019-03-18 Alan Hayward <alan.hayward@arm.com>
3020 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
3022 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
3024 2019-03-18 Pedro Alves <palves@redhat.com>
3025 Eli Zaretskii <eliz@gnu.org>
3027 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
3028 m_line and m_start_of_line.
3030 2019-03-18 Eli Zaretskii <eliz@gnu.org>
3032 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
3033 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
3034 it returns a newline. This fixes a regression in TU mode, whereby
3035 the next line is output on the same screen line as the user input.
3037 2019-03-18 Tom Tromey <tromey@adacore.com>
3039 * minsyms.c (minimal_symbol_reader::install): Remove call to
3042 2019-03-18 Pedro Alves <palves@redhat.com>
3044 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
3046 (apply_style): New, factored out from ...
3047 (apply_ansi_escape): ... this. Handle reverse video mode.
3048 (tui_set_reverse_mode): New function.
3049 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
3050 * tui/tui-winsource.c (tui_show_source_line): Use
3051 tui_set_reverse_mode instead of setting A_STANDOUT.
3052 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
3055 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
3057 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
3060 2019-03-18 Tom Tromey <tromey@adacore.com>
3062 * ada-lang.c (empty_array): Add "high" parameter.
3063 (ada_evaluate_subexp): Update.
3065 2019-03-17 Sergei Trofimovich <siarheit@google.com>
3067 * unittests/string_view-selftests.c: Define
3068 _initialize_string_view_selftests unconditionally.
3070 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3073 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
3075 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3078 * windows-nat.c (display_selector): Fix format specifiers.
3080 2019-03-17 Eli Zaretskii <eliz@gnu.org>
3082 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
3083 tui_refill_source_window instead of tui_refresh_win, to update the
3084 current execution line. This fixes redisplay of the current line
3085 when stepping through the code with "next" or "step".
3087 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3089 * source-cache.c (source_cache::get_source_lines): Call
3090 find_source_lines to initialize s->nlines. This fixes vertical
3091 scrolling of TUI source window when the DOWN arrow is pressed.
3093 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3095 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
3096 linux-thread-db.c (_initialize_thread_db): Likewise.
3098 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3100 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
3101 wclrtoeol in tui_show_source_line". This reverts changes made in
3102 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
3104 2019-03-15 Tom Tromey <tom@tromey.com>
3106 * symtab.h (struct minimal_symbol): Derive from
3107 general_symbol_info.
3108 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
3109 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3110 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3111 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3112 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
3113 (MSYMBOL_SEARCH_NAME): Update.
3114 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
3115 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
3116 * minsyms.c (minimal_symbol_reader::record_full): Update.
3118 2019-03-15 Tom Tromey <tom@tromey.com>
3120 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
3122 2019-03-15 Tom Tromey <tom@tromey.com>
3124 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
3126 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
3128 * minsyms.c (lookup_minimal_symbol_by_pc_section)
3129 (build_minimal_symbol_hash_tables)
3130 (minimal_symbol_reader::install): Update.
3132 2019-03-15 Tom Tromey <tom@tromey.com>
3134 * symtab.c (create_demangled_names_hash): Update.
3135 (symbol_set_names): Update.
3136 * objfiles.h (struct objfile_per_bfd_storage)
3137 <demangled_names_hash>: Now an htab_up.
3138 * objfiles.c (objfile_per_bfd_storage): Simplify.
3140 2019-03-15 Tom Tromey <tom@tromey.com>
3142 * objfiles.h (struct objfile_per_bfd_storage): Declare
3144 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
3146 (get_objfile_bfd_data): Use new. Don't initialize
3148 (free_objfile_per_bfd_storage): Remove.
3149 (objfile_bfd_data_free, objfile::~objfile): Use delete.
3151 2019-03-15 Tom Tromey <tom@tromey.com>
3153 * symfile.c (reread_symbols): Update.
3154 * objfiles.c (objfile::objfile): Update.
3155 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
3156 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
3158 (minimal_symbol_reader::install): Update.
3159 (terminate_minimal_symbol_table): Remove.
3160 * jit.c (jit_object_close_impl): Update.
3162 2019-03-15 Tom Tromey <tom@tromey.com>
3164 * minsyms.c (minimal_symbol_reader::record_full): Remove some
3167 2019-03-15 Tom Tromey <tom@tromey.com>
3169 * objfiles.h (struct objfile_per_bfd_storage)
3170 <demangled_hash_languages>: Now a bitset.
3171 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
3172 (lookup_minimal_symbol): Update.
3174 2019-03-15 Tom Tromey <tom@tromey.com>
3176 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
3177 Don't return the symbol.
3178 * coffread.c (record_minimal_symbol): Use record_full.
3180 2019-03-14 Eli Zaretskii <eliz@gnu.org>
3182 The MS-Windows port of ncurses fails to switch to a color pair if
3183 one or both of the colors are the implicit default colors. This
3184 change records the default colors when TUI is initialized, and
3185 then specifies them explicitly when a color pair uses the default
3186 colors. This allows color styling in TUI mode on MS-Windows.
3188 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
3190 (tui_initialize_io) [__MINGW32__]: Record the default terminal
3191 colors in ncurses_norm_attr.
3192 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
3193 "none", replace it with the default color recorded in
3196 2019-03-14 Tom Tromey <tromey@adacore.com>
3198 * source-cache.h (class source_cache) <get_source_lines>: Return
3200 * source-cache.c (source_cache::extract_lines): Handle case where
3201 first_pos==npos. Return std::string.
3202 (source_cache::get_source_lines): Update.
3204 2019-03-14 Tom Tromey <tromey@adacore.com>
3206 * NEWS: Add item for "style sources" commands.
3207 * source-cache.c (source_cache::get_source_lines): Check
3209 * cli/cli-style.c (source_styling): New global.
3210 (_initialize_cli_style): Add "style sources" commands.
3211 (show_style_sources): New function.
3212 * cli/cli-style.h (source_styling): Declare.
3214 2019-03-14 Pedro Alves <palves@redhat.com>
3215 Tom Tromey <tromey@adacore.com>
3217 * tui/tui-winsource.h (tui_refill_source_window): Declare.
3218 * tui/tui-winsource.c (tui_refill_source_window): New function,
3220 (tui_horizontal_source_scroll): ... here. Move some logic.
3221 * cli/cli-style.c (set_style_enabled): Notify new observable.
3222 * tui/tui-hooks.c (tui_redisplay_source): New function.
3223 (tui_attach_detach_observers): Attach or detach
3224 tui_redisplay_source.
3225 * observable.h (source_styling_changed): New observable.
3226 * observable.c: Define source_styling_changed observable.
3228 2019-03-13 Tom Tromey <tromey@adacore.com>
3230 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
3231 (i386_gnu_nat_target::store_registers): Update.
3232 * target-debug.h (target_debug_print_std_string): New macro.
3233 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
3234 * windows-tdep.c (display_one_tib): Update.
3235 * tui/tui-stack.c (tui_make_status_line): Update.
3236 * top.c (print_inferior_quit_action): Update.
3237 * thread.c (thr_try_catch_cmd): Update.
3238 (add_thread_with_info): Update.
3239 (thread_target_id_str): Update.
3240 (thr_try_catch_cmd): Update.
3241 (thread_command): Update.
3242 (thread_find_command): Update.
3243 * record-btrace.c (record_btrace_target::info_record)
3244 (record_btrace_resume_thread, record_btrace_target::resume)
3245 (record_btrace_cancel_resume, record_btrace_step_thread)
3246 (record_btrace_target::wait, record_btrace_target::wait)
3247 (record_btrace_target::wait, record_btrace_target::stop): Update.
3248 * progspace.c (print_program_space): Update.
3249 * process-stratum-target.c
3250 (process_stratum_target::thread_address_space): Update.
3251 * linux-fork.c (linux_fork_mourn_inferior)
3252 (detach_checkpoint_command, info_checkpoints_command)
3253 (linux_fork_context): Update.
3254 (linux_fork_detach): Update.
3255 (class scoped_switch_fork_info): Update.
3256 (delete_checkpoint_command): Update.
3257 * infrun.c (follow_fork_inferior): Update.
3258 (follow_fork_inferior): Update.
3259 (proceed_after_vfork_done): Update.
3260 (handle_vfork_child_exec_or_exit): Update.
3261 (follow_exec): Update.
3262 (displaced_step_prepare_throw): Update.
3263 (displaced_step_restore): Update.
3264 (start_step_over): Update.
3266 (clear_proceed_status_thread): Update.
3268 (print_target_wait_results): Update.
3269 (do_target_wait): Update.
3270 (context_switch): Update.
3271 (stop_all_threads): Update.
3272 (restart_threads): Update.
3273 (finish_step_over): Update.
3274 (handle_signal_stop): Update.
3275 (switch_back_to_stepped_thread): Update.
3276 (keep_going_pass_signal): Update.
3277 (print_exited_reason): Update.
3278 (normal_stop): Update.
3279 * inferior.c (inferior_pid_to_str): Change return type.
3280 (print_selected_inferior): Update.
3281 (add_inferior): Update.
3282 (detach_inferior): Update.
3283 * dummy-frame.c (fprint_dummy_frames): Update.
3284 * dcache.c (dcache_info_1): Update.
3285 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
3286 (btrace_fetch, btrace_clear): Update.
3287 * linux-tdep.c (linux_core_pid_to_str): Change return type.
3288 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
3290 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
3291 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
3292 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
3293 * gdbarch.c, gdbarch.h: Rebuild.
3294 * gdbarch.sh (core_pid_to_str): Change return type.
3295 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
3297 (windows_nat_target::pid_to_str): Change return type.
3298 (windows_delete_thread): Update.
3299 (windows_nat_target::attach): Update.
3300 (windows_nat_target::files_info): Update.
3301 * target-delegates.c: Rebuild.
3302 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
3304 (sol_thread_target::pid_to_str): Change return type.
3305 * remote.c (class remote_target) <pid_to_str>: Change return
3307 (remote_target::pid_to_str): Change return type.
3308 (extended_remote_target::attach, remote_target::remote_stop_ns)
3309 (remote_target::remote_notif_remove_queued_reply)
3310 (remote_target::push_stop_reply, remote_target::disable_btrace):
3312 (extended_remote_target::attach): Update.
3313 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
3315 (gdbsim_target::pid_to_str): Change return type.
3316 * ravenscar-thread.c (struct ravenscar_thread_target)
3317 <pid_to_str>: Change return type.
3318 (ravenscar_thread_target::pid_to_str): Change return type.
3319 * procfs.c (class procfs_target) <pid_to_str>: Change return
3321 (procfs_target::pid_to_str): Change return type.
3322 (procfs_target::attach): Update.
3323 (procfs_target::detach): Update.
3324 (procfs_target::fetch_registers): Update.
3325 (procfs_target::store_registers): Update.
3326 (procfs_target::wait): Update.
3327 (procfs_target::files_info): Update.
3328 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
3329 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
3331 (nto_procfs_target::pid_to_str): Change return type.
3332 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
3333 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
3335 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
3337 (attach_proc_task_lwp_callback, get_detach_signal)
3338 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
3339 (linux_nat_target::resume, wait_lwp, stop_callback)
3340 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
3341 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
3342 (linux_nat_wait_1, resume_stopped_resumed_lwps)
3343 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
3344 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
3346 (inf_ptrace_target::attach): Update.
3347 (inf_ptrace_target::files_info): Update.
3348 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
3350 (go32_nat_target::pid_to_str): Change return type.
3351 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
3352 (gnu_nat_target::wait): Update.
3353 (gnu_nat_target::wait): Update.
3354 (gnu_nat_target::resume): Update.
3355 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
3356 (fbsd_nat_target::wait): Update.
3357 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
3359 (darwin_nat_target::attach): Update.
3360 * corelow.c (class core_target) <pid_to_str>: Change return type.
3361 (core_target::pid_to_str): Change return type.
3362 * target.c (normal_pid_to_str): Change return type.
3363 (default_pid_to_str): Likewise.
3364 (target_pid_to_str): Change return type.
3365 (target_translate_tls_address): Update.
3366 (target_announce_detach): Update.
3367 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
3369 (bsd_uthread_target::pid_to_str): Change return type.
3370 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
3372 (bsd_kvm_target::pid_to_str): Change return type.
3373 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
3375 (aix_thread_target::pid_to_str): Change return type.
3376 * target.h (struct target_ops) <pid_to_str>: Change return type.
3377 (target_pid_to_str, normal_pid_to_str): Likewise.
3378 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
3380 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
3382 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
3384 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
3386 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
3388 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
3391 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
3393 * NEWS: Mention that the new default MI version is 3. Mention
3394 changes to the output of commands and events that deal with
3395 multi-location breakpoints.
3396 * breakpoint.c: Include "mi/mi-out.h".
3397 (print_one_breakpoint): Change output syntax if using MI version
3399 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
3401 (mi_multi_location_breakpoint_output_fixed): New.
3402 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
3403 (mi_cmd_fix_multi_location_breakpoint_output): New.
3404 (mi_multi_location_breakpoint_output_fixed): New.
3405 * mi/mi-cmds.c (mi_cmds): Register command
3406 -fix-multi-location-breakpoint-output.
3407 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
3410 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3412 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
3413 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
3414 instantiate mi_ui_out based on interpreter name.
3415 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
3416 * mi/mi-main.c (mi_load_progress): Likewise.
3418 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3420 * NEWS: Combine separate "New targets" sections for 8.3.
3422 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3424 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
3425 (ppcfbsd_init_abi): Install gdbarch
3426 "fetch_tls_load_module_address" and "get_thread_local_address"
3429 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3431 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
3432 (riscv_fbsd_init_abi): Install gdbarch
3433 "fetch_tls_load_module_address" and "get_thread_local_address"
3436 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3438 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
3439 (i386fbsd_init_abi): Install gdbarch
3440 "fetch_tls_load_module_address" and "get_thread_local_address"
3443 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3445 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
3446 (amd64fbsd_init_abi): Install gdbarch
3447 "fetch_tls_load_module_address" and "get_thread_local_address"
3450 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3452 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
3453 (struct fbsd_pspace_data): New type.
3454 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
3455 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
3456 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
3457 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
3458 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
3460 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3462 * gdbtypes.c (lookup_struct_elt): New function.
3463 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
3464 * gdbtypes.h (struct struct_elt): New type.
3465 (lookup_struct_elt): New prototype.
3467 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3469 * gdbtypes.c (lookup_struct_elt_type): Update comment and
3470 remove disabled code block.
3472 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3474 * gdbarch.sh (get_thread_local_address): New method.
3475 * gdbarch.h, gdbarch.c: Regenerate.
3476 * target.c (target_translate_tls_address): Use
3477 gdbarch_get_thread_local_address if present instead of
3478 target::get_thread_local_address.
3480 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3482 * target.h (target::get_thread_local_address): Update comment.
3484 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3486 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
3487 objfile->separate_debug_objfile_backlink if not NULL.
3489 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3491 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
3492 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
3493 (amd64bsd_store_inferior_registers): Likewise.
3494 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
3495 Enable segment base registers.
3496 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
3497 PT_GETFSBASE and PT_GETGSBASE.
3498 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
3500 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
3501 segment base registers.
3502 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
3504 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3506 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
3507 Update calls to i386_target_description to add 'segments'
3509 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
3510 add segment base registers.
3511 * arch/i386.c (i386_create_target_description): Add 'segments'
3512 parameter to enable segment base registers.
3513 * arch/i386.h (i386_create_target_description): Likewise.
3514 * features/i386/32bit-segments.xml: New file.
3515 * features/i386/32bit-segments.c: Generate.
3516 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
3517 call to i386_target_description to add 'segments' parameter.
3518 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
3519 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
3520 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
3521 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
3522 if feature is present.
3523 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
3524 Add 'segments' parameter to call to i386_target_description.
3525 (i386_target_description): Add 'segments' parameter to enable
3526 segment base registers.
3527 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
3528 to call to i386_target_description.
3529 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
3530 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
3531 Define I386_NUM_REGS.
3532 (i386_target_description): Add 'segments' parameter to enable
3533 segment base registers.
3535 2019-03-12 Eli Zaretskii <eliz@gnu.org>
3538 * source-cache.c: #undef open and close, to avoid unresolved
3539 externals during linking.
3541 2019-03-12 Tom Tromey <tromey@adacore.com>
3543 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
3544 const. Add initializers.
3545 (_initialize_remote): Don't initialize ptid globals.
3547 2019-03-12 Pedro Alves <palves@redhat.com>
3549 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
3551 2019-03-12 Pedro Alves <palves@redhat.com>
3553 * cp-name-parser.y (main): Remove unused 'len' variable.
3555 2019-03-12 Tom Tromey <tromey@adacore.com>
3557 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
3558 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
3560 2019-03-12 Tom Tromey <tromey@adacore.com>
3562 * linux-nat.c (iterate_over_lwps): Update.
3563 (stop_callback): Remove parameter.
3564 (stop_wait_callback, detach_callback, resume_set_callback)
3565 (select_singlestep_lwp_callback, set_ignore_sigint)
3566 (status_callback, resumed_callback, resume_clear_callback)
3567 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
3569 (linux_nat_target::detach, linux_nat_target::resume)
3570 (linux_stop_and_wait_all_lwps, select_event_lwp)
3571 (linux_nat_filter_event, linux_nat_wait_1)
3572 (linux_nat_target::kill, linux_nat_target::stop)
3573 (linux_nat_target::stop): Update.
3574 (linux_nat_resume_callback): Change type.
3575 (resume_stopped_resumed_lwps, count_events_callback)
3576 (select_event_lwp_callback): Likewise.
3577 (linux_stop_lwp, linux_nat_stop_lwp): Update.
3578 * arm-linux-nat.c (struct update_registers_data): Remove.
3579 (update_registers_callback): Change type.
3580 (arm_linux_insert_hw_breakpoint1): Update.
3581 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
3583 (x86_linux_dr_set_addr): Update.
3584 (x86_linux_dr_set_control): Update.
3585 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
3586 (iterate_over_lwps): Use gdb::function_view.
3587 * nat/aarch64-linux-hw-point.c (struct
3588 aarch64_dr_update_callback_param): Remove.
3589 (debug_reg_change_callback): Change type.
3590 (aarch64_notify_debug_reg_change): Update.
3591 * s390-linux-nat.c (s390_refresh_per_info): Update.
3593 2019-03-11 Tom Tromey <tromey@adacore.com>
3595 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
3596 redundant assignment to "this_cu".
3598 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3600 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
3602 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3604 * gdbtypes.c (rank_one_type_parm_set): New function extracted
3606 (rank_one_type): ... this.
3608 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3610 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
3612 (rank_one_type): ... this.
3614 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3616 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
3618 (rank_one_type): ... this.
3620 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3622 * gdbtypes.c (rank_one_type_parm_float): New function extracted
3624 (rank_one_type): ... this.
3626 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3628 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
3630 (rank_one_type): ... this.
3632 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3634 * gdbtypes.c (rank_one_type_parm_range): New function extracted
3636 (rank_one_type): ... this.
3638 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3640 * gdbtypes.c (rank_one_type_parm_char): New function extracted
3642 (rank_one_type): ... this.
3644 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3646 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
3648 (rank_one_type): ... this.
3650 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3652 * gdbtypes.c (rank_one_type_parm_int): New function extracted
3654 (rank_one_type): ... this.
3656 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3658 * gdbtypes.c (rank_one_type_parm_func): New function extracted
3660 (rank_one_type): ... this.
3662 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3664 * gdbtypes.c (rank_one_type_parm_array): New function extracted
3666 (rank_one_type): ... this.
3668 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3670 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
3672 (rank_one_type): ... this.
3674 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3676 * inferior.c (initialize_inferiors): Ensure 'help set/show print
3677 inferior-events' shows the example events.
3679 2019-03-08 Eli Zaretskii <eliz@gnu.org>
3681 Support styling on native MS-Windows console
3684 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
3685 on MS-Windows if $TERM is not defined.
3687 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
3689 * posix-hdep.c (gdb_console_fputs):
3690 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
3692 * ui-file.h (gdb_console_fputs): Add prototype.
3694 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
3695 back to fputs only if the former returns zero.
3697 2019-03-07 Tom Tromey <tom@tromey.com>
3699 * symmisc.c (print_symbol_bcache_statistics): Update.
3700 (print_objfile_statistics): Update.
3701 * symfile.c (allocate_symtab): Update.
3702 * stabsread.c: Don't include bcache.h.
3703 * psymtab.h (struct psymbol_bcache): Don't declare.
3704 (class psymtab_storage) <psymbol_cache>: Now a bcache.
3705 (psymbol_bcache_init, psymbol_bcache_free)
3706 (psymbol_bcache_get_bcache): Don't declare.
3707 * psymtab.c (struct psymbol_bcache): Remove.
3708 (psymtab_storage::psymtab_storage): Update.
3709 (psymtab_storage::~psymtab_storage): Update.
3710 (psymbol_bcache_init, psymbol_bcache_free)
3711 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
3712 (add_psymbol_to_bcache): Update.
3713 (allocate_psymtab): Update.
3714 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
3715 macro_cache>: No longer pointers.
3716 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
3717 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
3718 * macrotab.c (macro_bcache): Update.
3719 * macroexp.c: Don't include bcache.h.
3720 * gdbtypes.c (check_types_worklist): Update.
3721 (types_deeply_equal): Remove TRY/CATCH. Update.
3722 * elfread.c (elf_symtab_read): Update.
3723 * dwarf2read.c: Don't include bcache.h.
3724 * buildsym.c (buildsym_compunit::get_macro_table): Update.
3725 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
3726 (print_bcache_statistics, bcache_memory_used): Don't declare.
3727 (struct bcache): Move from bcache.c. Add constructor, destructor,
3728 methods. Rename all data members.
3729 * bcache.c (struct bcache): Move to bcache.h.
3730 (bcache::expand_hash_table): Rename from expand_hash_table.
3732 (bcache::insert): Rename from bcache_full.
3733 (bcache::compare): Rename from bcache_compare.
3734 (bcache_xmalloc): Remove.
3735 (bcache::~bcache): Rename from bcache_xfree.
3736 (bcache::print_statistics): Rename from print_bcache_statistics.
3737 (bcache::memory_used): Rename from bcache_memory_used.
3739 2019-03-07 Pedro Alves <palves@redhat.com>
3741 * infrun.c (normal_stop): Also check for
3742 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
3744 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
3746 * f-lang.c (value_from_host_double): Moved to...
3747 * value.c (value_from_host_double): ...here.
3748 * value.h (value_from_host_double): Declare.
3749 * guile/scm-math.c (vlscm_convert_typed_number): Use
3750 value_from_host_double.
3751 (vlscm_convert_number): Likewise.
3752 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
3753 * python/py-value.c (convert_value_from_python): Likewise.
3755 2019-03-06 Tom Tromey <tom@tromey.com>
3757 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
3759 2019-03-06 Tom Tromey <tom@tromey.com>
3761 * utils.h (free_current_contents): Don't declare.
3762 * utils.c (free_current_contents): Remove.
3764 2019-03-06 Tom Tromey <tom@tromey.com>
3766 * top.c (quit_force): Update.
3767 * main.c (captured_command_loop): Update.
3768 * common/new-op.c (operator new): Update.
3769 * common/common-exceptions.c (struct catcher)
3770 <save_cleanup_chain>: Remove member.
3771 (exceptions_state_mc_init): Update.
3772 (exception_try_scope_entry): Return nullptr.
3773 (exception_try_scope_exit, exception_rethrow)
3774 (throw_exception_sjlj, throw_exception_cxx): Update.
3775 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
3776 (all_cleanups, do_cleanups, discard_cleanups)
3777 (discard_final_cleanups, save_cleanups, save_final_cleanups)
3778 (restore_cleanups, restore_final_cleanups): Don't declare.
3779 (do_final_cleanups): Remove parameter.
3780 * common/cleanups.c (cleanup_chain, make_cleanup)
3781 (make_cleanup_dtor, all_cleanups, do_cleanups)
3782 (discard_my_cleanups, discard_cleanups)
3783 (discard_final_cleanups, save_my_cleanups, save_cleanups)
3784 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
3785 (null_cleanup): Remove.
3786 (do_final_cleanups): Remove parameter.
3788 2019-03-06 Tom Tromey <tom@tromey.com>
3790 * remote.c (remote_target::remote_parse_stop_reply): Use
3793 2019-03-06 Tom Tromey <tom@tromey.com>
3795 * stabsread.c (struct stabs_field_info): Rename from field_info.
3796 <list, fnlist>: Add initializers.
3797 <obstack>: New member.
3798 (read_member_functions, read_struct_fields, read_baseclasses):
3799 Allocate on obstack. Don't use cleanups.
3800 (read_one_struct_field, read_member_functions, read_struct_fields)
3801 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
3802 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
3803 (read_struct_type): Update.
3805 2019-03-06 Tom Tromey <tom@tromey.com>
3807 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
3808 * common/filestuff.h (make_cleanup_close): Don't declare.
3809 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
3812 2019-03-06 Tom Tromey <tom@tromey.com>
3814 * solib-aix.c: Use make_scope_exit.
3816 2019-03-06 Tom Tromey <tom@tromey.com>
3818 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
3819 Use make_scope_exit.
3821 2019-03-06 Tom Tromey <tom@tromey.com>
3823 * solib-svr4.c (disable_probes_interface): Remove parameter.
3824 (svr4_handle_solib_event): Use make_scope_exit.
3826 2019-03-06 Tom Tromey <tom@tromey.com>
3828 * remote.c (struct stop_reply_deleter): Remove.
3829 (stop_reply_up): Update.
3830 (struct stop_reply): Derive from notif_event. Don't typedef.
3831 <regcache>: Now a std::vector.
3832 (stop_reply_xfree): Remove.
3833 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
3834 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
3835 (remote_target::discard_pending_stop_replies): Use delete.
3836 (remote_target::remote_parse_stop_reply): Update.
3837 (remote_target::process_stop_reply): Update.
3838 * remote-notif.h (struct notif_event): Add virtual destructor.
3839 Remove "dtr" member.
3840 (struct notif_client) <alloc_event>: Return a unique_ptr.
3841 (notif_event_xfree): Don't declare.
3842 (notif_event_up): New typedef.
3843 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
3844 (notif_event_xfree, do_notif_event_xfree): Remove.
3845 (remote_notif_state_xfree): Update.
3847 2019-03-06 Tom Tromey <tom@tromey.com>
3849 * infrun.c (displaced_step_clear_cleanup): Now a
3850 forward_scope_exit type.
3851 (displaced_step_prepare_throw): Update.
3852 (displaced_step_fixup): Update.
3854 2019-03-06 Tom Tromey <tom@tromey.com>
3856 * inferior.h (class inferior): Update comment.
3857 * gdbthread.h (class thread_info): Update comment.
3859 2019-03-06 Joel Brobecker <brobecker@adacore.com>
3860 Tom Tromey <tom@tromey.com>
3862 * stabsread.h (struct stab_section_list): Remove.
3863 (coffstab_build_psymtabs): Update.
3864 * dbxread.c (symbuf_sections): Now a std::vector.
3865 (sect_idx): New global.
3866 (fill_symbuf): Update.
3867 (coffstab_build_psymtabs): Change type of stabsects parameter.
3869 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
3871 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
3872 (coff_locate_sections): Update.
3873 (coff_symfile_read): Remove cleanups. Update.
3874 (init_stringtab): Add storage parameter.
3875 (free_stringtab, free_stringtab_cleanup): Remove.
3876 (init_lineno): Add storage parameter.
3877 (free_linetab, free_linetab_cleanup): Remove.
3879 2019-03-06 Pedro Alves <palves@redhat.com>
3881 * linux-fork.c (fork_info::clobber_regs): Delete.
3882 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
3883 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
3885 (scoped_switch_fork_info::scoped_switch_fork_info)
3886 (checkpoint_command, linux_fork_context): Adjust
3887 fork_save_infrun_state calls.
3889 2019-03-06 Pedro Alves <palves@redhat.com>
3891 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
3892 (inf_has_multiple_threads): Return 'bool' and rewrite using
3893 inferior_info::threads().
3895 2019-03-06 Pedro Alves <palves@redhat.com>
3897 * linux-fork.c: Include <list>.
3898 (fork_list): Now a std::list instance.
3899 (fork_info): Add ctor, dtor, and in-class initialize all fields.
3900 (forks_exist_p, find_last_fork): Adjust.
3904 (free_fork): Delete, folded into fork_info::~fork_info().
3905 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
3907 (init_fork_list): Delete.
3908 (linux_fork_killall, linux_fork_mourn_inferior)
3909 (linux_fork_detach, info_checkpoints_command): Adjust.
3910 (_initialize_linux_fork): No longer call init_fork_list.
3912 2019-03-06 Pedro Alves <palves@redhat.com>
3914 * linux-fork.c (new_fork): New, split out of ...
3915 (add_fork): ... this. Return void. Move "first fork" special
3916 case from here, to ...
3917 (checkpoint_command): ... here.
3918 * linux-linux.h (add_fork): Return void.
3920 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3922 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
3924 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3925 Chris January <chris.january@arm.com>
3926 David Lecomber <david.lecomber@arm.com>
3928 * f-exp.y: New token, UNOP_INTRINSIC.
3929 (exp): New pattern using UNOP_INTRINSIC token.
3930 (f77_keywords): Add 'abs' keyword.
3931 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
3932 (value_from_host_double): New function.
3933 (evaluate_subexp_f): Support UNOP_ABS.
3935 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3937 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
3940 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3942 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
3943 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
3944 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
3946 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3948 * f-exp.y (convert_to_kind_type): Handle more type kinds.
3950 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3951 Chris January <chris.january@arm.com>
3953 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
3954 * f-exp.y: Define 'KIND' token.
3955 (exp): New pattern for KIND expressions.
3956 (ptype): Handle types with a kind extension.
3957 (direct_abs_decl): Extend to spot kind extensions.
3958 (f77_keywords): Add 'kind' to the list.
3959 (push_kind_type): New function.
3960 (convert_to_kind_type): New function.
3961 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
3962 * parse.c (operator_length_standard): Likewise.
3963 * parser-defs.h (enum type_pieces): Add tp_kind.
3964 * std-operator.def: Add UNOP_KIND.
3966 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3968 * f-exp.y (f_parse): Set yydebug.
3970 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3972 * f-lang.c (evaluate_subexp_f): New function.
3973 (exp_descriptor_f): New global.
3974 (f_language_defn): Use exp_descriptor_f instead of
3975 exp_descriptor_standard.
3977 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3979 * f-exp.y (struct token): Add comments.
3980 (dot_ops): Remove uppercase versions and the end marker.
3981 (f77_keywords): Likewise.
3982 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
3983 entries in the dot_ops array are case insensitive, and use
3984 strncasecmp to compare strings. Also some whitespace cleanup in
3985 this area. Similar for the f77_keywords array, except entries in
3986 this list might be case sensitive.
3988 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3990 * f-exp.y (struct f77_boolean_val): Add comments.
3991 (boolean_values): Remove uppercase versions, and end marker.
3992 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
3993 and use strncasecmp to achieve case insensitivity. Additionally,
3994 perform whitespace cleanup around this code.
3996 2019-03-06 Tom Tromey <tromey@adacore.com>
3998 * remote-sim.c (gdbsim_target_open): Use result of
4001 2019-03-06 Richard Bunt <richard.bunt@arm.com>
4002 Dirk Schubert <dirk.schubert@arm.com>
4003 Chris January <chris.january@arm.com>
4005 * eval.c (evaluate_subexp_standard): Call Fortran argument
4007 * f-lang.c (struct value): A value which can be passed into a
4008 Fortran function call.
4009 (fortran_argument_convert): Wrap Fortran arguments in a pointer
4011 (struct type): Value ready for a Fortran function call.
4012 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
4014 * f-lang.h (fortran_argument_convert): Declaration.
4015 (fortran_preserve_arg_pointer): Declaration.
4016 * infcall.c (value_arg_coerce): Call Fortran argument logic.
4018 2019-03-05 Tom Tromey <tromey@adacore.com>
4020 * python/py-prettyprint.c (print_string_repr): Remove #if.
4021 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
4023 2019-03-05 Tom Tromey <tromey@adacore.com>
4025 * target.c (the_dummy_target): Move later. Change type to
4027 (initialize_targets): Don't initialize the_dummy_target.
4029 2019-03-05 Tom Tromey <tromey@adacore.com>
4031 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
4032 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
4034 2019-03-05 Tom Tromey <tromey@adacore.com>
4036 * windows-nat.c (windows_nat_target::attach)
4037 (windows_nat_target::detach): Don't call gdb_flush.
4038 * valprint.c (generic_val_print, val_print, val_print_string):
4039 Don't call gdb_flush.
4040 * utils.c (defaulted_query): Don't call gdb_flush.
4041 * typeprint.c (print_type_scalar): Don't call gdb_flush.
4042 * target.c (target_announce_detach): Don't call gdb_flush.
4043 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
4044 * remote.c (extended_remote_target::attach): Don't call
4046 * procfs.c (procfs_target::detach): Don't call gdb_flush.
4047 * printcmd.c (do_examine): Don't call gdb_flush.
4048 (info_display_command): Don't call gdb_flush.
4049 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
4050 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
4051 * memattr.c (info_mem_command): Don't call gdb_flush.
4052 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
4053 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
4054 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
4055 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
4056 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
4057 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
4058 (gnu_nat_target::detach): Don't call gdb_flush.
4059 * f-valprint.c (f_val_print): Don't call gdb_flush.
4060 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
4061 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
4062 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
4064 * c-valprint.c (c_val_print): Don't call gdb_flush.
4065 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
4067 2019-03-05 Tom Tromey <tromey@adacore.com>
4069 * varobj.c (update_dynamic_varobj_children): Update.
4070 (install_default_visualizer): Use reset, not release.
4071 * value.c (set_internalvar): Update.
4072 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
4073 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
4074 ATTRIBUTE_UNUSED_RESULT.
4076 2019-03-05 Tom Tromey <tromey@adacore.com>
4078 * remote.c (class scoped_remote_fd) <release>: Add
4079 ATTRIBUTE_UNUSED_RESULT.
4081 2019-03-05 Tom Tromey <tromey@adacore.com>
4083 * macroexp.c (struct macro_buffer) <release>: Add
4084 ATTRIBUTE_UNUSED_RESULT.
4086 2019-03-05 Tom Tromey <tromey@adacore.com>
4088 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
4089 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
4090 ATTRIBUTE_UNUSED_RESULT.
4092 2019-03-05 Tom Tromey <tromey@adacore.com>
4094 * common/scoped_fd.h (class scoped_fd) <release>: Add
4095 ATTRIBUTE_UNUSED_RESULT.
4097 2019-03-05 Tom Tromey <tromey@adacore.com>
4099 * parser-defs.h (struct parser_state) <release>: Add
4100 ATTRIBUTE_UNUSED_RESULT.
4102 2019-03-05 Tom Tromey <tromey@adacore.com>
4104 * utils.h (class gdb_argv) <release>: Add
4105 ATTRIBUTE_UNUSED_RESULT.
4106 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
4108 2019-03-02 Eli Zaretskii <eliz@gnu.org>
4110 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
4111 for-loop range, to avoid compiler warnings.
4113 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
4114 avoid compiler warnings about unused variables.
4116 * NEWS: Mention end of support for native debugging on MS-Windows
4120 * common/netstuff.c:
4121 * gdbserver/gdbreplay.c
4122 * gdbserver/remote-utils.c:
4124 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
4125 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
4126 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
4127 'getaddrinfo' and 'freeaddrinfo' were not available before
4128 Windows XP, and mingw.org's MinGW headers by default define
4129 _WIN32_WINNT to 0x500.
4131 2019-03-01 Gary Benson <gbenson@redhat.com>
4133 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
4135 2019-02-28 Brian Vandenberg <phantall@gmail.com>
4136 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4139 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
4140 set_sigint_trap, clear_sigint_trap.
4142 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4144 * target.c (target_detach): Clear the regcache and the
4147 2019-02-27 Pedro Alves <palves@redhat.com>
4149 * utils.c (set_screen_size): When we cap the height/width sizes,
4150 tweak the corresponding command variable to show "unlimited":
4152 2019-02-27 Saagar Jha <saagar@saagarjha.com>
4153 Pedro Alves <palves@redhat.com>
4155 * utils.c (set_screen_size): Reduce "infinite" rows and columns
4156 before calling rl_set_screen_size.
4158 2019-02-27 Tom Tromey <tromey@adacore.com>
4160 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
4162 * python/py-value.c: Remove Python 2.4 workaround.
4163 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
4165 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
4166 Python 2.4 workaround.
4167 * python/python-internal.h: Remove Python 2.4 comment.
4168 (Py_ssize_t): Don't define.
4169 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
4170 (gdb_Py_DECREF): Remove Python 2.4 workaround.
4171 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
4172 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
4173 * python/python.c (do_start_initialization): Remove Python 2.4
4175 * python/py-prettyprint.c (class dummy_python_frame): Remove.
4176 (print_children): Remove Python 2.4 workaround.
4177 * python/py-inferior.c (buffer_procs): Remove Python 2.4
4179 (CHARBUFFERPROC_NAME): Remove.
4180 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
4181 Python 2.4 workaround.
4183 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4185 * NEWS: Note minimum Python version.
4187 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4189 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
4190 code from these functions. Remove corresponding ifdefs. Use
4191 Py_buffer_up instead of explicit calls to PyBuffer_Release.
4192 Remove gotos and target of gotos.
4193 (infpy_search_memory): Likewise.
4195 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4197 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
4198 (hppa_gdbarch_init): Don't register deleted functions with
4201 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4203 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
4204 (h8300_unwind_sp): Delete.
4205 (h8300_dummy_id): Delete.
4206 (h8300_gdbarch_init): Don't register deleted functions with
4209 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4211 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
4212 (ft32_unwind_pc): Delete.
4213 (ft32_unwind_sp): Delete.
4214 (ft32_gdbarch_init): Don't register deleted functions with
4217 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4219 * gdb/frv-tdep.c (frv_dummy_id): Delete.
4220 (frv_unwind_pc): Delete.
4221 (frv_unwind_sp): Delete.
4222 (frv_gdbarch_init): Don't register deleted functions with
4225 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4227 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
4228 (riscv_unwind_pc): Delete.
4229 (riscv_unwind_sp): Delete.
4230 (riscv_gdbarch_init): Don't register deleted functions with
4233 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4235 * gdb/csky-tdep.c (csky_dummy_id): Delete.
4236 (csky_unwind_pc): Delete.
4237 (csky_unwind_sp): Delete.
4238 (csky_gdbarch_init): Don't register deleted functions with
4241 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4243 * gdb/cris-tdep.c (cris_dummy_id): Delete.
4244 (cris_unwind_pc): Delete.
4245 (cris_unwind_sp): Delete.
4246 (cris_gdbarch_init): Don't register deleted functions with
4249 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4251 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
4252 (bfin_unwind_pc): Delete.
4253 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
4255 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4257 * gdb/arm-tdep.c (arm_dummy_id): Delete.
4258 (arm_unwind_pc): Delete.
4259 (arm_unwind_sp): Delete.
4260 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
4262 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4264 * gdb/arc-tdep.c (arc_dummy_id): Delete.
4265 (arc_unwind_pc): Delete.
4266 (arc_unwind_sp): Delete.
4267 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
4269 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4271 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
4272 (alpha_unwind_pc): Delete.
4273 (alpha_gdbarch_init): Don't register deleted functions with
4276 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4278 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
4279 (aarch64_unwind_pc): Delete.
4280 (aarch64_unwind_sp): Delete.
4281 (aarch64_gdbarch_init): Don't register deleted functions with
4284 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4286 * gdbtypes.c (type_align): Don't consider static members when
4287 computing structure alignment.
4289 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4291 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
4292 return 0 for other types.
4293 * arch-utils.c (default_type_align): Always return 0.
4294 * gdbarch.h: Regenerate.
4295 * gdbarch.sh (type_align): Extend comment.
4296 * gdbtypes.c (type_align): Add additional comments, always call
4297 gdbarch_type_align before applying the default rules.
4298 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
4299 generic code will then apply a suitable default.
4300 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
4301 types, return 0 for other types.
4303 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4305 * NEWS: Create a new section for the next release branch.
4306 Rename the section of the current branch, now that it has
4309 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4311 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
4312 * version.in: Bump version to 8.3.50.DATE-git.
4314 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
4316 * aix-thread.c (ptid_cmp): Remove unused variable.
4317 (get_signaled_thread): Likewise.
4318 (store_regs_user_thread): Likewise.
4319 (store_regs_kernel_thread): Likewise.
4320 (fetch_regs_kernel_thread): Remove shadowed variable.
4322 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
4324 * features/riscv/32bit-cpu.xml: Add register numbers.
4325 * features/riscv/32bit-fpu.c: Regenerate.
4326 * features/riscv/32bit-fpu.xml: Add register numbers.
4327 * features/riscv/64bit-cpu.xml: Add register numbers.
4328 * features/riscv/64bit-fpu.c: Regenerate.
4329 * features/riscv/64bit-fpu.xml: Add register numbers.
4331 2019-02-26 Kevin Buettner <kevinb@redhat.com>
4333 * NEWS: Mention two argument form of gdb.Value constructor.
4334 * python/py-value.c (convert_buffer_and_type_to_value): New
4336 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
4337 Add support for handling an optional second argument. Call
4338 convert_buffer_and_type_to_value as appropriate.
4339 * python/python-internal.h (Py_buffer_deleter): New struct.
4340 (Py_buffer_up): New typedef.
4342 2019-02-25 John Baldwin <jhb@FreeBSD.org>
4344 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
4345 instead of releasing ownership.
4347 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
4349 * dwarf2read.c (open_and_init_dwp_file): Call
4350 elf_numsections instead of bfd_count_sections to initialize
4351 dwp_file->num_sections.
4353 2019-02-25 Tom Tromey <tromey@adacore.com>
4355 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
4357 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
4359 * gcore.in: Add '--readnever' option when invoking GDB.
4361 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4363 * MAINTAINERS: Update my email address.
4365 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4367 * build-id.c (build_id_to_debug_bfd_1): New function.
4368 (build_id_to_debug_bfd): Look for separate debug file in
4371 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
4373 * gdbarch.sh: Update the copyright year range that is placed into
4376 2019-02-22 Keith Seitz <keiths@redhat.com>
4379 * linespec.c (create_sals_line_offset): Search for the default
4380 symtab's filename instead of its fullname.
4382 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4384 * NEWS: Update style defaults.
4386 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4388 * main.c (captured_main_1): Disable styling in batch mode.
4390 2019-02-20 Tom Tromey <tom@tromey.com>
4392 * symtab.c (symtab_symbol_info): Fix typos.
4394 2019-02-20 Tom Tromey <tromey@adacore.com>
4396 * findcmd.c (_initialize_mem_search): Use upper case for
4397 metasyntactic variables.
4399 2019-02-20 Alan Hayward <alan.hayward@arm.com>
4401 * aarch64-tdep.c (aarch64_add_reggroups): New function.
4402 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
4404 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
4406 * top.h (source_file_name): Change to std::string.
4407 * top.c (source_file_name): Likewise.
4408 (command_line_input): Adjust.
4409 * cli/cli-script.c (script_from_file): Adjust.
4411 2019-02-19 Tom Tromey <tromey@adacore.com>
4413 * ravenscar-thread.c
4414 (ravenscar_thread_target::update_thread_list): Don't call
4415 ada_build_task_list.
4416 * ada-lang.h (ada_build_task_list): Don't declare.
4417 * ada-tasks.c (struct ada_tasks_inferior_data)
4418 <task_list_valid_p>: Now bool.
4419 (read_known_tasks, ada_task_list_changed)
4420 (ada_tasks_invalidate_inferior_data): Update.
4421 (read_known_tasks_array): Return bool.
4422 (read_known_tasks_list): Likewise.
4423 (read_known_tasks): Return void.
4424 (ada_build_task_list): Now static.
4426 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
4428 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
4429 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
4431 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4433 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
4434 variant for ada_tasks_pspace_data_handle and
4435 ada_tasks_inferior_data_handle.
4436 (ada_tasks_pspace_data_cleanup): New function.
4437 (ada_tasks_inferior_data_cleanup): New function.
4439 2019-02-17 Tom Tromey <tom@tromey.com>
4441 * macrotab.h (macro_source_fullname): Return a std::string.
4442 * macrotab.c (macro_include, check_for_redefinition)
4443 (macro_undef, macro_lookup_definition, foreach_macro)
4444 (foreach_macro_in_scope): Update.
4445 (macro_source_fullname): Return a std::string.
4446 * macrocmd.c (show_pp_source_pos): Update.
4448 2019-02-17 Tom Tromey <tom@tromey.com>
4450 * macrocmd.c (show_pp_source_pos): Style the file names.
4452 2019-02-17 Tom Tromey <tom@tromey.com>
4455 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
4457 2019-02-17 Tom Tromey <tom@tromey.com>
4459 * ada-lang.c (user_select_syms): Use filtered printing.
4460 * utils.c (wrap_style): New global.
4461 (desired_style): Remove.
4462 (emit_style_escape): Add stream parameter.
4463 (set_output_style, reset_terminal_style, prompt_for_continue):
4465 (flush_wrap_buffer): Only flush gdb_stdout.
4466 (wrap_here): Set wrap_style.
4467 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
4468 treat escape sequences as a character. Change when wrap buffer is
4470 (fputs_styled): Do not set the output style when the default is
4472 * ui-style.h (struct ui_file_style) <is_default>: New method.
4473 * source.c (print_source_lines_base): Emit escape sequences in one
4476 2019-02-17 Joel Brobecker <brobecker@adacore.com>
4478 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
4479 integers and enumeration types.
4481 2019-02-17 Joel Brobecker <brobecker@adacore.com>
4483 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
4484 instead of lookup_symbol_in_language
4485 (do_exact_match): New function.
4486 (ada_get_symbol_name_matcher): Return do_exact_match when
4487 doing a verbatim match.
4489 2019-02-15 Tom Tromey <tromey@adacore.com>
4491 * ravenscar-thread.c (ravenscar_thread_target::resume)
4492 (ravenscar_thread_target::wait): Special case wildcard requests.
4494 2019-02-15 Tom Tromey <tromey@adacore.com>
4496 * ravenscar-thread.c (base_ptid): Remove.
4497 (struct ravenscar_thread_target) <close>: New method.
4498 <m_base_ptid>: New member.
4499 <update_inferior_ptid, active_task, task_is_currently_active,
4500 runtime_initialized>: Declare methods.
4501 <ravenscar_thread_target>: Add constructor.
4502 (ravenscar_thread_target::task_is_currently_active)
4503 (ravenscar_thread_target::update_inferior_ptid)
4504 (ravenscar_runtime_initialized): Rename. Now methods.
4505 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
4506 (ravenscar_thread_target::update_thread_list): Update.
4507 (ravenscar_thread_target::active_task): Now method.
4508 (ravenscar_thread_target::store_registers)
4509 (ravenscar_thread_target::prepare_to_store)
4510 (ravenscar_thread_target::prepare_to_store)
4511 (ravenscar_thread_target::mourn_inferior): Update.
4512 (ravenscar_inferior_created): Use "new" to create target.
4513 (ravenscar_thread_target::get_ada_task_ptid): Update.
4514 (_initialize_ravenscar): Don't initialize base_ptid.
4515 (ravenscar_ops): Remove global.
4517 2019-02-15 Tom Tromey <tromey@adacore.com>
4519 * target.h (push_target): Declare new overload.
4520 * target.c (push_target): New overload, taking an rvalue reference.
4521 * remote.c (remote_target::open_1): Use push_target overload.
4522 * corelow.c (core_target_open): Use push_target overload.
4524 2019-02-15 Tom Tromey <tromey@adacore.com>
4526 * ravenscar-thread.c (is_ravenscar_task)
4527 (ravenscar_task_is_currently_active): Return bool.
4528 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
4529 (_initialize_ravenscar): Remove "(void)".
4530 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
4533 2019-02-15 Tom Tromey <tromey@adacore.com>
4535 * ravenscar-thread.c (ravenscar_runtime_initializer)
4536 (has_ravenscar_runtime, get_running_thread_id)
4537 (ravenscar_thread_target::resume): Fix indentation.
4539 2019-02-15 Tom Tromey <tromey@adacore.com>
4541 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
4542 from ravenscar_arch_ops.
4543 (sparc_ravenscar_ops::fetch_registers)
4544 (sparc_ravenscar_ops::store_registers): Now methods.
4545 (sparc_ravenscar_prepare_to_store): Remove.
4546 (sparc_ravenscar_ops): Redefine.
4547 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
4548 methods and destructor. Remove members.
4549 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
4550 (ravenscar_thread_target::store_registers)
4551 (ravenscar_thread_target::prepare_to_store): Update.
4552 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
4554 (struct ppc_ravenscar_powerpc_ops): Derive from
4556 (ppc_ravenscar_powerpc_ops::fetch_registers)
4557 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
4558 (ppc_ravenscar_powerpc_ops): Redefine.
4559 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
4560 (ppc_ravenscar_e500_ops::fetch_registers)
4561 (ppc_ravenscar_e500_ops::store_registers): Now methods.
4562 (ppc_ravenscar_e500_ops): Redefine.
4563 * aarch64-ravenscar-thread.c
4564 (aarch64_ravenscar_generic_prepare_to_store): Remove.
4565 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
4566 (aarch64_ravenscar_fetch_registers)
4567 (aarch64_ravenscar_store_registers): Now methods.
4568 (aarch64_ravenscar_ops): Redefine.
4570 2019-02-15 Tom Tromey <tromey@adacore.com>
4572 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
4573 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4574 (ravenscar_thread_target::stopped_by_watchpoint)
4575 (ravenscar_thread_target::stopped_data_address)
4576 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
4578 2019-02-15 Tom Tromey <tromey@adacore.com>
4580 * ravenscar-thread.c: Fix some typos.
4582 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4583 Tom Tromey <tromey@adacore.com>
4585 * ada-lang.c (ada_exception_sal): Change addr_string to a
4587 (create_ada_exception_catchpoint): Update.
4589 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4590 Tom Tromey <tromey@adacore.com>
4592 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
4593 (bp_location_ops): Remove.
4594 (base_breakpoint_allocate_location): Update.
4595 (free_bp_location): Update.
4596 * ada-lang.c (class ada_catchpoint_location)
4597 <ada_catchpoint_location>: Remove ops parameter.
4598 (ada_catchpoint_location_dtor): Remove.
4599 (ada_catchpoint_location_ops): Remove.
4600 (allocate_location_exception): Update.
4601 * breakpoint.h (struct bp_location_ops): Remove.
4602 (class bp_location) <bp_location>: Remove bp_location_ops
4604 <~bp_location>: Add destructor.
4607 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
4608 Pedro Alves <palves@redhat.com>
4610 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
4613 2019-02-14 David Michael <fedora.dm0@gmail.com>
4614 Samuel Thibault <samuel.thibault@gnu.org>
4615 Thomas Schwinge <thomas@codesourcery.com>
4617 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
4618 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
4620 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
4622 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
4623 (check_empty): Use "const char *".
4625 * gnu-nat.c (gnu_nat_target::detach): Instead of
4626 'detach_inferior (pid)' call
4627 'detach_inferior (find_inferior_pid (pid))'.
4629 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
4630 'nat/fork-inferior.o'.
4631 * gnu-nat.c: #include "nat/fork-inferior.h".
4633 * gnu-nat.c (gnu_nat_target::detach): Instead of
4634 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
4635 * gnu-nat.h: #include "inf-child.h".
4636 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
4637 'i386_gnu_nat_target::fetch_registers'.
4638 (gnu_store_registers): Rename/move to
4639 'i386_gnu_nat_target::store_registers'.
4641 * config/i386/nm-i386gnu.h: Don't "#include" any files.
4642 * gnu-nat.h (mach_thread_info): New function.
4643 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
4645 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
4647 2019-02-14 Frederic Konrad <konrad@adacore.com>
4649 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
4651 2019-02-14 Joel Brobecker <brobecker@adacore.com>
4653 * windows-nat.c (windows_add_thread): Add new parameter
4654 "main_thread_p" with default value set to false. Update
4655 function documentation as well as all callers.
4656 (windows_delete_thread): Likewise.
4657 (fake_create_process): Update call to windows_add_thread.
4658 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
4659 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
4660 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
4661 call to windows_delete_thread.
4663 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
4665 * MAINTAINERS: Add Andrew Burgess as global maintainer.
4667 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4669 * symfile.c (find_separate_debug_file): Use canonical path of
4670 sysroot with child_path instead of gdb_sysroot if it is valid.
4672 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4674 * symfile.c (find_separate_debug_file): Use child_path to
4675 determine if an object file is under a sysroot.
4677 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4679 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4680 unittests/child-path-selftests.c.
4681 * common/pathstuff.c (child_path): New function.
4682 * common/pathstuff.h (child_path): New prototype.
4683 * unittests/child-path-selftests.c: New file.
4685 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4687 * symfile.c (find_separate_debug_file): Look for separate debug
4688 files in debug directories under the sysroot.
4690 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4692 * symtab.h (struct minimal_symbol data_p): New const method.
4693 (struct minimal_symbol text_p): Likewise.
4694 * symtab.c (output_source_filename): Use file name style
4696 (print_symbol_info): Likewise.
4697 (print_msymbol_info): Use address style to print addresses.
4698 Use function name style to print executable text symbols.
4699 (expand_symtab_containing_pc): Use data_p.
4700 (find_pc_sect_compunit_symtab): Likewise.
4702 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4704 * breakpoint.c (describe_other_breakpoints): Use address style
4706 (say_where): Likewise.
4708 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4710 * ada-typeprint.c (print_func_type): Print function name
4711 style to print function name.
4712 * c-typeprint.c (c_print_type_1): Likewise.
4714 2019-02-11 Alan Hayward <alan.hayward@arm.com>
4716 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
4719 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4721 * c-exp.y (direct_abs_decl): Use emplace_back to record the
4724 2019-02-10 Joel Brobecker <brobecker@adacore.com>
4726 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
4727 TYPE_CODE_REF types.
4729 2019-02-08 Jim Wilson <jimw@sifive.com>
4731 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
4732 (riscv_linux_fregset): New.
4733 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
4735 2019-02-07 Tom Tromey <tom@tromey.com>
4737 * thread.c (thread_cancel_execution_command): Update.
4738 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
4740 (struct thread_fsm_ops): Remove.
4741 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
4742 (thread_fsm_should_stop, thread_fsm_return_value)
4743 (thread_fsm_set_finished, thread_fsm_finished_p)
4744 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
4746 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
4747 * infrun.c (clear_proceed_status_thread)
4748 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
4749 (print_stop_event): Update.
4750 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
4752 (step_command_fsm_ops): Remove.
4753 (new_step_command_fsm): Remove.
4755 (step_command_fsm::should_stop): Rename from
4756 step_command_fsm_should_stop.
4757 (step_command_fsm::clean_up): Rename from
4758 step_command_fsm_clean_up.
4759 (step_command_fsm::do_async_reply_reason): Rename from
4760 step_command_fsm_async_reply_reason.
4761 (struct until_next_fsm): Inherit from thread_fsm. Add
4763 (until_next_fsm_ops): Remove.
4764 (new_until_next_fsm): Remove.
4765 (until_next_fsm::should_stop): Rename from
4766 until_next_fsm_should_stop.
4767 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
4768 (until_next_fsm::do_async_reply_reason): Rename from
4769 until_next_fsm_async_reply_reason.
4770 (struct finish_command_fsm): Inherit from thread_fsm. Add
4771 constructor. Change type of breakpoint.
4772 (finish_command_fsm_ops): Remove.
4773 (new_finish_command_fsm): Remove.
4774 (finish_command_fsm::should_stop): Rename from
4775 finish_command_fsm_should_stop.
4776 (finish_command_fsm::clean_up): Rename from
4777 finish_command_fsm_clean_up.
4778 (finish_command_fsm::return_value): Rename from
4779 finish_command_fsm_return_value.
4780 (finish_command_fsm::do_async_reply_reason): Rename from
4781 finish_command_fsm_async_reply_reason.
4782 (finish_command): Update.
4783 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
4785 (call_thread_fsm_ops): Remove.
4786 (call_thread_fsm::call_thread_fsm): Rename from
4787 new_call_thread_fsm.
4788 (call_thread_fsm::should_stop): Rename from
4789 call_thread_fsm_should_stop.
4790 (call_thread_fsm::should_notify_stop): Rename from
4791 call_thread_fsm_should_notify_stop.
4792 (run_inferior_call, call_function_by_hand_dummy): Update.
4793 * cli/cli-interp.c (should_print_stop_to_console): Update.
4794 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
4795 Add constructor. Change type of location_breakpoint,
4797 (until_break_fsm_ops): Remove.
4798 (new_until_break_fsm): Remove.
4799 (until_break_fsm::should_stop): Rename from
4800 until_break_fsm_should_stop.
4801 (until_break_fsm::clean_up): Rename from
4802 until_break_fsm_clean_up.
4803 (until_break_fsm::do_async_reply_reason): Rename from
4804 until_break_fsm_async_reply_reason.
4805 (until_break_command): Update.
4806 * thread-fsm.c: Remove.
4807 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
4809 2019-02-07 Tom Tromey <tom@tromey.com>
4811 * yy-remap.h: Add include guard.
4812 * xtensa-tdep.h: Add include guard.
4813 * xcoffread.h: Rename include guard.
4814 * varobj-iter.h: Add include guard.
4815 * tui/tui.h: Rename include guard.
4816 * tui/tui-winsource.h: Rename include guard.
4817 * tui/tui-wingeneral.h: Rename include guard.
4818 * tui/tui-windata.h: Rename include guard.
4819 * tui/tui-win.h: Rename include guard.
4820 * tui/tui-stack.h: Rename include guard.
4821 * tui/tui-source.h: Rename include guard.
4822 * tui/tui-regs.h: Rename include guard.
4823 * tui/tui-out.h: Rename include guard.
4824 * tui/tui-layout.h: Rename include guard.
4825 * tui/tui-io.h: Rename include guard.
4826 * tui/tui-hooks.h: Rename include guard.
4827 * tui/tui-file.h: Rename include guard.
4828 * tui/tui-disasm.h: Rename include guard.
4829 * tui/tui-data.h: Rename include guard.
4830 * tui/tui-command.h: Rename include guard.
4831 * tic6x-tdep.h: Add include guard.
4832 * target/waitstatus.h: Rename include guard.
4833 * target/wait.h: Rename include guard.
4834 * target/target.h: Rename include guard.
4835 * target/resume.h: Rename include guard.
4836 * target-float.h: Rename include guard.
4837 * stabsread.h: Add include guard.
4838 * rs6000-tdep.h: Add include guard.
4839 * riscv-fbsd-tdep.h: Add include guard.
4840 * regformats/regdef.h: Rename include guard.
4841 * record.h: Rename include guard.
4842 * python/python.h: Rename include guard.
4843 * python/python-internal.h: Rename include guard.
4844 * python/py-stopevent.h: Rename include guard.
4845 * python/py-ref.h: Rename include guard.
4846 * python/py-record.h: Rename include guard.
4847 * python/py-record-full.h: Rename include guard.
4848 * python/py-record-btrace.h: Rename include guard.
4849 * python/py-instruction.h: Rename include guard.
4850 * python/py-events.h: Rename include guard.
4851 * python/py-event.h: Rename include guard.
4852 * procfs.h: Add include guard.
4853 * proc-utils.h: Add include guard.
4854 * p-lang.h: Add include guard.
4855 * or1k-tdep.h: Rename include guard.
4856 * observable.h: Rename include guard.
4857 * nto-tdep.h: Rename include guard.
4858 * nat/x86-linux.h: Rename include guard.
4859 * nat/x86-linux-dregs.h: Rename include guard.
4860 * nat/x86-gcc-cpuid.h: Add include guard.
4861 * nat/x86-dregs.h: Rename include guard.
4862 * nat/x86-cpuid.h: Rename include guard.
4863 * nat/ppc-linux.h: Rename include guard.
4864 * nat/mips-linux-watch.h: Rename include guard.
4865 * nat/linux-waitpid.h: Rename include guard.
4866 * nat/linux-ptrace.h: Rename include guard.
4867 * nat/linux-procfs.h: Rename include guard.
4868 * nat/linux-osdata.h: Rename include guard.
4869 * nat/linux-nat.h: Rename include guard.
4870 * nat/linux-namespaces.h: Rename include guard.
4871 * nat/linux-btrace.h: Rename include guard.
4872 * nat/glibc_thread_db.h: Rename include guard.
4873 * nat/gdb_thread_db.h: Rename include guard.
4874 * nat/gdb_ptrace.h: Rename include guard.
4875 * nat/fork-inferior.h: Rename include guard.
4876 * nat/amd64-linux-siginfo.h: Rename include guard.
4877 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
4878 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
4879 * nat/aarch64-linux.h: Rename include guard.
4880 * nat/aarch64-linux-hw-point.h: Rename include guard.
4881 * mn10300-tdep.h: Add include guard.
4882 * mips-linux-tdep.h: Add include guard.
4883 * mi/mi-parse.h: Rename include guard.
4884 * mi/mi-out.h: Rename include guard.
4885 * mi/mi-main.h: Rename include guard.
4886 * mi/mi-interp.h: Rename include guard.
4887 * mi/mi-getopt.h: Rename include guard.
4888 * mi/mi-console.h: Rename include guard.
4889 * mi/mi-common.h: Rename include guard.
4890 * mi/mi-cmds.h: Rename include guard.
4891 * mi/mi-cmd-break.h: Rename include guard.
4892 * m2-lang.h: Add include guard.
4893 * location.h: Rename include guard.
4894 * linux-record.h: Rename include guard.
4895 * linux-nat.h: Add include guard.
4896 * linux-fork.h: Add include guard.
4897 * i386-darwin-tdep.h: Rename include guard.
4898 * hppa-linux-offsets.h: Add include guard.
4899 * guile/guile.h: Rename include guard.
4900 * guile/guile-internal.h: Rename include guard.
4901 * gnu-nat.h: Rename include guard.
4902 * gdb-stabs.h: Rename include guard.
4903 * frv-tdep.h: Add include guard.
4904 * f-lang.h: Add include guard.
4905 * event-loop.h: Add include guard.
4906 * darwin-nat.h: Rename include guard.
4907 * cp-abi.h: Rename include guard.
4908 * config/sparc/nm-sol2.h: Rename include guard.
4909 * config/nm-nto.h: Rename include guard.
4910 * config/nm-linux.h: Add include guard.
4911 * config/i386/nm-i386gnu.h: Rename include guard.
4912 * config/djgpp/nl_types.h: Rename include guard.
4913 * config/djgpp/langinfo.h: Rename include guard.
4914 * compile/gcc-cp-plugin.h: Add include guard.
4915 * compile/gcc-c-plugin.h: Add include guard.
4916 * compile/compile.h: Rename include guard.
4917 * compile/compile-object-run.h: Rename include guard.
4918 * compile/compile-object-load.h: Rename include guard.
4919 * compile/compile-internal.h: Rename include guard.
4920 * compile/compile-cplus.h: Rename include guard.
4921 * compile/compile-c.h: Rename include guard.
4922 * common/xml-utils.h: Rename include guard.
4923 * common/x86-xstate.h: Rename include guard.
4924 * common/version.h: Rename include guard.
4925 * common/vec.h: Rename include guard.
4926 * common/tdesc.h: Rename include guard.
4927 * common/selftest.h: Rename include guard.
4928 * common/scoped_restore.h: Rename include guard.
4929 * common/scoped_mmap.h: Rename include guard.
4930 * common/scoped_fd.h: Rename include guard.
4931 * common/safe-iterator.h: Rename include guard.
4932 * common/run-time-clock.h: Rename include guard.
4933 * common/refcounted-object.h: Rename include guard.
4934 * common/queue.h: Rename include guard.
4935 * common/ptid.h: Rename include guard.
4936 * common/print-utils.h: Rename include guard.
4937 * common/preprocessor.h: Rename include guard.
4938 * common/pathstuff.h: Rename include guard.
4939 * common/observable.h: Rename include guard.
4940 * common/netstuff.h: Rename include guard.
4941 * common/job-control.h: Rename include guard.
4942 * common/host-defs.h: Rename include guard.
4943 * common/gdb_wait.h: Rename include guard.
4944 * common/gdb_vecs.h: Rename include guard.
4945 * common/gdb_unlinker.h: Rename include guard.
4946 * common/gdb_unique_ptr.h: Rename include guard.
4947 * common/gdb_tilde_expand.h: Rename include guard.
4948 * common/gdb_sys_time.h: Rename include guard.
4949 * common/gdb_string_view.h: Rename include guard.
4950 * common/gdb_splay_tree.h: Rename include guard.
4951 * common/gdb_setjmp.h: Rename include guard.
4952 * common/gdb_ref_ptr.h: Rename include guard.
4953 * common/gdb_optional.h: Rename include guard.
4954 * common/gdb_locale.h: Rename include guard.
4955 * common/gdb_assert.h: Rename include guard.
4956 * common/filtered-iterator.h: Rename include guard.
4957 * common/filestuff.h: Rename include guard.
4958 * common/fileio.h: Rename include guard.
4959 * common/environ.h: Rename include guard.
4960 * common/common-utils.h: Rename include guard.
4961 * common/common-types.h: Rename include guard.
4962 * common/common-regcache.h: Rename include guard.
4963 * common/common-inferior.h: Rename include guard.
4964 * common/common-gdbthread.h: Rename include guard.
4965 * common/common-exceptions.h: Rename include guard.
4966 * common/common-defs.h: Rename include guard.
4967 * common/common-debug.h: Rename include guard.
4968 * common/cleanups.h: Rename include guard.
4969 * common/buffer.h: Rename include guard.
4970 * common/btrace-common.h: Rename include guard.
4971 * common/break-common.h: Rename include guard.
4972 * cli/cli-utils.h: Rename include guard.
4973 * cli/cli-style.h: Rename include guard.
4974 * cli/cli-setshow.h: Rename include guard.
4975 * cli/cli-script.h: Rename include guard.
4976 * cli/cli-interp.h: Rename include guard.
4977 * cli/cli-decode.h: Rename include guard.
4978 * cli/cli-cmds.h: Rename include guard.
4979 * charset-list.h: Add include guard.
4980 * buildsym-legacy.h: Rename include guard.
4981 * bfin-tdep.h: Add include guard.
4982 * ax.h: Rename include guard.
4983 * arm-linux-tdep.h: Add include guard.
4984 * arm-fbsd-tdep.h: Add include guard.
4985 * arch/xtensa.h: Rename include guard.
4986 * arch/tic6x.h: Add include guard.
4987 * arch/i386.h: Add include guard.
4988 * arch/arm.h: Rename include guard.
4989 * arch/arm-linux.h: Rename include guard.
4990 * arch/arm-get-next-pcs.h: Rename include guard.
4991 * arch/amd64.h: Add include guard.
4992 * arch/aarch64-insn.h: Rename include guard.
4993 * arch-utils.h: Rename include guard.
4994 * annotate.h: Add include guard.
4995 * amd64-darwin-tdep.h: Rename include guard.
4996 * aarch64-linux-tdep.h: Add include guard.
4997 * aarch64-fbsd-tdep.h: Add include guard.
4998 * aarch32-linux-nat.h: Add include guard.
5000 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5002 * macrotab.c (macro_define_internal): New function that
5003 factorizes macro_define_object_internal and macro_define_function
5005 (macro_define_object_internal): Use macro_define_internal.
5006 (macro_define_function): Likewise.
5008 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5010 * macrocmd.c (extract_identifier): Return
5011 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
5014 2019-02-06 John Baldwin <jhb@FreeBSD.org>
5016 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
5018 2019-02-05 Tom Tromey <tom@tromey.com>
5020 * target.c (target_stack::unpush): Move assertion earlier.
5022 2019-01-30 Tom Tromey <tom@tromey.com>
5025 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
5026 (gdbpy_parse_and_eval): Likewise.
5027 * python/python-internal.h (gdbpy_allow_threads): New class.
5029 2019-01-28 John Baldwin <jhb@FreeBSD.org>
5031 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
5032 (aarch64_fbsd_fpregmap): Move earlier.
5033 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
5034 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5035 instead of individual calls to trad_frame_set_reg_addr.
5036 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
5038 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
5039 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5040 instead of individual calls to trad_frame_set_reg_addr.
5042 2019-01-28 Alan Hayward <alan.hayward@arm.com>
5044 * CONTRIBUTE: Replace contribution list with wiki link.
5046 2019-01-25 Tom Tromey <tom@tromey.com>
5048 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
5050 2019-01-25 Tom Tromey <tom@tromey.com>
5052 * xtensa-linux-nat.c: Fix common/ includes.
5053 * xml-support.h: Fix common/ includes.
5054 * xml-support.c: Fix common/ includes.
5055 * x86-linux-nat.c: Fix common/ includes.
5056 * windows-nat.c: Fix common/ includes.
5057 * varobj.h: Fix common/ includes.
5058 * varobj.c: Fix common/ includes.
5059 * value.c: Fix common/ includes.
5060 * valops.c: Fix common/ includes.
5061 * utils.c: Fix common/ includes.
5062 * unittests/xml-utils-selftests.c: Fix common/ includes.
5063 * unittests/utils-selftests.c: Fix common/ includes.
5064 * unittests/unpack-selftests.c: Fix common/ includes.
5065 * unittests/tracepoint-selftests.c: Fix common/ includes.
5066 * unittests/style-selftests.c: Fix common/ includes.
5067 * unittests/string_view-selftests.c: Fix common/ includes.
5068 * unittests/scoped_restore-selftests.c: Fix common/ includes.
5069 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
5070 * unittests/scoped_fd-selftests.c: Fix common/ includes.
5071 * unittests/rsp-low-selftests.c: Fix common/ includes.
5072 * unittests/parse-connection-spec-selftests.c: Fix common/
5074 * unittests/optional-selftests.c: Fix common/ includes.
5075 * unittests/offset-type-selftests.c: Fix common/ includes.
5076 * unittests/observable-selftests.c: Fix common/ includes.
5077 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
5078 * unittests/memrange-selftests.c: Fix common/ includes.
5079 * unittests/memory-map-selftests.c: Fix common/ includes.
5080 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
5081 * unittests/function-view-selftests.c: Fix common/ includes.
5082 * unittests/environ-selftests.c: Fix common/ includes.
5083 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
5084 * unittests/common-utils-selftests.c: Fix common/ includes.
5085 * unittests/cli-utils-selftests.c: Fix common/ includes.
5086 * unittests/array-view-selftests.c: Fix common/ includes.
5087 * ui-file.c: Fix common/ includes.
5088 * tui/tui-io.c: Fix common/ includes.
5089 * tracepoint.h: Fix common/ includes.
5090 * tracepoint.c: Fix common/ includes.
5091 * tracefile-tfile.c: Fix common/ includes.
5092 * top.h: Fix common/ includes.
5093 * top.c: Fix common/ includes.
5094 * thread.c: Fix common/ includes.
5095 * target/waitstatus.h: Fix common/ includes.
5096 * target/waitstatus.c: Fix common/ includes.
5097 * target.h: Fix common/ includes.
5098 * target.c: Fix common/ includes.
5099 * target-memory.c: Fix common/ includes.
5100 * target-descriptions.c: Fix common/ includes.
5101 * symtab.h: Fix common/ includes.
5102 * symfile.c: Fix common/ includes.
5103 * stap-probe.c: Fix common/ includes.
5104 * spu-linux-nat.c: Fix common/ includes.
5105 * sparc-nat.c: Fix common/ includes.
5106 * source.c: Fix common/ includes.
5107 * solib.c: Fix common/ includes.
5108 * solib-target.c: Fix common/ includes.
5109 * ser-unix.c: Fix common/ includes.
5110 * ser-tcp.c: Fix common/ includes.
5111 * ser-pipe.c: Fix common/ includes.
5112 * ser-base.c: Fix common/ includes.
5113 * selftest-arch.c: Fix common/ includes.
5114 * s12z-tdep.c: Fix common/ includes.
5115 * rust-exp.y: Fix common/ includes.
5116 * rs6000-aix-tdep.c: Fix common/ includes.
5117 * riscv-tdep.c: Fix common/ includes.
5118 * remote.c: Fix common/ includes.
5119 * remote-notif.h: Fix common/ includes.
5120 * remote-fileio.h: Fix common/ includes.
5121 * remote-fileio.c: Fix common/ includes.
5122 * regcache.h: Fix common/ includes.
5123 * regcache.c: Fix common/ includes.
5124 * record-btrace.c: Fix common/ includes.
5125 * python/python.c: Fix common/ includes.
5126 * python/py-type.c: Fix common/ includes.
5127 * python/py-inferior.c: Fix common/ includes.
5128 * progspace.h: Fix common/ includes.
5129 * producer.c: Fix common/ includes.
5130 * procfs.c: Fix common/ includes.
5131 * proc-api.c: Fix common/ includes.
5132 * printcmd.c: Fix common/ includes.
5133 * ppc-linux-nat.c: Fix common/ includes.
5134 * parser-defs.h: Fix common/ includes.
5135 * osdata.c: Fix common/ includes.
5136 * obsd-nat.c: Fix common/ includes.
5137 * nat/x86-linux.c: Fix common/ includes.
5138 * nat/x86-linux-dregs.c: Fix common/ includes.
5139 * nat/x86-dregs.h: Fix common/ includes.
5140 * nat/x86-dregs.c: Fix common/ includes.
5141 * nat/ppc-linux.c: Fix common/ includes.
5142 * nat/mips-linux-watch.h: Fix common/ includes.
5143 * nat/mips-linux-watch.c: Fix common/ includes.
5144 * nat/linux-waitpid.c: Fix common/ includes.
5145 * nat/linux-ptrace.h: Fix common/ includes.
5146 * nat/linux-ptrace.c: Fix common/ includes.
5147 * nat/linux-procfs.c: Fix common/ includes.
5148 * nat/linux-personality.c: Fix common/ includes.
5149 * nat/linux-osdata.c: Fix common/ includes.
5150 * nat/linux-namespaces.c: Fix common/ includes.
5151 * nat/linux-btrace.h: Fix common/ includes.
5152 * nat/linux-btrace.c: Fix common/ includes.
5153 * nat/fork-inferior.c: Fix common/ includes.
5154 * nat/amd64-linux-siginfo.c: Fix common/ includes.
5155 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
5156 * nat/aarch64-linux.c: Fix common/ includes.
5157 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
5158 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
5159 * namespace.h: Fix common/ includes.
5160 * mips-linux-tdep.c: Fix common/ includes.
5161 * minsyms.c: Fix common/ includes.
5162 * mi/mi-parse.h: Fix common/ includes.
5163 * mi/mi-main.c: Fix common/ includes.
5164 * mi/mi-cmd-env.c: Fix common/ includes.
5165 * memrange.h: Fix common/ includes.
5166 * memattr.c: Fix common/ includes.
5167 * maint.h: Fix common/ includes.
5168 * maint.c: Fix common/ includes.
5169 * main.c: Fix common/ includes.
5170 * machoread.c: Fix common/ includes.
5171 * location.c: Fix common/ includes.
5172 * linux-thread-db.c: Fix common/ includes.
5173 * linux-nat.c: Fix common/ includes.
5174 * linux-fork.c: Fix common/ includes.
5175 * inline-frame.c: Fix common/ includes.
5176 * infrun.c: Fix common/ includes.
5177 * inflow.c: Fix common/ includes.
5178 * inferior.h: Fix common/ includes.
5179 * inferior.c: Fix common/ includes.
5180 * infcmd.c: Fix common/ includes.
5181 * inf-ptrace.c: Fix common/ includes.
5182 * inf-child.c: Fix common/ includes.
5183 * ia64-linux-nat.c: Fix common/ includes.
5184 * i387-tdep.c: Fix common/ includes.
5185 * i386-tdep.c: Fix common/ includes.
5186 * i386-linux-tdep.c: Fix common/ includes.
5187 * i386-linux-nat.c: Fix common/ includes.
5188 * i386-go32-tdep.c: Fix common/ includes.
5189 * i386-fbsd-tdep.c: Fix common/ includes.
5190 * i386-fbsd-nat.c: Fix common/ includes.
5191 * guile/scm-type.c: Fix common/ includes.
5192 * guile/guile.c: Fix common/ includes.
5193 * go32-nat.c: Fix common/ includes.
5194 * gnu-nat.c: Fix common/ includes.
5195 * gdbthread.h: Fix common/ includes.
5196 * gdbarch-selftests.c: Fix common/ includes.
5197 * gdb_usleep.c: Fix common/ includes.
5198 * gdb_select.h: Fix common/ includes.
5199 * gdb_bfd.c: Fix common/ includes.
5200 * gcore.c: Fix common/ includes.
5201 * fork-child.c: Fix common/ includes.
5202 * findvar.c: Fix common/ includes.
5203 * fbsd-nat.c: Fix common/ includes.
5204 * event-top.c: Fix common/ includes.
5205 * event-loop.c: Fix common/ includes.
5206 * dwarf2read.c: Fix common/ includes.
5207 * dwarf2loc.c: Fix common/ includes.
5208 * dwarf2-frame.c: Fix common/ includes.
5209 * dwarf-index-cache.c: Fix common/ includes.
5210 * dtrace-probe.c: Fix common/ includes.
5211 * disasm-selftests.c: Fix common/ includes.
5212 * defs.h: Fix common/ includes.
5213 * csky-tdep.c: Fix common/ includes.
5214 * cp-valprint.c: Fix common/ includes.
5215 * cp-support.h: Fix common/ includes.
5216 * cp-support.c: Fix common/ includes.
5217 * corelow.c: Fix common/ includes.
5218 * completer.h: Fix common/ includes.
5219 * completer.c: Fix common/ includes.
5220 * compile/compile.c: Fix common/ includes.
5221 * compile/compile-loc2c.c: Fix common/ includes.
5222 * compile/compile-cplus-types.c: Fix common/ includes.
5223 * compile/compile-cplus-symbols.c: Fix common/ includes.
5224 * command.h: Fix common/ includes.
5225 * cli/cli-dump.c: Fix common/ includes.
5226 * cli/cli-cmds.c: Fix common/ includes.
5227 * charset.c: Fix common/ includes.
5228 * build-id.c: Fix common/ includes.
5229 * btrace.h: Fix common/ includes.
5230 * btrace.c: Fix common/ includes.
5231 * breakpoint.h: Fix common/ includes.
5232 * breakpoint.c: Fix common/ includes.
5234 (enum agent_op): Fix common/ includes.
5235 * ax-general.c (struct aop_map): Fix common/ includes.
5236 * ax-gdb.c: Fix common/ includes.
5237 * auxv.c: Fix common/ includes.
5238 * auto-load.c: Fix common/ includes.
5239 * arm-tdep.c: Fix common/ includes.
5240 * arch/riscv.c: Fix common/ includes.
5241 * arch/ppc-linux-common.c: Fix common/ includes.
5242 * arch/i386.c: Fix common/ includes.
5243 * arch/arm.c: Fix common/ includes.
5244 * arch/arm-linux.c: Fix common/ includes.
5245 * arch/arm-get-next-pcs.c: Fix common/ includes.
5246 * arch/amd64.c: Fix common/ includes.
5247 * arch/aarch64.c: Fix common/ includes.
5248 * arch/aarch64-insn.c: Fix common/ includes.
5249 * arch-utils.c: Fix common/ includes.
5250 * amd64-windows-tdep.c: Fix common/ includes.
5251 * amd64-tdep.c: Fix common/ includes.
5252 * amd64-sol2-tdep.c: Fix common/ includes.
5253 * amd64-obsd-tdep.c: Fix common/ includes.
5254 * amd64-nbsd-tdep.c: Fix common/ includes.
5255 * amd64-linux-tdep.c: Fix common/ includes.
5256 * amd64-linux-nat.c: Fix common/ includes.
5257 * amd64-fbsd-tdep.c: Fix common/ includes.
5258 * amd64-fbsd-nat.c: Fix common/ includes.
5259 * amd64-dicos-tdep.c: Fix common/ includes.
5260 * amd64-darwin-tdep.c: Fix common/ includes.
5261 * agent.c: Fix common/ includes.
5262 * ada-lang.h: Fix common/ includes.
5263 * ada-lang.c: Fix common/ includes.
5264 * aarch64-tdep.c: Fix common/ includes.
5266 2019-01-25 Tom Tromey <tom@tromey.com>
5268 * common/create-version.sh: Use common/version.h.
5270 2019-01-24 Pedro Alves <palves@redhat.com>
5272 * infrun.c (signal_stop, signal_print, signal_program)
5273 (signal_catch, signal_pass): Now arrays instead of pointers.
5274 (update_signals_program_target, do_target_resume)
5275 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
5276 * linux-nat.c (linux_nat_target::pass_signals)
5277 (linux_nat_target::create_inferior, linux_nat_target::attach):
5279 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
5280 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
5281 * procfs.c (procfs_target::pass_signals): Adjust.
5282 * record-full.c (record_full_target::resume): Adjust.
5283 * remote.c (remote_target::pass_signals)
5284 (remote_target::program_signals): Adjust.
5285 * target-debug.h (target_debug_print_signals): Now takes a
5286 gdb::array_view as parameter. Adjust.
5287 * target.h (target_ops) <pass_signals, program_signals>: Replace
5288 pointer and length parameters with gdb::array_view.
5289 (target_pass_signals, target_program_signals): Likewise.
5290 * target-delegates.c: Regenerate.
5292 2019-01-24 Pedro Alves <palves@redhat.com>
5294 * common/forward-scope-exit.h
5295 (forward_scope_exit::forward_scope_exit): Pass arguments to
5296 m_bind_function directly, instead of creating a std::bind and
5299 2019-01-24 Alan Hayward <alan.hayward@arm.com>
5301 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5303 (pass_in_v_vfp_candidate): Likewise.
5305 2019-01-23 Tom Tromey <tom@tromey.com>
5306 Pedro Alves <palves@redhat.com>
5308 * regcache.c (class regcache_invalidator): Remove.
5309 (regcache::raw_write): Use make_scope_exit.
5311 2019-01-23 Tom Tromey <tom@tromey.com>
5313 * ui-out.h (class ui_out_emit_type): Update comment.
5315 2019-01-23 Tom Tromey <tom@tromey.com>
5317 * infrun.c (fetch_inferior_event): Update comment.
5319 2019-01-23 Tom Tromey <tom@tromey.com>
5320 Pedro Alves <palves@redhat.com>
5322 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
5324 (fetch_inferior_event): Use SCOPE_EXIT.
5327 2019-01-23 Tom Tromey <tom@tromey.com>
5328 Pedro Alves <palves@redhat.com>
5330 * infrun.c (disable_thread_events): Delete.
5331 (stop_all_threads): Use SCOPE_EXIT.
5333 2019-01-23 Tom Tromey <tom@tromey.com>
5334 Pedro Alves <palves@redhat.com>
5336 * symfile.c: Include forward-scope-exit.h.
5337 (clear_symtab_users_cleanup): Replace forward declaration with
5338 a FORWARD_SCOPE_EXIT.
5339 (syms_from_objfile_1): Use the forward_scope_exit and
5340 gdb::optional instead of cleanup_function.
5341 (reread_symbols): Use the forward_scope_exit instead of
5343 (clear_symtab_users_cleanup): Remove function.
5345 2019-01-23 Tom Tromey <tom@tromey.com>
5346 Pedro Alves <palves@redhat.com>
5348 * linux-nat.c: Include scope-exit.h.
5349 (cleanup_target_stop): Remove.
5350 (linux_nat_target::static_tracepoint_markers_by_strid): Use
5353 2019-01-23 Tom Tromey <tom@tromey.com>
5354 Pedro Alves <palves@redhat.com>
5356 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
5357 (call_function_by_hand_dummy): Use SCOPE_EXIT.
5359 2019-01-23 Tom Tromey <tom@tromey.com>
5360 Andrew Burgess <andrew.burgess@embecosm.com>
5361 Pedro Alves <palves@redhat.com>
5363 * infrun.c (fetch_inferior_event): Use scope_exit.
5364 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
5365 * top.c (execute_command): Use scope_exit.
5366 * breakpoint.c (bpstat_do_actions): Use scope_exit.
5367 * utils.c (do_bpstat_clear_actions_cleanup)
5368 (make_bpstat_clear_actions_cleanup): Remove.
5370 2019-01-23 Tom Tromey <tom@tromey.com>
5371 Pedro Alves <palves@redhat.com>
5373 * infrun.c: Include "common/scope-exit.h"
5374 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
5375 (wait_for_inferior): Use SCOPE_EXIT.
5376 (fetch_inferior_event): Use scope_exit.
5378 2019-01-23 Tom Tromey <tom@tromey.com>
5379 Pedro Alves <palves@redhat.com>
5381 * breakpoint.c (create_breakpoint): Remove cleanup.
5383 2019-01-23 Tom Tromey <tom@tromey.com>
5384 Andrew Burgess <andrew.burgess@embecosm.com>
5385 Pedro Alves <palves@redhat.com>
5387 2019-01-23 Pedro Alves <palves@redhat.com>
5389 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
5391 2019-01-23 Pedro Alves <palves@redhat.com>
5392 Andrew Burgess <andrew.burgess@embecosm.com>
5394 * gdbthread.h: Include "common/forward-scope-exit.h".
5395 (scoped_finish_thread_state): Redefine custom class in terms of
5398 2019-01-23 Pedro Alves <palves@redhat.com>
5399 Andrew Burgess <andrew.burgess@embecosm.com>
5401 * common/forward-scope-exit.h: New file.
5403 2019-01-23 Pedro Alves <palves@redhat.com>
5404 Andrew Burgess <andrew.burgess@embecosm.com>
5405 Tom Tromey <tom@tromey.com>
5407 * common/scope-exit.h: New file.
5409 2019-01-23 Pedro Alves <palves@redhat.com>
5411 * common/preprocessor.h (ESC): Rename to ...
5412 (ESC_PARENS): ... this.
5413 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
5414 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
5416 2019-01-23 Tom Tromey <tom@tromey.com>
5418 * language.h (class scoped_switch_to_sym_language_if_auto):
5419 Initialize m_lang in both cases.
5421 2019-01-23 Alan Hayward <alan.hayward@arm.com>
5423 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
5426 2019-01-22 Tom Tromey <tom@tromey.com>
5428 * corelow.c: Do not include sys/file.h.
5430 2019-01-22 Tom Tromey <tom@tromey.com>
5432 * tui/tui-wingeneral.h: Include gdb_curses.h.
5434 2019-01-22 Tom Tromey <tom@tromey.com>
5436 * source-cache.h (class source_cache) <get_source_lines,
5437 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
5439 2019-01-22 Tom Tromey <tom@tromey.com>
5441 * remote-fileio.h (struct remote_target): Declare.
5443 2019-01-22 Tom Tromey <tom@tromey.com>
5445 * python/py-arch.c: Do not include py-ref.h.
5446 * python/py-bpevent.c: Do not include py-ref.h.
5447 * python/py-cmd.c: Do not include py-ref.h.
5448 * python/py-continueevent.c: Do not include py-ref.h.
5449 * python/py-event.h: Do not include py-ref.h.
5450 * python/py-evtregistry.c: Do not include py-ref.h.
5451 * python/py-finishbreakpoint.c: Do not include py-ref.h.
5452 * python/py-frame.c: Do not include py-ref.h.
5453 * python/py-framefilter.c: Do not include py-ref.h.
5454 * python/py-function.c: Do not include py-ref.h.
5455 * python/py-infevents.c: Do not include py-ref.h.
5456 * python/py-linetable.c: Do not include py-ref.h.
5457 * python/py-objfile.c: Do not include py-ref.h.
5458 * python/py-param.c: Do not include py-ref.h.
5459 * python/py-prettyprint.c: Do not include py-ref.h.
5460 * python/py-progspace.c: Do not include py-ref.h.
5461 * python/py-symbol.c: Do not include py-ref.h.
5462 * python/py-symtab.c: Do not include py-ref.h.
5463 * python/py-type.c: Do not include py-ref.h.
5464 * python/py-unwind.c: Do not include py-ref.h.
5465 * python/py-utils.c: Do not include py-ref.h.
5466 * python/py-value.c: Do not include py-ref.h.
5467 * python/py-varobj.c: Do not include py-ref.h.
5468 * python/py-xmethods.c: Do not include py-ref.h.
5469 * python/python.c: Do not include py-ref.h.
5470 * varobj.c: Do not include py-ref.h.
5472 2019-01-22 Tom Tromey <tom@tromey.com>
5474 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
5477 2019-01-22 Tom Tromey <tom@tromey.com>
5479 * compile/compile-cplus-types.c: Remove a comment by #include.
5481 2019-01-22 Tom Tromey <tom@tromey.com>
5483 * compile/gcc-c-plugin.h: Include compile-internal.h.
5485 2019-01-22 Tom Tromey <tom@tromey.com>
5487 * stabsread.c (EXTERN): Do not define.
5488 (symnum, next_symbol_text_func, processing_gcc_compilation)
5489 (within_function, global_sym_chain, global_stabs)
5490 (previous_stab_code, this_object_header_files)
5491 (n_this_object_header_files)
5492 (n_allocated_this_object_header_files): Define.
5493 * stabsread.h (EXTERN): Never define. Use "extern".
5495 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5497 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
5500 2019-01-21 Tom Tromey <tom@tromey.com>
5502 * ui-out.c: Fix includes.
5503 * tui/tui-source.c: Fix includes.
5504 * target.c: Fix includes.
5505 * remote.c: Fix includes.
5506 * regcache.c: Fix includes.
5507 * python/py-block.c: Fix includes.
5508 * printcmd.c: Fix includes.
5509 * or1k-tdep.c: Fix includes.
5510 * mi/mi-main.c: Fix includes.
5511 * m32r-tdep.c: Fix includes.
5512 * csky-tdep.c: Fix includes.
5513 * compile/compile-cplus-types.c: Fix includes.
5514 * cli/cli-interp.c: Fix includes.
5516 2019-01-21 Alan Hayward <alan.hayward@arm.com>
5518 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5521 2019-01-16 Tom Tromey <tom@tromey.com>
5523 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
5525 (struct objfile) <msymbols_range>: Move from top level.
5526 <msymbols>: New method.
5527 (class objfile_msymbols): Remove.
5528 * symtab.c (default_collect_symbol_completion_matches_break_on):
5530 * symmisc.c (dump_msymbols): Update.
5531 * stabsread.c (scan_file_globals): Update.
5532 * objc-lang.c (info_selectors_command, info_classes_command)
5533 (find_methods): Update.
5534 * minsyms.c (find_solib_trampoline_target): Update.
5535 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
5536 * coffread.c (coff_symfile_read): Update.
5537 * ada-lang.c (ada_lookup_simple_minsym)
5538 (ada_collect_symbol_completion_matches): Update.
5540 2019-01-16 Tom Tromey <tom@tromey.com>
5542 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
5543 type. Remove no-argument constructor.
5544 <iterator::operator++>: Simplify.
5546 <end>: Use minimal_symbol_count.
5548 2019-01-16 Tom Tromey <tom@tromey.com>
5550 * objfiles.h (struct objfile) <psymtabs>: New method.
5551 (class objfile_psymtabs): Remove.
5552 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
5554 <range>: New method.
5555 (require_partial_symbols): Change return type.
5556 * psymtab.c (require_partial_symbols)
5557 (psym_expand_symtabs_matching): Update.
5558 * mdebugread.c (parse_partial_symbols): Update.
5559 * dbxread.c (dbx_end_psymtab): Update.
5561 2019-01-15 Tom Tromey <tom@tromey.com>
5563 * symtab.c (lookup_objfile_from_block)
5564 (lookup_symbol_in_objfile_symtabs)
5565 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
5566 (find_line_symtab, info_sources_command)
5567 (default_collect_symbol_completion_matches_break_on)
5568 (make_source_files_completion_list): Update.
5569 * symmisc.c (print_objfile_statistics, dump_objfile)
5570 (maintenance_print_symbols, maintenance_info_symtabs)
5571 (maintenance_check_symtabs, maintenance_info_line_tables):
5573 * source.c (select_source_symtab)
5574 (forget_cached_source_info_for_objfile): Update.
5575 * objfiles.h (class objfile_compunits): Remove.
5576 (struct objfile) <compunits_range>: New typedef.
5577 (compunits): New method.
5578 * objfiles.c (objfile_relocate1): Update.
5579 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
5580 * maint.c (count_symtabs_and_blocks): Update.
5581 * linespec.c (iterate_over_all_matching_symtabs): Update.
5582 * cp-support.c (add_symbol_overload_list_qualified): Update.
5583 * coffread.c (coff_symtab_read): Update.
5584 * ada-lang.c (add_nonlocal_symbols)
5585 (ada_collect_symbol_completion_matches)
5586 (ada_add_global_exceptions): Update.
5588 2019-01-15 Tom Tromey <tom@tromey.com>
5590 * progspace.h (program_space) <objfiles_safe_range>: New
5592 <objfiles_safe>: New method.
5593 * objfiles.h (class all_objfiles_safe): Remove.
5594 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
5595 * jit.c (jit_inferior_exit_hook): Update.
5597 2019-01-17 Tom Tromey <tom@tromey.com>
5599 * progspace.h (program_space) <objfiles_range>: New typedef.
5600 <objfiles>: New method.
5601 <objfiles_head>: Rename from objfiles.
5602 (object_files): Update.
5603 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
5604 * guile/scm-pretty-print.c
5605 (ppscm_find_pretty_printer_from_objfiles): Update.
5606 * guile/scm-objfile.c (gdbscm_objfiles): Update.
5607 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
5609 * python/py-progspace.c (pspy_get_objfiles): Update.
5610 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
5612 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
5613 (objfpy_lookup_objfile_by_build_id): Update.
5614 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
5615 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
5617 * symtab.c (iterate_over_symtabs, matching_obj_sections)
5618 (expand_symtab_containing_pc, lookup_objfile_from_block)
5619 (lookup_static_symbol, basic_lookup_transparent_type)
5620 (find_pc_sect_compunit_symtab, find_symbol_at_address)
5621 (find_line_symtab, info_sources_command)
5622 (default_collect_symbol_completion_matches_break_on)
5623 (make_source_files_completion_list, find_main_name): Update.
5624 * symmisc.c (print_symbol_bcache_statistics)
5625 (print_objfile_statistics, maintenance_print_symbols)
5626 (maintenance_print_msymbols, maintenance_print_objfiles)
5627 (maintenance_info_symtabs, maintenance_check_symtabs)
5628 (maintenance_expand_symtabs, maintenance_info_line_tables):
5630 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
5631 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
5632 (map_overlay_command, unmap_overlay_command)
5633 (simple_overlay_update, expand_symtabs_matching)
5634 (map_symbol_filenames): Update.
5635 * symfile-debug.c (set_debug_symfile): Update.
5636 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
5638 * source.c (select_source_symtab, forget_cached_source_info):
5640 * solib.c (solib_read_symbols): Update.
5641 * solib-spu.c (append_ocl_sos): Update.
5642 * psymtab.c (maintenance_print_psymbols)
5643 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
5644 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
5645 * printcmd.c (info_symbol_command): Update.
5646 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
5648 * objfiles.h (class all_objfiles): Remove.
5649 * objfiles.c (have_partial_symbols, have_full_symbols)
5650 (have_minimal_symbols, qsort_cmp, update_section_map)
5651 (shared_objfile_contains_address_p)
5652 (default_iterate_over_objfiles_in_search_order): Update.
5653 * objc-lang.c (info_selectors_command, info_classes_command)
5654 (find_methods): Update.
5655 * minsyms.c (find_solib_trampoline_target): Update.
5656 * maint.c (maintenance_info_sections)
5657 (maintenance_translate_address, count_symtabs_and_blocks):
5659 * main.c (captured_main_1): Update.
5660 * linux-thread-db.c (try_thread_db_load_from_pdir)
5661 (has_libpthread): Update.
5662 * linespec.c (iterate_over_all_matching_symtabs)
5663 (search_minsyms_for_name): Update.
5664 * jit.c (jit_find_objf_with_entry_addr): Update.
5665 * hppa-tdep.c (find_unwind_entry)
5666 (hppa_lookup_stub_minimal_symbol): Update.
5667 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
5669 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
5670 (elf_gnu_ifunc_resolve_by_got): Update.
5671 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
5672 * dwarf-index-write.c (save_gdb_index_command): Update.
5673 * cp-support.c (add_symbol_overload_list_qualified): Update.
5674 * breakpoint.c (create_overlay_event_breakpoint)
5675 (create_longjmp_master_breakpoint)
5676 (create_std_terminate_master_breakpoint)
5677 (create_exception_master_breakpoint): Update.
5678 * blockframe.c (find_pc_partial_function): Update.
5679 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
5680 (ada_collect_symbol_completion_matches)
5681 (ada_add_global_exceptions): Update.
5683 2019-01-17 Tom Tromey <tom@tromey.com>
5685 * solib-target.c (lm_info_target_p): Remove typedef. Don't
5687 (solib_target_parse_libraries): Change return type.
5688 (library_list_start_segment, library_list_start_section)
5689 (library_list_end_library, library_list_start_library); Update.
5690 (solib_target_free_library_list): Remove.
5691 (solib_target_parse_libraries): Remove cleanup. Change return
5693 (solib_target_current_sos): Update.
5695 2019-01-17 Tom Tromey <tromey@bapiya>
5697 * valprint.c: Replace "the the" with "the".
5698 * symtab.c: Replace "the the" with "the".
5699 * solib.c: Replace "the the" with "the".
5700 * solib-dsbt.c: Replace "the the" with "the".
5701 * linespec.c: Replace "the the" with "the".
5702 * dwarf2loc.h: Replace "the the" with "the".
5703 * amd64-windows-tdep.c: Replace "the the" with "the".
5704 * aarch64-tdep.c: Replace "the the" with "the".
5706 2019-01-16 Keith Seitz <keiths@redhat.com>
5709 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
5710 <builder>: Rename to ..
5711 <m_builder>: ... this and make private.
5712 (dwarf2_cu::get_builder): New method. Change all users of
5713 `builder' to use this method.
5714 (dwarf2_start_symtab): Move to ...
5715 (dwarf2_cu::start_symtab): ... here. Update all callers
5716 (setup_type_unit_groups): Move to ...
5717 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
5719 (dwarf2_cu::reset_builder): New method.
5720 (process_full_compunit, process_full_type_unit): Use
5721 dwarf2_cu::reset_builder.
5722 (follow_die_offset): Record the ancestor CU if it is different
5723 from the followed DIE's CU.
5724 (follow_die_sig_1): Likewise.
5726 2019-01-15 Tom Tromey <tom@tromey.com>
5728 * remote.c (class remote_state) <buf>: Now a char_vector.
5730 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
5732 (remote_target::getpkt_or_notif_sane_1)
5733 (remote_target::getpkt_sane)
5734 (remote_target::getpkt_or_notif_sane): Likewise.
5735 (class remote_target) <putpkt>: New overload.
5736 (remote_target::read_frame): Change type of "buf_p". Remove
5738 (packet_ok): New overload.
5739 (packet_check_result): New overload.
5742 2019-01-14 Tom Tromey <tom@tromey.com>
5744 * remote-notif.c (handle_notification, remote_notif_ack)
5745 (remote_notif_parse): Make "buf" const.
5746 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
5748 (remote_notif_parse, remote_notif_ack, handle_notification):
5750 * remote.c (remote_notif_stop_parse): Make "buf" const.
5751 (remote_target::remote_parse_stop_reply): Make "buf" const.
5752 (remote_notif_stop_ack): Make "buf" const.
5754 2019-01-14 Tom Tromey <tom@tromey.com>
5756 * remote.c (remote_console_output): Make parameter const.
5758 2019-01-14 Tom Tromey <tom@tromey.com>
5760 * target-debug.h (target_debug_print_signals): Constify.
5761 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
5762 * procfs.c (procfs_target::pass_signals): Update.
5763 * linux-nat.c (linux_nat_target::pass_signals): Update.
5764 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
5765 * target-delegates.c: Rebuild.
5766 * remote.c (remote_target::program_signals): Update.
5767 (remote_target::pass_signals): Update.
5768 * target.c (target_pass_signals): Constify argument.
5769 (target_program_signals): Likewise.
5770 * target.h (struct target_ops) <pass_signals, program_signals>:
5772 (target_pass_signals, target_program_signals): Constify argument.
5774 2019-01-14 Tom Tromey <tom@tromey.com>
5777 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
5779 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5781 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
5783 * rs6000-tdep.c: Include reggroups.h.
5784 (IS_V_ALIAS_PSEUDOREG): Define.
5785 (rs6000_register_name): Return names for the "vX" aliases.
5786 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
5787 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
5788 aliases. Call default_register_reggroup_p for all other
5790 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
5792 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
5793 Handle "vX" aliases.
5794 (v_alias_pseudo_register_collect): New function.
5795 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
5796 (rs6000_gdbarch_init): Initialize "vX" aliases as
5797 pseudo-registers. Restore registration of
5798 rs6000_pseudo_register_reggroup_p with
5799 set_tdesc_pseudo_register_reggroup_p.
5801 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
5803 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
5804 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
5805 set_gdbarch_num_pseudo_regs.
5807 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5809 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
5810 Remove arg prefixname, add do_set and do_show.
5811 Add member functions set_list and show_list.
5812 * cli/cli-style.c (class cli_style_option): Update accordingly.
5813 (style_set_list): Move to file scope.
5814 (style_show_list): Likewise.
5815 (set_style): Call help_list.
5816 (show_style): Call cmd_show_list.
5817 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
5818 Update to use the new macro.
5820 2019-10-12 Joel Brobecker <brobecker@adacore.com>
5822 * ada-lang.c (_initialize_ada_language): Expand the help text
5823 for the "catch exception" command.
5825 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5827 * symtab.c (matching_obj_sections): Initialize obj,
5828 declare it closer to its usage.
5830 2019-01-10 Tom Tromey <tom@tromey.com>
5832 * thread-iter.h (inf_threads_iterator): Use next_iterator.
5833 (basic_inf_threads_range): Remove.
5834 (inf_threads_range, inf_non_exited_threads_range)
5835 (safe_inf_threads_range): Use next_adapter.
5837 2019-01-10 Keith Seitz <keiths@redhat.com>
5841 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
5842 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
5844 2019-01-10 Keith Seitz <keiths@redhat.com>
5848 * dictionary.c (pending_to_vector): Remove.
5849 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
5850 Remove _1 suffix, replacing functions of the same name. Update
5852 (dict_create_hashed, dict_create_hashed_expandable)
5853 (dict_create_linear, dict_create_linear_expandable, dict_free)
5854 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
5855 Make functions static.
5857 2019-01-10 Keith Seitz <keiths@redhat.com>
5861 * dictionary.h (struct dictionary): Replace declaration with
5863 (dict_create_hashed, dict_create_hashed_expandable)
5864 (dict_create_linear, dict_create_linear_expandable)
5865 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
5866 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
5867 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
5868 taking multidictionary argument.
5869 [ALL_DICT_SYMBOLS]: Update for multidictionary.
5870 * block.h (struct block) <dict>: Change to multidictionary
5871 and rename `multidict'.
5872 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
5873 symmisc.c: Update all dictionary references to multidictionary.
5875 2019-01-10 Keith Seitz <keiths@redhat.com>
5879 * dictionary.c: Include unordered_map.
5880 (pending_to_vector): New function.
5881 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
5882 Rewrite the non-"_1" functions to take vector instead
5884 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
5885 "new" _1 versions of the same name.
5886 (multidictionary): Define.
5887 (std::hash<enum language): New definition.
5888 (collate_pending_symbols_by_language, mdict_create_hashed)
5889 (mdict_create_hashed_expandable, mdict_create_linear)
5890 (mdict_create_linear_expandable, mdict_free)
5891 (find_language_dictionary, create_new_language_dictionary)
5892 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
5893 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
5894 (mdict_size, mdict_empty): New functions.
5895 * dictionary.h (mdict_iterator): Define.
5897 2019-01-10 Pedro Alves <palves@redhat.com>
5899 * breakpoint.c (read_uploaded_action)
5900 (create_tracepoint_from_upload): Adjust to use
5901 gdb::unique_xmalloc_ptr.
5902 * ctf.c (ctf_write_uploaded_tp):
5903 (SET_ARRAY_FIELD): Use emplace_back.
5904 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
5905 * tracefile-tfile.c (tfile_write_uploaded_tp):
5906 * tracepoint.c (parse_tracepoint_definition): Adjust to use
5907 gdb::unique_xmalloc_ptr.
5908 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
5909 at_string, cond_string, cmd_strings>: Replace char pointers
5910 with gdb::unique_xmalloc_ptr.
5912 2019-01-10 Pedro Alves <palves@redhat.com>
5914 * solib-target.c (library_list_start_library): Don't xstrdup name.
5916 2019-01-10 Pedro Alves <palves@redhat.com>
5918 * mdebugread.c (parse_partial_symbols): Use
5919 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
5921 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
5923 * linux-fork.c (scoped_switch_fork_info)
5924 <~scoped_switch_fork_info>: Fix incorrect variable name.
5926 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
5928 * linux-fork.c (scoped_switch_fork_info)
5929 <scoped_switch_fork_info>: Make explicit.
5930 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
5932 2019-01-10 Tom Tromey <tom@tromey.com>
5934 * objfiles.h (objfile::reset_psymtabs): Update.
5935 * objfiles.c (objfile::objfile): Update.
5936 * psymtab.h (psymtab_storage::obstack): Update.
5937 (psymtab_storage::m_obstack): Use gdb::optional.
5938 (class psymtab_storage): Update comment. Remove objfile
5940 * psymtab.c (psymtab_storage::psymtab_storage): Update.
5942 2019-01-10 Tom Tromey <tom@tromey.com>
5944 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
5945 <free_psymtabs>: Now private.
5946 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
5947 (allocate_psymtab): Use new method.
5949 2019-01-10 Tom Tromey <tom@tromey.com>
5951 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
5952 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
5953 * mdebugread.c (parse_partial_symbols): Use
5954 allocate_dependencies.
5955 * dwarf2read.c (dwarf2_create_include_psymtab): Use
5956 allocate_dependencies.
5957 (process_psymtab_comp_unit_reader)
5958 (build_type_psymtab_dependencies): Likewise.
5959 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
5961 2019-01-10 Tom Tromey <tom@tromey.com>
5963 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
5964 PSYMBOL_SET_LANGUAGE.
5965 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
5967 2019-01-10 Tom Tromey <tom@tromey.com>
5969 * psymtab.h (psymtab_storage::obstack): New method.
5970 <m_obstack>: Rename from obstack; now private.
5971 * psymtab.c (psymtab_storage): Update.
5972 * dwarf2read.c (create_addrmap_from_index)
5973 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
5976 2019-01-10 Tom Tromey <tom@tromey.com>
5978 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
5979 * objfiles.h (objfile::reset_psymtabs): New method.
5981 2019-01-10 Tom Tromey <tom@tromey.com>
5983 * symmisc.c (print_symbol_bcache_statistics): Update.
5984 (print_objfile_statistics): Update.
5985 * symfile.c (reread_symbols): Update.
5986 * psymtab.h (class psymtab_storage): New.
5987 * psymtab.c (psymtab_storage): New constructor.
5988 (~psymtab_storage): New destructor.
5989 (require_partial_symbols): Update.
5990 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
5991 (find_pc_sect_psymtab, find_pc_sect_psymbol)
5992 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
5993 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
5994 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
5995 (start_psymtab_common, end_psymtab_common)
5996 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
5997 (allocate_psymtab): Update.
5998 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
6000 (dump_psymtab_addrmap, maintenance_print_psymbols)
6001 (maintenance_check_psymtabs): Update.
6002 (class objfile_psymtabs): Move to objfiles.h.
6003 * psympriv.h (discard_psymtab): Now inline.
6004 (psymtab_discarder::psymtab_discarder): Update.
6005 (psymtab_discarder::~psymtab_discarder): Update.
6006 (ALL_OBJFILE_PSYMTABS): Rewrite.
6007 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
6008 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
6010 <partial_symtabs>: New field.
6011 (class objfile_psymtabs): Move from psymtab.h. Update.
6012 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
6014 (objfile::~objfile): Don't destroy psymbol_cache.
6015 * mdebugread.c (parse_partial_symbols): Update.
6016 * dwarf2read.c (create_addrmap_from_index)
6017 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6018 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
6019 (add_partial_subprogram, dwarf2_ranges_read): Update.
6020 * dwarf-index-write.c (write_address_map)
6021 (write_one_signatured_type, recursively_write_psymbols)
6022 (class debug_names, class debug_names, write_psymtabs_to_index):
6025 2019-01-10 Tom Tromey <tom@tromey.com>
6027 * symtab.h (SYMBOL_SET_NAMES): Update.
6028 (symbol_set_names): Update.
6029 (MSYMBOL_SET_NAMES): Update.
6030 * symtab.c (symbol_set_names): Change argument to be an
6031 objfile_per_bfd_storage.
6032 * psymtab.c (add_psymbol_to_bcache): Update.
6033 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
6035 2019-01-10 Tom Tromey <tom@tromey.com>
6037 * symtab.c (create_demangled_names_hash): Change argument to be an
6038 objfile_per_bfd_storage.
6039 (symbol_set_names): Update.
6041 2019-01-10 Tom Tromey <tom@tromey.com>
6043 * xcoffread.c (xcoff_initial_scan): Unconditionally call
6045 * psymtab.c (init_psymbol_list): Do nothing if already called.
6046 * psympriv.h (init_psymbol_list): Add comment.
6047 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
6049 * dbxread.c (dbx_symfile_read): Unconditionally call
6052 2019-01-10 Tom Tromey <tom@tromey.com>
6054 * xcoffread.c (scan_xcoff_symtab): Update.
6055 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
6057 * mdebugread.c (parse_partial_symbols)
6058 (handle_psymbol_enumerators): Update.
6059 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
6060 * dbxread.c (read_dbx_symtab): Update.
6061 * psympriv.h (psymbol_placement): New enum.
6062 (add_psymbol_to_list): Update.
6064 2019-01-10 Tom Tromey <tom@tromey.com>
6066 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
6067 static_psymbols parameters.
6068 (scan_xcoff_symtab): Update.
6069 * psymtab.c (start_psymtab_common): Remove global_psymbols and
6070 static_psymbols parameters.
6071 * psympriv.h (start_psymtab_common): Update.
6072 * mdebugread.c (parse_partial_symbols): Update.
6073 * dwarf2read.c (create_partial_symtab): Update.
6074 * dbxread.c (read_dbx_symtab): Update.
6075 (start_psymtab): Remove global_psymbols and static_psymbols
6078 2019-01-10 Tom Tromey <tom@tromey.com>
6080 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
6081 * psymtab.c (allocate_psymtab): Add comment.
6082 * psympriv.h (allocate_psymtab): Add comment.
6083 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
6085 * dbxread.c (dbx_end_psymtab): Remove some initializations.
6087 2019-01-10 Tom Tromey <tom@tromey.com>
6089 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6091 * mipsread.c: Include mdebugread.h.
6092 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6094 * elfread.c: Include mdebugread.h.
6096 2019-01-09 Tom Tromey <tom@tromey.com>
6098 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
6099 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
6100 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
6101 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
6102 (psym_lookup_symbol, psym_find_last_source_symtab)
6103 (psym_forget_cached_source_info, psym_print_stats)
6104 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
6105 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
6106 (psym_map_matching_symbols, psym_expand_symtabs_matching)
6107 (psym_find_compunit_symtab_by_address)
6108 (maintenance_print_psymbols, maintenance_info_psymtabs)
6109 (maintenance_check_psymtabs): Use ranged for.
6110 * psymtab.h (class objfile_psymtabs): New.
6111 (require_partial_symbols): Return objfile_psymtabs.
6112 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
6114 2019-01-09 Tom Tromey <tom@tromey.com>
6116 * symfile.c (overlay_invalidate_all, find_pc_overlay)
6117 (find_pc_mapped_section, list_overlays_command)
6118 (map_overlay_command, unmap_overlay_command)
6119 (simple_overlay_update): Use all_objfiles.
6120 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
6121 * printcmd.c (info_symbol_command): Use all_objfiles.
6122 * objfiles.h (ALL_OBJSECTIONS): Remove.
6123 * maint.c (maintenance_translate_address): Use all_objfiles.
6124 * gcore.c (gcore_create_callback): Use all_objfiles.
6125 (objfile_find_memory_regions): Likewise.
6127 2019-01-09 Tom Tromey <tom@tromey.com>
6129 * symtab.c (find_line_symtab, info_sources_command)
6130 (make_source_files_completion_list): Use objfile_compunits.
6131 * source.c (select_source_symtab): Use objfile_compunits.
6132 * objfiles.h (struct objfile): Update comment.
6133 (ALL_OBJFILES): Remove.
6134 (ALL_FILETABS): Remove.
6135 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
6138 2019-01-09 Tom Tromey <tom@tromey.com>
6140 * symmisc.c (print_objfile_statistics, dump_objfile)
6141 (maintenance_print_symbols): Use compunit_filetabs.
6142 * source.c (forget_cached_source_info_for_objfile): Use
6144 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
6145 (ALL_FILETABS): Use compunit_filetabs.
6146 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
6147 * coffread.c (coff_symtab_read): Use compunit_filetabs.
6149 2019-01-09 Tom Tromey <tom@tromey.com>
6151 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
6152 (compunit_filetabs): New.
6153 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
6155 (info_sources_command, make_source_files_completion_list): Remove
6157 * symmisc.c (print_objfile_statistics, dump_objfile)
6158 (maintenance_print_symbols): Remove declaration.
6159 (maintenance_info_symtabs): Use compunit_filetabs.
6160 (maintenance_info_line_tables): Likewise.
6161 * source.c (select_source_symtab): Change local variable name.
6162 (forget_cached_source_info_for_objfile): Remove declaration.
6163 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
6164 * objfiles.c (objfile_relocate1): Remove declaration.
6165 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6167 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
6168 * coffread.c (coff_symtab_read): Remove declaration.
6169 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6172 2019-01-09 Tom Tromey <tom@tromey.com>
6174 * symtab.c (lookup_objfile_from_block)
6175 (find_pc_sect_compunit_symtab, search_symbols)
6176 (default_collect_symbol_completion_matches_break_on): Use
6178 * objfiles.h (ALL_COMPUNITS): Remove.
6179 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
6180 * cp-support.c (add_symbol_overload_list_qualified): Use
6182 * ada-lang.c (ada_collect_symbol_completion_matches)
6183 (ada_add_global_exceptions): Use objfile_compunits.
6185 2019-01-09 Tom Tromey <tom@tromey.com>
6187 * source.c (select_source_symtab)
6188 (forget_cached_source_info_for_objfile): Remove declaration.
6189 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6191 * maint.c (count_symtabs_and_blocks): Remove declaration.
6192 * cp-support.c (add_symbol_overload_list_qualified): Remove
6194 * coffread.c (coff_symtab_read): Remove declaration.
6195 * symtab.c (lookup_symbol_in_objfile_symtabs)
6196 (basic_lookup_transparent_type_1): Use objfile_compunits.
6197 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
6198 (info_sources_command, search_symbols)
6199 (default_collect_symbol_completion_matches_break_on)
6200 (make_source_files_completion_list): Remove declaration.
6201 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
6202 (ada_collect_symbol_completion_matches)
6203 (ada_add_global_exceptions): Remove declaration.
6204 * linespec.c (iterate_over_all_matching_symtabs): Use
6206 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
6207 (class objfile_compunits): New.
6208 (ALL_COMPUNITS): Use objfile_compunits.
6209 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
6210 (maintenance_check_symtabs, maintenance_info_line_tables): Use
6212 * objfiles.c (objfile_relocate1): Use objfile_compunits.
6214 2019-01-09 Tom Tromey <tom@tromey.com>
6216 * symtab.c (search_symbols)
6217 (default_collect_symbol_completion_matches_break_on): Use
6219 * ada-lang.c (ada_lookup_simple_minsym)
6220 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
6221 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
6222 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
6224 * coffread.c (coff_symfile_read): Use objfile_msymbols.
6225 * symmisc.c (dump_msymbols): Use objfile_msymbols.
6226 * objc-lang.c (find_methods): Use objfile_msymbols.
6227 (info_selectors_command, info_classes_command): Likewise.
6228 * stabsread.c (scan_file_globals): Use objfile_msymbols.
6229 * objfiles.h (class objfile_msymbols): New.
6230 (ALL_OBJFILE_MSYMBOLS): Remove.
6231 (ALL_MSYMBOLS): Remove.
6233 2019-01-09 Tom Tromey <tom@tromey.com>
6235 * common/next-iterator.h (next_adapter): Add Iterator template
6237 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
6238 (class all_objfiles_safe): New.
6239 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
6240 * objfiles.c (put_objfile_before): Update comment.
6241 (add_separate_debug_objfile): Likewise.
6242 (free_all_objfiles): Use all_objfiles_safe.
6243 (objfile_purge_solibs): Likewise.
6245 2019-01-09 Tom Tromey <tom@tromey.com>
6247 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6248 (expand_symtab_containing_pc, lookup_static_symbol)
6249 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
6250 (find_symbol_at_address, find_line_symtab, find_main_name): Use
6252 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
6253 * breakpoint.c (create_overlay_event_breakpoint)
6254 (create_longjmp_master_breakpoint)
6255 (create_std_terminate_master_breakpoint)
6256 (create_exception_master_breakpoint): Use all_objfiles.
6257 * linux-thread-db.c (try_thread_db_load_from_pdir)
6258 (has_libpthread): Use all_objfiles.
6259 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
6260 * linespec.c (iterate_over_all_matching_symtabs)
6261 (search_minsyms_for_name): Use all_objfiles.
6262 * maint.c (maintenance_info_sections): Use all_objfiles.
6263 * main.c (captured_main_1): Use all_objfiles.
6264 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
6265 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
6266 * guile/scm-pretty-print.c
6267 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
6268 * solib-spu.c (append_ocl_sos): Use all_objfiles.
6269 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
6270 (maintenance_print_msymbols): Use all_objfiles.
6271 * source.c (select_source_symtab): Use all_objfiles.
6272 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
6273 * symfile.c (remove_symbol_file_command)
6274 (expand_symtabs_matching, map_symbol_filenames): Use
6276 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
6278 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
6279 * objc-lang.c (find_methods): Use all_objfiles.
6280 * objfiles.c (have_partial_symbols, have_full_symbols)
6281 (have_minimal_symbols, qsort_cmp)
6282 (default_iterate_over_objfiles_in_search_order): Use
6284 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
6285 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
6286 (maintenance_check_psymtabs): Use all_objfiles.
6287 (ALL_PSYMTABS): Remove.
6288 * compile/compile-object-run.c (do_module_cleanup): Use
6290 * blockframe.c (find_pc_partial_function): Use all_objfiles.
6291 * cp-support.c (add_symbol_overload_list_qualified): Use
6293 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6295 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
6296 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
6298 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6299 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
6300 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6302 * solib.c (solib_read_symbols): Use all_objfiles
6304 2019-01-09 Tom Tromey <tom@tromey.com>
6306 * probe.c (parse_probes_in_pspace): Use all_objfiles.
6307 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
6309 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
6310 * symmisc.c (print_symbol_bcache_statistics)
6311 (print_objfile_statistics, maintenance_print_objfiles)
6312 (maintenance_info_symtabs, maintenance_check_symtabs)
6313 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
6315 * source.c (forget_cached_source_info): Use all_objfiles.
6316 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
6317 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6318 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
6319 * objfiles.c (update_section_map): Use all_objfiles.
6320 (shared_objfile_contains_address_p): Likewise.
6321 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
6322 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
6324 2019-01-09 Tom Tromey <tom@tromey.com>
6326 * common/next-iterator.h: New file.
6327 * objfiles.h (class all_objfiles): New.
6328 (struct objfile_iterator): New.
6330 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6332 * NEWS: Move the description of the changed "frame", "select-frame",
6333 and "info frame" commands to the Changed commands section.
6335 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
6337 * gdbtypes.c (check_stub_method_group): Remove handling of old
6339 * linespec.c (find_methods): Likewise.
6340 * stabsread.c (read_member_functions): Likewise.
6341 * valops.c (search_struct_method): Likewise.
6342 (value_struct_elt_for_reference): Likewise.
6343 * NEWS: Mention this change.
6345 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6347 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
6349 * source.c (print_source_lines_base): Update line number check.
6350 (print_source_lines): New function.
6351 (source_lines_range::source_lines_range): New function.
6352 * source.h (class source_lines_range): New class.
6353 (print_source_lines): New declaration.
6355 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6357 * linespec.c (linespec_state_destructor): Free self->canonical_names.
6359 2019-01-08 Tom Tromey <tom@tromey.com>
6360 Simon Marchi <simon.marchi@ericsson.com>
6363 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
6364 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
6365 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6366 * f-exp.y (DOLLAR_VARIABLE): Likewise.
6367 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
6368 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6370 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6372 * source.c (select_source_symtab): Move header comment to
6373 declaration in source.h.
6374 (forget_cached_source_info_for_objfile): Likewise.
6375 (forget_cached_source_info): Likewise.
6376 (identify_source_line): Likewise.
6377 * source.h (identify_source_line): Move declaration from symtab.h
6378 and add comment from source.c
6379 (print_source_lines): Likewise.
6380 (forget_cached_source_info_for_objfile): Likewise.
6381 (forget_cached_source_info): Likewise.
6382 (select_source_symtab): Likewise.
6383 (enum print_source_lines_flag): Move definition from symtab.h.
6384 * symtab.h (identify_source_line): Move declaration to source.h.
6385 (print_source_lines): Likewise.
6386 (forget_cached_source_info_for_objfile): Likewise.
6387 (forget_cached_source_info): Likewise.
6388 (select_source_symtab): Likewise.
6389 (enum print_source_lines_flag): Move definition to source.h.
6390 * tui/tui-hooks.c: Add 'source.h' include.
6392 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6394 * source.c (print_source_lines_base): Handle requests to print
6395 reverse line number sequences, and guard against empty lines
6398 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6400 * source.c (print_source_lines_base): Fix skip of '\r' if next
6403 2019-01-06 Tom Tromey <tom@tromey.com>
6405 * c-exp.y (struct c_parse_state) <macro_original_text,
6406 expansion_obstack>: New member.
6407 (macro_original_text, expansion_obstack): Remove globals.
6408 (scan_macro_expansion, scanning_macro_expansion)
6409 (finished_macro_expansion): Update.
6410 (scan_macro_cleanup): Remove.
6411 (yylex, c_parse): Update.
6413 2019-01-06 Tom Tromey <tom@tromey.com>
6415 * c-exp.y (struct c_parse_state) <strings>: New member.
6416 (operator_stoken): Update.
6418 2019-01-06 Tom Tromey <tom@tromey.com>
6420 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
6421 (union type_stack_elt) <typelist_val>: Now a pointer to
6423 (type_stack_cleanup): Don't declare.
6424 (push_typelist): Update.
6425 * parse.c (pop_typelist): Return a std::vector.
6426 (push_typelist): Take a std::vector.
6427 (follow_types): Update. Do not free args.
6428 (type_stack_cleanup): Remove.
6429 * c-exp.y (struct c_parse_state): New.
6430 (cpstate): New global.
6431 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
6432 (nonempty_typelist): Update.
6433 (func_mod): Create a new vector.
6434 (c_parse): Create a c_parse_state.
6435 (check_parameter_typelist): Do not delete params.
6436 (function_method): Update. Do not delete type_list.
6438 2019-01-06 Tom Tromey <tom@tromey.com>
6441 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
6443 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
6444 (print_return_value): Likewise.
6446 2019-01-05 Tom Tromey <tom@tromey.com>
6448 * contrib/cleanup_check.py: Remove.
6449 * contrib/gcc-with-excheck: Remove.
6450 * contrib/exsummary.py: Remove.
6451 * contrib/excheck.py: Remove.
6453 2019-01-05 Joel Brobecker <brobecker@adacore.com>
6455 * thread.c (delete_thread_1): Add gdb_assert that THR is not
6456 NULL. Initialize tpprev to NULL instead of assigning it
6457 to NULL on the next statement.
6458 * windows-nat.c (windows_delete_thread): Remove check for
6459 main_thread_id before printing thread exit notifications.
6460 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
6461 Remove thread ID check against main_thread_id.
6462 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
6463 windows_delete_thread.
6464 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
6466 2019-01-04 Tom Tromey <tom@tromey.com>
6468 * compile/compile.c (_initialize_compile): Use upper case for
6469 metasyntactic variables.
6470 * symmisc.c (_initialize_symmisc): Use upper case for
6471 metasyntactic variables.
6472 * psymtab.c (_initialize_psymtab): Use upper case for
6473 metasyntactic variables.
6474 * demangle.c (demangle_command): Use upper case for metasyntactic
6476 (_initialize_demangler): Likewise.
6477 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
6480 2019-01-03 Tom Tromey <tom@tromey.com>
6482 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
6484 2019-01-03 Tom Tromey <tom@tromey.com>
6486 * python/py-symtab.c (salpy_str): Update.
6487 (struct salpy_sal_object) <symtab>: Now a PyObject.
6488 (salpy_dealloc): Update.
6489 (del_objfile_sal): Use gdbpy_ref.
6491 2019-01-03 Tom Tromey <tom@tromey.com>
6493 * python/py-type.c (convert_field): Use new_reference. Return
6495 (make_fielditem): Return gdbpy_ref.
6496 (typy_fields): Update.
6497 (typy_getitem): Update.
6498 (field_name): Return gdbpy_ref. Use new_reference.
6499 (typy_iterator_iternext): Update.
6501 2019-01-03 Tom Tromey <tom@tromey.com>
6503 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
6505 2019-01-03 Tom Tromey <tom@tromey.com>
6507 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
6508 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
6509 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
6510 (pspy_set_frame_filters, pspy_set_frame_unwinders)
6511 (pspy_set_type_printers): Likewise.
6512 * python/py-function.c (fnpy_init): Use gdbpy_ref.
6513 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
6514 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
6515 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
6516 (objfpy_set_type_printers): Likewise.
6518 2019-01-03 Tom Tromey <tom@tromey.com>
6520 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
6521 (gdbpy_print_stack): Use gdbpy_err_fetch.
6522 * python/python-internal.h (class gdbpy_err_fetch): New class.
6523 (class gdbpy_enter) <m_error_type, m_error_value,
6524 m_error_traceback>: Remove.
6525 <m_error>: New member.
6526 (gdbpy_exception_to_string): Don't declare.
6527 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
6528 * python/py-value.c (convert_value_from_python): Use
6530 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
6531 gdbpy_exception_to_string.
6532 (gdbpy_handle_exception): Use gdbpy_err_fetch.
6533 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
6536 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6538 * linux-nat.c (delete_lwp_cleanup): Delete.
6539 (struct lwp_deleter): New struct.
6540 (lwp_info_up): New typedef.
6541 (linux_nat_target::follow_fork): Delete cleanup, and make use of
6544 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6546 * linux-fork.c (class scoped_switch_fork_info): New class.
6547 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
6549 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6551 * valops.c (find_overload_match): Remove use of null_cleanup, and
6552 calls to do_cleanups.
6554 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6556 * compile/compile-cplus-types.c
6557 (compile_cplus_instance::decl_name): Handle changes to
6559 * cp-support.c (cp_func_name): Update header comment, update
6561 * cp-support.h (cp_func_name): Update return type in declaration.
6562 * valops.c (find_overload_match): Move temp_func local to top
6563 level of function and change its type. Use temp_func to hold and
6564 delete temporary string obtained from cp_func_name.
6566 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6568 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
6569 gdb::char_vector, remove cleanup, and update uses of `msg`.
6571 2019-01-03 Jim Wilson <jimw@sifive.com>
6573 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
6575 2019-01-02 Tom Tromey <tom@tromey.com>
6577 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
6578 (tdesc_parse_xml): Remove cleanups.
6579 * target-descriptions.h (make_cleanup_free_target_description):
6581 (target_desc_deleter): New struct.
6582 (target_desc_up): New typedef.
6583 * target-descriptions.c (target_desc_deleter::operator()): Rename
6584 from free_target_description.
6585 (make_cleanup_free_target_description): Remove.
6587 2019-01-02 Tom Tromey <tom@tromey.com>
6589 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
6590 constructor, destructor.
6591 (linespec_parser): Remove typedef.
6592 (~linespec_parser): Rename from linespec_parser_delete.
6593 (linespec_lex_to_end, linespec_complete_label)
6594 (linespec_complete): Update.
6595 (decode_line_full): Remove cleanups.
6596 (decode_line_1): Update.
6598 2019-01-02 Tom Tromey <tom@tromey.com>
6600 * python/python-internal.h (inferior_to_inferior_object): Change
6602 * python/py-exitedevent.c (create_exited_event_object): Update.
6603 * python/py-inferior.c (inferior_to_inferior_object): Return
6605 (python_new_inferior, python_inferior_deleted)
6606 (thread_to_thread_object, delete_thread_object)
6607 (build_inferior_list, gdbpy_selected_inferior): Update.
6608 * python/py-infthread.c (create_thread_object): Update. Also fail
6609 if inferior_to_inferior_object fails.
6611 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
6613 * inferior.h (class inferior) <displaced_step_state>: New field.
6614 * infrun.h (struct displaced_step_state): Move here from
6615 infrun.c. Initialize fields, add constructor.
6616 <inf>: Remove field.
6617 <reset>: New method.
6618 * infrun.c (struct displaced_step_inferior_state): Move to
6620 (displaced_step_inferior_states): Remove.
6621 (get_displaced_stepping_state): Adust.
6622 (displaced_step_in_progress_any_inferior): Adjust.
6623 (displaced_step_in_progress_thread): Adjust.
6624 (displaced_step_in_progress): Adjust.
6625 (add_displaced_stepping_state): Remove.
6626 (get_displaced_step_closure_by_addr): Adjust.
6627 (remove_displaced_stepping_state): Remove.
6628 (infrun_inferior_exit): Call displaced_step_state.reset.
6629 (use_displaced_stepping): Don't check for NULL.
6630 (displaced_step_prepare_throw): Call
6631 get_displaced_stepping_state.
6632 (displaced_step_fixup): Don't check for NULL.
6633 (prepare_for_detach): Don't check for NULL.
6635 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6637 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
6638 in case of call that did not complete.
6640 2019-01-02 Andrey Utkin <autkin@undo.io>
6642 * symfile.c (find_separate_debug_file): Fix search of debug files for
6645 2019-01-02 Tom Tromey <tom@tromey.com>
6647 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
6649 * python/py-frame.c (frapy_older): Remove cast.
6650 (frapy_newer): Likewise.
6651 * python/py-breakpoint.c (local_setattro): Remove cast.
6652 * python/py-arch.c (archpy_name): Remove local variable.
6653 * python/py-type.c (gdbpy_lookup_type): Remove cast.
6655 2019-01-02 Joel Brobecker <brobecker@adacore.com>
6657 * unittests/basic_string_view/element_access/char/empty.cc:
6658 Fix year range in copyright header.
6660 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
6662 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
6664 <operator==>: Update with for removed field.
6666 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
6667 <isa_features>: ...this.
6668 <abi_features>: New field.
6669 (riscv_isa_flen): Update comment.
6670 (riscv_abi_xlen): New declaration.
6671 (riscv_abi_flen): New declaration.
6672 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
6674 (riscv_abi_xlen): New function.
6675 (riscv_isa_flen): Update to get answer from isa_features.
6676 (riscv_abi_flen): New function.
6677 (riscv_has_fp_abi): Update to get answer from abi_features.
6678 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
6680 (riscv_call_info) <xlen, flen>: Update comment.
6681 (riscv_call_arg_struct): Remove invalid assertions
6682 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
6684 (riscv_gdbarch_init): Gather isa features and abi features
6685 separately, ensure both match on the gdbarch when reusing an old
6686 gdbarch. Relax an error check to allow 32-bit abi float to run on
6687 a target with 64-bit float hardware.
6689 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6691 * source.c (search_command_helper): Stop reverse search
6692 when line 1 has been searched.
6694 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6696 * record-full.c (record_full_base_target::close): Rewrite
6697 record_full_core_buf_list free logic.
6699 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6701 * break-catch-syscall.c (print_one_catch_syscall): xfree
6704 2019-01-01 Joel Brobecker <brobecker@adacore.com>
6706 * top.c (print_gdb_version): Update Copyright year in version
6709 2019-01-01 Joel Brobecker <brobecker@adacore.com>
6711 Update copyright year range in all GDB files.
6713 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
6715 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
6717 For older changes see ChangeLog-2018.
6723 version-control: never