1 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
3 * stap-probe.c (stap_parse_register_operand): Make "regname" an
4 "std::string", simplifying the algorithm.
6 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9 (stap_static_probe_ops::get_probes): Likewise.
11 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
13 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
15 (stap_parse_single_operand): Join checks for
16 "gdbarch_stap_parse_special_token_p" and
17 "gdbarch_stap_parse_special_token" in the same "if" statement.
18 Invert check when verifying for operation on register
21 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
23 * stap-probe.c (stap_get_opcode): Update comment.
24 (stap_get_expected_argument_type): Likewise.
25 (handle_stap_probe): Likewise.
27 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
29 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
30 return type to 'bool'. Adjust comment. Use 'bool' when
32 (i386_stap_parse_special_token_three_arg_disp): Likewise.
33 * stap-probe.c (stap_parse_argument_1): Likewise.
34 (stap_is_operator): Likewise.
35 (stap_is_generic_prefix): Likewise.
36 (stap_is_register_prefix): Likewise.
37 (stap_is_register_indirection_prefix): Likewise.
38 (stap_is_integer_prefix): Likewise.
39 (stap_generic_check_suffix): Likewise.
40 (stap_check_integer_suffix): Likewise.
41 (stap_check_register_suffix): Likewise.
42 (stap_check_register_indirection_suffix): Likewise.
43 (stap_parse_register_operand): Likewise.
44 (stap_parse_single_operand): Likewise.
45 (stap_parse_argument_1): Likewise.
46 (stap_probe::get_argument_count): Likewise.
47 (stap_is_operator): Likewise.
49 2019-05-16 Tom Tromey <tromey@adacore.com>
51 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
54 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
56 * linux-thread-db.c (try_thread_db_load_1): Change return type
58 (try_thread_db_load): Likewise.
59 (try_thread_db_load_from_pdir_1): Likewise.
60 (try_thread_db_load_from_pdir): Likewise.
61 (try_thread_db_load_from_sdir): Likewise.
62 (try_thread_db_load_from_dir): Likewise.
63 (thread_db_load_search): Likewise.
64 (has_libpthread): Likewise.
65 (thread_db_load): Likewise.
67 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
69 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
70 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
71 NULL, and complain/return if that's the case.
73 2019-05-15 John Darrington <john@darrington.wattle.id.au>
75 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
76 (advance, posn, abstract_read_memory): New functions.
77 [struct mem_read_abstraction]: New struct.
78 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
80 2019-05-14 Tom Tromey <tromey@adacore.com>
82 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
83 value is not lval_memory.
85 2019-05-14 Tom Tromey <tromey@adacore.com>
87 * solib.c (info_sharedlibrary_command): Style the file name.
89 2019-05-14 Alan Hayward <alan.hayward@arm.com>
91 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
92 (aarch64_vnv_type): Likewise.
93 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
94 * common/tdesc.c: Likewise.
95 * common/tdesc.h (enum tdesc_type_kind): Likewise.
96 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
97 * features/aarch64-fpu.xml: Add ieee half view.
98 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
99 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
100 * gdbtypes.h (struct builtin_type): Likewise.
101 (struct objfile_type): Likewise.
103 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
105 * language.c (language_sniff_from_mangled_name): Fix "langauge"
107 * location.h (string_to_event_location): Likewise.
109 2019-05-11 Joel Brobecker <brobecker@adacore.com>
113 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
115 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
116 New variable declaration.
117 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
119 (print_one_breakpoint): Use ui_out::test_flags and new global
120 variable to compute use_fixed_output.
121 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
123 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
124 (mi_multi_location_breakpoint_output_fixed): Remove.
125 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
127 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
128 fix_multi_location_breakpoint_output flag if version >= 3.
129 * ui-out.h (enum ui_out_flag)
130 <fix_multi_location_breakpoint_output>: New enumerator.
132 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
134 * contrib/cc-with-tweaks.sh: Validate dwz's work.
136 2019-05-10 Tom Tromey <tromey@adacore.com>
138 * ada-lang.c (catch_ada_completer): New function.
139 (_initialize_ada_language): Use it.
141 2019-05-10 Tom Tromey <tromey@adacore.com>
143 * thread.c (print_thread_info): Make "requested_threads" const.
144 * gdbthread.h (print_thread_info): Make "requested_threads"
146 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
147 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
149 2019-05-08 Tom Tromey <tom@tromey.com>
151 * gdbtypes.c (objfile_type_data): Change type.
152 (objfile_type, _initialize_gdbtypes): Update.
154 2019-05-08 Tom Tromey <tom@tromey.com>
156 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
157 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
158 (_initialize_dwarf2_frame): Update.
160 2019-05-08 Tom Tromey <tom@tromey.com>
162 * objc-lang.c (objc_objfile_data): Change type.
163 (find_methods): Update.
164 (_initialize_objc_lang): Remove.
166 2019-05-08 Tom Tromey <tom@tromey.com>
168 * stabsread.c (rs6000_builtin_type_data): Change type.
169 (rs6000_builtin_type, _initialize_stabsread): Update.
171 2019-05-08 Tom Tromey <tom@tromey.com>
173 * mips-tdep.c (mips_pdr_data): Remove.
174 (_initialize_mips_tdep): Update.
176 2019-05-08 Tom Tromey <tom@tromey.com>
178 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
179 (hppa_init_objfile_priv_data, read_unwind_info)
180 (find_unwind_entry, _initialize_hppa_tdep): Update.
182 2019-05-08 Tom Tromey <tom@tromey.com>
184 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
185 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
187 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
189 2019-05-08 Tom Tromey <tom@tromey.com>
191 * mdebugread.c (basic_type_data): Change type.
192 (basic_type, _initialize_mdebugread): Update.
194 2019-05-08 Tom Tromey <tom@tromey.com>
196 * common/gdb_unique_ptr.h (struct noop_deleter): New.
198 2019-05-08 Tom Tromey <tom@tromey.com>
200 * nto-tdep.c (nto_inferior_data_reg): Change type.
201 (nto_inferior_data): Update.
202 (nto_inferior_data_cleanup, nto_new_inferior_data)
203 (_initialize_nto_tdep): Remove.
204 * nto-tdep.h (struct nto_inferior_data): Add initializers.
206 2019-05-08 Tom Tromey <tom@tromey.com>
208 * ada-lang.c (struct ada_inferior_data): Add initializers.
209 (ada_inferior_data): Change type.
210 (ada_inferior_data_cleanup): Remove.
211 (get_ada_inferior_data, ada_inferior_exit)
212 (struct ada_pspace_data): Add initializers, destructor.
213 (ada_pspace_data_handle): Change type.
214 (get_ada_pspace_data): Update.
215 (ada_pspace_data_cleanup): Remove.
217 2019-05-08 Tom Tromey <tom@tromey.com>
219 * coffread.c (struct coff_symfile_info): Add initializers.
220 (coff_objfile_data_key): Move lower. Change type.
221 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
223 (coff_free_info): Remove.
225 2019-05-08 Tom Tromey <tom@tromey.com>
227 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
228 (fbsd_pspace_data_handle): Move lower. Change type.
229 (get_fbsd_pspace_data): Update.
230 (fbsd_pspace_data_cleanup): Remove.
231 (_initialize_fbsd_tdep): Update.
233 2019-05-08 Tom Tromey <tom@tromey.com>
235 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
236 (get_ada_tasks_pspace_data): Update.
237 (ada_tasks_pspace_data_cleanup): Remove.
238 (_initialize_tasks): Update.
239 (ada_tasks_inferior_data_handle): Change type.
240 (get_ada_tasks_inferior_data): Update.
241 (ada_tasks_inferior_data_cleanup): Remove.
242 (struct ada_tasks_pspace_data): Add initializers.
244 2019-05-08 Tom Tromey <tom@tromey.com>
246 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
247 * symfile-debug.c (debug_sym_get_probes): Change type.
248 * stap-probe.c (handle_stap_probe):
249 (stap_static_probe_ops::get_probes): Change type.
250 * probe.h (class static_probe_ops) <get_probes>: Change type.
251 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
252 (parse_probes_in_pspace): Update.
253 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
255 (any_static_probe_ops::get_probes): Change type.
256 * elfread.c (elfread_data): New typedef.
257 (probe_key): Change type.
258 (elf_get_probes): Likewise. Update.
259 (probe_key_free): Remove.
260 (_initialize_elfread): Update.
261 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
263 (dtrace_process_dof_probe, dtrace_process_dof)
264 (dtrace_static_probe_ops::get_probe): Change type.
266 2019-05-08 Tom Tromey <tom@tromey.com>
268 * xcoffread.c (struct xcoff_symfile_info): Rename from
269 coff_symfile_info. Add initializers.
270 (xcoff_objfile_data_key): Move lower. Change type.
271 (XCOFF_DATA): Rewrite.
272 (xcoff_free_info): Remove.
273 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
274 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
275 (xcoff_initial_scan): Update.
277 2019-05-08 Tom Tromey <tom@tromey.com>
279 * solib-svr4.c (struct svr4_info): Add initializers and
281 <probes_table>: Now an htab_up.
282 (solib_svr4_pspace_data): Change type.
283 (free_probes_table): Simplify.
284 (~svr4_info): Rename from svr4_pspace_data_cleanup.
285 (get_svr4_info, probes_table_htab_remove_objfile_probes)
286 (probes_table_remove_objfile_probes, register_solib_event_probe)
287 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
288 (_initialize_svr4_solib): Update.
290 2019-05-08 Tom Tromey <tom@tromey.com>
292 * remote.c (remote_pspace_data): Change type.
293 (remote_pspace_data_cleanup): Remove.
294 (get_remote_exec_file, set_pspace_remote_exec_file)
295 (_initialize_remote): Update.
297 2019-05-08 Tom Tromey <tom@tromey.com>
299 * breakpoint.c (breakpoint_objfile_key): Change type.
300 (get_breakpoint_objfile_data): Update.
301 (free_breakpoint_objfile_data): Remove.
302 (_initialize_breakpoint): Update.
304 2019-05-08 Tom Tromey <tom@tromey.com>
306 * linux-tdep.c (struct linux_info): Add initializers.
307 (linux_inferior_data): Move. Change type.
308 (invalidate_linux_cache_inf): Update.
309 (linux_inferior_data_cleanup): Remove.
310 (get_linux_inferior_data, _initialize_linux_tdep): Update.
312 2019-05-08 Tom Tromey <tom@tromey.com>
314 * auxv.c (auxv_inferior_data): Move. Change type.
315 (auxv_inferior_data_cleanup): Remove.
316 (invalidate_auxv_cache_inf): Rewrite.
317 (get_auxv_inferior_data, _initialize_auxv): Update.
319 2019-05-08 Tom Tromey <tom@tromey.com>
321 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
322 (symfile_debug_objfile_data_key): Change type.
323 (symfile_debug_installed, debug_qf_has_symbols)
324 (debug_qf_find_last_source_symtab)
325 (debug_qf_forget_cached_source_info)
326 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
327 (debug_qf_print_stats, debug_qf_dump)
328 (debug_qf_expand_symtabs_for_function)
329 (debug_qf_expand_all_symtabs)
330 (debug_qf_expand_symtabs_with_fullname)
331 (debug_qf_map_matching_symbols)
332 (debug_qf_expand_symtabs_matching)
333 (debug_qf_find_pc_sect_compunit_symtab)
334 (debug_qf_map_symbol_filenames)
335 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
336 (debug_sym_new_init, debug_sym_init, debug_sym_read)
337 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
338 (debug_sym_read_linetable, debug_sym_relocate): Update.
339 (symfile_debug_free_objfile): Remove.
340 (install_symfile_debug_logging, _initialize_symfile_debug):
343 2019-05-08 Tom Tromey <tom@tromey.com>
345 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
347 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
348 (get_dwarf2_per_objfile): Update.
349 (set_dwarf2_per_objfile): Remove.
350 (dwarf2_has_info, dwarf2_get_section_info): Update.
351 (dwarf2_free_objfile): Remove.
352 (_initialize_dwarf2_read): Update.
354 2019-05-08 Tom Tromey <tom@tromey.com>
356 * auto-load.c (struct auto_load_pspace_info): Add destructor and
358 <unsupported_script_warning_printed,
359 script_not_found_warning_printed>: Now bool.
360 (auto_load_pspace_data): Change type.
361 (~auto_load_pspace_info): Rename from
362 auto_load_pspace_data_cleanup.
363 (get_auto_load_pspace_data, init_loaded_scripts_info)
364 (clear_section_scripts, maybe_print_unsupported_script_warning)
365 (maybe_print_script_not_found_warning, _initialize_auto_load):
368 2019-05-08 Tom Tromey <tom@tromey.com>
370 * objfiles.c (objfile_pspace_info): Add destructor and
372 (objfiles_pspace_data): Change type.
373 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
374 (get_objfile_pspace_data): Update.
375 (objfiles_bfd_data): Change type.
376 (get_objfile_bfd_data): Update.
377 (objfile_bfd_data_free, _initialize_objfiles): Remove.
379 2019-05-08 Tom Tromey <tom@tromey.com>
381 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
383 (get_catch_syscall_inferior_data): Update.
384 (catch_syscall_inferior_data_cleanup): Remove.
385 (_initialize_break_catch_syscall): Update.
387 2019-05-08 Tom Tromey <tom@tromey.com>
389 * inflow.c (struct terminal_info): Add destructor and
391 (inflow_inferior_data): Change type.
392 (~terminal_info): Rename from inflow_inferior_data_cleanup.
393 (get_inflow_inferior_data, inflow_inferior_exit)
394 (swap_terminal_info, _initialize_inflow): Update.
396 2019-05-08 Tom Tromey <tom@tromey.com>
398 * target-dcache.c (target_dcache_cleanup): Remove.
399 (target_dcache_aspace_key): Change type.
400 (target_dcache_init_p, target_dcache_invalidate)
401 (target_dcache_get, target_dcache_get_or_init)
402 (_initialize_target_dcache): Update.
403 * dcache.h (struct dcache_deleter): New.
405 2019-05-08 Tom Tromey <tom@tromey.com>
407 * symtab.c (struct symbol_cache): Add destructor and
409 (symbol_cache_key): Move. Change type.
410 (make_symbol_cache, free_symbol_cache): Remove.
411 (get_symbol_cache): Update.
412 (symbol_cache_cleanup): Remove.
413 (ALL_PSPACES, symbol_cache_flush)
414 (maintenance_print_symbol_cache)
415 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
418 2019-05-08 Tom Tromey <tom@tromey.com>
420 * symtab.c (struct main_info): Add destructor and initializers.
421 (main_progspace_key): Move. Change type.
422 (get_main_info): Update.
423 (main_info_cleanup): Remove.
424 (_initialize_symtab): Update.
426 2019-05-08 Tom Tromey <tom@tromey.com>
428 * registry.h (DECLARE_REGISTRY): Define the _key class.
430 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
432 * NEWS: Merge two 'New commands' sections.
434 2019-05-08 Joel Brobecker <brobecker@adacore.com>
436 * ada-valprint.c (ada_val_print_gnat_array): Remove language
437 parameter and use Ada language definition instead.
438 (ada_val_print_ptr): Remove unused language parameter.
439 (ada_val_print_num): Remove language parameter and use Ada language
441 (ada_val_print_enum, ada_val_print_flt): Remove unused language
443 (ada_val_print_struct_union, ada_val_print_ref): Remove language
444 parameter and use Ada language definition instead.
445 (ada_val_print_1): Update all ada_val_print_xxx calls.
446 Remove language parameter.
447 (ada_val_print): Update ada_val_print_1 call.
449 2019-05-08 Tom Tromey <tromey@adacore.com>
451 * remote.c (remote_hw_watchpoint_limit)
452 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
455 2019-05-08 Tom Tromey <tromey@adacore.com>
457 * maint.c (_initialize_maint_cmds): Move initialization code to
459 (watchdog, show_watchdog): Move to remote.c.
460 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
462 (_initialize_remote): Move initialization code from maint.c.
463 * defs.h (watchdog): Don't declare.
465 2019-05-08 Tom Tromey <tromey@adacore.com>
467 * tui/tui-interp.c: Include main.h.
468 * interps.c: Include main.h.
469 * main.h (interpreter_p): Declare.
470 * defs.h (interpreter_p): Don't declare.
472 2019-05-08 Tom Tromey <tromey@adacore.com>
474 * dwarf2loc.c: Include dwarf2read.h.
475 * defs.h (read_unsigned_leb128): Don't declare.
476 * dwarf2read.h (read_unsigned_leb128): Declare.
478 2019-05-08 Tom Tromey <tromey@adacore.com>
480 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
483 2019-05-08 Tom Tromey <tromey@adacore.com>
485 * utils.c (fputs_maybe_filtered): Reset style after paging, even
486 when no wrap column is set.
488 2019-05-08 Tom Tromey <tromey@adacore.com>
490 * c-lang.c (c_get_string): Handle non-C-style arrays.
492 2019-05-08 Tom Tromey <tromey@adacore.com>
494 * typeprint.c (print_offset_data::update): Print the bit offset,
495 not the number of bits remaining.
497 2019-05-08 Tom Tromey <tromey@adacore.com>
499 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
500 padding at end of comment.
502 2019-05-08 Tom Tromey <tromey@adacore.com>
504 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
507 2019-05-06 Tom Tromey <tom@tromey.com>
509 * common/scoped_mmap.c: Include common-defs.h.
510 * common/scoped_mmap.h: Don't include config.h.
512 2019-05-04 Tom Tromey <tom@tromey.com>
514 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
515 (struct aarch64_call_info): Add initializers.
516 <si>: Now a std::vector.
517 (pass_on_stack, aarch64_push_dummy_call): Update.
519 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
520 Tom Tromey <tom@tromey.com>
522 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
523 (ppc_threads): Now a std::vector. Now static.
524 (hwdebug_find_thread_points_by_tid)
525 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
528 2019-05-04 Tom Tromey <tom@tromey.com>
530 * arc-tdep.c (arc_tdesc_init): Return bool.
532 2019-05-04 Tom Tromey <tom@tromey.com>
534 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
535 Use gdb_assert_not_reached.
537 2019-05-04 Tom Tromey <tom@tromey.com>
539 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
542 2019-05-04 Tom Tromey <tom@tromey.com>
544 * arc-tdep.c (arc_tdesc_init): Use bool.
546 2019-05-04 Tom Tromey <tom@tromey.com>
548 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
550 2019-05-04 Tom Tromey <tom@tromey.com>
552 * cli/cli-cmds.c (valid_command_p): Return bool.
554 2019-05-04 Tom Tromey <tom@tromey.com>
556 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
557 * command.h (valid_user_defined_cmd_name_p): Channge return type.
559 2019-05-04 Raul Tambre <raul@tambre.ee>
561 * python/lib/gdb/prompt.py (_ExtendedPrompt)
562 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
563 operator for comparison.
565 2019-05-04 Tom Tromey <tom@tromey.com>
567 * psymtab.c (psymbol_name_matches, match_partial_symbol)
568 (lookup_partial_symbol, print_partial_symbols)
569 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
570 (psymbol_compare): Update.
571 (add_psymbol_to_bcache): Clear the entire psymbol.
572 (maintenance_check_psymtabs): Update.
573 * psympriv.h (struct partial_symbol): Don't derive from
575 <obj_section, unrelocated_address, address,
576 set_unrelocated_address>: Update.
578 * dwarf-index-write.c (write_psymbols, debug_names::insert)
579 (debug_names::write_psymbols): Update.
581 2019-05-04 Tom de Vries <tdevries@suse.de>
583 * contrib/cc-with-tweaks.sh: Support -n arg.
585 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
587 * corelow.c (core_target::detach): Ensure frame cache and
588 register caches are cleared.
589 inferior.c (exit_inferior_1): Likewise.
591 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
592 Tom Tromey <tom@tromey.com>
594 * dictionary.c (collate_pending_symbols_by_language): Remove
595 "struct" from foreach.
596 * symtab.c (lookup_global_symbol_from_objfile)
597 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
599 * ser-tcp.c (net_open): Remove "struct" from foreach.
600 * objfiles.c (objfile_relocate, objfile_rebase)
601 (objfile_has_symbols): Remove "struct" from foreach.
602 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
604 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
606 * darwin-nat.c (thread_info_from_private_thread_info): Remove
607 "struct" from foreach.
608 * ada-lang.c (create_excep_cond_exprs)
609 (ada_exception_catchpoint_cond_string): Remove "struct" from
612 2019-05-03 Tom Tromey <tromey@adacore.com>
614 * ada-exp.y (convert_char_literal): Check suffix of each
617 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
620 * ada-exp.y (yywrap): Don't define.
621 * ada-lex.l (%option): Add noyywrap
624 2019-05-03 Eli Zaretskii <eliz@gnu.org>
626 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
627 _WIN32_WINNT to the XP level, unless already defined to a higher
630 * unittests/parse-connection-spec-selftests.c:
632 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
635 * symfile.c (find_separate_debug_file): Remove colon from the
636 drive spec of DOS/Windows file names of the target, so that the
637 file name produced from DEBUGDIR and the target's directory will
638 be valid on DOS/Windows systems.
640 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
642 * rust-lang.c (val_print_struct): Handle printing structures
645 2019-05-02 Tom Tromey <tromey@adacore.com>
647 * valarith.c (_initialize_valarith): Remove.
649 2019-05-01 Tom Tromey <tromey@adacore.com>
651 * ada-lang.c (ada_value_primitive_field): Treat more fields as
654 2019-05-01 Tom Tromey <tromey@adacore.com>
656 * ada-lang.c (ada_value_assign): Correctly compute starting offset
657 for big-endian copies.
659 2019-04-30 Ali Tamur <tamur@google.com>
660 * gdb/dwarf2read.c (read_3_bytes): New declaration.
661 (read_attribute_value): Added DW_FORM_strx1-4 cases.
662 (read_3_bytes): New function.
664 2019-04-30 Joel Brobecker <brobecker@adacore.com>
666 * windows-nat.c (main_thread_id): Delete.
667 (handle_output_debug_string): Replace main_thread_id by
668 current_event.dwThreadId.
669 (fake_create_process): Likewise.
670 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
671 Do not set main_thread_id.
672 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
673 current_event.dwThreadId.
674 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
676 2019-04-30 Joel Brobecker <brobecker@adacore.com>
678 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
679 Use current_event.dwThreadId instead of main_thread_id.
681 2019-04-30 Tom Tromey <tromey@adacore.com>
683 * ada-lang.c (ada_lookup_simple_minsyms): New function.
684 (create_excep_cond_exprs): Iterate over program spaces.
685 (ada_exception_catchpoint_cond_string): Examine all minimal
686 symbols for exception types.
688 2019-04-30 Tom Tromey <tromey@adacore.com>
691 * dwarf2read.c (process_structure_scope): Handle case where type
692 has template parameters but no symbol was created.
694 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
695 Chris January <chris.january@arm.com>
697 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
699 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
701 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
703 * f-typeprint.c (f_print_type): Update rules for printing
705 (f_type_print_varspec_suffix): Likewise.
707 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
708 Chris January <chris.january@arm.com>
710 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
713 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
715 * f-lang.c (build_fortran_types): Change name of void type to
717 * f-typeprint.c (f_type_print_base): Print the name of the void
718 type, rather than a fixed string.
719 * f-valprint.c (f_decorations): Use lower case void string.
721 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
722 Chris January <chris.january@arm.com>
724 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
727 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
728 Chris January <chris.january@arm.com>
729 David Lecomber <david.lecomber@arm.com>
731 * f-exp.y (BINOP_INTRINSIC): New token.
732 (exp): New parser rule handling BINOP_INTRINSIC.
733 (f77_keywords): Add new builtin procedures.
734 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
735 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
736 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
737 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
738 (print_unop_subexp_f): New function.
739 (print_binop_subexp_f): New function.
740 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
741 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
742 (dump_subexp_body_f): Likewise.
743 (operator_check_f): Likewise.
744 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
745 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
747 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
749 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
751 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
752 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
753 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
754 (operator_length_f): New fuction.
755 (print_subexp_f): New function.
756 (op_name_f): New function.
757 (dump_subexp_body_f): New function.
758 (operator_check_f): New function.
759 (exp_descriptor_f): Replace standard expression handling functions
761 * gdb/fortran-operator.def: New file.
762 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
763 * gdb/std-operator.def: Remove UNOP_KIND.
765 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
767 * std-operator.def: Remove unbalanced, stray double quote
770 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
771 Chris January <chris.january@arm.com>
772 Daniel Everett <daniel.everett@arm.com>
773 Nick Forrington <nick.forrington@arm.com>
774 Richard Bunt <richard.bunt@arm.com>
776 * cp-valprint.c (cp_print_value_fields): Allow an additional level
777 of depth when printing anonymous structs or unions.
778 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
779 Don't print either the top-level value, or the children if the
780 max-depth is exceeded.
781 (ppscm_print_children): When printing the key of a map, allow one
782 extra level of depth.
783 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
784 print either the top-level value, or the children if the max-depth
786 (print_children): When printing the key of a map, allow one extra
788 * python/py-value.c (valpy_format_string): Add max_depth keyword.
789 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
790 (user_print_options): Initialise max_depth field.
791 (val_print_scalar_or_string_type_p): New function.
792 (val_print): Check to see if the max depth has been reached.
793 (val_print_check_max_depth): Define new function.
794 (show_print_max_depth): New function.
795 (_initialize_valprint): Add 'print max-depth' option.
796 * valprint.h (struct value_print_options) <max_depth>: New field.
797 (val_print_check_max_depth): Declare new function.
798 * NEWS: Document new feature.
800 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
802 * ada-lang.c (ada_language_defn): Initialise new field.
803 * c-lang.c (c_is_string_type_p): New function.
804 (c_language_defn): Initialise new field.
805 (cplus_language_defn): Initialise new field.
806 (asm_language_defn): Initialise new field.
807 (minimal_language_defn): Initialise new field.
808 * c-lang.h (c_is_string_type_p): Declare new function.
809 * d-lang.c (d_language_defn): Initialise new field.
810 * f-lang.c (f_is_string_type_p): New function.
811 (f_language_defn): Initialise new field.
812 * go-lang.c (go_is_string_type_p): New function.
813 (go_language_defn): Initialise new field.
814 * language.c (default_is_string_type_p): New function.
815 (unknown_language_defn): Initialise new field.
816 (auto_language_defn): Initialise new field.
817 * language.h (struct language_defn) <la_is_string_type_p>: New
819 (default_is_string_type_p): Declare new function.
820 * m2-lang.c (m2_language_defn): Initialise new field.
821 * objc-lang.c (objc_language_defn): Initialise new field.
822 * opencl-lang.c (opencl_language_defn): Initialise new field.
823 * p-lang.c (pascal_is_string_type_p): New function.
824 (pascal_language_defn): Initialise new field.
825 * rust-lang.c (rust_is_string_type_p): New function.
826 (rust_language_defn): Initialise new field.
828 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
830 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
832 * ada-lang.c (ada_language_defn): Initialise new field.
833 * c-lang.c (c_language_defn): Likewise.
834 (cplus_language_defn): Likewise.
835 (asm_language_defn): Likewise.
836 (minimal_language_defn): Likewise.
837 * d-lang.c (d_language_defn): Likewise.
838 * f-lang.c (f_language_defn): Likewise.
839 * go-lang.c (go_language_defn): Likewise.
840 * language.c (unknown_language_defn): Likewise.
841 (auto_language_defn): Likewise.
842 * m2-lang.c (m2_language_defn): Likewise.
843 * objc-lang.c (objc_language_defn): Likewise.
844 * opencl-lang.c (opencl_language_defn): Likewise.
845 * p-lang.c (pascal_language_defn): Likewise.
846 * rust-lang.c (rust_language_defn): Likewise.
848 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
850 * ada-lang.c (ada_is_character_type): Change return type to bool.
851 (ada_is_string_type): Likewise.
852 * ada-lang.h (ada_is_character_type): Update declaration
853 (ada_is_string_type): Likewise.
855 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
857 Support style in 'frame|thread apply'
859 * gdbcmd.h (execute_command_to_string): New term_out parameter.
860 * record.c (record_start, record_stop): Update callers of
861 execute_command_to_string with false.
862 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
863 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
865 (class string_file): New constructor with term_out parameter.
866 Override methods term_out and can_emit_style_escape. New member
868 (class stdio_file): Override can_emit_style_escape.
869 (class tee_file): Override term_out and can_emit_style_escape.
870 * utils.h (can_emit_style_escape): Remove.
871 * utils.c (can_emit_style_escape): Likewise.
872 Update all callers of can_emit_style_escape (SOMESTREAM) to
873 SOMESTREAM->can_emit_style_escape.
874 * source-cache.c (source_cache::get_source_lines): Likewise.
875 * stack.c (frame_apply_command_count): Call execute_command_to_string
876 passing the term_out characteristic of the current gdb_stdout.
877 * thread.c (thr_try_catch_cmd): Likewise.
878 * top.c (execute_command_to_string): pass term_out parameter
879 to construct the string_file for the command output.
880 * ui-file.c (term_cli_styling): New function (most code moved
881 from utils.c can_emit_style_escape).
882 (string_file::string_file, string_file::can_emit_style_escape,
883 stdio_file::can_emit_style_escape, tee_file::term_out,
884 tee_file::can_emit_style_escape): New functions.
886 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
888 * NEWS: Mention the new set|show may-call-functions.
889 * infcall.c (may_call_functions_p): New variable.
890 (show_may_call_functions_p): New function.
891 (call_function_by_hand_dummy): Throws an error if not
893 (_initialize_infcall): Call add_setshow_boolean_cmd for
896 2019-04-25 Keith Seitz <keiths@redhat.com>
899 * cp-support.c (inspect_type): Don't attempt substitutions
900 of symbol with the same name.
902 2019-04-25 Tom Tromey <tromey@adacore.com>
905 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
908 2019-04-25 Tom Tromey <tromey@adacore.com>
910 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
912 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
913 (gdb_xml_parser::parse): Use std::move.
914 * python/python-internal.h (gdbpy_convert_exception): Take a const
916 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
918 * python/py-utils.c (gdbpy_convert_exception): Take a const
920 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
922 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
924 * mi/mi-main.c (mi_print_exception): Take a const reference.
925 * main.c (handle_command_errors): Take a const reference.
926 * linespec.c (parse_linespec): Use std::move.
927 * infcall.c (run_inferior_call): Use std::move.
928 (call_function_by_hand_dummy): Use std::move.
929 * exec.c (try_open_exec_file): Use std::move.
930 * exceptions.h (exception_print, exception_fprintf)
931 (exception_print_same): Update.
932 * exceptions.c (print_exception, exception_print)
933 (exception_fprintf, exception_print_same): Change parameters to
935 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
936 * common/new-op.c: Use std::move.
937 * common/common-exceptions.h (struct gdb_exception): Add move
939 (struct gdb_exception_error, struct gdb_exception_quit, struct
940 gdb_quit_bad_alloc): Change constructor to move constructor.
941 (throw_exception): Change parameter to rvalue reference.
942 * common/common-exceptions.c (throw_exception): Take rvalue
944 * cli/cli-interp.c (safe_execute_command): Use std::move.
945 * breakpoint.c (insert_bp_location, location_to_sals): Use
948 2019-04-25 Tom Tromey <tromey@adacore.com>
950 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
951 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
952 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
953 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
954 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
955 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
956 guile/scm-value.c: Use unpack.
957 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
958 gdbscm_gdb_exception.
959 (gdbscm_throw_gdb_exception): Likewise.
960 (struct gdbscm_gdb_exception): New.
961 (unpack): New function.
962 (gdbscm_wrap): Use unpack.
964 2019-04-25 Tom Tromey <tromey@adacore.com>
966 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
967 (gdb_rl_callback_handler): Use std::move.
968 * common/common-exceptions.h (struct gdb_exception): Add move
970 (throw_exception_sjlj): Change "exception" to const reference.
971 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
972 (throw_exception_sjlj): Change "exception" to const reference.
974 2019-04-25 Tom Tromey <tromey@adacore.com>
976 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
977 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
978 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
980 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
982 * mi/mi-interp.c (mi_interp::exec): Update.
983 * linespec.c (parse_linespec): Update.
984 * infcall.c (run_inferior_call): Update.
985 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
986 * guile/scm-symbol.c (gdbscm_lookup_symbol)
987 (gdbscm_lookup_global_symbol): Update.
988 * guile/scm-param.c (gdbscm_parameter_value): Update.
989 * guile/scm-frame.c (gdbscm_frame_read_register)
990 (gdbscm_frame_read_var): Update.
991 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
992 * exec.c (try_open_exec_file): Update.
993 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
994 (gdb_rl_callback_handler): Update.
995 * common/common-exceptions.h (exception_none): Don't declare.
996 * common/common-exceptions.c (exception_none): Don't define.
997 (struct catcher) <exception>: Update.
998 * cli/cli-interp.c (safe_execute_command): Update.
999 * breakpoint.c (insert_bp_location, location_to_sals): Update.
1001 2019-04-25 Ali Tamur <tamur@google.com>
1003 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
1004 (read_attribute_value): Likewise.
1005 (dwarf2_read_addr_index): Update comment.
1006 (read_str_index): Add DW_FORM_strx.
1007 (dwarf2_string_attr): Likewise.
1008 (dwarf2_const_value_attr): Likewise.
1009 (dump_die_shallow): Likewise.
1010 (dwarf2_fetch_constant_bytes): Likewise.
1011 (skip_form_bytes): Likewise.
1012 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
1014 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
1018 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
1019 OFFSET. Verify if current mapping contains an ELF header.
1020 (linux_find_memory_regions_full): Adjust call to
1023 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
1024 Kang Li <kanglictf@gmail.com>
1028 * dwarf2-frame.c (read_initial_length): Be consistent about using
1029 unsigned representation of length.
1030 (decode_frame_entry_1): Likewise. Check for wraparound of
1031 end pointer as well as buffer overflow.
1033 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
1035 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
1038 2019-04-24 Tom Tromey <tromey@adacore.com>
1040 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
1042 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1044 * s12z-tdep.c (s12z_unwind_pc): Delete.
1045 (s12z_unwind_sp): Delete.
1046 (s12z_gdbarch_init): Don't register deleted functions with
1049 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1051 * rl78-tdep.c (rl78_unwind_sp): Delete.
1052 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
1054 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1056 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
1057 (xstormy16_unwind_pc): Delete.
1058 (xstormy16_dummy_id): Delete.
1059 (xstormy16_gdbarch_init): Don't register deleted functions with
1062 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1064 * vax-tdep.c (vax_unwind_pc): Delete.
1065 (vax_gdbarch_init): Don't register deleted function with gdbarch.
1067 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1069 * v850-tdep.c (v850_unwind_sp): Delete.
1070 (v850_unwind_pc): Delete.
1071 (v850_dummy_id): Delete.
1072 (v850_gdbarch_init): Don't register deleted functions with
1075 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1077 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
1078 (tilegx_unwind_pc): Delete.
1079 (tilegx_unwind_dummy_id): Delete.
1080 (tilegx_gdbarch_init): Don't register deleted functions with
1083 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1085 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
1086 (tic6x_dummy_id): Delete.
1087 (tic6x_gdbarch_init): Don't register deleted functions with
1090 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1092 * sparc-tdep.c (sparc_unwind_pc): Delete.
1093 (sparc32_gdbarch_init): Don't register deleted function with
1096 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1098 * sh-tdep.c (sh_unwind_sp): Delete.
1099 (sh_unwind_pc): Delete.
1100 (sh_dummy_id): Delete.
1101 (sh_gdbarch_init): Don't register deleted functions with
1104 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1106 * score-tdep.c (score_unwind_sp): Delete.
1107 (score_unwind_pc): Delete.
1108 (score_dummy_id): Delete.
1109 (score_gdbarch_init): Don't register deleted functions with
1112 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1114 * rx-tdep.c (rx_unwind_pc): Delete.
1115 (rx_unwind_sp): Delete.
1116 (rx_dummy_id): Delete.
1117 (rx_gdbarch_init): Don't register deleted functions with
1118 gdbarch. Update comment.
1120 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1122 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
1123 (rs6000_dummy_id): Delete.
1124 (rs6000_gdbarch_init): Don't register deleted functions with
1127 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1129 * or1k-tdep.c (or1k_dummy_id): Delete.
1130 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
1132 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1134 * nios2-tdep.c (nios2_dummy_id): Delete.
1135 (nios2_unwind_sp): Delete.
1136 (nios2_gdbarch_init): Don't register deleted functions with
1139 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1141 * nds32-tdep.c (nds32_dummy_id): Delete.
1142 (nds32_unwind_pc): Delete.
1143 (nds32_unwind_sp): Delete.
1144 (nds32_gdbarch_init): Don't register deleted functions with
1147 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1149 * msp430-tdep.c (msp430_unwind_pc): Delete.
1150 (msp430_unwind_sp): Delete.
1151 (msp430_dummy_id): Delete.
1152 (msp430_gdbarch_init): Don't register deleted functions with
1155 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1157 * moxie-tdep.c (moxie_unwind_sp): Delete.
1158 (moxie_unwind_pc): Delete.
1159 (moxie_dummy_id): Delete.
1160 (moxie_gdbarch_init): Don't register deleted functions with
1163 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1165 * mn10300-tdep.c (mn10300_dummy_id): Delete.
1166 (mn10300_unwind_pc): Delete.
1167 (mn10300_unwind_sp): Delete.
1168 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
1170 (mn10300_frame_unwind_init): Don't register deleted functions with
1173 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1175 * mep-tdep.c (mep_unwind_pc): Delete.
1176 (mep_unwind_sp): Delete.
1177 (mep_dummy_id): Delete.
1178 (mep_gdbarch_init): Don't register deleted functions with
1181 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1183 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
1184 (m68hc11_unwind_sp): Delete.
1185 (m68hc11_gdbarch_init): Don't register deleted functions with
1188 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1190 * m32r-tdep.c (m32r_unwind_sp): Delete.
1191 (m32r_unwind_pc): Delete.
1192 (m32r_dummy_id): Delete.
1193 (m32r_gdbarch_init): Don't register deleted functions with
1196 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1198 * m32c-tdep.c (m32c_unwind_pc): Delete.
1199 (m32c_unwind_sp): Delete.
1200 (m32c_dummy_id): Delete.
1201 (m32c_gdbarch_init): Don't register deleted functions with
1204 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1206 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
1207 (lm32_unwind_pc): Delete.
1208 (lm32_dummy_id): Delete.
1209 (lm32_gdbarch_init): Don't register deleted functions with
1212 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1214 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
1215 (iq2000_unwind_pc): Delete.
1216 (iq2000_dummy_id): Delete.
1217 (iq2000_gdbarch_init): Don't register deleted functions with
1220 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1222 * nds32-tdep.c (nds32_type_align): Delete.
1223 (nds32_push_dummy_call): Use type_align instead.
1225 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1227 * arm-tdep.c (arm_type_align): Only handle vector override case.
1228 (arm_push_dummy_call): Use type_align.
1229 (arm_gdbarch_init): Register arm_type_align gdbarch function.
1231 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1233 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
1235 (pass_on_stack): Use type_align.
1236 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
1239 2019-04-23 Tom Tromey <tromey@adacore.com>
1241 * dwarf2read.c (line_header::file_name_at): Remove unused
1244 2019-04-23 Tom de Vries <tdevries@suse.de>
1247 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
1251 2019-03-27 Ali Tamur <tamur@google.com>
1253 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
1254 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
1255 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
1256 (dwarf_expr_context::get_addr_index): Likewise
1257 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
1258 (symbol_needs_eval_context::get_addr_index): Likewise
1259 (disassemble_dwarf_expression): Add DW_OP_addrx
1260 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
1261 (read_cutu_die_from_dwo): Update comment
1262 (skip_one_die): Add DW_FORM_addrx
1263 (read_attribute_value): Likewise
1264 (var_decode_location): Add DW_OP_addrx
1265 (dwarf2_const_value_attr): Add DW_FORM_addrx
1266 (dump_die_shallow): Likewise
1267 (dwarf2_fetch_constant_bytes): Likewise
1268 (decode_locdesc): Add DW_OP_addrx
1269 (skip_form_bytes): Add DW_FORM_addrx
1271 2019-04-22 Ali Tamur <tamur@google.com>
1273 * MAINTAINERS (Write After Approval): Add self.
1275 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
1277 * solib-svr4.c (get_svr4_info): Add pspace parameter.
1278 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
1279 (open_symbol_file_object): Likewise.
1280 (svr4_default_sos): Add info parameter.
1281 (svr4_read_so_list): Likewise.
1282 (svr4_current_sos_direct): Adjust functions calls to pass down
1284 (svr4_current_sos_1): Add info parameter.
1285 (svr4_current_sos): Call get_svr4_info, pass info down to
1287 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
1289 (svr4_in_dynsym_resolve_code): Pass current_program_space to
1291 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
1293 (probes_table_remove_objfile_probes): Likewise.
1294 (register_solib_event_probe): Add info parameter.
1295 (solist_update_incremental): Pass info parameter down to
1297 (disable_probes_interface): Add info parameter.
1298 (svr4_handle_solib_event): Pass current_program_space to
1299 get_svr4_info. Adjust disable_probes_interface cleanup.
1300 (svr4_create_probe_breakpoints): Add info parameter, pass it
1301 down to register_solib_event_probe.
1302 (svr4_create_solib_event_breakpoints): Add info parameter,
1303 pass it down to svr4_create_probe_breakpoints.
1304 (enable_break): Pass info down to
1305 svr4_create_solib_event_breakpoints.
1306 (svr4_solib_create_inferior_hook): Pass current_program_space to
1308 (svr4_clear_solib): Likewise.
1310 2019-04-22 Pedro Alves <palves@redhat.com>
1312 * solib-svr4.c (svr4_free_objfile_observer): New.
1313 (probe_and_action::objfile): New field.
1314 (probes_table_htab_remove_objfile_probes)
1315 (probes_table_remove_objfile_probes): New functions.
1316 (register_solib_event_probe): Add 'objfile' parameter. Store it
1317 in the new probe_and_action. Don't store the probe in 'lookup'.
1318 (svr4_create_probe_breakpoints): Pass objfile to
1319 register_solib_event_probe.
1320 (_initialize_svr4_solib): Register a free_objfile observer.
1322 2019-04-19 Tom Tromey <tom@tromey.com>
1324 * common/queue.h: Remove.
1326 2019-04-19 Tom Tromey <tom@tromey.com>
1328 * event-loop.c: Don't include "common/queue.h".
1330 2019-04-19 Tom Tromey <tom@tromey.com>
1332 * remote.c (remote_target): Use delete.
1333 * remote-notif.h: Include <list>, not "common/queue.h".
1334 (notif_client_p): Remove typedef.
1335 (remote_notif_state): Add constructor, destructor, initializer.
1336 <notif_queue>: Now a std::list.
1337 (remote_notif_state_xfree): Don't declare.
1338 * remote-notif.c (remote_notif_process, handle_notification)
1339 (remote_notif_state_allocate): Update.
1340 (~remote_notif_state): Rename from remote_notif_state_xfree.
1342 2019-04-19 Tom Tromey <tom@tromey.com>
1344 * symfile.c (reread_symbols): Update.
1345 * objfiles.c (objfile_register_static_link)
1346 (objfile_lookup_static_link): Update
1347 (~objfile) Don't delete static_links.
1348 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
1350 2019-04-19 Tom Tromey <tom@tromey.com>
1352 * type-stack.h (struct type_stack) <insert>: Constify string.
1353 * type-stack.c (type_stack::insert): Constify string.
1354 * gdbtypes.h (lookup_template_type): Update.
1355 (address_space_name_to_int): Update.
1356 * gdbtypes.c (address_space_name_to_int): Make space_identifier
1358 (lookup_template_type): Make name const.
1359 * c-exp.y: Update rules.
1360 (lex_one_token, classify_name, classify_inner_name)
1361 (c_print_token): Update.
1362 * p-exp.y: Update rules.
1364 * f-exp.y: Update rules.
1366 * d-exp.y: Update rules.
1367 (lex_one_token, classify_name, classify_inner_name): Update.
1368 * parse.c (write_dollar_variable, copy_name): Return std::string.
1369 * parser-defs.h (copy_name): Change return type.
1370 * m2-exp.y: Update rules.
1372 * go-exp.y (lex_one_token): Update.
1374 (classify_unsafe_function, classify_packaged_name)
1375 (classify_name, yylex): Update.
1377 2019-04-19 Sergei Trofimovich <siarheit@google.com>
1379 * configure.ac: add --enable-source-highlight switch.
1380 * configure: Regenerate.
1381 * top.c (print_gdb_version): plumb --enable-source-highlight
1382 status to "show configuration".
1384 2019-04-19 Tom Tromey <tromey@adacore.com>
1386 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
1388 (empty_record, ada_template_to_fixed_record_type_1)
1389 (template_to_static_fixed_type)
1390 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
1391 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
1392 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
1395 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
1398 * source.c (print_source_lines_base): Advance "iter" when a
1399 control character is seen.
1401 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1403 * inferior.h (struct infcall_suspend_state_deleter):
1404 Catch exception in destructor to avoid crash.
1406 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1408 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
1409 close to the add_com "shell".
1411 2019-04-18 Tom Tromey <tromey@adacore.com>
1413 * process-stratum-target.h (class process_stratum_target)
1414 <stratum>: Add "final".
1416 2019-04-17 Tom Tromey <tromey@adacore.com>
1418 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
1419 against nullptr before use.
1421 2019-04-17 Alan Hayward <alan.hayward@arm.com>
1423 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
1425 2019-04-17 Jim Wilson <jimw@sifive.com>
1426 Andrew Burgess <andrew.burgess@embecosm.com>
1428 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
1429 code read might fail, assume 4-byte breakpoint in that case.
1431 2019-04-15 Leszek Swirski <leszeks@google.com>
1433 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
1434 rather than a hand-rolled POD check when checking for forced MEMORY
1437 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1439 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
1440 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
1442 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
1443 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
1444 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
1447 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1449 * aarch64-linux-nat.c
1450 (aarch64_linux_nat_target::thread_architecture): Add override.
1451 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
1454 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1456 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
1458 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
1460 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
1461 target types of size 96-bits, add some additional comments, and
1462 check that the builtin type we found was the correct size.
1464 2019-04-12 Eli Zaretskii <eliz@gnu.org>
1466 * utils.c (prompt_for_continue): Don't restore the styling at the
1467 end, as applied_style has the wrong value. This fixes styling in
1468 long lists of file names that are interrupted by the "Continue?"
1471 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
1473 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
1474 * c-lang.c (c_language_defn): Likewise.
1475 (cplus_language_defn): Likewise.
1476 (asm_language_defn): Likewise.
1477 (minimal_language_defn): Likewise.
1478 * d-lang.c (d_language_defn): Likewise.
1479 * f-lang.c (f_language_defn): Likewise.
1480 * go-lang.c (go_language_defn): Likewise.
1481 * language.c (unknown_language_defn): Likewise.
1482 (auto_language_defn): Likewise.
1483 * language.h (struct language_defn): Remove la_magic field.
1484 (LANG_MAGIC): Delete.
1485 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
1486 * objc-lang.c (objc_language_defn): Likewise.
1487 * opencl-lang.c (opencl_language_defn): Likewise.
1488 * p-lang.c (pascal_language_defn): Likewise.
1489 * rust-lang.c (rust_language_defn): Likewise.
1491 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1493 * riscv-tdep.c (riscv_type_align): New function.
1494 (riscv_type_alignment): Delete.
1495 (riscv_arg_location): Use 'type_align'.
1496 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
1498 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1500 * gdbtypes.c (type_align): A struct with no non-static fields also
1503 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1505 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
1507 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
1509 (riscv_struct_info::analyse): New implementation using new
1510 analyse_inner member function.
1511 (riscv_struct_info::field_offset): New member function.
1512 (riscv_struct_info::m_offsets): New member variable.
1513 (riscv_struct_info::analyse_inner): New private member function,
1514 takes the old implementation of riscv_struct_info::analyse but
1515 extended to track field offsets.
1516 (riscv_call_arg_struct): Update the struct folding special cases
1517 to handle cases where empty C++ structs, which are non-zero
1519 (riscv_arg_location): Initialise the length of each location, a
1520 non-zero length now indicates the location is in use.
1521 (riscv_push_dummy_call): Allow for the first location having a
1522 non-zero offset when setting up arguments.
1523 (riscv_return_value): Likewise, but for return values.
1525 2019-04-11 Tom Tromey <tromey@adacore.com>
1527 * utils.c (internal_vproblem): Make "msg" const.
1529 2019-04-11 Alan Hayward <alan.hayward@arm.com>
1531 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
1532 * trad-frame.c (trad_frame_reset_saved_regs): New function.
1533 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
1534 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
1536 2019-04-10 Kevin Buettner <kevinb@redhat.com>
1538 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
1540 (fill_gregset): Call amd64_linux_collect_native_gregset instead
1541 of amd64_collect_native_gregset.
1542 (amd64_linux_nat_target::store_registers): Likewise.
1544 2019-04-10 Tom Tromey <tom@tromey.com>
1546 * symtab.c (lookup_global_symbol_from_objfile)
1547 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
1548 * objfiles.h (class separate_debug_iterator): New.
1549 (class separate_debug_range): New.
1550 (struct objfile) <separate_debug_objfiles>: New method.
1551 (objfile_separate_debug_iterate): Don't declare.
1552 * objfiles.c (separate_debug_iterator::operator++): Rename from
1553 objfile_separate_debug_iterate.
1554 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
1556 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
1559 2019-04-10 Tom Tromey <tom@tromey.com>
1561 * symfile.c (reread_symbols): Remove old comment.
1562 * objfiles.c (free_all_objfiles): Fix a typo.
1564 2019-04-10 Tom Tromey <tom@tromey.com>
1566 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
1567 * minsyms.c (lookup_minimal_symbol): Use foreach.
1568 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
1569 (lookup_minimal_symbol_solib_trampoline): Likewise.
1570 * symfile.c (reread_symbols): Use foreach.
1572 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
1573 Tom Tromey <tromey@adacore.com>
1576 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
1577 (rust_lex_int_test): Change "value" to be LONGEST.
1578 (rust_lex_tests): Add test for long integer literal.
1580 2019-04-09 Tom Tromey <tromey@adacore.com>
1582 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
1584 (extended_remote_target::attach): Update.
1585 (remote_target::remote_notice_new_inferior): Update.
1586 (remote_target::add_current_inferior_and_thread): Update.
1587 * inferior.c (exit_inferior_1): Use "false".
1588 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
1590 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
1592 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
1593 the "start" command.
1595 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1597 * python/py-inferior.c (infpy_thread_from_thread_handle):
1598 Adjust comments to reflect renaming of thread_from_thread_handle
1599 to thread_from_handle. Adjust keywords. Fix type error message.
1600 (inferior_object_methods): Add thread_from_handle. Retain
1601 thread_from_thread_handle, but mark it as deprecated.
1603 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1605 * gdbthread.h (find_thread_by_handle): Revise declaration.
1606 * thread.c (find_thread_by_handle): Likewise. Adjust
1608 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
1609 support for buffer objects as handles.
1611 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1613 * python/py-infthread.c (thpy_thread_handle): New function.
1614 (thread_object_methods): Register thpy_thread_handle.
1616 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1618 * gdbthread.h (thread_to_thread_handle): Declare.
1619 * thread.c (gdbtypes.h): Include.
1620 (thread_to_thread_handle): New function.
1622 * target.h (struct target_ops): Add thread_info_to_thread_handle.
1623 (target_thread_info_to_thread_handle): Declare.
1624 * target.c (target_thread_info_to_thread_handle): New function.
1625 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
1626 * target-delegates.c: Regenerate.
1628 * linux-thread-db.c (class thread_db_target): Add method
1629 thread_info_to_thread_handle.
1630 (thread_db_target::thread_info_to_thread_handle): Define.
1631 * remote.c (class remote_target): Add new method
1632 thread_info_to_thread_handle.
1633 (remote_target::thread_info_to_thread_handle): Define.
1635 2019-04-08 Pedro Alves <palves@redhat.com>
1637 * common/common-exceptions.c (throw_exception): Don't create
1638 named object to throw; throw directly.
1639 (throw_it): Likewise. Don't initialize gdb_exception::message
1640 here, with new; pass FMT and AP to the ctor instead.
1641 * common/common-exceptions.h: Include <string>.
1642 (gdb_exception::gdb_exception(enum return_reason, enum errors,
1643 const char *, va_list)): New ctor. Use std::make_shared.
1644 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
1646 (gdb_exception_error::gdb_exception_error(enum errors, const char
1648 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
1650 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
1652 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
1653 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
1656 2019-04-08 Tom Tromey <tom@tromey.com>
1658 * valops.c (value_rtti_indirect_type): Replace throw_exception
1660 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
1662 * thread.c (thr_try_catch_cmd): Replace throw_exception with
1664 * target.c (target_translate_tls_address): Replace throw_exception
1666 * stack.c (frame_apply_command_count): Replace throw_exception
1668 * solib-spu.c (append_ocl_sos): Replace throw_exception with
1670 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
1672 * rs6000-tdep.c (rs6000_frame_cache)
1673 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
1674 * remote.c: Replace throw_exception with throw.
1675 * record-full.c (record_full_message, record_full_wait_1)
1676 (record_full_restore): Replace throw_exception with throw.
1678 (get_thread_current_frame_id, record_btrace_start_replaying)
1679 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
1680 (cmd_record_btrace_start): Replace throw_exception with throw.
1681 * parse.c (parse_exp_in_context_1): Replace throw_exception with
1683 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
1684 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
1686 (find_linespec_symbols): Replace throw_exception with throw.
1687 * infrun.c (displaced_step_prepare, resume): Replace
1688 throw_exception with throw.
1689 * infcmd.c (post_create_inferior): Replace throw_exception with
1691 * inf-loop.c (inferior_event_handler): Replace throw_exception
1693 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
1694 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
1695 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
1696 (get_prev_frame_always, get_frame_pc_if_available)
1697 (get_frame_address_in_block_if_available, get_frame_language):
1698 Replace throw_exception with throw.
1699 * frame-unwind.c (frame_unwind_try_unwinder): Replace
1700 throw_exception with throw.
1701 * eval.c (fetch_subexp_value, evaluate_var_value)
1702 (evaluate_funcall, evaluate_subexp_standard): Replace
1703 throw_exception with throw.
1704 * dwarf2loc.c (call_site_find_chain)
1705 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
1706 Replace throw_exception with throw.
1707 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
1709 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
1711 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
1712 * completer.c (complete_line_internal): Replace throw_exception
1714 * compile/compile-object-run.c (compile_object_run): Replace
1715 throw_exception with throw.
1716 * cli/cli-script.c (process_next_line): Replace throw_exception
1718 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
1719 (btrace_enable, btrace_maint_update_pt_packets): Replace
1720 throw_exception with throw.
1721 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
1722 throw_exception with throw.
1723 * break-catch-throw.c (re_set_exception_catchpoint): Replace
1724 throw_exception with throw.
1725 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
1726 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
1727 * aarch64-tdep.c (aarch64_make_prologue_cache)
1728 (aarch64_make_stub_cache): Replace throw_exception with throw.
1730 2019-04-08 Tom Tromey <tom@tromey.com>
1732 * common/common-exceptions.c (throw_exception): Rename from
1733 throw_exception_cxx. Remove old copy. Make argument const.
1734 (throw_it): Create and throw exception objects directly.
1735 * common/common-exceptions.h (throw_exception): Make argument
1737 (struct gdb_exception_error): Add constructor.
1738 (struct gdb_exception_quit): Add constructor.
1740 2019-04-08 Tom Tromey <tom@tromey.com>
1742 * common/common-exceptions.h (exception_rethrow): Don't declare.
1743 (TRY_SJLJ): Update comment.
1744 (TRY, CATCH, END_CATCH): Remove.
1745 * common/common-exceptions.c (exception_rethrow): Remove.
1747 2019-04-08 Tom Tromey <tom@tromey.com>
1749 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
1751 (gdb_exception_error): Rename from
1752 gdb_exception_RETURN_MASK_ERROR.
1753 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
1754 (gdb_quit_bad_alloc): Update.
1755 * aarch64-tdep.c: Update.
1756 * ada-lang.c: Update.
1757 * ada-typeprint.c: Update.
1758 * ada-valprint.c: Update.
1759 * amd64-tdep.c: Update.
1760 * arch-utils.c: Update.
1761 * break-catch-throw.c: Update.
1762 * breakpoint.c: Update.
1764 * c-varobj.c: Update.
1765 * cli/cli-cmds.c: Update.
1766 * cli/cli-interp.c: Update.
1767 * cli/cli-script.c: Update.
1768 * common/common-exceptions.c: Update.
1769 * common/new-op.c: Update.
1770 * common/selftest.c: Update.
1771 * compile/compile-c-symbols.c: Update.
1772 * compile/compile-cplus-symbols.c: Update.
1773 * compile/compile-object-load.c: Update.
1774 * compile/compile-object-run.c: Update.
1775 * completer.c: Update.
1776 * corelow.c: Update.
1778 * cp-support.c: Update.
1779 * cp-valprint.c: Update.
1780 * darwin-nat.c: Update.
1781 * disasm-selftests.c: Update.
1782 * dtrace-probe.c: Update.
1783 * dwarf-index-cache.c: Update.
1784 * dwarf-index-write.c: Update.
1785 * dwarf2-frame-tailcall.c: Update.
1786 * dwarf2-frame.c: Update.
1787 * dwarf2loc.c: Update.
1788 * dwarf2read.c: Update.
1790 * event-loop.c: Update.
1791 * event-top.c: Update.
1793 * f-valprint.c: Update.
1794 * fbsd-tdep.c: Update.
1795 * frame-unwind.c: Update.
1797 * gdbtypes.c: Update.
1798 * gnu-v3-abi.c: Update.
1799 * guile/guile-internal.h: Update.
1800 * guile/scm-block.c: Update.
1801 * guile/scm-breakpoint.c: Update.
1802 * guile/scm-cmd.c: Update.
1803 * guile/scm-disasm.c: Update.
1804 * guile/scm-frame.c: Update.
1805 * guile/scm-lazy-string.c: Update.
1806 * guile/scm-math.c: Update.
1807 * guile/scm-param.c: Update.
1808 * guile/scm-ports.c: Update.
1809 * guile/scm-pretty-print.c: Update.
1810 * guile/scm-symbol.c: Update.
1811 * guile/scm-symtab.c: Update.
1812 * guile/scm-type.c: Update.
1813 * guile/scm-value.c: Update.
1814 * i386-linux-tdep.c: Update.
1815 * i386-tdep.c: Update.
1816 * inf-loop.c: Update.
1817 * infcall.c: Update.
1821 * language.c: Update.
1822 * linespec.c: Update.
1823 * linux-fork.c: Update.
1824 * linux-nat.c: Update.
1825 * linux-tdep.c: Update.
1826 * linux-thread-db.c: Update.
1828 * mi/mi-cmd-break.c: Update.
1829 * mi/mi-cmd-stack.c: Update.
1830 * mi/mi-interp.c: Update.
1831 * mi/mi-main.c: Update.
1832 * objc-lang.c: Update.
1833 * p-valprint.c: Update.
1835 * ppc-linux-tdep.c: Update.
1836 * printcmd.c: Update.
1837 * python/py-arch.c: Update.
1838 * python/py-breakpoint.c: Update.
1839 * python/py-cmd.c: Update.
1840 * python/py-finishbreakpoint.c: Update.
1841 * python/py-frame.c: Update.
1842 * python/py-framefilter.c: Update.
1843 * python/py-gdb-readline.c: Update.
1844 * python/py-inferior.c: Update.
1845 * python/py-infthread.c: Update.
1846 * python/py-lazy-string.c: Update.
1847 * python/py-linetable.c: Update.
1848 * python/py-objfile.c: Update.
1849 * python/py-param.c: Update.
1850 * python/py-prettyprint.c: Update.
1851 * python/py-progspace.c: Update.
1852 * python/py-record-btrace.c: Update.
1853 * python/py-record.c: Update.
1854 * python/py-symbol.c: Update.
1855 * python/py-type.c: Update.
1856 * python/py-unwind.c: Update.
1857 * python/py-utils.c: Update.
1858 * python/py-value.c: Update.
1859 * python/python.c: Update.
1860 * record-btrace.c: Update.
1861 * record-full.c: Update.
1862 * remote-fileio.c: Update.
1864 * riscv-tdep.c: Update.
1865 * rs6000-aix-tdep.c: Update.
1866 * rs6000-tdep.c: Update.
1867 * rust-exp.y: Update.
1868 * rust-lang.c: Update.
1869 * s390-tdep.c: Update.
1870 * selftest-arch.c: Update.
1871 * solib-dsbt.c: Update.
1872 * solib-frv.c: Update.
1873 * solib-spu.c: Update.
1874 * solib-svr4.c: Update.
1876 * sparc64-linux-tdep.c: Update.
1878 * symfile-mem.c: Update.
1879 * symmisc.c: Update.
1883 * tracefile-tfile.c: Update.
1884 * tui/tui.c: Update.
1885 * typeprint.c: Update.
1886 * unittests/cli-utils-selftests.c: Update.
1887 * unittests/parse-connection-spec-selftests.c: Update.
1889 * valprint.c: Update.
1892 * windows-nat.c: Update.
1893 * x86-linux-nat.c: Update.
1894 * xml-support.c: Update.
1896 2019-04-08 Tom Tromey <tom@tromey.com>
1898 * xml-support.c: Use C++ exception handling.
1899 * x86-linux-nat.c: Use C++ exception handling.
1900 * windows-nat.c: Use C++ exception handling.
1901 * varobj.c: Use C++ exception handling.
1902 * value.c: Use C++ exception handling.
1903 * valprint.c: Use C++ exception handling.
1904 * valops.c: Use C++ exception handling.
1905 * unittests/parse-connection-spec-selftests.c: Use C++ exception
1907 * unittests/cli-utils-selftests.c: Use C++ exception handling.
1908 * typeprint.c: Use C++ exception handling.
1909 * tui/tui.c: Use C++ exception handling.
1910 * tracefile-tfile.c: Use C++ exception handling.
1911 * top.c: Use C++ exception handling.
1912 * thread.c: Use C++ exception handling.
1913 * target.c: Use C++ exception handling.
1914 * symmisc.c: Use C++ exception handling.
1915 * symfile-mem.c: Use C++ exception handling.
1916 * stack.c: Use C++ exception handling.
1917 * sparc64-linux-tdep.c: Use C++ exception handling.
1918 * solib.c: Use C++ exception handling.
1919 * solib-svr4.c: Use C++ exception handling.
1920 * solib-spu.c: Use C++ exception handling.
1921 * solib-frv.c: Use C++ exception handling.
1922 * solib-dsbt.c: Use C++ exception handling.
1923 * selftest-arch.c: Use C++ exception handling.
1924 * s390-tdep.c: Use C++ exception handling.
1925 * rust-lang.c: Use C++ exception handling.
1926 * rust-exp.y: Use C++ exception handling.
1927 * rs6000-tdep.c: Use C++ exception handling.
1928 * rs6000-aix-tdep.c: Use C++ exception handling.
1929 * riscv-tdep.c: Use C++ exception handling.
1930 * remote.c: Use C++ exception handling.
1931 * remote-fileio.c: Use C++ exception handling.
1932 * record-full.c: Use C++ exception handling.
1933 * record-btrace.c: Use C++ exception handling.
1934 * python/python.c: Use C++ exception handling.
1935 * python/py-value.c: Use C++ exception handling.
1936 * python/py-utils.c: Use C++ exception handling.
1937 * python/py-unwind.c: Use C++ exception handling.
1938 * python/py-type.c: Use C++ exception handling.
1939 * python/py-symbol.c: Use C++ exception handling.
1940 * python/py-record.c: Use C++ exception handling.
1941 * python/py-record-btrace.c: Use C++ exception handling.
1942 * python/py-progspace.c: Use C++ exception handling.
1943 * python/py-prettyprint.c: Use C++ exception handling.
1944 * python/py-param.c: Use C++ exception handling.
1945 * python/py-objfile.c: Use C++ exception handling.
1946 * python/py-linetable.c: Use C++ exception handling.
1947 * python/py-lazy-string.c: Use C++ exception handling.
1948 * python/py-infthread.c: Use C++ exception handling.
1949 * python/py-inferior.c: Use C++ exception handling.
1950 * python/py-gdb-readline.c: Use C++ exception handling.
1951 * python/py-framefilter.c: Use C++ exception handling.
1952 * python/py-frame.c: Use C++ exception handling.
1953 * python/py-finishbreakpoint.c: Use C++ exception handling.
1954 * python/py-cmd.c: Use C++ exception handling.
1955 * python/py-breakpoint.c: Use C++ exception handling.
1956 * python/py-arch.c: Use C++ exception handling.
1957 * printcmd.c: Use C++ exception handling.
1958 * ppc-linux-tdep.c: Use C++ exception handling.
1959 * parse.c: Use C++ exception handling.
1960 * p-valprint.c: Use C++ exception handling.
1961 * objc-lang.c: Use C++ exception handling.
1962 * mi/mi-main.c: Use C++ exception handling.
1963 * mi/mi-interp.c: Use C++ exception handling.
1964 * mi/mi-cmd-stack.c: Use C++ exception handling.
1965 * mi/mi-cmd-break.c: Use C++ exception handling.
1966 * main.c: Use C++ exception handling.
1967 * linux-thread-db.c: Use C++ exception handling.
1968 * linux-tdep.c: Use C++ exception handling.
1969 * linux-nat.c: Use C++ exception handling.
1970 * linux-fork.c: Use C++ exception handling.
1971 * linespec.c: Use C++ exception handling.
1972 * language.c: Use C++ exception handling.
1973 * jit.c: Use C++ exception handling.
1974 * infrun.c: Use C++ exception handling.
1975 * infcmd.c: Use C++ exception handling.
1976 * infcall.c: Use C++ exception handling.
1977 * inf-loop.c: Use C++ exception handling.
1978 * i386-tdep.c: Use C++ exception handling.
1979 * i386-linux-tdep.c: Use C++ exception handling.
1980 * guile/scm-value.c: Use C++ exception handling.
1981 * guile/scm-type.c: Use C++ exception handling.
1982 * guile/scm-symtab.c: Use C++ exception handling.
1983 * guile/scm-symbol.c: Use C++ exception handling.
1984 * guile/scm-pretty-print.c: Use C++ exception handling.
1985 * guile/scm-ports.c: Use C++ exception handling.
1986 * guile/scm-param.c: Use C++ exception handling.
1987 * guile/scm-math.c: Use C++ exception handling.
1988 * guile/scm-lazy-string.c: Use C++ exception handling.
1989 * guile/scm-frame.c: Use C++ exception handling.
1990 * guile/scm-disasm.c: Use C++ exception handling.
1991 * guile/scm-cmd.c: Use C++ exception handling.
1992 * guile/scm-breakpoint.c: Use C++ exception handling.
1993 * guile/scm-block.c: Use C++ exception handling.
1994 * guile/guile-internal.h: Use C++ exception handling.
1995 * gnu-v3-abi.c: Use C++ exception handling.
1996 * gdbtypes.c: Use C++ exception handling.
1997 * frame.c: Use C++ exception handling.
1998 * frame-unwind.c: Use C++ exception handling.
1999 * fbsd-tdep.c: Use C++ exception handling.
2000 * f-valprint.c: Use C++ exception handling.
2001 * exec.c: Use C++ exception handling.
2002 * event-top.c: Use C++ exception handling.
2003 * event-loop.c: Use C++ exception handling.
2004 * eval.c: Use C++ exception handling.
2005 * dwarf2read.c: Use C++ exception handling.
2006 * dwarf2loc.c: Use C++ exception handling.
2007 * dwarf2-frame.c: Use C++ exception handling.
2008 * dwarf2-frame-tailcall.c: Use C++ exception handling.
2009 * dwarf-index-write.c: Use C++ exception handling.
2010 * dwarf-index-cache.c: Use C++ exception handling.
2011 * dtrace-probe.c: Use C++ exception handling.
2012 * disasm-selftests.c: Use C++ exception handling.
2013 * darwin-nat.c: Use C++ exception handling.
2014 * cp-valprint.c: Use C++ exception handling.
2015 * cp-support.c: Use C++ exception handling.
2016 * cp-abi.c: Use C++ exception handling.
2017 * corelow.c: Use C++ exception handling.
2018 * completer.c: Use C++ exception handling.
2019 * compile/compile-object-run.c: Use C++ exception handling.
2020 * compile/compile-object-load.c: Use C++ exception handling.
2021 * compile/compile-cplus-symbols.c: Use C++ exception handling.
2022 * compile/compile-c-symbols.c: Use C++ exception handling.
2023 * common/selftest.c: Use C++ exception handling.
2024 * common/new-op.c: Use C++ exception handling.
2025 * cli/cli-script.c: Use C++ exception handling.
2026 * cli/cli-interp.c: Use C++ exception handling.
2027 * cli/cli-cmds.c: Use C++ exception handling.
2028 * c-varobj.c: Use C++ exception handling.
2029 * btrace.c: Use C++ exception handling.
2030 * breakpoint.c: Use C++ exception handling.
2031 * break-catch-throw.c: Use C++ exception handling.
2032 * arch-utils.c: Use C++ exception handling.
2033 * amd64-tdep.c: Use C++ exception handling.
2034 * ada-valprint.c: Use C++ exception handling.
2035 * ada-typeprint.c: Use C++ exception handling.
2036 * ada-lang.c: Use C++ exception handling.
2037 * aarch64-tdep.c: Use C++ exception handling.
2039 2019-04-08 Tom Tromey <tom@tromey.com>
2041 * xml-support.c (gdb_xml_parser::parse): Update.
2042 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2043 * value.c (show_convenience): Update.
2044 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
2045 (test_parse_flags_qcs): Update.
2046 * thread.c (thr_try_catch_cmd): Update.
2047 * target.c (target_translate_tls_address): Update.
2048 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2049 (info_frame_command_core, frame_apply_command_count): Update.
2050 * rust-exp.y (rust_lex_exception_test): Update.
2051 * riscv-tdep.c (riscv_print_one_register_info): Update.
2052 * remote.c (remote_target::enable_btrace): Update.
2053 * record-btrace.c (record_btrace_enable_warn): Update.
2054 * python/py-utils.c (gdbpy_convert_exception): Update.
2055 * printcmd.c (do_one_display, print_variable_and_value): Update.
2056 * mi/mi-main.c (mi_print_exception): Update.
2057 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
2058 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2059 * linux-nat.c (linux_nat_target::attach): Update.
2060 * linux-fork.c (class scoped_switch_fork_info): Update.
2061 * infrun.c (displaced_step_prepare): Update.
2062 * infcall.c (call_function_by_hand_dummy): Update.
2063 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
2064 * gnu-v3-abi.c (print_one_vtable): Update.
2065 * frame.c (get_prev_frame_always): Update.
2066 * f-valprint.c (info_common_command_for_block): Update.
2067 * exec.c (try_open_exec_file): Update.
2068 * exceptions.c (print_exception, exception_print)
2069 (exception_fprintf, exception_print_same): Update.
2070 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
2071 * dwarf-index-cache.c (index_cache::store)
2072 (index_cache::lookup_gdb_index): Update.
2073 * darwin-nat.c (maybe_cache_shell): Update.
2074 * cp-valprint.c (cp_print_value_fields): Update.
2075 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
2076 (gcc_cplus_symbol_address): Update.
2077 * compile/compile-c-symbols.c (gcc_convert_symbol)
2078 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
2079 * common/selftest.c: Update.
2080 * common/common-exceptions.h (struct gdb_exception) <message>: Now
2082 (exception_try_scope_entry, exception_try_scope_exit): Don't
2084 (struct exception_try_scope): Remove.
2085 (TRY): Don't use exception_try_scope.
2086 (struct gdb_exception): Add constructor, operator=.
2088 (struct gdb_exception_RETURN_MASK_ALL)
2089 (struct gdb_exception_RETURN_MASK_ERROR)
2090 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
2091 (struct gdb_quit_bad_alloc): Update.
2092 * common/common-exceptions.c (exception_none): Change
2094 (struct catcher) <state, exception>: Initialize inline.
2095 <prev>: Remove member.
2096 (current_catcher): Remove.
2097 (catchers): New global.
2098 (exceptions_state_mc_init): Simplify.
2099 (catcher_pop): Remove.
2100 (exceptions_state_mc, exceptions_state_mc_catch): Update.
2101 (try_scope_depth, exception_try_scope_entry)
2102 (exception_try_scope_exit): Remove.
2103 (throw_exception_sjlj): Update.
2104 (exception_messages, exception_messages_size): Remove.
2105 (throw_it): Simplify.
2106 (gdb_exception_sliced_copy): Remove.
2107 (throw_exception_cxx): Update.
2108 * cli/cli-script.c (script_from_file): Update.
2109 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
2111 * ada-valprint.c (ada_val_print): Update.
2112 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
2113 (create_excep_cond_exprs): Update.
2115 2019-04-08 Tom Tromey <tom@tromey.com>
2117 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
2118 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
2119 (TRY, CATCH, END_CATCH): Remove some definitions.
2120 * common/common-exceptions.c: Don't use GDB_XCPT.
2121 (catcher_list_size): Remove.
2122 (throw_exception, throw_it): Simplify.
2124 2019-04-05 Tom Tromey <tom@tromey.com>
2126 Revert the header-sorting patch.
2127 * ft32-tdep.c: Revert.
2128 * frv-tdep.c: Revert.
2129 * frv-linux-tdep.c: Revert.
2131 * frame-unwind.c: Revert.
2132 * frame-base.c: Revert.
2133 * fork-child.c: Revert.
2134 * findvar.c: Revert.
2135 * findcmd.c: Revert.
2136 * filesystem.c: Revert.
2137 * filename-seen-cache.h: Revert.
2138 * filename-seen-cache.c: Revert.
2139 * fbsd-tdep.c: Revert.
2140 * fbsd-nat.h: Revert.
2141 * fbsd-nat.c: Revert.
2142 * f-valprint.c: Revert.
2143 * f-typeprint.c: Revert.
2145 * extension.h: Revert.
2146 * extension.c: Revert.
2147 * extension-priv.h: Revert.
2148 * expprint.c: Revert.
2151 * exceptions.c: Revert.
2152 * event-top.c: Revert.
2153 * event-loop.c: Revert.
2155 * elfread.c: Revert.
2156 * dwarf2read.h: Revert.
2157 * dwarf2read.c: Revert.
2158 * dwarf2loc.c: Revert.
2159 * dwarf2expr.h: Revert.
2160 * dwarf2expr.c: Revert.
2161 * dwarf2-frame.c: Revert.
2162 * dwarf2-frame-tailcall.c: Revert.
2163 * dwarf-index-write.h: Revert.
2164 * dwarf-index-write.c: Revert.
2165 * dwarf-index-common.c: Revert.
2166 * dwarf-index-cache.h: Revert.
2167 * dwarf-index-cache.c: Revert.
2168 * dummy-frame.c: Revert.
2169 * dtrace-probe.c: Revert.
2172 * disasm-selftests.c: Revert.
2173 * dictionary.c: Revert.
2174 * dicos-tdep.c: Revert.
2175 * demangle.c: Revert.
2178 * darwin-nat.h: Revert.
2179 * darwin-nat.c: Revert.
2180 * darwin-nat-info.c: Revert.
2181 * d-valprint.c: Revert.
2182 * d-namespace.c: Revert.
2185 * csky-tdep.c: Revert.
2186 * csky-linux-tdep.c: Revert.
2187 * cris-tdep.c: Revert.
2188 * cris-linux-tdep.c: Revert.
2189 * cp-valprint.c: Revert.
2190 * cp-support.c: Revert.
2191 * cp-namespace.c: Revert.
2193 * corelow.c: Revert.
2194 * corefile.c: Revert.
2195 * continuations.c: Revert.
2196 * completer.h: Revert.
2197 * completer.c: Revert.
2198 * complaints.c: Revert.
2199 * coffread.c: Revert.
2200 * coff-pe-read.c: Revert.
2201 * cli-out.h: Revert.
2202 * cli-out.c: Revert.
2203 * charset.c: Revert.
2204 * c-varobj.c: Revert.
2205 * c-valprint.c: Revert.
2206 * c-typeprint.c: Revert.
2208 * buildsym.c: Revert.
2209 * buildsym-legacy.c: Revert.
2210 * build-id.h: Revert.
2211 * build-id.c: Revert.
2213 * bsd-uthread.c: Revert.
2214 * breakpoint.h: Revert.
2215 * breakpoint.c: Revert.
2216 * break-catch-throw.c: Revert.
2217 * break-catch-syscall.c: Revert.
2218 * break-catch-sig.c: Revert.
2219 * blockframe.c: Revert.
2221 * bfin-tdep.c: Revert.
2222 * bfin-linux-tdep.c: Revert.
2223 * bfd-target.c: Revert.
2225 * ax-general.c: Revert.
2228 * avr-tdep.c: Revert.
2230 * auto-load.c: Revert.
2231 * arm-wince-tdep.c: Revert.
2232 * arm-tdep.c: Revert.
2233 * arm-symbian-tdep.c: Revert.
2234 * arm-pikeos-tdep.c: Revert.
2235 * arm-obsd-tdep.c: Revert.
2236 * arm-nbsd-tdep.c: Revert.
2237 * arm-nbsd-nat.c: Revert.
2238 * arm-linux-tdep.c: Revert.
2239 * arm-linux-nat.c: Revert.
2240 * arm-fbsd-tdep.c: Revert.
2241 * arm-fbsd-nat.c: Revert.
2242 * arm-bsd-tdep.c: Revert.
2243 * arch-utils.c: Revert.
2244 * arc-tdep.c: Revert.
2245 * arc-newlib-tdep.c: Revert.
2246 * annotate.h: Revert.
2247 * annotate.c: Revert.
2248 * amd64-windows-tdep.c: Revert.
2249 * amd64-windows-nat.c: Revert.
2250 * amd64-tdep.c: Revert.
2251 * amd64-sol2-tdep.c: Revert.
2252 * amd64-obsd-tdep.c: Revert.
2253 * amd64-obsd-nat.c: Revert.
2254 * amd64-nbsd-tdep.c: Revert.
2255 * amd64-nbsd-nat.c: Revert.
2256 * amd64-nat.c: Revert.
2257 * amd64-linux-tdep.c: Revert.
2258 * amd64-linux-nat.c: Revert.
2259 * amd64-fbsd-tdep.c: Revert.
2260 * amd64-fbsd-nat.c: Revert.
2261 * amd64-dicos-tdep.c: Revert.
2262 * amd64-darwin-tdep.c: Revert.
2263 * amd64-bsd-nat.c: Revert.
2264 * alpha-tdep.c: Revert.
2265 * alpha-obsd-tdep.c: Revert.
2266 * alpha-nbsd-tdep.c: Revert.
2267 * alpha-mdebug-tdep.c: Revert.
2268 * alpha-linux-tdep.c: Revert.
2269 * alpha-linux-nat.c: Revert.
2270 * alpha-bsd-tdep.c: Revert.
2271 * alpha-bsd-nat.c: Revert.
2272 * aix-thread.c: Revert.
2274 * addrmap.c: Revert.
2275 * ada-varobj.c: Revert.
2276 * ada-valprint.c: Revert.
2277 * ada-typeprint.c: Revert.
2278 * ada-tasks.c: Revert.
2279 * ada-lang.c: Revert.
2280 * aarch64-tdep.c: Revert.
2281 * aarch64-ravenscar-thread.c: Revert.
2282 * aarch64-newlib-tdep.c: Revert.
2283 * aarch64-linux-tdep.c: Revert.
2284 * aarch64-linux-nat.c: Revert.
2285 * aarch64-fbsd-tdep.c: Revert.
2286 * aarch64-fbsd-nat.c: Revert.
2287 * aarch32-linux-nat.c: Revert.
2289 2019-04-05 Tom Tromey <tom@tromey.com>
2291 * ft32-tdep.c: Sort headers.
2292 * frv-tdep.c: Sort headers.
2293 * frv-linux-tdep.c: Sort headers.
2294 * frame.c: Sort headers.
2295 * frame-unwind.c: Sort headers.
2296 * frame-base.c: Sort headers.
2297 * fork-child.c: Sort headers.
2298 * findvar.c: Sort headers.
2299 * findcmd.c: Sort headers.
2300 * filesystem.c: Sort headers.
2301 * filename-seen-cache.h: Sort headers.
2302 * filename-seen-cache.c: Sort headers.
2303 * fbsd-tdep.c: Sort headers.
2304 * fbsd-nat.h: Sort headers.
2305 * fbsd-nat.c: Sort headers.
2306 * f-valprint.c: Sort headers.
2307 * f-typeprint.c: Sort headers.
2308 * f-lang.c: Sort headers.
2309 * extension.h: Sort headers.
2310 * extension.c: Sort headers.
2311 * extension-priv.h: Sort headers.
2312 * expprint.c: Sort headers.
2313 * exec.h: Sort headers.
2314 * exec.c: Sort headers.
2315 * exceptions.c: Sort headers.
2316 * event-top.c: Sort headers.
2317 * event-loop.c: Sort headers.
2318 * eval.c: Sort headers.
2319 * elfread.c: Sort headers.
2320 * dwarf2read.h: Sort headers.
2321 * dwarf2read.c: Sort headers.
2322 * dwarf2loc.c: Sort headers.
2323 * dwarf2expr.h: Sort headers.
2324 * dwarf2expr.c: Sort headers.
2325 * dwarf2-frame.c: Sort headers.
2326 * dwarf2-frame-tailcall.c: Sort headers.
2327 * dwarf-index-write.h: Sort headers.
2328 * dwarf-index-write.c: Sort headers.
2329 * dwarf-index-common.c: Sort headers.
2330 * dwarf-index-cache.h: Sort headers.
2331 * dwarf-index-cache.c: Sort headers.
2332 * dummy-frame.c: Sort headers.
2333 * dtrace-probe.c: Sort headers.
2334 * disasm.h: Sort headers.
2335 * disasm.c: Sort headers.
2336 * disasm-selftests.c: Sort headers.
2337 * dictionary.c: Sort headers.
2338 * dicos-tdep.c: Sort headers.
2339 * demangle.c: Sort headers.
2340 * dcache.h: Sort headers.
2341 * dcache.c: Sort headers.
2342 * darwin-nat.h: Sort headers.
2343 * darwin-nat.c: Sort headers.
2344 * darwin-nat-info.c: Sort headers.
2345 * d-valprint.c: Sort headers.
2346 * d-namespace.c: Sort headers.
2347 * d-lang.c: Sort headers.
2348 * ctf.c: Sort headers.
2349 * csky-tdep.c: Sort headers.
2350 * csky-linux-tdep.c: Sort headers.
2351 * cris-tdep.c: Sort headers.
2352 * cris-linux-tdep.c: Sort headers.
2353 * cp-valprint.c: Sort headers.
2354 * cp-support.c: Sort headers.
2355 * cp-namespace.c: Sort headers.
2356 * cp-abi.c: Sort headers.
2357 * corelow.c: Sort headers.
2358 * corefile.c: Sort headers.
2359 * continuations.c: Sort headers.
2360 * completer.h: Sort headers.
2361 * completer.c: Sort headers.
2362 * complaints.c: Sort headers.
2363 * coffread.c: Sort headers.
2364 * coff-pe-read.c: Sort headers.
2365 * cli-out.h: Sort headers.
2366 * cli-out.c: Sort headers.
2367 * charset.c: Sort headers.
2368 * c-varobj.c: Sort headers.
2369 * c-valprint.c: Sort headers.
2370 * c-typeprint.c: Sort headers.
2371 * c-lang.c: Sort headers.
2372 * buildsym.c: Sort headers.
2373 * buildsym-legacy.c: Sort headers.
2374 * build-id.h: Sort headers.
2375 * build-id.c: Sort headers.
2376 * btrace.c: Sort headers.
2377 * bsd-uthread.c: Sort headers.
2378 * breakpoint.h: Sort headers.
2379 * breakpoint.c: Sort headers.
2380 * break-catch-throw.c: Sort headers.
2381 * break-catch-syscall.c: Sort headers.
2382 * break-catch-sig.c: Sort headers.
2383 * blockframe.c: Sort headers.
2384 * block.c: Sort headers.
2385 * bfin-tdep.c: Sort headers.
2386 * bfin-linux-tdep.c: Sort headers.
2387 * bfd-target.c: Sort headers.
2388 * bcache.c: Sort headers.
2389 * ax-general.c: Sort headers.
2390 * ax-gdb.h: Sort headers.
2391 * ax-gdb.c: Sort headers.
2392 * avr-tdep.c: Sort headers.
2393 * auxv.c: Sort headers.
2394 * auto-load.c: Sort headers.
2395 * arm-wince-tdep.c: Sort headers.
2396 * arm-tdep.c: Sort headers.
2397 * arm-symbian-tdep.c: Sort headers.
2398 * arm-pikeos-tdep.c: Sort headers.
2399 * arm-obsd-tdep.c: Sort headers.
2400 * arm-nbsd-tdep.c: Sort headers.
2401 * arm-nbsd-nat.c: Sort headers.
2402 * arm-linux-tdep.c: Sort headers.
2403 * arm-linux-nat.c: Sort headers.
2404 * arm-fbsd-tdep.c: Sort headers.
2405 * arm-fbsd-nat.c: Sort headers.
2406 * arm-bsd-tdep.c: Sort headers.
2407 * arch-utils.c: Sort headers.
2408 * arc-tdep.c: Sort headers.
2409 * arc-newlib-tdep.c: Sort headers.
2410 * annotate.h: Sort headers.
2411 * annotate.c: Sort headers.
2412 * amd64-windows-tdep.c: Sort headers.
2413 * amd64-windows-nat.c: Sort headers.
2414 * amd64-tdep.c: Sort headers.
2415 * amd64-sol2-tdep.c: Sort headers.
2416 * amd64-obsd-tdep.c: Sort headers.
2417 * amd64-obsd-nat.c: Sort headers.
2418 * amd64-nbsd-tdep.c: Sort headers.
2419 * amd64-nbsd-nat.c: Sort headers.
2420 * amd64-nat.c: Sort headers.
2421 * amd64-linux-tdep.c: Sort headers.
2422 * amd64-linux-nat.c: Sort headers.
2423 * amd64-fbsd-tdep.c: Sort headers.
2424 * amd64-fbsd-nat.c: Sort headers.
2425 * amd64-dicos-tdep.c: Sort headers.
2426 * amd64-darwin-tdep.c: Sort headers.
2427 * amd64-bsd-nat.c: Sort headers.
2428 * alpha-tdep.c: Sort headers.
2429 * alpha-obsd-tdep.c: Sort headers.
2430 * alpha-nbsd-tdep.c: Sort headers.
2431 * alpha-mdebug-tdep.c: Sort headers.
2432 * alpha-linux-tdep.c: Sort headers.
2433 * alpha-linux-nat.c: Sort headers.
2434 * alpha-bsd-tdep.c: Sort headers.
2435 * alpha-bsd-nat.c: Sort headers.
2436 * aix-thread.c: Sort headers.
2437 * agent.c: Sort headers.
2438 * addrmap.c: Sort headers.
2439 * ada-varobj.c: Sort headers.
2440 * ada-valprint.c: Sort headers.
2441 * ada-typeprint.c: Sort headers.
2442 * ada-tasks.c: Sort headers.
2443 * ada-lang.c: Sort headers.
2444 * aarch64-tdep.c: Sort headers.
2445 * aarch64-ravenscar-thread.c: Sort headers.
2446 * aarch64-newlib-tdep.c: Sort headers.
2447 * aarch64-linux-tdep.c: Sort headers.
2448 * aarch64-linux-nat.c: Sort headers.
2449 * aarch64-fbsd-tdep.c: Sort headers.
2450 * aarch64-fbsd-nat.c: Sort headers.
2451 * aarch32-linux-nat.c: Sort headers.
2453 2019-04-04 Tom Tromey <tom@tromey.com>
2455 * varobj.c (varobj_create): Update.
2456 * rust-exp.y (struct rust_parser) <update_innermost_block,
2457 lookup_symbol>: New methods.
2458 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
2460 (rust_parser::rust_lookup_type)
2461 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2462 * printcmd.c (display_command, do_one_display): Update.
2463 * parser-defs.h (struct parser_state) <parser_state>: Add
2464 "tracker" parameter.
2465 (block_tracker): New member.
2466 (class innermost_block_tracker) <innermost_block_tracker>: Add
2468 <reset>: Remove method.
2469 (innermost_block): Don't declare.
2470 (null_post_parser): Update.
2471 * parse.c (innermost_block): Remove global.
2472 (write_dollar_variable): Update.
2473 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
2474 Remove "tracker_types" parameter.
2475 (parse_expression): Add "tracker" parameter.
2476 (parse_expression_for_completion): Update.
2477 (null_post_parser): Add "tracker" parameter.
2478 * p-exp.y: Update rules.
2479 * m2-exp.y: Update rules.
2480 * language.h (struct language_defn) <la_post_parser>: Add
2481 "tracker" parameter.
2482 * go-exp.y: Update rules.
2483 * f-exp.y: Update rules.
2484 * expression.h (parse_expression, parse_exp_1): Add "tracker"
2486 * d-exp.y: Update rules.
2487 * c-exp.y: Update rules.
2488 * breakpoint.c (set_breakpoint_condition): Create an
2489 innermost_block_tracker.
2490 (watch_command_1): Likewise.
2491 * ada-lang.c (resolve): Add "tracker" parameter.
2492 (resolve_subexp): Likewise.
2493 * ada-exp.y (write_var_from_sym): Update.
2495 2019-04-04 Tom Tromey <tom@tromey.com>
2497 * type-stack.h: New file.
2498 * type-stack.c: New file.
2499 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
2501 (insert_into_type_stack, insert_type, push_type, push_type_int)
2502 (insert_type_address_space, pop_type, pop_type_int)
2503 (pop_typelist, pop_type_stack, append_type_stack)
2504 (push_type_stack, get_type_stack, push_typelist)
2505 (follow_type_instance_flags, follow_types): Don't declare.
2506 * parse.c (type_stack): Remove global.
2507 (parse_exp_in_context): Update.
2508 (insert_into_type_stack, insert_type, push_type, push_type_int)
2509 (insert_type_address_space, pop_type, pop_type_int)
2510 (pop_typelist, pop_type_stack, append_type_stack)
2511 (push_type_stack, get_type_stack, push_typelist)
2512 (follow_type_instance_flags, follow_types): Remove (moved to
2514 * f-exp.y (type_stack): New global.
2516 (push_kind_type, f_parse): Update.
2517 * d-exp.y (type_stack): New global.
2520 * c-exp.y (struct c_parse_state) <type_stack>: New member.
2522 * Makefile.in (COMMON_SFILES): Add type-stack.c.
2523 (HFILES_NO_SRCDIR): Add type-stack.h.
2525 2019-04-04 Tom Tromey <tom@tromey.com>
2527 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
2528 (rust_parser::convert_ast_to_expression, rust_parse)
2529 (rust_lex_test_completion, rust_lex_tests): Update.
2530 * parser-defs.h (struct expr_completion_state): New.
2531 (struct parser_state) <parser_state>: Add completion parameter.
2532 <mark_struct_expression, mark_completion_tag>: New methods.
2533 <parse_completion, m_completion_state>: New members.
2534 (prefixify_expression, null_post_parser): Update.
2535 (mark_struct_expression, mark_completion_tag): Don't declare.
2536 * parse.c (parse_completion, expout_last_struct)
2537 (expout_tag_completion_type, expout_completion_name): Remove
2539 (parser_state::mark_struct_expression)
2540 (parser_state::mark_completion_tag): Now methods.
2541 (prefixify_expression): Add last_struct parameter.
2542 (prefixify_subexp): Likewise.
2543 (parse_exp_1): Update.
2544 (parse_exp_in_context): Add cstate parameter. Update.
2545 (parse_expression_for_completion): Create an
2546 expr_completion_state.
2547 (null_post_parser): Add "completion" parameter.
2548 * p-exp.y: Update rules.
2550 * language.h (struct language_defn) <la_post_parser>: Add
2551 "completing" parameter.
2552 * go-exp.y: Update rules.
2553 (lex_one_token): Update.
2554 * expression.h (parse_completion): Don't declare.
2555 * d-exp.y: Update rules.
2556 (lex_one_token): Update rules.
2557 * c-exp.y: Update rules.
2558 (lex_one_token): Update.
2559 * ada-lang.c (resolve): Add "parse_completion" parameter.
2560 (resolve_subexp): Likewise.
2561 (ada_resolve_function): Likewise.
2563 2019-04-04 Tom Tromey <tom@tromey.com>
2565 * parser-defs.h (struct parser_state) <start_arglist,
2566 end_arglist>: New methods.
2567 <arglist_len, m_funcall_chain>: New members.
2568 (arglist_len, start_arglist, end_arglist): Don't declare.
2569 * parse.c (arglist_len, funcall_chain): Remove global.
2570 (start_arglist, end_arglist): Remove functions.
2571 (parse_exp_in_context): Update.
2572 * p-exp.y: Update rules.
2573 * m2-exp.y: Update rules.
2574 * go-exp.y: Update rules.
2575 * f-exp.y: Update rules.
2576 * d-exp.y: Update rules.
2577 * c-exp.y: Update rules.
2579 2019-04-04 Tom Tromey <tom@tromey.com>
2581 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
2582 lex_operator, push_back>: New methods.
2584 (rust_parser::lex_hex, lex_escape): Rename and update.
2585 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
2586 (rust_parser::lex_operator): Rename and update.
2587 (rust_parser::lex_number, rustyylex, rustyyerror)
2588 (rust_lex_test_init, rust_lex_test_sequence)
2589 (rust_lex_test_push_back, rust_lex_tests): Update.
2590 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
2592 <lexptr, prev_lexptr>: New members.
2593 (lexptr, prev_lexptr): Don't declare.
2594 * parse.c (lexptr, prev_lexptr): Remove globals.
2595 (parse_exp_in_context): Update.
2596 * p-exp.y (yylex, yyerror): Update.
2597 * m2-exp.y (parse_number, yylex, yyerror): Update.
2598 * go-exp.y (lex_one_token, yyerror): Update.
2599 * f-exp.y (match_string_literal, yylex, yyerror): Update.
2600 * d-exp.y (lex_one_token, yyerror): Update.
2601 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
2602 (lex_one_token, yyerror): Update.
2603 * ada-lex.l (YY_INPUT): Update.
2604 (rewind_to_char): Update.
2605 * ada-exp.y (yyerror): Update.
2607 2019-04-04 Tom Tromey <tom@tromey.com>
2609 * rust-exp.y (rustyylex, rust_lex_tests): Update.
2610 * parser-defs.h (struct parser_state) <parser_state>: Add new
2612 <comma_terminates>: New member.
2613 (comma_terminates): Don't declare global.
2614 * parse.c (comma_terminates): Remove global.
2615 (parse_exp_in_context): Update.
2616 * p-exp.y (yylex): Update.
2617 * m2-exp.y (yylex): Update.
2618 * go-exp.y (lex_one_token): Update.
2619 * f-exp.y (yylex): Update.
2620 * d-exp.y (lex_one_token): Update.
2621 * c-exp.y (lex_one_token): Update.
2622 * ada-lex.l: Update.
2624 2019-04-04 Tom Tromey <tom@tromey.com>
2626 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
2627 (rustyylex, rust_lex_test_init, rust_lex_test_one)
2628 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
2629 * parser-defs.h (paren_depth): Don't declare.
2630 * parse.c (paren_depth): Remove global.
2631 (parse_exp_in_context): Update.
2632 * p-exp.y (paren_depth): New global.
2633 (pascal_parse): Initialize it.
2634 * m2-exp.y (paren_depth): New global.
2635 (m2_parse): Initialize it.
2636 * go-exp.y (paren_depth): New global.
2637 (go_parse): Initialize it.
2638 * f-exp.y (paren_depth): New global.
2639 (f_parse): Initialize it.
2640 * d-exp.y (paren_depth): New global.
2641 (d_parse): Initialize it.
2642 * c-exp.y (paren_depth): New global.
2643 (c_parse): Initialize it.
2644 * ada-lex.l (paren_depth): New global.
2645 (lexer_init): Initialize it.
2647 2019-04-04 Tom Tromey <tom@tromey.com>
2649 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
2650 (rust_parser::convert_ast_to_type)
2651 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2652 * parser-defs.h (struct parser_state) <parser_state>: Add
2653 parameters. Initialize new members.
2654 <expression_context_block, expression_context_pc>: New members.
2655 * parse.c (expression_context_block, expression_context_pc):
2657 (parse_exp_in_context): Update.
2658 * p-exp.y: Update all rules.
2660 * m2-exp.y: Update all rules.
2662 * go-exp.y (yylex): Update.
2663 * f-exp.y (yylex): Update.
2664 * d-exp.y: Update all rules.
2666 * c-exp.y: Update all rules.
2667 (lex_one_token, classify_name, yylex, c_parse): Update.
2668 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
2670 2019-04-04 Tom Tromey <tom@tromey.com>
2672 * gdbarch.h, gdbarch.c: Rebuild.
2673 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
2675 (struct stap_parse_info): Replace "parser_state" with
2677 * parser-defs.h (struct expr_builder): Rename from "parser_state".
2678 (parser_state): New class.
2679 * parse.c (expr_builder): Rename.
2680 (expr_builder::release): Rename.
2681 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2682 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2683 (write_exp_elt_longcst, write_exp_elt_floatcst)
2684 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2685 (write_exp_string_vector, write_exp_bitstring)
2686 (write_exp_msymbol, mark_struct_expression)
2687 (write_dollar_variable)
2688 (insert_type_address_space, increase_expout_size): Replace
2689 "parser_state" with "expr_builder".
2690 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
2691 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
2692 "parser_state" with "expr_builder".
2694 2019-04-04 Tom Tromey <tom@tromey.com>
2696 * rust-exp.y: Replace "parse_language" with method call.
2698 (yylex): Replace "parse_language" with method call.
2700 (yylex): Replace "parse_language" with method call.
2701 * go-exp.y (classify_name): Replace "parse_language" with method
2703 * f-exp.y (yylex): Replace "parse_language" with method call.
2704 * d-exp.y (lex_one_token): Replace "parse_language" with method
2707 (lex_one_token, classify_name, yylex): Replace "parse_language"
2709 * ada-exp.y (find_primitive_type, type_char)
2710 (type_system_address): Replace "parse_language" with method call.
2712 2019-04-04 Tom Tromey <tom@tromey.com>
2714 * rust-exp.y: Replace "parse_gdbarch" with method call.
2715 * parse.c (write_dollar_variable, insert_type_address_space):
2716 Replace "parse_gdbarch" with method call.
2717 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
2719 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
2721 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
2722 "parse_gdbarch" with method call.
2723 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
2725 * f-exp.y (parse_type, parse_f_type, yylex): Replace
2726 "parse_gdbarch" with method call.
2727 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
2728 "parse_gdbarch" with method call.
2729 * c-exp.y (parse_type, parse_number, classify_name): Replace
2730 "parse_gdbarch" with method call.
2731 * ada-lex.l: Replace "parse_gdbarch" with method call.
2732 * ada-exp.y (parse_type, find_primitive_type, type_char)
2733 (type_system_address): Replace "parse_gdbarch" with method call.
2735 2019-04-04 Tom Tromey <tom@tromey.com>
2737 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
2738 * stap-probe.c (stap_parse_argument): Update.
2739 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
2740 initial_size parameter.
2741 * rust-exp.y (rust_lex_tests): Update.
2742 * parse.c (parser_state): Update.
2743 (parse_exp_in_context): Update.
2744 * parser-defs.h (struct parser_state) <parser_state>: Remove
2745 "initial_size" parameter.
2747 2019-04-04 Tom Tromey <tom@tromey.com>
2749 * parser-defs.h (increase_expout_size): Don't declare.
2750 * parse.c (increase_expout_size): Now static.
2752 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
2754 * gnu-nat.c (gnu_nat_target::wait): Fix
2755 target_waitstatus_to_string call.
2757 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
2759 * eval.c (evaluate_subexp_standard): Handle internal functions
2760 during Fortran function call handling.
2762 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
2764 * NEWS: Mention new internal functions.
2765 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
2766 (read_base_type): Use dwarf2_init_complex_target_type.
2767 * value.c (creal_internal_fn): New function.
2768 (cimag_internal_fn): New function.
2769 (_initialize_values): Register new internal functions.
2771 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2773 * infrun.c (stop_all_threads): If debug_infrun, always
2774 trace the wait status after wait_one, using
2775 target_waitstatus_to_string and target_pid_to_str.
2776 (handle_inferior_event): Replace various trace of
2777 wait status kind by a single trace.
2778 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
2779 wait status kind image by target_waitstatus_to_string.
2780 * target/waitstatus.c (target_waitstatus_to_string): Fix
2783 2019-04-01 Tom Tromey <tromey@adacore.com>
2786 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
2788 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
2789 Pedro Alves <palves@redhat.com>
2791 * top.c (quit_force): Call 'finalize_values'.
2792 * value.c (finalize_values): New function.
2793 * value.h (finalize_values): Declare.
2795 2019-03-30 Eli Zaretskii <eliz@gnu.org>
2797 * NEWS: Announce $_gdb_major and $_gdb_minor.
2799 * top.c (init_gdb_version_vars): New function.
2800 (gdb_init): Call init_gdb_version_vars.
2802 2019-03-29 Tom Tromey <tromey@adacore.com>
2804 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
2805 help text. Remove dead code.
2807 2019-03-29 Keith Seitz <keiths@redhat.com>
2809 From Siddhesh Poyarekar:
2810 * f-lang.h (f77_get_upperbound): Return LONGEST.
2811 (f77_get_lowerbound): Likewise.
2812 * f-typeprint.c (f_type_print_varspec_suffix): Expand
2813 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
2815 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
2816 plongest to format print it.
2817 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
2818 (f77_get_upperbound): Likewise.
2819 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
2820 LOWER_BOUND to LONGEST.
2821 (f77_create_arrayprint_offset_tbl): Likewise.
2823 2019-03-29 Keith Seitz <keiths@redhat.com>
2825 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2826 %s/pulongest for TYPE_LENGTH instead of %d in format
2828 * ada-typerint.c (ada_print_type): Likewise.
2829 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
2830 * compile/compile-c-support.c (generate_register_struct): Likewise.
2831 * gdbtypes.c (recursive_dump_type): Likewise.
2832 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
2833 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
2834 instead of %d in format strings.
2835 * riscv-tdep.c (riscv_type_alignment): Cast second argument
2836 to std::min to ULONGEST.
2837 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
2838 instead of %d in format strings.
2839 * tracepoint.c (info_scope_command): Likewise.
2840 * typeprint.c (print_offset_data::update)
2841 (print_offset_data::finish): Likewise.
2842 * xtensa-tdep.c (xtensa_store_return_value)
2843 (xtensa_push_dummy_call): Likewise.
2845 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
2847 * windows-nat.c (display_selector): Fixed format specifications
2850 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2852 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
2854 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
2856 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
2857 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
2858 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
2859 (nios2_linux_init_abi): Install it.
2861 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2863 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
2865 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2867 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
2869 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2870 Tom Tromey <tromey@adacore.com>
2872 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
2874 2019-03-26 Joel Brobecker <brobecker@adacore.com>
2876 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
2877 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
2878 method to compute the bounds of range types. Also print "[evaluated]"
2879 if the bounds' values come from a dynamic evaluation.
2881 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
2883 * cp-valprint.c (cp_print_value_fields): Don't print trailing
2884 whitespace when pretty printing is on.
2886 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2888 * ppc-linux-nat.c: Add include.
2890 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2892 * NEWS: Mention AArch64 Pointer Authentication.
2894 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2896 * arm-linux-nat.c: Add include.
2898 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
2900 * source-cache.c (source_cache::get_source_lines): Re-read
2901 fullname after calling open_source_file.
2903 2019-03-25 John Baldwin <jhb@FreeBSD.org>
2905 * NEWS: Mention TLS support for FreeBSD.
2907 2019-03-25 Tom Tromey <tromey@adacore.com>
2909 * minsyms.c (BUNCH_SIZE): Update comment.
2910 (~minimal_symbol_reader): Remove old comment.
2911 (compact_minimal_symbols): Update comment.
2912 (minimal_symbol_reader::install): Remove old comment. Update
2915 2019-03-25 Alan Hayward <alan.hayward@arm.com>
2917 * s390-linux-nat.c: Add include.
2919 2019-03-25 Alan Hayward <alan.hayward@arm.com>
2921 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2922 Call linux_get_hwcap.
2923 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
2925 (aarch64_linux_get_hwcap): Remove function.
2926 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
2928 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
2930 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2931 * linux-tdep.c (linux_get_hwcap): Add function.
2932 (linux_get_hwcap2): Likewise.
2933 * linux-tdep.h (linux_get_hwcap): Add declaration.
2934 (linux_get_hwcap2): Likewise.
2935 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
2936 (ppc_linux_get_hwcap2): Likewise.
2937 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
2939 (ppc_linux_nat_target::insert_watchpoint): Likewise.
2940 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
2941 (ppc_linux_nat_target::read_description): Likewise.
2942 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
2943 * s390-linux-nat.c: Likewise.
2944 * s390-linux-tdep.c (s390_core_read_description): Likewise.
2946 2019-03-24 Tom Tromey <tom@tromey.com>
2948 * ada-lang.c (standard_lookup): Simplify initialization.
2949 (ada_lookup_symbol_nonlocal): Simplify return.
2950 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
2951 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
2952 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
2953 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
2955 * solib.c (solib_global_lookup): Simplify.
2956 * symtab.c (null_block_symbol): Remove.
2957 (symbol_cache_lookup): Simplify returns.
2958 (lookup_language_this): Simplify returns.
2959 (lookup_symbol_aux): Simplify return.
2960 (lookup_local_symbol): Simplify returns.
2961 (lookup_global_symbol_from_objfile): Simplify return.
2962 (lookup_symbol_in_objfile_symtabs)
2963 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
2964 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
2965 (lookup_static_symbol, lookup_global_symbol): Simplify return.
2966 * cp-namespace.c (cp_lookup_bare_symbol)
2967 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
2968 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
2969 (cp_lookup_nested_symbol): Don't use null_block_symbol.
2970 (cp_lookup_symbol_via_imports): Simplify initialization.
2971 (find_symbol_in_baseclass): Likewise.
2972 * symtab.h (null_block_symbol): Remove.
2973 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
2974 (d_lookup_nested_symbol, d_lookup_symbol_imports)
2975 (d_lookup_symbol_module): Likewise.
2976 (find_symbol_in_baseclass): Simplify initialization.
2978 2019-03-24 Tom Tromey <tom@tromey.com>
2980 * expression.h: Don't include symtab.h.
2981 (struct block): Forward declare.
2983 2019-03-24 Tom Tromey <tom@tromey.com>
2985 * c-exp.y (typebase): Remove casts.
2986 * gdbtypes.c (lookup_unsigned_typename, )
2987 (lookup_signed_typename): Remove cast.
2988 * eval.c (parse_to_comma_and_eval): Remove cast.
2989 * parse.c (write_dollar_variable): Remove cast.
2990 * block.h (struct block) <superblock>: Now const.
2991 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
2992 * psymtab.c (psym_map_matching_symbols): Make "block" const.
2993 (map_block): Make "block" const.
2994 * symfile.h (struct quick_symbol_functions)
2995 <map_matching_symbols>: Constify block argument to "callback".
2996 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
2998 (find_pc_sect_compunit_symtab): Make "b" const.
2999 (find_symbol_at_address): Likewise.
3000 (search_symbols): Likewise.
3001 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
3002 (dw2_debug_names_lookup_symbol): Likewise.
3003 (dw2_map_matching_symbols): Update.
3004 * p-valprint.c (pascal_val_print): Remove "block".
3005 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
3006 (aux_add_nonlocal_symbols): Make "block" const.
3007 (resolve_subexp): Remove cast.
3008 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
3010 (iterate_over_file_blocks): Likewise.
3011 * f-exp.y (%union) <bval>: Remove.
3012 * coffread.c (patch_opaque_types): Make "b" const.
3013 * spu-tdep.c (spu_catch_start): Make "block" const.
3014 * c-valprint.c (print_unpacked_pointer): Remove "block".
3015 * symmisc.c (dump_symtab_1): Make "b" const.
3016 (block_depth): Make "block" const.
3017 * d-exp.y (%union) <bval>: Remove.
3018 * cp-support.h (cp_lookup_rtti_type): Update.
3019 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
3020 * psymtab.c (psym_lookup_symbol): Make "block" const.
3021 (maintenance_check_psymtabs): Make "b" const.
3022 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
3023 (enumerate_locals, enumerate_args): Update.
3024 * python/py-symtab.c (stpy_global_block): Make "block" const.
3025 (stpy_static_block): Likewise.
3026 * inline-frame.c (block_starting_point_at): Make "new_block"
3028 * block.c (find_block_in_blockvector): Make return type const.
3029 (blockvector_for_pc_sect): Make "b" const.
3030 (find_block_in_blockvector): Make "b" const.
3032 2019-03-23 Tom Tromey <tom@tromey.com>
3034 * varobj.c (varobj_create): Update.
3035 * symfile.c (clear_symtab_users): Don't reset innermost_block.
3036 * printcmd.c (display_command, do_one_display): Don't reset
3038 * parser-defs.h (enum innermost_block_tracker_type): Move to
3040 (innermost_block): Update comment.
3041 * parse.c (parse_exp_1): Add tracker_types parameter.
3042 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
3043 tracker_types parameter. Reset innermost_block.
3044 (parse_exp_in_context): Remove.
3045 (parse_expression_for_completion): Update.
3046 * objfiles.c (~objfile): Don't reset expression_context_block or
3048 * expression.h (enum innermost_block_tracker_type): Move from
3050 (parse_exp_1): Add tracker_types parameter.
3051 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
3052 reset innermost_block.
3054 2019-03-23 Tom Tromey <tom@tromey.com>
3056 * objfiles.h: Include bcache.h.
3058 2019-03-23 Tom Tromey <tom@tromey.com>
3060 * linespec.c (get_current_search_block): Use
3061 scoped_restore_current_language.
3062 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
3064 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3065 Jiong Wang <jiong.wang@arm.com>
3067 * aarch64-linux-tdep.c
3068 (aarch64_linux_iterate_over_regset_sections): Check for pauth
3070 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
3072 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3073 Jiong Wang <jiong.wang@arm.com>
3075 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
3077 (aarch64_analyze_prologue_test): Add PACIASP test.
3078 (aarch64_prologue_prev_register): Unmask PC value.
3080 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3081 Jiong Wang <jiong.wang@arm.com>
3083 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
3084 (aarch64_dwarf2_prev_register): Unmask PC value.
3085 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
3086 (aarch64_execute_dwarf_cfa_vendor_op): Check for
3087 DW_CFA_AARCH64_negate_ra_state.
3088 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
3090 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3091 Jiong Wang <jiong.wang@arm.com>
3093 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
3095 (aarch64_pseudo_register_name): Likewise.
3096 (aarch64_pseudo_register_type): Likewise.
3097 (aarch64_pseudo_register_reggroup_p): Likewise.
3098 (aarch64_gdbarch_init): Add pauth registers.
3099 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
3100 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
3101 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
3102 (struct gdbarch_tdep): Add regnum for ra_state.
3104 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3105 Jiong Wang <jiong.wang@arm.com>
3107 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
3109 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3110 Jiong Wang <jiong.wang@arm.com>
3112 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
3114 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
3115 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
3116 (aarch64_gdbarch_init): Add puth registers.
3117 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
3118 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
3119 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
3121 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3122 Jiong Wang <jiong.wang@arm.com>
3124 * aarch64-linux-nat.c
3125 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
3126 * aarch64-linux-tdep.c
3127 (aarch64_linux_core_read_description): Likewise.
3128 (aarch64_linux_get_hwcap): New function.
3129 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
3130 (aarch64_linux_get_hwcap): New declaration.
3132 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3133 Jiong Wang <jiong.wang@arm.com>
3135 * aarch64-linux-nat.c
3136 (aarch64_linux_nat_target::read_description): Add pauth param.
3137 * aarch64-linux-tdep.c
3138 (aarch64_linux_core_read_description): Likewise.
3139 * aarch64-tdep.c (struct target_desc): Add in pauth.
3140 (aarch64_read_description): Add pauth param.
3141 (aarch64_gdbarch_init): Likewise.
3142 * aarch64-tdep.h (aarch64_read_description): Likewise.
3143 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3144 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3145 * features/Makefile: Add new files.
3146 * features/aarch64-pauth.c: New file.
3147 * features/aarch64-pauth.xml: New file.
3149 2019-03-20 Tom Tromey <tromey@adacore.com>
3151 * infrun.c (handle_inferior_event): Rename from
3152 handle_inferior_event_1. Create a scoped_value_mark.
3153 (handle_inferior_event): Remove.
3155 2019-03-19 Tom Tromey <tromey@adacore.com>
3157 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
3158 * infrun.h (print_stop_event): Add "displays" parameter.
3159 * infrun.c (print_stop_event): Add "displays" parameter.
3161 2019-03-19 Pedro Alves <palves@redhat.com>
3163 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
3164 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
3165 to -1. Fix TABs vs spaces.
3166 (tui_ui_out::tui_ui_out): Don't initialize fields here.
3167 * tui/tui-out.h (tui_ui_out) Add intro comments.
3168 <m_line, m_start_of_line>: In-class initialize, and add describing
3171 2019-03-18 Alan Hayward <alan.hayward@arm.com>
3173 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
3175 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
3177 2019-03-18 Pedro Alves <palves@redhat.com>
3178 Eli Zaretskii <eliz@gnu.org>
3180 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
3181 m_line and m_start_of_line.
3183 2019-03-18 Eli Zaretskii <eliz@gnu.org>
3185 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
3186 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
3187 it returns a newline. This fixes a regression in TU mode, whereby
3188 the next line is output on the same screen line as the user input.
3190 2019-03-18 Tom Tromey <tromey@adacore.com>
3192 * minsyms.c (minimal_symbol_reader::install): Remove call to
3195 2019-03-18 Pedro Alves <palves@redhat.com>
3197 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
3199 (apply_style): New, factored out from ...
3200 (apply_ansi_escape): ... this. Handle reverse video mode.
3201 (tui_set_reverse_mode): New function.
3202 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
3203 * tui/tui-winsource.c (tui_show_source_line): Use
3204 tui_set_reverse_mode instead of setting A_STANDOUT.
3205 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
3208 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
3210 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
3213 2019-03-18 Tom Tromey <tromey@adacore.com>
3215 * ada-lang.c (empty_array): Add "high" parameter.
3216 (ada_evaluate_subexp): Update.
3218 2019-03-17 Sergei Trofimovich <siarheit@google.com>
3220 * unittests/string_view-selftests.c: Define
3221 _initialize_string_view_selftests unconditionally.
3223 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3226 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
3228 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3231 * windows-nat.c (display_selector): Fix format specifiers.
3233 2019-03-17 Eli Zaretskii <eliz@gnu.org>
3235 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
3236 tui_refill_source_window instead of tui_refresh_win, to update the
3237 current execution line. This fixes redisplay of the current line
3238 when stepping through the code with "next" or "step".
3240 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3242 * source-cache.c (source_cache::get_source_lines): Call
3243 find_source_lines to initialize s->nlines. This fixes vertical
3244 scrolling of TUI source window when the DOWN arrow is pressed.
3246 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3248 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
3249 linux-thread-db.c (_initialize_thread_db): Likewise.
3251 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3253 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
3254 wclrtoeol in tui_show_source_line". This reverts changes made in
3255 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
3257 2019-03-15 Tom Tromey <tom@tromey.com>
3259 * symtab.h (struct minimal_symbol): Derive from
3260 general_symbol_info.
3261 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
3262 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3263 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3264 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3265 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
3266 (MSYMBOL_SEARCH_NAME): Update.
3267 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
3268 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
3269 * minsyms.c (minimal_symbol_reader::record_full): Update.
3271 2019-03-15 Tom Tromey <tom@tromey.com>
3273 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
3275 2019-03-15 Tom Tromey <tom@tromey.com>
3277 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
3279 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
3281 * minsyms.c (lookup_minimal_symbol_by_pc_section)
3282 (build_minimal_symbol_hash_tables)
3283 (minimal_symbol_reader::install): Update.
3285 2019-03-15 Tom Tromey <tom@tromey.com>
3287 * symtab.c (create_demangled_names_hash): Update.
3288 (symbol_set_names): Update.
3289 * objfiles.h (struct objfile_per_bfd_storage)
3290 <demangled_names_hash>: Now an htab_up.
3291 * objfiles.c (objfile_per_bfd_storage): Simplify.
3293 2019-03-15 Tom Tromey <tom@tromey.com>
3295 * objfiles.h (struct objfile_per_bfd_storage): Declare
3297 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
3299 (get_objfile_bfd_data): Use new. Don't initialize
3301 (free_objfile_per_bfd_storage): Remove.
3302 (objfile_bfd_data_free, objfile::~objfile): Use delete.
3304 2019-03-15 Tom Tromey <tom@tromey.com>
3306 * symfile.c (reread_symbols): Update.
3307 * objfiles.c (objfile::objfile): Update.
3308 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
3309 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
3311 (minimal_symbol_reader::install): Update.
3312 (terminate_minimal_symbol_table): Remove.
3313 * jit.c (jit_object_close_impl): Update.
3315 2019-03-15 Tom Tromey <tom@tromey.com>
3317 * minsyms.c (minimal_symbol_reader::record_full): Remove some
3320 2019-03-15 Tom Tromey <tom@tromey.com>
3322 * objfiles.h (struct objfile_per_bfd_storage)
3323 <demangled_hash_languages>: Now a bitset.
3324 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
3325 (lookup_minimal_symbol): Update.
3327 2019-03-15 Tom Tromey <tom@tromey.com>
3329 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
3330 Don't return the symbol.
3331 * coffread.c (record_minimal_symbol): Use record_full.
3333 2019-03-14 Eli Zaretskii <eliz@gnu.org>
3335 The MS-Windows port of ncurses fails to switch to a color pair if
3336 one or both of the colors are the implicit default colors. This
3337 change records the default colors when TUI is initialized, and
3338 then specifies them explicitly when a color pair uses the default
3339 colors. This allows color styling in TUI mode on MS-Windows.
3341 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
3343 (tui_initialize_io) [__MINGW32__]: Record the default terminal
3344 colors in ncurses_norm_attr.
3345 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
3346 "none", replace it with the default color recorded in
3349 2019-03-14 Tom Tromey <tromey@adacore.com>
3351 * source-cache.h (class source_cache) <get_source_lines>: Return
3353 * source-cache.c (source_cache::extract_lines): Handle case where
3354 first_pos==npos. Return std::string.
3355 (source_cache::get_source_lines): Update.
3357 2019-03-14 Tom Tromey <tromey@adacore.com>
3359 * NEWS: Add item for "style sources" commands.
3360 * source-cache.c (source_cache::get_source_lines): Check
3362 * cli/cli-style.c (source_styling): New global.
3363 (_initialize_cli_style): Add "style sources" commands.
3364 (show_style_sources): New function.
3365 * cli/cli-style.h (source_styling): Declare.
3367 2019-03-14 Pedro Alves <palves@redhat.com>
3368 Tom Tromey <tromey@adacore.com>
3370 * tui/tui-winsource.h (tui_refill_source_window): Declare.
3371 * tui/tui-winsource.c (tui_refill_source_window): New function,
3373 (tui_horizontal_source_scroll): ... here. Move some logic.
3374 * cli/cli-style.c (set_style_enabled): Notify new observable.
3375 * tui/tui-hooks.c (tui_redisplay_source): New function.
3376 (tui_attach_detach_observers): Attach or detach
3377 tui_redisplay_source.
3378 * observable.h (source_styling_changed): New observable.
3379 * observable.c: Define source_styling_changed observable.
3381 2019-03-13 Tom Tromey <tromey@adacore.com>
3383 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
3384 (i386_gnu_nat_target::store_registers): Update.
3385 * target-debug.h (target_debug_print_std_string): New macro.
3386 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
3387 * windows-tdep.c (display_one_tib): Update.
3388 * tui/tui-stack.c (tui_make_status_line): Update.
3389 * top.c (print_inferior_quit_action): Update.
3390 * thread.c (thr_try_catch_cmd): Update.
3391 (add_thread_with_info): Update.
3392 (thread_target_id_str): Update.
3393 (thr_try_catch_cmd): Update.
3394 (thread_command): Update.
3395 (thread_find_command): Update.
3396 * record-btrace.c (record_btrace_target::info_record)
3397 (record_btrace_resume_thread, record_btrace_target::resume)
3398 (record_btrace_cancel_resume, record_btrace_step_thread)
3399 (record_btrace_target::wait, record_btrace_target::wait)
3400 (record_btrace_target::wait, record_btrace_target::stop): Update.
3401 * progspace.c (print_program_space): Update.
3402 * process-stratum-target.c
3403 (process_stratum_target::thread_address_space): Update.
3404 * linux-fork.c (linux_fork_mourn_inferior)
3405 (detach_checkpoint_command, info_checkpoints_command)
3406 (linux_fork_context): Update.
3407 (linux_fork_detach): Update.
3408 (class scoped_switch_fork_info): Update.
3409 (delete_checkpoint_command): Update.
3410 * infrun.c (follow_fork_inferior): Update.
3411 (follow_fork_inferior): Update.
3412 (proceed_after_vfork_done): Update.
3413 (handle_vfork_child_exec_or_exit): Update.
3414 (follow_exec): Update.
3415 (displaced_step_prepare_throw): Update.
3416 (displaced_step_restore): Update.
3417 (start_step_over): Update.
3419 (clear_proceed_status_thread): Update.
3421 (print_target_wait_results): Update.
3422 (do_target_wait): Update.
3423 (context_switch): Update.
3424 (stop_all_threads): Update.
3425 (restart_threads): Update.
3426 (finish_step_over): Update.
3427 (handle_signal_stop): Update.
3428 (switch_back_to_stepped_thread): Update.
3429 (keep_going_pass_signal): Update.
3430 (print_exited_reason): Update.
3431 (normal_stop): Update.
3432 * inferior.c (inferior_pid_to_str): Change return type.
3433 (print_selected_inferior): Update.
3434 (add_inferior): Update.
3435 (detach_inferior): Update.
3436 * dummy-frame.c (fprint_dummy_frames): Update.
3437 * dcache.c (dcache_info_1): Update.
3438 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
3439 (btrace_fetch, btrace_clear): Update.
3440 * linux-tdep.c (linux_core_pid_to_str): Change return type.
3441 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
3443 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
3444 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
3445 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
3446 * gdbarch.c, gdbarch.h: Rebuild.
3447 * gdbarch.sh (core_pid_to_str): Change return type.
3448 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
3450 (windows_nat_target::pid_to_str): Change return type.
3451 (windows_delete_thread): Update.
3452 (windows_nat_target::attach): Update.
3453 (windows_nat_target::files_info): Update.
3454 * target-delegates.c: Rebuild.
3455 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
3457 (sol_thread_target::pid_to_str): Change return type.
3458 * remote.c (class remote_target) <pid_to_str>: Change return
3460 (remote_target::pid_to_str): Change return type.
3461 (extended_remote_target::attach, remote_target::remote_stop_ns)
3462 (remote_target::remote_notif_remove_queued_reply)
3463 (remote_target::push_stop_reply, remote_target::disable_btrace):
3465 (extended_remote_target::attach): Update.
3466 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
3468 (gdbsim_target::pid_to_str): Change return type.
3469 * ravenscar-thread.c (struct ravenscar_thread_target)
3470 <pid_to_str>: Change return type.
3471 (ravenscar_thread_target::pid_to_str): Change return type.
3472 * procfs.c (class procfs_target) <pid_to_str>: Change return
3474 (procfs_target::pid_to_str): Change return type.
3475 (procfs_target::attach): Update.
3476 (procfs_target::detach): Update.
3477 (procfs_target::fetch_registers): Update.
3478 (procfs_target::store_registers): Update.
3479 (procfs_target::wait): Update.
3480 (procfs_target::files_info): Update.
3481 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
3482 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
3484 (nto_procfs_target::pid_to_str): Change return type.
3485 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
3486 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
3488 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
3490 (attach_proc_task_lwp_callback, get_detach_signal)
3491 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
3492 (linux_nat_target::resume, wait_lwp, stop_callback)
3493 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
3494 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
3495 (linux_nat_wait_1, resume_stopped_resumed_lwps)
3496 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
3497 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
3499 (inf_ptrace_target::attach): Update.
3500 (inf_ptrace_target::files_info): Update.
3501 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
3503 (go32_nat_target::pid_to_str): Change return type.
3504 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
3505 (gnu_nat_target::wait): Update.
3506 (gnu_nat_target::wait): Update.
3507 (gnu_nat_target::resume): Update.
3508 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
3509 (fbsd_nat_target::wait): Update.
3510 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
3512 (darwin_nat_target::attach): Update.
3513 * corelow.c (class core_target) <pid_to_str>: Change return type.
3514 (core_target::pid_to_str): Change return type.
3515 * target.c (normal_pid_to_str): Change return type.
3516 (default_pid_to_str): Likewise.
3517 (target_pid_to_str): Change return type.
3518 (target_translate_tls_address): Update.
3519 (target_announce_detach): Update.
3520 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
3522 (bsd_uthread_target::pid_to_str): Change return type.
3523 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
3525 (bsd_kvm_target::pid_to_str): Change return type.
3526 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
3528 (aix_thread_target::pid_to_str): Change return type.
3529 * target.h (struct target_ops) <pid_to_str>: Change return type.
3530 (target_pid_to_str, normal_pid_to_str): Likewise.
3531 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
3533 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
3535 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
3537 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
3539 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
3541 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
3544 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
3546 * NEWS: Mention that the new default MI version is 3. Mention
3547 changes to the output of commands and events that deal with
3548 multi-location breakpoints.
3549 * breakpoint.c: Include "mi/mi-out.h".
3550 (print_one_breakpoint): Change output syntax if using MI version
3552 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
3554 (mi_multi_location_breakpoint_output_fixed): New.
3555 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
3556 (mi_cmd_fix_multi_location_breakpoint_output): New.
3557 (mi_multi_location_breakpoint_output_fixed): New.
3558 * mi/mi-cmds.c (mi_cmds): Register command
3559 -fix-multi-location-breakpoint-output.
3560 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
3563 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3565 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
3566 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
3567 instantiate mi_ui_out based on interpreter name.
3568 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
3569 * mi/mi-main.c (mi_load_progress): Likewise.
3571 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3573 * NEWS: Combine separate "New targets" sections for 8.3.
3575 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3577 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
3578 (ppcfbsd_init_abi): Install gdbarch
3579 "fetch_tls_load_module_address" and "get_thread_local_address"
3582 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3584 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
3585 (riscv_fbsd_init_abi): Install gdbarch
3586 "fetch_tls_load_module_address" and "get_thread_local_address"
3589 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3591 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
3592 (i386fbsd_init_abi): Install gdbarch
3593 "fetch_tls_load_module_address" and "get_thread_local_address"
3596 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3598 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
3599 (amd64fbsd_init_abi): Install gdbarch
3600 "fetch_tls_load_module_address" and "get_thread_local_address"
3603 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3605 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
3606 (struct fbsd_pspace_data): New type.
3607 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
3608 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
3609 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
3610 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
3611 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
3613 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3615 * gdbtypes.c (lookup_struct_elt): New function.
3616 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
3617 * gdbtypes.h (struct struct_elt): New type.
3618 (lookup_struct_elt): New prototype.
3620 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3622 * gdbtypes.c (lookup_struct_elt_type): Update comment and
3623 remove disabled code block.
3625 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3627 * gdbarch.sh (get_thread_local_address): New method.
3628 * gdbarch.h, gdbarch.c: Regenerate.
3629 * target.c (target_translate_tls_address): Use
3630 gdbarch_get_thread_local_address if present instead of
3631 target::get_thread_local_address.
3633 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3635 * target.h (target::get_thread_local_address): Update comment.
3637 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3639 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
3640 objfile->separate_debug_objfile_backlink if not NULL.
3642 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3644 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
3645 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
3646 (amd64bsd_store_inferior_registers): Likewise.
3647 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
3648 Enable segment base registers.
3649 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
3650 PT_GETFSBASE and PT_GETGSBASE.
3651 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
3653 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
3654 segment base registers.
3655 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
3657 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3659 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
3660 Update calls to i386_target_description to add 'segments'
3662 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
3663 add segment base registers.
3664 * arch/i386.c (i386_create_target_description): Add 'segments'
3665 parameter to enable segment base registers.
3666 * arch/i386.h (i386_create_target_description): Likewise.
3667 * features/i386/32bit-segments.xml: New file.
3668 * features/i386/32bit-segments.c: Generate.
3669 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
3670 call to i386_target_description to add 'segments' parameter.
3671 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
3672 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
3673 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
3674 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
3675 if feature is present.
3676 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
3677 Add 'segments' parameter to call to i386_target_description.
3678 (i386_target_description): Add 'segments' parameter to enable
3679 segment base registers.
3680 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
3681 to call to i386_target_description.
3682 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
3683 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
3684 Define I386_NUM_REGS.
3685 (i386_target_description): Add 'segments' parameter to enable
3686 segment base registers.
3688 2019-03-12 Eli Zaretskii <eliz@gnu.org>
3691 * source-cache.c: #undef open and close, to avoid unresolved
3692 externals during linking.
3694 2019-03-12 Tom Tromey <tromey@adacore.com>
3696 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
3697 const. Add initializers.
3698 (_initialize_remote): Don't initialize ptid globals.
3700 2019-03-12 Pedro Alves <palves@redhat.com>
3702 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
3704 2019-03-12 Pedro Alves <palves@redhat.com>
3706 * cp-name-parser.y (main): Remove unused 'len' variable.
3708 2019-03-12 Tom Tromey <tromey@adacore.com>
3710 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
3711 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
3713 2019-03-12 Tom Tromey <tromey@adacore.com>
3715 * linux-nat.c (iterate_over_lwps): Update.
3716 (stop_callback): Remove parameter.
3717 (stop_wait_callback, detach_callback, resume_set_callback)
3718 (select_singlestep_lwp_callback, set_ignore_sigint)
3719 (status_callback, resumed_callback, resume_clear_callback)
3720 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
3722 (linux_nat_target::detach, linux_nat_target::resume)
3723 (linux_stop_and_wait_all_lwps, select_event_lwp)
3724 (linux_nat_filter_event, linux_nat_wait_1)
3725 (linux_nat_target::kill, linux_nat_target::stop)
3726 (linux_nat_target::stop): Update.
3727 (linux_nat_resume_callback): Change type.
3728 (resume_stopped_resumed_lwps, count_events_callback)
3729 (select_event_lwp_callback): Likewise.
3730 (linux_stop_lwp, linux_nat_stop_lwp): Update.
3731 * arm-linux-nat.c (struct update_registers_data): Remove.
3732 (update_registers_callback): Change type.
3733 (arm_linux_insert_hw_breakpoint1): Update.
3734 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
3736 (x86_linux_dr_set_addr): Update.
3737 (x86_linux_dr_set_control): Update.
3738 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
3739 (iterate_over_lwps): Use gdb::function_view.
3740 * nat/aarch64-linux-hw-point.c (struct
3741 aarch64_dr_update_callback_param): Remove.
3742 (debug_reg_change_callback): Change type.
3743 (aarch64_notify_debug_reg_change): Update.
3744 * s390-linux-nat.c (s390_refresh_per_info): Update.
3746 2019-03-11 Tom Tromey <tromey@adacore.com>
3748 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
3749 redundant assignment to "this_cu".
3751 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3753 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
3755 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3757 * gdbtypes.c (rank_one_type_parm_set): New function extracted
3759 (rank_one_type): ... this.
3761 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3763 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
3765 (rank_one_type): ... this.
3767 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3769 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
3771 (rank_one_type): ... this.
3773 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3775 * gdbtypes.c (rank_one_type_parm_float): New function extracted
3777 (rank_one_type): ... this.
3779 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3781 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
3783 (rank_one_type): ... this.
3785 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3787 * gdbtypes.c (rank_one_type_parm_range): New function extracted
3789 (rank_one_type): ... this.
3791 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3793 * gdbtypes.c (rank_one_type_parm_char): New function extracted
3795 (rank_one_type): ... this.
3797 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3799 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
3801 (rank_one_type): ... this.
3803 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3805 * gdbtypes.c (rank_one_type_parm_int): New function extracted
3807 (rank_one_type): ... this.
3809 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3811 * gdbtypes.c (rank_one_type_parm_func): New function extracted
3813 (rank_one_type): ... this.
3815 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3817 * gdbtypes.c (rank_one_type_parm_array): New function extracted
3819 (rank_one_type): ... this.
3821 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
3823 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
3825 (rank_one_type): ... this.
3827 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3829 * inferior.c (initialize_inferiors): Ensure 'help set/show print
3830 inferior-events' shows the example events.
3832 2019-03-08 Eli Zaretskii <eliz@gnu.org>
3834 Support styling on native MS-Windows console
3837 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
3838 on MS-Windows if $TERM is not defined.
3840 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
3842 * posix-hdep.c (gdb_console_fputs):
3843 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
3845 * ui-file.h (gdb_console_fputs): Add prototype.
3847 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
3848 back to fputs only if the former returns zero.
3850 2019-03-07 Tom Tromey <tom@tromey.com>
3852 * symmisc.c (print_symbol_bcache_statistics): Update.
3853 (print_objfile_statistics): Update.
3854 * symfile.c (allocate_symtab): Update.
3855 * stabsread.c: Don't include bcache.h.
3856 * psymtab.h (struct psymbol_bcache): Don't declare.
3857 (class psymtab_storage) <psymbol_cache>: Now a bcache.
3858 (psymbol_bcache_init, psymbol_bcache_free)
3859 (psymbol_bcache_get_bcache): Don't declare.
3860 * psymtab.c (struct psymbol_bcache): Remove.
3861 (psymtab_storage::psymtab_storage): Update.
3862 (psymtab_storage::~psymtab_storage): Update.
3863 (psymbol_bcache_init, psymbol_bcache_free)
3864 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
3865 (add_psymbol_to_bcache): Update.
3866 (allocate_psymtab): Update.
3867 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
3868 macro_cache>: No longer pointers.
3869 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
3870 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
3871 * macrotab.c (macro_bcache): Update.
3872 * macroexp.c: Don't include bcache.h.
3873 * gdbtypes.c (check_types_worklist): Update.
3874 (types_deeply_equal): Remove TRY/CATCH. Update.
3875 * elfread.c (elf_symtab_read): Update.
3876 * dwarf2read.c: Don't include bcache.h.
3877 * buildsym.c (buildsym_compunit::get_macro_table): Update.
3878 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
3879 (print_bcache_statistics, bcache_memory_used): Don't declare.
3880 (struct bcache): Move from bcache.c. Add constructor, destructor,
3881 methods. Rename all data members.
3882 * bcache.c (struct bcache): Move to bcache.h.
3883 (bcache::expand_hash_table): Rename from expand_hash_table.
3885 (bcache::insert): Rename from bcache_full.
3886 (bcache::compare): Rename from bcache_compare.
3887 (bcache_xmalloc): Remove.
3888 (bcache::~bcache): Rename from bcache_xfree.
3889 (bcache::print_statistics): Rename from print_bcache_statistics.
3890 (bcache::memory_used): Rename from bcache_memory_used.
3892 2019-03-07 Pedro Alves <palves@redhat.com>
3894 * infrun.c (normal_stop): Also check for
3895 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
3897 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
3899 * f-lang.c (value_from_host_double): Moved to...
3900 * value.c (value_from_host_double): ...here.
3901 * value.h (value_from_host_double): Declare.
3902 * guile/scm-math.c (vlscm_convert_typed_number): Use
3903 value_from_host_double.
3904 (vlscm_convert_number): Likewise.
3905 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
3906 * python/py-value.c (convert_value_from_python): Likewise.
3908 2019-03-06 Tom Tromey <tom@tromey.com>
3910 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
3912 2019-03-06 Tom Tromey <tom@tromey.com>
3914 * utils.h (free_current_contents): Don't declare.
3915 * utils.c (free_current_contents): Remove.
3917 2019-03-06 Tom Tromey <tom@tromey.com>
3919 * top.c (quit_force): Update.
3920 * main.c (captured_command_loop): Update.
3921 * common/new-op.c (operator new): Update.
3922 * common/common-exceptions.c (struct catcher)
3923 <save_cleanup_chain>: Remove member.
3924 (exceptions_state_mc_init): Update.
3925 (exception_try_scope_entry): Return nullptr.
3926 (exception_try_scope_exit, exception_rethrow)
3927 (throw_exception_sjlj, throw_exception_cxx): Update.
3928 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
3929 (all_cleanups, do_cleanups, discard_cleanups)
3930 (discard_final_cleanups, save_cleanups, save_final_cleanups)
3931 (restore_cleanups, restore_final_cleanups): Don't declare.
3932 (do_final_cleanups): Remove parameter.
3933 * common/cleanups.c (cleanup_chain, make_cleanup)
3934 (make_cleanup_dtor, all_cleanups, do_cleanups)
3935 (discard_my_cleanups, discard_cleanups)
3936 (discard_final_cleanups, save_my_cleanups, save_cleanups)
3937 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
3938 (null_cleanup): Remove.
3939 (do_final_cleanups): Remove parameter.
3941 2019-03-06 Tom Tromey <tom@tromey.com>
3943 * remote.c (remote_target::remote_parse_stop_reply): Use
3946 2019-03-06 Tom Tromey <tom@tromey.com>
3948 * stabsread.c (struct stabs_field_info): Rename from field_info.
3949 <list, fnlist>: Add initializers.
3950 <obstack>: New member.
3951 (read_member_functions, read_struct_fields, read_baseclasses):
3952 Allocate on obstack. Don't use cleanups.
3953 (read_one_struct_field, read_member_functions, read_struct_fields)
3954 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
3955 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
3956 (read_struct_type): Update.
3958 2019-03-06 Tom Tromey <tom@tromey.com>
3960 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
3961 * common/filestuff.h (make_cleanup_close): Don't declare.
3962 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
3965 2019-03-06 Tom Tromey <tom@tromey.com>
3967 * solib-aix.c: Use make_scope_exit.
3969 2019-03-06 Tom Tromey <tom@tromey.com>
3971 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
3972 Use make_scope_exit.
3974 2019-03-06 Tom Tromey <tom@tromey.com>
3976 * solib-svr4.c (disable_probes_interface): Remove parameter.
3977 (svr4_handle_solib_event): Use make_scope_exit.
3979 2019-03-06 Tom Tromey <tom@tromey.com>
3981 * remote.c (struct stop_reply_deleter): Remove.
3982 (stop_reply_up): Update.
3983 (struct stop_reply): Derive from notif_event. Don't typedef.
3984 <regcache>: Now a std::vector.
3985 (stop_reply_xfree): Remove.
3986 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
3987 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
3988 (remote_target::discard_pending_stop_replies): Use delete.
3989 (remote_target::remote_parse_stop_reply): Update.
3990 (remote_target::process_stop_reply): Update.
3991 * remote-notif.h (struct notif_event): Add virtual destructor.
3992 Remove "dtr" member.
3993 (struct notif_client) <alloc_event>: Return a unique_ptr.
3994 (notif_event_xfree): Don't declare.
3995 (notif_event_up): New typedef.
3996 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
3997 (notif_event_xfree, do_notif_event_xfree): Remove.
3998 (remote_notif_state_xfree): Update.
4000 2019-03-06 Tom Tromey <tom@tromey.com>
4002 * infrun.c (displaced_step_clear_cleanup): Now a
4003 forward_scope_exit type.
4004 (displaced_step_prepare_throw): Update.
4005 (displaced_step_fixup): Update.
4007 2019-03-06 Tom Tromey <tom@tromey.com>
4009 * inferior.h (class inferior): Update comment.
4010 * gdbthread.h (class thread_info): Update comment.
4012 2019-03-06 Joel Brobecker <brobecker@adacore.com>
4013 Tom Tromey <tom@tromey.com>
4015 * stabsread.h (struct stab_section_list): Remove.
4016 (coffstab_build_psymtabs): Update.
4017 * dbxread.c (symbuf_sections): Now a std::vector.
4018 (sect_idx): New global.
4019 (fill_symbuf): Update.
4020 (coffstab_build_psymtabs): Change type of stabsects parameter.
4022 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
4024 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
4025 (coff_locate_sections): Update.
4026 (coff_symfile_read): Remove cleanups. Update.
4027 (init_stringtab): Add storage parameter.
4028 (free_stringtab, free_stringtab_cleanup): Remove.
4029 (init_lineno): Add storage parameter.
4030 (free_linetab, free_linetab_cleanup): Remove.
4032 2019-03-06 Pedro Alves <palves@redhat.com>
4034 * linux-fork.c (fork_info::clobber_regs): Delete.
4035 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
4036 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
4038 (scoped_switch_fork_info::scoped_switch_fork_info)
4039 (checkpoint_command, linux_fork_context): Adjust
4040 fork_save_infrun_state calls.
4042 2019-03-06 Pedro Alves <palves@redhat.com>
4044 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
4045 (inf_has_multiple_threads): Return 'bool' and rewrite using
4046 inferior_info::threads().
4048 2019-03-06 Pedro Alves <palves@redhat.com>
4050 * linux-fork.c: Include <list>.
4051 (fork_list): Now a std::list instance.
4052 (fork_info): Add ctor, dtor, and in-class initialize all fields.
4053 (forks_exist_p, find_last_fork): Adjust.
4057 (free_fork): Delete, folded into fork_info::~fork_info().
4058 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
4060 (init_fork_list): Delete.
4061 (linux_fork_killall, linux_fork_mourn_inferior)
4062 (linux_fork_detach, info_checkpoints_command): Adjust.
4063 (_initialize_linux_fork): No longer call init_fork_list.
4065 2019-03-06 Pedro Alves <palves@redhat.com>
4067 * linux-fork.c (new_fork): New, split out of ...
4068 (add_fork): ... this. Return void. Move "first fork" special
4069 case from here, to ...
4070 (checkpoint_command): ... here.
4071 * linux-linux.h (add_fork): Return void.
4073 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4075 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
4077 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4078 Chris January <chris.january@arm.com>
4079 David Lecomber <david.lecomber@arm.com>
4081 * f-exp.y: New token, UNOP_INTRINSIC.
4082 (exp): New pattern using UNOP_INTRINSIC token.
4083 (f77_keywords): Add 'abs' keyword.
4084 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
4085 (value_from_host_double): New function.
4086 (evaluate_subexp_f): Support UNOP_ABS.
4088 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4090 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
4093 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4095 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
4096 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
4097 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
4099 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4101 * f-exp.y (convert_to_kind_type): Handle more type kinds.
4103 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4104 Chris January <chris.january@arm.com>
4106 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
4107 * f-exp.y: Define 'KIND' token.
4108 (exp): New pattern for KIND expressions.
4109 (ptype): Handle types with a kind extension.
4110 (direct_abs_decl): Extend to spot kind extensions.
4111 (f77_keywords): Add 'kind' to the list.
4112 (push_kind_type): New function.
4113 (convert_to_kind_type): New function.
4114 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
4115 * parse.c (operator_length_standard): Likewise.
4116 * parser-defs.h (enum type_pieces): Add tp_kind.
4117 * std-operator.def: Add UNOP_KIND.
4119 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4121 * f-exp.y (f_parse): Set yydebug.
4123 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4125 * f-lang.c (evaluate_subexp_f): New function.
4126 (exp_descriptor_f): New global.
4127 (f_language_defn): Use exp_descriptor_f instead of
4128 exp_descriptor_standard.
4130 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4132 * f-exp.y (struct token): Add comments.
4133 (dot_ops): Remove uppercase versions and the end marker.
4134 (f77_keywords): Likewise.
4135 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
4136 entries in the dot_ops array are case insensitive, and use
4137 strncasecmp to compare strings. Also some whitespace cleanup in
4138 this area. Similar for the f77_keywords array, except entries in
4139 this list might be case sensitive.
4141 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4143 * f-exp.y (struct f77_boolean_val): Add comments.
4144 (boolean_values): Remove uppercase versions, and end marker.
4145 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
4146 and use strncasecmp to achieve case insensitivity. Additionally,
4147 perform whitespace cleanup around this code.
4149 2019-03-06 Tom Tromey <tromey@adacore.com>
4151 * remote-sim.c (gdbsim_target_open): Use result of
4154 2019-03-06 Richard Bunt <richard.bunt@arm.com>
4155 Dirk Schubert <dirk.schubert@arm.com>
4156 Chris January <chris.january@arm.com>
4158 * eval.c (evaluate_subexp_standard): Call Fortran argument
4160 * f-lang.c (struct value): A value which can be passed into a
4161 Fortran function call.
4162 (fortran_argument_convert): Wrap Fortran arguments in a pointer
4164 (struct type): Value ready for a Fortran function call.
4165 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
4167 * f-lang.h (fortran_argument_convert): Declaration.
4168 (fortran_preserve_arg_pointer): Declaration.
4169 * infcall.c (value_arg_coerce): Call Fortran argument logic.
4171 2019-03-05 Tom Tromey <tromey@adacore.com>
4173 * python/py-prettyprint.c (print_string_repr): Remove #if.
4174 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
4176 2019-03-05 Tom Tromey <tromey@adacore.com>
4178 * target.c (the_dummy_target): Move later. Change type to
4180 (initialize_targets): Don't initialize the_dummy_target.
4182 2019-03-05 Tom Tromey <tromey@adacore.com>
4184 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
4185 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
4187 2019-03-05 Tom Tromey <tromey@adacore.com>
4189 * windows-nat.c (windows_nat_target::attach)
4190 (windows_nat_target::detach): Don't call gdb_flush.
4191 * valprint.c (generic_val_print, val_print, val_print_string):
4192 Don't call gdb_flush.
4193 * utils.c (defaulted_query): Don't call gdb_flush.
4194 * typeprint.c (print_type_scalar): Don't call gdb_flush.
4195 * target.c (target_announce_detach): Don't call gdb_flush.
4196 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
4197 * remote.c (extended_remote_target::attach): Don't call
4199 * procfs.c (procfs_target::detach): Don't call gdb_flush.
4200 * printcmd.c (do_examine): Don't call gdb_flush.
4201 (info_display_command): Don't call gdb_flush.
4202 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
4203 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
4204 * memattr.c (info_mem_command): Don't call gdb_flush.
4205 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
4206 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
4207 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
4208 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
4209 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
4210 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
4211 (gnu_nat_target::detach): Don't call gdb_flush.
4212 * f-valprint.c (f_val_print): Don't call gdb_flush.
4213 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
4214 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
4215 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
4217 * c-valprint.c (c_val_print): Don't call gdb_flush.
4218 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
4220 2019-03-05 Tom Tromey <tromey@adacore.com>
4222 * varobj.c (update_dynamic_varobj_children): Update.
4223 (install_default_visualizer): Use reset, not release.
4224 * value.c (set_internalvar): Update.
4225 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
4226 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
4227 ATTRIBUTE_UNUSED_RESULT.
4229 2019-03-05 Tom Tromey <tromey@adacore.com>
4231 * remote.c (class scoped_remote_fd) <release>: Add
4232 ATTRIBUTE_UNUSED_RESULT.
4234 2019-03-05 Tom Tromey <tromey@adacore.com>
4236 * macroexp.c (struct macro_buffer) <release>: Add
4237 ATTRIBUTE_UNUSED_RESULT.
4239 2019-03-05 Tom Tromey <tromey@adacore.com>
4241 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
4242 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
4243 ATTRIBUTE_UNUSED_RESULT.
4245 2019-03-05 Tom Tromey <tromey@adacore.com>
4247 * common/scoped_fd.h (class scoped_fd) <release>: Add
4248 ATTRIBUTE_UNUSED_RESULT.
4250 2019-03-05 Tom Tromey <tromey@adacore.com>
4252 * parser-defs.h (struct parser_state) <release>: Add
4253 ATTRIBUTE_UNUSED_RESULT.
4255 2019-03-05 Tom Tromey <tromey@adacore.com>
4257 * utils.h (class gdb_argv) <release>: Add
4258 ATTRIBUTE_UNUSED_RESULT.
4259 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
4261 2019-03-02 Eli Zaretskii <eliz@gnu.org>
4263 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
4264 for-loop range, to avoid compiler warnings.
4266 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
4267 avoid compiler warnings about unused variables.
4269 * NEWS: Mention end of support for native debugging on MS-Windows
4273 * common/netstuff.c:
4274 * gdbserver/gdbreplay.c
4275 * gdbserver/remote-utils.c:
4277 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
4278 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
4279 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
4280 'getaddrinfo' and 'freeaddrinfo' were not available before
4281 Windows XP, and mingw.org's MinGW headers by default define
4282 _WIN32_WINNT to 0x500.
4284 2019-03-01 Gary Benson <gbenson@redhat.com>
4286 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
4288 2019-02-28 Brian Vandenberg <phantall@gmail.com>
4289 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4292 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
4293 set_sigint_trap, clear_sigint_trap.
4295 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4297 * target.c (target_detach): Clear the regcache and the
4300 2019-02-27 Pedro Alves <palves@redhat.com>
4302 * utils.c (set_screen_size): When we cap the height/width sizes,
4303 tweak the corresponding command variable to show "unlimited":
4305 2019-02-27 Saagar Jha <saagar@saagarjha.com>
4306 Pedro Alves <palves@redhat.com>
4308 * utils.c (set_screen_size): Reduce "infinite" rows and columns
4309 before calling rl_set_screen_size.
4311 2019-02-27 Tom Tromey <tromey@adacore.com>
4313 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
4315 * python/py-value.c: Remove Python 2.4 workaround.
4316 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
4318 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
4319 Python 2.4 workaround.
4320 * python/python-internal.h: Remove Python 2.4 comment.
4321 (Py_ssize_t): Don't define.
4322 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
4323 (gdb_Py_DECREF): Remove Python 2.4 workaround.
4324 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
4325 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
4326 * python/python.c (do_start_initialization): Remove Python 2.4
4328 * python/py-prettyprint.c (class dummy_python_frame): Remove.
4329 (print_children): Remove Python 2.4 workaround.
4330 * python/py-inferior.c (buffer_procs): Remove Python 2.4
4332 (CHARBUFFERPROC_NAME): Remove.
4333 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
4334 Python 2.4 workaround.
4336 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4338 * NEWS: Note minimum Python version.
4340 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4342 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
4343 code from these functions. Remove corresponding ifdefs. Use
4344 Py_buffer_up instead of explicit calls to PyBuffer_Release.
4345 Remove gotos and target of gotos.
4346 (infpy_search_memory): Likewise.
4348 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4350 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
4351 (hppa_gdbarch_init): Don't register deleted functions with
4354 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4356 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
4357 (h8300_unwind_sp): Delete.
4358 (h8300_dummy_id): Delete.
4359 (h8300_gdbarch_init): Don't register deleted functions with
4362 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4364 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
4365 (ft32_unwind_pc): Delete.
4366 (ft32_unwind_sp): Delete.
4367 (ft32_gdbarch_init): Don't register deleted functions with
4370 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4372 * gdb/frv-tdep.c (frv_dummy_id): Delete.
4373 (frv_unwind_pc): Delete.
4374 (frv_unwind_sp): Delete.
4375 (frv_gdbarch_init): Don't register deleted functions with
4378 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4380 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
4381 (riscv_unwind_pc): Delete.
4382 (riscv_unwind_sp): Delete.
4383 (riscv_gdbarch_init): Don't register deleted functions with
4386 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4388 * gdb/csky-tdep.c (csky_dummy_id): Delete.
4389 (csky_unwind_pc): Delete.
4390 (csky_unwind_sp): Delete.
4391 (csky_gdbarch_init): Don't register deleted functions with
4394 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4396 * gdb/cris-tdep.c (cris_dummy_id): Delete.
4397 (cris_unwind_pc): Delete.
4398 (cris_unwind_sp): Delete.
4399 (cris_gdbarch_init): Don't register deleted functions with
4402 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4404 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
4405 (bfin_unwind_pc): Delete.
4406 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
4408 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4410 * gdb/arm-tdep.c (arm_dummy_id): Delete.
4411 (arm_unwind_pc): Delete.
4412 (arm_unwind_sp): Delete.
4413 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
4415 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4417 * gdb/arc-tdep.c (arc_dummy_id): Delete.
4418 (arc_unwind_pc): Delete.
4419 (arc_unwind_sp): Delete.
4420 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
4422 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4424 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
4425 (alpha_unwind_pc): Delete.
4426 (alpha_gdbarch_init): Don't register deleted functions with
4429 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4431 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
4432 (aarch64_unwind_pc): Delete.
4433 (aarch64_unwind_sp): Delete.
4434 (aarch64_gdbarch_init): Don't register deleted functions with
4437 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4439 * gdbtypes.c (type_align): Don't consider static members when
4440 computing structure alignment.
4442 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4444 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
4445 return 0 for other types.
4446 * arch-utils.c (default_type_align): Always return 0.
4447 * gdbarch.h: Regenerate.
4448 * gdbarch.sh (type_align): Extend comment.
4449 * gdbtypes.c (type_align): Add additional comments, always call
4450 gdbarch_type_align before applying the default rules.
4451 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
4452 generic code will then apply a suitable default.
4453 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
4454 types, return 0 for other types.
4456 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4458 * NEWS: Create a new section for the next release branch.
4459 Rename the section of the current branch, now that it has
4462 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4464 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
4465 * version.in: Bump version to 8.3.50.DATE-git.
4467 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
4469 * aix-thread.c (ptid_cmp): Remove unused variable.
4470 (get_signaled_thread): Likewise.
4471 (store_regs_user_thread): Likewise.
4472 (store_regs_kernel_thread): Likewise.
4473 (fetch_regs_kernel_thread): Remove shadowed variable.
4475 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
4477 * features/riscv/32bit-cpu.xml: Add register numbers.
4478 * features/riscv/32bit-fpu.c: Regenerate.
4479 * features/riscv/32bit-fpu.xml: Add register numbers.
4480 * features/riscv/64bit-cpu.xml: Add register numbers.
4481 * features/riscv/64bit-fpu.c: Regenerate.
4482 * features/riscv/64bit-fpu.xml: Add register numbers.
4484 2019-02-26 Kevin Buettner <kevinb@redhat.com>
4486 * NEWS: Mention two argument form of gdb.Value constructor.
4487 * python/py-value.c (convert_buffer_and_type_to_value): New
4489 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
4490 Add support for handling an optional second argument. Call
4491 convert_buffer_and_type_to_value as appropriate.
4492 * python/python-internal.h (Py_buffer_deleter): New struct.
4493 (Py_buffer_up): New typedef.
4495 2019-02-25 John Baldwin <jhb@FreeBSD.org>
4497 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
4498 instead of releasing ownership.
4500 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
4502 * dwarf2read.c (open_and_init_dwp_file): Call
4503 elf_numsections instead of bfd_count_sections to initialize
4504 dwp_file->num_sections.
4506 2019-02-25 Tom Tromey <tromey@adacore.com>
4508 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
4510 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
4512 * gcore.in: Add '--readnever' option when invoking GDB.
4514 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4516 * MAINTAINERS: Update my email address.
4518 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4520 * build-id.c (build_id_to_debug_bfd_1): New function.
4521 (build_id_to_debug_bfd): Look for separate debug file in
4524 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
4526 * gdbarch.sh: Update the copyright year range that is placed into
4529 2019-02-22 Keith Seitz <keiths@redhat.com>
4532 * linespec.c (create_sals_line_offset): Search for the default
4533 symtab's filename instead of its fullname.
4535 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4537 * NEWS: Update style defaults.
4539 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4541 * main.c (captured_main_1): Disable styling in batch mode.
4543 2019-02-20 Tom Tromey <tom@tromey.com>
4545 * symtab.c (symtab_symbol_info): Fix typos.
4547 2019-02-20 Tom Tromey <tromey@adacore.com>
4549 * findcmd.c (_initialize_mem_search): Use upper case for
4550 metasyntactic variables.
4552 2019-02-20 Alan Hayward <alan.hayward@arm.com>
4554 * aarch64-tdep.c (aarch64_add_reggroups): New function.
4555 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
4557 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
4559 * top.h (source_file_name): Change to std::string.
4560 * top.c (source_file_name): Likewise.
4561 (command_line_input): Adjust.
4562 * cli/cli-script.c (script_from_file): Adjust.
4564 2019-02-19 Tom Tromey <tromey@adacore.com>
4566 * ravenscar-thread.c
4567 (ravenscar_thread_target::update_thread_list): Don't call
4568 ada_build_task_list.
4569 * ada-lang.h (ada_build_task_list): Don't declare.
4570 * ada-tasks.c (struct ada_tasks_inferior_data)
4571 <task_list_valid_p>: Now bool.
4572 (read_known_tasks, ada_task_list_changed)
4573 (ada_tasks_invalidate_inferior_data): Update.
4574 (read_known_tasks_array): Return bool.
4575 (read_known_tasks_list): Likewise.
4576 (read_known_tasks): Return void.
4577 (ada_build_task_list): Now static.
4579 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
4581 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
4582 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
4584 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4586 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
4587 variant for ada_tasks_pspace_data_handle and
4588 ada_tasks_inferior_data_handle.
4589 (ada_tasks_pspace_data_cleanup): New function.
4590 (ada_tasks_inferior_data_cleanup): New function.
4592 2019-02-17 Tom Tromey <tom@tromey.com>
4594 * macrotab.h (macro_source_fullname): Return a std::string.
4595 * macrotab.c (macro_include, check_for_redefinition)
4596 (macro_undef, macro_lookup_definition, foreach_macro)
4597 (foreach_macro_in_scope): Update.
4598 (macro_source_fullname): Return a std::string.
4599 * macrocmd.c (show_pp_source_pos): Update.
4601 2019-02-17 Tom Tromey <tom@tromey.com>
4603 * macrocmd.c (show_pp_source_pos): Style the file names.
4605 2019-02-17 Tom Tromey <tom@tromey.com>
4608 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
4610 2019-02-17 Tom Tromey <tom@tromey.com>
4612 * ada-lang.c (user_select_syms): Use filtered printing.
4613 * utils.c (wrap_style): New global.
4614 (desired_style): Remove.
4615 (emit_style_escape): Add stream parameter.
4616 (set_output_style, reset_terminal_style, prompt_for_continue):
4618 (flush_wrap_buffer): Only flush gdb_stdout.
4619 (wrap_here): Set wrap_style.
4620 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
4621 treat escape sequences as a character. Change when wrap buffer is
4623 (fputs_styled): Do not set the output style when the default is
4625 * ui-style.h (struct ui_file_style) <is_default>: New method.
4626 * source.c (print_source_lines_base): Emit escape sequences in one
4629 2019-02-17 Joel Brobecker <brobecker@adacore.com>
4631 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
4632 integers and enumeration types.
4634 2019-02-17 Joel Brobecker <brobecker@adacore.com>
4636 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
4637 instead of lookup_symbol_in_language
4638 (do_exact_match): New function.
4639 (ada_get_symbol_name_matcher): Return do_exact_match when
4640 doing a verbatim match.
4642 2019-02-15 Tom Tromey <tromey@adacore.com>
4644 * ravenscar-thread.c (ravenscar_thread_target::resume)
4645 (ravenscar_thread_target::wait): Special case wildcard requests.
4647 2019-02-15 Tom Tromey <tromey@adacore.com>
4649 * ravenscar-thread.c (base_ptid): Remove.
4650 (struct ravenscar_thread_target) <close>: New method.
4651 <m_base_ptid>: New member.
4652 <update_inferior_ptid, active_task, task_is_currently_active,
4653 runtime_initialized>: Declare methods.
4654 <ravenscar_thread_target>: Add constructor.
4655 (ravenscar_thread_target::task_is_currently_active)
4656 (ravenscar_thread_target::update_inferior_ptid)
4657 (ravenscar_runtime_initialized): Rename. Now methods.
4658 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
4659 (ravenscar_thread_target::update_thread_list): Update.
4660 (ravenscar_thread_target::active_task): Now method.
4661 (ravenscar_thread_target::store_registers)
4662 (ravenscar_thread_target::prepare_to_store)
4663 (ravenscar_thread_target::prepare_to_store)
4664 (ravenscar_thread_target::mourn_inferior): Update.
4665 (ravenscar_inferior_created): Use "new" to create target.
4666 (ravenscar_thread_target::get_ada_task_ptid): Update.
4667 (_initialize_ravenscar): Don't initialize base_ptid.
4668 (ravenscar_ops): Remove global.
4670 2019-02-15 Tom Tromey <tromey@adacore.com>
4672 * target.h (push_target): Declare new overload.
4673 * target.c (push_target): New overload, taking an rvalue reference.
4674 * remote.c (remote_target::open_1): Use push_target overload.
4675 * corelow.c (core_target_open): Use push_target overload.
4677 2019-02-15 Tom Tromey <tromey@adacore.com>
4679 * ravenscar-thread.c (is_ravenscar_task)
4680 (ravenscar_task_is_currently_active): Return bool.
4681 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
4682 (_initialize_ravenscar): Remove "(void)".
4683 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
4686 2019-02-15 Tom Tromey <tromey@adacore.com>
4688 * ravenscar-thread.c (ravenscar_runtime_initializer)
4689 (has_ravenscar_runtime, get_running_thread_id)
4690 (ravenscar_thread_target::resume): Fix indentation.
4692 2019-02-15 Tom Tromey <tromey@adacore.com>
4694 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
4695 from ravenscar_arch_ops.
4696 (sparc_ravenscar_ops::fetch_registers)
4697 (sparc_ravenscar_ops::store_registers): Now methods.
4698 (sparc_ravenscar_prepare_to_store): Remove.
4699 (sparc_ravenscar_ops): Redefine.
4700 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
4701 methods and destructor. Remove members.
4702 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
4703 (ravenscar_thread_target::store_registers)
4704 (ravenscar_thread_target::prepare_to_store): Update.
4705 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
4707 (struct ppc_ravenscar_powerpc_ops): Derive from
4709 (ppc_ravenscar_powerpc_ops::fetch_registers)
4710 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
4711 (ppc_ravenscar_powerpc_ops): Redefine.
4712 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
4713 (ppc_ravenscar_e500_ops::fetch_registers)
4714 (ppc_ravenscar_e500_ops::store_registers): Now methods.
4715 (ppc_ravenscar_e500_ops): Redefine.
4716 * aarch64-ravenscar-thread.c
4717 (aarch64_ravenscar_generic_prepare_to_store): Remove.
4718 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
4719 (aarch64_ravenscar_fetch_registers)
4720 (aarch64_ravenscar_store_registers): Now methods.
4721 (aarch64_ravenscar_ops): Redefine.
4723 2019-02-15 Tom Tromey <tromey@adacore.com>
4725 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
4726 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4727 (ravenscar_thread_target::stopped_by_watchpoint)
4728 (ravenscar_thread_target::stopped_data_address)
4729 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
4731 2019-02-15 Tom Tromey <tromey@adacore.com>
4733 * ravenscar-thread.c: Fix some typos.
4735 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4736 Tom Tromey <tromey@adacore.com>
4738 * ada-lang.c (ada_exception_sal): Change addr_string to a
4740 (create_ada_exception_catchpoint): Update.
4742 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4743 Tom Tromey <tromey@adacore.com>
4745 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
4746 (bp_location_ops): Remove.
4747 (base_breakpoint_allocate_location): Update.
4748 (free_bp_location): Update.
4749 * ada-lang.c (class ada_catchpoint_location)
4750 <ada_catchpoint_location>: Remove ops parameter.
4751 (ada_catchpoint_location_dtor): Remove.
4752 (ada_catchpoint_location_ops): Remove.
4753 (allocate_location_exception): Update.
4754 * breakpoint.h (struct bp_location_ops): Remove.
4755 (class bp_location) <bp_location>: Remove bp_location_ops
4757 <~bp_location>: Add destructor.
4760 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
4761 Pedro Alves <palves@redhat.com>
4763 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
4766 2019-02-14 David Michael <fedora.dm0@gmail.com>
4767 Samuel Thibault <samuel.thibault@gnu.org>
4768 Thomas Schwinge <thomas@codesourcery.com>
4770 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
4771 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
4773 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
4775 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
4776 (check_empty): Use "const char *".
4778 * gnu-nat.c (gnu_nat_target::detach): Instead of
4779 'detach_inferior (pid)' call
4780 'detach_inferior (find_inferior_pid (pid))'.
4782 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
4783 'nat/fork-inferior.o'.
4784 * gnu-nat.c: #include "nat/fork-inferior.h".
4786 * gnu-nat.c (gnu_nat_target::detach): Instead of
4787 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
4788 * gnu-nat.h: #include "inf-child.h".
4789 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
4790 'i386_gnu_nat_target::fetch_registers'.
4791 (gnu_store_registers): Rename/move to
4792 'i386_gnu_nat_target::store_registers'.
4794 * config/i386/nm-i386gnu.h: Don't "#include" any files.
4795 * gnu-nat.h (mach_thread_info): New function.
4796 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
4798 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
4800 2019-02-14 Frederic Konrad <konrad@adacore.com>
4802 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
4804 2019-02-14 Joel Brobecker <brobecker@adacore.com>
4806 * windows-nat.c (windows_add_thread): Add new parameter
4807 "main_thread_p" with default value set to false. Update
4808 function documentation as well as all callers.
4809 (windows_delete_thread): Likewise.
4810 (fake_create_process): Update call to windows_add_thread.
4811 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
4812 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
4813 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
4814 call to windows_delete_thread.
4816 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
4818 * MAINTAINERS: Add Andrew Burgess as global maintainer.
4820 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4822 * symfile.c (find_separate_debug_file): Use canonical path of
4823 sysroot with child_path instead of gdb_sysroot if it is valid.
4825 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4827 * symfile.c (find_separate_debug_file): Use child_path to
4828 determine if an object file is under a sysroot.
4830 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4832 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4833 unittests/child-path-selftests.c.
4834 * common/pathstuff.c (child_path): New function.
4835 * common/pathstuff.h (child_path): New prototype.
4836 * unittests/child-path-selftests.c: New file.
4838 2019-02-12 John Baldwin <jhb@FreeBSD.org>
4840 * symfile.c (find_separate_debug_file): Look for separate debug
4841 files in debug directories under the sysroot.
4843 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4845 * symtab.h (struct minimal_symbol data_p): New const method.
4846 (struct minimal_symbol text_p): Likewise.
4847 * symtab.c (output_source_filename): Use file name style
4849 (print_symbol_info): Likewise.
4850 (print_msymbol_info): Use address style to print addresses.
4851 Use function name style to print executable text symbols.
4852 (expand_symtab_containing_pc): Use data_p.
4853 (find_pc_sect_compunit_symtab): Likewise.
4855 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4857 * breakpoint.c (describe_other_breakpoints): Use address style
4859 (say_where): Likewise.
4861 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4863 * ada-typeprint.c (print_func_type): Print function name
4864 style to print function name.
4865 * c-typeprint.c (c_print_type_1): Likewise.
4867 2019-02-11 Alan Hayward <alan.hayward@arm.com>
4869 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
4872 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4874 * c-exp.y (direct_abs_decl): Use emplace_back to record the
4877 2019-02-10 Joel Brobecker <brobecker@adacore.com>
4879 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
4880 TYPE_CODE_REF types.
4882 2019-02-08 Jim Wilson <jimw@sifive.com>
4884 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
4885 (riscv_linux_fregset): New.
4886 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
4888 2019-02-07 Tom Tromey <tom@tromey.com>
4890 * thread.c (thread_cancel_execution_command): Update.
4891 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
4893 (struct thread_fsm_ops): Remove.
4894 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
4895 (thread_fsm_should_stop, thread_fsm_return_value)
4896 (thread_fsm_set_finished, thread_fsm_finished_p)
4897 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
4899 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
4900 * infrun.c (clear_proceed_status_thread)
4901 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
4902 (print_stop_event): Update.
4903 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
4905 (step_command_fsm_ops): Remove.
4906 (new_step_command_fsm): Remove.
4908 (step_command_fsm::should_stop): Rename from
4909 step_command_fsm_should_stop.
4910 (step_command_fsm::clean_up): Rename from
4911 step_command_fsm_clean_up.
4912 (step_command_fsm::do_async_reply_reason): Rename from
4913 step_command_fsm_async_reply_reason.
4914 (struct until_next_fsm): Inherit from thread_fsm. Add
4916 (until_next_fsm_ops): Remove.
4917 (new_until_next_fsm): Remove.
4918 (until_next_fsm::should_stop): Rename from
4919 until_next_fsm_should_stop.
4920 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
4921 (until_next_fsm::do_async_reply_reason): Rename from
4922 until_next_fsm_async_reply_reason.
4923 (struct finish_command_fsm): Inherit from thread_fsm. Add
4924 constructor. Change type of breakpoint.
4925 (finish_command_fsm_ops): Remove.
4926 (new_finish_command_fsm): Remove.
4927 (finish_command_fsm::should_stop): Rename from
4928 finish_command_fsm_should_stop.
4929 (finish_command_fsm::clean_up): Rename from
4930 finish_command_fsm_clean_up.
4931 (finish_command_fsm::return_value): Rename from
4932 finish_command_fsm_return_value.
4933 (finish_command_fsm::do_async_reply_reason): Rename from
4934 finish_command_fsm_async_reply_reason.
4935 (finish_command): Update.
4936 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
4938 (call_thread_fsm_ops): Remove.
4939 (call_thread_fsm::call_thread_fsm): Rename from
4940 new_call_thread_fsm.
4941 (call_thread_fsm::should_stop): Rename from
4942 call_thread_fsm_should_stop.
4943 (call_thread_fsm::should_notify_stop): Rename from
4944 call_thread_fsm_should_notify_stop.
4945 (run_inferior_call, call_function_by_hand_dummy): Update.
4946 * cli/cli-interp.c (should_print_stop_to_console): Update.
4947 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
4948 Add constructor. Change type of location_breakpoint,
4950 (until_break_fsm_ops): Remove.
4951 (new_until_break_fsm): Remove.
4952 (until_break_fsm::should_stop): Rename from
4953 until_break_fsm_should_stop.
4954 (until_break_fsm::clean_up): Rename from
4955 until_break_fsm_clean_up.
4956 (until_break_fsm::do_async_reply_reason): Rename from
4957 until_break_fsm_async_reply_reason.
4958 (until_break_command): Update.
4959 * thread-fsm.c: Remove.
4960 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
4962 2019-02-07 Tom Tromey <tom@tromey.com>
4964 * yy-remap.h: Add include guard.
4965 * xtensa-tdep.h: Add include guard.
4966 * xcoffread.h: Rename include guard.
4967 * varobj-iter.h: Add include guard.
4968 * tui/tui.h: Rename include guard.
4969 * tui/tui-winsource.h: Rename include guard.
4970 * tui/tui-wingeneral.h: Rename include guard.
4971 * tui/tui-windata.h: Rename include guard.
4972 * tui/tui-win.h: Rename include guard.
4973 * tui/tui-stack.h: Rename include guard.
4974 * tui/tui-source.h: Rename include guard.
4975 * tui/tui-regs.h: Rename include guard.
4976 * tui/tui-out.h: Rename include guard.
4977 * tui/tui-layout.h: Rename include guard.
4978 * tui/tui-io.h: Rename include guard.
4979 * tui/tui-hooks.h: Rename include guard.
4980 * tui/tui-file.h: Rename include guard.
4981 * tui/tui-disasm.h: Rename include guard.
4982 * tui/tui-data.h: Rename include guard.
4983 * tui/tui-command.h: Rename include guard.
4984 * tic6x-tdep.h: Add include guard.
4985 * target/waitstatus.h: Rename include guard.
4986 * target/wait.h: Rename include guard.
4987 * target/target.h: Rename include guard.
4988 * target/resume.h: Rename include guard.
4989 * target-float.h: Rename include guard.
4990 * stabsread.h: Add include guard.
4991 * rs6000-tdep.h: Add include guard.
4992 * riscv-fbsd-tdep.h: Add include guard.
4993 * regformats/regdef.h: Rename include guard.
4994 * record.h: Rename include guard.
4995 * python/python.h: Rename include guard.
4996 * python/python-internal.h: Rename include guard.
4997 * python/py-stopevent.h: Rename include guard.
4998 * python/py-ref.h: Rename include guard.
4999 * python/py-record.h: Rename include guard.
5000 * python/py-record-full.h: Rename include guard.
5001 * python/py-record-btrace.h: Rename include guard.
5002 * python/py-instruction.h: Rename include guard.
5003 * python/py-events.h: Rename include guard.
5004 * python/py-event.h: Rename include guard.
5005 * procfs.h: Add include guard.
5006 * proc-utils.h: Add include guard.
5007 * p-lang.h: Add include guard.
5008 * or1k-tdep.h: Rename include guard.
5009 * observable.h: Rename include guard.
5010 * nto-tdep.h: Rename include guard.
5011 * nat/x86-linux.h: Rename include guard.
5012 * nat/x86-linux-dregs.h: Rename include guard.
5013 * nat/x86-gcc-cpuid.h: Add include guard.
5014 * nat/x86-dregs.h: Rename include guard.
5015 * nat/x86-cpuid.h: Rename include guard.
5016 * nat/ppc-linux.h: Rename include guard.
5017 * nat/mips-linux-watch.h: Rename include guard.
5018 * nat/linux-waitpid.h: Rename include guard.
5019 * nat/linux-ptrace.h: Rename include guard.
5020 * nat/linux-procfs.h: Rename include guard.
5021 * nat/linux-osdata.h: Rename include guard.
5022 * nat/linux-nat.h: Rename include guard.
5023 * nat/linux-namespaces.h: Rename include guard.
5024 * nat/linux-btrace.h: Rename include guard.
5025 * nat/glibc_thread_db.h: Rename include guard.
5026 * nat/gdb_thread_db.h: Rename include guard.
5027 * nat/gdb_ptrace.h: Rename include guard.
5028 * nat/fork-inferior.h: Rename include guard.
5029 * nat/amd64-linux-siginfo.h: Rename include guard.
5030 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
5031 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
5032 * nat/aarch64-linux.h: Rename include guard.
5033 * nat/aarch64-linux-hw-point.h: Rename include guard.
5034 * mn10300-tdep.h: Add include guard.
5035 * mips-linux-tdep.h: Add include guard.
5036 * mi/mi-parse.h: Rename include guard.
5037 * mi/mi-out.h: Rename include guard.
5038 * mi/mi-main.h: Rename include guard.
5039 * mi/mi-interp.h: Rename include guard.
5040 * mi/mi-getopt.h: Rename include guard.
5041 * mi/mi-console.h: Rename include guard.
5042 * mi/mi-common.h: Rename include guard.
5043 * mi/mi-cmds.h: Rename include guard.
5044 * mi/mi-cmd-break.h: Rename include guard.
5045 * m2-lang.h: Add include guard.
5046 * location.h: Rename include guard.
5047 * linux-record.h: Rename include guard.
5048 * linux-nat.h: Add include guard.
5049 * linux-fork.h: Add include guard.
5050 * i386-darwin-tdep.h: Rename include guard.
5051 * hppa-linux-offsets.h: Add include guard.
5052 * guile/guile.h: Rename include guard.
5053 * guile/guile-internal.h: Rename include guard.
5054 * gnu-nat.h: Rename include guard.
5055 * gdb-stabs.h: Rename include guard.
5056 * frv-tdep.h: Add include guard.
5057 * f-lang.h: Add include guard.
5058 * event-loop.h: Add include guard.
5059 * darwin-nat.h: Rename include guard.
5060 * cp-abi.h: Rename include guard.
5061 * config/sparc/nm-sol2.h: Rename include guard.
5062 * config/nm-nto.h: Rename include guard.
5063 * config/nm-linux.h: Add include guard.
5064 * config/i386/nm-i386gnu.h: Rename include guard.
5065 * config/djgpp/nl_types.h: Rename include guard.
5066 * config/djgpp/langinfo.h: Rename include guard.
5067 * compile/gcc-cp-plugin.h: Add include guard.
5068 * compile/gcc-c-plugin.h: Add include guard.
5069 * compile/compile.h: Rename include guard.
5070 * compile/compile-object-run.h: Rename include guard.
5071 * compile/compile-object-load.h: Rename include guard.
5072 * compile/compile-internal.h: Rename include guard.
5073 * compile/compile-cplus.h: Rename include guard.
5074 * compile/compile-c.h: Rename include guard.
5075 * common/xml-utils.h: Rename include guard.
5076 * common/x86-xstate.h: Rename include guard.
5077 * common/version.h: Rename include guard.
5078 * common/vec.h: Rename include guard.
5079 * common/tdesc.h: Rename include guard.
5080 * common/selftest.h: Rename include guard.
5081 * common/scoped_restore.h: Rename include guard.
5082 * common/scoped_mmap.h: Rename include guard.
5083 * common/scoped_fd.h: Rename include guard.
5084 * common/safe-iterator.h: Rename include guard.
5085 * common/run-time-clock.h: Rename include guard.
5086 * common/refcounted-object.h: Rename include guard.
5087 * common/queue.h: Rename include guard.
5088 * common/ptid.h: Rename include guard.
5089 * common/print-utils.h: Rename include guard.
5090 * common/preprocessor.h: Rename include guard.
5091 * common/pathstuff.h: Rename include guard.
5092 * common/observable.h: Rename include guard.
5093 * common/netstuff.h: Rename include guard.
5094 * common/job-control.h: Rename include guard.
5095 * common/host-defs.h: Rename include guard.
5096 * common/gdb_wait.h: Rename include guard.
5097 * common/gdb_vecs.h: Rename include guard.
5098 * common/gdb_unlinker.h: Rename include guard.
5099 * common/gdb_unique_ptr.h: Rename include guard.
5100 * common/gdb_tilde_expand.h: Rename include guard.
5101 * common/gdb_sys_time.h: Rename include guard.
5102 * common/gdb_string_view.h: Rename include guard.
5103 * common/gdb_splay_tree.h: Rename include guard.
5104 * common/gdb_setjmp.h: Rename include guard.
5105 * common/gdb_ref_ptr.h: Rename include guard.
5106 * common/gdb_optional.h: Rename include guard.
5107 * common/gdb_locale.h: Rename include guard.
5108 * common/gdb_assert.h: Rename include guard.
5109 * common/filtered-iterator.h: Rename include guard.
5110 * common/filestuff.h: Rename include guard.
5111 * common/fileio.h: Rename include guard.
5112 * common/environ.h: Rename include guard.
5113 * common/common-utils.h: Rename include guard.
5114 * common/common-types.h: Rename include guard.
5115 * common/common-regcache.h: Rename include guard.
5116 * common/common-inferior.h: Rename include guard.
5117 * common/common-gdbthread.h: Rename include guard.
5118 * common/common-exceptions.h: Rename include guard.
5119 * common/common-defs.h: Rename include guard.
5120 * common/common-debug.h: Rename include guard.
5121 * common/cleanups.h: Rename include guard.
5122 * common/buffer.h: Rename include guard.
5123 * common/btrace-common.h: Rename include guard.
5124 * common/break-common.h: Rename include guard.
5125 * cli/cli-utils.h: Rename include guard.
5126 * cli/cli-style.h: Rename include guard.
5127 * cli/cli-setshow.h: Rename include guard.
5128 * cli/cli-script.h: Rename include guard.
5129 * cli/cli-interp.h: Rename include guard.
5130 * cli/cli-decode.h: Rename include guard.
5131 * cli/cli-cmds.h: Rename include guard.
5132 * charset-list.h: Add include guard.
5133 * buildsym-legacy.h: Rename include guard.
5134 * bfin-tdep.h: Add include guard.
5135 * ax.h: Rename include guard.
5136 * arm-linux-tdep.h: Add include guard.
5137 * arm-fbsd-tdep.h: Add include guard.
5138 * arch/xtensa.h: Rename include guard.
5139 * arch/tic6x.h: Add include guard.
5140 * arch/i386.h: Add include guard.
5141 * arch/arm.h: Rename include guard.
5142 * arch/arm-linux.h: Rename include guard.
5143 * arch/arm-get-next-pcs.h: Rename include guard.
5144 * arch/amd64.h: Add include guard.
5145 * arch/aarch64-insn.h: Rename include guard.
5146 * arch-utils.h: Rename include guard.
5147 * annotate.h: Add include guard.
5148 * amd64-darwin-tdep.h: Rename include guard.
5149 * aarch64-linux-tdep.h: Add include guard.
5150 * aarch64-fbsd-tdep.h: Add include guard.
5151 * aarch32-linux-nat.h: Add include guard.
5153 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5155 * macrotab.c (macro_define_internal): New function that
5156 factorizes macro_define_object_internal and macro_define_function
5158 (macro_define_object_internal): Use macro_define_internal.
5159 (macro_define_function): Likewise.
5161 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5163 * macrocmd.c (extract_identifier): Return
5164 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
5167 2019-02-06 John Baldwin <jhb@FreeBSD.org>
5169 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
5171 2019-02-05 Tom Tromey <tom@tromey.com>
5173 * target.c (target_stack::unpush): Move assertion earlier.
5175 2019-01-30 Tom Tromey <tom@tromey.com>
5178 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
5179 (gdbpy_parse_and_eval): Likewise.
5180 * python/python-internal.h (gdbpy_allow_threads): New class.
5182 2019-01-28 John Baldwin <jhb@FreeBSD.org>
5184 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
5185 (aarch64_fbsd_fpregmap): Move earlier.
5186 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
5187 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5188 instead of individual calls to trad_frame_set_reg_addr.
5189 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
5191 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
5192 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5193 instead of individual calls to trad_frame_set_reg_addr.
5195 2019-01-28 Alan Hayward <alan.hayward@arm.com>
5197 * CONTRIBUTE: Replace contribution list with wiki link.
5199 2019-01-25 Tom Tromey <tom@tromey.com>
5201 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
5203 2019-01-25 Tom Tromey <tom@tromey.com>
5205 * xtensa-linux-nat.c: Fix common/ includes.
5206 * xml-support.h: Fix common/ includes.
5207 * xml-support.c: Fix common/ includes.
5208 * x86-linux-nat.c: Fix common/ includes.
5209 * windows-nat.c: Fix common/ includes.
5210 * varobj.h: Fix common/ includes.
5211 * varobj.c: Fix common/ includes.
5212 * value.c: Fix common/ includes.
5213 * valops.c: Fix common/ includes.
5214 * utils.c: Fix common/ includes.
5215 * unittests/xml-utils-selftests.c: Fix common/ includes.
5216 * unittests/utils-selftests.c: Fix common/ includes.
5217 * unittests/unpack-selftests.c: Fix common/ includes.
5218 * unittests/tracepoint-selftests.c: Fix common/ includes.
5219 * unittests/style-selftests.c: Fix common/ includes.
5220 * unittests/string_view-selftests.c: Fix common/ includes.
5221 * unittests/scoped_restore-selftests.c: Fix common/ includes.
5222 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
5223 * unittests/scoped_fd-selftests.c: Fix common/ includes.
5224 * unittests/rsp-low-selftests.c: Fix common/ includes.
5225 * unittests/parse-connection-spec-selftests.c: Fix common/
5227 * unittests/optional-selftests.c: Fix common/ includes.
5228 * unittests/offset-type-selftests.c: Fix common/ includes.
5229 * unittests/observable-selftests.c: Fix common/ includes.
5230 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
5231 * unittests/memrange-selftests.c: Fix common/ includes.
5232 * unittests/memory-map-selftests.c: Fix common/ includes.
5233 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
5234 * unittests/function-view-selftests.c: Fix common/ includes.
5235 * unittests/environ-selftests.c: Fix common/ includes.
5236 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
5237 * unittests/common-utils-selftests.c: Fix common/ includes.
5238 * unittests/cli-utils-selftests.c: Fix common/ includes.
5239 * unittests/array-view-selftests.c: Fix common/ includes.
5240 * ui-file.c: Fix common/ includes.
5241 * tui/tui-io.c: Fix common/ includes.
5242 * tracepoint.h: Fix common/ includes.
5243 * tracepoint.c: Fix common/ includes.
5244 * tracefile-tfile.c: Fix common/ includes.
5245 * top.h: Fix common/ includes.
5246 * top.c: Fix common/ includes.
5247 * thread.c: Fix common/ includes.
5248 * target/waitstatus.h: Fix common/ includes.
5249 * target/waitstatus.c: Fix common/ includes.
5250 * target.h: Fix common/ includes.
5251 * target.c: Fix common/ includes.
5252 * target-memory.c: Fix common/ includes.
5253 * target-descriptions.c: Fix common/ includes.
5254 * symtab.h: Fix common/ includes.
5255 * symfile.c: Fix common/ includes.
5256 * stap-probe.c: Fix common/ includes.
5257 * spu-linux-nat.c: Fix common/ includes.
5258 * sparc-nat.c: Fix common/ includes.
5259 * source.c: Fix common/ includes.
5260 * solib.c: Fix common/ includes.
5261 * solib-target.c: Fix common/ includes.
5262 * ser-unix.c: Fix common/ includes.
5263 * ser-tcp.c: Fix common/ includes.
5264 * ser-pipe.c: Fix common/ includes.
5265 * ser-base.c: Fix common/ includes.
5266 * selftest-arch.c: Fix common/ includes.
5267 * s12z-tdep.c: Fix common/ includes.
5268 * rust-exp.y: Fix common/ includes.
5269 * rs6000-aix-tdep.c: Fix common/ includes.
5270 * riscv-tdep.c: Fix common/ includes.
5271 * remote.c: Fix common/ includes.
5272 * remote-notif.h: Fix common/ includes.
5273 * remote-fileio.h: Fix common/ includes.
5274 * remote-fileio.c: Fix common/ includes.
5275 * regcache.h: Fix common/ includes.
5276 * regcache.c: Fix common/ includes.
5277 * record-btrace.c: Fix common/ includes.
5278 * python/python.c: Fix common/ includes.
5279 * python/py-type.c: Fix common/ includes.
5280 * python/py-inferior.c: Fix common/ includes.
5281 * progspace.h: Fix common/ includes.
5282 * producer.c: Fix common/ includes.
5283 * procfs.c: Fix common/ includes.
5284 * proc-api.c: Fix common/ includes.
5285 * printcmd.c: Fix common/ includes.
5286 * ppc-linux-nat.c: Fix common/ includes.
5287 * parser-defs.h: Fix common/ includes.
5288 * osdata.c: Fix common/ includes.
5289 * obsd-nat.c: Fix common/ includes.
5290 * nat/x86-linux.c: Fix common/ includes.
5291 * nat/x86-linux-dregs.c: Fix common/ includes.
5292 * nat/x86-dregs.h: Fix common/ includes.
5293 * nat/x86-dregs.c: Fix common/ includes.
5294 * nat/ppc-linux.c: Fix common/ includes.
5295 * nat/mips-linux-watch.h: Fix common/ includes.
5296 * nat/mips-linux-watch.c: Fix common/ includes.
5297 * nat/linux-waitpid.c: Fix common/ includes.
5298 * nat/linux-ptrace.h: Fix common/ includes.
5299 * nat/linux-ptrace.c: Fix common/ includes.
5300 * nat/linux-procfs.c: Fix common/ includes.
5301 * nat/linux-personality.c: Fix common/ includes.
5302 * nat/linux-osdata.c: Fix common/ includes.
5303 * nat/linux-namespaces.c: Fix common/ includes.
5304 * nat/linux-btrace.h: Fix common/ includes.
5305 * nat/linux-btrace.c: Fix common/ includes.
5306 * nat/fork-inferior.c: Fix common/ includes.
5307 * nat/amd64-linux-siginfo.c: Fix common/ includes.
5308 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
5309 * nat/aarch64-linux.c: Fix common/ includes.
5310 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
5311 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
5312 * namespace.h: Fix common/ includes.
5313 * mips-linux-tdep.c: Fix common/ includes.
5314 * minsyms.c: Fix common/ includes.
5315 * mi/mi-parse.h: Fix common/ includes.
5316 * mi/mi-main.c: Fix common/ includes.
5317 * mi/mi-cmd-env.c: Fix common/ includes.
5318 * memrange.h: Fix common/ includes.
5319 * memattr.c: Fix common/ includes.
5320 * maint.h: Fix common/ includes.
5321 * maint.c: Fix common/ includes.
5322 * main.c: Fix common/ includes.
5323 * machoread.c: Fix common/ includes.
5324 * location.c: Fix common/ includes.
5325 * linux-thread-db.c: Fix common/ includes.
5326 * linux-nat.c: Fix common/ includes.
5327 * linux-fork.c: Fix common/ includes.
5328 * inline-frame.c: Fix common/ includes.
5329 * infrun.c: Fix common/ includes.
5330 * inflow.c: Fix common/ includes.
5331 * inferior.h: Fix common/ includes.
5332 * inferior.c: Fix common/ includes.
5333 * infcmd.c: Fix common/ includes.
5334 * inf-ptrace.c: Fix common/ includes.
5335 * inf-child.c: Fix common/ includes.
5336 * ia64-linux-nat.c: Fix common/ includes.
5337 * i387-tdep.c: Fix common/ includes.
5338 * i386-tdep.c: Fix common/ includes.
5339 * i386-linux-tdep.c: Fix common/ includes.
5340 * i386-linux-nat.c: Fix common/ includes.
5341 * i386-go32-tdep.c: Fix common/ includes.
5342 * i386-fbsd-tdep.c: Fix common/ includes.
5343 * i386-fbsd-nat.c: Fix common/ includes.
5344 * guile/scm-type.c: Fix common/ includes.
5345 * guile/guile.c: Fix common/ includes.
5346 * go32-nat.c: Fix common/ includes.
5347 * gnu-nat.c: Fix common/ includes.
5348 * gdbthread.h: Fix common/ includes.
5349 * gdbarch-selftests.c: Fix common/ includes.
5350 * gdb_usleep.c: Fix common/ includes.
5351 * gdb_select.h: Fix common/ includes.
5352 * gdb_bfd.c: Fix common/ includes.
5353 * gcore.c: Fix common/ includes.
5354 * fork-child.c: Fix common/ includes.
5355 * findvar.c: Fix common/ includes.
5356 * fbsd-nat.c: Fix common/ includes.
5357 * event-top.c: Fix common/ includes.
5358 * event-loop.c: Fix common/ includes.
5359 * dwarf2read.c: Fix common/ includes.
5360 * dwarf2loc.c: Fix common/ includes.
5361 * dwarf2-frame.c: Fix common/ includes.
5362 * dwarf-index-cache.c: Fix common/ includes.
5363 * dtrace-probe.c: Fix common/ includes.
5364 * disasm-selftests.c: Fix common/ includes.
5365 * defs.h: Fix common/ includes.
5366 * csky-tdep.c: Fix common/ includes.
5367 * cp-valprint.c: Fix common/ includes.
5368 * cp-support.h: Fix common/ includes.
5369 * cp-support.c: Fix common/ includes.
5370 * corelow.c: Fix common/ includes.
5371 * completer.h: Fix common/ includes.
5372 * completer.c: Fix common/ includes.
5373 * compile/compile.c: Fix common/ includes.
5374 * compile/compile-loc2c.c: Fix common/ includes.
5375 * compile/compile-cplus-types.c: Fix common/ includes.
5376 * compile/compile-cplus-symbols.c: Fix common/ includes.
5377 * command.h: Fix common/ includes.
5378 * cli/cli-dump.c: Fix common/ includes.
5379 * cli/cli-cmds.c: Fix common/ includes.
5380 * charset.c: Fix common/ includes.
5381 * build-id.c: Fix common/ includes.
5382 * btrace.h: Fix common/ includes.
5383 * btrace.c: Fix common/ includes.
5384 * breakpoint.h: Fix common/ includes.
5385 * breakpoint.c: Fix common/ includes.
5387 (enum agent_op): Fix common/ includes.
5388 * ax-general.c (struct aop_map): Fix common/ includes.
5389 * ax-gdb.c: Fix common/ includes.
5390 * auxv.c: Fix common/ includes.
5391 * auto-load.c: Fix common/ includes.
5392 * arm-tdep.c: Fix common/ includes.
5393 * arch/riscv.c: Fix common/ includes.
5394 * arch/ppc-linux-common.c: Fix common/ includes.
5395 * arch/i386.c: Fix common/ includes.
5396 * arch/arm.c: Fix common/ includes.
5397 * arch/arm-linux.c: Fix common/ includes.
5398 * arch/arm-get-next-pcs.c: Fix common/ includes.
5399 * arch/amd64.c: Fix common/ includes.
5400 * arch/aarch64.c: Fix common/ includes.
5401 * arch/aarch64-insn.c: Fix common/ includes.
5402 * arch-utils.c: Fix common/ includes.
5403 * amd64-windows-tdep.c: Fix common/ includes.
5404 * amd64-tdep.c: Fix common/ includes.
5405 * amd64-sol2-tdep.c: Fix common/ includes.
5406 * amd64-obsd-tdep.c: Fix common/ includes.
5407 * amd64-nbsd-tdep.c: Fix common/ includes.
5408 * amd64-linux-tdep.c: Fix common/ includes.
5409 * amd64-linux-nat.c: Fix common/ includes.
5410 * amd64-fbsd-tdep.c: Fix common/ includes.
5411 * amd64-fbsd-nat.c: Fix common/ includes.
5412 * amd64-dicos-tdep.c: Fix common/ includes.
5413 * amd64-darwin-tdep.c: Fix common/ includes.
5414 * agent.c: Fix common/ includes.
5415 * ada-lang.h: Fix common/ includes.
5416 * ada-lang.c: Fix common/ includes.
5417 * aarch64-tdep.c: Fix common/ includes.
5419 2019-01-25 Tom Tromey <tom@tromey.com>
5421 * common/create-version.sh: Use common/version.h.
5423 2019-01-24 Pedro Alves <palves@redhat.com>
5425 * infrun.c (signal_stop, signal_print, signal_program)
5426 (signal_catch, signal_pass): Now arrays instead of pointers.
5427 (update_signals_program_target, do_target_resume)
5428 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
5429 * linux-nat.c (linux_nat_target::pass_signals)
5430 (linux_nat_target::create_inferior, linux_nat_target::attach):
5432 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
5433 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
5434 * procfs.c (procfs_target::pass_signals): Adjust.
5435 * record-full.c (record_full_target::resume): Adjust.
5436 * remote.c (remote_target::pass_signals)
5437 (remote_target::program_signals): Adjust.
5438 * target-debug.h (target_debug_print_signals): Now takes a
5439 gdb::array_view as parameter. Adjust.
5440 * target.h (target_ops) <pass_signals, program_signals>: Replace
5441 pointer and length parameters with gdb::array_view.
5442 (target_pass_signals, target_program_signals): Likewise.
5443 * target-delegates.c: Regenerate.
5445 2019-01-24 Pedro Alves <palves@redhat.com>
5447 * common/forward-scope-exit.h
5448 (forward_scope_exit::forward_scope_exit): Pass arguments to
5449 m_bind_function directly, instead of creating a std::bind and
5452 2019-01-24 Alan Hayward <alan.hayward@arm.com>
5454 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5456 (pass_in_v_vfp_candidate): Likewise.
5458 2019-01-23 Tom Tromey <tom@tromey.com>
5459 Pedro Alves <palves@redhat.com>
5461 * regcache.c (class regcache_invalidator): Remove.
5462 (regcache::raw_write): Use make_scope_exit.
5464 2019-01-23 Tom Tromey <tom@tromey.com>
5466 * ui-out.h (class ui_out_emit_type): Update comment.
5468 2019-01-23 Tom Tromey <tom@tromey.com>
5470 * infrun.c (fetch_inferior_event): Update comment.
5472 2019-01-23 Tom Tromey <tom@tromey.com>
5473 Pedro Alves <palves@redhat.com>
5475 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
5477 (fetch_inferior_event): Use SCOPE_EXIT.
5480 2019-01-23 Tom Tromey <tom@tromey.com>
5481 Pedro Alves <palves@redhat.com>
5483 * infrun.c (disable_thread_events): Delete.
5484 (stop_all_threads): Use SCOPE_EXIT.
5486 2019-01-23 Tom Tromey <tom@tromey.com>
5487 Pedro Alves <palves@redhat.com>
5489 * symfile.c: Include forward-scope-exit.h.
5490 (clear_symtab_users_cleanup): Replace forward declaration with
5491 a FORWARD_SCOPE_EXIT.
5492 (syms_from_objfile_1): Use the forward_scope_exit and
5493 gdb::optional instead of cleanup_function.
5494 (reread_symbols): Use the forward_scope_exit instead of
5496 (clear_symtab_users_cleanup): Remove function.
5498 2019-01-23 Tom Tromey <tom@tromey.com>
5499 Pedro Alves <palves@redhat.com>
5501 * linux-nat.c: Include scope-exit.h.
5502 (cleanup_target_stop): Remove.
5503 (linux_nat_target::static_tracepoint_markers_by_strid): Use
5506 2019-01-23 Tom Tromey <tom@tromey.com>
5507 Pedro Alves <palves@redhat.com>
5509 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
5510 (call_function_by_hand_dummy): Use SCOPE_EXIT.
5512 2019-01-23 Tom Tromey <tom@tromey.com>
5513 Andrew Burgess <andrew.burgess@embecosm.com>
5514 Pedro Alves <palves@redhat.com>
5516 * infrun.c (fetch_inferior_event): Use scope_exit.
5517 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
5518 * top.c (execute_command): Use scope_exit.
5519 * breakpoint.c (bpstat_do_actions): Use scope_exit.
5520 * utils.c (do_bpstat_clear_actions_cleanup)
5521 (make_bpstat_clear_actions_cleanup): Remove.
5523 2019-01-23 Tom Tromey <tom@tromey.com>
5524 Pedro Alves <palves@redhat.com>
5526 * infrun.c: Include "common/scope-exit.h"
5527 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
5528 (wait_for_inferior): Use SCOPE_EXIT.
5529 (fetch_inferior_event): Use scope_exit.
5531 2019-01-23 Tom Tromey <tom@tromey.com>
5532 Pedro Alves <palves@redhat.com>
5534 * breakpoint.c (create_breakpoint): Remove cleanup.
5536 2019-01-23 Tom Tromey <tom@tromey.com>
5537 Andrew Burgess <andrew.burgess@embecosm.com>
5538 Pedro Alves <palves@redhat.com>
5540 2019-01-23 Pedro Alves <palves@redhat.com>
5542 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
5544 2019-01-23 Pedro Alves <palves@redhat.com>
5545 Andrew Burgess <andrew.burgess@embecosm.com>
5547 * gdbthread.h: Include "common/forward-scope-exit.h".
5548 (scoped_finish_thread_state): Redefine custom class in terms of
5551 2019-01-23 Pedro Alves <palves@redhat.com>
5552 Andrew Burgess <andrew.burgess@embecosm.com>
5554 * common/forward-scope-exit.h: New file.
5556 2019-01-23 Pedro Alves <palves@redhat.com>
5557 Andrew Burgess <andrew.burgess@embecosm.com>
5558 Tom Tromey <tom@tromey.com>
5560 * common/scope-exit.h: New file.
5562 2019-01-23 Pedro Alves <palves@redhat.com>
5564 * common/preprocessor.h (ESC): Rename to ...
5565 (ESC_PARENS): ... this.
5566 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
5567 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
5569 2019-01-23 Tom Tromey <tom@tromey.com>
5571 * language.h (class scoped_switch_to_sym_language_if_auto):
5572 Initialize m_lang in both cases.
5574 2019-01-23 Alan Hayward <alan.hayward@arm.com>
5576 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
5579 2019-01-22 Tom Tromey <tom@tromey.com>
5581 * corelow.c: Do not include sys/file.h.
5583 2019-01-22 Tom Tromey <tom@tromey.com>
5585 * tui/tui-wingeneral.h: Include gdb_curses.h.
5587 2019-01-22 Tom Tromey <tom@tromey.com>
5589 * source-cache.h (class source_cache) <get_source_lines,
5590 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
5592 2019-01-22 Tom Tromey <tom@tromey.com>
5594 * remote-fileio.h (struct remote_target): Declare.
5596 2019-01-22 Tom Tromey <tom@tromey.com>
5598 * python/py-arch.c: Do not include py-ref.h.
5599 * python/py-bpevent.c: Do not include py-ref.h.
5600 * python/py-cmd.c: Do not include py-ref.h.
5601 * python/py-continueevent.c: Do not include py-ref.h.
5602 * python/py-event.h: Do not include py-ref.h.
5603 * python/py-evtregistry.c: Do not include py-ref.h.
5604 * python/py-finishbreakpoint.c: Do not include py-ref.h.
5605 * python/py-frame.c: Do not include py-ref.h.
5606 * python/py-framefilter.c: Do not include py-ref.h.
5607 * python/py-function.c: Do not include py-ref.h.
5608 * python/py-infevents.c: Do not include py-ref.h.
5609 * python/py-linetable.c: Do not include py-ref.h.
5610 * python/py-objfile.c: Do not include py-ref.h.
5611 * python/py-param.c: Do not include py-ref.h.
5612 * python/py-prettyprint.c: Do not include py-ref.h.
5613 * python/py-progspace.c: Do not include py-ref.h.
5614 * python/py-symbol.c: Do not include py-ref.h.
5615 * python/py-symtab.c: Do not include py-ref.h.
5616 * python/py-type.c: Do not include py-ref.h.
5617 * python/py-unwind.c: Do not include py-ref.h.
5618 * python/py-utils.c: Do not include py-ref.h.
5619 * python/py-value.c: Do not include py-ref.h.
5620 * python/py-varobj.c: Do not include py-ref.h.
5621 * python/py-xmethods.c: Do not include py-ref.h.
5622 * python/python.c: Do not include py-ref.h.
5623 * varobj.c: Do not include py-ref.h.
5625 2019-01-22 Tom Tromey <tom@tromey.com>
5627 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
5630 2019-01-22 Tom Tromey <tom@tromey.com>
5632 * compile/compile-cplus-types.c: Remove a comment by #include.
5634 2019-01-22 Tom Tromey <tom@tromey.com>
5636 * compile/gcc-c-plugin.h: Include compile-internal.h.
5638 2019-01-22 Tom Tromey <tom@tromey.com>
5640 * stabsread.c (EXTERN): Do not define.
5641 (symnum, next_symbol_text_func, processing_gcc_compilation)
5642 (within_function, global_sym_chain, global_stabs)
5643 (previous_stab_code, this_object_header_files)
5644 (n_this_object_header_files)
5645 (n_allocated_this_object_header_files): Define.
5646 * stabsread.h (EXTERN): Never define. Use "extern".
5648 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5650 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
5653 2019-01-21 Tom Tromey <tom@tromey.com>
5655 * ui-out.c: Fix includes.
5656 * tui/tui-source.c: Fix includes.
5657 * target.c: Fix includes.
5658 * remote.c: Fix includes.
5659 * regcache.c: Fix includes.
5660 * python/py-block.c: Fix includes.
5661 * printcmd.c: Fix includes.
5662 * or1k-tdep.c: Fix includes.
5663 * mi/mi-main.c: Fix includes.
5664 * m32r-tdep.c: Fix includes.
5665 * csky-tdep.c: Fix includes.
5666 * compile/compile-cplus-types.c: Fix includes.
5667 * cli/cli-interp.c: Fix includes.
5669 2019-01-21 Alan Hayward <alan.hayward@arm.com>
5671 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5674 2019-01-16 Tom Tromey <tom@tromey.com>
5676 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
5678 (struct objfile) <msymbols_range>: Move from top level.
5679 <msymbols>: New method.
5680 (class objfile_msymbols): Remove.
5681 * symtab.c (default_collect_symbol_completion_matches_break_on):
5683 * symmisc.c (dump_msymbols): Update.
5684 * stabsread.c (scan_file_globals): Update.
5685 * objc-lang.c (info_selectors_command, info_classes_command)
5686 (find_methods): Update.
5687 * minsyms.c (find_solib_trampoline_target): Update.
5688 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
5689 * coffread.c (coff_symfile_read): Update.
5690 * ada-lang.c (ada_lookup_simple_minsym)
5691 (ada_collect_symbol_completion_matches): Update.
5693 2019-01-16 Tom Tromey <tom@tromey.com>
5695 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
5696 type. Remove no-argument constructor.
5697 <iterator::operator++>: Simplify.
5699 <end>: Use minimal_symbol_count.
5701 2019-01-16 Tom Tromey <tom@tromey.com>
5703 * objfiles.h (struct objfile) <psymtabs>: New method.
5704 (class objfile_psymtabs): Remove.
5705 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
5707 <range>: New method.
5708 (require_partial_symbols): Change return type.
5709 * psymtab.c (require_partial_symbols)
5710 (psym_expand_symtabs_matching): Update.
5711 * mdebugread.c (parse_partial_symbols): Update.
5712 * dbxread.c (dbx_end_psymtab): Update.
5714 2019-01-15 Tom Tromey <tom@tromey.com>
5716 * symtab.c (lookup_objfile_from_block)
5717 (lookup_symbol_in_objfile_symtabs)
5718 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
5719 (find_line_symtab, info_sources_command)
5720 (default_collect_symbol_completion_matches_break_on)
5721 (make_source_files_completion_list): Update.
5722 * symmisc.c (print_objfile_statistics, dump_objfile)
5723 (maintenance_print_symbols, maintenance_info_symtabs)
5724 (maintenance_check_symtabs, maintenance_info_line_tables):
5726 * source.c (select_source_symtab)
5727 (forget_cached_source_info_for_objfile): Update.
5728 * objfiles.h (class objfile_compunits): Remove.
5729 (struct objfile) <compunits_range>: New typedef.
5730 (compunits): New method.
5731 * objfiles.c (objfile_relocate1): Update.
5732 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
5733 * maint.c (count_symtabs_and_blocks): Update.
5734 * linespec.c (iterate_over_all_matching_symtabs): Update.
5735 * cp-support.c (add_symbol_overload_list_qualified): Update.
5736 * coffread.c (coff_symtab_read): Update.
5737 * ada-lang.c (add_nonlocal_symbols)
5738 (ada_collect_symbol_completion_matches)
5739 (ada_add_global_exceptions): Update.
5741 2019-01-15 Tom Tromey <tom@tromey.com>
5743 * progspace.h (program_space) <objfiles_safe_range>: New
5745 <objfiles_safe>: New method.
5746 * objfiles.h (class all_objfiles_safe): Remove.
5747 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
5748 * jit.c (jit_inferior_exit_hook): Update.
5750 2019-01-17 Tom Tromey <tom@tromey.com>
5752 * progspace.h (program_space) <objfiles_range>: New typedef.
5753 <objfiles>: New method.
5754 <objfiles_head>: Rename from objfiles.
5755 (object_files): Update.
5756 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
5757 * guile/scm-pretty-print.c
5758 (ppscm_find_pretty_printer_from_objfiles): Update.
5759 * guile/scm-objfile.c (gdbscm_objfiles): Update.
5760 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
5762 * python/py-progspace.c (pspy_get_objfiles): Update.
5763 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
5765 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
5766 (objfpy_lookup_objfile_by_build_id): Update.
5767 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
5768 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
5770 * symtab.c (iterate_over_symtabs, matching_obj_sections)
5771 (expand_symtab_containing_pc, lookup_objfile_from_block)
5772 (lookup_static_symbol, basic_lookup_transparent_type)
5773 (find_pc_sect_compunit_symtab, find_symbol_at_address)
5774 (find_line_symtab, info_sources_command)
5775 (default_collect_symbol_completion_matches_break_on)
5776 (make_source_files_completion_list, find_main_name): Update.
5777 * symmisc.c (print_symbol_bcache_statistics)
5778 (print_objfile_statistics, maintenance_print_symbols)
5779 (maintenance_print_msymbols, maintenance_print_objfiles)
5780 (maintenance_info_symtabs, maintenance_check_symtabs)
5781 (maintenance_expand_symtabs, maintenance_info_line_tables):
5783 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
5784 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
5785 (map_overlay_command, unmap_overlay_command)
5786 (simple_overlay_update, expand_symtabs_matching)
5787 (map_symbol_filenames): Update.
5788 * symfile-debug.c (set_debug_symfile): Update.
5789 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
5791 * source.c (select_source_symtab, forget_cached_source_info):
5793 * solib.c (solib_read_symbols): Update.
5794 * solib-spu.c (append_ocl_sos): Update.
5795 * psymtab.c (maintenance_print_psymbols)
5796 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
5797 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
5798 * printcmd.c (info_symbol_command): Update.
5799 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
5801 * objfiles.h (class all_objfiles): Remove.
5802 * objfiles.c (have_partial_symbols, have_full_symbols)
5803 (have_minimal_symbols, qsort_cmp, update_section_map)
5804 (shared_objfile_contains_address_p)
5805 (default_iterate_over_objfiles_in_search_order): Update.
5806 * objc-lang.c (info_selectors_command, info_classes_command)
5807 (find_methods): Update.
5808 * minsyms.c (find_solib_trampoline_target): Update.
5809 * maint.c (maintenance_info_sections)
5810 (maintenance_translate_address, count_symtabs_and_blocks):
5812 * main.c (captured_main_1): Update.
5813 * linux-thread-db.c (try_thread_db_load_from_pdir)
5814 (has_libpthread): Update.
5815 * linespec.c (iterate_over_all_matching_symtabs)
5816 (search_minsyms_for_name): Update.
5817 * jit.c (jit_find_objf_with_entry_addr): Update.
5818 * hppa-tdep.c (find_unwind_entry)
5819 (hppa_lookup_stub_minimal_symbol): Update.
5820 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
5822 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
5823 (elf_gnu_ifunc_resolve_by_got): Update.
5824 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
5825 * dwarf-index-write.c (save_gdb_index_command): Update.
5826 * cp-support.c (add_symbol_overload_list_qualified): Update.
5827 * breakpoint.c (create_overlay_event_breakpoint)
5828 (create_longjmp_master_breakpoint)
5829 (create_std_terminate_master_breakpoint)
5830 (create_exception_master_breakpoint): Update.
5831 * blockframe.c (find_pc_partial_function): Update.
5832 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
5833 (ada_collect_symbol_completion_matches)
5834 (ada_add_global_exceptions): Update.
5836 2019-01-17 Tom Tromey <tom@tromey.com>
5838 * solib-target.c (lm_info_target_p): Remove typedef. Don't
5840 (solib_target_parse_libraries): Change return type.
5841 (library_list_start_segment, library_list_start_section)
5842 (library_list_end_library, library_list_start_library); Update.
5843 (solib_target_free_library_list): Remove.
5844 (solib_target_parse_libraries): Remove cleanup. Change return
5846 (solib_target_current_sos): Update.
5848 2019-01-17 Tom Tromey <tromey@bapiya>
5850 * valprint.c: Replace "the the" with "the".
5851 * symtab.c: Replace "the the" with "the".
5852 * solib.c: Replace "the the" with "the".
5853 * solib-dsbt.c: Replace "the the" with "the".
5854 * linespec.c: Replace "the the" with "the".
5855 * dwarf2loc.h: Replace "the the" with "the".
5856 * amd64-windows-tdep.c: Replace "the the" with "the".
5857 * aarch64-tdep.c: Replace "the the" with "the".
5859 2019-01-16 Keith Seitz <keiths@redhat.com>
5862 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
5863 <builder>: Rename to ..
5864 <m_builder>: ... this and make private.
5865 (dwarf2_cu::get_builder): New method. Change all users of
5866 `builder' to use this method.
5867 (dwarf2_start_symtab): Move to ...
5868 (dwarf2_cu::start_symtab): ... here. Update all callers
5869 (setup_type_unit_groups): Move to ...
5870 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
5872 (dwarf2_cu::reset_builder): New method.
5873 (process_full_compunit, process_full_type_unit): Use
5874 dwarf2_cu::reset_builder.
5875 (follow_die_offset): Record the ancestor CU if it is different
5876 from the followed DIE's CU.
5877 (follow_die_sig_1): Likewise.
5879 2019-01-15 Tom Tromey <tom@tromey.com>
5881 * remote.c (class remote_state) <buf>: Now a char_vector.
5883 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
5885 (remote_target::getpkt_or_notif_sane_1)
5886 (remote_target::getpkt_sane)
5887 (remote_target::getpkt_or_notif_sane): Likewise.
5888 (class remote_target) <putpkt>: New overload.
5889 (remote_target::read_frame): Change type of "buf_p". Remove
5891 (packet_ok): New overload.
5892 (packet_check_result): New overload.
5895 2019-01-14 Tom Tromey <tom@tromey.com>
5897 * remote-notif.c (handle_notification, remote_notif_ack)
5898 (remote_notif_parse): Make "buf" const.
5899 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
5901 (remote_notif_parse, remote_notif_ack, handle_notification):
5903 * remote.c (remote_notif_stop_parse): Make "buf" const.
5904 (remote_target::remote_parse_stop_reply): Make "buf" const.
5905 (remote_notif_stop_ack): Make "buf" const.
5907 2019-01-14 Tom Tromey <tom@tromey.com>
5909 * remote.c (remote_console_output): Make parameter const.
5911 2019-01-14 Tom Tromey <tom@tromey.com>
5913 * target-debug.h (target_debug_print_signals): Constify.
5914 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
5915 * procfs.c (procfs_target::pass_signals): Update.
5916 * linux-nat.c (linux_nat_target::pass_signals): Update.
5917 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
5918 * target-delegates.c: Rebuild.
5919 * remote.c (remote_target::program_signals): Update.
5920 (remote_target::pass_signals): Update.
5921 * target.c (target_pass_signals): Constify argument.
5922 (target_program_signals): Likewise.
5923 * target.h (struct target_ops) <pass_signals, program_signals>:
5925 (target_pass_signals, target_program_signals): Constify argument.
5927 2019-01-14 Tom Tromey <tom@tromey.com>
5930 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
5932 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5934 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
5936 * rs6000-tdep.c: Include reggroups.h.
5937 (IS_V_ALIAS_PSEUDOREG): Define.
5938 (rs6000_register_name): Return names for the "vX" aliases.
5939 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
5940 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
5941 aliases. Call default_register_reggroup_p for all other
5943 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
5945 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
5946 Handle "vX" aliases.
5947 (v_alias_pseudo_register_collect): New function.
5948 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
5949 (rs6000_gdbarch_init): Initialize "vX" aliases as
5950 pseudo-registers. Restore registration of
5951 rs6000_pseudo_register_reggroup_p with
5952 set_tdesc_pseudo_register_reggroup_p.
5954 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
5956 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
5957 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
5958 set_gdbarch_num_pseudo_regs.
5960 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5962 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
5963 Remove arg prefixname, add do_set and do_show.
5964 Add member functions set_list and show_list.
5965 * cli/cli-style.c (class cli_style_option): Update accordingly.
5966 (style_set_list): Move to file scope.
5967 (style_show_list): Likewise.
5968 (set_style): Call help_list.
5969 (show_style): Call cmd_show_list.
5970 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
5971 Update to use the new macro.
5973 2019-10-12 Joel Brobecker <brobecker@adacore.com>
5975 * ada-lang.c (_initialize_ada_language): Expand the help text
5976 for the "catch exception" command.
5978 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5980 * symtab.c (matching_obj_sections): Initialize obj,
5981 declare it closer to its usage.
5983 2019-01-10 Tom Tromey <tom@tromey.com>
5985 * thread-iter.h (inf_threads_iterator): Use next_iterator.
5986 (basic_inf_threads_range): Remove.
5987 (inf_threads_range, inf_non_exited_threads_range)
5988 (safe_inf_threads_range): Use next_adapter.
5990 2019-01-10 Keith Seitz <keiths@redhat.com>
5994 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
5995 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
5997 2019-01-10 Keith Seitz <keiths@redhat.com>
6001 * dictionary.c (pending_to_vector): Remove.
6002 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6003 Remove _1 suffix, replacing functions of the same name. Update
6005 (dict_create_hashed, dict_create_hashed_expandable)
6006 (dict_create_linear, dict_create_linear_expandable, dict_free)
6007 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
6008 Make functions static.
6010 2019-01-10 Keith Seitz <keiths@redhat.com>
6014 * dictionary.h (struct dictionary): Replace declaration with
6016 (dict_create_hashed, dict_create_hashed_expandable)
6017 (dict_create_linear, dict_create_linear_expandable)
6018 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
6019 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
6020 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
6021 taking multidictionary argument.
6022 [ALL_DICT_SYMBOLS]: Update for multidictionary.
6023 * block.h (struct block) <dict>: Change to multidictionary
6024 and rename `multidict'.
6025 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
6026 symmisc.c: Update all dictionary references to multidictionary.
6028 2019-01-10 Keith Seitz <keiths@redhat.com>
6032 * dictionary.c: Include unordered_map.
6033 (pending_to_vector): New function.
6034 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6035 Rewrite the non-"_1" functions to take vector instead
6037 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
6038 "new" _1 versions of the same name.
6039 (multidictionary): Define.
6040 (std::hash<enum language): New definition.
6041 (collate_pending_symbols_by_language, mdict_create_hashed)
6042 (mdict_create_hashed_expandable, mdict_create_linear)
6043 (mdict_create_linear_expandable, mdict_free)
6044 (find_language_dictionary, create_new_language_dictionary)
6045 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
6046 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
6047 (mdict_size, mdict_empty): New functions.
6048 * dictionary.h (mdict_iterator): Define.
6050 2019-01-10 Pedro Alves <palves@redhat.com>
6052 * breakpoint.c (read_uploaded_action)
6053 (create_tracepoint_from_upload): Adjust to use
6054 gdb::unique_xmalloc_ptr.
6055 * ctf.c (ctf_write_uploaded_tp):
6056 (SET_ARRAY_FIELD): Use emplace_back.
6057 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
6058 * tracefile-tfile.c (tfile_write_uploaded_tp):
6059 * tracepoint.c (parse_tracepoint_definition): Adjust to use
6060 gdb::unique_xmalloc_ptr.
6061 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
6062 at_string, cond_string, cmd_strings>: Replace char pointers
6063 with gdb::unique_xmalloc_ptr.
6065 2019-01-10 Pedro Alves <palves@redhat.com>
6067 * solib-target.c (library_list_start_library): Don't xstrdup name.
6069 2019-01-10 Pedro Alves <palves@redhat.com>
6071 * mdebugread.c (parse_partial_symbols): Use
6072 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
6074 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6076 * linux-fork.c (scoped_switch_fork_info)
6077 <~scoped_switch_fork_info>: Fix incorrect variable name.
6079 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6081 * linux-fork.c (scoped_switch_fork_info)
6082 <scoped_switch_fork_info>: Make explicit.
6083 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
6085 2019-01-10 Tom Tromey <tom@tromey.com>
6087 * objfiles.h (objfile::reset_psymtabs): Update.
6088 * objfiles.c (objfile::objfile): Update.
6089 * psymtab.h (psymtab_storage::obstack): Update.
6090 (psymtab_storage::m_obstack): Use gdb::optional.
6091 (class psymtab_storage): Update comment. Remove objfile
6093 * psymtab.c (psymtab_storage::psymtab_storage): Update.
6095 2019-01-10 Tom Tromey <tom@tromey.com>
6097 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
6098 <free_psymtabs>: Now private.
6099 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
6100 (allocate_psymtab): Use new method.
6102 2019-01-10 Tom Tromey <tom@tromey.com>
6104 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
6105 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
6106 * mdebugread.c (parse_partial_symbols): Use
6107 allocate_dependencies.
6108 * dwarf2read.c (dwarf2_create_include_psymtab): Use
6109 allocate_dependencies.
6110 (process_psymtab_comp_unit_reader)
6111 (build_type_psymtab_dependencies): Likewise.
6112 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
6114 2019-01-10 Tom Tromey <tom@tromey.com>
6116 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
6117 PSYMBOL_SET_LANGUAGE.
6118 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
6120 2019-01-10 Tom Tromey <tom@tromey.com>
6122 * psymtab.h (psymtab_storage::obstack): New method.
6123 <m_obstack>: Rename from obstack; now private.
6124 * psymtab.c (psymtab_storage): Update.
6125 * dwarf2read.c (create_addrmap_from_index)
6126 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
6129 2019-01-10 Tom Tromey <tom@tromey.com>
6131 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
6132 * objfiles.h (objfile::reset_psymtabs): New method.
6134 2019-01-10 Tom Tromey <tom@tromey.com>
6136 * symmisc.c (print_symbol_bcache_statistics): Update.
6137 (print_objfile_statistics): Update.
6138 * symfile.c (reread_symbols): Update.
6139 * psymtab.h (class psymtab_storage): New.
6140 * psymtab.c (psymtab_storage): New constructor.
6141 (~psymtab_storage): New destructor.
6142 (require_partial_symbols): Update.
6143 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
6144 (find_pc_sect_psymtab, find_pc_sect_psymbol)
6145 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
6146 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
6147 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
6148 (start_psymtab_common, end_psymtab_common)
6149 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
6150 (allocate_psymtab): Update.
6151 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
6153 (dump_psymtab_addrmap, maintenance_print_psymbols)
6154 (maintenance_check_psymtabs): Update.
6155 (class objfile_psymtabs): Move to objfiles.h.
6156 * psympriv.h (discard_psymtab): Now inline.
6157 (psymtab_discarder::psymtab_discarder): Update.
6158 (psymtab_discarder::~psymtab_discarder): Update.
6159 (ALL_OBJFILE_PSYMTABS): Rewrite.
6160 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
6161 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
6163 <partial_symtabs>: New field.
6164 (class objfile_psymtabs): Move from psymtab.h. Update.
6165 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
6167 (objfile::~objfile): Don't destroy psymbol_cache.
6168 * mdebugread.c (parse_partial_symbols): Update.
6169 * dwarf2read.c (create_addrmap_from_index)
6170 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6171 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
6172 (add_partial_subprogram, dwarf2_ranges_read): Update.
6173 * dwarf-index-write.c (write_address_map)
6174 (write_one_signatured_type, recursively_write_psymbols)
6175 (class debug_names, class debug_names, write_psymtabs_to_index):
6178 2019-01-10 Tom Tromey <tom@tromey.com>
6180 * symtab.h (SYMBOL_SET_NAMES): Update.
6181 (symbol_set_names): Update.
6182 (MSYMBOL_SET_NAMES): Update.
6183 * symtab.c (symbol_set_names): Change argument to be an
6184 objfile_per_bfd_storage.
6185 * psymtab.c (add_psymbol_to_bcache): Update.
6186 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
6188 2019-01-10 Tom Tromey <tom@tromey.com>
6190 * symtab.c (create_demangled_names_hash): Change argument to be an
6191 objfile_per_bfd_storage.
6192 (symbol_set_names): Update.
6194 2019-01-10 Tom Tromey <tom@tromey.com>
6196 * xcoffread.c (xcoff_initial_scan): Unconditionally call
6198 * psymtab.c (init_psymbol_list): Do nothing if already called.
6199 * psympriv.h (init_psymbol_list): Add comment.
6200 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
6202 * dbxread.c (dbx_symfile_read): Unconditionally call
6205 2019-01-10 Tom Tromey <tom@tromey.com>
6207 * xcoffread.c (scan_xcoff_symtab): Update.
6208 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
6210 * mdebugread.c (parse_partial_symbols)
6211 (handle_psymbol_enumerators): Update.
6212 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
6213 * dbxread.c (read_dbx_symtab): Update.
6214 * psympriv.h (psymbol_placement): New enum.
6215 (add_psymbol_to_list): Update.
6217 2019-01-10 Tom Tromey <tom@tromey.com>
6219 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
6220 static_psymbols parameters.
6221 (scan_xcoff_symtab): Update.
6222 * psymtab.c (start_psymtab_common): Remove global_psymbols and
6223 static_psymbols parameters.
6224 * psympriv.h (start_psymtab_common): Update.
6225 * mdebugread.c (parse_partial_symbols): Update.
6226 * dwarf2read.c (create_partial_symtab): Update.
6227 * dbxread.c (read_dbx_symtab): Update.
6228 (start_psymtab): Remove global_psymbols and static_psymbols
6231 2019-01-10 Tom Tromey <tom@tromey.com>
6233 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
6234 * psymtab.c (allocate_psymtab): Add comment.
6235 * psympriv.h (allocate_psymtab): Add comment.
6236 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
6238 * dbxread.c (dbx_end_psymtab): Remove some initializations.
6240 2019-01-10 Tom Tromey <tom@tromey.com>
6242 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6244 * mipsread.c: Include mdebugread.h.
6245 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6247 * elfread.c: Include mdebugread.h.
6249 2019-01-09 Tom Tromey <tom@tromey.com>
6251 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
6252 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
6253 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
6254 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
6255 (psym_lookup_symbol, psym_find_last_source_symtab)
6256 (psym_forget_cached_source_info, psym_print_stats)
6257 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
6258 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
6259 (psym_map_matching_symbols, psym_expand_symtabs_matching)
6260 (psym_find_compunit_symtab_by_address)
6261 (maintenance_print_psymbols, maintenance_info_psymtabs)
6262 (maintenance_check_psymtabs): Use ranged for.
6263 * psymtab.h (class objfile_psymtabs): New.
6264 (require_partial_symbols): Return objfile_psymtabs.
6265 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
6267 2019-01-09 Tom Tromey <tom@tromey.com>
6269 * symfile.c (overlay_invalidate_all, find_pc_overlay)
6270 (find_pc_mapped_section, list_overlays_command)
6271 (map_overlay_command, unmap_overlay_command)
6272 (simple_overlay_update): Use all_objfiles.
6273 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
6274 * printcmd.c (info_symbol_command): Use all_objfiles.
6275 * objfiles.h (ALL_OBJSECTIONS): Remove.
6276 * maint.c (maintenance_translate_address): Use all_objfiles.
6277 * gcore.c (gcore_create_callback): Use all_objfiles.
6278 (objfile_find_memory_regions): Likewise.
6280 2019-01-09 Tom Tromey <tom@tromey.com>
6282 * symtab.c (find_line_symtab, info_sources_command)
6283 (make_source_files_completion_list): Use objfile_compunits.
6284 * source.c (select_source_symtab): Use objfile_compunits.
6285 * objfiles.h (struct objfile): Update comment.
6286 (ALL_OBJFILES): Remove.
6287 (ALL_FILETABS): Remove.
6288 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
6291 2019-01-09 Tom Tromey <tom@tromey.com>
6293 * symmisc.c (print_objfile_statistics, dump_objfile)
6294 (maintenance_print_symbols): Use compunit_filetabs.
6295 * source.c (forget_cached_source_info_for_objfile): Use
6297 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
6298 (ALL_FILETABS): Use compunit_filetabs.
6299 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
6300 * coffread.c (coff_symtab_read): Use compunit_filetabs.
6302 2019-01-09 Tom Tromey <tom@tromey.com>
6304 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
6305 (compunit_filetabs): New.
6306 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
6308 (info_sources_command, make_source_files_completion_list): Remove
6310 * symmisc.c (print_objfile_statistics, dump_objfile)
6311 (maintenance_print_symbols): Remove declaration.
6312 (maintenance_info_symtabs): Use compunit_filetabs.
6313 (maintenance_info_line_tables): Likewise.
6314 * source.c (select_source_symtab): Change local variable name.
6315 (forget_cached_source_info_for_objfile): Remove declaration.
6316 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
6317 * objfiles.c (objfile_relocate1): Remove declaration.
6318 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6320 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
6321 * coffread.c (coff_symtab_read): Remove declaration.
6322 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6325 2019-01-09 Tom Tromey <tom@tromey.com>
6327 * symtab.c (lookup_objfile_from_block)
6328 (find_pc_sect_compunit_symtab, search_symbols)
6329 (default_collect_symbol_completion_matches_break_on): Use
6331 * objfiles.h (ALL_COMPUNITS): Remove.
6332 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
6333 * cp-support.c (add_symbol_overload_list_qualified): Use
6335 * ada-lang.c (ada_collect_symbol_completion_matches)
6336 (ada_add_global_exceptions): Use objfile_compunits.
6338 2019-01-09 Tom Tromey <tom@tromey.com>
6340 * source.c (select_source_symtab)
6341 (forget_cached_source_info_for_objfile): Remove declaration.
6342 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6344 * maint.c (count_symtabs_and_blocks): Remove declaration.
6345 * cp-support.c (add_symbol_overload_list_qualified): Remove
6347 * coffread.c (coff_symtab_read): Remove declaration.
6348 * symtab.c (lookup_symbol_in_objfile_symtabs)
6349 (basic_lookup_transparent_type_1): Use objfile_compunits.
6350 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
6351 (info_sources_command, search_symbols)
6352 (default_collect_symbol_completion_matches_break_on)
6353 (make_source_files_completion_list): Remove declaration.
6354 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
6355 (ada_collect_symbol_completion_matches)
6356 (ada_add_global_exceptions): Remove declaration.
6357 * linespec.c (iterate_over_all_matching_symtabs): Use
6359 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
6360 (class objfile_compunits): New.
6361 (ALL_COMPUNITS): Use objfile_compunits.
6362 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
6363 (maintenance_check_symtabs, maintenance_info_line_tables): Use
6365 * objfiles.c (objfile_relocate1): Use objfile_compunits.
6367 2019-01-09 Tom Tromey <tom@tromey.com>
6369 * symtab.c (search_symbols)
6370 (default_collect_symbol_completion_matches_break_on): Use
6372 * ada-lang.c (ada_lookup_simple_minsym)
6373 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
6374 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
6375 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
6377 * coffread.c (coff_symfile_read): Use objfile_msymbols.
6378 * symmisc.c (dump_msymbols): Use objfile_msymbols.
6379 * objc-lang.c (find_methods): Use objfile_msymbols.
6380 (info_selectors_command, info_classes_command): Likewise.
6381 * stabsread.c (scan_file_globals): Use objfile_msymbols.
6382 * objfiles.h (class objfile_msymbols): New.
6383 (ALL_OBJFILE_MSYMBOLS): Remove.
6384 (ALL_MSYMBOLS): Remove.
6386 2019-01-09 Tom Tromey <tom@tromey.com>
6388 * common/next-iterator.h (next_adapter): Add Iterator template
6390 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
6391 (class all_objfiles_safe): New.
6392 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
6393 * objfiles.c (put_objfile_before): Update comment.
6394 (add_separate_debug_objfile): Likewise.
6395 (free_all_objfiles): Use all_objfiles_safe.
6396 (objfile_purge_solibs): Likewise.
6398 2019-01-09 Tom Tromey <tom@tromey.com>
6400 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6401 (expand_symtab_containing_pc, lookup_static_symbol)
6402 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
6403 (find_symbol_at_address, find_line_symtab, find_main_name): Use
6405 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
6406 * breakpoint.c (create_overlay_event_breakpoint)
6407 (create_longjmp_master_breakpoint)
6408 (create_std_terminate_master_breakpoint)
6409 (create_exception_master_breakpoint): Use all_objfiles.
6410 * linux-thread-db.c (try_thread_db_load_from_pdir)
6411 (has_libpthread): Use all_objfiles.
6412 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
6413 * linespec.c (iterate_over_all_matching_symtabs)
6414 (search_minsyms_for_name): Use all_objfiles.
6415 * maint.c (maintenance_info_sections): Use all_objfiles.
6416 * main.c (captured_main_1): Use all_objfiles.
6417 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
6418 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
6419 * guile/scm-pretty-print.c
6420 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
6421 * solib-spu.c (append_ocl_sos): Use all_objfiles.
6422 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
6423 (maintenance_print_msymbols): Use all_objfiles.
6424 * source.c (select_source_symtab): Use all_objfiles.
6425 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
6426 * symfile.c (remove_symbol_file_command)
6427 (expand_symtabs_matching, map_symbol_filenames): Use
6429 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
6431 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
6432 * objc-lang.c (find_methods): Use all_objfiles.
6433 * objfiles.c (have_partial_symbols, have_full_symbols)
6434 (have_minimal_symbols, qsort_cmp)
6435 (default_iterate_over_objfiles_in_search_order): Use
6437 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
6438 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
6439 (maintenance_check_psymtabs): Use all_objfiles.
6440 (ALL_PSYMTABS): Remove.
6441 * compile/compile-object-run.c (do_module_cleanup): Use
6443 * blockframe.c (find_pc_partial_function): Use all_objfiles.
6444 * cp-support.c (add_symbol_overload_list_qualified): Use
6446 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6448 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
6449 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
6451 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6452 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
6453 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6455 * solib.c (solib_read_symbols): Use all_objfiles
6457 2019-01-09 Tom Tromey <tom@tromey.com>
6459 * probe.c (parse_probes_in_pspace): Use all_objfiles.
6460 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
6462 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
6463 * symmisc.c (print_symbol_bcache_statistics)
6464 (print_objfile_statistics, maintenance_print_objfiles)
6465 (maintenance_info_symtabs, maintenance_check_symtabs)
6466 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
6468 * source.c (forget_cached_source_info): Use all_objfiles.
6469 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
6470 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6471 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
6472 * objfiles.c (update_section_map): Use all_objfiles.
6473 (shared_objfile_contains_address_p): Likewise.
6474 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
6475 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
6477 2019-01-09 Tom Tromey <tom@tromey.com>
6479 * common/next-iterator.h: New file.
6480 * objfiles.h (class all_objfiles): New.
6481 (struct objfile_iterator): New.
6483 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6485 * NEWS: Move the description of the changed "frame", "select-frame",
6486 and "info frame" commands to the Changed commands section.
6488 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
6490 * gdbtypes.c (check_stub_method_group): Remove handling of old
6492 * linespec.c (find_methods): Likewise.
6493 * stabsread.c (read_member_functions): Likewise.
6494 * valops.c (search_struct_method): Likewise.
6495 (value_struct_elt_for_reference): Likewise.
6496 * NEWS: Mention this change.
6498 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6500 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
6502 * source.c (print_source_lines_base): Update line number check.
6503 (print_source_lines): New function.
6504 (source_lines_range::source_lines_range): New function.
6505 * source.h (class source_lines_range): New class.
6506 (print_source_lines): New declaration.
6508 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6510 * linespec.c (linespec_state_destructor): Free self->canonical_names.
6512 2019-01-08 Tom Tromey <tom@tromey.com>
6513 Simon Marchi <simon.marchi@ericsson.com>
6516 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
6517 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
6518 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6519 * f-exp.y (DOLLAR_VARIABLE): Likewise.
6520 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
6521 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6523 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6525 * source.c (select_source_symtab): Move header comment to
6526 declaration in source.h.
6527 (forget_cached_source_info_for_objfile): Likewise.
6528 (forget_cached_source_info): Likewise.
6529 (identify_source_line): Likewise.
6530 * source.h (identify_source_line): Move declaration from symtab.h
6531 and add comment from source.c
6532 (print_source_lines): Likewise.
6533 (forget_cached_source_info_for_objfile): Likewise.
6534 (forget_cached_source_info): Likewise.
6535 (select_source_symtab): Likewise.
6536 (enum print_source_lines_flag): Move definition from symtab.h.
6537 * symtab.h (identify_source_line): Move declaration to source.h.
6538 (print_source_lines): Likewise.
6539 (forget_cached_source_info_for_objfile): Likewise.
6540 (forget_cached_source_info): Likewise.
6541 (select_source_symtab): Likewise.
6542 (enum print_source_lines_flag): Move definition to source.h.
6543 * tui/tui-hooks.c: Add 'source.h' include.
6545 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6547 * source.c (print_source_lines_base): Handle requests to print
6548 reverse line number sequences, and guard against empty lines
6551 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6553 * source.c (print_source_lines_base): Fix skip of '\r' if next
6556 2019-01-06 Tom Tromey <tom@tromey.com>
6558 * c-exp.y (struct c_parse_state) <macro_original_text,
6559 expansion_obstack>: New member.
6560 (macro_original_text, expansion_obstack): Remove globals.
6561 (scan_macro_expansion, scanning_macro_expansion)
6562 (finished_macro_expansion): Update.
6563 (scan_macro_cleanup): Remove.
6564 (yylex, c_parse): Update.
6566 2019-01-06 Tom Tromey <tom@tromey.com>
6568 * c-exp.y (struct c_parse_state) <strings>: New member.
6569 (operator_stoken): Update.
6571 2019-01-06 Tom Tromey <tom@tromey.com>
6573 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
6574 (union type_stack_elt) <typelist_val>: Now a pointer to
6576 (type_stack_cleanup): Don't declare.
6577 (push_typelist): Update.
6578 * parse.c (pop_typelist): Return a std::vector.
6579 (push_typelist): Take a std::vector.
6580 (follow_types): Update. Do not free args.
6581 (type_stack_cleanup): Remove.
6582 * c-exp.y (struct c_parse_state): New.
6583 (cpstate): New global.
6584 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
6585 (nonempty_typelist): Update.
6586 (func_mod): Create a new vector.
6587 (c_parse): Create a c_parse_state.
6588 (check_parameter_typelist): Do not delete params.
6589 (function_method): Update. Do not delete type_list.
6591 2019-01-06 Tom Tromey <tom@tromey.com>
6594 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
6596 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
6597 (print_return_value): Likewise.
6599 2019-01-05 Tom Tromey <tom@tromey.com>
6601 * contrib/cleanup_check.py: Remove.
6602 * contrib/gcc-with-excheck: Remove.
6603 * contrib/exsummary.py: Remove.
6604 * contrib/excheck.py: Remove.
6606 2019-01-05 Joel Brobecker <brobecker@adacore.com>
6608 * thread.c (delete_thread_1): Add gdb_assert that THR is not
6609 NULL. Initialize tpprev to NULL instead of assigning it
6610 to NULL on the next statement.
6611 * windows-nat.c (windows_delete_thread): Remove check for
6612 main_thread_id before printing thread exit notifications.
6613 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
6614 Remove thread ID check against main_thread_id.
6615 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
6616 windows_delete_thread.
6617 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
6619 2019-01-04 Tom Tromey <tom@tromey.com>
6621 * compile/compile.c (_initialize_compile): Use upper case for
6622 metasyntactic variables.
6623 * symmisc.c (_initialize_symmisc): Use upper case for
6624 metasyntactic variables.
6625 * psymtab.c (_initialize_psymtab): Use upper case for
6626 metasyntactic variables.
6627 * demangle.c (demangle_command): Use upper case for metasyntactic
6629 (_initialize_demangler): Likewise.
6630 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
6633 2019-01-03 Tom Tromey <tom@tromey.com>
6635 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
6637 2019-01-03 Tom Tromey <tom@tromey.com>
6639 * python/py-symtab.c (salpy_str): Update.
6640 (struct salpy_sal_object) <symtab>: Now a PyObject.
6641 (salpy_dealloc): Update.
6642 (del_objfile_sal): Use gdbpy_ref.
6644 2019-01-03 Tom Tromey <tom@tromey.com>
6646 * python/py-type.c (convert_field): Use new_reference. Return
6648 (make_fielditem): Return gdbpy_ref.
6649 (typy_fields): Update.
6650 (typy_getitem): Update.
6651 (field_name): Return gdbpy_ref. Use new_reference.
6652 (typy_iterator_iternext): Update.
6654 2019-01-03 Tom Tromey <tom@tromey.com>
6656 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
6658 2019-01-03 Tom Tromey <tom@tromey.com>
6660 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
6661 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
6662 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
6663 (pspy_set_frame_filters, pspy_set_frame_unwinders)
6664 (pspy_set_type_printers): Likewise.
6665 * python/py-function.c (fnpy_init): Use gdbpy_ref.
6666 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
6667 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
6668 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
6669 (objfpy_set_type_printers): Likewise.
6671 2019-01-03 Tom Tromey <tom@tromey.com>
6673 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
6674 (gdbpy_print_stack): Use gdbpy_err_fetch.
6675 * python/python-internal.h (class gdbpy_err_fetch): New class.
6676 (class gdbpy_enter) <m_error_type, m_error_value,
6677 m_error_traceback>: Remove.
6678 <m_error>: New member.
6679 (gdbpy_exception_to_string): Don't declare.
6680 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
6681 * python/py-value.c (convert_value_from_python): Use
6683 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
6684 gdbpy_exception_to_string.
6685 (gdbpy_handle_exception): Use gdbpy_err_fetch.
6686 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
6689 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6691 * linux-nat.c (delete_lwp_cleanup): Delete.
6692 (struct lwp_deleter): New struct.
6693 (lwp_info_up): New typedef.
6694 (linux_nat_target::follow_fork): Delete cleanup, and make use of
6697 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6699 * linux-fork.c (class scoped_switch_fork_info): New class.
6700 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
6702 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6704 * valops.c (find_overload_match): Remove use of null_cleanup, and
6705 calls to do_cleanups.
6707 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6709 * compile/compile-cplus-types.c
6710 (compile_cplus_instance::decl_name): Handle changes to
6712 * cp-support.c (cp_func_name): Update header comment, update
6714 * cp-support.h (cp_func_name): Update return type in declaration.
6715 * valops.c (find_overload_match): Move temp_func local to top
6716 level of function and change its type. Use temp_func to hold and
6717 delete temporary string obtained from cp_func_name.
6719 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6721 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
6722 gdb::char_vector, remove cleanup, and update uses of `msg`.
6724 2019-01-03 Jim Wilson <jimw@sifive.com>
6726 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
6728 2019-01-02 Tom Tromey <tom@tromey.com>
6730 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
6731 (tdesc_parse_xml): Remove cleanups.
6732 * target-descriptions.h (make_cleanup_free_target_description):
6734 (target_desc_deleter): New struct.
6735 (target_desc_up): New typedef.
6736 * target-descriptions.c (target_desc_deleter::operator()): Rename
6737 from free_target_description.
6738 (make_cleanup_free_target_description): Remove.
6740 2019-01-02 Tom Tromey <tom@tromey.com>
6742 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
6743 constructor, destructor.
6744 (linespec_parser): Remove typedef.
6745 (~linespec_parser): Rename from linespec_parser_delete.
6746 (linespec_lex_to_end, linespec_complete_label)
6747 (linespec_complete): Update.
6748 (decode_line_full): Remove cleanups.
6749 (decode_line_1): Update.
6751 2019-01-02 Tom Tromey <tom@tromey.com>
6753 * python/python-internal.h (inferior_to_inferior_object): Change
6755 * python/py-exitedevent.c (create_exited_event_object): Update.
6756 * python/py-inferior.c (inferior_to_inferior_object): Return
6758 (python_new_inferior, python_inferior_deleted)
6759 (thread_to_thread_object, delete_thread_object)
6760 (build_inferior_list, gdbpy_selected_inferior): Update.
6761 * python/py-infthread.c (create_thread_object): Update. Also fail
6762 if inferior_to_inferior_object fails.
6764 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
6766 * inferior.h (class inferior) <displaced_step_state>: New field.
6767 * infrun.h (struct displaced_step_state): Move here from
6768 infrun.c. Initialize fields, add constructor.
6769 <inf>: Remove field.
6770 <reset>: New method.
6771 * infrun.c (struct displaced_step_inferior_state): Move to
6773 (displaced_step_inferior_states): Remove.
6774 (get_displaced_stepping_state): Adust.
6775 (displaced_step_in_progress_any_inferior): Adjust.
6776 (displaced_step_in_progress_thread): Adjust.
6777 (displaced_step_in_progress): Adjust.
6778 (add_displaced_stepping_state): Remove.
6779 (get_displaced_step_closure_by_addr): Adjust.
6780 (remove_displaced_stepping_state): Remove.
6781 (infrun_inferior_exit): Call displaced_step_state.reset.
6782 (use_displaced_stepping): Don't check for NULL.
6783 (displaced_step_prepare_throw): Call
6784 get_displaced_stepping_state.
6785 (displaced_step_fixup): Don't check for NULL.
6786 (prepare_for_detach): Don't check for NULL.
6788 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6790 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
6791 in case of call that did not complete.
6793 2019-01-02 Andrey Utkin <autkin@undo.io>
6795 * symfile.c (find_separate_debug_file): Fix search of debug files for
6798 2019-01-02 Tom Tromey <tom@tromey.com>
6800 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
6802 * python/py-frame.c (frapy_older): Remove cast.
6803 (frapy_newer): Likewise.
6804 * python/py-breakpoint.c (local_setattro): Remove cast.
6805 * python/py-arch.c (archpy_name): Remove local variable.
6806 * python/py-type.c (gdbpy_lookup_type): Remove cast.
6808 2019-01-02 Joel Brobecker <brobecker@adacore.com>
6810 * unittests/basic_string_view/element_access/char/empty.cc:
6811 Fix year range in copyright header.
6813 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
6815 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
6817 <operator==>: Update with for removed field.
6819 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
6820 <isa_features>: ...this.
6821 <abi_features>: New field.
6822 (riscv_isa_flen): Update comment.
6823 (riscv_abi_xlen): New declaration.
6824 (riscv_abi_flen): New declaration.
6825 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
6827 (riscv_abi_xlen): New function.
6828 (riscv_isa_flen): Update to get answer from isa_features.
6829 (riscv_abi_flen): New function.
6830 (riscv_has_fp_abi): Update to get answer from abi_features.
6831 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
6833 (riscv_call_info) <xlen, flen>: Update comment.
6834 (riscv_call_arg_struct): Remove invalid assertions
6835 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
6837 (riscv_gdbarch_init): Gather isa features and abi features
6838 separately, ensure both match on the gdbarch when reusing an old
6839 gdbarch. Relax an error check to allow 32-bit abi float to run on
6840 a target with 64-bit float hardware.
6842 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6844 * source.c (search_command_helper): Stop reverse search
6845 when line 1 has been searched.
6847 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6849 * record-full.c (record_full_base_target::close): Rewrite
6850 record_full_core_buf_list free logic.
6852 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6854 * break-catch-syscall.c (print_one_catch_syscall): xfree
6857 2019-01-01 Joel Brobecker <brobecker@adacore.com>
6859 * top.c (print_gdb_version): Update Copyright year in version
6862 2019-01-01 Joel Brobecker <brobecker@adacore.com>
6864 Update copyright year range in all GDB files.
6866 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
6868 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
6870 For older changes see ChangeLog-2018.
6876 version-control: never