1 2019-06-10 Tom Tromey <tom@tromey.com>
3 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7 2019-06-10 Tom Tromey <tromey@adacore.com>
9 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
11 (elf_new_init): Don't call stabsread_new_init.
12 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
13 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
14 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
16 2019-06-10 Tom de Vries <tdevries@suse.de>
20 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
22 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
24 * source.c (find_and_open_source): Also rewrite relative file
27 2019-04-26 Amos Bird <amosbird@gmail.com>
29 * annotate.c (annotate_thread_exited): Add "thread-exited"
32 2019-06-06 Tom Tromey <tromey@adacore.com>
34 * maint.h (class scoped_command_stats): Use
35 DISABLE_COPY_AND_ASSIGN.
36 <print_time>: New method.
37 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
39 (scoped_command_stats::print_time): New method.
41 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
43 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
44 instructions of lengths 6 or 8 bytes.
46 2019-06-04 Pedro Alves <palves@redhat.com>
48 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
50 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
51 * breakpoint.c (condition_completer): Likewise.
52 * cli/cli-dump.c (scan_expression): Likewise.
53 * common/filestuff.c (mkdir_recursive): Likewise.
54 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
55 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
56 (gdb_abspath): Likewise.
57 * compile/compile-cplus-types.c
58 (compile_cplus_instance::decl_name): Likewise.
59 * completer.c (complete_explicit_location):
60 (signal_completer, reg_or_group_completer_1): Likewise.
61 * cp-support.c (cp_remove_params_if_any): Likewise.
62 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
63 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
64 * infcmd.c (strip_bg_char): Likewise.
65 * linespec.c (copy_token_string): Likewise.
66 * mi/mi-main.c (output_cores): Likewise.
67 * psymtab.c (psymtab_search_name):
68 * symfile.c (test_set_ext_lang_command): Likewise.
69 * target.c (target_fileio_read_stralloc): Likewise.
70 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
71 * value.c (complete_internalvar): Likewise.
73 2019-06-04 Christian Biesinger <cbiesinger@google.com>
75 Add objfile property to gdb.Type.
76 * NEWS: Mention Python API addition.
77 * python/py-type.c (typy_get_objfile): New method.
79 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
81 * NEWS: Mention the new set|show style [title|highlight].
82 Mention changes to "show style", "help" and "apropos".
84 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
86 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
87 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
88 instead of print_help_for_command.
89 (print_doc_of_command): New function.
90 (help_list): Add 'apropos -v word' suggestion.
91 (print_help_for_command): Style the command name using title style.
92 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
93 (_initialize_cli_cmds): Describe -v in apropos_command help.
95 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
97 * cli/cli-style.h (cli_style_option): Add name in constructor,
98 add m_name class member, add constructor with intensity,
99 add name class function.
100 (cli_style_option::add_setshow_commands): Remove name argument.
101 (highlight_style, title_style): New styles.
102 * cli/cli-style.c (do_show): New function that shows a style
103 characteristic styling the style name with itself.
104 (set_style_name): New function.
105 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
106 Update all callers according to the changes in cli/cli-style.h.
107 * utils.h (fputs_highlighted): New function.
108 * utils.c (fputs_highlighted): Likewise.
110 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
112 * NEWS: Mention new pipe command and new convenience variables.
114 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
116 * cli/cli-cmds.c (pipe_command): New function.
117 (_initialize_cli_cmds): Call add_com for pipe_command.
118 Define | as an alias for pipe.
119 (exit_status_set_internal_vars): New function.
120 (shell_escape): Call exit_status_set_internal_vars.
121 cli/cli-decode.c (find_command_name_length): Recognize | as
122 a single character command.
124 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
126 * gdbcmd.h (execute_command_to_ui_file): New declaration.
127 top.c (execute_command_to_ui_file): New function, mostly a copy
128 of execute_command_to_string.
129 (execute_command_to_string): Implement by calling
130 execute_command_to_ui_file.
132 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
134 * top.h (saved_command_line): Remove declaration.
135 * top.c (previous_saved_command_line, previous_repeat_arguments):
137 (saved_command_line): Make static, define together with other
139 (dont_repeat): Clear repeat_arguments.
140 (repeat_previous, get_saved_command_line, save_command_line):
142 (gdb_init): Initialize saved_command_line
143 and previous_saved_command_line.
144 * main.c (captured_main_1): Remove saved_command_line initialization.
145 * event-top.c (handle_line_of_input): Update to use
146 the new 'repeat' related functions instead of direct access to
148 * command.h (repeat_previous, get_saved_command_line,
149 save_command_line): New declarations.
150 (dont_repeat): Add comment.
152 2019-05-30 Tom Tromey <tromey@adacore.com>
154 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
156 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
158 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
161 * completer.c (complete): Initialize variable word.
163 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
165 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
166 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
167 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
168 'body' is NULL to the outter 'if', protecting the '!is_define'
171 2019-05-29 Tom Tromey <tromey@adacore.com>
173 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
174 (dwarf_unknown): New function.
175 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
176 (dwarf_type_encoding_name): Use dwarf_unknown.
178 2019-05-29 Tom Tromey <tromey@adacore.com>
181 * cp-valprint.c (cp_print_value_fields): Call
182 cp_print_static_field inside "try".
184 2019-05-29 Tom Tromey <tromey@adacore.com>
186 * inflow.c (struct terminal_info): Add default operator=.
187 * configure: Rebuild.
188 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
189 -Wdeprecated-copy-dtor, -Wredundant-move.
191 2019-05-29 Tom Tromey <tromey@adacore.com>
194 * infcmd.c (print_return_value_1): Handle finish_print
196 (show_print_finish): New function.
197 (_initialize_infcmd): Add "set/show print finish" commands.
198 * valprint.c (user_print_options): Initialize new member.
199 * valprint.h (struct value_print_options) <finish_print>: New
202 2019-05-28 Tom Tromey <tromey@adacore.com>
204 * ada-lang.c (ada_remove_Xbn_suffix)
205 (find_old_style_renaming_symbol)
206 (parse_old_style_renaming): Remove.
207 (ada_find_renaming_symbol): Don't call
208 find_old_style_renaming_symbol.
209 (ada_is_renaming_symbol): Rename from
210 ada_find_renaming_symbol. Remove "block" parameter. Return
212 (ada_read_var_value): Update and simplify.
213 * ada-exp.y (write_var_or_type): Remove old code.
215 2019-05-28 Alan Hayward <alan.hayward@arm.com>
217 * event-top.c: Remove include comment.
218 * inflow.c (class scoped_ignore_sigttou): Move from here...
219 * inflow.h (class scoped_ignore_sigttou): ...to here.
220 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
221 * top.c: Remove include comment.
223 2019-05-27 Tom Tromey <tom@tromey.com>
227 2019-05-22 Tom Tromey <tromey@adacore.com>
229 * target.c (target_follow_exec): Constify parameter.
230 * target-delegates.c: Rebuild.
231 * remote.c (remote_target::follow_exec): Constify parameter.
232 * infrun.c (follow_exec): Constify parameter.
233 * target.h (struct target_ops) <follow_exec>: Constify parameter.
234 (target_follow_exec): Likewise.
236 2019-05-22 Alan Hayward <alan.hayward@arm.com>
238 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
239 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
241 2019-05-22 Alan Hayward <alan.hayward@arm.com>
243 * NEWS: Add debugredirect and testsuite sections.
245 2019-05-22 Simon Cook <simon.cook@embecosm.com>
247 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
248 target descriptions using exclusively floating point register name
251 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
254 * f-lang.c (build_fortran_types): Handle the case where
255 gdbarch_floatformat_for_type returns a nullptr.
257 2019-05-21 Tom de Vries <tdevries@suse.de>
260 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
262 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
265 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
267 * i386-tdep.c (i386_floatformat_for_type): Use
268 floatformats_ia64_quad for the 16-byte floating point component
269 within a fortran 32-byte complex number.
271 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
273 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
274 delete default constructor.
275 (find_partial_die): Update to return const struct.
276 (partial_die_parent_scope): Move variable declaration into scope
277 of its use and change its type to auto.
278 (guess_partial_die_structure_name): Likewise.
279 (partial_die_info::fixup): Likewise.
281 2019-05-17 Tom Tromey <tromey@adacore.com>
283 * source.c (find_and_open_source): Remove cast.
285 2019-05-17 Tom Tromey <tromey@adacore.com>
287 * annotate.c (annotate_source): Make "filename" const.
288 * annotate.h (annotate_source): Use const.
290 2019-05-17 Alan Hayward <alan.hayward@arm.com>
292 * disasm.c (set_disassembler_options): Send errors to stderr.
294 2019-05-17 Alan Hayward <alan.hayward@arm.com>
296 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
297 (cli_interp_base::set_logging): Check debug_redirect.
298 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
299 * cli/cli-logging.c (debug_redirect): Add static variable.
300 (pop_output_files): Add default param.
301 (handle_redirections): Print debug setting.
302 (show_logging_command): Likewise.
303 (_initialize_cli_logging): Add debugredirect command.
304 * interps.c (current_interp_set_logging): Add debug_redirect
306 * interps.h (set_logging): Add debug_redirect parameter.
307 (current_interp_set_logging): Likewise.
308 * mi/mi-common.h: Likewise.
309 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
311 2019-05-17 Alan Hayward <alan.hayward@arm.com>
312 Tom Tromey <tromey@adacore.com>
314 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
316 * cli/cli-interp.h (make_logging_output): Remove declaration.
317 * cli/cli-logging.c (make_logging_output): Remove function.
318 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
320 * ui-file.c (tee_file::tee_file): Remove bools.
321 (tee_file::~tee_file): Remove deletes.
322 * ui-file.h (tee_file): Remove bools.
324 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
326 * mi/mi-cmds.h (mi_cmd_complete): New function.
327 * mi/mi-main.c (mi_cmd_complete): Likewise.
328 * mi/mi-cmds.c: Define new MI command -complete.
329 * NEWS: Mention new -complete command.
331 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
333 * completer.h (complete): New function.
334 * completer.c (complete): Likewise.
335 * cli/cli-cmds.c: (complete_command): Update to use new complete()
336 function defined in completer.h.
338 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
340 * MAINTAINERS (Write After Approval): Add myself.
342 2019-05-17 Tom de Vries <tdevries@suse.de>
345 * dwarf2read.c (struct cu_partial_die_info): New struct.
346 (find_partial_die): Return cu_partial_die_info.
347 (partial_die_parent_scope, guess_partial_die_structure_name)
348 (partial_die_info::fixup): Handle new return type of find_partial_die.
350 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
352 * stap-probe.c (stap_parse_register_operand): Make "regname" an
353 "std::string", simplifying the algorithm.
355 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
357 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
358 (stap_static_probe_ops::get_probes): Likewise.
360 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
362 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
364 (stap_parse_single_operand): Join checks for
365 "gdbarch_stap_parse_special_token_p" and
366 "gdbarch_stap_parse_special_token" in the same "if" statement.
367 Invert check when verifying for operation on register
370 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
372 * stap-probe.c (stap_get_opcode): Update comment.
373 (stap_get_expected_argument_type): Likewise.
374 (handle_stap_probe): Likewise.
376 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
378 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
379 return type to 'bool'. Adjust comment. Use 'bool' when
381 (i386_stap_parse_special_token_three_arg_disp): Likewise.
382 * stap-probe.c (stap_parse_argument_1): Likewise.
383 (stap_is_operator): Likewise.
384 (stap_is_generic_prefix): Likewise.
385 (stap_is_register_prefix): Likewise.
386 (stap_is_register_indirection_prefix): Likewise.
387 (stap_is_integer_prefix): Likewise.
388 (stap_generic_check_suffix): Likewise.
389 (stap_check_integer_suffix): Likewise.
390 (stap_check_register_suffix): Likewise.
391 (stap_check_register_indirection_suffix): Likewise.
392 (stap_parse_register_operand): Likewise.
393 (stap_parse_single_operand): Likewise.
394 (stap_parse_argument_1): Likewise.
395 (stap_probe::get_argument_count): Likewise.
396 (stap_is_operator): Likewise.
398 2019-05-16 Tom Tromey <tromey@adacore.com>
400 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
403 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
405 * linux-thread-db.c (try_thread_db_load_1): Change return type
407 (try_thread_db_load): Likewise.
408 (try_thread_db_load_from_pdir_1): Likewise.
409 (try_thread_db_load_from_pdir): Likewise.
410 (try_thread_db_load_from_sdir): Likewise.
411 (try_thread_db_load_from_dir): Likewise.
412 (thread_db_load_search): Likewise.
413 (has_libpthread): Likewise.
414 (thread_db_load): Likewise.
416 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
418 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
419 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
420 NULL, and complain/return if that's the case.
422 2019-05-15 John Darrington <john@darrington.wattle.id.au>
424 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
425 (advance, posn, abstract_read_memory): New functions.
426 [struct mem_read_abstraction]: New struct.
427 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
429 2019-05-14 Tom Tromey <tromey@adacore.com>
431 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
432 value is not lval_memory.
434 2019-05-14 Tom Tromey <tromey@adacore.com>
436 * solib.c (info_sharedlibrary_command): Style the file name.
438 2019-05-14 Alan Hayward <alan.hayward@arm.com>
440 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
441 (aarch64_vnv_type): Likewise.
442 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
443 * common/tdesc.c: Likewise.
444 * common/tdesc.h (enum tdesc_type_kind): Likewise.
445 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
446 * features/aarch64-fpu.xml: Add ieee half view.
447 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
448 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
449 * gdbtypes.h (struct builtin_type): Likewise.
450 (struct objfile_type): Likewise.
452 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
454 * language.c (language_sniff_from_mangled_name): Fix "langauge"
456 * location.h (string_to_event_location): Likewise.
458 2019-05-11 Joel Brobecker <brobecker@adacore.com>
462 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
464 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
465 New variable declaration.
466 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
468 (print_one_breakpoint): Use ui_out::test_flags and new global
469 variable to compute use_fixed_output.
470 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
472 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
473 (mi_multi_location_breakpoint_output_fixed): Remove.
474 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
476 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
477 fix_multi_location_breakpoint_output flag if version >= 3.
478 * ui-out.h (enum ui_out_flag)
479 <fix_multi_location_breakpoint_output>: New enumerator.
481 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
483 * contrib/cc-with-tweaks.sh: Validate dwz's work.
485 2019-05-10 Tom Tromey <tromey@adacore.com>
487 * ada-lang.c (catch_ada_completer): New function.
488 (_initialize_ada_language): Use it.
490 2019-05-10 Tom Tromey <tromey@adacore.com>
492 * thread.c (print_thread_info): Make "requested_threads" const.
493 * gdbthread.h (print_thread_info): Make "requested_threads"
495 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
496 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
498 2019-05-08 Tom Tromey <tom@tromey.com>
500 * gdbtypes.c (objfile_type_data): Change type.
501 (objfile_type, _initialize_gdbtypes): Update.
503 2019-05-08 Tom Tromey <tom@tromey.com>
505 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
506 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
507 (_initialize_dwarf2_frame): Update.
509 2019-05-08 Tom Tromey <tom@tromey.com>
511 * objc-lang.c (objc_objfile_data): Change type.
512 (find_methods): Update.
513 (_initialize_objc_lang): Remove.
515 2019-05-08 Tom Tromey <tom@tromey.com>
517 * stabsread.c (rs6000_builtin_type_data): Change type.
518 (rs6000_builtin_type, _initialize_stabsread): Update.
520 2019-05-08 Tom Tromey <tom@tromey.com>
522 * mips-tdep.c (mips_pdr_data): Remove.
523 (_initialize_mips_tdep): Update.
525 2019-05-08 Tom Tromey <tom@tromey.com>
527 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
528 (hppa_init_objfile_priv_data, read_unwind_info)
529 (find_unwind_entry, _initialize_hppa_tdep): Update.
531 2019-05-08 Tom Tromey <tom@tromey.com>
533 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
534 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
536 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
538 2019-05-08 Tom Tromey <tom@tromey.com>
540 * mdebugread.c (basic_type_data): Change type.
541 (basic_type, _initialize_mdebugread): Update.
543 2019-05-08 Tom Tromey <tom@tromey.com>
545 * common/gdb_unique_ptr.h (struct noop_deleter): New.
547 2019-05-08 Tom Tromey <tom@tromey.com>
549 * nto-tdep.c (nto_inferior_data_reg): Change type.
550 (nto_inferior_data): Update.
551 (nto_inferior_data_cleanup, nto_new_inferior_data)
552 (_initialize_nto_tdep): Remove.
553 * nto-tdep.h (struct nto_inferior_data): Add initializers.
555 2019-05-08 Tom Tromey <tom@tromey.com>
557 * ada-lang.c (struct ada_inferior_data): Add initializers.
558 (ada_inferior_data): Change type.
559 (ada_inferior_data_cleanup): Remove.
560 (get_ada_inferior_data, ada_inferior_exit)
561 (struct ada_pspace_data): Add initializers, destructor.
562 (ada_pspace_data_handle): Change type.
563 (get_ada_pspace_data): Update.
564 (ada_pspace_data_cleanup): Remove.
566 2019-05-08 Tom Tromey <tom@tromey.com>
568 * coffread.c (struct coff_symfile_info): Add initializers.
569 (coff_objfile_data_key): Move lower. Change type.
570 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
572 (coff_free_info): Remove.
574 2019-05-08 Tom Tromey <tom@tromey.com>
576 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
577 (fbsd_pspace_data_handle): Move lower. Change type.
578 (get_fbsd_pspace_data): Update.
579 (fbsd_pspace_data_cleanup): Remove.
580 (_initialize_fbsd_tdep): Update.
582 2019-05-08 Tom Tromey <tom@tromey.com>
584 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
585 (get_ada_tasks_pspace_data): Update.
586 (ada_tasks_pspace_data_cleanup): Remove.
587 (_initialize_tasks): Update.
588 (ada_tasks_inferior_data_handle): Change type.
589 (get_ada_tasks_inferior_data): Update.
590 (ada_tasks_inferior_data_cleanup): Remove.
591 (struct ada_tasks_pspace_data): Add initializers.
593 2019-05-08 Tom Tromey <tom@tromey.com>
595 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
596 * symfile-debug.c (debug_sym_get_probes): Change type.
597 * stap-probe.c (handle_stap_probe):
598 (stap_static_probe_ops::get_probes): Change type.
599 * probe.h (class static_probe_ops) <get_probes>: Change type.
600 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
601 (parse_probes_in_pspace): Update.
602 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
604 (any_static_probe_ops::get_probes): Change type.
605 * elfread.c (elfread_data): New typedef.
606 (probe_key): Change type.
607 (elf_get_probes): Likewise. Update.
608 (probe_key_free): Remove.
609 (_initialize_elfread): Update.
610 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
612 (dtrace_process_dof_probe, dtrace_process_dof)
613 (dtrace_static_probe_ops::get_probe): Change type.
615 2019-05-08 Tom Tromey <tom@tromey.com>
617 * xcoffread.c (struct xcoff_symfile_info): Rename from
618 coff_symfile_info. Add initializers.
619 (xcoff_objfile_data_key): Move lower. Change type.
620 (XCOFF_DATA): Rewrite.
621 (xcoff_free_info): Remove.
622 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
623 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
624 (xcoff_initial_scan): Update.
626 2019-05-08 Tom Tromey <tom@tromey.com>
628 * solib-svr4.c (struct svr4_info): Add initializers and
630 <probes_table>: Now an htab_up.
631 (solib_svr4_pspace_data): Change type.
632 (free_probes_table): Simplify.
633 (~svr4_info): Rename from svr4_pspace_data_cleanup.
634 (get_svr4_info, probes_table_htab_remove_objfile_probes)
635 (probes_table_remove_objfile_probes, register_solib_event_probe)
636 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
637 (_initialize_svr4_solib): Update.
639 2019-05-08 Tom Tromey <tom@tromey.com>
641 * remote.c (remote_pspace_data): Change type.
642 (remote_pspace_data_cleanup): Remove.
643 (get_remote_exec_file, set_pspace_remote_exec_file)
644 (_initialize_remote): Update.
646 2019-05-08 Tom Tromey <tom@tromey.com>
648 * breakpoint.c (breakpoint_objfile_key): Change type.
649 (get_breakpoint_objfile_data): Update.
650 (free_breakpoint_objfile_data): Remove.
651 (_initialize_breakpoint): Update.
653 2019-05-08 Tom Tromey <tom@tromey.com>
655 * linux-tdep.c (struct linux_info): Add initializers.
656 (linux_inferior_data): Move. Change type.
657 (invalidate_linux_cache_inf): Update.
658 (linux_inferior_data_cleanup): Remove.
659 (get_linux_inferior_data, _initialize_linux_tdep): Update.
661 2019-05-08 Tom Tromey <tom@tromey.com>
663 * auxv.c (auxv_inferior_data): Move. Change type.
664 (auxv_inferior_data_cleanup): Remove.
665 (invalidate_auxv_cache_inf): Rewrite.
666 (get_auxv_inferior_data, _initialize_auxv): Update.
668 2019-05-08 Tom Tromey <tom@tromey.com>
670 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
671 (symfile_debug_objfile_data_key): Change type.
672 (symfile_debug_installed, debug_qf_has_symbols)
673 (debug_qf_find_last_source_symtab)
674 (debug_qf_forget_cached_source_info)
675 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
676 (debug_qf_print_stats, debug_qf_dump)
677 (debug_qf_expand_symtabs_for_function)
678 (debug_qf_expand_all_symtabs)
679 (debug_qf_expand_symtabs_with_fullname)
680 (debug_qf_map_matching_symbols)
681 (debug_qf_expand_symtabs_matching)
682 (debug_qf_find_pc_sect_compunit_symtab)
683 (debug_qf_map_symbol_filenames)
684 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
685 (debug_sym_new_init, debug_sym_init, debug_sym_read)
686 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
687 (debug_sym_read_linetable, debug_sym_relocate): Update.
688 (symfile_debug_free_objfile): Remove.
689 (install_symfile_debug_logging, _initialize_symfile_debug):
692 2019-05-08 Tom Tromey <tom@tromey.com>
694 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
696 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
697 (get_dwarf2_per_objfile): Update.
698 (set_dwarf2_per_objfile): Remove.
699 (dwarf2_has_info, dwarf2_get_section_info): Update.
700 (dwarf2_free_objfile): Remove.
701 (_initialize_dwarf2_read): Update.
703 2019-05-08 Tom Tromey <tom@tromey.com>
705 * auto-load.c (struct auto_load_pspace_info): Add destructor and
707 <unsupported_script_warning_printed,
708 script_not_found_warning_printed>: Now bool.
709 (auto_load_pspace_data): Change type.
710 (~auto_load_pspace_info): Rename from
711 auto_load_pspace_data_cleanup.
712 (get_auto_load_pspace_data, init_loaded_scripts_info)
713 (clear_section_scripts, maybe_print_unsupported_script_warning)
714 (maybe_print_script_not_found_warning, _initialize_auto_load):
717 2019-05-08 Tom Tromey <tom@tromey.com>
719 * objfiles.c (objfile_pspace_info): Add destructor and
721 (objfiles_pspace_data): Change type.
722 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
723 (get_objfile_pspace_data): Update.
724 (objfiles_bfd_data): Change type.
725 (get_objfile_bfd_data): Update.
726 (objfile_bfd_data_free, _initialize_objfiles): Remove.
728 2019-05-08 Tom Tromey <tom@tromey.com>
730 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
732 (get_catch_syscall_inferior_data): Update.
733 (catch_syscall_inferior_data_cleanup): Remove.
734 (_initialize_break_catch_syscall): Update.
736 2019-05-08 Tom Tromey <tom@tromey.com>
738 * inflow.c (struct terminal_info): Add destructor and
740 (inflow_inferior_data): Change type.
741 (~terminal_info): Rename from inflow_inferior_data_cleanup.
742 (get_inflow_inferior_data, inflow_inferior_exit)
743 (swap_terminal_info, _initialize_inflow): Update.
745 2019-05-08 Tom Tromey <tom@tromey.com>
747 * target-dcache.c (target_dcache_cleanup): Remove.
748 (target_dcache_aspace_key): Change type.
749 (target_dcache_init_p, target_dcache_invalidate)
750 (target_dcache_get, target_dcache_get_or_init)
751 (_initialize_target_dcache): Update.
752 * dcache.h (struct dcache_deleter): New.
754 2019-05-08 Tom Tromey <tom@tromey.com>
756 * symtab.c (struct symbol_cache): Add destructor and
758 (symbol_cache_key): Move. Change type.
759 (make_symbol_cache, free_symbol_cache): Remove.
760 (get_symbol_cache): Update.
761 (symbol_cache_cleanup): Remove.
762 (ALL_PSPACES, symbol_cache_flush)
763 (maintenance_print_symbol_cache)
764 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
767 2019-05-08 Tom Tromey <tom@tromey.com>
769 * symtab.c (struct main_info): Add destructor and initializers.
770 (main_progspace_key): Move. Change type.
771 (get_main_info): Update.
772 (main_info_cleanup): Remove.
773 (_initialize_symtab): Update.
775 2019-05-08 Tom Tromey <tom@tromey.com>
777 * registry.h (DECLARE_REGISTRY): Define the _key class.
779 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
781 * NEWS: Merge two 'New commands' sections.
783 2019-05-08 Joel Brobecker <brobecker@adacore.com>
785 * ada-valprint.c (ada_val_print_gnat_array): Remove language
786 parameter and use Ada language definition instead.
787 (ada_val_print_ptr): Remove unused language parameter.
788 (ada_val_print_num): Remove language parameter and use Ada language
790 (ada_val_print_enum, ada_val_print_flt): Remove unused language
792 (ada_val_print_struct_union, ada_val_print_ref): Remove language
793 parameter and use Ada language definition instead.
794 (ada_val_print_1): Update all ada_val_print_xxx calls.
795 Remove language parameter.
796 (ada_val_print): Update ada_val_print_1 call.
798 2019-05-08 Tom Tromey <tromey@adacore.com>
800 * remote.c (remote_hw_watchpoint_limit)
801 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
804 2019-05-08 Tom Tromey <tromey@adacore.com>
806 * maint.c (_initialize_maint_cmds): Move initialization code to
808 (watchdog, show_watchdog): Move to remote.c.
809 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
811 (_initialize_remote): Move initialization code from maint.c.
812 * defs.h (watchdog): Don't declare.
814 2019-05-08 Tom Tromey <tromey@adacore.com>
816 * tui/tui-interp.c: Include main.h.
817 * interps.c: Include main.h.
818 * main.h (interpreter_p): Declare.
819 * defs.h (interpreter_p): Don't declare.
821 2019-05-08 Tom Tromey <tromey@adacore.com>
823 * dwarf2loc.c: Include dwarf2read.h.
824 * defs.h (read_unsigned_leb128): Don't declare.
825 * dwarf2read.h (read_unsigned_leb128): Declare.
827 2019-05-08 Tom Tromey <tromey@adacore.com>
829 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
832 2019-05-08 Tom Tromey <tromey@adacore.com>
834 * utils.c (fputs_maybe_filtered): Reset style after paging, even
835 when no wrap column is set.
837 2019-05-08 Tom Tromey <tromey@adacore.com>
839 * c-lang.c (c_get_string): Handle non-C-style arrays.
841 2019-05-08 Tom Tromey <tromey@adacore.com>
843 * typeprint.c (print_offset_data::update): Print the bit offset,
844 not the number of bits remaining.
846 2019-05-08 Tom Tromey <tromey@adacore.com>
848 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
849 padding at end of comment.
851 2019-05-08 Tom Tromey <tromey@adacore.com>
853 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
856 2019-05-06 Tom Tromey <tom@tromey.com>
858 * common/scoped_mmap.c: Include common-defs.h.
859 * common/scoped_mmap.h: Don't include config.h.
861 2019-05-04 Tom Tromey <tom@tromey.com>
863 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
864 (struct aarch64_call_info): Add initializers.
865 <si>: Now a std::vector.
866 (pass_on_stack, aarch64_push_dummy_call): Update.
868 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
869 Tom Tromey <tom@tromey.com>
871 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
872 (ppc_threads): Now a std::vector. Now static.
873 (hwdebug_find_thread_points_by_tid)
874 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
877 2019-05-04 Tom Tromey <tom@tromey.com>
879 * arc-tdep.c (arc_tdesc_init): Return bool.
881 2019-05-04 Tom Tromey <tom@tromey.com>
883 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
884 Use gdb_assert_not_reached.
886 2019-05-04 Tom Tromey <tom@tromey.com>
888 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
891 2019-05-04 Tom Tromey <tom@tromey.com>
893 * arc-tdep.c (arc_tdesc_init): Use bool.
895 2019-05-04 Tom Tromey <tom@tromey.com>
897 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
899 2019-05-04 Tom Tromey <tom@tromey.com>
901 * cli/cli-cmds.c (valid_command_p): Return bool.
903 2019-05-04 Tom Tromey <tom@tromey.com>
905 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
906 * command.h (valid_user_defined_cmd_name_p): Channge return type.
908 2019-05-04 Raul Tambre <raul@tambre.ee>
910 * python/lib/gdb/prompt.py (_ExtendedPrompt)
911 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
912 operator for comparison.
914 2019-05-04 Tom Tromey <tom@tromey.com>
916 * psymtab.c (psymbol_name_matches, match_partial_symbol)
917 (lookup_partial_symbol, print_partial_symbols)
918 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
919 (psymbol_compare): Update.
920 (add_psymbol_to_bcache): Clear the entire psymbol.
921 (maintenance_check_psymtabs): Update.
922 * psympriv.h (struct partial_symbol): Don't derive from
924 <obj_section, unrelocated_address, address,
925 set_unrelocated_address>: Update.
927 * dwarf-index-write.c (write_psymbols, debug_names::insert)
928 (debug_names::write_psymbols): Update.
930 2019-05-04 Tom de Vries <tdevries@suse.de>
932 * contrib/cc-with-tweaks.sh: Support -n arg.
934 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
936 * corelow.c (core_target::detach): Ensure frame cache and
937 register caches are cleared.
938 inferior.c (exit_inferior_1): Likewise.
940 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
941 Tom Tromey <tom@tromey.com>
943 * dictionary.c (collate_pending_symbols_by_language): Remove
944 "struct" from foreach.
945 * symtab.c (lookup_global_symbol_from_objfile)
946 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
948 * ser-tcp.c (net_open): Remove "struct" from foreach.
949 * objfiles.c (objfile_relocate, objfile_rebase)
950 (objfile_has_symbols): Remove "struct" from foreach.
951 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
953 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
955 * darwin-nat.c (thread_info_from_private_thread_info): Remove
956 "struct" from foreach.
957 * ada-lang.c (create_excep_cond_exprs)
958 (ada_exception_catchpoint_cond_string): Remove "struct" from
961 2019-05-03 Tom Tromey <tromey@adacore.com>
963 * ada-exp.y (convert_char_literal): Check suffix of each
966 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
969 * ada-exp.y (yywrap): Don't define.
970 * ada-lex.l (%option): Add noyywrap
973 2019-05-03 Eli Zaretskii <eliz@gnu.org>
975 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
976 _WIN32_WINNT to the XP level, unless already defined to a higher
979 * unittests/parse-connection-spec-selftests.c:
981 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
984 * symfile.c (find_separate_debug_file): Remove colon from the
985 drive spec of DOS/Windows file names of the target, so that the
986 file name produced from DEBUGDIR and the target's directory will
987 be valid on DOS/Windows systems.
989 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
991 * rust-lang.c (val_print_struct): Handle printing structures
994 2019-05-02 Tom Tromey <tromey@adacore.com>
996 * valarith.c (_initialize_valarith): Remove.
998 2019-05-01 Tom Tromey <tromey@adacore.com>
1000 * ada-lang.c (ada_value_primitive_field): Treat more fields as
1003 2019-05-01 Tom Tromey <tromey@adacore.com>
1005 * ada-lang.c (ada_value_assign): Correctly compute starting offset
1006 for big-endian copies.
1008 2019-04-30 Ali Tamur <tamur@google.com>
1009 * gdb/dwarf2read.c (read_3_bytes): New declaration.
1010 (read_attribute_value): Added DW_FORM_strx1-4 cases.
1011 (read_3_bytes): New function.
1013 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1015 * windows-nat.c (main_thread_id): Delete.
1016 (handle_output_debug_string): Replace main_thread_id by
1017 current_event.dwThreadId.
1018 (fake_create_process): Likewise.
1019 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
1020 Do not set main_thread_id.
1021 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
1022 current_event.dwThreadId.
1023 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
1025 2019-04-30 Joel Brobecker <brobecker@adacore.com>
1027 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
1028 Use current_event.dwThreadId instead of main_thread_id.
1030 2019-04-30 Tom Tromey <tromey@adacore.com>
1032 * ada-lang.c (ada_lookup_simple_minsyms): New function.
1033 (create_excep_cond_exprs): Iterate over program spaces.
1034 (ada_exception_catchpoint_cond_string): Examine all minimal
1035 symbols for exception types.
1037 2019-04-30 Tom Tromey <tromey@adacore.com>
1040 * dwarf2read.c (process_structure_scope): Handle case where type
1041 has template parameters but no symbol was created.
1043 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1044 Chris January <chris.january@arm.com>
1046 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
1048 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
1050 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1052 * f-typeprint.c (f_print_type): Update rules for printing
1054 (f_type_print_varspec_suffix): Likewise.
1056 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1057 Chris January <chris.january@arm.com>
1059 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
1062 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1064 * f-lang.c (build_fortran_types): Change name of void type to
1066 * f-typeprint.c (f_type_print_base): Print the name of the void
1067 type, rather than a fixed string.
1068 * f-valprint.c (f_decorations): Use lower case void string.
1070 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1071 Chris January <chris.january@arm.com>
1073 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
1076 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1077 Chris January <chris.january@arm.com>
1078 David Lecomber <david.lecomber@arm.com>
1080 * f-exp.y (BINOP_INTRINSIC): New token.
1081 (exp): New parser rule handling BINOP_INTRINSIC.
1082 (f77_keywords): Add new builtin procedures.
1083 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
1084 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1085 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
1086 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1087 (print_unop_subexp_f): New function.
1088 (print_binop_subexp_f): New function.
1089 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1090 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1091 (dump_subexp_body_f): Likewise.
1092 (operator_check_f): Likewise.
1093 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1094 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
1096 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1098 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
1100 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
1101 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
1102 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
1103 (operator_length_f): New fuction.
1104 (print_subexp_f): New function.
1105 (op_name_f): New function.
1106 (dump_subexp_body_f): New function.
1107 (operator_check_f): New function.
1108 (exp_descriptor_f): Replace standard expression handling functions
1110 * gdb/fortran-operator.def: New file.
1111 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
1112 * gdb/std-operator.def: Remove UNOP_KIND.
1114 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1116 * std-operator.def: Remove unbalanced, stray double quote
1119 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1120 Chris January <chris.january@arm.com>
1121 Daniel Everett <daniel.everett@arm.com>
1122 Nick Forrington <nick.forrington@arm.com>
1123 Richard Bunt <richard.bunt@arm.com>
1125 * cp-valprint.c (cp_print_value_fields): Allow an additional level
1126 of depth when printing anonymous structs or unions.
1127 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1128 Don't print either the top-level value, or the children if the
1129 max-depth is exceeded.
1130 (ppscm_print_children): When printing the key of a map, allow one
1131 extra level of depth.
1132 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
1133 print either the top-level value, or the children if the max-depth
1135 (print_children): When printing the key of a map, allow one extra
1137 * python/py-value.c (valpy_format_string): Add max_depth keyword.
1138 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
1139 (user_print_options): Initialise max_depth field.
1140 (val_print_scalar_or_string_type_p): New function.
1141 (val_print): Check to see if the max depth has been reached.
1142 (val_print_check_max_depth): Define new function.
1143 (show_print_max_depth): New function.
1144 (_initialize_valprint): Add 'print max-depth' option.
1145 * valprint.h (struct value_print_options) <max_depth>: New field.
1146 (val_print_check_max_depth): Declare new function.
1147 * NEWS: Document new feature.
1149 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1151 * ada-lang.c (ada_language_defn): Initialise new field.
1152 * c-lang.c (c_is_string_type_p): New function.
1153 (c_language_defn): Initialise new field.
1154 (cplus_language_defn): Initialise new field.
1155 (asm_language_defn): Initialise new field.
1156 (minimal_language_defn): Initialise new field.
1157 * c-lang.h (c_is_string_type_p): Declare new function.
1158 * d-lang.c (d_language_defn): Initialise new field.
1159 * f-lang.c (f_is_string_type_p): New function.
1160 (f_language_defn): Initialise new field.
1161 * go-lang.c (go_is_string_type_p): New function.
1162 (go_language_defn): Initialise new field.
1163 * language.c (default_is_string_type_p): New function.
1164 (unknown_language_defn): Initialise new field.
1165 (auto_language_defn): Initialise new field.
1166 * language.h (struct language_defn) <la_is_string_type_p>: New
1168 (default_is_string_type_p): Declare new function.
1169 * m2-lang.c (m2_language_defn): Initialise new field.
1170 * objc-lang.c (objc_language_defn): Initialise new field.
1171 * opencl-lang.c (opencl_language_defn): Initialise new field.
1172 * p-lang.c (pascal_is_string_type_p): New function.
1173 (pascal_language_defn): Initialise new field.
1174 * rust-lang.c (rust_is_string_type_p): New function.
1175 (rust_language_defn): Initialise new field.
1177 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1179 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
1181 * ada-lang.c (ada_language_defn): Initialise new field.
1182 * c-lang.c (c_language_defn): Likewise.
1183 (cplus_language_defn): Likewise.
1184 (asm_language_defn): Likewise.
1185 (minimal_language_defn): Likewise.
1186 * d-lang.c (d_language_defn): Likewise.
1187 * f-lang.c (f_language_defn): Likewise.
1188 * go-lang.c (go_language_defn): Likewise.
1189 * language.c (unknown_language_defn): Likewise.
1190 (auto_language_defn): Likewise.
1191 * m2-lang.c (m2_language_defn): Likewise.
1192 * objc-lang.c (objc_language_defn): Likewise.
1193 * opencl-lang.c (opencl_language_defn): Likewise.
1194 * p-lang.c (pascal_language_defn): Likewise.
1195 * rust-lang.c (rust_language_defn): Likewise.
1197 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1199 * ada-lang.c (ada_is_character_type): Change return type to bool.
1200 (ada_is_string_type): Likewise.
1201 * ada-lang.h (ada_is_character_type): Update declaration
1202 (ada_is_string_type): Likewise.
1204 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1206 Support style in 'frame|thread apply'
1208 * gdbcmd.h (execute_command_to_string): New term_out parameter.
1209 * record.c (record_start, record_stop): Update callers of
1210 execute_command_to_string with false.
1211 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
1212 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
1214 (class string_file): New constructor with term_out parameter.
1215 Override methods term_out and can_emit_style_escape. New member
1217 (class stdio_file): Override can_emit_style_escape.
1218 (class tee_file): Override term_out and can_emit_style_escape.
1219 * utils.h (can_emit_style_escape): Remove.
1220 * utils.c (can_emit_style_escape): Likewise.
1221 Update all callers of can_emit_style_escape (SOMESTREAM) to
1222 SOMESTREAM->can_emit_style_escape.
1223 * source-cache.c (source_cache::get_source_lines): Likewise.
1224 * stack.c (frame_apply_command_count): Call execute_command_to_string
1225 passing the term_out characteristic of the current gdb_stdout.
1226 * thread.c (thr_try_catch_cmd): Likewise.
1227 * top.c (execute_command_to_string): pass term_out parameter
1228 to construct the string_file for the command output.
1229 * ui-file.c (term_cli_styling): New function (most code moved
1230 from utils.c can_emit_style_escape).
1231 (string_file::string_file, string_file::can_emit_style_escape,
1232 stdio_file::can_emit_style_escape, tee_file::term_out,
1233 tee_file::can_emit_style_escape): New functions.
1235 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1237 * NEWS: Mention the new set|show may-call-functions.
1238 * infcall.c (may_call_functions_p): New variable.
1239 (show_may_call_functions_p): New function.
1240 (call_function_by_hand_dummy): Throws an error if not
1242 (_initialize_infcall): Call add_setshow_boolean_cmd for
1245 2019-04-25 Keith Seitz <keiths@redhat.com>
1248 * cp-support.c (inspect_type): Don't attempt substitutions
1249 of symbol with the same name.
1251 2019-04-25 Tom Tromey <tromey@adacore.com>
1254 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
1257 2019-04-25 Tom Tromey <tromey@adacore.com>
1259 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
1261 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
1262 (gdb_xml_parser::parse): Use std::move.
1263 * python/python-internal.h (gdbpy_convert_exception): Take a const
1265 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
1267 * python/py-utils.c (gdbpy_convert_exception): Take a const
1269 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1271 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1273 * mi/mi-main.c (mi_print_exception): Take a const reference.
1274 * main.c (handle_command_errors): Take a const reference.
1275 * linespec.c (parse_linespec): Use std::move.
1276 * infcall.c (run_inferior_call): Use std::move.
1277 (call_function_by_hand_dummy): Use std::move.
1278 * exec.c (try_open_exec_file): Use std::move.
1279 * exceptions.h (exception_print, exception_fprintf)
1280 (exception_print_same): Update.
1281 * exceptions.c (print_exception, exception_print)
1282 (exception_fprintf, exception_print_same): Change parameters to
1284 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
1285 * common/new-op.c: Use std::move.
1286 * common/common-exceptions.h (struct gdb_exception): Add move
1288 (struct gdb_exception_error, struct gdb_exception_quit, struct
1289 gdb_quit_bad_alloc): Change constructor to move constructor.
1290 (throw_exception): Change parameter to rvalue reference.
1291 * common/common-exceptions.c (throw_exception): Take rvalue
1293 * cli/cli-interp.c (safe_execute_command): Use std::move.
1294 * breakpoint.c (insert_bp_location, location_to_sals): Use
1297 2019-04-25 Tom Tromey <tromey@adacore.com>
1299 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
1300 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
1301 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
1302 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
1303 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
1304 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
1305 guile/scm-value.c: Use unpack.
1306 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
1307 gdbscm_gdb_exception.
1308 (gdbscm_throw_gdb_exception): Likewise.
1309 (struct gdbscm_gdb_exception): New.
1310 (unpack): New function.
1311 (gdbscm_wrap): Use unpack.
1313 2019-04-25 Tom Tromey <tromey@adacore.com>
1315 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1316 (gdb_rl_callback_handler): Use std::move.
1317 * common/common-exceptions.h (struct gdb_exception): Add move
1318 assignment operator.
1319 (throw_exception_sjlj): Change "exception" to const reference.
1320 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
1321 (throw_exception_sjlj): Change "exception" to const reference.
1323 2019-04-25 Tom Tromey <tromey@adacore.com>
1325 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
1326 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
1327 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1329 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1331 * mi/mi-interp.c (mi_interp::exec): Update.
1332 * linespec.c (parse_linespec): Update.
1333 * infcall.c (run_inferior_call): Update.
1334 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
1335 * guile/scm-symbol.c (gdbscm_lookup_symbol)
1336 (gdbscm_lookup_global_symbol): Update.
1337 * guile/scm-param.c (gdbscm_parameter_value): Update.
1338 * guile/scm-frame.c (gdbscm_frame_read_register)
1339 (gdbscm_frame_read_var): Update.
1340 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1341 * exec.c (try_open_exec_file): Update.
1342 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1343 (gdb_rl_callback_handler): Update.
1344 * common/common-exceptions.h (exception_none): Don't declare.
1345 * common/common-exceptions.c (exception_none): Don't define.
1346 (struct catcher) <exception>: Update.
1347 * cli/cli-interp.c (safe_execute_command): Update.
1348 * breakpoint.c (insert_bp_location, location_to_sals): Update.
1350 2019-04-25 Ali Tamur <tamur@google.com>
1352 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
1353 (read_attribute_value): Likewise.
1354 (dwarf2_read_addr_index): Update comment.
1355 (read_str_index): Add DW_FORM_strx.
1356 (dwarf2_string_attr): Likewise.
1357 (dwarf2_const_value_attr): Likewise.
1358 (dump_die_shallow): Likewise.
1359 (dwarf2_fetch_constant_bytes): Likewise.
1360 (skip_form_bytes): Likewise.
1361 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
1363 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
1367 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
1368 OFFSET. Verify if current mapping contains an ELF header.
1369 (linux_find_memory_regions_full): Adjust call to
1372 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
1373 Kang Li <kanglictf@gmail.com>
1377 * dwarf2-frame.c (read_initial_length): Be consistent about using
1378 unsigned representation of length.
1379 (decode_frame_entry_1): Likewise. Check for wraparound of
1380 end pointer as well as buffer overflow.
1382 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
1384 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
1387 2019-04-24 Tom Tromey <tromey@adacore.com>
1389 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
1391 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1393 * s12z-tdep.c (s12z_unwind_pc): Delete.
1394 (s12z_unwind_sp): Delete.
1395 (s12z_gdbarch_init): Don't register deleted functions with
1398 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1400 * rl78-tdep.c (rl78_unwind_sp): Delete.
1401 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
1403 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1405 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
1406 (xstormy16_unwind_pc): Delete.
1407 (xstormy16_dummy_id): Delete.
1408 (xstormy16_gdbarch_init): Don't register deleted functions with
1411 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1413 * vax-tdep.c (vax_unwind_pc): Delete.
1414 (vax_gdbarch_init): Don't register deleted function with gdbarch.
1416 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1418 * v850-tdep.c (v850_unwind_sp): Delete.
1419 (v850_unwind_pc): Delete.
1420 (v850_dummy_id): Delete.
1421 (v850_gdbarch_init): Don't register deleted functions with
1424 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1426 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
1427 (tilegx_unwind_pc): Delete.
1428 (tilegx_unwind_dummy_id): Delete.
1429 (tilegx_gdbarch_init): Don't register deleted functions with
1432 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1434 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
1435 (tic6x_dummy_id): Delete.
1436 (tic6x_gdbarch_init): Don't register deleted functions with
1439 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1441 * sparc-tdep.c (sparc_unwind_pc): Delete.
1442 (sparc32_gdbarch_init): Don't register deleted function with
1445 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1447 * sh-tdep.c (sh_unwind_sp): Delete.
1448 (sh_unwind_pc): Delete.
1449 (sh_dummy_id): Delete.
1450 (sh_gdbarch_init): Don't register deleted functions with
1453 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1455 * score-tdep.c (score_unwind_sp): Delete.
1456 (score_unwind_pc): Delete.
1457 (score_dummy_id): Delete.
1458 (score_gdbarch_init): Don't register deleted functions with
1461 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1463 * rx-tdep.c (rx_unwind_pc): Delete.
1464 (rx_unwind_sp): Delete.
1465 (rx_dummy_id): Delete.
1466 (rx_gdbarch_init): Don't register deleted functions with
1467 gdbarch. Update comment.
1469 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1471 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
1472 (rs6000_dummy_id): Delete.
1473 (rs6000_gdbarch_init): Don't register deleted functions with
1476 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1478 * or1k-tdep.c (or1k_dummy_id): Delete.
1479 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
1481 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1483 * nios2-tdep.c (nios2_dummy_id): Delete.
1484 (nios2_unwind_sp): Delete.
1485 (nios2_gdbarch_init): Don't register deleted functions with
1488 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1490 * nds32-tdep.c (nds32_dummy_id): Delete.
1491 (nds32_unwind_pc): Delete.
1492 (nds32_unwind_sp): Delete.
1493 (nds32_gdbarch_init): Don't register deleted functions with
1496 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1498 * msp430-tdep.c (msp430_unwind_pc): Delete.
1499 (msp430_unwind_sp): Delete.
1500 (msp430_dummy_id): Delete.
1501 (msp430_gdbarch_init): Don't register deleted functions with
1504 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1506 * moxie-tdep.c (moxie_unwind_sp): Delete.
1507 (moxie_unwind_pc): Delete.
1508 (moxie_dummy_id): Delete.
1509 (moxie_gdbarch_init): Don't register deleted functions with
1512 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1514 * mn10300-tdep.c (mn10300_dummy_id): Delete.
1515 (mn10300_unwind_pc): Delete.
1516 (mn10300_unwind_sp): Delete.
1517 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
1519 (mn10300_frame_unwind_init): Don't register deleted functions with
1522 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1524 * mep-tdep.c (mep_unwind_pc): Delete.
1525 (mep_unwind_sp): Delete.
1526 (mep_dummy_id): Delete.
1527 (mep_gdbarch_init): Don't register deleted functions with
1530 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1532 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
1533 (m68hc11_unwind_sp): Delete.
1534 (m68hc11_gdbarch_init): Don't register deleted functions with
1537 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1539 * m32r-tdep.c (m32r_unwind_sp): Delete.
1540 (m32r_unwind_pc): Delete.
1541 (m32r_dummy_id): Delete.
1542 (m32r_gdbarch_init): Don't register deleted functions with
1545 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1547 * m32c-tdep.c (m32c_unwind_pc): Delete.
1548 (m32c_unwind_sp): Delete.
1549 (m32c_dummy_id): Delete.
1550 (m32c_gdbarch_init): Don't register deleted functions with
1553 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1555 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
1556 (lm32_unwind_pc): Delete.
1557 (lm32_dummy_id): Delete.
1558 (lm32_gdbarch_init): Don't register deleted functions with
1561 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1563 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
1564 (iq2000_unwind_pc): Delete.
1565 (iq2000_dummy_id): Delete.
1566 (iq2000_gdbarch_init): Don't register deleted functions with
1569 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1571 * nds32-tdep.c (nds32_type_align): Delete.
1572 (nds32_push_dummy_call): Use type_align instead.
1574 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1576 * arm-tdep.c (arm_type_align): Only handle vector override case.
1577 (arm_push_dummy_call): Use type_align.
1578 (arm_gdbarch_init): Register arm_type_align gdbarch function.
1580 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1582 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
1584 (pass_on_stack): Use type_align.
1585 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
1588 2019-04-23 Tom Tromey <tromey@adacore.com>
1590 * dwarf2read.c (line_header::file_name_at): Remove unused
1593 2019-04-23 Tom de Vries <tdevries@suse.de>
1596 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
1600 2019-03-27 Ali Tamur <tamur@google.com>
1602 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
1603 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
1604 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
1605 (dwarf_expr_context::get_addr_index): Likewise
1606 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
1607 (symbol_needs_eval_context::get_addr_index): Likewise
1608 (disassemble_dwarf_expression): Add DW_OP_addrx
1609 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
1610 (read_cutu_die_from_dwo): Update comment
1611 (skip_one_die): Add DW_FORM_addrx
1612 (read_attribute_value): Likewise
1613 (var_decode_location): Add DW_OP_addrx
1614 (dwarf2_const_value_attr): Add DW_FORM_addrx
1615 (dump_die_shallow): Likewise
1616 (dwarf2_fetch_constant_bytes): Likewise
1617 (decode_locdesc): Add DW_OP_addrx
1618 (skip_form_bytes): Add DW_FORM_addrx
1620 2019-04-22 Ali Tamur <tamur@google.com>
1622 * MAINTAINERS (Write After Approval): Add self.
1624 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
1626 * solib-svr4.c (get_svr4_info): Add pspace parameter.
1627 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
1628 (open_symbol_file_object): Likewise.
1629 (svr4_default_sos): Add info parameter.
1630 (svr4_read_so_list): Likewise.
1631 (svr4_current_sos_direct): Adjust functions calls to pass down
1633 (svr4_current_sos_1): Add info parameter.
1634 (svr4_current_sos): Call get_svr4_info, pass info down to
1636 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
1638 (svr4_in_dynsym_resolve_code): Pass current_program_space to
1640 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
1642 (probes_table_remove_objfile_probes): Likewise.
1643 (register_solib_event_probe): Add info parameter.
1644 (solist_update_incremental): Pass info parameter down to
1646 (disable_probes_interface): Add info parameter.
1647 (svr4_handle_solib_event): Pass current_program_space to
1648 get_svr4_info. Adjust disable_probes_interface cleanup.
1649 (svr4_create_probe_breakpoints): Add info parameter, pass it
1650 down to register_solib_event_probe.
1651 (svr4_create_solib_event_breakpoints): Add info parameter,
1652 pass it down to svr4_create_probe_breakpoints.
1653 (enable_break): Pass info down to
1654 svr4_create_solib_event_breakpoints.
1655 (svr4_solib_create_inferior_hook): Pass current_program_space to
1657 (svr4_clear_solib): Likewise.
1659 2019-04-22 Pedro Alves <palves@redhat.com>
1661 * solib-svr4.c (svr4_free_objfile_observer): New.
1662 (probe_and_action::objfile): New field.
1663 (probes_table_htab_remove_objfile_probes)
1664 (probes_table_remove_objfile_probes): New functions.
1665 (register_solib_event_probe): Add 'objfile' parameter. Store it
1666 in the new probe_and_action. Don't store the probe in 'lookup'.
1667 (svr4_create_probe_breakpoints): Pass objfile to
1668 register_solib_event_probe.
1669 (_initialize_svr4_solib): Register a free_objfile observer.
1671 2019-04-19 Tom Tromey <tom@tromey.com>
1673 * common/queue.h: Remove.
1675 2019-04-19 Tom Tromey <tom@tromey.com>
1677 * event-loop.c: Don't include "common/queue.h".
1679 2019-04-19 Tom Tromey <tom@tromey.com>
1681 * remote.c (remote_target): Use delete.
1682 * remote-notif.h: Include <list>, not "common/queue.h".
1683 (notif_client_p): Remove typedef.
1684 (remote_notif_state): Add constructor, destructor, initializer.
1685 <notif_queue>: Now a std::list.
1686 (remote_notif_state_xfree): Don't declare.
1687 * remote-notif.c (remote_notif_process, handle_notification)
1688 (remote_notif_state_allocate): Update.
1689 (~remote_notif_state): Rename from remote_notif_state_xfree.
1691 2019-04-19 Tom Tromey <tom@tromey.com>
1693 * symfile.c (reread_symbols): Update.
1694 * objfiles.c (objfile_register_static_link)
1695 (objfile_lookup_static_link): Update
1696 (~objfile) Don't delete static_links.
1697 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
1699 2019-04-19 Tom Tromey <tom@tromey.com>
1701 * type-stack.h (struct type_stack) <insert>: Constify string.
1702 * type-stack.c (type_stack::insert): Constify string.
1703 * gdbtypes.h (lookup_template_type): Update.
1704 (address_space_name_to_int): Update.
1705 * gdbtypes.c (address_space_name_to_int): Make space_identifier
1707 (lookup_template_type): Make name const.
1708 * c-exp.y: Update rules.
1709 (lex_one_token, classify_name, classify_inner_name)
1710 (c_print_token): Update.
1711 * p-exp.y: Update rules.
1713 * f-exp.y: Update rules.
1715 * d-exp.y: Update rules.
1716 (lex_one_token, classify_name, classify_inner_name): Update.
1717 * parse.c (write_dollar_variable, copy_name): Return std::string.
1718 * parser-defs.h (copy_name): Change return type.
1719 * m2-exp.y: Update rules.
1721 * go-exp.y (lex_one_token): Update.
1723 (classify_unsafe_function, classify_packaged_name)
1724 (classify_name, yylex): Update.
1726 2019-04-19 Sergei Trofimovich <siarheit@google.com>
1728 * configure.ac: add --enable-source-highlight switch.
1729 * configure: Regenerate.
1730 * top.c (print_gdb_version): plumb --enable-source-highlight
1731 status to "show configuration".
1733 2019-04-19 Tom Tromey <tromey@adacore.com>
1735 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
1737 (empty_record, ada_template_to_fixed_record_type_1)
1738 (template_to_static_fixed_type)
1739 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
1740 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
1741 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
1744 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
1747 * source.c (print_source_lines_base): Advance "iter" when a
1748 control character is seen.
1750 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1752 * inferior.h (struct infcall_suspend_state_deleter):
1753 Catch exception in destructor to avoid crash.
1755 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1757 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
1758 close to the add_com "shell".
1760 2019-04-18 Tom Tromey <tromey@adacore.com>
1762 * process-stratum-target.h (class process_stratum_target)
1763 <stratum>: Add "final".
1765 2019-04-17 Tom Tromey <tromey@adacore.com>
1767 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
1768 against nullptr before use.
1770 2019-04-17 Alan Hayward <alan.hayward@arm.com>
1772 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
1774 2019-04-17 Jim Wilson <jimw@sifive.com>
1775 Andrew Burgess <andrew.burgess@embecosm.com>
1777 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
1778 code read might fail, assume 4-byte breakpoint in that case.
1780 2019-04-15 Leszek Swirski <leszeks@google.com>
1782 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
1783 rather than a hand-rolled POD check when checking for forced MEMORY
1786 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1788 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
1789 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
1791 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
1792 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
1793 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
1796 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1798 * aarch64-linux-nat.c
1799 (aarch64_linux_nat_target::thread_architecture): Add override.
1800 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
1803 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1805 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
1807 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
1809 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
1810 target types of size 96-bits, add some additional comments, and
1811 check that the builtin type we found was the correct size.
1813 2019-04-12 Eli Zaretskii <eliz@gnu.org>
1815 * utils.c (prompt_for_continue): Don't restore the styling at the
1816 end, as applied_style has the wrong value. This fixes styling in
1817 long lists of file names that are interrupted by the "Continue?"
1820 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
1822 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
1823 * c-lang.c (c_language_defn): Likewise.
1824 (cplus_language_defn): Likewise.
1825 (asm_language_defn): Likewise.
1826 (minimal_language_defn): Likewise.
1827 * d-lang.c (d_language_defn): Likewise.
1828 * f-lang.c (f_language_defn): Likewise.
1829 * go-lang.c (go_language_defn): Likewise.
1830 * language.c (unknown_language_defn): Likewise.
1831 (auto_language_defn): Likewise.
1832 * language.h (struct language_defn): Remove la_magic field.
1833 (LANG_MAGIC): Delete.
1834 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
1835 * objc-lang.c (objc_language_defn): Likewise.
1836 * opencl-lang.c (opencl_language_defn): Likewise.
1837 * p-lang.c (pascal_language_defn): Likewise.
1838 * rust-lang.c (rust_language_defn): Likewise.
1840 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1842 * riscv-tdep.c (riscv_type_align): New function.
1843 (riscv_type_alignment): Delete.
1844 (riscv_arg_location): Use 'type_align'.
1845 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
1847 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1849 * gdbtypes.c (type_align): A struct with no non-static fields also
1852 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1854 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
1856 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
1858 (riscv_struct_info::analyse): New implementation using new
1859 analyse_inner member function.
1860 (riscv_struct_info::field_offset): New member function.
1861 (riscv_struct_info::m_offsets): New member variable.
1862 (riscv_struct_info::analyse_inner): New private member function,
1863 takes the old implementation of riscv_struct_info::analyse but
1864 extended to track field offsets.
1865 (riscv_call_arg_struct): Update the struct folding special cases
1866 to handle cases where empty C++ structs, which are non-zero
1868 (riscv_arg_location): Initialise the length of each location, a
1869 non-zero length now indicates the location is in use.
1870 (riscv_push_dummy_call): Allow for the first location having a
1871 non-zero offset when setting up arguments.
1872 (riscv_return_value): Likewise, but for return values.
1874 2019-04-11 Tom Tromey <tromey@adacore.com>
1876 * utils.c (internal_vproblem): Make "msg" const.
1878 2019-04-11 Alan Hayward <alan.hayward@arm.com>
1880 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
1881 * trad-frame.c (trad_frame_reset_saved_regs): New function.
1882 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
1883 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
1885 2019-04-10 Kevin Buettner <kevinb@redhat.com>
1887 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
1889 (fill_gregset): Call amd64_linux_collect_native_gregset instead
1890 of amd64_collect_native_gregset.
1891 (amd64_linux_nat_target::store_registers): Likewise.
1893 2019-04-10 Tom Tromey <tom@tromey.com>
1895 * symtab.c (lookup_global_symbol_from_objfile)
1896 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
1897 * objfiles.h (class separate_debug_iterator): New.
1898 (class separate_debug_range): New.
1899 (struct objfile) <separate_debug_objfiles>: New method.
1900 (objfile_separate_debug_iterate): Don't declare.
1901 * objfiles.c (separate_debug_iterator::operator++): Rename from
1902 objfile_separate_debug_iterate.
1903 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
1905 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
1908 2019-04-10 Tom Tromey <tom@tromey.com>
1910 * symfile.c (reread_symbols): Remove old comment.
1911 * objfiles.c (free_all_objfiles): Fix a typo.
1913 2019-04-10 Tom Tromey <tom@tromey.com>
1915 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
1916 * minsyms.c (lookup_minimal_symbol): Use foreach.
1917 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
1918 (lookup_minimal_symbol_solib_trampoline): Likewise.
1919 * symfile.c (reread_symbols): Use foreach.
1921 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
1922 Tom Tromey <tromey@adacore.com>
1925 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
1926 (rust_lex_int_test): Change "value" to be LONGEST.
1927 (rust_lex_tests): Add test for long integer literal.
1929 2019-04-09 Tom Tromey <tromey@adacore.com>
1931 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
1933 (extended_remote_target::attach): Update.
1934 (remote_target::remote_notice_new_inferior): Update.
1935 (remote_target::add_current_inferior_and_thread): Update.
1936 * inferior.c (exit_inferior_1): Use "false".
1937 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
1939 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
1941 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
1942 the "start" command.
1944 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1946 * python/py-inferior.c (infpy_thread_from_thread_handle):
1947 Adjust comments to reflect renaming of thread_from_thread_handle
1948 to thread_from_handle. Adjust keywords. Fix type error message.
1949 (inferior_object_methods): Add thread_from_handle. Retain
1950 thread_from_thread_handle, but mark it as deprecated.
1952 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1954 * gdbthread.h (find_thread_by_handle): Revise declaration.
1955 * thread.c (find_thread_by_handle): Likewise. Adjust
1957 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
1958 support for buffer objects as handles.
1960 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1962 * python/py-infthread.c (thpy_thread_handle): New function.
1963 (thread_object_methods): Register thpy_thread_handle.
1965 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1967 * gdbthread.h (thread_to_thread_handle): Declare.
1968 * thread.c (gdbtypes.h): Include.
1969 (thread_to_thread_handle): New function.
1971 * target.h (struct target_ops): Add thread_info_to_thread_handle.
1972 (target_thread_info_to_thread_handle): Declare.
1973 * target.c (target_thread_info_to_thread_handle): New function.
1974 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
1975 * target-delegates.c: Regenerate.
1977 * linux-thread-db.c (class thread_db_target): Add method
1978 thread_info_to_thread_handle.
1979 (thread_db_target::thread_info_to_thread_handle): Define.
1980 * remote.c (class remote_target): Add new method
1981 thread_info_to_thread_handle.
1982 (remote_target::thread_info_to_thread_handle): Define.
1984 2019-04-08 Pedro Alves <palves@redhat.com>
1986 * common/common-exceptions.c (throw_exception): Don't create
1987 named object to throw; throw directly.
1988 (throw_it): Likewise. Don't initialize gdb_exception::message
1989 here, with new; pass FMT and AP to the ctor instead.
1990 * common/common-exceptions.h: Include <string>.
1991 (gdb_exception::gdb_exception(enum return_reason, enum errors,
1992 const char *, va_list)): New ctor. Use std::make_shared.
1993 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
1995 (gdb_exception_error::gdb_exception_error(enum errors, const char
1997 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
1999 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
2001 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
2002 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
2005 2019-04-08 Tom Tromey <tom@tromey.com>
2007 * valops.c (value_rtti_indirect_type): Replace throw_exception
2009 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
2011 * thread.c (thr_try_catch_cmd): Replace throw_exception with
2013 * target.c (target_translate_tls_address): Replace throw_exception
2015 * stack.c (frame_apply_command_count): Replace throw_exception
2017 * solib-spu.c (append_ocl_sos): Replace throw_exception with
2019 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
2021 * rs6000-tdep.c (rs6000_frame_cache)
2022 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
2023 * remote.c: Replace throw_exception with throw.
2024 * record-full.c (record_full_message, record_full_wait_1)
2025 (record_full_restore): Replace throw_exception with throw.
2027 (get_thread_current_frame_id, record_btrace_start_replaying)
2028 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
2029 (cmd_record_btrace_start): Replace throw_exception with throw.
2030 * parse.c (parse_exp_in_context_1): Replace throw_exception with
2032 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
2033 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
2035 (find_linespec_symbols): Replace throw_exception with throw.
2036 * infrun.c (displaced_step_prepare, resume): Replace
2037 throw_exception with throw.
2038 * infcmd.c (post_create_inferior): Replace throw_exception with
2040 * inf-loop.c (inferior_event_handler): Replace throw_exception
2042 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
2043 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
2044 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
2045 (get_prev_frame_always, get_frame_pc_if_available)
2046 (get_frame_address_in_block_if_available, get_frame_language):
2047 Replace throw_exception with throw.
2048 * frame-unwind.c (frame_unwind_try_unwinder): Replace
2049 throw_exception with throw.
2050 * eval.c (fetch_subexp_value, evaluate_var_value)
2051 (evaluate_funcall, evaluate_subexp_standard): Replace
2052 throw_exception with throw.
2053 * dwarf2loc.c (call_site_find_chain)
2054 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
2055 Replace throw_exception with throw.
2056 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
2058 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
2060 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
2061 * completer.c (complete_line_internal): Replace throw_exception
2063 * compile/compile-object-run.c (compile_object_run): Replace
2064 throw_exception with throw.
2065 * cli/cli-script.c (process_next_line): Replace throw_exception
2067 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
2068 (btrace_enable, btrace_maint_update_pt_packets): Replace
2069 throw_exception with throw.
2070 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
2071 throw_exception with throw.
2072 * break-catch-throw.c (re_set_exception_catchpoint): Replace
2073 throw_exception with throw.
2074 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
2075 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
2076 * aarch64-tdep.c (aarch64_make_prologue_cache)
2077 (aarch64_make_stub_cache): Replace throw_exception with throw.
2079 2019-04-08 Tom Tromey <tom@tromey.com>
2081 * common/common-exceptions.c (throw_exception): Rename from
2082 throw_exception_cxx. Remove old copy. Make argument const.
2083 (throw_it): Create and throw exception objects directly.
2084 * common/common-exceptions.h (throw_exception): Make argument
2086 (struct gdb_exception_error): Add constructor.
2087 (struct gdb_exception_quit): Add constructor.
2089 2019-04-08 Tom Tromey <tom@tromey.com>
2091 * common/common-exceptions.h (exception_rethrow): Don't declare.
2092 (TRY_SJLJ): Update comment.
2093 (TRY, CATCH, END_CATCH): Remove.
2094 * common/common-exceptions.c (exception_rethrow): Remove.
2096 2019-04-08 Tom Tromey <tom@tromey.com>
2098 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
2100 (gdb_exception_error): Rename from
2101 gdb_exception_RETURN_MASK_ERROR.
2102 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
2103 (gdb_quit_bad_alloc): Update.
2104 * aarch64-tdep.c: Update.
2105 * ada-lang.c: Update.
2106 * ada-typeprint.c: Update.
2107 * ada-valprint.c: Update.
2108 * amd64-tdep.c: Update.
2109 * arch-utils.c: Update.
2110 * break-catch-throw.c: Update.
2111 * breakpoint.c: Update.
2113 * c-varobj.c: Update.
2114 * cli/cli-cmds.c: Update.
2115 * cli/cli-interp.c: Update.
2116 * cli/cli-script.c: Update.
2117 * common/common-exceptions.c: Update.
2118 * common/new-op.c: Update.
2119 * common/selftest.c: Update.
2120 * compile/compile-c-symbols.c: Update.
2121 * compile/compile-cplus-symbols.c: Update.
2122 * compile/compile-object-load.c: Update.
2123 * compile/compile-object-run.c: Update.
2124 * completer.c: Update.
2125 * corelow.c: Update.
2127 * cp-support.c: Update.
2128 * cp-valprint.c: Update.
2129 * darwin-nat.c: Update.
2130 * disasm-selftests.c: Update.
2131 * dtrace-probe.c: Update.
2132 * dwarf-index-cache.c: Update.
2133 * dwarf-index-write.c: Update.
2134 * dwarf2-frame-tailcall.c: Update.
2135 * dwarf2-frame.c: Update.
2136 * dwarf2loc.c: Update.
2137 * dwarf2read.c: Update.
2139 * event-loop.c: Update.
2140 * event-top.c: Update.
2142 * f-valprint.c: Update.
2143 * fbsd-tdep.c: Update.
2144 * frame-unwind.c: Update.
2146 * gdbtypes.c: Update.
2147 * gnu-v3-abi.c: Update.
2148 * guile/guile-internal.h: Update.
2149 * guile/scm-block.c: Update.
2150 * guile/scm-breakpoint.c: Update.
2151 * guile/scm-cmd.c: Update.
2152 * guile/scm-disasm.c: Update.
2153 * guile/scm-frame.c: Update.
2154 * guile/scm-lazy-string.c: Update.
2155 * guile/scm-math.c: Update.
2156 * guile/scm-param.c: Update.
2157 * guile/scm-ports.c: Update.
2158 * guile/scm-pretty-print.c: Update.
2159 * guile/scm-symbol.c: Update.
2160 * guile/scm-symtab.c: Update.
2161 * guile/scm-type.c: Update.
2162 * guile/scm-value.c: Update.
2163 * i386-linux-tdep.c: Update.
2164 * i386-tdep.c: Update.
2165 * inf-loop.c: Update.
2166 * infcall.c: Update.
2170 * language.c: Update.
2171 * linespec.c: Update.
2172 * linux-fork.c: Update.
2173 * linux-nat.c: Update.
2174 * linux-tdep.c: Update.
2175 * linux-thread-db.c: Update.
2177 * mi/mi-cmd-break.c: Update.
2178 * mi/mi-cmd-stack.c: Update.
2179 * mi/mi-interp.c: Update.
2180 * mi/mi-main.c: Update.
2181 * objc-lang.c: Update.
2182 * p-valprint.c: Update.
2184 * ppc-linux-tdep.c: Update.
2185 * printcmd.c: Update.
2186 * python/py-arch.c: Update.
2187 * python/py-breakpoint.c: Update.
2188 * python/py-cmd.c: Update.
2189 * python/py-finishbreakpoint.c: Update.
2190 * python/py-frame.c: Update.
2191 * python/py-framefilter.c: Update.
2192 * python/py-gdb-readline.c: Update.
2193 * python/py-inferior.c: Update.
2194 * python/py-infthread.c: Update.
2195 * python/py-lazy-string.c: Update.
2196 * python/py-linetable.c: Update.
2197 * python/py-objfile.c: Update.
2198 * python/py-param.c: Update.
2199 * python/py-prettyprint.c: Update.
2200 * python/py-progspace.c: Update.
2201 * python/py-record-btrace.c: Update.
2202 * python/py-record.c: Update.
2203 * python/py-symbol.c: Update.
2204 * python/py-type.c: Update.
2205 * python/py-unwind.c: Update.
2206 * python/py-utils.c: Update.
2207 * python/py-value.c: Update.
2208 * python/python.c: Update.
2209 * record-btrace.c: Update.
2210 * record-full.c: Update.
2211 * remote-fileio.c: Update.
2213 * riscv-tdep.c: Update.
2214 * rs6000-aix-tdep.c: Update.
2215 * rs6000-tdep.c: Update.
2216 * rust-exp.y: Update.
2217 * rust-lang.c: Update.
2218 * s390-tdep.c: Update.
2219 * selftest-arch.c: Update.
2220 * solib-dsbt.c: Update.
2221 * solib-frv.c: Update.
2222 * solib-spu.c: Update.
2223 * solib-svr4.c: Update.
2225 * sparc64-linux-tdep.c: Update.
2227 * symfile-mem.c: Update.
2228 * symmisc.c: Update.
2232 * tracefile-tfile.c: Update.
2233 * tui/tui.c: Update.
2234 * typeprint.c: Update.
2235 * unittests/cli-utils-selftests.c: Update.
2236 * unittests/parse-connection-spec-selftests.c: Update.
2238 * valprint.c: Update.
2241 * windows-nat.c: Update.
2242 * x86-linux-nat.c: Update.
2243 * xml-support.c: Update.
2245 2019-04-08 Tom Tromey <tom@tromey.com>
2247 * xml-support.c: Use C++ exception handling.
2248 * x86-linux-nat.c: Use C++ exception handling.
2249 * windows-nat.c: Use C++ exception handling.
2250 * varobj.c: Use C++ exception handling.
2251 * value.c: Use C++ exception handling.
2252 * valprint.c: Use C++ exception handling.
2253 * valops.c: Use C++ exception handling.
2254 * unittests/parse-connection-spec-selftests.c: Use C++ exception
2256 * unittests/cli-utils-selftests.c: Use C++ exception handling.
2257 * typeprint.c: Use C++ exception handling.
2258 * tui/tui.c: Use C++ exception handling.
2259 * tracefile-tfile.c: Use C++ exception handling.
2260 * top.c: Use C++ exception handling.
2261 * thread.c: Use C++ exception handling.
2262 * target.c: Use C++ exception handling.
2263 * symmisc.c: Use C++ exception handling.
2264 * symfile-mem.c: Use C++ exception handling.
2265 * stack.c: Use C++ exception handling.
2266 * sparc64-linux-tdep.c: Use C++ exception handling.
2267 * solib.c: Use C++ exception handling.
2268 * solib-svr4.c: Use C++ exception handling.
2269 * solib-spu.c: Use C++ exception handling.
2270 * solib-frv.c: Use C++ exception handling.
2271 * solib-dsbt.c: Use C++ exception handling.
2272 * selftest-arch.c: Use C++ exception handling.
2273 * s390-tdep.c: Use C++ exception handling.
2274 * rust-lang.c: Use C++ exception handling.
2275 * rust-exp.y: Use C++ exception handling.
2276 * rs6000-tdep.c: Use C++ exception handling.
2277 * rs6000-aix-tdep.c: Use C++ exception handling.
2278 * riscv-tdep.c: Use C++ exception handling.
2279 * remote.c: Use C++ exception handling.
2280 * remote-fileio.c: Use C++ exception handling.
2281 * record-full.c: Use C++ exception handling.
2282 * record-btrace.c: Use C++ exception handling.
2283 * python/python.c: Use C++ exception handling.
2284 * python/py-value.c: Use C++ exception handling.
2285 * python/py-utils.c: Use C++ exception handling.
2286 * python/py-unwind.c: Use C++ exception handling.
2287 * python/py-type.c: Use C++ exception handling.
2288 * python/py-symbol.c: Use C++ exception handling.
2289 * python/py-record.c: Use C++ exception handling.
2290 * python/py-record-btrace.c: Use C++ exception handling.
2291 * python/py-progspace.c: Use C++ exception handling.
2292 * python/py-prettyprint.c: Use C++ exception handling.
2293 * python/py-param.c: Use C++ exception handling.
2294 * python/py-objfile.c: Use C++ exception handling.
2295 * python/py-linetable.c: Use C++ exception handling.
2296 * python/py-lazy-string.c: Use C++ exception handling.
2297 * python/py-infthread.c: Use C++ exception handling.
2298 * python/py-inferior.c: Use C++ exception handling.
2299 * python/py-gdb-readline.c: Use C++ exception handling.
2300 * python/py-framefilter.c: Use C++ exception handling.
2301 * python/py-frame.c: Use C++ exception handling.
2302 * python/py-finishbreakpoint.c: Use C++ exception handling.
2303 * python/py-cmd.c: Use C++ exception handling.
2304 * python/py-breakpoint.c: Use C++ exception handling.
2305 * python/py-arch.c: Use C++ exception handling.
2306 * printcmd.c: Use C++ exception handling.
2307 * ppc-linux-tdep.c: Use C++ exception handling.
2308 * parse.c: Use C++ exception handling.
2309 * p-valprint.c: Use C++ exception handling.
2310 * objc-lang.c: Use C++ exception handling.
2311 * mi/mi-main.c: Use C++ exception handling.
2312 * mi/mi-interp.c: Use C++ exception handling.
2313 * mi/mi-cmd-stack.c: Use C++ exception handling.
2314 * mi/mi-cmd-break.c: Use C++ exception handling.
2315 * main.c: Use C++ exception handling.
2316 * linux-thread-db.c: Use C++ exception handling.
2317 * linux-tdep.c: Use C++ exception handling.
2318 * linux-nat.c: Use C++ exception handling.
2319 * linux-fork.c: Use C++ exception handling.
2320 * linespec.c: Use C++ exception handling.
2321 * language.c: Use C++ exception handling.
2322 * jit.c: Use C++ exception handling.
2323 * infrun.c: Use C++ exception handling.
2324 * infcmd.c: Use C++ exception handling.
2325 * infcall.c: Use C++ exception handling.
2326 * inf-loop.c: Use C++ exception handling.
2327 * i386-tdep.c: Use C++ exception handling.
2328 * i386-linux-tdep.c: Use C++ exception handling.
2329 * guile/scm-value.c: Use C++ exception handling.
2330 * guile/scm-type.c: Use C++ exception handling.
2331 * guile/scm-symtab.c: Use C++ exception handling.
2332 * guile/scm-symbol.c: Use C++ exception handling.
2333 * guile/scm-pretty-print.c: Use C++ exception handling.
2334 * guile/scm-ports.c: Use C++ exception handling.
2335 * guile/scm-param.c: Use C++ exception handling.
2336 * guile/scm-math.c: Use C++ exception handling.
2337 * guile/scm-lazy-string.c: Use C++ exception handling.
2338 * guile/scm-frame.c: Use C++ exception handling.
2339 * guile/scm-disasm.c: Use C++ exception handling.
2340 * guile/scm-cmd.c: Use C++ exception handling.
2341 * guile/scm-breakpoint.c: Use C++ exception handling.
2342 * guile/scm-block.c: Use C++ exception handling.
2343 * guile/guile-internal.h: Use C++ exception handling.
2344 * gnu-v3-abi.c: Use C++ exception handling.
2345 * gdbtypes.c: Use C++ exception handling.
2346 * frame.c: Use C++ exception handling.
2347 * frame-unwind.c: Use C++ exception handling.
2348 * fbsd-tdep.c: Use C++ exception handling.
2349 * f-valprint.c: Use C++ exception handling.
2350 * exec.c: Use C++ exception handling.
2351 * event-top.c: Use C++ exception handling.
2352 * event-loop.c: Use C++ exception handling.
2353 * eval.c: Use C++ exception handling.
2354 * dwarf2read.c: Use C++ exception handling.
2355 * dwarf2loc.c: Use C++ exception handling.
2356 * dwarf2-frame.c: Use C++ exception handling.
2357 * dwarf2-frame-tailcall.c: Use C++ exception handling.
2358 * dwarf-index-write.c: Use C++ exception handling.
2359 * dwarf-index-cache.c: Use C++ exception handling.
2360 * dtrace-probe.c: Use C++ exception handling.
2361 * disasm-selftests.c: Use C++ exception handling.
2362 * darwin-nat.c: Use C++ exception handling.
2363 * cp-valprint.c: Use C++ exception handling.
2364 * cp-support.c: Use C++ exception handling.
2365 * cp-abi.c: Use C++ exception handling.
2366 * corelow.c: Use C++ exception handling.
2367 * completer.c: Use C++ exception handling.
2368 * compile/compile-object-run.c: Use C++ exception handling.
2369 * compile/compile-object-load.c: Use C++ exception handling.
2370 * compile/compile-cplus-symbols.c: Use C++ exception handling.
2371 * compile/compile-c-symbols.c: Use C++ exception handling.
2372 * common/selftest.c: Use C++ exception handling.
2373 * common/new-op.c: Use C++ exception handling.
2374 * cli/cli-script.c: Use C++ exception handling.
2375 * cli/cli-interp.c: Use C++ exception handling.
2376 * cli/cli-cmds.c: Use C++ exception handling.
2377 * c-varobj.c: Use C++ exception handling.
2378 * btrace.c: Use C++ exception handling.
2379 * breakpoint.c: Use C++ exception handling.
2380 * break-catch-throw.c: Use C++ exception handling.
2381 * arch-utils.c: Use C++ exception handling.
2382 * amd64-tdep.c: Use C++ exception handling.
2383 * ada-valprint.c: Use C++ exception handling.
2384 * ada-typeprint.c: Use C++ exception handling.
2385 * ada-lang.c: Use C++ exception handling.
2386 * aarch64-tdep.c: Use C++ exception handling.
2388 2019-04-08 Tom Tromey <tom@tromey.com>
2390 * xml-support.c (gdb_xml_parser::parse): Update.
2391 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2392 * value.c (show_convenience): Update.
2393 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
2394 (test_parse_flags_qcs): Update.
2395 * thread.c (thr_try_catch_cmd): Update.
2396 * target.c (target_translate_tls_address): Update.
2397 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2398 (info_frame_command_core, frame_apply_command_count): Update.
2399 * rust-exp.y (rust_lex_exception_test): Update.
2400 * riscv-tdep.c (riscv_print_one_register_info): Update.
2401 * remote.c (remote_target::enable_btrace): Update.
2402 * record-btrace.c (record_btrace_enable_warn): Update.
2403 * python/py-utils.c (gdbpy_convert_exception): Update.
2404 * printcmd.c (do_one_display, print_variable_and_value): Update.
2405 * mi/mi-main.c (mi_print_exception): Update.
2406 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
2407 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2408 * linux-nat.c (linux_nat_target::attach): Update.
2409 * linux-fork.c (class scoped_switch_fork_info): Update.
2410 * infrun.c (displaced_step_prepare): Update.
2411 * infcall.c (call_function_by_hand_dummy): Update.
2412 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
2413 * gnu-v3-abi.c (print_one_vtable): Update.
2414 * frame.c (get_prev_frame_always): Update.
2415 * f-valprint.c (info_common_command_for_block): Update.
2416 * exec.c (try_open_exec_file): Update.
2417 * exceptions.c (print_exception, exception_print)
2418 (exception_fprintf, exception_print_same): Update.
2419 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
2420 * dwarf-index-cache.c (index_cache::store)
2421 (index_cache::lookup_gdb_index): Update.
2422 * darwin-nat.c (maybe_cache_shell): Update.
2423 * cp-valprint.c (cp_print_value_fields): Update.
2424 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
2425 (gcc_cplus_symbol_address): Update.
2426 * compile/compile-c-symbols.c (gcc_convert_symbol)
2427 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
2428 * common/selftest.c: Update.
2429 * common/common-exceptions.h (struct gdb_exception) <message>: Now
2431 (exception_try_scope_entry, exception_try_scope_exit): Don't
2433 (struct exception_try_scope): Remove.
2434 (TRY): Don't use exception_try_scope.
2435 (struct gdb_exception): Add constructor, operator=.
2437 (struct gdb_exception_RETURN_MASK_ALL)
2438 (struct gdb_exception_RETURN_MASK_ERROR)
2439 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
2440 (struct gdb_quit_bad_alloc): Update.
2441 * common/common-exceptions.c (exception_none): Change
2443 (struct catcher) <state, exception>: Initialize inline.
2444 <prev>: Remove member.
2445 (current_catcher): Remove.
2446 (catchers): New global.
2447 (exceptions_state_mc_init): Simplify.
2448 (catcher_pop): Remove.
2449 (exceptions_state_mc, exceptions_state_mc_catch): Update.
2450 (try_scope_depth, exception_try_scope_entry)
2451 (exception_try_scope_exit): Remove.
2452 (throw_exception_sjlj): Update.
2453 (exception_messages, exception_messages_size): Remove.
2454 (throw_it): Simplify.
2455 (gdb_exception_sliced_copy): Remove.
2456 (throw_exception_cxx): Update.
2457 * cli/cli-script.c (script_from_file): Update.
2458 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
2460 * ada-valprint.c (ada_val_print): Update.
2461 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
2462 (create_excep_cond_exprs): Update.
2464 2019-04-08 Tom Tromey <tom@tromey.com>
2466 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
2467 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
2468 (TRY, CATCH, END_CATCH): Remove some definitions.
2469 * common/common-exceptions.c: Don't use GDB_XCPT.
2470 (catcher_list_size): Remove.
2471 (throw_exception, throw_it): Simplify.
2473 2019-04-05 Tom Tromey <tom@tromey.com>
2475 Revert the header-sorting patch.
2476 * ft32-tdep.c: Revert.
2477 * frv-tdep.c: Revert.
2478 * frv-linux-tdep.c: Revert.
2480 * frame-unwind.c: Revert.
2481 * frame-base.c: Revert.
2482 * fork-child.c: Revert.
2483 * findvar.c: Revert.
2484 * findcmd.c: Revert.
2485 * filesystem.c: Revert.
2486 * filename-seen-cache.h: Revert.
2487 * filename-seen-cache.c: Revert.
2488 * fbsd-tdep.c: Revert.
2489 * fbsd-nat.h: Revert.
2490 * fbsd-nat.c: Revert.
2491 * f-valprint.c: Revert.
2492 * f-typeprint.c: Revert.
2494 * extension.h: Revert.
2495 * extension.c: Revert.
2496 * extension-priv.h: Revert.
2497 * expprint.c: Revert.
2500 * exceptions.c: Revert.
2501 * event-top.c: Revert.
2502 * event-loop.c: Revert.
2504 * elfread.c: Revert.
2505 * dwarf2read.h: Revert.
2506 * dwarf2read.c: Revert.
2507 * dwarf2loc.c: Revert.
2508 * dwarf2expr.h: Revert.
2509 * dwarf2expr.c: Revert.
2510 * dwarf2-frame.c: Revert.
2511 * dwarf2-frame-tailcall.c: Revert.
2512 * dwarf-index-write.h: Revert.
2513 * dwarf-index-write.c: Revert.
2514 * dwarf-index-common.c: Revert.
2515 * dwarf-index-cache.h: Revert.
2516 * dwarf-index-cache.c: Revert.
2517 * dummy-frame.c: Revert.
2518 * dtrace-probe.c: Revert.
2521 * disasm-selftests.c: Revert.
2522 * dictionary.c: Revert.
2523 * dicos-tdep.c: Revert.
2524 * demangle.c: Revert.
2527 * darwin-nat.h: Revert.
2528 * darwin-nat.c: Revert.
2529 * darwin-nat-info.c: Revert.
2530 * d-valprint.c: Revert.
2531 * d-namespace.c: Revert.
2534 * csky-tdep.c: Revert.
2535 * csky-linux-tdep.c: Revert.
2536 * cris-tdep.c: Revert.
2537 * cris-linux-tdep.c: Revert.
2538 * cp-valprint.c: Revert.
2539 * cp-support.c: Revert.
2540 * cp-namespace.c: Revert.
2542 * corelow.c: Revert.
2543 * corefile.c: Revert.
2544 * continuations.c: Revert.
2545 * completer.h: Revert.
2546 * completer.c: Revert.
2547 * complaints.c: Revert.
2548 * coffread.c: Revert.
2549 * coff-pe-read.c: Revert.
2550 * cli-out.h: Revert.
2551 * cli-out.c: Revert.
2552 * charset.c: Revert.
2553 * c-varobj.c: Revert.
2554 * c-valprint.c: Revert.
2555 * c-typeprint.c: Revert.
2557 * buildsym.c: Revert.
2558 * buildsym-legacy.c: Revert.
2559 * build-id.h: Revert.
2560 * build-id.c: Revert.
2562 * bsd-uthread.c: Revert.
2563 * breakpoint.h: Revert.
2564 * breakpoint.c: Revert.
2565 * break-catch-throw.c: Revert.
2566 * break-catch-syscall.c: Revert.
2567 * break-catch-sig.c: Revert.
2568 * blockframe.c: Revert.
2570 * bfin-tdep.c: Revert.
2571 * bfin-linux-tdep.c: Revert.
2572 * bfd-target.c: Revert.
2574 * ax-general.c: Revert.
2577 * avr-tdep.c: Revert.
2579 * auto-load.c: Revert.
2580 * arm-wince-tdep.c: Revert.
2581 * arm-tdep.c: Revert.
2582 * arm-symbian-tdep.c: Revert.
2583 * arm-pikeos-tdep.c: Revert.
2584 * arm-obsd-tdep.c: Revert.
2585 * arm-nbsd-tdep.c: Revert.
2586 * arm-nbsd-nat.c: Revert.
2587 * arm-linux-tdep.c: Revert.
2588 * arm-linux-nat.c: Revert.
2589 * arm-fbsd-tdep.c: Revert.
2590 * arm-fbsd-nat.c: Revert.
2591 * arm-bsd-tdep.c: Revert.
2592 * arch-utils.c: Revert.
2593 * arc-tdep.c: Revert.
2594 * arc-newlib-tdep.c: Revert.
2595 * annotate.h: Revert.
2596 * annotate.c: Revert.
2597 * amd64-windows-tdep.c: Revert.
2598 * amd64-windows-nat.c: Revert.
2599 * amd64-tdep.c: Revert.
2600 * amd64-sol2-tdep.c: Revert.
2601 * amd64-obsd-tdep.c: Revert.
2602 * amd64-obsd-nat.c: Revert.
2603 * amd64-nbsd-tdep.c: Revert.
2604 * amd64-nbsd-nat.c: Revert.
2605 * amd64-nat.c: Revert.
2606 * amd64-linux-tdep.c: Revert.
2607 * amd64-linux-nat.c: Revert.
2608 * amd64-fbsd-tdep.c: Revert.
2609 * amd64-fbsd-nat.c: Revert.
2610 * amd64-dicos-tdep.c: Revert.
2611 * amd64-darwin-tdep.c: Revert.
2612 * amd64-bsd-nat.c: Revert.
2613 * alpha-tdep.c: Revert.
2614 * alpha-obsd-tdep.c: Revert.
2615 * alpha-nbsd-tdep.c: Revert.
2616 * alpha-mdebug-tdep.c: Revert.
2617 * alpha-linux-tdep.c: Revert.
2618 * alpha-linux-nat.c: Revert.
2619 * alpha-bsd-tdep.c: Revert.
2620 * alpha-bsd-nat.c: Revert.
2621 * aix-thread.c: Revert.
2623 * addrmap.c: Revert.
2624 * ada-varobj.c: Revert.
2625 * ada-valprint.c: Revert.
2626 * ada-typeprint.c: Revert.
2627 * ada-tasks.c: Revert.
2628 * ada-lang.c: Revert.
2629 * aarch64-tdep.c: Revert.
2630 * aarch64-ravenscar-thread.c: Revert.
2631 * aarch64-newlib-tdep.c: Revert.
2632 * aarch64-linux-tdep.c: Revert.
2633 * aarch64-linux-nat.c: Revert.
2634 * aarch64-fbsd-tdep.c: Revert.
2635 * aarch64-fbsd-nat.c: Revert.
2636 * aarch32-linux-nat.c: Revert.
2638 2019-04-05 Tom Tromey <tom@tromey.com>
2640 * ft32-tdep.c: Sort headers.
2641 * frv-tdep.c: Sort headers.
2642 * frv-linux-tdep.c: Sort headers.
2643 * frame.c: Sort headers.
2644 * frame-unwind.c: Sort headers.
2645 * frame-base.c: Sort headers.
2646 * fork-child.c: Sort headers.
2647 * findvar.c: Sort headers.
2648 * findcmd.c: Sort headers.
2649 * filesystem.c: Sort headers.
2650 * filename-seen-cache.h: Sort headers.
2651 * filename-seen-cache.c: Sort headers.
2652 * fbsd-tdep.c: Sort headers.
2653 * fbsd-nat.h: Sort headers.
2654 * fbsd-nat.c: Sort headers.
2655 * f-valprint.c: Sort headers.
2656 * f-typeprint.c: Sort headers.
2657 * f-lang.c: Sort headers.
2658 * extension.h: Sort headers.
2659 * extension.c: Sort headers.
2660 * extension-priv.h: Sort headers.
2661 * expprint.c: Sort headers.
2662 * exec.h: Sort headers.
2663 * exec.c: Sort headers.
2664 * exceptions.c: Sort headers.
2665 * event-top.c: Sort headers.
2666 * event-loop.c: Sort headers.
2667 * eval.c: Sort headers.
2668 * elfread.c: Sort headers.
2669 * dwarf2read.h: Sort headers.
2670 * dwarf2read.c: Sort headers.
2671 * dwarf2loc.c: Sort headers.
2672 * dwarf2expr.h: Sort headers.
2673 * dwarf2expr.c: Sort headers.
2674 * dwarf2-frame.c: Sort headers.
2675 * dwarf2-frame-tailcall.c: Sort headers.
2676 * dwarf-index-write.h: Sort headers.
2677 * dwarf-index-write.c: Sort headers.
2678 * dwarf-index-common.c: Sort headers.
2679 * dwarf-index-cache.h: Sort headers.
2680 * dwarf-index-cache.c: Sort headers.
2681 * dummy-frame.c: Sort headers.
2682 * dtrace-probe.c: Sort headers.
2683 * disasm.h: Sort headers.
2684 * disasm.c: Sort headers.
2685 * disasm-selftests.c: Sort headers.
2686 * dictionary.c: Sort headers.
2687 * dicos-tdep.c: Sort headers.
2688 * demangle.c: Sort headers.
2689 * dcache.h: Sort headers.
2690 * dcache.c: Sort headers.
2691 * darwin-nat.h: Sort headers.
2692 * darwin-nat.c: Sort headers.
2693 * darwin-nat-info.c: Sort headers.
2694 * d-valprint.c: Sort headers.
2695 * d-namespace.c: Sort headers.
2696 * d-lang.c: Sort headers.
2697 * ctf.c: Sort headers.
2698 * csky-tdep.c: Sort headers.
2699 * csky-linux-tdep.c: Sort headers.
2700 * cris-tdep.c: Sort headers.
2701 * cris-linux-tdep.c: Sort headers.
2702 * cp-valprint.c: Sort headers.
2703 * cp-support.c: Sort headers.
2704 * cp-namespace.c: Sort headers.
2705 * cp-abi.c: Sort headers.
2706 * corelow.c: Sort headers.
2707 * corefile.c: Sort headers.
2708 * continuations.c: Sort headers.
2709 * completer.h: Sort headers.
2710 * completer.c: Sort headers.
2711 * complaints.c: Sort headers.
2712 * coffread.c: Sort headers.
2713 * coff-pe-read.c: Sort headers.
2714 * cli-out.h: Sort headers.
2715 * cli-out.c: Sort headers.
2716 * charset.c: Sort headers.
2717 * c-varobj.c: Sort headers.
2718 * c-valprint.c: Sort headers.
2719 * c-typeprint.c: Sort headers.
2720 * c-lang.c: Sort headers.
2721 * buildsym.c: Sort headers.
2722 * buildsym-legacy.c: Sort headers.
2723 * build-id.h: Sort headers.
2724 * build-id.c: Sort headers.
2725 * btrace.c: Sort headers.
2726 * bsd-uthread.c: Sort headers.
2727 * breakpoint.h: Sort headers.
2728 * breakpoint.c: Sort headers.
2729 * break-catch-throw.c: Sort headers.
2730 * break-catch-syscall.c: Sort headers.
2731 * break-catch-sig.c: Sort headers.
2732 * blockframe.c: Sort headers.
2733 * block.c: Sort headers.
2734 * bfin-tdep.c: Sort headers.
2735 * bfin-linux-tdep.c: Sort headers.
2736 * bfd-target.c: Sort headers.
2737 * bcache.c: Sort headers.
2738 * ax-general.c: Sort headers.
2739 * ax-gdb.h: Sort headers.
2740 * ax-gdb.c: Sort headers.
2741 * avr-tdep.c: Sort headers.
2742 * auxv.c: Sort headers.
2743 * auto-load.c: Sort headers.
2744 * arm-wince-tdep.c: Sort headers.
2745 * arm-tdep.c: Sort headers.
2746 * arm-symbian-tdep.c: Sort headers.
2747 * arm-pikeos-tdep.c: Sort headers.
2748 * arm-obsd-tdep.c: Sort headers.
2749 * arm-nbsd-tdep.c: Sort headers.
2750 * arm-nbsd-nat.c: Sort headers.
2751 * arm-linux-tdep.c: Sort headers.
2752 * arm-linux-nat.c: Sort headers.
2753 * arm-fbsd-tdep.c: Sort headers.
2754 * arm-fbsd-nat.c: Sort headers.
2755 * arm-bsd-tdep.c: Sort headers.
2756 * arch-utils.c: Sort headers.
2757 * arc-tdep.c: Sort headers.
2758 * arc-newlib-tdep.c: Sort headers.
2759 * annotate.h: Sort headers.
2760 * annotate.c: Sort headers.
2761 * amd64-windows-tdep.c: Sort headers.
2762 * amd64-windows-nat.c: Sort headers.
2763 * amd64-tdep.c: Sort headers.
2764 * amd64-sol2-tdep.c: Sort headers.
2765 * amd64-obsd-tdep.c: Sort headers.
2766 * amd64-obsd-nat.c: Sort headers.
2767 * amd64-nbsd-tdep.c: Sort headers.
2768 * amd64-nbsd-nat.c: Sort headers.
2769 * amd64-nat.c: Sort headers.
2770 * amd64-linux-tdep.c: Sort headers.
2771 * amd64-linux-nat.c: Sort headers.
2772 * amd64-fbsd-tdep.c: Sort headers.
2773 * amd64-fbsd-nat.c: Sort headers.
2774 * amd64-dicos-tdep.c: Sort headers.
2775 * amd64-darwin-tdep.c: Sort headers.
2776 * amd64-bsd-nat.c: Sort headers.
2777 * alpha-tdep.c: Sort headers.
2778 * alpha-obsd-tdep.c: Sort headers.
2779 * alpha-nbsd-tdep.c: Sort headers.
2780 * alpha-mdebug-tdep.c: Sort headers.
2781 * alpha-linux-tdep.c: Sort headers.
2782 * alpha-linux-nat.c: Sort headers.
2783 * alpha-bsd-tdep.c: Sort headers.
2784 * alpha-bsd-nat.c: Sort headers.
2785 * aix-thread.c: Sort headers.
2786 * agent.c: Sort headers.
2787 * addrmap.c: Sort headers.
2788 * ada-varobj.c: Sort headers.
2789 * ada-valprint.c: Sort headers.
2790 * ada-typeprint.c: Sort headers.
2791 * ada-tasks.c: Sort headers.
2792 * ada-lang.c: Sort headers.
2793 * aarch64-tdep.c: Sort headers.
2794 * aarch64-ravenscar-thread.c: Sort headers.
2795 * aarch64-newlib-tdep.c: Sort headers.
2796 * aarch64-linux-tdep.c: Sort headers.
2797 * aarch64-linux-nat.c: Sort headers.
2798 * aarch64-fbsd-tdep.c: Sort headers.
2799 * aarch64-fbsd-nat.c: Sort headers.
2800 * aarch32-linux-nat.c: Sort headers.
2802 2019-04-04 Tom Tromey <tom@tromey.com>
2804 * varobj.c (varobj_create): Update.
2805 * rust-exp.y (struct rust_parser) <update_innermost_block,
2806 lookup_symbol>: New methods.
2807 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
2809 (rust_parser::rust_lookup_type)
2810 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2811 * printcmd.c (display_command, do_one_display): Update.
2812 * parser-defs.h (struct parser_state) <parser_state>: Add
2813 "tracker" parameter.
2814 (block_tracker): New member.
2815 (class innermost_block_tracker) <innermost_block_tracker>: Add
2817 <reset>: Remove method.
2818 (innermost_block): Don't declare.
2819 (null_post_parser): Update.
2820 * parse.c (innermost_block): Remove global.
2821 (write_dollar_variable): Update.
2822 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
2823 Remove "tracker_types" parameter.
2824 (parse_expression): Add "tracker" parameter.
2825 (parse_expression_for_completion): Update.
2826 (null_post_parser): Add "tracker" parameter.
2827 * p-exp.y: Update rules.
2828 * m2-exp.y: Update rules.
2829 * language.h (struct language_defn) <la_post_parser>: Add
2830 "tracker" parameter.
2831 * go-exp.y: Update rules.
2832 * f-exp.y: Update rules.
2833 * expression.h (parse_expression, parse_exp_1): Add "tracker"
2835 * d-exp.y: Update rules.
2836 * c-exp.y: Update rules.
2837 * breakpoint.c (set_breakpoint_condition): Create an
2838 innermost_block_tracker.
2839 (watch_command_1): Likewise.
2840 * ada-lang.c (resolve): Add "tracker" parameter.
2841 (resolve_subexp): Likewise.
2842 * ada-exp.y (write_var_from_sym): Update.
2844 2019-04-04 Tom Tromey <tom@tromey.com>
2846 * type-stack.h: New file.
2847 * type-stack.c: New file.
2848 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
2850 (insert_into_type_stack, insert_type, push_type, push_type_int)
2851 (insert_type_address_space, pop_type, pop_type_int)
2852 (pop_typelist, pop_type_stack, append_type_stack)
2853 (push_type_stack, get_type_stack, push_typelist)
2854 (follow_type_instance_flags, follow_types): Don't declare.
2855 * parse.c (type_stack): Remove global.
2856 (parse_exp_in_context): Update.
2857 (insert_into_type_stack, insert_type, push_type, push_type_int)
2858 (insert_type_address_space, pop_type, pop_type_int)
2859 (pop_typelist, pop_type_stack, append_type_stack)
2860 (push_type_stack, get_type_stack, push_typelist)
2861 (follow_type_instance_flags, follow_types): Remove (moved to
2863 * f-exp.y (type_stack): New global.
2865 (push_kind_type, f_parse): Update.
2866 * d-exp.y (type_stack): New global.
2869 * c-exp.y (struct c_parse_state) <type_stack>: New member.
2871 * Makefile.in (COMMON_SFILES): Add type-stack.c.
2872 (HFILES_NO_SRCDIR): Add type-stack.h.
2874 2019-04-04 Tom Tromey <tom@tromey.com>
2876 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
2877 (rust_parser::convert_ast_to_expression, rust_parse)
2878 (rust_lex_test_completion, rust_lex_tests): Update.
2879 * parser-defs.h (struct expr_completion_state): New.
2880 (struct parser_state) <parser_state>: Add completion parameter.
2881 <mark_struct_expression, mark_completion_tag>: New methods.
2882 <parse_completion, m_completion_state>: New members.
2883 (prefixify_expression, null_post_parser): Update.
2884 (mark_struct_expression, mark_completion_tag): Don't declare.
2885 * parse.c (parse_completion, expout_last_struct)
2886 (expout_tag_completion_type, expout_completion_name): Remove
2888 (parser_state::mark_struct_expression)
2889 (parser_state::mark_completion_tag): Now methods.
2890 (prefixify_expression): Add last_struct parameter.
2891 (prefixify_subexp): Likewise.
2892 (parse_exp_1): Update.
2893 (parse_exp_in_context): Add cstate parameter. Update.
2894 (parse_expression_for_completion): Create an
2895 expr_completion_state.
2896 (null_post_parser): Add "completion" parameter.
2897 * p-exp.y: Update rules.
2899 * language.h (struct language_defn) <la_post_parser>: Add
2900 "completing" parameter.
2901 * go-exp.y: Update rules.
2902 (lex_one_token): Update.
2903 * expression.h (parse_completion): Don't declare.
2904 * d-exp.y: Update rules.
2905 (lex_one_token): Update rules.
2906 * c-exp.y: Update rules.
2907 (lex_one_token): Update.
2908 * ada-lang.c (resolve): Add "parse_completion" parameter.
2909 (resolve_subexp): Likewise.
2910 (ada_resolve_function): Likewise.
2912 2019-04-04 Tom Tromey <tom@tromey.com>
2914 * parser-defs.h (struct parser_state) <start_arglist,
2915 end_arglist>: New methods.
2916 <arglist_len, m_funcall_chain>: New members.
2917 (arglist_len, start_arglist, end_arglist): Don't declare.
2918 * parse.c (arglist_len, funcall_chain): Remove global.
2919 (start_arglist, end_arglist): Remove functions.
2920 (parse_exp_in_context): Update.
2921 * p-exp.y: Update rules.
2922 * m2-exp.y: Update rules.
2923 * go-exp.y: Update rules.
2924 * f-exp.y: Update rules.
2925 * d-exp.y: Update rules.
2926 * c-exp.y: Update rules.
2928 2019-04-04 Tom Tromey <tom@tromey.com>
2930 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
2931 lex_operator, push_back>: New methods.
2933 (rust_parser::lex_hex, lex_escape): Rename and update.
2934 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
2935 (rust_parser::lex_operator): Rename and update.
2936 (rust_parser::lex_number, rustyylex, rustyyerror)
2937 (rust_lex_test_init, rust_lex_test_sequence)
2938 (rust_lex_test_push_back, rust_lex_tests): Update.
2939 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
2941 <lexptr, prev_lexptr>: New members.
2942 (lexptr, prev_lexptr): Don't declare.
2943 * parse.c (lexptr, prev_lexptr): Remove globals.
2944 (parse_exp_in_context): Update.
2945 * p-exp.y (yylex, yyerror): Update.
2946 * m2-exp.y (parse_number, yylex, yyerror): Update.
2947 * go-exp.y (lex_one_token, yyerror): Update.
2948 * f-exp.y (match_string_literal, yylex, yyerror): Update.
2949 * d-exp.y (lex_one_token, yyerror): Update.
2950 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
2951 (lex_one_token, yyerror): Update.
2952 * ada-lex.l (YY_INPUT): Update.
2953 (rewind_to_char): Update.
2954 * ada-exp.y (yyerror): Update.
2956 2019-04-04 Tom Tromey <tom@tromey.com>
2958 * rust-exp.y (rustyylex, rust_lex_tests): Update.
2959 * parser-defs.h (struct parser_state) <parser_state>: Add new
2961 <comma_terminates>: New member.
2962 (comma_terminates): Don't declare global.
2963 * parse.c (comma_terminates): Remove global.
2964 (parse_exp_in_context): Update.
2965 * p-exp.y (yylex): Update.
2966 * m2-exp.y (yylex): Update.
2967 * go-exp.y (lex_one_token): Update.
2968 * f-exp.y (yylex): Update.
2969 * d-exp.y (lex_one_token): Update.
2970 * c-exp.y (lex_one_token): Update.
2971 * ada-lex.l: Update.
2973 2019-04-04 Tom Tromey <tom@tromey.com>
2975 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
2976 (rustyylex, rust_lex_test_init, rust_lex_test_one)
2977 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
2978 * parser-defs.h (paren_depth): Don't declare.
2979 * parse.c (paren_depth): Remove global.
2980 (parse_exp_in_context): Update.
2981 * p-exp.y (paren_depth): New global.
2982 (pascal_parse): Initialize it.
2983 * m2-exp.y (paren_depth): New global.
2984 (m2_parse): Initialize it.
2985 * go-exp.y (paren_depth): New global.
2986 (go_parse): Initialize it.
2987 * f-exp.y (paren_depth): New global.
2988 (f_parse): Initialize it.
2989 * d-exp.y (paren_depth): New global.
2990 (d_parse): Initialize it.
2991 * c-exp.y (paren_depth): New global.
2992 (c_parse): Initialize it.
2993 * ada-lex.l (paren_depth): New global.
2994 (lexer_init): Initialize it.
2996 2019-04-04 Tom Tromey <tom@tromey.com>
2998 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
2999 (rust_parser::convert_ast_to_type)
3000 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
3001 * parser-defs.h (struct parser_state) <parser_state>: Add
3002 parameters. Initialize new members.
3003 <expression_context_block, expression_context_pc>: New members.
3004 * parse.c (expression_context_block, expression_context_pc):
3006 (parse_exp_in_context): Update.
3007 * p-exp.y: Update all rules.
3009 * m2-exp.y: Update all rules.
3011 * go-exp.y (yylex): Update.
3012 * f-exp.y (yylex): Update.
3013 * d-exp.y: Update all rules.
3015 * c-exp.y: Update all rules.
3016 (lex_one_token, classify_name, yylex, c_parse): Update.
3017 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
3019 2019-04-04 Tom Tromey <tom@tromey.com>
3021 * gdbarch.h, gdbarch.c: Rebuild.
3022 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
3024 (struct stap_parse_info): Replace "parser_state" with
3026 * parser-defs.h (struct expr_builder): Rename from "parser_state".
3027 (parser_state): New class.
3028 * parse.c (expr_builder): Rename.
3029 (expr_builder::release): Rename.
3030 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3031 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3032 (write_exp_elt_longcst, write_exp_elt_floatcst)
3033 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3034 (write_exp_string_vector, write_exp_bitstring)
3035 (write_exp_msymbol, mark_struct_expression)
3036 (write_dollar_variable)
3037 (insert_type_address_space, increase_expout_size): Replace
3038 "parser_state" with "expr_builder".
3039 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
3040 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
3041 "parser_state" with "expr_builder".
3043 2019-04-04 Tom Tromey <tom@tromey.com>
3045 * rust-exp.y: Replace "parse_language" with method call.
3047 (yylex): Replace "parse_language" with method call.
3049 (yylex): Replace "parse_language" with method call.
3050 * go-exp.y (classify_name): Replace "parse_language" with method
3052 * f-exp.y (yylex): Replace "parse_language" with method call.
3053 * d-exp.y (lex_one_token): Replace "parse_language" with method
3056 (lex_one_token, classify_name, yylex): Replace "parse_language"
3058 * ada-exp.y (find_primitive_type, type_char)
3059 (type_system_address): Replace "parse_language" with method call.
3061 2019-04-04 Tom Tromey <tom@tromey.com>
3063 * rust-exp.y: Replace "parse_gdbarch" with method call.
3064 * parse.c (write_dollar_variable, insert_type_address_space):
3065 Replace "parse_gdbarch" with method call.
3066 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
3068 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
3070 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
3071 "parse_gdbarch" with method call.
3072 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
3074 * f-exp.y (parse_type, parse_f_type, yylex): Replace
3075 "parse_gdbarch" with method call.
3076 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
3077 "parse_gdbarch" with method call.
3078 * c-exp.y (parse_type, parse_number, classify_name): Replace
3079 "parse_gdbarch" with method call.
3080 * ada-lex.l: Replace "parse_gdbarch" with method call.
3081 * ada-exp.y (parse_type, find_primitive_type, type_char)
3082 (type_system_address): Replace "parse_gdbarch" with method call.
3084 2019-04-04 Tom Tromey <tom@tromey.com>
3086 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3087 * stap-probe.c (stap_parse_argument): Update.
3088 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
3089 initial_size parameter.
3090 * rust-exp.y (rust_lex_tests): Update.
3091 * parse.c (parser_state): Update.
3092 (parse_exp_in_context): Update.
3093 * parser-defs.h (struct parser_state) <parser_state>: Remove
3094 "initial_size" parameter.
3096 2019-04-04 Tom Tromey <tom@tromey.com>
3098 * parser-defs.h (increase_expout_size): Don't declare.
3099 * parse.c (increase_expout_size): Now static.
3101 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
3103 * gnu-nat.c (gnu_nat_target::wait): Fix
3104 target_waitstatus_to_string call.
3106 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3108 * eval.c (evaluate_subexp_standard): Handle internal functions
3109 during Fortran function call handling.
3111 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3113 * NEWS: Mention new internal functions.
3114 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
3115 (read_base_type): Use dwarf2_init_complex_target_type.
3116 * value.c (creal_internal_fn): New function.
3117 (cimag_internal_fn): New function.
3118 (_initialize_values): Register new internal functions.
3120 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3122 * infrun.c (stop_all_threads): If debug_infrun, always
3123 trace the wait status after wait_one, using
3124 target_waitstatus_to_string and target_pid_to_str.
3125 (handle_inferior_event): Replace various trace of
3126 wait status kind by a single trace.
3127 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
3128 wait status kind image by target_waitstatus_to_string.
3129 * target/waitstatus.c (target_waitstatus_to_string): Fix
3132 2019-04-01 Tom Tromey <tromey@adacore.com>
3135 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
3137 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
3138 Pedro Alves <palves@redhat.com>
3140 * top.c (quit_force): Call 'finalize_values'.
3141 * value.c (finalize_values): New function.
3142 * value.h (finalize_values): Declare.
3144 2019-03-30 Eli Zaretskii <eliz@gnu.org>
3146 * NEWS: Announce $_gdb_major and $_gdb_minor.
3148 * top.c (init_gdb_version_vars): New function.
3149 (gdb_init): Call init_gdb_version_vars.
3151 2019-03-29 Tom Tromey <tromey@adacore.com>
3153 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
3154 help text. Remove dead code.
3156 2019-03-29 Keith Seitz <keiths@redhat.com>
3158 From Siddhesh Poyarekar:
3159 * f-lang.h (f77_get_upperbound): Return LONGEST.
3160 (f77_get_lowerbound): Likewise.
3161 * f-typeprint.c (f_type_print_varspec_suffix): Expand
3162 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
3164 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
3165 plongest to format print it.
3166 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
3167 (f77_get_upperbound): Likewise.
3168 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
3169 LOWER_BOUND to LONGEST.
3170 (f77_create_arrayprint_offset_tbl): Likewise.
3172 2019-03-29 Keith Seitz <keiths@redhat.com>
3174 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3175 %s/pulongest for TYPE_LENGTH instead of %d in format
3177 * ada-typerint.c (ada_print_type): Likewise.
3178 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
3179 * compile/compile-c-support.c (generate_register_struct): Likewise.
3180 * gdbtypes.c (recursive_dump_type): Likewise.
3181 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
3182 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
3183 instead of %d in format strings.
3184 * riscv-tdep.c (riscv_type_alignment): Cast second argument
3185 to std::min to ULONGEST.
3186 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
3187 instead of %d in format strings.
3188 * tracepoint.c (info_scope_command): Likewise.
3189 * typeprint.c (print_offset_data::update)
3190 (print_offset_data::finish): Likewise.
3191 * xtensa-tdep.c (xtensa_store_return_value)
3192 (xtensa_push_dummy_call): Likewise.
3194 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
3196 * windows-nat.c (display_selector): Fixed format specifications
3199 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3201 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
3203 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
3205 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
3206 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
3207 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
3208 (nios2_linux_init_abi): Install it.
3210 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3212 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
3214 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3216 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
3218 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3219 Tom Tromey <tromey@adacore.com>
3221 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
3223 2019-03-26 Joel Brobecker <brobecker@adacore.com>
3225 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
3226 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
3227 method to compute the bounds of range types. Also print "[evaluated]"
3228 if the bounds' values come from a dynamic evaluation.
3230 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
3232 * cp-valprint.c (cp_print_value_fields): Don't print trailing
3233 whitespace when pretty printing is on.
3235 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3237 * ppc-linux-nat.c: Add include.
3239 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3241 * NEWS: Mention AArch64 Pointer Authentication.
3243 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3245 * arm-linux-nat.c: Add include.
3247 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
3249 * source-cache.c (source_cache::get_source_lines): Re-read
3250 fullname after calling open_source_file.
3252 2019-03-25 John Baldwin <jhb@FreeBSD.org>
3254 * NEWS: Mention TLS support for FreeBSD.
3256 2019-03-25 Tom Tromey <tromey@adacore.com>
3258 * minsyms.c (BUNCH_SIZE): Update comment.
3259 (~minimal_symbol_reader): Remove old comment.
3260 (compact_minimal_symbols): Update comment.
3261 (minimal_symbol_reader::install): Remove old comment. Update
3264 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3266 * s390-linux-nat.c: Add include.
3268 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3270 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3271 Call linux_get_hwcap.
3272 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
3274 (aarch64_linux_get_hwcap): Remove function.
3275 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
3277 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
3279 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3280 * linux-tdep.c (linux_get_hwcap): Add function.
3281 (linux_get_hwcap2): Likewise.
3282 * linux-tdep.h (linux_get_hwcap): Add declaration.
3283 (linux_get_hwcap2): Likewise.
3284 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
3285 (ppc_linux_get_hwcap2): Likewise.
3286 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
3288 (ppc_linux_nat_target::insert_watchpoint): Likewise.
3289 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
3290 (ppc_linux_nat_target::read_description): Likewise.
3291 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
3292 * s390-linux-nat.c: Likewise.
3293 * s390-linux-tdep.c (s390_core_read_description): Likewise.
3295 2019-03-24 Tom Tromey <tom@tromey.com>
3297 * ada-lang.c (standard_lookup): Simplify initialization.
3298 (ada_lookup_symbol_nonlocal): Simplify return.
3299 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
3300 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
3301 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
3302 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
3304 * solib.c (solib_global_lookup): Simplify.
3305 * symtab.c (null_block_symbol): Remove.
3306 (symbol_cache_lookup): Simplify returns.
3307 (lookup_language_this): Simplify returns.
3308 (lookup_symbol_aux): Simplify return.
3309 (lookup_local_symbol): Simplify returns.
3310 (lookup_global_symbol_from_objfile): Simplify return.
3311 (lookup_symbol_in_objfile_symtabs)
3312 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
3313 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
3314 (lookup_static_symbol, lookup_global_symbol): Simplify return.
3315 * cp-namespace.c (cp_lookup_bare_symbol)
3316 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
3317 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
3318 (cp_lookup_nested_symbol): Don't use null_block_symbol.
3319 (cp_lookup_symbol_via_imports): Simplify initialization.
3320 (find_symbol_in_baseclass): Likewise.
3321 * symtab.h (null_block_symbol): Remove.
3322 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
3323 (d_lookup_nested_symbol, d_lookup_symbol_imports)
3324 (d_lookup_symbol_module): Likewise.
3325 (find_symbol_in_baseclass): Simplify initialization.
3327 2019-03-24 Tom Tromey <tom@tromey.com>
3329 * expression.h: Don't include symtab.h.
3330 (struct block): Forward declare.
3332 2019-03-24 Tom Tromey <tom@tromey.com>
3334 * c-exp.y (typebase): Remove casts.
3335 * gdbtypes.c (lookup_unsigned_typename, )
3336 (lookup_signed_typename): Remove cast.
3337 * eval.c (parse_to_comma_and_eval): Remove cast.
3338 * parse.c (write_dollar_variable): Remove cast.
3339 * block.h (struct block) <superblock>: Now const.
3340 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
3341 * psymtab.c (psym_map_matching_symbols): Make "block" const.
3342 (map_block): Make "block" const.
3343 * symfile.h (struct quick_symbol_functions)
3344 <map_matching_symbols>: Constify block argument to "callback".
3345 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
3347 (find_pc_sect_compunit_symtab): Make "b" const.
3348 (find_symbol_at_address): Likewise.
3349 (search_symbols): Likewise.
3350 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
3351 (dw2_debug_names_lookup_symbol): Likewise.
3352 (dw2_map_matching_symbols): Update.
3353 * p-valprint.c (pascal_val_print): Remove "block".
3354 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
3355 (aux_add_nonlocal_symbols): Make "block" const.
3356 (resolve_subexp): Remove cast.
3357 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
3359 (iterate_over_file_blocks): Likewise.
3360 * f-exp.y (%union) <bval>: Remove.
3361 * coffread.c (patch_opaque_types): Make "b" const.
3362 * spu-tdep.c (spu_catch_start): Make "block" const.
3363 * c-valprint.c (print_unpacked_pointer): Remove "block".
3364 * symmisc.c (dump_symtab_1): Make "b" const.
3365 (block_depth): Make "block" const.
3366 * d-exp.y (%union) <bval>: Remove.
3367 * cp-support.h (cp_lookup_rtti_type): Update.
3368 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
3369 * psymtab.c (psym_lookup_symbol): Make "block" const.
3370 (maintenance_check_psymtabs): Make "b" const.
3371 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
3372 (enumerate_locals, enumerate_args): Update.
3373 * python/py-symtab.c (stpy_global_block): Make "block" const.
3374 (stpy_static_block): Likewise.
3375 * inline-frame.c (block_starting_point_at): Make "new_block"
3377 * block.c (find_block_in_blockvector): Make return type const.
3378 (blockvector_for_pc_sect): Make "b" const.
3379 (find_block_in_blockvector): Make "b" const.
3381 2019-03-23 Tom Tromey <tom@tromey.com>
3383 * varobj.c (varobj_create): Update.
3384 * symfile.c (clear_symtab_users): Don't reset innermost_block.
3385 * printcmd.c (display_command, do_one_display): Don't reset
3387 * parser-defs.h (enum innermost_block_tracker_type): Move to
3389 (innermost_block): Update comment.
3390 * parse.c (parse_exp_1): Add tracker_types parameter.
3391 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
3392 tracker_types parameter. Reset innermost_block.
3393 (parse_exp_in_context): Remove.
3394 (parse_expression_for_completion): Update.
3395 * objfiles.c (~objfile): Don't reset expression_context_block or
3397 * expression.h (enum innermost_block_tracker_type): Move from
3399 (parse_exp_1): Add tracker_types parameter.
3400 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
3401 reset innermost_block.
3403 2019-03-23 Tom Tromey <tom@tromey.com>
3405 * objfiles.h: Include bcache.h.
3407 2019-03-23 Tom Tromey <tom@tromey.com>
3409 * linespec.c (get_current_search_block): Use
3410 scoped_restore_current_language.
3411 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
3413 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3414 Jiong Wang <jiong.wang@arm.com>
3416 * aarch64-linux-tdep.c
3417 (aarch64_linux_iterate_over_regset_sections): Check for pauth
3419 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
3421 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3422 Jiong Wang <jiong.wang@arm.com>
3424 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
3426 (aarch64_analyze_prologue_test): Add PACIASP test.
3427 (aarch64_prologue_prev_register): Unmask PC value.
3429 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3430 Jiong Wang <jiong.wang@arm.com>
3432 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
3433 (aarch64_dwarf2_prev_register): Unmask PC value.
3434 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
3435 (aarch64_execute_dwarf_cfa_vendor_op): Check for
3436 DW_CFA_AARCH64_negate_ra_state.
3437 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
3439 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3440 Jiong Wang <jiong.wang@arm.com>
3442 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
3444 (aarch64_pseudo_register_name): Likewise.
3445 (aarch64_pseudo_register_type): Likewise.
3446 (aarch64_pseudo_register_reggroup_p): Likewise.
3447 (aarch64_gdbarch_init): Add pauth registers.
3448 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
3449 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
3450 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
3451 (struct gdbarch_tdep): Add regnum for ra_state.
3453 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3454 Jiong Wang <jiong.wang@arm.com>
3456 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
3458 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3459 Jiong Wang <jiong.wang@arm.com>
3461 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
3463 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
3464 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
3465 (aarch64_gdbarch_init): Add puth registers.
3466 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
3467 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
3468 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
3470 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3471 Jiong Wang <jiong.wang@arm.com>
3473 * aarch64-linux-nat.c
3474 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
3475 * aarch64-linux-tdep.c
3476 (aarch64_linux_core_read_description): Likewise.
3477 (aarch64_linux_get_hwcap): New function.
3478 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
3479 (aarch64_linux_get_hwcap): New declaration.
3481 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3482 Jiong Wang <jiong.wang@arm.com>
3484 * aarch64-linux-nat.c
3485 (aarch64_linux_nat_target::read_description): Add pauth param.
3486 * aarch64-linux-tdep.c
3487 (aarch64_linux_core_read_description): Likewise.
3488 * aarch64-tdep.c (struct target_desc): Add in pauth.
3489 (aarch64_read_description): Add pauth param.
3490 (aarch64_gdbarch_init): Likewise.
3491 * aarch64-tdep.h (aarch64_read_description): Likewise.
3492 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3493 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3494 * features/Makefile: Add new files.
3495 * features/aarch64-pauth.c: New file.
3496 * features/aarch64-pauth.xml: New file.
3498 2019-03-20 Tom Tromey <tromey@adacore.com>
3500 * infrun.c (handle_inferior_event): Rename from
3501 handle_inferior_event_1. Create a scoped_value_mark.
3502 (handle_inferior_event): Remove.
3504 2019-03-19 Tom Tromey <tromey@adacore.com>
3506 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
3507 * infrun.h (print_stop_event): Add "displays" parameter.
3508 * infrun.c (print_stop_event): Add "displays" parameter.
3510 2019-03-19 Pedro Alves <palves@redhat.com>
3512 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
3513 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
3514 to -1. Fix TABs vs spaces.
3515 (tui_ui_out::tui_ui_out): Don't initialize fields here.
3516 * tui/tui-out.h (tui_ui_out) Add intro comments.
3517 <m_line, m_start_of_line>: In-class initialize, and add describing
3520 2019-03-18 Alan Hayward <alan.hayward@arm.com>
3522 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
3524 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
3526 2019-03-18 Pedro Alves <palves@redhat.com>
3527 Eli Zaretskii <eliz@gnu.org>
3529 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
3530 m_line and m_start_of_line.
3532 2019-03-18 Eli Zaretskii <eliz@gnu.org>
3534 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
3535 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
3536 it returns a newline. This fixes a regression in TU mode, whereby
3537 the next line is output on the same screen line as the user input.
3539 2019-03-18 Tom Tromey <tromey@adacore.com>
3541 * minsyms.c (minimal_symbol_reader::install): Remove call to
3544 2019-03-18 Pedro Alves <palves@redhat.com>
3546 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
3548 (apply_style): New, factored out from ...
3549 (apply_ansi_escape): ... this. Handle reverse video mode.
3550 (tui_set_reverse_mode): New function.
3551 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
3552 * tui/tui-winsource.c (tui_show_source_line): Use
3553 tui_set_reverse_mode instead of setting A_STANDOUT.
3554 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
3557 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
3559 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
3562 2019-03-18 Tom Tromey <tromey@adacore.com>
3564 * ada-lang.c (empty_array): Add "high" parameter.
3565 (ada_evaluate_subexp): Update.
3567 2019-03-17 Sergei Trofimovich <siarheit@google.com>
3569 * unittests/string_view-selftests.c: Define
3570 _initialize_string_view_selftests unconditionally.
3572 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3575 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
3577 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3580 * windows-nat.c (display_selector): Fix format specifiers.
3582 2019-03-17 Eli Zaretskii <eliz@gnu.org>
3584 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
3585 tui_refill_source_window instead of tui_refresh_win, to update the
3586 current execution line. This fixes redisplay of the current line
3587 when stepping through the code with "next" or "step".
3589 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3591 * source-cache.c (source_cache::get_source_lines): Call
3592 find_source_lines to initialize s->nlines. This fixes vertical
3593 scrolling of TUI source window when the DOWN arrow is pressed.
3595 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3597 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
3598 linux-thread-db.c (_initialize_thread_db): Likewise.
3600 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3602 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
3603 wclrtoeol in tui_show_source_line". This reverts changes made in
3604 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
3606 2019-03-15 Tom Tromey <tom@tromey.com>
3608 * symtab.h (struct minimal_symbol): Derive from
3609 general_symbol_info.
3610 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
3611 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3612 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3613 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3614 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
3615 (MSYMBOL_SEARCH_NAME): Update.
3616 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
3617 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
3618 * minsyms.c (minimal_symbol_reader::record_full): Update.
3620 2019-03-15 Tom Tromey <tom@tromey.com>
3622 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
3624 2019-03-15 Tom Tromey <tom@tromey.com>
3626 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
3628 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
3630 * minsyms.c (lookup_minimal_symbol_by_pc_section)
3631 (build_minimal_symbol_hash_tables)
3632 (minimal_symbol_reader::install): Update.
3634 2019-03-15 Tom Tromey <tom@tromey.com>
3636 * symtab.c (create_demangled_names_hash): Update.
3637 (symbol_set_names): Update.
3638 * objfiles.h (struct objfile_per_bfd_storage)
3639 <demangled_names_hash>: Now an htab_up.
3640 * objfiles.c (objfile_per_bfd_storage): Simplify.
3642 2019-03-15 Tom Tromey <tom@tromey.com>
3644 * objfiles.h (struct objfile_per_bfd_storage): Declare
3646 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
3648 (get_objfile_bfd_data): Use new. Don't initialize
3650 (free_objfile_per_bfd_storage): Remove.
3651 (objfile_bfd_data_free, objfile::~objfile): Use delete.
3653 2019-03-15 Tom Tromey <tom@tromey.com>
3655 * symfile.c (reread_symbols): Update.
3656 * objfiles.c (objfile::objfile): Update.
3657 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
3658 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
3660 (minimal_symbol_reader::install): Update.
3661 (terminate_minimal_symbol_table): Remove.
3662 * jit.c (jit_object_close_impl): Update.
3664 2019-03-15 Tom Tromey <tom@tromey.com>
3666 * minsyms.c (minimal_symbol_reader::record_full): Remove some
3669 2019-03-15 Tom Tromey <tom@tromey.com>
3671 * objfiles.h (struct objfile_per_bfd_storage)
3672 <demangled_hash_languages>: Now a bitset.
3673 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
3674 (lookup_minimal_symbol): Update.
3676 2019-03-15 Tom Tromey <tom@tromey.com>
3678 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
3679 Don't return the symbol.
3680 * coffread.c (record_minimal_symbol): Use record_full.
3682 2019-03-14 Eli Zaretskii <eliz@gnu.org>
3684 The MS-Windows port of ncurses fails to switch to a color pair if
3685 one or both of the colors are the implicit default colors. This
3686 change records the default colors when TUI is initialized, and
3687 then specifies them explicitly when a color pair uses the default
3688 colors. This allows color styling in TUI mode on MS-Windows.
3690 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
3692 (tui_initialize_io) [__MINGW32__]: Record the default terminal
3693 colors in ncurses_norm_attr.
3694 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
3695 "none", replace it with the default color recorded in
3698 2019-03-14 Tom Tromey <tromey@adacore.com>
3700 * source-cache.h (class source_cache) <get_source_lines>: Return
3702 * source-cache.c (source_cache::extract_lines): Handle case where
3703 first_pos==npos. Return std::string.
3704 (source_cache::get_source_lines): Update.
3706 2019-03-14 Tom Tromey <tromey@adacore.com>
3708 * NEWS: Add item for "style sources" commands.
3709 * source-cache.c (source_cache::get_source_lines): Check
3711 * cli/cli-style.c (source_styling): New global.
3712 (_initialize_cli_style): Add "style sources" commands.
3713 (show_style_sources): New function.
3714 * cli/cli-style.h (source_styling): Declare.
3716 2019-03-14 Pedro Alves <palves@redhat.com>
3717 Tom Tromey <tromey@adacore.com>
3719 * tui/tui-winsource.h (tui_refill_source_window): Declare.
3720 * tui/tui-winsource.c (tui_refill_source_window): New function,
3722 (tui_horizontal_source_scroll): ... here. Move some logic.
3723 * cli/cli-style.c (set_style_enabled): Notify new observable.
3724 * tui/tui-hooks.c (tui_redisplay_source): New function.
3725 (tui_attach_detach_observers): Attach or detach
3726 tui_redisplay_source.
3727 * observable.h (source_styling_changed): New observable.
3728 * observable.c: Define source_styling_changed observable.
3730 2019-03-13 Tom Tromey <tromey@adacore.com>
3732 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
3733 (i386_gnu_nat_target::store_registers): Update.
3734 * target-debug.h (target_debug_print_std_string): New macro.
3735 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
3736 * windows-tdep.c (display_one_tib): Update.
3737 * tui/tui-stack.c (tui_make_status_line): Update.
3738 * top.c (print_inferior_quit_action): Update.
3739 * thread.c (thr_try_catch_cmd): Update.
3740 (add_thread_with_info): Update.
3741 (thread_target_id_str): Update.
3742 (thr_try_catch_cmd): Update.
3743 (thread_command): Update.
3744 (thread_find_command): Update.
3745 * record-btrace.c (record_btrace_target::info_record)
3746 (record_btrace_resume_thread, record_btrace_target::resume)
3747 (record_btrace_cancel_resume, record_btrace_step_thread)
3748 (record_btrace_target::wait, record_btrace_target::wait)
3749 (record_btrace_target::wait, record_btrace_target::stop): Update.
3750 * progspace.c (print_program_space): Update.
3751 * process-stratum-target.c
3752 (process_stratum_target::thread_address_space): Update.
3753 * linux-fork.c (linux_fork_mourn_inferior)
3754 (detach_checkpoint_command, info_checkpoints_command)
3755 (linux_fork_context): Update.
3756 (linux_fork_detach): Update.
3757 (class scoped_switch_fork_info): Update.
3758 (delete_checkpoint_command): Update.
3759 * infrun.c (follow_fork_inferior): Update.
3760 (follow_fork_inferior): Update.
3761 (proceed_after_vfork_done): Update.
3762 (handle_vfork_child_exec_or_exit): Update.
3763 (follow_exec): Update.
3764 (displaced_step_prepare_throw): Update.
3765 (displaced_step_restore): Update.
3766 (start_step_over): Update.
3768 (clear_proceed_status_thread): Update.
3770 (print_target_wait_results): Update.
3771 (do_target_wait): Update.
3772 (context_switch): Update.
3773 (stop_all_threads): Update.
3774 (restart_threads): Update.
3775 (finish_step_over): Update.
3776 (handle_signal_stop): Update.
3777 (switch_back_to_stepped_thread): Update.
3778 (keep_going_pass_signal): Update.
3779 (print_exited_reason): Update.
3780 (normal_stop): Update.
3781 * inferior.c (inferior_pid_to_str): Change return type.
3782 (print_selected_inferior): Update.
3783 (add_inferior): Update.
3784 (detach_inferior): Update.
3785 * dummy-frame.c (fprint_dummy_frames): Update.
3786 * dcache.c (dcache_info_1): Update.
3787 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
3788 (btrace_fetch, btrace_clear): Update.
3789 * linux-tdep.c (linux_core_pid_to_str): Change return type.
3790 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
3792 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
3793 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
3794 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
3795 * gdbarch.c, gdbarch.h: Rebuild.
3796 * gdbarch.sh (core_pid_to_str): Change return type.
3797 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
3799 (windows_nat_target::pid_to_str): Change return type.
3800 (windows_delete_thread): Update.
3801 (windows_nat_target::attach): Update.
3802 (windows_nat_target::files_info): Update.
3803 * target-delegates.c: Rebuild.
3804 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
3806 (sol_thread_target::pid_to_str): Change return type.
3807 * remote.c (class remote_target) <pid_to_str>: Change return
3809 (remote_target::pid_to_str): Change return type.
3810 (extended_remote_target::attach, remote_target::remote_stop_ns)
3811 (remote_target::remote_notif_remove_queued_reply)
3812 (remote_target::push_stop_reply, remote_target::disable_btrace):
3814 (extended_remote_target::attach): Update.
3815 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
3817 (gdbsim_target::pid_to_str): Change return type.
3818 * ravenscar-thread.c (struct ravenscar_thread_target)
3819 <pid_to_str>: Change return type.
3820 (ravenscar_thread_target::pid_to_str): Change return type.
3821 * procfs.c (class procfs_target) <pid_to_str>: Change return
3823 (procfs_target::pid_to_str): Change return type.
3824 (procfs_target::attach): Update.
3825 (procfs_target::detach): Update.
3826 (procfs_target::fetch_registers): Update.
3827 (procfs_target::store_registers): Update.
3828 (procfs_target::wait): Update.
3829 (procfs_target::files_info): Update.
3830 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
3831 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
3833 (nto_procfs_target::pid_to_str): Change return type.
3834 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
3835 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
3837 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
3839 (attach_proc_task_lwp_callback, get_detach_signal)
3840 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
3841 (linux_nat_target::resume, wait_lwp, stop_callback)
3842 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
3843 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
3844 (linux_nat_wait_1, resume_stopped_resumed_lwps)
3845 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
3846 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
3848 (inf_ptrace_target::attach): Update.
3849 (inf_ptrace_target::files_info): Update.
3850 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
3852 (go32_nat_target::pid_to_str): Change return type.
3853 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
3854 (gnu_nat_target::wait): Update.
3855 (gnu_nat_target::wait): Update.
3856 (gnu_nat_target::resume): Update.
3857 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
3858 (fbsd_nat_target::wait): Update.
3859 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
3861 (darwin_nat_target::attach): Update.
3862 * corelow.c (class core_target) <pid_to_str>: Change return type.
3863 (core_target::pid_to_str): Change return type.
3864 * target.c (normal_pid_to_str): Change return type.
3865 (default_pid_to_str): Likewise.
3866 (target_pid_to_str): Change return type.
3867 (target_translate_tls_address): Update.
3868 (target_announce_detach): Update.
3869 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
3871 (bsd_uthread_target::pid_to_str): Change return type.
3872 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
3874 (bsd_kvm_target::pid_to_str): Change return type.
3875 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
3877 (aix_thread_target::pid_to_str): Change return type.
3878 * target.h (struct target_ops) <pid_to_str>: Change return type.
3879 (target_pid_to_str, normal_pid_to_str): Likewise.
3880 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
3882 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
3884 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
3886 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
3888 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
3890 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
3893 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
3895 * NEWS: Mention that the new default MI version is 3. Mention
3896 changes to the output of commands and events that deal with
3897 multi-location breakpoints.
3898 * breakpoint.c: Include "mi/mi-out.h".
3899 (print_one_breakpoint): Change output syntax if using MI version
3901 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
3903 (mi_multi_location_breakpoint_output_fixed): New.
3904 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
3905 (mi_cmd_fix_multi_location_breakpoint_output): New.
3906 (mi_multi_location_breakpoint_output_fixed): New.
3907 * mi/mi-cmds.c (mi_cmds): Register command
3908 -fix-multi-location-breakpoint-output.
3909 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
3912 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3914 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
3915 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
3916 instantiate mi_ui_out based on interpreter name.
3917 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
3918 * mi/mi-main.c (mi_load_progress): Likewise.
3920 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3922 * NEWS: Combine separate "New targets" sections for 8.3.
3924 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3926 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
3927 (ppcfbsd_init_abi): Install gdbarch
3928 "fetch_tls_load_module_address" and "get_thread_local_address"
3931 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3933 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
3934 (riscv_fbsd_init_abi): Install gdbarch
3935 "fetch_tls_load_module_address" and "get_thread_local_address"
3938 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3940 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
3941 (i386fbsd_init_abi): Install gdbarch
3942 "fetch_tls_load_module_address" and "get_thread_local_address"
3945 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3947 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
3948 (amd64fbsd_init_abi): Install gdbarch
3949 "fetch_tls_load_module_address" and "get_thread_local_address"
3952 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3954 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
3955 (struct fbsd_pspace_data): New type.
3956 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
3957 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
3958 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
3959 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
3960 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
3962 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3964 * gdbtypes.c (lookup_struct_elt): New function.
3965 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
3966 * gdbtypes.h (struct struct_elt): New type.
3967 (lookup_struct_elt): New prototype.
3969 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3971 * gdbtypes.c (lookup_struct_elt_type): Update comment and
3972 remove disabled code block.
3974 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3976 * gdbarch.sh (get_thread_local_address): New method.
3977 * gdbarch.h, gdbarch.c: Regenerate.
3978 * target.c (target_translate_tls_address): Use
3979 gdbarch_get_thread_local_address if present instead of
3980 target::get_thread_local_address.
3982 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3984 * target.h (target::get_thread_local_address): Update comment.
3986 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3988 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
3989 objfile->separate_debug_objfile_backlink if not NULL.
3991 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3993 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
3994 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
3995 (amd64bsd_store_inferior_registers): Likewise.
3996 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
3997 Enable segment base registers.
3998 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
3999 PT_GETFSBASE and PT_GETGSBASE.
4000 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
4002 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
4003 segment base registers.
4004 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4006 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4008 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4009 Update calls to i386_target_description to add 'segments'
4011 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
4012 add segment base registers.
4013 * arch/i386.c (i386_create_target_description): Add 'segments'
4014 parameter to enable segment base registers.
4015 * arch/i386.h (i386_create_target_description): Likewise.
4016 * features/i386/32bit-segments.xml: New file.
4017 * features/i386/32bit-segments.c: Generate.
4018 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
4019 call to i386_target_description to add 'segments' parameter.
4020 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4021 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
4022 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
4023 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
4024 if feature is present.
4025 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
4026 Add 'segments' parameter to call to i386_target_description.
4027 (i386_target_description): Add 'segments' parameter to enable
4028 segment base registers.
4029 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
4030 to call to i386_target_description.
4031 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
4032 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
4033 Define I386_NUM_REGS.
4034 (i386_target_description): Add 'segments' parameter to enable
4035 segment base registers.
4037 2019-03-12 Eli Zaretskii <eliz@gnu.org>
4040 * source-cache.c: #undef open and close, to avoid unresolved
4041 externals during linking.
4043 2019-03-12 Tom Tromey <tromey@adacore.com>
4045 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
4046 const. Add initializers.
4047 (_initialize_remote): Don't initialize ptid globals.
4049 2019-03-12 Pedro Alves <palves@redhat.com>
4051 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
4053 2019-03-12 Pedro Alves <palves@redhat.com>
4055 * cp-name-parser.y (main): Remove unused 'len' variable.
4057 2019-03-12 Tom Tromey <tromey@adacore.com>
4059 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
4060 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
4062 2019-03-12 Tom Tromey <tromey@adacore.com>
4064 * linux-nat.c (iterate_over_lwps): Update.
4065 (stop_callback): Remove parameter.
4066 (stop_wait_callback, detach_callback, resume_set_callback)
4067 (select_singlestep_lwp_callback, set_ignore_sigint)
4068 (status_callback, resumed_callback, resume_clear_callback)
4069 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
4071 (linux_nat_target::detach, linux_nat_target::resume)
4072 (linux_stop_and_wait_all_lwps, select_event_lwp)
4073 (linux_nat_filter_event, linux_nat_wait_1)
4074 (linux_nat_target::kill, linux_nat_target::stop)
4075 (linux_nat_target::stop): Update.
4076 (linux_nat_resume_callback): Change type.
4077 (resume_stopped_resumed_lwps, count_events_callback)
4078 (select_event_lwp_callback): Likewise.
4079 (linux_stop_lwp, linux_nat_stop_lwp): Update.
4080 * arm-linux-nat.c (struct update_registers_data): Remove.
4081 (update_registers_callback): Change type.
4082 (arm_linux_insert_hw_breakpoint1): Update.
4083 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
4085 (x86_linux_dr_set_addr): Update.
4086 (x86_linux_dr_set_control): Update.
4087 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
4088 (iterate_over_lwps): Use gdb::function_view.
4089 * nat/aarch64-linux-hw-point.c (struct
4090 aarch64_dr_update_callback_param): Remove.
4091 (debug_reg_change_callback): Change type.
4092 (aarch64_notify_debug_reg_change): Update.
4093 * s390-linux-nat.c (s390_refresh_per_info): Update.
4095 2019-03-11 Tom Tromey <tromey@adacore.com>
4097 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
4098 redundant assignment to "this_cu".
4100 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4102 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
4104 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4106 * gdbtypes.c (rank_one_type_parm_set): New function extracted
4108 (rank_one_type): ... this.
4110 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4112 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
4114 (rank_one_type): ... this.
4116 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4118 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
4120 (rank_one_type): ... this.
4122 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4124 * gdbtypes.c (rank_one_type_parm_float): New function extracted
4126 (rank_one_type): ... this.
4128 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4130 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
4132 (rank_one_type): ... this.
4134 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4136 * gdbtypes.c (rank_one_type_parm_range): New function extracted
4138 (rank_one_type): ... this.
4140 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4142 * gdbtypes.c (rank_one_type_parm_char): New function extracted
4144 (rank_one_type): ... this.
4146 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4148 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
4150 (rank_one_type): ... this.
4152 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4154 * gdbtypes.c (rank_one_type_parm_int): New function extracted
4156 (rank_one_type): ... this.
4158 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4160 * gdbtypes.c (rank_one_type_parm_func): New function extracted
4162 (rank_one_type): ... this.
4164 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4166 * gdbtypes.c (rank_one_type_parm_array): New function extracted
4168 (rank_one_type): ... this.
4170 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4172 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
4174 (rank_one_type): ... this.
4176 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4178 * inferior.c (initialize_inferiors): Ensure 'help set/show print
4179 inferior-events' shows the example events.
4181 2019-03-08 Eli Zaretskii <eliz@gnu.org>
4183 Support styling on native MS-Windows console
4186 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
4187 on MS-Windows if $TERM is not defined.
4189 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
4191 * posix-hdep.c (gdb_console_fputs):
4192 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
4194 * ui-file.h (gdb_console_fputs): Add prototype.
4196 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
4197 back to fputs only if the former returns zero.
4199 2019-03-07 Tom Tromey <tom@tromey.com>
4201 * symmisc.c (print_symbol_bcache_statistics): Update.
4202 (print_objfile_statistics): Update.
4203 * symfile.c (allocate_symtab): Update.
4204 * stabsread.c: Don't include bcache.h.
4205 * psymtab.h (struct psymbol_bcache): Don't declare.
4206 (class psymtab_storage) <psymbol_cache>: Now a bcache.
4207 (psymbol_bcache_init, psymbol_bcache_free)
4208 (psymbol_bcache_get_bcache): Don't declare.
4209 * psymtab.c (struct psymbol_bcache): Remove.
4210 (psymtab_storage::psymtab_storage): Update.
4211 (psymtab_storage::~psymtab_storage): Update.
4212 (psymbol_bcache_init, psymbol_bcache_free)
4213 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
4214 (add_psymbol_to_bcache): Update.
4215 (allocate_psymtab): Update.
4216 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
4217 macro_cache>: No longer pointers.
4218 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
4219 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
4220 * macrotab.c (macro_bcache): Update.
4221 * macroexp.c: Don't include bcache.h.
4222 * gdbtypes.c (check_types_worklist): Update.
4223 (types_deeply_equal): Remove TRY/CATCH. Update.
4224 * elfread.c (elf_symtab_read): Update.
4225 * dwarf2read.c: Don't include bcache.h.
4226 * buildsym.c (buildsym_compunit::get_macro_table): Update.
4227 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
4228 (print_bcache_statistics, bcache_memory_used): Don't declare.
4229 (struct bcache): Move from bcache.c. Add constructor, destructor,
4230 methods. Rename all data members.
4231 * bcache.c (struct bcache): Move to bcache.h.
4232 (bcache::expand_hash_table): Rename from expand_hash_table.
4234 (bcache::insert): Rename from bcache_full.
4235 (bcache::compare): Rename from bcache_compare.
4236 (bcache_xmalloc): Remove.
4237 (bcache::~bcache): Rename from bcache_xfree.
4238 (bcache::print_statistics): Rename from print_bcache_statistics.
4239 (bcache::memory_used): Rename from bcache_memory_used.
4241 2019-03-07 Pedro Alves <palves@redhat.com>
4243 * infrun.c (normal_stop): Also check for
4244 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
4246 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
4248 * f-lang.c (value_from_host_double): Moved to...
4249 * value.c (value_from_host_double): ...here.
4250 * value.h (value_from_host_double): Declare.
4251 * guile/scm-math.c (vlscm_convert_typed_number): Use
4252 value_from_host_double.
4253 (vlscm_convert_number): Likewise.
4254 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
4255 * python/py-value.c (convert_value_from_python): Likewise.
4257 2019-03-06 Tom Tromey <tom@tromey.com>
4259 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
4261 2019-03-06 Tom Tromey <tom@tromey.com>
4263 * utils.h (free_current_contents): Don't declare.
4264 * utils.c (free_current_contents): Remove.
4266 2019-03-06 Tom Tromey <tom@tromey.com>
4268 * top.c (quit_force): Update.
4269 * main.c (captured_command_loop): Update.
4270 * common/new-op.c (operator new): Update.
4271 * common/common-exceptions.c (struct catcher)
4272 <save_cleanup_chain>: Remove member.
4273 (exceptions_state_mc_init): Update.
4274 (exception_try_scope_entry): Return nullptr.
4275 (exception_try_scope_exit, exception_rethrow)
4276 (throw_exception_sjlj, throw_exception_cxx): Update.
4277 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
4278 (all_cleanups, do_cleanups, discard_cleanups)
4279 (discard_final_cleanups, save_cleanups, save_final_cleanups)
4280 (restore_cleanups, restore_final_cleanups): Don't declare.
4281 (do_final_cleanups): Remove parameter.
4282 * common/cleanups.c (cleanup_chain, make_cleanup)
4283 (make_cleanup_dtor, all_cleanups, do_cleanups)
4284 (discard_my_cleanups, discard_cleanups)
4285 (discard_final_cleanups, save_my_cleanups, save_cleanups)
4286 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
4287 (null_cleanup): Remove.
4288 (do_final_cleanups): Remove parameter.
4290 2019-03-06 Tom Tromey <tom@tromey.com>
4292 * remote.c (remote_target::remote_parse_stop_reply): Use
4295 2019-03-06 Tom Tromey <tom@tromey.com>
4297 * stabsread.c (struct stabs_field_info): Rename from field_info.
4298 <list, fnlist>: Add initializers.
4299 <obstack>: New member.
4300 (read_member_functions, read_struct_fields, read_baseclasses):
4301 Allocate on obstack. Don't use cleanups.
4302 (read_one_struct_field, read_member_functions, read_struct_fields)
4303 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
4304 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
4305 (read_struct_type): Update.
4307 2019-03-06 Tom Tromey <tom@tromey.com>
4309 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
4310 * common/filestuff.h (make_cleanup_close): Don't declare.
4311 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
4314 2019-03-06 Tom Tromey <tom@tromey.com>
4316 * solib-aix.c: Use make_scope_exit.
4318 2019-03-06 Tom Tromey <tom@tromey.com>
4320 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
4321 Use make_scope_exit.
4323 2019-03-06 Tom Tromey <tom@tromey.com>
4325 * solib-svr4.c (disable_probes_interface): Remove parameter.
4326 (svr4_handle_solib_event): Use make_scope_exit.
4328 2019-03-06 Tom Tromey <tom@tromey.com>
4330 * remote.c (struct stop_reply_deleter): Remove.
4331 (stop_reply_up): Update.
4332 (struct stop_reply): Derive from notif_event. Don't typedef.
4333 <regcache>: Now a std::vector.
4334 (stop_reply_xfree): Remove.
4335 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
4336 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
4337 (remote_target::discard_pending_stop_replies): Use delete.
4338 (remote_target::remote_parse_stop_reply): Update.
4339 (remote_target::process_stop_reply): Update.
4340 * remote-notif.h (struct notif_event): Add virtual destructor.
4341 Remove "dtr" member.
4342 (struct notif_client) <alloc_event>: Return a unique_ptr.
4343 (notif_event_xfree): Don't declare.
4344 (notif_event_up): New typedef.
4345 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
4346 (notif_event_xfree, do_notif_event_xfree): Remove.
4347 (remote_notif_state_xfree): Update.
4349 2019-03-06 Tom Tromey <tom@tromey.com>
4351 * infrun.c (displaced_step_clear_cleanup): Now a
4352 forward_scope_exit type.
4353 (displaced_step_prepare_throw): Update.
4354 (displaced_step_fixup): Update.
4356 2019-03-06 Tom Tromey <tom@tromey.com>
4358 * inferior.h (class inferior): Update comment.
4359 * gdbthread.h (class thread_info): Update comment.
4361 2019-03-06 Joel Brobecker <brobecker@adacore.com>
4362 Tom Tromey <tom@tromey.com>
4364 * stabsread.h (struct stab_section_list): Remove.
4365 (coffstab_build_psymtabs): Update.
4366 * dbxread.c (symbuf_sections): Now a std::vector.
4367 (sect_idx): New global.
4368 (fill_symbuf): Update.
4369 (coffstab_build_psymtabs): Change type of stabsects parameter.
4371 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
4373 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
4374 (coff_locate_sections): Update.
4375 (coff_symfile_read): Remove cleanups. Update.
4376 (init_stringtab): Add storage parameter.
4377 (free_stringtab, free_stringtab_cleanup): Remove.
4378 (init_lineno): Add storage parameter.
4379 (free_linetab, free_linetab_cleanup): Remove.
4381 2019-03-06 Pedro Alves <palves@redhat.com>
4383 * linux-fork.c (fork_info::clobber_regs): Delete.
4384 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
4385 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
4387 (scoped_switch_fork_info::scoped_switch_fork_info)
4388 (checkpoint_command, linux_fork_context): Adjust
4389 fork_save_infrun_state calls.
4391 2019-03-06 Pedro Alves <palves@redhat.com>
4393 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
4394 (inf_has_multiple_threads): Return 'bool' and rewrite using
4395 inferior_info::threads().
4397 2019-03-06 Pedro Alves <palves@redhat.com>
4399 * linux-fork.c: Include <list>.
4400 (fork_list): Now a std::list instance.
4401 (fork_info): Add ctor, dtor, and in-class initialize all fields.
4402 (forks_exist_p, find_last_fork): Adjust.
4406 (free_fork): Delete, folded into fork_info::~fork_info().
4407 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
4409 (init_fork_list): Delete.
4410 (linux_fork_killall, linux_fork_mourn_inferior)
4411 (linux_fork_detach, info_checkpoints_command): Adjust.
4412 (_initialize_linux_fork): No longer call init_fork_list.
4414 2019-03-06 Pedro Alves <palves@redhat.com>
4416 * linux-fork.c (new_fork): New, split out of ...
4417 (add_fork): ... this. Return void. Move "first fork" special
4418 case from here, to ...
4419 (checkpoint_command): ... here.
4420 * linux-linux.h (add_fork): Return void.
4422 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4424 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
4426 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4427 Chris January <chris.january@arm.com>
4428 David Lecomber <david.lecomber@arm.com>
4430 * f-exp.y: New token, UNOP_INTRINSIC.
4431 (exp): New pattern using UNOP_INTRINSIC token.
4432 (f77_keywords): Add 'abs' keyword.
4433 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
4434 (value_from_host_double): New function.
4435 (evaluate_subexp_f): Support UNOP_ABS.
4437 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4439 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
4442 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4444 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
4445 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
4446 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
4448 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4450 * f-exp.y (convert_to_kind_type): Handle more type kinds.
4452 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4453 Chris January <chris.january@arm.com>
4455 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
4456 * f-exp.y: Define 'KIND' token.
4457 (exp): New pattern for KIND expressions.
4458 (ptype): Handle types with a kind extension.
4459 (direct_abs_decl): Extend to spot kind extensions.
4460 (f77_keywords): Add 'kind' to the list.
4461 (push_kind_type): New function.
4462 (convert_to_kind_type): New function.
4463 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
4464 * parse.c (operator_length_standard): Likewise.
4465 * parser-defs.h (enum type_pieces): Add tp_kind.
4466 * std-operator.def: Add UNOP_KIND.
4468 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4470 * f-exp.y (f_parse): Set yydebug.
4472 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4474 * f-lang.c (evaluate_subexp_f): New function.
4475 (exp_descriptor_f): New global.
4476 (f_language_defn): Use exp_descriptor_f instead of
4477 exp_descriptor_standard.
4479 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4481 * f-exp.y (struct token): Add comments.
4482 (dot_ops): Remove uppercase versions and the end marker.
4483 (f77_keywords): Likewise.
4484 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
4485 entries in the dot_ops array are case insensitive, and use
4486 strncasecmp to compare strings. Also some whitespace cleanup in
4487 this area. Similar for the f77_keywords array, except entries in
4488 this list might be case sensitive.
4490 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4492 * f-exp.y (struct f77_boolean_val): Add comments.
4493 (boolean_values): Remove uppercase versions, and end marker.
4494 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
4495 and use strncasecmp to achieve case insensitivity. Additionally,
4496 perform whitespace cleanup around this code.
4498 2019-03-06 Tom Tromey <tromey@adacore.com>
4500 * remote-sim.c (gdbsim_target_open): Use result of
4503 2019-03-06 Richard Bunt <richard.bunt@arm.com>
4504 Dirk Schubert <dirk.schubert@arm.com>
4505 Chris January <chris.january@arm.com>
4507 * eval.c (evaluate_subexp_standard): Call Fortran argument
4509 * f-lang.c (struct value): A value which can be passed into a
4510 Fortran function call.
4511 (fortran_argument_convert): Wrap Fortran arguments in a pointer
4513 (struct type): Value ready for a Fortran function call.
4514 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
4516 * f-lang.h (fortran_argument_convert): Declaration.
4517 (fortran_preserve_arg_pointer): Declaration.
4518 * infcall.c (value_arg_coerce): Call Fortran argument logic.
4520 2019-03-05 Tom Tromey <tromey@adacore.com>
4522 * python/py-prettyprint.c (print_string_repr): Remove #if.
4523 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
4525 2019-03-05 Tom Tromey <tromey@adacore.com>
4527 * target.c (the_dummy_target): Move later. Change type to
4529 (initialize_targets): Don't initialize the_dummy_target.
4531 2019-03-05 Tom Tromey <tromey@adacore.com>
4533 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
4534 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
4536 2019-03-05 Tom Tromey <tromey@adacore.com>
4538 * windows-nat.c (windows_nat_target::attach)
4539 (windows_nat_target::detach): Don't call gdb_flush.
4540 * valprint.c (generic_val_print, val_print, val_print_string):
4541 Don't call gdb_flush.
4542 * utils.c (defaulted_query): Don't call gdb_flush.
4543 * typeprint.c (print_type_scalar): Don't call gdb_flush.
4544 * target.c (target_announce_detach): Don't call gdb_flush.
4545 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
4546 * remote.c (extended_remote_target::attach): Don't call
4548 * procfs.c (procfs_target::detach): Don't call gdb_flush.
4549 * printcmd.c (do_examine): Don't call gdb_flush.
4550 (info_display_command): Don't call gdb_flush.
4551 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
4552 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
4553 * memattr.c (info_mem_command): Don't call gdb_flush.
4554 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
4555 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
4556 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
4557 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
4558 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
4559 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
4560 (gnu_nat_target::detach): Don't call gdb_flush.
4561 * f-valprint.c (f_val_print): Don't call gdb_flush.
4562 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
4563 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
4564 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
4566 * c-valprint.c (c_val_print): Don't call gdb_flush.
4567 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
4569 2019-03-05 Tom Tromey <tromey@adacore.com>
4571 * varobj.c (update_dynamic_varobj_children): Update.
4572 (install_default_visualizer): Use reset, not release.
4573 * value.c (set_internalvar): Update.
4574 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
4575 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
4576 ATTRIBUTE_UNUSED_RESULT.
4578 2019-03-05 Tom Tromey <tromey@adacore.com>
4580 * remote.c (class scoped_remote_fd) <release>: Add
4581 ATTRIBUTE_UNUSED_RESULT.
4583 2019-03-05 Tom Tromey <tromey@adacore.com>
4585 * macroexp.c (struct macro_buffer) <release>: Add
4586 ATTRIBUTE_UNUSED_RESULT.
4588 2019-03-05 Tom Tromey <tromey@adacore.com>
4590 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
4591 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
4592 ATTRIBUTE_UNUSED_RESULT.
4594 2019-03-05 Tom Tromey <tromey@adacore.com>
4596 * common/scoped_fd.h (class scoped_fd) <release>: Add
4597 ATTRIBUTE_UNUSED_RESULT.
4599 2019-03-05 Tom Tromey <tromey@adacore.com>
4601 * parser-defs.h (struct parser_state) <release>: Add
4602 ATTRIBUTE_UNUSED_RESULT.
4604 2019-03-05 Tom Tromey <tromey@adacore.com>
4606 * utils.h (class gdb_argv) <release>: Add
4607 ATTRIBUTE_UNUSED_RESULT.
4608 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
4610 2019-03-02 Eli Zaretskii <eliz@gnu.org>
4612 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
4613 for-loop range, to avoid compiler warnings.
4615 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
4616 avoid compiler warnings about unused variables.
4618 * NEWS: Mention end of support for native debugging on MS-Windows
4622 * common/netstuff.c:
4623 * gdbserver/gdbreplay.c
4624 * gdbserver/remote-utils.c:
4626 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
4627 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
4628 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
4629 'getaddrinfo' and 'freeaddrinfo' were not available before
4630 Windows XP, and mingw.org's MinGW headers by default define
4631 _WIN32_WINNT to 0x500.
4633 2019-03-01 Gary Benson <gbenson@redhat.com>
4635 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
4637 2019-02-28 Brian Vandenberg <phantall@gmail.com>
4638 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4641 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
4642 set_sigint_trap, clear_sigint_trap.
4644 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4646 * target.c (target_detach): Clear the regcache and the
4649 2019-02-27 Pedro Alves <palves@redhat.com>
4651 * utils.c (set_screen_size): When we cap the height/width sizes,
4652 tweak the corresponding command variable to show "unlimited":
4654 2019-02-27 Saagar Jha <saagar@saagarjha.com>
4655 Pedro Alves <palves@redhat.com>
4657 * utils.c (set_screen_size): Reduce "infinite" rows and columns
4658 before calling rl_set_screen_size.
4660 2019-02-27 Tom Tromey <tromey@adacore.com>
4662 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
4664 * python/py-value.c: Remove Python 2.4 workaround.
4665 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
4667 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
4668 Python 2.4 workaround.
4669 * python/python-internal.h: Remove Python 2.4 comment.
4670 (Py_ssize_t): Don't define.
4671 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
4672 (gdb_Py_DECREF): Remove Python 2.4 workaround.
4673 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
4674 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
4675 * python/python.c (do_start_initialization): Remove Python 2.4
4677 * python/py-prettyprint.c (class dummy_python_frame): Remove.
4678 (print_children): Remove Python 2.4 workaround.
4679 * python/py-inferior.c (buffer_procs): Remove Python 2.4
4681 (CHARBUFFERPROC_NAME): Remove.
4682 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
4683 Python 2.4 workaround.
4685 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4687 * NEWS: Note minimum Python version.
4689 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4691 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
4692 code from these functions. Remove corresponding ifdefs. Use
4693 Py_buffer_up instead of explicit calls to PyBuffer_Release.
4694 Remove gotos and target of gotos.
4695 (infpy_search_memory): Likewise.
4697 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4699 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
4700 (hppa_gdbarch_init): Don't register deleted functions with
4703 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4705 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
4706 (h8300_unwind_sp): Delete.
4707 (h8300_dummy_id): Delete.
4708 (h8300_gdbarch_init): Don't register deleted functions with
4711 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4713 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
4714 (ft32_unwind_pc): Delete.
4715 (ft32_unwind_sp): Delete.
4716 (ft32_gdbarch_init): Don't register deleted functions with
4719 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4721 * gdb/frv-tdep.c (frv_dummy_id): Delete.
4722 (frv_unwind_pc): Delete.
4723 (frv_unwind_sp): Delete.
4724 (frv_gdbarch_init): Don't register deleted functions with
4727 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4729 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
4730 (riscv_unwind_pc): Delete.
4731 (riscv_unwind_sp): Delete.
4732 (riscv_gdbarch_init): Don't register deleted functions with
4735 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4737 * gdb/csky-tdep.c (csky_dummy_id): Delete.
4738 (csky_unwind_pc): Delete.
4739 (csky_unwind_sp): Delete.
4740 (csky_gdbarch_init): Don't register deleted functions with
4743 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4745 * gdb/cris-tdep.c (cris_dummy_id): Delete.
4746 (cris_unwind_pc): Delete.
4747 (cris_unwind_sp): Delete.
4748 (cris_gdbarch_init): Don't register deleted functions with
4751 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4753 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
4754 (bfin_unwind_pc): Delete.
4755 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
4757 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4759 * gdb/arm-tdep.c (arm_dummy_id): Delete.
4760 (arm_unwind_pc): Delete.
4761 (arm_unwind_sp): Delete.
4762 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
4764 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4766 * gdb/arc-tdep.c (arc_dummy_id): Delete.
4767 (arc_unwind_pc): Delete.
4768 (arc_unwind_sp): Delete.
4769 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
4771 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4773 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
4774 (alpha_unwind_pc): Delete.
4775 (alpha_gdbarch_init): Don't register deleted functions with
4778 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4780 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
4781 (aarch64_unwind_pc): Delete.
4782 (aarch64_unwind_sp): Delete.
4783 (aarch64_gdbarch_init): Don't register deleted functions with
4786 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4788 * gdbtypes.c (type_align): Don't consider static members when
4789 computing structure alignment.
4791 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4793 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
4794 return 0 for other types.
4795 * arch-utils.c (default_type_align): Always return 0.
4796 * gdbarch.h: Regenerate.
4797 * gdbarch.sh (type_align): Extend comment.
4798 * gdbtypes.c (type_align): Add additional comments, always call
4799 gdbarch_type_align before applying the default rules.
4800 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
4801 generic code will then apply a suitable default.
4802 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
4803 types, return 0 for other types.
4805 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4807 * NEWS: Create a new section for the next release branch.
4808 Rename the section of the current branch, now that it has
4811 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4813 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
4814 * version.in: Bump version to 8.3.50.DATE-git.
4816 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
4818 * aix-thread.c (ptid_cmp): Remove unused variable.
4819 (get_signaled_thread): Likewise.
4820 (store_regs_user_thread): Likewise.
4821 (store_regs_kernel_thread): Likewise.
4822 (fetch_regs_kernel_thread): Remove shadowed variable.
4824 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
4826 * features/riscv/32bit-cpu.xml: Add register numbers.
4827 * features/riscv/32bit-fpu.c: Regenerate.
4828 * features/riscv/32bit-fpu.xml: Add register numbers.
4829 * features/riscv/64bit-cpu.xml: Add register numbers.
4830 * features/riscv/64bit-fpu.c: Regenerate.
4831 * features/riscv/64bit-fpu.xml: Add register numbers.
4833 2019-02-26 Kevin Buettner <kevinb@redhat.com>
4835 * NEWS: Mention two argument form of gdb.Value constructor.
4836 * python/py-value.c (convert_buffer_and_type_to_value): New
4838 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
4839 Add support for handling an optional second argument. Call
4840 convert_buffer_and_type_to_value as appropriate.
4841 * python/python-internal.h (Py_buffer_deleter): New struct.
4842 (Py_buffer_up): New typedef.
4844 2019-02-25 John Baldwin <jhb@FreeBSD.org>
4846 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
4847 instead of releasing ownership.
4849 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
4851 * dwarf2read.c (open_and_init_dwp_file): Call
4852 elf_numsections instead of bfd_count_sections to initialize
4853 dwp_file->num_sections.
4855 2019-02-25 Tom Tromey <tromey@adacore.com>
4857 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
4859 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
4861 * gcore.in: Add '--readnever' option when invoking GDB.
4863 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4865 * MAINTAINERS: Update my email address.
4867 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4869 * build-id.c (build_id_to_debug_bfd_1): New function.
4870 (build_id_to_debug_bfd): Look for separate debug file in
4873 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
4875 * gdbarch.sh: Update the copyright year range that is placed into
4878 2019-02-22 Keith Seitz <keiths@redhat.com>
4881 * linespec.c (create_sals_line_offset): Search for the default
4882 symtab's filename instead of its fullname.
4884 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4886 * NEWS: Update style defaults.
4888 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4890 * main.c (captured_main_1): Disable styling in batch mode.
4892 2019-02-20 Tom Tromey <tom@tromey.com>
4894 * symtab.c (symtab_symbol_info): Fix typos.
4896 2019-02-20 Tom Tromey <tromey@adacore.com>
4898 * findcmd.c (_initialize_mem_search): Use upper case for
4899 metasyntactic variables.
4901 2019-02-20 Alan Hayward <alan.hayward@arm.com>
4903 * aarch64-tdep.c (aarch64_add_reggroups): New function.
4904 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
4906 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
4908 * top.h (source_file_name): Change to std::string.
4909 * top.c (source_file_name): Likewise.
4910 (command_line_input): Adjust.
4911 * cli/cli-script.c (script_from_file): Adjust.
4913 2019-02-19 Tom Tromey <tromey@adacore.com>
4915 * ravenscar-thread.c
4916 (ravenscar_thread_target::update_thread_list): Don't call
4917 ada_build_task_list.
4918 * ada-lang.h (ada_build_task_list): Don't declare.
4919 * ada-tasks.c (struct ada_tasks_inferior_data)
4920 <task_list_valid_p>: Now bool.
4921 (read_known_tasks, ada_task_list_changed)
4922 (ada_tasks_invalidate_inferior_data): Update.
4923 (read_known_tasks_array): Return bool.
4924 (read_known_tasks_list): Likewise.
4925 (read_known_tasks): Return void.
4926 (ada_build_task_list): Now static.
4928 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
4930 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
4931 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
4933 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4935 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
4936 variant for ada_tasks_pspace_data_handle and
4937 ada_tasks_inferior_data_handle.
4938 (ada_tasks_pspace_data_cleanup): New function.
4939 (ada_tasks_inferior_data_cleanup): New function.
4941 2019-02-17 Tom Tromey <tom@tromey.com>
4943 * macrotab.h (macro_source_fullname): Return a std::string.
4944 * macrotab.c (macro_include, check_for_redefinition)
4945 (macro_undef, macro_lookup_definition, foreach_macro)
4946 (foreach_macro_in_scope): Update.
4947 (macro_source_fullname): Return a std::string.
4948 * macrocmd.c (show_pp_source_pos): Update.
4950 2019-02-17 Tom Tromey <tom@tromey.com>
4952 * macrocmd.c (show_pp_source_pos): Style the file names.
4954 2019-02-17 Tom Tromey <tom@tromey.com>
4957 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
4959 2019-02-17 Tom Tromey <tom@tromey.com>
4961 * ada-lang.c (user_select_syms): Use filtered printing.
4962 * utils.c (wrap_style): New global.
4963 (desired_style): Remove.
4964 (emit_style_escape): Add stream parameter.
4965 (set_output_style, reset_terminal_style, prompt_for_continue):
4967 (flush_wrap_buffer): Only flush gdb_stdout.
4968 (wrap_here): Set wrap_style.
4969 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
4970 treat escape sequences as a character. Change when wrap buffer is
4972 (fputs_styled): Do not set the output style when the default is
4974 * ui-style.h (struct ui_file_style) <is_default>: New method.
4975 * source.c (print_source_lines_base): Emit escape sequences in one
4978 2019-02-17 Joel Brobecker <brobecker@adacore.com>
4980 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
4981 integers and enumeration types.
4983 2019-02-17 Joel Brobecker <brobecker@adacore.com>
4985 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
4986 instead of lookup_symbol_in_language
4987 (do_exact_match): New function.
4988 (ada_get_symbol_name_matcher): Return do_exact_match when
4989 doing a verbatim match.
4991 2019-02-15 Tom Tromey <tromey@adacore.com>
4993 * ravenscar-thread.c (ravenscar_thread_target::resume)
4994 (ravenscar_thread_target::wait): Special case wildcard requests.
4996 2019-02-15 Tom Tromey <tromey@adacore.com>
4998 * ravenscar-thread.c (base_ptid): Remove.
4999 (struct ravenscar_thread_target) <close>: New method.
5000 <m_base_ptid>: New member.
5001 <update_inferior_ptid, active_task, task_is_currently_active,
5002 runtime_initialized>: Declare methods.
5003 <ravenscar_thread_target>: Add constructor.
5004 (ravenscar_thread_target::task_is_currently_active)
5005 (ravenscar_thread_target::update_inferior_ptid)
5006 (ravenscar_runtime_initialized): Rename. Now methods.
5007 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
5008 (ravenscar_thread_target::update_thread_list): Update.
5009 (ravenscar_thread_target::active_task): Now method.
5010 (ravenscar_thread_target::store_registers)
5011 (ravenscar_thread_target::prepare_to_store)
5012 (ravenscar_thread_target::prepare_to_store)
5013 (ravenscar_thread_target::mourn_inferior): Update.
5014 (ravenscar_inferior_created): Use "new" to create target.
5015 (ravenscar_thread_target::get_ada_task_ptid): Update.
5016 (_initialize_ravenscar): Don't initialize base_ptid.
5017 (ravenscar_ops): Remove global.
5019 2019-02-15 Tom Tromey <tromey@adacore.com>
5021 * target.h (push_target): Declare new overload.
5022 * target.c (push_target): New overload, taking an rvalue reference.
5023 * remote.c (remote_target::open_1): Use push_target overload.
5024 * corelow.c (core_target_open): Use push_target overload.
5026 2019-02-15 Tom Tromey <tromey@adacore.com>
5028 * ravenscar-thread.c (is_ravenscar_task)
5029 (ravenscar_task_is_currently_active): Return bool.
5030 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
5031 (_initialize_ravenscar): Remove "(void)".
5032 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
5035 2019-02-15 Tom Tromey <tromey@adacore.com>
5037 * ravenscar-thread.c (ravenscar_runtime_initializer)
5038 (has_ravenscar_runtime, get_running_thread_id)
5039 (ravenscar_thread_target::resume): Fix indentation.
5041 2019-02-15 Tom Tromey <tromey@adacore.com>
5043 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
5044 from ravenscar_arch_ops.
5045 (sparc_ravenscar_ops::fetch_registers)
5046 (sparc_ravenscar_ops::store_registers): Now methods.
5047 (sparc_ravenscar_prepare_to_store): Remove.
5048 (sparc_ravenscar_ops): Redefine.
5049 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
5050 methods and destructor. Remove members.
5051 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
5052 (ravenscar_thread_target::store_registers)
5053 (ravenscar_thread_target::prepare_to_store): Update.
5054 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
5056 (struct ppc_ravenscar_powerpc_ops): Derive from
5058 (ppc_ravenscar_powerpc_ops::fetch_registers)
5059 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
5060 (ppc_ravenscar_powerpc_ops): Redefine.
5061 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
5062 (ppc_ravenscar_e500_ops::fetch_registers)
5063 (ppc_ravenscar_e500_ops::store_registers): Now methods.
5064 (ppc_ravenscar_e500_ops): Redefine.
5065 * aarch64-ravenscar-thread.c
5066 (aarch64_ravenscar_generic_prepare_to_store): Remove.
5067 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
5068 (aarch64_ravenscar_fetch_registers)
5069 (aarch64_ravenscar_store_registers): Now methods.
5070 (aarch64_ravenscar_ops): Redefine.
5072 2019-02-15 Tom Tromey <tromey@adacore.com>
5074 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
5075 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5076 (ravenscar_thread_target::stopped_by_watchpoint)
5077 (ravenscar_thread_target::stopped_data_address)
5078 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
5080 2019-02-15 Tom Tromey <tromey@adacore.com>
5082 * ravenscar-thread.c: Fix some typos.
5084 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5085 Tom Tromey <tromey@adacore.com>
5087 * ada-lang.c (ada_exception_sal): Change addr_string to a
5089 (create_ada_exception_catchpoint): Update.
5091 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5092 Tom Tromey <tromey@adacore.com>
5094 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
5095 (bp_location_ops): Remove.
5096 (base_breakpoint_allocate_location): Update.
5097 (free_bp_location): Update.
5098 * ada-lang.c (class ada_catchpoint_location)
5099 <ada_catchpoint_location>: Remove ops parameter.
5100 (ada_catchpoint_location_dtor): Remove.
5101 (ada_catchpoint_location_ops): Remove.
5102 (allocate_location_exception): Update.
5103 * breakpoint.h (struct bp_location_ops): Remove.
5104 (class bp_location) <bp_location>: Remove bp_location_ops
5106 <~bp_location>: Add destructor.
5109 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5110 Pedro Alves <palves@redhat.com>
5112 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
5115 2019-02-14 David Michael <fedora.dm0@gmail.com>
5116 Samuel Thibault <samuel.thibault@gnu.org>
5117 Thomas Schwinge <thomas@codesourcery.com>
5119 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
5120 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
5122 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5124 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
5125 (check_empty): Use "const char *".
5127 * gnu-nat.c (gnu_nat_target::detach): Instead of
5128 'detach_inferior (pid)' call
5129 'detach_inferior (find_inferior_pid (pid))'.
5131 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
5132 'nat/fork-inferior.o'.
5133 * gnu-nat.c: #include "nat/fork-inferior.h".
5135 * gnu-nat.c (gnu_nat_target::detach): Instead of
5136 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
5137 * gnu-nat.h: #include "inf-child.h".
5138 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
5139 'i386_gnu_nat_target::fetch_registers'.
5140 (gnu_store_registers): Rename/move to
5141 'i386_gnu_nat_target::store_registers'.
5143 * config/i386/nm-i386gnu.h: Don't "#include" any files.
5144 * gnu-nat.h (mach_thread_info): New function.
5145 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
5147 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
5149 2019-02-14 Frederic Konrad <konrad@adacore.com>
5151 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
5153 2019-02-14 Joel Brobecker <brobecker@adacore.com>
5155 * windows-nat.c (windows_add_thread): Add new parameter
5156 "main_thread_p" with default value set to false. Update
5157 function documentation as well as all callers.
5158 (windows_delete_thread): Likewise.
5159 (fake_create_process): Update call to windows_add_thread.
5160 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
5161 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
5162 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
5163 call to windows_delete_thread.
5165 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
5167 * MAINTAINERS: Add Andrew Burgess as global maintainer.
5169 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5171 * symfile.c (find_separate_debug_file): Use canonical path of
5172 sysroot with child_path instead of gdb_sysroot if it is valid.
5174 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5176 * symfile.c (find_separate_debug_file): Use child_path to
5177 determine if an object file is under a sysroot.
5179 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5181 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5182 unittests/child-path-selftests.c.
5183 * common/pathstuff.c (child_path): New function.
5184 * common/pathstuff.h (child_path): New prototype.
5185 * unittests/child-path-selftests.c: New file.
5187 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5189 * symfile.c (find_separate_debug_file): Look for separate debug
5190 files in debug directories under the sysroot.
5192 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5194 * symtab.h (struct minimal_symbol data_p): New const method.
5195 (struct minimal_symbol text_p): Likewise.
5196 * symtab.c (output_source_filename): Use file name style
5198 (print_symbol_info): Likewise.
5199 (print_msymbol_info): Use address style to print addresses.
5200 Use function name style to print executable text symbols.
5201 (expand_symtab_containing_pc): Use data_p.
5202 (find_pc_sect_compunit_symtab): Likewise.
5204 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5206 * breakpoint.c (describe_other_breakpoints): Use address style
5208 (say_where): Likewise.
5210 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5212 * ada-typeprint.c (print_func_type): Print function name
5213 style to print function name.
5214 * c-typeprint.c (c_print_type_1): Likewise.
5216 2019-02-11 Alan Hayward <alan.hayward@arm.com>
5218 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
5221 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5223 * c-exp.y (direct_abs_decl): Use emplace_back to record the
5226 2019-02-10 Joel Brobecker <brobecker@adacore.com>
5228 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
5229 TYPE_CODE_REF types.
5231 2019-02-08 Jim Wilson <jimw@sifive.com>
5233 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
5234 (riscv_linux_fregset): New.
5235 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
5237 2019-02-07 Tom Tromey <tom@tromey.com>
5239 * thread.c (thread_cancel_execution_command): Update.
5240 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
5242 (struct thread_fsm_ops): Remove.
5243 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
5244 (thread_fsm_should_stop, thread_fsm_return_value)
5245 (thread_fsm_set_finished, thread_fsm_finished_p)
5246 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
5248 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
5249 * infrun.c (clear_proceed_status_thread)
5250 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
5251 (print_stop_event): Update.
5252 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
5254 (step_command_fsm_ops): Remove.
5255 (new_step_command_fsm): Remove.
5257 (step_command_fsm::should_stop): Rename from
5258 step_command_fsm_should_stop.
5259 (step_command_fsm::clean_up): Rename from
5260 step_command_fsm_clean_up.
5261 (step_command_fsm::do_async_reply_reason): Rename from
5262 step_command_fsm_async_reply_reason.
5263 (struct until_next_fsm): Inherit from thread_fsm. Add
5265 (until_next_fsm_ops): Remove.
5266 (new_until_next_fsm): Remove.
5267 (until_next_fsm::should_stop): Rename from
5268 until_next_fsm_should_stop.
5269 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
5270 (until_next_fsm::do_async_reply_reason): Rename from
5271 until_next_fsm_async_reply_reason.
5272 (struct finish_command_fsm): Inherit from thread_fsm. Add
5273 constructor. Change type of breakpoint.
5274 (finish_command_fsm_ops): Remove.
5275 (new_finish_command_fsm): Remove.
5276 (finish_command_fsm::should_stop): Rename from
5277 finish_command_fsm_should_stop.
5278 (finish_command_fsm::clean_up): Rename from
5279 finish_command_fsm_clean_up.
5280 (finish_command_fsm::return_value): Rename from
5281 finish_command_fsm_return_value.
5282 (finish_command_fsm::do_async_reply_reason): Rename from
5283 finish_command_fsm_async_reply_reason.
5284 (finish_command): Update.
5285 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
5287 (call_thread_fsm_ops): Remove.
5288 (call_thread_fsm::call_thread_fsm): Rename from
5289 new_call_thread_fsm.
5290 (call_thread_fsm::should_stop): Rename from
5291 call_thread_fsm_should_stop.
5292 (call_thread_fsm::should_notify_stop): Rename from
5293 call_thread_fsm_should_notify_stop.
5294 (run_inferior_call, call_function_by_hand_dummy): Update.
5295 * cli/cli-interp.c (should_print_stop_to_console): Update.
5296 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
5297 Add constructor. Change type of location_breakpoint,
5299 (until_break_fsm_ops): Remove.
5300 (new_until_break_fsm): Remove.
5301 (until_break_fsm::should_stop): Rename from
5302 until_break_fsm_should_stop.
5303 (until_break_fsm::clean_up): Rename from
5304 until_break_fsm_clean_up.
5305 (until_break_fsm::do_async_reply_reason): Rename from
5306 until_break_fsm_async_reply_reason.
5307 (until_break_command): Update.
5308 * thread-fsm.c: Remove.
5309 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
5311 2019-02-07 Tom Tromey <tom@tromey.com>
5313 * yy-remap.h: Add include guard.
5314 * xtensa-tdep.h: Add include guard.
5315 * xcoffread.h: Rename include guard.
5316 * varobj-iter.h: Add include guard.
5317 * tui/tui.h: Rename include guard.
5318 * tui/tui-winsource.h: Rename include guard.
5319 * tui/tui-wingeneral.h: Rename include guard.
5320 * tui/tui-windata.h: Rename include guard.
5321 * tui/tui-win.h: Rename include guard.
5322 * tui/tui-stack.h: Rename include guard.
5323 * tui/tui-source.h: Rename include guard.
5324 * tui/tui-regs.h: Rename include guard.
5325 * tui/tui-out.h: Rename include guard.
5326 * tui/tui-layout.h: Rename include guard.
5327 * tui/tui-io.h: Rename include guard.
5328 * tui/tui-hooks.h: Rename include guard.
5329 * tui/tui-file.h: Rename include guard.
5330 * tui/tui-disasm.h: Rename include guard.
5331 * tui/tui-data.h: Rename include guard.
5332 * tui/tui-command.h: Rename include guard.
5333 * tic6x-tdep.h: Add include guard.
5334 * target/waitstatus.h: Rename include guard.
5335 * target/wait.h: Rename include guard.
5336 * target/target.h: Rename include guard.
5337 * target/resume.h: Rename include guard.
5338 * target-float.h: Rename include guard.
5339 * stabsread.h: Add include guard.
5340 * rs6000-tdep.h: Add include guard.
5341 * riscv-fbsd-tdep.h: Add include guard.
5342 * regformats/regdef.h: Rename include guard.
5343 * record.h: Rename include guard.
5344 * python/python.h: Rename include guard.
5345 * python/python-internal.h: Rename include guard.
5346 * python/py-stopevent.h: Rename include guard.
5347 * python/py-ref.h: Rename include guard.
5348 * python/py-record.h: Rename include guard.
5349 * python/py-record-full.h: Rename include guard.
5350 * python/py-record-btrace.h: Rename include guard.
5351 * python/py-instruction.h: Rename include guard.
5352 * python/py-events.h: Rename include guard.
5353 * python/py-event.h: Rename include guard.
5354 * procfs.h: Add include guard.
5355 * proc-utils.h: Add include guard.
5356 * p-lang.h: Add include guard.
5357 * or1k-tdep.h: Rename include guard.
5358 * observable.h: Rename include guard.
5359 * nto-tdep.h: Rename include guard.
5360 * nat/x86-linux.h: Rename include guard.
5361 * nat/x86-linux-dregs.h: Rename include guard.
5362 * nat/x86-gcc-cpuid.h: Add include guard.
5363 * nat/x86-dregs.h: Rename include guard.
5364 * nat/x86-cpuid.h: Rename include guard.
5365 * nat/ppc-linux.h: Rename include guard.
5366 * nat/mips-linux-watch.h: Rename include guard.
5367 * nat/linux-waitpid.h: Rename include guard.
5368 * nat/linux-ptrace.h: Rename include guard.
5369 * nat/linux-procfs.h: Rename include guard.
5370 * nat/linux-osdata.h: Rename include guard.
5371 * nat/linux-nat.h: Rename include guard.
5372 * nat/linux-namespaces.h: Rename include guard.
5373 * nat/linux-btrace.h: Rename include guard.
5374 * nat/glibc_thread_db.h: Rename include guard.
5375 * nat/gdb_thread_db.h: Rename include guard.
5376 * nat/gdb_ptrace.h: Rename include guard.
5377 * nat/fork-inferior.h: Rename include guard.
5378 * nat/amd64-linux-siginfo.h: Rename include guard.
5379 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
5380 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
5381 * nat/aarch64-linux.h: Rename include guard.
5382 * nat/aarch64-linux-hw-point.h: Rename include guard.
5383 * mn10300-tdep.h: Add include guard.
5384 * mips-linux-tdep.h: Add include guard.
5385 * mi/mi-parse.h: Rename include guard.
5386 * mi/mi-out.h: Rename include guard.
5387 * mi/mi-main.h: Rename include guard.
5388 * mi/mi-interp.h: Rename include guard.
5389 * mi/mi-getopt.h: Rename include guard.
5390 * mi/mi-console.h: Rename include guard.
5391 * mi/mi-common.h: Rename include guard.
5392 * mi/mi-cmds.h: Rename include guard.
5393 * mi/mi-cmd-break.h: Rename include guard.
5394 * m2-lang.h: Add include guard.
5395 * location.h: Rename include guard.
5396 * linux-record.h: Rename include guard.
5397 * linux-nat.h: Add include guard.
5398 * linux-fork.h: Add include guard.
5399 * i386-darwin-tdep.h: Rename include guard.
5400 * hppa-linux-offsets.h: Add include guard.
5401 * guile/guile.h: Rename include guard.
5402 * guile/guile-internal.h: Rename include guard.
5403 * gnu-nat.h: Rename include guard.
5404 * gdb-stabs.h: Rename include guard.
5405 * frv-tdep.h: Add include guard.
5406 * f-lang.h: Add include guard.
5407 * event-loop.h: Add include guard.
5408 * darwin-nat.h: Rename include guard.
5409 * cp-abi.h: Rename include guard.
5410 * config/sparc/nm-sol2.h: Rename include guard.
5411 * config/nm-nto.h: Rename include guard.
5412 * config/nm-linux.h: Add include guard.
5413 * config/i386/nm-i386gnu.h: Rename include guard.
5414 * config/djgpp/nl_types.h: Rename include guard.
5415 * config/djgpp/langinfo.h: Rename include guard.
5416 * compile/gcc-cp-plugin.h: Add include guard.
5417 * compile/gcc-c-plugin.h: Add include guard.
5418 * compile/compile.h: Rename include guard.
5419 * compile/compile-object-run.h: Rename include guard.
5420 * compile/compile-object-load.h: Rename include guard.
5421 * compile/compile-internal.h: Rename include guard.
5422 * compile/compile-cplus.h: Rename include guard.
5423 * compile/compile-c.h: Rename include guard.
5424 * common/xml-utils.h: Rename include guard.
5425 * common/x86-xstate.h: Rename include guard.
5426 * common/version.h: Rename include guard.
5427 * common/vec.h: Rename include guard.
5428 * common/tdesc.h: Rename include guard.
5429 * common/selftest.h: Rename include guard.
5430 * common/scoped_restore.h: Rename include guard.
5431 * common/scoped_mmap.h: Rename include guard.
5432 * common/scoped_fd.h: Rename include guard.
5433 * common/safe-iterator.h: Rename include guard.
5434 * common/run-time-clock.h: Rename include guard.
5435 * common/refcounted-object.h: Rename include guard.
5436 * common/queue.h: Rename include guard.
5437 * common/ptid.h: Rename include guard.
5438 * common/print-utils.h: Rename include guard.
5439 * common/preprocessor.h: Rename include guard.
5440 * common/pathstuff.h: Rename include guard.
5441 * common/observable.h: Rename include guard.
5442 * common/netstuff.h: Rename include guard.
5443 * common/job-control.h: Rename include guard.
5444 * common/host-defs.h: Rename include guard.
5445 * common/gdb_wait.h: Rename include guard.
5446 * common/gdb_vecs.h: Rename include guard.
5447 * common/gdb_unlinker.h: Rename include guard.
5448 * common/gdb_unique_ptr.h: Rename include guard.
5449 * common/gdb_tilde_expand.h: Rename include guard.
5450 * common/gdb_sys_time.h: Rename include guard.
5451 * common/gdb_string_view.h: Rename include guard.
5452 * common/gdb_splay_tree.h: Rename include guard.
5453 * common/gdb_setjmp.h: Rename include guard.
5454 * common/gdb_ref_ptr.h: Rename include guard.
5455 * common/gdb_optional.h: Rename include guard.
5456 * common/gdb_locale.h: Rename include guard.
5457 * common/gdb_assert.h: Rename include guard.
5458 * common/filtered-iterator.h: Rename include guard.
5459 * common/filestuff.h: Rename include guard.
5460 * common/fileio.h: Rename include guard.
5461 * common/environ.h: Rename include guard.
5462 * common/common-utils.h: Rename include guard.
5463 * common/common-types.h: Rename include guard.
5464 * common/common-regcache.h: Rename include guard.
5465 * common/common-inferior.h: Rename include guard.
5466 * common/common-gdbthread.h: Rename include guard.
5467 * common/common-exceptions.h: Rename include guard.
5468 * common/common-defs.h: Rename include guard.
5469 * common/common-debug.h: Rename include guard.
5470 * common/cleanups.h: Rename include guard.
5471 * common/buffer.h: Rename include guard.
5472 * common/btrace-common.h: Rename include guard.
5473 * common/break-common.h: Rename include guard.
5474 * cli/cli-utils.h: Rename include guard.
5475 * cli/cli-style.h: Rename include guard.
5476 * cli/cli-setshow.h: Rename include guard.
5477 * cli/cli-script.h: Rename include guard.
5478 * cli/cli-interp.h: Rename include guard.
5479 * cli/cli-decode.h: Rename include guard.
5480 * cli/cli-cmds.h: Rename include guard.
5481 * charset-list.h: Add include guard.
5482 * buildsym-legacy.h: Rename include guard.
5483 * bfin-tdep.h: Add include guard.
5484 * ax.h: Rename include guard.
5485 * arm-linux-tdep.h: Add include guard.
5486 * arm-fbsd-tdep.h: Add include guard.
5487 * arch/xtensa.h: Rename include guard.
5488 * arch/tic6x.h: Add include guard.
5489 * arch/i386.h: Add include guard.
5490 * arch/arm.h: Rename include guard.
5491 * arch/arm-linux.h: Rename include guard.
5492 * arch/arm-get-next-pcs.h: Rename include guard.
5493 * arch/amd64.h: Add include guard.
5494 * arch/aarch64-insn.h: Rename include guard.
5495 * arch-utils.h: Rename include guard.
5496 * annotate.h: Add include guard.
5497 * amd64-darwin-tdep.h: Rename include guard.
5498 * aarch64-linux-tdep.h: Add include guard.
5499 * aarch64-fbsd-tdep.h: Add include guard.
5500 * aarch32-linux-nat.h: Add include guard.
5502 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5504 * macrotab.c (macro_define_internal): New function that
5505 factorizes macro_define_object_internal and macro_define_function
5507 (macro_define_object_internal): Use macro_define_internal.
5508 (macro_define_function): Likewise.
5510 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5512 * macrocmd.c (extract_identifier): Return
5513 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
5516 2019-02-06 John Baldwin <jhb@FreeBSD.org>
5518 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
5520 2019-02-05 Tom Tromey <tom@tromey.com>
5522 * target.c (target_stack::unpush): Move assertion earlier.
5524 2019-01-30 Tom Tromey <tom@tromey.com>
5527 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
5528 (gdbpy_parse_and_eval): Likewise.
5529 * python/python-internal.h (gdbpy_allow_threads): New class.
5531 2019-01-28 John Baldwin <jhb@FreeBSD.org>
5533 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
5534 (aarch64_fbsd_fpregmap): Move earlier.
5535 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
5536 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5537 instead of individual calls to trad_frame_set_reg_addr.
5538 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
5540 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
5541 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5542 instead of individual calls to trad_frame_set_reg_addr.
5544 2019-01-28 Alan Hayward <alan.hayward@arm.com>
5546 * CONTRIBUTE: Replace contribution list with wiki link.
5548 2019-01-25 Tom Tromey <tom@tromey.com>
5550 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
5552 2019-01-25 Tom Tromey <tom@tromey.com>
5554 * xtensa-linux-nat.c: Fix common/ includes.
5555 * xml-support.h: Fix common/ includes.
5556 * xml-support.c: Fix common/ includes.
5557 * x86-linux-nat.c: Fix common/ includes.
5558 * windows-nat.c: Fix common/ includes.
5559 * varobj.h: Fix common/ includes.
5560 * varobj.c: Fix common/ includes.
5561 * value.c: Fix common/ includes.
5562 * valops.c: Fix common/ includes.
5563 * utils.c: Fix common/ includes.
5564 * unittests/xml-utils-selftests.c: Fix common/ includes.
5565 * unittests/utils-selftests.c: Fix common/ includes.
5566 * unittests/unpack-selftests.c: Fix common/ includes.
5567 * unittests/tracepoint-selftests.c: Fix common/ includes.
5568 * unittests/style-selftests.c: Fix common/ includes.
5569 * unittests/string_view-selftests.c: Fix common/ includes.
5570 * unittests/scoped_restore-selftests.c: Fix common/ includes.
5571 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
5572 * unittests/scoped_fd-selftests.c: Fix common/ includes.
5573 * unittests/rsp-low-selftests.c: Fix common/ includes.
5574 * unittests/parse-connection-spec-selftests.c: Fix common/
5576 * unittests/optional-selftests.c: Fix common/ includes.
5577 * unittests/offset-type-selftests.c: Fix common/ includes.
5578 * unittests/observable-selftests.c: Fix common/ includes.
5579 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
5580 * unittests/memrange-selftests.c: Fix common/ includes.
5581 * unittests/memory-map-selftests.c: Fix common/ includes.
5582 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
5583 * unittests/function-view-selftests.c: Fix common/ includes.
5584 * unittests/environ-selftests.c: Fix common/ includes.
5585 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
5586 * unittests/common-utils-selftests.c: Fix common/ includes.
5587 * unittests/cli-utils-selftests.c: Fix common/ includes.
5588 * unittests/array-view-selftests.c: Fix common/ includes.
5589 * ui-file.c: Fix common/ includes.
5590 * tui/tui-io.c: Fix common/ includes.
5591 * tracepoint.h: Fix common/ includes.
5592 * tracepoint.c: Fix common/ includes.
5593 * tracefile-tfile.c: Fix common/ includes.
5594 * top.h: Fix common/ includes.
5595 * top.c: Fix common/ includes.
5596 * thread.c: Fix common/ includes.
5597 * target/waitstatus.h: Fix common/ includes.
5598 * target/waitstatus.c: Fix common/ includes.
5599 * target.h: Fix common/ includes.
5600 * target.c: Fix common/ includes.
5601 * target-memory.c: Fix common/ includes.
5602 * target-descriptions.c: Fix common/ includes.
5603 * symtab.h: Fix common/ includes.
5604 * symfile.c: Fix common/ includes.
5605 * stap-probe.c: Fix common/ includes.
5606 * spu-linux-nat.c: Fix common/ includes.
5607 * sparc-nat.c: Fix common/ includes.
5608 * source.c: Fix common/ includes.
5609 * solib.c: Fix common/ includes.
5610 * solib-target.c: Fix common/ includes.
5611 * ser-unix.c: Fix common/ includes.
5612 * ser-tcp.c: Fix common/ includes.
5613 * ser-pipe.c: Fix common/ includes.
5614 * ser-base.c: Fix common/ includes.
5615 * selftest-arch.c: Fix common/ includes.
5616 * s12z-tdep.c: Fix common/ includes.
5617 * rust-exp.y: Fix common/ includes.
5618 * rs6000-aix-tdep.c: Fix common/ includes.
5619 * riscv-tdep.c: Fix common/ includes.
5620 * remote.c: Fix common/ includes.
5621 * remote-notif.h: Fix common/ includes.
5622 * remote-fileio.h: Fix common/ includes.
5623 * remote-fileio.c: Fix common/ includes.
5624 * regcache.h: Fix common/ includes.
5625 * regcache.c: Fix common/ includes.
5626 * record-btrace.c: Fix common/ includes.
5627 * python/python.c: Fix common/ includes.
5628 * python/py-type.c: Fix common/ includes.
5629 * python/py-inferior.c: Fix common/ includes.
5630 * progspace.h: Fix common/ includes.
5631 * producer.c: Fix common/ includes.
5632 * procfs.c: Fix common/ includes.
5633 * proc-api.c: Fix common/ includes.
5634 * printcmd.c: Fix common/ includes.
5635 * ppc-linux-nat.c: Fix common/ includes.
5636 * parser-defs.h: Fix common/ includes.
5637 * osdata.c: Fix common/ includes.
5638 * obsd-nat.c: Fix common/ includes.
5639 * nat/x86-linux.c: Fix common/ includes.
5640 * nat/x86-linux-dregs.c: Fix common/ includes.
5641 * nat/x86-dregs.h: Fix common/ includes.
5642 * nat/x86-dregs.c: Fix common/ includes.
5643 * nat/ppc-linux.c: Fix common/ includes.
5644 * nat/mips-linux-watch.h: Fix common/ includes.
5645 * nat/mips-linux-watch.c: Fix common/ includes.
5646 * nat/linux-waitpid.c: Fix common/ includes.
5647 * nat/linux-ptrace.h: Fix common/ includes.
5648 * nat/linux-ptrace.c: Fix common/ includes.
5649 * nat/linux-procfs.c: Fix common/ includes.
5650 * nat/linux-personality.c: Fix common/ includes.
5651 * nat/linux-osdata.c: Fix common/ includes.
5652 * nat/linux-namespaces.c: Fix common/ includes.
5653 * nat/linux-btrace.h: Fix common/ includes.
5654 * nat/linux-btrace.c: Fix common/ includes.
5655 * nat/fork-inferior.c: Fix common/ includes.
5656 * nat/amd64-linux-siginfo.c: Fix common/ includes.
5657 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
5658 * nat/aarch64-linux.c: Fix common/ includes.
5659 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
5660 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
5661 * namespace.h: Fix common/ includes.
5662 * mips-linux-tdep.c: Fix common/ includes.
5663 * minsyms.c: Fix common/ includes.
5664 * mi/mi-parse.h: Fix common/ includes.
5665 * mi/mi-main.c: Fix common/ includes.
5666 * mi/mi-cmd-env.c: Fix common/ includes.
5667 * memrange.h: Fix common/ includes.
5668 * memattr.c: Fix common/ includes.
5669 * maint.h: Fix common/ includes.
5670 * maint.c: Fix common/ includes.
5671 * main.c: Fix common/ includes.
5672 * machoread.c: Fix common/ includes.
5673 * location.c: Fix common/ includes.
5674 * linux-thread-db.c: Fix common/ includes.
5675 * linux-nat.c: Fix common/ includes.
5676 * linux-fork.c: Fix common/ includes.
5677 * inline-frame.c: Fix common/ includes.
5678 * infrun.c: Fix common/ includes.
5679 * inflow.c: Fix common/ includes.
5680 * inferior.h: Fix common/ includes.
5681 * inferior.c: Fix common/ includes.
5682 * infcmd.c: Fix common/ includes.
5683 * inf-ptrace.c: Fix common/ includes.
5684 * inf-child.c: Fix common/ includes.
5685 * ia64-linux-nat.c: Fix common/ includes.
5686 * i387-tdep.c: Fix common/ includes.
5687 * i386-tdep.c: Fix common/ includes.
5688 * i386-linux-tdep.c: Fix common/ includes.
5689 * i386-linux-nat.c: Fix common/ includes.
5690 * i386-go32-tdep.c: Fix common/ includes.
5691 * i386-fbsd-tdep.c: Fix common/ includes.
5692 * i386-fbsd-nat.c: Fix common/ includes.
5693 * guile/scm-type.c: Fix common/ includes.
5694 * guile/guile.c: Fix common/ includes.
5695 * go32-nat.c: Fix common/ includes.
5696 * gnu-nat.c: Fix common/ includes.
5697 * gdbthread.h: Fix common/ includes.
5698 * gdbarch-selftests.c: Fix common/ includes.
5699 * gdb_usleep.c: Fix common/ includes.
5700 * gdb_select.h: Fix common/ includes.
5701 * gdb_bfd.c: Fix common/ includes.
5702 * gcore.c: Fix common/ includes.
5703 * fork-child.c: Fix common/ includes.
5704 * findvar.c: Fix common/ includes.
5705 * fbsd-nat.c: Fix common/ includes.
5706 * event-top.c: Fix common/ includes.
5707 * event-loop.c: Fix common/ includes.
5708 * dwarf2read.c: Fix common/ includes.
5709 * dwarf2loc.c: Fix common/ includes.
5710 * dwarf2-frame.c: Fix common/ includes.
5711 * dwarf-index-cache.c: Fix common/ includes.
5712 * dtrace-probe.c: Fix common/ includes.
5713 * disasm-selftests.c: Fix common/ includes.
5714 * defs.h: Fix common/ includes.
5715 * csky-tdep.c: Fix common/ includes.
5716 * cp-valprint.c: Fix common/ includes.
5717 * cp-support.h: Fix common/ includes.
5718 * cp-support.c: Fix common/ includes.
5719 * corelow.c: Fix common/ includes.
5720 * completer.h: Fix common/ includes.
5721 * completer.c: Fix common/ includes.
5722 * compile/compile.c: Fix common/ includes.
5723 * compile/compile-loc2c.c: Fix common/ includes.
5724 * compile/compile-cplus-types.c: Fix common/ includes.
5725 * compile/compile-cplus-symbols.c: Fix common/ includes.
5726 * command.h: Fix common/ includes.
5727 * cli/cli-dump.c: Fix common/ includes.
5728 * cli/cli-cmds.c: Fix common/ includes.
5729 * charset.c: Fix common/ includes.
5730 * build-id.c: Fix common/ includes.
5731 * btrace.h: Fix common/ includes.
5732 * btrace.c: Fix common/ includes.
5733 * breakpoint.h: Fix common/ includes.
5734 * breakpoint.c: Fix common/ includes.
5736 (enum agent_op): Fix common/ includes.
5737 * ax-general.c (struct aop_map): Fix common/ includes.
5738 * ax-gdb.c: Fix common/ includes.
5739 * auxv.c: Fix common/ includes.
5740 * auto-load.c: Fix common/ includes.
5741 * arm-tdep.c: Fix common/ includes.
5742 * arch/riscv.c: Fix common/ includes.
5743 * arch/ppc-linux-common.c: Fix common/ includes.
5744 * arch/i386.c: Fix common/ includes.
5745 * arch/arm.c: Fix common/ includes.
5746 * arch/arm-linux.c: Fix common/ includes.
5747 * arch/arm-get-next-pcs.c: Fix common/ includes.
5748 * arch/amd64.c: Fix common/ includes.
5749 * arch/aarch64.c: Fix common/ includes.
5750 * arch/aarch64-insn.c: Fix common/ includes.
5751 * arch-utils.c: Fix common/ includes.
5752 * amd64-windows-tdep.c: Fix common/ includes.
5753 * amd64-tdep.c: Fix common/ includes.
5754 * amd64-sol2-tdep.c: Fix common/ includes.
5755 * amd64-obsd-tdep.c: Fix common/ includes.
5756 * amd64-nbsd-tdep.c: Fix common/ includes.
5757 * amd64-linux-tdep.c: Fix common/ includes.
5758 * amd64-linux-nat.c: Fix common/ includes.
5759 * amd64-fbsd-tdep.c: Fix common/ includes.
5760 * amd64-fbsd-nat.c: Fix common/ includes.
5761 * amd64-dicos-tdep.c: Fix common/ includes.
5762 * amd64-darwin-tdep.c: Fix common/ includes.
5763 * agent.c: Fix common/ includes.
5764 * ada-lang.h: Fix common/ includes.
5765 * ada-lang.c: Fix common/ includes.
5766 * aarch64-tdep.c: Fix common/ includes.
5768 2019-01-25 Tom Tromey <tom@tromey.com>
5770 * common/create-version.sh: Use common/version.h.
5772 2019-01-24 Pedro Alves <palves@redhat.com>
5774 * infrun.c (signal_stop, signal_print, signal_program)
5775 (signal_catch, signal_pass): Now arrays instead of pointers.
5776 (update_signals_program_target, do_target_resume)
5777 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
5778 * linux-nat.c (linux_nat_target::pass_signals)
5779 (linux_nat_target::create_inferior, linux_nat_target::attach):
5781 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
5782 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
5783 * procfs.c (procfs_target::pass_signals): Adjust.
5784 * record-full.c (record_full_target::resume): Adjust.
5785 * remote.c (remote_target::pass_signals)
5786 (remote_target::program_signals): Adjust.
5787 * target-debug.h (target_debug_print_signals): Now takes a
5788 gdb::array_view as parameter. Adjust.
5789 * target.h (target_ops) <pass_signals, program_signals>: Replace
5790 pointer and length parameters with gdb::array_view.
5791 (target_pass_signals, target_program_signals): Likewise.
5792 * target-delegates.c: Regenerate.
5794 2019-01-24 Pedro Alves <palves@redhat.com>
5796 * common/forward-scope-exit.h
5797 (forward_scope_exit::forward_scope_exit): Pass arguments to
5798 m_bind_function directly, instead of creating a std::bind and
5801 2019-01-24 Alan Hayward <alan.hayward@arm.com>
5803 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5805 (pass_in_v_vfp_candidate): Likewise.
5807 2019-01-23 Tom Tromey <tom@tromey.com>
5808 Pedro Alves <palves@redhat.com>
5810 * regcache.c (class regcache_invalidator): Remove.
5811 (regcache::raw_write): Use make_scope_exit.
5813 2019-01-23 Tom Tromey <tom@tromey.com>
5815 * ui-out.h (class ui_out_emit_type): Update comment.
5817 2019-01-23 Tom Tromey <tom@tromey.com>
5819 * infrun.c (fetch_inferior_event): Update comment.
5821 2019-01-23 Tom Tromey <tom@tromey.com>
5822 Pedro Alves <palves@redhat.com>
5824 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
5826 (fetch_inferior_event): Use SCOPE_EXIT.
5829 2019-01-23 Tom Tromey <tom@tromey.com>
5830 Pedro Alves <palves@redhat.com>
5832 * infrun.c (disable_thread_events): Delete.
5833 (stop_all_threads): Use SCOPE_EXIT.
5835 2019-01-23 Tom Tromey <tom@tromey.com>
5836 Pedro Alves <palves@redhat.com>
5838 * symfile.c: Include forward-scope-exit.h.
5839 (clear_symtab_users_cleanup): Replace forward declaration with
5840 a FORWARD_SCOPE_EXIT.
5841 (syms_from_objfile_1): Use the forward_scope_exit and
5842 gdb::optional instead of cleanup_function.
5843 (reread_symbols): Use the forward_scope_exit instead of
5845 (clear_symtab_users_cleanup): Remove function.
5847 2019-01-23 Tom Tromey <tom@tromey.com>
5848 Pedro Alves <palves@redhat.com>
5850 * linux-nat.c: Include scope-exit.h.
5851 (cleanup_target_stop): Remove.
5852 (linux_nat_target::static_tracepoint_markers_by_strid): Use
5855 2019-01-23 Tom Tromey <tom@tromey.com>
5856 Pedro Alves <palves@redhat.com>
5858 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
5859 (call_function_by_hand_dummy): Use SCOPE_EXIT.
5861 2019-01-23 Tom Tromey <tom@tromey.com>
5862 Andrew Burgess <andrew.burgess@embecosm.com>
5863 Pedro Alves <palves@redhat.com>
5865 * infrun.c (fetch_inferior_event): Use scope_exit.
5866 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
5867 * top.c (execute_command): Use scope_exit.
5868 * breakpoint.c (bpstat_do_actions): Use scope_exit.
5869 * utils.c (do_bpstat_clear_actions_cleanup)
5870 (make_bpstat_clear_actions_cleanup): Remove.
5872 2019-01-23 Tom Tromey <tom@tromey.com>
5873 Pedro Alves <palves@redhat.com>
5875 * infrun.c: Include "common/scope-exit.h"
5876 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
5877 (wait_for_inferior): Use SCOPE_EXIT.
5878 (fetch_inferior_event): Use scope_exit.
5880 2019-01-23 Tom Tromey <tom@tromey.com>
5881 Pedro Alves <palves@redhat.com>
5883 * breakpoint.c (create_breakpoint): Remove cleanup.
5885 2019-01-23 Tom Tromey <tom@tromey.com>
5886 Andrew Burgess <andrew.burgess@embecosm.com>
5887 Pedro Alves <palves@redhat.com>
5889 2019-01-23 Pedro Alves <palves@redhat.com>
5891 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
5893 2019-01-23 Pedro Alves <palves@redhat.com>
5894 Andrew Burgess <andrew.burgess@embecosm.com>
5896 * gdbthread.h: Include "common/forward-scope-exit.h".
5897 (scoped_finish_thread_state): Redefine custom class in terms of
5900 2019-01-23 Pedro Alves <palves@redhat.com>
5901 Andrew Burgess <andrew.burgess@embecosm.com>
5903 * common/forward-scope-exit.h: New file.
5905 2019-01-23 Pedro Alves <palves@redhat.com>
5906 Andrew Burgess <andrew.burgess@embecosm.com>
5907 Tom Tromey <tom@tromey.com>
5909 * common/scope-exit.h: New file.
5911 2019-01-23 Pedro Alves <palves@redhat.com>
5913 * common/preprocessor.h (ESC): Rename to ...
5914 (ESC_PARENS): ... this.
5915 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
5916 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
5918 2019-01-23 Tom Tromey <tom@tromey.com>
5920 * language.h (class scoped_switch_to_sym_language_if_auto):
5921 Initialize m_lang in both cases.
5923 2019-01-23 Alan Hayward <alan.hayward@arm.com>
5925 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
5928 2019-01-22 Tom Tromey <tom@tromey.com>
5930 * corelow.c: Do not include sys/file.h.
5932 2019-01-22 Tom Tromey <tom@tromey.com>
5934 * tui/tui-wingeneral.h: Include gdb_curses.h.
5936 2019-01-22 Tom Tromey <tom@tromey.com>
5938 * source-cache.h (class source_cache) <get_source_lines,
5939 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
5941 2019-01-22 Tom Tromey <tom@tromey.com>
5943 * remote-fileio.h (struct remote_target): Declare.
5945 2019-01-22 Tom Tromey <tom@tromey.com>
5947 * python/py-arch.c: Do not include py-ref.h.
5948 * python/py-bpevent.c: Do not include py-ref.h.
5949 * python/py-cmd.c: Do not include py-ref.h.
5950 * python/py-continueevent.c: Do not include py-ref.h.
5951 * python/py-event.h: Do not include py-ref.h.
5952 * python/py-evtregistry.c: Do not include py-ref.h.
5953 * python/py-finishbreakpoint.c: Do not include py-ref.h.
5954 * python/py-frame.c: Do not include py-ref.h.
5955 * python/py-framefilter.c: Do not include py-ref.h.
5956 * python/py-function.c: Do not include py-ref.h.
5957 * python/py-infevents.c: Do not include py-ref.h.
5958 * python/py-linetable.c: Do not include py-ref.h.
5959 * python/py-objfile.c: Do not include py-ref.h.
5960 * python/py-param.c: Do not include py-ref.h.
5961 * python/py-prettyprint.c: Do not include py-ref.h.
5962 * python/py-progspace.c: Do not include py-ref.h.
5963 * python/py-symbol.c: Do not include py-ref.h.
5964 * python/py-symtab.c: Do not include py-ref.h.
5965 * python/py-type.c: Do not include py-ref.h.
5966 * python/py-unwind.c: Do not include py-ref.h.
5967 * python/py-utils.c: Do not include py-ref.h.
5968 * python/py-value.c: Do not include py-ref.h.
5969 * python/py-varobj.c: Do not include py-ref.h.
5970 * python/py-xmethods.c: Do not include py-ref.h.
5971 * python/python.c: Do not include py-ref.h.
5972 * varobj.c: Do not include py-ref.h.
5974 2019-01-22 Tom Tromey <tom@tromey.com>
5976 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
5979 2019-01-22 Tom Tromey <tom@tromey.com>
5981 * compile/compile-cplus-types.c: Remove a comment by #include.
5983 2019-01-22 Tom Tromey <tom@tromey.com>
5985 * compile/gcc-c-plugin.h: Include compile-internal.h.
5987 2019-01-22 Tom Tromey <tom@tromey.com>
5989 * stabsread.c (EXTERN): Do not define.
5990 (symnum, next_symbol_text_func, processing_gcc_compilation)
5991 (within_function, global_sym_chain, global_stabs)
5992 (previous_stab_code, this_object_header_files)
5993 (n_this_object_header_files)
5994 (n_allocated_this_object_header_files): Define.
5995 * stabsread.h (EXTERN): Never define. Use "extern".
5997 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5999 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
6002 2019-01-21 Tom Tromey <tom@tromey.com>
6004 * ui-out.c: Fix includes.
6005 * tui/tui-source.c: Fix includes.
6006 * target.c: Fix includes.
6007 * remote.c: Fix includes.
6008 * regcache.c: Fix includes.
6009 * python/py-block.c: Fix includes.
6010 * printcmd.c: Fix includes.
6011 * or1k-tdep.c: Fix includes.
6012 * mi/mi-main.c: Fix includes.
6013 * m32r-tdep.c: Fix includes.
6014 * csky-tdep.c: Fix includes.
6015 * compile/compile-cplus-types.c: Fix includes.
6016 * cli/cli-interp.c: Fix includes.
6018 2019-01-21 Alan Hayward <alan.hayward@arm.com>
6020 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
6023 2019-01-16 Tom Tromey <tom@tromey.com>
6025 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
6027 (struct objfile) <msymbols_range>: Move from top level.
6028 <msymbols>: New method.
6029 (class objfile_msymbols): Remove.
6030 * symtab.c (default_collect_symbol_completion_matches_break_on):
6032 * symmisc.c (dump_msymbols): Update.
6033 * stabsread.c (scan_file_globals): Update.
6034 * objc-lang.c (info_selectors_command, info_classes_command)
6035 (find_methods): Update.
6036 * minsyms.c (find_solib_trampoline_target): Update.
6037 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
6038 * coffread.c (coff_symfile_read): Update.
6039 * ada-lang.c (ada_lookup_simple_minsym)
6040 (ada_collect_symbol_completion_matches): Update.
6042 2019-01-16 Tom Tromey <tom@tromey.com>
6044 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
6045 type. Remove no-argument constructor.
6046 <iterator::operator++>: Simplify.
6048 <end>: Use minimal_symbol_count.
6050 2019-01-16 Tom Tromey <tom@tromey.com>
6052 * objfiles.h (struct objfile) <psymtabs>: New method.
6053 (class objfile_psymtabs): Remove.
6054 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
6056 <range>: New method.
6057 (require_partial_symbols): Change return type.
6058 * psymtab.c (require_partial_symbols)
6059 (psym_expand_symtabs_matching): Update.
6060 * mdebugread.c (parse_partial_symbols): Update.
6061 * dbxread.c (dbx_end_psymtab): Update.
6063 2019-01-15 Tom Tromey <tom@tromey.com>
6065 * symtab.c (lookup_objfile_from_block)
6066 (lookup_symbol_in_objfile_symtabs)
6067 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
6068 (find_line_symtab, info_sources_command)
6069 (default_collect_symbol_completion_matches_break_on)
6070 (make_source_files_completion_list): Update.
6071 * symmisc.c (print_objfile_statistics, dump_objfile)
6072 (maintenance_print_symbols, maintenance_info_symtabs)
6073 (maintenance_check_symtabs, maintenance_info_line_tables):
6075 * source.c (select_source_symtab)
6076 (forget_cached_source_info_for_objfile): Update.
6077 * objfiles.h (class objfile_compunits): Remove.
6078 (struct objfile) <compunits_range>: New typedef.
6079 (compunits): New method.
6080 * objfiles.c (objfile_relocate1): Update.
6081 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6082 * maint.c (count_symtabs_and_blocks): Update.
6083 * linespec.c (iterate_over_all_matching_symtabs): Update.
6084 * cp-support.c (add_symbol_overload_list_qualified): Update.
6085 * coffread.c (coff_symtab_read): Update.
6086 * ada-lang.c (add_nonlocal_symbols)
6087 (ada_collect_symbol_completion_matches)
6088 (ada_add_global_exceptions): Update.
6090 2019-01-15 Tom Tromey <tom@tromey.com>
6092 * progspace.h (program_space) <objfiles_safe_range>: New
6094 <objfiles_safe>: New method.
6095 * objfiles.h (class all_objfiles_safe): Remove.
6096 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
6097 * jit.c (jit_inferior_exit_hook): Update.
6099 2019-01-17 Tom Tromey <tom@tromey.com>
6101 * progspace.h (program_space) <objfiles_range>: New typedef.
6102 <objfiles>: New method.
6103 <objfiles_head>: Rename from objfiles.
6104 (object_files): Update.
6105 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
6106 * guile/scm-pretty-print.c
6107 (ppscm_find_pretty_printer_from_objfiles): Update.
6108 * guile/scm-objfile.c (gdbscm_objfiles): Update.
6109 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
6111 * python/py-progspace.c (pspy_get_objfiles): Update.
6112 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6114 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6115 (objfpy_lookup_objfile_by_build_id): Update.
6116 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6117 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6119 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6120 (expand_symtab_containing_pc, lookup_objfile_from_block)
6121 (lookup_static_symbol, basic_lookup_transparent_type)
6122 (find_pc_sect_compunit_symtab, find_symbol_at_address)
6123 (find_line_symtab, info_sources_command)
6124 (default_collect_symbol_completion_matches_break_on)
6125 (make_source_files_completion_list, find_main_name): Update.
6126 * symmisc.c (print_symbol_bcache_statistics)
6127 (print_objfile_statistics, maintenance_print_symbols)
6128 (maintenance_print_msymbols, maintenance_print_objfiles)
6129 (maintenance_info_symtabs, maintenance_check_symtabs)
6130 (maintenance_expand_symtabs, maintenance_info_line_tables):
6132 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
6133 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
6134 (map_overlay_command, unmap_overlay_command)
6135 (simple_overlay_update, expand_symtabs_matching)
6136 (map_symbol_filenames): Update.
6137 * symfile-debug.c (set_debug_symfile): Update.
6138 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
6140 * source.c (select_source_symtab, forget_cached_source_info):
6142 * solib.c (solib_read_symbols): Update.
6143 * solib-spu.c (append_ocl_sos): Update.
6144 * psymtab.c (maintenance_print_psymbols)
6145 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
6146 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
6147 * printcmd.c (info_symbol_command): Update.
6148 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
6150 * objfiles.h (class all_objfiles): Remove.
6151 * objfiles.c (have_partial_symbols, have_full_symbols)
6152 (have_minimal_symbols, qsort_cmp, update_section_map)
6153 (shared_objfile_contains_address_p)
6154 (default_iterate_over_objfiles_in_search_order): Update.
6155 * objc-lang.c (info_selectors_command, info_classes_command)
6156 (find_methods): Update.
6157 * minsyms.c (find_solib_trampoline_target): Update.
6158 * maint.c (maintenance_info_sections)
6159 (maintenance_translate_address, count_symtabs_and_blocks):
6161 * main.c (captured_main_1): Update.
6162 * linux-thread-db.c (try_thread_db_load_from_pdir)
6163 (has_libpthread): Update.
6164 * linespec.c (iterate_over_all_matching_symtabs)
6165 (search_minsyms_for_name): Update.
6166 * jit.c (jit_find_objf_with_entry_addr): Update.
6167 * hppa-tdep.c (find_unwind_entry)
6168 (hppa_lookup_stub_minimal_symbol): Update.
6169 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
6171 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6172 (elf_gnu_ifunc_resolve_by_got): Update.
6173 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
6174 * dwarf-index-write.c (save_gdb_index_command): Update.
6175 * cp-support.c (add_symbol_overload_list_qualified): Update.
6176 * breakpoint.c (create_overlay_event_breakpoint)
6177 (create_longjmp_master_breakpoint)
6178 (create_std_terminate_master_breakpoint)
6179 (create_exception_master_breakpoint): Update.
6180 * blockframe.c (find_pc_partial_function): Update.
6181 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
6182 (ada_collect_symbol_completion_matches)
6183 (ada_add_global_exceptions): Update.
6185 2019-01-17 Tom Tromey <tom@tromey.com>
6187 * solib-target.c (lm_info_target_p): Remove typedef. Don't
6189 (solib_target_parse_libraries): Change return type.
6190 (library_list_start_segment, library_list_start_section)
6191 (library_list_end_library, library_list_start_library); Update.
6192 (solib_target_free_library_list): Remove.
6193 (solib_target_parse_libraries): Remove cleanup. Change return
6195 (solib_target_current_sos): Update.
6197 2019-01-17 Tom Tromey <tromey@bapiya>
6199 * valprint.c: Replace "the the" with "the".
6200 * symtab.c: Replace "the the" with "the".
6201 * solib.c: Replace "the the" with "the".
6202 * solib-dsbt.c: Replace "the the" with "the".
6203 * linespec.c: Replace "the the" with "the".
6204 * dwarf2loc.h: Replace "the the" with "the".
6205 * amd64-windows-tdep.c: Replace "the the" with "the".
6206 * aarch64-tdep.c: Replace "the the" with "the".
6208 2019-01-16 Keith Seitz <keiths@redhat.com>
6211 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
6212 <builder>: Rename to ..
6213 <m_builder>: ... this and make private.
6214 (dwarf2_cu::get_builder): New method. Change all users of
6215 `builder' to use this method.
6216 (dwarf2_start_symtab): Move to ...
6217 (dwarf2_cu::start_symtab): ... here. Update all callers
6218 (setup_type_unit_groups): Move to ...
6219 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
6221 (dwarf2_cu::reset_builder): New method.
6222 (process_full_compunit, process_full_type_unit): Use
6223 dwarf2_cu::reset_builder.
6224 (follow_die_offset): Record the ancestor CU if it is different
6225 from the followed DIE's CU.
6226 (follow_die_sig_1): Likewise.
6228 2019-01-15 Tom Tromey <tom@tromey.com>
6230 * remote.c (class remote_state) <buf>: Now a char_vector.
6232 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
6234 (remote_target::getpkt_or_notif_sane_1)
6235 (remote_target::getpkt_sane)
6236 (remote_target::getpkt_or_notif_sane): Likewise.
6237 (class remote_target) <putpkt>: New overload.
6238 (remote_target::read_frame): Change type of "buf_p". Remove
6240 (packet_ok): New overload.
6241 (packet_check_result): New overload.
6244 2019-01-14 Tom Tromey <tom@tromey.com>
6246 * remote-notif.c (handle_notification, remote_notif_ack)
6247 (remote_notif_parse): Make "buf" const.
6248 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
6250 (remote_notif_parse, remote_notif_ack, handle_notification):
6252 * remote.c (remote_notif_stop_parse): Make "buf" const.
6253 (remote_target::remote_parse_stop_reply): Make "buf" const.
6254 (remote_notif_stop_ack): Make "buf" const.
6256 2019-01-14 Tom Tromey <tom@tromey.com>
6258 * remote.c (remote_console_output): Make parameter const.
6260 2019-01-14 Tom Tromey <tom@tromey.com>
6262 * target-debug.h (target_debug_print_signals): Constify.
6263 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
6264 * procfs.c (procfs_target::pass_signals): Update.
6265 * linux-nat.c (linux_nat_target::pass_signals): Update.
6266 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
6267 * target-delegates.c: Rebuild.
6268 * remote.c (remote_target::program_signals): Update.
6269 (remote_target::pass_signals): Update.
6270 * target.c (target_pass_signals): Constify argument.
6271 (target_program_signals): Likewise.
6272 * target.h (struct target_ops) <pass_signals, program_signals>:
6274 (target_pass_signals, target_program_signals): Constify argument.
6276 2019-01-14 Tom Tromey <tom@tromey.com>
6279 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
6281 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6283 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
6285 * rs6000-tdep.c: Include reggroups.h.
6286 (IS_V_ALIAS_PSEUDOREG): Define.
6287 (rs6000_register_name): Return names for the "vX" aliases.
6288 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
6289 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
6290 aliases. Call default_register_reggroup_p for all other
6292 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
6294 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
6295 Handle "vX" aliases.
6296 (v_alias_pseudo_register_collect): New function.
6297 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
6298 (rs6000_gdbarch_init): Initialize "vX" aliases as
6299 pseudo-registers. Restore registration of
6300 rs6000_pseudo_register_reggroup_p with
6301 set_tdesc_pseudo_register_reggroup_p.
6303 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
6305 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
6306 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
6307 set_gdbarch_num_pseudo_regs.
6309 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6311 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
6312 Remove arg prefixname, add do_set and do_show.
6313 Add member functions set_list and show_list.
6314 * cli/cli-style.c (class cli_style_option): Update accordingly.
6315 (style_set_list): Move to file scope.
6316 (style_show_list): Likewise.
6317 (set_style): Call help_list.
6318 (show_style): Call cmd_show_list.
6319 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
6320 Update to use the new macro.
6322 2019-10-12 Joel Brobecker <brobecker@adacore.com>
6324 * ada-lang.c (_initialize_ada_language): Expand the help text
6325 for the "catch exception" command.
6327 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6329 * symtab.c (matching_obj_sections): Initialize obj,
6330 declare it closer to its usage.
6332 2019-01-10 Tom Tromey <tom@tromey.com>
6334 * thread-iter.h (inf_threads_iterator): Use next_iterator.
6335 (basic_inf_threads_range): Remove.
6336 (inf_threads_range, inf_non_exited_threads_range)
6337 (safe_inf_threads_range): Use next_adapter.
6339 2019-01-10 Keith Seitz <keiths@redhat.com>
6343 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
6344 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
6346 2019-01-10 Keith Seitz <keiths@redhat.com>
6350 * dictionary.c (pending_to_vector): Remove.
6351 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6352 Remove _1 suffix, replacing functions of the same name. Update
6354 (dict_create_hashed, dict_create_hashed_expandable)
6355 (dict_create_linear, dict_create_linear_expandable, dict_free)
6356 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
6357 Make functions static.
6359 2019-01-10 Keith Seitz <keiths@redhat.com>
6363 * dictionary.h (struct dictionary): Replace declaration with
6365 (dict_create_hashed, dict_create_hashed_expandable)
6366 (dict_create_linear, dict_create_linear_expandable)
6367 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
6368 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
6369 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
6370 taking multidictionary argument.
6371 [ALL_DICT_SYMBOLS]: Update for multidictionary.
6372 * block.h (struct block) <dict>: Change to multidictionary
6373 and rename `multidict'.
6374 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
6375 symmisc.c: Update all dictionary references to multidictionary.
6377 2019-01-10 Keith Seitz <keiths@redhat.com>
6381 * dictionary.c: Include unordered_map.
6382 (pending_to_vector): New function.
6383 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6384 Rewrite the non-"_1" functions to take vector instead
6386 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
6387 "new" _1 versions of the same name.
6388 (multidictionary): Define.
6389 (std::hash<enum language): New definition.
6390 (collate_pending_symbols_by_language, mdict_create_hashed)
6391 (mdict_create_hashed_expandable, mdict_create_linear)
6392 (mdict_create_linear_expandable, mdict_free)
6393 (find_language_dictionary, create_new_language_dictionary)
6394 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
6395 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
6396 (mdict_size, mdict_empty): New functions.
6397 * dictionary.h (mdict_iterator): Define.
6399 2019-01-10 Pedro Alves <palves@redhat.com>
6401 * breakpoint.c (read_uploaded_action)
6402 (create_tracepoint_from_upload): Adjust to use
6403 gdb::unique_xmalloc_ptr.
6404 * ctf.c (ctf_write_uploaded_tp):
6405 (SET_ARRAY_FIELD): Use emplace_back.
6406 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
6407 * tracefile-tfile.c (tfile_write_uploaded_tp):
6408 * tracepoint.c (parse_tracepoint_definition): Adjust to use
6409 gdb::unique_xmalloc_ptr.
6410 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
6411 at_string, cond_string, cmd_strings>: Replace char pointers
6412 with gdb::unique_xmalloc_ptr.
6414 2019-01-10 Pedro Alves <palves@redhat.com>
6416 * solib-target.c (library_list_start_library): Don't xstrdup name.
6418 2019-01-10 Pedro Alves <palves@redhat.com>
6420 * mdebugread.c (parse_partial_symbols): Use
6421 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
6423 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6425 * linux-fork.c (scoped_switch_fork_info)
6426 <~scoped_switch_fork_info>: Fix incorrect variable name.
6428 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6430 * linux-fork.c (scoped_switch_fork_info)
6431 <scoped_switch_fork_info>: Make explicit.
6432 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
6434 2019-01-10 Tom Tromey <tom@tromey.com>
6436 * objfiles.h (objfile::reset_psymtabs): Update.
6437 * objfiles.c (objfile::objfile): Update.
6438 * psymtab.h (psymtab_storage::obstack): Update.
6439 (psymtab_storage::m_obstack): Use gdb::optional.
6440 (class psymtab_storage): Update comment. Remove objfile
6442 * psymtab.c (psymtab_storage::psymtab_storage): Update.
6444 2019-01-10 Tom Tromey <tom@tromey.com>
6446 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
6447 <free_psymtabs>: Now private.
6448 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
6449 (allocate_psymtab): Use new method.
6451 2019-01-10 Tom Tromey <tom@tromey.com>
6453 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
6454 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
6455 * mdebugread.c (parse_partial_symbols): Use
6456 allocate_dependencies.
6457 * dwarf2read.c (dwarf2_create_include_psymtab): Use
6458 allocate_dependencies.
6459 (process_psymtab_comp_unit_reader)
6460 (build_type_psymtab_dependencies): Likewise.
6461 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
6463 2019-01-10 Tom Tromey <tom@tromey.com>
6465 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
6466 PSYMBOL_SET_LANGUAGE.
6467 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
6469 2019-01-10 Tom Tromey <tom@tromey.com>
6471 * psymtab.h (psymtab_storage::obstack): New method.
6472 <m_obstack>: Rename from obstack; now private.
6473 * psymtab.c (psymtab_storage): Update.
6474 * dwarf2read.c (create_addrmap_from_index)
6475 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
6478 2019-01-10 Tom Tromey <tom@tromey.com>
6480 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
6481 * objfiles.h (objfile::reset_psymtabs): New method.
6483 2019-01-10 Tom Tromey <tom@tromey.com>
6485 * symmisc.c (print_symbol_bcache_statistics): Update.
6486 (print_objfile_statistics): Update.
6487 * symfile.c (reread_symbols): Update.
6488 * psymtab.h (class psymtab_storage): New.
6489 * psymtab.c (psymtab_storage): New constructor.
6490 (~psymtab_storage): New destructor.
6491 (require_partial_symbols): Update.
6492 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
6493 (find_pc_sect_psymtab, find_pc_sect_psymbol)
6494 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
6495 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
6496 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
6497 (start_psymtab_common, end_psymtab_common)
6498 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
6499 (allocate_psymtab): Update.
6500 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
6502 (dump_psymtab_addrmap, maintenance_print_psymbols)
6503 (maintenance_check_psymtabs): Update.
6504 (class objfile_psymtabs): Move to objfiles.h.
6505 * psympriv.h (discard_psymtab): Now inline.
6506 (psymtab_discarder::psymtab_discarder): Update.
6507 (psymtab_discarder::~psymtab_discarder): Update.
6508 (ALL_OBJFILE_PSYMTABS): Rewrite.
6509 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
6510 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
6512 <partial_symtabs>: New field.
6513 (class objfile_psymtabs): Move from psymtab.h. Update.
6514 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
6516 (objfile::~objfile): Don't destroy psymbol_cache.
6517 * mdebugread.c (parse_partial_symbols): Update.
6518 * dwarf2read.c (create_addrmap_from_index)
6519 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6520 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
6521 (add_partial_subprogram, dwarf2_ranges_read): Update.
6522 * dwarf-index-write.c (write_address_map)
6523 (write_one_signatured_type, recursively_write_psymbols)
6524 (class debug_names, class debug_names, write_psymtabs_to_index):
6527 2019-01-10 Tom Tromey <tom@tromey.com>
6529 * symtab.h (SYMBOL_SET_NAMES): Update.
6530 (symbol_set_names): Update.
6531 (MSYMBOL_SET_NAMES): Update.
6532 * symtab.c (symbol_set_names): Change argument to be an
6533 objfile_per_bfd_storage.
6534 * psymtab.c (add_psymbol_to_bcache): Update.
6535 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
6537 2019-01-10 Tom Tromey <tom@tromey.com>
6539 * symtab.c (create_demangled_names_hash): Change argument to be an
6540 objfile_per_bfd_storage.
6541 (symbol_set_names): Update.
6543 2019-01-10 Tom Tromey <tom@tromey.com>
6545 * xcoffread.c (xcoff_initial_scan): Unconditionally call
6547 * psymtab.c (init_psymbol_list): Do nothing if already called.
6548 * psympriv.h (init_psymbol_list): Add comment.
6549 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
6551 * dbxread.c (dbx_symfile_read): Unconditionally call
6554 2019-01-10 Tom Tromey <tom@tromey.com>
6556 * xcoffread.c (scan_xcoff_symtab): Update.
6557 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
6559 * mdebugread.c (parse_partial_symbols)
6560 (handle_psymbol_enumerators): Update.
6561 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
6562 * dbxread.c (read_dbx_symtab): Update.
6563 * psympriv.h (psymbol_placement): New enum.
6564 (add_psymbol_to_list): Update.
6566 2019-01-10 Tom Tromey <tom@tromey.com>
6568 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
6569 static_psymbols parameters.
6570 (scan_xcoff_symtab): Update.
6571 * psymtab.c (start_psymtab_common): Remove global_psymbols and
6572 static_psymbols parameters.
6573 * psympriv.h (start_psymtab_common): Update.
6574 * mdebugread.c (parse_partial_symbols): Update.
6575 * dwarf2read.c (create_partial_symtab): Update.
6576 * dbxread.c (read_dbx_symtab): Update.
6577 (start_psymtab): Remove global_psymbols and static_psymbols
6580 2019-01-10 Tom Tromey <tom@tromey.com>
6582 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
6583 * psymtab.c (allocate_psymtab): Add comment.
6584 * psympriv.h (allocate_psymtab): Add comment.
6585 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
6587 * dbxread.c (dbx_end_psymtab): Remove some initializations.
6589 2019-01-10 Tom Tromey <tom@tromey.com>
6591 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6593 * mipsread.c: Include mdebugread.h.
6594 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6596 * elfread.c: Include mdebugread.h.
6598 2019-01-09 Tom Tromey <tom@tromey.com>
6600 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
6601 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
6602 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
6603 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
6604 (psym_lookup_symbol, psym_find_last_source_symtab)
6605 (psym_forget_cached_source_info, psym_print_stats)
6606 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
6607 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
6608 (psym_map_matching_symbols, psym_expand_symtabs_matching)
6609 (psym_find_compunit_symtab_by_address)
6610 (maintenance_print_psymbols, maintenance_info_psymtabs)
6611 (maintenance_check_psymtabs): Use ranged for.
6612 * psymtab.h (class objfile_psymtabs): New.
6613 (require_partial_symbols): Return objfile_psymtabs.
6614 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
6616 2019-01-09 Tom Tromey <tom@tromey.com>
6618 * symfile.c (overlay_invalidate_all, find_pc_overlay)
6619 (find_pc_mapped_section, list_overlays_command)
6620 (map_overlay_command, unmap_overlay_command)
6621 (simple_overlay_update): Use all_objfiles.
6622 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
6623 * printcmd.c (info_symbol_command): Use all_objfiles.
6624 * objfiles.h (ALL_OBJSECTIONS): Remove.
6625 * maint.c (maintenance_translate_address): Use all_objfiles.
6626 * gcore.c (gcore_create_callback): Use all_objfiles.
6627 (objfile_find_memory_regions): Likewise.
6629 2019-01-09 Tom Tromey <tom@tromey.com>
6631 * symtab.c (find_line_symtab, info_sources_command)
6632 (make_source_files_completion_list): Use objfile_compunits.
6633 * source.c (select_source_symtab): Use objfile_compunits.
6634 * objfiles.h (struct objfile): Update comment.
6635 (ALL_OBJFILES): Remove.
6636 (ALL_FILETABS): Remove.
6637 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
6640 2019-01-09 Tom Tromey <tom@tromey.com>
6642 * symmisc.c (print_objfile_statistics, dump_objfile)
6643 (maintenance_print_symbols): Use compunit_filetabs.
6644 * source.c (forget_cached_source_info_for_objfile): Use
6646 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
6647 (ALL_FILETABS): Use compunit_filetabs.
6648 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
6649 * coffread.c (coff_symtab_read): Use compunit_filetabs.
6651 2019-01-09 Tom Tromey <tom@tromey.com>
6653 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
6654 (compunit_filetabs): New.
6655 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
6657 (info_sources_command, make_source_files_completion_list): Remove
6659 * symmisc.c (print_objfile_statistics, dump_objfile)
6660 (maintenance_print_symbols): Remove declaration.
6661 (maintenance_info_symtabs): Use compunit_filetabs.
6662 (maintenance_info_line_tables): Likewise.
6663 * source.c (select_source_symtab): Change local variable name.
6664 (forget_cached_source_info_for_objfile): Remove declaration.
6665 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
6666 * objfiles.c (objfile_relocate1): Remove declaration.
6667 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6669 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
6670 * coffread.c (coff_symtab_read): Remove declaration.
6671 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6674 2019-01-09 Tom Tromey <tom@tromey.com>
6676 * symtab.c (lookup_objfile_from_block)
6677 (find_pc_sect_compunit_symtab, search_symbols)
6678 (default_collect_symbol_completion_matches_break_on): Use
6680 * objfiles.h (ALL_COMPUNITS): Remove.
6681 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
6682 * cp-support.c (add_symbol_overload_list_qualified): Use
6684 * ada-lang.c (ada_collect_symbol_completion_matches)
6685 (ada_add_global_exceptions): Use objfile_compunits.
6687 2019-01-09 Tom Tromey <tom@tromey.com>
6689 * source.c (select_source_symtab)
6690 (forget_cached_source_info_for_objfile): Remove declaration.
6691 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6693 * maint.c (count_symtabs_and_blocks): Remove declaration.
6694 * cp-support.c (add_symbol_overload_list_qualified): Remove
6696 * coffread.c (coff_symtab_read): Remove declaration.
6697 * symtab.c (lookup_symbol_in_objfile_symtabs)
6698 (basic_lookup_transparent_type_1): Use objfile_compunits.
6699 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
6700 (info_sources_command, search_symbols)
6701 (default_collect_symbol_completion_matches_break_on)
6702 (make_source_files_completion_list): Remove declaration.
6703 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
6704 (ada_collect_symbol_completion_matches)
6705 (ada_add_global_exceptions): Remove declaration.
6706 * linespec.c (iterate_over_all_matching_symtabs): Use
6708 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
6709 (class objfile_compunits): New.
6710 (ALL_COMPUNITS): Use objfile_compunits.
6711 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
6712 (maintenance_check_symtabs, maintenance_info_line_tables): Use
6714 * objfiles.c (objfile_relocate1): Use objfile_compunits.
6716 2019-01-09 Tom Tromey <tom@tromey.com>
6718 * symtab.c (search_symbols)
6719 (default_collect_symbol_completion_matches_break_on): Use
6721 * ada-lang.c (ada_lookup_simple_minsym)
6722 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
6723 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
6724 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
6726 * coffread.c (coff_symfile_read): Use objfile_msymbols.
6727 * symmisc.c (dump_msymbols): Use objfile_msymbols.
6728 * objc-lang.c (find_methods): Use objfile_msymbols.
6729 (info_selectors_command, info_classes_command): Likewise.
6730 * stabsread.c (scan_file_globals): Use objfile_msymbols.
6731 * objfiles.h (class objfile_msymbols): New.
6732 (ALL_OBJFILE_MSYMBOLS): Remove.
6733 (ALL_MSYMBOLS): Remove.
6735 2019-01-09 Tom Tromey <tom@tromey.com>
6737 * common/next-iterator.h (next_adapter): Add Iterator template
6739 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
6740 (class all_objfiles_safe): New.
6741 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
6742 * objfiles.c (put_objfile_before): Update comment.
6743 (add_separate_debug_objfile): Likewise.
6744 (free_all_objfiles): Use all_objfiles_safe.
6745 (objfile_purge_solibs): Likewise.
6747 2019-01-09 Tom Tromey <tom@tromey.com>
6749 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6750 (expand_symtab_containing_pc, lookup_static_symbol)
6751 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
6752 (find_symbol_at_address, find_line_symtab, find_main_name): Use
6754 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
6755 * breakpoint.c (create_overlay_event_breakpoint)
6756 (create_longjmp_master_breakpoint)
6757 (create_std_terminate_master_breakpoint)
6758 (create_exception_master_breakpoint): Use all_objfiles.
6759 * linux-thread-db.c (try_thread_db_load_from_pdir)
6760 (has_libpthread): Use all_objfiles.
6761 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
6762 * linespec.c (iterate_over_all_matching_symtabs)
6763 (search_minsyms_for_name): Use all_objfiles.
6764 * maint.c (maintenance_info_sections): Use all_objfiles.
6765 * main.c (captured_main_1): Use all_objfiles.
6766 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
6767 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
6768 * guile/scm-pretty-print.c
6769 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
6770 * solib-spu.c (append_ocl_sos): Use all_objfiles.
6771 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
6772 (maintenance_print_msymbols): Use all_objfiles.
6773 * source.c (select_source_symtab): Use all_objfiles.
6774 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
6775 * symfile.c (remove_symbol_file_command)
6776 (expand_symtabs_matching, map_symbol_filenames): Use
6778 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
6780 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
6781 * objc-lang.c (find_methods): Use all_objfiles.
6782 * objfiles.c (have_partial_symbols, have_full_symbols)
6783 (have_minimal_symbols, qsort_cmp)
6784 (default_iterate_over_objfiles_in_search_order): Use
6786 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
6787 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
6788 (maintenance_check_psymtabs): Use all_objfiles.
6789 (ALL_PSYMTABS): Remove.
6790 * compile/compile-object-run.c (do_module_cleanup): Use
6792 * blockframe.c (find_pc_partial_function): Use all_objfiles.
6793 * cp-support.c (add_symbol_overload_list_qualified): Use
6795 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6797 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
6798 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
6800 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6801 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
6802 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6804 * solib.c (solib_read_symbols): Use all_objfiles
6806 2019-01-09 Tom Tromey <tom@tromey.com>
6808 * probe.c (parse_probes_in_pspace): Use all_objfiles.
6809 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
6811 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
6812 * symmisc.c (print_symbol_bcache_statistics)
6813 (print_objfile_statistics, maintenance_print_objfiles)
6814 (maintenance_info_symtabs, maintenance_check_symtabs)
6815 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
6817 * source.c (forget_cached_source_info): Use all_objfiles.
6818 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
6819 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6820 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
6821 * objfiles.c (update_section_map): Use all_objfiles.
6822 (shared_objfile_contains_address_p): Likewise.
6823 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
6824 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
6826 2019-01-09 Tom Tromey <tom@tromey.com>
6828 * common/next-iterator.h: New file.
6829 * objfiles.h (class all_objfiles): New.
6830 (struct objfile_iterator): New.
6832 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6834 * NEWS: Move the description of the changed "frame", "select-frame",
6835 and "info frame" commands to the Changed commands section.
6837 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
6839 * gdbtypes.c (check_stub_method_group): Remove handling of old
6841 * linespec.c (find_methods): Likewise.
6842 * stabsread.c (read_member_functions): Likewise.
6843 * valops.c (search_struct_method): Likewise.
6844 (value_struct_elt_for_reference): Likewise.
6845 * NEWS: Mention this change.
6847 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6849 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
6851 * source.c (print_source_lines_base): Update line number check.
6852 (print_source_lines): New function.
6853 (source_lines_range::source_lines_range): New function.
6854 * source.h (class source_lines_range): New class.
6855 (print_source_lines): New declaration.
6857 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6859 * linespec.c (linespec_state_destructor): Free self->canonical_names.
6861 2019-01-08 Tom Tromey <tom@tromey.com>
6862 Simon Marchi <simon.marchi@ericsson.com>
6865 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
6866 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
6867 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6868 * f-exp.y (DOLLAR_VARIABLE): Likewise.
6869 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
6870 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6872 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6874 * source.c (select_source_symtab): Move header comment to
6875 declaration in source.h.
6876 (forget_cached_source_info_for_objfile): Likewise.
6877 (forget_cached_source_info): Likewise.
6878 (identify_source_line): Likewise.
6879 * source.h (identify_source_line): Move declaration from symtab.h
6880 and add comment from source.c
6881 (print_source_lines): Likewise.
6882 (forget_cached_source_info_for_objfile): Likewise.
6883 (forget_cached_source_info): Likewise.
6884 (select_source_symtab): Likewise.
6885 (enum print_source_lines_flag): Move definition from symtab.h.
6886 * symtab.h (identify_source_line): Move declaration to source.h.
6887 (print_source_lines): Likewise.
6888 (forget_cached_source_info_for_objfile): Likewise.
6889 (forget_cached_source_info): Likewise.
6890 (select_source_symtab): Likewise.
6891 (enum print_source_lines_flag): Move definition to source.h.
6892 * tui/tui-hooks.c: Add 'source.h' include.
6894 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6896 * source.c (print_source_lines_base): Handle requests to print
6897 reverse line number sequences, and guard against empty lines
6900 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6902 * source.c (print_source_lines_base): Fix skip of '\r' if next
6905 2019-01-06 Tom Tromey <tom@tromey.com>
6907 * c-exp.y (struct c_parse_state) <macro_original_text,
6908 expansion_obstack>: New member.
6909 (macro_original_text, expansion_obstack): Remove globals.
6910 (scan_macro_expansion, scanning_macro_expansion)
6911 (finished_macro_expansion): Update.
6912 (scan_macro_cleanup): Remove.
6913 (yylex, c_parse): Update.
6915 2019-01-06 Tom Tromey <tom@tromey.com>
6917 * c-exp.y (struct c_parse_state) <strings>: New member.
6918 (operator_stoken): Update.
6920 2019-01-06 Tom Tromey <tom@tromey.com>
6922 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
6923 (union type_stack_elt) <typelist_val>: Now a pointer to
6925 (type_stack_cleanup): Don't declare.
6926 (push_typelist): Update.
6927 * parse.c (pop_typelist): Return a std::vector.
6928 (push_typelist): Take a std::vector.
6929 (follow_types): Update. Do not free args.
6930 (type_stack_cleanup): Remove.
6931 * c-exp.y (struct c_parse_state): New.
6932 (cpstate): New global.
6933 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
6934 (nonempty_typelist): Update.
6935 (func_mod): Create a new vector.
6936 (c_parse): Create a c_parse_state.
6937 (check_parameter_typelist): Do not delete params.
6938 (function_method): Update. Do not delete type_list.
6940 2019-01-06 Tom Tromey <tom@tromey.com>
6943 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
6945 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
6946 (print_return_value): Likewise.
6948 2019-01-05 Tom Tromey <tom@tromey.com>
6950 * contrib/cleanup_check.py: Remove.
6951 * contrib/gcc-with-excheck: Remove.
6952 * contrib/exsummary.py: Remove.
6953 * contrib/excheck.py: Remove.
6955 2019-01-05 Joel Brobecker <brobecker@adacore.com>
6957 * thread.c (delete_thread_1): Add gdb_assert that THR is not
6958 NULL. Initialize tpprev to NULL instead of assigning it
6959 to NULL on the next statement.
6960 * windows-nat.c (windows_delete_thread): Remove check for
6961 main_thread_id before printing thread exit notifications.
6962 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
6963 Remove thread ID check against main_thread_id.
6964 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
6965 windows_delete_thread.
6966 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
6968 2019-01-04 Tom Tromey <tom@tromey.com>
6970 * compile/compile.c (_initialize_compile): Use upper case for
6971 metasyntactic variables.
6972 * symmisc.c (_initialize_symmisc): Use upper case for
6973 metasyntactic variables.
6974 * psymtab.c (_initialize_psymtab): Use upper case for
6975 metasyntactic variables.
6976 * demangle.c (demangle_command): Use upper case for metasyntactic
6978 (_initialize_demangler): Likewise.
6979 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
6982 2019-01-03 Tom Tromey <tom@tromey.com>
6984 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
6986 2019-01-03 Tom Tromey <tom@tromey.com>
6988 * python/py-symtab.c (salpy_str): Update.
6989 (struct salpy_sal_object) <symtab>: Now a PyObject.
6990 (salpy_dealloc): Update.
6991 (del_objfile_sal): Use gdbpy_ref.
6993 2019-01-03 Tom Tromey <tom@tromey.com>
6995 * python/py-type.c (convert_field): Use new_reference. Return
6997 (make_fielditem): Return gdbpy_ref.
6998 (typy_fields): Update.
6999 (typy_getitem): Update.
7000 (field_name): Return gdbpy_ref. Use new_reference.
7001 (typy_iterator_iternext): Update.
7003 2019-01-03 Tom Tromey <tom@tromey.com>
7005 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
7007 2019-01-03 Tom Tromey <tom@tromey.com>
7009 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
7010 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
7011 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
7012 (pspy_set_frame_filters, pspy_set_frame_unwinders)
7013 (pspy_set_type_printers): Likewise.
7014 * python/py-function.c (fnpy_init): Use gdbpy_ref.
7015 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
7016 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
7017 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
7018 (objfpy_set_type_printers): Likewise.
7020 2019-01-03 Tom Tromey <tom@tromey.com>
7022 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
7023 (gdbpy_print_stack): Use gdbpy_err_fetch.
7024 * python/python-internal.h (class gdbpy_err_fetch): New class.
7025 (class gdbpy_enter) <m_error_type, m_error_value,
7026 m_error_traceback>: Remove.
7027 <m_error>: New member.
7028 (gdbpy_exception_to_string): Don't declare.
7029 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
7030 * python/py-value.c (convert_value_from_python): Use
7032 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
7033 gdbpy_exception_to_string.
7034 (gdbpy_handle_exception): Use gdbpy_err_fetch.
7035 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
7038 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7040 * linux-nat.c (delete_lwp_cleanup): Delete.
7041 (struct lwp_deleter): New struct.
7042 (lwp_info_up): New typedef.
7043 (linux_nat_target::follow_fork): Delete cleanup, and make use of
7046 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7048 * linux-fork.c (class scoped_switch_fork_info): New class.
7049 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
7051 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7053 * valops.c (find_overload_match): Remove use of null_cleanup, and
7054 calls to do_cleanups.
7056 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7058 * compile/compile-cplus-types.c
7059 (compile_cplus_instance::decl_name): Handle changes to
7061 * cp-support.c (cp_func_name): Update header comment, update
7063 * cp-support.h (cp_func_name): Update return type in declaration.
7064 * valops.c (find_overload_match): Move temp_func local to top
7065 level of function and change its type. Use temp_func to hold and
7066 delete temporary string obtained from cp_func_name.
7068 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7070 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
7071 gdb::char_vector, remove cleanup, and update uses of `msg`.
7073 2019-01-03 Jim Wilson <jimw@sifive.com>
7075 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
7077 2019-01-02 Tom Tromey <tom@tromey.com>
7079 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
7080 (tdesc_parse_xml): Remove cleanups.
7081 * target-descriptions.h (make_cleanup_free_target_description):
7083 (target_desc_deleter): New struct.
7084 (target_desc_up): New typedef.
7085 * target-descriptions.c (target_desc_deleter::operator()): Rename
7086 from free_target_description.
7087 (make_cleanup_free_target_description): Remove.
7089 2019-01-02 Tom Tromey <tom@tromey.com>
7091 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
7092 constructor, destructor.
7093 (linespec_parser): Remove typedef.
7094 (~linespec_parser): Rename from linespec_parser_delete.
7095 (linespec_lex_to_end, linespec_complete_label)
7096 (linespec_complete): Update.
7097 (decode_line_full): Remove cleanups.
7098 (decode_line_1): Update.
7100 2019-01-02 Tom Tromey <tom@tromey.com>
7102 * python/python-internal.h (inferior_to_inferior_object): Change
7104 * python/py-exitedevent.c (create_exited_event_object): Update.
7105 * python/py-inferior.c (inferior_to_inferior_object): Return
7107 (python_new_inferior, python_inferior_deleted)
7108 (thread_to_thread_object, delete_thread_object)
7109 (build_inferior_list, gdbpy_selected_inferior): Update.
7110 * python/py-infthread.c (create_thread_object): Update. Also fail
7111 if inferior_to_inferior_object fails.
7113 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
7115 * inferior.h (class inferior) <displaced_step_state>: New field.
7116 * infrun.h (struct displaced_step_state): Move here from
7117 infrun.c. Initialize fields, add constructor.
7118 <inf>: Remove field.
7119 <reset>: New method.
7120 * infrun.c (struct displaced_step_inferior_state): Move to
7122 (displaced_step_inferior_states): Remove.
7123 (get_displaced_stepping_state): Adust.
7124 (displaced_step_in_progress_any_inferior): Adjust.
7125 (displaced_step_in_progress_thread): Adjust.
7126 (displaced_step_in_progress): Adjust.
7127 (add_displaced_stepping_state): Remove.
7128 (get_displaced_step_closure_by_addr): Adjust.
7129 (remove_displaced_stepping_state): Remove.
7130 (infrun_inferior_exit): Call displaced_step_state.reset.
7131 (use_displaced_stepping): Don't check for NULL.
7132 (displaced_step_prepare_throw): Call
7133 get_displaced_stepping_state.
7134 (displaced_step_fixup): Don't check for NULL.
7135 (prepare_for_detach): Don't check for NULL.
7137 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7139 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
7140 in case of call that did not complete.
7142 2019-01-02 Andrey Utkin <autkin@undo.io>
7144 * symfile.c (find_separate_debug_file): Fix search of debug files for
7147 2019-01-02 Tom Tromey <tom@tromey.com>
7149 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
7151 * python/py-frame.c (frapy_older): Remove cast.
7152 (frapy_newer): Likewise.
7153 * python/py-breakpoint.c (local_setattro): Remove cast.
7154 * python/py-arch.c (archpy_name): Remove local variable.
7155 * python/py-type.c (gdbpy_lookup_type): Remove cast.
7157 2019-01-02 Joel Brobecker <brobecker@adacore.com>
7159 * unittests/basic_string_view/element_access/char/empty.cc:
7160 Fix year range in copyright header.
7162 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
7164 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
7166 <operator==>: Update with for removed field.
7168 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
7169 <isa_features>: ...this.
7170 <abi_features>: New field.
7171 (riscv_isa_flen): Update comment.
7172 (riscv_abi_xlen): New declaration.
7173 (riscv_abi_flen): New declaration.
7174 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
7176 (riscv_abi_xlen): New function.
7177 (riscv_isa_flen): Update to get answer from isa_features.
7178 (riscv_abi_flen): New function.
7179 (riscv_has_fp_abi): Update to get answer from abi_features.
7180 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
7182 (riscv_call_info) <xlen, flen>: Update comment.
7183 (riscv_call_arg_struct): Remove invalid assertions
7184 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
7186 (riscv_gdbarch_init): Gather isa features and abi features
7187 separately, ensure both match on the gdbarch when reusing an old
7188 gdbarch. Relax an error check to allow 32-bit abi float to run on
7189 a target with 64-bit float hardware.
7191 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7193 * source.c (search_command_helper): Stop reverse search
7194 when line 1 has been searched.
7196 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7198 * record-full.c (record_full_base_target::close): Rewrite
7199 record_full_core_buf_list free logic.
7201 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7203 * break-catch-syscall.c (print_one_catch_syscall): xfree
7206 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7208 * top.c (print_gdb_version): Update Copyright year in version
7211 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7213 Update copyright year range in all GDB files.
7215 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
7217 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
7219 For older changes see ChangeLog-2018.
7225 version-control: never