1 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
4 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5 instead of print_help_for_command.
6 (print_doc_of_command): New function.
7 (help_list): Add 'apropos -v word' suggestion.
8 (print_help_for_command): Style the command name using title style.
9 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
10 (_initialize_cli_cmds): Describe -v in apropos_command help.
12 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14 * cli/cli-style.h (cli_style_option): Add name in constructor,
15 add m_name class member, add constructor with intensity,
16 add name class function.
17 (cli_style_option::add_setshow_commands): Remove name argument.
18 (highlight_style, title_style): New styles.
19 * cli/cli-style.c (do_show): New function that shows a style
20 characteristic styling the style name with itself.
21 (set_style_name): New function.
22 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
23 Update all callers according to the changes in cli/cli-style.h.
24 * utils.h (fputs_highlighted): New function.
25 * utils.c (fputs_highlighted): Likewise.
27 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
29 * NEWS: Mention new pipe command and new convenience variables.
31 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
33 * cli/cli-cmds.c (pipe_command): New function.
34 (_initialize_cli_cmds): Call add_com for pipe_command.
35 Define | as an alias for pipe.
36 (exit_status_set_internal_vars): New function.
37 (shell_escape): Call exit_status_set_internal_vars.
38 cli/cli-decode.c (find_command_name_length): Recognize | as
39 a single character command.
41 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
43 * gdbcmd.h (execute_command_to_ui_file): New declaration.
44 top.c (execute_command_to_ui_file): New function, mostly a copy
45 of execute_command_to_string.
46 (execute_command_to_string): Implement by calling
47 execute_command_to_ui_file.
49 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
51 * top.h (saved_command_line): Remove declaration.
52 * top.c (previous_saved_command_line, previous_repeat_arguments):
54 (saved_command_line): Make static, define together with other
56 (dont_repeat): Clear repeat_arguments.
57 (repeat_previous, get_saved_command_line, save_command_line):
59 (gdb_init): Initialize saved_command_line
60 and previous_saved_command_line.
61 * main.c (captured_main_1): Remove saved_command_line initialization.
62 * event-top.c (handle_line_of_input): Update to use
63 the new 'repeat' related functions instead of direct access to
65 * command.h (repeat_previous, get_saved_command_line,
66 save_command_line): New declarations.
67 (dont_repeat): Add comment.
69 2019-05-30 Tom Tromey <tromey@adacore.com>
71 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
73 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
75 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
78 * completer.c (complete): Initialize variable word.
80 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
82 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
83 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
84 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
85 'body' is NULL to the outter 'if', protecting the '!is_define'
88 2019-05-29 Tom Tromey <tromey@adacore.com>
90 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
91 (dwarf_unknown): New function.
92 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
93 (dwarf_type_encoding_name): Use dwarf_unknown.
95 2019-05-29 Tom Tromey <tromey@adacore.com>
98 * cp-valprint.c (cp_print_value_fields): Call
99 cp_print_static_field inside "try".
101 2019-05-29 Tom Tromey <tromey@adacore.com>
103 * inflow.c (struct terminal_info): Add default operator=.
104 * configure: Rebuild.
105 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
106 -Wdeprecated-copy-dtor, -Wredundant-move.
108 2019-05-29 Tom Tromey <tromey@adacore.com>
111 * infcmd.c (print_return_value_1): Handle finish_print
113 (show_print_finish): New function.
114 (_initialize_infcmd): Add "set/show print finish" commands.
115 * valprint.c (user_print_options): Initialize new member.
116 * valprint.h (struct value_print_options) <finish_print>: New
119 2019-05-28 Tom Tromey <tromey@adacore.com>
121 * ada-lang.c (ada_remove_Xbn_suffix)
122 (find_old_style_renaming_symbol)
123 (parse_old_style_renaming): Remove.
124 (ada_find_renaming_symbol): Don't call
125 find_old_style_renaming_symbol.
126 (ada_is_renaming_symbol): Rename from
127 ada_find_renaming_symbol. Remove "block" parameter. Return
129 (ada_read_var_value): Update and simplify.
130 * ada-exp.y (write_var_or_type): Remove old code.
132 2019-05-28 Alan Hayward <alan.hayward@arm.com>
134 * event-top.c: Remove include comment.
135 * inflow.c (class scoped_ignore_sigttou): Move from here...
136 * inflow.h (class scoped_ignore_sigttou): ...to here.
137 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
138 * top.c: Remove include comment.
140 2019-05-27 Tom Tromey <tom@tromey.com>
144 2019-05-22 Tom Tromey <tromey@adacore.com>
146 * target.c (target_follow_exec): Constify parameter.
147 * target-delegates.c: Rebuild.
148 * remote.c (remote_target::follow_exec): Constify parameter.
149 * infrun.c (follow_exec): Constify parameter.
150 * target.h (struct target_ops) <follow_exec>: Constify parameter.
151 (target_follow_exec): Likewise.
153 2019-05-22 Alan Hayward <alan.hayward@arm.com>
155 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
156 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
158 2019-05-22 Alan Hayward <alan.hayward@arm.com>
160 * NEWS: Add debugredirect and testsuite sections.
162 2019-05-22 Simon Cook <simon.cook@embecosm.com>
164 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
165 target descriptions using exclusively floating point register name
168 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
171 * f-lang.c (build_fortran_types): Handle the case where
172 gdbarch_floatformat_for_type returns a nullptr.
174 2019-05-21 Tom de Vries <tdevries@suse.de>
177 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
179 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
182 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
184 * i386-tdep.c (i386_floatformat_for_type): Use
185 floatformats_ia64_quad for the 16-byte floating point component
186 within a fortran 32-byte complex number.
188 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
190 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
191 delete default constructor.
192 (find_partial_die): Update to return const struct.
193 (partial_die_parent_scope): Move variable declaration into scope
194 of its use and change its type to auto.
195 (guess_partial_die_structure_name): Likewise.
196 (partial_die_info::fixup): Likewise.
198 2019-05-17 Tom Tromey <tromey@adacore.com>
200 * source.c (find_and_open_source): Remove cast.
202 2019-05-17 Tom Tromey <tromey@adacore.com>
204 * annotate.c (annotate_source): Make "filename" const.
205 * annotate.h (annotate_source): Use const.
207 2019-05-17 Alan Hayward <alan.hayward@arm.com>
209 * disasm.c (set_disassembler_options): Send errors to stderr.
211 2019-05-17 Alan Hayward <alan.hayward@arm.com>
213 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
214 (cli_interp_base::set_logging): Check debug_redirect.
215 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
216 * cli/cli-logging.c (debug_redirect): Add static variable.
217 (pop_output_files): Add default param.
218 (handle_redirections): Print debug setting.
219 (show_logging_command): Likewise.
220 (_initialize_cli_logging): Add debugredirect command.
221 * interps.c (current_interp_set_logging): Add debug_redirect
223 * interps.h (set_logging): Add debug_redirect parameter.
224 (current_interp_set_logging): Likewise.
225 * mi/mi-common.h: Likewise.
226 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
228 2019-05-17 Alan Hayward <alan.hayward@arm.com>
229 Tom Tromey <tromey@adacore.com>
231 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
233 * cli/cli-interp.h (make_logging_output): Remove declaration.
234 * cli/cli-logging.c (make_logging_output): Remove function.
235 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
237 * ui-file.c (tee_file::tee_file): Remove bools.
238 (tee_file::~tee_file): Remove deletes.
239 * ui-file.h (tee_file): Remove bools.
241 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
243 * mi/mi-cmds.h (mi_cmd_complete): New function.
244 * mi/mi-main.c (mi_cmd_complete): Likewise.
245 * mi/mi-cmds.c: Define new MI command -complete.
246 * NEWS: Mention new -complete command.
248 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
250 * completer.h (complete): New function.
251 * completer.c (complete): Likewise.
252 * cli/cli-cmds.c: (complete_command): Update to use new complete()
253 function defined in completer.h.
255 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
257 * MAINTAINERS (Write After Approval): Add myself.
259 2019-05-17 Tom de Vries <tdevries@suse.de>
262 * dwarf2read.c (struct cu_partial_die_info): New struct.
263 (find_partial_die): Return cu_partial_die_info.
264 (partial_die_parent_scope, guess_partial_die_structure_name)
265 (partial_die_info::fixup): Handle new return type of find_partial_die.
267 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
269 * stap-probe.c (stap_parse_register_operand): Make "regname" an
270 "std::string", simplifying the algorithm.
272 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
274 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
275 (stap_static_probe_ops::get_probes): Likewise.
277 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
279 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
281 (stap_parse_single_operand): Join checks for
282 "gdbarch_stap_parse_special_token_p" and
283 "gdbarch_stap_parse_special_token" in the same "if" statement.
284 Invert check when verifying for operation on register
287 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
289 * stap-probe.c (stap_get_opcode): Update comment.
290 (stap_get_expected_argument_type): Likewise.
291 (handle_stap_probe): Likewise.
293 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
295 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
296 return type to 'bool'. Adjust comment. Use 'bool' when
298 (i386_stap_parse_special_token_three_arg_disp): Likewise.
299 * stap-probe.c (stap_parse_argument_1): Likewise.
300 (stap_is_operator): Likewise.
301 (stap_is_generic_prefix): Likewise.
302 (stap_is_register_prefix): Likewise.
303 (stap_is_register_indirection_prefix): Likewise.
304 (stap_is_integer_prefix): Likewise.
305 (stap_generic_check_suffix): Likewise.
306 (stap_check_integer_suffix): Likewise.
307 (stap_check_register_suffix): Likewise.
308 (stap_check_register_indirection_suffix): Likewise.
309 (stap_parse_register_operand): Likewise.
310 (stap_parse_single_operand): Likewise.
311 (stap_parse_argument_1): Likewise.
312 (stap_probe::get_argument_count): Likewise.
313 (stap_is_operator): Likewise.
315 2019-05-16 Tom Tromey <tromey@adacore.com>
317 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
320 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
322 * linux-thread-db.c (try_thread_db_load_1): Change return type
324 (try_thread_db_load): Likewise.
325 (try_thread_db_load_from_pdir_1): Likewise.
326 (try_thread_db_load_from_pdir): Likewise.
327 (try_thread_db_load_from_sdir): Likewise.
328 (try_thread_db_load_from_dir): Likewise.
329 (thread_db_load_search): Likewise.
330 (has_libpthread): Likewise.
331 (thread_db_load): Likewise.
333 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
335 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
336 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
337 NULL, and complain/return if that's the case.
339 2019-05-15 John Darrington <john@darrington.wattle.id.au>
341 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
342 (advance, posn, abstract_read_memory): New functions.
343 [struct mem_read_abstraction]: New struct.
344 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
346 2019-05-14 Tom Tromey <tromey@adacore.com>
348 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
349 value is not lval_memory.
351 2019-05-14 Tom Tromey <tromey@adacore.com>
353 * solib.c (info_sharedlibrary_command): Style the file name.
355 2019-05-14 Alan Hayward <alan.hayward@arm.com>
357 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
358 (aarch64_vnv_type): Likewise.
359 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
360 * common/tdesc.c: Likewise.
361 * common/tdesc.h (enum tdesc_type_kind): Likewise.
362 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
363 * features/aarch64-fpu.xml: Add ieee half view.
364 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
365 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
366 * gdbtypes.h (struct builtin_type): Likewise.
367 (struct objfile_type): Likewise.
369 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
371 * language.c (language_sniff_from_mangled_name): Fix "langauge"
373 * location.h (string_to_event_location): Likewise.
375 2019-05-11 Joel Brobecker <brobecker@adacore.com>
379 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
381 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
382 New variable declaration.
383 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
385 (print_one_breakpoint): Use ui_out::test_flags and new global
386 variable to compute use_fixed_output.
387 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
389 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
390 (mi_multi_location_breakpoint_output_fixed): Remove.
391 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
393 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
394 fix_multi_location_breakpoint_output flag if version >= 3.
395 * ui-out.h (enum ui_out_flag)
396 <fix_multi_location_breakpoint_output>: New enumerator.
398 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
400 * contrib/cc-with-tweaks.sh: Validate dwz's work.
402 2019-05-10 Tom Tromey <tromey@adacore.com>
404 * ada-lang.c (catch_ada_completer): New function.
405 (_initialize_ada_language): Use it.
407 2019-05-10 Tom Tromey <tromey@adacore.com>
409 * thread.c (print_thread_info): Make "requested_threads" const.
410 * gdbthread.h (print_thread_info): Make "requested_threads"
412 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
413 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
415 2019-05-08 Tom Tromey <tom@tromey.com>
417 * gdbtypes.c (objfile_type_data): Change type.
418 (objfile_type, _initialize_gdbtypes): Update.
420 2019-05-08 Tom Tromey <tom@tromey.com>
422 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
423 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
424 (_initialize_dwarf2_frame): Update.
426 2019-05-08 Tom Tromey <tom@tromey.com>
428 * objc-lang.c (objc_objfile_data): Change type.
429 (find_methods): Update.
430 (_initialize_objc_lang): Remove.
432 2019-05-08 Tom Tromey <tom@tromey.com>
434 * stabsread.c (rs6000_builtin_type_data): Change type.
435 (rs6000_builtin_type, _initialize_stabsread): Update.
437 2019-05-08 Tom Tromey <tom@tromey.com>
439 * mips-tdep.c (mips_pdr_data): Remove.
440 (_initialize_mips_tdep): Update.
442 2019-05-08 Tom Tromey <tom@tromey.com>
444 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
445 (hppa_init_objfile_priv_data, read_unwind_info)
446 (find_unwind_entry, _initialize_hppa_tdep): Update.
448 2019-05-08 Tom Tromey <tom@tromey.com>
450 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
451 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
453 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
455 2019-05-08 Tom Tromey <tom@tromey.com>
457 * mdebugread.c (basic_type_data): Change type.
458 (basic_type, _initialize_mdebugread): Update.
460 2019-05-08 Tom Tromey <tom@tromey.com>
462 * common/gdb_unique_ptr.h (struct noop_deleter): New.
464 2019-05-08 Tom Tromey <tom@tromey.com>
466 * nto-tdep.c (nto_inferior_data_reg): Change type.
467 (nto_inferior_data): Update.
468 (nto_inferior_data_cleanup, nto_new_inferior_data)
469 (_initialize_nto_tdep): Remove.
470 * nto-tdep.h (struct nto_inferior_data): Add initializers.
472 2019-05-08 Tom Tromey <tom@tromey.com>
474 * ada-lang.c (struct ada_inferior_data): Add initializers.
475 (ada_inferior_data): Change type.
476 (ada_inferior_data_cleanup): Remove.
477 (get_ada_inferior_data, ada_inferior_exit)
478 (struct ada_pspace_data): Add initializers, destructor.
479 (ada_pspace_data_handle): Change type.
480 (get_ada_pspace_data): Update.
481 (ada_pspace_data_cleanup): Remove.
483 2019-05-08 Tom Tromey <tom@tromey.com>
485 * coffread.c (struct coff_symfile_info): Add initializers.
486 (coff_objfile_data_key): Move lower. Change type.
487 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
489 (coff_free_info): Remove.
491 2019-05-08 Tom Tromey <tom@tromey.com>
493 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
494 (fbsd_pspace_data_handle): Move lower. Change type.
495 (get_fbsd_pspace_data): Update.
496 (fbsd_pspace_data_cleanup): Remove.
497 (_initialize_fbsd_tdep): Update.
499 2019-05-08 Tom Tromey <tom@tromey.com>
501 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
502 (get_ada_tasks_pspace_data): Update.
503 (ada_tasks_pspace_data_cleanup): Remove.
504 (_initialize_tasks): Update.
505 (ada_tasks_inferior_data_handle): Change type.
506 (get_ada_tasks_inferior_data): Update.
507 (ada_tasks_inferior_data_cleanup): Remove.
508 (struct ada_tasks_pspace_data): Add initializers.
510 2019-05-08 Tom Tromey <tom@tromey.com>
512 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
513 * symfile-debug.c (debug_sym_get_probes): Change type.
514 * stap-probe.c (handle_stap_probe):
515 (stap_static_probe_ops::get_probes): Change type.
516 * probe.h (class static_probe_ops) <get_probes>: Change type.
517 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
518 (parse_probes_in_pspace): Update.
519 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
521 (any_static_probe_ops::get_probes): Change type.
522 * elfread.c (elfread_data): New typedef.
523 (probe_key): Change type.
524 (elf_get_probes): Likewise. Update.
525 (probe_key_free): Remove.
526 (_initialize_elfread): Update.
527 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
529 (dtrace_process_dof_probe, dtrace_process_dof)
530 (dtrace_static_probe_ops::get_probe): Change type.
532 2019-05-08 Tom Tromey <tom@tromey.com>
534 * xcoffread.c (struct xcoff_symfile_info): Rename from
535 coff_symfile_info. Add initializers.
536 (xcoff_objfile_data_key): Move lower. Change type.
537 (XCOFF_DATA): Rewrite.
538 (xcoff_free_info): Remove.
539 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
540 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
541 (xcoff_initial_scan): Update.
543 2019-05-08 Tom Tromey <tom@tromey.com>
545 * solib-svr4.c (struct svr4_info): Add initializers and
547 <probes_table>: Now an htab_up.
548 (solib_svr4_pspace_data): Change type.
549 (free_probes_table): Simplify.
550 (~svr4_info): Rename from svr4_pspace_data_cleanup.
551 (get_svr4_info, probes_table_htab_remove_objfile_probes)
552 (probes_table_remove_objfile_probes, register_solib_event_probe)
553 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
554 (_initialize_svr4_solib): Update.
556 2019-05-08 Tom Tromey <tom@tromey.com>
558 * remote.c (remote_pspace_data): Change type.
559 (remote_pspace_data_cleanup): Remove.
560 (get_remote_exec_file, set_pspace_remote_exec_file)
561 (_initialize_remote): Update.
563 2019-05-08 Tom Tromey <tom@tromey.com>
565 * breakpoint.c (breakpoint_objfile_key): Change type.
566 (get_breakpoint_objfile_data): Update.
567 (free_breakpoint_objfile_data): Remove.
568 (_initialize_breakpoint): Update.
570 2019-05-08 Tom Tromey <tom@tromey.com>
572 * linux-tdep.c (struct linux_info): Add initializers.
573 (linux_inferior_data): Move. Change type.
574 (invalidate_linux_cache_inf): Update.
575 (linux_inferior_data_cleanup): Remove.
576 (get_linux_inferior_data, _initialize_linux_tdep): Update.
578 2019-05-08 Tom Tromey <tom@tromey.com>
580 * auxv.c (auxv_inferior_data): Move. Change type.
581 (auxv_inferior_data_cleanup): Remove.
582 (invalidate_auxv_cache_inf): Rewrite.
583 (get_auxv_inferior_data, _initialize_auxv): Update.
585 2019-05-08 Tom Tromey <tom@tromey.com>
587 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
588 (symfile_debug_objfile_data_key): Change type.
589 (symfile_debug_installed, debug_qf_has_symbols)
590 (debug_qf_find_last_source_symtab)
591 (debug_qf_forget_cached_source_info)
592 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
593 (debug_qf_print_stats, debug_qf_dump)
594 (debug_qf_expand_symtabs_for_function)
595 (debug_qf_expand_all_symtabs)
596 (debug_qf_expand_symtabs_with_fullname)
597 (debug_qf_map_matching_symbols)
598 (debug_qf_expand_symtabs_matching)
599 (debug_qf_find_pc_sect_compunit_symtab)
600 (debug_qf_map_symbol_filenames)
601 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
602 (debug_sym_new_init, debug_sym_init, debug_sym_read)
603 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
604 (debug_sym_read_linetable, debug_sym_relocate): Update.
605 (symfile_debug_free_objfile): Remove.
606 (install_symfile_debug_logging, _initialize_symfile_debug):
609 2019-05-08 Tom Tromey <tom@tromey.com>
611 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
613 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
614 (get_dwarf2_per_objfile): Update.
615 (set_dwarf2_per_objfile): Remove.
616 (dwarf2_has_info, dwarf2_get_section_info): Update.
617 (dwarf2_free_objfile): Remove.
618 (_initialize_dwarf2_read): Update.
620 2019-05-08 Tom Tromey <tom@tromey.com>
622 * auto-load.c (struct auto_load_pspace_info): Add destructor and
624 <unsupported_script_warning_printed,
625 script_not_found_warning_printed>: Now bool.
626 (auto_load_pspace_data): Change type.
627 (~auto_load_pspace_info): Rename from
628 auto_load_pspace_data_cleanup.
629 (get_auto_load_pspace_data, init_loaded_scripts_info)
630 (clear_section_scripts, maybe_print_unsupported_script_warning)
631 (maybe_print_script_not_found_warning, _initialize_auto_load):
634 2019-05-08 Tom Tromey <tom@tromey.com>
636 * objfiles.c (objfile_pspace_info): Add destructor and
638 (objfiles_pspace_data): Change type.
639 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
640 (get_objfile_pspace_data): Update.
641 (objfiles_bfd_data): Change type.
642 (get_objfile_bfd_data): Update.
643 (objfile_bfd_data_free, _initialize_objfiles): Remove.
645 2019-05-08 Tom Tromey <tom@tromey.com>
647 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
649 (get_catch_syscall_inferior_data): Update.
650 (catch_syscall_inferior_data_cleanup): Remove.
651 (_initialize_break_catch_syscall): Update.
653 2019-05-08 Tom Tromey <tom@tromey.com>
655 * inflow.c (struct terminal_info): Add destructor and
657 (inflow_inferior_data): Change type.
658 (~terminal_info): Rename from inflow_inferior_data_cleanup.
659 (get_inflow_inferior_data, inflow_inferior_exit)
660 (swap_terminal_info, _initialize_inflow): Update.
662 2019-05-08 Tom Tromey <tom@tromey.com>
664 * target-dcache.c (target_dcache_cleanup): Remove.
665 (target_dcache_aspace_key): Change type.
666 (target_dcache_init_p, target_dcache_invalidate)
667 (target_dcache_get, target_dcache_get_or_init)
668 (_initialize_target_dcache): Update.
669 * dcache.h (struct dcache_deleter): New.
671 2019-05-08 Tom Tromey <tom@tromey.com>
673 * symtab.c (struct symbol_cache): Add destructor and
675 (symbol_cache_key): Move. Change type.
676 (make_symbol_cache, free_symbol_cache): Remove.
677 (get_symbol_cache): Update.
678 (symbol_cache_cleanup): Remove.
679 (ALL_PSPACES, symbol_cache_flush)
680 (maintenance_print_symbol_cache)
681 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
684 2019-05-08 Tom Tromey <tom@tromey.com>
686 * symtab.c (struct main_info): Add destructor and initializers.
687 (main_progspace_key): Move. Change type.
688 (get_main_info): Update.
689 (main_info_cleanup): Remove.
690 (_initialize_symtab): Update.
692 2019-05-08 Tom Tromey <tom@tromey.com>
694 * registry.h (DECLARE_REGISTRY): Define the _key class.
696 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
698 * NEWS: Merge two 'New commands' sections.
700 2019-05-08 Joel Brobecker <brobecker@adacore.com>
702 * ada-valprint.c (ada_val_print_gnat_array): Remove language
703 parameter and use Ada language definition instead.
704 (ada_val_print_ptr): Remove unused language parameter.
705 (ada_val_print_num): Remove language parameter and use Ada language
707 (ada_val_print_enum, ada_val_print_flt): Remove unused language
709 (ada_val_print_struct_union, ada_val_print_ref): Remove language
710 parameter and use Ada language definition instead.
711 (ada_val_print_1): Update all ada_val_print_xxx calls.
712 Remove language parameter.
713 (ada_val_print): Update ada_val_print_1 call.
715 2019-05-08 Tom Tromey <tromey@adacore.com>
717 * remote.c (remote_hw_watchpoint_limit)
718 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
721 2019-05-08 Tom Tromey <tromey@adacore.com>
723 * maint.c (_initialize_maint_cmds): Move initialization code to
725 (watchdog, show_watchdog): Move to remote.c.
726 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
728 (_initialize_remote): Move initialization code from maint.c.
729 * defs.h (watchdog): Don't declare.
731 2019-05-08 Tom Tromey <tromey@adacore.com>
733 * tui/tui-interp.c: Include main.h.
734 * interps.c: Include main.h.
735 * main.h (interpreter_p): Declare.
736 * defs.h (interpreter_p): Don't declare.
738 2019-05-08 Tom Tromey <tromey@adacore.com>
740 * dwarf2loc.c: Include dwarf2read.h.
741 * defs.h (read_unsigned_leb128): Don't declare.
742 * dwarf2read.h (read_unsigned_leb128): Declare.
744 2019-05-08 Tom Tromey <tromey@adacore.com>
746 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
749 2019-05-08 Tom Tromey <tromey@adacore.com>
751 * utils.c (fputs_maybe_filtered): Reset style after paging, even
752 when no wrap column is set.
754 2019-05-08 Tom Tromey <tromey@adacore.com>
756 * c-lang.c (c_get_string): Handle non-C-style arrays.
758 2019-05-08 Tom Tromey <tromey@adacore.com>
760 * typeprint.c (print_offset_data::update): Print the bit offset,
761 not the number of bits remaining.
763 2019-05-08 Tom Tromey <tromey@adacore.com>
765 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
766 padding at end of comment.
768 2019-05-08 Tom Tromey <tromey@adacore.com>
770 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
773 2019-05-06 Tom Tromey <tom@tromey.com>
775 * common/scoped_mmap.c: Include common-defs.h.
776 * common/scoped_mmap.h: Don't include config.h.
778 2019-05-04 Tom Tromey <tom@tromey.com>
780 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
781 (struct aarch64_call_info): Add initializers.
782 <si>: Now a std::vector.
783 (pass_on_stack, aarch64_push_dummy_call): Update.
785 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
786 Tom Tromey <tom@tromey.com>
788 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
789 (ppc_threads): Now a std::vector. Now static.
790 (hwdebug_find_thread_points_by_tid)
791 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
794 2019-05-04 Tom Tromey <tom@tromey.com>
796 * arc-tdep.c (arc_tdesc_init): Return bool.
798 2019-05-04 Tom Tromey <tom@tromey.com>
800 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
801 Use gdb_assert_not_reached.
803 2019-05-04 Tom Tromey <tom@tromey.com>
805 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
808 2019-05-04 Tom Tromey <tom@tromey.com>
810 * arc-tdep.c (arc_tdesc_init): Use bool.
812 2019-05-04 Tom Tromey <tom@tromey.com>
814 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
816 2019-05-04 Tom Tromey <tom@tromey.com>
818 * cli/cli-cmds.c (valid_command_p): Return bool.
820 2019-05-04 Tom Tromey <tom@tromey.com>
822 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
823 * command.h (valid_user_defined_cmd_name_p): Channge return type.
825 2019-05-04 Raul Tambre <raul@tambre.ee>
827 * python/lib/gdb/prompt.py (_ExtendedPrompt)
828 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
829 operator for comparison.
831 2019-05-04 Tom Tromey <tom@tromey.com>
833 * psymtab.c (psymbol_name_matches, match_partial_symbol)
834 (lookup_partial_symbol, print_partial_symbols)
835 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
836 (psymbol_compare): Update.
837 (add_psymbol_to_bcache): Clear the entire psymbol.
838 (maintenance_check_psymtabs): Update.
839 * psympriv.h (struct partial_symbol): Don't derive from
841 <obj_section, unrelocated_address, address,
842 set_unrelocated_address>: Update.
844 * dwarf-index-write.c (write_psymbols, debug_names::insert)
845 (debug_names::write_psymbols): Update.
847 2019-05-04 Tom de Vries <tdevries@suse.de>
849 * contrib/cc-with-tweaks.sh: Support -n arg.
851 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
853 * corelow.c (core_target::detach): Ensure frame cache and
854 register caches are cleared.
855 inferior.c (exit_inferior_1): Likewise.
857 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
858 Tom Tromey <tom@tromey.com>
860 * dictionary.c (collate_pending_symbols_by_language): Remove
861 "struct" from foreach.
862 * symtab.c (lookup_global_symbol_from_objfile)
863 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
865 * ser-tcp.c (net_open): Remove "struct" from foreach.
866 * objfiles.c (objfile_relocate, objfile_rebase)
867 (objfile_has_symbols): Remove "struct" from foreach.
868 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
870 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
872 * darwin-nat.c (thread_info_from_private_thread_info): Remove
873 "struct" from foreach.
874 * ada-lang.c (create_excep_cond_exprs)
875 (ada_exception_catchpoint_cond_string): Remove "struct" from
878 2019-05-03 Tom Tromey <tromey@adacore.com>
880 * ada-exp.y (convert_char_literal): Check suffix of each
883 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
886 * ada-exp.y (yywrap): Don't define.
887 * ada-lex.l (%option): Add noyywrap
890 2019-05-03 Eli Zaretskii <eliz@gnu.org>
892 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
893 _WIN32_WINNT to the XP level, unless already defined to a higher
896 * unittests/parse-connection-spec-selftests.c:
898 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
901 * symfile.c (find_separate_debug_file): Remove colon from the
902 drive spec of DOS/Windows file names of the target, so that the
903 file name produced from DEBUGDIR and the target's directory will
904 be valid on DOS/Windows systems.
906 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
908 * rust-lang.c (val_print_struct): Handle printing structures
911 2019-05-02 Tom Tromey <tromey@adacore.com>
913 * valarith.c (_initialize_valarith): Remove.
915 2019-05-01 Tom Tromey <tromey@adacore.com>
917 * ada-lang.c (ada_value_primitive_field): Treat more fields as
920 2019-05-01 Tom Tromey <tromey@adacore.com>
922 * ada-lang.c (ada_value_assign): Correctly compute starting offset
923 for big-endian copies.
925 2019-04-30 Ali Tamur <tamur@google.com>
926 * gdb/dwarf2read.c (read_3_bytes): New declaration.
927 (read_attribute_value): Added DW_FORM_strx1-4 cases.
928 (read_3_bytes): New function.
930 2019-04-30 Joel Brobecker <brobecker@adacore.com>
932 * windows-nat.c (main_thread_id): Delete.
933 (handle_output_debug_string): Replace main_thread_id by
934 current_event.dwThreadId.
935 (fake_create_process): Likewise.
936 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
937 Do not set main_thread_id.
938 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
939 current_event.dwThreadId.
940 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
942 2019-04-30 Joel Brobecker <brobecker@adacore.com>
944 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
945 Use current_event.dwThreadId instead of main_thread_id.
947 2019-04-30 Tom Tromey <tromey@adacore.com>
949 * ada-lang.c (ada_lookup_simple_minsyms): New function.
950 (create_excep_cond_exprs): Iterate over program spaces.
951 (ada_exception_catchpoint_cond_string): Examine all minimal
952 symbols for exception types.
954 2019-04-30 Tom Tromey <tromey@adacore.com>
957 * dwarf2read.c (process_structure_scope): Handle case where type
958 has template parameters but no symbol was created.
960 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
961 Chris January <chris.january@arm.com>
963 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
965 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
967 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
969 * f-typeprint.c (f_print_type): Update rules for printing
971 (f_type_print_varspec_suffix): Likewise.
973 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
974 Chris January <chris.january@arm.com>
976 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
979 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
981 * f-lang.c (build_fortran_types): Change name of void type to
983 * f-typeprint.c (f_type_print_base): Print the name of the void
984 type, rather than a fixed string.
985 * f-valprint.c (f_decorations): Use lower case void string.
987 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
988 Chris January <chris.january@arm.com>
990 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
993 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
994 Chris January <chris.january@arm.com>
995 David Lecomber <david.lecomber@arm.com>
997 * f-exp.y (BINOP_INTRINSIC): New token.
998 (exp): New parser rule handling BINOP_INTRINSIC.
999 (f77_keywords): Add new builtin procedures.
1000 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
1001 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1002 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
1003 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1004 (print_unop_subexp_f): New function.
1005 (print_binop_subexp_f): New function.
1006 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1007 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1008 (dump_subexp_body_f): Likewise.
1009 (operator_check_f): Likewise.
1010 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1011 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
1013 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1015 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
1017 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
1018 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
1019 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
1020 (operator_length_f): New fuction.
1021 (print_subexp_f): New function.
1022 (op_name_f): New function.
1023 (dump_subexp_body_f): New function.
1024 (operator_check_f): New function.
1025 (exp_descriptor_f): Replace standard expression handling functions
1027 * gdb/fortran-operator.def: New file.
1028 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
1029 * gdb/std-operator.def: Remove UNOP_KIND.
1031 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1033 * std-operator.def: Remove unbalanced, stray double quote
1036 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1037 Chris January <chris.january@arm.com>
1038 Daniel Everett <daniel.everett@arm.com>
1039 Nick Forrington <nick.forrington@arm.com>
1040 Richard Bunt <richard.bunt@arm.com>
1042 * cp-valprint.c (cp_print_value_fields): Allow an additional level
1043 of depth when printing anonymous structs or unions.
1044 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1045 Don't print either the top-level value, or the children if the
1046 max-depth is exceeded.
1047 (ppscm_print_children): When printing the key of a map, allow one
1048 extra level of depth.
1049 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
1050 print either the top-level value, or the children if the max-depth
1052 (print_children): When printing the key of a map, allow one extra
1054 * python/py-value.c (valpy_format_string): Add max_depth keyword.
1055 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
1056 (user_print_options): Initialise max_depth field.
1057 (val_print_scalar_or_string_type_p): New function.
1058 (val_print): Check to see if the max depth has been reached.
1059 (val_print_check_max_depth): Define new function.
1060 (show_print_max_depth): New function.
1061 (_initialize_valprint): Add 'print max-depth' option.
1062 * valprint.h (struct value_print_options) <max_depth>: New field.
1063 (val_print_check_max_depth): Declare new function.
1064 * NEWS: Document new feature.
1066 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1068 * ada-lang.c (ada_language_defn): Initialise new field.
1069 * c-lang.c (c_is_string_type_p): New function.
1070 (c_language_defn): Initialise new field.
1071 (cplus_language_defn): Initialise new field.
1072 (asm_language_defn): Initialise new field.
1073 (minimal_language_defn): Initialise new field.
1074 * c-lang.h (c_is_string_type_p): Declare new function.
1075 * d-lang.c (d_language_defn): Initialise new field.
1076 * f-lang.c (f_is_string_type_p): New function.
1077 (f_language_defn): Initialise new field.
1078 * go-lang.c (go_is_string_type_p): New function.
1079 (go_language_defn): Initialise new field.
1080 * language.c (default_is_string_type_p): New function.
1081 (unknown_language_defn): Initialise new field.
1082 (auto_language_defn): Initialise new field.
1083 * language.h (struct language_defn) <la_is_string_type_p>: New
1085 (default_is_string_type_p): Declare new function.
1086 * m2-lang.c (m2_language_defn): Initialise new field.
1087 * objc-lang.c (objc_language_defn): Initialise new field.
1088 * opencl-lang.c (opencl_language_defn): Initialise new field.
1089 * p-lang.c (pascal_is_string_type_p): New function.
1090 (pascal_language_defn): Initialise new field.
1091 * rust-lang.c (rust_is_string_type_p): New function.
1092 (rust_language_defn): Initialise new field.
1094 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1096 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
1098 * ada-lang.c (ada_language_defn): Initialise new field.
1099 * c-lang.c (c_language_defn): Likewise.
1100 (cplus_language_defn): Likewise.
1101 (asm_language_defn): Likewise.
1102 (minimal_language_defn): Likewise.
1103 * d-lang.c (d_language_defn): Likewise.
1104 * f-lang.c (f_language_defn): Likewise.
1105 * go-lang.c (go_language_defn): Likewise.
1106 * language.c (unknown_language_defn): Likewise.
1107 (auto_language_defn): Likewise.
1108 * m2-lang.c (m2_language_defn): Likewise.
1109 * objc-lang.c (objc_language_defn): Likewise.
1110 * opencl-lang.c (opencl_language_defn): Likewise.
1111 * p-lang.c (pascal_language_defn): Likewise.
1112 * rust-lang.c (rust_language_defn): Likewise.
1114 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1116 * ada-lang.c (ada_is_character_type): Change return type to bool.
1117 (ada_is_string_type): Likewise.
1118 * ada-lang.h (ada_is_character_type): Update declaration
1119 (ada_is_string_type): Likewise.
1121 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1123 Support style in 'frame|thread apply'
1125 * gdbcmd.h (execute_command_to_string): New term_out parameter.
1126 * record.c (record_start, record_stop): Update callers of
1127 execute_command_to_string with false.
1128 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
1129 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
1131 (class string_file): New constructor with term_out parameter.
1132 Override methods term_out and can_emit_style_escape. New member
1134 (class stdio_file): Override can_emit_style_escape.
1135 (class tee_file): Override term_out and can_emit_style_escape.
1136 * utils.h (can_emit_style_escape): Remove.
1137 * utils.c (can_emit_style_escape): Likewise.
1138 Update all callers of can_emit_style_escape (SOMESTREAM) to
1139 SOMESTREAM->can_emit_style_escape.
1140 * source-cache.c (source_cache::get_source_lines): Likewise.
1141 * stack.c (frame_apply_command_count): Call execute_command_to_string
1142 passing the term_out characteristic of the current gdb_stdout.
1143 * thread.c (thr_try_catch_cmd): Likewise.
1144 * top.c (execute_command_to_string): pass term_out parameter
1145 to construct the string_file for the command output.
1146 * ui-file.c (term_cli_styling): New function (most code moved
1147 from utils.c can_emit_style_escape).
1148 (string_file::string_file, string_file::can_emit_style_escape,
1149 stdio_file::can_emit_style_escape, tee_file::term_out,
1150 tee_file::can_emit_style_escape): New functions.
1152 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1154 * NEWS: Mention the new set|show may-call-functions.
1155 * infcall.c (may_call_functions_p): New variable.
1156 (show_may_call_functions_p): New function.
1157 (call_function_by_hand_dummy): Throws an error if not
1159 (_initialize_infcall): Call add_setshow_boolean_cmd for
1162 2019-04-25 Keith Seitz <keiths@redhat.com>
1165 * cp-support.c (inspect_type): Don't attempt substitutions
1166 of symbol with the same name.
1168 2019-04-25 Tom Tromey <tromey@adacore.com>
1171 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
1174 2019-04-25 Tom Tromey <tromey@adacore.com>
1176 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
1178 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
1179 (gdb_xml_parser::parse): Use std::move.
1180 * python/python-internal.h (gdbpy_convert_exception): Take a const
1182 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
1184 * python/py-utils.c (gdbpy_convert_exception): Take a const
1186 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1188 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1190 * mi/mi-main.c (mi_print_exception): Take a const reference.
1191 * main.c (handle_command_errors): Take a const reference.
1192 * linespec.c (parse_linespec): Use std::move.
1193 * infcall.c (run_inferior_call): Use std::move.
1194 (call_function_by_hand_dummy): Use std::move.
1195 * exec.c (try_open_exec_file): Use std::move.
1196 * exceptions.h (exception_print, exception_fprintf)
1197 (exception_print_same): Update.
1198 * exceptions.c (print_exception, exception_print)
1199 (exception_fprintf, exception_print_same): Change parameters to
1201 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
1202 * common/new-op.c: Use std::move.
1203 * common/common-exceptions.h (struct gdb_exception): Add move
1205 (struct gdb_exception_error, struct gdb_exception_quit, struct
1206 gdb_quit_bad_alloc): Change constructor to move constructor.
1207 (throw_exception): Change parameter to rvalue reference.
1208 * common/common-exceptions.c (throw_exception): Take rvalue
1210 * cli/cli-interp.c (safe_execute_command): Use std::move.
1211 * breakpoint.c (insert_bp_location, location_to_sals): Use
1214 2019-04-25 Tom Tromey <tromey@adacore.com>
1216 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
1217 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
1218 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
1219 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
1220 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
1221 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
1222 guile/scm-value.c: Use unpack.
1223 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
1224 gdbscm_gdb_exception.
1225 (gdbscm_throw_gdb_exception): Likewise.
1226 (struct gdbscm_gdb_exception): New.
1227 (unpack): New function.
1228 (gdbscm_wrap): Use unpack.
1230 2019-04-25 Tom Tromey <tromey@adacore.com>
1232 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1233 (gdb_rl_callback_handler): Use std::move.
1234 * common/common-exceptions.h (struct gdb_exception): Add move
1235 assignment operator.
1236 (throw_exception_sjlj): Change "exception" to const reference.
1237 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
1238 (throw_exception_sjlj): Change "exception" to const reference.
1240 2019-04-25 Tom Tromey <tromey@adacore.com>
1242 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
1243 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
1244 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1246 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1248 * mi/mi-interp.c (mi_interp::exec): Update.
1249 * linespec.c (parse_linespec): Update.
1250 * infcall.c (run_inferior_call): Update.
1251 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
1252 * guile/scm-symbol.c (gdbscm_lookup_symbol)
1253 (gdbscm_lookup_global_symbol): Update.
1254 * guile/scm-param.c (gdbscm_parameter_value): Update.
1255 * guile/scm-frame.c (gdbscm_frame_read_register)
1256 (gdbscm_frame_read_var): Update.
1257 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1258 * exec.c (try_open_exec_file): Update.
1259 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1260 (gdb_rl_callback_handler): Update.
1261 * common/common-exceptions.h (exception_none): Don't declare.
1262 * common/common-exceptions.c (exception_none): Don't define.
1263 (struct catcher) <exception>: Update.
1264 * cli/cli-interp.c (safe_execute_command): Update.
1265 * breakpoint.c (insert_bp_location, location_to_sals): Update.
1267 2019-04-25 Ali Tamur <tamur@google.com>
1269 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
1270 (read_attribute_value): Likewise.
1271 (dwarf2_read_addr_index): Update comment.
1272 (read_str_index): Add DW_FORM_strx.
1273 (dwarf2_string_attr): Likewise.
1274 (dwarf2_const_value_attr): Likewise.
1275 (dump_die_shallow): Likewise.
1276 (dwarf2_fetch_constant_bytes): Likewise.
1277 (skip_form_bytes): Likewise.
1278 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
1280 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
1284 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
1285 OFFSET. Verify if current mapping contains an ELF header.
1286 (linux_find_memory_regions_full): Adjust call to
1289 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
1290 Kang Li <kanglictf@gmail.com>
1294 * dwarf2-frame.c (read_initial_length): Be consistent about using
1295 unsigned representation of length.
1296 (decode_frame_entry_1): Likewise. Check for wraparound of
1297 end pointer as well as buffer overflow.
1299 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
1301 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
1304 2019-04-24 Tom Tromey <tromey@adacore.com>
1306 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
1308 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1310 * s12z-tdep.c (s12z_unwind_pc): Delete.
1311 (s12z_unwind_sp): Delete.
1312 (s12z_gdbarch_init): Don't register deleted functions with
1315 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1317 * rl78-tdep.c (rl78_unwind_sp): Delete.
1318 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
1320 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1322 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
1323 (xstormy16_unwind_pc): Delete.
1324 (xstormy16_dummy_id): Delete.
1325 (xstormy16_gdbarch_init): Don't register deleted functions with
1328 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1330 * vax-tdep.c (vax_unwind_pc): Delete.
1331 (vax_gdbarch_init): Don't register deleted function with gdbarch.
1333 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1335 * v850-tdep.c (v850_unwind_sp): Delete.
1336 (v850_unwind_pc): Delete.
1337 (v850_dummy_id): Delete.
1338 (v850_gdbarch_init): Don't register deleted functions with
1341 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1343 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
1344 (tilegx_unwind_pc): Delete.
1345 (tilegx_unwind_dummy_id): Delete.
1346 (tilegx_gdbarch_init): Don't register deleted functions with
1349 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1351 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
1352 (tic6x_dummy_id): Delete.
1353 (tic6x_gdbarch_init): Don't register deleted functions with
1356 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1358 * sparc-tdep.c (sparc_unwind_pc): Delete.
1359 (sparc32_gdbarch_init): Don't register deleted function with
1362 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1364 * sh-tdep.c (sh_unwind_sp): Delete.
1365 (sh_unwind_pc): Delete.
1366 (sh_dummy_id): Delete.
1367 (sh_gdbarch_init): Don't register deleted functions with
1370 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1372 * score-tdep.c (score_unwind_sp): Delete.
1373 (score_unwind_pc): Delete.
1374 (score_dummy_id): Delete.
1375 (score_gdbarch_init): Don't register deleted functions with
1378 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1380 * rx-tdep.c (rx_unwind_pc): Delete.
1381 (rx_unwind_sp): Delete.
1382 (rx_dummy_id): Delete.
1383 (rx_gdbarch_init): Don't register deleted functions with
1384 gdbarch. Update comment.
1386 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1388 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
1389 (rs6000_dummy_id): Delete.
1390 (rs6000_gdbarch_init): Don't register deleted functions with
1393 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1395 * or1k-tdep.c (or1k_dummy_id): Delete.
1396 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
1398 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1400 * nios2-tdep.c (nios2_dummy_id): Delete.
1401 (nios2_unwind_sp): Delete.
1402 (nios2_gdbarch_init): Don't register deleted functions with
1405 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1407 * nds32-tdep.c (nds32_dummy_id): Delete.
1408 (nds32_unwind_pc): Delete.
1409 (nds32_unwind_sp): Delete.
1410 (nds32_gdbarch_init): Don't register deleted functions with
1413 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1415 * msp430-tdep.c (msp430_unwind_pc): Delete.
1416 (msp430_unwind_sp): Delete.
1417 (msp430_dummy_id): Delete.
1418 (msp430_gdbarch_init): Don't register deleted functions with
1421 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1423 * moxie-tdep.c (moxie_unwind_sp): Delete.
1424 (moxie_unwind_pc): Delete.
1425 (moxie_dummy_id): Delete.
1426 (moxie_gdbarch_init): Don't register deleted functions with
1429 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1431 * mn10300-tdep.c (mn10300_dummy_id): Delete.
1432 (mn10300_unwind_pc): Delete.
1433 (mn10300_unwind_sp): Delete.
1434 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
1436 (mn10300_frame_unwind_init): Don't register deleted functions with
1439 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1441 * mep-tdep.c (mep_unwind_pc): Delete.
1442 (mep_unwind_sp): Delete.
1443 (mep_dummy_id): Delete.
1444 (mep_gdbarch_init): Don't register deleted functions with
1447 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1449 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
1450 (m68hc11_unwind_sp): Delete.
1451 (m68hc11_gdbarch_init): Don't register deleted functions with
1454 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1456 * m32r-tdep.c (m32r_unwind_sp): Delete.
1457 (m32r_unwind_pc): Delete.
1458 (m32r_dummy_id): Delete.
1459 (m32r_gdbarch_init): Don't register deleted functions with
1462 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1464 * m32c-tdep.c (m32c_unwind_pc): Delete.
1465 (m32c_unwind_sp): Delete.
1466 (m32c_dummy_id): Delete.
1467 (m32c_gdbarch_init): Don't register deleted functions with
1470 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1472 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
1473 (lm32_unwind_pc): Delete.
1474 (lm32_dummy_id): Delete.
1475 (lm32_gdbarch_init): Don't register deleted functions with
1478 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1480 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
1481 (iq2000_unwind_pc): Delete.
1482 (iq2000_dummy_id): Delete.
1483 (iq2000_gdbarch_init): Don't register deleted functions with
1486 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1488 * nds32-tdep.c (nds32_type_align): Delete.
1489 (nds32_push_dummy_call): Use type_align instead.
1491 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1493 * arm-tdep.c (arm_type_align): Only handle vector override case.
1494 (arm_push_dummy_call): Use type_align.
1495 (arm_gdbarch_init): Register arm_type_align gdbarch function.
1497 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1499 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
1501 (pass_on_stack): Use type_align.
1502 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
1505 2019-04-23 Tom Tromey <tromey@adacore.com>
1507 * dwarf2read.c (line_header::file_name_at): Remove unused
1510 2019-04-23 Tom de Vries <tdevries@suse.de>
1513 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
1517 2019-03-27 Ali Tamur <tamur@google.com>
1519 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
1520 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
1521 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
1522 (dwarf_expr_context::get_addr_index): Likewise
1523 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
1524 (symbol_needs_eval_context::get_addr_index): Likewise
1525 (disassemble_dwarf_expression): Add DW_OP_addrx
1526 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
1527 (read_cutu_die_from_dwo): Update comment
1528 (skip_one_die): Add DW_FORM_addrx
1529 (read_attribute_value): Likewise
1530 (var_decode_location): Add DW_OP_addrx
1531 (dwarf2_const_value_attr): Add DW_FORM_addrx
1532 (dump_die_shallow): Likewise
1533 (dwarf2_fetch_constant_bytes): Likewise
1534 (decode_locdesc): Add DW_OP_addrx
1535 (skip_form_bytes): Add DW_FORM_addrx
1537 2019-04-22 Ali Tamur <tamur@google.com>
1539 * MAINTAINERS (Write After Approval): Add self.
1541 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
1543 * solib-svr4.c (get_svr4_info): Add pspace parameter.
1544 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
1545 (open_symbol_file_object): Likewise.
1546 (svr4_default_sos): Add info parameter.
1547 (svr4_read_so_list): Likewise.
1548 (svr4_current_sos_direct): Adjust functions calls to pass down
1550 (svr4_current_sos_1): Add info parameter.
1551 (svr4_current_sos): Call get_svr4_info, pass info down to
1553 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
1555 (svr4_in_dynsym_resolve_code): Pass current_program_space to
1557 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
1559 (probes_table_remove_objfile_probes): Likewise.
1560 (register_solib_event_probe): Add info parameter.
1561 (solist_update_incremental): Pass info parameter down to
1563 (disable_probes_interface): Add info parameter.
1564 (svr4_handle_solib_event): Pass current_program_space to
1565 get_svr4_info. Adjust disable_probes_interface cleanup.
1566 (svr4_create_probe_breakpoints): Add info parameter, pass it
1567 down to register_solib_event_probe.
1568 (svr4_create_solib_event_breakpoints): Add info parameter,
1569 pass it down to svr4_create_probe_breakpoints.
1570 (enable_break): Pass info down to
1571 svr4_create_solib_event_breakpoints.
1572 (svr4_solib_create_inferior_hook): Pass current_program_space to
1574 (svr4_clear_solib): Likewise.
1576 2019-04-22 Pedro Alves <palves@redhat.com>
1578 * solib-svr4.c (svr4_free_objfile_observer): New.
1579 (probe_and_action::objfile): New field.
1580 (probes_table_htab_remove_objfile_probes)
1581 (probes_table_remove_objfile_probes): New functions.
1582 (register_solib_event_probe): Add 'objfile' parameter. Store it
1583 in the new probe_and_action. Don't store the probe in 'lookup'.
1584 (svr4_create_probe_breakpoints): Pass objfile to
1585 register_solib_event_probe.
1586 (_initialize_svr4_solib): Register a free_objfile observer.
1588 2019-04-19 Tom Tromey <tom@tromey.com>
1590 * common/queue.h: Remove.
1592 2019-04-19 Tom Tromey <tom@tromey.com>
1594 * event-loop.c: Don't include "common/queue.h".
1596 2019-04-19 Tom Tromey <tom@tromey.com>
1598 * remote.c (remote_target): Use delete.
1599 * remote-notif.h: Include <list>, not "common/queue.h".
1600 (notif_client_p): Remove typedef.
1601 (remote_notif_state): Add constructor, destructor, initializer.
1602 <notif_queue>: Now a std::list.
1603 (remote_notif_state_xfree): Don't declare.
1604 * remote-notif.c (remote_notif_process, handle_notification)
1605 (remote_notif_state_allocate): Update.
1606 (~remote_notif_state): Rename from remote_notif_state_xfree.
1608 2019-04-19 Tom Tromey <tom@tromey.com>
1610 * symfile.c (reread_symbols): Update.
1611 * objfiles.c (objfile_register_static_link)
1612 (objfile_lookup_static_link): Update
1613 (~objfile) Don't delete static_links.
1614 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
1616 2019-04-19 Tom Tromey <tom@tromey.com>
1618 * type-stack.h (struct type_stack) <insert>: Constify string.
1619 * type-stack.c (type_stack::insert): Constify string.
1620 * gdbtypes.h (lookup_template_type): Update.
1621 (address_space_name_to_int): Update.
1622 * gdbtypes.c (address_space_name_to_int): Make space_identifier
1624 (lookup_template_type): Make name const.
1625 * c-exp.y: Update rules.
1626 (lex_one_token, classify_name, classify_inner_name)
1627 (c_print_token): Update.
1628 * p-exp.y: Update rules.
1630 * f-exp.y: Update rules.
1632 * d-exp.y: Update rules.
1633 (lex_one_token, classify_name, classify_inner_name): Update.
1634 * parse.c (write_dollar_variable, copy_name): Return std::string.
1635 * parser-defs.h (copy_name): Change return type.
1636 * m2-exp.y: Update rules.
1638 * go-exp.y (lex_one_token): Update.
1640 (classify_unsafe_function, classify_packaged_name)
1641 (classify_name, yylex): Update.
1643 2019-04-19 Sergei Trofimovich <siarheit@google.com>
1645 * configure.ac: add --enable-source-highlight switch.
1646 * configure: Regenerate.
1647 * top.c (print_gdb_version): plumb --enable-source-highlight
1648 status to "show configuration".
1650 2019-04-19 Tom Tromey <tromey@adacore.com>
1652 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
1654 (empty_record, ada_template_to_fixed_record_type_1)
1655 (template_to_static_fixed_type)
1656 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
1657 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
1658 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
1661 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
1664 * source.c (print_source_lines_base): Advance "iter" when a
1665 control character is seen.
1667 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1669 * inferior.h (struct infcall_suspend_state_deleter):
1670 Catch exception in destructor to avoid crash.
1672 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1674 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
1675 close to the add_com "shell".
1677 2019-04-18 Tom Tromey <tromey@adacore.com>
1679 * process-stratum-target.h (class process_stratum_target)
1680 <stratum>: Add "final".
1682 2019-04-17 Tom Tromey <tromey@adacore.com>
1684 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
1685 against nullptr before use.
1687 2019-04-17 Alan Hayward <alan.hayward@arm.com>
1689 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
1691 2019-04-17 Jim Wilson <jimw@sifive.com>
1692 Andrew Burgess <andrew.burgess@embecosm.com>
1694 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
1695 code read might fail, assume 4-byte breakpoint in that case.
1697 2019-04-15 Leszek Swirski <leszeks@google.com>
1699 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
1700 rather than a hand-rolled POD check when checking for forced MEMORY
1703 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1705 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
1706 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
1708 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
1709 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
1710 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
1713 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1715 * aarch64-linux-nat.c
1716 (aarch64_linux_nat_target::thread_architecture): Add override.
1717 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
1720 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1722 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
1724 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
1726 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
1727 target types of size 96-bits, add some additional comments, and
1728 check that the builtin type we found was the correct size.
1730 2019-04-12 Eli Zaretskii <eliz@gnu.org>
1732 * utils.c (prompt_for_continue): Don't restore the styling at the
1733 end, as applied_style has the wrong value. This fixes styling in
1734 long lists of file names that are interrupted by the "Continue?"
1737 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
1739 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
1740 * c-lang.c (c_language_defn): Likewise.
1741 (cplus_language_defn): Likewise.
1742 (asm_language_defn): Likewise.
1743 (minimal_language_defn): Likewise.
1744 * d-lang.c (d_language_defn): Likewise.
1745 * f-lang.c (f_language_defn): Likewise.
1746 * go-lang.c (go_language_defn): Likewise.
1747 * language.c (unknown_language_defn): Likewise.
1748 (auto_language_defn): Likewise.
1749 * language.h (struct language_defn): Remove la_magic field.
1750 (LANG_MAGIC): Delete.
1751 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
1752 * objc-lang.c (objc_language_defn): Likewise.
1753 * opencl-lang.c (opencl_language_defn): Likewise.
1754 * p-lang.c (pascal_language_defn): Likewise.
1755 * rust-lang.c (rust_language_defn): Likewise.
1757 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1759 * riscv-tdep.c (riscv_type_align): New function.
1760 (riscv_type_alignment): Delete.
1761 (riscv_arg_location): Use 'type_align'.
1762 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
1764 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1766 * gdbtypes.c (type_align): A struct with no non-static fields also
1769 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1771 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
1773 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
1775 (riscv_struct_info::analyse): New implementation using new
1776 analyse_inner member function.
1777 (riscv_struct_info::field_offset): New member function.
1778 (riscv_struct_info::m_offsets): New member variable.
1779 (riscv_struct_info::analyse_inner): New private member function,
1780 takes the old implementation of riscv_struct_info::analyse but
1781 extended to track field offsets.
1782 (riscv_call_arg_struct): Update the struct folding special cases
1783 to handle cases where empty C++ structs, which are non-zero
1785 (riscv_arg_location): Initialise the length of each location, a
1786 non-zero length now indicates the location is in use.
1787 (riscv_push_dummy_call): Allow for the first location having a
1788 non-zero offset when setting up arguments.
1789 (riscv_return_value): Likewise, but for return values.
1791 2019-04-11 Tom Tromey <tromey@adacore.com>
1793 * utils.c (internal_vproblem): Make "msg" const.
1795 2019-04-11 Alan Hayward <alan.hayward@arm.com>
1797 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
1798 * trad-frame.c (trad_frame_reset_saved_regs): New function.
1799 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
1800 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
1802 2019-04-10 Kevin Buettner <kevinb@redhat.com>
1804 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
1806 (fill_gregset): Call amd64_linux_collect_native_gregset instead
1807 of amd64_collect_native_gregset.
1808 (amd64_linux_nat_target::store_registers): Likewise.
1810 2019-04-10 Tom Tromey <tom@tromey.com>
1812 * symtab.c (lookup_global_symbol_from_objfile)
1813 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
1814 * objfiles.h (class separate_debug_iterator): New.
1815 (class separate_debug_range): New.
1816 (struct objfile) <separate_debug_objfiles>: New method.
1817 (objfile_separate_debug_iterate): Don't declare.
1818 * objfiles.c (separate_debug_iterator::operator++): Rename from
1819 objfile_separate_debug_iterate.
1820 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
1822 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
1825 2019-04-10 Tom Tromey <tom@tromey.com>
1827 * symfile.c (reread_symbols): Remove old comment.
1828 * objfiles.c (free_all_objfiles): Fix a typo.
1830 2019-04-10 Tom Tromey <tom@tromey.com>
1832 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
1833 * minsyms.c (lookup_minimal_symbol): Use foreach.
1834 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
1835 (lookup_minimal_symbol_solib_trampoline): Likewise.
1836 * symfile.c (reread_symbols): Use foreach.
1838 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
1839 Tom Tromey <tromey@adacore.com>
1842 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
1843 (rust_lex_int_test): Change "value" to be LONGEST.
1844 (rust_lex_tests): Add test for long integer literal.
1846 2019-04-09 Tom Tromey <tromey@adacore.com>
1848 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
1850 (extended_remote_target::attach): Update.
1851 (remote_target::remote_notice_new_inferior): Update.
1852 (remote_target::add_current_inferior_and_thread): Update.
1853 * inferior.c (exit_inferior_1): Use "false".
1854 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
1856 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
1858 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
1859 the "start" command.
1861 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1863 * python/py-inferior.c (infpy_thread_from_thread_handle):
1864 Adjust comments to reflect renaming of thread_from_thread_handle
1865 to thread_from_handle. Adjust keywords. Fix type error message.
1866 (inferior_object_methods): Add thread_from_handle. Retain
1867 thread_from_thread_handle, but mark it as deprecated.
1869 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1871 * gdbthread.h (find_thread_by_handle): Revise declaration.
1872 * thread.c (find_thread_by_handle): Likewise. Adjust
1874 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
1875 support for buffer objects as handles.
1877 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1879 * python/py-infthread.c (thpy_thread_handle): New function.
1880 (thread_object_methods): Register thpy_thread_handle.
1882 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1884 * gdbthread.h (thread_to_thread_handle): Declare.
1885 * thread.c (gdbtypes.h): Include.
1886 (thread_to_thread_handle): New function.
1888 * target.h (struct target_ops): Add thread_info_to_thread_handle.
1889 (target_thread_info_to_thread_handle): Declare.
1890 * target.c (target_thread_info_to_thread_handle): New function.
1891 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
1892 * target-delegates.c: Regenerate.
1894 * linux-thread-db.c (class thread_db_target): Add method
1895 thread_info_to_thread_handle.
1896 (thread_db_target::thread_info_to_thread_handle): Define.
1897 * remote.c (class remote_target): Add new method
1898 thread_info_to_thread_handle.
1899 (remote_target::thread_info_to_thread_handle): Define.
1901 2019-04-08 Pedro Alves <palves@redhat.com>
1903 * common/common-exceptions.c (throw_exception): Don't create
1904 named object to throw; throw directly.
1905 (throw_it): Likewise. Don't initialize gdb_exception::message
1906 here, with new; pass FMT and AP to the ctor instead.
1907 * common/common-exceptions.h: Include <string>.
1908 (gdb_exception::gdb_exception(enum return_reason, enum errors,
1909 const char *, va_list)): New ctor. Use std::make_shared.
1910 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
1912 (gdb_exception_error::gdb_exception_error(enum errors, const char
1914 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
1916 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
1918 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
1919 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
1922 2019-04-08 Tom Tromey <tom@tromey.com>
1924 * valops.c (value_rtti_indirect_type): Replace throw_exception
1926 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
1928 * thread.c (thr_try_catch_cmd): Replace throw_exception with
1930 * target.c (target_translate_tls_address): Replace throw_exception
1932 * stack.c (frame_apply_command_count): Replace throw_exception
1934 * solib-spu.c (append_ocl_sos): Replace throw_exception with
1936 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
1938 * rs6000-tdep.c (rs6000_frame_cache)
1939 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
1940 * remote.c: Replace throw_exception with throw.
1941 * record-full.c (record_full_message, record_full_wait_1)
1942 (record_full_restore): Replace throw_exception with throw.
1944 (get_thread_current_frame_id, record_btrace_start_replaying)
1945 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
1946 (cmd_record_btrace_start): Replace throw_exception with throw.
1947 * parse.c (parse_exp_in_context_1): Replace throw_exception with
1949 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
1950 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
1952 (find_linespec_symbols): Replace throw_exception with throw.
1953 * infrun.c (displaced_step_prepare, resume): Replace
1954 throw_exception with throw.
1955 * infcmd.c (post_create_inferior): Replace throw_exception with
1957 * inf-loop.c (inferior_event_handler): Replace throw_exception
1959 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
1960 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
1961 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
1962 (get_prev_frame_always, get_frame_pc_if_available)
1963 (get_frame_address_in_block_if_available, get_frame_language):
1964 Replace throw_exception with throw.
1965 * frame-unwind.c (frame_unwind_try_unwinder): Replace
1966 throw_exception with throw.
1967 * eval.c (fetch_subexp_value, evaluate_var_value)
1968 (evaluate_funcall, evaluate_subexp_standard): Replace
1969 throw_exception with throw.
1970 * dwarf2loc.c (call_site_find_chain)
1971 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
1972 Replace throw_exception with throw.
1973 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
1975 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
1977 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
1978 * completer.c (complete_line_internal): Replace throw_exception
1980 * compile/compile-object-run.c (compile_object_run): Replace
1981 throw_exception with throw.
1982 * cli/cli-script.c (process_next_line): Replace throw_exception
1984 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
1985 (btrace_enable, btrace_maint_update_pt_packets): Replace
1986 throw_exception with throw.
1987 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
1988 throw_exception with throw.
1989 * break-catch-throw.c (re_set_exception_catchpoint): Replace
1990 throw_exception with throw.
1991 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
1992 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
1993 * aarch64-tdep.c (aarch64_make_prologue_cache)
1994 (aarch64_make_stub_cache): Replace throw_exception with throw.
1996 2019-04-08 Tom Tromey <tom@tromey.com>
1998 * common/common-exceptions.c (throw_exception): Rename from
1999 throw_exception_cxx. Remove old copy. Make argument const.
2000 (throw_it): Create and throw exception objects directly.
2001 * common/common-exceptions.h (throw_exception): Make argument
2003 (struct gdb_exception_error): Add constructor.
2004 (struct gdb_exception_quit): Add constructor.
2006 2019-04-08 Tom Tromey <tom@tromey.com>
2008 * common/common-exceptions.h (exception_rethrow): Don't declare.
2009 (TRY_SJLJ): Update comment.
2010 (TRY, CATCH, END_CATCH): Remove.
2011 * common/common-exceptions.c (exception_rethrow): Remove.
2013 2019-04-08 Tom Tromey <tom@tromey.com>
2015 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
2017 (gdb_exception_error): Rename from
2018 gdb_exception_RETURN_MASK_ERROR.
2019 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
2020 (gdb_quit_bad_alloc): Update.
2021 * aarch64-tdep.c: Update.
2022 * ada-lang.c: Update.
2023 * ada-typeprint.c: Update.
2024 * ada-valprint.c: Update.
2025 * amd64-tdep.c: Update.
2026 * arch-utils.c: Update.
2027 * break-catch-throw.c: Update.
2028 * breakpoint.c: Update.
2030 * c-varobj.c: Update.
2031 * cli/cli-cmds.c: Update.
2032 * cli/cli-interp.c: Update.
2033 * cli/cli-script.c: Update.
2034 * common/common-exceptions.c: Update.
2035 * common/new-op.c: Update.
2036 * common/selftest.c: Update.
2037 * compile/compile-c-symbols.c: Update.
2038 * compile/compile-cplus-symbols.c: Update.
2039 * compile/compile-object-load.c: Update.
2040 * compile/compile-object-run.c: Update.
2041 * completer.c: Update.
2042 * corelow.c: Update.
2044 * cp-support.c: Update.
2045 * cp-valprint.c: Update.
2046 * darwin-nat.c: Update.
2047 * disasm-selftests.c: Update.
2048 * dtrace-probe.c: Update.
2049 * dwarf-index-cache.c: Update.
2050 * dwarf-index-write.c: Update.
2051 * dwarf2-frame-tailcall.c: Update.
2052 * dwarf2-frame.c: Update.
2053 * dwarf2loc.c: Update.
2054 * dwarf2read.c: Update.
2056 * event-loop.c: Update.
2057 * event-top.c: Update.
2059 * f-valprint.c: Update.
2060 * fbsd-tdep.c: Update.
2061 * frame-unwind.c: Update.
2063 * gdbtypes.c: Update.
2064 * gnu-v3-abi.c: Update.
2065 * guile/guile-internal.h: Update.
2066 * guile/scm-block.c: Update.
2067 * guile/scm-breakpoint.c: Update.
2068 * guile/scm-cmd.c: Update.
2069 * guile/scm-disasm.c: Update.
2070 * guile/scm-frame.c: Update.
2071 * guile/scm-lazy-string.c: Update.
2072 * guile/scm-math.c: Update.
2073 * guile/scm-param.c: Update.
2074 * guile/scm-ports.c: Update.
2075 * guile/scm-pretty-print.c: Update.
2076 * guile/scm-symbol.c: Update.
2077 * guile/scm-symtab.c: Update.
2078 * guile/scm-type.c: Update.
2079 * guile/scm-value.c: Update.
2080 * i386-linux-tdep.c: Update.
2081 * i386-tdep.c: Update.
2082 * inf-loop.c: Update.
2083 * infcall.c: Update.
2087 * language.c: Update.
2088 * linespec.c: Update.
2089 * linux-fork.c: Update.
2090 * linux-nat.c: Update.
2091 * linux-tdep.c: Update.
2092 * linux-thread-db.c: Update.
2094 * mi/mi-cmd-break.c: Update.
2095 * mi/mi-cmd-stack.c: Update.
2096 * mi/mi-interp.c: Update.
2097 * mi/mi-main.c: Update.
2098 * objc-lang.c: Update.
2099 * p-valprint.c: Update.
2101 * ppc-linux-tdep.c: Update.
2102 * printcmd.c: Update.
2103 * python/py-arch.c: Update.
2104 * python/py-breakpoint.c: Update.
2105 * python/py-cmd.c: Update.
2106 * python/py-finishbreakpoint.c: Update.
2107 * python/py-frame.c: Update.
2108 * python/py-framefilter.c: Update.
2109 * python/py-gdb-readline.c: Update.
2110 * python/py-inferior.c: Update.
2111 * python/py-infthread.c: Update.
2112 * python/py-lazy-string.c: Update.
2113 * python/py-linetable.c: Update.
2114 * python/py-objfile.c: Update.
2115 * python/py-param.c: Update.
2116 * python/py-prettyprint.c: Update.
2117 * python/py-progspace.c: Update.
2118 * python/py-record-btrace.c: Update.
2119 * python/py-record.c: Update.
2120 * python/py-symbol.c: Update.
2121 * python/py-type.c: Update.
2122 * python/py-unwind.c: Update.
2123 * python/py-utils.c: Update.
2124 * python/py-value.c: Update.
2125 * python/python.c: Update.
2126 * record-btrace.c: Update.
2127 * record-full.c: Update.
2128 * remote-fileio.c: Update.
2130 * riscv-tdep.c: Update.
2131 * rs6000-aix-tdep.c: Update.
2132 * rs6000-tdep.c: Update.
2133 * rust-exp.y: Update.
2134 * rust-lang.c: Update.
2135 * s390-tdep.c: Update.
2136 * selftest-arch.c: Update.
2137 * solib-dsbt.c: Update.
2138 * solib-frv.c: Update.
2139 * solib-spu.c: Update.
2140 * solib-svr4.c: Update.
2142 * sparc64-linux-tdep.c: Update.
2144 * symfile-mem.c: Update.
2145 * symmisc.c: Update.
2149 * tracefile-tfile.c: Update.
2150 * tui/tui.c: Update.
2151 * typeprint.c: Update.
2152 * unittests/cli-utils-selftests.c: Update.
2153 * unittests/parse-connection-spec-selftests.c: Update.
2155 * valprint.c: Update.
2158 * windows-nat.c: Update.
2159 * x86-linux-nat.c: Update.
2160 * xml-support.c: Update.
2162 2019-04-08 Tom Tromey <tom@tromey.com>
2164 * xml-support.c: Use C++ exception handling.
2165 * x86-linux-nat.c: Use C++ exception handling.
2166 * windows-nat.c: Use C++ exception handling.
2167 * varobj.c: Use C++ exception handling.
2168 * value.c: Use C++ exception handling.
2169 * valprint.c: Use C++ exception handling.
2170 * valops.c: Use C++ exception handling.
2171 * unittests/parse-connection-spec-selftests.c: Use C++ exception
2173 * unittests/cli-utils-selftests.c: Use C++ exception handling.
2174 * typeprint.c: Use C++ exception handling.
2175 * tui/tui.c: Use C++ exception handling.
2176 * tracefile-tfile.c: Use C++ exception handling.
2177 * top.c: Use C++ exception handling.
2178 * thread.c: Use C++ exception handling.
2179 * target.c: Use C++ exception handling.
2180 * symmisc.c: Use C++ exception handling.
2181 * symfile-mem.c: Use C++ exception handling.
2182 * stack.c: Use C++ exception handling.
2183 * sparc64-linux-tdep.c: Use C++ exception handling.
2184 * solib.c: Use C++ exception handling.
2185 * solib-svr4.c: Use C++ exception handling.
2186 * solib-spu.c: Use C++ exception handling.
2187 * solib-frv.c: Use C++ exception handling.
2188 * solib-dsbt.c: Use C++ exception handling.
2189 * selftest-arch.c: Use C++ exception handling.
2190 * s390-tdep.c: Use C++ exception handling.
2191 * rust-lang.c: Use C++ exception handling.
2192 * rust-exp.y: Use C++ exception handling.
2193 * rs6000-tdep.c: Use C++ exception handling.
2194 * rs6000-aix-tdep.c: Use C++ exception handling.
2195 * riscv-tdep.c: Use C++ exception handling.
2196 * remote.c: Use C++ exception handling.
2197 * remote-fileio.c: Use C++ exception handling.
2198 * record-full.c: Use C++ exception handling.
2199 * record-btrace.c: Use C++ exception handling.
2200 * python/python.c: Use C++ exception handling.
2201 * python/py-value.c: Use C++ exception handling.
2202 * python/py-utils.c: Use C++ exception handling.
2203 * python/py-unwind.c: Use C++ exception handling.
2204 * python/py-type.c: Use C++ exception handling.
2205 * python/py-symbol.c: Use C++ exception handling.
2206 * python/py-record.c: Use C++ exception handling.
2207 * python/py-record-btrace.c: Use C++ exception handling.
2208 * python/py-progspace.c: Use C++ exception handling.
2209 * python/py-prettyprint.c: Use C++ exception handling.
2210 * python/py-param.c: Use C++ exception handling.
2211 * python/py-objfile.c: Use C++ exception handling.
2212 * python/py-linetable.c: Use C++ exception handling.
2213 * python/py-lazy-string.c: Use C++ exception handling.
2214 * python/py-infthread.c: Use C++ exception handling.
2215 * python/py-inferior.c: Use C++ exception handling.
2216 * python/py-gdb-readline.c: Use C++ exception handling.
2217 * python/py-framefilter.c: Use C++ exception handling.
2218 * python/py-frame.c: Use C++ exception handling.
2219 * python/py-finishbreakpoint.c: Use C++ exception handling.
2220 * python/py-cmd.c: Use C++ exception handling.
2221 * python/py-breakpoint.c: Use C++ exception handling.
2222 * python/py-arch.c: Use C++ exception handling.
2223 * printcmd.c: Use C++ exception handling.
2224 * ppc-linux-tdep.c: Use C++ exception handling.
2225 * parse.c: Use C++ exception handling.
2226 * p-valprint.c: Use C++ exception handling.
2227 * objc-lang.c: Use C++ exception handling.
2228 * mi/mi-main.c: Use C++ exception handling.
2229 * mi/mi-interp.c: Use C++ exception handling.
2230 * mi/mi-cmd-stack.c: Use C++ exception handling.
2231 * mi/mi-cmd-break.c: Use C++ exception handling.
2232 * main.c: Use C++ exception handling.
2233 * linux-thread-db.c: Use C++ exception handling.
2234 * linux-tdep.c: Use C++ exception handling.
2235 * linux-nat.c: Use C++ exception handling.
2236 * linux-fork.c: Use C++ exception handling.
2237 * linespec.c: Use C++ exception handling.
2238 * language.c: Use C++ exception handling.
2239 * jit.c: Use C++ exception handling.
2240 * infrun.c: Use C++ exception handling.
2241 * infcmd.c: Use C++ exception handling.
2242 * infcall.c: Use C++ exception handling.
2243 * inf-loop.c: Use C++ exception handling.
2244 * i386-tdep.c: Use C++ exception handling.
2245 * i386-linux-tdep.c: Use C++ exception handling.
2246 * guile/scm-value.c: Use C++ exception handling.
2247 * guile/scm-type.c: Use C++ exception handling.
2248 * guile/scm-symtab.c: Use C++ exception handling.
2249 * guile/scm-symbol.c: Use C++ exception handling.
2250 * guile/scm-pretty-print.c: Use C++ exception handling.
2251 * guile/scm-ports.c: Use C++ exception handling.
2252 * guile/scm-param.c: Use C++ exception handling.
2253 * guile/scm-math.c: Use C++ exception handling.
2254 * guile/scm-lazy-string.c: Use C++ exception handling.
2255 * guile/scm-frame.c: Use C++ exception handling.
2256 * guile/scm-disasm.c: Use C++ exception handling.
2257 * guile/scm-cmd.c: Use C++ exception handling.
2258 * guile/scm-breakpoint.c: Use C++ exception handling.
2259 * guile/scm-block.c: Use C++ exception handling.
2260 * guile/guile-internal.h: Use C++ exception handling.
2261 * gnu-v3-abi.c: Use C++ exception handling.
2262 * gdbtypes.c: Use C++ exception handling.
2263 * frame.c: Use C++ exception handling.
2264 * frame-unwind.c: Use C++ exception handling.
2265 * fbsd-tdep.c: Use C++ exception handling.
2266 * f-valprint.c: Use C++ exception handling.
2267 * exec.c: Use C++ exception handling.
2268 * event-top.c: Use C++ exception handling.
2269 * event-loop.c: Use C++ exception handling.
2270 * eval.c: Use C++ exception handling.
2271 * dwarf2read.c: Use C++ exception handling.
2272 * dwarf2loc.c: Use C++ exception handling.
2273 * dwarf2-frame.c: Use C++ exception handling.
2274 * dwarf2-frame-tailcall.c: Use C++ exception handling.
2275 * dwarf-index-write.c: Use C++ exception handling.
2276 * dwarf-index-cache.c: Use C++ exception handling.
2277 * dtrace-probe.c: Use C++ exception handling.
2278 * disasm-selftests.c: Use C++ exception handling.
2279 * darwin-nat.c: Use C++ exception handling.
2280 * cp-valprint.c: Use C++ exception handling.
2281 * cp-support.c: Use C++ exception handling.
2282 * cp-abi.c: Use C++ exception handling.
2283 * corelow.c: Use C++ exception handling.
2284 * completer.c: Use C++ exception handling.
2285 * compile/compile-object-run.c: Use C++ exception handling.
2286 * compile/compile-object-load.c: Use C++ exception handling.
2287 * compile/compile-cplus-symbols.c: Use C++ exception handling.
2288 * compile/compile-c-symbols.c: Use C++ exception handling.
2289 * common/selftest.c: Use C++ exception handling.
2290 * common/new-op.c: Use C++ exception handling.
2291 * cli/cli-script.c: Use C++ exception handling.
2292 * cli/cli-interp.c: Use C++ exception handling.
2293 * cli/cli-cmds.c: Use C++ exception handling.
2294 * c-varobj.c: Use C++ exception handling.
2295 * btrace.c: Use C++ exception handling.
2296 * breakpoint.c: Use C++ exception handling.
2297 * break-catch-throw.c: Use C++ exception handling.
2298 * arch-utils.c: Use C++ exception handling.
2299 * amd64-tdep.c: Use C++ exception handling.
2300 * ada-valprint.c: Use C++ exception handling.
2301 * ada-typeprint.c: Use C++ exception handling.
2302 * ada-lang.c: Use C++ exception handling.
2303 * aarch64-tdep.c: Use C++ exception handling.
2305 2019-04-08 Tom Tromey <tom@tromey.com>
2307 * xml-support.c (gdb_xml_parser::parse): Update.
2308 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2309 * value.c (show_convenience): Update.
2310 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
2311 (test_parse_flags_qcs): Update.
2312 * thread.c (thr_try_catch_cmd): Update.
2313 * target.c (target_translate_tls_address): Update.
2314 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2315 (info_frame_command_core, frame_apply_command_count): Update.
2316 * rust-exp.y (rust_lex_exception_test): Update.
2317 * riscv-tdep.c (riscv_print_one_register_info): Update.
2318 * remote.c (remote_target::enable_btrace): Update.
2319 * record-btrace.c (record_btrace_enable_warn): Update.
2320 * python/py-utils.c (gdbpy_convert_exception): Update.
2321 * printcmd.c (do_one_display, print_variable_and_value): Update.
2322 * mi/mi-main.c (mi_print_exception): Update.
2323 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
2324 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2325 * linux-nat.c (linux_nat_target::attach): Update.
2326 * linux-fork.c (class scoped_switch_fork_info): Update.
2327 * infrun.c (displaced_step_prepare): Update.
2328 * infcall.c (call_function_by_hand_dummy): Update.
2329 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
2330 * gnu-v3-abi.c (print_one_vtable): Update.
2331 * frame.c (get_prev_frame_always): Update.
2332 * f-valprint.c (info_common_command_for_block): Update.
2333 * exec.c (try_open_exec_file): Update.
2334 * exceptions.c (print_exception, exception_print)
2335 (exception_fprintf, exception_print_same): Update.
2336 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
2337 * dwarf-index-cache.c (index_cache::store)
2338 (index_cache::lookup_gdb_index): Update.
2339 * darwin-nat.c (maybe_cache_shell): Update.
2340 * cp-valprint.c (cp_print_value_fields): Update.
2341 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
2342 (gcc_cplus_symbol_address): Update.
2343 * compile/compile-c-symbols.c (gcc_convert_symbol)
2344 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
2345 * common/selftest.c: Update.
2346 * common/common-exceptions.h (struct gdb_exception) <message>: Now
2348 (exception_try_scope_entry, exception_try_scope_exit): Don't
2350 (struct exception_try_scope): Remove.
2351 (TRY): Don't use exception_try_scope.
2352 (struct gdb_exception): Add constructor, operator=.
2354 (struct gdb_exception_RETURN_MASK_ALL)
2355 (struct gdb_exception_RETURN_MASK_ERROR)
2356 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
2357 (struct gdb_quit_bad_alloc): Update.
2358 * common/common-exceptions.c (exception_none): Change
2360 (struct catcher) <state, exception>: Initialize inline.
2361 <prev>: Remove member.
2362 (current_catcher): Remove.
2363 (catchers): New global.
2364 (exceptions_state_mc_init): Simplify.
2365 (catcher_pop): Remove.
2366 (exceptions_state_mc, exceptions_state_mc_catch): Update.
2367 (try_scope_depth, exception_try_scope_entry)
2368 (exception_try_scope_exit): Remove.
2369 (throw_exception_sjlj): Update.
2370 (exception_messages, exception_messages_size): Remove.
2371 (throw_it): Simplify.
2372 (gdb_exception_sliced_copy): Remove.
2373 (throw_exception_cxx): Update.
2374 * cli/cli-script.c (script_from_file): Update.
2375 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
2377 * ada-valprint.c (ada_val_print): Update.
2378 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
2379 (create_excep_cond_exprs): Update.
2381 2019-04-08 Tom Tromey <tom@tromey.com>
2383 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
2384 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
2385 (TRY, CATCH, END_CATCH): Remove some definitions.
2386 * common/common-exceptions.c: Don't use GDB_XCPT.
2387 (catcher_list_size): Remove.
2388 (throw_exception, throw_it): Simplify.
2390 2019-04-05 Tom Tromey <tom@tromey.com>
2392 Revert the header-sorting patch.
2393 * ft32-tdep.c: Revert.
2394 * frv-tdep.c: Revert.
2395 * frv-linux-tdep.c: Revert.
2397 * frame-unwind.c: Revert.
2398 * frame-base.c: Revert.
2399 * fork-child.c: Revert.
2400 * findvar.c: Revert.
2401 * findcmd.c: Revert.
2402 * filesystem.c: Revert.
2403 * filename-seen-cache.h: Revert.
2404 * filename-seen-cache.c: Revert.
2405 * fbsd-tdep.c: Revert.
2406 * fbsd-nat.h: Revert.
2407 * fbsd-nat.c: Revert.
2408 * f-valprint.c: Revert.
2409 * f-typeprint.c: Revert.
2411 * extension.h: Revert.
2412 * extension.c: Revert.
2413 * extension-priv.h: Revert.
2414 * expprint.c: Revert.
2417 * exceptions.c: Revert.
2418 * event-top.c: Revert.
2419 * event-loop.c: Revert.
2421 * elfread.c: Revert.
2422 * dwarf2read.h: Revert.
2423 * dwarf2read.c: Revert.
2424 * dwarf2loc.c: Revert.
2425 * dwarf2expr.h: Revert.
2426 * dwarf2expr.c: Revert.
2427 * dwarf2-frame.c: Revert.
2428 * dwarf2-frame-tailcall.c: Revert.
2429 * dwarf-index-write.h: Revert.
2430 * dwarf-index-write.c: Revert.
2431 * dwarf-index-common.c: Revert.
2432 * dwarf-index-cache.h: Revert.
2433 * dwarf-index-cache.c: Revert.
2434 * dummy-frame.c: Revert.
2435 * dtrace-probe.c: Revert.
2438 * disasm-selftests.c: Revert.
2439 * dictionary.c: Revert.
2440 * dicos-tdep.c: Revert.
2441 * demangle.c: Revert.
2444 * darwin-nat.h: Revert.
2445 * darwin-nat.c: Revert.
2446 * darwin-nat-info.c: Revert.
2447 * d-valprint.c: Revert.
2448 * d-namespace.c: Revert.
2451 * csky-tdep.c: Revert.
2452 * csky-linux-tdep.c: Revert.
2453 * cris-tdep.c: Revert.
2454 * cris-linux-tdep.c: Revert.
2455 * cp-valprint.c: Revert.
2456 * cp-support.c: Revert.
2457 * cp-namespace.c: Revert.
2459 * corelow.c: Revert.
2460 * corefile.c: Revert.
2461 * continuations.c: Revert.
2462 * completer.h: Revert.
2463 * completer.c: Revert.
2464 * complaints.c: Revert.
2465 * coffread.c: Revert.
2466 * coff-pe-read.c: Revert.
2467 * cli-out.h: Revert.
2468 * cli-out.c: Revert.
2469 * charset.c: Revert.
2470 * c-varobj.c: Revert.
2471 * c-valprint.c: Revert.
2472 * c-typeprint.c: Revert.
2474 * buildsym.c: Revert.
2475 * buildsym-legacy.c: Revert.
2476 * build-id.h: Revert.
2477 * build-id.c: Revert.
2479 * bsd-uthread.c: Revert.
2480 * breakpoint.h: Revert.
2481 * breakpoint.c: Revert.
2482 * break-catch-throw.c: Revert.
2483 * break-catch-syscall.c: Revert.
2484 * break-catch-sig.c: Revert.
2485 * blockframe.c: Revert.
2487 * bfin-tdep.c: Revert.
2488 * bfin-linux-tdep.c: Revert.
2489 * bfd-target.c: Revert.
2491 * ax-general.c: Revert.
2494 * avr-tdep.c: Revert.
2496 * auto-load.c: Revert.
2497 * arm-wince-tdep.c: Revert.
2498 * arm-tdep.c: Revert.
2499 * arm-symbian-tdep.c: Revert.
2500 * arm-pikeos-tdep.c: Revert.
2501 * arm-obsd-tdep.c: Revert.
2502 * arm-nbsd-tdep.c: Revert.
2503 * arm-nbsd-nat.c: Revert.
2504 * arm-linux-tdep.c: Revert.
2505 * arm-linux-nat.c: Revert.
2506 * arm-fbsd-tdep.c: Revert.
2507 * arm-fbsd-nat.c: Revert.
2508 * arm-bsd-tdep.c: Revert.
2509 * arch-utils.c: Revert.
2510 * arc-tdep.c: Revert.
2511 * arc-newlib-tdep.c: Revert.
2512 * annotate.h: Revert.
2513 * annotate.c: Revert.
2514 * amd64-windows-tdep.c: Revert.
2515 * amd64-windows-nat.c: Revert.
2516 * amd64-tdep.c: Revert.
2517 * amd64-sol2-tdep.c: Revert.
2518 * amd64-obsd-tdep.c: Revert.
2519 * amd64-obsd-nat.c: Revert.
2520 * amd64-nbsd-tdep.c: Revert.
2521 * amd64-nbsd-nat.c: Revert.
2522 * amd64-nat.c: Revert.
2523 * amd64-linux-tdep.c: Revert.
2524 * amd64-linux-nat.c: Revert.
2525 * amd64-fbsd-tdep.c: Revert.
2526 * amd64-fbsd-nat.c: Revert.
2527 * amd64-dicos-tdep.c: Revert.
2528 * amd64-darwin-tdep.c: Revert.
2529 * amd64-bsd-nat.c: Revert.
2530 * alpha-tdep.c: Revert.
2531 * alpha-obsd-tdep.c: Revert.
2532 * alpha-nbsd-tdep.c: Revert.
2533 * alpha-mdebug-tdep.c: Revert.
2534 * alpha-linux-tdep.c: Revert.
2535 * alpha-linux-nat.c: Revert.
2536 * alpha-bsd-tdep.c: Revert.
2537 * alpha-bsd-nat.c: Revert.
2538 * aix-thread.c: Revert.
2540 * addrmap.c: Revert.
2541 * ada-varobj.c: Revert.
2542 * ada-valprint.c: Revert.
2543 * ada-typeprint.c: Revert.
2544 * ada-tasks.c: Revert.
2545 * ada-lang.c: Revert.
2546 * aarch64-tdep.c: Revert.
2547 * aarch64-ravenscar-thread.c: Revert.
2548 * aarch64-newlib-tdep.c: Revert.
2549 * aarch64-linux-tdep.c: Revert.
2550 * aarch64-linux-nat.c: Revert.
2551 * aarch64-fbsd-tdep.c: Revert.
2552 * aarch64-fbsd-nat.c: Revert.
2553 * aarch32-linux-nat.c: Revert.
2555 2019-04-05 Tom Tromey <tom@tromey.com>
2557 * ft32-tdep.c: Sort headers.
2558 * frv-tdep.c: Sort headers.
2559 * frv-linux-tdep.c: Sort headers.
2560 * frame.c: Sort headers.
2561 * frame-unwind.c: Sort headers.
2562 * frame-base.c: Sort headers.
2563 * fork-child.c: Sort headers.
2564 * findvar.c: Sort headers.
2565 * findcmd.c: Sort headers.
2566 * filesystem.c: Sort headers.
2567 * filename-seen-cache.h: Sort headers.
2568 * filename-seen-cache.c: Sort headers.
2569 * fbsd-tdep.c: Sort headers.
2570 * fbsd-nat.h: Sort headers.
2571 * fbsd-nat.c: Sort headers.
2572 * f-valprint.c: Sort headers.
2573 * f-typeprint.c: Sort headers.
2574 * f-lang.c: Sort headers.
2575 * extension.h: Sort headers.
2576 * extension.c: Sort headers.
2577 * extension-priv.h: Sort headers.
2578 * expprint.c: Sort headers.
2579 * exec.h: Sort headers.
2580 * exec.c: Sort headers.
2581 * exceptions.c: Sort headers.
2582 * event-top.c: Sort headers.
2583 * event-loop.c: Sort headers.
2584 * eval.c: Sort headers.
2585 * elfread.c: Sort headers.
2586 * dwarf2read.h: Sort headers.
2587 * dwarf2read.c: Sort headers.
2588 * dwarf2loc.c: Sort headers.
2589 * dwarf2expr.h: Sort headers.
2590 * dwarf2expr.c: Sort headers.
2591 * dwarf2-frame.c: Sort headers.
2592 * dwarf2-frame-tailcall.c: Sort headers.
2593 * dwarf-index-write.h: Sort headers.
2594 * dwarf-index-write.c: Sort headers.
2595 * dwarf-index-common.c: Sort headers.
2596 * dwarf-index-cache.h: Sort headers.
2597 * dwarf-index-cache.c: Sort headers.
2598 * dummy-frame.c: Sort headers.
2599 * dtrace-probe.c: Sort headers.
2600 * disasm.h: Sort headers.
2601 * disasm.c: Sort headers.
2602 * disasm-selftests.c: Sort headers.
2603 * dictionary.c: Sort headers.
2604 * dicos-tdep.c: Sort headers.
2605 * demangle.c: Sort headers.
2606 * dcache.h: Sort headers.
2607 * dcache.c: Sort headers.
2608 * darwin-nat.h: Sort headers.
2609 * darwin-nat.c: Sort headers.
2610 * darwin-nat-info.c: Sort headers.
2611 * d-valprint.c: Sort headers.
2612 * d-namespace.c: Sort headers.
2613 * d-lang.c: Sort headers.
2614 * ctf.c: Sort headers.
2615 * csky-tdep.c: Sort headers.
2616 * csky-linux-tdep.c: Sort headers.
2617 * cris-tdep.c: Sort headers.
2618 * cris-linux-tdep.c: Sort headers.
2619 * cp-valprint.c: Sort headers.
2620 * cp-support.c: Sort headers.
2621 * cp-namespace.c: Sort headers.
2622 * cp-abi.c: Sort headers.
2623 * corelow.c: Sort headers.
2624 * corefile.c: Sort headers.
2625 * continuations.c: Sort headers.
2626 * completer.h: Sort headers.
2627 * completer.c: Sort headers.
2628 * complaints.c: Sort headers.
2629 * coffread.c: Sort headers.
2630 * coff-pe-read.c: Sort headers.
2631 * cli-out.h: Sort headers.
2632 * cli-out.c: Sort headers.
2633 * charset.c: Sort headers.
2634 * c-varobj.c: Sort headers.
2635 * c-valprint.c: Sort headers.
2636 * c-typeprint.c: Sort headers.
2637 * c-lang.c: Sort headers.
2638 * buildsym.c: Sort headers.
2639 * buildsym-legacy.c: Sort headers.
2640 * build-id.h: Sort headers.
2641 * build-id.c: Sort headers.
2642 * btrace.c: Sort headers.
2643 * bsd-uthread.c: Sort headers.
2644 * breakpoint.h: Sort headers.
2645 * breakpoint.c: Sort headers.
2646 * break-catch-throw.c: Sort headers.
2647 * break-catch-syscall.c: Sort headers.
2648 * break-catch-sig.c: Sort headers.
2649 * blockframe.c: Sort headers.
2650 * block.c: Sort headers.
2651 * bfin-tdep.c: Sort headers.
2652 * bfin-linux-tdep.c: Sort headers.
2653 * bfd-target.c: Sort headers.
2654 * bcache.c: Sort headers.
2655 * ax-general.c: Sort headers.
2656 * ax-gdb.h: Sort headers.
2657 * ax-gdb.c: Sort headers.
2658 * avr-tdep.c: Sort headers.
2659 * auxv.c: Sort headers.
2660 * auto-load.c: Sort headers.
2661 * arm-wince-tdep.c: Sort headers.
2662 * arm-tdep.c: Sort headers.
2663 * arm-symbian-tdep.c: Sort headers.
2664 * arm-pikeos-tdep.c: Sort headers.
2665 * arm-obsd-tdep.c: Sort headers.
2666 * arm-nbsd-tdep.c: Sort headers.
2667 * arm-nbsd-nat.c: Sort headers.
2668 * arm-linux-tdep.c: Sort headers.
2669 * arm-linux-nat.c: Sort headers.
2670 * arm-fbsd-tdep.c: Sort headers.
2671 * arm-fbsd-nat.c: Sort headers.
2672 * arm-bsd-tdep.c: Sort headers.
2673 * arch-utils.c: Sort headers.
2674 * arc-tdep.c: Sort headers.
2675 * arc-newlib-tdep.c: Sort headers.
2676 * annotate.h: Sort headers.
2677 * annotate.c: Sort headers.
2678 * amd64-windows-tdep.c: Sort headers.
2679 * amd64-windows-nat.c: Sort headers.
2680 * amd64-tdep.c: Sort headers.
2681 * amd64-sol2-tdep.c: Sort headers.
2682 * amd64-obsd-tdep.c: Sort headers.
2683 * amd64-obsd-nat.c: Sort headers.
2684 * amd64-nbsd-tdep.c: Sort headers.
2685 * amd64-nbsd-nat.c: Sort headers.
2686 * amd64-nat.c: Sort headers.
2687 * amd64-linux-tdep.c: Sort headers.
2688 * amd64-linux-nat.c: Sort headers.
2689 * amd64-fbsd-tdep.c: Sort headers.
2690 * amd64-fbsd-nat.c: Sort headers.
2691 * amd64-dicos-tdep.c: Sort headers.
2692 * amd64-darwin-tdep.c: Sort headers.
2693 * amd64-bsd-nat.c: Sort headers.
2694 * alpha-tdep.c: Sort headers.
2695 * alpha-obsd-tdep.c: Sort headers.
2696 * alpha-nbsd-tdep.c: Sort headers.
2697 * alpha-mdebug-tdep.c: Sort headers.
2698 * alpha-linux-tdep.c: Sort headers.
2699 * alpha-linux-nat.c: Sort headers.
2700 * alpha-bsd-tdep.c: Sort headers.
2701 * alpha-bsd-nat.c: Sort headers.
2702 * aix-thread.c: Sort headers.
2703 * agent.c: Sort headers.
2704 * addrmap.c: Sort headers.
2705 * ada-varobj.c: Sort headers.
2706 * ada-valprint.c: Sort headers.
2707 * ada-typeprint.c: Sort headers.
2708 * ada-tasks.c: Sort headers.
2709 * ada-lang.c: Sort headers.
2710 * aarch64-tdep.c: Sort headers.
2711 * aarch64-ravenscar-thread.c: Sort headers.
2712 * aarch64-newlib-tdep.c: Sort headers.
2713 * aarch64-linux-tdep.c: Sort headers.
2714 * aarch64-linux-nat.c: Sort headers.
2715 * aarch64-fbsd-tdep.c: Sort headers.
2716 * aarch64-fbsd-nat.c: Sort headers.
2717 * aarch32-linux-nat.c: Sort headers.
2719 2019-04-04 Tom Tromey <tom@tromey.com>
2721 * varobj.c (varobj_create): Update.
2722 * rust-exp.y (struct rust_parser) <update_innermost_block,
2723 lookup_symbol>: New methods.
2724 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
2726 (rust_parser::rust_lookup_type)
2727 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2728 * printcmd.c (display_command, do_one_display): Update.
2729 * parser-defs.h (struct parser_state) <parser_state>: Add
2730 "tracker" parameter.
2731 (block_tracker): New member.
2732 (class innermost_block_tracker) <innermost_block_tracker>: Add
2734 <reset>: Remove method.
2735 (innermost_block): Don't declare.
2736 (null_post_parser): Update.
2737 * parse.c (innermost_block): Remove global.
2738 (write_dollar_variable): Update.
2739 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
2740 Remove "tracker_types" parameter.
2741 (parse_expression): Add "tracker" parameter.
2742 (parse_expression_for_completion): Update.
2743 (null_post_parser): Add "tracker" parameter.
2744 * p-exp.y: Update rules.
2745 * m2-exp.y: Update rules.
2746 * language.h (struct language_defn) <la_post_parser>: Add
2747 "tracker" parameter.
2748 * go-exp.y: Update rules.
2749 * f-exp.y: Update rules.
2750 * expression.h (parse_expression, parse_exp_1): Add "tracker"
2752 * d-exp.y: Update rules.
2753 * c-exp.y: Update rules.
2754 * breakpoint.c (set_breakpoint_condition): Create an
2755 innermost_block_tracker.
2756 (watch_command_1): Likewise.
2757 * ada-lang.c (resolve): Add "tracker" parameter.
2758 (resolve_subexp): Likewise.
2759 * ada-exp.y (write_var_from_sym): Update.
2761 2019-04-04 Tom Tromey <tom@tromey.com>
2763 * type-stack.h: New file.
2764 * type-stack.c: New file.
2765 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
2767 (insert_into_type_stack, insert_type, push_type, push_type_int)
2768 (insert_type_address_space, pop_type, pop_type_int)
2769 (pop_typelist, pop_type_stack, append_type_stack)
2770 (push_type_stack, get_type_stack, push_typelist)
2771 (follow_type_instance_flags, follow_types): Don't declare.
2772 * parse.c (type_stack): Remove global.
2773 (parse_exp_in_context): Update.
2774 (insert_into_type_stack, insert_type, push_type, push_type_int)
2775 (insert_type_address_space, pop_type, pop_type_int)
2776 (pop_typelist, pop_type_stack, append_type_stack)
2777 (push_type_stack, get_type_stack, push_typelist)
2778 (follow_type_instance_flags, follow_types): Remove (moved to
2780 * f-exp.y (type_stack): New global.
2782 (push_kind_type, f_parse): Update.
2783 * d-exp.y (type_stack): New global.
2786 * c-exp.y (struct c_parse_state) <type_stack>: New member.
2788 * Makefile.in (COMMON_SFILES): Add type-stack.c.
2789 (HFILES_NO_SRCDIR): Add type-stack.h.
2791 2019-04-04 Tom Tromey <tom@tromey.com>
2793 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
2794 (rust_parser::convert_ast_to_expression, rust_parse)
2795 (rust_lex_test_completion, rust_lex_tests): Update.
2796 * parser-defs.h (struct expr_completion_state): New.
2797 (struct parser_state) <parser_state>: Add completion parameter.
2798 <mark_struct_expression, mark_completion_tag>: New methods.
2799 <parse_completion, m_completion_state>: New members.
2800 (prefixify_expression, null_post_parser): Update.
2801 (mark_struct_expression, mark_completion_tag): Don't declare.
2802 * parse.c (parse_completion, expout_last_struct)
2803 (expout_tag_completion_type, expout_completion_name): Remove
2805 (parser_state::mark_struct_expression)
2806 (parser_state::mark_completion_tag): Now methods.
2807 (prefixify_expression): Add last_struct parameter.
2808 (prefixify_subexp): Likewise.
2809 (parse_exp_1): Update.
2810 (parse_exp_in_context): Add cstate parameter. Update.
2811 (parse_expression_for_completion): Create an
2812 expr_completion_state.
2813 (null_post_parser): Add "completion" parameter.
2814 * p-exp.y: Update rules.
2816 * language.h (struct language_defn) <la_post_parser>: Add
2817 "completing" parameter.
2818 * go-exp.y: Update rules.
2819 (lex_one_token): Update.
2820 * expression.h (parse_completion): Don't declare.
2821 * d-exp.y: Update rules.
2822 (lex_one_token): Update rules.
2823 * c-exp.y: Update rules.
2824 (lex_one_token): Update.
2825 * ada-lang.c (resolve): Add "parse_completion" parameter.
2826 (resolve_subexp): Likewise.
2827 (ada_resolve_function): Likewise.
2829 2019-04-04 Tom Tromey <tom@tromey.com>
2831 * parser-defs.h (struct parser_state) <start_arglist,
2832 end_arglist>: New methods.
2833 <arglist_len, m_funcall_chain>: New members.
2834 (arglist_len, start_arglist, end_arglist): Don't declare.
2835 * parse.c (arglist_len, funcall_chain): Remove global.
2836 (start_arglist, end_arglist): Remove functions.
2837 (parse_exp_in_context): Update.
2838 * p-exp.y: Update rules.
2839 * m2-exp.y: Update rules.
2840 * go-exp.y: Update rules.
2841 * f-exp.y: Update rules.
2842 * d-exp.y: Update rules.
2843 * c-exp.y: Update rules.
2845 2019-04-04 Tom Tromey <tom@tromey.com>
2847 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
2848 lex_operator, push_back>: New methods.
2850 (rust_parser::lex_hex, lex_escape): Rename and update.
2851 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
2852 (rust_parser::lex_operator): Rename and update.
2853 (rust_parser::lex_number, rustyylex, rustyyerror)
2854 (rust_lex_test_init, rust_lex_test_sequence)
2855 (rust_lex_test_push_back, rust_lex_tests): Update.
2856 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
2858 <lexptr, prev_lexptr>: New members.
2859 (lexptr, prev_lexptr): Don't declare.
2860 * parse.c (lexptr, prev_lexptr): Remove globals.
2861 (parse_exp_in_context): Update.
2862 * p-exp.y (yylex, yyerror): Update.
2863 * m2-exp.y (parse_number, yylex, yyerror): Update.
2864 * go-exp.y (lex_one_token, yyerror): Update.
2865 * f-exp.y (match_string_literal, yylex, yyerror): Update.
2866 * d-exp.y (lex_one_token, yyerror): Update.
2867 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
2868 (lex_one_token, yyerror): Update.
2869 * ada-lex.l (YY_INPUT): Update.
2870 (rewind_to_char): Update.
2871 * ada-exp.y (yyerror): Update.
2873 2019-04-04 Tom Tromey <tom@tromey.com>
2875 * rust-exp.y (rustyylex, rust_lex_tests): Update.
2876 * parser-defs.h (struct parser_state) <parser_state>: Add new
2878 <comma_terminates>: New member.
2879 (comma_terminates): Don't declare global.
2880 * parse.c (comma_terminates): Remove global.
2881 (parse_exp_in_context): Update.
2882 * p-exp.y (yylex): Update.
2883 * m2-exp.y (yylex): Update.
2884 * go-exp.y (lex_one_token): Update.
2885 * f-exp.y (yylex): Update.
2886 * d-exp.y (lex_one_token): Update.
2887 * c-exp.y (lex_one_token): Update.
2888 * ada-lex.l: Update.
2890 2019-04-04 Tom Tromey <tom@tromey.com>
2892 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
2893 (rustyylex, rust_lex_test_init, rust_lex_test_one)
2894 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
2895 * parser-defs.h (paren_depth): Don't declare.
2896 * parse.c (paren_depth): Remove global.
2897 (parse_exp_in_context): Update.
2898 * p-exp.y (paren_depth): New global.
2899 (pascal_parse): Initialize it.
2900 * m2-exp.y (paren_depth): New global.
2901 (m2_parse): Initialize it.
2902 * go-exp.y (paren_depth): New global.
2903 (go_parse): Initialize it.
2904 * f-exp.y (paren_depth): New global.
2905 (f_parse): Initialize it.
2906 * d-exp.y (paren_depth): New global.
2907 (d_parse): Initialize it.
2908 * c-exp.y (paren_depth): New global.
2909 (c_parse): Initialize it.
2910 * ada-lex.l (paren_depth): New global.
2911 (lexer_init): Initialize it.
2913 2019-04-04 Tom Tromey <tom@tromey.com>
2915 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
2916 (rust_parser::convert_ast_to_type)
2917 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2918 * parser-defs.h (struct parser_state) <parser_state>: Add
2919 parameters. Initialize new members.
2920 <expression_context_block, expression_context_pc>: New members.
2921 * parse.c (expression_context_block, expression_context_pc):
2923 (parse_exp_in_context): Update.
2924 * p-exp.y: Update all rules.
2926 * m2-exp.y: Update all rules.
2928 * go-exp.y (yylex): Update.
2929 * f-exp.y (yylex): Update.
2930 * d-exp.y: Update all rules.
2932 * c-exp.y: Update all rules.
2933 (lex_one_token, classify_name, yylex, c_parse): Update.
2934 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
2936 2019-04-04 Tom Tromey <tom@tromey.com>
2938 * gdbarch.h, gdbarch.c: Rebuild.
2939 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
2941 (struct stap_parse_info): Replace "parser_state" with
2943 * parser-defs.h (struct expr_builder): Rename from "parser_state".
2944 (parser_state): New class.
2945 * parse.c (expr_builder): Rename.
2946 (expr_builder::release): Rename.
2947 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2948 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2949 (write_exp_elt_longcst, write_exp_elt_floatcst)
2950 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2951 (write_exp_string_vector, write_exp_bitstring)
2952 (write_exp_msymbol, mark_struct_expression)
2953 (write_dollar_variable)
2954 (insert_type_address_space, increase_expout_size): Replace
2955 "parser_state" with "expr_builder".
2956 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
2957 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
2958 "parser_state" with "expr_builder".
2960 2019-04-04 Tom Tromey <tom@tromey.com>
2962 * rust-exp.y: Replace "parse_language" with method call.
2964 (yylex): Replace "parse_language" with method call.
2966 (yylex): Replace "parse_language" with method call.
2967 * go-exp.y (classify_name): Replace "parse_language" with method
2969 * f-exp.y (yylex): Replace "parse_language" with method call.
2970 * d-exp.y (lex_one_token): Replace "parse_language" with method
2973 (lex_one_token, classify_name, yylex): Replace "parse_language"
2975 * ada-exp.y (find_primitive_type, type_char)
2976 (type_system_address): Replace "parse_language" with method call.
2978 2019-04-04 Tom Tromey <tom@tromey.com>
2980 * rust-exp.y: Replace "parse_gdbarch" with method call.
2981 * parse.c (write_dollar_variable, insert_type_address_space):
2982 Replace "parse_gdbarch" with method call.
2983 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
2985 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
2987 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
2988 "parse_gdbarch" with method call.
2989 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
2991 * f-exp.y (parse_type, parse_f_type, yylex): Replace
2992 "parse_gdbarch" with method call.
2993 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
2994 "parse_gdbarch" with method call.
2995 * c-exp.y (parse_type, parse_number, classify_name): Replace
2996 "parse_gdbarch" with method call.
2997 * ada-lex.l: Replace "parse_gdbarch" with method call.
2998 * ada-exp.y (parse_type, find_primitive_type, type_char)
2999 (type_system_address): Replace "parse_gdbarch" with method call.
3001 2019-04-04 Tom Tromey <tom@tromey.com>
3003 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3004 * stap-probe.c (stap_parse_argument): Update.
3005 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
3006 initial_size parameter.
3007 * rust-exp.y (rust_lex_tests): Update.
3008 * parse.c (parser_state): Update.
3009 (parse_exp_in_context): Update.
3010 * parser-defs.h (struct parser_state) <parser_state>: Remove
3011 "initial_size" parameter.
3013 2019-04-04 Tom Tromey <tom@tromey.com>
3015 * parser-defs.h (increase_expout_size): Don't declare.
3016 * parse.c (increase_expout_size): Now static.
3018 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
3020 * gnu-nat.c (gnu_nat_target::wait): Fix
3021 target_waitstatus_to_string call.
3023 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3025 * eval.c (evaluate_subexp_standard): Handle internal functions
3026 during Fortran function call handling.
3028 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3030 * NEWS: Mention new internal functions.
3031 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
3032 (read_base_type): Use dwarf2_init_complex_target_type.
3033 * value.c (creal_internal_fn): New function.
3034 (cimag_internal_fn): New function.
3035 (_initialize_values): Register new internal functions.
3037 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3039 * infrun.c (stop_all_threads): If debug_infrun, always
3040 trace the wait status after wait_one, using
3041 target_waitstatus_to_string and target_pid_to_str.
3042 (handle_inferior_event): Replace various trace of
3043 wait status kind by a single trace.
3044 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
3045 wait status kind image by target_waitstatus_to_string.
3046 * target/waitstatus.c (target_waitstatus_to_string): Fix
3049 2019-04-01 Tom Tromey <tromey@adacore.com>
3052 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
3054 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
3055 Pedro Alves <palves@redhat.com>
3057 * top.c (quit_force): Call 'finalize_values'.
3058 * value.c (finalize_values): New function.
3059 * value.h (finalize_values): Declare.
3061 2019-03-30 Eli Zaretskii <eliz@gnu.org>
3063 * NEWS: Announce $_gdb_major and $_gdb_minor.
3065 * top.c (init_gdb_version_vars): New function.
3066 (gdb_init): Call init_gdb_version_vars.
3068 2019-03-29 Tom Tromey <tromey@adacore.com>
3070 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
3071 help text. Remove dead code.
3073 2019-03-29 Keith Seitz <keiths@redhat.com>
3075 From Siddhesh Poyarekar:
3076 * f-lang.h (f77_get_upperbound): Return LONGEST.
3077 (f77_get_lowerbound): Likewise.
3078 * f-typeprint.c (f_type_print_varspec_suffix): Expand
3079 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
3081 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
3082 plongest to format print it.
3083 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
3084 (f77_get_upperbound): Likewise.
3085 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
3086 LOWER_BOUND to LONGEST.
3087 (f77_create_arrayprint_offset_tbl): Likewise.
3089 2019-03-29 Keith Seitz <keiths@redhat.com>
3091 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3092 %s/pulongest for TYPE_LENGTH instead of %d in format
3094 * ada-typerint.c (ada_print_type): Likewise.
3095 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
3096 * compile/compile-c-support.c (generate_register_struct): Likewise.
3097 * gdbtypes.c (recursive_dump_type): Likewise.
3098 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
3099 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
3100 instead of %d in format strings.
3101 * riscv-tdep.c (riscv_type_alignment): Cast second argument
3102 to std::min to ULONGEST.
3103 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
3104 instead of %d in format strings.
3105 * tracepoint.c (info_scope_command): Likewise.
3106 * typeprint.c (print_offset_data::update)
3107 (print_offset_data::finish): Likewise.
3108 * xtensa-tdep.c (xtensa_store_return_value)
3109 (xtensa_push_dummy_call): Likewise.
3111 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
3113 * windows-nat.c (display_selector): Fixed format specifications
3116 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3118 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
3120 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
3122 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
3123 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
3124 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
3125 (nios2_linux_init_abi): Install it.
3127 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3129 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
3131 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3133 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
3135 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3136 Tom Tromey <tromey@adacore.com>
3138 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
3140 2019-03-26 Joel Brobecker <brobecker@adacore.com>
3142 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
3143 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
3144 method to compute the bounds of range types. Also print "[evaluated]"
3145 if the bounds' values come from a dynamic evaluation.
3147 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
3149 * cp-valprint.c (cp_print_value_fields): Don't print trailing
3150 whitespace when pretty printing is on.
3152 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3154 * ppc-linux-nat.c: Add include.
3156 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3158 * NEWS: Mention AArch64 Pointer Authentication.
3160 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3162 * arm-linux-nat.c: Add include.
3164 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
3166 * source-cache.c (source_cache::get_source_lines): Re-read
3167 fullname after calling open_source_file.
3169 2019-03-25 John Baldwin <jhb@FreeBSD.org>
3171 * NEWS: Mention TLS support for FreeBSD.
3173 2019-03-25 Tom Tromey <tromey@adacore.com>
3175 * minsyms.c (BUNCH_SIZE): Update comment.
3176 (~minimal_symbol_reader): Remove old comment.
3177 (compact_minimal_symbols): Update comment.
3178 (minimal_symbol_reader::install): Remove old comment. Update
3181 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3183 * s390-linux-nat.c: Add include.
3185 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3187 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3188 Call linux_get_hwcap.
3189 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
3191 (aarch64_linux_get_hwcap): Remove function.
3192 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
3194 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
3196 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3197 * linux-tdep.c (linux_get_hwcap): Add function.
3198 (linux_get_hwcap2): Likewise.
3199 * linux-tdep.h (linux_get_hwcap): Add declaration.
3200 (linux_get_hwcap2): Likewise.
3201 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
3202 (ppc_linux_get_hwcap2): Likewise.
3203 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
3205 (ppc_linux_nat_target::insert_watchpoint): Likewise.
3206 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
3207 (ppc_linux_nat_target::read_description): Likewise.
3208 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
3209 * s390-linux-nat.c: Likewise.
3210 * s390-linux-tdep.c (s390_core_read_description): Likewise.
3212 2019-03-24 Tom Tromey <tom@tromey.com>
3214 * ada-lang.c (standard_lookup): Simplify initialization.
3215 (ada_lookup_symbol_nonlocal): Simplify return.
3216 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
3217 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
3218 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
3219 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
3221 * solib.c (solib_global_lookup): Simplify.
3222 * symtab.c (null_block_symbol): Remove.
3223 (symbol_cache_lookup): Simplify returns.
3224 (lookup_language_this): Simplify returns.
3225 (lookup_symbol_aux): Simplify return.
3226 (lookup_local_symbol): Simplify returns.
3227 (lookup_global_symbol_from_objfile): Simplify return.
3228 (lookup_symbol_in_objfile_symtabs)
3229 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
3230 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
3231 (lookup_static_symbol, lookup_global_symbol): Simplify return.
3232 * cp-namespace.c (cp_lookup_bare_symbol)
3233 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
3234 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
3235 (cp_lookup_nested_symbol): Don't use null_block_symbol.
3236 (cp_lookup_symbol_via_imports): Simplify initialization.
3237 (find_symbol_in_baseclass): Likewise.
3238 * symtab.h (null_block_symbol): Remove.
3239 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
3240 (d_lookup_nested_symbol, d_lookup_symbol_imports)
3241 (d_lookup_symbol_module): Likewise.
3242 (find_symbol_in_baseclass): Simplify initialization.
3244 2019-03-24 Tom Tromey <tom@tromey.com>
3246 * expression.h: Don't include symtab.h.
3247 (struct block): Forward declare.
3249 2019-03-24 Tom Tromey <tom@tromey.com>
3251 * c-exp.y (typebase): Remove casts.
3252 * gdbtypes.c (lookup_unsigned_typename, )
3253 (lookup_signed_typename): Remove cast.
3254 * eval.c (parse_to_comma_and_eval): Remove cast.
3255 * parse.c (write_dollar_variable): Remove cast.
3256 * block.h (struct block) <superblock>: Now const.
3257 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
3258 * psymtab.c (psym_map_matching_symbols): Make "block" const.
3259 (map_block): Make "block" const.
3260 * symfile.h (struct quick_symbol_functions)
3261 <map_matching_symbols>: Constify block argument to "callback".
3262 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
3264 (find_pc_sect_compunit_symtab): Make "b" const.
3265 (find_symbol_at_address): Likewise.
3266 (search_symbols): Likewise.
3267 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
3268 (dw2_debug_names_lookup_symbol): Likewise.
3269 (dw2_map_matching_symbols): Update.
3270 * p-valprint.c (pascal_val_print): Remove "block".
3271 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
3272 (aux_add_nonlocal_symbols): Make "block" const.
3273 (resolve_subexp): Remove cast.
3274 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
3276 (iterate_over_file_blocks): Likewise.
3277 * f-exp.y (%union) <bval>: Remove.
3278 * coffread.c (patch_opaque_types): Make "b" const.
3279 * spu-tdep.c (spu_catch_start): Make "block" const.
3280 * c-valprint.c (print_unpacked_pointer): Remove "block".
3281 * symmisc.c (dump_symtab_1): Make "b" const.
3282 (block_depth): Make "block" const.
3283 * d-exp.y (%union) <bval>: Remove.
3284 * cp-support.h (cp_lookup_rtti_type): Update.
3285 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
3286 * psymtab.c (psym_lookup_symbol): Make "block" const.
3287 (maintenance_check_psymtabs): Make "b" const.
3288 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
3289 (enumerate_locals, enumerate_args): Update.
3290 * python/py-symtab.c (stpy_global_block): Make "block" const.
3291 (stpy_static_block): Likewise.
3292 * inline-frame.c (block_starting_point_at): Make "new_block"
3294 * block.c (find_block_in_blockvector): Make return type const.
3295 (blockvector_for_pc_sect): Make "b" const.
3296 (find_block_in_blockvector): Make "b" const.
3298 2019-03-23 Tom Tromey <tom@tromey.com>
3300 * varobj.c (varobj_create): Update.
3301 * symfile.c (clear_symtab_users): Don't reset innermost_block.
3302 * printcmd.c (display_command, do_one_display): Don't reset
3304 * parser-defs.h (enum innermost_block_tracker_type): Move to
3306 (innermost_block): Update comment.
3307 * parse.c (parse_exp_1): Add tracker_types parameter.
3308 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
3309 tracker_types parameter. Reset innermost_block.
3310 (parse_exp_in_context): Remove.
3311 (parse_expression_for_completion): Update.
3312 * objfiles.c (~objfile): Don't reset expression_context_block or
3314 * expression.h (enum innermost_block_tracker_type): Move from
3316 (parse_exp_1): Add tracker_types parameter.
3317 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
3318 reset innermost_block.
3320 2019-03-23 Tom Tromey <tom@tromey.com>
3322 * objfiles.h: Include bcache.h.
3324 2019-03-23 Tom Tromey <tom@tromey.com>
3326 * linespec.c (get_current_search_block): Use
3327 scoped_restore_current_language.
3328 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
3330 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3331 Jiong Wang <jiong.wang@arm.com>
3333 * aarch64-linux-tdep.c
3334 (aarch64_linux_iterate_over_regset_sections): Check for pauth
3336 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
3338 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3339 Jiong Wang <jiong.wang@arm.com>
3341 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
3343 (aarch64_analyze_prologue_test): Add PACIASP test.
3344 (aarch64_prologue_prev_register): Unmask PC value.
3346 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3347 Jiong Wang <jiong.wang@arm.com>
3349 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
3350 (aarch64_dwarf2_prev_register): Unmask PC value.
3351 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
3352 (aarch64_execute_dwarf_cfa_vendor_op): Check for
3353 DW_CFA_AARCH64_negate_ra_state.
3354 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
3356 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3357 Jiong Wang <jiong.wang@arm.com>
3359 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
3361 (aarch64_pseudo_register_name): Likewise.
3362 (aarch64_pseudo_register_type): Likewise.
3363 (aarch64_pseudo_register_reggroup_p): Likewise.
3364 (aarch64_gdbarch_init): Add pauth registers.
3365 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
3366 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
3367 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
3368 (struct gdbarch_tdep): Add regnum for ra_state.
3370 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3371 Jiong Wang <jiong.wang@arm.com>
3373 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
3375 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3376 Jiong Wang <jiong.wang@arm.com>
3378 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
3380 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
3381 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
3382 (aarch64_gdbarch_init): Add puth registers.
3383 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
3384 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
3385 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
3387 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3388 Jiong Wang <jiong.wang@arm.com>
3390 * aarch64-linux-nat.c
3391 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
3392 * aarch64-linux-tdep.c
3393 (aarch64_linux_core_read_description): Likewise.
3394 (aarch64_linux_get_hwcap): New function.
3395 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
3396 (aarch64_linux_get_hwcap): New declaration.
3398 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3399 Jiong Wang <jiong.wang@arm.com>
3401 * aarch64-linux-nat.c
3402 (aarch64_linux_nat_target::read_description): Add pauth param.
3403 * aarch64-linux-tdep.c
3404 (aarch64_linux_core_read_description): Likewise.
3405 * aarch64-tdep.c (struct target_desc): Add in pauth.
3406 (aarch64_read_description): Add pauth param.
3407 (aarch64_gdbarch_init): Likewise.
3408 * aarch64-tdep.h (aarch64_read_description): Likewise.
3409 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3410 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3411 * features/Makefile: Add new files.
3412 * features/aarch64-pauth.c: New file.
3413 * features/aarch64-pauth.xml: New file.
3415 2019-03-20 Tom Tromey <tromey@adacore.com>
3417 * infrun.c (handle_inferior_event): Rename from
3418 handle_inferior_event_1. Create a scoped_value_mark.
3419 (handle_inferior_event): Remove.
3421 2019-03-19 Tom Tromey <tromey@adacore.com>
3423 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
3424 * infrun.h (print_stop_event): Add "displays" parameter.
3425 * infrun.c (print_stop_event): Add "displays" parameter.
3427 2019-03-19 Pedro Alves <palves@redhat.com>
3429 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
3430 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
3431 to -1. Fix TABs vs spaces.
3432 (tui_ui_out::tui_ui_out): Don't initialize fields here.
3433 * tui/tui-out.h (tui_ui_out) Add intro comments.
3434 <m_line, m_start_of_line>: In-class initialize, and add describing
3437 2019-03-18 Alan Hayward <alan.hayward@arm.com>
3439 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
3441 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
3443 2019-03-18 Pedro Alves <palves@redhat.com>
3444 Eli Zaretskii <eliz@gnu.org>
3446 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
3447 m_line and m_start_of_line.
3449 2019-03-18 Eli Zaretskii <eliz@gnu.org>
3451 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
3452 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
3453 it returns a newline. This fixes a regression in TU mode, whereby
3454 the next line is output on the same screen line as the user input.
3456 2019-03-18 Tom Tromey <tromey@adacore.com>
3458 * minsyms.c (minimal_symbol_reader::install): Remove call to
3461 2019-03-18 Pedro Alves <palves@redhat.com>
3463 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
3465 (apply_style): New, factored out from ...
3466 (apply_ansi_escape): ... this. Handle reverse video mode.
3467 (tui_set_reverse_mode): New function.
3468 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
3469 * tui/tui-winsource.c (tui_show_source_line): Use
3470 tui_set_reverse_mode instead of setting A_STANDOUT.
3471 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
3474 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
3476 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
3479 2019-03-18 Tom Tromey <tromey@adacore.com>
3481 * ada-lang.c (empty_array): Add "high" parameter.
3482 (ada_evaluate_subexp): Update.
3484 2019-03-17 Sergei Trofimovich <siarheit@google.com>
3486 * unittests/string_view-selftests.c: Define
3487 _initialize_string_view_selftests unconditionally.
3489 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3492 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
3494 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3497 * windows-nat.c (display_selector): Fix format specifiers.
3499 2019-03-17 Eli Zaretskii <eliz@gnu.org>
3501 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
3502 tui_refill_source_window instead of tui_refresh_win, to update the
3503 current execution line. This fixes redisplay of the current line
3504 when stepping through the code with "next" or "step".
3506 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3508 * source-cache.c (source_cache::get_source_lines): Call
3509 find_source_lines to initialize s->nlines. This fixes vertical
3510 scrolling of TUI source window when the DOWN arrow is pressed.
3512 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3514 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
3515 linux-thread-db.c (_initialize_thread_db): Likewise.
3517 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3519 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
3520 wclrtoeol in tui_show_source_line". This reverts changes made in
3521 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
3523 2019-03-15 Tom Tromey <tom@tromey.com>
3525 * symtab.h (struct minimal_symbol): Derive from
3526 general_symbol_info.
3527 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
3528 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3529 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3530 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3531 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
3532 (MSYMBOL_SEARCH_NAME): Update.
3533 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
3534 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
3535 * minsyms.c (minimal_symbol_reader::record_full): Update.
3537 2019-03-15 Tom Tromey <tom@tromey.com>
3539 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
3541 2019-03-15 Tom Tromey <tom@tromey.com>
3543 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
3545 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
3547 * minsyms.c (lookup_minimal_symbol_by_pc_section)
3548 (build_minimal_symbol_hash_tables)
3549 (minimal_symbol_reader::install): Update.
3551 2019-03-15 Tom Tromey <tom@tromey.com>
3553 * symtab.c (create_demangled_names_hash): Update.
3554 (symbol_set_names): Update.
3555 * objfiles.h (struct objfile_per_bfd_storage)
3556 <demangled_names_hash>: Now an htab_up.
3557 * objfiles.c (objfile_per_bfd_storage): Simplify.
3559 2019-03-15 Tom Tromey <tom@tromey.com>
3561 * objfiles.h (struct objfile_per_bfd_storage): Declare
3563 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
3565 (get_objfile_bfd_data): Use new. Don't initialize
3567 (free_objfile_per_bfd_storage): Remove.
3568 (objfile_bfd_data_free, objfile::~objfile): Use delete.
3570 2019-03-15 Tom Tromey <tom@tromey.com>
3572 * symfile.c (reread_symbols): Update.
3573 * objfiles.c (objfile::objfile): Update.
3574 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
3575 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
3577 (minimal_symbol_reader::install): Update.
3578 (terminate_minimal_symbol_table): Remove.
3579 * jit.c (jit_object_close_impl): Update.
3581 2019-03-15 Tom Tromey <tom@tromey.com>
3583 * minsyms.c (minimal_symbol_reader::record_full): Remove some
3586 2019-03-15 Tom Tromey <tom@tromey.com>
3588 * objfiles.h (struct objfile_per_bfd_storage)
3589 <demangled_hash_languages>: Now a bitset.
3590 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
3591 (lookup_minimal_symbol): Update.
3593 2019-03-15 Tom Tromey <tom@tromey.com>
3595 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
3596 Don't return the symbol.
3597 * coffread.c (record_minimal_symbol): Use record_full.
3599 2019-03-14 Eli Zaretskii <eliz@gnu.org>
3601 The MS-Windows port of ncurses fails to switch to a color pair if
3602 one or both of the colors are the implicit default colors. This
3603 change records the default colors when TUI is initialized, and
3604 then specifies them explicitly when a color pair uses the default
3605 colors. This allows color styling in TUI mode on MS-Windows.
3607 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
3609 (tui_initialize_io) [__MINGW32__]: Record the default terminal
3610 colors in ncurses_norm_attr.
3611 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
3612 "none", replace it with the default color recorded in
3615 2019-03-14 Tom Tromey <tromey@adacore.com>
3617 * source-cache.h (class source_cache) <get_source_lines>: Return
3619 * source-cache.c (source_cache::extract_lines): Handle case where
3620 first_pos==npos. Return std::string.
3621 (source_cache::get_source_lines): Update.
3623 2019-03-14 Tom Tromey <tromey@adacore.com>
3625 * NEWS: Add item for "style sources" commands.
3626 * source-cache.c (source_cache::get_source_lines): Check
3628 * cli/cli-style.c (source_styling): New global.
3629 (_initialize_cli_style): Add "style sources" commands.
3630 (show_style_sources): New function.
3631 * cli/cli-style.h (source_styling): Declare.
3633 2019-03-14 Pedro Alves <palves@redhat.com>
3634 Tom Tromey <tromey@adacore.com>
3636 * tui/tui-winsource.h (tui_refill_source_window): Declare.
3637 * tui/tui-winsource.c (tui_refill_source_window): New function,
3639 (tui_horizontal_source_scroll): ... here. Move some logic.
3640 * cli/cli-style.c (set_style_enabled): Notify new observable.
3641 * tui/tui-hooks.c (tui_redisplay_source): New function.
3642 (tui_attach_detach_observers): Attach or detach
3643 tui_redisplay_source.
3644 * observable.h (source_styling_changed): New observable.
3645 * observable.c: Define source_styling_changed observable.
3647 2019-03-13 Tom Tromey <tromey@adacore.com>
3649 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
3650 (i386_gnu_nat_target::store_registers): Update.
3651 * target-debug.h (target_debug_print_std_string): New macro.
3652 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
3653 * windows-tdep.c (display_one_tib): Update.
3654 * tui/tui-stack.c (tui_make_status_line): Update.
3655 * top.c (print_inferior_quit_action): Update.
3656 * thread.c (thr_try_catch_cmd): Update.
3657 (add_thread_with_info): Update.
3658 (thread_target_id_str): Update.
3659 (thr_try_catch_cmd): Update.
3660 (thread_command): Update.
3661 (thread_find_command): Update.
3662 * record-btrace.c (record_btrace_target::info_record)
3663 (record_btrace_resume_thread, record_btrace_target::resume)
3664 (record_btrace_cancel_resume, record_btrace_step_thread)
3665 (record_btrace_target::wait, record_btrace_target::wait)
3666 (record_btrace_target::wait, record_btrace_target::stop): Update.
3667 * progspace.c (print_program_space): Update.
3668 * process-stratum-target.c
3669 (process_stratum_target::thread_address_space): Update.
3670 * linux-fork.c (linux_fork_mourn_inferior)
3671 (detach_checkpoint_command, info_checkpoints_command)
3672 (linux_fork_context): Update.
3673 (linux_fork_detach): Update.
3674 (class scoped_switch_fork_info): Update.
3675 (delete_checkpoint_command): Update.
3676 * infrun.c (follow_fork_inferior): Update.
3677 (follow_fork_inferior): Update.
3678 (proceed_after_vfork_done): Update.
3679 (handle_vfork_child_exec_or_exit): Update.
3680 (follow_exec): Update.
3681 (displaced_step_prepare_throw): Update.
3682 (displaced_step_restore): Update.
3683 (start_step_over): Update.
3685 (clear_proceed_status_thread): Update.
3687 (print_target_wait_results): Update.
3688 (do_target_wait): Update.
3689 (context_switch): Update.
3690 (stop_all_threads): Update.
3691 (restart_threads): Update.
3692 (finish_step_over): Update.
3693 (handle_signal_stop): Update.
3694 (switch_back_to_stepped_thread): Update.
3695 (keep_going_pass_signal): Update.
3696 (print_exited_reason): Update.
3697 (normal_stop): Update.
3698 * inferior.c (inferior_pid_to_str): Change return type.
3699 (print_selected_inferior): Update.
3700 (add_inferior): Update.
3701 (detach_inferior): Update.
3702 * dummy-frame.c (fprint_dummy_frames): Update.
3703 * dcache.c (dcache_info_1): Update.
3704 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
3705 (btrace_fetch, btrace_clear): Update.
3706 * linux-tdep.c (linux_core_pid_to_str): Change return type.
3707 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
3709 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
3710 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
3711 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
3712 * gdbarch.c, gdbarch.h: Rebuild.
3713 * gdbarch.sh (core_pid_to_str): Change return type.
3714 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
3716 (windows_nat_target::pid_to_str): Change return type.
3717 (windows_delete_thread): Update.
3718 (windows_nat_target::attach): Update.
3719 (windows_nat_target::files_info): Update.
3720 * target-delegates.c: Rebuild.
3721 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
3723 (sol_thread_target::pid_to_str): Change return type.
3724 * remote.c (class remote_target) <pid_to_str>: Change return
3726 (remote_target::pid_to_str): Change return type.
3727 (extended_remote_target::attach, remote_target::remote_stop_ns)
3728 (remote_target::remote_notif_remove_queued_reply)
3729 (remote_target::push_stop_reply, remote_target::disable_btrace):
3731 (extended_remote_target::attach): Update.
3732 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
3734 (gdbsim_target::pid_to_str): Change return type.
3735 * ravenscar-thread.c (struct ravenscar_thread_target)
3736 <pid_to_str>: Change return type.
3737 (ravenscar_thread_target::pid_to_str): Change return type.
3738 * procfs.c (class procfs_target) <pid_to_str>: Change return
3740 (procfs_target::pid_to_str): Change return type.
3741 (procfs_target::attach): Update.
3742 (procfs_target::detach): Update.
3743 (procfs_target::fetch_registers): Update.
3744 (procfs_target::store_registers): Update.
3745 (procfs_target::wait): Update.
3746 (procfs_target::files_info): Update.
3747 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
3748 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
3750 (nto_procfs_target::pid_to_str): Change return type.
3751 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
3752 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
3754 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
3756 (attach_proc_task_lwp_callback, get_detach_signal)
3757 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
3758 (linux_nat_target::resume, wait_lwp, stop_callback)
3759 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
3760 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
3761 (linux_nat_wait_1, resume_stopped_resumed_lwps)
3762 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
3763 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
3765 (inf_ptrace_target::attach): Update.
3766 (inf_ptrace_target::files_info): Update.
3767 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
3769 (go32_nat_target::pid_to_str): Change return type.
3770 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
3771 (gnu_nat_target::wait): Update.
3772 (gnu_nat_target::wait): Update.
3773 (gnu_nat_target::resume): Update.
3774 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
3775 (fbsd_nat_target::wait): Update.
3776 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
3778 (darwin_nat_target::attach): Update.
3779 * corelow.c (class core_target) <pid_to_str>: Change return type.
3780 (core_target::pid_to_str): Change return type.
3781 * target.c (normal_pid_to_str): Change return type.
3782 (default_pid_to_str): Likewise.
3783 (target_pid_to_str): Change return type.
3784 (target_translate_tls_address): Update.
3785 (target_announce_detach): Update.
3786 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
3788 (bsd_uthread_target::pid_to_str): Change return type.
3789 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
3791 (bsd_kvm_target::pid_to_str): Change return type.
3792 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
3794 (aix_thread_target::pid_to_str): Change return type.
3795 * target.h (struct target_ops) <pid_to_str>: Change return type.
3796 (target_pid_to_str, normal_pid_to_str): Likewise.
3797 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
3799 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
3801 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
3803 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
3805 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
3807 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
3810 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
3812 * NEWS: Mention that the new default MI version is 3. Mention
3813 changes to the output of commands and events that deal with
3814 multi-location breakpoints.
3815 * breakpoint.c: Include "mi/mi-out.h".
3816 (print_one_breakpoint): Change output syntax if using MI version
3818 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
3820 (mi_multi_location_breakpoint_output_fixed): New.
3821 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
3822 (mi_cmd_fix_multi_location_breakpoint_output): New.
3823 (mi_multi_location_breakpoint_output_fixed): New.
3824 * mi/mi-cmds.c (mi_cmds): Register command
3825 -fix-multi-location-breakpoint-output.
3826 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
3829 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3831 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
3832 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
3833 instantiate mi_ui_out based on interpreter name.
3834 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
3835 * mi/mi-main.c (mi_load_progress): Likewise.
3837 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3839 * NEWS: Combine separate "New targets" sections for 8.3.
3841 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3843 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
3844 (ppcfbsd_init_abi): Install gdbarch
3845 "fetch_tls_load_module_address" and "get_thread_local_address"
3848 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3850 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
3851 (riscv_fbsd_init_abi): Install gdbarch
3852 "fetch_tls_load_module_address" and "get_thread_local_address"
3855 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3857 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
3858 (i386fbsd_init_abi): Install gdbarch
3859 "fetch_tls_load_module_address" and "get_thread_local_address"
3862 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3864 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
3865 (amd64fbsd_init_abi): Install gdbarch
3866 "fetch_tls_load_module_address" and "get_thread_local_address"
3869 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3871 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
3872 (struct fbsd_pspace_data): New type.
3873 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
3874 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
3875 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
3876 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
3877 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
3879 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3881 * gdbtypes.c (lookup_struct_elt): New function.
3882 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
3883 * gdbtypes.h (struct struct_elt): New type.
3884 (lookup_struct_elt): New prototype.
3886 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3888 * gdbtypes.c (lookup_struct_elt_type): Update comment and
3889 remove disabled code block.
3891 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3893 * gdbarch.sh (get_thread_local_address): New method.
3894 * gdbarch.h, gdbarch.c: Regenerate.
3895 * target.c (target_translate_tls_address): Use
3896 gdbarch_get_thread_local_address if present instead of
3897 target::get_thread_local_address.
3899 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3901 * target.h (target::get_thread_local_address): Update comment.
3903 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3905 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
3906 objfile->separate_debug_objfile_backlink if not NULL.
3908 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3910 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
3911 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
3912 (amd64bsd_store_inferior_registers): Likewise.
3913 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
3914 Enable segment base registers.
3915 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
3916 PT_GETFSBASE and PT_GETGSBASE.
3917 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
3919 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
3920 segment base registers.
3921 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
3923 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3925 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
3926 Update calls to i386_target_description to add 'segments'
3928 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
3929 add segment base registers.
3930 * arch/i386.c (i386_create_target_description): Add 'segments'
3931 parameter to enable segment base registers.
3932 * arch/i386.h (i386_create_target_description): Likewise.
3933 * features/i386/32bit-segments.xml: New file.
3934 * features/i386/32bit-segments.c: Generate.
3935 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
3936 call to i386_target_description to add 'segments' parameter.
3937 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
3938 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
3939 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
3940 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
3941 if feature is present.
3942 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
3943 Add 'segments' parameter to call to i386_target_description.
3944 (i386_target_description): Add 'segments' parameter to enable
3945 segment base registers.
3946 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
3947 to call to i386_target_description.
3948 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
3949 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
3950 Define I386_NUM_REGS.
3951 (i386_target_description): Add 'segments' parameter to enable
3952 segment base registers.
3954 2019-03-12 Eli Zaretskii <eliz@gnu.org>
3957 * source-cache.c: #undef open and close, to avoid unresolved
3958 externals during linking.
3960 2019-03-12 Tom Tromey <tromey@adacore.com>
3962 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
3963 const. Add initializers.
3964 (_initialize_remote): Don't initialize ptid globals.
3966 2019-03-12 Pedro Alves <palves@redhat.com>
3968 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
3970 2019-03-12 Pedro Alves <palves@redhat.com>
3972 * cp-name-parser.y (main): Remove unused 'len' variable.
3974 2019-03-12 Tom Tromey <tromey@adacore.com>
3976 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
3977 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
3979 2019-03-12 Tom Tromey <tromey@adacore.com>
3981 * linux-nat.c (iterate_over_lwps): Update.
3982 (stop_callback): Remove parameter.
3983 (stop_wait_callback, detach_callback, resume_set_callback)
3984 (select_singlestep_lwp_callback, set_ignore_sigint)
3985 (status_callback, resumed_callback, resume_clear_callback)
3986 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
3988 (linux_nat_target::detach, linux_nat_target::resume)
3989 (linux_stop_and_wait_all_lwps, select_event_lwp)
3990 (linux_nat_filter_event, linux_nat_wait_1)
3991 (linux_nat_target::kill, linux_nat_target::stop)
3992 (linux_nat_target::stop): Update.
3993 (linux_nat_resume_callback): Change type.
3994 (resume_stopped_resumed_lwps, count_events_callback)
3995 (select_event_lwp_callback): Likewise.
3996 (linux_stop_lwp, linux_nat_stop_lwp): Update.
3997 * arm-linux-nat.c (struct update_registers_data): Remove.
3998 (update_registers_callback): Change type.
3999 (arm_linux_insert_hw_breakpoint1): Update.
4000 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
4002 (x86_linux_dr_set_addr): Update.
4003 (x86_linux_dr_set_control): Update.
4004 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
4005 (iterate_over_lwps): Use gdb::function_view.
4006 * nat/aarch64-linux-hw-point.c (struct
4007 aarch64_dr_update_callback_param): Remove.
4008 (debug_reg_change_callback): Change type.
4009 (aarch64_notify_debug_reg_change): Update.
4010 * s390-linux-nat.c (s390_refresh_per_info): Update.
4012 2019-03-11 Tom Tromey <tromey@adacore.com>
4014 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
4015 redundant assignment to "this_cu".
4017 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4019 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
4021 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4023 * gdbtypes.c (rank_one_type_parm_set): New function extracted
4025 (rank_one_type): ... this.
4027 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4029 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
4031 (rank_one_type): ... this.
4033 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4035 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
4037 (rank_one_type): ... this.
4039 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4041 * gdbtypes.c (rank_one_type_parm_float): New function extracted
4043 (rank_one_type): ... this.
4045 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4047 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
4049 (rank_one_type): ... this.
4051 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4053 * gdbtypes.c (rank_one_type_parm_range): New function extracted
4055 (rank_one_type): ... this.
4057 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4059 * gdbtypes.c (rank_one_type_parm_char): New function extracted
4061 (rank_one_type): ... this.
4063 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4065 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
4067 (rank_one_type): ... this.
4069 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4071 * gdbtypes.c (rank_one_type_parm_int): New function extracted
4073 (rank_one_type): ... this.
4075 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4077 * gdbtypes.c (rank_one_type_parm_func): New function extracted
4079 (rank_one_type): ... this.
4081 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4083 * gdbtypes.c (rank_one_type_parm_array): New function extracted
4085 (rank_one_type): ... this.
4087 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4089 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
4091 (rank_one_type): ... this.
4093 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4095 * inferior.c (initialize_inferiors): Ensure 'help set/show print
4096 inferior-events' shows the example events.
4098 2019-03-08 Eli Zaretskii <eliz@gnu.org>
4100 Support styling on native MS-Windows console
4103 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
4104 on MS-Windows if $TERM is not defined.
4106 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
4108 * posix-hdep.c (gdb_console_fputs):
4109 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
4111 * ui-file.h (gdb_console_fputs): Add prototype.
4113 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
4114 back to fputs only if the former returns zero.
4116 2019-03-07 Tom Tromey <tom@tromey.com>
4118 * symmisc.c (print_symbol_bcache_statistics): Update.
4119 (print_objfile_statistics): Update.
4120 * symfile.c (allocate_symtab): Update.
4121 * stabsread.c: Don't include bcache.h.
4122 * psymtab.h (struct psymbol_bcache): Don't declare.
4123 (class psymtab_storage) <psymbol_cache>: Now a bcache.
4124 (psymbol_bcache_init, psymbol_bcache_free)
4125 (psymbol_bcache_get_bcache): Don't declare.
4126 * psymtab.c (struct psymbol_bcache): Remove.
4127 (psymtab_storage::psymtab_storage): Update.
4128 (psymtab_storage::~psymtab_storage): Update.
4129 (psymbol_bcache_init, psymbol_bcache_free)
4130 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
4131 (add_psymbol_to_bcache): Update.
4132 (allocate_psymtab): Update.
4133 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
4134 macro_cache>: No longer pointers.
4135 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
4136 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
4137 * macrotab.c (macro_bcache): Update.
4138 * macroexp.c: Don't include bcache.h.
4139 * gdbtypes.c (check_types_worklist): Update.
4140 (types_deeply_equal): Remove TRY/CATCH. Update.
4141 * elfread.c (elf_symtab_read): Update.
4142 * dwarf2read.c: Don't include bcache.h.
4143 * buildsym.c (buildsym_compunit::get_macro_table): Update.
4144 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
4145 (print_bcache_statistics, bcache_memory_used): Don't declare.
4146 (struct bcache): Move from bcache.c. Add constructor, destructor,
4147 methods. Rename all data members.
4148 * bcache.c (struct bcache): Move to bcache.h.
4149 (bcache::expand_hash_table): Rename from expand_hash_table.
4151 (bcache::insert): Rename from bcache_full.
4152 (bcache::compare): Rename from bcache_compare.
4153 (bcache_xmalloc): Remove.
4154 (bcache::~bcache): Rename from bcache_xfree.
4155 (bcache::print_statistics): Rename from print_bcache_statistics.
4156 (bcache::memory_used): Rename from bcache_memory_used.
4158 2019-03-07 Pedro Alves <palves@redhat.com>
4160 * infrun.c (normal_stop): Also check for
4161 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
4163 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
4165 * f-lang.c (value_from_host_double): Moved to...
4166 * value.c (value_from_host_double): ...here.
4167 * value.h (value_from_host_double): Declare.
4168 * guile/scm-math.c (vlscm_convert_typed_number): Use
4169 value_from_host_double.
4170 (vlscm_convert_number): Likewise.
4171 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
4172 * python/py-value.c (convert_value_from_python): Likewise.
4174 2019-03-06 Tom Tromey <tom@tromey.com>
4176 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
4178 2019-03-06 Tom Tromey <tom@tromey.com>
4180 * utils.h (free_current_contents): Don't declare.
4181 * utils.c (free_current_contents): Remove.
4183 2019-03-06 Tom Tromey <tom@tromey.com>
4185 * top.c (quit_force): Update.
4186 * main.c (captured_command_loop): Update.
4187 * common/new-op.c (operator new): Update.
4188 * common/common-exceptions.c (struct catcher)
4189 <save_cleanup_chain>: Remove member.
4190 (exceptions_state_mc_init): Update.
4191 (exception_try_scope_entry): Return nullptr.
4192 (exception_try_scope_exit, exception_rethrow)
4193 (throw_exception_sjlj, throw_exception_cxx): Update.
4194 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
4195 (all_cleanups, do_cleanups, discard_cleanups)
4196 (discard_final_cleanups, save_cleanups, save_final_cleanups)
4197 (restore_cleanups, restore_final_cleanups): Don't declare.
4198 (do_final_cleanups): Remove parameter.
4199 * common/cleanups.c (cleanup_chain, make_cleanup)
4200 (make_cleanup_dtor, all_cleanups, do_cleanups)
4201 (discard_my_cleanups, discard_cleanups)
4202 (discard_final_cleanups, save_my_cleanups, save_cleanups)
4203 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
4204 (null_cleanup): Remove.
4205 (do_final_cleanups): Remove parameter.
4207 2019-03-06 Tom Tromey <tom@tromey.com>
4209 * remote.c (remote_target::remote_parse_stop_reply): Use
4212 2019-03-06 Tom Tromey <tom@tromey.com>
4214 * stabsread.c (struct stabs_field_info): Rename from field_info.
4215 <list, fnlist>: Add initializers.
4216 <obstack>: New member.
4217 (read_member_functions, read_struct_fields, read_baseclasses):
4218 Allocate on obstack. Don't use cleanups.
4219 (read_one_struct_field, read_member_functions, read_struct_fields)
4220 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
4221 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
4222 (read_struct_type): Update.
4224 2019-03-06 Tom Tromey <tom@tromey.com>
4226 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
4227 * common/filestuff.h (make_cleanup_close): Don't declare.
4228 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
4231 2019-03-06 Tom Tromey <tom@tromey.com>
4233 * solib-aix.c: Use make_scope_exit.
4235 2019-03-06 Tom Tromey <tom@tromey.com>
4237 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
4238 Use make_scope_exit.
4240 2019-03-06 Tom Tromey <tom@tromey.com>
4242 * solib-svr4.c (disable_probes_interface): Remove parameter.
4243 (svr4_handle_solib_event): Use make_scope_exit.
4245 2019-03-06 Tom Tromey <tom@tromey.com>
4247 * remote.c (struct stop_reply_deleter): Remove.
4248 (stop_reply_up): Update.
4249 (struct stop_reply): Derive from notif_event. Don't typedef.
4250 <regcache>: Now a std::vector.
4251 (stop_reply_xfree): Remove.
4252 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
4253 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
4254 (remote_target::discard_pending_stop_replies): Use delete.
4255 (remote_target::remote_parse_stop_reply): Update.
4256 (remote_target::process_stop_reply): Update.
4257 * remote-notif.h (struct notif_event): Add virtual destructor.
4258 Remove "dtr" member.
4259 (struct notif_client) <alloc_event>: Return a unique_ptr.
4260 (notif_event_xfree): Don't declare.
4261 (notif_event_up): New typedef.
4262 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
4263 (notif_event_xfree, do_notif_event_xfree): Remove.
4264 (remote_notif_state_xfree): Update.
4266 2019-03-06 Tom Tromey <tom@tromey.com>
4268 * infrun.c (displaced_step_clear_cleanup): Now a
4269 forward_scope_exit type.
4270 (displaced_step_prepare_throw): Update.
4271 (displaced_step_fixup): Update.
4273 2019-03-06 Tom Tromey <tom@tromey.com>
4275 * inferior.h (class inferior): Update comment.
4276 * gdbthread.h (class thread_info): Update comment.
4278 2019-03-06 Joel Brobecker <brobecker@adacore.com>
4279 Tom Tromey <tom@tromey.com>
4281 * stabsread.h (struct stab_section_list): Remove.
4282 (coffstab_build_psymtabs): Update.
4283 * dbxread.c (symbuf_sections): Now a std::vector.
4284 (sect_idx): New global.
4285 (fill_symbuf): Update.
4286 (coffstab_build_psymtabs): Change type of stabsects parameter.
4288 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
4290 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
4291 (coff_locate_sections): Update.
4292 (coff_symfile_read): Remove cleanups. Update.
4293 (init_stringtab): Add storage parameter.
4294 (free_stringtab, free_stringtab_cleanup): Remove.
4295 (init_lineno): Add storage parameter.
4296 (free_linetab, free_linetab_cleanup): Remove.
4298 2019-03-06 Pedro Alves <palves@redhat.com>
4300 * linux-fork.c (fork_info::clobber_regs): Delete.
4301 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
4302 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
4304 (scoped_switch_fork_info::scoped_switch_fork_info)
4305 (checkpoint_command, linux_fork_context): Adjust
4306 fork_save_infrun_state calls.
4308 2019-03-06 Pedro Alves <palves@redhat.com>
4310 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
4311 (inf_has_multiple_threads): Return 'bool' and rewrite using
4312 inferior_info::threads().
4314 2019-03-06 Pedro Alves <palves@redhat.com>
4316 * linux-fork.c: Include <list>.
4317 (fork_list): Now a std::list instance.
4318 (fork_info): Add ctor, dtor, and in-class initialize all fields.
4319 (forks_exist_p, find_last_fork): Adjust.
4323 (free_fork): Delete, folded into fork_info::~fork_info().
4324 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
4326 (init_fork_list): Delete.
4327 (linux_fork_killall, linux_fork_mourn_inferior)
4328 (linux_fork_detach, info_checkpoints_command): Adjust.
4329 (_initialize_linux_fork): No longer call init_fork_list.
4331 2019-03-06 Pedro Alves <palves@redhat.com>
4333 * linux-fork.c (new_fork): New, split out of ...
4334 (add_fork): ... this. Return void. Move "first fork" special
4335 case from here, to ...
4336 (checkpoint_command): ... here.
4337 * linux-linux.h (add_fork): Return void.
4339 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4341 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
4343 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4344 Chris January <chris.january@arm.com>
4345 David Lecomber <david.lecomber@arm.com>
4347 * f-exp.y: New token, UNOP_INTRINSIC.
4348 (exp): New pattern using UNOP_INTRINSIC token.
4349 (f77_keywords): Add 'abs' keyword.
4350 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
4351 (value_from_host_double): New function.
4352 (evaluate_subexp_f): Support UNOP_ABS.
4354 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4356 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
4359 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4361 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
4362 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
4363 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
4365 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4367 * f-exp.y (convert_to_kind_type): Handle more type kinds.
4369 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4370 Chris January <chris.january@arm.com>
4372 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
4373 * f-exp.y: Define 'KIND' token.
4374 (exp): New pattern for KIND expressions.
4375 (ptype): Handle types with a kind extension.
4376 (direct_abs_decl): Extend to spot kind extensions.
4377 (f77_keywords): Add 'kind' to the list.
4378 (push_kind_type): New function.
4379 (convert_to_kind_type): New function.
4380 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
4381 * parse.c (operator_length_standard): Likewise.
4382 * parser-defs.h (enum type_pieces): Add tp_kind.
4383 * std-operator.def: Add UNOP_KIND.
4385 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4387 * f-exp.y (f_parse): Set yydebug.
4389 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4391 * f-lang.c (evaluate_subexp_f): New function.
4392 (exp_descriptor_f): New global.
4393 (f_language_defn): Use exp_descriptor_f instead of
4394 exp_descriptor_standard.
4396 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4398 * f-exp.y (struct token): Add comments.
4399 (dot_ops): Remove uppercase versions and the end marker.
4400 (f77_keywords): Likewise.
4401 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
4402 entries in the dot_ops array are case insensitive, and use
4403 strncasecmp to compare strings. Also some whitespace cleanup in
4404 this area. Similar for the f77_keywords array, except entries in
4405 this list might be case sensitive.
4407 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4409 * f-exp.y (struct f77_boolean_val): Add comments.
4410 (boolean_values): Remove uppercase versions, and end marker.
4411 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
4412 and use strncasecmp to achieve case insensitivity. Additionally,
4413 perform whitespace cleanup around this code.
4415 2019-03-06 Tom Tromey <tromey@adacore.com>
4417 * remote-sim.c (gdbsim_target_open): Use result of
4420 2019-03-06 Richard Bunt <richard.bunt@arm.com>
4421 Dirk Schubert <dirk.schubert@arm.com>
4422 Chris January <chris.january@arm.com>
4424 * eval.c (evaluate_subexp_standard): Call Fortran argument
4426 * f-lang.c (struct value): A value which can be passed into a
4427 Fortran function call.
4428 (fortran_argument_convert): Wrap Fortran arguments in a pointer
4430 (struct type): Value ready for a Fortran function call.
4431 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
4433 * f-lang.h (fortran_argument_convert): Declaration.
4434 (fortran_preserve_arg_pointer): Declaration.
4435 * infcall.c (value_arg_coerce): Call Fortran argument logic.
4437 2019-03-05 Tom Tromey <tromey@adacore.com>
4439 * python/py-prettyprint.c (print_string_repr): Remove #if.
4440 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
4442 2019-03-05 Tom Tromey <tromey@adacore.com>
4444 * target.c (the_dummy_target): Move later. Change type to
4446 (initialize_targets): Don't initialize the_dummy_target.
4448 2019-03-05 Tom Tromey <tromey@adacore.com>
4450 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
4451 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
4453 2019-03-05 Tom Tromey <tromey@adacore.com>
4455 * windows-nat.c (windows_nat_target::attach)
4456 (windows_nat_target::detach): Don't call gdb_flush.
4457 * valprint.c (generic_val_print, val_print, val_print_string):
4458 Don't call gdb_flush.
4459 * utils.c (defaulted_query): Don't call gdb_flush.
4460 * typeprint.c (print_type_scalar): Don't call gdb_flush.
4461 * target.c (target_announce_detach): Don't call gdb_flush.
4462 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
4463 * remote.c (extended_remote_target::attach): Don't call
4465 * procfs.c (procfs_target::detach): Don't call gdb_flush.
4466 * printcmd.c (do_examine): Don't call gdb_flush.
4467 (info_display_command): Don't call gdb_flush.
4468 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
4469 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
4470 * memattr.c (info_mem_command): Don't call gdb_flush.
4471 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
4472 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
4473 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
4474 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
4475 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
4476 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
4477 (gnu_nat_target::detach): Don't call gdb_flush.
4478 * f-valprint.c (f_val_print): Don't call gdb_flush.
4479 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
4480 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
4481 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
4483 * c-valprint.c (c_val_print): Don't call gdb_flush.
4484 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
4486 2019-03-05 Tom Tromey <tromey@adacore.com>
4488 * varobj.c (update_dynamic_varobj_children): Update.
4489 (install_default_visualizer): Use reset, not release.
4490 * value.c (set_internalvar): Update.
4491 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
4492 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
4493 ATTRIBUTE_UNUSED_RESULT.
4495 2019-03-05 Tom Tromey <tromey@adacore.com>
4497 * remote.c (class scoped_remote_fd) <release>: Add
4498 ATTRIBUTE_UNUSED_RESULT.
4500 2019-03-05 Tom Tromey <tromey@adacore.com>
4502 * macroexp.c (struct macro_buffer) <release>: Add
4503 ATTRIBUTE_UNUSED_RESULT.
4505 2019-03-05 Tom Tromey <tromey@adacore.com>
4507 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
4508 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
4509 ATTRIBUTE_UNUSED_RESULT.
4511 2019-03-05 Tom Tromey <tromey@adacore.com>
4513 * common/scoped_fd.h (class scoped_fd) <release>: Add
4514 ATTRIBUTE_UNUSED_RESULT.
4516 2019-03-05 Tom Tromey <tromey@adacore.com>
4518 * parser-defs.h (struct parser_state) <release>: Add
4519 ATTRIBUTE_UNUSED_RESULT.
4521 2019-03-05 Tom Tromey <tromey@adacore.com>
4523 * utils.h (class gdb_argv) <release>: Add
4524 ATTRIBUTE_UNUSED_RESULT.
4525 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
4527 2019-03-02 Eli Zaretskii <eliz@gnu.org>
4529 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
4530 for-loop range, to avoid compiler warnings.
4532 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
4533 avoid compiler warnings about unused variables.
4535 * NEWS: Mention end of support for native debugging on MS-Windows
4539 * common/netstuff.c:
4540 * gdbserver/gdbreplay.c
4541 * gdbserver/remote-utils.c:
4543 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
4544 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
4545 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
4546 'getaddrinfo' and 'freeaddrinfo' were not available before
4547 Windows XP, and mingw.org's MinGW headers by default define
4548 _WIN32_WINNT to 0x500.
4550 2019-03-01 Gary Benson <gbenson@redhat.com>
4552 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
4554 2019-02-28 Brian Vandenberg <phantall@gmail.com>
4555 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4558 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
4559 set_sigint_trap, clear_sigint_trap.
4561 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4563 * target.c (target_detach): Clear the regcache and the
4566 2019-02-27 Pedro Alves <palves@redhat.com>
4568 * utils.c (set_screen_size): When we cap the height/width sizes,
4569 tweak the corresponding command variable to show "unlimited":
4571 2019-02-27 Saagar Jha <saagar@saagarjha.com>
4572 Pedro Alves <palves@redhat.com>
4574 * utils.c (set_screen_size): Reduce "infinite" rows and columns
4575 before calling rl_set_screen_size.
4577 2019-02-27 Tom Tromey <tromey@adacore.com>
4579 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
4581 * python/py-value.c: Remove Python 2.4 workaround.
4582 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
4584 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
4585 Python 2.4 workaround.
4586 * python/python-internal.h: Remove Python 2.4 comment.
4587 (Py_ssize_t): Don't define.
4588 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
4589 (gdb_Py_DECREF): Remove Python 2.4 workaround.
4590 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
4591 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
4592 * python/python.c (do_start_initialization): Remove Python 2.4
4594 * python/py-prettyprint.c (class dummy_python_frame): Remove.
4595 (print_children): Remove Python 2.4 workaround.
4596 * python/py-inferior.c (buffer_procs): Remove Python 2.4
4598 (CHARBUFFERPROC_NAME): Remove.
4599 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
4600 Python 2.4 workaround.
4602 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4604 * NEWS: Note minimum Python version.
4606 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4608 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
4609 code from these functions. Remove corresponding ifdefs. Use
4610 Py_buffer_up instead of explicit calls to PyBuffer_Release.
4611 Remove gotos and target of gotos.
4612 (infpy_search_memory): Likewise.
4614 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4616 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
4617 (hppa_gdbarch_init): Don't register deleted functions with
4620 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4622 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
4623 (h8300_unwind_sp): Delete.
4624 (h8300_dummy_id): Delete.
4625 (h8300_gdbarch_init): Don't register deleted functions with
4628 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4630 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
4631 (ft32_unwind_pc): Delete.
4632 (ft32_unwind_sp): Delete.
4633 (ft32_gdbarch_init): Don't register deleted functions with
4636 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4638 * gdb/frv-tdep.c (frv_dummy_id): Delete.
4639 (frv_unwind_pc): Delete.
4640 (frv_unwind_sp): Delete.
4641 (frv_gdbarch_init): Don't register deleted functions with
4644 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4646 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
4647 (riscv_unwind_pc): Delete.
4648 (riscv_unwind_sp): Delete.
4649 (riscv_gdbarch_init): Don't register deleted functions with
4652 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4654 * gdb/csky-tdep.c (csky_dummy_id): Delete.
4655 (csky_unwind_pc): Delete.
4656 (csky_unwind_sp): Delete.
4657 (csky_gdbarch_init): Don't register deleted functions with
4660 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4662 * gdb/cris-tdep.c (cris_dummy_id): Delete.
4663 (cris_unwind_pc): Delete.
4664 (cris_unwind_sp): Delete.
4665 (cris_gdbarch_init): Don't register deleted functions with
4668 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4670 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
4671 (bfin_unwind_pc): Delete.
4672 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
4674 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4676 * gdb/arm-tdep.c (arm_dummy_id): Delete.
4677 (arm_unwind_pc): Delete.
4678 (arm_unwind_sp): Delete.
4679 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
4681 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4683 * gdb/arc-tdep.c (arc_dummy_id): Delete.
4684 (arc_unwind_pc): Delete.
4685 (arc_unwind_sp): Delete.
4686 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
4688 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4690 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
4691 (alpha_unwind_pc): Delete.
4692 (alpha_gdbarch_init): Don't register deleted functions with
4695 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4697 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
4698 (aarch64_unwind_pc): Delete.
4699 (aarch64_unwind_sp): Delete.
4700 (aarch64_gdbarch_init): Don't register deleted functions with
4703 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4705 * gdbtypes.c (type_align): Don't consider static members when
4706 computing structure alignment.
4708 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4710 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
4711 return 0 for other types.
4712 * arch-utils.c (default_type_align): Always return 0.
4713 * gdbarch.h: Regenerate.
4714 * gdbarch.sh (type_align): Extend comment.
4715 * gdbtypes.c (type_align): Add additional comments, always call
4716 gdbarch_type_align before applying the default rules.
4717 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
4718 generic code will then apply a suitable default.
4719 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
4720 types, return 0 for other types.
4722 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4724 * NEWS: Create a new section for the next release branch.
4725 Rename the section of the current branch, now that it has
4728 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4730 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
4731 * version.in: Bump version to 8.3.50.DATE-git.
4733 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
4735 * aix-thread.c (ptid_cmp): Remove unused variable.
4736 (get_signaled_thread): Likewise.
4737 (store_regs_user_thread): Likewise.
4738 (store_regs_kernel_thread): Likewise.
4739 (fetch_regs_kernel_thread): Remove shadowed variable.
4741 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
4743 * features/riscv/32bit-cpu.xml: Add register numbers.
4744 * features/riscv/32bit-fpu.c: Regenerate.
4745 * features/riscv/32bit-fpu.xml: Add register numbers.
4746 * features/riscv/64bit-cpu.xml: Add register numbers.
4747 * features/riscv/64bit-fpu.c: Regenerate.
4748 * features/riscv/64bit-fpu.xml: Add register numbers.
4750 2019-02-26 Kevin Buettner <kevinb@redhat.com>
4752 * NEWS: Mention two argument form of gdb.Value constructor.
4753 * python/py-value.c (convert_buffer_and_type_to_value): New
4755 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
4756 Add support for handling an optional second argument. Call
4757 convert_buffer_and_type_to_value as appropriate.
4758 * python/python-internal.h (Py_buffer_deleter): New struct.
4759 (Py_buffer_up): New typedef.
4761 2019-02-25 John Baldwin <jhb@FreeBSD.org>
4763 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
4764 instead of releasing ownership.
4766 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
4768 * dwarf2read.c (open_and_init_dwp_file): Call
4769 elf_numsections instead of bfd_count_sections to initialize
4770 dwp_file->num_sections.
4772 2019-02-25 Tom Tromey <tromey@adacore.com>
4774 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
4776 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
4778 * gcore.in: Add '--readnever' option when invoking GDB.
4780 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4782 * MAINTAINERS: Update my email address.
4784 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4786 * build-id.c (build_id_to_debug_bfd_1): New function.
4787 (build_id_to_debug_bfd): Look for separate debug file in
4790 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
4792 * gdbarch.sh: Update the copyright year range that is placed into
4795 2019-02-22 Keith Seitz <keiths@redhat.com>
4798 * linespec.c (create_sals_line_offset): Search for the default
4799 symtab's filename instead of its fullname.
4801 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4803 * NEWS: Update style defaults.
4805 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4807 * main.c (captured_main_1): Disable styling in batch mode.
4809 2019-02-20 Tom Tromey <tom@tromey.com>
4811 * symtab.c (symtab_symbol_info): Fix typos.
4813 2019-02-20 Tom Tromey <tromey@adacore.com>
4815 * findcmd.c (_initialize_mem_search): Use upper case for
4816 metasyntactic variables.
4818 2019-02-20 Alan Hayward <alan.hayward@arm.com>
4820 * aarch64-tdep.c (aarch64_add_reggroups): New function.
4821 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
4823 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
4825 * top.h (source_file_name): Change to std::string.
4826 * top.c (source_file_name): Likewise.
4827 (command_line_input): Adjust.
4828 * cli/cli-script.c (script_from_file): Adjust.
4830 2019-02-19 Tom Tromey <tromey@adacore.com>
4832 * ravenscar-thread.c
4833 (ravenscar_thread_target::update_thread_list): Don't call
4834 ada_build_task_list.
4835 * ada-lang.h (ada_build_task_list): Don't declare.
4836 * ada-tasks.c (struct ada_tasks_inferior_data)
4837 <task_list_valid_p>: Now bool.
4838 (read_known_tasks, ada_task_list_changed)
4839 (ada_tasks_invalidate_inferior_data): Update.
4840 (read_known_tasks_array): Return bool.
4841 (read_known_tasks_list): Likewise.
4842 (read_known_tasks): Return void.
4843 (ada_build_task_list): Now static.
4845 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
4847 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
4848 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
4850 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4852 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
4853 variant for ada_tasks_pspace_data_handle and
4854 ada_tasks_inferior_data_handle.
4855 (ada_tasks_pspace_data_cleanup): New function.
4856 (ada_tasks_inferior_data_cleanup): New function.
4858 2019-02-17 Tom Tromey <tom@tromey.com>
4860 * macrotab.h (macro_source_fullname): Return a std::string.
4861 * macrotab.c (macro_include, check_for_redefinition)
4862 (macro_undef, macro_lookup_definition, foreach_macro)
4863 (foreach_macro_in_scope): Update.
4864 (macro_source_fullname): Return a std::string.
4865 * macrocmd.c (show_pp_source_pos): Update.
4867 2019-02-17 Tom Tromey <tom@tromey.com>
4869 * macrocmd.c (show_pp_source_pos): Style the file names.
4871 2019-02-17 Tom Tromey <tom@tromey.com>
4874 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
4876 2019-02-17 Tom Tromey <tom@tromey.com>
4878 * ada-lang.c (user_select_syms): Use filtered printing.
4879 * utils.c (wrap_style): New global.
4880 (desired_style): Remove.
4881 (emit_style_escape): Add stream parameter.
4882 (set_output_style, reset_terminal_style, prompt_for_continue):
4884 (flush_wrap_buffer): Only flush gdb_stdout.
4885 (wrap_here): Set wrap_style.
4886 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
4887 treat escape sequences as a character. Change when wrap buffer is
4889 (fputs_styled): Do not set the output style when the default is
4891 * ui-style.h (struct ui_file_style) <is_default>: New method.
4892 * source.c (print_source_lines_base): Emit escape sequences in one
4895 2019-02-17 Joel Brobecker <brobecker@adacore.com>
4897 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
4898 integers and enumeration types.
4900 2019-02-17 Joel Brobecker <brobecker@adacore.com>
4902 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
4903 instead of lookup_symbol_in_language
4904 (do_exact_match): New function.
4905 (ada_get_symbol_name_matcher): Return do_exact_match when
4906 doing a verbatim match.
4908 2019-02-15 Tom Tromey <tromey@adacore.com>
4910 * ravenscar-thread.c (ravenscar_thread_target::resume)
4911 (ravenscar_thread_target::wait): Special case wildcard requests.
4913 2019-02-15 Tom Tromey <tromey@adacore.com>
4915 * ravenscar-thread.c (base_ptid): Remove.
4916 (struct ravenscar_thread_target) <close>: New method.
4917 <m_base_ptid>: New member.
4918 <update_inferior_ptid, active_task, task_is_currently_active,
4919 runtime_initialized>: Declare methods.
4920 <ravenscar_thread_target>: Add constructor.
4921 (ravenscar_thread_target::task_is_currently_active)
4922 (ravenscar_thread_target::update_inferior_ptid)
4923 (ravenscar_runtime_initialized): Rename. Now methods.
4924 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
4925 (ravenscar_thread_target::update_thread_list): Update.
4926 (ravenscar_thread_target::active_task): Now method.
4927 (ravenscar_thread_target::store_registers)
4928 (ravenscar_thread_target::prepare_to_store)
4929 (ravenscar_thread_target::prepare_to_store)
4930 (ravenscar_thread_target::mourn_inferior): Update.
4931 (ravenscar_inferior_created): Use "new" to create target.
4932 (ravenscar_thread_target::get_ada_task_ptid): Update.
4933 (_initialize_ravenscar): Don't initialize base_ptid.
4934 (ravenscar_ops): Remove global.
4936 2019-02-15 Tom Tromey <tromey@adacore.com>
4938 * target.h (push_target): Declare new overload.
4939 * target.c (push_target): New overload, taking an rvalue reference.
4940 * remote.c (remote_target::open_1): Use push_target overload.
4941 * corelow.c (core_target_open): Use push_target overload.
4943 2019-02-15 Tom Tromey <tromey@adacore.com>
4945 * ravenscar-thread.c (is_ravenscar_task)
4946 (ravenscar_task_is_currently_active): Return bool.
4947 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
4948 (_initialize_ravenscar): Remove "(void)".
4949 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
4952 2019-02-15 Tom Tromey <tromey@adacore.com>
4954 * ravenscar-thread.c (ravenscar_runtime_initializer)
4955 (has_ravenscar_runtime, get_running_thread_id)
4956 (ravenscar_thread_target::resume): Fix indentation.
4958 2019-02-15 Tom Tromey <tromey@adacore.com>
4960 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
4961 from ravenscar_arch_ops.
4962 (sparc_ravenscar_ops::fetch_registers)
4963 (sparc_ravenscar_ops::store_registers): Now methods.
4964 (sparc_ravenscar_prepare_to_store): Remove.
4965 (sparc_ravenscar_ops): Redefine.
4966 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
4967 methods and destructor. Remove members.
4968 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
4969 (ravenscar_thread_target::store_registers)
4970 (ravenscar_thread_target::prepare_to_store): Update.
4971 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
4973 (struct ppc_ravenscar_powerpc_ops): Derive from
4975 (ppc_ravenscar_powerpc_ops::fetch_registers)
4976 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
4977 (ppc_ravenscar_powerpc_ops): Redefine.
4978 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
4979 (ppc_ravenscar_e500_ops::fetch_registers)
4980 (ppc_ravenscar_e500_ops::store_registers): Now methods.
4981 (ppc_ravenscar_e500_ops): Redefine.
4982 * aarch64-ravenscar-thread.c
4983 (aarch64_ravenscar_generic_prepare_to_store): Remove.
4984 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
4985 (aarch64_ravenscar_fetch_registers)
4986 (aarch64_ravenscar_store_registers): Now methods.
4987 (aarch64_ravenscar_ops): Redefine.
4989 2019-02-15 Tom Tromey <tromey@adacore.com>
4991 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
4992 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4993 (ravenscar_thread_target::stopped_by_watchpoint)
4994 (ravenscar_thread_target::stopped_data_address)
4995 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
4997 2019-02-15 Tom Tromey <tromey@adacore.com>
4999 * ravenscar-thread.c: Fix some typos.
5001 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5002 Tom Tromey <tromey@adacore.com>
5004 * ada-lang.c (ada_exception_sal): Change addr_string to a
5006 (create_ada_exception_catchpoint): Update.
5008 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5009 Tom Tromey <tromey@adacore.com>
5011 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
5012 (bp_location_ops): Remove.
5013 (base_breakpoint_allocate_location): Update.
5014 (free_bp_location): Update.
5015 * ada-lang.c (class ada_catchpoint_location)
5016 <ada_catchpoint_location>: Remove ops parameter.
5017 (ada_catchpoint_location_dtor): Remove.
5018 (ada_catchpoint_location_ops): Remove.
5019 (allocate_location_exception): Update.
5020 * breakpoint.h (struct bp_location_ops): Remove.
5021 (class bp_location) <bp_location>: Remove bp_location_ops
5023 <~bp_location>: Add destructor.
5026 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5027 Pedro Alves <palves@redhat.com>
5029 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
5032 2019-02-14 David Michael <fedora.dm0@gmail.com>
5033 Samuel Thibault <samuel.thibault@gnu.org>
5034 Thomas Schwinge <thomas@codesourcery.com>
5036 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
5037 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
5039 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5041 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
5042 (check_empty): Use "const char *".
5044 * gnu-nat.c (gnu_nat_target::detach): Instead of
5045 'detach_inferior (pid)' call
5046 'detach_inferior (find_inferior_pid (pid))'.
5048 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
5049 'nat/fork-inferior.o'.
5050 * gnu-nat.c: #include "nat/fork-inferior.h".
5052 * gnu-nat.c (gnu_nat_target::detach): Instead of
5053 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
5054 * gnu-nat.h: #include "inf-child.h".
5055 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
5056 'i386_gnu_nat_target::fetch_registers'.
5057 (gnu_store_registers): Rename/move to
5058 'i386_gnu_nat_target::store_registers'.
5060 * config/i386/nm-i386gnu.h: Don't "#include" any files.
5061 * gnu-nat.h (mach_thread_info): New function.
5062 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
5064 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
5066 2019-02-14 Frederic Konrad <konrad@adacore.com>
5068 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
5070 2019-02-14 Joel Brobecker <brobecker@adacore.com>
5072 * windows-nat.c (windows_add_thread): Add new parameter
5073 "main_thread_p" with default value set to false. Update
5074 function documentation as well as all callers.
5075 (windows_delete_thread): Likewise.
5076 (fake_create_process): Update call to windows_add_thread.
5077 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
5078 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
5079 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
5080 call to windows_delete_thread.
5082 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
5084 * MAINTAINERS: Add Andrew Burgess as global maintainer.
5086 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5088 * symfile.c (find_separate_debug_file): Use canonical path of
5089 sysroot with child_path instead of gdb_sysroot if it is valid.
5091 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5093 * symfile.c (find_separate_debug_file): Use child_path to
5094 determine if an object file is under a sysroot.
5096 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5098 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5099 unittests/child-path-selftests.c.
5100 * common/pathstuff.c (child_path): New function.
5101 * common/pathstuff.h (child_path): New prototype.
5102 * unittests/child-path-selftests.c: New file.
5104 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5106 * symfile.c (find_separate_debug_file): Look for separate debug
5107 files in debug directories under the sysroot.
5109 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5111 * symtab.h (struct minimal_symbol data_p): New const method.
5112 (struct minimal_symbol text_p): Likewise.
5113 * symtab.c (output_source_filename): Use file name style
5115 (print_symbol_info): Likewise.
5116 (print_msymbol_info): Use address style to print addresses.
5117 Use function name style to print executable text symbols.
5118 (expand_symtab_containing_pc): Use data_p.
5119 (find_pc_sect_compunit_symtab): Likewise.
5121 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5123 * breakpoint.c (describe_other_breakpoints): Use address style
5125 (say_where): Likewise.
5127 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5129 * ada-typeprint.c (print_func_type): Print function name
5130 style to print function name.
5131 * c-typeprint.c (c_print_type_1): Likewise.
5133 2019-02-11 Alan Hayward <alan.hayward@arm.com>
5135 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
5138 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5140 * c-exp.y (direct_abs_decl): Use emplace_back to record the
5143 2019-02-10 Joel Brobecker <brobecker@adacore.com>
5145 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
5146 TYPE_CODE_REF types.
5148 2019-02-08 Jim Wilson <jimw@sifive.com>
5150 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
5151 (riscv_linux_fregset): New.
5152 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
5154 2019-02-07 Tom Tromey <tom@tromey.com>
5156 * thread.c (thread_cancel_execution_command): Update.
5157 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
5159 (struct thread_fsm_ops): Remove.
5160 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
5161 (thread_fsm_should_stop, thread_fsm_return_value)
5162 (thread_fsm_set_finished, thread_fsm_finished_p)
5163 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
5165 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
5166 * infrun.c (clear_proceed_status_thread)
5167 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
5168 (print_stop_event): Update.
5169 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
5171 (step_command_fsm_ops): Remove.
5172 (new_step_command_fsm): Remove.
5174 (step_command_fsm::should_stop): Rename from
5175 step_command_fsm_should_stop.
5176 (step_command_fsm::clean_up): Rename from
5177 step_command_fsm_clean_up.
5178 (step_command_fsm::do_async_reply_reason): Rename from
5179 step_command_fsm_async_reply_reason.
5180 (struct until_next_fsm): Inherit from thread_fsm. Add
5182 (until_next_fsm_ops): Remove.
5183 (new_until_next_fsm): Remove.
5184 (until_next_fsm::should_stop): Rename from
5185 until_next_fsm_should_stop.
5186 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
5187 (until_next_fsm::do_async_reply_reason): Rename from
5188 until_next_fsm_async_reply_reason.
5189 (struct finish_command_fsm): Inherit from thread_fsm. Add
5190 constructor. Change type of breakpoint.
5191 (finish_command_fsm_ops): Remove.
5192 (new_finish_command_fsm): Remove.
5193 (finish_command_fsm::should_stop): Rename from
5194 finish_command_fsm_should_stop.
5195 (finish_command_fsm::clean_up): Rename from
5196 finish_command_fsm_clean_up.
5197 (finish_command_fsm::return_value): Rename from
5198 finish_command_fsm_return_value.
5199 (finish_command_fsm::do_async_reply_reason): Rename from
5200 finish_command_fsm_async_reply_reason.
5201 (finish_command): Update.
5202 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
5204 (call_thread_fsm_ops): Remove.
5205 (call_thread_fsm::call_thread_fsm): Rename from
5206 new_call_thread_fsm.
5207 (call_thread_fsm::should_stop): Rename from
5208 call_thread_fsm_should_stop.
5209 (call_thread_fsm::should_notify_stop): Rename from
5210 call_thread_fsm_should_notify_stop.
5211 (run_inferior_call, call_function_by_hand_dummy): Update.
5212 * cli/cli-interp.c (should_print_stop_to_console): Update.
5213 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
5214 Add constructor. Change type of location_breakpoint,
5216 (until_break_fsm_ops): Remove.
5217 (new_until_break_fsm): Remove.
5218 (until_break_fsm::should_stop): Rename from
5219 until_break_fsm_should_stop.
5220 (until_break_fsm::clean_up): Rename from
5221 until_break_fsm_clean_up.
5222 (until_break_fsm::do_async_reply_reason): Rename from
5223 until_break_fsm_async_reply_reason.
5224 (until_break_command): Update.
5225 * thread-fsm.c: Remove.
5226 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
5228 2019-02-07 Tom Tromey <tom@tromey.com>
5230 * yy-remap.h: Add include guard.
5231 * xtensa-tdep.h: Add include guard.
5232 * xcoffread.h: Rename include guard.
5233 * varobj-iter.h: Add include guard.
5234 * tui/tui.h: Rename include guard.
5235 * tui/tui-winsource.h: Rename include guard.
5236 * tui/tui-wingeneral.h: Rename include guard.
5237 * tui/tui-windata.h: Rename include guard.
5238 * tui/tui-win.h: Rename include guard.
5239 * tui/tui-stack.h: Rename include guard.
5240 * tui/tui-source.h: Rename include guard.
5241 * tui/tui-regs.h: Rename include guard.
5242 * tui/tui-out.h: Rename include guard.
5243 * tui/tui-layout.h: Rename include guard.
5244 * tui/tui-io.h: Rename include guard.
5245 * tui/tui-hooks.h: Rename include guard.
5246 * tui/tui-file.h: Rename include guard.
5247 * tui/tui-disasm.h: Rename include guard.
5248 * tui/tui-data.h: Rename include guard.
5249 * tui/tui-command.h: Rename include guard.
5250 * tic6x-tdep.h: Add include guard.
5251 * target/waitstatus.h: Rename include guard.
5252 * target/wait.h: Rename include guard.
5253 * target/target.h: Rename include guard.
5254 * target/resume.h: Rename include guard.
5255 * target-float.h: Rename include guard.
5256 * stabsread.h: Add include guard.
5257 * rs6000-tdep.h: Add include guard.
5258 * riscv-fbsd-tdep.h: Add include guard.
5259 * regformats/regdef.h: Rename include guard.
5260 * record.h: Rename include guard.
5261 * python/python.h: Rename include guard.
5262 * python/python-internal.h: Rename include guard.
5263 * python/py-stopevent.h: Rename include guard.
5264 * python/py-ref.h: Rename include guard.
5265 * python/py-record.h: Rename include guard.
5266 * python/py-record-full.h: Rename include guard.
5267 * python/py-record-btrace.h: Rename include guard.
5268 * python/py-instruction.h: Rename include guard.
5269 * python/py-events.h: Rename include guard.
5270 * python/py-event.h: Rename include guard.
5271 * procfs.h: Add include guard.
5272 * proc-utils.h: Add include guard.
5273 * p-lang.h: Add include guard.
5274 * or1k-tdep.h: Rename include guard.
5275 * observable.h: Rename include guard.
5276 * nto-tdep.h: Rename include guard.
5277 * nat/x86-linux.h: Rename include guard.
5278 * nat/x86-linux-dregs.h: Rename include guard.
5279 * nat/x86-gcc-cpuid.h: Add include guard.
5280 * nat/x86-dregs.h: Rename include guard.
5281 * nat/x86-cpuid.h: Rename include guard.
5282 * nat/ppc-linux.h: Rename include guard.
5283 * nat/mips-linux-watch.h: Rename include guard.
5284 * nat/linux-waitpid.h: Rename include guard.
5285 * nat/linux-ptrace.h: Rename include guard.
5286 * nat/linux-procfs.h: Rename include guard.
5287 * nat/linux-osdata.h: Rename include guard.
5288 * nat/linux-nat.h: Rename include guard.
5289 * nat/linux-namespaces.h: Rename include guard.
5290 * nat/linux-btrace.h: Rename include guard.
5291 * nat/glibc_thread_db.h: Rename include guard.
5292 * nat/gdb_thread_db.h: Rename include guard.
5293 * nat/gdb_ptrace.h: Rename include guard.
5294 * nat/fork-inferior.h: Rename include guard.
5295 * nat/amd64-linux-siginfo.h: Rename include guard.
5296 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
5297 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
5298 * nat/aarch64-linux.h: Rename include guard.
5299 * nat/aarch64-linux-hw-point.h: Rename include guard.
5300 * mn10300-tdep.h: Add include guard.
5301 * mips-linux-tdep.h: Add include guard.
5302 * mi/mi-parse.h: Rename include guard.
5303 * mi/mi-out.h: Rename include guard.
5304 * mi/mi-main.h: Rename include guard.
5305 * mi/mi-interp.h: Rename include guard.
5306 * mi/mi-getopt.h: Rename include guard.
5307 * mi/mi-console.h: Rename include guard.
5308 * mi/mi-common.h: Rename include guard.
5309 * mi/mi-cmds.h: Rename include guard.
5310 * mi/mi-cmd-break.h: Rename include guard.
5311 * m2-lang.h: Add include guard.
5312 * location.h: Rename include guard.
5313 * linux-record.h: Rename include guard.
5314 * linux-nat.h: Add include guard.
5315 * linux-fork.h: Add include guard.
5316 * i386-darwin-tdep.h: Rename include guard.
5317 * hppa-linux-offsets.h: Add include guard.
5318 * guile/guile.h: Rename include guard.
5319 * guile/guile-internal.h: Rename include guard.
5320 * gnu-nat.h: Rename include guard.
5321 * gdb-stabs.h: Rename include guard.
5322 * frv-tdep.h: Add include guard.
5323 * f-lang.h: Add include guard.
5324 * event-loop.h: Add include guard.
5325 * darwin-nat.h: Rename include guard.
5326 * cp-abi.h: Rename include guard.
5327 * config/sparc/nm-sol2.h: Rename include guard.
5328 * config/nm-nto.h: Rename include guard.
5329 * config/nm-linux.h: Add include guard.
5330 * config/i386/nm-i386gnu.h: Rename include guard.
5331 * config/djgpp/nl_types.h: Rename include guard.
5332 * config/djgpp/langinfo.h: Rename include guard.
5333 * compile/gcc-cp-plugin.h: Add include guard.
5334 * compile/gcc-c-plugin.h: Add include guard.
5335 * compile/compile.h: Rename include guard.
5336 * compile/compile-object-run.h: Rename include guard.
5337 * compile/compile-object-load.h: Rename include guard.
5338 * compile/compile-internal.h: Rename include guard.
5339 * compile/compile-cplus.h: Rename include guard.
5340 * compile/compile-c.h: Rename include guard.
5341 * common/xml-utils.h: Rename include guard.
5342 * common/x86-xstate.h: Rename include guard.
5343 * common/version.h: Rename include guard.
5344 * common/vec.h: Rename include guard.
5345 * common/tdesc.h: Rename include guard.
5346 * common/selftest.h: Rename include guard.
5347 * common/scoped_restore.h: Rename include guard.
5348 * common/scoped_mmap.h: Rename include guard.
5349 * common/scoped_fd.h: Rename include guard.
5350 * common/safe-iterator.h: Rename include guard.
5351 * common/run-time-clock.h: Rename include guard.
5352 * common/refcounted-object.h: Rename include guard.
5353 * common/queue.h: Rename include guard.
5354 * common/ptid.h: Rename include guard.
5355 * common/print-utils.h: Rename include guard.
5356 * common/preprocessor.h: Rename include guard.
5357 * common/pathstuff.h: Rename include guard.
5358 * common/observable.h: Rename include guard.
5359 * common/netstuff.h: Rename include guard.
5360 * common/job-control.h: Rename include guard.
5361 * common/host-defs.h: Rename include guard.
5362 * common/gdb_wait.h: Rename include guard.
5363 * common/gdb_vecs.h: Rename include guard.
5364 * common/gdb_unlinker.h: Rename include guard.
5365 * common/gdb_unique_ptr.h: Rename include guard.
5366 * common/gdb_tilde_expand.h: Rename include guard.
5367 * common/gdb_sys_time.h: Rename include guard.
5368 * common/gdb_string_view.h: Rename include guard.
5369 * common/gdb_splay_tree.h: Rename include guard.
5370 * common/gdb_setjmp.h: Rename include guard.
5371 * common/gdb_ref_ptr.h: Rename include guard.
5372 * common/gdb_optional.h: Rename include guard.
5373 * common/gdb_locale.h: Rename include guard.
5374 * common/gdb_assert.h: Rename include guard.
5375 * common/filtered-iterator.h: Rename include guard.
5376 * common/filestuff.h: Rename include guard.
5377 * common/fileio.h: Rename include guard.
5378 * common/environ.h: Rename include guard.
5379 * common/common-utils.h: Rename include guard.
5380 * common/common-types.h: Rename include guard.
5381 * common/common-regcache.h: Rename include guard.
5382 * common/common-inferior.h: Rename include guard.
5383 * common/common-gdbthread.h: Rename include guard.
5384 * common/common-exceptions.h: Rename include guard.
5385 * common/common-defs.h: Rename include guard.
5386 * common/common-debug.h: Rename include guard.
5387 * common/cleanups.h: Rename include guard.
5388 * common/buffer.h: Rename include guard.
5389 * common/btrace-common.h: Rename include guard.
5390 * common/break-common.h: Rename include guard.
5391 * cli/cli-utils.h: Rename include guard.
5392 * cli/cli-style.h: Rename include guard.
5393 * cli/cli-setshow.h: Rename include guard.
5394 * cli/cli-script.h: Rename include guard.
5395 * cli/cli-interp.h: Rename include guard.
5396 * cli/cli-decode.h: Rename include guard.
5397 * cli/cli-cmds.h: Rename include guard.
5398 * charset-list.h: Add include guard.
5399 * buildsym-legacy.h: Rename include guard.
5400 * bfin-tdep.h: Add include guard.
5401 * ax.h: Rename include guard.
5402 * arm-linux-tdep.h: Add include guard.
5403 * arm-fbsd-tdep.h: Add include guard.
5404 * arch/xtensa.h: Rename include guard.
5405 * arch/tic6x.h: Add include guard.
5406 * arch/i386.h: Add include guard.
5407 * arch/arm.h: Rename include guard.
5408 * arch/arm-linux.h: Rename include guard.
5409 * arch/arm-get-next-pcs.h: Rename include guard.
5410 * arch/amd64.h: Add include guard.
5411 * arch/aarch64-insn.h: Rename include guard.
5412 * arch-utils.h: Rename include guard.
5413 * annotate.h: Add include guard.
5414 * amd64-darwin-tdep.h: Rename include guard.
5415 * aarch64-linux-tdep.h: Add include guard.
5416 * aarch64-fbsd-tdep.h: Add include guard.
5417 * aarch32-linux-nat.h: Add include guard.
5419 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5421 * macrotab.c (macro_define_internal): New function that
5422 factorizes macro_define_object_internal and macro_define_function
5424 (macro_define_object_internal): Use macro_define_internal.
5425 (macro_define_function): Likewise.
5427 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5429 * macrocmd.c (extract_identifier): Return
5430 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
5433 2019-02-06 John Baldwin <jhb@FreeBSD.org>
5435 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
5437 2019-02-05 Tom Tromey <tom@tromey.com>
5439 * target.c (target_stack::unpush): Move assertion earlier.
5441 2019-01-30 Tom Tromey <tom@tromey.com>
5444 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
5445 (gdbpy_parse_and_eval): Likewise.
5446 * python/python-internal.h (gdbpy_allow_threads): New class.
5448 2019-01-28 John Baldwin <jhb@FreeBSD.org>
5450 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
5451 (aarch64_fbsd_fpregmap): Move earlier.
5452 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
5453 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5454 instead of individual calls to trad_frame_set_reg_addr.
5455 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
5457 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
5458 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5459 instead of individual calls to trad_frame_set_reg_addr.
5461 2019-01-28 Alan Hayward <alan.hayward@arm.com>
5463 * CONTRIBUTE: Replace contribution list with wiki link.
5465 2019-01-25 Tom Tromey <tom@tromey.com>
5467 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
5469 2019-01-25 Tom Tromey <tom@tromey.com>
5471 * xtensa-linux-nat.c: Fix common/ includes.
5472 * xml-support.h: Fix common/ includes.
5473 * xml-support.c: Fix common/ includes.
5474 * x86-linux-nat.c: Fix common/ includes.
5475 * windows-nat.c: Fix common/ includes.
5476 * varobj.h: Fix common/ includes.
5477 * varobj.c: Fix common/ includes.
5478 * value.c: Fix common/ includes.
5479 * valops.c: Fix common/ includes.
5480 * utils.c: Fix common/ includes.
5481 * unittests/xml-utils-selftests.c: Fix common/ includes.
5482 * unittests/utils-selftests.c: Fix common/ includes.
5483 * unittests/unpack-selftests.c: Fix common/ includes.
5484 * unittests/tracepoint-selftests.c: Fix common/ includes.
5485 * unittests/style-selftests.c: Fix common/ includes.
5486 * unittests/string_view-selftests.c: Fix common/ includes.
5487 * unittests/scoped_restore-selftests.c: Fix common/ includes.
5488 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
5489 * unittests/scoped_fd-selftests.c: Fix common/ includes.
5490 * unittests/rsp-low-selftests.c: Fix common/ includes.
5491 * unittests/parse-connection-spec-selftests.c: Fix common/
5493 * unittests/optional-selftests.c: Fix common/ includes.
5494 * unittests/offset-type-selftests.c: Fix common/ includes.
5495 * unittests/observable-selftests.c: Fix common/ includes.
5496 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
5497 * unittests/memrange-selftests.c: Fix common/ includes.
5498 * unittests/memory-map-selftests.c: Fix common/ includes.
5499 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
5500 * unittests/function-view-selftests.c: Fix common/ includes.
5501 * unittests/environ-selftests.c: Fix common/ includes.
5502 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
5503 * unittests/common-utils-selftests.c: Fix common/ includes.
5504 * unittests/cli-utils-selftests.c: Fix common/ includes.
5505 * unittests/array-view-selftests.c: Fix common/ includes.
5506 * ui-file.c: Fix common/ includes.
5507 * tui/tui-io.c: Fix common/ includes.
5508 * tracepoint.h: Fix common/ includes.
5509 * tracepoint.c: Fix common/ includes.
5510 * tracefile-tfile.c: Fix common/ includes.
5511 * top.h: Fix common/ includes.
5512 * top.c: Fix common/ includes.
5513 * thread.c: Fix common/ includes.
5514 * target/waitstatus.h: Fix common/ includes.
5515 * target/waitstatus.c: Fix common/ includes.
5516 * target.h: Fix common/ includes.
5517 * target.c: Fix common/ includes.
5518 * target-memory.c: Fix common/ includes.
5519 * target-descriptions.c: Fix common/ includes.
5520 * symtab.h: Fix common/ includes.
5521 * symfile.c: Fix common/ includes.
5522 * stap-probe.c: Fix common/ includes.
5523 * spu-linux-nat.c: Fix common/ includes.
5524 * sparc-nat.c: Fix common/ includes.
5525 * source.c: Fix common/ includes.
5526 * solib.c: Fix common/ includes.
5527 * solib-target.c: Fix common/ includes.
5528 * ser-unix.c: Fix common/ includes.
5529 * ser-tcp.c: Fix common/ includes.
5530 * ser-pipe.c: Fix common/ includes.
5531 * ser-base.c: Fix common/ includes.
5532 * selftest-arch.c: Fix common/ includes.
5533 * s12z-tdep.c: Fix common/ includes.
5534 * rust-exp.y: Fix common/ includes.
5535 * rs6000-aix-tdep.c: Fix common/ includes.
5536 * riscv-tdep.c: Fix common/ includes.
5537 * remote.c: Fix common/ includes.
5538 * remote-notif.h: Fix common/ includes.
5539 * remote-fileio.h: Fix common/ includes.
5540 * remote-fileio.c: Fix common/ includes.
5541 * regcache.h: Fix common/ includes.
5542 * regcache.c: Fix common/ includes.
5543 * record-btrace.c: Fix common/ includes.
5544 * python/python.c: Fix common/ includes.
5545 * python/py-type.c: Fix common/ includes.
5546 * python/py-inferior.c: Fix common/ includes.
5547 * progspace.h: Fix common/ includes.
5548 * producer.c: Fix common/ includes.
5549 * procfs.c: Fix common/ includes.
5550 * proc-api.c: Fix common/ includes.
5551 * printcmd.c: Fix common/ includes.
5552 * ppc-linux-nat.c: Fix common/ includes.
5553 * parser-defs.h: Fix common/ includes.
5554 * osdata.c: Fix common/ includes.
5555 * obsd-nat.c: Fix common/ includes.
5556 * nat/x86-linux.c: Fix common/ includes.
5557 * nat/x86-linux-dregs.c: Fix common/ includes.
5558 * nat/x86-dregs.h: Fix common/ includes.
5559 * nat/x86-dregs.c: Fix common/ includes.
5560 * nat/ppc-linux.c: Fix common/ includes.
5561 * nat/mips-linux-watch.h: Fix common/ includes.
5562 * nat/mips-linux-watch.c: Fix common/ includes.
5563 * nat/linux-waitpid.c: Fix common/ includes.
5564 * nat/linux-ptrace.h: Fix common/ includes.
5565 * nat/linux-ptrace.c: Fix common/ includes.
5566 * nat/linux-procfs.c: Fix common/ includes.
5567 * nat/linux-personality.c: Fix common/ includes.
5568 * nat/linux-osdata.c: Fix common/ includes.
5569 * nat/linux-namespaces.c: Fix common/ includes.
5570 * nat/linux-btrace.h: Fix common/ includes.
5571 * nat/linux-btrace.c: Fix common/ includes.
5572 * nat/fork-inferior.c: Fix common/ includes.
5573 * nat/amd64-linux-siginfo.c: Fix common/ includes.
5574 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
5575 * nat/aarch64-linux.c: Fix common/ includes.
5576 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
5577 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
5578 * namespace.h: Fix common/ includes.
5579 * mips-linux-tdep.c: Fix common/ includes.
5580 * minsyms.c: Fix common/ includes.
5581 * mi/mi-parse.h: Fix common/ includes.
5582 * mi/mi-main.c: Fix common/ includes.
5583 * mi/mi-cmd-env.c: Fix common/ includes.
5584 * memrange.h: Fix common/ includes.
5585 * memattr.c: Fix common/ includes.
5586 * maint.h: Fix common/ includes.
5587 * maint.c: Fix common/ includes.
5588 * main.c: Fix common/ includes.
5589 * machoread.c: Fix common/ includes.
5590 * location.c: Fix common/ includes.
5591 * linux-thread-db.c: Fix common/ includes.
5592 * linux-nat.c: Fix common/ includes.
5593 * linux-fork.c: Fix common/ includes.
5594 * inline-frame.c: Fix common/ includes.
5595 * infrun.c: Fix common/ includes.
5596 * inflow.c: Fix common/ includes.
5597 * inferior.h: Fix common/ includes.
5598 * inferior.c: Fix common/ includes.
5599 * infcmd.c: Fix common/ includes.
5600 * inf-ptrace.c: Fix common/ includes.
5601 * inf-child.c: Fix common/ includes.
5602 * ia64-linux-nat.c: Fix common/ includes.
5603 * i387-tdep.c: Fix common/ includes.
5604 * i386-tdep.c: Fix common/ includes.
5605 * i386-linux-tdep.c: Fix common/ includes.
5606 * i386-linux-nat.c: Fix common/ includes.
5607 * i386-go32-tdep.c: Fix common/ includes.
5608 * i386-fbsd-tdep.c: Fix common/ includes.
5609 * i386-fbsd-nat.c: Fix common/ includes.
5610 * guile/scm-type.c: Fix common/ includes.
5611 * guile/guile.c: Fix common/ includes.
5612 * go32-nat.c: Fix common/ includes.
5613 * gnu-nat.c: Fix common/ includes.
5614 * gdbthread.h: Fix common/ includes.
5615 * gdbarch-selftests.c: Fix common/ includes.
5616 * gdb_usleep.c: Fix common/ includes.
5617 * gdb_select.h: Fix common/ includes.
5618 * gdb_bfd.c: Fix common/ includes.
5619 * gcore.c: Fix common/ includes.
5620 * fork-child.c: Fix common/ includes.
5621 * findvar.c: Fix common/ includes.
5622 * fbsd-nat.c: Fix common/ includes.
5623 * event-top.c: Fix common/ includes.
5624 * event-loop.c: Fix common/ includes.
5625 * dwarf2read.c: Fix common/ includes.
5626 * dwarf2loc.c: Fix common/ includes.
5627 * dwarf2-frame.c: Fix common/ includes.
5628 * dwarf-index-cache.c: Fix common/ includes.
5629 * dtrace-probe.c: Fix common/ includes.
5630 * disasm-selftests.c: Fix common/ includes.
5631 * defs.h: Fix common/ includes.
5632 * csky-tdep.c: Fix common/ includes.
5633 * cp-valprint.c: Fix common/ includes.
5634 * cp-support.h: Fix common/ includes.
5635 * cp-support.c: Fix common/ includes.
5636 * corelow.c: Fix common/ includes.
5637 * completer.h: Fix common/ includes.
5638 * completer.c: Fix common/ includes.
5639 * compile/compile.c: Fix common/ includes.
5640 * compile/compile-loc2c.c: Fix common/ includes.
5641 * compile/compile-cplus-types.c: Fix common/ includes.
5642 * compile/compile-cplus-symbols.c: Fix common/ includes.
5643 * command.h: Fix common/ includes.
5644 * cli/cli-dump.c: Fix common/ includes.
5645 * cli/cli-cmds.c: Fix common/ includes.
5646 * charset.c: Fix common/ includes.
5647 * build-id.c: Fix common/ includes.
5648 * btrace.h: Fix common/ includes.
5649 * btrace.c: Fix common/ includes.
5650 * breakpoint.h: Fix common/ includes.
5651 * breakpoint.c: Fix common/ includes.
5653 (enum agent_op): Fix common/ includes.
5654 * ax-general.c (struct aop_map): Fix common/ includes.
5655 * ax-gdb.c: Fix common/ includes.
5656 * auxv.c: Fix common/ includes.
5657 * auto-load.c: Fix common/ includes.
5658 * arm-tdep.c: Fix common/ includes.
5659 * arch/riscv.c: Fix common/ includes.
5660 * arch/ppc-linux-common.c: Fix common/ includes.
5661 * arch/i386.c: Fix common/ includes.
5662 * arch/arm.c: Fix common/ includes.
5663 * arch/arm-linux.c: Fix common/ includes.
5664 * arch/arm-get-next-pcs.c: Fix common/ includes.
5665 * arch/amd64.c: Fix common/ includes.
5666 * arch/aarch64.c: Fix common/ includes.
5667 * arch/aarch64-insn.c: Fix common/ includes.
5668 * arch-utils.c: Fix common/ includes.
5669 * amd64-windows-tdep.c: Fix common/ includes.
5670 * amd64-tdep.c: Fix common/ includes.
5671 * amd64-sol2-tdep.c: Fix common/ includes.
5672 * amd64-obsd-tdep.c: Fix common/ includes.
5673 * amd64-nbsd-tdep.c: Fix common/ includes.
5674 * amd64-linux-tdep.c: Fix common/ includes.
5675 * amd64-linux-nat.c: Fix common/ includes.
5676 * amd64-fbsd-tdep.c: Fix common/ includes.
5677 * amd64-fbsd-nat.c: Fix common/ includes.
5678 * amd64-dicos-tdep.c: Fix common/ includes.
5679 * amd64-darwin-tdep.c: Fix common/ includes.
5680 * agent.c: Fix common/ includes.
5681 * ada-lang.h: Fix common/ includes.
5682 * ada-lang.c: Fix common/ includes.
5683 * aarch64-tdep.c: Fix common/ includes.
5685 2019-01-25 Tom Tromey <tom@tromey.com>
5687 * common/create-version.sh: Use common/version.h.
5689 2019-01-24 Pedro Alves <palves@redhat.com>
5691 * infrun.c (signal_stop, signal_print, signal_program)
5692 (signal_catch, signal_pass): Now arrays instead of pointers.
5693 (update_signals_program_target, do_target_resume)
5694 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
5695 * linux-nat.c (linux_nat_target::pass_signals)
5696 (linux_nat_target::create_inferior, linux_nat_target::attach):
5698 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
5699 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
5700 * procfs.c (procfs_target::pass_signals): Adjust.
5701 * record-full.c (record_full_target::resume): Adjust.
5702 * remote.c (remote_target::pass_signals)
5703 (remote_target::program_signals): Adjust.
5704 * target-debug.h (target_debug_print_signals): Now takes a
5705 gdb::array_view as parameter. Adjust.
5706 * target.h (target_ops) <pass_signals, program_signals>: Replace
5707 pointer and length parameters with gdb::array_view.
5708 (target_pass_signals, target_program_signals): Likewise.
5709 * target-delegates.c: Regenerate.
5711 2019-01-24 Pedro Alves <palves@redhat.com>
5713 * common/forward-scope-exit.h
5714 (forward_scope_exit::forward_scope_exit): Pass arguments to
5715 m_bind_function directly, instead of creating a std::bind and
5718 2019-01-24 Alan Hayward <alan.hayward@arm.com>
5720 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5722 (pass_in_v_vfp_candidate): Likewise.
5724 2019-01-23 Tom Tromey <tom@tromey.com>
5725 Pedro Alves <palves@redhat.com>
5727 * regcache.c (class regcache_invalidator): Remove.
5728 (regcache::raw_write): Use make_scope_exit.
5730 2019-01-23 Tom Tromey <tom@tromey.com>
5732 * ui-out.h (class ui_out_emit_type): Update comment.
5734 2019-01-23 Tom Tromey <tom@tromey.com>
5736 * infrun.c (fetch_inferior_event): Update comment.
5738 2019-01-23 Tom Tromey <tom@tromey.com>
5739 Pedro Alves <palves@redhat.com>
5741 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
5743 (fetch_inferior_event): Use SCOPE_EXIT.
5746 2019-01-23 Tom Tromey <tom@tromey.com>
5747 Pedro Alves <palves@redhat.com>
5749 * infrun.c (disable_thread_events): Delete.
5750 (stop_all_threads): Use SCOPE_EXIT.
5752 2019-01-23 Tom Tromey <tom@tromey.com>
5753 Pedro Alves <palves@redhat.com>
5755 * symfile.c: Include forward-scope-exit.h.
5756 (clear_symtab_users_cleanup): Replace forward declaration with
5757 a FORWARD_SCOPE_EXIT.
5758 (syms_from_objfile_1): Use the forward_scope_exit and
5759 gdb::optional instead of cleanup_function.
5760 (reread_symbols): Use the forward_scope_exit instead of
5762 (clear_symtab_users_cleanup): Remove function.
5764 2019-01-23 Tom Tromey <tom@tromey.com>
5765 Pedro Alves <palves@redhat.com>
5767 * linux-nat.c: Include scope-exit.h.
5768 (cleanup_target_stop): Remove.
5769 (linux_nat_target::static_tracepoint_markers_by_strid): Use
5772 2019-01-23 Tom Tromey <tom@tromey.com>
5773 Pedro Alves <palves@redhat.com>
5775 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
5776 (call_function_by_hand_dummy): Use SCOPE_EXIT.
5778 2019-01-23 Tom Tromey <tom@tromey.com>
5779 Andrew Burgess <andrew.burgess@embecosm.com>
5780 Pedro Alves <palves@redhat.com>
5782 * infrun.c (fetch_inferior_event): Use scope_exit.
5783 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
5784 * top.c (execute_command): Use scope_exit.
5785 * breakpoint.c (bpstat_do_actions): Use scope_exit.
5786 * utils.c (do_bpstat_clear_actions_cleanup)
5787 (make_bpstat_clear_actions_cleanup): Remove.
5789 2019-01-23 Tom Tromey <tom@tromey.com>
5790 Pedro Alves <palves@redhat.com>
5792 * infrun.c: Include "common/scope-exit.h"
5793 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
5794 (wait_for_inferior): Use SCOPE_EXIT.
5795 (fetch_inferior_event): Use scope_exit.
5797 2019-01-23 Tom Tromey <tom@tromey.com>
5798 Pedro Alves <palves@redhat.com>
5800 * breakpoint.c (create_breakpoint): Remove cleanup.
5802 2019-01-23 Tom Tromey <tom@tromey.com>
5803 Andrew Burgess <andrew.burgess@embecosm.com>
5804 Pedro Alves <palves@redhat.com>
5806 2019-01-23 Pedro Alves <palves@redhat.com>
5808 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
5810 2019-01-23 Pedro Alves <palves@redhat.com>
5811 Andrew Burgess <andrew.burgess@embecosm.com>
5813 * gdbthread.h: Include "common/forward-scope-exit.h".
5814 (scoped_finish_thread_state): Redefine custom class in terms of
5817 2019-01-23 Pedro Alves <palves@redhat.com>
5818 Andrew Burgess <andrew.burgess@embecosm.com>
5820 * common/forward-scope-exit.h: New file.
5822 2019-01-23 Pedro Alves <palves@redhat.com>
5823 Andrew Burgess <andrew.burgess@embecosm.com>
5824 Tom Tromey <tom@tromey.com>
5826 * common/scope-exit.h: New file.
5828 2019-01-23 Pedro Alves <palves@redhat.com>
5830 * common/preprocessor.h (ESC): Rename to ...
5831 (ESC_PARENS): ... this.
5832 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
5833 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
5835 2019-01-23 Tom Tromey <tom@tromey.com>
5837 * language.h (class scoped_switch_to_sym_language_if_auto):
5838 Initialize m_lang in both cases.
5840 2019-01-23 Alan Hayward <alan.hayward@arm.com>
5842 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
5845 2019-01-22 Tom Tromey <tom@tromey.com>
5847 * corelow.c: Do not include sys/file.h.
5849 2019-01-22 Tom Tromey <tom@tromey.com>
5851 * tui/tui-wingeneral.h: Include gdb_curses.h.
5853 2019-01-22 Tom Tromey <tom@tromey.com>
5855 * source-cache.h (class source_cache) <get_source_lines,
5856 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
5858 2019-01-22 Tom Tromey <tom@tromey.com>
5860 * remote-fileio.h (struct remote_target): Declare.
5862 2019-01-22 Tom Tromey <tom@tromey.com>
5864 * python/py-arch.c: Do not include py-ref.h.
5865 * python/py-bpevent.c: Do not include py-ref.h.
5866 * python/py-cmd.c: Do not include py-ref.h.
5867 * python/py-continueevent.c: Do not include py-ref.h.
5868 * python/py-event.h: Do not include py-ref.h.
5869 * python/py-evtregistry.c: Do not include py-ref.h.
5870 * python/py-finishbreakpoint.c: Do not include py-ref.h.
5871 * python/py-frame.c: Do not include py-ref.h.
5872 * python/py-framefilter.c: Do not include py-ref.h.
5873 * python/py-function.c: Do not include py-ref.h.
5874 * python/py-infevents.c: Do not include py-ref.h.
5875 * python/py-linetable.c: Do not include py-ref.h.
5876 * python/py-objfile.c: Do not include py-ref.h.
5877 * python/py-param.c: Do not include py-ref.h.
5878 * python/py-prettyprint.c: Do not include py-ref.h.
5879 * python/py-progspace.c: Do not include py-ref.h.
5880 * python/py-symbol.c: Do not include py-ref.h.
5881 * python/py-symtab.c: Do not include py-ref.h.
5882 * python/py-type.c: Do not include py-ref.h.
5883 * python/py-unwind.c: Do not include py-ref.h.
5884 * python/py-utils.c: Do not include py-ref.h.
5885 * python/py-value.c: Do not include py-ref.h.
5886 * python/py-varobj.c: Do not include py-ref.h.
5887 * python/py-xmethods.c: Do not include py-ref.h.
5888 * python/python.c: Do not include py-ref.h.
5889 * varobj.c: Do not include py-ref.h.
5891 2019-01-22 Tom Tromey <tom@tromey.com>
5893 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
5896 2019-01-22 Tom Tromey <tom@tromey.com>
5898 * compile/compile-cplus-types.c: Remove a comment by #include.
5900 2019-01-22 Tom Tromey <tom@tromey.com>
5902 * compile/gcc-c-plugin.h: Include compile-internal.h.
5904 2019-01-22 Tom Tromey <tom@tromey.com>
5906 * stabsread.c (EXTERN): Do not define.
5907 (symnum, next_symbol_text_func, processing_gcc_compilation)
5908 (within_function, global_sym_chain, global_stabs)
5909 (previous_stab_code, this_object_header_files)
5910 (n_this_object_header_files)
5911 (n_allocated_this_object_header_files): Define.
5912 * stabsread.h (EXTERN): Never define. Use "extern".
5914 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5916 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
5919 2019-01-21 Tom Tromey <tom@tromey.com>
5921 * ui-out.c: Fix includes.
5922 * tui/tui-source.c: Fix includes.
5923 * target.c: Fix includes.
5924 * remote.c: Fix includes.
5925 * regcache.c: Fix includes.
5926 * python/py-block.c: Fix includes.
5927 * printcmd.c: Fix includes.
5928 * or1k-tdep.c: Fix includes.
5929 * mi/mi-main.c: Fix includes.
5930 * m32r-tdep.c: Fix includes.
5931 * csky-tdep.c: Fix includes.
5932 * compile/compile-cplus-types.c: Fix includes.
5933 * cli/cli-interp.c: Fix includes.
5935 2019-01-21 Alan Hayward <alan.hayward@arm.com>
5937 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5940 2019-01-16 Tom Tromey <tom@tromey.com>
5942 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
5944 (struct objfile) <msymbols_range>: Move from top level.
5945 <msymbols>: New method.
5946 (class objfile_msymbols): Remove.
5947 * symtab.c (default_collect_symbol_completion_matches_break_on):
5949 * symmisc.c (dump_msymbols): Update.
5950 * stabsread.c (scan_file_globals): Update.
5951 * objc-lang.c (info_selectors_command, info_classes_command)
5952 (find_methods): Update.
5953 * minsyms.c (find_solib_trampoline_target): Update.
5954 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
5955 * coffread.c (coff_symfile_read): Update.
5956 * ada-lang.c (ada_lookup_simple_minsym)
5957 (ada_collect_symbol_completion_matches): Update.
5959 2019-01-16 Tom Tromey <tom@tromey.com>
5961 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
5962 type. Remove no-argument constructor.
5963 <iterator::operator++>: Simplify.
5965 <end>: Use minimal_symbol_count.
5967 2019-01-16 Tom Tromey <tom@tromey.com>
5969 * objfiles.h (struct objfile) <psymtabs>: New method.
5970 (class objfile_psymtabs): Remove.
5971 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
5973 <range>: New method.
5974 (require_partial_symbols): Change return type.
5975 * psymtab.c (require_partial_symbols)
5976 (psym_expand_symtabs_matching): Update.
5977 * mdebugread.c (parse_partial_symbols): Update.
5978 * dbxread.c (dbx_end_psymtab): Update.
5980 2019-01-15 Tom Tromey <tom@tromey.com>
5982 * symtab.c (lookup_objfile_from_block)
5983 (lookup_symbol_in_objfile_symtabs)
5984 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
5985 (find_line_symtab, info_sources_command)
5986 (default_collect_symbol_completion_matches_break_on)
5987 (make_source_files_completion_list): Update.
5988 * symmisc.c (print_objfile_statistics, dump_objfile)
5989 (maintenance_print_symbols, maintenance_info_symtabs)
5990 (maintenance_check_symtabs, maintenance_info_line_tables):
5992 * source.c (select_source_symtab)
5993 (forget_cached_source_info_for_objfile): Update.
5994 * objfiles.h (class objfile_compunits): Remove.
5995 (struct objfile) <compunits_range>: New typedef.
5996 (compunits): New method.
5997 * objfiles.c (objfile_relocate1): Update.
5998 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
5999 * maint.c (count_symtabs_and_blocks): Update.
6000 * linespec.c (iterate_over_all_matching_symtabs): Update.
6001 * cp-support.c (add_symbol_overload_list_qualified): Update.
6002 * coffread.c (coff_symtab_read): Update.
6003 * ada-lang.c (add_nonlocal_symbols)
6004 (ada_collect_symbol_completion_matches)
6005 (ada_add_global_exceptions): Update.
6007 2019-01-15 Tom Tromey <tom@tromey.com>
6009 * progspace.h (program_space) <objfiles_safe_range>: New
6011 <objfiles_safe>: New method.
6012 * objfiles.h (class all_objfiles_safe): Remove.
6013 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
6014 * jit.c (jit_inferior_exit_hook): Update.
6016 2019-01-17 Tom Tromey <tom@tromey.com>
6018 * progspace.h (program_space) <objfiles_range>: New typedef.
6019 <objfiles>: New method.
6020 <objfiles_head>: Rename from objfiles.
6021 (object_files): Update.
6022 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
6023 * guile/scm-pretty-print.c
6024 (ppscm_find_pretty_printer_from_objfiles): Update.
6025 * guile/scm-objfile.c (gdbscm_objfiles): Update.
6026 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
6028 * python/py-progspace.c (pspy_get_objfiles): Update.
6029 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6031 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6032 (objfpy_lookup_objfile_by_build_id): Update.
6033 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6034 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6036 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6037 (expand_symtab_containing_pc, lookup_objfile_from_block)
6038 (lookup_static_symbol, basic_lookup_transparent_type)
6039 (find_pc_sect_compunit_symtab, find_symbol_at_address)
6040 (find_line_symtab, info_sources_command)
6041 (default_collect_symbol_completion_matches_break_on)
6042 (make_source_files_completion_list, find_main_name): Update.
6043 * symmisc.c (print_symbol_bcache_statistics)
6044 (print_objfile_statistics, maintenance_print_symbols)
6045 (maintenance_print_msymbols, maintenance_print_objfiles)
6046 (maintenance_info_symtabs, maintenance_check_symtabs)
6047 (maintenance_expand_symtabs, maintenance_info_line_tables):
6049 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
6050 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
6051 (map_overlay_command, unmap_overlay_command)
6052 (simple_overlay_update, expand_symtabs_matching)
6053 (map_symbol_filenames): Update.
6054 * symfile-debug.c (set_debug_symfile): Update.
6055 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
6057 * source.c (select_source_symtab, forget_cached_source_info):
6059 * solib.c (solib_read_symbols): Update.
6060 * solib-spu.c (append_ocl_sos): Update.
6061 * psymtab.c (maintenance_print_psymbols)
6062 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
6063 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
6064 * printcmd.c (info_symbol_command): Update.
6065 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
6067 * objfiles.h (class all_objfiles): Remove.
6068 * objfiles.c (have_partial_symbols, have_full_symbols)
6069 (have_minimal_symbols, qsort_cmp, update_section_map)
6070 (shared_objfile_contains_address_p)
6071 (default_iterate_over_objfiles_in_search_order): Update.
6072 * objc-lang.c (info_selectors_command, info_classes_command)
6073 (find_methods): Update.
6074 * minsyms.c (find_solib_trampoline_target): Update.
6075 * maint.c (maintenance_info_sections)
6076 (maintenance_translate_address, count_symtabs_and_blocks):
6078 * main.c (captured_main_1): Update.
6079 * linux-thread-db.c (try_thread_db_load_from_pdir)
6080 (has_libpthread): Update.
6081 * linespec.c (iterate_over_all_matching_symtabs)
6082 (search_minsyms_for_name): Update.
6083 * jit.c (jit_find_objf_with_entry_addr): Update.
6084 * hppa-tdep.c (find_unwind_entry)
6085 (hppa_lookup_stub_minimal_symbol): Update.
6086 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
6088 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6089 (elf_gnu_ifunc_resolve_by_got): Update.
6090 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
6091 * dwarf-index-write.c (save_gdb_index_command): Update.
6092 * cp-support.c (add_symbol_overload_list_qualified): Update.
6093 * breakpoint.c (create_overlay_event_breakpoint)
6094 (create_longjmp_master_breakpoint)
6095 (create_std_terminate_master_breakpoint)
6096 (create_exception_master_breakpoint): Update.
6097 * blockframe.c (find_pc_partial_function): Update.
6098 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
6099 (ada_collect_symbol_completion_matches)
6100 (ada_add_global_exceptions): Update.
6102 2019-01-17 Tom Tromey <tom@tromey.com>
6104 * solib-target.c (lm_info_target_p): Remove typedef. Don't
6106 (solib_target_parse_libraries): Change return type.
6107 (library_list_start_segment, library_list_start_section)
6108 (library_list_end_library, library_list_start_library); Update.
6109 (solib_target_free_library_list): Remove.
6110 (solib_target_parse_libraries): Remove cleanup. Change return
6112 (solib_target_current_sos): Update.
6114 2019-01-17 Tom Tromey <tromey@bapiya>
6116 * valprint.c: Replace "the the" with "the".
6117 * symtab.c: Replace "the the" with "the".
6118 * solib.c: Replace "the the" with "the".
6119 * solib-dsbt.c: Replace "the the" with "the".
6120 * linespec.c: Replace "the the" with "the".
6121 * dwarf2loc.h: Replace "the the" with "the".
6122 * amd64-windows-tdep.c: Replace "the the" with "the".
6123 * aarch64-tdep.c: Replace "the the" with "the".
6125 2019-01-16 Keith Seitz <keiths@redhat.com>
6128 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
6129 <builder>: Rename to ..
6130 <m_builder>: ... this and make private.
6131 (dwarf2_cu::get_builder): New method. Change all users of
6132 `builder' to use this method.
6133 (dwarf2_start_symtab): Move to ...
6134 (dwarf2_cu::start_symtab): ... here. Update all callers
6135 (setup_type_unit_groups): Move to ...
6136 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
6138 (dwarf2_cu::reset_builder): New method.
6139 (process_full_compunit, process_full_type_unit): Use
6140 dwarf2_cu::reset_builder.
6141 (follow_die_offset): Record the ancestor CU if it is different
6142 from the followed DIE's CU.
6143 (follow_die_sig_1): Likewise.
6145 2019-01-15 Tom Tromey <tom@tromey.com>
6147 * remote.c (class remote_state) <buf>: Now a char_vector.
6149 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
6151 (remote_target::getpkt_or_notif_sane_1)
6152 (remote_target::getpkt_sane)
6153 (remote_target::getpkt_or_notif_sane): Likewise.
6154 (class remote_target) <putpkt>: New overload.
6155 (remote_target::read_frame): Change type of "buf_p". Remove
6157 (packet_ok): New overload.
6158 (packet_check_result): New overload.
6161 2019-01-14 Tom Tromey <tom@tromey.com>
6163 * remote-notif.c (handle_notification, remote_notif_ack)
6164 (remote_notif_parse): Make "buf" const.
6165 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
6167 (remote_notif_parse, remote_notif_ack, handle_notification):
6169 * remote.c (remote_notif_stop_parse): Make "buf" const.
6170 (remote_target::remote_parse_stop_reply): Make "buf" const.
6171 (remote_notif_stop_ack): Make "buf" const.
6173 2019-01-14 Tom Tromey <tom@tromey.com>
6175 * remote.c (remote_console_output): Make parameter const.
6177 2019-01-14 Tom Tromey <tom@tromey.com>
6179 * target-debug.h (target_debug_print_signals): Constify.
6180 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
6181 * procfs.c (procfs_target::pass_signals): Update.
6182 * linux-nat.c (linux_nat_target::pass_signals): Update.
6183 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
6184 * target-delegates.c: Rebuild.
6185 * remote.c (remote_target::program_signals): Update.
6186 (remote_target::pass_signals): Update.
6187 * target.c (target_pass_signals): Constify argument.
6188 (target_program_signals): Likewise.
6189 * target.h (struct target_ops) <pass_signals, program_signals>:
6191 (target_pass_signals, target_program_signals): Constify argument.
6193 2019-01-14 Tom Tromey <tom@tromey.com>
6196 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
6198 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6200 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
6202 * rs6000-tdep.c: Include reggroups.h.
6203 (IS_V_ALIAS_PSEUDOREG): Define.
6204 (rs6000_register_name): Return names for the "vX" aliases.
6205 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
6206 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
6207 aliases. Call default_register_reggroup_p for all other
6209 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
6211 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
6212 Handle "vX" aliases.
6213 (v_alias_pseudo_register_collect): New function.
6214 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
6215 (rs6000_gdbarch_init): Initialize "vX" aliases as
6216 pseudo-registers. Restore registration of
6217 rs6000_pseudo_register_reggroup_p with
6218 set_tdesc_pseudo_register_reggroup_p.
6220 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
6222 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
6223 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
6224 set_gdbarch_num_pseudo_regs.
6226 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6228 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
6229 Remove arg prefixname, add do_set and do_show.
6230 Add member functions set_list and show_list.
6231 * cli/cli-style.c (class cli_style_option): Update accordingly.
6232 (style_set_list): Move to file scope.
6233 (style_show_list): Likewise.
6234 (set_style): Call help_list.
6235 (show_style): Call cmd_show_list.
6236 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
6237 Update to use the new macro.
6239 2019-10-12 Joel Brobecker <brobecker@adacore.com>
6241 * ada-lang.c (_initialize_ada_language): Expand the help text
6242 for the "catch exception" command.
6244 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6246 * symtab.c (matching_obj_sections): Initialize obj,
6247 declare it closer to its usage.
6249 2019-01-10 Tom Tromey <tom@tromey.com>
6251 * thread-iter.h (inf_threads_iterator): Use next_iterator.
6252 (basic_inf_threads_range): Remove.
6253 (inf_threads_range, inf_non_exited_threads_range)
6254 (safe_inf_threads_range): Use next_adapter.
6256 2019-01-10 Keith Seitz <keiths@redhat.com>
6260 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
6261 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
6263 2019-01-10 Keith Seitz <keiths@redhat.com>
6267 * dictionary.c (pending_to_vector): Remove.
6268 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6269 Remove _1 suffix, replacing functions of the same name. Update
6271 (dict_create_hashed, dict_create_hashed_expandable)
6272 (dict_create_linear, dict_create_linear_expandable, dict_free)
6273 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
6274 Make functions static.
6276 2019-01-10 Keith Seitz <keiths@redhat.com>
6280 * dictionary.h (struct dictionary): Replace declaration with
6282 (dict_create_hashed, dict_create_hashed_expandable)
6283 (dict_create_linear, dict_create_linear_expandable)
6284 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
6285 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
6286 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
6287 taking multidictionary argument.
6288 [ALL_DICT_SYMBOLS]: Update for multidictionary.
6289 * block.h (struct block) <dict>: Change to multidictionary
6290 and rename `multidict'.
6291 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
6292 symmisc.c: Update all dictionary references to multidictionary.
6294 2019-01-10 Keith Seitz <keiths@redhat.com>
6298 * dictionary.c: Include unordered_map.
6299 (pending_to_vector): New function.
6300 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6301 Rewrite the non-"_1" functions to take vector instead
6303 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
6304 "new" _1 versions of the same name.
6305 (multidictionary): Define.
6306 (std::hash<enum language): New definition.
6307 (collate_pending_symbols_by_language, mdict_create_hashed)
6308 (mdict_create_hashed_expandable, mdict_create_linear)
6309 (mdict_create_linear_expandable, mdict_free)
6310 (find_language_dictionary, create_new_language_dictionary)
6311 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
6312 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
6313 (mdict_size, mdict_empty): New functions.
6314 * dictionary.h (mdict_iterator): Define.
6316 2019-01-10 Pedro Alves <palves@redhat.com>
6318 * breakpoint.c (read_uploaded_action)
6319 (create_tracepoint_from_upload): Adjust to use
6320 gdb::unique_xmalloc_ptr.
6321 * ctf.c (ctf_write_uploaded_tp):
6322 (SET_ARRAY_FIELD): Use emplace_back.
6323 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
6324 * tracefile-tfile.c (tfile_write_uploaded_tp):
6325 * tracepoint.c (parse_tracepoint_definition): Adjust to use
6326 gdb::unique_xmalloc_ptr.
6327 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
6328 at_string, cond_string, cmd_strings>: Replace char pointers
6329 with gdb::unique_xmalloc_ptr.
6331 2019-01-10 Pedro Alves <palves@redhat.com>
6333 * solib-target.c (library_list_start_library): Don't xstrdup name.
6335 2019-01-10 Pedro Alves <palves@redhat.com>
6337 * mdebugread.c (parse_partial_symbols): Use
6338 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
6340 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6342 * linux-fork.c (scoped_switch_fork_info)
6343 <~scoped_switch_fork_info>: Fix incorrect variable name.
6345 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6347 * linux-fork.c (scoped_switch_fork_info)
6348 <scoped_switch_fork_info>: Make explicit.
6349 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
6351 2019-01-10 Tom Tromey <tom@tromey.com>
6353 * objfiles.h (objfile::reset_psymtabs): Update.
6354 * objfiles.c (objfile::objfile): Update.
6355 * psymtab.h (psymtab_storage::obstack): Update.
6356 (psymtab_storage::m_obstack): Use gdb::optional.
6357 (class psymtab_storage): Update comment. Remove objfile
6359 * psymtab.c (psymtab_storage::psymtab_storage): Update.
6361 2019-01-10 Tom Tromey <tom@tromey.com>
6363 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
6364 <free_psymtabs>: Now private.
6365 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
6366 (allocate_psymtab): Use new method.
6368 2019-01-10 Tom Tromey <tom@tromey.com>
6370 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
6371 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
6372 * mdebugread.c (parse_partial_symbols): Use
6373 allocate_dependencies.
6374 * dwarf2read.c (dwarf2_create_include_psymtab): Use
6375 allocate_dependencies.
6376 (process_psymtab_comp_unit_reader)
6377 (build_type_psymtab_dependencies): Likewise.
6378 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
6380 2019-01-10 Tom Tromey <tom@tromey.com>
6382 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
6383 PSYMBOL_SET_LANGUAGE.
6384 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
6386 2019-01-10 Tom Tromey <tom@tromey.com>
6388 * psymtab.h (psymtab_storage::obstack): New method.
6389 <m_obstack>: Rename from obstack; now private.
6390 * psymtab.c (psymtab_storage): Update.
6391 * dwarf2read.c (create_addrmap_from_index)
6392 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
6395 2019-01-10 Tom Tromey <tom@tromey.com>
6397 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
6398 * objfiles.h (objfile::reset_psymtabs): New method.
6400 2019-01-10 Tom Tromey <tom@tromey.com>
6402 * symmisc.c (print_symbol_bcache_statistics): Update.
6403 (print_objfile_statistics): Update.
6404 * symfile.c (reread_symbols): Update.
6405 * psymtab.h (class psymtab_storage): New.
6406 * psymtab.c (psymtab_storage): New constructor.
6407 (~psymtab_storage): New destructor.
6408 (require_partial_symbols): Update.
6409 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
6410 (find_pc_sect_psymtab, find_pc_sect_psymbol)
6411 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
6412 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
6413 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
6414 (start_psymtab_common, end_psymtab_common)
6415 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
6416 (allocate_psymtab): Update.
6417 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
6419 (dump_psymtab_addrmap, maintenance_print_psymbols)
6420 (maintenance_check_psymtabs): Update.
6421 (class objfile_psymtabs): Move to objfiles.h.
6422 * psympriv.h (discard_psymtab): Now inline.
6423 (psymtab_discarder::psymtab_discarder): Update.
6424 (psymtab_discarder::~psymtab_discarder): Update.
6425 (ALL_OBJFILE_PSYMTABS): Rewrite.
6426 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
6427 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
6429 <partial_symtabs>: New field.
6430 (class objfile_psymtabs): Move from psymtab.h. Update.
6431 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
6433 (objfile::~objfile): Don't destroy psymbol_cache.
6434 * mdebugread.c (parse_partial_symbols): Update.
6435 * dwarf2read.c (create_addrmap_from_index)
6436 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6437 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
6438 (add_partial_subprogram, dwarf2_ranges_read): Update.
6439 * dwarf-index-write.c (write_address_map)
6440 (write_one_signatured_type, recursively_write_psymbols)
6441 (class debug_names, class debug_names, write_psymtabs_to_index):
6444 2019-01-10 Tom Tromey <tom@tromey.com>
6446 * symtab.h (SYMBOL_SET_NAMES): Update.
6447 (symbol_set_names): Update.
6448 (MSYMBOL_SET_NAMES): Update.
6449 * symtab.c (symbol_set_names): Change argument to be an
6450 objfile_per_bfd_storage.
6451 * psymtab.c (add_psymbol_to_bcache): Update.
6452 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
6454 2019-01-10 Tom Tromey <tom@tromey.com>
6456 * symtab.c (create_demangled_names_hash): Change argument to be an
6457 objfile_per_bfd_storage.
6458 (symbol_set_names): Update.
6460 2019-01-10 Tom Tromey <tom@tromey.com>
6462 * xcoffread.c (xcoff_initial_scan): Unconditionally call
6464 * psymtab.c (init_psymbol_list): Do nothing if already called.
6465 * psympriv.h (init_psymbol_list): Add comment.
6466 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
6468 * dbxread.c (dbx_symfile_read): Unconditionally call
6471 2019-01-10 Tom Tromey <tom@tromey.com>
6473 * xcoffread.c (scan_xcoff_symtab): Update.
6474 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
6476 * mdebugread.c (parse_partial_symbols)
6477 (handle_psymbol_enumerators): Update.
6478 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
6479 * dbxread.c (read_dbx_symtab): Update.
6480 * psympriv.h (psymbol_placement): New enum.
6481 (add_psymbol_to_list): Update.
6483 2019-01-10 Tom Tromey <tom@tromey.com>
6485 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
6486 static_psymbols parameters.
6487 (scan_xcoff_symtab): Update.
6488 * psymtab.c (start_psymtab_common): Remove global_psymbols and
6489 static_psymbols parameters.
6490 * psympriv.h (start_psymtab_common): Update.
6491 * mdebugread.c (parse_partial_symbols): Update.
6492 * dwarf2read.c (create_partial_symtab): Update.
6493 * dbxread.c (read_dbx_symtab): Update.
6494 (start_psymtab): Remove global_psymbols and static_psymbols
6497 2019-01-10 Tom Tromey <tom@tromey.com>
6499 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
6500 * psymtab.c (allocate_psymtab): Add comment.
6501 * psympriv.h (allocate_psymtab): Add comment.
6502 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
6504 * dbxread.c (dbx_end_psymtab): Remove some initializations.
6506 2019-01-10 Tom Tromey <tom@tromey.com>
6508 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6510 * mipsread.c: Include mdebugread.h.
6511 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6513 * elfread.c: Include mdebugread.h.
6515 2019-01-09 Tom Tromey <tom@tromey.com>
6517 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
6518 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
6519 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
6520 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
6521 (psym_lookup_symbol, psym_find_last_source_symtab)
6522 (psym_forget_cached_source_info, psym_print_stats)
6523 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
6524 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
6525 (psym_map_matching_symbols, psym_expand_symtabs_matching)
6526 (psym_find_compunit_symtab_by_address)
6527 (maintenance_print_psymbols, maintenance_info_psymtabs)
6528 (maintenance_check_psymtabs): Use ranged for.
6529 * psymtab.h (class objfile_psymtabs): New.
6530 (require_partial_symbols): Return objfile_psymtabs.
6531 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
6533 2019-01-09 Tom Tromey <tom@tromey.com>
6535 * symfile.c (overlay_invalidate_all, find_pc_overlay)
6536 (find_pc_mapped_section, list_overlays_command)
6537 (map_overlay_command, unmap_overlay_command)
6538 (simple_overlay_update): Use all_objfiles.
6539 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
6540 * printcmd.c (info_symbol_command): Use all_objfiles.
6541 * objfiles.h (ALL_OBJSECTIONS): Remove.
6542 * maint.c (maintenance_translate_address): Use all_objfiles.
6543 * gcore.c (gcore_create_callback): Use all_objfiles.
6544 (objfile_find_memory_regions): Likewise.
6546 2019-01-09 Tom Tromey <tom@tromey.com>
6548 * symtab.c (find_line_symtab, info_sources_command)
6549 (make_source_files_completion_list): Use objfile_compunits.
6550 * source.c (select_source_symtab): Use objfile_compunits.
6551 * objfiles.h (struct objfile): Update comment.
6552 (ALL_OBJFILES): Remove.
6553 (ALL_FILETABS): Remove.
6554 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
6557 2019-01-09 Tom Tromey <tom@tromey.com>
6559 * symmisc.c (print_objfile_statistics, dump_objfile)
6560 (maintenance_print_symbols): Use compunit_filetabs.
6561 * source.c (forget_cached_source_info_for_objfile): Use
6563 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
6564 (ALL_FILETABS): Use compunit_filetabs.
6565 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
6566 * coffread.c (coff_symtab_read): Use compunit_filetabs.
6568 2019-01-09 Tom Tromey <tom@tromey.com>
6570 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
6571 (compunit_filetabs): New.
6572 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
6574 (info_sources_command, make_source_files_completion_list): Remove
6576 * symmisc.c (print_objfile_statistics, dump_objfile)
6577 (maintenance_print_symbols): Remove declaration.
6578 (maintenance_info_symtabs): Use compunit_filetabs.
6579 (maintenance_info_line_tables): Likewise.
6580 * source.c (select_source_symtab): Change local variable name.
6581 (forget_cached_source_info_for_objfile): Remove declaration.
6582 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
6583 * objfiles.c (objfile_relocate1): Remove declaration.
6584 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6586 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
6587 * coffread.c (coff_symtab_read): Remove declaration.
6588 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6591 2019-01-09 Tom Tromey <tom@tromey.com>
6593 * symtab.c (lookup_objfile_from_block)
6594 (find_pc_sect_compunit_symtab, search_symbols)
6595 (default_collect_symbol_completion_matches_break_on): Use
6597 * objfiles.h (ALL_COMPUNITS): Remove.
6598 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
6599 * cp-support.c (add_symbol_overload_list_qualified): Use
6601 * ada-lang.c (ada_collect_symbol_completion_matches)
6602 (ada_add_global_exceptions): Use objfile_compunits.
6604 2019-01-09 Tom Tromey <tom@tromey.com>
6606 * source.c (select_source_symtab)
6607 (forget_cached_source_info_for_objfile): Remove declaration.
6608 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6610 * maint.c (count_symtabs_and_blocks): Remove declaration.
6611 * cp-support.c (add_symbol_overload_list_qualified): Remove
6613 * coffread.c (coff_symtab_read): Remove declaration.
6614 * symtab.c (lookup_symbol_in_objfile_symtabs)
6615 (basic_lookup_transparent_type_1): Use objfile_compunits.
6616 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
6617 (info_sources_command, search_symbols)
6618 (default_collect_symbol_completion_matches_break_on)
6619 (make_source_files_completion_list): Remove declaration.
6620 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
6621 (ada_collect_symbol_completion_matches)
6622 (ada_add_global_exceptions): Remove declaration.
6623 * linespec.c (iterate_over_all_matching_symtabs): Use
6625 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
6626 (class objfile_compunits): New.
6627 (ALL_COMPUNITS): Use objfile_compunits.
6628 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
6629 (maintenance_check_symtabs, maintenance_info_line_tables): Use
6631 * objfiles.c (objfile_relocate1): Use objfile_compunits.
6633 2019-01-09 Tom Tromey <tom@tromey.com>
6635 * symtab.c (search_symbols)
6636 (default_collect_symbol_completion_matches_break_on): Use
6638 * ada-lang.c (ada_lookup_simple_minsym)
6639 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
6640 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
6641 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
6643 * coffread.c (coff_symfile_read): Use objfile_msymbols.
6644 * symmisc.c (dump_msymbols): Use objfile_msymbols.
6645 * objc-lang.c (find_methods): Use objfile_msymbols.
6646 (info_selectors_command, info_classes_command): Likewise.
6647 * stabsread.c (scan_file_globals): Use objfile_msymbols.
6648 * objfiles.h (class objfile_msymbols): New.
6649 (ALL_OBJFILE_MSYMBOLS): Remove.
6650 (ALL_MSYMBOLS): Remove.
6652 2019-01-09 Tom Tromey <tom@tromey.com>
6654 * common/next-iterator.h (next_adapter): Add Iterator template
6656 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
6657 (class all_objfiles_safe): New.
6658 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
6659 * objfiles.c (put_objfile_before): Update comment.
6660 (add_separate_debug_objfile): Likewise.
6661 (free_all_objfiles): Use all_objfiles_safe.
6662 (objfile_purge_solibs): Likewise.
6664 2019-01-09 Tom Tromey <tom@tromey.com>
6666 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6667 (expand_symtab_containing_pc, lookup_static_symbol)
6668 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
6669 (find_symbol_at_address, find_line_symtab, find_main_name): Use
6671 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
6672 * breakpoint.c (create_overlay_event_breakpoint)
6673 (create_longjmp_master_breakpoint)
6674 (create_std_terminate_master_breakpoint)
6675 (create_exception_master_breakpoint): Use all_objfiles.
6676 * linux-thread-db.c (try_thread_db_load_from_pdir)
6677 (has_libpthread): Use all_objfiles.
6678 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
6679 * linespec.c (iterate_over_all_matching_symtabs)
6680 (search_minsyms_for_name): Use all_objfiles.
6681 * maint.c (maintenance_info_sections): Use all_objfiles.
6682 * main.c (captured_main_1): Use all_objfiles.
6683 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
6684 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
6685 * guile/scm-pretty-print.c
6686 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
6687 * solib-spu.c (append_ocl_sos): Use all_objfiles.
6688 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
6689 (maintenance_print_msymbols): Use all_objfiles.
6690 * source.c (select_source_symtab): Use all_objfiles.
6691 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
6692 * symfile.c (remove_symbol_file_command)
6693 (expand_symtabs_matching, map_symbol_filenames): Use
6695 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
6697 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
6698 * objc-lang.c (find_methods): Use all_objfiles.
6699 * objfiles.c (have_partial_symbols, have_full_symbols)
6700 (have_minimal_symbols, qsort_cmp)
6701 (default_iterate_over_objfiles_in_search_order): Use
6703 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
6704 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
6705 (maintenance_check_psymtabs): Use all_objfiles.
6706 (ALL_PSYMTABS): Remove.
6707 * compile/compile-object-run.c (do_module_cleanup): Use
6709 * blockframe.c (find_pc_partial_function): Use all_objfiles.
6710 * cp-support.c (add_symbol_overload_list_qualified): Use
6712 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6714 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
6715 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
6717 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6718 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
6719 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6721 * solib.c (solib_read_symbols): Use all_objfiles
6723 2019-01-09 Tom Tromey <tom@tromey.com>
6725 * probe.c (parse_probes_in_pspace): Use all_objfiles.
6726 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
6728 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
6729 * symmisc.c (print_symbol_bcache_statistics)
6730 (print_objfile_statistics, maintenance_print_objfiles)
6731 (maintenance_info_symtabs, maintenance_check_symtabs)
6732 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
6734 * source.c (forget_cached_source_info): Use all_objfiles.
6735 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
6736 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6737 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
6738 * objfiles.c (update_section_map): Use all_objfiles.
6739 (shared_objfile_contains_address_p): Likewise.
6740 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
6741 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
6743 2019-01-09 Tom Tromey <tom@tromey.com>
6745 * common/next-iterator.h: New file.
6746 * objfiles.h (class all_objfiles): New.
6747 (struct objfile_iterator): New.
6749 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6751 * NEWS: Move the description of the changed "frame", "select-frame",
6752 and "info frame" commands to the Changed commands section.
6754 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
6756 * gdbtypes.c (check_stub_method_group): Remove handling of old
6758 * linespec.c (find_methods): Likewise.
6759 * stabsread.c (read_member_functions): Likewise.
6760 * valops.c (search_struct_method): Likewise.
6761 (value_struct_elt_for_reference): Likewise.
6762 * NEWS: Mention this change.
6764 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6766 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
6768 * source.c (print_source_lines_base): Update line number check.
6769 (print_source_lines): New function.
6770 (source_lines_range::source_lines_range): New function.
6771 * source.h (class source_lines_range): New class.
6772 (print_source_lines): New declaration.
6774 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6776 * linespec.c (linespec_state_destructor): Free self->canonical_names.
6778 2019-01-08 Tom Tromey <tom@tromey.com>
6779 Simon Marchi <simon.marchi@ericsson.com>
6782 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
6783 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
6784 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6785 * f-exp.y (DOLLAR_VARIABLE): Likewise.
6786 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
6787 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6789 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6791 * source.c (select_source_symtab): Move header comment to
6792 declaration in source.h.
6793 (forget_cached_source_info_for_objfile): Likewise.
6794 (forget_cached_source_info): Likewise.
6795 (identify_source_line): Likewise.
6796 * source.h (identify_source_line): Move declaration from symtab.h
6797 and add comment from source.c
6798 (print_source_lines): Likewise.
6799 (forget_cached_source_info_for_objfile): Likewise.
6800 (forget_cached_source_info): Likewise.
6801 (select_source_symtab): Likewise.
6802 (enum print_source_lines_flag): Move definition from symtab.h.
6803 * symtab.h (identify_source_line): Move declaration to source.h.
6804 (print_source_lines): Likewise.
6805 (forget_cached_source_info_for_objfile): Likewise.
6806 (forget_cached_source_info): Likewise.
6807 (select_source_symtab): Likewise.
6808 (enum print_source_lines_flag): Move definition to source.h.
6809 * tui/tui-hooks.c: Add 'source.h' include.
6811 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6813 * source.c (print_source_lines_base): Handle requests to print
6814 reverse line number sequences, and guard against empty lines
6817 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6819 * source.c (print_source_lines_base): Fix skip of '\r' if next
6822 2019-01-06 Tom Tromey <tom@tromey.com>
6824 * c-exp.y (struct c_parse_state) <macro_original_text,
6825 expansion_obstack>: New member.
6826 (macro_original_text, expansion_obstack): Remove globals.
6827 (scan_macro_expansion, scanning_macro_expansion)
6828 (finished_macro_expansion): Update.
6829 (scan_macro_cleanup): Remove.
6830 (yylex, c_parse): Update.
6832 2019-01-06 Tom Tromey <tom@tromey.com>
6834 * c-exp.y (struct c_parse_state) <strings>: New member.
6835 (operator_stoken): Update.
6837 2019-01-06 Tom Tromey <tom@tromey.com>
6839 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
6840 (union type_stack_elt) <typelist_val>: Now a pointer to
6842 (type_stack_cleanup): Don't declare.
6843 (push_typelist): Update.
6844 * parse.c (pop_typelist): Return a std::vector.
6845 (push_typelist): Take a std::vector.
6846 (follow_types): Update. Do not free args.
6847 (type_stack_cleanup): Remove.
6848 * c-exp.y (struct c_parse_state): New.
6849 (cpstate): New global.
6850 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
6851 (nonempty_typelist): Update.
6852 (func_mod): Create a new vector.
6853 (c_parse): Create a c_parse_state.
6854 (check_parameter_typelist): Do not delete params.
6855 (function_method): Update. Do not delete type_list.
6857 2019-01-06 Tom Tromey <tom@tromey.com>
6860 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
6862 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
6863 (print_return_value): Likewise.
6865 2019-01-05 Tom Tromey <tom@tromey.com>
6867 * contrib/cleanup_check.py: Remove.
6868 * contrib/gcc-with-excheck: Remove.
6869 * contrib/exsummary.py: Remove.
6870 * contrib/excheck.py: Remove.
6872 2019-01-05 Joel Brobecker <brobecker@adacore.com>
6874 * thread.c (delete_thread_1): Add gdb_assert that THR is not
6875 NULL. Initialize tpprev to NULL instead of assigning it
6876 to NULL on the next statement.
6877 * windows-nat.c (windows_delete_thread): Remove check for
6878 main_thread_id before printing thread exit notifications.
6879 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
6880 Remove thread ID check against main_thread_id.
6881 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
6882 windows_delete_thread.
6883 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
6885 2019-01-04 Tom Tromey <tom@tromey.com>
6887 * compile/compile.c (_initialize_compile): Use upper case for
6888 metasyntactic variables.
6889 * symmisc.c (_initialize_symmisc): Use upper case for
6890 metasyntactic variables.
6891 * psymtab.c (_initialize_psymtab): Use upper case for
6892 metasyntactic variables.
6893 * demangle.c (demangle_command): Use upper case for metasyntactic
6895 (_initialize_demangler): Likewise.
6896 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
6899 2019-01-03 Tom Tromey <tom@tromey.com>
6901 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
6903 2019-01-03 Tom Tromey <tom@tromey.com>
6905 * python/py-symtab.c (salpy_str): Update.
6906 (struct salpy_sal_object) <symtab>: Now a PyObject.
6907 (salpy_dealloc): Update.
6908 (del_objfile_sal): Use gdbpy_ref.
6910 2019-01-03 Tom Tromey <tom@tromey.com>
6912 * python/py-type.c (convert_field): Use new_reference. Return
6914 (make_fielditem): Return gdbpy_ref.
6915 (typy_fields): Update.
6916 (typy_getitem): Update.
6917 (field_name): Return gdbpy_ref. Use new_reference.
6918 (typy_iterator_iternext): Update.
6920 2019-01-03 Tom Tromey <tom@tromey.com>
6922 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
6924 2019-01-03 Tom Tromey <tom@tromey.com>
6926 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
6927 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
6928 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
6929 (pspy_set_frame_filters, pspy_set_frame_unwinders)
6930 (pspy_set_type_printers): Likewise.
6931 * python/py-function.c (fnpy_init): Use gdbpy_ref.
6932 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
6933 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
6934 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
6935 (objfpy_set_type_printers): Likewise.
6937 2019-01-03 Tom Tromey <tom@tromey.com>
6939 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
6940 (gdbpy_print_stack): Use gdbpy_err_fetch.
6941 * python/python-internal.h (class gdbpy_err_fetch): New class.
6942 (class gdbpy_enter) <m_error_type, m_error_value,
6943 m_error_traceback>: Remove.
6944 <m_error>: New member.
6945 (gdbpy_exception_to_string): Don't declare.
6946 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
6947 * python/py-value.c (convert_value_from_python): Use
6949 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
6950 gdbpy_exception_to_string.
6951 (gdbpy_handle_exception): Use gdbpy_err_fetch.
6952 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
6955 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6957 * linux-nat.c (delete_lwp_cleanup): Delete.
6958 (struct lwp_deleter): New struct.
6959 (lwp_info_up): New typedef.
6960 (linux_nat_target::follow_fork): Delete cleanup, and make use of
6963 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6965 * linux-fork.c (class scoped_switch_fork_info): New class.
6966 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
6968 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6970 * valops.c (find_overload_match): Remove use of null_cleanup, and
6971 calls to do_cleanups.
6973 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6975 * compile/compile-cplus-types.c
6976 (compile_cplus_instance::decl_name): Handle changes to
6978 * cp-support.c (cp_func_name): Update header comment, update
6980 * cp-support.h (cp_func_name): Update return type in declaration.
6981 * valops.c (find_overload_match): Move temp_func local to top
6982 level of function and change its type. Use temp_func to hold and
6983 delete temporary string obtained from cp_func_name.
6985 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6987 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
6988 gdb::char_vector, remove cleanup, and update uses of `msg`.
6990 2019-01-03 Jim Wilson <jimw@sifive.com>
6992 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
6994 2019-01-02 Tom Tromey <tom@tromey.com>
6996 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
6997 (tdesc_parse_xml): Remove cleanups.
6998 * target-descriptions.h (make_cleanup_free_target_description):
7000 (target_desc_deleter): New struct.
7001 (target_desc_up): New typedef.
7002 * target-descriptions.c (target_desc_deleter::operator()): Rename
7003 from free_target_description.
7004 (make_cleanup_free_target_description): Remove.
7006 2019-01-02 Tom Tromey <tom@tromey.com>
7008 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
7009 constructor, destructor.
7010 (linespec_parser): Remove typedef.
7011 (~linespec_parser): Rename from linespec_parser_delete.
7012 (linespec_lex_to_end, linespec_complete_label)
7013 (linespec_complete): Update.
7014 (decode_line_full): Remove cleanups.
7015 (decode_line_1): Update.
7017 2019-01-02 Tom Tromey <tom@tromey.com>
7019 * python/python-internal.h (inferior_to_inferior_object): Change
7021 * python/py-exitedevent.c (create_exited_event_object): Update.
7022 * python/py-inferior.c (inferior_to_inferior_object): Return
7024 (python_new_inferior, python_inferior_deleted)
7025 (thread_to_thread_object, delete_thread_object)
7026 (build_inferior_list, gdbpy_selected_inferior): Update.
7027 * python/py-infthread.c (create_thread_object): Update. Also fail
7028 if inferior_to_inferior_object fails.
7030 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
7032 * inferior.h (class inferior) <displaced_step_state>: New field.
7033 * infrun.h (struct displaced_step_state): Move here from
7034 infrun.c. Initialize fields, add constructor.
7035 <inf>: Remove field.
7036 <reset>: New method.
7037 * infrun.c (struct displaced_step_inferior_state): Move to
7039 (displaced_step_inferior_states): Remove.
7040 (get_displaced_stepping_state): Adust.
7041 (displaced_step_in_progress_any_inferior): Adjust.
7042 (displaced_step_in_progress_thread): Adjust.
7043 (displaced_step_in_progress): Adjust.
7044 (add_displaced_stepping_state): Remove.
7045 (get_displaced_step_closure_by_addr): Adjust.
7046 (remove_displaced_stepping_state): Remove.
7047 (infrun_inferior_exit): Call displaced_step_state.reset.
7048 (use_displaced_stepping): Don't check for NULL.
7049 (displaced_step_prepare_throw): Call
7050 get_displaced_stepping_state.
7051 (displaced_step_fixup): Don't check for NULL.
7052 (prepare_for_detach): Don't check for NULL.
7054 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7056 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
7057 in case of call that did not complete.
7059 2019-01-02 Andrey Utkin <autkin@undo.io>
7061 * symfile.c (find_separate_debug_file): Fix search of debug files for
7064 2019-01-02 Tom Tromey <tom@tromey.com>
7066 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
7068 * python/py-frame.c (frapy_older): Remove cast.
7069 (frapy_newer): Likewise.
7070 * python/py-breakpoint.c (local_setattro): Remove cast.
7071 * python/py-arch.c (archpy_name): Remove local variable.
7072 * python/py-type.c (gdbpy_lookup_type): Remove cast.
7074 2019-01-02 Joel Brobecker <brobecker@adacore.com>
7076 * unittests/basic_string_view/element_access/char/empty.cc:
7077 Fix year range in copyright header.
7079 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
7081 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
7083 <operator==>: Update with for removed field.
7085 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
7086 <isa_features>: ...this.
7087 <abi_features>: New field.
7088 (riscv_isa_flen): Update comment.
7089 (riscv_abi_xlen): New declaration.
7090 (riscv_abi_flen): New declaration.
7091 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
7093 (riscv_abi_xlen): New function.
7094 (riscv_isa_flen): Update to get answer from isa_features.
7095 (riscv_abi_flen): New function.
7096 (riscv_has_fp_abi): Update to get answer from abi_features.
7097 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
7099 (riscv_call_info) <xlen, flen>: Update comment.
7100 (riscv_call_arg_struct): Remove invalid assertions
7101 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
7103 (riscv_gdbarch_init): Gather isa features and abi features
7104 separately, ensure both match on the gdbarch when reusing an old
7105 gdbarch. Relax an error check to allow 32-bit abi float to run on
7106 a target with 64-bit float hardware.
7108 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7110 * source.c (search_command_helper): Stop reverse search
7111 when line 1 has been searched.
7113 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7115 * record-full.c (record_full_base_target::close): Rewrite
7116 record_full_core_buf_list free logic.
7118 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7120 * break-catch-syscall.c (print_one_catch_syscall): xfree
7123 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7125 * top.c (print_gdb_version): Update Copyright year in version
7128 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7130 Update copyright year range in all GDB files.
7132 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
7134 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
7136 For older changes see ChangeLog-2018.
7142 version-control: never