1 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3 * NEWS: Mention the new set|show style [title|highlight].
4 Mention changes to "show style", "help" and "apropos".
6 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
10 instead of print_help_for_command.
11 (print_doc_of_command): New function.
12 (help_list): Add 'apropos -v word' suggestion.
13 (print_help_for_command): Style the command name using title style.
14 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
15 (_initialize_cli_cmds): Describe -v in apropos_command help.
17 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
19 * cli/cli-style.h (cli_style_option): Add name in constructor,
20 add m_name class member, add constructor with intensity,
21 add name class function.
22 (cli_style_option::add_setshow_commands): Remove name argument.
23 (highlight_style, title_style): New styles.
24 * cli/cli-style.c (do_show): New function that shows a style
25 characteristic styling the style name with itself.
26 (set_style_name): New function.
27 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
28 Update all callers according to the changes in cli/cli-style.h.
29 * utils.h (fputs_highlighted): New function.
30 * utils.c (fputs_highlighted): Likewise.
32 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
34 * NEWS: Mention new pipe command and new convenience variables.
36 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
38 * cli/cli-cmds.c (pipe_command): New function.
39 (_initialize_cli_cmds): Call add_com for pipe_command.
40 Define | as an alias for pipe.
41 (exit_status_set_internal_vars): New function.
42 (shell_escape): Call exit_status_set_internal_vars.
43 cli/cli-decode.c (find_command_name_length): Recognize | as
44 a single character command.
46 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
48 * gdbcmd.h (execute_command_to_ui_file): New declaration.
49 top.c (execute_command_to_ui_file): New function, mostly a copy
50 of execute_command_to_string.
51 (execute_command_to_string): Implement by calling
52 execute_command_to_ui_file.
54 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
56 * top.h (saved_command_line): Remove declaration.
57 * top.c (previous_saved_command_line, previous_repeat_arguments):
59 (saved_command_line): Make static, define together with other
61 (dont_repeat): Clear repeat_arguments.
62 (repeat_previous, get_saved_command_line, save_command_line):
64 (gdb_init): Initialize saved_command_line
65 and previous_saved_command_line.
66 * main.c (captured_main_1): Remove saved_command_line initialization.
67 * event-top.c (handle_line_of_input): Update to use
68 the new 'repeat' related functions instead of direct access to
70 * command.h (repeat_previous, get_saved_command_line,
71 save_command_line): New declarations.
72 (dont_repeat): Add comment.
74 2019-05-30 Tom Tromey <tromey@adacore.com>
76 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
78 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
80 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
83 * completer.c (complete): Initialize variable word.
85 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
87 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
88 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
89 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
90 'body' is NULL to the outter 'if', protecting the '!is_define'
93 2019-05-29 Tom Tromey <tromey@adacore.com>
95 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
96 (dwarf_unknown): New function.
97 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
98 (dwarf_type_encoding_name): Use dwarf_unknown.
100 2019-05-29 Tom Tromey <tromey@adacore.com>
103 * cp-valprint.c (cp_print_value_fields): Call
104 cp_print_static_field inside "try".
106 2019-05-29 Tom Tromey <tromey@adacore.com>
108 * inflow.c (struct terminal_info): Add default operator=.
109 * configure: Rebuild.
110 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
111 -Wdeprecated-copy-dtor, -Wredundant-move.
113 2019-05-29 Tom Tromey <tromey@adacore.com>
116 * infcmd.c (print_return_value_1): Handle finish_print
118 (show_print_finish): New function.
119 (_initialize_infcmd): Add "set/show print finish" commands.
120 * valprint.c (user_print_options): Initialize new member.
121 * valprint.h (struct value_print_options) <finish_print>: New
124 2019-05-28 Tom Tromey <tromey@adacore.com>
126 * ada-lang.c (ada_remove_Xbn_suffix)
127 (find_old_style_renaming_symbol)
128 (parse_old_style_renaming): Remove.
129 (ada_find_renaming_symbol): Don't call
130 find_old_style_renaming_symbol.
131 (ada_is_renaming_symbol): Rename from
132 ada_find_renaming_symbol. Remove "block" parameter. Return
134 (ada_read_var_value): Update and simplify.
135 * ada-exp.y (write_var_or_type): Remove old code.
137 2019-05-28 Alan Hayward <alan.hayward@arm.com>
139 * event-top.c: Remove include comment.
140 * inflow.c (class scoped_ignore_sigttou): Move from here...
141 * inflow.h (class scoped_ignore_sigttou): ...to here.
142 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
143 * top.c: Remove include comment.
145 2019-05-27 Tom Tromey <tom@tromey.com>
149 2019-05-22 Tom Tromey <tromey@adacore.com>
151 * target.c (target_follow_exec): Constify parameter.
152 * target-delegates.c: Rebuild.
153 * remote.c (remote_target::follow_exec): Constify parameter.
154 * infrun.c (follow_exec): Constify parameter.
155 * target.h (struct target_ops) <follow_exec>: Constify parameter.
156 (target_follow_exec): Likewise.
158 2019-05-22 Alan Hayward <alan.hayward@arm.com>
160 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
161 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
163 2019-05-22 Alan Hayward <alan.hayward@arm.com>
165 * NEWS: Add debugredirect and testsuite sections.
167 2019-05-22 Simon Cook <simon.cook@embecosm.com>
169 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
170 target descriptions using exclusively floating point register name
173 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
176 * f-lang.c (build_fortran_types): Handle the case where
177 gdbarch_floatformat_for_type returns a nullptr.
179 2019-05-21 Tom de Vries <tdevries@suse.de>
182 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
184 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
187 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
189 * i386-tdep.c (i386_floatformat_for_type): Use
190 floatformats_ia64_quad for the 16-byte floating point component
191 within a fortran 32-byte complex number.
193 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
195 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
196 delete default constructor.
197 (find_partial_die): Update to return const struct.
198 (partial_die_parent_scope): Move variable declaration into scope
199 of its use and change its type to auto.
200 (guess_partial_die_structure_name): Likewise.
201 (partial_die_info::fixup): Likewise.
203 2019-05-17 Tom Tromey <tromey@adacore.com>
205 * source.c (find_and_open_source): Remove cast.
207 2019-05-17 Tom Tromey <tromey@adacore.com>
209 * annotate.c (annotate_source): Make "filename" const.
210 * annotate.h (annotate_source): Use const.
212 2019-05-17 Alan Hayward <alan.hayward@arm.com>
214 * disasm.c (set_disassembler_options): Send errors to stderr.
216 2019-05-17 Alan Hayward <alan.hayward@arm.com>
218 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
219 (cli_interp_base::set_logging): Check debug_redirect.
220 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
221 * cli/cli-logging.c (debug_redirect): Add static variable.
222 (pop_output_files): Add default param.
223 (handle_redirections): Print debug setting.
224 (show_logging_command): Likewise.
225 (_initialize_cli_logging): Add debugredirect command.
226 * interps.c (current_interp_set_logging): Add debug_redirect
228 * interps.h (set_logging): Add debug_redirect parameter.
229 (current_interp_set_logging): Likewise.
230 * mi/mi-common.h: Likewise.
231 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
233 2019-05-17 Alan Hayward <alan.hayward@arm.com>
234 Tom Tromey <tromey@adacore.com>
236 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
238 * cli/cli-interp.h (make_logging_output): Remove declaration.
239 * cli/cli-logging.c (make_logging_output): Remove function.
240 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
242 * ui-file.c (tee_file::tee_file): Remove bools.
243 (tee_file::~tee_file): Remove deletes.
244 * ui-file.h (tee_file): Remove bools.
246 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
248 * mi/mi-cmds.h (mi_cmd_complete): New function.
249 * mi/mi-main.c (mi_cmd_complete): Likewise.
250 * mi/mi-cmds.c: Define new MI command -complete.
251 * NEWS: Mention new -complete command.
253 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
255 * completer.h (complete): New function.
256 * completer.c (complete): Likewise.
257 * cli/cli-cmds.c: (complete_command): Update to use new complete()
258 function defined in completer.h.
260 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
262 * MAINTAINERS (Write After Approval): Add myself.
264 2019-05-17 Tom de Vries <tdevries@suse.de>
267 * dwarf2read.c (struct cu_partial_die_info): New struct.
268 (find_partial_die): Return cu_partial_die_info.
269 (partial_die_parent_scope, guess_partial_die_structure_name)
270 (partial_die_info::fixup): Handle new return type of find_partial_die.
272 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
274 * stap-probe.c (stap_parse_register_operand): Make "regname" an
275 "std::string", simplifying the algorithm.
277 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
279 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
280 (stap_static_probe_ops::get_probes): Likewise.
282 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
284 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
286 (stap_parse_single_operand): Join checks for
287 "gdbarch_stap_parse_special_token_p" and
288 "gdbarch_stap_parse_special_token" in the same "if" statement.
289 Invert check when verifying for operation on register
292 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
294 * stap-probe.c (stap_get_opcode): Update comment.
295 (stap_get_expected_argument_type): Likewise.
296 (handle_stap_probe): Likewise.
298 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
300 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
301 return type to 'bool'. Adjust comment. Use 'bool' when
303 (i386_stap_parse_special_token_three_arg_disp): Likewise.
304 * stap-probe.c (stap_parse_argument_1): Likewise.
305 (stap_is_operator): Likewise.
306 (stap_is_generic_prefix): Likewise.
307 (stap_is_register_prefix): Likewise.
308 (stap_is_register_indirection_prefix): Likewise.
309 (stap_is_integer_prefix): Likewise.
310 (stap_generic_check_suffix): Likewise.
311 (stap_check_integer_suffix): Likewise.
312 (stap_check_register_suffix): Likewise.
313 (stap_check_register_indirection_suffix): Likewise.
314 (stap_parse_register_operand): Likewise.
315 (stap_parse_single_operand): Likewise.
316 (stap_parse_argument_1): Likewise.
317 (stap_probe::get_argument_count): Likewise.
318 (stap_is_operator): Likewise.
320 2019-05-16 Tom Tromey <tromey@adacore.com>
322 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
325 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
327 * linux-thread-db.c (try_thread_db_load_1): Change return type
329 (try_thread_db_load): Likewise.
330 (try_thread_db_load_from_pdir_1): Likewise.
331 (try_thread_db_load_from_pdir): Likewise.
332 (try_thread_db_load_from_sdir): Likewise.
333 (try_thread_db_load_from_dir): Likewise.
334 (thread_db_load_search): Likewise.
335 (has_libpthread): Likewise.
336 (thread_db_load): Likewise.
338 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
340 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
341 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
342 NULL, and complain/return if that's the case.
344 2019-05-15 John Darrington <john@darrington.wattle.id.au>
346 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
347 (advance, posn, abstract_read_memory): New functions.
348 [struct mem_read_abstraction]: New struct.
349 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
351 2019-05-14 Tom Tromey <tromey@adacore.com>
353 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
354 value is not lval_memory.
356 2019-05-14 Tom Tromey <tromey@adacore.com>
358 * solib.c (info_sharedlibrary_command): Style the file name.
360 2019-05-14 Alan Hayward <alan.hayward@arm.com>
362 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
363 (aarch64_vnv_type): Likewise.
364 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
365 * common/tdesc.c: Likewise.
366 * common/tdesc.h (enum tdesc_type_kind): Likewise.
367 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
368 * features/aarch64-fpu.xml: Add ieee half view.
369 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
370 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
371 * gdbtypes.h (struct builtin_type): Likewise.
372 (struct objfile_type): Likewise.
374 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
376 * language.c (language_sniff_from_mangled_name): Fix "langauge"
378 * location.h (string_to_event_location): Likewise.
380 2019-05-11 Joel Brobecker <brobecker@adacore.com>
384 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
386 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
387 New variable declaration.
388 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
390 (print_one_breakpoint): Use ui_out::test_flags and new global
391 variable to compute use_fixed_output.
392 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
394 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
395 (mi_multi_location_breakpoint_output_fixed): Remove.
396 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
398 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
399 fix_multi_location_breakpoint_output flag if version >= 3.
400 * ui-out.h (enum ui_out_flag)
401 <fix_multi_location_breakpoint_output>: New enumerator.
403 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
405 * contrib/cc-with-tweaks.sh: Validate dwz's work.
407 2019-05-10 Tom Tromey <tromey@adacore.com>
409 * ada-lang.c (catch_ada_completer): New function.
410 (_initialize_ada_language): Use it.
412 2019-05-10 Tom Tromey <tromey@adacore.com>
414 * thread.c (print_thread_info): Make "requested_threads" const.
415 * gdbthread.h (print_thread_info): Make "requested_threads"
417 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
418 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
420 2019-05-08 Tom Tromey <tom@tromey.com>
422 * gdbtypes.c (objfile_type_data): Change type.
423 (objfile_type, _initialize_gdbtypes): Update.
425 2019-05-08 Tom Tromey <tom@tromey.com>
427 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
428 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
429 (_initialize_dwarf2_frame): Update.
431 2019-05-08 Tom Tromey <tom@tromey.com>
433 * objc-lang.c (objc_objfile_data): Change type.
434 (find_methods): Update.
435 (_initialize_objc_lang): Remove.
437 2019-05-08 Tom Tromey <tom@tromey.com>
439 * stabsread.c (rs6000_builtin_type_data): Change type.
440 (rs6000_builtin_type, _initialize_stabsread): Update.
442 2019-05-08 Tom Tromey <tom@tromey.com>
444 * mips-tdep.c (mips_pdr_data): Remove.
445 (_initialize_mips_tdep): Update.
447 2019-05-08 Tom Tromey <tom@tromey.com>
449 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
450 (hppa_init_objfile_priv_data, read_unwind_info)
451 (find_unwind_entry, _initialize_hppa_tdep): Update.
453 2019-05-08 Tom Tromey <tom@tromey.com>
455 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
456 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
458 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
460 2019-05-08 Tom Tromey <tom@tromey.com>
462 * mdebugread.c (basic_type_data): Change type.
463 (basic_type, _initialize_mdebugread): Update.
465 2019-05-08 Tom Tromey <tom@tromey.com>
467 * common/gdb_unique_ptr.h (struct noop_deleter): New.
469 2019-05-08 Tom Tromey <tom@tromey.com>
471 * nto-tdep.c (nto_inferior_data_reg): Change type.
472 (nto_inferior_data): Update.
473 (nto_inferior_data_cleanup, nto_new_inferior_data)
474 (_initialize_nto_tdep): Remove.
475 * nto-tdep.h (struct nto_inferior_data): Add initializers.
477 2019-05-08 Tom Tromey <tom@tromey.com>
479 * ada-lang.c (struct ada_inferior_data): Add initializers.
480 (ada_inferior_data): Change type.
481 (ada_inferior_data_cleanup): Remove.
482 (get_ada_inferior_data, ada_inferior_exit)
483 (struct ada_pspace_data): Add initializers, destructor.
484 (ada_pspace_data_handle): Change type.
485 (get_ada_pspace_data): Update.
486 (ada_pspace_data_cleanup): Remove.
488 2019-05-08 Tom Tromey <tom@tromey.com>
490 * coffread.c (struct coff_symfile_info): Add initializers.
491 (coff_objfile_data_key): Move lower. Change type.
492 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
494 (coff_free_info): Remove.
496 2019-05-08 Tom Tromey <tom@tromey.com>
498 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
499 (fbsd_pspace_data_handle): Move lower. Change type.
500 (get_fbsd_pspace_data): Update.
501 (fbsd_pspace_data_cleanup): Remove.
502 (_initialize_fbsd_tdep): Update.
504 2019-05-08 Tom Tromey <tom@tromey.com>
506 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
507 (get_ada_tasks_pspace_data): Update.
508 (ada_tasks_pspace_data_cleanup): Remove.
509 (_initialize_tasks): Update.
510 (ada_tasks_inferior_data_handle): Change type.
511 (get_ada_tasks_inferior_data): Update.
512 (ada_tasks_inferior_data_cleanup): Remove.
513 (struct ada_tasks_pspace_data): Add initializers.
515 2019-05-08 Tom Tromey <tom@tromey.com>
517 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
518 * symfile-debug.c (debug_sym_get_probes): Change type.
519 * stap-probe.c (handle_stap_probe):
520 (stap_static_probe_ops::get_probes): Change type.
521 * probe.h (class static_probe_ops) <get_probes>: Change type.
522 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
523 (parse_probes_in_pspace): Update.
524 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
526 (any_static_probe_ops::get_probes): Change type.
527 * elfread.c (elfread_data): New typedef.
528 (probe_key): Change type.
529 (elf_get_probes): Likewise. Update.
530 (probe_key_free): Remove.
531 (_initialize_elfread): Update.
532 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
534 (dtrace_process_dof_probe, dtrace_process_dof)
535 (dtrace_static_probe_ops::get_probe): Change type.
537 2019-05-08 Tom Tromey <tom@tromey.com>
539 * xcoffread.c (struct xcoff_symfile_info): Rename from
540 coff_symfile_info. Add initializers.
541 (xcoff_objfile_data_key): Move lower. Change type.
542 (XCOFF_DATA): Rewrite.
543 (xcoff_free_info): Remove.
544 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
545 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
546 (xcoff_initial_scan): Update.
548 2019-05-08 Tom Tromey <tom@tromey.com>
550 * solib-svr4.c (struct svr4_info): Add initializers and
552 <probes_table>: Now an htab_up.
553 (solib_svr4_pspace_data): Change type.
554 (free_probes_table): Simplify.
555 (~svr4_info): Rename from svr4_pspace_data_cleanup.
556 (get_svr4_info, probes_table_htab_remove_objfile_probes)
557 (probes_table_remove_objfile_probes, register_solib_event_probe)
558 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
559 (_initialize_svr4_solib): Update.
561 2019-05-08 Tom Tromey <tom@tromey.com>
563 * remote.c (remote_pspace_data): Change type.
564 (remote_pspace_data_cleanup): Remove.
565 (get_remote_exec_file, set_pspace_remote_exec_file)
566 (_initialize_remote): Update.
568 2019-05-08 Tom Tromey <tom@tromey.com>
570 * breakpoint.c (breakpoint_objfile_key): Change type.
571 (get_breakpoint_objfile_data): Update.
572 (free_breakpoint_objfile_data): Remove.
573 (_initialize_breakpoint): Update.
575 2019-05-08 Tom Tromey <tom@tromey.com>
577 * linux-tdep.c (struct linux_info): Add initializers.
578 (linux_inferior_data): Move. Change type.
579 (invalidate_linux_cache_inf): Update.
580 (linux_inferior_data_cleanup): Remove.
581 (get_linux_inferior_data, _initialize_linux_tdep): Update.
583 2019-05-08 Tom Tromey <tom@tromey.com>
585 * auxv.c (auxv_inferior_data): Move. Change type.
586 (auxv_inferior_data_cleanup): Remove.
587 (invalidate_auxv_cache_inf): Rewrite.
588 (get_auxv_inferior_data, _initialize_auxv): Update.
590 2019-05-08 Tom Tromey <tom@tromey.com>
592 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
593 (symfile_debug_objfile_data_key): Change type.
594 (symfile_debug_installed, debug_qf_has_symbols)
595 (debug_qf_find_last_source_symtab)
596 (debug_qf_forget_cached_source_info)
597 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
598 (debug_qf_print_stats, debug_qf_dump)
599 (debug_qf_expand_symtabs_for_function)
600 (debug_qf_expand_all_symtabs)
601 (debug_qf_expand_symtabs_with_fullname)
602 (debug_qf_map_matching_symbols)
603 (debug_qf_expand_symtabs_matching)
604 (debug_qf_find_pc_sect_compunit_symtab)
605 (debug_qf_map_symbol_filenames)
606 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
607 (debug_sym_new_init, debug_sym_init, debug_sym_read)
608 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
609 (debug_sym_read_linetable, debug_sym_relocate): Update.
610 (symfile_debug_free_objfile): Remove.
611 (install_symfile_debug_logging, _initialize_symfile_debug):
614 2019-05-08 Tom Tromey <tom@tromey.com>
616 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
618 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
619 (get_dwarf2_per_objfile): Update.
620 (set_dwarf2_per_objfile): Remove.
621 (dwarf2_has_info, dwarf2_get_section_info): Update.
622 (dwarf2_free_objfile): Remove.
623 (_initialize_dwarf2_read): Update.
625 2019-05-08 Tom Tromey <tom@tromey.com>
627 * auto-load.c (struct auto_load_pspace_info): Add destructor and
629 <unsupported_script_warning_printed,
630 script_not_found_warning_printed>: Now bool.
631 (auto_load_pspace_data): Change type.
632 (~auto_load_pspace_info): Rename from
633 auto_load_pspace_data_cleanup.
634 (get_auto_load_pspace_data, init_loaded_scripts_info)
635 (clear_section_scripts, maybe_print_unsupported_script_warning)
636 (maybe_print_script_not_found_warning, _initialize_auto_load):
639 2019-05-08 Tom Tromey <tom@tromey.com>
641 * objfiles.c (objfile_pspace_info): Add destructor and
643 (objfiles_pspace_data): Change type.
644 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
645 (get_objfile_pspace_data): Update.
646 (objfiles_bfd_data): Change type.
647 (get_objfile_bfd_data): Update.
648 (objfile_bfd_data_free, _initialize_objfiles): Remove.
650 2019-05-08 Tom Tromey <tom@tromey.com>
652 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
654 (get_catch_syscall_inferior_data): Update.
655 (catch_syscall_inferior_data_cleanup): Remove.
656 (_initialize_break_catch_syscall): Update.
658 2019-05-08 Tom Tromey <tom@tromey.com>
660 * inflow.c (struct terminal_info): Add destructor and
662 (inflow_inferior_data): Change type.
663 (~terminal_info): Rename from inflow_inferior_data_cleanup.
664 (get_inflow_inferior_data, inflow_inferior_exit)
665 (swap_terminal_info, _initialize_inflow): Update.
667 2019-05-08 Tom Tromey <tom@tromey.com>
669 * target-dcache.c (target_dcache_cleanup): Remove.
670 (target_dcache_aspace_key): Change type.
671 (target_dcache_init_p, target_dcache_invalidate)
672 (target_dcache_get, target_dcache_get_or_init)
673 (_initialize_target_dcache): Update.
674 * dcache.h (struct dcache_deleter): New.
676 2019-05-08 Tom Tromey <tom@tromey.com>
678 * symtab.c (struct symbol_cache): Add destructor and
680 (symbol_cache_key): Move. Change type.
681 (make_symbol_cache, free_symbol_cache): Remove.
682 (get_symbol_cache): Update.
683 (symbol_cache_cleanup): Remove.
684 (ALL_PSPACES, symbol_cache_flush)
685 (maintenance_print_symbol_cache)
686 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
689 2019-05-08 Tom Tromey <tom@tromey.com>
691 * symtab.c (struct main_info): Add destructor and initializers.
692 (main_progspace_key): Move. Change type.
693 (get_main_info): Update.
694 (main_info_cleanup): Remove.
695 (_initialize_symtab): Update.
697 2019-05-08 Tom Tromey <tom@tromey.com>
699 * registry.h (DECLARE_REGISTRY): Define the _key class.
701 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
703 * NEWS: Merge two 'New commands' sections.
705 2019-05-08 Joel Brobecker <brobecker@adacore.com>
707 * ada-valprint.c (ada_val_print_gnat_array): Remove language
708 parameter and use Ada language definition instead.
709 (ada_val_print_ptr): Remove unused language parameter.
710 (ada_val_print_num): Remove language parameter and use Ada language
712 (ada_val_print_enum, ada_val_print_flt): Remove unused language
714 (ada_val_print_struct_union, ada_val_print_ref): Remove language
715 parameter and use Ada language definition instead.
716 (ada_val_print_1): Update all ada_val_print_xxx calls.
717 Remove language parameter.
718 (ada_val_print): Update ada_val_print_1 call.
720 2019-05-08 Tom Tromey <tromey@adacore.com>
722 * remote.c (remote_hw_watchpoint_limit)
723 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
726 2019-05-08 Tom Tromey <tromey@adacore.com>
728 * maint.c (_initialize_maint_cmds): Move initialization code to
730 (watchdog, show_watchdog): Move to remote.c.
731 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
733 (_initialize_remote): Move initialization code from maint.c.
734 * defs.h (watchdog): Don't declare.
736 2019-05-08 Tom Tromey <tromey@adacore.com>
738 * tui/tui-interp.c: Include main.h.
739 * interps.c: Include main.h.
740 * main.h (interpreter_p): Declare.
741 * defs.h (interpreter_p): Don't declare.
743 2019-05-08 Tom Tromey <tromey@adacore.com>
745 * dwarf2loc.c: Include dwarf2read.h.
746 * defs.h (read_unsigned_leb128): Don't declare.
747 * dwarf2read.h (read_unsigned_leb128): Declare.
749 2019-05-08 Tom Tromey <tromey@adacore.com>
751 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
754 2019-05-08 Tom Tromey <tromey@adacore.com>
756 * utils.c (fputs_maybe_filtered): Reset style after paging, even
757 when no wrap column is set.
759 2019-05-08 Tom Tromey <tromey@adacore.com>
761 * c-lang.c (c_get_string): Handle non-C-style arrays.
763 2019-05-08 Tom Tromey <tromey@adacore.com>
765 * typeprint.c (print_offset_data::update): Print the bit offset,
766 not the number of bits remaining.
768 2019-05-08 Tom Tromey <tromey@adacore.com>
770 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
771 padding at end of comment.
773 2019-05-08 Tom Tromey <tromey@adacore.com>
775 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
778 2019-05-06 Tom Tromey <tom@tromey.com>
780 * common/scoped_mmap.c: Include common-defs.h.
781 * common/scoped_mmap.h: Don't include config.h.
783 2019-05-04 Tom Tromey <tom@tromey.com>
785 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
786 (struct aarch64_call_info): Add initializers.
787 <si>: Now a std::vector.
788 (pass_on_stack, aarch64_push_dummy_call): Update.
790 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
791 Tom Tromey <tom@tromey.com>
793 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
794 (ppc_threads): Now a std::vector. Now static.
795 (hwdebug_find_thread_points_by_tid)
796 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
799 2019-05-04 Tom Tromey <tom@tromey.com>
801 * arc-tdep.c (arc_tdesc_init): Return bool.
803 2019-05-04 Tom Tromey <tom@tromey.com>
805 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
806 Use gdb_assert_not_reached.
808 2019-05-04 Tom Tromey <tom@tromey.com>
810 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
813 2019-05-04 Tom Tromey <tom@tromey.com>
815 * arc-tdep.c (arc_tdesc_init): Use bool.
817 2019-05-04 Tom Tromey <tom@tromey.com>
819 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
821 2019-05-04 Tom Tromey <tom@tromey.com>
823 * cli/cli-cmds.c (valid_command_p): Return bool.
825 2019-05-04 Tom Tromey <tom@tromey.com>
827 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
828 * command.h (valid_user_defined_cmd_name_p): Channge return type.
830 2019-05-04 Raul Tambre <raul@tambre.ee>
832 * python/lib/gdb/prompt.py (_ExtendedPrompt)
833 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
834 operator for comparison.
836 2019-05-04 Tom Tromey <tom@tromey.com>
838 * psymtab.c (psymbol_name_matches, match_partial_symbol)
839 (lookup_partial_symbol, print_partial_symbols)
840 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
841 (psymbol_compare): Update.
842 (add_psymbol_to_bcache): Clear the entire psymbol.
843 (maintenance_check_psymtabs): Update.
844 * psympriv.h (struct partial_symbol): Don't derive from
846 <obj_section, unrelocated_address, address,
847 set_unrelocated_address>: Update.
849 * dwarf-index-write.c (write_psymbols, debug_names::insert)
850 (debug_names::write_psymbols): Update.
852 2019-05-04 Tom de Vries <tdevries@suse.de>
854 * contrib/cc-with-tweaks.sh: Support -n arg.
856 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
858 * corelow.c (core_target::detach): Ensure frame cache and
859 register caches are cleared.
860 inferior.c (exit_inferior_1): Likewise.
862 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
863 Tom Tromey <tom@tromey.com>
865 * dictionary.c (collate_pending_symbols_by_language): Remove
866 "struct" from foreach.
867 * symtab.c (lookup_global_symbol_from_objfile)
868 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
870 * ser-tcp.c (net_open): Remove "struct" from foreach.
871 * objfiles.c (objfile_relocate, objfile_rebase)
872 (objfile_has_symbols): Remove "struct" from foreach.
873 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
875 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
877 * darwin-nat.c (thread_info_from_private_thread_info): Remove
878 "struct" from foreach.
879 * ada-lang.c (create_excep_cond_exprs)
880 (ada_exception_catchpoint_cond_string): Remove "struct" from
883 2019-05-03 Tom Tromey <tromey@adacore.com>
885 * ada-exp.y (convert_char_literal): Check suffix of each
888 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
891 * ada-exp.y (yywrap): Don't define.
892 * ada-lex.l (%option): Add noyywrap
895 2019-05-03 Eli Zaretskii <eliz@gnu.org>
897 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
898 _WIN32_WINNT to the XP level, unless already defined to a higher
901 * unittests/parse-connection-spec-selftests.c:
903 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
906 * symfile.c (find_separate_debug_file): Remove colon from the
907 drive spec of DOS/Windows file names of the target, so that the
908 file name produced from DEBUGDIR and the target's directory will
909 be valid on DOS/Windows systems.
911 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
913 * rust-lang.c (val_print_struct): Handle printing structures
916 2019-05-02 Tom Tromey <tromey@adacore.com>
918 * valarith.c (_initialize_valarith): Remove.
920 2019-05-01 Tom Tromey <tromey@adacore.com>
922 * ada-lang.c (ada_value_primitive_field): Treat more fields as
925 2019-05-01 Tom Tromey <tromey@adacore.com>
927 * ada-lang.c (ada_value_assign): Correctly compute starting offset
928 for big-endian copies.
930 2019-04-30 Ali Tamur <tamur@google.com>
931 * gdb/dwarf2read.c (read_3_bytes): New declaration.
932 (read_attribute_value): Added DW_FORM_strx1-4 cases.
933 (read_3_bytes): New function.
935 2019-04-30 Joel Brobecker <brobecker@adacore.com>
937 * windows-nat.c (main_thread_id): Delete.
938 (handle_output_debug_string): Replace main_thread_id by
939 current_event.dwThreadId.
940 (fake_create_process): Likewise.
941 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
942 Do not set main_thread_id.
943 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
944 current_event.dwThreadId.
945 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
947 2019-04-30 Joel Brobecker <brobecker@adacore.com>
949 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
950 Use current_event.dwThreadId instead of main_thread_id.
952 2019-04-30 Tom Tromey <tromey@adacore.com>
954 * ada-lang.c (ada_lookup_simple_minsyms): New function.
955 (create_excep_cond_exprs): Iterate over program spaces.
956 (ada_exception_catchpoint_cond_string): Examine all minimal
957 symbols for exception types.
959 2019-04-30 Tom Tromey <tromey@adacore.com>
962 * dwarf2read.c (process_structure_scope): Handle case where type
963 has template parameters but no symbol was created.
965 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
966 Chris January <chris.january@arm.com>
968 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
970 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
972 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
974 * f-typeprint.c (f_print_type): Update rules for printing
976 (f_type_print_varspec_suffix): Likewise.
978 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
979 Chris January <chris.january@arm.com>
981 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
984 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
986 * f-lang.c (build_fortran_types): Change name of void type to
988 * f-typeprint.c (f_type_print_base): Print the name of the void
989 type, rather than a fixed string.
990 * f-valprint.c (f_decorations): Use lower case void string.
992 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
993 Chris January <chris.january@arm.com>
995 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
998 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
999 Chris January <chris.january@arm.com>
1000 David Lecomber <david.lecomber@arm.com>
1002 * f-exp.y (BINOP_INTRINSIC): New token.
1003 (exp): New parser rule handling BINOP_INTRINSIC.
1004 (f77_keywords): Add new builtin procedures.
1005 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
1006 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1007 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
1008 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1009 (print_unop_subexp_f): New function.
1010 (print_binop_subexp_f): New function.
1011 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1012 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1013 (dump_subexp_body_f): Likewise.
1014 (operator_check_f): Likewise.
1015 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1016 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
1018 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1020 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
1022 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
1023 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
1024 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
1025 (operator_length_f): New fuction.
1026 (print_subexp_f): New function.
1027 (op_name_f): New function.
1028 (dump_subexp_body_f): New function.
1029 (operator_check_f): New function.
1030 (exp_descriptor_f): Replace standard expression handling functions
1032 * gdb/fortran-operator.def: New file.
1033 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
1034 * gdb/std-operator.def: Remove UNOP_KIND.
1036 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1038 * std-operator.def: Remove unbalanced, stray double quote
1041 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1042 Chris January <chris.january@arm.com>
1043 Daniel Everett <daniel.everett@arm.com>
1044 Nick Forrington <nick.forrington@arm.com>
1045 Richard Bunt <richard.bunt@arm.com>
1047 * cp-valprint.c (cp_print_value_fields): Allow an additional level
1048 of depth when printing anonymous structs or unions.
1049 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1050 Don't print either the top-level value, or the children if the
1051 max-depth is exceeded.
1052 (ppscm_print_children): When printing the key of a map, allow one
1053 extra level of depth.
1054 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
1055 print either the top-level value, or the children if the max-depth
1057 (print_children): When printing the key of a map, allow one extra
1059 * python/py-value.c (valpy_format_string): Add max_depth keyword.
1060 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
1061 (user_print_options): Initialise max_depth field.
1062 (val_print_scalar_or_string_type_p): New function.
1063 (val_print): Check to see if the max depth has been reached.
1064 (val_print_check_max_depth): Define new function.
1065 (show_print_max_depth): New function.
1066 (_initialize_valprint): Add 'print max-depth' option.
1067 * valprint.h (struct value_print_options) <max_depth>: New field.
1068 (val_print_check_max_depth): Declare new function.
1069 * NEWS: Document new feature.
1071 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1073 * ada-lang.c (ada_language_defn): Initialise new field.
1074 * c-lang.c (c_is_string_type_p): New function.
1075 (c_language_defn): Initialise new field.
1076 (cplus_language_defn): Initialise new field.
1077 (asm_language_defn): Initialise new field.
1078 (minimal_language_defn): Initialise new field.
1079 * c-lang.h (c_is_string_type_p): Declare new function.
1080 * d-lang.c (d_language_defn): Initialise new field.
1081 * f-lang.c (f_is_string_type_p): New function.
1082 (f_language_defn): Initialise new field.
1083 * go-lang.c (go_is_string_type_p): New function.
1084 (go_language_defn): Initialise new field.
1085 * language.c (default_is_string_type_p): New function.
1086 (unknown_language_defn): Initialise new field.
1087 (auto_language_defn): Initialise new field.
1088 * language.h (struct language_defn) <la_is_string_type_p>: New
1090 (default_is_string_type_p): Declare new function.
1091 * m2-lang.c (m2_language_defn): Initialise new field.
1092 * objc-lang.c (objc_language_defn): Initialise new field.
1093 * opencl-lang.c (opencl_language_defn): Initialise new field.
1094 * p-lang.c (pascal_is_string_type_p): New function.
1095 (pascal_language_defn): Initialise new field.
1096 * rust-lang.c (rust_is_string_type_p): New function.
1097 (rust_language_defn): Initialise new field.
1099 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1101 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
1103 * ada-lang.c (ada_language_defn): Initialise new field.
1104 * c-lang.c (c_language_defn): Likewise.
1105 (cplus_language_defn): Likewise.
1106 (asm_language_defn): Likewise.
1107 (minimal_language_defn): Likewise.
1108 * d-lang.c (d_language_defn): Likewise.
1109 * f-lang.c (f_language_defn): Likewise.
1110 * go-lang.c (go_language_defn): Likewise.
1111 * language.c (unknown_language_defn): Likewise.
1112 (auto_language_defn): Likewise.
1113 * m2-lang.c (m2_language_defn): Likewise.
1114 * objc-lang.c (objc_language_defn): Likewise.
1115 * opencl-lang.c (opencl_language_defn): Likewise.
1116 * p-lang.c (pascal_language_defn): Likewise.
1117 * rust-lang.c (rust_language_defn): Likewise.
1119 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1121 * ada-lang.c (ada_is_character_type): Change return type to bool.
1122 (ada_is_string_type): Likewise.
1123 * ada-lang.h (ada_is_character_type): Update declaration
1124 (ada_is_string_type): Likewise.
1126 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1128 Support style in 'frame|thread apply'
1130 * gdbcmd.h (execute_command_to_string): New term_out parameter.
1131 * record.c (record_start, record_stop): Update callers of
1132 execute_command_to_string with false.
1133 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
1134 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
1136 (class string_file): New constructor with term_out parameter.
1137 Override methods term_out and can_emit_style_escape. New member
1139 (class stdio_file): Override can_emit_style_escape.
1140 (class tee_file): Override term_out and can_emit_style_escape.
1141 * utils.h (can_emit_style_escape): Remove.
1142 * utils.c (can_emit_style_escape): Likewise.
1143 Update all callers of can_emit_style_escape (SOMESTREAM) to
1144 SOMESTREAM->can_emit_style_escape.
1145 * source-cache.c (source_cache::get_source_lines): Likewise.
1146 * stack.c (frame_apply_command_count): Call execute_command_to_string
1147 passing the term_out characteristic of the current gdb_stdout.
1148 * thread.c (thr_try_catch_cmd): Likewise.
1149 * top.c (execute_command_to_string): pass term_out parameter
1150 to construct the string_file for the command output.
1151 * ui-file.c (term_cli_styling): New function (most code moved
1152 from utils.c can_emit_style_escape).
1153 (string_file::string_file, string_file::can_emit_style_escape,
1154 stdio_file::can_emit_style_escape, tee_file::term_out,
1155 tee_file::can_emit_style_escape): New functions.
1157 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1159 * NEWS: Mention the new set|show may-call-functions.
1160 * infcall.c (may_call_functions_p): New variable.
1161 (show_may_call_functions_p): New function.
1162 (call_function_by_hand_dummy): Throws an error if not
1164 (_initialize_infcall): Call add_setshow_boolean_cmd for
1167 2019-04-25 Keith Seitz <keiths@redhat.com>
1170 * cp-support.c (inspect_type): Don't attempt substitutions
1171 of symbol with the same name.
1173 2019-04-25 Tom Tromey <tromey@adacore.com>
1176 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
1179 2019-04-25 Tom Tromey <tromey@adacore.com>
1181 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
1183 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
1184 (gdb_xml_parser::parse): Use std::move.
1185 * python/python-internal.h (gdbpy_convert_exception): Take a const
1187 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
1189 * python/py-utils.c (gdbpy_convert_exception): Take a const
1191 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1193 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1195 * mi/mi-main.c (mi_print_exception): Take a const reference.
1196 * main.c (handle_command_errors): Take a const reference.
1197 * linespec.c (parse_linespec): Use std::move.
1198 * infcall.c (run_inferior_call): Use std::move.
1199 (call_function_by_hand_dummy): Use std::move.
1200 * exec.c (try_open_exec_file): Use std::move.
1201 * exceptions.h (exception_print, exception_fprintf)
1202 (exception_print_same): Update.
1203 * exceptions.c (print_exception, exception_print)
1204 (exception_fprintf, exception_print_same): Change parameters to
1206 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
1207 * common/new-op.c: Use std::move.
1208 * common/common-exceptions.h (struct gdb_exception): Add move
1210 (struct gdb_exception_error, struct gdb_exception_quit, struct
1211 gdb_quit_bad_alloc): Change constructor to move constructor.
1212 (throw_exception): Change parameter to rvalue reference.
1213 * common/common-exceptions.c (throw_exception): Take rvalue
1215 * cli/cli-interp.c (safe_execute_command): Use std::move.
1216 * breakpoint.c (insert_bp_location, location_to_sals): Use
1219 2019-04-25 Tom Tromey <tromey@adacore.com>
1221 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
1222 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
1223 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
1224 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
1225 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
1226 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
1227 guile/scm-value.c: Use unpack.
1228 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
1229 gdbscm_gdb_exception.
1230 (gdbscm_throw_gdb_exception): Likewise.
1231 (struct gdbscm_gdb_exception): New.
1232 (unpack): New function.
1233 (gdbscm_wrap): Use unpack.
1235 2019-04-25 Tom Tromey <tromey@adacore.com>
1237 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1238 (gdb_rl_callback_handler): Use std::move.
1239 * common/common-exceptions.h (struct gdb_exception): Add move
1240 assignment operator.
1241 (throw_exception_sjlj): Change "exception" to const reference.
1242 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
1243 (throw_exception_sjlj): Change "exception" to const reference.
1245 2019-04-25 Tom Tromey <tromey@adacore.com>
1247 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
1248 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
1249 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1251 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1253 * mi/mi-interp.c (mi_interp::exec): Update.
1254 * linespec.c (parse_linespec): Update.
1255 * infcall.c (run_inferior_call): Update.
1256 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
1257 * guile/scm-symbol.c (gdbscm_lookup_symbol)
1258 (gdbscm_lookup_global_symbol): Update.
1259 * guile/scm-param.c (gdbscm_parameter_value): Update.
1260 * guile/scm-frame.c (gdbscm_frame_read_register)
1261 (gdbscm_frame_read_var): Update.
1262 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1263 * exec.c (try_open_exec_file): Update.
1264 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1265 (gdb_rl_callback_handler): Update.
1266 * common/common-exceptions.h (exception_none): Don't declare.
1267 * common/common-exceptions.c (exception_none): Don't define.
1268 (struct catcher) <exception>: Update.
1269 * cli/cli-interp.c (safe_execute_command): Update.
1270 * breakpoint.c (insert_bp_location, location_to_sals): Update.
1272 2019-04-25 Ali Tamur <tamur@google.com>
1274 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
1275 (read_attribute_value): Likewise.
1276 (dwarf2_read_addr_index): Update comment.
1277 (read_str_index): Add DW_FORM_strx.
1278 (dwarf2_string_attr): Likewise.
1279 (dwarf2_const_value_attr): Likewise.
1280 (dump_die_shallow): Likewise.
1281 (dwarf2_fetch_constant_bytes): Likewise.
1282 (skip_form_bytes): Likewise.
1283 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
1285 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
1289 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
1290 OFFSET. Verify if current mapping contains an ELF header.
1291 (linux_find_memory_regions_full): Adjust call to
1294 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
1295 Kang Li <kanglictf@gmail.com>
1299 * dwarf2-frame.c (read_initial_length): Be consistent about using
1300 unsigned representation of length.
1301 (decode_frame_entry_1): Likewise. Check for wraparound of
1302 end pointer as well as buffer overflow.
1304 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
1306 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
1309 2019-04-24 Tom Tromey <tromey@adacore.com>
1311 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
1313 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1315 * s12z-tdep.c (s12z_unwind_pc): Delete.
1316 (s12z_unwind_sp): Delete.
1317 (s12z_gdbarch_init): Don't register deleted functions with
1320 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1322 * rl78-tdep.c (rl78_unwind_sp): Delete.
1323 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
1325 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1327 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
1328 (xstormy16_unwind_pc): Delete.
1329 (xstormy16_dummy_id): Delete.
1330 (xstormy16_gdbarch_init): Don't register deleted functions with
1333 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1335 * vax-tdep.c (vax_unwind_pc): Delete.
1336 (vax_gdbarch_init): Don't register deleted function with gdbarch.
1338 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1340 * v850-tdep.c (v850_unwind_sp): Delete.
1341 (v850_unwind_pc): Delete.
1342 (v850_dummy_id): Delete.
1343 (v850_gdbarch_init): Don't register deleted functions with
1346 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1348 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
1349 (tilegx_unwind_pc): Delete.
1350 (tilegx_unwind_dummy_id): Delete.
1351 (tilegx_gdbarch_init): Don't register deleted functions with
1354 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1356 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
1357 (tic6x_dummy_id): Delete.
1358 (tic6x_gdbarch_init): Don't register deleted functions with
1361 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1363 * sparc-tdep.c (sparc_unwind_pc): Delete.
1364 (sparc32_gdbarch_init): Don't register deleted function with
1367 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1369 * sh-tdep.c (sh_unwind_sp): Delete.
1370 (sh_unwind_pc): Delete.
1371 (sh_dummy_id): Delete.
1372 (sh_gdbarch_init): Don't register deleted functions with
1375 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1377 * score-tdep.c (score_unwind_sp): Delete.
1378 (score_unwind_pc): Delete.
1379 (score_dummy_id): Delete.
1380 (score_gdbarch_init): Don't register deleted functions with
1383 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1385 * rx-tdep.c (rx_unwind_pc): Delete.
1386 (rx_unwind_sp): Delete.
1387 (rx_dummy_id): Delete.
1388 (rx_gdbarch_init): Don't register deleted functions with
1389 gdbarch. Update comment.
1391 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1393 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
1394 (rs6000_dummy_id): Delete.
1395 (rs6000_gdbarch_init): Don't register deleted functions with
1398 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1400 * or1k-tdep.c (or1k_dummy_id): Delete.
1401 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
1403 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1405 * nios2-tdep.c (nios2_dummy_id): Delete.
1406 (nios2_unwind_sp): Delete.
1407 (nios2_gdbarch_init): Don't register deleted functions with
1410 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1412 * nds32-tdep.c (nds32_dummy_id): Delete.
1413 (nds32_unwind_pc): Delete.
1414 (nds32_unwind_sp): Delete.
1415 (nds32_gdbarch_init): Don't register deleted functions with
1418 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1420 * msp430-tdep.c (msp430_unwind_pc): Delete.
1421 (msp430_unwind_sp): Delete.
1422 (msp430_dummy_id): Delete.
1423 (msp430_gdbarch_init): Don't register deleted functions with
1426 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1428 * moxie-tdep.c (moxie_unwind_sp): Delete.
1429 (moxie_unwind_pc): Delete.
1430 (moxie_dummy_id): Delete.
1431 (moxie_gdbarch_init): Don't register deleted functions with
1434 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1436 * mn10300-tdep.c (mn10300_dummy_id): Delete.
1437 (mn10300_unwind_pc): Delete.
1438 (mn10300_unwind_sp): Delete.
1439 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
1441 (mn10300_frame_unwind_init): Don't register deleted functions with
1444 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1446 * mep-tdep.c (mep_unwind_pc): Delete.
1447 (mep_unwind_sp): Delete.
1448 (mep_dummy_id): Delete.
1449 (mep_gdbarch_init): Don't register deleted functions with
1452 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1454 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
1455 (m68hc11_unwind_sp): Delete.
1456 (m68hc11_gdbarch_init): Don't register deleted functions with
1459 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1461 * m32r-tdep.c (m32r_unwind_sp): Delete.
1462 (m32r_unwind_pc): Delete.
1463 (m32r_dummy_id): Delete.
1464 (m32r_gdbarch_init): Don't register deleted functions with
1467 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1469 * m32c-tdep.c (m32c_unwind_pc): Delete.
1470 (m32c_unwind_sp): Delete.
1471 (m32c_dummy_id): Delete.
1472 (m32c_gdbarch_init): Don't register deleted functions with
1475 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1477 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
1478 (lm32_unwind_pc): Delete.
1479 (lm32_dummy_id): Delete.
1480 (lm32_gdbarch_init): Don't register deleted functions with
1483 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1485 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
1486 (iq2000_unwind_pc): Delete.
1487 (iq2000_dummy_id): Delete.
1488 (iq2000_gdbarch_init): Don't register deleted functions with
1491 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1493 * nds32-tdep.c (nds32_type_align): Delete.
1494 (nds32_push_dummy_call): Use type_align instead.
1496 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1498 * arm-tdep.c (arm_type_align): Only handle vector override case.
1499 (arm_push_dummy_call): Use type_align.
1500 (arm_gdbarch_init): Register arm_type_align gdbarch function.
1502 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1504 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
1506 (pass_on_stack): Use type_align.
1507 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
1510 2019-04-23 Tom Tromey <tromey@adacore.com>
1512 * dwarf2read.c (line_header::file_name_at): Remove unused
1515 2019-04-23 Tom de Vries <tdevries@suse.de>
1518 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
1522 2019-03-27 Ali Tamur <tamur@google.com>
1524 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
1525 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
1526 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
1527 (dwarf_expr_context::get_addr_index): Likewise
1528 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
1529 (symbol_needs_eval_context::get_addr_index): Likewise
1530 (disassemble_dwarf_expression): Add DW_OP_addrx
1531 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
1532 (read_cutu_die_from_dwo): Update comment
1533 (skip_one_die): Add DW_FORM_addrx
1534 (read_attribute_value): Likewise
1535 (var_decode_location): Add DW_OP_addrx
1536 (dwarf2_const_value_attr): Add DW_FORM_addrx
1537 (dump_die_shallow): Likewise
1538 (dwarf2_fetch_constant_bytes): Likewise
1539 (decode_locdesc): Add DW_OP_addrx
1540 (skip_form_bytes): Add DW_FORM_addrx
1542 2019-04-22 Ali Tamur <tamur@google.com>
1544 * MAINTAINERS (Write After Approval): Add self.
1546 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
1548 * solib-svr4.c (get_svr4_info): Add pspace parameter.
1549 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
1550 (open_symbol_file_object): Likewise.
1551 (svr4_default_sos): Add info parameter.
1552 (svr4_read_so_list): Likewise.
1553 (svr4_current_sos_direct): Adjust functions calls to pass down
1555 (svr4_current_sos_1): Add info parameter.
1556 (svr4_current_sos): Call get_svr4_info, pass info down to
1558 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
1560 (svr4_in_dynsym_resolve_code): Pass current_program_space to
1562 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
1564 (probes_table_remove_objfile_probes): Likewise.
1565 (register_solib_event_probe): Add info parameter.
1566 (solist_update_incremental): Pass info parameter down to
1568 (disable_probes_interface): Add info parameter.
1569 (svr4_handle_solib_event): Pass current_program_space to
1570 get_svr4_info. Adjust disable_probes_interface cleanup.
1571 (svr4_create_probe_breakpoints): Add info parameter, pass it
1572 down to register_solib_event_probe.
1573 (svr4_create_solib_event_breakpoints): Add info parameter,
1574 pass it down to svr4_create_probe_breakpoints.
1575 (enable_break): Pass info down to
1576 svr4_create_solib_event_breakpoints.
1577 (svr4_solib_create_inferior_hook): Pass current_program_space to
1579 (svr4_clear_solib): Likewise.
1581 2019-04-22 Pedro Alves <palves@redhat.com>
1583 * solib-svr4.c (svr4_free_objfile_observer): New.
1584 (probe_and_action::objfile): New field.
1585 (probes_table_htab_remove_objfile_probes)
1586 (probes_table_remove_objfile_probes): New functions.
1587 (register_solib_event_probe): Add 'objfile' parameter. Store it
1588 in the new probe_and_action. Don't store the probe in 'lookup'.
1589 (svr4_create_probe_breakpoints): Pass objfile to
1590 register_solib_event_probe.
1591 (_initialize_svr4_solib): Register a free_objfile observer.
1593 2019-04-19 Tom Tromey <tom@tromey.com>
1595 * common/queue.h: Remove.
1597 2019-04-19 Tom Tromey <tom@tromey.com>
1599 * event-loop.c: Don't include "common/queue.h".
1601 2019-04-19 Tom Tromey <tom@tromey.com>
1603 * remote.c (remote_target): Use delete.
1604 * remote-notif.h: Include <list>, not "common/queue.h".
1605 (notif_client_p): Remove typedef.
1606 (remote_notif_state): Add constructor, destructor, initializer.
1607 <notif_queue>: Now a std::list.
1608 (remote_notif_state_xfree): Don't declare.
1609 * remote-notif.c (remote_notif_process, handle_notification)
1610 (remote_notif_state_allocate): Update.
1611 (~remote_notif_state): Rename from remote_notif_state_xfree.
1613 2019-04-19 Tom Tromey <tom@tromey.com>
1615 * symfile.c (reread_symbols): Update.
1616 * objfiles.c (objfile_register_static_link)
1617 (objfile_lookup_static_link): Update
1618 (~objfile) Don't delete static_links.
1619 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
1621 2019-04-19 Tom Tromey <tom@tromey.com>
1623 * type-stack.h (struct type_stack) <insert>: Constify string.
1624 * type-stack.c (type_stack::insert): Constify string.
1625 * gdbtypes.h (lookup_template_type): Update.
1626 (address_space_name_to_int): Update.
1627 * gdbtypes.c (address_space_name_to_int): Make space_identifier
1629 (lookup_template_type): Make name const.
1630 * c-exp.y: Update rules.
1631 (lex_one_token, classify_name, classify_inner_name)
1632 (c_print_token): Update.
1633 * p-exp.y: Update rules.
1635 * f-exp.y: Update rules.
1637 * d-exp.y: Update rules.
1638 (lex_one_token, classify_name, classify_inner_name): Update.
1639 * parse.c (write_dollar_variable, copy_name): Return std::string.
1640 * parser-defs.h (copy_name): Change return type.
1641 * m2-exp.y: Update rules.
1643 * go-exp.y (lex_one_token): Update.
1645 (classify_unsafe_function, classify_packaged_name)
1646 (classify_name, yylex): Update.
1648 2019-04-19 Sergei Trofimovich <siarheit@google.com>
1650 * configure.ac: add --enable-source-highlight switch.
1651 * configure: Regenerate.
1652 * top.c (print_gdb_version): plumb --enable-source-highlight
1653 status to "show configuration".
1655 2019-04-19 Tom Tromey <tromey@adacore.com>
1657 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
1659 (empty_record, ada_template_to_fixed_record_type_1)
1660 (template_to_static_fixed_type)
1661 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
1662 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
1663 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
1666 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
1669 * source.c (print_source_lines_base): Advance "iter" when a
1670 control character is seen.
1672 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1674 * inferior.h (struct infcall_suspend_state_deleter):
1675 Catch exception in destructor to avoid crash.
1677 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1679 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
1680 close to the add_com "shell".
1682 2019-04-18 Tom Tromey <tromey@adacore.com>
1684 * process-stratum-target.h (class process_stratum_target)
1685 <stratum>: Add "final".
1687 2019-04-17 Tom Tromey <tromey@adacore.com>
1689 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
1690 against nullptr before use.
1692 2019-04-17 Alan Hayward <alan.hayward@arm.com>
1694 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
1696 2019-04-17 Jim Wilson <jimw@sifive.com>
1697 Andrew Burgess <andrew.burgess@embecosm.com>
1699 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
1700 code read might fail, assume 4-byte breakpoint in that case.
1702 2019-04-15 Leszek Swirski <leszeks@google.com>
1704 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
1705 rather than a hand-rolled POD check when checking for forced MEMORY
1708 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1710 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
1711 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
1713 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
1714 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
1715 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
1718 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1720 * aarch64-linux-nat.c
1721 (aarch64_linux_nat_target::thread_architecture): Add override.
1722 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
1725 2019-04-15 Alan Hayward <alan.hayward@arm.com>
1727 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
1729 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
1731 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
1732 target types of size 96-bits, add some additional comments, and
1733 check that the builtin type we found was the correct size.
1735 2019-04-12 Eli Zaretskii <eliz@gnu.org>
1737 * utils.c (prompt_for_continue): Don't restore the styling at the
1738 end, as applied_style has the wrong value. This fixes styling in
1739 long lists of file names that are interrupted by the "Continue?"
1742 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
1744 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
1745 * c-lang.c (c_language_defn): Likewise.
1746 (cplus_language_defn): Likewise.
1747 (asm_language_defn): Likewise.
1748 (minimal_language_defn): Likewise.
1749 * d-lang.c (d_language_defn): Likewise.
1750 * f-lang.c (f_language_defn): Likewise.
1751 * go-lang.c (go_language_defn): Likewise.
1752 * language.c (unknown_language_defn): Likewise.
1753 (auto_language_defn): Likewise.
1754 * language.h (struct language_defn): Remove la_magic field.
1755 (LANG_MAGIC): Delete.
1756 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
1757 * objc-lang.c (objc_language_defn): Likewise.
1758 * opencl-lang.c (opencl_language_defn): Likewise.
1759 * p-lang.c (pascal_language_defn): Likewise.
1760 * rust-lang.c (rust_language_defn): Likewise.
1762 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1764 * riscv-tdep.c (riscv_type_align): New function.
1765 (riscv_type_alignment): Delete.
1766 (riscv_arg_location): Use 'type_align'.
1767 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
1769 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1771 * gdbtypes.c (type_align): A struct with no non-static fields also
1774 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1776 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
1778 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
1780 (riscv_struct_info::analyse): New implementation using new
1781 analyse_inner member function.
1782 (riscv_struct_info::field_offset): New member function.
1783 (riscv_struct_info::m_offsets): New member variable.
1784 (riscv_struct_info::analyse_inner): New private member function,
1785 takes the old implementation of riscv_struct_info::analyse but
1786 extended to track field offsets.
1787 (riscv_call_arg_struct): Update the struct folding special cases
1788 to handle cases where empty C++ structs, which are non-zero
1790 (riscv_arg_location): Initialise the length of each location, a
1791 non-zero length now indicates the location is in use.
1792 (riscv_push_dummy_call): Allow for the first location having a
1793 non-zero offset when setting up arguments.
1794 (riscv_return_value): Likewise, but for return values.
1796 2019-04-11 Tom Tromey <tromey@adacore.com>
1798 * utils.c (internal_vproblem): Make "msg" const.
1800 2019-04-11 Alan Hayward <alan.hayward@arm.com>
1802 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
1803 * trad-frame.c (trad_frame_reset_saved_regs): New function.
1804 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
1805 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
1807 2019-04-10 Kevin Buettner <kevinb@redhat.com>
1809 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
1811 (fill_gregset): Call amd64_linux_collect_native_gregset instead
1812 of amd64_collect_native_gregset.
1813 (amd64_linux_nat_target::store_registers): Likewise.
1815 2019-04-10 Tom Tromey <tom@tromey.com>
1817 * symtab.c (lookup_global_symbol_from_objfile)
1818 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
1819 * objfiles.h (class separate_debug_iterator): New.
1820 (class separate_debug_range): New.
1821 (struct objfile) <separate_debug_objfiles>: New method.
1822 (objfile_separate_debug_iterate): Don't declare.
1823 * objfiles.c (separate_debug_iterator::operator++): Rename from
1824 objfile_separate_debug_iterate.
1825 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
1827 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
1830 2019-04-10 Tom Tromey <tom@tromey.com>
1832 * symfile.c (reread_symbols): Remove old comment.
1833 * objfiles.c (free_all_objfiles): Fix a typo.
1835 2019-04-10 Tom Tromey <tom@tromey.com>
1837 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
1838 * minsyms.c (lookup_minimal_symbol): Use foreach.
1839 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
1840 (lookup_minimal_symbol_solib_trampoline): Likewise.
1841 * symfile.c (reread_symbols): Use foreach.
1843 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
1844 Tom Tromey <tromey@adacore.com>
1847 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
1848 (rust_lex_int_test): Change "value" to be LONGEST.
1849 (rust_lex_tests): Add test for long integer literal.
1851 2019-04-09 Tom Tromey <tromey@adacore.com>
1853 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
1855 (extended_remote_target::attach): Update.
1856 (remote_target::remote_notice_new_inferior): Update.
1857 (remote_target::add_current_inferior_and_thread): Update.
1858 * inferior.c (exit_inferior_1): Use "false".
1859 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
1861 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
1863 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
1864 the "start" command.
1866 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1868 * python/py-inferior.c (infpy_thread_from_thread_handle):
1869 Adjust comments to reflect renaming of thread_from_thread_handle
1870 to thread_from_handle. Adjust keywords. Fix type error message.
1871 (inferior_object_methods): Add thread_from_handle. Retain
1872 thread_from_thread_handle, but mark it as deprecated.
1874 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1876 * gdbthread.h (find_thread_by_handle): Revise declaration.
1877 * thread.c (find_thread_by_handle): Likewise. Adjust
1879 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
1880 support for buffer objects as handles.
1882 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1884 * python/py-infthread.c (thpy_thread_handle): New function.
1885 (thread_object_methods): Register thpy_thread_handle.
1887 2019-04-08 Kevin Buettner <kevinb@redhat.com>
1889 * gdbthread.h (thread_to_thread_handle): Declare.
1890 * thread.c (gdbtypes.h): Include.
1891 (thread_to_thread_handle): New function.
1893 * target.h (struct target_ops): Add thread_info_to_thread_handle.
1894 (target_thread_info_to_thread_handle): Declare.
1895 * target.c (target_thread_info_to_thread_handle): New function.
1896 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
1897 * target-delegates.c: Regenerate.
1899 * linux-thread-db.c (class thread_db_target): Add method
1900 thread_info_to_thread_handle.
1901 (thread_db_target::thread_info_to_thread_handle): Define.
1902 * remote.c (class remote_target): Add new method
1903 thread_info_to_thread_handle.
1904 (remote_target::thread_info_to_thread_handle): Define.
1906 2019-04-08 Pedro Alves <palves@redhat.com>
1908 * common/common-exceptions.c (throw_exception): Don't create
1909 named object to throw; throw directly.
1910 (throw_it): Likewise. Don't initialize gdb_exception::message
1911 here, with new; pass FMT and AP to the ctor instead.
1912 * common/common-exceptions.h: Include <string>.
1913 (gdb_exception::gdb_exception(enum return_reason, enum errors,
1914 const char *, va_list)): New ctor. Use std::make_shared.
1915 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
1917 (gdb_exception_error::gdb_exception_error(enum errors, const char
1919 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
1921 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
1923 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
1924 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
1927 2019-04-08 Tom Tromey <tom@tromey.com>
1929 * valops.c (value_rtti_indirect_type): Replace throw_exception
1931 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
1933 * thread.c (thr_try_catch_cmd): Replace throw_exception with
1935 * target.c (target_translate_tls_address): Replace throw_exception
1937 * stack.c (frame_apply_command_count): Replace throw_exception
1939 * solib-spu.c (append_ocl_sos): Replace throw_exception with
1941 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
1943 * rs6000-tdep.c (rs6000_frame_cache)
1944 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
1945 * remote.c: Replace throw_exception with throw.
1946 * record-full.c (record_full_message, record_full_wait_1)
1947 (record_full_restore): Replace throw_exception with throw.
1949 (get_thread_current_frame_id, record_btrace_start_replaying)
1950 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
1951 (cmd_record_btrace_start): Replace throw_exception with throw.
1952 * parse.c (parse_exp_in_context_1): Replace throw_exception with
1954 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
1955 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
1957 (find_linespec_symbols): Replace throw_exception with throw.
1958 * infrun.c (displaced_step_prepare, resume): Replace
1959 throw_exception with throw.
1960 * infcmd.c (post_create_inferior): Replace throw_exception with
1962 * inf-loop.c (inferior_event_handler): Replace throw_exception
1964 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
1965 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
1966 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
1967 (get_prev_frame_always, get_frame_pc_if_available)
1968 (get_frame_address_in_block_if_available, get_frame_language):
1969 Replace throw_exception with throw.
1970 * frame-unwind.c (frame_unwind_try_unwinder): Replace
1971 throw_exception with throw.
1972 * eval.c (fetch_subexp_value, evaluate_var_value)
1973 (evaluate_funcall, evaluate_subexp_standard): Replace
1974 throw_exception with throw.
1975 * dwarf2loc.c (call_site_find_chain)
1976 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
1977 Replace throw_exception with throw.
1978 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
1980 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
1982 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
1983 * completer.c (complete_line_internal): Replace throw_exception
1985 * compile/compile-object-run.c (compile_object_run): Replace
1986 throw_exception with throw.
1987 * cli/cli-script.c (process_next_line): Replace throw_exception
1989 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
1990 (btrace_enable, btrace_maint_update_pt_packets): Replace
1991 throw_exception with throw.
1992 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
1993 throw_exception with throw.
1994 * break-catch-throw.c (re_set_exception_catchpoint): Replace
1995 throw_exception with throw.
1996 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
1997 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
1998 * aarch64-tdep.c (aarch64_make_prologue_cache)
1999 (aarch64_make_stub_cache): Replace throw_exception with throw.
2001 2019-04-08 Tom Tromey <tom@tromey.com>
2003 * common/common-exceptions.c (throw_exception): Rename from
2004 throw_exception_cxx. Remove old copy. Make argument const.
2005 (throw_it): Create and throw exception objects directly.
2006 * common/common-exceptions.h (throw_exception): Make argument
2008 (struct gdb_exception_error): Add constructor.
2009 (struct gdb_exception_quit): Add constructor.
2011 2019-04-08 Tom Tromey <tom@tromey.com>
2013 * common/common-exceptions.h (exception_rethrow): Don't declare.
2014 (TRY_SJLJ): Update comment.
2015 (TRY, CATCH, END_CATCH): Remove.
2016 * common/common-exceptions.c (exception_rethrow): Remove.
2018 2019-04-08 Tom Tromey <tom@tromey.com>
2020 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
2022 (gdb_exception_error): Rename from
2023 gdb_exception_RETURN_MASK_ERROR.
2024 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
2025 (gdb_quit_bad_alloc): Update.
2026 * aarch64-tdep.c: Update.
2027 * ada-lang.c: Update.
2028 * ada-typeprint.c: Update.
2029 * ada-valprint.c: Update.
2030 * amd64-tdep.c: Update.
2031 * arch-utils.c: Update.
2032 * break-catch-throw.c: Update.
2033 * breakpoint.c: Update.
2035 * c-varobj.c: Update.
2036 * cli/cli-cmds.c: Update.
2037 * cli/cli-interp.c: Update.
2038 * cli/cli-script.c: Update.
2039 * common/common-exceptions.c: Update.
2040 * common/new-op.c: Update.
2041 * common/selftest.c: Update.
2042 * compile/compile-c-symbols.c: Update.
2043 * compile/compile-cplus-symbols.c: Update.
2044 * compile/compile-object-load.c: Update.
2045 * compile/compile-object-run.c: Update.
2046 * completer.c: Update.
2047 * corelow.c: Update.
2049 * cp-support.c: Update.
2050 * cp-valprint.c: Update.
2051 * darwin-nat.c: Update.
2052 * disasm-selftests.c: Update.
2053 * dtrace-probe.c: Update.
2054 * dwarf-index-cache.c: Update.
2055 * dwarf-index-write.c: Update.
2056 * dwarf2-frame-tailcall.c: Update.
2057 * dwarf2-frame.c: Update.
2058 * dwarf2loc.c: Update.
2059 * dwarf2read.c: Update.
2061 * event-loop.c: Update.
2062 * event-top.c: Update.
2064 * f-valprint.c: Update.
2065 * fbsd-tdep.c: Update.
2066 * frame-unwind.c: Update.
2068 * gdbtypes.c: Update.
2069 * gnu-v3-abi.c: Update.
2070 * guile/guile-internal.h: Update.
2071 * guile/scm-block.c: Update.
2072 * guile/scm-breakpoint.c: Update.
2073 * guile/scm-cmd.c: Update.
2074 * guile/scm-disasm.c: Update.
2075 * guile/scm-frame.c: Update.
2076 * guile/scm-lazy-string.c: Update.
2077 * guile/scm-math.c: Update.
2078 * guile/scm-param.c: Update.
2079 * guile/scm-ports.c: Update.
2080 * guile/scm-pretty-print.c: Update.
2081 * guile/scm-symbol.c: Update.
2082 * guile/scm-symtab.c: Update.
2083 * guile/scm-type.c: Update.
2084 * guile/scm-value.c: Update.
2085 * i386-linux-tdep.c: Update.
2086 * i386-tdep.c: Update.
2087 * inf-loop.c: Update.
2088 * infcall.c: Update.
2092 * language.c: Update.
2093 * linespec.c: Update.
2094 * linux-fork.c: Update.
2095 * linux-nat.c: Update.
2096 * linux-tdep.c: Update.
2097 * linux-thread-db.c: Update.
2099 * mi/mi-cmd-break.c: Update.
2100 * mi/mi-cmd-stack.c: Update.
2101 * mi/mi-interp.c: Update.
2102 * mi/mi-main.c: Update.
2103 * objc-lang.c: Update.
2104 * p-valprint.c: Update.
2106 * ppc-linux-tdep.c: Update.
2107 * printcmd.c: Update.
2108 * python/py-arch.c: Update.
2109 * python/py-breakpoint.c: Update.
2110 * python/py-cmd.c: Update.
2111 * python/py-finishbreakpoint.c: Update.
2112 * python/py-frame.c: Update.
2113 * python/py-framefilter.c: Update.
2114 * python/py-gdb-readline.c: Update.
2115 * python/py-inferior.c: Update.
2116 * python/py-infthread.c: Update.
2117 * python/py-lazy-string.c: Update.
2118 * python/py-linetable.c: Update.
2119 * python/py-objfile.c: Update.
2120 * python/py-param.c: Update.
2121 * python/py-prettyprint.c: Update.
2122 * python/py-progspace.c: Update.
2123 * python/py-record-btrace.c: Update.
2124 * python/py-record.c: Update.
2125 * python/py-symbol.c: Update.
2126 * python/py-type.c: Update.
2127 * python/py-unwind.c: Update.
2128 * python/py-utils.c: Update.
2129 * python/py-value.c: Update.
2130 * python/python.c: Update.
2131 * record-btrace.c: Update.
2132 * record-full.c: Update.
2133 * remote-fileio.c: Update.
2135 * riscv-tdep.c: Update.
2136 * rs6000-aix-tdep.c: Update.
2137 * rs6000-tdep.c: Update.
2138 * rust-exp.y: Update.
2139 * rust-lang.c: Update.
2140 * s390-tdep.c: Update.
2141 * selftest-arch.c: Update.
2142 * solib-dsbt.c: Update.
2143 * solib-frv.c: Update.
2144 * solib-spu.c: Update.
2145 * solib-svr4.c: Update.
2147 * sparc64-linux-tdep.c: Update.
2149 * symfile-mem.c: Update.
2150 * symmisc.c: Update.
2154 * tracefile-tfile.c: Update.
2155 * tui/tui.c: Update.
2156 * typeprint.c: Update.
2157 * unittests/cli-utils-selftests.c: Update.
2158 * unittests/parse-connection-spec-selftests.c: Update.
2160 * valprint.c: Update.
2163 * windows-nat.c: Update.
2164 * x86-linux-nat.c: Update.
2165 * xml-support.c: Update.
2167 2019-04-08 Tom Tromey <tom@tromey.com>
2169 * xml-support.c: Use C++ exception handling.
2170 * x86-linux-nat.c: Use C++ exception handling.
2171 * windows-nat.c: Use C++ exception handling.
2172 * varobj.c: Use C++ exception handling.
2173 * value.c: Use C++ exception handling.
2174 * valprint.c: Use C++ exception handling.
2175 * valops.c: Use C++ exception handling.
2176 * unittests/parse-connection-spec-selftests.c: Use C++ exception
2178 * unittests/cli-utils-selftests.c: Use C++ exception handling.
2179 * typeprint.c: Use C++ exception handling.
2180 * tui/tui.c: Use C++ exception handling.
2181 * tracefile-tfile.c: Use C++ exception handling.
2182 * top.c: Use C++ exception handling.
2183 * thread.c: Use C++ exception handling.
2184 * target.c: Use C++ exception handling.
2185 * symmisc.c: Use C++ exception handling.
2186 * symfile-mem.c: Use C++ exception handling.
2187 * stack.c: Use C++ exception handling.
2188 * sparc64-linux-tdep.c: Use C++ exception handling.
2189 * solib.c: Use C++ exception handling.
2190 * solib-svr4.c: Use C++ exception handling.
2191 * solib-spu.c: Use C++ exception handling.
2192 * solib-frv.c: Use C++ exception handling.
2193 * solib-dsbt.c: Use C++ exception handling.
2194 * selftest-arch.c: Use C++ exception handling.
2195 * s390-tdep.c: Use C++ exception handling.
2196 * rust-lang.c: Use C++ exception handling.
2197 * rust-exp.y: Use C++ exception handling.
2198 * rs6000-tdep.c: Use C++ exception handling.
2199 * rs6000-aix-tdep.c: Use C++ exception handling.
2200 * riscv-tdep.c: Use C++ exception handling.
2201 * remote.c: Use C++ exception handling.
2202 * remote-fileio.c: Use C++ exception handling.
2203 * record-full.c: Use C++ exception handling.
2204 * record-btrace.c: Use C++ exception handling.
2205 * python/python.c: Use C++ exception handling.
2206 * python/py-value.c: Use C++ exception handling.
2207 * python/py-utils.c: Use C++ exception handling.
2208 * python/py-unwind.c: Use C++ exception handling.
2209 * python/py-type.c: Use C++ exception handling.
2210 * python/py-symbol.c: Use C++ exception handling.
2211 * python/py-record.c: Use C++ exception handling.
2212 * python/py-record-btrace.c: Use C++ exception handling.
2213 * python/py-progspace.c: Use C++ exception handling.
2214 * python/py-prettyprint.c: Use C++ exception handling.
2215 * python/py-param.c: Use C++ exception handling.
2216 * python/py-objfile.c: Use C++ exception handling.
2217 * python/py-linetable.c: Use C++ exception handling.
2218 * python/py-lazy-string.c: Use C++ exception handling.
2219 * python/py-infthread.c: Use C++ exception handling.
2220 * python/py-inferior.c: Use C++ exception handling.
2221 * python/py-gdb-readline.c: Use C++ exception handling.
2222 * python/py-framefilter.c: Use C++ exception handling.
2223 * python/py-frame.c: Use C++ exception handling.
2224 * python/py-finishbreakpoint.c: Use C++ exception handling.
2225 * python/py-cmd.c: Use C++ exception handling.
2226 * python/py-breakpoint.c: Use C++ exception handling.
2227 * python/py-arch.c: Use C++ exception handling.
2228 * printcmd.c: Use C++ exception handling.
2229 * ppc-linux-tdep.c: Use C++ exception handling.
2230 * parse.c: Use C++ exception handling.
2231 * p-valprint.c: Use C++ exception handling.
2232 * objc-lang.c: Use C++ exception handling.
2233 * mi/mi-main.c: Use C++ exception handling.
2234 * mi/mi-interp.c: Use C++ exception handling.
2235 * mi/mi-cmd-stack.c: Use C++ exception handling.
2236 * mi/mi-cmd-break.c: Use C++ exception handling.
2237 * main.c: Use C++ exception handling.
2238 * linux-thread-db.c: Use C++ exception handling.
2239 * linux-tdep.c: Use C++ exception handling.
2240 * linux-nat.c: Use C++ exception handling.
2241 * linux-fork.c: Use C++ exception handling.
2242 * linespec.c: Use C++ exception handling.
2243 * language.c: Use C++ exception handling.
2244 * jit.c: Use C++ exception handling.
2245 * infrun.c: Use C++ exception handling.
2246 * infcmd.c: Use C++ exception handling.
2247 * infcall.c: Use C++ exception handling.
2248 * inf-loop.c: Use C++ exception handling.
2249 * i386-tdep.c: Use C++ exception handling.
2250 * i386-linux-tdep.c: Use C++ exception handling.
2251 * guile/scm-value.c: Use C++ exception handling.
2252 * guile/scm-type.c: Use C++ exception handling.
2253 * guile/scm-symtab.c: Use C++ exception handling.
2254 * guile/scm-symbol.c: Use C++ exception handling.
2255 * guile/scm-pretty-print.c: Use C++ exception handling.
2256 * guile/scm-ports.c: Use C++ exception handling.
2257 * guile/scm-param.c: Use C++ exception handling.
2258 * guile/scm-math.c: Use C++ exception handling.
2259 * guile/scm-lazy-string.c: Use C++ exception handling.
2260 * guile/scm-frame.c: Use C++ exception handling.
2261 * guile/scm-disasm.c: Use C++ exception handling.
2262 * guile/scm-cmd.c: Use C++ exception handling.
2263 * guile/scm-breakpoint.c: Use C++ exception handling.
2264 * guile/scm-block.c: Use C++ exception handling.
2265 * guile/guile-internal.h: Use C++ exception handling.
2266 * gnu-v3-abi.c: Use C++ exception handling.
2267 * gdbtypes.c: Use C++ exception handling.
2268 * frame.c: Use C++ exception handling.
2269 * frame-unwind.c: Use C++ exception handling.
2270 * fbsd-tdep.c: Use C++ exception handling.
2271 * f-valprint.c: Use C++ exception handling.
2272 * exec.c: Use C++ exception handling.
2273 * event-top.c: Use C++ exception handling.
2274 * event-loop.c: Use C++ exception handling.
2275 * eval.c: Use C++ exception handling.
2276 * dwarf2read.c: Use C++ exception handling.
2277 * dwarf2loc.c: Use C++ exception handling.
2278 * dwarf2-frame.c: Use C++ exception handling.
2279 * dwarf2-frame-tailcall.c: Use C++ exception handling.
2280 * dwarf-index-write.c: Use C++ exception handling.
2281 * dwarf-index-cache.c: Use C++ exception handling.
2282 * dtrace-probe.c: Use C++ exception handling.
2283 * disasm-selftests.c: Use C++ exception handling.
2284 * darwin-nat.c: Use C++ exception handling.
2285 * cp-valprint.c: Use C++ exception handling.
2286 * cp-support.c: Use C++ exception handling.
2287 * cp-abi.c: Use C++ exception handling.
2288 * corelow.c: Use C++ exception handling.
2289 * completer.c: Use C++ exception handling.
2290 * compile/compile-object-run.c: Use C++ exception handling.
2291 * compile/compile-object-load.c: Use C++ exception handling.
2292 * compile/compile-cplus-symbols.c: Use C++ exception handling.
2293 * compile/compile-c-symbols.c: Use C++ exception handling.
2294 * common/selftest.c: Use C++ exception handling.
2295 * common/new-op.c: Use C++ exception handling.
2296 * cli/cli-script.c: Use C++ exception handling.
2297 * cli/cli-interp.c: Use C++ exception handling.
2298 * cli/cli-cmds.c: Use C++ exception handling.
2299 * c-varobj.c: Use C++ exception handling.
2300 * btrace.c: Use C++ exception handling.
2301 * breakpoint.c: Use C++ exception handling.
2302 * break-catch-throw.c: Use C++ exception handling.
2303 * arch-utils.c: Use C++ exception handling.
2304 * amd64-tdep.c: Use C++ exception handling.
2305 * ada-valprint.c: Use C++ exception handling.
2306 * ada-typeprint.c: Use C++ exception handling.
2307 * ada-lang.c: Use C++ exception handling.
2308 * aarch64-tdep.c: Use C++ exception handling.
2310 2019-04-08 Tom Tromey <tom@tromey.com>
2312 * xml-support.c (gdb_xml_parser::parse): Update.
2313 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2314 * value.c (show_convenience): Update.
2315 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
2316 (test_parse_flags_qcs): Update.
2317 * thread.c (thr_try_catch_cmd): Update.
2318 * target.c (target_translate_tls_address): Update.
2319 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2320 (info_frame_command_core, frame_apply_command_count): Update.
2321 * rust-exp.y (rust_lex_exception_test): Update.
2322 * riscv-tdep.c (riscv_print_one_register_info): Update.
2323 * remote.c (remote_target::enable_btrace): Update.
2324 * record-btrace.c (record_btrace_enable_warn): Update.
2325 * python/py-utils.c (gdbpy_convert_exception): Update.
2326 * printcmd.c (do_one_display, print_variable_and_value): Update.
2327 * mi/mi-main.c (mi_print_exception): Update.
2328 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
2329 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2330 * linux-nat.c (linux_nat_target::attach): Update.
2331 * linux-fork.c (class scoped_switch_fork_info): Update.
2332 * infrun.c (displaced_step_prepare): Update.
2333 * infcall.c (call_function_by_hand_dummy): Update.
2334 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
2335 * gnu-v3-abi.c (print_one_vtable): Update.
2336 * frame.c (get_prev_frame_always): Update.
2337 * f-valprint.c (info_common_command_for_block): Update.
2338 * exec.c (try_open_exec_file): Update.
2339 * exceptions.c (print_exception, exception_print)
2340 (exception_fprintf, exception_print_same): Update.
2341 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
2342 * dwarf-index-cache.c (index_cache::store)
2343 (index_cache::lookup_gdb_index): Update.
2344 * darwin-nat.c (maybe_cache_shell): Update.
2345 * cp-valprint.c (cp_print_value_fields): Update.
2346 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
2347 (gcc_cplus_symbol_address): Update.
2348 * compile/compile-c-symbols.c (gcc_convert_symbol)
2349 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
2350 * common/selftest.c: Update.
2351 * common/common-exceptions.h (struct gdb_exception) <message>: Now
2353 (exception_try_scope_entry, exception_try_scope_exit): Don't
2355 (struct exception_try_scope): Remove.
2356 (TRY): Don't use exception_try_scope.
2357 (struct gdb_exception): Add constructor, operator=.
2359 (struct gdb_exception_RETURN_MASK_ALL)
2360 (struct gdb_exception_RETURN_MASK_ERROR)
2361 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
2362 (struct gdb_quit_bad_alloc): Update.
2363 * common/common-exceptions.c (exception_none): Change
2365 (struct catcher) <state, exception>: Initialize inline.
2366 <prev>: Remove member.
2367 (current_catcher): Remove.
2368 (catchers): New global.
2369 (exceptions_state_mc_init): Simplify.
2370 (catcher_pop): Remove.
2371 (exceptions_state_mc, exceptions_state_mc_catch): Update.
2372 (try_scope_depth, exception_try_scope_entry)
2373 (exception_try_scope_exit): Remove.
2374 (throw_exception_sjlj): Update.
2375 (exception_messages, exception_messages_size): Remove.
2376 (throw_it): Simplify.
2377 (gdb_exception_sliced_copy): Remove.
2378 (throw_exception_cxx): Update.
2379 * cli/cli-script.c (script_from_file): Update.
2380 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
2382 * ada-valprint.c (ada_val_print): Update.
2383 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
2384 (create_excep_cond_exprs): Update.
2386 2019-04-08 Tom Tromey <tom@tromey.com>
2388 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
2389 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
2390 (TRY, CATCH, END_CATCH): Remove some definitions.
2391 * common/common-exceptions.c: Don't use GDB_XCPT.
2392 (catcher_list_size): Remove.
2393 (throw_exception, throw_it): Simplify.
2395 2019-04-05 Tom Tromey <tom@tromey.com>
2397 Revert the header-sorting patch.
2398 * ft32-tdep.c: Revert.
2399 * frv-tdep.c: Revert.
2400 * frv-linux-tdep.c: Revert.
2402 * frame-unwind.c: Revert.
2403 * frame-base.c: Revert.
2404 * fork-child.c: Revert.
2405 * findvar.c: Revert.
2406 * findcmd.c: Revert.
2407 * filesystem.c: Revert.
2408 * filename-seen-cache.h: Revert.
2409 * filename-seen-cache.c: Revert.
2410 * fbsd-tdep.c: Revert.
2411 * fbsd-nat.h: Revert.
2412 * fbsd-nat.c: Revert.
2413 * f-valprint.c: Revert.
2414 * f-typeprint.c: Revert.
2416 * extension.h: Revert.
2417 * extension.c: Revert.
2418 * extension-priv.h: Revert.
2419 * expprint.c: Revert.
2422 * exceptions.c: Revert.
2423 * event-top.c: Revert.
2424 * event-loop.c: Revert.
2426 * elfread.c: Revert.
2427 * dwarf2read.h: Revert.
2428 * dwarf2read.c: Revert.
2429 * dwarf2loc.c: Revert.
2430 * dwarf2expr.h: Revert.
2431 * dwarf2expr.c: Revert.
2432 * dwarf2-frame.c: Revert.
2433 * dwarf2-frame-tailcall.c: Revert.
2434 * dwarf-index-write.h: Revert.
2435 * dwarf-index-write.c: Revert.
2436 * dwarf-index-common.c: Revert.
2437 * dwarf-index-cache.h: Revert.
2438 * dwarf-index-cache.c: Revert.
2439 * dummy-frame.c: Revert.
2440 * dtrace-probe.c: Revert.
2443 * disasm-selftests.c: Revert.
2444 * dictionary.c: Revert.
2445 * dicos-tdep.c: Revert.
2446 * demangle.c: Revert.
2449 * darwin-nat.h: Revert.
2450 * darwin-nat.c: Revert.
2451 * darwin-nat-info.c: Revert.
2452 * d-valprint.c: Revert.
2453 * d-namespace.c: Revert.
2456 * csky-tdep.c: Revert.
2457 * csky-linux-tdep.c: Revert.
2458 * cris-tdep.c: Revert.
2459 * cris-linux-tdep.c: Revert.
2460 * cp-valprint.c: Revert.
2461 * cp-support.c: Revert.
2462 * cp-namespace.c: Revert.
2464 * corelow.c: Revert.
2465 * corefile.c: Revert.
2466 * continuations.c: Revert.
2467 * completer.h: Revert.
2468 * completer.c: Revert.
2469 * complaints.c: Revert.
2470 * coffread.c: Revert.
2471 * coff-pe-read.c: Revert.
2472 * cli-out.h: Revert.
2473 * cli-out.c: Revert.
2474 * charset.c: Revert.
2475 * c-varobj.c: Revert.
2476 * c-valprint.c: Revert.
2477 * c-typeprint.c: Revert.
2479 * buildsym.c: Revert.
2480 * buildsym-legacy.c: Revert.
2481 * build-id.h: Revert.
2482 * build-id.c: Revert.
2484 * bsd-uthread.c: Revert.
2485 * breakpoint.h: Revert.
2486 * breakpoint.c: Revert.
2487 * break-catch-throw.c: Revert.
2488 * break-catch-syscall.c: Revert.
2489 * break-catch-sig.c: Revert.
2490 * blockframe.c: Revert.
2492 * bfin-tdep.c: Revert.
2493 * bfin-linux-tdep.c: Revert.
2494 * bfd-target.c: Revert.
2496 * ax-general.c: Revert.
2499 * avr-tdep.c: Revert.
2501 * auto-load.c: Revert.
2502 * arm-wince-tdep.c: Revert.
2503 * arm-tdep.c: Revert.
2504 * arm-symbian-tdep.c: Revert.
2505 * arm-pikeos-tdep.c: Revert.
2506 * arm-obsd-tdep.c: Revert.
2507 * arm-nbsd-tdep.c: Revert.
2508 * arm-nbsd-nat.c: Revert.
2509 * arm-linux-tdep.c: Revert.
2510 * arm-linux-nat.c: Revert.
2511 * arm-fbsd-tdep.c: Revert.
2512 * arm-fbsd-nat.c: Revert.
2513 * arm-bsd-tdep.c: Revert.
2514 * arch-utils.c: Revert.
2515 * arc-tdep.c: Revert.
2516 * arc-newlib-tdep.c: Revert.
2517 * annotate.h: Revert.
2518 * annotate.c: Revert.
2519 * amd64-windows-tdep.c: Revert.
2520 * amd64-windows-nat.c: Revert.
2521 * amd64-tdep.c: Revert.
2522 * amd64-sol2-tdep.c: Revert.
2523 * amd64-obsd-tdep.c: Revert.
2524 * amd64-obsd-nat.c: Revert.
2525 * amd64-nbsd-tdep.c: Revert.
2526 * amd64-nbsd-nat.c: Revert.
2527 * amd64-nat.c: Revert.
2528 * amd64-linux-tdep.c: Revert.
2529 * amd64-linux-nat.c: Revert.
2530 * amd64-fbsd-tdep.c: Revert.
2531 * amd64-fbsd-nat.c: Revert.
2532 * amd64-dicos-tdep.c: Revert.
2533 * amd64-darwin-tdep.c: Revert.
2534 * amd64-bsd-nat.c: Revert.
2535 * alpha-tdep.c: Revert.
2536 * alpha-obsd-tdep.c: Revert.
2537 * alpha-nbsd-tdep.c: Revert.
2538 * alpha-mdebug-tdep.c: Revert.
2539 * alpha-linux-tdep.c: Revert.
2540 * alpha-linux-nat.c: Revert.
2541 * alpha-bsd-tdep.c: Revert.
2542 * alpha-bsd-nat.c: Revert.
2543 * aix-thread.c: Revert.
2545 * addrmap.c: Revert.
2546 * ada-varobj.c: Revert.
2547 * ada-valprint.c: Revert.
2548 * ada-typeprint.c: Revert.
2549 * ada-tasks.c: Revert.
2550 * ada-lang.c: Revert.
2551 * aarch64-tdep.c: Revert.
2552 * aarch64-ravenscar-thread.c: Revert.
2553 * aarch64-newlib-tdep.c: Revert.
2554 * aarch64-linux-tdep.c: Revert.
2555 * aarch64-linux-nat.c: Revert.
2556 * aarch64-fbsd-tdep.c: Revert.
2557 * aarch64-fbsd-nat.c: Revert.
2558 * aarch32-linux-nat.c: Revert.
2560 2019-04-05 Tom Tromey <tom@tromey.com>
2562 * ft32-tdep.c: Sort headers.
2563 * frv-tdep.c: Sort headers.
2564 * frv-linux-tdep.c: Sort headers.
2565 * frame.c: Sort headers.
2566 * frame-unwind.c: Sort headers.
2567 * frame-base.c: Sort headers.
2568 * fork-child.c: Sort headers.
2569 * findvar.c: Sort headers.
2570 * findcmd.c: Sort headers.
2571 * filesystem.c: Sort headers.
2572 * filename-seen-cache.h: Sort headers.
2573 * filename-seen-cache.c: Sort headers.
2574 * fbsd-tdep.c: Sort headers.
2575 * fbsd-nat.h: Sort headers.
2576 * fbsd-nat.c: Sort headers.
2577 * f-valprint.c: Sort headers.
2578 * f-typeprint.c: Sort headers.
2579 * f-lang.c: Sort headers.
2580 * extension.h: Sort headers.
2581 * extension.c: Sort headers.
2582 * extension-priv.h: Sort headers.
2583 * expprint.c: Sort headers.
2584 * exec.h: Sort headers.
2585 * exec.c: Sort headers.
2586 * exceptions.c: Sort headers.
2587 * event-top.c: Sort headers.
2588 * event-loop.c: Sort headers.
2589 * eval.c: Sort headers.
2590 * elfread.c: Sort headers.
2591 * dwarf2read.h: Sort headers.
2592 * dwarf2read.c: Sort headers.
2593 * dwarf2loc.c: Sort headers.
2594 * dwarf2expr.h: Sort headers.
2595 * dwarf2expr.c: Sort headers.
2596 * dwarf2-frame.c: Sort headers.
2597 * dwarf2-frame-tailcall.c: Sort headers.
2598 * dwarf-index-write.h: Sort headers.
2599 * dwarf-index-write.c: Sort headers.
2600 * dwarf-index-common.c: Sort headers.
2601 * dwarf-index-cache.h: Sort headers.
2602 * dwarf-index-cache.c: Sort headers.
2603 * dummy-frame.c: Sort headers.
2604 * dtrace-probe.c: Sort headers.
2605 * disasm.h: Sort headers.
2606 * disasm.c: Sort headers.
2607 * disasm-selftests.c: Sort headers.
2608 * dictionary.c: Sort headers.
2609 * dicos-tdep.c: Sort headers.
2610 * demangle.c: Sort headers.
2611 * dcache.h: Sort headers.
2612 * dcache.c: Sort headers.
2613 * darwin-nat.h: Sort headers.
2614 * darwin-nat.c: Sort headers.
2615 * darwin-nat-info.c: Sort headers.
2616 * d-valprint.c: Sort headers.
2617 * d-namespace.c: Sort headers.
2618 * d-lang.c: Sort headers.
2619 * ctf.c: Sort headers.
2620 * csky-tdep.c: Sort headers.
2621 * csky-linux-tdep.c: Sort headers.
2622 * cris-tdep.c: Sort headers.
2623 * cris-linux-tdep.c: Sort headers.
2624 * cp-valprint.c: Sort headers.
2625 * cp-support.c: Sort headers.
2626 * cp-namespace.c: Sort headers.
2627 * cp-abi.c: Sort headers.
2628 * corelow.c: Sort headers.
2629 * corefile.c: Sort headers.
2630 * continuations.c: Sort headers.
2631 * completer.h: Sort headers.
2632 * completer.c: Sort headers.
2633 * complaints.c: Sort headers.
2634 * coffread.c: Sort headers.
2635 * coff-pe-read.c: Sort headers.
2636 * cli-out.h: Sort headers.
2637 * cli-out.c: Sort headers.
2638 * charset.c: Sort headers.
2639 * c-varobj.c: Sort headers.
2640 * c-valprint.c: Sort headers.
2641 * c-typeprint.c: Sort headers.
2642 * c-lang.c: Sort headers.
2643 * buildsym.c: Sort headers.
2644 * buildsym-legacy.c: Sort headers.
2645 * build-id.h: Sort headers.
2646 * build-id.c: Sort headers.
2647 * btrace.c: Sort headers.
2648 * bsd-uthread.c: Sort headers.
2649 * breakpoint.h: Sort headers.
2650 * breakpoint.c: Sort headers.
2651 * break-catch-throw.c: Sort headers.
2652 * break-catch-syscall.c: Sort headers.
2653 * break-catch-sig.c: Sort headers.
2654 * blockframe.c: Sort headers.
2655 * block.c: Sort headers.
2656 * bfin-tdep.c: Sort headers.
2657 * bfin-linux-tdep.c: Sort headers.
2658 * bfd-target.c: Sort headers.
2659 * bcache.c: Sort headers.
2660 * ax-general.c: Sort headers.
2661 * ax-gdb.h: Sort headers.
2662 * ax-gdb.c: Sort headers.
2663 * avr-tdep.c: Sort headers.
2664 * auxv.c: Sort headers.
2665 * auto-load.c: Sort headers.
2666 * arm-wince-tdep.c: Sort headers.
2667 * arm-tdep.c: Sort headers.
2668 * arm-symbian-tdep.c: Sort headers.
2669 * arm-pikeos-tdep.c: Sort headers.
2670 * arm-obsd-tdep.c: Sort headers.
2671 * arm-nbsd-tdep.c: Sort headers.
2672 * arm-nbsd-nat.c: Sort headers.
2673 * arm-linux-tdep.c: Sort headers.
2674 * arm-linux-nat.c: Sort headers.
2675 * arm-fbsd-tdep.c: Sort headers.
2676 * arm-fbsd-nat.c: Sort headers.
2677 * arm-bsd-tdep.c: Sort headers.
2678 * arch-utils.c: Sort headers.
2679 * arc-tdep.c: Sort headers.
2680 * arc-newlib-tdep.c: Sort headers.
2681 * annotate.h: Sort headers.
2682 * annotate.c: Sort headers.
2683 * amd64-windows-tdep.c: Sort headers.
2684 * amd64-windows-nat.c: Sort headers.
2685 * amd64-tdep.c: Sort headers.
2686 * amd64-sol2-tdep.c: Sort headers.
2687 * amd64-obsd-tdep.c: Sort headers.
2688 * amd64-obsd-nat.c: Sort headers.
2689 * amd64-nbsd-tdep.c: Sort headers.
2690 * amd64-nbsd-nat.c: Sort headers.
2691 * amd64-nat.c: Sort headers.
2692 * amd64-linux-tdep.c: Sort headers.
2693 * amd64-linux-nat.c: Sort headers.
2694 * amd64-fbsd-tdep.c: Sort headers.
2695 * amd64-fbsd-nat.c: Sort headers.
2696 * amd64-dicos-tdep.c: Sort headers.
2697 * amd64-darwin-tdep.c: Sort headers.
2698 * amd64-bsd-nat.c: Sort headers.
2699 * alpha-tdep.c: Sort headers.
2700 * alpha-obsd-tdep.c: Sort headers.
2701 * alpha-nbsd-tdep.c: Sort headers.
2702 * alpha-mdebug-tdep.c: Sort headers.
2703 * alpha-linux-tdep.c: Sort headers.
2704 * alpha-linux-nat.c: Sort headers.
2705 * alpha-bsd-tdep.c: Sort headers.
2706 * alpha-bsd-nat.c: Sort headers.
2707 * aix-thread.c: Sort headers.
2708 * agent.c: Sort headers.
2709 * addrmap.c: Sort headers.
2710 * ada-varobj.c: Sort headers.
2711 * ada-valprint.c: Sort headers.
2712 * ada-typeprint.c: Sort headers.
2713 * ada-tasks.c: Sort headers.
2714 * ada-lang.c: Sort headers.
2715 * aarch64-tdep.c: Sort headers.
2716 * aarch64-ravenscar-thread.c: Sort headers.
2717 * aarch64-newlib-tdep.c: Sort headers.
2718 * aarch64-linux-tdep.c: Sort headers.
2719 * aarch64-linux-nat.c: Sort headers.
2720 * aarch64-fbsd-tdep.c: Sort headers.
2721 * aarch64-fbsd-nat.c: Sort headers.
2722 * aarch32-linux-nat.c: Sort headers.
2724 2019-04-04 Tom Tromey <tom@tromey.com>
2726 * varobj.c (varobj_create): Update.
2727 * rust-exp.y (struct rust_parser) <update_innermost_block,
2728 lookup_symbol>: New methods.
2729 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
2731 (rust_parser::rust_lookup_type)
2732 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2733 * printcmd.c (display_command, do_one_display): Update.
2734 * parser-defs.h (struct parser_state) <parser_state>: Add
2735 "tracker" parameter.
2736 (block_tracker): New member.
2737 (class innermost_block_tracker) <innermost_block_tracker>: Add
2739 <reset>: Remove method.
2740 (innermost_block): Don't declare.
2741 (null_post_parser): Update.
2742 * parse.c (innermost_block): Remove global.
2743 (write_dollar_variable): Update.
2744 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
2745 Remove "tracker_types" parameter.
2746 (parse_expression): Add "tracker" parameter.
2747 (parse_expression_for_completion): Update.
2748 (null_post_parser): Add "tracker" parameter.
2749 * p-exp.y: Update rules.
2750 * m2-exp.y: Update rules.
2751 * language.h (struct language_defn) <la_post_parser>: Add
2752 "tracker" parameter.
2753 * go-exp.y: Update rules.
2754 * f-exp.y: Update rules.
2755 * expression.h (parse_expression, parse_exp_1): Add "tracker"
2757 * d-exp.y: Update rules.
2758 * c-exp.y: Update rules.
2759 * breakpoint.c (set_breakpoint_condition): Create an
2760 innermost_block_tracker.
2761 (watch_command_1): Likewise.
2762 * ada-lang.c (resolve): Add "tracker" parameter.
2763 (resolve_subexp): Likewise.
2764 * ada-exp.y (write_var_from_sym): Update.
2766 2019-04-04 Tom Tromey <tom@tromey.com>
2768 * type-stack.h: New file.
2769 * type-stack.c: New file.
2770 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
2772 (insert_into_type_stack, insert_type, push_type, push_type_int)
2773 (insert_type_address_space, pop_type, pop_type_int)
2774 (pop_typelist, pop_type_stack, append_type_stack)
2775 (push_type_stack, get_type_stack, push_typelist)
2776 (follow_type_instance_flags, follow_types): Don't declare.
2777 * parse.c (type_stack): Remove global.
2778 (parse_exp_in_context): Update.
2779 (insert_into_type_stack, insert_type, push_type, push_type_int)
2780 (insert_type_address_space, pop_type, pop_type_int)
2781 (pop_typelist, pop_type_stack, append_type_stack)
2782 (push_type_stack, get_type_stack, push_typelist)
2783 (follow_type_instance_flags, follow_types): Remove (moved to
2785 * f-exp.y (type_stack): New global.
2787 (push_kind_type, f_parse): Update.
2788 * d-exp.y (type_stack): New global.
2791 * c-exp.y (struct c_parse_state) <type_stack>: New member.
2793 * Makefile.in (COMMON_SFILES): Add type-stack.c.
2794 (HFILES_NO_SRCDIR): Add type-stack.h.
2796 2019-04-04 Tom Tromey <tom@tromey.com>
2798 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
2799 (rust_parser::convert_ast_to_expression, rust_parse)
2800 (rust_lex_test_completion, rust_lex_tests): Update.
2801 * parser-defs.h (struct expr_completion_state): New.
2802 (struct parser_state) <parser_state>: Add completion parameter.
2803 <mark_struct_expression, mark_completion_tag>: New methods.
2804 <parse_completion, m_completion_state>: New members.
2805 (prefixify_expression, null_post_parser): Update.
2806 (mark_struct_expression, mark_completion_tag): Don't declare.
2807 * parse.c (parse_completion, expout_last_struct)
2808 (expout_tag_completion_type, expout_completion_name): Remove
2810 (parser_state::mark_struct_expression)
2811 (parser_state::mark_completion_tag): Now methods.
2812 (prefixify_expression): Add last_struct parameter.
2813 (prefixify_subexp): Likewise.
2814 (parse_exp_1): Update.
2815 (parse_exp_in_context): Add cstate parameter. Update.
2816 (parse_expression_for_completion): Create an
2817 expr_completion_state.
2818 (null_post_parser): Add "completion" parameter.
2819 * p-exp.y: Update rules.
2821 * language.h (struct language_defn) <la_post_parser>: Add
2822 "completing" parameter.
2823 * go-exp.y: Update rules.
2824 (lex_one_token): Update.
2825 * expression.h (parse_completion): Don't declare.
2826 * d-exp.y: Update rules.
2827 (lex_one_token): Update rules.
2828 * c-exp.y: Update rules.
2829 (lex_one_token): Update.
2830 * ada-lang.c (resolve): Add "parse_completion" parameter.
2831 (resolve_subexp): Likewise.
2832 (ada_resolve_function): Likewise.
2834 2019-04-04 Tom Tromey <tom@tromey.com>
2836 * parser-defs.h (struct parser_state) <start_arglist,
2837 end_arglist>: New methods.
2838 <arglist_len, m_funcall_chain>: New members.
2839 (arglist_len, start_arglist, end_arglist): Don't declare.
2840 * parse.c (arglist_len, funcall_chain): Remove global.
2841 (start_arglist, end_arglist): Remove functions.
2842 (parse_exp_in_context): Update.
2843 * p-exp.y: Update rules.
2844 * m2-exp.y: Update rules.
2845 * go-exp.y: Update rules.
2846 * f-exp.y: Update rules.
2847 * d-exp.y: Update rules.
2848 * c-exp.y: Update rules.
2850 2019-04-04 Tom Tromey <tom@tromey.com>
2852 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
2853 lex_operator, push_back>: New methods.
2855 (rust_parser::lex_hex, lex_escape): Rename and update.
2856 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
2857 (rust_parser::lex_operator): Rename and update.
2858 (rust_parser::lex_number, rustyylex, rustyyerror)
2859 (rust_lex_test_init, rust_lex_test_sequence)
2860 (rust_lex_test_push_back, rust_lex_tests): Update.
2861 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
2863 <lexptr, prev_lexptr>: New members.
2864 (lexptr, prev_lexptr): Don't declare.
2865 * parse.c (lexptr, prev_lexptr): Remove globals.
2866 (parse_exp_in_context): Update.
2867 * p-exp.y (yylex, yyerror): Update.
2868 * m2-exp.y (parse_number, yylex, yyerror): Update.
2869 * go-exp.y (lex_one_token, yyerror): Update.
2870 * f-exp.y (match_string_literal, yylex, yyerror): Update.
2871 * d-exp.y (lex_one_token, yyerror): Update.
2872 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
2873 (lex_one_token, yyerror): Update.
2874 * ada-lex.l (YY_INPUT): Update.
2875 (rewind_to_char): Update.
2876 * ada-exp.y (yyerror): Update.
2878 2019-04-04 Tom Tromey <tom@tromey.com>
2880 * rust-exp.y (rustyylex, rust_lex_tests): Update.
2881 * parser-defs.h (struct parser_state) <parser_state>: Add new
2883 <comma_terminates>: New member.
2884 (comma_terminates): Don't declare global.
2885 * parse.c (comma_terminates): Remove global.
2886 (parse_exp_in_context): Update.
2887 * p-exp.y (yylex): Update.
2888 * m2-exp.y (yylex): Update.
2889 * go-exp.y (lex_one_token): Update.
2890 * f-exp.y (yylex): Update.
2891 * d-exp.y (lex_one_token): Update.
2892 * c-exp.y (lex_one_token): Update.
2893 * ada-lex.l: Update.
2895 2019-04-04 Tom Tromey <tom@tromey.com>
2897 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
2898 (rustyylex, rust_lex_test_init, rust_lex_test_one)
2899 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
2900 * parser-defs.h (paren_depth): Don't declare.
2901 * parse.c (paren_depth): Remove global.
2902 (parse_exp_in_context): Update.
2903 * p-exp.y (paren_depth): New global.
2904 (pascal_parse): Initialize it.
2905 * m2-exp.y (paren_depth): New global.
2906 (m2_parse): Initialize it.
2907 * go-exp.y (paren_depth): New global.
2908 (go_parse): Initialize it.
2909 * f-exp.y (paren_depth): New global.
2910 (f_parse): Initialize it.
2911 * d-exp.y (paren_depth): New global.
2912 (d_parse): Initialize it.
2913 * c-exp.y (paren_depth): New global.
2914 (c_parse): Initialize it.
2915 * ada-lex.l (paren_depth): New global.
2916 (lexer_init): Initialize it.
2918 2019-04-04 Tom Tromey <tom@tromey.com>
2920 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
2921 (rust_parser::convert_ast_to_type)
2922 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2923 * parser-defs.h (struct parser_state) <parser_state>: Add
2924 parameters. Initialize new members.
2925 <expression_context_block, expression_context_pc>: New members.
2926 * parse.c (expression_context_block, expression_context_pc):
2928 (parse_exp_in_context): Update.
2929 * p-exp.y: Update all rules.
2931 * m2-exp.y: Update all rules.
2933 * go-exp.y (yylex): Update.
2934 * f-exp.y (yylex): Update.
2935 * d-exp.y: Update all rules.
2937 * c-exp.y: Update all rules.
2938 (lex_one_token, classify_name, yylex, c_parse): Update.
2939 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
2941 2019-04-04 Tom Tromey <tom@tromey.com>
2943 * gdbarch.h, gdbarch.c: Rebuild.
2944 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
2946 (struct stap_parse_info): Replace "parser_state" with
2948 * parser-defs.h (struct expr_builder): Rename from "parser_state".
2949 (parser_state): New class.
2950 * parse.c (expr_builder): Rename.
2951 (expr_builder::release): Rename.
2952 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2953 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2954 (write_exp_elt_longcst, write_exp_elt_floatcst)
2955 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2956 (write_exp_string_vector, write_exp_bitstring)
2957 (write_exp_msymbol, mark_struct_expression)
2958 (write_dollar_variable)
2959 (insert_type_address_space, increase_expout_size): Replace
2960 "parser_state" with "expr_builder".
2961 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
2962 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
2963 "parser_state" with "expr_builder".
2965 2019-04-04 Tom Tromey <tom@tromey.com>
2967 * rust-exp.y: Replace "parse_language" with method call.
2969 (yylex): Replace "parse_language" with method call.
2971 (yylex): Replace "parse_language" with method call.
2972 * go-exp.y (classify_name): Replace "parse_language" with method
2974 * f-exp.y (yylex): Replace "parse_language" with method call.
2975 * d-exp.y (lex_one_token): Replace "parse_language" with method
2978 (lex_one_token, classify_name, yylex): Replace "parse_language"
2980 * ada-exp.y (find_primitive_type, type_char)
2981 (type_system_address): Replace "parse_language" with method call.
2983 2019-04-04 Tom Tromey <tom@tromey.com>
2985 * rust-exp.y: Replace "parse_gdbarch" with method call.
2986 * parse.c (write_dollar_variable, insert_type_address_space):
2987 Replace "parse_gdbarch" with method call.
2988 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
2990 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
2992 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
2993 "parse_gdbarch" with method call.
2994 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
2996 * f-exp.y (parse_type, parse_f_type, yylex): Replace
2997 "parse_gdbarch" with method call.
2998 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
2999 "parse_gdbarch" with method call.
3000 * c-exp.y (parse_type, parse_number, classify_name): Replace
3001 "parse_gdbarch" with method call.
3002 * ada-lex.l: Replace "parse_gdbarch" with method call.
3003 * ada-exp.y (parse_type, find_primitive_type, type_char)
3004 (type_system_address): Replace "parse_gdbarch" with method call.
3006 2019-04-04 Tom Tromey <tom@tromey.com>
3008 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3009 * stap-probe.c (stap_parse_argument): Update.
3010 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
3011 initial_size parameter.
3012 * rust-exp.y (rust_lex_tests): Update.
3013 * parse.c (parser_state): Update.
3014 (parse_exp_in_context): Update.
3015 * parser-defs.h (struct parser_state) <parser_state>: Remove
3016 "initial_size" parameter.
3018 2019-04-04 Tom Tromey <tom@tromey.com>
3020 * parser-defs.h (increase_expout_size): Don't declare.
3021 * parse.c (increase_expout_size): Now static.
3023 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
3025 * gnu-nat.c (gnu_nat_target::wait): Fix
3026 target_waitstatus_to_string call.
3028 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3030 * eval.c (evaluate_subexp_standard): Handle internal functions
3031 during Fortran function call handling.
3033 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3035 * NEWS: Mention new internal functions.
3036 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
3037 (read_base_type): Use dwarf2_init_complex_target_type.
3038 * value.c (creal_internal_fn): New function.
3039 (cimag_internal_fn): New function.
3040 (_initialize_values): Register new internal functions.
3042 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3044 * infrun.c (stop_all_threads): If debug_infrun, always
3045 trace the wait status after wait_one, using
3046 target_waitstatus_to_string and target_pid_to_str.
3047 (handle_inferior_event): Replace various trace of
3048 wait status kind by a single trace.
3049 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
3050 wait status kind image by target_waitstatus_to_string.
3051 * target/waitstatus.c (target_waitstatus_to_string): Fix
3054 2019-04-01 Tom Tromey <tromey@adacore.com>
3057 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
3059 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
3060 Pedro Alves <palves@redhat.com>
3062 * top.c (quit_force): Call 'finalize_values'.
3063 * value.c (finalize_values): New function.
3064 * value.h (finalize_values): Declare.
3066 2019-03-30 Eli Zaretskii <eliz@gnu.org>
3068 * NEWS: Announce $_gdb_major and $_gdb_minor.
3070 * top.c (init_gdb_version_vars): New function.
3071 (gdb_init): Call init_gdb_version_vars.
3073 2019-03-29 Tom Tromey <tromey@adacore.com>
3075 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
3076 help text. Remove dead code.
3078 2019-03-29 Keith Seitz <keiths@redhat.com>
3080 From Siddhesh Poyarekar:
3081 * f-lang.h (f77_get_upperbound): Return LONGEST.
3082 (f77_get_lowerbound): Likewise.
3083 * f-typeprint.c (f_type_print_varspec_suffix): Expand
3084 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
3086 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
3087 plongest to format print it.
3088 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
3089 (f77_get_upperbound): Likewise.
3090 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
3091 LOWER_BOUND to LONGEST.
3092 (f77_create_arrayprint_offset_tbl): Likewise.
3094 2019-03-29 Keith Seitz <keiths@redhat.com>
3096 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3097 %s/pulongest for TYPE_LENGTH instead of %d in format
3099 * ada-typerint.c (ada_print_type): Likewise.
3100 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
3101 * compile/compile-c-support.c (generate_register_struct): Likewise.
3102 * gdbtypes.c (recursive_dump_type): Likewise.
3103 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
3104 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
3105 instead of %d in format strings.
3106 * riscv-tdep.c (riscv_type_alignment): Cast second argument
3107 to std::min to ULONGEST.
3108 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
3109 instead of %d in format strings.
3110 * tracepoint.c (info_scope_command): Likewise.
3111 * typeprint.c (print_offset_data::update)
3112 (print_offset_data::finish): Likewise.
3113 * xtensa-tdep.c (xtensa_store_return_value)
3114 (xtensa_push_dummy_call): Likewise.
3116 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
3118 * windows-nat.c (display_selector): Fixed format specifications
3121 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3123 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
3125 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
3127 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
3128 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
3129 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
3130 (nios2_linux_init_abi): Install it.
3132 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3134 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
3136 2019-03-28 Alan Hayward <alan.hayward@arm.com>
3138 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
3140 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3141 Tom Tromey <tromey@adacore.com>
3143 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
3145 2019-03-26 Joel Brobecker <brobecker@adacore.com>
3147 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
3148 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
3149 method to compute the bounds of range types. Also print "[evaluated]"
3150 if the bounds' values come from a dynamic evaluation.
3152 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
3154 * cp-valprint.c (cp_print_value_fields): Don't print trailing
3155 whitespace when pretty printing is on.
3157 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3159 * ppc-linux-nat.c: Add include.
3161 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3163 * NEWS: Mention AArch64 Pointer Authentication.
3165 2019-03-26 Alan Hayward <alan.hayward@arm.com>
3167 * arm-linux-nat.c: Add include.
3169 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
3171 * source-cache.c (source_cache::get_source_lines): Re-read
3172 fullname after calling open_source_file.
3174 2019-03-25 John Baldwin <jhb@FreeBSD.org>
3176 * NEWS: Mention TLS support for FreeBSD.
3178 2019-03-25 Tom Tromey <tromey@adacore.com>
3180 * minsyms.c (BUNCH_SIZE): Update comment.
3181 (~minimal_symbol_reader): Remove old comment.
3182 (compact_minimal_symbols): Update comment.
3183 (minimal_symbol_reader::install): Remove old comment. Update
3186 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3188 * s390-linux-nat.c: Add include.
3190 2019-03-25 Alan Hayward <alan.hayward@arm.com>
3192 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3193 Call linux_get_hwcap.
3194 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
3196 (aarch64_linux_get_hwcap): Remove function.
3197 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
3199 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
3201 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3202 * linux-tdep.c (linux_get_hwcap): Add function.
3203 (linux_get_hwcap2): Likewise.
3204 * linux-tdep.h (linux_get_hwcap): Add declaration.
3205 (linux_get_hwcap2): Likewise.
3206 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
3207 (ppc_linux_get_hwcap2): Likewise.
3208 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
3210 (ppc_linux_nat_target::insert_watchpoint): Likewise.
3211 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
3212 (ppc_linux_nat_target::read_description): Likewise.
3213 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
3214 * s390-linux-nat.c: Likewise.
3215 * s390-linux-tdep.c (s390_core_read_description): Likewise.
3217 2019-03-24 Tom Tromey <tom@tromey.com>
3219 * ada-lang.c (standard_lookup): Simplify initialization.
3220 (ada_lookup_symbol_nonlocal): Simplify return.
3221 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
3222 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
3223 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
3224 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
3226 * solib.c (solib_global_lookup): Simplify.
3227 * symtab.c (null_block_symbol): Remove.
3228 (symbol_cache_lookup): Simplify returns.
3229 (lookup_language_this): Simplify returns.
3230 (lookup_symbol_aux): Simplify return.
3231 (lookup_local_symbol): Simplify returns.
3232 (lookup_global_symbol_from_objfile): Simplify return.
3233 (lookup_symbol_in_objfile_symtabs)
3234 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
3235 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
3236 (lookup_static_symbol, lookup_global_symbol): Simplify return.
3237 * cp-namespace.c (cp_lookup_bare_symbol)
3238 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
3239 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
3240 (cp_lookup_nested_symbol): Don't use null_block_symbol.
3241 (cp_lookup_symbol_via_imports): Simplify initialization.
3242 (find_symbol_in_baseclass): Likewise.
3243 * symtab.h (null_block_symbol): Remove.
3244 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
3245 (d_lookup_nested_symbol, d_lookup_symbol_imports)
3246 (d_lookup_symbol_module): Likewise.
3247 (find_symbol_in_baseclass): Simplify initialization.
3249 2019-03-24 Tom Tromey <tom@tromey.com>
3251 * expression.h: Don't include symtab.h.
3252 (struct block): Forward declare.
3254 2019-03-24 Tom Tromey <tom@tromey.com>
3256 * c-exp.y (typebase): Remove casts.
3257 * gdbtypes.c (lookup_unsigned_typename, )
3258 (lookup_signed_typename): Remove cast.
3259 * eval.c (parse_to_comma_and_eval): Remove cast.
3260 * parse.c (write_dollar_variable): Remove cast.
3261 * block.h (struct block) <superblock>: Now const.
3262 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
3263 * psymtab.c (psym_map_matching_symbols): Make "block" const.
3264 (map_block): Make "block" const.
3265 * symfile.h (struct quick_symbol_functions)
3266 <map_matching_symbols>: Constify block argument to "callback".
3267 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
3269 (find_pc_sect_compunit_symtab): Make "b" const.
3270 (find_symbol_at_address): Likewise.
3271 (search_symbols): Likewise.
3272 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
3273 (dw2_debug_names_lookup_symbol): Likewise.
3274 (dw2_map_matching_symbols): Update.
3275 * p-valprint.c (pascal_val_print): Remove "block".
3276 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
3277 (aux_add_nonlocal_symbols): Make "block" const.
3278 (resolve_subexp): Remove cast.
3279 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
3281 (iterate_over_file_blocks): Likewise.
3282 * f-exp.y (%union) <bval>: Remove.
3283 * coffread.c (patch_opaque_types): Make "b" const.
3284 * spu-tdep.c (spu_catch_start): Make "block" const.
3285 * c-valprint.c (print_unpacked_pointer): Remove "block".
3286 * symmisc.c (dump_symtab_1): Make "b" const.
3287 (block_depth): Make "block" const.
3288 * d-exp.y (%union) <bval>: Remove.
3289 * cp-support.h (cp_lookup_rtti_type): Update.
3290 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
3291 * psymtab.c (psym_lookup_symbol): Make "block" const.
3292 (maintenance_check_psymtabs): Make "b" const.
3293 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
3294 (enumerate_locals, enumerate_args): Update.
3295 * python/py-symtab.c (stpy_global_block): Make "block" const.
3296 (stpy_static_block): Likewise.
3297 * inline-frame.c (block_starting_point_at): Make "new_block"
3299 * block.c (find_block_in_blockvector): Make return type const.
3300 (blockvector_for_pc_sect): Make "b" const.
3301 (find_block_in_blockvector): Make "b" const.
3303 2019-03-23 Tom Tromey <tom@tromey.com>
3305 * varobj.c (varobj_create): Update.
3306 * symfile.c (clear_symtab_users): Don't reset innermost_block.
3307 * printcmd.c (display_command, do_one_display): Don't reset
3309 * parser-defs.h (enum innermost_block_tracker_type): Move to
3311 (innermost_block): Update comment.
3312 * parse.c (parse_exp_1): Add tracker_types parameter.
3313 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
3314 tracker_types parameter. Reset innermost_block.
3315 (parse_exp_in_context): Remove.
3316 (parse_expression_for_completion): Update.
3317 * objfiles.c (~objfile): Don't reset expression_context_block or
3319 * expression.h (enum innermost_block_tracker_type): Move from
3321 (parse_exp_1): Add tracker_types parameter.
3322 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
3323 reset innermost_block.
3325 2019-03-23 Tom Tromey <tom@tromey.com>
3327 * objfiles.h: Include bcache.h.
3329 2019-03-23 Tom Tromey <tom@tromey.com>
3331 * linespec.c (get_current_search_block): Use
3332 scoped_restore_current_language.
3333 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
3335 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3336 Jiong Wang <jiong.wang@arm.com>
3338 * aarch64-linux-tdep.c
3339 (aarch64_linux_iterate_over_regset_sections): Check for pauth
3341 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
3343 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3344 Jiong Wang <jiong.wang@arm.com>
3346 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
3348 (aarch64_analyze_prologue_test): Add PACIASP test.
3349 (aarch64_prologue_prev_register): Unmask PC value.
3351 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3352 Jiong Wang <jiong.wang@arm.com>
3354 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
3355 (aarch64_dwarf2_prev_register): Unmask PC value.
3356 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
3357 (aarch64_execute_dwarf_cfa_vendor_op): Check for
3358 DW_CFA_AARCH64_negate_ra_state.
3359 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
3361 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3362 Jiong Wang <jiong.wang@arm.com>
3364 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
3366 (aarch64_pseudo_register_name): Likewise.
3367 (aarch64_pseudo_register_type): Likewise.
3368 (aarch64_pseudo_register_reggroup_p): Likewise.
3369 (aarch64_gdbarch_init): Add pauth registers.
3370 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
3371 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
3372 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
3373 (struct gdbarch_tdep): Add regnum for ra_state.
3375 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3376 Jiong Wang <jiong.wang@arm.com>
3378 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
3380 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3381 Jiong Wang <jiong.wang@arm.com>
3383 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
3385 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
3386 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
3387 (aarch64_gdbarch_init): Add puth registers.
3388 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
3389 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
3390 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
3392 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3393 Jiong Wang <jiong.wang@arm.com>
3395 * aarch64-linux-nat.c
3396 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
3397 * aarch64-linux-tdep.c
3398 (aarch64_linux_core_read_description): Likewise.
3399 (aarch64_linux_get_hwcap): New function.
3400 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
3401 (aarch64_linux_get_hwcap): New declaration.
3403 2019-03-22 Alan Hayward <alan.hayward@arm.com>
3404 Jiong Wang <jiong.wang@arm.com>
3406 * aarch64-linux-nat.c
3407 (aarch64_linux_nat_target::read_description): Add pauth param.
3408 * aarch64-linux-tdep.c
3409 (aarch64_linux_core_read_description): Likewise.
3410 * aarch64-tdep.c (struct target_desc): Add in pauth.
3411 (aarch64_read_description): Add pauth param.
3412 (aarch64_gdbarch_init): Likewise.
3413 * aarch64-tdep.h (aarch64_read_description): Likewise.
3414 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3415 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3416 * features/Makefile: Add new files.
3417 * features/aarch64-pauth.c: New file.
3418 * features/aarch64-pauth.xml: New file.
3420 2019-03-20 Tom Tromey <tromey@adacore.com>
3422 * infrun.c (handle_inferior_event): Rename from
3423 handle_inferior_event_1. Create a scoped_value_mark.
3424 (handle_inferior_event): Remove.
3426 2019-03-19 Tom Tromey <tromey@adacore.com>
3428 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
3429 * infrun.h (print_stop_event): Add "displays" parameter.
3430 * infrun.c (print_stop_event): Add "displays" parameter.
3432 2019-03-19 Pedro Alves <palves@redhat.com>
3434 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
3435 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
3436 to -1. Fix TABs vs spaces.
3437 (tui_ui_out::tui_ui_out): Don't initialize fields here.
3438 * tui/tui-out.h (tui_ui_out) Add intro comments.
3439 <m_line, m_start_of_line>: In-class initialize, and add describing
3442 2019-03-18 Alan Hayward <alan.hayward@arm.com>
3444 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
3446 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
3448 2019-03-18 Pedro Alves <palves@redhat.com>
3449 Eli Zaretskii <eliz@gnu.org>
3451 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
3452 m_line and m_start_of_line.
3454 2019-03-18 Eli Zaretskii <eliz@gnu.org>
3456 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
3457 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
3458 it returns a newline. This fixes a regression in TU mode, whereby
3459 the next line is output on the same screen line as the user input.
3461 2019-03-18 Tom Tromey <tromey@adacore.com>
3463 * minsyms.c (minimal_symbol_reader::install): Remove call to
3466 2019-03-18 Pedro Alves <palves@redhat.com>
3468 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
3470 (apply_style): New, factored out from ...
3471 (apply_ansi_escape): ... this. Handle reverse video mode.
3472 (tui_set_reverse_mode): New function.
3473 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
3474 * tui/tui-winsource.c (tui_show_source_line): Use
3475 tui_set_reverse_mode instead of setting A_STANDOUT.
3476 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
3479 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
3481 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
3484 2019-03-18 Tom Tromey <tromey@adacore.com>
3486 * ada-lang.c (empty_array): Add "high" parameter.
3487 (ada_evaluate_subexp): Update.
3489 2019-03-17 Sergei Trofimovich <siarheit@google.com>
3491 * unittests/string_view-selftests.c: Define
3492 _initialize_string_view_selftests unconditionally.
3494 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3497 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
3499 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3502 * windows-nat.c (display_selector): Fix format specifiers.
3504 2019-03-17 Eli Zaretskii <eliz@gnu.org>
3506 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
3507 tui_refill_source_window instead of tui_refresh_win, to update the
3508 current execution line. This fixes redisplay of the current line
3509 when stepping through the code with "next" or "step".
3511 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3513 * source-cache.c (source_cache::get_source_lines): Call
3514 find_source_lines to initialize s->nlines. This fixes vertical
3515 scrolling of TUI source window when the DOWN arrow is pressed.
3517 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3519 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
3520 linux-thread-db.c (_initialize_thread_db): Likewise.
3522 2019-03-16 Eli Zaretskii <eliz@gnu.org>
3524 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
3525 wclrtoeol in tui_show_source_line". This reverts changes made in
3526 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
3528 2019-03-15 Tom Tromey <tom@tromey.com>
3530 * symtab.h (struct minimal_symbol): Derive from
3531 general_symbol_info.
3532 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
3533 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3534 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3535 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3536 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
3537 (MSYMBOL_SEARCH_NAME): Update.
3538 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
3539 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
3540 * minsyms.c (minimal_symbol_reader::record_full): Update.
3542 2019-03-15 Tom Tromey <tom@tromey.com>
3544 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
3546 2019-03-15 Tom Tromey <tom@tromey.com>
3548 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
3550 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
3552 * minsyms.c (lookup_minimal_symbol_by_pc_section)
3553 (build_minimal_symbol_hash_tables)
3554 (minimal_symbol_reader::install): Update.
3556 2019-03-15 Tom Tromey <tom@tromey.com>
3558 * symtab.c (create_demangled_names_hash): Update.
3559 (symbol_set_names): Update.
3560 * objfiles.h (struct objfile_per_bfd_storage)
3561 <demangled_names_hash>: Now an htab_up.
3562 * objfiles.c (objfile_per_bfd_storage): Simplify.
3564 2019-03-15 Tom Tromey <tom@tromey.com>
3566 * objfiles.h (struct objfile_per_bfd_storage): Declare
3568 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
3570 (get_objfile_bfd_data): Use new. Don't initialize
3572 (free_objfile_per_bfd_storage): Remove.
3573 (objfile_bfd_data_free, objfile::~objfile): Use delete.
3575 2019-03-15 Tom Tromey <tom@tromey.com>
3577 * symfile.c (reread_symbols): Update.
3578 * objfiles.c (objfile::objfile): Update.
3579 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
3580 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
3582 (minimal_symbol_reader::install): Update.
3583 (terminate_minimal_symbol_table): Remove.
3584 * jit.c (jit_object_close_impl): Update.
3586 2019-03-15 Tom Tromey <tom@tromey.com>
3588 * minsyms.c (minimal_symbol_reader::record_full): Remove some
3591 2019-03-15 Tom Tromey <tom@tromey.com>
3593 * objfiles.h (struct objfile_per_bfd_storage)
3594 <demangled_hash_languages>: Now a bitset.
3595 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
3596 (lookup_minimal_symbol): Update.
3598 2019-03-15 Tom Tromey <tom@tromey.com>
3600 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
3601 Don't return the symbol.
3602 * coffread.c (record_minimal_symbol): Use record_full.
3604 2019-03-14 Eli Zaretskii <eliz@gnu.org>
3606 The MS-Windows port of ncurses fails to switch to a color pair if
3607 one or both of the colors are the implicit default colors. This
3608 change records the default colors when TUI is initialized, and
3609 then specifies them explicitly when a color pair uses the default
3610 colors. This allows color styling in TUI mode on MS-Windows.
3612 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
3614 (tui_initialize_io) [__MINGW32__]: Record the default terminal
3615 colors in ncurses_norm_attr.
3616 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
3617 "none", replace it with the default color recorded in
3620 2019-03-14 Tom Tromey <tromey@adacore.com>
3622 * source-cache.h (class source_cache) <get_source_lines>: Return
3624 * source-cache.c (source_cache::extract_lines): Handle case where
3625 first_pos==npos. Return std::string.
3626 (source_cache::get_source_lines): Update.
3628 2019-03-14 Tom Tromey <tromey@adacore.com>
3630 * NEWS: Add item for "style sources" commands.
3631 * source-cache.c (source_cache::get_source_lines): Check
3633 * cli/cli-style.c (source_styling): New global.
3634 (_initialize_cli_style): Add "style sources" commands.
3635 (show_style_sources): New function.
3636 * cli/cli-style.h (source_styling): Declare.
3638 2019-03-14 Pedro Alves <palves@redhat.com>
3639 Tom Tromey <tromey@adacore.com>
3641 * tui/tui-winsource.h (tui_refill_source_window): Declare.
3642 * tui/tui-winsource.c (tui_refill_source_window): New function,
3644 (tui_horizontal_source_scroll): ... here. Move some logic.
3645 * cli/cli-style.c (set_style_enabled): Notify new observable.
3646 * tui/tui-hooks.c (tui_redisplay_source): New function.
3647 (tui_attach_detach_observers): Attach or detach
3648 tui_redisplay_source.
3649 * observable.h (source_styling_changed): New observable.
3650 * observable.c: Define source_styling_changed observable.
3652 2019-03-13 Tom Tromey <tromey@adacore.com>
3654 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
3655 (i386_gnu_nat_target::store_registers): Update.
3656 * target-debug.h (target_debug_print_std_string): New macro.
3657 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
3658 * windows-tdep.c (display_one_tib): Update.
3659 * tui/tui-stack.c (tui_make_status_line): Update.
3660 * top.c (print_inferior_quit_action): Update.
3661 * thread.c (thr_try_catch_cmd): Update.
3662 (add_thread_with_info): Update.
3663 (thread_target_id_str): Update.
3664 (thr_try_catch_cmd): Update.
3665 (thread_command): Update.
3666 (thread_find_command): Update.
3667 * record-btrace.c (record_btrace_target::info_record)
3668 (record_btrace_resume_thread, record_btrace_target::resume)
3669 (record_btrace_cancel_resume, record_btrace_step_thread)
3670 (record_btrace_target::wait, record_btrace_target::wait)
3671 (record_btrace_target::wait, record_btrace_target::stop): Update.
3672 * progspace.c (print_program_space): Update.
3673 * process-stratum-target.c
3674 (process_stratum_target::thread_address_space): Update.
3675 * linux-fork.c (linux_fork_mourn_inferior)
3676 (detach_checkpoint_command, info_checkpoints_command)
3677 (linux_fork_context): Update.
3678 (linux_fork_detach): Update.
3679 (class scoped_switch_fork_info): Update.
3680 (delete_checkpoint_command): Update.
3681 * infrun.c (follow_fork_inferior): Update.
3682 (follow_fork_inferior): Update.
3683 (proceed_after_vfork_done): Update.
3684 (handle_vfork_child_exec_or_exit): Update.
3685 (follow_exec): Update.
3686 (displaced_step_prepare_throw): Update.
3687 (displaced_step_restore): Update.
3688 (start_step_over): Update.
3690 (clear_proceed_status_thread): Update.
3692 (print_target_wait_results): Update.
3693 (do_target_wait): Update.
3694 (context_switch): Update.
3695 (stop_all_threads): Update.
3696 (restart_threads): Update.
3697 (finish_step_over): Update.
3698 (handle_signal_stop): Update.
3699 (switch_back_to_stepped_thread): Update.
3700 (keep_going_pass_signal): Update.
3701 (print_exited_reason): Update.
3702 (normal_stop): Update.
3703 * inferior.c (inferior_pid_to_str): Change return type.
3704 (print_selected_inferior): Update.
3705 (add_inferior): Update.
3706 (detach_inferior): Update.
3707 * dummy-frame.c (fprint_dummy_frames): Update.
3708 * dcache.c (dcache_info_1): Update.
3709 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
3710 (btrace_fetch, btrace_clear): Update.
3711 * linux-tdep.c (linux_core_pid_to_str): Change return type.
3712 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
3714 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
3715 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
3716 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
3717 * gdbarch.c, gdbarch.h: Rebuild.
3718 * gdbarch.sh (core_pid_to_str): Change return type.
3719 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
3721 (windows_nat_target::pid_to_str): Change return type.
3722 (windows_delete_thread): Update.
3723 (windows_nat_target::attach): Update.
3724 (windows_nat_target::files_info): Update.
3725 * target-delegates.c: Rebuild.
3726 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
3728 (sol_thread_target::pid_to_str): Change return type.
3729 * remote.c (class remote_target) <pid_to_str>: Change return
3731 (remote_target::pid_to_str): Change return type.
3732 (extended_remote_target::attach, remote_target::remote_stop_ns)
3733 (remote_target::remote_notif_remove_queued_reply)
3734 (remote_target::push_stop_reply, remote_target::disable_btrace):
3736 (extended_remote_target::attach): Update.
3737 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
3739 (gdbsim_target::pid_to_str): Change return type.
3740 * ravenscar-thread.c (struct ravenscar_thread_target)
3741 <pid_to_str>: Change return type.
3742 (ravenscar_thread_target::pid_to_str): Change return type.
3743 * procfs.c (class procfs_target) <pid_to_str>: Change return
3745 (procfs_target::pid_to_str): Change return type.
3746 (procfs_target::attach): Update.
3747 (procfs_target::detach): Update.
3748 (procfs_target::fetch_registers): Update.
3749 (procfs_target::store_registers): Update.
3750 (procfs_target::wait): Update.
3751 (procfs_target::files_info): Update.
3752 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
3753 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
3755 (nto_procfs_target::pid_to_str): Change return type.
3756 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
3757 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
3759 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
3761 (attach_proc_task_lwp_callback, get_detach_signal)
3762 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
3763 (linux_nat_target::resume, wait_lwp, stop_callback)
3764 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
3765 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
3766 (linux_nat_wait_1, resume_stopped_resumed_lwps)
3767 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
3768 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
3770 (inf_ptrace_target::attach): Update.
3771 (inf_ptrace_target::files_info): Update.
3772 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
3774 (go32_nat_target::pid_to_str): Change return type.
3775 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
3776 (gnu_nat_target::wait): Update.
3777 (gnu_nat_target::wait): Update.
3778 (gnu_nat_target::resume): Update.
3779 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
3780 (fbsd_nat_target::wait): Update.
3781 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
3783 (darwin_nat_target::attach): Update.
3784 * corelow.c (class core_target) <pid_to_str>: Change return type.
3785 (core_target::pid_to_str): Change return type.
3786 * target.c (normal_pid_to_str): Change return type.
3787 (default_pid_to_str): Likewise.
3788 (target_pid_to_str): Change return type.
3789 (target_translate_tls_address): Update.
3790 (target_announce_detach): Update.
3791 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
3793 (bsd_uthread_target::pid_to_str): Change return type.
3794 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
3796 (bsd_kvm_target::pid_to_str): Change return type.
3797 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
3799 (aix_thread_target::pid_to_str): Change return type.
3800 * target.h (struct target_ops) <pid_to_str>: Change return type.
3801 (target_pid_to_str, normal_pid_to_str): Likewise.
3802 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
3804 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
3806 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
3808 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
3810 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
3812 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
3815 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
3817 * NEWS: Mention that the new default MI version is 3. Mention
3818 changes to the output of commands and events that deal with
3819 multi-location breakpoints.
3820 * breakpoint.c: Include "mi/mi-out.h".
3821 (print_one_breakpoint): Change output syntax if using MI version
3823 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
3825 (mi_multi_location_breakpoint_output_fixed): New.
3826 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
3827 (mi_cmd_fix_multi_location_breakpoint_output): New.
3828 (mi_multi_location_breakpoint_output_fixed): New.
3829 * mi/mi-cmds.c (mi_cmds): Register command
3830 -fix-multi-location-breakpoint-output.
3831 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
3834 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3836 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
3837 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
3838 instantiate mi_ui_out based on interpreter name.
3839 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
3840 * mi/mi-main.c (mi_load_progress): Likewise.
3842 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3844 * NEWS: Combine separate "New targets" sections for 8.3.
3846 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3848 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
3849 (ppcfbsd_init_abi): Install gdbarch
3850 "fetch_tls_load_module_address" and "get_thread_local_address"
3853 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3855 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
3856 (riscv_fbsd_init_abi): Install gdbarch
3857 "fetch_tls_load_module_address" and "get_thread_local_address"
3860 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3862 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
3863 (i386fbsd_init_abi): Install gdbarch
3864 "fetch_tls_load_module_address" and "get_thread_local_address"
3867 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3869 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
3870 (amd64fbsd_init_abi): Install gdbarch
3871 "fetch_tls_load_module_address" and "get_thread_local_address"
3874 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3876 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
3877 (struct fbsd_pspace_data): New type.
3878 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
3879 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
3880 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
3881 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
3882 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
3884 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3886 * gdbtypes.c (lookup_struct_elt): New function.
3887 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
3888 * gdbtypes.h (struct struct_elt): New type.
3889 (lookup_struct_elt): New prototype.
3891 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3893 * gdbtypes.c (lookup_struct_elt_type): Update comment and
3894 remove disabled code block.
3896 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3898 * gdbarch.sh (get_thread_local_address): New method.
3899 * gdbarch.h, gdbarch.c: Regenerate.
3900 * target.c (target_translate_tls_address): Use
3901 gdbarch_get_thread_local_address if present instead of
3902 target::get_thread_local_address.
3904 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3906 * target.h (target::get_thread_local_address): Update comment.
3908 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3910 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
3911 objfile->separate_debug_objfile_backlink if not NULL.
3913 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3915 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
3916 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
3917 (amd64bsd_store_inferior_registers): Likewise.
3918 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
3919 Enable segment base registers.
3920 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
3921 PT_GETFSBASE and PT_GETGSBASE.
3922 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
3924 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
3925 segment base registers.
3926 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
3928 2019-03-12 John Baldwin <jhb@FreeBSD.org>
3930 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
3931 Update calls to i386_target_description to add 'segments'
3933 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
3934 add segment base registers.
3935 * arch/i386.c (i386_create_target_description): Add 'segments'
3936 parameter to enable segment base registers.
3937 * arch/i386.h (i386_create_target_description): Likewise.
3938 * features/i386/32bit-segments.xml: New file.
3939 * features/i386/32bit-segments.c: Generate.
3940 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
3941 call to i386_target_description to add 'segments' parameter.
3942 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
3943 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
3944 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
3945 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
3946 if feature is present.
3947 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
3948 Add 'segments' parameter to call to i386_target_description.
3949 (i386_target_description): Add 'segments' parameter to enable
3950 segment base registers.
3951 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
3952 to call to i386_target_description.
3953 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
3954 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
3955 Define I386_NUM_REGS.
3956 (i386_target_description): Add 'segments' parameter to enable
3957 segment base registers.
3959 2019-03-12 Eli Zaretskii <eliz@gnu.org>
3962 * source-cache.c: #undef open and close, to avoid unresolved
3963 externals during linking.
3965 2019-03-12 Tom Tromey <tromey@adacore.com>
3967 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
3968 const. Add initializers.
3969 (_initialize_remote): Don't initialize ptid globals.
3971 2019-03-12 Pedro Alves <palves@redhat.com>
3973 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
3975 2019-03-12 Pedro Alves <palves@redhat.com>
3977 * cp-name-parser.y (main): Remove unused 'len' variable.
3979 2019-03-12 Tom Tromey <tromey@adacore.com>
3981 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
3982 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
3984 2019-03-12 Tom Tromey <tromey@adacore.com>
3986 * linux-nat.c (iterate_over_lwps): Update.
3987 (stop_callback): Remove parameter.
3988 (stop_wait_callback, detach_callback, resume_set_callback)
3989 (select_singlestep_lwp_callback, set_ignore_sigint)
3990 (status_callback, resumed_callback, resume_clear_callback)
3991 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
3993 (linux_nat_target::detach, linux_nat_target::resume)
3994 (linux_stop_and_wait_all_lwps, select_event_lwp)
3995 (linux_nat_filter_event, linux_nat_wait_1)
3996 (linux_nat_target::kill, linux_nat_target::stop)
3997 (linux_nat_target::stop): Update.
3998 (linux_nat_resume_callback): Change type.
3999 (resume_stopped_resumed_lwps, count_events_callback)
4000 (select_event_lwp_callback): Likewise.
4001 (linux_stop_lwp, linux_nat_stop_lwp): Update.
4002 * arm-linux-nat.c (struct update_registers_data): Remove.
4003 (update_registers_callback): Change type.
4004 (arm_linux_insert_hw_breakpoint1): Update.
4005 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
4007 (x86_linux_dr_set_addr): Update.
4008 (x86_linux_dr_set_control): Update.
4009 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
4010 (iterate_over_lwps): Use gdb::function_view.
4011 * nat/aarch64-linux-hw-point.c (struct
4012 aarch64_dr_update_callback_param): Remove.
4013 (debug_reg_change_callback): Change type.
4014 (aarch64_notify_debug_reg_change): Update.
4015 * s390-linux-nat.c (s390_refresh_per_info): Update.
4017 2019-03-11 Tom Tromey <tromey@adacore.com>
4019 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
4020 redundant assignment to "this_cu".
4022 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4024 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
4026 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4028 * gdbtypes.c (rank_one_type_parm_set): New function extracted
4030 (rank_one_type): ... this.
4032 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4034 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
4036 (rank_one_type): ... this.
4038 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4040 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
4042 (rank_one_type): ... this.
4044 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4046 * gdbtypes.c (rank_one_type_parm_float): New function extracted
4048 (rank_one_type): ... this.
4050 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4052 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
4054 (rank_one_type): ... this.
4056 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4058 * gdbtypes.c (rank_one_type_parm_range): New function extracted
4060 (rank_one_type): ... this.
4062 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4064 * gdbtypes.c (rank_one_type_parm_char): New function extracted
4066 (rank_one_type): ... this.
4068 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4070 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
4072 (rank_one_type): ... this.
4074 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4076 * gdbtypes.c (rank_one_type_parm_int): New function extracted
4078 (rank_one_type): ... this.
4080 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4082 * gdbtypes.c (rank_one_type_parm_func): New function extracted
4084 (rank_one_type): ... this.
4086 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4088 * gdbtypes.c (rank_one_type_parm_array): New function extracted
4090 (rank_one_type): ... this.
4092 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
4094 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
4096 (rank_one_type): ... this.
4098 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4100 * inferior.c (initialize_inferiors): Ensure 'help set/show print
4101 inferior-events' shows the example events.
4103 2019-03-08 Eli Zaretskii <eliz@gnu.org>
4105 Support styling on native MS-Windows console
4108 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
4109 on MS-Windows if $TERM is not defined.
4111 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
4113 * posix-hdep.c (gdb_console_fputs):
4114 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
4116 * ui-file.h (gdb_console_fputs): Add prototype.
4118 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
4119 back to fputs only if the former returns zero.
4121 2019-03-07 Tom Tromey <tom@tromey.com>
4123 * symmisc.c (print_symbol_bcache_statistics): Update.
4124 (print_objfile_statistics): Update.
4125 * symfile.c (allocate_symtab): Update.
4126 * stabsread.c: Don't include bcache.h.
4127 * psymtab.h (struct psymbol_bcache): Don't declare.
4128 (class psymtab_storage) <psymbol_cache>: Now a bcache.
4129 (psymbol_bcache_init, psymbol_bcache_free)
4130 (psymbol_bcache_get_bcache): Don't declare.
4131 * psymtab.c (struct psymbol_bcache): Remove.
4132 (psymtab_storage::psymtab_storage): Update.
4133 (psymtab_storage::~psymtab_storage): Update.
4134 (psymbol_bcache_init, psymbol_bcache_free)
4135 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
4136 (add_psymbol_to_bcache): Update.
4137 (allocate_psymtab): Update.
4138 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
4139 macro_cache>: No longer pointers.
4140 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
4141 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
4142 * macrotab.c (macro_bcache): Update.
4143 * macroexp.c: Don't include bcache.h.
4144 * gdbtypes.c (check_types_worklist): Update.
4145 (types_deeply_equal): Remove TRY/CATCH. Update.
4146 * elfread.c (elf_symtab_read): Update.
4147 * dwarf2read.c: Don't include bcache.h.
4148 * buildsym.c (buildsym_compunit::get_macro_table): Update.
4149 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
4150 (print_bcache_statistics, bcache_memory_used): Don't declare.
4151 (struct bcache): Move from bcache.c. Add constructor, destructor,
4152 methods. Rename all data members.
4153 * bcache.c (struct bcache): Move to bcache.h.
4154 (bcache::expand_hash_table): Rename from expand_hash_table.
4156 (bcache::insert): Rename from bcache_full.
4157 (bcache::compare): Rename from bcache_compare.
4158 (bcache_xmalloc): Remove.
4159 (bcache::~bcache): Rename from bcache_xfree.
4160 (bcache::print_statistics): Rename from print_bcache_statistics.
4161 (bcache::memory_used): Rename from bcache_memory_used.
4163 2019-03-07 Pedro Alves <palves@redhat.com>
4165 * infrun.c (normal_stop): Also check for
4166 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
4168 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
4170 * f-lang.c (value_from_host_double): Moved to...
4171 * value.c (value_from_host_double): ...here.
4172 * value.h (value_from_host_double): Declare.
4173 * guile/scm-math.c (vlscm_convert_typed_number): Use
4174 value_from_host_double.
4175 (vlscm_convert_number): Likewise.
4176 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
4177 * python/py-value.c (convert_value_from_python): Likewise.
4179 2019-03-06 Tom Tromey <tom@tromey.com>
4181 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
4183 2019-03-06 Tom Tromey <tom@tromey.com>
4185 * utils.h (free_current_contents): Don't declare.
4186 * utils.c (free_current_contents): Remove.
4188 2019-03-06 Tom Tromey <tom@tromey.com>
4190 * top.c (quit_force): Update.
4191 * main.c (captured_command_loop): Update.
4192 * common/new-op.c (operator new): Update.
4193 * common/common-exceptions.c (struct catcher)
4194 <save_cleanup_chain>: Remove member.
4195 (exceptions_state_mc_init): Update.
4196 (exception_try_scope_entry): Return nullptr.
4197 (exception_try_scope_exit, exception_rethrow)
4198 (throw_exception_sjlj, throw_exception_cxx): Update.
4199 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
4200 (all_cleanups, do_cleanups, discard_cleanups)
4201 (discard_final_cleanups, save_cleanups, save_final_cleanups)
4202 (restore_cleanups, restore_final_cleanups): Don't declare.
4203 (do_final_cleanups): Remove parameter.
4204 * common/cleanups.c (cleanup_chain, make_cleanup)
4205 (make_cleanup_dtor, all_cleanups, do_cleanups)
4206 (discard_my_cleanups, discard_cleanups)
4207 (discard_final_cleanups, save_my_cleanups, save_cleanups)
4208 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
4209 (null_cleanup): Remove.
4210 (do_final_cleanups): Remove parameter.
4212 2019-03-06 Tom Tromey <tom@tromey.com>
4214 * remote.c (remote_target::remote_parse_stop_reply): Use
4217 2019-03-06 Tom Tromey <tom@tromey.com>
4219 * stabsread.c (struct stabs_field_info): Rename from field_info.
4220 <list, fnlist>: Add initializers.
4221 <obstack>: New member.
4222 (read_member_functions, read_struct_fields, read_baseclasses):
4223 Allocate on obstack. Don't use cleanups.
4224 (read_one_struct_field, read_member_functions, read_struct_fields)
4225 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
4226 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
4227 (read_struct_type): Update.
4229 2019-03-06 Tom Tromey <tom@tromey.com>
4231 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
4232 * common/filestuff.h (make_cleanup_close): Don't declare.
4233 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
4236 2019-03-06 Tom Tromey <tom@tromey.com>
4238 * solib-aix.c: Use make_scope_exit.
4240 2019-03-06 Tom Tromey <tom@tromey.com>
4242 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
4243 Use make_scope_exit.
4245 2019-03-06 Tom Tromey <tom@tromey.com>
4247 * solib-svr4.c (disable_probes_interface): Remove parameter.
4248 (svr4_handle_solib_event): Use make_scope_exit.
4250 2019-03-06 Tom Tromey <tom@tromey.com>
4252 * remote.c (struct stop_reply_deleter): Remove.
4253 (stop_reply_up): Update.
4254 (struct stop_reply): Derive from notif_event. Don't typedef.
4255 <regcache>: Now a std::vector.
4256 (stop_reply_xfree): Remove.
4257 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
4258 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
4259 (remote_target::discard_pending_stop_replies): Use delete.
4260 (remote_target::remote_parse_stop_reply): Update.
4261 (remote_target::process_stop_reply): Update.
4262 * remote-notif.h (struct notif_event): Add virtual destructor.
4263 Remove "dtr" member.
4264 (struct notif_client) <alloc_event>: Return a unique_ptr.
4265 (notif_event_xfree): Don't declare.
4266 (notif_event_up): New typedef.
4267 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
4268 (notif_event_xfree, do_notif_event_xfree): Remove.
4269 (remote_notif_state_xfree): Update.
4271 2019-03-06 Tom Tromey <tom@tromey.com>
4273 * infrun.c (displaced_step_clear_cleanup): Now a
4274 forward_scope_exit type.
4275 (displaced_step_prepare_throw): Update.
4276 (displaced_step_fixup): Update.
4278 2019-03-06 Tom Tromey <tom@tromey.com>
4280 * inferior.h (class inferior): Update comment.
4281 * gdbthread.h (class thread_info): Update comment.
4283 2019-03-06 Joel Brobecker <brobecker@adacore.com>
4284 Tom Tromey <tom@tromey.com>
4286 * stabsread.h (struct stab_section_list): Remove.
4287 (coffstab_build_psymtabs): Update.
4288 * dbxread.c (symbuf_sections): Now a std::vector.
4289 (sect_idx): New global.
4290 (fill_symbuf): Update.
4291 (coffstab_build_psymtabs): Change type of stabsects parameter.
4293 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
4295 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
4296 (coff_locate_sections): Update.
4297 (coff_symfile_read): Remove cleanups. Update.
4298 (init_stringtab): Add storage parameter.
4299 (free_stringtab, free_stringtab_cleanup): Remove.
4300 (init_lineno): Add storage parameter.
4301 (free_linetab, free_linetab_cleanup): Remove.
4303 2019-03-06 Pedro Alves <palves@redhat.com>
4305 * linux-fork.c (fork_info::clobber_regs): Delete.
4306 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
4307 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
4309 (scoped_switch_fork_info::scoped_switch_fork_info)
4310 (checkpoint_command, linux_fork_context): Adjust
4311 fork_save_infrun_state calls.
4313 2019-03-06 Pedro Alves <palves@redhat.com>
4315 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
4316 (inf_has_multiple_threads): Return 'bool' and rewrite using
4317 inferior_info::threads().
4319 2019-03-06 Pedro Alves <palves@redhat.com>
4321 * linux-fork.c: Include <list>.
4322 (fork_list): Now a std::list instance.
4323 (fork_info): Add ctor, dtor, and in-class initialize all fields.
4324 (forks_exist_p, find_last_fork): Adjust.
4328 (free_fork): Delete, folded into fork_info::~fork_info().
4329 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
4331 (init_fork_list): Delete.
4332 (linux_fork_killall, linux_fork_mourn_inferior)
4333 (linux_fork_detach, info_checkpoints_command): Adjust.
4334 (_initialize_linux_fork): No longer call init_fork_list.
4336 2019-03-06 Pedro Alves <palves@redhat.com>
4338 * linux-fork.c (new_fork): New, split out of ...
4339 (add_fork): ... this. Return void. Move "first fork" special
4340 case from here, to ...
4341 (checkpoint_command): ... here.
4342 * linux-linux.h (add_fork): Return void.
4344 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4346 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
4348 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4349 Chris January <chris.january@arm.com>
4350 David Lecomber <david.lecomber@arm.com>
4352 * f-exp.y: New token, UNOP_INTRINSIC.
4353 (exp): New pattern using UNOP_INTRINSIC token.
4354 (f77_keywords): Add 'abs' keyword.
4355 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
4356 (value_from_host_double): New function.
4357 (evaluate_subexp_f): Support UNOP_ABS.
4359 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4361 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
4364 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4366 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
4367 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
4368 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
4370 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4372 * f-exp.y (convert_to_kind_type): Handle more type kinds.
4374 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4375 Chris January <chris.january@arm.com>
4377 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
4378 * f-exp.y: Define 'KIND' token.
4379 (exp): New pattern for KIND expressions.
4380 (ptype): Handle types with a kind extension.
4381 (direct_abs_decl): Extend to spot kind extensions.
4382 (f77_keywords): Add 'kind' to the list.
4383 (push_kind_type): New function.
4384 (convert_to_kind_type): New function.
4385 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
4386 * parse.c (operator_length_standard): Likewise.
4387 * parser-defs.h (enum type_pieces): Add tp_kind.
4388 * std-operator.def: Add UNOP_KIND.
4390 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4392 * f-exp.y (f_parse): Set yydebug.
4394 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4396 * f-lang.c (evaluate_subexp_f): New function.
4397 (exp_descriptor_f): New global.
4398 (f_language_defn): Use exp_descriptor_f instead of
4399 exp_descriptor_standard.
4401 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4403 * f-exp.y (struct token): Add comments.
4404 (dot_ops): Remove uppercase versions and the end marker.
4405 (f77_keywords): Likewise.
4406 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
4407 entries in the dot_ops array are case insensitive, and use
4408 strncasecmp to compare strings. Also some whitespace cleanup in
4409 this area. Similar for the f77_keywords array, except entries in
4410 this list might be case sensitive.
4412 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4414 * f-exp.y (struct f77_boolean_val): Add comments.
4415 (boolean_values): Remove uppercase versions, and end marker.
4416 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
4417 and use strncasecmp to achieve case insensitivity. Additionally,
4418 perform whitespace cleanup around this code.
4420 2019-03-06 Tom Tromey <tromey@adacore.com>
4422 * remote-sim.c (gdbsim_target_open): Use result of
4425 2019-03-06 Richard Bunt <richard.bunt@arm.com>
4426 Dirk Schubert <dirk.schubert@arm.com>
4427 Chris January <chris.january@arm.com>
4429 * eval.c (evaluate_subexp_standard): Call Fortran argument
4431 * f-lang.c (struct value): A value which can be passed into a
4432 Fortran function call.
4433 (fortran_argument_convert): Wrap Fortran arguments in a pointer
4435 (struct type): Value ready for a Fortran function call.
4436 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
4438 * f-lang.h (fortran_argument_convert): Declaration.
4439 (fortran_preserve_arg_pointer): Declaration.
4440 * infcall.c (value_arg_coerce): Call Fortran argument logic.
4442 2019-03-05 Tom Tromey <tromey@adacore.com>
4444 * python/py-prettyprint.c (print_string_repr): Remove #if.
4445 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
4447 2019-03-05 Tom Tromey <tromey@adacore.com>
4449 * target.c (the_dummy_target): Move later. Change type to
4451 (initialize_targets): Don't initialize the_dummy_target.
4453 2019-03-05 Tom Tromey <tromey@adacore.com>
4455 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
4456 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
4458 2019-03-05 Tom Tromey <tromey@adacore.com>
4460 * windows-nat.c (windows_nat_target::attach)
4461 (windows_nat_target::detach): Don't call gdb_flush.
4462 * valprint.c (generic_val_print, val_print, val_print_string):
4463 Don't call gdb_flush.
4464 * utils.c (defaulted_query): Don't call gdb_flush.
4465 * typeprint.c (print_type_scalar): Don't call gdb_flush.
4466 * target.c (target_announce_detach): Don't call gdb_flush.
4467 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
4468 * remote.c (extended_remote_target::attach): Don't call
4470 * procfs.c (procfs_target::detach): Don't call gdb_flush.
4471 * printcmd.c (do_examine): Don't call gdb_flush.
4472 (info_display_command): Don't call gdb_flush.
4473 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
4474 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
4475 * memattr.c (info_mem_command): Don't call gdb_flush.
4476 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
4477 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
4478 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
4479 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
4480 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
4481 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
4482 (gnu_nat_target::detach): Don't call gdb_flush.
4483 * f-valprint.c (f_val_print): Don't call gdb_flush.
4484 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
4485 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
4486 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
4488 * c-valprint.c (c_val_print): Don't call gdb_flush.
4489 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
4491 2019-03-05 Tom Tromey <tromey@adacore.com>
4493 * varobj.c (update_dynamic_varobj_children): Update.
4494 (install_default_visualizer): Use reset, not release.
4495 * value.c (set_internalvar): Update.
4496 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
4497 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
4498 ATTRIBUTE_UNUSED_RESULT.
4500 2019-03-05 Tom Tromey <tromey@adacore.com>
4502 * remote.c (class scoped_remote_fd) <release>: Add
4503 ATTRIBUTE_UNUSED_RESULT.
4505 2019-03-05 Tom Tromey <tromey@adacore.com>
4507 * macroexp.c (struct macro_buffer) <release>: Add
4508 ATTRIBUTE_UNUSED_RESULT.
4510 2019-03-05 Tom Tromey <tromey@adacore.com>
4512 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
4513 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
4514 ATTRIBUTE_UNUSED_RESULT.
4516 2019-03-05 Tom Tromey <tromey@adacore.com>
4518 * common/scoped_fd.h (class scoped_fd) <release>: Add
4519 ATTRIBUTE_UNUSED_RESULT.
4521 2019-03-05 Tom Tromey <tromey@adacore.com>
4523 * parser-defs.h (struct parser_state) <release>: Add
4524 ATTRIBUTE_UNUSED_RESULT.
4526 2019-03-05 Tom Tromey <tromey@adacore.com>
4528 * utils.h (class gdb_argv) <release>: Add
4529 ATTRIBUTE_UNUSED_RESULT.
4530 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
4532 2019-03-02 Eli Zaretskii <eliz@gnu.org>
4534 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
4535 for-loop range, to avoid compiler warnings.
4537 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
4538 avoid compiler warnings about unused variables.
4540 * NEWS: Mention end of support for native debugging on MS-Windows
4544 * common/netstuff.c:
4545 * gdbserver/gdbreplay.c
4546 * gdbserver/remote-utils.c:
4548 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
4549 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
4550 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
4551 'getaddrinfo' and 'freeaddrinfo' were not available before
4552 Windows XP, and mingw.org's MinGW headers by default define
4553 _WIN32_WINNT to 0x500.
4555 2019-03-01 Gary Benson <gbenson@redhat.com>
4557 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
4559 2019-02-28 Brian Vandenberg <phantall@gmail.com>
4560 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4563 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
4564 set_sigint_trap, clear_sigint_trap.
4566 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4568 * target.c (target_detach): Clear the regcache and the
4571 2019-02-27 Pedro Alves <palves@redhat.com>
4573 * utils.c (set_screen_size): When we cap the height/width sizes,
4574 tweak the corresponding command variable to show "unlimited":
4576 2019-02-27 Saagar Jha <saagar@saagarjha.com>
4577 Pedro Alves <palves@redhat.com>
4579 * utils.c (set_screen_size): Reduce "infinite" rows and columns
4580 before calling rl_set_screen_size.
4582 2019-02-27 Tom Tromey <tromey@adacore.com>
4584 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
4586 * python/py-value.c: Remove Python 2.4 workaround.
4587 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
4589 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
4590 Python 2.4 workaround.
4591 * python/python-internal.h: Remove Python 2.4 comment.
4592 (Py_ssize_t): Don't define.
4593 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
4594 (gdb_Py_DECREF): Remove Python 2.4 workaround.
4595 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
4596 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
4597 * python/python.c (do_start_initialization): Remove Python 2.4
4599 * python/py-prettyprint.c (class dummy_python_frame): Remove.
4600 (print_children): Remove Python 2.4 workaround.
4601 * python/py-inferior.c (buffer_procs): Remove Python 2.4
4603 (CHARBUFFERPROC_NAME): Remove.
4604 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
4605 Python 2.4 workaround.
4607 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4609 * NEWS: Note minimum Python version.
4611 2019-02-27 Kevin Buettner <kevinb@redhat.com>
4613 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
4614 code from these functions. Remove corresponding ifdefs. Use
4615 Py_buffer_up instead of explicit calls to PyBuffer_Release.
4616 Remove gotos and target of gotos.
4617 (infpy_search_memory): Likewise.
4619 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4621 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
4622 (hppa_gdbarch_init): Don't register deleted functions with
4625 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4627 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
4628 (h8300_unwind_sp): Delete.
4629 (h8300_dummy_id): Delete.
4630 (h8300_gdbarch_init): Don't register deleted functions with
4633 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4635 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
4636 (ft32_unwind_pc): Delete.
4637 (ft32_unwind_sp): Delete.
4638 (ft32_gdbarch_init): Don't register deleted functions with
4641 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4643 * gdb/frv-tdep.c (frv_dummy_id): Delete.
4644 (frv_unwind_pc): Delete.
4645 (frv_unwind_sp): Delete.
4646 (frv_gdbarch_init): Don't register deleted functions with
4649 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4651 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
4652 (riscv_unwind_pc): Delete.
4653 (riscv_unwind_sp): Delete.
4654 (riscv_gdbarch_init): Don't register deleted functions with
4657 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4659 * gdb/csky-tdep.c (csky_dummy_id): Delete.
4660 (csky_unwind_pc): Delete.
4661 (csky_unwind_sp): Delete.
4662 (csky_gdbarch_init): Don't register deleted functions with
4665 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4667 * gdb/cris-tdep.c (cris_dummy_id): Delete.
4668 (cris_unwind_pc): Delete.
4669 (cris_unwind_sp): Delete.
4670 (cris_gdbarch_init): Don't register deleted functions with
4673 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4675 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
4676 (bfin_unwind_pc): Delete.
4677 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
4679 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4681 * gdb/arm-tdep.c (arm_dummy_id): Delete.
4682 (arm_unwind_pc): Delete.
4683 (arm_unwind_sp): Delete.
4684 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
4686 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4688 * gdb/arc-tdep.c (arc_dummy_id): Delete.
4689 (arc_unwind_pc): Delete.
4690 (arc_unwind_sp): Delete.
4691 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
4693 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4695 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
4696 (alpha_unwind_pc): Delete.
4697 (alpha_gdbarch_init): Don't register deleted functions with
4700 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4702 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
4703 (aarch64_unwind_pc): Delete.
4704 (aarch64_unwind_sp): Delete.
4705 (aarch64_gdbarch_init): Don't register deleted functions with
4708 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4710 * gdbtypes.c (type_align): Don't consider static members when
4711 computing structure alignment.
4713 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4715 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
4716 return 0 for other types.
4717 * arch-utils.c (default_type_align): Always return 0.
4718 * gdbarch.h: Regenerate.
4719 * gdbarch.sh (type_align): Extend comment.
4720 * gdbtypes.c (type_align): Add additional comments, always call
4721 gdbarch_type_align before applying the default rules.
4722 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
4723 generic code will then apply a suitable default.
4724 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
4725 types, return 0 for other types.
4727 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4729 * NEWS: Create a new section for the next release branch.
4730 Rename the section of the current branch, now that it has
4733 2019-02-27 Joel Brobecker <brobecker@adacore.com>
4735 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
4736 * version.in: Bump version to 8.3.50.DATE-git.
4738 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
4740 * aix-thread.c (ptid_cmp): Remove unused variable.
4741 (get_signaled_thread): Likewise.
4742 (store_regs_user_thread): Likewise.
4743 (store_regs_kernel_thread): Likewise.
4744 (fetch_regs_kernel_thread): Remove shadowed variable.
4746 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
4748 * features/riscv/32bit-cpu.xml: Add register numbers.
4749 * features/riscv/32bit-fpu.c: Regenerate.
4750 * features/riscv/32bit-fpu.xml: Add register numbers.
4751 * features/riscv/64bit-cpu.xml: Add register numbers.
4752 * features/riscv/64bit-fpu.c: Regenerate.
4753 * features/riscv/64bit-fpu.xml: Add register numbers.
4755 2019-02-26 Kevin Buettner <kevinb@redhat.com>
4757 * NEWS: Mention two argument form of gdb.Value constructor.
4758 * python/py-value.c (convert_buffer_and_type_to_value): New
4760 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
4761 Add support for handling an optional second argument. Call
4762 convert_buffer_and_type_to_value as appropriate.
4763 * python/python-internal.h (Py_buffer_deleter): New struct.
4764 (Py_buffer_up): New typedef.
4766 2019-02-25 John Baldwin <jhb@FreeBSD.org>
4768 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
4769 instead of releasing ownership.
4771 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
4773 * dwarf2read.c (open_and_init_dwp_file): Call
4774 elf_numsections instead of bfd_count_sections to initialize
4775 dwp_file->num_sections.
4777 2019-02-25 Tom Tromey <tromey@adacore.com>
4779 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
4781 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
4783 * gcore.in: Add '--readnever' option when invoking GDB.
4785 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4787 * MAINTAINERS: Update my email address.
4789 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4791 * build-id.c (build_id_to_debug_bfd_1): New function.
4792 (build_id_to_debug_bfd): Look for separate debug file in
4795 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
4797 * gdbarch.sh: Update the copyright year range that is placed into
4800 2019-02-22 Keith Seitz <keiths@redhat.com>
4803 * linespec.c (create_sals_line_offset): Search for the default
4804 symtab's filename instead of its fullname.
4806 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4808 * NEWS: Update style defaults.
4810 2019-02-21 Alan Hayward <alan.hayward@arm.com>
4812 * main.c (captured_main_1): Disable styling in batch mode.
4814 2019-02-20 Tom Tromey <tom@tromey.com>
4816 * symtab.c (symtab_symbol_info): Fix typos.
4818 2019-02-20 Tom Tromey <tromey@adacore.com>
4820 * findcmd.c (_initialize_mem_search): Use upper case for
4821 metasyntactic variables.
4823 2019-02-20 Alan Hayward <alan.hayward@arm.com>
4825 * aarch64-tdep.c (aarch64_add_reggroups): New function.
4826 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
4828 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
4830 * top.h (source_file_name): Change to std::string.
4831 * top.c (source_file_name): Likewise.
4832 (command_line_input): Adjust.
4833 * cli/cli-script.c (script_from_file): Adjust.
4835 2019-02-19 Tom Tromey <tromey@adacore.com>
4837 * ravenscar-thread.c
4838 (ravenscar_thread_target::update_thread_list): Don't call
4839 ada_build_task_list.
4840 * ada-lang.h (ada_build_task_list): Don't declare.
4841 * ada-tasks.c (struct ada_tasks_inferior_data)
4842 <task_list_valid_p>: Now bool.
4843 (read_known_tasks, ada_task_list_changed)
4844 (ada_tasks_invalidate_inferior_data): Update.
4845 (read_known_tasks_array): Return bool.
4846 (read_known_tasks_list): Likewise.
4847 (read_known_tasks): Return void.
4848 (ada_build_task_list): Now static.
4850 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
4852 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
4853 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
4855 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4857 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
4858 variant for ada_tasks_pspace_data_handle and
4859 ada_tasks_inferior_data_handle.
4860 (ada_tasks_pspace_data_cleanup): New function.
4861 (ada_tasks_inferior_data_cleanup): New function.
4863 2019-02-17 Tom Tromey <tom@tromey.com>
4865 * macrotab.h (macro_source_fullname): Return a std::string.
4866 * macrotab.c (macro_include, check_for_redefinition)
4867 (macro_undef, macro_lookup_definition, foreach_macro)
4868 (foreach_macro_in_scope): Update.
4869 (macro_source_fullname): Return a std::string.
4870 * macrocmd.c (show_pp_source_pos): Update.
4872 2019-02-17 Tom Tromey <tom@tromey.com>
4874 * macrocmd.c (show_pp_source_pos): Style the file names.
4876 2019-02-17 Tom Tromey <tom@tromey.com>
4879 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
4881 2019-02-17 Tom Tromey <tom@tromey.com>
4883 * ada-lang.c (user_select_syms): Use filtered printing.
4884 * utils.c (wrap_style): New global.
4885 (desired_style): Remove.
4886 (emit_style_escape): Add stream parameter.
4887 (set_output_style, reset_terminal_style, prompt_for_continue):
4889 (flush_wrap_buffer): Only flush gdb_stdout.
4890 (wrap_here): Set wrap_style.
4891 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
4892 treat escape sequences as a character. Change when wrap buffer is
4894 (fputs_styled): Do not set the output style when the default is
4896 * ui-style.h (struct ui_file_style) <is_default>: New method.
4897 * source.c (print_source_lines_base): Emit escape sequences in one
4900 2019-02-17 Joel Brobecker <brobecker@adacore.com>
4902 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
4903 integers and enumeration types.
4905 2019-02-17 Joel Brobecker <brobecker@adacore.com>
4907 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
4908 instead of lookup_symbol_in_language
4909 (do_exact_match): New function.
4910 (ada_get_symbol_name_matcher): Return do_exact_match when
4911 doing a verbatim match.
4913 2019-02-15 Tom Tromey <tromey@adacore.com>
4915 * ravenscar-thread.c (ravenscar_thread_target::resume)
4916 (ravenscar_thread_target::wait): Special case wildcard requests.
4918 2019-02-15 Tom Tromey <tromey@adacore.com>
4920 * ravenscar-thread.c (base_ptid): Remove.
4921 (struct ravenscar_thread_target) <close>: New method.
4922 <m_base_ptid>: New member.
4923 <update_inferior_ptid, active_task, task_is_currently_active,
4924 runtime_initialized>: Declare methods.
4925 <ravenscar_thread_target>: Add constructor.
4926 (ravenscar_thread_target::task_is_currently_active)
4927 (ravenscar_thread_target::update_inferior_ptid)
4928 (ravenscar_runtime_initialized): Rename. Now methods.
4929 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
4930 (ravenscar_thread_target::update_thread_list): Update.
4931 (ravenscar_thread_target::active_task): Now method.
4932 (ravenscar_thread_target::store_registers)
4933 (ravenscar_thread_target::prepare_to_store)
4934 (ravenscar_thread_target::prepare_to_store)
4935 (ravenscar_thread_target::mourn_inferior): Update.
4936 (ravenscar_inferior_created): Use "new" to create target.
4937 (ravenscar_thread_target::get_ada_task_ptid): Update.
4938 (_initialize_ravenscar): Don't initialize base_ptid.
4939 (ravenscar_ops): Remove global.
4941 2019-02-15 Tom Tromey <tromey@adacore.com>
4943 * target.h (push_target): Declare new overload.
4944 * target.c (push_target): New overload, taking an rvalue reference.
4945 * remote.c (remote_target::open_1): Use push_target overload.
4946 * corelow.c (core_target_open): Use push_target overload.
4948 2019-02-15 Tom Tromey <tromey@adacore.com>
4950 * ravenscar-thread.c (is_ravenscar_task)
4951 (ravenscar_task_is_currently_active): Return bool.
4952 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
4953 (_initialize_ravenscar): Remove "(void)".
4954 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
4957 2019-02-15 Tom Tromey <tromey@adacore.com>
4959 * ravenscar-thread.c (ravenscar_runtime_initializer)
4960 (has_ravenscar_runtime, get_running_thread_id)
4961 (ravenscar_thread_target::resume): Fix indentation.
4963 2019-02-15 Tom Tromey <tromey@adacore.com>
4965 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
4966 from ravenscar_arch_ops.
4967 (sparc_ravenscar_ops::fetch_registers)
4968 (sparc_ravenscar_ops::store_registers): Now methods.
4969 (sparc_ravenscar_prepare_to_store): Remove.
4970 (sparc_ravenscar_ops): Redefine.
4971 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
4972 methods and destructor. Remove members.
4973 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
4974 (ravenscar_thread_target::store_registers)
4975 (ravenscar_thread_target::prepare_to_store): Update.
4976 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
4978 (struct ppc_ravenscar_powerpc_ops): Derive from
4980 (ppc_ravenscar_powerpc_ops::fetch_registers)
4981 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
4982 (ppc_ravenscar_powerpc_ops): Redefine.
4983 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
4984 (ppc_ravenscar_e500_ops::fetch_registers)
4985 (ppc_ravenscar_e500_ops::store_registers): Now methods.
4986 (ppc_ravenscar_e500_ops): Redefine.
4987 * aarch64-ravenscar-thread.c
4988 (aarch64_ravenscar_generic_prepare_to_store): Remove.
4989 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
4990 (aarch64_ravenscar_fetch_registers)
4991 (aarch64_ravenscar_store_registers): Now methods.
4992 (aarch64_ravenscar_ops): Redefine.
4994 2019-02-15 Tom Tromey <tromey@adacore.com>
4996 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
4997 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4998 (ravenscar_thread_target::stopped_by_watchpoint)
4999 (ravenscar_thread_target::stopped_data_address)
5000 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
5002 2019-02-15 Tom Tromey <tromey@adacore.com>
5004 * ravenscar-thread.c: Fix some typos.
5006 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5007 Tom Tromey <tromey@adacore.com>
5009 * ada-lang.c (ada_exception_sal): Change addr_string to a
5011 (create_ada_exception_catchpoint): Update.
5013 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5014 Tom Tromey <tromey@adacore.com>
5016 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
5017 (bp_location_ops): Remove.
5018 (base_breakpoint_allocate_location): Update.
5019 (free_bp_location): Update.
5020 * ada-lang.c (class ada_catchpoint_location)
5021 <ada_catchpoint_location>: Remove ops parameter.
5022 (ada_catchpoint_location_dtor): Remove.
5023 (ada_catchpoint_location_ops): Remove.
5024 (allocate_location_exception): Update.
5025 * breakpoint.h (struct bp_location_ops): Remove.
5026 (class bp_location) <bp_location>: Remove bp_location_ops
5028 <~bp_location>: Add destructor.
5031 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5032 Pedro Alves <palves@redhat.com>
5034 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
5037 2019-02-14 David Michael <fedora.dm0@gmail.com>
5038 Samuel Thibault <samuel.thibault@gnu.org>
5039 Thomas Schwinge <thomas@codesourcery.com>
5041 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
5042 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
5044 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5046 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
5047 (check_empty): Use "const char *".
5049 * gnu-nat.c (gnu_nat_target::detach): Instead of
5050 'detach_inferior (pid)' call
5051 'detach_inferior (find_inferior_pid (pid))'.
5053 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
5054 'nat/fork-inferior.o'.
5055 * gnu-nat.c: #include "nat/fork-inferior.h".
5057 * gnu-nat.c (gnu_nat_target::detach): Instead of
5058 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
5059 * gnu-nat.h: #include "inf-child.h".
5060 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
5061 'i386_gnu_nat_target::fetch_registers'.
5062 (gnu_store_registers): Rename/move to
5063 'i386_gnu_nat_target::store_registers'.
5065 * config/i386/nm-i386gnu.h: Don't "#include" any files.
5066 * gnu-nat.h (mach_thread_info): New function.
5067 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
5069 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
5071 2019-02-14 Frederic Konrad <konrad@adacore.com>
5073 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
5075 2019-02-14 Joel Brobecker <brobecker@adacore.com>
5077 * windows-nat.c (windows_add_thread): Add new parameter
5078 "main_thread_p" with default value set to false. Update
5079 function documentation as well as all callers.
5080 (windows_delete_thread): Likewise.
5081 (fake_create_process): Update call to windows_add_thread.
5082 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
5083 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
5084 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
5085 call to windows_delete_thread.
5087 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
5089 * MAINTAINERS: Add Andrew Burgess as global maintainer.
5091 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5093 * symfile.c (find_separate_debug_file): Use canonical path of
5094 sysroot with child_path instead of gdb_sysroot if it is valid.
5096 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5098 * symfile.c (find_separate_debug_file): Use child_path to
5099 determine if an object file is under a sysroot.
5101 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5103 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5104 unittests/child-path-selftests.c.
5105 * common/pathstuff.c (child_path): New function.
5106 * common/pathstuff.h (child_path): New prototype.
5107 * unittests/child-path-selftests.c: New file.
5109 2019-02-12 John Baldwin <jhb@FreeBSD.org>
5111 * symfile.c (find_separate_debug_file): Look for separate debug
5112 files in debug directories under the sysroot.
5114 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5116 * symtab.h (struct minimal_symbol data_p): New const method.
5117 (struct minimal_symbol text_p): Likewise.
5118 * symtab.c (output_source_filename): Use file name style
5120 (print_symbol_info): Likewise.
5121 (print_msymbol_info): Use address style to print addresses.
5122 Use function name style to print executable text symbols.
5123 (expand_symtab_containing_pc): Use data_p.
5124 (find_pc_sect_compunit_symtab): Likewise.
5126 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5128 * breakpoint.c (describe_other_breakpoints): Use address style
5130 (say_where): Likewise.
5132 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5134 * ada-typeprint.c (print_func_type): Print function name
5135 style to print function name.
5136 * c-typeprint.c (c_print_type_1): Likewise.
5138 2019-02-11 Alan Hayward <alan.hayward@arm.com>
5140 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
5143 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5145 * c-exp.y (direct_abs_decl): Use emplace_back to record the
5148 2019-02-10 Joel Brobecker <brobecker@adacore.com>
5150 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
5151 TYPE_CODE_REF types.
5153 2019-02-08 Jim Wilson <jimw@sifive.com>
5155 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
5156 (riscv_linux_fregset): New.
5157 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
5159 2019-02-07 Tom Tromey <tom@tromey.com>
5161 * thread.c (thread_cancel_execution_command): Update.
5162 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
5164 (struct thread_fsm_ops): Remove.
5165 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
5166 (thread_fsm_should_stop, thread_fsm_return_value)
5167 (thread_fsm_set_finished, thread_fsm_finished_p)
5168 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
5170 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
5171 * infrun.c (clear_proceed_status_thread)
5172 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
5173 (print_stop_event): Update.
5174 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
5176 (step_command_fsm_ops): Remove.
5177 (new_step_command_fsm): Remove.
5179 (step_command_fsm::should_stop): Rename from
5180 step_command_fsm_should_stop.
5181 (step_command_fsm::clean_up): Rename from
5182 step_command_fsm_clean_up.
5183 (step_command_fsm::do_async_reply_reason): Rename from
5184 step_command_fsm_async_reply_reason.
5185 (struct until_next_fsm): Inherit from thread_fsm. Add
5187 (until_next_fsm_ops): Remove.
5188 (new_until_next_fsm): Remove.
5189 (until_next_fsm::should_stop): Rename from
5190 until_next_fsm_should_stop.
5191 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
5192 (until_next_fsm::do_async_reply_reason): Rename from
5193 until_next_fsm_async_reply_reason.
5194 (struct finish_command_fsm): Inherit from thread_fsm. Add
5195 constructor. Change type of breakpoint.
5196 (finish_command_fsm_ops): Remove.
5197 (new_finish_command_fsm): Remove.
5198 (finish_command_fsm::should_stop): Rename from
5199 finish_command_fsm_should_stop.
5200 (finish_command_fsm::clean_up): Rename from
5201 finish_command_fsm_clean_up.
5202 (finish_command_fsm::return_value): Rename from
5203 finish_command_fsm_return_value.
5204 (finish_command_fsm::do_async_reply_reason): Rename from
5205 finish_command_fsm_async_reply_reason.
5206 (finish_command): Update.
5207 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
5209 (call_thread_fsm_ops): Remove.
5210 (call_thread_fsm::call_thread_fsm): Rename from
5211 new_call_thread_fsm.
5212 (call_thread_fsm::should_stop): Rename from
5213 call_thread_fsm_should_stop.
5214 (call_thread_fsm::should_notify_stop): Rename from
5215 call_thread_fsm_should_notify_stop.
5216 (run_inferior_call, call_function_by_hand_dummy): Update.
5217 * cli/cli-interp.c (should_print_stop_to_console): Update.
5218 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
5219 Add constructor. Change type of location_breakpoint,
5221 (until_break_fsm_ops): Remove.
5222 (new_until_break_fsm): Remove.
5223 (until_break_fsm::should_stop): Rename from
5224 until_break_fsm_should_stop.
5225 (until_break_fsm::clean_up): Rename from
5226 until_break_fsm_clean_up.
5227 (until_break_fsm::do_async_reply_reason): Rename from
5228 until_break_fsm_async_reply_reason.
5229 (until_break_command): Update.
5230 * thread-fsm.c: Remove.
5231 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
5233 2019-02-07 Tom Tromey <tom@tromey.com>
5235 * yy-remap.h: Add include guard.
5236 * xtensa-tdep.h: Add include guard.
5237 * xcoffread.h: Rename include guard.
5238 * varobj-iter.h: Add include guard.
5239 * tui/tui.h: Rename include guard.
5240 * tui/tui-winsource.h: Rename include guard.
5241 * tui/tui-wingeneral.h: Rename include guard.
5242 * tui/tui-windata.h: Rename include guard.
5243 * tui/tui-win.h: Rename include guard.
5244 * tui/tui-stack.h: Rename include guard.
5245 * tui/tui-source.h: Rename include guard.
5246 * tui/tui-regs.h: Rename include guard.
5247 * tui/tui-out.h: Rename include guard.
5248 * tui/tui-layout.h: Rename include guard.
5249 * tui/tui-io.h: Rename include guard.
5250 * tui/tui-hooks.h: Rename include guard.
5251 * tui/tui-file.h: Rename include guard.
5252 * tui/tui-disasm.h: Rename include guard.
5253 * tui/tui-data.h: Rename include guard.
5254 * tui/tui-command.h: Rename include guard.
5255 * tic6x-tdep.h: Add include guard.
5256 * target/waitstatus.h: Rename include guard.
5257 * target/wait.h: Rename include guard.
5258 * target/target.h: Rename include guard.
5259 * target/resume.h: Rename include guard.
5260 * target-float.h: Rename include guard.
5261 * stabsread.h: Add include guard.
5262 * rs6000-tdep.h: Add include guard.
5263 * riscv-fbsd-tdep.h: Add include guard.
5264 * regformats/regdef.h: Rename include guard.
5265 * record.h: Rename include guard.
5266 * python/python.h: Rename include guard.
5267 * python/python-internal.h: Rename include guard.
5268 * python/py-stopevent.h: Rename include guard.
5269 * python/py-ref.h: Rename include guard.
5270 * python/py-record.h: Rename include guard.
5271 * python/py-record-full.h: Rename include guard.
5272 * python/py-record-btrace.h: Rename include guard.
5273 * python/py-instruction.h: Rename include guard.
5274 * python/py-events.h: Rename include guard.
5275 * python/py-event.h: Rename include guard.
5276 * procfs.h: Add include guard.
5277 * proc-utils.h: Add include guard.
5278 * p-lang.h: Add include guard.
5279 * or1k-tdep.h: Rename include guard.
5280 * observable.h: Rename include guard.
5281 * nto-tdep.h: Rename include guard.
5282 * nat/x86-linux.h: Rename include guard.
5283 * nat/x86-linux-dregs.h: Rename include guard.
5284 * nat/x86-gcc-cpuid.h: Add include guard.
5285 * nat/x86-dregs.h: Rename include guard.
5286 * nat/x86-cpuid.h: Rename include guard.
5287 * nat/ppc-linux.h: Rename include guard.
5288 * nat/mips-linux-watch.h: Rename include guard.
5289 * nat/linux-waitpid.h: Rename include guard.
5290 * nat/linux-ptrace.h: Rename include guard.
5291 * nat/linux-procfs.h: Rename include guard.
5292 * nat/linux-osdata.h: Rename include guard.
5293 * nat/linux-nat.h: Rename include guard.
5294 * nat/linux-namespaces.h: Rename include guard.
5295 * nat/linux-btrace.h: Rename include guard.
5296 * nat/glibc_thread_db.h: Rename include guard.
5297 * nat/gdb_thread_db.h: Rename include guard.
5298 * nat/gdb_ptrace.h: Rename include guard.
5299 * nat/fork-inferior.h: Rename include guard.
5300 * nat/amd64-linux-siginfo.h: Rename include guard.
5301 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
5302 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
5303 * nat/aarch64-linux.h: Rename include guard.
5304 * nat/aarch64-linux-hw-point.h: Rename include guard.
5305 * mn10300-tdep.h: Add include guard.
5306 * mips-linux-tdep.h: Add include guard.
5307 * mi/mi-parse.h: Rename include guard.
5308 * mi/mi-out.h: Rename include guard.
5309 * mi/mi-main.h: Rename include guard.
5310 * mi/mi-interp.h: Rename include guard.
5311 * mi/mi-getopt.h: Rename include guard.
5312 * mi/mi-console.h: Rename include guard.
5313 * mi/mi-common.h: Rename include guard.
5314 * mi/mi-cmds.h: Rename include guard.
5315 * mi/mi-cmd-break.h: Rename include guard.
5316 * m2-lang.h: Add include guard.
5317 * location.h: Rename include guard.
5318 * linux-record.h: Rename include guard.
5319 * linux-nat.h: Add include guard.
5320 * linux-fork.h: Add include guard.
5321 * i386-darwin-tdep.h: Rename include guard.
5322 * hppa-linux-offsets.h: Add include guard.
5323 * guile/guile.h: Rename include guard.
5324 * guile/guile-internal.h: Rename include guard.
5325 * gnu-nat.h: Rename include guard.
5326 * gdb-stabs.h: Rename include guard.
5327 * frv-tdep.h: Add include guard.
5328 * f-lang.h: Add include guard.
5329 * event-loop.h: Add include guard.
5330 * darwin-nat.h: Rename include guard.
5331 * cp-abi.h: Rename include guard.
5332 * config/sparc/nm-sol2.h: Rename include guard.
5333 * config/nm-nto.h: Rename include guard.
5334 * config/nm-linux.h: Add include guard.
5335 * config/i386/nm-i386gnu.h: Rename include guard.
5336 * config/djgpp/nl_types.h: Rename include guard.
5337 * config/djgpp/langinfo.h: Rename include guard.
5338 * compile/gcc-cp-plugin.h: Add include guard.
5339 * compile/gcc-c-plugin.h: Add include guard.
5340 * compile/compile.h: Rename include guard.
5341 * compile/compile-object-run.h: Rename include guard.
5342 * compile/compile-object-load.h: Rename include guard.
5343 * compile/compile-internal.h: Rename include guard.
5344 * compile/compile-cplus.h: Rename include guard.
5345 * compile/compile-c.h: Rename include guard.
5346 * common/xml-utils.h: Rename include guard.
5347 * common/x86-xstate.h: Rename include guard.
5348 * common/version.h: Rename include guard.
5349 * common/vec.h: Rename include guard.
5350 * common/tdesc.h: Rename include guard.
5351 * common/selftest.h: Rename include guard.
5352 * common/scoped_restore.h: Rename include guard.
5353 * common/scoped_mmap.h: Rename include guard.
5354 * common/scoped_fd.h: Rename include guard.
5355 * common/safe-iterator.h: Rename include guard.
5356 * common/run-time-clock.h: Rename include guard.
5357 * common/refcounted-object.h: Rename include guard.
5358 * common/queue.h: Rename include guard.
5359 * common/ptid.h: Rename include guard.
5360 * common/print-utils.h: Rename include guard.
5361 * common/preprocessor.h: Rename include guard.
5362 * common/pathstuff.h: Rename include guard.
5363 * common/observable.h: Rename include guard.
5364 * common/netstuff.h: Rename include guard.
5365 * common/job-control.h: Rename include guard.
5366 * common/host-defs.h: Rename include guard.
5367 * common/gdb_wait.h: Rename include guard.
5368 * common/gdb_vecs.h: Rename include guard.
5369 * common/gdb_unlinker.h: Rename include guard.
5370 * common/gdb_unique_ptr.h: Rename include guard.
5371 * common/gdb_tilde_expand.h: Rename include guard.
5372 * common/gdb_sys_time.h: Rename include guard.
5373 * common/gdb_string_view.h: Rename include guard.
5374 * common/gdb_splay_tree.h: Rename include guard.
5375 * common/gdb_setjmp.h: Rename include guard.
5376 * common/gdb_ref_ptr.h: Rename include guard.
5377 * common/gdb_optional.h: Rename include guard.
5378 * common/gdb_locale.h: Rename include guard.
5379 * common/gdb_assert.h: Rename include guard.
5380 * common/filtered-iterator.h: Rename include guard.
5381 * common/filestuff.h: Rename include guard.
5382 * common/fileio.h: Rename include guard.
5383 * common/environ.h: Rename include guard.
5384 * common/common-utils.h: Rename include guard.
5385 * common/common-types.h: Rename include guard.
5386 * common/common-regcache.h: Rename include guard.
5387 * common/common-inferior.h: Rename include guard.
5388 * common/common-gdbthread.h: Rename include guard.
5389 * common/common-exceptions.h: Rename include guard.
5390 * common/common-defs.h: Rename include guard.
5391 * common/common-debug.h: Rename include guard.
5392 * common/cleanups.h: Rename include guard.
5393 * common/buffer.h: Rename include guard.
5394 * common/btrace-common.h: Rename include guard.
5395 * common/break-common.h: Rename include guard.
5396 * cli/cli-utils.h: Rename include guard.
5397 * cli/cli-style.h: Rename include guard.
5398 * cli/cli-setshow.h: Rename include guard.
5399 * cli/cli-script.h: Rename include guard.
5400 * cli/cli-interp.h: Rename include guard.
5401 * cli/cli-decode.h: Rename include guard.
5402 * cli/cli-cmds.h: Rename include guard.
5403 * charset-list.h: Add include guard.
5404 * buildsym-legacy.h: Rename include guard.
5405 * bfin-tdep.h: Add include guard.
5406 * ax.h: Rename include guard.
5407 * arm-linux-tdep.h: Add include guard.
5408 * arm-fbsd-tdep.h: Add include guard.
5409 * arch/xtensa.h: Rename include guard.
5410 * arch/tic6x.h: Add include guard.
5411 * arch/i386.h: Add include guard.
5412 * arch/arm.h: Rename include guard.
5413 * arch/arm-linux.h: Rename include guard.
5414 * arch/arm-get-next-pcs.h: Rename include guard.
5415 * arch/amd64.h: Add include guard.
5416 * arch/aarch64-insn.h: Rename include guard.
5417 * arch-utils.h: Rename include guard.
5418 * annotate.h: Add include guard.
5419 * amd64-darwin-tdep.h: Rename include guard.
5420 * aarch64-linux-tdep.h: Add include guard.
5421 * aarch64-fbsd-tdep.h: Add include guard.
5422 * aarch32-linux-nat.h: Add include guard.
5424 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5426 * macrotab.c (macro_define_internal): New function that
5427 factorizes macro_define_object_internal and macro_define_function
5429 (macro_define_object_internal): Use macro_define_internal.
5430 (macro_define_function): Likewise.
5432 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5434 * macrocmd.c (extract_identifier): Return
5435 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
5438 2019-02-06 John Baldwin <jhb@FreeBSD.org>
5440 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
5442 2019-02-05 Tom Tromey <tom@tromey.com>
5444 * target.c (target_stack::unpush): Move assertion earlier.
5446 2019-01-30 Tom Tromey <tom@tromey.com>
5449 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
5450 (gdbpy_parse_and_eval): Likewise.
5451 * python/python-internal.h (gdbpy_allow_threads): New class.
5453 2019-01-28 John Baldwin <jhb@FreeBSD.org>
5455 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
5456 (aarch64_fbsd_fpregmap): Move earlier.
5457 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
5458 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5459 instead of individual calls to trad_frame_set_reg_addr.
5460 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
5462 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
5463 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5464 instead of individual calls to trad_frame_set_reg_addr.
5466 2019-01-28 Alan Hayward <alan.hayward@arm.com>
5468 * CONTRIBUTE: Replace contribution list with wiki link.
5470 2019-01-25 Tom Tromey <tom@tromey.com>
5472 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
5474 2019-01-25 Tom Tromey <tom@tromey.com>
5476 * xtensa-linux-nat.c: Fix common/ includes.
5477 * xml-support.h: Fix common/ includes.
5478 * xml-support.c: Fix common/ includes.
5479 * x86-linux-nat.c: Fix common/ includes.
5480 * windows-nat.c: Fix common/ includes.
5481 * varobj.h: Fix common/ includes.
5482 * varobj.c: Fix common/ includes.
5483 * value.c: Fix common/ includes.
5484 * valops.c: Fix common/ includes.
5485 * utils.c: Fix common/ includes.
5486 * unittests/xml-utils-selftests.c: Fix common/ includes.
5487 * unittests/utils-selftests.c: Fix common/ includes.
5488 * unittests/unpack-selftests.c: Fix common/ includes.
5489 * unittests/tracepoint-selftests.c: Fix common/ includes.
5490 * unittests/style-selftests.c: Fix common/ includes.
5491 * unittests/string_view-selftests.c: Fix common/ includes.
5492 * unittests/scoped_restore-selftests.c: Fix common/ includes.
5493 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
5494 * unittests/scoped_fd-selftests.c: Fix common/ includes.
5495 * unittests/rsp-low-selftests.c: Fix common/ includes.
5496 * unittests/parse-connection-spec-selftests.c: Fix common/
5498 * unittests/optional-selftests.c: Fix common/ includes.
5499 * unittests/offset-type-selftests.c: Fix common/ includes.
5500 * unittests/observable-selftests.c: Fix common/ includes.
5501 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
5502 * unittests/memrange-selftests.c: Fix common/ includes.
5503 * unittests/memory-map-selftests.c: Fix common/ includes.
5504 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
5505 * unittests/function-view-selftests.c: Fix common/ includes.
5506 * unittests/environ-selftests.c: Fix common/ includes.
5507 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
5508 * unittests/common-utils-selftests.c: Fix common/ includes.
5509 * unittests/cli-utils-selftests.c: Fix common/ includes.
5510 * unittests/array-view-selftests.c: Fix common/ includes.
5511 * ui-file.c: Fix common/ includes.
5512 * tui/tui-io.c: Fix common/ includes.
5513 * tracepoint.h: Fix common/ includes.
5514 * tracepoint.c: Fix common/ includes.
5515 * tracefile-tfile.c: Fix common/ includes.
5516 * top.h: Fix common/ includes.
5517 * top.c: Fix common/ includes.
5518 * thread.c: Fix common/ includes.
5519 * target/waitstatus.h: Fix common/ includes.
5520 * target/waitstatus.c: Fix common/ includes.
5521 * target.h: Fix common/ includes.
5522 * target.c: Fix common/ includes.
5523 * target-memory.c: Fix common/ includes.
5524 * target-descriptions.c: Fix common/ includes.
5525 * symtab.h: Fix common/ includes.
5526 * symfile.c: Fix common/ includes.
5527 * stap-probe.c: Fix common/ includes.
5528 * spu-linux-nat.c: Fix common/ includes.
5529 * sparc-nat.c: Fix common/ includes.
5530 * source.c: Fix common/ includes.
5531 * solib.c: Fix common/ includes.
5532 * solib-target.c: Fix common/ includes.
5533 * ser-unix.c: Fix common/ includes.
5534 * ser-tcp.c: Fix common/ includes.
5535 * ser-pipe.c: Fix common/ includes.
5536 * ser-base.c: Fix common/ includes.
5537 * selftest-arch.c: Fix common/ includes.
5538 * s12z-tdep.c: Fix common/ includes.
5539 * rust-exp.y: Fix common/ includes.
5540 * rs6000-aix-tdep.c: Fix common/ includes.
5541 * riscv-tdep.c: Fix common/ includes.
5542 * remote.c: Fix common/ includes.
5543 * remote-notif.h: Fix common/ includes.
5544 * remote-fileio.h: Fix common/ includes.
5545 * remote-fileio.c: Fix common/ includes.
5546 * regcache.h: Fix common/ includes.
5547 * regcache.c: Fix common/ includes.
5548 * record-btrace.c: Fix common/ includes.
5549 * python/python.c: Fix common/ includes.
5550 * python/py-type.c: Fix common/ includes.
5551 * python/py-inferior.c: Fix common/ includes.
5552 * progspace.h: Fix common/ includes.
5553 * producer.c: Fix common/ includes.
5554 * procfs.c: Fix common/ includes.
5555 * proc-api.c: Fix common/ includes.
5556 * printcmd.c: Fix common/ includes.
5557 * ppc-linux-nat.c: Fix common/ includes.
5558 * parser-defs.h: Fix common/ includes.
5559 * osdata.c: Fix common/ includes.
5560 * obsd-nat.c: Fix common/ includes.
5561 * nat/x86-linux.c: Fix common/ includes.
5562 * nat/x86-linux-dregs.c: Fix common/ includes.
5563 * nat/x86-dregs.h: Fix common/ includes.
5564 * nat/x86-dregs.c: Fix common/ includes.
5565 * nat/ppc-linux.c: Fix common/ includes.
5566 * nat/mips-linux-watch.h: Fix common/ includes.
5567 * nat/mips-linux-watch.c: Fix common/ includes.
5568 * nat/linux-waitpid.c: Fix common/ includes.
5569 * nat/linux-ptrace.h: Fix common/ includes.
5570 * nat/linux-ptrace.c: Fix common/ includes.
5571 * nat/linux-procfs.c: Fix common/ includes.
5572 * nat/linux-personality.c: Fix common/ includes.
5573 * nat/linux-osdata.c: Fix common/ includes.
5574 * nat/linux-namespaces.c: Fix common/ includes.
5575 * nat/linux-btrace.h: Fix common/ includes.
5576 * nat/linux-btrace.c: Fix common/ includes.
5577 * nat/fork-inferior.c: Fix common/ includes.
5578 * nat/amd64-linux-siginfo.c: Fix common/ includes.
5579 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
5580 * nat/aarch64-linux.c: Fix common/ includes.
5581 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
5582 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
5583 * namespace.h: Fix common/ includes.
5584 * mips-linux-tdep.c: Fix common/ includes.
5585 * minsyms.c: Fix common/ includes.
5586 * mi/mi-parse.h: Fix common/ includes.
5587 * mi/mi-main.c: Fix common/ includes.
5588 * mi/mi-cmd-env.c: Fix common/ includes.
5589 * memrange.h: Fix common/ includes.
5590 * memattr.c: Fix common/ includes.
5591 * maint.h: Fix common/ includes.
5592 * maint.c: Fix common/ includes.
5593 * main.c: Fix common/ includes.
5594 * machoread.c: Fix common/ includes.
5595 * location.c: Fix common/ includes.
5596 * linux-thread-db.c: Fix common/ includes.
5597 * linux-nat.c: Fix common/ includes.
5598 * linux-fork.c: Fix common/ includes.
5599 * inline-frame.c: Fix common/ includes.
5600 * infrun.c: Fix common/ includes.
5601 * inflow.c: Fix common/ includes.
5602 * inferior.h: Fix common/ includes.
5603 * inferior.c: Fix common/ includes.
5604 * infcmd.c: Fix common/ includes.
5605 * inf-ptrace.c: Fix common/ includes.
5606 * inf-child.c: Fix common/ includes.
5607 * ia64-linux-nat.c: Fix common/ includes.
5608 * i387-tdep.c: Fix common/ includes.
5609 * i386-tdep.c: Fix common/ includes.
5610 * i386-linux-tdep.c: Fix common/ includes.
5611 * i386-linux-nat.c: Fix common/ includes.
5612 * i386-go32-tdep.c: Fix common/ includes.
5613 * i386-fbsd-tdep.c: Fix common/ includes.
5614 * i386-fbsd-nat.c: Fix common/ includes.
5615 * guile/scm-type.c: Fix common/ includes.
5616 * guile/guile.c: Fix common/ includes.
5617 * go32-nat.c: Fix common/ includes.
5618 * gnu-nat.c: Fix common/ includes.
5619 * gdbthread.h: Fix common/ includes.
5620 * gdbarch-selftests.c: Fix common/ includes.
5621 * gdb_usleep.c: Fix common/ includes.
5622 * gdb_select.h: Fix common/ includes.
5623 * gdb_bfd.c: Fix common/ includes.
5624 * gcore.c: Fix common/ includes.
5625 * fork-child.c: Fix common/ includes.
5626 * findvar.c: Fix common/ includes.
5627 * fbsd-nat.c: Fix common/ includes.
5628 * event-top.c: Fix common/ includes.
5629 * event-loop.c: Fix common/ includes.
5630 * dwarf2read.c: Fix common/ includes.
5631 * dwarf2loc.c: Fix common/ includes.
5632 * dwarf2-frame.c: Fix common/ includes.
5633 * dwarf-index-cache.c: Fix common/ includes.
5634 * dtrace-probe.c: Fix common/ includes.
5635 * disasm-selftests.c: Fix common/ includes.
5636 * defs.h: Fix common/ includes.
5637 * csky-tdep.c: Fix common/ includes.
5638 * cp-valprint.c: Fix common/ includes.
5639 * cp-support.h: Fix common/ includes.
5640 * cp-support.c: Fix common/ includes.
5641 * corelow.c: Fix common/ includes.
5642 * completer.h: Fix common/ includes.
5643 * completer.c: Fix common/ includes.
5644 * compile/compile.c: Fix common/ includes.
5645 * compile/compile-loc2c.c: Fix common/ includes.
5646 * compile/compile-cplus-types.c: Fix common/ includes.
5647 * compile/compile-cplus-symbols.c: Fix common/ includes.
5648 * command.h: Fix common/ includes.
5649 * cli/cli-dump.c: Fix common/ includes.
5650 * cli/cli-cmds.c: Fix common/ includes.
5651 * charset.c: Fix common/ includes.
5652 * build-id.c: Fix common/ includes.
5653 * btrace.h: Fix common/ includes.
5654 * btrace.c: Fix common/ includes.
5655 * breakpoint.h: Fix common/ includes.
5656 * breakpoint.c: Fix common/ includes.
5658 (enum agent_op): Fix common/ includes.
5659 * ax-general.c (struct aop_map): Fix common/ includes.
5660 * ax-gdb.c: Fix common/ includes.
5661 * auxv.c: Fix common/ includes.
5662 * auto-load.c: Fix common/ includes.
5663 * arm-tdep.c: Fix common/ includes.
5664 * arch/riscv.c: Fix common/ includes.
5665 * arch/ppc-linux-common.c: Fix common/ includes.
5666 * arch/i386.c: Fix common/ includes.
5667 * arch/arm.c: Fix common/ includes.
5668 * arch/arm-linux.c: Fix common/ includes.
5669 * arch/arm-get-next-pcs.c: Fix common/ includes.
5670 * arch/amd64.c: Fix common/ includes.
5671 * arch/aarch64.c: Fix common/ includes.
5672 * arch/aarch64-insn.c: Fix common/ includes.
5673 * arch-utils.c: Fix common/ includes.
5674 * amd64-windows-tdep.c: Fix common/ includes.
5675 * amd64-tdep.c: Fix common/ includes.
5676 * amd64-sol2-tdep.c: Fix common/ includes.
5677 * amd64-obsd-tdep.c: Fix common/ includes.
5678 * amd64-nbsd-tdep.c: Fix common/ includes.
5679 * amd64-linux-tdep.c: Fix common/ includes.
5680 * amd64-linux-nat.c: Fix common/ includes.
5681 * amd64-fbsd-tdep.c: Fix common/ includes.
5682 * amd64-fbsd-nat.c: Fix common/ includes.
5683 * amd64-dicos-tdep.c: Fix common/ includes.
5684 * amd64-darwin-tdep.c: Fix common/ includes.
5685 * agent.c: Fix common/ includes.
5686 * ada-lang.h: Fix common/ includes.
5687 * ada-lang.c: Fix common/ includes.
5688 * aarch64-tdep.c: Fix common/ includes.
5690 2019-01-25 Tom Tromey <tom@tromey.com>
5692 * common/create-version.sh: Use common/version.h.
5694 2019-01-24 Pedro Alves <palves@redhat.com>
5696 * infrun.c (signal_stop, signal_print, signal_program)
5697 (signal_catch, signal_pass): Now arrays instead of pointers.
5698 (update_signals_program_target, do_target_resume)
5699 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
5700 * linux-nat.c (linux_nat_target::pass_signals)
5701 (linux_nat_target::create_inferior, linux_nat_target::attach):
5703 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
5704 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
5705 * procfs.c (procfs_target::pass_signals): Adjust.
5706 * record-full.c (record_full_target::resume): Adjust.
5707 * remote.c (remote_target::pass_signals)
5708 (remote_target::program_signals): Adjust.
5709 * target-debug.h (target_debug_print_signals): Now takes a
5710 gdb::array_view as parameter. Adjust.
5711 * target.h (target_ops) <pass_signals, program_signals>: Replace
5712 pointer and length parameters with gdb::array_view.
5713 (target_pass_signals, target_program_signals): Likewise.
5714 * target-delegates.c: Regenerate.
5716 2019-01-24 Pedro Alves <palves@redhat.com>
5718 * common/forward-scope-exit.h
5719 (forward_scope_exit::forward_scope_exit): Pass arguments to
5720 m_bind_function directly, instead of creating a std::bind and
5723 2019-01-24 Alan Hayward <alan.hayward@arm.com>
5725 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5727 (pass_in_v_vfp_candidate): Likewise.
5729 2019-01-23 Tom Tromey <tom@tromey.com>
5730 Pedro Alves <palves@redhat.com>
5732 * regcache.c (class regcache_invalidator): Remove.
5733 (regcache::raw_write): Use make_scope_exit.
5735 2019-01-23 Tom Tromey <tom@tromey.com>
5737 * ui-out.h (class ui_out_emit_type): Update comment.
5739 2019-01-23 Tom Tromey <tom@tromey.com>
5741 * infrun.c (fetch_inferior_event): Update comment.
5743 2019-01-23 Tom Tromey <tom@tromey.com>
5744 Pedro Alves <palves@redhat.com>
5746 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
5748 (fetch_inferior_event): Use SCOPE_EXIT.
5751 2019-01-23 Tom Tromey <tom@tromey.com>
5752 Pedro Alves <palves@redhat.com>
5754 * infrun.c (disable_thread_events): Delete.
5755 (stop_all_threads): Use SCOPE_EXIT.
5757 2019-01-23 Tom Tromey <tom@tromey.com>
5758 Pedro Alves <palves@redhat.com>
5760 * symfile.c: Include forward-scope-exit.h.
5761 (clear_symtab_users_cleanup): Replace forward declaration with
5762 a FORWARD_SCOPE_EXIT.
5763 (syms_from_objfile_1): Use the forward_scope_exit and
5764 gdb::optional instead of cleanup_function.
5765 (reread_symbols): Use the forward_scope_exit instead of
5767 (clear_symtab_users_cleanup): Remove function.
5769 2019-01-23 Tom Tromey <tom@tromey.com>
5770 Pedro Alves <palves@redhat.com>
5772 * linux-nat.c: Include scope-exit.h.
5773 (cleanup_target_stop): Remove.
5774 (linux_nat_target::static_tracepoint_markers_by_strid): Use
5777 2019-01-23 Tom Tromey <tom@tromey.com>
5778 Pedro Alves <palves@redhat.com>
5780 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
5781 (call_function_by_hand_dummy): Use SCOPE_EXIT.
5783 2019-01-23 Tom Tromey <tom@tromey.com>
5784 Andrew Burgess <andrew.burgess@embecosm.com>
5785 Pedro Alves <palves@redhat.com>
5787 * infrun.c (fetch_inferior_event): Use scope_exit.
5788 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
5789 * top.c (execute_command): Use scope_exit.
5790 * breakpoint.c (bpstat_do_actions): Use scope_exit.
5791 * utils.c (do_bpstat_clear_actions_cleanup)
5792 (make_bpstat_clear_actions_cleanup): Remove.
5794 2019-01-23 Tom Tromey <tom@tromey.com>
5795 Pedro Alves <palves@redhat.com>
5797 * infrun.c: Include "common/scope-exit.h"
5798 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
5799 (wait_for_inferior): Use SCOPE_EXIT.
5800 (fetch_inferior_event): Use scope_exit.
5802 2019-01-23 Tom Tromey <tom@tromey.com>
5803 Pedro Alves <palves@redhat.com>
5805 * breakpoint.c (create_breakpoint): Remove cleanup.
5807 2019-01-23 Tom Tromey <tom@tromey.com>
5808 Andrew Burgess <andrew.burgess@embecosm.com>
5809 Pedro Alves <palves@redhat.com>
5811 2019-01-23 Pedro Alves <palves@redhat.com>
5813 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
5815 2019-01-23 Pedro Alves <palves@redhat.com>
5816 Andrew Burgess <andrew.burgess@embecosm.com>
5818 * gdbthread.h: Include "common/forward-scope-exit.h".
5819 (scoped_finish_thread_state): Redefine custom class in terms of
5822 2019-01-23 Pedro Alves <palves@redhat.com>
5823 Andrew Burgess <andrew.burgess@embecosm.com>
5825 * common/forward-scope-exit.h: New file.
5827 2019-01-23 Pedro Alves <palves@redhat.com>
5828 Andrew Burgess <andrew.burgess@embecosm.com>
5829 Tom Tromey <tom@tromey.com>
5831 * common/scope-exit.h: New file.
5833 2019-01-23 Pedro Alves <palves@redhat.com>
5835 * common/preprocessor.h (ESC): Rename to ...
5836 (ESC_PARENS): ... this.
5837 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
5838 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
5840 2019-01-23 Tom Tromey <tom@tromey.com>
5842 * language.h (class scoped_switch_to_sym_language_if_auto):
5843 Initialize m_lang in both cases.
5845 2019-01-23 Alan Hayward <alan.hayward@arm.com>
5847 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
5850 2019-01-22 Tom Tromey <tom@tromey.com>
5852 * corelow.c: Do not include sys/file.h.
5854 2019-01-22 Tom Tromey <tom@tromey.com>
5856 * tui/tui-wingeneral.h: Include gdb_curses.h.
5858 2019-01-22 Tom Tromey <tom@tromey.com>
5860 * source-cache.h (class source_cache) <get_source_lines,
5861 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
5863 2019-01-22 Tom Tromey <tom@tromey.com>
5865 * remote-fileio.h (struct remote_target): Declare.
5867 2019-01-22 Tom Tromey <tom@tromey.com>
5869 * python/py-arch.c: Do not include py-ref.h.
5870 * python/py-bpevent.c: Do not include py-ref.h.
5871 * python/py-cmd.c: Do not include py-ref.h.
5872 * python/py-continueevent.c: Do not include py-ref.h.
5873 * python/py-event.h: Do not include py-ref.h.
5874 * python/py-evtregistry.c: Do not include py-ref.h.
5875 * python/py-finishbreakpoint.c: Do not include py-ref.h.
5876 * python/py-frame.c: Do not include py-ref.h.
5877 * python/py-framefilter.c: Do not include py-ref.h.
5878 * python/py-function.c: Do not include py-ref.h.
5879 * python/py-infevents.c: Do not include py-ref.h.
5880 * python/py-linetable.c: Do not include py-ref.h.
5881 * python/py-objfile.c: Do not include py-ref.h.
5882 * python/py-param.c: Do not include py-ref.h.
5883 * python/py-prettyprint.c: Do not include py-ref.h.
5884 * python/py-progspace.c: Do not include py-ref.h.
5885 * python/py-symbol.c: Do not include py-ref.h.
5886 * python/py-symtab.c: Do not include py-ref.h.
5887 * python/py-type.c: Do not include py-ref.h.
5888 * python/py-unwind.c: Do not include py-ref.h.
5889 * python/py-utils.c: Do not include py-ref.h.
5890 * python/py-value.c: Do not include py-ref.h.
5891 * python/py-varobj.c: Do not include py-ref.h.
5892 * python/py-xmethods.c: Do not include py-ref.h.
5893 * python/python.c: Do not include py-ref.h.
5894 * varobj.c: Do not include py-ref.h.
5896 2019-01-22 Tom Tromey <tom@tromey.com>
5898 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
5901 2019-01-22 Tom Tromey <tom@tromey.com>
5903 * compile/compile-cplus-types.c: Remove a comment by #include.
5905 2019-01-22 Tom Tromey <tom@tromey.com>
5907 * compile/gcc-c-plugin.h: Include compile-internal.h.
5909 2019-01-22 Tom Tromey <tom@tromey.com>
5911 * stabsread.c (EXTERN): Do not define.
5912 (symnum, next_symbol_text_func, processing_gcc_compilation)
5913 (within_function, global_sym_chain, global_stabs)
5914 (previous_stab_code, this_object_header_files)
5915 (n_this_object_header_files)
5916 (n_allocated_this_object_header_files): Define.
5917 * stabsread.h (EXTERN): Never define. Use "extern".
5919 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5921 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
5924 2019-01-21 Tom Tromey <tom@tromey.com>
5926 * ui-out.c: Fix includes.
5927 * tui/tui-source.c: Fix includes.
5928 * target.c: Fix includes.
5929 * remote.c: Fix includes.
5930 * regcache.c: Fix includes.
5931 * python/py-block.c: Fix includes.
5932 * printcmd.c: Fix includes.
5933 * or1k-tdep.c: Fix includes.
5934 * mi/mi-main.c: Fix includes.
5935 * m32r-tdep.c: Fix includes.
5936 * csky-tdep.c: Fix includes.
5937 * compile/compile-cplus-types.c: Fix includes.
5938 * cli/cli-interp.c: Fix includes.
5940 2019-01-21 Alan Hayward <alan.hayward@arm.com>
5942 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5945 2019-01-16 Tom Tromey <tom@tromey.com>
5947 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
5949 (struct objfile) <msymbols_range>: Move from top level.
5950 <msymbols>: New method.
5951 (class objfile_msymbols): Remove.
5952 * symtab.c (default_collect_symbol_completion_matches_break_on):
5954 * symmisc.c (dump_msymbols): Update.
5955 * stabsread.c (scan_file_globals): Update.
5956 * objc-lang.c (info_selectors_command, info_classes_command)
5957 (find_methods): Update.
5958 * minsyms.c (find_solib_trampoline_target): Update.
5959 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
5960 * coffread.c (coff_symfile_read): Update.
5961 * ada-lang.c (ada_lookup_simple_minsym)
5962 (ada_collect_symbol_completion_matches): Update.
5964 2019-01-16 Tom Tromey <tom@tromey.com>
5966 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
5967 type. Remove no-argument constructor.
5968 <iterator::operator++>: Simplify.
5970 <end>: Use minimal_symbol_count.
5972 2019-01-16 Tom Tromey <tom@tromey.com>
5974 * objfiles.h (struct objfile) <psymtabs>: New method.
5975 (class objfile_psymtabs): Remove.
5976 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
5978 <range>: New method.
5979 (require_partial_symbols): Change return type.
5980 * psymtab.c (require_partial_symbols)
5981 (psym_expand_symtabs_matching): Update.
5982 * mdebugread.c (parse_partial_symbols): Update.
5983 * dbxread.c (dbx_end_psymtab): Update.
5985 2019-01-15 Tom Tromey <tom@tromey.com>
5987 * symtab.c (lookup_objfile_from_block)
5988 (lookup_symbol_in_objfile_symtabs)
5989 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
5990 (find_line_symtab, info_sources_command)
5991 (default_collect_symbol_completion_matches_break_on)
5992 (make_source_files_completion_list): Update.
5993 * symmisc.c (print_objfile_statistics, dump_objfile)
5994 (maintenance_print_symbols, maintenance_info_symtabs)
5995 (maintenance_check_symtabs, maintenance_info_line_tables):
5997 * source.c (select_source_symtab)
5998 (forget_cached_source_info_for_objfile): Update.
5999 * objfiles.h (class objfile_compunits): Remove.
6000 (struct objfile) <compunits_range>: New typedef.
6001 (compunits): New method.
6002 * objfiles.c (objfile_relocate1): Update.
6003 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6004 * maint.c (count_symtabs_and_blocks): Update.
6005 * linespec.c (iterate_over_all_matching_symtabs): Update.
6006 * cp-support.c (add_symbol_overload_list_qualified): Update.
6007 * coffread.c (coff_symtab_read): Update.
6008 * ada-lang.c (add_nonlocal_symbols)
6009 (ada_collect_symbol_completion_matches)
6010 (ada_add_global_exceptions): Update.
6012 2019-01-15 Tom Tromey <tom@tromey.com>
6014 * progspace.h (program_space) <objfiles_safe_range>: New
6016 <objfiles_safe>: New method.
6017 * objfiles.h (class all_objfiles_safe): Remove.
6018 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
6019 * jit.c (jit_inferior_exit_hook): Update.
6021 2019-01-17 Tom Tromey <tom@tromey.com>
6023 * progspace.h (program_space) <objfiles_range>: New typedef.
6024 <objfiles>: New method.
6025 <objfiles_head>: Rename from objfiles.
6026 (object_files): Update.
6027 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
6028 * guile/scm-pretty-print.c
6029 (ppscm_find_pretty_printer_from_objfiles): Update.
6030 * guile/scm-objfile.c (gdbscm_objfiles): Update.
6031 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
6033 * python/py-progspace.c (pspy_get_objfiles): Update.
6034 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6036 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6037 (objfpy_lookup_objfile_by_build_id): Update.
6038 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6039 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6041 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6042 (expand_symtab_containing_pc, lookup_objfile_from_block)
6043 (lookup_static_symbol, basic_lookup_transparent_type)
6044 (find_pc_sect_compunit_symtab, find_symbol_at_address)
6045 (find_line_symtab, info_sources_command)
6046 (default_collect_symbol_completion_matches_break_on)
6047 (make_source_files_completion_list, find_main_name): Update.
6048 * symmisc.c (print_symbol_bcache_statistics)
6049 (print_objfile_statistics, maintenance_print_symbols)
6050 (maintenance_print_msymbols, maintenance_print_objfiles)
6051 (maintenance_info_symtabs, maintenance_check_symtabs)
6052 (maintenance_expand_symtabs, maintenance_info_line_tables):
6054 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
6055 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
6056 (map_overlay_command, unmap_overlay_command)
6057 (simple_overlay_update, expand_symtabs_matching)
6058 (map_symbol_filenames): Update.
6059 * symfile-debug.c (set_debug_symfile): Update.
6060 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
6062 * source.c (select_source_symtab, forget_cached_source_info):
6064 * solib.c (solib_read_symbols): Update.
6065 * solib-spu.c (append_ocl_sos): Update.
6066 * psymtab.c (maintenance_print_psymbols)
6067 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
6068 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
6069 * printcmd.c (info_symbol_command): Update.
6070 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
6072 * objfiles.h (class all_objfiles): Remove.
6073 * objfiles.c (have_partial_symbols, have_full_symbols)
6074 (have_minimal_symbols, qsort_cmp, update_section_map)
6075 (shared_objfile_contains_address_p)
6076 (default_iterate_over_objfiles_in_search_order): Update.
6077 * objc-lang.c (info_selectors_command, info_classes_command)
6078 (find_methods): Update.
6079 * minsyms.c (find_solib_trampoline_target): Update.
6080 * maint.c (maintenance_info_sections)
6081 (maintenance_translate_address, count_symtabs_and_blocks):
6083 * main.c (captured_main_1): Update.
6084 * linux-thread-db.c (try_thread_db_load_from_pdir)
6085 (has_libpthread): Update.
6086 * linespec.c (iterate_over_all_matching_symtabs)
6087 (search_minsyms_for_name): Update.
6088 * jit.c (jit_find_objf_with_entry_addr): Update.
6089 * hppa-tdep.c (find_unwind_entry)
6090 (hppa_lookup_stub_minimal_symbol): Update.
6091 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
6093 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6094 (elf_gnu_ifunc_resolve_by_got): Update.
6095 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
6096 * dwarf-index-write.c (save_gdb_index_command): Update.
6097 * cp-support.c (add_symbol_overload_list_qualified): Update.
6098 * breakpoint.c (create_overlay_event_breakpoint)
6099 (create_longjmp_master_breakpoint)
6100 (create_std_terminate_master_breakpoint)
6101 (create_exception_master_breakpoint): Update.
6102 * blockframe.c (find_pc_partial_function): Update.
6103 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
6104 (ada_collect_symbol_completion_matches)
6105 (ada_add_global_exceptions): Update.
6107 2019-01-17 Tom Tromey <tom@tromey.com>
6109 * solib-target.c (lm_info_target_p): Remove typedef. Don't
6111 (solib_target_parse_libraries): Change return type.
6112 (library_list_start_segment, library_list_start_section)
6113 (library_list_end_library, library_list_start_library); Update.
6114 (solib_target_free_library_list): Remove.
6115 (solib_target_parse_libraries): Remove cleanup. Change return
6117 (solib_target_current_sos): Update.
6119 2019-01-17 Tom Tromey <tromey@bapiya>
6121 * valprint.c: Replace "the the" with "the".
6122 * symtab.c: Replace "the the" with "the".
6123 * solib.c: Replace "the the" with "the".
6124 * solib-dsbt.c: Replace "the the" with "the".
6125 * linespec.c: Replace "the the" with "the".
6126 * dwarf2loc.h: Replace "the the" with "the".
6127 * amd64-windows-tdep.c: Replace "the the" with "the".
6128 * aarch64-tdep.c: Replace "the the" with "the".
6130 2019-01-16 Keith Seitz <keiths@redhat.com>
6133 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
6134 <builder>: Rename to ..
6135 <m_builder>: ... this and make private.
6136 (dwarf2_cu::get_builder): New method. Change all users of
6137 `builder' to use this method.
6138 (dwarf2_start_symtab): Move to ...
6139 (dwarf2_cu::start_symtab): ... here. Update all callers
6140 (setup_type_unit_groups): Move to ...
6141 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
6143 (dwarf2_cu::reset_builder): New method.
6144 (process_full_compunit, process_full_type_unit): Use
6145 dwarf2_cu::reset_builder.
6146 (follow_die_offset): Record the ancestor CU if it is different
6147 from the followed DIE's CU.
6148 (follow_die_sig_1): Likewise.
6150 2019-01-15 Tom Tromey <tom@tromey.com>
6152 * remote.c (class remote_state) <buf>: Now a char_vector.
6154 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
6156 (remote_target::getpkt_or_notif_sane_1)
6157 (remote_target::getpkt_sane)
6158 (remote_target::getpkt_or_notif_sane): Likewise.
6159 (class remote_target) <putpkt>: New overload.
6160 (remote_target::read_frame): Change type of "buf_p". Remove
6162 (packet_ok): New overload.
6163 (packet_check_result): New overload.
6166 2019-01-14 Tom Tromey <tom@tromey.com>
6168 * remote-notif.c (handle_notification, remote_notif_ack)
6169 (remote_notif_parse): Make "buf" const.
6170 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
6172 (remote_notif_parse, remote_notif_ack, handle_notification):
6174 * remote.c (remote_notif_stop_parse): Make "buf" const.
6175 (remote_target::remote_parse_stop_reply): Make "buf" const.
6176 (remote_notif_stop_ack): Make "buf" const.
6178 2019-01-14 Tom Tromey <tom@tromey.com>
6180 * remote.c (remote_console_output): Make parameter const.
6182 2019-01-14 Tom Tromey <tom@tromey.com>
6184 * target-debug.h (target_debug_print_signals): Constify.
6185 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
6186 * procfs.c (procfs_target::pass_signals): Update.
6187 * linux-nat.c (linux_nat_target::pass_signals): Update.
6188 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
6189 * target-delegates.c: Rebuild.
6190 * remote.c (remote_target::program_signals): Update.
6191 (remote_target::pass_signals): Update.
6192 * target.c (target_pass_signals): Constify argument.
6193 (target_program_signals): Likewise.
6194 * target.h (struct target_ops) <pass_signals, program_signals>:
6196 (target_pass_signals, target_program_signals): Constify argument.
6198 2019-01-14 Tom Tromey <tom@tromey.com>
6201 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
6203 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6205 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
6207 * rs6000-tdep.c: Include reggroups.h.
6208 (IS_V_ALIAS_PSEUDOREG): Define.
6209 (rs6000_register_name): Return names for the "vX" aliases.
6210 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
6211 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
6212 aliases. Call default_register_reggroup_p for all other
6214 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
6216 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
6217 Handle "vX" aliases.
6218 (v_alias_pseudo_register_collect): New function.
6219 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
6220 (rs6000_gdbarch_init): Initialize "vX" aliases as
6221 pseudo-registers. Restore registration of
6222 rs6000_pseudo_register_reggroup_p with
6223 set_tdesc_pseudo_register_reggroup_p.
6225 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
6227 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
6228 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
6229 set_gdbarch_num_pseudo_regs.
6231 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6233 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
6234 Remove arg prefixname, add do_set and do_show.
6235 Add member functions set_list and show_list.
6236 * cli/cli-style.c (class cli_style_option): Update accordingly.
6237 (style_set_list): Move to file scope.
6238 (style_show_list): Likewise.
6239 (set_style): Call help_list.
6240 (show_style): Call cmd_show_list.
6241 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
6242 Update to use the new macro.
6244 2019-10-12 Joel Brobecker <brobecker@adacore.com>
6246 * ada-lang.c (_initialize_ada_language): Expand the help text
6247 for the "catch exception" command.
6249 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6251 * symtab.c (matching_obj_sections): Initialize obj,
6252 declare it closer to its usage.
6254 2019-01-10 Tom Tromey <tom@tromey.com>
6256 * thread-iter.h (inf_threads_iterator): Use next_iterator.
6257 (basic_inf_threads_range): Remove.
6258 (inf_threads_range, inf_non_exited_threads_range)
6259 (safe_inf_threads_range): Use next_adapter.
6261 2019-01-10 Keith Seitz <keiths@redhat.com>
6265 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
6266 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
6268 2019-01-10 Keith Seitz <keiths@redhat.com>
6272 * dictionary.c (pending_to_vector): Remove.
6273 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6274 Remove _1 suffix, replacing functions of the same name. Update
6276 (dict_create_hashed, dict_create_hashed_expandable)
6277 (dict_create_linear, dict_create_linear_expandable, dict_free)
6278 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
6279 Make functions static.
6281 2019-01-10 Keith Seitz <keiths@redhat.com>
6285 * dictionary.h (struct dictionary): Replace declaration with
6287 (dict_create_hashed, dict_create_hashed_expandable)
6288 (dict_create_linear, dict_create_linear_expandable)
6289 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
6290 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
6291 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
6292 taking multidictionary argument.
6293 [ALL_DICT_SYMBOLS]: Update for multidictionary.
6294 * block.h (struct block) <dict>: Change to multidictionary
6295 and rename `multidict'.
6296 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
6297 symmisc.c: Update all dictionary references to multidictionary.
6299 2019-01-10 Keith Seitz <keiths@redhat.com>
6303 * dictionary.c: Include unordered_map.
6304 (pending_to_vector): New function.
6305 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
6306 Rewrite the non-"_1" functions to take vector instead
6308 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
6309 "new" _1 versions of the same name.
6310 (multidictionary): Define.
6311 (std::hash<enum language): New definition.
6312 (collate_pending_symbols_by_language, mdict_create_hashed)
6313 (mdict_create_hashed_expandable, mdict_create_linear)
6314 (mdict_create_linear_expandable, mdict_free)
6315 (find_language_dictionary, create_new_language_dictionary)
6316 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
6317 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
6318 (mdict_size, mdict_empty): New functions.
6319 * dictionary.h (mdict_iterator): Define.
6321 2019-01-10 Pedro Alves <palves@redhat.com>
6323 * breakpoint.c (read_uploaded_action)
6324 (create_tracepoint_from_upload): Adjust to use
6325 gdb::unique_xmalloc_ptr.
6326 * ctf.c (ctf_write_uploaded_tp):
6327 (SET_ARRAY_FIELD): Use emplace_back.
6328 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
6329 * tracefile-tfile.c (tfile_write_uploaded_tp):
6330 * tracepoint.c (parse_tracepoint_definition): Adjust to use
6331 gdb::unique_xmalloc_ptr.
6332 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
6333 at_string, cond_string, cmd_strings>: Replace char pointers
6334 with gdb::unique_xmalloc_ptr.
6336 2019-01-10 Pedro Alves <palves@redhat.com>
6338 * solib-target.c (library_list_start_library): Don't xstrdup name.
6340 2019-01-10 Pedro Alves <palves@redhat.com>
6342 * mdebugread.c (parse_partial_symbols): Use
6343 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
6345 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6347 * linux-fork.c (scoped_switch_fork_info)
6348 <~scoped_switch_fork_info>: Fix incorrect variable name.
6350 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6352 * linux-fork.c (scoped_switch_fork_info)
6353 <scoped_switch_fork_info>: Make explicit.
6354 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
6356 2019-01-10 Tom Tromey <tom@tromey.com>
6358 * objfiles.h (objfile::reset_psymtabs): Update.
6359 * objfiles.c (objfile::objfile): Update.
6360 * psymtab.h (psymtab_storage::obstack): Update.
6361 (psymtab_storage::m_obstack): Use gdb::optional.
6362 (class psymtab_storage): Update comment. Remove objfile
6364 * psymtab.c (psymtab_storage::psymtab_storage): Update.
6366 2019-01-10 Tom Tromey <tom@tromey.com>
6368 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
6369 <free_psymtabs>: Now private.
6370 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
6371 (allocate_psymtab): Use new method.
6373 2019-01-10 Tom Tromey <tom@tromey.com>
6375 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
6376 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
6377 * mdebugread.c (parse_partial_symbols): Use
6378 allocate_dependencies.
6379 * dwarf2read.c (dwarf2_create_include_psymtab): Use
6380 allocate_dependencies.
6381 (process_psymtab_comp_unit_reader)
6382 (build_type_psymtab_dependencies): Likewise.
6383 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
6385 2019-01-10 Tom Tromey <tom@tromey.com>
6387 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
6388 PSYMBOL_SET_LANGUAGE.
6389 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
6391 2019-01-10 Tom Tromey <tom@tromey.com>
6393 * psymtab.h (psymtab_storage::obstack): New method.
6394 <m_obstack>: Rename from obstack; now private.
6395 * psymtab.c (psymtab_storage): Update.
6396 * dwarf2read.c (create_addrmap_from_index)
6397 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
6400 2019-01-10 Tom Tromey <tom@tromey.com>
6402 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
6403 * objfiles.h (objfile::reset_psymtabs): New method.
6405 2019-01-10 Tom Tromey <tom@tromey.com>
6407 * symmisc.c (print_symbol_bcache_statistics): Update.
6408 (print_objfile_statistics): Update.
6409 * symfile.c (reread_symbols): Update.
6410 * psymtab.h (class psymtab_storage): New.
6411 * psymtab.c (psymtab_storage): New constructor.
6412 (~psymtab_storage): New destructor.
6413 (require_partial_symbols): Update.
6414 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
6415 (find_pc_sect_psymtab, find_pc_sect_psymbol)
6416 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
6417 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
6418 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
6419 (start_psymtab_common, end_psymtab_common)
6420 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
6421 (allocate_psymtab): Update.
6422 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
6424 (dump_psymtab_addrmap, maintenance_print_psymbols)
6425 (maintenance_check_psymtabs): Update.
6426 (class objfile_psymtabs): Move to objfiles.h.
6427 * psympriv.h (discard_psymtab): Now inline.
6428 (psymtab_discarder::psymtab_discarder): Update.
6429 (psymtab_discarder::~psymtab_discarder): Update.
6430 (ALL_OBJFILE_PSYMTABS): Rewrite.
6431 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
6432 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
6434 <partial_symtabs>: New field.
6435 (class objfile_psymtabs): Move from psymtab.h. Update.
6436 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
6438 (objfile::~objfile): Don't destroy psymbol_cache.
6439 * mdebugread.c (parse_partial_symbols): Update.
6440 * dwarf2read.c (create_addrmap_from_index)
6441 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6442 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
6443 (add_partial_subprogram, dwarf2_ranges_read): Update.
6444 * dwarf-index-write.c (write_address_map)
6445 (write_one_signatured_type, recursively_write_psymbols)
6446 (class debug_names, class debug_names, write_psymtabs_to_index):
6449 2019-01-10 Tom Tromey <tom@tromey.com>
6451 * symtab.h (SYMBOL_SET_NAMES): Update.
6452 (symbol_set_names): Update.
6453 (MSYMBOL_SET_NAMES): Update.
6454 * symtab.c (symbol_set_names): Change argument to be an
6455 objfile_per_bfd_storage.
6456 * psymtab.c (add_psymbol_to_bcache): Update.
6457 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
6459 2019-01-10 Tom Tromey <tom@tromey.com>
6461 * symtab.c (create_demangled_names_hash): Change argument to be an
6462 objfile_per_bfd_storage.
6463 (symbol_set_names): Update.
6465 2019-01-10 Tom Tromey <tom@tromey.com>
6467 * xcoffread.c (xcoff_initial_scan): Unconditionally call
6469 * psymtab.c (init_psymbol_list): Do nothing if already called.
6470 * psympriv.h (init_psymbol_list): Add comment.
6471 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
6473 * dbxread.c (dbx_symfile_read): Unconditionally call
6476 2019-01-10 Tom Tromey <tom@tromey.com>
6478 * xcoffread.c (scan_xcoff_symtab): Update.
6479 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
6481 * mdebugread.c (parse_partial_symbols)
6482 (handle_psymbol_enumerators): Update.
6483 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
6484 * dbxread.c (read_dbx_symtab): Update.
6485 * psympriv.h (psymbol_placement): New enum.
6486 (add_psymbol_to_list): Update.
6488 2019-01-10 Tom Tromey <tom@tromey.com>
6490 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
6491 static_psymbols parameters.
6492 (scan_xcoff_symtab): Update.
6493 * psymtab.c (start_psymtab_common): Remove global_psymbols and
6494 static_psymbols parameters.
6495 * psympriv.h (start_psymtab_common): Update.
6496 * mdebugread.c (parse_partial_symbols): Update.
6497 * dwarf2read.c (create_partial_symtab): Update.
6498 * dbxread.c (read_dbx_symtab): Update.
6499 (start_psymtab): Remove global_psymbols and static_psymbols
6502 2019-01-10 Tom Tromey <tom@tromey.com>
6504 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
6505 * psymtab.c (allocate_psymtab): Add comment.
6506 * psympriv.h (allocate_psymtab): Add comment.
6507 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
6509 * dbxread.c (dbx_end_psymtab): Remove some initializations.
6511 2019-01-10 Tom Tromey <tom@tromey.com>
6513 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6515 * mipsread.c: Include mdebugread.h.
6516 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6518 * elfread.c: Include mdebugread.h.
6520 2019-01-09 Tom Tromey <tom@tromey.com>
6522 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
6523 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
6524 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
6525 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
6526 (psym_lookup_symbol, psym_find_last_source_symtab)
6527 (psym_forget_cached_source_info, psym_print_stats)
6528 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
6529 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
6530 (psym_map_matching_symbols, psym_expand_symtabs_matching)
6531 (psym_find_compunit_symtab_by_address)
6532 (maintenance_print_psymbols, maintenance_info_psymtabs)
6533 (maintenance_check_psymtabs): Use ranged for.
6534 * psymtab.h (class objfile_psymtabs): New.
6535 (require_partial_symbols): Return objfile_psymtabs.
6536 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
6538 2019-01-09 Tom Tromey <tom@tromey.com>
6540 * symfile.c (overlay_invalidate_all, find_pc_overlay)
6541 (find_pc_mapped_section, list_overlays_command)
6542 (map_overlay_command, unmap_overlay_command)
6543 (simple_overlay_update): Use all_objfiles.
6544 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
6545 * printcmd.c (info_symbol_command): Use all_objfiles.
6546 * objfiles.h (ALL_OBJSECTIONS): Remove.
6547 * maint.c (maintenance_translate_address): Use all_objfiles.
6548 * gcore.c (gcore_create_callback): Use all_objfiles.
6549 (objfile_find_memory_regions): Likewise.
6551 2019-01-09 Tom Tromey <tom@tromey.com>
6553 * symtab.c (find_line_symtab, info_sources_command)
6554 (make_source_files_completion_list): Use objfile_compunits.
6555 * source.c (select_source_symtab): Use objfile_compunits.
6556 * objfiles.h (struct objfile): Update comment.
6557 (ALL_OBJFILES): Remove.
6558 (ALL_FILETABS): Remove.
6559 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
6562 2019-01-09 Tom Tromey <tom@tromey.com>
6564 * symmisc.c (print_objfile_statistics, dump_objfile)
6565 (maintenance_print_symbols): Use compunit_filetabs.
6566 * source.c (forget_cached_source_info_for_objfile): Use
6568 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
6569 (ALL_FILETABS): Use compunit_filetabs.
6570 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
6571 * coffread.c (coff_symtab_read): Use compunit_filetabs.
6573 2019-01-09 Tom Tromey <tom@tromey.com>
6575 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
6576 (compunit_filetabs): New.
6577 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
6579 (info_sources_command, make_source_files_completion_list): Remove
6581 * symmisc.c (print_objfile_statistics, dump_objfile)
6582 (maintenance_print_symbols): Remove declaration.
6583 (maintenance_info_symtabs): Use compunit_filetabs.
6584 (maintenance_info_line_tables): Likewise.
6585 * source.c (select_source_symtab): Change local variable name.
6586 (forget_cached_source_info_for_objfile): Remove declaration.
6587 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
6588 * objfiles.c (objfile_relocate1): Remove declaration.
6589 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6591 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
6592 * coffread.c (coff_symtab_read): Remove declaration.
6593 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6596 2019-01-09 Tom Tromey <tom@tromey.com>
6598 * symtab.c (lookup_objfile_from_block)
6599 (find_pc_sect_compunit_symtab, search_symbols)
6600 (default_collect_symbol_completion_matches_break_on): Use
6602 * objfiles.h (ALL_COMPUNITS): Remove.
6603 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
6604 * cp-support.c (add_symbol_overload_list_qualified): Use
6606 * ada-lang.c (ada_collect_symbol_completion_matches)
6607 (ada_add_global_exceptions): Use objfile_compunits.
6609 2019-01-09 Tom Tromey <tom@tromey.com>
6611 * source.c (select_source_symtab)
6612 (forget_cached_source_info_for_objfile): Remove declaration.
6613 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6615 * maint.c (count_symtabs_and_blocks): Remove declaration.
6616 * cp-support.c (add_symbol_overload_list_qualified): Remove
6618 * coffread.c (coff_symtab_read): Remove declaration.
6619 * symtab.c (lookup_symbol_in_objfile_symtabs)
6620 (basic_lookup_transparent_type_1): Use objfile_compunits.
6621 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
6622 (info_sources_command, search_symbols)
6623 (default_collect_symbol_completion_matches_break_on)
6624 (make_source_files_completion_list): Remove declaration.
6625 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
6626 (ada_collect_symbol_completion_matches)
6627 (ada_add_global_exceptions): Remove declaration.
6628 * linespec.c (iterate_over_all_matching_symtabs): Use
6630 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
6631 (class objfile_compunits): New.
6632 (ALL_COMPUNITS): Use objfile_compunits.
6633 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
6634 (maintenance_check_symtabs, maintenance_info_line_tables): Use
6636 * objfiles.c (objfile_relocate1): Use objfile_compunits.
6638 2019-01-09 Tom Tromey <tom@tromey.com>
6640 * symtab.c (search_symbols)
6641 (default_collect_symbol_completion_matches_break_on): Use
6643 * ada-lang.c (ada_lookup_simple_minsym)
6644 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
6645 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
6646 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
6648 * coffread.c (coff_symfile_read): Use objfile_msymbols.
6649 * symmisc.c (dump_msymbols): Use objfile_msymbols.
6650 * objc-lang.c (find_methods): Use objfile_msymbols.
6651 (info_selectors_command, info_classes_command): Likewise.
6652 * stabsread.c (scan_file_globals): Use objfile_msymbols.
6653 * objfiles.h (class objfile_msymbols): New.
6654 (ALL_OBJFILE_MSYMBOLS): Remove.
6655 (ALL_MSYMBOLS): Remove.
6657 2019-01-09 Tom Tromey <tom@tromey.com>
6659 * common/next-iterator.h (next_adapter): Add Iterator template
6661 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
6662 (class all_objfiles_safe): New.
6663 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
6664 * objfiles.c (put_objfile_before): Update comment.
6665 (add_separate_debug_objfile): Likewise.
6666 (free_all_objfiles): Use all_objfiles_safe.
6667 (objfile_purge_solibs): Likewise.
6669 2019-01-09 Tom Tromey <tom@tromey.com>
6671 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6672 (expand_symtab_containing_pc, lookup_static_symbol)
6673 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
6674 (find_symbol_at_address, find_line_symtab, find_main_name): Use
6676 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
6677 * breakpoint.c (create_overlay_event_breakpoint)
6678 (create_longjmp_master_breakpoint)
6679 (create_std_terminate_master_breakpoint)
6680 (create_exception_master_breakpoint): Use all_objfiles.
6681 * linux-thread-db.c (try_thread_db_load_from_pdir)
6682 (has_libpthread): Use all_objfiles.
6683 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
6684 * linespec.c (iterate_over_all_matching_symtabs)
6685 (search_minsyms_for_name): Use all_objfiles.
6686 * maint.c (maintenance_info_sections): Use all_objfiles.
6687 * main.c (captured_main_1): Use all_objfiles.
6688 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
6689 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
6690 * guile/scm-pretty-print.c
6691 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
6692 * solib-spu.c (append_ocl_sos): Use all_objfiles.
6693 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
6694 (maintenance_print_msymbols): Use all_objfiles.
6695 * source.c (select_source_symtab): Use all_objfiles.
6696 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
6697 * symfile.c (remove_symbol_file_command)
6698 (expand_symtabs_matching, map_symbol_filenames): Use
6700 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
6702 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
6703 * objc-lang.c (find_methods): Use all_objfiles.
6704 * objfiles.c (have_partial_symbols, have_full_symbols)
6705 (have_minimal_symbols, qsort_cmp)
6706 (default_iterate_over_objfiles_in_search_order): Use
6708 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
6709 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
6710 (maintenance_check_psymtabs): Use all_objfiles.
6711 (ALL_PSYMTABS): Remove.
6712 * compile/compile-object-run.c (do_module_cleanup): Use
6714 * blockframe.c (find_pc_partial_function): Use all_objfiles.
6715 * cp-support.c (add_symbol_overload_list_qualified): Use
6717 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6719 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
6720 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
6722 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6723 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
6724 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6726 * solib.c (solib_read_symbols): Use all_objfiles
6728 2019-01-09 Tom Tromey <tom@tromey.com>
6730 * probe.c (parse_probes_in_pspace): Use all_objfiles.
6731 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
6733 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
6734 * symmisc.c (print_symbol_bcache_statistics)
6735 (print_objfile_statistics, maintenance_print_objfiles)
6736 (maintenance_info_symtabs, maintenance_check_symtabs)
6737 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
6739 * source.c (forget_cached_source_info): Use all_objfiles.
6740 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
6741 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6742 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
6743 * objfiles.c (update_section_map): Use all_objfiles.
6744 (shared_objfile_contains_address_p): Likewise.
6745 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
6746 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
6748 2019-01-09 Tom Tromey <tom@tromey.com>
6750 * common/next-iterator.h: New file.
6751 * objfiles.h (class all_objfiles): New.
6752 (struct objfile_iterator): New.
6754 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6756 * NEWS: Move the description of the changed "frame", "select-frame",
6757 and "info frame" commands to the Changed commands section.
6759 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
6761 * gdbtypes.c (check_stub_method_group): Remove handling of old
6763 * linespec.c (find_methods): Likewise.
6764 * stabsread.c (read_member_functions): Likewise.
6765 * valops.c (search_struct_method): Likewise.
6766 (value_struct_elt_for_reference): Likewise.
6767 * NEWS: Mention this change.
6769 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6771 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
6773 * source.c (print_source_lines_base): Update line number check.
6774 (print_source_lines): New function.
6775 (source_lines_range::source_lines_range): New function.
6776 * source.h (class source_lines_range): New class.
6777 (print_source_lines): New declaration.
6779 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6781 * linespec.c (linespec_state_destructor): Free self->canonical_names.
6783 2019-01-08 Tom Tromey <tom@tromey.com>
6784 Simon Marchi <simon.marchi@ericsson.com>
6787 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
6788 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
6789 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6790 * f-exp.y (DOLLAR_VARIABLE): Likewise.
6791 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
6792 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6794 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6796 * source.c (select_source_symtab): Move header comment to
6797 declaration in source.h.
6798 (forget_cached_source_info_for_objfile): Likewise.
6799 (forget_cached_source_info): Likewise.
6800 (identify_source_line): Likewise.
6801 * source.h (identify_source_line): Move declaration from symtab.h
6802 and add comment from source.c
6803 (print_source_lines): Likewise.
6804 (forget_cached_source_info_for_objfile): Likewise.
6805 (forget_cached_source_info): Likewise.
6806 (select_source_symtab): Likewise.
6807 (enum print_source_lines_flag): Move definition from symtab.h.
6808 * symtab.h (identify_source_line): Move declaration to source.h.
6809 (print_source_lines): Likewise.
6810 (forget_cached_source_info_for_objfile): Likewise.
6811 (forget_cached_source_info): Likewise.
6812 (select_source_symtab): Likewise.
6813 (enum print_source_lines_flag): Move definition to source.h.
6814 * tui/tui-hooks.c: Add 'source.h' include.
6816 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6818 * source.c (print_source_lines_base): Handle requests to print
6819 reverse line number sequences, and guard against empty lines
6822 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6824 * source.c (print_source_lines_base): Fix skip of '\r' if next
6827 2019-01-06 Tom Tromey <tom@tromey.com>
6829 * c-exp.y (struct c_parse_state) <macro_original_text,
6830 expansion_obstack>: New member.
6831 (macro_original_text, expansion_obstack): Remove globals.
6832 (scan_macro_expansion, scanning_macro_expansion)
6833 (finished_macro_expansion): Update.
6834 (scan_macro_cleanup): Remove.
6835 (yylex, c_parse): Update.
6837 2019-01-06 Tom Tromey <tom@tromey.com>
6839 * c-exp.y (struct c_parse_state) <strings>: New member.
6840 (operator_stoken): Update.
6842 2019-01-06 Tom Tromey <tom@tromey.com>
6844 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
6845 (union type_stack_elt) <typelist_val>: Now a pointer to
6847 (type_stack_cleanup): Don't declare.
6848 (push_typelist): Update.
6849 * parse.c (pop_typelist): Return a std::vector.
6850 (push_typelist): Take a std::vector.
6851 (follow_types): Update. Do not free args.
6852 (type_stack_cleanup): Remove.
6853 * c-exp.y (struct c_parse_state): New.
6854 (cpstate): New global.
6855 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
6856 (nonempty_typelist): Update.
6857 (func_mod): Create a new vector.
6858 (c_parse): Create a c_parse_state.
6859 (check_parameter_typelist): Do not delete params.
6860 (function_method): Update. Do not delete type_list.
6862 2019-01-06 Tom Tromey <tom@tromey.com>
6865 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
6867 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
6868 (print_return_value): Likewise.
6870 2019-01-05 Tom Tromey <tom@tromey.com>
6872 * contrib/cleanup_check.py: Remove.
6873 * contrib/gcc-with-excheck: Remove.
6874 * contrib/exsummary.py: Remove.
6875 * contrib/excheck.py: Remove.
6877 2019-01-05 Joel Brobecker <brobecker@adacore.com>
6879 * thread.c (delete_thread_1): Add gdb_assert that THR is not
6880 NULL. Initialize tpprev to NULL instead of assigning it
6881 to NULL on the next statement.
6882 * windows-nat.c (windows_delete_thread): Remove check for
6883 main_thread_id before printing thread exit notifications.
6884 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
6885 Remove thread ID check against main_thread_id.
6886 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
6887 windows_delete_thread.
6888 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
6890 2019-01-04 Tom Tromey <tom@tromey.com>
6892 * compile/compile.c (_initialize_compile): Use upper case for
6893 metasyntactic variables.
6894 * symmisc.c (_initialize_symmisc): Use upper case for
6895 metasyntactic variables.
6896 * psymtab.c (_initialize_psymtab): Use upper case for
6897 metasyntactic variables.
6898 * demangle.c (demangle_command): Use upper case for metasyntactic
6900 (_initialize_demangler): Likewise.
6901 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
6904 2019-01-03 Tom Tromey <tom@tromey.com>
6906 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
6908 2019-01-03 Tom Tromey <tom@tromey.com>
6910 * python/py-symtab.c (salpy_str): Update.
6911 (struct salpy_sal_object) <symtab>: Now a PyObject.
6912 (salpy_dealloc): Update.
6913 (del_objfile_sal): Use gdbpy_ref.
6915 2019-01-03 Tom Tromey <tom@tromey.com>
6917 * python/py-type.c (convert_field): Use new_reference. Return
6919 (make_fielditem): Return gdbpy_ref.
6920 (typy_fields): Update.
6921 (typy_getitem): Update.
6922 (field_name): Return gdbpy_ref. Use new_reference.
6923 (typy_iterator_iternext): Update.
6925 2019-01-03 Tom Tromey <tom@tromey.com>
6927 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
6929 2019-01-03 Tom Tromey <tom@tromey.com>
6931 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
6932 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
6933 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
6934 (pspy_set_frame_filters, pspy_set_frame_unwinders)
6935 (pspy_set_type_printers): Likewise.
6936 * python/py-function.c (fnpy_init): Use gdbpy_ref.
6937 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
6938 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
6939 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
6940 (objfpy_set_type_printers): Likewise.
6942 2019-01-03 Tom Tromey <tom@tromey.com>
6944 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
6945 (gdbpy_print_stack): Use gdbpy_err_fetch.
6946 * python/python-internal.h (class gdbpy_err_fetch): New class.
6947 (class gdbpy_enter) <m_error_type, m_error_value,
6948 m_error_traceback>: Remove.
6949 <m_error>: New member.
6950 (gdbpy_exception_to_string): Don't declare.
6951 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
6952 * python/py-value.c (convert_value_from_python): Use
6954 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
6955 gdbpy_exception_to_string.
6956 (gdbpy_handle_exception): Use gdbpy_err_fetch.
6957 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
6960 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6962 * linux-nat.c (delete_lwp_cleanup): Delete.
6963 (struct lwp_deleter): New struct.
6964 (lwp_info_up): New typedef.
6965 (linux_nat_target::follow_fork): Delete cleanup, and make use of
6968 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6970 * linux-fork.c (class scoped_switch_fork_info): New class.
6971 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
6973 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6975 * valops.c (find_overload_match): Remove use of null_cleanup, and
6976 calls to do_cleanups.
6978 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6980 * compile/compile-cplus-types.c
6981 (compile_cplus_instance::decl_name): Handle changes to
6983 * cp-support.c (cp_func_name): Update header comment, update
6985 * cp-support.h (cp_func_name): Update return type in declaration.
6986 * valops.c (find_overload_match): Move temp_func local to top
6987 level of function and change its type. Use temp_func to hold and
6988 delete temporary string obtained from cp_func_name.
6990 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6992 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
6993 gdb::char_vector, remove cleanup, and update uses of `msg`.
6995 2019-01-03 Jim Wilson <jimw@sifive.com>
6997 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
6999 2019-01-02 Tom Tromey <tom@tromey.com>
7001 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
7002 (tdesc_parse_xml): Remove cleanups.
7003 * target-descriptions.h (make_cleanup_free_target_description):
7005 (target_desc_deleter): New struct.
7006 (target_desc_up): New typedef.
7007 * target-descriptions.c (target_desc_deleter::operator()): Rename
7008 from free_target_description.
7009 (make_cleanup_free_target_description): Remove.
7011 2019-01-02 Tom Tromey <tom@tromey.com>
7013 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
7014 constructor, destructor.
7015 (linespec_parser): Remove typedef.
7016 (~linespec_parser): Rename from linespec_parser_delete.
7017 (linespec_lex_to_end, linespec_complete_label)
7018 (linespec_complete): Update.
7019 (decode_line_full): Remove cleanups.
7020 (decode_line_1): Update.
7022 2019-01-02 Tom Tromey <tom@tromey.com>
7024 * python/python-internal.h (inferior_to_inferior_object): Change
7026 * python/py-exitedevent.c (create_exited_event_object): Update.
7027 * python/py-inferior.c (inferior_to_inferior_object): Return
7029 (python_new_inferior, python_inferior_deleted)
7030 (thread_to_thread_object, delete_thread_object)
7031 (build_inferior_list, gdbpy_selected_inferior): Update.
7032 * python/py-infthread.c (create_thread_object): Update. Also fail
7033 if inferior_to_inferior_object fails.
7035 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
7037 * inferior.h (class inferior) <displaced_step_state>: New field.
7038 * infrun.h (struct displaced_step_state): Move here from
7039 infrun.c. Initialize fields, add constructor.
7040 <inf>: Remove field.
7041 <reset>: New method.
7042 * infrun.c (struct displaced_step_inferior_state): Move to
7044 (displaced_step_inferior_states): Remove.
7045 (get_displaced_stepping_state): Adust.
7046 (displaced_step_in_progress_any_inferior): Adjust.
7047 (displaced_step_in_progress_thread): Adjust.
7048 (displaced_step_in_progress): Adjust.
7049 (add_displaced_stepping_state): Remove.
7050 (get_displaced_step_closure_by_addr): Adjust.
7051 (remove_displaced_stepping_state): Remove.
7052 (infrun_inferior_exit): Call displaced_step_state.reset.
7053 (use_displaced_stepping): Don't check for NULL.
7054 (displaced_step_prepare_throw): Call
7055 get_displaced_stepping_state.
7056 (displaced_step_fixup): Don't check for NULL.
7057 (prepare_for_detach): Don't check for NULL.
7059 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7061 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
7062 in case of call that did not complete.
7064 2019-01-02 Andrey Utkin <autkin@undo.io>
7066 * symfile.c (find_separate_debug_file): Fix search of debug files for
7069 2019-01-02 Tom Tromey <tom@tromey.com>
7071 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
7073 * python/py-frame.c (frapy_older): Remove cast.
7074 (frapy_newer): Likewise.
7075 * python/py-breakpoint.c (local_setattro): Remove cast.
7076 * python/py-arch.c (archpy_name): Remove local variable.
7077 * python/py-type.c (gdbpy_lookup_type): Remove cast.
7079 2019-01-02 Joel Brobecker <brobecker@adacore.com>
7081 * unittests/basic_string_view/element_access/char/empty.cc:
7082 Fix year range in copyright header.
7084 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
7086 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
7088 <operator==>: Update with for removed field.
7090 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
7091 <isa_features>: ...this.
7092 <abi_features>: New field.
7093 (riscv_isa_flen): Update comment.
7094 (riscv_abi_xlen): New declaration.
7095 (riscv_abi_flen): New declaration.
7096 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
7098 (riscv_abi_xlen): New function.
7099 (riscv_isa_flen): Update to get answer from isa_features.
7100 (riscv_abi_flen): New function.
7101 (riscv_has_fp_abi): Update to get answer from abi_features.
7102 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
7104 (riscv_call_info) <xlen, flen>: Update comment.
7105 (riscv_call_arg_struct): Remove invalid assertions
7106 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
7108 (riscv_gdbarch_init): Gather isa features and abi features
7109 separately, ensure both match on the gdbarch when reusing an old
7110 gdbarch. Relax an error check to allow 32-bit abi float to run on
7111 a target with 64-bit float hardware.
7113 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7115 * source.c (search_command_helper): Stop reverse search
7116 when line 1 has been searched.
7118 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7120 * record-full.c (record_full_base_target::close): Rewrite
7121 record_full_core_buf_list free logic.
7123 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7125 * break-catch-syscall.c (print_one_catch_syscall): xfree
7128 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7130 * top.c (print_gdb_version): Update Copyright year in version
7133 2019-01-01 Joel Brobecker <brobecker@adacore.com>
7135 Update copyright year range in all GDB files.
7137 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
7139 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
7141 For older changes see ChangeLog-2018.
7147 version-control: never