1 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
3 * valprint.c (print_char_chars): Delete definition.
4 * valprint.h (print_char_chars): Delete declaration.
6 2020-12-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
8 * i386-gnu-tdep.c (I386_GNU_UCONTEXT_T_THREAD_STATE_OFFSET): New
10 (i386_gnu_sigcontext_addr): Detect between legacy and siginfo from the
11 second parameter, which is a small sigcode in the legacy case, and a
12 pointer in the siginfo case.
14 * MAINTAINERS (Write After Approval): Add myself.
16 2020-12-22 Shahab Vahedi <shahab@synopsys.com>
18 * frame.c: Remove trailing white spaces.
21 2020-12-22 Shahab Vahedi <shahab@synopsys.com>
23 * arc-linux-tdep.c: Replace "regnum" with "REGNUM" in comments.
25 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
27 * Makefile.in (ALLDEPFILES): Add arc-linux-nat.c.
28 * configure.host (host to gdb names): Add arc*-*-linux*.
29 * configure.nat (gdb_host_cpu): Add arc.
30 * arc-linux-nat.c: New.
32 2020-12-22 Shahab Vahedi <shahab@synopsys.com>
34 * arc-linux-tdep.c (supply_register): New.
35 (arc_linux_supply_gregset, arc_linux_supply_v2_regset,
36 arc_linux_collect_v2_regset): Consider REGNUM.
38 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
40 * arc-linux-tdep.c (arc_linux_sc_reg_offsets): New static variable.
41 (arc_linux_is_sigtramp): New function.
42 (arc_linux_sigcontext_addr): Likewise.
43 (arc_linux_init_osabi): Use them.
45 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
47 * arc-tdep.c (arc_make_sigtramp_frame_cache): New function.
48 (arc_sigtramp_frame_this_id): Likewise.
49 (arc_sigtramp_frame_prev_register): Likewise.
50 (arc_sigtramp_frame_sniffer): Likewise.
51 (arc_siftramp_frame_unwind): New global variable.
52 (arc_gdbarch_init): Use sigtramp capabilities.
53 (arc_dump_tdep): Print sigtramp fields.
54 * arc-tdep.h (gdbarch_tdep): Add sigtramp fields.
56 2020-12-21 Tom Tromey <tom@tromey.com>
58 * expression.h (enum noside): Move earlier.
60 2020-12-21 Peter Waller <p@pwaller.net>
62 * interps.c (interpreter_exec_cmd): Restore streams pointers.
64 2020-12-21 Markus Metzger <markus.t.metzger@intel.com>
66 * record.c (require_record_target): Rephrase error message.
67 (info_record_command): Likewise.
69 2020-12-19 Hannes Domani <ssbssa@yahoo.de>
72 * gdbtypes.c (check_types_equal): Don't compare types of enum fields.
74 2020-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
76 * configure.ac: Move the static libs vs. source-highlight
77 error message to a better place.
78 * configure: Regenerate.
80 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
82 * gdb-gdb.py.in: Fix main_type field name.
84 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
86 * python/py-value.c (valpy_format_string): Implement address keyword.
88 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
90 * python/py-type.c (typy_get_composite): Add TYPE_CODE_METHOD.
92 2020-12-18 Jameson Nash <vtjnash@gmail.com>
94 * coffread.c (linetab_offset): Change type to file_ptr.
95 (linetab_size): Likewise.
96 (enter_linenos): Change parameter type to file_ptr.
97 (init_lineno): Likewise.
98 (init_stringtab): Likewise.
99 (coff_symtab_read): Likewise.
100 (coff_symfile_read): Change variable types to file_ptr.
102 2020-12-17 Tom Tromey <tromey@adacore.com>
104 * printcmd.c (print_variable_and_value): Don't use n_spaces.
106 2020-12-17 Tom Tromey <tromey@adacore.com>
108 * gdbtypes.c (print_args, dump_fn_fieldlists, print_cplus_stuff)
109 (print_gnat_stuff, print_fixed_point_type_info)
110 (recursive_dump_type): Update.
111 * go32-nat.c (go32_sysinfo, display_descriptor): Update.
112 * c-typeprint.c (c_type_print_base_struct_union)
113 (c_type_print_base_1): Update.
114 * rust-lang.c (rust_internal_print_type): Update.
115 * f-typeprint.c (f_language::f_type_print_base): Update.
116 * utils.h (fprintfi_filtered, printfi_filtered): Remove.
117 * m2-typeprint.c (m2_record_fields): Update.
118 * p-typeprint.c (pascal_type_print_base): Update.
119 * compile/compile-loc2c.c (push, pushf, unary, binary)
120 (do_compile_dwarf_expr_to_c): Update.
121 * utils.c (fprintfi_filtered, printfi_filtered): Remove.
123 2020-12-16 Tom Tromey <tom@tromey.com>
125 * rust-exp.y (rust_lex_tests): Update.
126 * parser-defs.h (parser_state): Add void_p parameter.
127 <void_context_p>: New member.
128 * parse.c (parse_exp_in_context): Update.
129 * language.h (language_defn::post_parser): Remove void_context_p,
130 completing, tracker parameters. Add parser state.
131 * ada-lang.c (ada_language::post_parser): Update.
133 2020-12-16 Tom Tromey <tom@tromey.com>
135 * parse.c (parse_exp_1, parse_expression_for_completion): Update.
136 (parse_exp_in_context): Change void_context_p to bool.
137 * language.h (struct language_defn) <post_parser>: Change
138 void_context_p to bool.
139 * ada-lang.c (class ada_language) <post_parser>: Update.
141 2020-12-16 Tom Tromey <tom@tromey.com>
142 Tom Tromey <tromey@redhat.com>
143 Tom de Vries <tdevries@suse.de>
145 * utils.h (get_chars_per_line): Declare.
146 * utils.c (get_chars_per_line): New function.
147 (fputs_maybe_filtered): Handle '\r'.
148 * ui-out.h (ui_out::progress_meter): New class.
149 (ui_out::progress, ui_out::do_progress_start)
150 (ui_out::do_progress_notify, ui_out::do_progress_end): New
152 * ui-out.c (do_progress_end)
153 (make_cleanup_ui_out_progress_begin_end, ui_out_progress): New
155 * mi/mi-out.h (mi_ui_out::do_progress_start)
156 (mi_ui_out::do_progress_notify, mi_ui_out::do_progress_end): New
158 * cli-out.h (struct cli_ui_out) <do_progress_start,
159 do_progress_notify, do_progress_end>: New methods.
160 <enum meter_stat, struct cli_progress_info>: New.
161 <m_meters>: New member.
162 * cli-out.c (cli_ui_out::do_progress_start)
163 (cli_ui_out::do_progress_notify, cli_ui_out::do_progress_end): New
166 2020-12-16 Luis Machado <luis.machado@linaro.org>
168 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Record FPSR.
170 2020-12-16 Luis Machado <luis.machado@linaro.org>
172 * aarch64-linux-nat.c
173 (aarch64_linux_nat_target::stopped_data_address): Handle the TBI.
175 2020-12-15 Rae Kim <rae.kim@gmail.com>
177 * cli/cli-script.c (do_document_command): Rename from
178 document_command. Handle multi-line input.
179 (multi_line_command_p): Handle document_control.
180 (build_command_line): Likewise.
181 (execute_control_command_1): Likewise.
182 (process_next_line): Likewise.
183 (document_command): Call do_document_command.
184 * cli/cli-script.h (enum command_control_type): Add
187 2020-12-15 Tom Tromey <tom@tromey.com>
189 * stap-probe.c (stap_probe::evaluate_argument): Use
191 * dtrace-probe.c (dtrace_probe::evaluate_argument): Use
193 * value.h (evaluate_expression): Add expect_type parameter.
194 * objc-lang.c (print_object_command): Call evaluate_expression.
195 * eval.c (evaluate_expression): Add expect_type parameter.
197 2020-12-15 Tom Tromey <tom@tromey.com>
199 * varobj.c (varobj_create): Use first_opcode.
200 * value.c (init_if_undefined_command): Use first_opcode.
201 * typeprint.c (whatis_exp): Use first_opcode.
202 * tracepoint.c (validate_actionline): Use first_opcode.
203 (encode_actions_1): Use first_opcode.
204 * stack.c (return_command): Use first_opcode.
205 * expression.h (struct expression) <first_opcode>: New method.
206 * eval.c (parse_and_eval_type): Use first_opcode.
207 * dtrace-probe.c (dtrace_process_dof_probe): Use first_opcode.
209 2020-12-15 Tom Tromey <tom@tromey.com>
211 * f-lang.c (evaluate_subexp_f): Update.
212 * expression.h (evaluate_subexp_do_call): Update.
213 * eval.c (evaluate_subexp_do_call): Add callee parameter. Replace
214 nargs, argvec with array_view.
215 (evaluate_funcall): Update.
217 2020-12-15 Tom Tromey <tom@tromey.com>
219 * ada-lang.c (num_component_specs): Remove.
220 (assign_aggregate): Update.
221 (aggregate_assign_positional, aggregate_assign_from_choices)
222 (aggregate_assign_others, add_component_interval): Change
225 2020-12-15 Tom Tromey <tromey@adacore.com>
227 * cli/cli-decode.c (deprecated_cmd_warning): Use title style for
230 2020-12-14 Tom Tromey <tom@tromey.com>
232 * dtrace-probe.c (dtrace_process_dof_probe): Use value_type.
233 * typeprint.c (whatis_exp): Always use evaluate_type.
234 (maintenance_print_type): Likewise. Simplify.
236 2020-12-14 Tom Tromey <tromey@adacore.com>
238 * dictionary.c (language_defn::search_name_hash): Ignore "B".
239 * ada-lang.c (advance_wild_match): Ignore "B".
240 (full_match): Remove.
241 (do_full_match): Rewrite.
243 2020-12-14 Tom Tromey <tromey@adacore.com>
245 * ada-lang.c (get_var_value): Only consider exact matches.
247 2020-12-14 Tom Tromey <tromey@adacore.com>
249 * dwarf2/read.c (rewrite_array_type): New function.
250 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
252 2020-12-14 Tom Tromey <tromey@adacore.com>
254 * valarith.c (fixed_point_binop): Call error on division by zero.
256 2020-12-13 Tom Tromey <tom@tromey.com>
258 * gdbtypes.c (safe_parse_type): Make argument const.
259 * value.h (parse_and_eval_type): Make argument const.
260 * eval.c (parse_and_eval_type): Make argument const.
262 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
264 * NEWS: Mention new commands.
265 * target-dcache.c: Add 'cli/cli-cmds.h' include.
266 (maint_flush_dcache_command): New function.
267 (_initialize_target_dcache): Create new 'maint flush dcache'
270 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
272 * NEWS: Mention new commands, and that the old commands are now
274 * cli/cli-cmds.c (maintenanceflushlist): Define.
275 * cli/cli-cmds.h (maintenanceflushlist): Declare.
276 * maint.c (_initialize_maint_cmds): Initialise
277 maintenanceflushlist.
278 * regcache.c: Add 'cli/cli-cmds.h' include.
279 (reg_flush_command): Add header comment.
280 (_initialize_regcache): Create new 'maint flush register-cache'
281 command, make 'flushregs' an alias.
282 * symtab.c: Add 'cli/cli-cmds.h' include.
283 (_initialize_symtab): Create new 'maint flush symbol-cache'
284 command, make old command an alias.
286 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
288 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
289 result from lookup_cmd_composition_1, use the prefixes from both
290 the command and the alias instead.
291 (lookup_cmd_composition_1): Initial prefix command is the based on
292 the search list being passed in. Simplify the logic for tracking
293 the prefix command. Replace a use of alloca with a local
296 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
298 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
299 of NULL. Don't print message piece by piece, but sentence at a
300 time to allow internationalisation. Some whitespace cleanup.
302 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
305 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
306 deprecated_cmd_warning.
307 (deprecated_cmd_warning): Take extra parameter, call
308 lookup_cmd_composition_1 and pass new parameter through.
309 (lookup_cmd_composition_1): New function, takes implementation of
310 lookup_cmd_composition but with extra parameter.
311 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
313 * command.h (deprecated_cmd_warning): Add extra parameter to
315 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
317 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
319 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
320 command.h, add extra parameter, and use this to guard giving a
322 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
323 include argument names in declaration, add new argument.
324 * completer.c (complete_line_internal_1): Remove unneeded
325 brackets, pass extra argument to lookup_cmd_1.
327 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
329 * infrun.h (debug_infrun): Make a bool.
330 * infrun.c (debug_infrun): Make a bool.
331 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
334 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
336 * displaced-stepping.h (displaced_debug_printf): Use
337 debug_prefixed_printf_cond.
338 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
339 (dwarf_read_debug_printf_v): Likewise.
340 * infrun.h (infrun_debug_printf): Likewise.
341 * linux-nat.c (linux_nat_debug_printf): Likewise.
343 2020-12-11 Tom Tromey <tom@tromey.com>
345 * p-exp.y (intvar): Remove global.
346 (DOLLAR_VARIABLE): Change type.
348 (exp): Call write_dollar_variable here...
349 (yylex): ... not here.
350 * m2-exp.y (DOLLAR_VARIABLE): Change type.
351 (variable): Call write_dollar_variable here...
352 (yylex): ... not here.
353 * f-exp.y (DOLLAR_VARIABLE): Change type.
354 (exp): Call write_dollar_variable here...
355 (yylex): ... not here.
357 2020-12-11 Tom Tromey <tom@tromey.com>
359 * varobj.c (varobj_create): Update.
360 (install_variable): Return void.
362 2020-12-11 Tom Tromey <tom@tromey.com>
364 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
366 2020-12-11 Tom Tromey <tom@tromey.com>
368 * varobj.c (varobj_clear_saved_item): Remove.
369 (update_dynamic_varobj_children): Update.
370 (varobj::~varobj): Don't call varobj_clear_saved_item.
372 2020-12-11 Tom Tromey <tom@tromey.com>
374 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
375 (update_dynamic_varobj_children, create_child)
376 (create_child_with_value): Update.
377 * varobj-iter.h (struct varobj_item) <value>: Now a
379 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
381 2020-12-11 Tom Tromey <tom@tromey.com>
383 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
384 (varobj_get_iterator): Return unique_ptr.
385 (update_dynamic_varobj_children, install_visualizer)
386 (varobj::~varobj): Update.
387 * python/python-internal.h (py_varobj_get_iterator): Return
389 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
391 2020-12-11 Tom Tromey <tom@tromey.com>
393 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
394 (varobj_clear_saved_item, update_dynamic_varobj_children):
397 2020-12-11 Tom Tromey <tom@tromey.com>
399 * varobj.c (update_dynamic_varobj_children): Update.
400 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
401 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
403 (py_varobj_iter::next): Likewise.
405 2020-12-11 Tom Tromey <tom@tromey.com>
407 * varobj.c (update_dynamic_varobj_children, install_visualizer)
408 (varobj::~varobj): Update.
409 * varobj-iter.h (struct varobj_iter): Change to interface class.
410 (struct varobj_iter_ops): Remove.
411 (varobj_iter_next, varobj_iter_delete): Remove.
412 * python/py-varobj.c (struct py_varobj_iter): Derive from
413 varobj_iter. Add constructor, destructor. Rename members.
414 (py_varobj_iter::~py_varobj_iter): Rename from
416 (py_varobj_iter::next): Rename from py_varobj_iter_next.
417 (py_varobj_iter_ops): Remove.
418 (py_varobj_iter): Rename from py_varobj_iter_ctor.
419 (py_varobj_iter_new): Remove.
420 (py_varobj_get_iterator): Update.
422 2020-12-11 Tom Tromey <tom@tromey.com>
424 * varobj.h (all_root_varobjs): Take a function_view.
425 * varobj.c (all_root_varobjs): Take a function_view.
426 (varobj_invalidate_iter): Remove unused parameter.
427 (varobj_invalidate): Update.
428 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
429 (mi_cmd_var_update_iter): Change parameters.
431 2020-12-11 Tom Tromey <tom@tromey.com>
433 * varobj.c (struct varobj_root) <next>: Remove.
434 (struct vlist): Remove.
435 (rootlist): Now a std::list.
436 (install_variable, uninstall_variable, all_root_varobjs): Update.
438 2020-12-11 Tom Tromey <tom@tromey.com>
440 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
441 (varobj_table): Now htab_t.
442 (varobj_get_handle, install_variable, uninstall_variable):
444 (hash_varobj, eq_varobj_and_string): New functions.
445 (hash_varobj): Update.
447 2020-12-11 Tom Tromey <tom@tromey.com>
449 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
450 * ada-lang.c (check_status_exception): Update.
451 * breakpoint.c (free_bp_location): Remove.
452 (decref_bp_location): Use bp_location_ref_policy.
453 (bpstats::bpstats): Don't call incref_bp_location.
454 (bpstats::~bpstats): Remove.
455 (bpstats::bpstats): Update.
456 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
457 (bp_location::bp_location): Update.
458 (incref_bp_location): Remove.
459 (bkpt_print_it): Update.
460 * breakpoint.h (class bp_location): Derive from
462 (struct bpstats): Remove destructor.
463 <bp_location_at>: Now a bp_location_ref_ptr.
465 (bp_location_ref_ptr): New typedef.
466 (struct bp_location_ref_policy): New.
468 2020-12-11 Tom Tromey <tom@tromey.com>
470 * thread.c (class scoped_inc_dec_ref): Remove.
471 (tp_array_compar_ascending, tp_array_compar_descending): Change
473 (thread_apply_all_command): Use thread_info_ref.
475 2020-12-11 Tom Tromey <tom@tromey.com>
477 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
478 (stop_context::stop_context): Update.
479 (stop_context::~stop_context): Remove.
481 2020-12-11 Tom Tromey <tom@tromey.com>
483 * inferior.c (current_inferior_): Change type.
484 (current_inferior, set_current_inferior, initialize_inferiors):
487 2020-12-11 Tom Tromey <tom@tromey.com>
489 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
492 2020-12-11 Tom Tromey <tromey@adacore.com>
494 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
496 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
497 (read_atcb): Use cpu_id_offset.
499 2020-12-10 Kevin Buettner <kevinb@redhat.com>
501 * ada-lang.c (ada_fold_name): Fix off-by-one error.
503 2020-12-10 Luis Machado <luis.machado@linaro.org>
505 * breakpoint.c (should_be_inserted): Don't output newline.
507 2020-12-10 Luis Machado <luis.machado@linaro.org>
509 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
510 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
511 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
512 * arch/aarch64.h: ... here.
513 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
514 (aarch64_maybe_swab128): New function.
515 (aarch64_sve_regs_copy_to_reg_buf)
516 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
517 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
519 (TF_REG_VALUE_BYTES): New enum value.
520 (trad_frame_value_bytes_p): New function.
521 (trad_frame_set_value_bytes): New function.
522 (trad_frame_set_reg_value_bytes): New function.
523 (trad_frame_get_prev_register): Handle register values saved as bytes.
524 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
525 (struct trad_frame_saved_reg) <data>: New field.
526 (trad_frame_set_value_bytes): New prototype.
527 (trad_frame_value_bytes_p): New prototype.
529 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
531 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
532 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
533 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
535 2020-12-09 Tom Tromey <tromey@adacore.com>
537 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
539 2020-12-09 Tom Tromey <tromey@adacore.com>
541 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
542 and "denominator" to gdb_mpz. Handle block forms.
543 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
544 "denominator" to gdb_mpz.
545 (finish_fixed_point_type): Update.
546 (has_zero_over_zero_small_attribute): Update.
548 2020-12-09 Tom Tromey <tromey@adacore.com>
550 * expprint.c (op_name): Update.
551 * expression.h (enum exp_opcode): Update.
552 * std-operator.def: Add more opcodes.
553 * ada-operator.def, fortran-operator.def: Remove, moving contents
554 into std-operator.def.
556 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
558 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
559 Return {} instead of false.
560 (get_discrete_bounds): Compute high bound only if low bound is
563 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
566 * gdbtypes.c (get_discrete_low_bound): Make non-static.
567 (get_discrete_high_bound): Make non-static.
568 * gdbtypes.h (get_discrete_low_bound): New declaration.
569 (get_discrete_high_bound): New declaration.
570 * valarith.c (value_subscript): Only fetch high bound if
573 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
575 * gdbtypes.c (get_discrete_bounds): Implement with
576 get_discrete_low_bound and get_discrete_high_bound.
577 (get_discrete_low_bound): New.
578 (get_discrete_high_bound): New.
580 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
582 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
584 * gdbtypes.c (get_discrete_bounds): Return bool.
586 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
588 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
589 (ada_value_slice): Adjust.
591 * gdbtypes.c (get_discrete_bounds): Adjust.
592 (discrete_position): Return optional.
593 * gdbtypes.h (discrete_position): Return optional.
595 2020-12-07 Tom Tromey <tromey@adacore.com>
597 * maint.c (_initialize_maint_cmds): Use expression command
598 completer for "maint print type".
600 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
602 * completer.c (complete_explicit_location): Also add keywords
603 that start with '-' to the completion list.
605 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
607 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
608 keyword may be followed by any keyword.
609 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
610 'toklen' in the case for "-force-condition".
612 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
614 * main.c (catch_command_errors): Add a flag parameter; invoke
615 `bpstat_do_actions` if the flag is set.
616 (execute_cmdargs): Update a call to `catch_command_errors`.
618 2020-12-07 Tom de Vries <tdevries@suse.de>
620 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
622 2020-12-06 Tom Tromey <tom@tromey.com>
625 * ada-lang.c (replace_operator_with_call): Rewrite.
627 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
630 * s390-tdep.h (op_bc): Correct BC opcode value.
632 2020-12-06 Joel Brobecker <brobecker@adacore.com>
634 * gmp-utils.h (gdb_mpz::safe_export): New private method.
635 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
636 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
637 (gdb_mpz::safe_export): New method.
638 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
639 Update function description.
640 (check_as_integer_raises_out_of_range_error): New function.
641 (gdb_mpz_as_integer_out_of_range): New function.
642 (_initialize_gmp_utils_selftests): Register
643 gdb_mpz_as_integer_out_of_range as a selftest.
645 2020-12-05 Joel Brobecker <brobecker@adacore.com>
647 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
649 (gdb_mpz::write): Likewise.
651 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
653 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
654 number of displaced step buffers.
656 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
658 * displaced-stepping.h (struct displaced_step_buffer): Rename
660 (struct displaced_step_buffers): ... this.
661 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
662 <struct displaced_step_buffer>: New inner class.
664 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
666 (displaced_step_buffers::prepare): ... this, adjust for multiple
668 (displaced_step_buffer::finish): Rename to...
669 (displaced_step_buffers::finish): ... this, adjust for multiple
671 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
672 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
673 adjust for multiple buffers.
674 (displaced_step_buffer::restore_in_ptid): Rename to...
675 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
677 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
678 for num_disp_step_buffers.
679 * linux-tdep.c (struct linux_gdbarch_data)
680 <num_disp_step_buffers>: New field.
681 (struct linux_info) <disp_step_buf>: Rename to...
682 <disp_step_bufs>: ... this, change type to
683 displaced_step_buffers.
684 (linux_displaced_step_prepare): Use
685 linux_gdbarch_data::num_disp_step_buffers to create that number
687 (linux_displaced_step_finish): Adjust.
688 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
689 (linux_displaced_step_restore_all_in_ptid): Adjust.
690 (linux_init_abi): Change supports_displaced_step parameter for
691 num_disp_step_buffers, save it in linux_gdbarch_data.
692 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
693 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
694 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
695 supports_displaced_step parameter for num_disp_step_buffers.
696 (amd64_linux_init_abi): Adjust.
697 (amd64_x32_linux_init_abi): Adjust.
698 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
699 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
700 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
701 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
702 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
703 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
704 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
705 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
706 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
707 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
708 * m68k-linux-tdep.c (m68k_linux_init_abi):
709 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
710 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
711 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
712 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
713 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
714 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
715 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
716 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
717 Change type to displaced_step_buffers.
718 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
719 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
720 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
721 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
722 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
723 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
724 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
726 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
728 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
730 (_initialize_linux_tdep): Register pre-init gdb data instead of
733 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
735 * displaced-stepping.h (struct
736 displaced_step_copy_insn_closure): Adjust comments.
737 (struct displaced_step_inferior_state) <step_thread,
738 step_gdbarch, step_closure, step_original, step_copy,
739 step_saved_copy>: Remove fields.
740 (struct displaced_step_thread_state): New.
741 (struct displaced_step_buffer): New.
742 * displaced-stepping.c (displaced_step_buffer::prepare): New.
743 (write_memory_ptid): Move from infrun.c.
744 (displaced_step_instruction_executed_successfully): New,
745 factored out of displaced_step_finish.
746 (displaced_step_buffer::finish): New.
747 (displaced_step_buffer::copy_insn_closure_by_addr): New.
748 (displaced_step_buffer::restore_in_ptid): New.
749 * gdbarch.sh (displaced_step_location): Remove.
750 (displaced_step_prepare, displaced_step_finish,
751 displaced_step_copy_insn_closure_by_addr,
752 displaced_step_restore_all_in_ptid): New.
753 * gdbarch.c: Re-generate.
754 * gdbarch.h: Re-generate.
755 * gdbthread.h (class thread_info) <displaced_step_state>: New
757 (thread_step_over_chain_remove): New declaration.
758 (thread_step_over_chain_next): New declaration.
759 (thread_step_over_chain_length): New declaration.
760 * thread.c (thread_step_over_chain_remove): Make non-static.
761 (thread_step_over_chain_next): New.
762 (global_thread_step_over_chain_next): Use
763 thread_step_over_chain_next.
764 (thread_step_over_chain_length): New.
765 (global_thread_step_over_chain_enqueue): Add debug print.
766 (global_thread_step_over_chain_remove): Add debug print.
767 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
769 * infrun.c (get_displaced_stepping_state): New.
770 (displaced_step_in_progress_any_inferior): Remove.
771 (displaced_step_in_progress_thread): Adjust.
772 (displaced_step_in_progress): Adjust.
773 (displaced_step_in_progress_any_thread): New.
774 (get_displaced_step_copy_insn_closure_by_addr): Remove.
775 (gdbarch_supports_displaced_stepping): Use
776 gdbarch_displaced_step_prepare_p.
777 (displaced_step_reset): Change parameter from inferior to
779 (displaced_step_prepare_throw): Implement using
780 gdbarch_displaced_step_prepare.
781 (write_memory_ptid): Move to displaced-step.c.
782 (displaced_step_restore): Remove.
783 (displaced_step_finish): Implement using
784 gdbarch_displaced_step_finish.
785 (start_step_over): Allow starting more than one displaced step.
786 (prepare_for_detach): Handle possibly multiple threads doing
788 (handle_inferior_event): Handle possibility that fork event
789 happens while another thread displaced steps.
790 * linux-tdep.h (linux_displaced_step_prepare): New.
791 (linux_displaced_step_finish): New.
792 (linux_displaced_step_copy_insn_closure_by_addr): New.
793 (linux_displaced_step_restore_all_in_ptid): New.
794 (linux_init_abi): Add supports_displaced_step parameter.
795 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
796 (linux_displaced_step_prepare): New.
797 (linux_displaced_step_finish): New.
798 (linux_displaced_step_copy_insn_closure_by_addr): New.
799 (linux_displaced_step_restore_all_in_ptid): New.
800 (linux_init_abi): Add supports_displaced_step parameter,
801 register displaced step methods if true.
802 (_initialize_linux_tdep): Register inferior_execd observer.
803 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
804 supports_displaced_step parameter, adjust call to
805 linux_init_abi. Remove call to
806 set_gdbarch_displaced_step_location.
807 (amd64_linux_init_abi): Adjust call to
808 amd64_linux_init_abi_common.
809 (amd64_x32_linux_init_abi): Likewise.
810 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
811 linux_init_abi. Remove call to
812 set_gdbarch_displaced_step_location.
813 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
814 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
815 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
817 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
818 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
819 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
820 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
821 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
822 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
823 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
824 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
825 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
826 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
827 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
828 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
829 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
830 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
831 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
832 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
833 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
834 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
835 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
836 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
837 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
838 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
839 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
840 linux_init_abi. Remove call to
841 set_gdbarch_displaced_step_location.
842 * arm-tdep.c (arm_pc_is_thumb): Call
843 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
844 get_displaced_step_copy_insn_closure_by_addr.
845 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
846 clear gdbarch methods.
847 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
848 (get_ppc_per_inferior): New function.
849 (ppc_displaced_step_prepare): New function.
850 (ppc_displaced_step_finish): New function.
851 (ppc_displaced_step_restore_all_in_ptid): New function.
852 (rs6000_gdbarch_init): Register new gdbarch methods.
853 * s390-tdep.c (s390_gdbarch_init): Don't call
854 set_gdbarch_displaced_step_location, set new gdbarch methods.
856 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
858 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
859 * aarch64-tdep.h: Include displaced-stepping.h.
860 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
862 (displaced_step_copy_insn_closure_up): Move here.
863 (struct buf_displaced_step_copy_insn_closure): Move here.
864 (struct displaced_step_inferior_state): Move here.
865 (debug_displaced): Move here.
866 (displaced_debug_printf_1): Move here.
867 (displaced_debug_printf): Move here.
868 * displaced-stepping.c: New file.
869 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
870 * gdbarch.h: Re-generate.
871 * inferior.h: Include displaced-stepping.h.
872 * infrun.h (debug_displaced): Move to displaced-stepping.h.
873 (displaced_debug_printf_1): Likewise.
874 (displaced_debug_printf): Likewise.
875 (struct displaced_step_copy_insn_closure): Likewise.
876 (displaced_step_copy_insn_closure_up): Likewise.
877 (struct buf_displaced_step_copy_insn_closure): Likewise.
878 (struct displaced_step_inferior_state): Likewise.
879 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
880 (displaced_debug_printf_1): Likewise.
881 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
883 (_initialize_infrun): Don't register "set/show debug displaced".
885 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
887 * linux-tdep.c (get_linux_inferior_data): Add inferior
889 (linux_vsyscall_range): Pass current inferior.
891 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
893 * infrun.c (displaced_step_prepare_throw): Change return type to
894 displaced_step_prepare_status.
895 (displaced_step_prepare): Likewise.
896 (displaced_step_finish): Change return type to
897 displaced_step_finish_status.
899 (stop_all_threads): Adjust.
900 * displaced-stepping.h: New file.
902 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
904 * infrun.c (displaced_step_fixup): Rename to...
905 (displaced_step_finish): ... this, update all callers.
907 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
909 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
910 (get_displaced_step_copy_insn_closure_by_addr): ... this.
912 (displaced_step_closure): Rename to...
913 (displaced_step_copy_insn_closure): ... this. Update all users.
914 (displaced_step_closure_up): Rename to...
915 (displaced_step_copy_insn_closure_up). ... this. Update all
917 (buf_displaced_step_closure): Rename to...
918 (buf_displaced_step_copy_insn_closure): ... this. Update all
920 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
921 (get_displaced_step_copy_insn_closure_by_addr): ... this.
923 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
924 (aarch64_displaced_step_copy_insn_closure): ... this. Update
926 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
927 (amd64_displaced_step_copy_insn_closure): ... this. Update all
929 * arm-tdep.h (arm_displaced_step_closure): Rename to...
930 (arm_displaced_step_copy_insn_closure): ... this. Update all
932 * i386-tdep.h (i386_displaced_step_closure): Rename to...
933 (i386_displaced_step_copy_insn_closure): ... this. Update all
935 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
936 (ppc_displaced_step_copy_insn_closure): ... this. Update all
938 * s390-tdep.c (s390_displaced_step_closure): Rename to...
939 (s390_displaced_step_copy_insn_closure): ... this. Update all
941 * gdbarch.h: Re-generate.
942 * gdbarch.c: Re-generate.
944 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
946 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
947 (global_thread_step_over_chain_enqueue): ... this. Update all
949 (thread_step_over_chain_remove): Rename to...
950 (global_thread_step_over_chain_remove): ... this. Update all
952 (thread_step_over_chain_next): Rename to...
953 (global_thread_step_over_chain_next): ... this. Update all
955 * infrun.h (step_over_queue_head): Rename to...
956 (global_thread_step_over_chain_head): ... this. Update all
958 * infrun.c (step_over_queue_head): Rename to...
959 (global_thread_step_over_chain_head): ... this. Update all
961 * thread.c (step_over_chain_remove): Rename to...
962 (thread_step_over_chain_remove): ... this. Update all users.
963 (thread_step_over_chain_next): Rename to...
964 (global_thread_step_over_chain_next): ... this. Update all
966 (thread_step_over_chain_enqueue): Rename to...
967 (global_thread_step_over_chain_enqueue): ... this. Update all
969 (thread_step_over_chain_remove): Rename to...
970 (global_thread_step_over_chain_remove): ... this. Update all
973 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
975 * infrun.c (get_displaced_stepping_state): Remove, change
976 callers to access the field directly.
978 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
980 * infrun.c (handle_inferior_event): Restore displaced step
981 buffer bytes in child process when handling fork, even if fork
982 happened in another thread than the displaced-stepping one.
984 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
986 * infrun.c (infrun_inferior_execd): New function.
987 (_initialize_infrun): Attach inferior_execd observer.
989 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
991 * observable.h (inferior_execd): Declare new observable.
992 * observable.c (inferior_execd): Declare new observable.
993 * infrun.c (follow_exec): Notify inferior_execd observer.
994 * jit.c (jit_inferior_created_hook): Make static.
995 (_initialize_jit): Register inferior_execd observer.
996 * jit.h (jit_inferior_created_hook): Remove declaration.
997 * solib.c (_initialize_solib): Register inferior_execd observer.
999 2020-12-04 Tom de Vries <tdevries@suse.de>
1002 * completer.c (completion_tracker::build_completion_result): Don't
1003 access match_list[0][-1].
1005 2020-12-04 Tom Tromey <tromey@adacore.com>
1007 * linespec.c (struct linespec_token): Rename; remove typedef.
1008 * guile/scm-block.c (struct block_smob): Remove typedef.
1009 (struct block_syms_progress_smob): Likewise.
1010 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
1011 * guile/scm-symtab.c (symtab_smob): Remove typedef.
1012 (struct sal_smob): Remove typedef.
1013 * guile/scm-param.c (struct param_smob): Remove typedef.
1014 * guile/scm-progspace.c (struct pspace_smob): Rename.
1015 * guile/scm-objfile.c (struct objfile_smob): Rename.
1016 * guile/scm-iterator.c (struct iterator_smob): Rename.
1017 * guile/scm-frame.c (struct frame_smob): Rename.
1018 * guile/scm-arch.c (struct arch_smob): Rename.
1019 * guile/scm-type.c (struct field_smob): Remove typedef.
1020 (struct type_smob): Rename.
1021 * guile/scm-cmd.c (struct command_smob): Remove typedef.
1022 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
1023 * guile/scm-value.c (struct value_smob): Remove typedef.
1024 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
1025 * guile/guile-internal.h (struct scheme_variable)
1026 (struct scheme_function, struct scheme_integer_constant)
1027 (struct gdb_smob, struct chained_gdb_smob)
1028 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
1029 (objfile_smob, pspace_smob, type_smob): Remove typedef.
1030 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
1031 (struct pretty_printer_worker_smob): Remove typedef.
1032 * guile/scm-exception.c (struct exception_smob): Remove typedef.
1033 * python/py-block.c (struct block_object): Remove typedef.
1034 (block_syms_iterator_object): Update.
1035 (set_block): Update.
1036 (block_syms_iterator_object): Remove typedef.
1037 * python/py-inferior.c (struct membuf_object): Remove typedef.
1038 * python/py-symtab.c (struct symtab_object): Remove typedef.
1039 (set_symtab): Update.
1040 (sal_object): Remove typedef.
1042 * python/py-frame.c (frame_object): Remove typedef.
1043 * python/py-record-btrace.c (struct btpy_list_object): Remove
1045 * python/py-arch.c (struct arch_object): Remove typedef.
1046 * python/py-linetable.c (struct linetable_entry_object)
1047 (linetable_object, struct ltpy_iterator_object): Remove typedef.
1048 * python/py-events.h (eventregistry_object): Remove typedef.
1049 (struct events_object): Remove typedef.
1050 * python/python-internal.h (gdbpy_breakpoint_object): Remove
1052 (thread_object): Remove typedef.
1053 * python/py-progspace.c (pspace_object): Remove typedef.
1054 * python/py-value.c (struct value_object): Remove typedef.
1055 * python/py-record.h (recpy_record_object): Remove typedef.
1056 (struct recpy_element_object): Remove typedef.
1057 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
1058 * python/py-objfile.c (objfile_object): Remove typedef.
1059 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
1060 * python/py-type.c (type_object): Remove typedef.
1061 (typy_iterator_object): Update.
1063 (field_object): Remove typedef.
1064 (typy_iterator_object): Remove typedef.
1065 * python/py-registers.c (register_descriptor_iterator_object):
1067 (struct register_descriptor_object)
1068 (struct reggroup_iterator_object, struct reggroup_object): Remove
1070 * python/py-record.c (recpy_gap_object): Remove typedef.
1071 * python/py-symbol.c (symbol_object): Remove typedef.
1072 (set_symbol): Update.
1073 * python/py-event.h (event_object): Remove typedef.
1074 * python/py-param.c (parmpy_object): Remove typedef.
1075 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
1076 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
1077 (unwind_info_object, struct cached_frame_info): Likewise.
1079 2020-12-04 Tom Tromey <tromey@adacore.com>
1081 * value.c (value_internal_function_name): Make return type const.
1082 * value.h (value_internal_function_name): Make return type const.
1084 2020-12-04 Luis Machado <luis.machado@linaro.org>
1086 * aarch64-tdep.c (submask, bit, bits): Remove.
1087 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
1088 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
1089 (aarch64_decode_cb, aarch64_decode_tb)
1090 (aarch64_decode_ldr_literal): Use sbits to extract a signed
1092 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
1094 2020-12-04 Tom de Vries <tdevries@suse.de>
1097 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
1099 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
1102 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
1103 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
1105 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1107 * arch/riscv.c: Include 'rv32e-xregs.c'.
1108 (riscv_create_target_description): Update to handle rv32e.
1109 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
1111 <operator==>: Update to account for new field.
1113 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
1114 * features/riscv/rv32e-xregs.c: Generated.
1115 * features/riscv/rv32e-xregs.xml: New file.
1116 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
1118 (riscv_debug_infcall): Likewise.
1119 (riscv_debug_unwinder): Likewise.
1120 (riscv_debug_gdbarch): Likewise.
1121 (enum riscv_register_required_status): Delete.
1122 (struct riscv_register_feature): Add constructor, delete default
1123 constructor, copy, and assign constructors.
1124 (struct riscv_register_feature::register_info) <required>: Delete.
1125 <check>: Update comment and arguments.
1126 (struct riscv_register_feature) <name>: Change to member function.
1127 <prefer_first_name>: Delete.
1128 <tdesc_feature>: New member function.
1129 <registers>: Rename to...
1130 <m_registers>: ...this.
1131 <m_feature_name>: New member variable.
1132 (riscv_register_feature::register_info::check): Update arguments.
1133 (riscv_xreg_feature): Rewrite as class, create a single static
1134 instance of the class.
1135 (riscv_freg_feature): Likewise.
1136 (riscv_virtual_feature): Likewise.
1137 (riscv_csr_feature): Likewise.
1138 (riscv_create_csr_aliases): Has become a member function inside
1139 riscv_csr_feature class.
1140 (riscv_abi_embedded): New function definition.
1141 (riscv_register_name): Adjust to use new feature objects.
1142 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
1143 and adjust available argument registers.
1144 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
1145 (riscv_check_tdesc_feature): Delete.
1146 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
1147 (riscv_gdbarch_init): Delete target description checking code, and
1148 instead call to the new feature objects to perform the checks.
1149 Reorder handling of no abi information case, allows small code
1151 (_initialize_riscv_tdep): Remove call, this is now done in the
1152 riscv_csr_feature constructor.
1153 * riscv-tdep.h (riscv_abi_embedded): Declare.
1155 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1157 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
1160 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1162 * riscv-tdep.c (riscv_is_unknown_csr): New function,
1163 implementation moved from riscv_register_reggroup_p.
1164 (riscv_register_reggroup_p): Update group handling for unknown
1167 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
1169 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
1170 (dwarf2_get_dwz_file): Convert 'filename' to a
1171 std::string. Use dwz_search_other_debugdirs to search for DWZ
1172 files in the debug-file-directories provided by the user as well.
1174 2020-12-01 Tom Tromey <tom@tromey.com>
1176 * parse.c (expr_builder::expr_builder): Initialize expout.
1177 (expr_builder::release): Use expression::resize.
1178 (expression::expression, expression::~expression)
1179 (expression::resize): New methods.
1180 (write_exp_elt): Use expression::resize.
1181 (prefixify_expression): Update.
1182 (increase_expout_size): Use expression::resize.
1183 * expression.h (struct expression): Add constructor, destructor.
1184 <resize>: New method.
1185 (expression_up): Change type.
1187 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1188 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
1189 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
1192 2020-11-30 Tom de Vries <tdevries@suse.de>
1195 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
1196 is_reference parameter.
1197 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
1199 2020-11-30 Tom Tromey <tom@tromey.com>
1201 * rust-lang.c (rust_op_name): Remove.
1202 (exp_descriptor_rust): Update.
1203 * parser-defs.h (op_name_standard): Don't declare.
1204 (struct exp_descriptor) <op_name>: Remove.
1205 * parse.c (exp_descriptor_standard): Update.
1206 * opencl-lang.c (exp_descriptor_opencl): Update.
1207 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
1208 * f-lang.c (op_name_f): Remove.
1209 (f_language::exp_descriptor_tab): Update.
1210 * expression.h (op_name): Update.
1211 * expprint.c (op_name): Rewrite.
1212 (op_name_standard): Remove.
1213 (dump_raw_expression, dump_subexp): Update.
1214 * c-lang.c (exp_descriptor_c): Update.
1215 * ax-gdb.c (gen_expr): Update.
1216 * ada-lang.c (ada_op_name): Remove.
1217 (ada_exp_descriptor): Update.
1219 2020-11-30 Tom Tromey <tom@tromey.com>
1221 * eval.c (init_array_element): Remove.
1222 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
1224 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
1227 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
1228 static locator win info.
1230 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
1232 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
1235 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1237 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
1238 is always initialized.
1240 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
1241 * MAINTAINERS (Write After Approval): Add myself.
1243 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1245 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1246 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1248 2020-11-25 Tom Tromey <tom@tromey.com>
1250 * eval.c (evaluate_subexp_standard): Remove unnecessary
1253 2020-11-25 Tom Tromey <tom@tromey.com>
1255 * d-lang.c: Include parser-defs.h.
1256 * rust-lang.c: Include parser-defs.h.
1257 * c-lang.h: Do not include parser-defs.h.
1259 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1261 * regcache.h (struct cached_reg): Remove typedef.
1263 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1265 * README: Fix the URL of the MPFR library.
1267 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1269 * README: Document the --with-libgmp-prefix configure option.
1271 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1273 * NEWS: Add entry documenting support for DWARF-based fixed
1276 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1278 * NEWS: Document that building GDB now requires GMP.
1280 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1282 * typeprint.c (print_type_scalar): Add handling of
1283 TYPE_CODE_FIXED_POINT.
1285 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1287 * valarith.c (fixed_point_binop): Replace the
1288 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1291 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1293 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1294 replacing fixed_point_scaling_factor. All callers updated
1295 throughout this project.
1296 (fixed_point_scaling_factor): Delete declaration.
1297 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1298 fixed_point_scaling_factor. Adjust implementation accordingly.
1300 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1302 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1303 replacing the fixed_point_type_base_type function. All callers
1304 updated throughout this project.
1305 (fixed_point_type_base_type): Remove declaration.
1306 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1307 fixed_point_type_base_type. Adjust implementation accordingly.
1309 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1311 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1313 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1314 (TYPE_FIXED_POINT_INFO): Delete macro.
1315 (allocate_fixed_point_type_info): Change return type to void.
1316 * gdbtypes.c (copy_type_recursive): Replace the use of
1317 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1318 (fixed_point_scaling_factor): Likewise.
1319 (allocate_fixed_point_type_info): Change return type to void.
1320 Adjust implementation accordingly.
1321 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1322 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1324 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1326 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1327 into one single gdb::array_view parameter.
1328 (gdb_mpz::write): Likewise.
1329 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1330 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1331 into one single gdb::array_view parameter.
1332 Adjust implementation accordingly.
1333 (gdb_mpz::write): Likewise.
1334 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1335 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1336 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1338 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1340 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1341 Change return type to std::string. Update all callers.
1342 * gmp-utils.c (gmp_string_printf): Likewise.
1344 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1346 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1347 instead of mpq_set_ui to initialize our GMP rational.
1349 2020-11-23 Tom de Vries <tdevries@suse.de>
1351 * debuginfod-support.c (debuginfod_source_query)
1352 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1354 2020-11-21 Tom Tromey <tom@tromey.com>
1356 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1358 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1360 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1362 (gdb_mpz_write_all_from_small): Likewise.
1364 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1366 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1369 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1371 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1372 ctf_arc_open_by_name.
1374 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1376 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1377 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1379 2020-11-20 Pedro Alves <pedro@palves.net>
1381 * language.c (language_arch_info::lookup_primitive_type): Use
1382 gdb::function_view instead of gdb::function.
1383 (template language_lookup_primitive_type): Rename to ...
1384 (language_lookup_primitive_type_1): ... this, and make static.
1385 (language_lookup_primitive_type(const struct language_defn *,
1386 struct gdbarch *, const char *): Make non-template.
1387 (language_lookup_primitive_type(const struct language_defn *,
1388 struct gdbarch *, std::function<bool (struct type *)>): Make
1389 non-template and use gdb::function_view.
1390 * language.h (language_arch_info::lookup_primitive_type): Use
1391 gdb::function_view instead of std::function.
1392 (language_lookup_primitive_type): No longer template.
1393 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1394 lambda instead of a std::function.
1396 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1399 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1402 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1404 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1406 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1408 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1409 in `loop_cb` parameter.
1410 * gdbarch.c: Re-generate.
1411 * gdbarch.h: Re-generate.
1412 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1414 * arch-utils.h (default_read_core_file_mappings): Likewise.
1415 * corelow.c (core_target::build_file_mappings): Likewise.
1416 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1417 (linux_core_info_proc_mappings): Likewise.
1419 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1421 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1422 * NEWS: Mention new options.
1423 * f-array-walker.h: New file.
1424 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1425 (repack_array_slices): New static global.
1426 (show_repack_array_slices): New function.
1427 (fortran_array_slicing_debug): New static global.
1428 (show_fortran_array_slicing_debug): New function.
1429 (value_f90_subarray): Delete.
1430 (skip_undetermined_arglist): Delete.
1431 (class fortran_array_repacker_base_impl): New class.
1432 (class fortran_lazy_array_repacker_impl): New class.
1433 (class fortran_array_repacker_impl): New class.
1434 (fortran_value_subarray): Complete rewrite.
1435 (set_fortran_list): New static global.
1436 (show_fortran_list): Likewise.
1437 (_initialize_f_language): Register new commands.
1438 (fortran_adjust_dynamic_array_base_address_hack): New function.
1439 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1441 * f-valprint.c: Include 'f-array-walker.h'.
1442 (class fortran_array_printer_impl): New class.
1443 (f77_print_array_1): Delete.
1444 (f77_print_array): Delete.
1445 (fortran_print_array): New.
1446 (f_value_print_inner): Update to call fortran_print_array.
1447 * gdbtypes.c: Include 'f-lang.h'.
1448 (resolve_dynamic_type_internal): Call
1449 fortran_adjust_dynamic_array_base_address_hack.
1451 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1453 * breakpoint.c (struct watch_options): New struct.
1454 (watch_option_defs): New static global.
1455 (make_watch_options_def_group): New function.
1456 (watch_maybe_just_location): Convert option parsing.
1457 (watch_command_completer): New function.
1458 (_initialize_breakpoint): Build help text using options mechanism.
1460 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1462 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1463 (watch_command_1): Update parameter types. Convert locals to
1465 (watch_command_wrapper): Change parameter type.
1466 (watch_maybe_just_location): Change locals to bool.
1467 (rwatch_command_wrapper): Update parameter type.
1468 (awatch_command_wrapper): Update parameter type.
1469 * breakpoint.h (watch_command_wrapper): Change parameter type.
1470 (rwatch_command_wrapper): Update parameter type.
1471 (awatch_command_wrapper): Update parameter type.
1472 * eval.c (fetch_subexp_value): Change parameter type.
1473 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1475 * value.h (fetch_subexp_value): Change parameter type in
1478 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1480 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1483 2020-11-18 Keith Seitz <keiths@redhat.com>
1485 * linux-tdep.c (dump_note_entry_p): Return true instead of
1486 checking `filename'.
1488 2020-11-18 Tom de Vries <tdevries@suse.de>
1490 * debuginfod-support.c (debuginfod_source_query)
1491 (debuginfod_debuginfo_query): Also do early exit if
1492 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1494 2020-11-18 Tom de Vries <tdevries@suse.de>
1496 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1499 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1501 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1502 callers. Move doc here.
1503 * gdbtypes.c (get_array_bounds): Return bool
1505 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1507 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1509 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1510 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1511 case to the default.
1513 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1515 * printcmd.c: Include 'safe-ctype.c'.
1516 (skip_over_slash_fmt): New function.
1517 (print_command_completer): Call skip_over_slash_fmt.
1518 (display_and_x_command_completer): New function.
1519 (_initialize_printcmd): Add command completion for 'x' and
1522 2020-11-16 Pedro Alves <pedro@palves.net>
1524 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1525 (get_prev_frame_always_1): ... to here.
1526 * inline-frame.c (inline_frame_this_id): Mention
1527 get_prev_frame_always_1 in comment.
1529 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1531 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1533 (value_less): Add fixed-point handling.
1535 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1537 * eval.c (binop_promote): Add fixed-point type handling.
1538 * valarith.c (fixed_point_binop): New function.
1539 (scalar_binop): Add fixed-point type handling.
1540 (value_neg): Add fixed-point type handling.
1541 * valops.c (value_cast_to_fixed_point): New function.
1542 (value_cast): Add fixed-point type handling.
1544 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1546 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1548 * c-typeprint.c (c_type_print_varspec_prefix)
1549 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1550 TYPE_CODE_FIXED_POINT handling.
1551 * p-typeprint.c (pascal_type_print_varspec_prefix)
1552 (pascal_type_print_varspec_suffix): Likewise.
1553 * typeprint.c (print_type_fixed_point): New function.
1554 * typeprint.h (print_type_fixed_point): Add declaration.
1556 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1558 * printcmd.c (print_scalar_formatted): Add fixed-point type
1559 handling when options->format is set.
1561 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1563 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1564 * dwarf2/read.c (get_dwarf2_rational_constant)
1565 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1566 (has_zero_over_zero_small_attribute): New functions.
1567 read_base_type, set_die_type): Add fixed-point type handling.
1568 * gdb-gdb.py.in: Add fixed-point type handling.
1569 * gdbtypes.c: #include "gmp-utils.h".
1570 (create_range_type, set_type_code): Add fixed-point type handling.
1571 (init_fixed_point_type): New function.
1572 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1573 (print_fixed_point_type_info): New function.
1574 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1576 (fixed_point_type_storage): New typedef.
1577 (fixed_point_objfile_key): New static global.
1578 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1579 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1581 * gdbtypes.h: #include "gmp-utils.h".
1582 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1583 (union type_specific) <fixed_point_info>: New field.
1584 (struct fixed_point_type_info): New struct.
1585 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1586 (init_fixed_point_type, is_fixed_point_type)
1587 (fixed_point_type_base_type, fixed_point_scaling_factor)
1588 (allocate_fixed_point_type_info): Add declarations.
1589 * valprint.c (generic_val_print_fixed_point): New function.
1590 (generic_value_print): Add fixed-point type handling.
1591 * value.c (value_as_address, unpack_long): Add fixed-point type
1594 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1596 * utils.h (uinteger_pow): Add declaration.
1597 * utils.c (uinteger_pow): Moved here (without changes)...
1598 * valarith.c (uinteger_pow): ... from here.
1600 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1602 * gmp-utils.h, gmp-utils.c: New file.
1603 * unittests/gmp-utils-selftests.c: New file.
1604 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1605 unittests/gmp-utils-selftests.c.
1606 (COMMON_SFILES) Add gmp-utils.c.
1607 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1609 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1611 * configure.ac: Generate an error if a usable GMP library
1613 * configure: Regenerate.
1615 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1617 * configure.ac: Add support for --with-libgmp-prefix.
1618 * Makefile.in (LIBGMP): New variable.
1619 (CLIBS): Include $(LIBGMP).
1620 * configure, config.in: Regenerate
1622 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1625 * f-exp.y (COMPLETE): New token.
1626 (exp): Two new rules for tab-completion.
1627 (saw_name_at_eof): New static global.
1628 (last_was_structop): Likewise.
1629 (yylex): Set new variables, and return COMPLETE token at the end
1630 of the input stream in some cases.
1632 2020-11-14 Tom Tromey <tom@tromey.com>
1634 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1636 2020-11-14 Tom Tromey <tom@tromey.com>
1638 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1640 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1642 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1644 2020-11-13 Tom Tromey <tom@tromey.com>
1646 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1647 (convert_escape, parse_one_string): Constify.
1649 2020-11-13 Keith Seitz <keiths@redhat.com>
1651 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1652 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1653 outside of ELF segments" warning for debugin
1655 2020-11-13 Keith Seitz <keiths@redhat.com>
1658 * elfread.c (elf_symfile_segments): Output a BFD file name
1659 for the "Loadable section ... outside of ELF segments" warning.
1661 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1664 * arm-tdep.c (class arm_instruction_reader): New.
1665 (target_arm_instruction_reader): New.
1666 (arm_analyze_prologue): Add instruction reader parameter and use
1667 it. Use arm_expand_immediate.
1668 (class target_arm_instruction_reader): Adjust.
1669 (arm_skip_prologue): Adjust.
1670 (arm_expand_immediate): New.
1671 (arm_scan_prologue): Adjust.
1672 (arm_analyze_prologue_test): New.
1673 (class test_arm_instruction_reader): New.
1675 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1677 * f-lang.c (fortran_argument_convert): Add declaration. Add
1678 header comment, taken from f-lang.h. Make static.
1679 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1680 (fortran_argument_convert): Delete declaration.
1682 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1684 * ada-exp.y (find_primitive_type): Make parameter const.
1685 * ada-lang.c (enum ada_primitive_types): Delete.
1686 (ada_language::language_arch_info): Update.
1687 * c-lang.c (enum c_primitive_types): Delete.
1688 (c_language_arch_info): Update.
1689 (enum cplus_primitive_types): Delete.
1690 (cplus_language::language_arch_info): Update.
1691 * d-lang.c (enum d_primitive_types): Delete.
1692 (d_language::language_arch_info): Update.
1693 * f-lang.c (enum f_primitive_types): Delete.
1694 (f_language::language_arch_info): Update.
1695 * go-lang.c (enum go_primitive_types): Delete.
1696 (go_language::language_arch_info): Update.
1697 * language.c (auto_or_unknown_language::language_arch_info):
1699 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1700 (language_string_char_type): Add header comment, call function in
1702 (language_bool_type): Likewise
1703 (language_arch_info::bool_type): Define.
1704 (language_lookup_primitive_type_1): Delete.
1705 (language_lookup_primitive_type): Rewrite as a templated function
1706 to call function in language_arch_info, then instantiate twice.
1707 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1708 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1709 (language_arch_info::lookup_primitive_type): Define twice with
1710 different signatures.
1711 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1712 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1713 member function in language_arch_info.
1714 * language.h (language_arch_info): Complete rewrite.
1715 (language_lookup_primitive_type): Make templated.
1716 * m2-lang.c (enum m2_primitive_types): Delete.
1717 (m2_language::language_arch_info): Update.
1718 * opencl-lang.c (OCL_P_TYPE): Delete.
1719 (enum opencl_primitive_types): Delete.
1720 (opencl_type_data): Delete.
1721 (builtin_opencl_type): Delete.
1722 (lookup_opencl_vector_type): Update.
1723 (opencl_language::language_arch_info): Update, lots of content
1725 (build_opencl_types): ...here. This function is now deleted.
1726 (_initialize_opencl_language): Delete.
1727 * p-lang.c (enum pascal_primitive_types): Delete.
1728 (pascal_language::language_arch_info): Update.
1729 * rust-lang.c (enum rust_primitive_types): Delete.
1730 (rust_language::language_arch_info): Update.
1732 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1734 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1737 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1739 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1742 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1744 * dwarf2/read.c (dwarf_read_debug_printf,
1745 dwarf_read_debug_printf_v): New macros, use throughout the file.
1747 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1750 * arc-linux-tdep.c (collect_register): Populate "eret" by
1751 "pc" value from the regcache when asked for "pc" value.
1753 2020-11-12 Tom Tromey <tom@tromey.com>
1756 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1759 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1761 * features/Makefile (XMLTOC): Add rx.xml.
1762 (FEATURE_XMLFILES): Remove rx.xml.
1763 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1764 * features/rx.c: Regenerate.
1765 * features/rx.xml: Wrap in `target` tags, and reindent.
1766 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1768 (maint_print_c_tdesc_opt_def): New typedef.
1769 (maint_print_c_tdesc_opt_defs): New static global.
1770 (make_maint_print_c_tdesc_options_def_group): New function.
1771 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1772 print single feature C file for target descriptions containing a
1774 (maint_print_c_tdesc_cmd_completer): New function.
1775 (_initialize_target_descriptions): Update call to register command
1776 completer, and include command line flag in help text.
1778 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1780 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1782 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1785 2020-11-10 Tom Tromey <tom@tromey.com>
1787 * value.h (internalvar_name): Update.
1788 * value.c (internalvar_name): Make return type const.
1790 2020-11-10 Tom Tromey <tom@tromey.com>
1792 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1793 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1796 2020-11-10 Tom Tromey <tom@tromey.com>
1798 * objc-lang.h (value_nsstring): Update.
1799 * objc-lang.c (value_nsstring): Make "ptr" const.
1801 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1803 * expprint.c (print_subexp_funcall): Increment expression position
1804 after reading argument count.
1805 * f-lang.c (print_subexp_f): Skip over opcode before calling
1807 (dump_subexp_body_f): Likewise.
1809 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1812 * configure: Regenerate.
1813 * configure.ac: Check for python modules ctypes instead of
1816 2020-11-06 Pedro Alves <pedro@palves.net>
1818 * macroexp.c (struct macro_buffer): Split in two classes. Add
1820 (struct shared_macro_buffer): New, factored out from struct
1822 (struct growable_macro_buffer): New, factored out from struct
1824 (set_token, get_comment, get_identifier, get_pp_number)
1825 (get_character_constant, get_string_literal, get_punctuator)
1826 (get_next_token_for_substitution): Constify parameters.
1827 (substitute_args): Constify locals.
1829 2020-11-05 Tom Tromey <tom@tromey.com>
1831 * dwarf2/read.c (read_cutu_die_from_dwo)
1832 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1833 (build_type_psymtabs_1): Update.
1834 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1836 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1837 Don't read section. Add assert.
1839 2020-11-04 Tom Tromey <tromey@adacore.com>
1841 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1843 2020-11-04 Tom Tromey <tromey@adacore.com>
1845 * ada-typeprint.c (ada_print_type): Handle __T types.
1847 2020-11-04 Tom Tromey <tromey@adacore.com>
1849 * dwarf2/read.c (add_partial_symbol, process_die):
1850 Handle DW_TAG_array_type.
1851 (is_type_tag_for_partial): Add "lang" parameter.
1852 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1854 2020-11-04 Tom Tromey <tromey@adacore.com>
1856 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1858 2020-11-04 Tom Tromey <tromey@adacore.com>
1860 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1863 2020-11-04 Tom Tromey <tromey@adacore.com>
1865 * gdbtypes.c (update_static_array_size): Handle bit stride.
1867 2020-11-04 Tom Tromey <tromey@adacore.com>
1869 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1871 2020-11-04 Tom Tromey <tromey@adacore.com>
1873 * ada-lang.c (ada_is_any_packed_array_type): New function.
1874 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1876 2020-11-04 Tom Tromey <tromey@adacore.com>
1878 * dwarf2/read.c (recognize_bound_expression)
1879 (quirk_ada_thick_pointer): New functions.
1880 (read_array_type): Call quirk_ada_thick_pointer.
1881 (set_die_type): Add "skip_data_location" parameter.
1882 (quirk_ada_thick_pointer): New function.
1883 (process_structure_scope): Call quirk_ada_thick_pointer.
1884 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1885 (decode_packed_array_bitsize): Handle thick pointers without
1887 (ada_is_gnat_encoded_packed_array_type): Rename from
1888 ada_is_packed_array_type.
1889 (ada_is_constrained_packed_array_type): Update.
1890 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1891 (ada_value_print_1): Use ada_get_decoded_value.
1893 2020-11-04 Tom Tromey <tromey@adacore.com>
1895 * ada-lang.c (recursively_update_array_bitsize): New function.
1896 (decode_constrained_packed_array_type): Call it.
1898 2020-11-04 Tom Tromey <tromey@adacore.com>
1900 * ada-lang.c (to_fixed_array_type): Error if
1901 decode_constrained_packed_array_type returns NULL.
1903 2020-11-04 Tom Tromey <tromey@adacore.com>
1905 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1907 2020-11-02 Tom Tromey <tromey@adacore.com>
1909 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1910 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1911 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1912 * amd64-ravenscar-thread.c: New file.
1913 * amd64-ravenscar-thread.h: New file.
1914 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1915 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1917 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1919 * main.c (execute_cmdargs): New function.
1920 (captured_main_1): Make use of execute_cmdargs.
1922 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1924 * NEWS: Mention changes to config file search path.
1927 2020-11-02 Tom Tromey <tromey@adacore.com>
1929 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1930 (python_GdbModuleDef): Move earlier. Now static.
1931 (do_start_initialization): Consolidate some IS_PY3K blocks.
1933 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1935 * aarch64-linux-tdep.c: Fix indentation.
1936 * aarch64-ravenscar-thread.c: Fix indentation.
1937 * aarch64-tdep.c: Fix indentation.
1938 * aarch64-tdep.h: Fix indentation.
1939 * ada-lang.c: Fix indentation.
1940 * ada-lang.h: Fix indentation.
1941 * ada-tasks.c: Fix indentation.
1942 * ada-typeprint.c: Fix indentation.
1943 * ada-valprint.c: Fix indentation.
1944 * ada-varobj.c: Fix indentation.
1945 * addrmap.c: Fix indentation.
1946 * addrmap.h: Fix indentation.
1947 * agent.c: Fix indentation.
1948 * aix-thread.c: Fix indentation.
1949 * alpha-bsd-nat.c: Fix indentation.
1950 * alpha-linux-tdep.c: Fix indentation.
1951 * alpha-mdebug-tdep.c: Fix indentation.
1952 * alpha-nbsd-tdep.c: Fix indentation.
1953 * alpha-obsd-tdep.c: Fix indentation.
1954 * alpha-tdep.c: Fix indentation.
1955 * amd64-bsd-nat.c: Fix indentation.
1956 * amd64-darwin-tdep.c: Fix indentation.
1957 * amd64-linux-nat.c: Fix indentation.
1958 * amd64-linux-tdep.c: Fix indentation.
1959 * amd64-nat.c: Fix indentation.
1960 * amd64-obsd-tdep.c: Fix indentation.
1961 * amd64-tdep.c: Fix indentation.
1962 * amd64-windows-tdep.c: Fix indentation.
1963 * annotate.c: Fix indentation.
1964 * arc-tdep.c: Fix indentation.
1965 * arch-utils.c: Fix indentation.
1966 * arch/arm-get-next-pcs.c: Fix indentation.
1967 * arch/arm.c: Fix indentation.
1968 * arm-linux-nat.c: Fix indentation.
1969 * arm-linux-tdep.c: Fix indentation.
1970 * arm-nbsd-tdep.c: Fix indentation.
1971 * arm-pikeos-tdep.c: Fix indentation.
1972 * arm-tdep.c: Fix indentation.
1973 * arm-tdep.h: Fix indentation.
1974 * arm-wince-tdep.c: Fix indentation.
1975 * auto-load.c: Fix indentation.
1976 * auxv.c: Fix indentation.
1977 * avr-tdep.c: Fix indentation.
1978 * ax-gdb.c: Fix indentation.
1979 * ax-general.c: Fix indentation.
1980 * bfin-linux-tdep.c: Fix indentation.
1981 * block.c: Fix indentation.
1982 * block.h: Fix indentation.
1983 * blockframe.c: Fix indentation.
1984 * bpf-tdep.c: Fix indentation.
1985 * break-catch-sig.c: Fix indentation.
1986 * break-catch-syscall.c: Fix indentation.
1987 * break-catch-throw.c: Fix indentation.
1988 * breakpoint.c: Fix indentation.
1989 * breakpoint.h: Fix indentation.
1990 * bsd-uthread.c: Fix indentation.
1991 * btrace.c: Fix indentation.
1992 * build-id.c: Fix indentation.
1993 * buildsym-legacy.h: Fix indentation.
1994 * buildsym.c: Fix indentation.
1995 * c-typeprint.c: Fix indentation.
1996 * c-valprint.c: Fix indentation.
1997 * c-varobj.c: Fix indentation.
1998 * charset.c: Fix indentation.
1999 * cli/cli-cmds.c: Fix indentation.
2000 * cli/cli-decode.c: Fix indentation.
2001 * cli/cli-decode.h: Fix indentation.
2002 * cli/cli-script.c: Fix indentation.
2003 * cli/cli-setshow.c: Fix indentation.
2004 * coff-pe-read.c: Fix indentation.
2005 * coffread.c: Fix indentation.
2006 * compile/compile-cplus-types.c: Fix indentation.
2007 * compile/compile-object-load.c: Fix indentation.
2008 * compile/compile-object-run.c: Fix indentation.
2009 * completer.c: Fix indentation.
2010 * corefile.c: Fix indentation.
2011 * corelow.c: Fix indentation.
2012 * cp-abi.h: Fix indentation.
2013 * cp-namespace.c: Fix indentation.
2014 * cp-support.c: Fix indentation.
2015 * cp-valprint.c: Fix indentation.
2016 * cris-linux-tdep.c: Fix indentation.
2017 * cris-tdep.c: Fix indentation.
2018 * darwin-nat-info.c: Fix indentation.
2019 * darwin-nat.c: Fix indentation.
2020 * darwin-nat.h: Fix indentation.
2021 * dbxread.c: Fix indentation.
2022 * dcache.c: Fix indentation.
2023 * disasm.c: Fix indentation.
2024 * dtrace-probe.c: Fix indentation.
2025 * dwarf2/abbrev.c: Fix indentation.
2026 * dwarf2/attribute.c: Fix indentation.
2027 * dwarf2/expr.c: Fix indentation.
2028 * dwarf2/frame.c: Fix indentation.
2029 * dwarf2/index-cache.c: Fix indentation.
2030 * dwarf2/index-write.c: Fix indentation.
2031 * dwarf2/line-header.c: Fix indentation.
2032 * dwarf2/loc.c: Fix indentation.
2033 * dwarf2/macro.c: Fix indentation.
2034 * dwarf2/read.c: Fix indentation.
2035 * dwarf2/read.h: Fix indentation.
2036 * elfread.c: Fix indentation.
2037 * eval.c: Fix indentation.
2038 * event-top.c: Fix indentation.
2039 * exec.c: Fix indentation.
2040 * exec.h: Fix indentation.
2041 * expprint.c: Fix indentation.
2042 * f-lang.c: Fix indentation.
2043 * f-typeprint.c: Fix indentation.
2044 * f-valprint.c: Fix indentation.
2045 * fbsd-nat.c: Fix indentation.
2046 * fbsd-tdep.c: Fix indentation.
2047 * findvar.c: Fix indentation.
2048 * fork-child.c: Fix indentation.
2049 * frame-unwind.c: Fix indentation.
2050 * frame-unwind.h: Fix indentation.
2051 * frame.c: Fix indentation.
2052 * frv-linux-tdep.c: Fix indentation.
2053 * frv-tdep.c: Fix indentation.
2054 * frv-tdep.h: Fix indentation.
2055 * ft32-tdep.c: Fix indentation.
2056 * gcore.c: Fix indentation.
2057 * gdb_bfd.c: Fix indentation.
2058 * gdbarch.sh: Fix indentation.
2059 * gdbarch.c: Re-generate
2060 * gdbarch.h: Re-generate.
2061 * gdbcore.h: Fix indentation.
2062 * gdbthread.h: Fix indentation.
2063 * gdbtypes.c: Fix indentation.
2064 * gdbtypes.h: Fix indentation.
2065 * glibc-tdep.c: Fix indentation.
2066 * gnu-nat.c: Fix indentation.
2067 * gnu-nat.h: Fix indentation.
2068 * gnu-v2-abi.c: Fix indentation.
2069 * gnu-v3-abi.c: Fix indentation.
2070 * go32-nat.c: Fix indentation.
2071 * guile/guile-internal.h: Fix indentation.
2072 * guile/scm-cmd.c: Fix indentation.
2073 * guile/scm-frame.c: Fix indentation.
2074 * guile/scm-iterator.c: Fix indentation.
2075 * guile/scm-math.c: Fix indentation.
2076 * guile/scm-ports.c: Fix indentation.
2077 * guile/scm-pretty-print.c: Fix indentation.
2078 * guile/scm-value.c: Fix indentation.
2079 * h8300-tdep.c: Fix indentation.
2080 * hppa-linux-nat.c: Fix indentation.
2081 * hppa-linux-tdep.c: Fix indentation.
2082 * hppa-nbsd-nat.c: Fix indentation.
2083 * hppa-nbsd-tdep.c: Fix indentation.
2084 * hppa-obsd-nat.c: Fix indentation.
2085 * hppa-tdep.c: Fix indentation.
2086 * hppa-tdep.h: Fix indentation.
2087 * i386-bsd-nat.c: Fix indentation.
2088 * i386-darwin-nat.c: Fix indentation.
2089 * i386-darwin-tdep.c: Fix indentation.
2090 * i386-dicos-tdep.c: Fix indentation.
2091 * i386-gnu-nat.c: Fix indentation.
2092 * i386-linux-nat.c: Fix indentation.
2093 * i386-linux-tdep.c: Fix indentation.
2094 * i386-nto-tdep.c: Fix indentation.
2095 * i386-obsd-tdep.c: Fix indentation.
2096 * i386-sol2-nat.c: Fix indentation.
2097 * i386-tdep.c: Fix indentation.
2098 * i386-tdep.h: Fix indentation.
2099 * i386-windows-tdep.c: Fix indentation.
2100 * i387-tdep.c: Fix indentation.
2101 * i387-tdep.h: Fix indentation.
2102 * ia64-libunwind-tdep.c: Fix indentation.
2103 * ia64-libunwind-tdep.h: Fix indentation.
2104 * ia64-linux-nat.c: Fix indentation.
2105 * ia64-linux-tdep.c: Fix indentation.
2106 * ia64-tdep.c: Fix indentation.
2107 * ia64-tdep.h: Fix indentation.
2108 * ia64-vms-tdep.c: Fix indentation.
2109 * infcall.c: Fix indentation.
2110 * infcmd.c: Fix indentation.
2111 * inferior.c: Fix indentation.
2112 * infrun.c: Fix indentation.
2113 * iq2000-tdep.c: Fix indentation.
2114 * language.c: Fix indentation.
2115 * linespec.c: Fix indentation.
2116 * linux-fork.c: Fix indentation.
2117 * linux-nat.c: Fix indentation.
2118 * linux-tdep.c: Fix indentation.
2119 * linux-thread-db.c: Fix indentation.
2120 * lm32-tdep.c: Fix indentation.
2121 * m2-lang.c: Fix indentation.
2122 * m2-typeprint.c: Fix indentation.
2123 * m2-valprint.c: Fix indentation.
2124 * m32c-tdep.c: Fix indentation.
2125 * m32r-linux-tdep.c: Fix indentation.
2126 * m32r-tdep.c: Fix indentation.
2127 * m68hc11-tdep.c: Fix indentation.
2128 * m68k-bsd-nat.c: Fix indentation.
2129 * m68k-linux-nat.c: Fix indentation.
2130 * m68k-linux-tdep.c: Fix indentation.
2131 * m68k-tdep.c: Fix indentation.
2132 * machoread.c: Fix indentation.
2133 * macrocmd.c: Fix indentation.
2134 * macroexp.c: Fix indentation.
2135 * macroscope.c: Fix indentation.
2136 * macrotab.c: Fix indentation.
2137 * macrotab.h: Fix indentation.
2138 * main.c: Fix indentation.
2139 * mdebugread.c: Fix indentation.
2140 * mep-tdep.c: Fix indentation.
2141 * mi/mi-cmd-catch.c: Fix indentation.
2142 * mi/mi-cmd-disas.c: Fix indentation.
2143 * mi/mi-cmd-env.c: Fix indentation.
2144 * mi/mi-cmd-stack.c: Fix indentation.
2145 * mi/mi-cmd-var.c: Fix indentation.
2146 * mi/mi-cmds.c: Fix indentation.
2147 * mi/mi-main.c: Fix indentation.
2148 * mi/mi-parse.c: Fix indentation.
2149 * microblaze-tdep.c: Fix indentation.
2150 * minidebug.c: Fix indentation.
2151 * minsyms.c: Fix indentation.
2152 * mips-linux-nat.c: Fix indentation.
2153 * mips-linux-tdep.c: Fix indentation.
2154 * mips-nbsd-tdep.c: Fix indentation.
2155 * mips-tdep.c: Fix indentation.
2156 * mn10300-linux-tdep.c: Fix indentation.
2157 * mn10300-tdep.c: Fix indentation.
2158 * moxie-tdep.c: Fix indentation.
2159 * msp430-tdep.c: Fix indentation.
2160 * namespace.h: Fix indentation.
2161 * nat/fork-inferior.c: Fix indentation.
2162 * nat/gdb_ptrace.h: Fix indentation.
2163 * nat/linux-namespaces.c: Fix indentation.
2164 * nat/linux-osdata.c: Fix indentation.
2165 * nat/netbsd-nat.c: Fix indentation.
2166 * nat/x86-dregs.c: Fix indentation.
2167 * nbsd-nat.c: Fix indentation.
2168 * nbsd-tdep.c: Fix indentation.
2169 * nios2-linux-tdep.c: Fix indentation.
2170 * nios2-tdep.c: Fix indentation.
2171 * nto-procfs.c: Fix indentation.
2172 * nto-tdep.c: Fix indentation.
2173 * objfiles.c: Fix indentation.
2174 * objfiles.h: Fix indentation.
2175 * opencl-lang.c: Fix indentation.
2176 * or1k-tdep.c: Fix indentation.
2177 * osabi.c: Fix indentation.
2178 * osabi.h: Fix indentation.
2179 * osdata.c: Fix indentation.
2180 * p-lang.c: Fix indentation.
2181 * p-typeprint.c: Fix indentation.
2182 * p-valprint.c: Fix indentation.
2183 * parse.c: Fix indentation.
2184 * ppc-linux-nat.c: Fix indentation.
2185 * ppc-linux-tdep.c: Fix indentation.
2186 * ppc-nbsd-nat.c: Fix indentation.
2187 * ppc-nbsd-tdep.c: Fix indentation.
2188 * ppc-obsd-nat.c: Fix indentation.
2189 * ppc-ravenscar-thread.c: Fix indentation.
2190 * ppc-sysv-tdep.c: Fix indentation.
2191 * ppc64-tdep.c: Fix indentation.
2192 * printcmd.c: Fix indentation.
2193 * proc-api.c: Fix indentation.
2194 * producer.c: Fix indentation.
2195 * producer.h: Fix indentation.
2196 * prologue-value.c: Fix indentation.
2197 * prologue-value.h: Fix indentation.
2198 * psymtab.c: Fix indentation.
2199 * python/py-arch.c: Fix indentation.
2200 * python/py-bpevent.c: Fix indentation.
2201 * python/py-event.c: Fix indentation.
2202 * python/py-event.h: Fix indentation.
2203 * python/py-finishbreakpoint.c: Fix indentation.
2204 * python/py-frame.c: Fix indentation.
2205 * python/py-framefilter.c: Fix indentation.
2206 * python/py-inferior.c: Fix indentation.
2207 * python/py-infthread.c: Fix indentation.
2208 * python/py-objfile.c: Fix indentation.
2209 * python/py-prettyprint.c: Fix indentation.
2210 * python/py-registers.c: Fix indentation.
2211 * python/py-signalevent.c: Fix indentation.
2212 * python/py-stopevent.c: Fix indentation.
2213 * python/py-stopevent.h: Fix indentation.
2214 * python/py-threadevent.c: Fix indentation.
2215 * python/py-tui.c: Fix indentation.
2216 * python/py-unwind.c: Fix indentation.
2217 * python/py-value.c: Fix indentation.
2218 * python/py-xmethods.c: Fix indentation.
2219 * python/python-internal.h: Fix indentation.
2220 * python/python.c: Fix indentation.
2221 * ravenscar-thread.c: Fix indentation.
2222 * record-btrace.c: Fix indentation.
2223 * record-full.c: Fix indentation.
2224 * record.c: Fix indentation.
2225 * reggroups.c: Fix indentation.
2226 * regset.h: Fix indentation.
2227 * remote-fileio.c: Fix indentation.
2228 * remote.c: Fix indentation.
2229 * reverse.c: Fix indentation.
2230 * riscv-linux-tdep.c: Fix indentation.
2231 * riscv-ravenscar-thread.c: Fix indentation.
2232 * riscv-tdep.c: Fix indentation.
2233 * rl78-tdep.c: Fix indentation.
2234 * rs6000-aix-tdep.c: Fix indentation.
2235 * rs6000-lynx178-tdep.c: Fix indentation.
2236 * rs6000-nat.c: Fix indentation.
2237 * rs6000-tdep.c: Fix indentation.
2238 * rust-lang.c: Fix indentation.
2239 * rx-tdep.c: Fix indentation.
2240 * s12z-tdep.c: Fix indentation.
2241 * s390-linux-tdep.c: Fix indentation.
2242 * score-tdep.c: Fix indentation.
2243 * ser-base.c: Fix indentation.
2244 * ser-mingw.c: Fix indentation.
2245 * ser-uds.c: Fix indentation.
2246 * ser-unix.c: Fix indentation.
2247 * serial.c: Fix indentation.
2248 * sh-linux-tdep.c: Fix indentation.
2249 * sh-nbsd-tdep.c: Fix indentation.
2250 * sh-tdep.c: Fix indentation.
2251 * skip.c: Fix indentation.
2252 * sol-thread.c: Fix indentation.
2253 * solib-aix.c: Fix indentation.
2254 * solib-darwin.c: Fix indentation.
2255 * solib-frv.c: Fix indentation.
2256 * solib-svr4.c: Fix indentation.
2257 * solib.c: Fix indentation.
2258 * source.c: Fix indentation.
2259 * sparc-linux-tdep.c: Fix indentation.
2260 * sparc-nbsd-tdep.c: Fix indentation.
2261 * sparc-obsd-tdep.c: Fix indentation.
2262 * sparc-ravenscar-thread.c: Fix indentation.
2263 * sparc-tdep.c: Fix indentation.
2264 * sparc64-linux-tdep.c: Fix indentation.
2265 * sparc64-nbsd-tdep.c: Fix indentation.
2266 * sparc64-obsd-tdep.c: Fix indentation.
2267 * sparc64-tdep.c: Fix indentation.
2268 * stabsread.c: Fix indentation.
2269 * stack.c: Fix indentation.
2270 * stap-probe.c: Fix indentation.
2271 * stubs/ia64vms-stub.c: Fix indentation.
2272 * stubs/m32r-stub.c: Fix indentation.
2273 * stubs/m68k-stub.c: Fix indentation.
2274 * stubs/sh-stub.c: Fix indentation.
2275 * stubs/sparc-stub.c: Fix indentation.
2276 * symfile-mem.c: Fix indentation.
2277 * symfile.c: Fix indentation.
2278 * symfile.h: Fix indentation.
2279 * symmisc.c: Fix indentation.
2280 * symtab.c: Fix indentation.
2281 * symtab.h: Fix indentation.
2282 * target-float.c: Fix indentation.
2283 * target.c: Fix indentation.
2284 * target.h: Fix indentation.
2285 * tic6x-tdep.c: Fix indentation.
2286 * tilegx-linux-tdep.c: Fix indentation.
2287 * tilegx-tdep.c: Fix indentation.
2288 * top.c: Fix indentation.
2289 * tracefile-tfile.c: Fix indentation.
2290 * tracepoint.c: Fix indentation.
2291 * tui/tui-disasm.c: Fix indentation.
2292 * tui/tui-io.c: Fix indentation.
2293 * tui/tui-regs.c: Fix indentation.
2294 * tui/tui-stack.c: Fix indentation.
2295 * tui/tui-win.c: Fix indentation.
2296 * tui/tui-winsource.c: Fix indentation.
2297 * tui/tui.c: Fix indentation.
2298 * typeprint.c: Fix indentation.
2299 * ui-out.h: Fix indentation.
2300 * unittests/copy_bitwise-selftests.c: Fix indentation.
2301 * unittests/memory-map-selftests.c: Fix indentation.
2302 * utils.c: Fix indentation.
2303 * v850-tdep.c: Fix indentation.
2304 * valarith.c: Fix indentation.
2305 * valops.c: Fix indentation.
2306 * valprint.c: Fix indentation.
2307 * valprint.h: Fix indentation.
2308 * value.c: Fix indentation.
2309 * value.h: Fix indentation.
2310 * varobj.c: Fix indentation.
2311 * vax-tdep.c: Fix indentation.
2312 * windows-nat.c: Fix indentation.
2313 * windows-tdep.c: Fix indentation.
2314 * xcoffread.c: Fix indentation.
2315 * xml-syscall.c: Fix indentation.
2316 * xml-tdesc.c: Fix indentation.
2317 * xstormy16-tdep.c: Fix indentation.
2318 * xtensa-config.c: Fix indentation.
2319 * xtensa-linux-nat.c: Fix indentation.
2320 * xtensa-linux-tdep.c: Fix indentation.
2321 * xtensa-tdep.c: Fix indentation.
2323 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2324 Craig Blackmore <craig.blackmore@embecosm.com>
2326 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2327 as an unsigned value.
2329 2020-11-01 Tom Tromey <tom@tromey.com>
2331 * dbxread.c (dbx_end_psymtab): Update.
2332 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2333 (build_type_psymtabs_reader): Update.
2334 * xcoffread.c (xcoff_end_psymtab): Update.
2335 * ctfread.c (scan_partial_symbols): Update.
2336 * psymtab.c (sort_pst_symbols): Remove.
2337 (partial_symtab::end): Rename from end_psymtab_common. Inline
2339 * psympriv.h (struct partial_symtab) <end>: New method.
2340 (end_psymtab_common): Don't declare.
2342 2020-11-01 Tom Tromey <tom@tromey.com>
2344 * symmisc.c (count_psyms): New function.
2345 (print_objfile_statistics): Use it.
2346 * psymtab.c (append_psymbol_to_list): Remove.
2347 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2348 * objfiles.h (struct objstats) <n_psyms>: Remove.
2350 2020-11-01 Tom Tromey <tom@tromey.com>
2352 * dbxread.c (dbx_end_psymtab): Update.
2353 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2354 (build_type_psymtabs_reader): Update.
2355 * xcoffread.c (xcoff_end_psymtab): Update.
2356 * ctfread.c (scan_partial_symbols): Update.
2357 * psympriv.h (end_psymtab_common): Update.
2358 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2359 (sort_pst_symbols): Likewise.
2361 2020-11-01 Tom Tromey <tom@tromey.com>
2363 * dbxread.c (dbx_symfile_read): Update.
2364 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2365 * xcoffread.c (xcoff_initial_scan): Update.
2366 * psympriv.h (init_psymbol_list): Don't declare.
2367 * psymtab.c (init_psymbol_list): Remove.
2369 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2371 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2372 gnat_encoded_fixed_type_info. Update all callers.
2374 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2376 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2379 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2381 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2382 cast_from_fixed. Update all callers.
2383 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2385 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2387 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2389 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2390 to print_gnat_encoded_fixed_point_type.
2391 * ada-valprint.c: Likewise.
2393 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2395 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2396 (debug_prefixed_printf): Add check of debug_displaced flag.
2397 * linux-nat.c (linux_nat_debug_printf): Add check of
2398 debug_linux_nat flag.
2400 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2402 * infrun.c (infrun_debug_printf_1): Remove.
2403 (displaced_debug_printf_1): Remove.
2404 (stop_all_threads): Use debug_prefixed_printf.
2405 * infrun.h (infrun_debug_printf_1): Remove.
2406 (infrun_debug_printf): Use debug_prefixed_printf.
2407 (displaced_debug_printf_1): Remove.
2408 (displaced_debug_printf): Use debug_prefixed_printf.
2409 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2410 (linux_nat_debug_printf): Use debug_prefixed_printf.
2412 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2414 * configure: Re-generate.
2415 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2418 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2420 * configure: Re-generate.
2422 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2424 * configure: Re-generate.
2426 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2428 * configure: Re-generate.
2430 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2432 * configure: Re-generate.
2434 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2436 * acinclude.m4: Modernize.
2437 * configure: Re-generate.
2439 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2441 * configure.ac: Modernize.
2442 * configure: Re-generate.
2444 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2446 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2447 * configure: Re-generate.
2448 * configure.ac: Remove AM_PROG_CC_STDC.
2450 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2452 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2453 AC_CANONICAL_SYSTEM.
2454 * configure: Re-generate.
2456 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2458 * infrun.h (displaced_debug_printf): New macro. Replace
2459 displaced debug prints throughout to use it.
2460 (displaced_debug_printf_1): New declaration.
2461 (displaced_step_dump_bytes): Return string, remove ui_file
2462 parameter, update all callers.
2463 * infrun.c (displaced_debug_printf_1): New function.
2464 (displaced_step_dump_bytes): Return string, remove ui_file
2467 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2469 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2471 2020-10-30 Tom Tromey <tromey@adacore.com>
2473 * Makefile.in (stamp-init): Depend on config.status.
2475 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2477 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2479 2020-10-30 Pedro Alves <pedro@palves.net>
2481 * thread.c (lookup_selected_frame): Move ...
2482 * frame.c (lookup_selected_frame): ... here.
2484 2020-10-30 Pedro Alves <pedro@palves.net>
2486 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2488 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2489 Use save_selected_frame. Save language as well.
2490 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2491 Use restore_selected_frame, and restore language as well.
2492 (selected_frame_id, selected_frame_level): New.
2493 (selected_frame): Update comments.
2494 (save_selected_frame, restore_selected_frame): New.
2495 (get_selected_frame): Use lookup_selected_frame.
2496 (get_selected_frame_if_set): Delete.
2497 (select_frame): Record selected_frame_level and selected_frame_id.
2498 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2500 (get_selected_frame): Make 'message' parameter optional.
2501 (get_selected_frame_if_set): Delete declaration.
2502 (select_frame): Update comments.
2503 (save_selected_frame, restore_selected_frame)
2504 (lookup_selected_frame): Declare.
2505 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2506 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2508 (save_infcall_control_state): Use save_selected_frame.
2509 (restore_selected_frame): Delete.
2510 (restore_infcall_control_state): Use restore_selected_frame.
2511 * stack.c (select_frame_command_core, frame_command_core): Use
2513 * thread.c (restore_selected_frame): Rename to ...
2514 (lookup_selected_frame): ... this and make extern. Select the
2515 current frame if the frame level is -1.
2516 (scoped_restore_current_thread::restore): Also restore the
2518 (scoped_restore_current_thread::~scoped_restore_current_thread):
2520 (scoped_restore_current_thread::scoped_restore_current_thread):
2521 Save the language as well. Use save_selected_frame.
2523 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2525 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2527 * gdbarch.h: Re-generate.
2529 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2531 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2533 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2535 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2537 * arch-utils.c (default_displaced_step_hw_singlestep):
2539 * arch-utils.h (default_displaced_step_hw_singlestep):
2541 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2543 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2545 * gdbarch.c: Re-generate.
2546 * gdbarch.h: Re-generate.
2547 * infrun.c (resume_1): Adjust.
2549 2020-10-29 Tom Tromey <tom@tromey.com>
2551 * progspace.c (program_space::~program_space): Don't call
2554 2020-10-29 Tom Tromey <tom@tromey.com>
2556 * exec.c (exec_target::close): Don't change current program
2559 2020-10-29 Tom Tromey <tom@tromey.com>
2561 * symfile.c (add_symbol_file_command): Update.
2562 * exec.c (program_space::add_target_sections): Rename.
2563 * symfile-mem.c (symbol_file_add_from_memory): Update.
2564 * progspace.h (struct program_space) <add_target_sections>:
2565 Declare new overload.
2566 * exec.h (add_target_sections_of_objfile): Don't declare.
2568 2020-10-29 Tom Tromey <tom@tromey.com>
2570 * solib.c (solib_map_sections): Update.
2571 * exec.c (program_space::add_target_sections): Now a method.
2572 (exec_file_attach): Update.
2573 * exec.h (add_target_sections): Don't declare.
2574 * progspace.h (struct program_space) <add_target_sections>:
2577 2020-10-29 Tom Tromey <tom@tromey.com>
2579 * progspace.h (struct program_space) <remove_target_sections>:
2581 * exec.c (program_space::remove_target_sections): Now a method.
2582 * exec.h (remove_target_sections): Don't declare.
2584 2020-10-29 Tom Tromey <tom@tromey.com>
2586 * inferior.c (delete_inferior): Update.
2587 * progspace.c (program_space::empty): Rename from
2588 program_space_empty_p. Return bool.
2589 * progspace.h (struct program_space) <empty>: New method.
2590 (program_space_empty_p): Don't declare.
2592 2020-10-29 Tom Tromey <tom@tromey.com>
2594 * progspace.c (program_space::~program_space): Don't call
2595 clear_program_space_solib_cache.
2596 (program_space::clear_solib_cache): Rename from
2598 * solib.c (handle_solib_event): Update.
2599 * progspace.h (struct program_space) <clear_solib_cache>: New
2601 (clear_program_space_solib_cache): Don't declare.
2603 2020-10-29 Tom Tromey <tom@tromey.com>
2605 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2606 * target.c (info_target_command): Update.
2607 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2608 (symbol_file_clear, reread_symbols): Update.
2609 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2610 * stabsread.c (scan_file_globals): Update.
2611 * solib.c (update_solib_list): Update.
2612 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2613 (svr4_fetch_objfile_link_map, enable_break)
2614 (svr4_relocate_main_executable)
2615 (svr4_iterate_over_objfiles_in_search_order): Update.
2616 * solib-frv.c (lm_base, enable_break)
2617 (frv_relocate_main_executable): Update.
2618 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2619 (frv_fetch_objfile_link_map): Update.
2620 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2621 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2622 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2623 * remote.c (remote_target::get_offsets): Update.
2624 (remote_target::start_remote)
2625 (extended_remote_target::post_attach): Update.
2626 * objfiles.c (entry_point_address_query): Update.
2627 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2628 * minsyms.c (get_symbol_leading_char): Update.
2629 * frame.c (inside_main_func): Update.
2630 * progspace.h (symfile_objfile): Remove macro.
2632 2020-10-29 Tom Tromey <tom@tromey.com>
2634 * exec.c (exec_file_attach): Update.
2635 * progspace.c (program_space::exec_close): Update.
2636 * progspace.h (struct program_space) <ebfd>: Now a
2638 <set_exec_bfd>: Change argument type.
2641 2020-10-29 Tom Tromey <tom@tromey.com>
2643 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2644 * symfile.c (reread_symbols): Update.
2645 * symfile-mem.c (add_symbol_file_from_memory_command)
2646 (add_vsyscall_page): Update.
2647 * source-cache.c (source_cache::get_plain_source_lines): Update.
2648 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2649 (svr4_current_sos_direct, svr4_exec_displacement)
2650 (svr4_relocate_main_executable): Update.
2651 (svr4_iterate_over_objfiles_in_search_order): Update.
2652 * solib-frv.c (enable_break2, enable_break): Update.
2653 * solib-dsbt.c (lm_base, enable_break): Update.
2654 * solib-darwin.c (find_program_interpreter)
2655 (darwin_solib_create_inferior_hook): Update.
2656 * sol-thread.c (rw_common, ps_pdmodel): Update.
2657 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2658 * remote.c (compare_sections_command)
2659 (remote_target::trace_set_readonly_regions): Update.
2660 * remote-sim.c (get_sim_inferior_data)
2661 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2662 (gdbsim_target_open, gdbsim_target::files_info): Update.
2663 * exec.h (exec_bfd): Remove macro.
2664 * progspace.c (initialize_progspace): Update.
2665 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2667 * nto-procfs.c (nto_procfs_target::post_attach)
2668 (nto_procfs_target::create_inferior): Update.
2669 * maint.c (maintenance_info_sections): Update.
2670 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2672 * infcmd.c (post_create_inferior): Update.
2673 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2674 (objfile_find_memory_regions): Update.
2675 * exec.c (validate_exec_file, exec_file_attach)
2676 (exec_read_partial_read_only, print_section_info): Update.
2677 * corelow.c (core_target_open): Update.
2678 * corefile.c (reopen_exec_file, validate_files): Update.
2679 * arm-tdep.c (gdb_print_insn_arm): Update.
2680 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2681 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2684 2020-10-29 Tom Tromey <tom@tromey.com>
2686 * progspace.h (current_target_sections): Remove macro.
2687 * solib-svr4.c (scan_dyntag): Update.
2688 * solib-dsbt.c (scan_dyntag): Update.
2689 * exec.c (exec_target::close): Update.
2690 (add_target_sections, add_target_sections_of_objfile)
2691 (remove_target_sections, exec_target::get_section_table)
2692 (exec_target::files_info, set_section_command)
2693 (exec_set_section_address, exec_target::has_memory)
2694 (exec_target::has_memory): Update.
2696 2020-10-29 Tom Tromey <tom@tromey.com>
2698 * source-cache.c (source_cache::get_plain_source_lines): Use
2699 current_program_space.
2700 * corefile.c (reopen_exec_file): Use current_program_space.
2701 * exec.c (exec_file_attach): Use current_program_space.
2702 * exec.h (exec_bfd_mtime): Remove.
2704 2020-10-29 Tom Tromey <tom@tromey.com>
2706 * gcore.c (default_gcore_mach): Remove.
2707 (create_gcore_bfd): Update.
2709 2020-10-29 Tom Tromey <tom@tromey.com>
2711 * progspace.c (program_space::exec_close): New method, from
2712 exec_close in exec.c.
2713 * exec.c (exec_close): Move to progspace.c.
2714 (exec_target::close, exec_file_attach): Update.
2715 * progspace.h (struct program_space) <exec_close>: Declare
2718 2020-10-29 Tom Tromey <tom@tromey.com>
2720 * progspace.h (struct program_space) <exec_filename>: Rename from
2721 pspace_exec_filename. Now a unique_xmalloc_ptr.
2722 * inferior.c (print_selected_inferior): Update.
2723 (print_inferior): Update.
2724 * mi/mi-main.c (print_one_inferior): Update.
2725 * exec.h (exec_filename): Remove macro.
2726 * corefile.c (get_exec_file): Update.
2727 * exec.c (exec_close): Update.
2728 (exec_file_attach): Update.
2729 * progspace.c (clone_program_space): Update.
2730 (print_program_space): Update.
2732 2020-10-29 Tom Tromey <tom@tromey.com>
2734 * target-section.h (struct target_section): Add constructor.
2735 * exec.c (build_section_table, add_target_sections_of_objfile):
2737 * corelow.c (core_target::build_file_mappings): Update.
2739 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2742 * inferior.c (detach_inferior_command): Restore the current thread.
2743 (kill_inferior_command): Ditto.
2745 2020-10-28 Tom de Vries <tdevries@suse.de>
2748 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2749 map, check it in the "best match" loop.
2751 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2753 * m32c-tdep.c: Remove unused includes.
2755 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2757 * xtensa-tdep.c: Remove includes.
2759 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2761 * breakpoint.c (struct condition_command_opts): New struct.
2762 (condition_command_option_defs): New static global.
2763 (make_condition_command_options_def_group): New function.
2764 (condition_completer): Update to consider the '-force' flag.
2765 (condition_command): Use gdb::option for the '-force' flag.
2767 2020-10-27 Tom de Vries <tdevries@suse.de>
2769 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2770 symbols in section check.
2772 2020-10-27 Tom de Vries <tdevries@suse.de>
2774 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2776 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2778 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2779 * breakpoint.c: Update the help text of the 'condition' and 'break'
2781 (set_breakpoint_condition): Take a new bool parameter
2782 to control whether condition definition should be forced even when
2783 the condition expression is invalid in all of the current locations.
2784 (condition_command): Update the call to 'set_breakpoint_condition'.
2785 (find_condition_and_thread): Take the "-force-condition" flag into
2787 * linespec.c (linespec_keywords): Add "-force-condition" as an
2789 (FORCE_KEYWORD_INDEX): New #define.
2790 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2792 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2793 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2794 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2795 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2797 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2799 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2800 * breakpoint.c (set_breakpoint_location_condition): New function.
2801 (set_breakpoint_condition): Disable a breakpoint location if parsing
2802 the condition string gives an error.
2803 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2804 (build_target_condition_list): Ditto.
2805 (build_target_command_list): Ditto.
2806 (build_bpstat_chain): Ditto.
2807 (print_one_breakpoint_location): Ditto.
2808 (print_one_breakpoint): Ditto.
2809 (breakpoint_1): Ditto.
2810 (bp_location::bp_location): Ditto.
2811 (locations_are_equal): Ditto.
2812 (update_breakpoint_locations): Ditto.
2813 (enable_disable_bp_num_loc): Ditto.
2814 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2815 (find_condition_and_thread_for_sals): New static function.
2816 (create_breakpoint): Call find_condition_and_thread_for_sals.
2817 (location_to_sals): Call find_condition_and_thread_for_sals instead
2818 of find_condition_and_thread.
2820 2020-10-26 Tom de Vries <tdevries@suse.de>
2822 * dwarf2/read.c (process_full_comp_unit): Call
2823 dwarf2_find_base_address.
2825 2020-10-26 Tom Tromey <tromey@adacore.com>
2827 * gdbtypes.c (create_range_type): Revert previous patch. Add
2830 2020-10-26 Pedro Alves <pedro@palves.net>
2832 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2833 (my_waitpid): Use gdb::handle_eintr.
2835 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2837 * acinclude.m4: Update ptrace.m4 path.
2838 * ptrace.m4: Moved to gdbsupport.
2840 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2842 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2843 instead of target_gdbarch.
2845 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2847 * jit.c (jit_reader_load_command): Pass current inferior.
2848 (jit_inferior_init): Change parameter type to inferior, use it.
2849 (jit_inferior_created): Remove.
2850 (jit_inferior_created_hook): Pass inferior parameter down.
2851 (_initialize_jit): Use jit_inferior_created_hook instead of
2852 jit_inferior_created.
2853 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2854 * infrun.c (follow_exec): Pass inferior to
2855 jit_inferior_created_hook.
2857 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2859 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2860 parameter and use it.
2861 (thread_db_inferior_created): Pass inferior argument.
2863 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2865 * aix-thread.c (aix_thread_inferior_created): Add inferior
2867 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2868 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2869 * jit.c (jit_inferior_created): Likewise.
2870 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2871 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2872 * observable.h (inferior_created): Likewise.
2873 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2874 * symfile-mem.c (add_vsyscall_page): Likewise.
2875 * infcmd.c (post_create_inferior): Pass inferior argument.
2877 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2881 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2883 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2884 to ada_check_typedef.
2886 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2888 * f-exp.y (f_parse): Rename to...
2889 (f_language::parser): ...this.
2890 * f-lang.c (f_get_encoding): Rename to...
2891 (f_language::get_encoding): ...this.
2892 (f_op_print_tab): Rename to...
2893 (f_language::op_print_tab): ...this.
2894 (exp_descriptor_f): Rename to...
2895 (f_language::exp_descriptor_tab): ...this.
2896 (class f_language): Moved to f-lang.h.
2897 (f_language::language_arch_info): New function, moved out of class
2899 (f_language::search_name_hash): Likewise.
2900 (f_language::lookup_symbol_nonlocal): Likewise.
2901 (f_language::get_symbol_name_matcher_inner): Likewise.
2902 * f-lang.h: Add 'valprint.h' include.
2903 (class f_language): Moved here from f-lang.c.
2904 * f-typeprint.c (f_type_print_args): Delete commented out
2906 (f_print_typedef): Rename to...
2907 (f_language::print_typedef): ...this.
2908 (f_print_type): Rename to...
2909 (f_language::print_type): ...this.
2910 (f_type_print_varspec_prefix): Delete declaration and rename to...
2911 (f_language::f_type_print_varspec_prefix): ...this.
2912 (f_type_print_varspec_suffix): Delete declaration and rename to...
2913 (f_language::f_type_print_varspec_suffix): ...this.
2914 (f_type_print_base): Delete declaration and rename to...
2915 (f_language::f_type_print_base): ...this.
2916 * f-valprint.c (f_value_print_inner): Rename to...
2917 (f_language::value_print_inner): ...this.
2918 * parse.c: Delete 'f-lang.h' include.
2920 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2922 * language.h (language_defn::print_type): Add variable names in
2923 declaration, and update header comment.
2925 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2927 * ada-lang.c (ada_language::demangle): Rename to...
2928 (ada_language::demangle_symbol): ...this.
2929 * c-lang.c (cplus_language::demangle): Rename to...
2930 (cplus_language::demangle_symbol): ...this.
2931 * d-lang.c (d_language::demangle): Rename to...
2932 (d_language::demangle_symbol): ...this.
2933 * f-lang.c (f_language::demangle): Rename to...
2934 (f_language::demangle_symbol): ...this.
2935 * go-lang.c (go_language::demangle): Rename to...
2936 (go_language::demangle_symbol): ...this.
2937 * language.c (language_demangle): Update call to demangle_symbol.
2938 (auto_or_unknown_language::demangle): Rename to...
2939 (auto_or_unknown_language::demangle_symbol): ...this.
2940 * language.h (language_defn::demangle): Rename to...
2941 (language_defn::demangle_symbol): ...this.
2942 * objc-lang.c (objc_language::demangle): Rename to...
2943 (objc_language::demangle_symbol): ...this.
2944 * rust-lang.c (rust_language::demangle): Rename to...
2945 (rust_language::demangle_symbol): ...this.
2947 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2949 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2950 (iterate_over_file_blocks): Replace use of macro with the macros
2953 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2955 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2956 * valprint.c (maybe_print_array_index): Replace use of macro with
2957 the macros definition.
2959 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2961 * ada-lang.c (ada_language::print_array_index): Call value_print
2963 * language.c (language_defn::print_array_index): Likewise.
2964 * language.h (LA_VALUE_PRINT): Delete.
2965 * valprint.c (value_print): Call value_print on the
2966 current_language directly.
2968 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2970 * language.h (LA_PRINT_TYPEDEF): Delete.
2971 * typeprint.c (typedef_print): Call print_typedef directly on the
2972 current_language object.
2974 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2976 * m2-exp.y (m2_parse): Rename to...
2977 (m2_language::parser): ...this. Update function signature.
2978 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2979 (m2_op_print): Rename to...
2980 (m2_language::op_print_tab): ...this, and make const.
2981 (exp_descriptor_modula2): Rename to...
2982 (m2_language::exp_descriptor_modula2): ...this.
2983 (class m2_language): Move to m2-lang.h.
2984 (m2_language::language_arch_info): New function, moved out of
2986 (m2_language::printchar): New function, body from m2_printchar.
2987 (m2_language::printstr): New function, moved out of class
2989 (m2_language::emitchar): Likewise.
2990 * m2-lang.h (m2_parse): Delete declaration.
2991 (m2_print_typedef): Delete declaration.
2992 (m2_value_print_inner): Delete declaration.
2993 (class m2_language): Class declaration moved from m2-lang.c,
2994 larger functions are left in m2-lang.c.
2995 * m2-typeprint.c (m2_print_typedef): Rename to...
2996 (m2_language::print_typedef): ...this, and update function
2998 * m2-valprint.c (m2_value_print_inner): Rename to...
2999 (m2_language::value_print_inner): ...this, replace use of
3000 LA_PRINT_STRING with a direct call to printstr member function,
3001 and update recursive call.
3003 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3005 * language.c (default_is_string_type_p): Delete, implementation
3006 moved into auto_or_unknown_language::is_string_type_p.
3007 (unk_op_print_tab): Moved into
3008 auto_or_unknown_language::opcode_print_table.
3009 (unknown_language_arch_info): Delete, implementation moved into
3010 auto_or_unknown_language::language_arch_info.
3011 (class auto_or_unknown_language): New class, member functions
3012 copied from unknown_language class, with some updates.
3013 (class unknown_language): Most member functions moved into
3014 auto_or_unknown_language class. Inherit from
3015 auto_or_unknown_language class.
3016 (class auto_language): Inherit from auto_or_unknown_language.
3017 Delete most member functions.
3019 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
3021 * stabsread.c (read_member_functions): Remove gdb_assert.
3023 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
3025 * gdbtypes.c (init_complex_type): Check target type name.
3027 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
3029 * target-debug.h (target_debug_print_struct_target_ops_p):
3031 (target_debug_print_async_callback_ftype_p): Remove.
3032 (target_debug_print_struct_trace_state_variable_p): Remove.
3033 (target_debug_print_struct_traceframe_info_p): Remove.
3034 (target_debug_print_VEC__btrace_block_s__pp): Remove.
3035 (target_debug_print_enum_btrace_format): Remove.
3036 (target_debug_print_enum_info_proc_what): Remove.
3037 (target_debug_print_thread_info_pp): Remove.
3039 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
3041 * target.h (struct target_ops) <make_corefile_notes>:
3042 Change return type to unique pointer.
3043 * target.c (dummy_make_corefile_notes): Likewise.
3044 * exec.c (struct exec_target) <make_corefile_notes>:
3046 (exec_target::make_corefile_notes): Likewise.
3047 * procfs.c (class procfs_target) <make_corefile_notes>:
3049 (procfs_do_thread_registers): Adjust to unique pointer.
3050 (struct procfs_corefile_thread_data): Add constructor.
3051 <note_data>: Change type to unique pointer.
3052 (procfs_corefile_thread_callback): Adjust to unique pointer.
3053 (procfs_target::make_corefile_notes): Change return type to
3055 * target-delegates.c: Re-generate.
3056 * gcore.c (write_gcore_file_1): Adjust.
3057 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
3060 2020-10-22 Tom de Vries <tdevries@suse.de>
3062 * block.c (find_block_in_blockvector): Make sure the returned block
3065 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
3068 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
3070 (load_cu): Pass existing CU.
3071 (process_imported_unit_die): Likewise.
3072 (follow_die_offset): Likewise.
3074 2020-10-22 Luis Machado <luis.machado@linaro.org>
3076 * corelow.c (core_target::xfer_partial): Also check for an empty
3077 m_core_unavailable_mappings vector.
3079 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3081 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
3082 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
3083 * f-exp.y (arglist): Allow for a series of subranges.
3084 (subrange): Add cases for subranges with strides.
3085 * f-lang.c (value_f90_subarray): Catch use of array strides and
3087 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
3089 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3091 * expprint.c (print_subexp_standard): Change enum range_type to
3092 range_flag and rename variables to match.
3093 (dump_subexp_body_standard): Likewise.
3094 * expression.h (enum range_type): Rename to...
3095 (enum range_flag): ...this.
3096 (range_types): Rename to...
3097 (range_flags): ...this.
3098 * f-lang.c (value_f90_subarray): Change enum range_type to
3099 range_flag and rename variables to match.
3100 * parse.c (operator_length_standard): Likewise.
3101 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
3102 range_type to range_flag.
3103 * rust-lang.c (rust_evaluate_funcall): Likewise.
3104 (rust_range): Likewise.
3105 (rust_compute_range): Likewise.
3106 (rust_subscript): Likewise.
3108 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3110 * expprint.c (print_subexp_standard): Update to reflect changes to
3112 (dump_subexp_body_standard): Likewise.
3113 * expression.h (enum range_type): Convert to a bit field enum, and
3114 make the enum unsigned.
3115 * f-exp.y (subrange): Update to reflect changes to enum
3117 * f-lang.c (value_f90_subarray): Likewise.
3118 * parse.c (operator_length_standard): Likewise.
3119 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
3120 * rust-lang.c (rust_range): Likewise.
3121 (rust_compute_range): Likewise.
3122 (rust_subscript): Likewise.
3124 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
3126 * infrun.c (displaced_step_in_progress_thread): Fix comment.
3127 (displaced_step_in_progress): Fix comment.
3129 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3131 * gdbarch.sh (make_corefile_notes): Return unique pointer.
3132 * gdbarch.c: Re-generate.
3133 * gdbarch.h: Re-generate.
3134 * gcore.c (write_gcore_file_1): Adjust.
3135 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
3137 <note_data>: Change type to unique pointer.
3138 <abort_iteration>: Change type to bool.
3139 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
3140 (fbsd_collect_thread_registers): Return void, adjust.
3141 (struct fbsd_corefile_thread_data): Add construtor.
3142 <note_data>: Change type to unique pointer.
3143 (fbsd_corefile_thread): Adjust.
3144 (fbsd_make_corefile_notes): Return unique pointer, adjust.
3145 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
3146 to unique pointer, adjust.
3147 (struct linux_collect_regset_section_cb_data): Add constructor.
3148 <note_data>: Change type to unique pointer.
3149 <abort_iteration>: Change type to bool.
3150 (linux_collect_thread_registers): Return void, adjust.
3151 (struct linux_corefile_thread_data): Add constructor.
3152 <note_data>: Change type to unique pointer.
3153 (linux_corefile_thread): Adjust.
3154 (linux_make_corefile_notes): Return unique pointer, adjust.
3156 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3158 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
3159 * gdbarch.c: Re-generate.
3160 * gdbarch.h: Re-generate.
3161 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
3163 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
3165 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
3166 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
3167 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
3168 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
3170 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3172 * gdbarch.sh: Make generated predicates return bool.
3173 * gdbarch.c: Re-generate.
3174 * gdbarch.h: Re-generate.
3176 2020-10-20 Tom Tromey <tom@tromey.com>
3178 * varobj-iter.h (struct varobj_item): Remove typedef.
3180 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3182 * infrun.c (currently_stepping): Change int to bool
3183 (maybe_software_singlestep): Likewise.
3184 (show_stop_on_solib_events): Likewise.
3185 (stepping_past_nonsteppable_watchpoint): Likewise.
3186 (displaced_step_in_progress_any_inferior): Likewise.
3187 (displaced_step_in_progress_thread): Likewise.
3188 (keep_going_stepped_thread): Likewise.
3189 (thread_still_needs_step_over): Likewise.
3190 (start_step_over): Likewise.
3191 (do_target_resume): Likewise.
3192 (resume_1): Likewise.
3193 (clear_proceed_status): Likewise.
3194 (thread_still_needs_step_over_bp): Likewise.
3195 (proceed): Likewise.
3196 (switch_back_to_stepped_thread): Likewise.
3197 (adjust_pc_after_break): Likewise.
3198 (stepped_in_from): Likewise.
3199 (handle_stop_requested): Likewise.
3200 (handle_syscall_event): Likewise.
3201 (handle_no_resumed): Likewise.
3202 (handle_inferior_event): Likewise.
3203 (finish_step_over): Likewise.
3204 (handle_signal_stop): Likewise.
3205 (process_event_stop_test): Likewise.
3207 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3209 * infrun.c (get_displaced_stepping_state): Fix comment.
3211 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
3213 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
3215 2020-10-19 Tom Tromey <tromey@adacore.com>
3218 * tui/tui-winsource.h (struct tui_source_window_base)
3219 <refresh_window>: Rename from refresh_pad.
3220 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3221 Rename from refresh_pad.
3222 (tui_source_window_base::show_source_content)
3223 (tui_source_window_base::do_scroll_horizontal): Update.
3225 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3227 * thread.c (_initialize_thread): Fine-tune the help text of
3230 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3232 * frame.c: Remove the unused 'uinteger_option_def' type alias.
3234 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
3236 * breakpoint.c (handle_jit_event): Add an argument, change how
3237 `jit_event_handler` is called.
3239 2020-10-17 Tom Tromey <tom@tromey.com>
3241 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
3242 (scan_xcoff_symtab): Update.
3243 * psymtab.h (class psymtab_storage) <global_psymbols,
3244 static_psymbols, current_global_psymbols,
3245 current_static_psymbols>: Remove.
3246 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3247 (match_partial_symbol, lookup_partial_symbol): Update.
3248 (print_partial_symbols): Change parameters.
3249 (dump_psymtab, recursively_search_psymtabs)
3250 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3251 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3253 (end_psymtab_common): Simplify.
3254 (append_psymbol_to_list): Change parameters.
3255 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3256 (init_psymbol_list): Simplify.
3257 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3258 * psympriv.h (struct partial_symtab) <empty>: New method.
3259 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3261 <global_psymbols, static_psymbols>: New members.
3262 <add_psymbol>: New methods.
3263 (add_psymbol_to_list): Don't declare.
3264 (psymbol_placement): Move earlier.
3265 * mdebugread.c (parse_partial_symbols): Update.
3266 (handle_psymbol_enumerators): Change parameters.
3267 (mdebug_expand_psymtab): Update.
3268 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3269 (add_partial_symbol): Update.
3270 * dwarf2/index-write.c (write_psymbols): Change parameters.
3271 (write_one_signatured_type): Update.
3272 (recursively_count_psymbols): Update.
3273 (recursively_write_psymbols): Update.
3274 (class debug_names) <recursively_write_psymbols>: Update.
3275 <write_psymbols>: Change parameters.
3276 <write_one_signatured_type>: Update.
3277 * dbxread.c (read_dbx_symtab): Update.
3278 (dbx_end_psymtab): Use partial_symtab::empty.
3279 * ctfread.c (struct ctf_context) <pst>: New member.
3280 (create_partial_symtab): Set it.
3281 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3282 (scan_partial_symbols): Use the psymtab's context. Update.
3284 2020-10-17 Tom Tromey <tom@tromey.com>
3286 * valprint.c (generic_value_print): Remove comment.
3287 * m2-valprint.c (m2_value_print_inner): Remove comment.
3288 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3291 2020-10-17 Tom de Vries <tdevries@suse.de>
3294 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3297 2020-10-14 Tom de Vries <tdevries@suse.de>
3300 * solib.c (solib_contains_address_p): Handle
3301 'solib->sections == nullptr'.
3303 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3306 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3307 target can't do async.
3308 * target.c (target_wait): Assert that we don't pass
3309 TARGET_WNOHANG to a target that can't async.
3311 2020-10-13 Kamil Rytarowski <n54@gmx.com>
3313 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3314 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3315 * alpha-bsd-nat.c: Adjust include.
3316 * alpha-bsd-tdep.h: Adjust comment.
3317 * alpha-nbsd-tdep.c: Rename to ...
3318 * alpha-netbsd-tdep.c: ... this, adjust include.
3319 * amd64-nbsd-nat.c: Rename to ...
3320 * amd64-netbsd-nat.c: ... this, adjust include.
3321 * amd64-nbsd-tdep.c: Rename to ...
3322 * amd64-netbsd-tdep.c: ... this, adjust include.
3323 * amd64-tdep.h: Adjust include.
3324 * arm-nbsd-nat.c: Rename to ...
3325 * arm-netbsd-nat.c: ... this, adjust include.
3326 * arm-nbsd-tdep.c: Rename to ...
3327 * arm-netbsd-tdep.c: ... this, adjust include.
3328 * arm-nbsd-tdep.h: Rename to ...
3329 * arm-netbsd-tdep.h: ... this, adjust include.
3330 * configure.nat: Adjust file lists.
3331 * configure.tgt: Likewise.
3332 * hppa-nbsd-nat.c: Rename to ...
3333 * hppa-netbsd-nat.c: ... this, adjust include.
3334 * hppa-nbsd-tdep.c: Rename to ...
3335 * hppa-netbsd-tdep.c: ... this, adjust include.
3336 * i386-nbsd-nat.c: Rename to ...
3337 * i386-netbsd-nat.c: ... this, adjust include.
3338 * i386-nbsd-tdep.c: Rename to ...
3339 * i386-netbsd-tdep.c: ... this, adjust include.
3340 * m68k-bsd-nat.c: Adjust include.
3341 * mips-nbsd-nat.c: Rename to ...
3342 * mips-netbsd-nat.c: ... this, adjust include.
3343 * mips-nbsd-tdep.c: Rename to ...
3344 * mips-netbsd-tdep.c: ... this, adjust include.
3345 * mips-nbsd-tdep.h: Rename to ...
3346 * mips-netbsd-tdep.h: ... this.
3347 * nbsd-nat.c: Rename to ...
3348 * netbsd-nat.c: ... this, adjust include.
3349 * nbsd-nat.h: Rename to ...
3350 * netbsd-nat.h: ... this, adjust include.
3351 * nbsd-tdep.c: Rename to ...
3352 * netbsd-tdep.c: ... this, adjust include.
3353 * nbsd-tdep.h: Rename to ...
3354 * netbsd-tdep.h: ... this.
3355 * ppc-nbsd-nat.c: Rename to ...
3356 * ppc-netbsd-nat.c: ... this, adjust include.
3357 * ppc-nbsd-tdep.c: Rename to ...
3358 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3359 * ppc-nbsd-tdep.h: Rename to ...
3360 * ppc-netbsd-tdep.h: ... this.
3361 * sh-nbsd-nat.c: Rename to ...
3362 * sh-netbsd-nat.c: ... this, adjust include.
3363 * sh-nbsd-tdep.c: Rename to ...
3364 * sh-netbsd-tdep.c: ... this, adjust include.
3365 * sparc-nbsd-nat.c: Rename to ...
3366 * sparc-netbsd-nat.c: ... this.
3367 * sparc-nbsd-tdep.c: Rename to ...
3368 * sparc-netbsd-tdep.c: ... this, adjust include.
3369 * sparc64-nbsd-nat.c: Rename to ...
3370 * sparc64-netbsd-nat.c: ... this.
3371 * sparc64-nbsd-tdep.c: Rename to ...
3372 * sparc64-netbsd-tdep.c: ... this, adjust include.
3373 * sparc64-tdep.h: Adjust comment.
3374 * vax-bsd-nat.c: Adjust include.
3375 * vax-nbsd-tdep.c: Rename to ...
3376 * vax-netbsd-tdep.c: ... this, adjust include.
3378 2020-10-12 Tom Tromey <tom@tromey.com>
3380 * target.h (struct target_ops) <get_section_table>: Update.
3381 (target_get_section_table): Update.
3382 * target.c (target_get_section_table, target_section_by_addr)
3383 (memory_xfer_partial_1): Update.
3384 * target-section.h (target_section_table): Now an alias.
3385 * target-delegates.c: Rebuild.
3386 * target-debug.h (target_debug_print_target_section_table_p):
3387 Rename from target_debug_print_struct_target_section_table_p.
3388 * symfile.c (build_section_addr_info_from_section_table): Update.
3389 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3390 * solib-svr4.c (scan_dyntag): Update.
3391 * solib-dsbt.c (scan_dyntag): Update.
3392 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3394 * record-full.c (record_full_core_target::xfer_partial): Update.
3395 * progspace.h (struct program_space) <target_sections>: Update.
3396 * exec.h (print_section_info): Update.
3397 * exec.c (exec_target::close, build_section_table)
3398 (add_target_sections, add_target_sections_of_objfile)
3399 (remove_target_sections, exec_on_vfork)
3400 (section_table_available_memory)
3401 (section_table_xfer_memory_partial)
3402 (exec_target::get_section_table, exec_target::xfer_partial)
3403 (print_section_info, set_section_command)
3404 (exec_set_section_address, exec_target::has_memory): Update.
3405 * corelow.c (core_target::build_file_mappings)
3406 (core_target::xfer_partial, core_target::info_proc_mappings)
3407 (core_target::info_proc_mappings): Update.
3408 * bfd-target.c (class target_bfd): Update
3410 2020-10-12 Tom Tromey <tom@tromey.com>
3412 * progspace.c (program_space::~program_space): Don't call
3413 clear_section_table.
3414 * exec.h (clear_section_table): Don't declare.
3415 * exec.c (exec_target::close): Update.
3416 (clear_section_table): Remove.
3418 2020-10-12 Tom Tromey <tom@tromey.com>
3420 * exec.c (add_target_sections_of_objfile): Simplify.
3422 2020-10-12 Tom Tromey <tom@tromey.com>
3424 * solib.c (solib_map_sections): Update.
3425 * record-full.c (record_full_core_open_1): Update.
3426 * exec.h (build_section_table): Return a target_section_table.
3427 * exec.c (exec_file_attach): Update.
3428 (build_section_table): Return a target_section_table.
3429 * corelow.c (core_target::core_target): Update.
3430 * bfd-target.c (target_bfd::target_bfd): Update.
3432 2020-10-12 Tom Tromey <tom@tromey.com>
3434 * target.c (target_section_by_addr, memory_xfer_partial_1):
3436 * target-section.h (struct target_section_table): Use
3438 * symfile.h (build_section_addr_info_from_section_table): Take a
3439 target_section_table.
3440 * symfile.c (build_section_addr_info_from_section_table): Take a
3441 target_section_table.
3442 * solist.h (struct so_list) <sections>: Change type.
3443 <sections_end>: Remove.
3444 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3445 (solib_contains_address_p): Update.
3446 * solib-svr4.c (scan_dyntag): Update.
3447 * solib-dsbt.c (scan_dyntag): Update.
3448 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3450 * record-full.c (record_full_core_start, record_full_core_end):
3452 (record_full_core_sections): New global.
3453 (record_full_core_open_1, record_full_core_target::xfer_partial):
3455 * exec.h (build_section_table, section_table_xfer_memory_partial)
3456 (add_target_sections): Take a target_section_table.
3457 * exec.c (exec_file_attach, clear_section_table): Update.
3458 (resize_section_table): Remove.
3459 (build_section_table, add_target_sections): Take a
3460 target_section_table.
3461 (add_target_sections_of_objfile, remove_target_sections)
3462 (exec_on_vfork): Update.
3463 (section_table_available_memory): Take a target_section_table.
3464 (section_table_read_available_memory): Update.
3465 (section_table_xfer_memory_partial): Take a target_section_table.
3466 (print_section_info, set_section_command)
3467 (exec_set_section_address, exec_target::has_memory): Update.
3468 * corelow.c (class core_target) <m_core_section_table,
3469 m_core_file_mappings>: Remove braces.
3470 <~core_target>: Remove.
3471 (core_target::core_target): Update.
3472 (core_target::~core_target): Remove.
3473 (core_target::build_file_mappings)
3474 (core_target::xfer_memory_via_mappings)
3475 (core_target::xfer_partial, core_target::info_proc_mappings):
3477 * bfd-target.c (target_bfd::xfer_partial): Update.
3478 (target_bfd::target_bfd): Update.
3479 (target_bfd::~target_bfd): Remove.
3481 2020-10-12 Tom Tromey <tom@tromey.com>
3483 * target.h (struct target_section, struct target_section_table):
3484 Move to target-section.h.
3485 * target-section.h: New file.
3487 2020-10-12 Pedro Alves <pedro@palves.net>
3490 * valops.c (struct struct_field_searcher): New.
3491 (update_search_result): Rename to ...
3492 (struct_field_searcher::update_result): ... this. Simplify
3493 prototype. Record all found fields.
3494 (do_search_struct_field): Rename to ...
3495 (struct_field_searcher::search): ... this. Simplify prototype.
3496 Maintain stack of visited baseclass path. Call update_result for
3497 fields too. Keep searching fields in baseclasses instead of
3498 stopping at the first found field.
3499 (search_struct_field): Use struct_field_searcher. When looking
3500 for fields, report ambiguous access attempts.
3502 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3504 * frame.c (inside_main_func): Check full symbols as well as
3507 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3509 * ada-lang.c (advance_wild_match): Rewrite the function's
3510 description. Change the type of target0, t0 and t1 to char.
3512 2020-10-09 Tom Tromey <tromey@adacore.com>
3514 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3516 2020-10-09 Tom Tromey <tromey@adacore.com>
3518 * ada-lang.h (ada_encode): Return std::string.
3519 * ada-lang.c (ada_encode_1): Return std::string.
3520 (ada_encode): Likewise.
3521 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3523 * ada-exp.y (block_lookup, write_var_or_type): Update.
3525 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3528 * printcmd.c (print_formatted): Handle void results as
3531 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3533 * arch/aarch32.c (aarch32_create_target_description): Release the
3534 target_desc_up as late as possible.
3535 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3536 * arch/amd64.c (amd64_create_target_description): Likewise.
3537 * arch/arc.c (arc_create_target_description): Return a
3538 target_desc_up, don't release it.
3539 * arch/arc.h (arc_create_target_description): Update declaration.
3540 (arc_lookup_target_description): Move target_desc_up into the
3541 cache, and return a borrowed pointer.
3542 * arch/arm.c (arm_create_target_description): Release the
3543 target_desc_up as late as possible.
3544 * arch/i386.c (i386_create_target_description): Likewise.
3545 * arch/riscv.h (riscv_create_target_description): Update
3546 declaration to match definition.
3547 * arch/tic6x.c (tic6x_create_target_description): Release the
3548 target_desc_up as late as possible.
3550 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3552 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3553 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3555 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3557 * source.c (directory_command): Notify observers that "directories"
3558 parameter has changed.
3560 2020-10-08 Tom Tromey <tom@tromey.com>
3562 * cli/cli-cmds.c (print_disassembly): Style function name and
3563 addresses. Add _() wrappers.
3565 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3567 * NEWS: Mention ARC support in GDBserver.
3569 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3571 * arch/aarch32.c (aarch32_create_target_description): Release
3572 unique_ptr returned from allocate_target_description.
3573 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3574 * arch/amd64.c (amd64_create_target_description): Likewise.
3575 * arch/arc.c (arc_create_target_description): Likewise.
3576 * arch/arm.c (arm_create_target_description): Likewise.
3577 * arch/i386.c (i386_create_target_description): Likewise.
3578 * arch/riscv.c (riscv_create_target_description): Update return
3579 type. Handle allocate_target_description returning a unique_ptr.
3580 (riscv_lookup_target_description): Update to handle unique_ptr.
3581 * arch/tic6x.c (tic6x_create_target_description): Release
3582 unique_ptr returned from allocate_target_description.
3583 * features/microblaze-with-stack-protect.c: Regenerate.
3584 * features/microblaze.c: Regenerate.
3585 * features/mips-dsp-linux.c: Regenerate.
3586 * features/mips-linux.c: Regenerate.
3587 * features/mips64-dsp-linux.c: Regenerate.
3588 * features/mips64-linux.c: Regenerate.
3589 * features/nds32.c: Regenerate.
3590 * features/nios2.c: Regenerate.
3591 * features/or1k.c: Regenerate.
3592 * features/rs6000/powerpc-32.c: Regenerate.
3593 * features/rs6000/powerpc-32l.c: Regenerate.
3594 * features/rs6000/powerpc-403.c: Regenerate.
3595 * features/rs6000/powerpc-403gc.c: Regenerate.
3596 * features/rs6000/powerpc-405.c: Regenerate.
3597 * features/rs6000/powerpc-505.c: Regenerate.
3598 * features/rs6000/powerpc-601.c: Regenerate.
3599 * features/rs6000/powerpc-602.c: Regenerate.
3600 * features/rs6000/powerpc-603.c: Regenerate.
3601 * features/rs6000/powerpc-604.c: Regenerate.
3602 * features/rs6000/powerpc-64.c: Regenerate.
3603 * features/rs6000/powerpc-64l.c: Regenerate.
3604 * features/rs6000/powerpc-7400.c: Regenerate.
3605 * features/rs6000/powerpc-750.c: Regenerate.
3606 * features/rs6000/powerpc-860.c: Regenerate.
3607 * features/rs6000/powerpc-altivec32.c: Regenerate.
3608 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3609 * features/rs6000/powerpc-altivec64.c: Regenerate.
3610 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3611 * features/rs6000/powerpc-e500.c: Regenerate.
3612 * features/rs6000/powerpc-e500l.c: Regenerate.
3613 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3614 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3615 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3616 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3617 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3618 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3619 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3620 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3621 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3622 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3623 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3624 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3625 * features/rs6000/powerpc-vsx32.c: Regenerate.
3626 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3627 * features/rs6000/powerpc-vsx64.c: Regenerate.
3628 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3629 * features/rs6000/rs6000.c: Regenerate.
3630 * features/rx.c: Regenerate.
3631 * features/s390-gs-linux64.c: Regenerate.
3632 * features/s390-linux32.c: Regenerate.
3633 * features/s390-linux32v1.c: Regenerate.
3634 * features/s390-linux32v2.c: Regenerate.
3635 * features/s390-linux64.c: Regenerate.
3636 * features/s390-linux64v1.c: Regenerate.
3637 * features/s390-linux64v2.c: Regenerate.
3638 * features/s390-te-linux64.c: Regenerate.
3639 * features/s390-tevx-linux64.c: Regenerate.
3640 * features/s390-vx-linux64.c: Regenerate.
3641 * features/s390x-gs-linux64.c: Regenerate.
3642 * features/s390x-linux64.c: Regenerate.
3643 * features/s390x-linux64v1.c: Regenerate.
3644 * features/s390x-linux64v2.c: Regenerate.
3645 * features/s390x-te-linux64.c: Regenerate.
3646 * features/s390x-tevx-linux64.c: Regenerate.
3647 * features/s390x-vx-linux64.c: Regenerate.
3648 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3649 from allocate_target_description.
3650 * target-descriptions.c (allocate_target_description): Update
3652 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3653 allocate_target_description.
3655 2020-10-07 Tom Tromey <tromey@adacore.com>
3657 * unittests/search-memory-selftests.c: New file.
3658 * Makefile.in (SELFTESTS_SRCS): Add
3659 unittests/search-memory-selftests.c.
3661 2020-10-07 Tom Tromey <tromey@adacore.com>
3664 * findcmd.c (_initialize_mem_search): Mention that the range is
3667 2020-10-07 Tom Tromey <tromey@adacore.com>
3669 * target.h (simple_search_memory): Don't declare.
3670 * target.c (simple_search_memory): Move to gdbsupport.
3671 (default_search_memory): Update.
3672 * remote.c (remote_target::search_memory): Update.
3674 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3676 * Makefile.in (COMPILE): Add CXXFLAGS.
3677 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3678 (check-headers): Add CXXFLAGS.
3680 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3682 * arc-linux-tdep.h: New file.
3683 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3684 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3685 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3686 arc_linux_gregset, arc_linux_v2_regset,
3687 arc_linux_iterate_over_regset_sections,
3688 arc_linux_core_read_description): Implement.
3689 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3690 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3691 (arc_gdbarch_features_create): Add.
3692 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3694 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3696 * arch/arc.h: Rename "arc_gdbarch_features" to
3697 "arc_arch_features".
3698 * arc-tdep.h: Likewise.
3699 * arc-tdep.c: Likewise.
3701 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3703 * infcmd.c (attach_command): Remove the redundant call to
3704 `clear_proceed_status`.
3706 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3708 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3710 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3712 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3713 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3714 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3716 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3718 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3719 (_initialize_break_catch_sig): Don't allocate array.
3721 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3723 * symtab.c (find_pc_line): Return unmapped addresses when the
3724 requested address is also unmapped.
3726 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3728 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3731 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3733 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3734 type::is_vector instead of TYPE_VECTOR.
3736 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3738 * auto-load.c (auto_load_objfile_script_1): Don't use
3739 debugfile_holder as temporary variable when stripping drive
3742 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3744 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3745 Add TYPE_CODE_COMPLEX.
3746 (amd64_windows_return_value): Fix types returned via XMM0.
3748 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3750 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3751 AArch64/ARM maintainers.
3753 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3755 * NEWS: Mention set/show debug event-loop.
3757 2020-10-02 Tom Tromey <tromey@adacore.com>
3759 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3762 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3764 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3765 * procfs.c (procfs_inferior_created): Remove.
3766 (_initialize_procfs): Don't register procfs_inferior_created.
3768 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3770 * async-event.c (invoke_async_signal_handlers): Add debug
3772 (check_async_event_handlers): Likewise.
3773 * event-top.c (show_debug_event_loop): New function.
3774 (_initialize_event_top): Register "set debug event-loop"
3777 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3779 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3781 * infrun.c: Include gdbsupport/common-debug.h.
3782 * linux-nat.c: Likewise.
3784 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3786 * async-event.h (create_async_signal_handler): Add name
3788 (create_async_event_handler): Likewise.
3789 * async-event.c (struct async_signal_handler) <name>: New field.
3790 (struct async_event_handler) <name>: New field.
3791 (create_async_signal_handler): Assign name.
3792 (create_async_event_handler): Assign name.
3793 * event-top.c (async_init_signals): Pass name when creating
3795 * infrun.c (_initialize_infrun): Likewise.
3796 * record-btrace.c (record_btrace_push_target): Likewise.
3797 * record-full.c (record_full_open): Likewise.
3798 * remote-notif.c (remote_notif_state_allocate): Likewise.
3799 * remote.c (remote_target::open_1): Likewise.
3800 * tui/tui-win.c (tui_initialize_win): Likewise.
3802 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3804 * async-event.c (initialize_async_signal_handlers): Pass name to
3806 * event-top.c (ui_register_input_event_handler): Likewise.
3807 * linux-nat.c (linux_nat_target::async): Likewise.
3808 * run-on-main-thread.c (_initialize_run_on_main_thread):
3810 * ser-base.c (reschedule): Likewise.
3811 (ser_base_async): Likewise.
3812 * tui/tui-io.c: Likewise.
3813 * top.h (struct ui) <num>: New field.
3814 * top.c (highest_ui_num): New variable.
3815 (ui::ui): Initialize num.
3817 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3819 * observable.h <inferior_created>: Remove parameters. Update all
3821 * inferior.h (post_create_inferior): Remove target parameter.
3824 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3826 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3827 and DW_MACRO_undef_strx.
3828 (dwarf_decode_macros): Likewise
3829 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3830 which is the value of DW_AT_str_offsets_base.
3831 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3834 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3836 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3838 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3840 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3841 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3843 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3845 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3847 2020-09-30 Tom de Vries <tdevries@suse.de>
3850 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3852 2020-09-30 Tom Tromey <tromey@adacore.com>
3854 * dwarf2/read.c (handle_variant): Use constant_value.
3856 2020-09-29 Tom Tromey <tom@tromey.com>
3858 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3859 (read_file_scope, dwarf2_get_pc_bounds)
3860 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3861 (read_structure_type, handle_struct_member_die)
3862 (read_enumeration_type, read_array_type, read_set_type)
3863 (read_tag_pointer_type, read_tag_reference_type)
3864 (read_subroutine_type, read_base_type, read_subrange_type)
3865 (read_full_die_1, partial_die_info::read)
3866 (partial_die_info::read, by, new_symbol)
3867 (dwarf2_const_value_data, dwarf2_const_value_attr)
3868 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3869 (prepare_one_comp_unit): Update.
3870 * dwarf2/attribute.h (DW_UNSND): Remove.
3872 2020-09-29 Tom Tromey <tom@tromey.com>
3874 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3875 (read_subroutine_type, partial_die_info::read)
3876 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3877 (dwarf2_add_member_fn): Update.
3878 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3879 * dwarf2/attribute.c (attribute::as_boolean): New method.
3881 2020-09-29 Tom Tromey <tom@tromey.com>
3883 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3884 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3886 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3888 2020-09-29 Tom Tromey <tom@tromey.com>
3890 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3891 the attribute's form.
3893 2020-09-29 Tom Tromey <tom@tromey.com>
3895 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3896 (dwarf2_add_member_fn): Update.
3897 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3898 * dwarf2/attribute.c (attribute::defaulted): New method, from
3899 is_valid_DW_AT_defaulted.
3901 2020-09-29 Tom Tromey <tom@tromey.com>
3903 * dwarf2/read.c (dw2_get_file_names_reader)
3904 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3905 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3906 (dwarf2_symbol_mark_computed): Use as_unsigned.
3907 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3909 <form_is_section_offset>: Update comment.
3911 2020-09-29 Tom Tromey <tom@tromey.com>
3913 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3914 dwarf2_default_access_attribute. Look up attribute.
3915 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3918 2020-09-29 Tom Tromey <tom@tromey.com>
3920 * dwarf2/read.c (skip_one_die): Update.
3921 (read_full_die_1): Change how reprocessing is done.
3922 (partial_die_info::read): Update.
3923 (read_attribute_value): Remove need_reprocess parameter.
3924 (read_attribute): Likewise.
3925 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3928 2020-09-29 Tom Tromey <tom@tromey.com>
3930 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3931 (dwarf2_const_value_attr, dump_die_shallow)
3932 (dwarf2_fetch_constant_bytes): Update.
3933 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3935 <set_address>: New method.
3937 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3938 (attribute::as_string, attribute::as_address): Add assert.
3940 2020-09-29 Tom Tromey <tom@tromey.com>
3942 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3943 (read_attribute_reprocess, read_attribute_value): Update.
3944 (read_attribute): Clear requires_reprocessing.
3945 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3946 form_requires_reprocessing>: New methods.
3947 <string_init>: Clear requires_reprocessing.
3948 <set_unsigned_reprocess>: New method.
3949 <name>: Shrink by one bit.
3950 <requires_reprocessing>: New member.
3951 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3954 2020-09-29 Tom Tromey <tom@tromey.com>
3956 * dwarf2/read.c (read_attribute_value): Update.
3957 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3958 set_unsigned>: New methods.
3959 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3961 2020-09-29 Tom Tromey <tom@tromey.com>
3963 * dwarf2/read.c (get_alignment, read_array_order)
3964 (read_attribute_value, dwarf2_const_value_attr)
3965 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3966 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3970 2020-09-29 Tom Tromey <tom@tromey.com>
3972 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3973 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3975 * dwarf2/attribute.h (struct attribute) <as_signature,
3976 set_signature>: New methods.
3977 (DW_SIGNATURE): Remove.
3979 2020-09-29 Tom Tromey <tom@tromey.com>
3981 * dwarf2/read.c (read_call_site_scope)
3982 (handle_data_member_location, dwarf2_add_member_fn)
3983 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3984 (partial_die_info::read, read_attribute_value)
3985 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3986 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3987 (dwarf2_symbol_mark_computed): Update.
3988 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3991 * dwarf2/attribute.c (attribute::form_is_block): Add
3994 2020-09-29 Tom Tromey <tom@tromey.com>
3996 * dwarf2/read.c (read_cutu_die_from_dwo)
3997 (read_attribute_reprocess, read_attribute_value, read_attribute)
3998 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3999 (dwarf2_fetch_constant_bytes): Update.
4000 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
4001 <set_string_noncanonical, set_string_canonical>: New methods.
4002 <string_is_canonical>: Update comment.
4003 <canonical_string_p>: Add assert.
4004 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
4005 * dwarf2/attribute.c (attribute::form_is_string): New method.
4006 (attribute::string): Use it.
4008 2020-09-29 Tom Tromey <tom@tromey.com>
4010 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
4011 (dump_die_shallow): Use canonical_string_p.
4012 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
4015 2020-09-29 Tom Tromey <tom@tromey.com>
4017 * dwarf2/read.c (partial_die_info::read)
4018 (dwarf2_const_value_attr, anonymous_struct_prefix, )
4019 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
4020 attribute::as_string.
4022 2020-09-29 Tom Tromey <tom@tromey.com>
4024 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
4026 (attribute::string): Don't use DW_STRING.
4027 (attribute::get_ref_die_offset): Don't use DW_UNSND.
4028 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
4030 2020-09-29 Tom Tromey <tom@tromey.com>
4032 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
4033 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
4034 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
4035 * dwarf2/attribute.h (struct attribute): Rename methods.
4036 * dwarf2/attribute.c (attribute::as_address): Rename from
4038 (attribute::as_string): Rename from value_as_string.
4040 2020-09-29 Tom Tromey <tom@tromey.com>
4042 * dwarf2/read.c (partial_die_info::read) <case
4043 DW_AT_linkage_name>: Use value_as_string.
4044 (dwarf2_string_attr): Use value_as_string.
4045 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4047 * dwarf2/attribute.c (attribute::value_as_string): New method.
4049 2020-09-29 Pedro Alves <pedro@palves.net>
4051 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
4052 defined before using '#pragma GCC diagnostic' instead of checking
4055 2020-09-28 Tom Tromey <tom@tromey.com>
4057 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
4058 (handle_signal_stop): Update.
4059 * procfs.c (procfs_target::insert_watchpoint): Update.
4060 * target.h (target_have_steppable_watchpoint): Now a function.
4062 2020-09-28 Tom Tromey <tom@tromey.com>
4064 * infrun.c (set_schedlock_func): Update.
4065 * target.h (target_can_lock_scheduler): Now a function.
4067 2020-09-28 Tom Tromey <tom@tromey.com>
4069 * inferior.h (class inferior) <has_execution>: Update.
4070 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
4071 * valops.c (find_function_in_inferior)
4072 (value_allocate_space_in_inferior): Update.
4073 * top.c (kill_or_detach): Update.
4074 * target.c (target_preopen, set_target_permissions): Update.
4075 (target_has_execution_current): Remove.
4076 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
4078 * solib.c (update_solib_list, reload_shared_libraries): Update.
4079 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
4080 * solib-dsbt.c (enable_break): Update.
4081 * score-tdep.c (score7_fetch_inst): Update.
4082 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
4084 * remote.c (remote_target::start_remote)
4085 (remote_target::remote_check_symbols, remote_target::open_1)
4086 (remote_target::remote_detach_1, remote_target::verify_memory)
4087 (remote_target::xfer_partial, remote_target::read_description)
4088 (remote_target::get_min_fast_tracepoint_insn_len): Update.
4089 * record-full.c (record_full_open_1): Update.
4090 * record-btrace.c (record_btrace_target_open): Update.
4091 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4092 (value_nsstring): Update.
4093 * linux-thread-db.c (add_thread_db_info)
4094 (thread_db_find_new_threads_silently, check_thread_db_callback)
4095 (try_thread_db_load_1, record_thread): Update.
4096 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
4098 * linux-fork.c (checkpoint_command): Update.
4099 * infrun.c (set_non_stop, set_observer_mode)
4100 (check_multi_target_resumption, for_each_just_stopped_thread)
4101 (maybe_remove_breakpoints, normal_stop)
4102 (class infcall_suspend_state): Update.
4103 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
4104 (info_program_command, attach_command): Update.
4105 * infcall.c (call_function_by_hand_dummy): Update.
4106 * inf-loop.c (inferior_event_handler): Update.
4107 * gcore.c (gcore_command, derive_heap_segment): Update.
4108 * exec.c (exec_file_command): Update.
4109 * eval.c (evaluate_subexp): Update.
4110 * compile/compile.c (compile_to_object): Update.
4111 * cli/cli-dump.c (restore_command): Update.
4112 * breakpoint.c (update_watchpoint)
4113 (update_inserted_breakpoint_locations)
4114 (insert_breakpoint_locations, get_bpstat_thread): Update.
4115 * target.h (target_has_execution): Remove macro.
4116 (target_has_execution_current): Don't declare.
4117 (target_has_execution): Rename from target_has_execution_1. Add
4120 2020-09-28 Tom Tromey <tom@tromey.com>
4122 * mi/mi-main.c (exec_reverse_continue)
4123 (mi_cmd_list_target_features): Update.
4124 * infrun.c (set_exec_direction_func): Update.
4125 * target.c (default_execution_direction): Update.
4126 * reverse.c (exec_reverse_once): Update.
4127 * target.h (target_can_execute_reverse): Now a function.
4129 2020-09-28 Tom Tromey <tom@tromey.com>
4131 * tui/tui-regs.c (tui_get_register)
4132 (tui_data_window::show_registers): Update.
4133 * thread.c (scoped_restore_current_thread::restore)
4134 (scoped_restore_current_thread::scoped_restore_current_thread):
4136 * regcache-dump.c (regcache_print): Update.
4137 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
4139 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
4140 * mep-tdep.c (current_me_module, current_options): Update.
4141 * linux-thread-db.c (thread_db_load): Update.
4142 * infcmd.c (registers_info, info_vector_command)
4143 (info_float_command): Update.
4144 * ia64-tdep.c (ia64_frame_prev_register)
4145 (ia64_sigtramp_frame_prev_register): Update.
4146 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
4147 * gcore.c (derive_stack_segment): Update.
4148 * frame.c (get_current_frame, has_stack_frames): Update.
4149 * findvar.c (language_defn::read_var_value): Update.
4150 * arm-tdep.c (arm_pc_is_thumb): Update.
4151 * target.c (target_has_registers): Rename from
4152 target_has_registers_1.
4153 * target.h (target_has_registers): Remove macro.
4154 (target_has_registers): Rename from target_has_registers_1.
4156 2020-09-28 Tom Tromey <tom@tromey.com>
4158 * windows-tdep.c (tlb_make_value): Update.
4159 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4160 * thread.c (scoped_restore_current_thread::restore)
4161 (scoped_restore_current_thread::scoped_restore_current_thread)
4162 (thread_command): Update.
4163 * stack.c (backtrace_command_1, frame_apply_level_command)
4164 (frame_apply_all_command, frame_apply_command): Update.
4165 * infrun.c (siginfo_make_value, restore_infcall_control_state):
4167 * gcore.c (derive_stack_segment): Update.
4168 * frame.c (get_current_frame, has_stack_frames): Update.
4169 * auxv.c (info_auxv_command): Update.
4170 * ada-tasks.c (ada_build_task_list): Update.
4171 * target.c (target_has_stack): Rename from target_has_stack_1.
4172 * target.h (target_has_stack): Remove macro.
4173 (target_has_stack): Rename from target_has_stack_1.
4175 2020-09-28 Tom Tromey <tom@tromey.com>
4177 * target.c (target_has_memory): Rename from target_has_memory_1.
4178 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4179 * thread.c (scoped_restore_current_thread::restore)
4180 (scoped_restore_current_thread::scoped_restore_current_thread):
4182 * frame.c (get_current_frame, has_stack_frames): Update.
4183 * target.h (target_has_memory): Remove macro.
4184 (target_has_memory): Rename from target_has_memory_1.
4186 2020-09-28 Tom Tromey <tom@tromey.com>
4188 * target.c (target_has_all_memory_1): Remove.
4189 * target.h (target_has_all_memory): Remove define.
4190 (target_has_all_memory_1): Don't declare.
4192 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4194 * ser-base.c: Adjust comments formatting.
4196 2020-09-27 Tom Tromey <tom@tromey.com>
4199 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
4201 2020-09-27 Tom Tromey <tom@tromey.com>
4204 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
4206 2020-09-27 Tom Tromey <tom@tromey.com>
4208 * unittests/tui-selftests.c: Update.
4209 * tui/tui-winsource.h (struct tui_source_window_base)
4210 <extra_margin, show_line_number, refresh_pad>: New methods.
4211 <m_max_length, m_pad>: New members.
4212 (tui_copy_source_line): Update.
4213 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
4214 first_col, line_width, ndigits parameters. Add length.
4215 (tui_source_window_base::show_source_line): Write to pad. Line
4217 (tui_source_window_base::refresh_pad): New method.
4218 (tui_source_window_base::show_source_content): Write to pad. Call
4220 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
4222 (tui_source_window_base::update_exec_info): Call
4224 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
4226 <m_digits>: New member.
4227 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
4229 (tui_source_window::show_line_number): New method.
4230 * tui/tui-io.h (tui_puts): Fix comment.
4231 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
4234 2020-09-27 Tom Tromey <tom@tromey.com>
4236 * tui/tui-winsource.c
4237 (tui_source_window_base::set_is_exec_point_at): Don't call
4240 2020-09-27 Tom Tromey <tom@tromey.com>
4242 * python/py-tui.c (class tui_py_window) <refresh_window>: New
4245 <cursor_x, cursor_y>: Remove.
4246 <m_inner_window>: New member.
4247 (tui_py_window::rerender): Create inner window.
4248 (tui_py_window::output): Write to inner window.
4250 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4253 * cli/cli-script.c (execute_control_commands): don't set
4254 instream to nullptr here as this breaks the from_tty argument
4255 to gdb.execute in Python.
4256 (execute_user_command): set instream to nullptr here instead.
4258 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
4260 * infrun.h (infrun_debug_printf): Fix formatting.
4261 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4263 2020-09-25 Saagar Jha <saagar@saagarjha.com>
4265 * compile/compile-object-load.h (struct munmap_list): Add
4266 explicitly-defined move constructor.
4268 2020-09-24 Tom Tromey <tromey@adacore.com>
4271 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4273 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4274 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4275 (tui_prev_win): Rewrite.
4277 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
4279 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4280 in WOW64 processes as SIGINT.
4281 * nat/windows-nat.h: Make wow64_process a shared variable.
4282 * windows-nat.c: Remove static wow64_process variable.
4284 2020-09-23 Tom Tromey <tom@tromey.com>
4287 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4288 offset and bit size.
4289 * printcmd.c (print_scalar_formatted): Handle zero-length
4291 (print_scalar_formatted): Use bit_size_differs_p.
4292 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4294 (union type_specific): <int_stuff>: New member.
4295 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4297 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4298 TYPE_SPECIFIC_FIELD.
4299 (recursive_dump_type, copy_type_recursive): Update.
4300 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4301 DW_AT_data_bit_offset.
4303 2020-09-23 Tom Tromey <tom@tromey.com>
4305 * utils.h (class gdb_argv): Add move operators.
4306 <append>: New methods.
4307 * compile/compile.c (build_argc_argv): Remove.
4308 (compile_args_argc): Remove.
4309 (compile_args_argv): Change type.
4310 (set_compile_args): Simplify.
4311 (append_args): Remove.
4312 (filter_args): Remove argcp parameter.
4313 (get_args): Return gdb_argv. Simplify.
4314 (compile_to_object): Update.
4316 2020-09-23 Tom Tromey <tom@tromey.com>
4318 * compile/compile-object-run.c (do_module_cleanup)
4319 <~do_module_cleanup> :Remove.
4320 (do_module_cleanup): Update.
4321 * compile/compile-object-load.h (struct munmap_list): Add move
4322 assignment operator.
4323 <source_file>: Now a std::string.
4324 <munmap_list>: Rename. No longer a pointer.
4325 * compile/compile-object-load.c (struct setup_sections_data): Add
4327 <setup_one_section>: Declare.
4328 <munmap_list>: Move earlier.
4329 <m_bfd>: New member.
4330 <m_last_size, m_last_section_first, m_last_prot,
4331 m_last_max_alignment>: Rename, add initializers where needed.
4332 (setup_sections_data::setup_one_section): Rename from
4333 setup_sections. Update.
4334 (compile_object_load): Update. Don't use bfd_map_over_sections.
4336 2020-09-23 Tom Tromey <tom@tromey.com>
4338 * compile/compile-object-run.c (struct do_module_cleanup): Add
4339 parameters to constructor. Update destructor.
4340 <source_file, scope, scope_data, out_value_type, out_value_addr,
4341 munmap_list_head, objfile_name_string>: Remove.
4342 <module>: New member.
4343 (do_module_cleanup): Update.
4344 (compile_object_run): Update.
4346 2020-09-23 Tom Tromey <tom@tromey.com>
4348 * compile/compile.c (eval_compile_command): Update.
4349 * compile/compile-object-run.h (compile_object_run): Take a
4351 * compile/compile-object-run.c (compile_object_run): Take a
4353 * compile/compile-object-load.h (struct compile_module): Add
4354 constructor, destructor.
4355 (compile_module_up): New typedef.
4356 (compile_object_load): Return compile_object_up.
4357 * compile/compile-object-load.c (compile_object_load): Return
4360 2020-09-23 Tom Tromey <tom@tromey.com>
4362 * compile/compile-object-run.c (struct do_module_cleanup): Add
4363 constructor, destructor.
4364 <objfile_name_string>: Don't use struct hack.
4365 (do_module_cleanup): Use delete.
4366 (compile_object_run): Use new.
4368 2020-09-23 Tom Tromey <tom@tromey.com>
4370 * compile/compile-cplus-types.c
4371 (compile_cplus_convert_struct_or_union): Use std::vector.
4372 (compile_cplus_convert_func): Likewise.
4373 * compile/compile-c-types.c (convert_func): Use std::vector.
4375 2020-09-21 Tom Tromey <tromey@adacore.com>
4377 * sparc-tdep.c (sparc32_skip_prologue): Use
4378 skip_prologue_using_sal.
4380 2020-09-19 Tom Tromey <tom@tromey.com>
4382 * symfile.c (add_section_size_callback): Remove.
4383 (load_one_section): Rename from load_section_callback. Change
4385 (generic_load): Use foreach.
4387 2020-09-19 Tom Tromey <tom@tromey.com>
4389 * exec.c (add_to_section_table): Remove.
4390 (build_section_table): Use foreach.
4392 2020-09-19 Tom Tromey <tom@tromey.com>
4394 * elfread.c (elf_locate_sections): Change parameters.
4395 (elf_symfile_read): Use foreach.
4397 2020-09-19 Tom Tromey <tom@tromey.com>
4399 * cli/cli-dump.c (struct callback_data): Remove.
4400 (restore_one_section): Rename from restore_section_callback.
4402 (restore_binary_file): Change parameters.
4403 (restore_command): Use foreach.
4405 2020-09-19 Tom Tromey <tom@tromey.com>
4407 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4408 (gcore_copy_callback): Likewise.
4409 (gcore_memory_sections): Use foreach.
4411 2020-09-19 Tom Tromey <tom@tromey.com>
4413 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4414 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4416 (generic_elf_osabi_sniffer): Use foreach.
4417 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4418 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4420 2020-09-19 Tom Tromey <tom@tromey.com>
4422 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4423 (dwarf2_get_dwz_file): Use foreach.
4424 (dwarf2_locate_dwo_sections): Change parameters.
4425 (open_and_init_dwo_file): Use foreach.
4426 (dwarf2_locate_common_dwp_sections): Change parameters.
4427 (open_and_init_dwp_file): Use foreach.
4429 2020-09-19 Tom Tromey <tom@tromey.com>
4431 * symfile.h: (find_lowest_section): Don't declare.
4432 * symfile.c (find_lowest_section): Now static. Change
4434 (struct place_section_arg): Remove.
4435 (place_section): Change parameters.
4436 (addr_info_make_relative): Use foreach.
4437 (symfile_dummy_outputs): Remove.
4438 (default_symfile_relocate): Use foreach.
4440 2020-09-19 Tom Tromey <tom@tromey.com>
4442 * objfiles.c (add_to_objfile_sections): Rename from
4443 add_to_objfile_sections_full.
4444 (add_to_objfile_sections): Remove.
4445 (build_objfile_section_table): Use foreach.
4447 2020-09-19 Tom Tromey <tom@tromey.com>
4449 * stap-probe.c (get_stap_base_address_1): Remove.
4450 (get_stap_base_address): Use foreach.
4452 2020-09-19 Tom Tromey <tom@tromey.com>
4454 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4456 (gdb_bfd_close_or_warn): Use foreach.
4458 2020-09-19 Tom Tromey <tom@tromey.com>
4460 * corelow.c (add_to_thread_list): Change parameters.
4461 (core_target_open): Use foreach.
4463 2020-09-19 Tom Tromey <tom@tromey.com>
4465 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4468 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4470 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4473 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4475 * eval.c: Remove 'f-lang.h' include.
4476 (value_f90_subarray): Moved to f-lang.c.
4477 (eval_call): Renamed to...
4478 (evaluate_subexp_do_call): ...this, is no longer static, header
4479 comment moved into header file.
4480 (evaluate_funcall): Update call to eval_call.
4481 (skip_undetermined_arglist): Moved to f-lang.c.
4482 (fortran_value_subarray): Likewise.
4483 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4484 moved to evaluate_subexp_f.
4485 (calc_f77_array_dims): Moved to f-lang.c
4486 * expprint.c (print_subexp_funcall): New function.
4487 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4488 moved to print_subexp_f, OP_FUNCALL uses new function.
4489 (dump_subexp_body_funcall): New function.
4490 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4491 moved to dump_subexp_f, OP_FUNCALL uses new function.
4492 * expression.h (evaluate_subexp_do_call): Declare.
4493 * f-lang.c (value_f90_subarray): Moved from eval.c.
4494 (skip_undetermined_arglist): Likewise.
4495 (calc_f77_array_dims): Likewise.
4496 (fortran_value_subarray): Likewise.
4497 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4498 (operator_length_f): Likewise.
4499 (print_subexp_f): Likewise.
4500 (dump_subexp_body_f): Likewise.
4501 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4502 declaration of this operation to here.
4503 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4504 support moved to operator_length_f.
4505 * parser-defs.h (dump_subexp_body_funcall): Declare.
4506 (print_subexp_funcall): Declare.
4507 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4508 fortran-operator.def.
4510 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4512 * eval.c (fortran_value_subarray): New function, content is taken
4514 (evaluate_subexp_standard): ...here, in two places. Now arrays
4515 and strings both call the new function.
4516 (calc_f77_array_dims): Add header comment, handle strings.
4518 2020-09-18 Victor Collod <vcollod@nvidia.com>
4521 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4522 (i386_analyze_prologue): Call i386_skip_endbr.
4524 2020-09-18 Tom Tromey <tromey@adacore.com>
4526 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4527 (windows_nat_target::wait): Update.
4528 * target/wait.h (enum target_wait_flag): New. Use
4529 DEF_ENUM_FLAGS_TYPE.
4530 * target/target.h (target_wait): Change type of options.
4531 * target.h (target_options_to_string, default_target_wait):
4533 (struct target_ops) <wait>: Change type of options.
4534 * target.c (target_wait, default_target_wait, do_option): Change
4536 (target_options_to_string): Likewise.
4537 * target-delegates.c: Rebuild.
4538 * target-debug.h (target_debug_print_target_wait_flags): Rename
4539 from target_debug_print_options.
4540 * sol-thread.c (class sol_thread_target) <wait>: Update.
4541 (sol_thread_target::wait): Update.
4542 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4543 (rs6000_nat_target::wait): Update.
4544 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4546 (remote_target::wait_ns, remote_target::wait_as): Change type of
4548 (remote_target::wait): Update.
4549 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4550 (gdbsim_target::wait): Update.
4551 * record-full.c (class record_full_base_target) <wait>: Update.
4552 (record_full_wait_1): Change type of "options".
4553 (record_full_base_target::wait): Update.
4554 * record-btrace.c (class record_btrace_target) <wait>: Update.
4555 (record_btrace_target::wait): Update.
4556 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4558 (ravenscar_thread_target::wait): Update.
4559 * procfs.c (class procfs_target) <wait>: Update.
4560 (procfs_target::wait): Update.
4561 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4562 * obsd-nat.c (obsd_nat_target::wait): Update.
4563 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4564 (nto_procfs_target::wait): Update.
4565 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4566 * nbsd-nat.c (nbsd_wait): Change type of "options".
4567 (nbsd_nat_target::wait): Update.
4568 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4569 (thread_db_target::wait): Update.
4570 * linux-nat.h (class linux_nat_target) <wait>: Update.
4571 * linux-nat.c (linux_nat_target::wait): Update.
4572 (linux_nat_wait_1): Update.
4573 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4575 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4576 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4577 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4578 (go32_nat_target::wait): Update.
4579 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4580 * gnu-nat.c (gnu_nat_target::wait): Update.
4581 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4582 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4583 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4584 * darwin-nat.c (darwin_nat_target::wait): Update.
4585 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4586 (bsd_uthread_target::wait): Update.
4587 * aix-thread.c (class aix_thread_target) <wait>: Update.
4588 (aix_thread_target::wait): Update.
4590 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4592 * compile/compile-object-run.c (create_copied_type_recursive): New
4594 (compile_object_run): Use new function.
4596 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4598 * NEWS: Mention x86_64 Cygwin core file support.
4600 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4602 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4603 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4605 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4607 * windows-tdep.h: Add prototypes.
4608 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4609 (i386_windows_core_pid_to_str): Move and rename ...
4610 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4611 (windows_core_pid_to_str): ... and here.
4612 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4614 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4615 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4616 (amd64_windows_init_abi_common): ... and register.
4618 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4620 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4621 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4623 2020-09-18 Pedro Alves <pedro@palves.net>
4626 * thread.c (thread_find_command): Switch inferior before calling
4629 2020-09-17 Tom Tromey <tromey@adacore.com>
4631 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4632 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4633 (tdesc_arch_data_up): New typedef.
4634 (tdesc_use_registers, tdesc_data_alloc): Update.
4635 (tdesc_data_cleanup): Don't declare.
4636 * target-descriptions.c (tdesc_data_alloc): Return a
4638 (tdesc_arch_data_deleter::operator()): Rename from
4639 tdesc_data_cleanup. Change argument type.
4640 (tdesc_use_registers): Change early_data to an rvalue reference.
4641 (tdesc_use_registers): Don't use delete.
4642 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4643 * s390-tdep.c (s390_gdbarch_init): Update.
4644 * rx-tdep.c (rx_gdbarch_init): Update.
4645 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4646 * riscv-tdep.c (riscv_gdbarch_init): Update.
4647 * or1k-tdep.c (or1k_gdbarch_init): Update.
4648 * nios2-tdep.c (nios2_gdbarch_init): Update.
4649 * nds32-tdep.c (nds32_gdbarch_init): Update.
4650 * mips-tdep.c (mips_gdbarch_init): Update.
4651 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4652 * m68k-tdep.c (m68k_gdbarch_init): Update.
4653 * i386-tdep.c (i386_gdbarch_init): Update.
4654 * arm-tdep.c (arm_gdbarch_init): Update.
4655 * arc-tdep.c (arc_tdesc_init): Update.
4656 (arc_gdbarch_init): Update.
4657 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4659 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4661 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4662 for WOW64 processes.
4664 2020-09-17 Tom Tromey <tom@tromey.com>
4666 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4668 2020-09-17 Tom Tromey <tom@tromey.com>
4670 * value.c (preserve_values): Update.
4671 * python/py-type.c (save_objfile_types): Update.
4672 * guile/scm-type.c (save_objfile_types): Update.
4673 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4674 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4675 * compile/compile-object-run.c (compile_object_run): Update.
4677 2020-09-17 Tom Tromey <tom@tromey.com>
4679 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4681 <m_table>: Now htab_up.
4682 * typeprint.c (typedef_hash_table::recursively_update)
4683 (typedef_hash_table::add_template_parameters)
4684 (typedef_hash_table::typedef_hash_table): Update.
4685 (typedef_hash_table::~typedef_hash_table): Remove.
4686 (typedef_hash_table::typedef_hash_table)
4687 (typedef_hash_table::find_global_typedef)
4688 (typedef_hash_table::find_typedef): Update.
4690 2020-09-17 Tom Tromey <tom@tromey.com>
4692 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4694 2020-09-17 Tom Tromey <tom@tromey.com>
4696 * linespec.c (class decode_compound_collector)
4697 <~decode_compound_collector>: Remove.
4698 <m_unique_syms>: Now htab_up.
4699 (decode_compound_collector::operator ()): Update.
4700 (class symtab_collector) <~symtab_collector>: Remove.
4701 <m_symtab_table>: Now htab_up.
4702 (symtab_collector::operator ()): Update.
4704 2020-09-17 Tom Tromey <tom@tromey.com>
4706 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4707 (filename_seen_cache::clear): Update.
4708 (~filename_seen_cache): Remove.
4709 (filename_seen_cache::seen): Update.
4710 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4712 <~filename_seen_cache>: Remove.
4715 2020-09-17 Tom Tromey <tom@tromey.com>
4717 * completer.c (completion_tracker::discard_completions)
4718 (completion_tracker::~completion_tracker)
4719 (completion_tracker::maybe_add_completion)
4720 (completion_tracker::remove_completion)
4721 (completion_tracker::recompute_lowest_common_denominator)
4722 (completion_tracker::build_completion_result): Update.
4723 * completer.h (class completion_tracker) <have_completions>:
4725 <m_entries_hash>: Now htab_up.
4727 2020-09-17 Tom Tromey <tom@tromey.com>
4729 * breakpoint.c (ambiguous_names_p): Use htab_up.
4731 2020-09-17 Tom Tromey <tom@tromey.com>
4733 * auto-load.c (struct auto_load_pspace_info)
4734 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4735 <loaded_script_files, loaded_script_texts>: Change type to
4737 (~auto_load_pspace_info) Remove.
4738 (init_loaded_scripts_info, maybe_add_script_file)
4739 (maybe_add_script_text, auto_load_info_scripts): Update.
4741 2020-09-17 Tom Tromey <tromey@adacore.com>
4743 * c-exp.y (name_obstack): Now static.
4745 2020-09-17 Chungyi Chi <demonic@csie.io>
4747 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4749 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4751 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4752 (add_solib_catchpoint): Likewise.
4753 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4755 (add_solib_catchpoint): Change int parameter/variable to bool.
4756 (catch_load_or_unload): Likewise.
4757 (init_catchpoint): Likewise.
4758 (create_fork_vfork_event_catchpoint): Likewise.
4759 (catch_fork_command_1): Likewise.
4760 (catch_exec_command_1): Likewise.
4762 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4764 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4765 Change instance_flags to m_instance_flags.
4767 2020-09-16 Tom Tromey <tromey@adacore.com>
4770 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4772 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4774 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4776 (fbsd_nat_target::insert_exec_catchpoint)
4777 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4778 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4779 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4781 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4783 * configure.ac: Remove check for kinfo_getvmmap().
4784 * configure, config.in: Regenerate.
4785 * fbsd-nat.c (fbsd_read_mapping): Remove
4786 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4787 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4788 kinfo_get_vmmap() are always present.
4790 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4792 * fbsd-nat.c: Always include support for
4793 TARGET_OBJECT_SIGNAL_INFO.
4795 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4797 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4798 sysctl and remove procfs fallback.
4800 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4802 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4803 * fbsd-nat.h: Likewise.
4805 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4807 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4810 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4812 * ada-lang.c (ada_language_data): Delete.
4813 (ada_language): Remove references to ada_language_data.
4814 * c-lang.c (c_language_data): Delete.
4815 (c_language): Remove references to c_language_data.
4816 (cplus_language_data): Delete.
4817 (cplus_language): Remove references to cplus_language_data.
4818 (asm_language_data): Delete.
4819 (asm_language): Remove references to asm_language_data.
4820 (minimal_language_data): Delete.
4821 (minimal_language): Remove references to minimal_language_data.
4822 * d-lang.c (d_language_data): Delete.
4823 (d_language): Remove references to d_language_data.
4824 * f-lang.c (f_language_data): Delete.
4825 (f_language): Remove references to f_language_data.
4826 * go-lang.c (go_language_data): Delete.
4827 (go_language): Remove references to go_language_data.
4828 * language.c (unknown_language_data): Delete.
4829 (unknown_language): Remove references to unknown_language_data.
4830 (auto_language_data): Delete.
4831 (auto_language): Remove references to auto_language_data.
4832 * language.h (language_data): Delete struct.
4833 (language_defn): No longer inherit from language_data.
4834 * m2-lang.c (m2_language_data): Delete.
4835 (m2_language): Remove references to m2_language_data.
4836 * objc-lang.c (objc_language_data): Delete.
4837 (objc_language): Remove references to objc_language_data.
4838 * opencl-lang.c (opencl_language_data): Delete.
4839 (opencl_language): Remove references to opencl_language_data.
4840 * p-lang.c (pascal_language_data): Delete.
4841 (pascal_language): Remove references to pascal_language_data.
4842 * rust-lang.c (rust_language_data): Delete.
4843 (rust_language): Remove references to rust_language_data.
4845 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4847 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4849 (ada_language::opcode_print_table): New member function.
4850 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4851 (c_language::opcode_print_table): New member function.
4852 (cplus_language_data): Remove la_op_print_tab initializer.
4853 (cplus_language::opcode_print_table): New member function.
4854 (asm_language_data): Remove la_op_print_tab initializer.
4855 (asm_language::opcode_print_table): New member function.
4856 (minimal_language_data): Remove la_op_print_tab initializer.
4857 (minimal_language::opcode_print_table): New member function.
4858 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4859 (d_language::opcode_print_table): New member function.
4860 * expprint.c (print_subexp_standard): Update call to
4862 (op_string): Likewise.
4863 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4864 (f_language::opcode_print_table): New member function.
4865 * go-lang.c (go_language_data): Remove la_op_print_tab
4867 (go_language::opcode_print_table): New member function.
4868 * language.c (unknown_language_data): Remove la_op_print_tab
4870 (unknown_language::opcode_print_table): New member function.
4871 (auto_language_data): Remove la_op_print_tab initializer.
4872 (auto_language::opcode_print_table): New member function.
4873 * language.h (language_data): Remove la_op_print_tab field.
4874 (language_defn::opcode_print_table): Declare new member function.
4875 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4877 (m2_language::opcode_print_table): New member function.
4878 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4880 (objc_language::opcode_print_table): New member function.
4881 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4883 (opencl_language::opcode_print_table): New member function.
4884 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4886 (pascal_language::opcode_print_table): New member function.
4887 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4889 (rust_language::opcode_print_table): New member function.
4891 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4893 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4894 (ada_language::expression_ops): New member function.
4895 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4896 (c_language::expression_ops): New member function.
4897 (cplus_language_data): Remove la_exp_desc initializer.
4898 (cplus_language::expression_ops): New member function.
4899 (asm_language_data): Remove la_exp_desc initializer.
4900 (asm_language::expression_ops): New member function.
4901 (minimal_language_data): Remove la_exp_desc initializer.
4902 (minimal_language::expression_ops): New member function.
4903 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4904 (d_language::expression_ops): New member function.
4905 * eval.c (evaluate_subexp): Update call to expression_ops.
4906 * expprint.c (print_subexp): Likewise.
4907 (op_name): Likewise.
4908 (dump_subexp_body): Likewise.
4909 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4910 (f_language::expression_ops): New member function.
4911 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4912 (go_language::expression_ops): New member function.
4913 * language.c (language_defn::expression_ops): New function.
4914 (unknown_language_data): Remove la_exp_desc initializer.
4915 (auto_language_data): Likewise.
4916 * language.h (language_data): Remove la_exp_desc field.
4917 (language_defn::expression_ops): Declare new member function.
4918 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4919 (m2_language::expression_ops): New member function.
4920 * objc-lang.c (objc_language_data): Remove la_exp_desc
4922 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4924 (opencl_language::expression_ops): New member function.
4925 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4926 * parse.c (operator_length): Update call to expression_ops.
4927 (exp_iterate): Likewise.
4928 * rust-lang.c (rust_language_data): Remove la_exp_desc
4930 (ruse_language::expression_ops): New member function.
4932 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4934 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4936 (ada_language::varobj_ops): New member function.
4937 * c-lang.c (c_language_data): Remove la_varobj_ops
4939 (cplus_language_data): Likewise.
4940 (cplus_language::varobj_ops): New member function.
4941 (asm_language_data): Remove la_varobj_ops initializer.
4942 (minimal_language_data): Likewise.
4943 * d-lang.c (d_language_data): Likewise.
4944 * f-lang.c (f_language_data): Likewise.
4945 * go-lang.c (go_language_data): Likewise.
4946 * language.c (language_defn::varobj_ops): New function.
4947 (unknown_language_data): Remove la_varobj_ops
4949 (auto_language_data): Likewise.
4950 * language.h (language_data): Remove la_varobj_ops field.
4951 (language_defn::varobj_ops): Declare new member function.
4952 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4953 * objc-lang.c (objc_language_data): Likewise.
4954 * opencl-lang.c (opencl_language_data): Likewise.
4955 * p-lang.c (pascal_language_data): Likewise.
4956 * rust-lang.c (rust_language_data): Likewise.
4957 * varobj.c (varobj_create): Update call to varobj_ops.
4958 * varobj.h (default_varobj_ops): Delete define.
4960 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4962 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4964 * c-lang.c (c_language_data): Likewise.
4965 (c_language::macro_expansion): New member function.
4966 (cplus_language_data): Likewise.
4967 (cplus_language::macro_expansion): New member function.
4968 (asm_language_data): Likewise.
4969 (asm_language::macro_expansion): New member function.
4970 (minimal_language_data): Likewise.
4971 (minimal_language::macro_expansion): New member function.
4972 * d-lang.c (d_language_data): Remove la_macro_expansion
4974 * f-lang.c (f_language_data): Likewise.
4975 * go-lang.c (go_language_data): Likewise.
4976 * language.c (unknown_language_data): Likewise.
4977 (auto_language_data): Likewise.
4978 * language.h (language_data): Remove la_macro_expansion field.
4979 (language_defn::macro_expansion): New member function.
4980 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4982 * objc-lang.c (objc_language_data): Likewise.
4983 (objc_language::macro_expansion): New member function.
4984 * opencl-lang.c (opencl_language_data): Likewise.
4985 (opencl_language::macro_expansion): New member function.
4986 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4988 * rust-lang.c (rust_language_data): Likewise.
4989 * symtab.c (default_collect_symbol_completion_matches_break_on):
4990 Update call to macro_expansion.
4992 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4994 * ada-lang.c (ada_language_data): Remove la_array_ordering
4996 * c-lang.c (c_language_data): Likewise.
4997 (cplus_language_data): Likewise.
4998 (asm_language_data): Likewise.
4999 (minimal_language_data): Likewise.
5000 * d-lang.c (d_language_data): Likewise.
5001 * dwarf2/read.c (read_array_order): Update for call to
5003 * f-lang.c (f_language_data): Remove la_array_ordering
5005 (f_language::array_ordering): New member function.
5006 * go-lang.c (go_language_data): Remove la_array_ordering
5008 * language.c (unknown_language_data): Likewise.
5009 (auto_language_data): Likewise.
5010 * language.h (language_data): Delete la_array_ordering field.
5011 (language_defn::array_ordering): New member function.
5012 * m2-lang.c (m2_language_data): Remove la_array_ordering
5014 * objc-lang.c (objc_language_data): Likewise.
5015 * opencl-lang.c (opencl_language_data): Likewise.
5016 * p-lang.c (pascal_language_data): Likewise.
5017 * rust-lang.c (rust_language_data): Likewise.
5019 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5021 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
5023 * c-lang.c (c_language_data): Likewise.
5024 (cplus_language_data): Likewise.
5025 (asm_language_data): Likewise.
5026 (minimal_language_data): Likewise.
5027 * d-lang.c (d_language_data): Likewise.
5028 * f-lang.c (f_language_data): Likewise.
5029 (f_language::case_sensitivity): New member function.
5030 * go-lang.c (go_language_data): Remove la_case_sensitivity
5032 * language.c (enum case_mode): Moved here from language.h.
5033 (case_mode): Make static.
5034 (show_case_command): Update for case_sensitivity being a method.
5035 (set_case_command): Likewise.
5036 (set_range_case): Likewise.
5037 (unknown_language_data): Remove la_case_sensitivity initializer.
5038 (auto_language_data): Likewise.
5039 * language.h (case_mode): Delete, move enum declaration to
5041 (language_data): Delete la_case_sensitivity field.
5042 (language_defn::case_sensitivity): New member function.
5043 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
5045 * objc-lang.c (objc_language_data): Likewise.
5046 * opencl-lang.c (opencl_language_data): Likewise.
5047 * p-lang.c (pascal_language_data): Likewise.
5048 * rust-lang.c (rust_language_data): Likewise.
5050 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5052 * ada-lang.c (ada_language_data): Remove la_range_check
5054 * c-lang.c (c_language_data): Likewise.
5055 (cplus_language_data): Likewise.
5056 (asm_language_data): Likewise.
5057 (minimal_language_data): Likewise.
5058 * d-lang.c (d_language_data): Likewise.
5059 * f-lang.c (f_language_data): Likewise.
5060 (f_language::range_checking_on_by_default): New member function.
5061 * go-lang.c (go_language_data): Remove la_range_check initializer.
5062 * language.c (enum range_mode): Moved here from language.h.
5063 (range_mode): Made static.
5064 (show_range_command): Update to use
5065 range_checking_on_by_default.
5066 (set_range_command): Likewise.
5067 (set_range_case): Likewise.
5068 (unknown_language_data): Remove la_range_check initializer.
5069 (auto_language_data): Likewise.
5070 * language.h (range_mode): Delete. Enum definition moved to
5072 (language_data): Remove la_range_check field.
5073 (language_defn::range_checking_on_by_default): New member
5075 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
5076 (m2_language::range_checking_on_by_default): New member function.
5077 * objc-lang.c (objc_language_data): Remove la_range_check
5079 * opencl-lang.c (opencl_language_data): Likewise.
5080 * p-lang.c (pascal_language_data): Likewise.
5081 (pascal_language::range_checking_on_by_default): New member
5083 * rust-lang.c (rust_language_data): Remove la_range_check
5085 (rust_language::range_checking_on_by_default): New member
5088 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5090 * dwarf2/read.c (dwarf2_physname): Remove special case for
5092 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
5095 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5097 * ada-lang.c (ada_language_data): Remove
5098 la_store_sym_names_in_linkage_form_p initializer.
5099 (ada_language::store_sym_names_in_linkage_form_p): New member
5101 * c-lang.c (c_language_data): Remove
5102 la_store_sym_names_in_linkage_form_p initializer.
5103 (c_language::store_sym_names_in_linkage_form_p): New member
5105 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
5107 (asm_language_data): Likewise.
5108 (asm_language::store_sym_names_in_linkage_form_p): New member
5110 (minimal_language_data): Remove
5111 la_store_sym_names_in_linkage_form_p initializer.
5112 (minimal_language::store_sym_names_in_linkage_form_p): New member
5114 * d-lang.c (d_language_data): Remove
5115 la_store_sym_names_in_linkage_form_p initializer.
5116 * dwarf2/read.c (dwarf2_physname): Update call to
5117 store_sym_names_in_linkage_form_p.
5118 * f-lang.c (f_language_data): Remove
5119 la_store_sym_names_in_linkage_form_p initializer.
5120 * go-lang.c (go_language_data): Remove
5121 la_store_sym_names_in_linkage_form_p initializer.
5122 * language.c (unknown_language_data): Remove
5123 la_store_sym_names_in_linkage_form_p initializer.
5124 (unknown_language::store_sym_names_in_linkage_form_p): New member
5126 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
5128 (auto_language::store_sym_names_in_linkage_form_p): New member
5130 * language.h (language_data): Remove
5131 la_store_sym_names_in_linkage_form_p member variable.
5132 (language_defn::store_sym_names_in_linkage_form_p): New member
5134 * m2-lang.c (m2_language_data): Remove
5135 la_store_sym_names_in_linkage_form_p initializer.
5136 * objc-lang.c (objc_language_data): Likewise.
5137 * opencl-lang.c (opencl_language_data): Likewise.
5138 * p-lang.c (pascal_language_data): Likewise.
5139 * rust-lang.c (rust_language_data): Likewise.
5141 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5143 * ada-lang.c (ada_language_data): Remove string_lower_bound
5145 * c-lang.c (c_language_data): Likewise.
5146 (cplus_language_data): Likewise.
5147 (asm_language_data): Likewise.
5148 (minimal_language_data): Likewise.
5149 * d-lang.c (d_language_data): Likewise.
5150 * f-lang.c (f_language_data): Likewise.
5151 * go-lang.c (go_language_data): Likewise.
5152 * language.c (unknown_language_data): Likewise.
5153 (auto_language_data): Likewise.
5154 * language.h (language_data): Remove string_lower_bound field.
5155 (language_defn::string_lower_bound): New member function.
5156 * m2-lang.c (m2_language_data): Remove string_lower_bound
5158 (m2_language::string_lower_bound): New member function.
5159 * objc-lang.c (objc_language_data): Remove string_lower_bound
5161 * opencl-lang.c (opencl_language_data): Likewise.
5162 * p-lang.c (pascal_language_data): Likewise.
5163 * rust-lang.c (rust_language_data): Likewise.
5164 * valops.c (value_cstring): Update call to string_lower_bound.
5165 (value_string): Likewise.
5166 * value.c (allocate_repeated_value): Likewise.
5168 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5170 * valops.c (value_repeat): Fix incorrect argument name in comment.
5172 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5174 * ada-lang.c (ada_language_data): Remove c_style_arrays
5176 (ada_language::c_style_arrays_p): New member fuction.
5177 * c-lang.c (c_language_data): Remove c_style_arrays
5179 (cplus_language_data): Likewise.
5180 (asm_language_data): Likewise.
5181 (minimal_language_data): Likewise.
5182 * d-lang.c (d_language_data): Likewise.
5183 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
5184 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
5185 (f_language::c_style_arrays_p): New member function.
5186 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
5187 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
5188 * language.c (unknown_language_data): Remove c_style_arrays
5190 (auto_language_data): Likewise.
5191 * language.h (language_data): Remove c_style_arrays field.
5192 (language_defn::c_style_arrays_p): New member function.
5193 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
5194 (m2_language::c_style_arrays_p): New member function.
5195 * objc-lang.c (objc_language_data): Remove c_style_arrays
5197 * opencl-lang.c (opencl_language_data): Likewise.
5198 * p-lang.c (pascal_language_data): Likewise.
5199 * rust-lang.c (rust_language_data): Likewise.
5200 * valarith.c (value_subscript): Update call to c_style_arrays_p,
5201 and update local variable to a bool.
5202 * valops.c (value_cast): Update call to c_style_arrays_p.
5203 (value_array): Likewise.
5204 * value.c (coerce_array): Likewise.
5206 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5208 * ada-lang.c (ada_language_data): Remove la_language initializer.
5209 * c-lang.c (c_language_data): Likewise.
5210 (cplus_language_data): Likewise.
5211 (asm_language_data): Likewise.
5212 (minimal_language_data): Likewise.
5213 * d-lang.c (d_language_data): Likewise.
5214 * f-lang.c (f_language_data): Likewise.
5215 * go-lang.c (go_language_data): Likewise.
5216 * language.c (unknown_language_data): Likewise.
5217 (auto_language_data): Likewise.
5218 * language.h (language_data): Remove la_language field.
5219 (language_defn::language_defn): Initialise la_language field.
5220 (language_defn::la_language): New member variable.
5221 * m2-lang.c (m2_language_data): Remove la_language field.
5222 * objc-lang.c (objc_language_data): Likewise.
5223 * opencl-lang.c (opencl_language_data): Likewise.
5224 * p-lang.c (pascal_language_data): Likewise.
5225 * rust-lang.c (rust_language_data): Likewise.
5227 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5229 * ada-lang.c (ada_extensions): Delete, moved into
5230 ada_language::filename_extensions.
5231 (ada_language_data): Remove la_filename_extensions initializer.
5232 (ada_language::filename_extensions): New member function.
5233 * c-lang.c (c_extensions): Delete, moved into
5234 c_language::filename_extensions.
5235 (c_language_data): Remove la_filename_extensions initializer.
5236 (c_language::filename_extensions): New member function.
5237 (cplus_extensions): Delete, moved into
5238 cplus_language::filename_extensions.
5239 (cplus_language_data): Remove la_filename_extensions initializer.
5240 (cplus_language::filename_extensions): New member function.
5241 (asm_extensions): Delete, moved into
5242 asm_language::filename_extensions.
5243 (asm_language_data): Remove la_filename_extensions initializer.
5244 (asm_language::filename_extensions): New member function.
5245 (minimal_language_data): Remove la_filename_extensions
5247 * d-lang.c (d_extensions): Delete, moved into
5248 d_language::filename_extensions.
5249 (d_language_data): Remove la_filename_extensions initializer.
5250 (d_language::filename_extensions): New member function.
5251 * f-lang.c (f_extensions): Delete, moved into
5252 f_language::filename_extensions.
5253 (f_language_data): Remove la_filename_extensions initializer.
5254 (f_language::filename_extensions): New member function.
5255 * go-lang.c (go_language_data): Remove la_filename_extensions
5257 * language.c (add_set_language_command): Update now that
5258 filename_extensions returns a vector.
5259 (unknown_language_data): Remove la_filename_extensions
5261 (auto_language_data): Likewise.
5262 * language.h (language_data): Remove la_filename_extensions field.
5263 (language_defn::filename_extensions): New member function.
5264 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5266 * objc-lang.c (objc_extensions): Delete, moved into
5267 objc_language::filename_extensions.
5268 (objc_language_data): Remove la_filename_extensions initializer.
5269 (objc_language::filename_extensions): New member function.
5270 * opencl-lang.c (opencl_language_data): Remove
5271 la_filename_extensions initializer.
5272 * p-lang.c (pascal_extensions): Delete, moved into
5273 pascal_language::filename_extensions.
5274 (pascal_language_data): Remove la_filename_extensions initializer.
5275 (pascal_language::filename_extensions): New member function.
5276 * rust-lang.c (rust_extensions): Delete, moved into
5277 rust_language::filename_extensions.
5278 (rust_language_data): Remove la_filename_extensions initializer.
5279 (rust_language::filename_extensions): New member function.
5280 * symfile.c (add_filename_language): Add new assert.
5282 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5284 * ada-lang.c (ada_language_data): Remove la_name and
5285 la_natural_name initializers.
5286 (ada_language::name): New member function.
5287 (ada_language::natural_name): New member function.
5288 * c-lang.c (c_language_data): Remove la_name and
5289 la_natural_name initializers.
5290 (c_language::name): New member function.
5291 (c_language::natural_name): New member function.
5292 (cplus_language_data): Remove la_name and
5293 la_natural_name initializers.
5294 (cplus_language::name): New member function.
5295 (cplus_language::natural_name): New member function.
5296 (asm_language_data): Remove la_name and
5297 la_natural_name initializers.
5298 (asm_language::name): New member function.
5299 (asm_language::natural_name): New member function.
5300 (minimal_language_data): Remove la_name and
5301 la_natural_name initializers.
5302 (minimal_language::name): New member function.
5303 (minimal_language::natural_name): New member function.
5304 * compile/compile.c (compile_to_object): Update call to
5305 lanugage_defn::name.
5306 * d-lang.c (d_language_data): Remove la_name and
5307 la_natural_name initializers.
5308 (d_language::name): New member function.
5309 (d_language::natural_name): New member function.
5310 * expprint.c (print_subexp_standard): Update call to
5311 language_defn::name.
5312 (dump_raw_expression): Likewise
5313 (dump_prefix_expression): Likewise.
5314 * f-lang.c (f_language_data): Remove la_name and
5315 la_natural_name initializers.
5316 (f_language::name): New member function.
5317 (f_language::natural_name): New member function.
5318 * go-lang.c (go_language_data): Remove la_name and
5319 la_natural_name initializers.
5320 (go_language::name): New member function.
5321 (go_language::natural_name): New member function.
5322 * language.c (show_language_command): Update call to
5323 language_defn::name.
5324 (set_language_command): Likewise.
5325 (language_enum): Likewise.
5326 (language_str): Likewise.
5327 (add_set_language_command): Likewise, use
5328 language_defn::natural_name in the doc string.
5329 (unknown_language_data): Remove la_name and
5330 la_natural_name initializers.
5331 (unknown_language::name): New member function.
5332 (unknown_language::natural_name): New member function.
5333 (auto_language_data): Remove la_name and
5334 la_natural_name initializers.
5335 (auto_language::name): New member function.
5336 (auto_language::natural_name): New member function.
5337 (language_lookup_primitive_type_as_symbol): Update call to
5338 language_defn::name.
5339 * language.h (language_data): Remove la_name and la_natural_name
5341 (language_defn::name): New member function.
5342 (language_defn::natural_name): New member function.
5343 * m2-lang.c (m2_language_data): Remove la_name and
5344 la_natural_name initializers.
5345 (m2_language::name): New member function.
5346 (m2_language::natural_name): New member function.
5347 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5348 language_defn::natural_name.
5349 * objc-lang.c (objc_language_data): Remove la_name and
5350 la_natural_name initializers.
5351 (objc_language::name): New member function.
5352 (objc_language::natural_name): New member function.
5353 * opencl-lang.c (opencl_language_data): Remove la_name and
5354 la_natural_name initializers.
5355 (opencl_language::name): New member function.
5356 (opencl_language::natural_name): New member function.
5357 * p-lang.c (pascal_language_data): Remove la_name and
5358 la_natural_name initializers.
5359 (pascal_language::name): New member function.
5360 (pascal_language::natural_name): New member function.
5361 * rust-lang.c (rust_language_data): Remove la_name and
5362 la_natural_name initializers.
5363 (rust_language::name): New member function.
5364 (rust_language::natural_name): New member function.
5365 * symtab.c (lookup_language_this): Update call to
5366 language_defn::name.
5368 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5370 * ada-lang.c (ada_language_data): Remove la_name_of_this
5372 * ax-gdb.c (gen_expr): Update call to name_of_this.
5373 * c-exp.y (classify_name): Likewise.
5374 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5375 (cplus_language_data): Likewise.
5376 (cplus_language::name_of_this): New member function.
5377 (asm_language_data): Remove la_name_of_this initializer.
5378 (minimal_language_data): Likewise.
5379 * d-lang.c (d_language_data): Likewise.
5380 (d_language::name_of_this): New member function.
5381 * expprint.c (print_subexp_standard): Update call to name_of_this.
5382 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5383 * go-lang.c (go_language_data): Likewise.
5384 * language.c (unknown_language_data): Likewise.
5385 (unknown_language::name_of_this): New member function.
5386 (auto_language_data): Remove la_name_of_this initializer.
5387 (auto_language::name_of_this): New member function.
5388 * language.h (language_data): Delete la_name_of_this member
5390 (language_defn::name_of_this): New member function.
5391 * m2-lang.c (m2_language_data): Remove la_name_of_this
5393 * objc-lang.c (objc_language_data): Likewise.
5394 (objc_language::name_of_this): New member function.
5395 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5397 * p-lang.c (pascal_language_data): Likewise.
5398 (pascal_language::name_of_this): New member function.
5399 * rust-lang.c (rust_language_data): Remove la_name_of_this
5401 * symtab.c (lookup_language_this): Update call to name_of_this.
5402 (lookup_symbol_aux): Likewise.
5403 * valops.c (value_of_this): Likewise.
5405 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5407 * ada-lang.c (ada_language_data): Remove
5408 la_struct_too_deep_ellipsis initializer.
5409 (ada_language::struct_too_deep_ellipsis): New member function.
5410 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5412 (cplus_language_data): Likewise.
5413 (asm_language_data): Likewise.
5414 (minimal_language_data): Likewise.
5415 * cp-valprint.c (cp_print_value): Update call to
5416 struct_too_deep_ellipsis.
5417 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5419 * f-lang.c (f_language_data): Likewise.
5420 (f_language::struct_too_deep_ellipsis): New member function.
5421 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5423 * language.c (unknown_language_data): Likewise.
5424 (auto_language_data): Likewise.
5425 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5427 (language_defn::struct_too_deep_ellipsis): New member function.
5428 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5430 * objc-lang.c (objc_language_data): Likewise.
5431 * opencl-lang.c (opencl_language_data): Likewise.
5432 * p-lang.c (pascal_language_data): Likewise.
5433 * rust-lang.c (rust_language_data): Likewise.
5434 * valprint.c (val_print_check_max_depth): Update call to
5435 struct_too_deep_ellipsis.
5437 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5439 * MAINTAINERS (Write After Approval): Add myself.
5441 2020-09-15 Tom Tromey <tom@tromey.com>
5443 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5446 2020-09-15 Tom Tromey <tom@tromey.com>
5448 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5449 and TYPE_CODE_METHODPTR cases.
5450 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5451 (c_value_print_inner): Update.
5452 * valprint.c (generic_value_print_memberptr): New function, from
5453 c_value_print_memberptr.
5454 (generic_value_print): Use it. Call cplus_print_method_ptr.
5456 2020-09-15 Tom Tromey <tromey@adacore.com>
5458 * python/python-internal.h (PyInt_FromLong): Remove define.
5459 * python/py-value.c (convert_value_from_python): Use
5460 gdb_py_object_from_longest.
5461 * python/py-type.c (typy_get_code): Use
5462 gdb_py_object_from_longest.
5463 * python/py-symtab.c (salpy_get_line): Use
5464 gdb_py_object_from_longest.
5465 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5466 gdb_py_object_from_longest.
5467 * python/py-record.c (recpy_gap_reason_code): Use
5468 gdb_py_object_from_longest.
5469 * python/py-record-btrace.c (recpy_bt_insn_size)
5470 (recpy_bt_func_level, btpy_list_count): Use
5471 gdb_py_object_from_longest.
5472 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5473 gdb_py_object_from_longest. Fix error handling.
5474 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5475 gdb_py_object_from_longest.
5476 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5477 gdb_py_object_from_longest.
5478 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5479 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5480 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5482 2020-09-15 Tom Tromey <tromey@adacore.com>
5484 * python/python.c (gdbpy_parameter_value): Use
5485 gdb_py_object_from_ulongest.
5487 2020-09-15 Tom Tromey <tromey@adacore.com>
5489 * python/py-infevents.c (create_register_changed_event_object):
5490 Use gdb_py_object_from_longest.
5491 * python/py-exitedevent.c (create_exited_event_object): Use
5492 gdb_py_object_from_longest.
5494 2020-09-15 Tom Tromey <tromey@adacore.com>
5496 * python/python.c (gdbpy_parameter_value): Use
5497 gdb_py_object_from_longest.
5498 * python/py-type.c (convert_field, typy_range): Use
5499 gdb_py_object_from_longest.
5500 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5501 gdb_py_object_from_longest.
5502 * python/py-lazy-string.c (stpy_get_length): Use
5503 gdb_py_object_from_longest.
5504 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5505 gdb_py_object_from_longest.
5506 * python/py-infevents.c (create_memory_changed_event_object): Use
5507 gdb_py_object_from_longest.
5508 * python/py-inferior.c (infpy_get_num): Use
5509 gdb_py_object_from_longest.
5510 (infpy_get_pid): Likewise.
5512 2020-09-15 Tom Tromey <tromey@adacore.com>
5514 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5516 * python/py-value.c (valpy_long): Use
5517 gdb_py_object_from_ulongest.
5518 * python/py-symtab.c (salpy_get_pc): Use
5519 gdb_py_object_from_ulongest.
5520 (salpy_get_last): Likewise.
5521 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5522 gdb_py_object_from_ulongest.
5523 * python/py-lazy-string.c (stpy_get_address): Use
5524 gdb_py_object_from_ulongest.
5525 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5526 * python/py-arch.c (archpy_disassemble): Use
5527 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5530 2020-09-15 Tom Tromey <tromey@adacore.com>
5532 * python/python-internal.h (gdb_py_long_from_longest): Remove
5534 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5535 * python/py-type.c (convert_field, typy_get_sizeof): Use
5536 gdb_py_object_from_longest.
5537 * python/py-record-btrace.c (btpy_list_index): Use
5538 gdb_py_object_from_longest.
5540 2020-09-15 Tom Tromey <tromey@adacore.com>
5542 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5543 * python/py-record.c (recpy_element_number): Use
5544 gdb_py_object_from_longest.
5545 (recpy_gap_number): Likewise.
5547 2020-09-15 Tom Tromey <tromey@adacore.com>
5549 * top.c (ui::ui): Update.
5550 (highest_ui_num): Remove.
5551 * top.h (struct ui) <num>: Remove.
5553 2020-09-15 Tom Tromey <tromey@adacore.com>
5555 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5556 * ui-style.c (ansi_regex_text): Now array.
5557 * rust-exp.y (number_regex_text): Now array.
5558 * linespec.c (linespec_quote_characters): Now array.
5559 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5562 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5564 * debuginfod-support.c (debuginfod_client_deleter): New.
5565 (debuginfod_client_up): New.
5566 (debuginfod_init): Return debuginfod_client_up.
5567 (debuginfod_source_query): Adjust.
5568 (debuginfod_debuginfo_query): Adjust.
5570 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5572 * debuginfod-support.c (debuginfod_source_query): Use
5573 make_unique_xstrdup.
5575 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5577 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5578 with `type::instance_flags`.
5580 2020-09-14 Michael Mullin <masmullin@gmail.com>
5582 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5583 Remove baton parameter.
5585 2020-09-14 Pedro Alves <pedro@palves.net>
5587 * Makefile.in (SELFTESTS_SRCS): Add
5588 unittests/enum-flags-selftests.c.
5589 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5590 btrace_function_flags instead of enum btrace_function_flag.
5591 * compile/compile-c-types.c (convert_qualified): Use
5593 * compile/compile-cplus-symbols.c (convert_one_symbol)
5594 (convert_symbol_bmsym):
5595 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5596 (compile_cplus_convert_struct_or_union_methods)
5597 (compile_cplus_instance::convert_qualified_base):
5598 * go-exp.y (parse_string_or_char): Add cast to int.
5599 * unittests/enum-flags-selftests.c: New file.
5600 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5601 type to btrace_thread_flags from btrace_thread_flag.
5602 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5603 local's type to btrace_thread_flags from btrace_thread_flag. Add
5606 2020-09-14 Pedro Alves <pedro@palves.net>
5608 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5609 * gdbtypes.c (address_space_name_to_int): Rename to ...
5610 (address_space_name_to_type_instance_flags): ... this.
5611 (address_space_int_to_name): Rename to ...
5612 (address_space_type_instance_flags_to_name): ... this.
5613 * gdbtypes.h (address_space_name_to_int): Rename to ...
5614 (address_space_name_to_type_instance_flags): ... this.
5615 (address_space_int_to_name): Rename to ...
5616 (address_space_type_instance_flags_to_name): ... this.
5617 * type-stack.c (type_stack::insert): Adjust to rename.
5618 * type-stack.h (type_stack::insert): Likewise.
5620 2020-09-14 Pedro Alves <pedro@palves.net>
5621 Andrew Burgess <andrew.burgess@embecosm.com>
5623 * avr-tdep.c (avr_address_class_type_flags): Return
5624 type_instance_flags.
5625 (avr_address_class_type_flags_to_name): Take a
5626 type_instance_flags.
5627 (avr_address_class_name_to_type_flags): Return bool and take a
5628 type_instance_flags.
5629 * d-lang.c (build_d_types): Use type::set_instance_flags.
5630 * ft32-tdep.c (ft32_address_class_type_flags): Return
5631 type_instance_flags.
5632 (ft32_address_class_type_flags_to_name): Take a
5633 type_instance_flags.
5634 (ft32_address_class_name_to_type_flags): Return bool and take a
5635 type_instance_flags.
5636 (ft32_gdbarch_init): Use type::set_instance_flags.
5637 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5638 * gdbarch.h, gdbarch.c: Regenerate.
5639 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5640 (address_class_name_to_type_flags): Use type_instance_flags and
5642 * gdbtypes.c (address_space_name_to_int)
5643 (address_space_int_to_name, make_qualified_type): Use
5644 type_instance_flags.
5645 (make_qualified_type): Use type_instance_flags and
5646 type::set_instance_flags.
5647 (make_type_with_address_space, make_cv_type, make_vector_type)
5648 (check_typedef): Use type_instance_flags.
5649 (recursive_dump_type): Cast type_instance_flags to unsigned for
5651 (copy_type_recursive): Use type::set_instance_flags.
5652 (gdbtypes_post_init): Use type::set_instance_flags.
5653 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5654 <m_instance_flags>: ... this.
5655 <instance_flags, set_instance_flags>: New methods.
5656 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5657 (SET_TYPE_INSTANCE_FLAGS): New.
5658 (address_space_name_to_int, address_space_int_to_name)
5659 (make_type_with_address_space): Pass flags using
5660 type_instance_flags instead of int.
5661 * stabsread.c (cleanup_undefined_types_noname): Use
5662 type::set_instance_flags.
5663 * s390-tdep.c (s390_address_class_type_flags): Return
5664 type_instance_flags.
5665 (s390_address_class_type_flags_to_name): Take a
5666 type_instance_flags.
5667 (s390_address_class_name_to_type_flags): Return bool and take a
5668 type_instance_flags.
5669 * type-stack.c (type_stack::follow_types): Use
5670 type_instance_flags.
5671 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5673 2020-09-14 Tom Tromey <tromey@adacore.com>
5675 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5676 * x86-tdep.c (x86_is_thunk_register_name)
5677 (x86_in_indirect_branch_thunk): Update.
5678 * sparc64-tdep.c (sparc64_fpu_register_names)
5679 (sparc64_cp0_register_names, sparc64_register_names)
5680 (sparc64_pseudo_register_names): Now const.
5681 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5682 cp0_registers_num>: Now const.
5683 * sparc-tdep.c (sparc_core_register_names)
5684 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5685 (sparc32_pseudo_register_names): Now const.
5686 (validate_tdesc_registers): Update.
5687 * rust-lang.c (rust_extensions): Now const.
5688 * p-lang.c (p_extensions): Now const.
5689 * objc-lang.c (objc_extensions): Now const.
5690 * nto-tdep.c (nto_thread_state_str): Now const.
5691 * moxie-tdep.c (moxie_register_names): Now const.
5692 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5694 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5695 (mips_linux_reg_names): Now const.
5696 (mips_gdbarch_init): Update.
5697 * microblaze-tdep.c (microblaze_register_names): Now const.
5698 * m68k-tdep.c (m68k_register_names): Now const.
5699 * m32r-tdep.c (m32r_register_names): Now const.
5700 * ia64-tdep.c (ia64_register_names): Now const.
5701 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5702 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5703 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5704 ymm_avx512_register_names, pkeys_register_names>: Now const.
5705 * i386-tdep.c (i386_register_names, i386_zmm_names)
5706 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5707 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5708 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5709 * f-lang.c (f_extensions): Now const.
5710 * d-lang.c (d_extensions): Now const.
5711 * csky-tdep.c (csky_register_names): Now const.
5712 * charset.c (default_charset_names, charset_enum): Now const.
5713 (_initialize_charset): Update.
5714 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5716 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5717 (bsd_uthread_solib_loaded): Update.
5718 (bsd_uthread_state): Now const.
5719 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5720 (amd64_ymm_avx512_names, amd64_ymmh_names)
5721 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5722 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5723 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5724 (amd64_dword_names): Now const.
5725 * agent.c (can_use_agent_enum): Now const.
5726 * ada-tasks.c (task_states, long_task_states): Now const.
5727 * ada-lang.c (known_runtime_file_name_patterns)
5728 (known_auxiliary_function_name_patterns, attribute_names)
5729 (standard_exc, ada_extensions): Now const.
5731 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5733 * bcache.h (struct bcache) <bcache>: Remove constructor.
5734 <m_hash_function, m_compare_function>: Remove.
5735 <~bcache>: Make virtual.
5736 <compare>: Remove static method, introduce virtual method.
5737 <default_hash>: Remove.
5738 <hash>: New virtual method.
5739 * bcache.c (bcache::expand_hash_table): Update.
5740 (bcache::insert): Update.
5741 (bcache::hash): New.
5742 (bcache::compare): Update comment and parameter names.
5743 * gdbtypes.c (types_deeply_equal): Update.
5744 * psymtab.h (struct psymbol_bcache): New struct.
5745 (class psymtab_storage) <psymtab_storage>: Make default.
5746 <psymbol_cache>: Change type to psymbol_bcache.
5747 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5748 (psymbol_hash): Change to...
5749 (psymbol_bcache::hash): ... this.
5750 (psymbol_compare): Change to...
5751 (psymbol_bcache::compare): ... this.
5753 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5755 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5756 checking for initial lwp.
5758 2020-09-14 Tom Tromey <tromey@adacore.com>
5760 * m68k-tdep.c (m68k_extract_return_value): Use
5761 pointer_result_regnum.
5762 (m68k_store_return_value): Likewise.
5763 (m68k_reg_struct_return_p): Handle vectors and arrays.
5764 (m68k_return_value): Handle arrays.
5765 (m68k_svr4_return_value): Fix single-element aggregate handling.
5766 Handle long double. Adjust for embedded ABI.
5767 (m68k_svr4_init_abi): Set pointer_result_regnum.
5768 (m68k_embedded_init_abi): New function.
5769 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5770 (m68k_osabi_sniffer): New function.
5771 (_initialize_m68k_tdep): Register osabi sniffer.
5772 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5775 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5777 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5778 with gdb::unique_xmalloc_ptr<char>.
5780 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5782 * xml-support.h (xml_fetch_another): Change type to be a
5784 (xml_process_xincludes): Remove baton parameter.
5785 (xml_fetch_content_from_file): Change baton parameter to
5787 * xml-support.c (struct xinclude_parsing_data)
5788 <xinclude_parsing_data>: Remove baton parameter.
5789 <fetcher_baton>: Remove.
5790 (xinclude_start_include): Adjust.
5791 (xml_process_xincludes): Adjust.
5792 (xml_fetch_content_from_file): Replace baton parameter with
5794 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5795 (xml_init_syscalls_info): Use a lambda.
5796 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5797 (file_read_description_xml): Use a lambda.
5798 (fetch_available_features_from_target): Change baton parameter
5800 (target_read_description_xml): Use a lambda.
5801 (target_fetch_description_xml): Use a lambda.
5802 (string_read_description_xml): Update.
5804 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5806 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5807 uses with type::endianity_is_not_default.
5809 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5811 * gdbtypes.h (struct type) <endianity_is_not_default,
5812 set_endianity_is_not_default>: New methods.
5813 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5814 type::endianity_is_not_default, change all write call sites to
5815 use type::set_endianity_is_not_default.
5817 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5819 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5820 uses with type::is_fixed_instance.
5822 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5824 * gdbtypes.h (struct type) <is_fixed_instance,
5825 set_is_fixed_instance>: New methods.
5826 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5827 write call sites to use type::set_is_fixed_instance.
5829 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5831 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5832 uses with type::is_gnu_ifunc.
5834 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5836 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5837 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5838 use type::set_is_gnu_ifunc.
5840 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5842 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5843 uses with type::stub_is_supported.
5845 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5847 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5848 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5849 use type::set_stub_is_supported.
5851 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5853 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5854 uses with type::is_vector.
5856 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5858 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5859 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5860 use type::set_is_vector.
5862 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5864 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5865 uses with type::has_varargs.
5867 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5869 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5870 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5871 use type::set_has_varargs.
5873 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5875 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5876 uses with type::is_prototyped.
5878 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5880 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5882 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5883 call sites to use type::set_is_prototyped.
5885 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5887 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5888 uses with type::target_is_stub.
5890 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5892 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5894 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5895 sites to use type::set_target_is_stub.
5897 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5899 * gdbtypes.h (TYPE_STUB): Remove, replace all
5900 uses with type::is_stub.
5902 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5904 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5905 (TYPE_STUB): Use type::is_stub, change all write call sites to
5906 use type::set_is_stub.
5908 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5910 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5911 type::has_no_signedness.
5913 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5915 * gdbtypes.h (struct type) <has_no_signedness,
5916 set_has_no_signedness>: New methods.
5917 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5918 call sites to use type::set_has_no_signedness.
5920 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5922 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5925 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5927 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5929 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5930 sites to use type::set_is_unsigned.
5932 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5933 Adam Renquinha <arenquinha@cimeq.qc.ca>
5935 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5936 pointer and stack frame offset when unwinding.
5938 2020-09-13 Pedro Alves <pedro@palves.net>
5940 * NEWS: Document "-break-insert --qualified".
5941 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5943 2020-09-13 Pedro Alves <pedro@palves.net>
5945 * linespec.c (classify_mtype, compare_msyms): Delete.
5946 (search_minsyms_for_name): Remove classification logic. Instead
5947 filter out trampoline symbols if we also found an external
5948 function of the same name.
5950 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5952 * NEWS: Create a new section for the next release branch.
5953 Rename the section of the current branch, now that it has
5956 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5958 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5959 * version.in: Bump version to 11.0.50.DATE-git.
5961 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5963 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5965 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5966 Felix Willgerodt <Felix.Willgerodt@intel.com>
5968 * gdbarch.sh: Added bfloat16 type.
5969 * gdbarch.c: Regenerated.
5970 * gdbarch.h: Regenerated.
5971 * gdbtypes.c (floatformats_bfloat16): New struct.
5972 (gdbtypes_post_init): Add builtin_bfloat16.
5973 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5974 (floatformats_bfloat16): New struct.
5975 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5976 (i386_ymm_type): Add field "v16_bfloat16"
5977 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5978 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5979 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5980 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5981 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5982 * features/i386/64bit-avx512.c: Regenerated.
5983 * features/i386/64bit-sse.xml: Add bfloat16 type.
5984 * features/i386/64bit-sse.c: Regenerated.
5986 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5988 * i386-tdep.c (i386_zmm_type): Fix field names.
5989 (i386_ymm_type): Fix field names.
5991 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5993 * breakpoint.c: Fix typo in the help message of the
5994 "set breakpoint condition-evaluation" command.
5996 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5998 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5999 * (nbsd_nat_target::pid_to_exec_file)
6000 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
6001 (nbsd_nat_target::post_startup_inferior)
6002 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
6003 (nbsd_add_threads): Switch local code to common gdb/nat functions.
6004 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
6005 * (nbsd_thread_lister): Remove.
6007 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6009 * fork-inferior.c (startup_inferior): Avoid double free.
6011 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6013 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
6014 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
6016 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6018 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
6019 * netbsd-nat.c: Include <sys/ptrace.h>.
6020 * (netbsd_nat::enable_proc_events): Add.
6022 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6024 * netbsd-nat.h: Include "gdbsupport/function-view.h".
6025 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
6026 (netbsd_nat::for_each_thread): Add.
6027 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
6028 "gdbsupport/common-debug.h".
6029 * (netbsd_nat::netbsd_thread_lister)
6030 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
6031 (netbsd_nat::for_each_thread): Add.
6033 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6035 * netbsd-nat.h: Include <unistd.h>.
6036 * (netbsd_nat::pid_to_exec_file): Add.
6037 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
6038 * (netbsd_nat::pid_to_exec_file) Add.
6040 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6042 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
6044 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6046 * netbsd-nat.h: New file.
6047 * netbsd-nat.c: Likewise.
6049 2020-09-09 Tom Tromey <tromey@adacore.com>
6051 * ada-lang.c (remove_extra_symbols): Do not increment when
6054 2020-09-08 Tom Tromey <tromey@adacore.com>
6056 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
6058 2020-09-08 Tom Tromey <tromey@adacore.com>
6061 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
6062 (gdb_bfd_init_data): New function.
6063 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
6065 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6067 * infrun.c (fetch_inferior_event): Use
6068 `switch_to_target_no_thread` to switch the target.
6070 2020-09-06 Tom Tromey <tom@tromey.com>
6072 * symfile.h (dwarf2_free_objfile): Don't declare.
6074 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6076 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
6077 to match 16 byte real/complex type generated by Flang compiler.
6079 2020-09-03 Tom de Vries <tdevries@suse.de>
6082 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
6083 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
6085 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
6087 * maint.c (index_digits): New function.
6088 (struct maint_print_section_data): Remove.
6089 (print_bfd_section_info): Remove print_data parameter, add arg
6091 (print_objfile_section_info): Likewise.
6092 (print_bfd_section_info_maybe_relocated): Likewise (plus
6094 (maintenance_info_sections): Adjust calls.
6096 2020-09-02 Tom Tromey <tromey@adacore.com>
6098 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
6100 (ada_varobj_adjust_for_child_access): Special-case null pointers.
6102 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
6104 * bcache.h (struct bcache) <insert>: Change type of `added` to
6106 * bcache.c (bcache::insert): Likewise.
6107 * gdbtypes.c (check_types_worklist): Adjust.
6108 * psymtab.c (add_psymbol_to_bcache): Adjust.
6110 2020-08-31 Kevin Buettner <kevinb@redhat.com>
6112 * corelow.c (unordered_set): Include.
6113 (class core_target): Add field 'm_core_unavailable_mappings'.
6114 (core_target::build_file_mappings): Print only one warning
6115 per inaccessible file. Add unavailable/broken mappings
6116 to m_core_unavailable_mappings.
6117 (core_target::xfer_partial): Call...
6118 (core_target::xfer_memory_via_mappings): New method.
6120 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6122 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
6125 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6127 * dwarf2/read.c (struct field_info): Fix indentation.
6129 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6131 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
6132 ordering in comment.
6133 * frame.c (frame_id_eq): Fix indentation.
6135 2020-08-31 Scott Linder <scott@scottlinder.com>
6136 Simon Marchi <simon.marchi@efficios.com>
6138 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
6139 inline frame ids in outer frame.
6141 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6143 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
6144 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
6145 (outer_frame_id): Use FID_STACK_OUTER instead of
6147 (frame_id_p): Don't check for outer_frame_id.
6149 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6151 * frame-unwind.c (frame_unwind_got_optimized): Don't set
6152 regnum/frame in value. Call allocate_value_lazy.
6153 * frame.c (frame_unwind_register_value): Use
6154 val_print_not_saved.
6156 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6158 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
6160 2020-08-29 Pedro Alves <pedro@palves.net>
6162 * progspace.c (print_program_space): Use all_inferiors. Switch to
6163 the inferior before calling target_pid_to_str.
6165 2020-08-28 Tom Tromey <tom@tromey.com>
6167 * xcoffread.c (xcoff_end_psymtab): Update comment.
6168 * dbxread.c (dbx_end_psymtab): Update comment.
6170 2020-08-28 Tom de Vries <tdevries@suse.de>
6173 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
6175 (create_breakpoint): Same.
6176 (base_breakpoint_decode_location): Same.
6177 (bkpt_create_sals_from_location): Same.
6178 (bkpt_decode_location): Same.
6179 (bkpt_probe_create_sals_from_location): Same.
6180 (bkpt_probe_decode_location): Same.
6181 (tracepoint_create_sals_from_location): Same.
6182 (tracepoint_decode_location): Same.
6183 (tracepoint_probe_decode_location): Same.
6184 (strace_marker_create_sals_from_location): Same.
6185 (strace_marker_decode_location): Same.
6186 (create_sals_from_location_default): Same.
6187 (decode_location_default): Same.
6188 * breakpoint.h (struct breakpoint_ops): Same.
6189 (create_breakpoint): Same.
6190 * linespec.h (decode_line_full): Same.
6191 * linespec.c (decode_line_full): Same. Throw error if
6192 result.size () == 0.
6194 2020-08-27 Pedro Alves <pedro@palves.net>
6197 * breakpoint.c (until_break_fsm) <location_breakpoint,
6198 caller_breakpoint>: Delete fields.
6199 <breakpoints>: New field.
6200 <until_break_fsm>: Adjust to save a breakpoint vector instead of
6201 two individual breakpoints.
6202 (until_break_fsm::should_stop): Loop over breakpoints in the
6204 (until_break_fsm::clean_up): Adjust to clear the breakpoints
6206 (until_break_command): Handle location expanding into multiple
6209 2020-08-27 Pedro Alves <pedro@palves.net>
6212 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
6213 bp_until breakpoints user-specified locations. Update intro
6216 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
6218 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
6219 gdb_bfd_sections): New.
6220 * maint.c (print_bfd_section_info): Change param type to
6221 maint_print_section_data.
6222 (print_objfile_section_info): Likewise.
6223 (print_bfd_section_info_maybe_relocated): Likewise.
6224 (maintenance_info_sections): Use gdb_bfd_sections.
6226 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6228 * MAINTAINERS: Add ARC target and maintainer.
6230 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
6232 * configure.tgt: ARC support for GNU/Linux.
6233 * Makefile.in (ALL_TARGET_OBJS): Likewise.
6234 * arc-linux-tdep.c: New file.
6235 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
6236 * arc-tdep.c (arc_write_pc): Use it.
6238 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6240 * arc-tdep.c (arc_check_for_hardware_loop): New.
6241 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
6243 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6245 * arc-tdep.h: Include "gdbarch.h".
6247 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6250 (arc_gdbarch_features): New class to stir the selection of target XML.
6251 (arc_create_target_description): Use FEATURES to choose XML target.
6252 (arc_lookup_target_description): Use arc_create_target_description
6253 to create _new_ target descriptions or return the already created
6254 ones if the FEATURES is the same.
6255 * arch/arc.c: Implementation of prototypes described above.
6256 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6257 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6258 * arc-tdep.c (*_feature_name): Make feature names consistent.
6259 (arc_register_feature): A new struct to hold information about
6260 registers of a particular target/feature.
6261 (arc_check_tdesc_feature): Check if XML provides registers in
6262 compliance with ARC_REGISTER_FEATURE structs.
6263 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6264 (determine_*_reg_feature_set): Which feature name to look for.
6265 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6266 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6267 to expected ISA enums to be used in arc_gdbarch_features structs.
6268 * features/Makefile (FEATURE_XMLFILES): Add new files.
6269 * gdb/features/arc/v1-aux.c: New file.
6270 * gdb/features/arc/v1-aux.xml: Likewise.
6271 * gdb/features/arc/v1-core.c: Likewise.
6272 * gdb/features/arc/v1-core.xml: Likewise.
6273 * gdb/features/arc/v2-aux.c: Likewise.
6274 * gdb/features/arc/v2-aux.xml: Likewise.
6275 * gdb/features/arc/v2-core.c: Likewise.
6276 * gdb/features/arc/v2-core.xml: Likewise.
6277 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6279 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6280 Andrew Burgess <andrew.burgess@embecosm.com>
6283 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
6284 an assert. Remove single element array indexing pattern as the
6285 MULTI_SUBSCRIPT support will handle this case too.
6287 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6289 * value.h (valprint_check_validity): Move declaration from
6291 * valprint.h (valprint_check_validity): ... to here.
6293 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6295 * debug.h: New file.
6296 * debug.c (debug_prefixed_vprintf): New function.
6297 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6298 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6300 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6302 * infrun.h (infrun_debug_printf_1): New function declaration.
6303 (infrun_debug_printf): New macro.
6304 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6306 (infrun_debug_printf): New function.
6307 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6308 (handle_jit_event): Likewise.
6310 2020-08-21 Mark Wielaard <mark@klomp.org>
6312 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6314 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
6316 * frame.c (enum class frame_id_status): New.
6317 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6318 (fprintf_frame): Update.
6319 (compute_frame_id): Set frame id status to "computing" on entry.
6320 Set it back to "not_computed" on failure and to "computed" on
6322 (get_frame_id): Assert the frame id is not being computed.
6323 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6324 (create_new_frame): Likewise.
6325 (frame_cleanup_after_sniffer): Update assert.
6327 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6329 * regcache.c (pid_ptid_regcache_map): New type.
6330 (target_ptid_regcache_map): Remove.
6331 (target_pid_ptid_regcache_map): New type.
6332 (regcaches): Change type to target_pid_ptid_regcache_map.
6333 (get_thread_arch_aspace_regcache): Update.
6334 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6336 (regcaches_size): Update.
6337 (regcache_count): Update.
6338 (registers_changed_ptid_target_pid_test): New.
6339 (_initialize_regcache): Register new test.
6341 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6343 * regcache.c (regcache_count): New.
6344 (struct regcache_test_data): New.
6345 (regcache_test_data_up): New.
6346 (populate_regcaches_for_test): New.
6347 (regcaches_test): Remove.
6348 (get_thread_arch_aspace_regcache_test): New.
6349 (registers_changed_ptid_all_test): New.
6350 (registers_changed_ptid_target_test): New.
6351 (registers_changed_ptid_target_ptid_test): New.
6352 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6353 (_initialize_regcache): Register new tests.
6355 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6357 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6358 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6359 gdbarch and aspace parameter. Use current inferior's aspace.
6360 Validate regcache's arch value.
6361 (regcaches_test): Update.
6363 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6365 * regcache.c (regcaches_test): Call registers_changed.
6367 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6369 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6371 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6373 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6374 to find the end of prologue for flang compiled binaries.
6375 * arm-tdep.c (arm_skip_prologue): Likewise.
6376 * i386-tdep.c (i386_skip_prologue): Likewise.
6377 * producer.c (producer_is_llvm): New function.
6378 (producer_parsing_tests): Added new tests for clang/flang.
6379 * producer.h (producer_is_llvm): New declaration.
6381 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6383 * linux-nat.c (linux_nat_debug_printf): New function.
6384 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6386 2020-08-18 Aaron Merey <amerey@redhat.com>
6388 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6389 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6390 (CLIBS): Add DEBUGINFOD_LIBS.
6392 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6394 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6397 2020-08-17 Tom Tromey <tromey@adacore.com>
6399 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6400 ada_get_decoded_value returns NULL.
6402 2020-08-17 Tom Tromey <tromey@adacore.com>
6404 * python/py-inferior.c (infpy_search_memory): Use
6405 gdb_py_object_from_ulongest.
6406 * python/py-infevents.c (create_inferior_call_event_object)
6407 (create_memory_changed_event_object): Use
6408 gdb_py_object_from_ulongest.
6409 * python/py-linetable.c (ltpy_entry_get_pc): Use
6410 gdb_py_object_from_ulongest.
6412 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6414 * loc.c (class symbol_needs_eval_context): Fix indentation.
6416 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6418 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6421 2020-08-17 Tom de Vries <tdevries@suse.de>
6424 * gdbtypes.c (dump_dynamic_prop): New function.
6425 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6427 2020-08-15 Tom de Vries <tdevries@suse.de>
6430 * stack.c (print_frame_args): Temporarily set the selected
6431 frame to FRAME while printing the frame's arguments.
6433 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6435 PR breakpoints/26385
6436 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6437 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6439 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6441 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6442 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6443 and >= to check return value instead of == -1 and != -1.
6445 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6447 * utils.h (class gdb_argv) <as_array_view>: New method.
6448 * utils.c (gdb_argv_as_array_view_test): New.
6449 (_initialize_utils): Register selftest.
6450 * maint.c (maintenance_selftest): Use the new method.
6452 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6454 * target.h (supports_dumpcore, dumpcore): New
6455 function declarations.
6456 * target.c (supports_dumpcore, dumpcore): New
6458 * target-delegates.c: Rebuild.
6459 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6460 and target_dumpcore ().
6462 2020-08-13 Aaron Merey <amerey@redhat.com>
6464 * debuginfod-support.c: Replace global variables with user_data.
6466 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6468 * maint.c (maintenance_selftest): Split args and pass array_view
6471 2020-08-12 Luis Machado <luis.machado@linaro.org>
6473 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6475 Use %s and pulongest to print the length.
6477 2020-08-12 Pedro Alves <palves@redhat.com>
6479 * NEWS: Move "Multi-target debugging support" item to the
6480 "Changes since GDB 9" section.
6482 2020-08-12 Pedro Alves <palves@redhat.com>
6485 * progspace.c (program_space::remove_objfile): Invalidate the
6488 2020-08-11 Tom de Vries <tdevries@suse.de>
6490 * MAINTAINERS: Mark ms1 as deleted.
6492 2020-08-10 Luis Machado <luis.machado@linaro.org>
6496 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6498 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6499 movz/str/stur/stp skipping behavior.
6501 2020-08-10 Luis Machado <luis.machado@linaro.org>
6503 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6504 struct user_sve_header instead of struct sve_context.
6506 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6508 * read.h (dwarf2_fetch_die_loc_sect_off,
6509 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6510 `void *` parameter with function_view.
6511 * read.c (dwarf2_fetch_die_loc_sect_off,
6512 dwarf2_fetch_die_loc_cu_off): Likewise.
6513 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6514 (per_cu_dwarf_call): Adjust.
6515 (get_frame_address_in_block_wrapper): Remove.
6516 (indirect_synthetic_pointer): Adjust.
6517 (get_ax_pc): Remove.
6518 (dwarf2_compile_expr_to_ax): Adjust.
6520 2020-08-08 Tom de Vries <tdevries@suse.de>
6523 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6525 * regcache.c (get_thread_arch_aspace_regcache): Same.
6527 2020-08-07 Tom Tromey <tromey@adacore.com>
6529 * ravenscar-thread.c
6530 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6532 (ravenscar_thread_target::wait): Check
6533 runtime_initialized.
6534 (ravenscar_thread_target::prepare_to_store)
6535 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6536 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6537 (ravenscar_thread_target::stopped_by_watchpoint)
6538 (ravenscar_thread_target::stopped_data_address)
6539 (ravenscar_thread_target::core_of_thread): Use
6540 scoped_restore_current_thread and
6541 set_base_thread_from_ravenscar_task.
6543 2020-08-07 Tom Tromey <tromey@adacore.com>
6545 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6547 2020-08-07 Tom Tromey <tromey@adacore.com>
6549 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6550 update_inferior_ptid before update_thread_list.
6551 (temporarily_change_regcache_ptid): New class.
6552 (ravenscar_thread_target::fetch_registers)
6553 (ravenscar_thread_target::store_registers)
6554 (ravenscar_thread_target::prepare_to_store): Use base thread when
6555 forwarding operation.
6557 2020-08-07 Tom Tromey <tromey@adacore.com>
6559 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6562 2020-08-07 Tom Tromey <tromey@adacore.com>
6564 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6566 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6568 (ravenscar_thread_target::add_thread): Rename from
6569 ravenscar_add_thread.
6570 (ravenscar_thread_target::update_thread_list): Use a lambda.
6571 (ravenscar_thread_target::xfer_partial): New method.
6573 2020-08-07 Tom Tromey <tromey@adacore.com>
6575 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6577 (iterate_over_live_ada_tasks): Change type of argument.
6578 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6581 2020-08-07 Tom Tromey <tromey@adacore.com>
6583 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6585 (ravenscar_thread_target::extra_thread_info): Remove.
6586 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6587 defer to target beneath for non-Ravenscar threads.
6589 2020-08-07 Tom Tromey <tromey@adacore.com>
6591 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6592 get_base_thread_from_ravenscar_task>: Now methods.
6593 <m_cpu_map>: New member.
6594 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6595 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6596 (ravenscar_thread_target::task_is_currently_active): Update.
6597 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6599 (ravenscar_thread_target::add_active_thread): Put initial thread
6602 2020-08-07 Tom Tromey <tromey@adacore.com>
6604 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6607 2020-08-07 Tom Tromey <tromey@adacore.com>
6609 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6610 runtime_initialized.
6612 2020-08-07 Tom Tromey <tromey@adacore.com>
6614 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6616 (ravenscar_thread_target::add_active_thread): Now public.
6617 (ravenscar_inferior_created): Call add_active_thread after pushing
6620 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6622 * regcache.c (ptid_regcache_map): New type.
6623 (target_ptid_regcache_map): New type.
6624 (regcaches): Change type to target_ptid_regcache_map.
6625 (get_thread_arch_aspace_regcache): Update to regcaches' new
6627 (regcache_thread_ptid_changed): Likewise.
6628 (registers_changed_ptid): Likewise.
6629 (regcaches_size): Likewise.
6630 (regcaches_test): Update.
6631 (regcache_thread_ptid_changed): Update.
6632 * regcache.h (regcache_up): New type.
6633 * gdbsupport/ptid.h (hash_ptid): New struct.
6635 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6637 * observable.h (thread_ptid_changed): Add parameter
6638 `process_stratum_target *`.
6639 * infrun.c (infrun_thread_ptid_changed): Add parameter
6640 `process_stratum_target *` and use it.
6641 (selftests): New namespace.
6642 (infrun_thread_ptid_changed): New function.
6643 (_initialize_infrun): Register selftest.
6644 * regcache.c (regcache_thread_ptid_changed): Add parameter
6645 `process_stratum_target *` and use it.
6646 (regcache_thread_ptid_changed): New function.
6647 (_initialize_regcache): Register selftest.
6648 * thread.c (thread_change_ptid): Pass target to
6649 thread_ptid_changed observable.
6651 2020-08-06 Caroline Tice <cmtice@google.com>
6653 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6654 (struct dwp_sections): Update field comments. Add loclists and
6656 (struct virtual_v2_dwo_sections): Rename struct to
6657 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6658 size & offset fields for loclists and rnglists.
6659 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6660 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6661 skipping dummy type units.
6662 (create_dwp_hash_table): Update the large comment above the function to
6663 discuss Version 5 DWP files as well, with references. Update all the
6664 version checks in the function to check for version 5 as well. Add new
6665 section at the end to create dwp hash table for version 5.
6666 (create_dwp_v2_section): Rename function to
6667 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6668 Add V5 to error message text.
6669 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6670 into calls to create_dwp_v2_or_v5_section.
6671 (create_dwo_unit_in_dwp_v5): New function.
6672 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6673 check for version2; add else clause to handle version 5.
6674 (open_and_init_dwo_file): Add code to check dwarf version & only call
6675 create_debug_types_hash_table (with sections.types) if version is not 5;
6676 else call create_debug_type_hash_table, with sections.info.
6677 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6679 (dwarf2_locate_v5_dwp_sections): New function.
6680 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6681 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6683 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6685 * regcache.h (class regcache): Remove friend
6686 registers_changed_ptid.
6687 <regcache_thread_ptid_changed>: Remove.
6688 <regcaches>: Remove.
6689 * regcache.c (regcache::regcaches): Rename to...
6690 (regcaches): ... this. Make static.
6691 (get_thread_arch_aspace_regcache): Update.
6692 (regcache::regcache_thread_ptid_changed): Rename to...
6693 (regcache_thread_ptid_changed): ... this. Update.
6694 (class regcache_access): Remove.
6695 (regcaches_test): Update.
6696 (_initialize_regcache): Update.
6697 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6700 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6702 * regcache.h (class regcache) <current_regcache>: Rename to...
6703 <regcaches>: ... this. Move doc here.
6704 * regcache.c (regcache::current_regcache) Rename to...
6705 (regcache::regcaches): ... this. Move doc to header.
6706 (get_thread_arch_aspace_regcache): Update.
6707 (regcache::regcache_thread_ptid_changed): Update.
6708 (registers_changed_ptid): Update.
6709 (class regcache_access) <current_regcache_size>: Rename to...
6710 <regcaches_size>: ... this.
6711 (current_regcache_test): Rename to...
6712 (regcaches_test): ... this.
6713 (_initialize_regcache): Update.
6715 2020-08-06 Victor Collod <vcollod@nvidia.com>
6717 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6719 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6721 * corelow.c (core_target::build_file_mappings): Don't output
6722 null pathname in warning.
6724 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6726 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6727 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6728 gdb.dwarf2/dw2-single-line-discriminators.exp,
6729 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6731 2020-08-05 Tom Tromey <tromey@adacore.com>
6734 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6735 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6736 Fix off-by-one and type size errors in ordinary case.
6738 2020-08-05 Tom de Vries <tdevries@suse.de>
6740 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6741 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6743 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6745 * frame.h (frame_id_p): Return bool.
6746 (frame_id_artificial_p): Return bool.
6747 (frame_id_eq): Return bool.
6748 (has_stack_frames): Return bool.
6749 (get_selected_frame): Fix typo in comment.
6750 (get_frame_pc_if_available): Return bool.
6751 (get_frame_address_in_block_if_available): Return bool.
6752 (get_frame_func_if_available): Return bool.
6753 (read_frame_register_unsigned): Return bool.
6754 (get_frame_register_bytes): Return bool.
6755 (safe_frame_unwind_memory): Return bool.
6756 (deprecated_frame_register_read): Return bool.
6757 (frame_unwinder_is): Return bool.
6758 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6760 <this_id::p>: Likewise.
6762 (frame_stash_add): Return bool.
6763 (get_frame_id): Use bool.
6764 (frame_id_build_special) Use bool.
6765 (frame_id_build_unavailable_stack): Use bool.
6766 (frame_id_build): Use bool.
6767 (frame_id_p): Return bool, use true/false instead of 1/0.
6768 (frame_id_artificial_p): Likewise.
6769 (frame_id_eq): Likewise.
6770 (frame_id_inner): Likewise.
6771 (get_frame_func_if_available): Likewise.
6772 (read_frame_register_unsigned): Likewise.
6773 (deprecated_frame_register_read): Likewise.
6774 (get_frame_register_bytes): Likewise.
6775 (has_stack_frames): Likewise.
6776 (inside_main_func): Likewise.
6777 (inside_entry_func): Likewise.
6778 (get_frame_pc_if_available): Likewise.
6779 (get_frame_address_in_block_if_available): Likewise.
6780 (frame_unwinder_is): Likewise.
6781 (safe_frame_unwind_memory): Likewise.
6782 (frame_unwind_arch): Likewise.
6784 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6786 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6787 type to cached_copy_status.
6788 (fprintf_frame): Adjust.
6789 (get_frame_func_if_available): Adjust.
6790 (frame_cleanup_after_sniffer): Adjust.
6792 2020-08-04 Mark Wielaard <mark@klomp.org>
6794 * MAINTAINERS (Write After Approval): Update email address.
6796 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6798 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6799 dynamic_prop::const_val.
6801 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6803 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6806 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6808 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6810 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6812 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6814 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6815 Jose E. Marchesi <jose.marchesi@oracle.com>
6817 * configure.tgt: Add entry for bpf-*-*.
6818 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6819 (ALLDEPFILES): Add bpf-tdep.c.
6820 * bpf-tdep.c: New file.
6821 * MAINTAINERS: Add bpf target and maintainer.
6822 * NEWS: Mention the support for the new target.
6824 2020-08-04 Tom de Vries <tdevries@suse.de>
6827 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6830 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6832 * syscalls/freebsd.xml: Regenerate.
6834 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6836 * syscalls/update-freebsd.sh: Fix usage and year range.
6838 2020-08-03 Tom de Vries <tdevries@suse.de>
6841 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6842 DW_LNE_lo_user/DW_LNE_hi_user range.
6844 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6847 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6850 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6852 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6854 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6856 * breakpoint.c (set_breakpoint_condition): Update the condition
6857 expressions after checking that the input condition string parses
6858 successfully and does not contain junk at the end.
6860 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6862 * breakpoint.c (set_breakpoint_condition): Update the
6863 condition string after parsing the new condition successfully.
6865 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6867 * proc-api.c (_STRUCTURED_PROC): Don't define.
6868 * proc-events.c: Likewise.
6869 * proc-flags.c: Likewise.
6870 * proc-why.c: Likewise.
6871 * procfs.c: Likewise.
6873 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6874 * configure, config.in: Regenerate.
6876 2020-07-30 Tom de Vries <tdevries@suse.de>
6879 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6880 m_red/m_green/m_blue in a union.
6882 2020-07-29 Tom de Vries <tdevries@suse.de>
6885 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6887 2020-07-28 Tom Tromey <tromey@adacore.com>
6890 * symtab.h (find_pc_partial_function_sym): Declare.
6891 * cli/cli-cmds.c (disassemble_command): Use
6892 find_pc_partial_function_sym. Check asm_demangle.
6893 * blockframe.c (cache_pc_function_sym): New global.
6894 (cache_pc_function_name): Remove.
6895 (clear_pc_function_cache): Update.
6896 (find_pc_partial_function_sym): New function, from
6897 find_pc_partial_function.
6898 (find_pc_partial_function): Rewrite using
6899 find_pc_partial_function_sym.
6901 2020-07-28 Tom Tromey <tromey@adacore.com>
6903 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6906 2020-07-28 Tom Tromey <tromey@adacore.com>
6908 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6909 <DW_OP_GNU_variable_value>: Cast to address type.
6911 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6913 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6914 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6915 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6916 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6917 (nbsd_get_siginfo_type): New.
6918 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6919 (_initialize_nbsd_tdep): New.
6921 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6924 * configure: Regenerated.
6926 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6929 * configure: Regenerated.
6931 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6933 * python/py-frame.c: Remove 'user-regs.h' include.
6934 (frapy_read_register): Rewrite to make use of
6935 gdbpy_parse_register_id.
6936 * python/py-registers.c (gdbpy_parse_register_id): New function,
6937 moved here from python/py-unwind.c. Updated the return type, and
6938 also accepts register descriptor objects.
6939 * python/py-unwind.c: Remove 'user-regs.h' include.
6940 (pyuw_parse_register_id): Moved to python/py-registers.c.
6941 (unwind_infopy_add_saved_register): Update to use
6942 gdbpy_parse_register_id.
6943 (pending_framepy_read_register): Likewise.
6944 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6946 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6948 * python/py-registers.c: Add 'user-regs.h' include.
6949 (register_descriptor_iter_find): New function.
6950 (register_descriptor_iterator_object_methods): New static global
6952 (register_descriptor_iterator_object_type): Add pointer to methods
6955 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6957 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6958 for all architectures on FreeBSD 11.3 and later.
6960 2020-07-27 Tom Tromey <tromey@adacore.com>
6962 * gcore.h (load_corefile): Don't declare.
6964 2020-07-27 Tom de Vries <tdevries@suse.de>
6966 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6967 * config.in: Regenerate.
6968 * configure: Regenerate.
6970 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6972 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6973 ws2tcpip.h. When checking whether socklen_t type is defined, use
6974 ws2tcpip.h if it is available and sys/socket.h isn't.
6975 * configure: Regenerate.
6976 * config.in: Regenerate.
6978 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6982 * valops.c (value_ind): Pass address to
6983 readjust_indirect_value_type.
6984 * value.c (readjust_indirect_value_type): Make parameter
6985 non-const, and add extra address parameter. Resolve original type
6987 * value.h (readjust_indirect_value_type): Update function
6988 signature and comment.
6990 2020-07-25 Tom de Vries <tdevries@suse.de>
6993 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6996 2020-07-24 Aaron Merey <amerey@redhat.com>
6998 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6999 * configure: Rebuild.
7001 2020-07-23 Kevin Buettner <kevinb@redhat.com>
7004 * corelow.c (_initialize_corelow): Add period to help text
7005 for "maintenance print core-file-backed-mappings".
7007 2020-07-23 Pedro Alves <pedro@palves.net>
7009 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
7010 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
7012 * frame.c (frame_cache_generation, get_frame_cache_generation):
7014 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
7015 (get_prev_frame_if_no_cycle): On exception, don't touch
7016 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
7017 * frame.h (get_frame_cache_generation): Declare.
7019 2020-07-23 Tom de Vries <tdevries@suse.de>
7022 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
7023 New default constructor.
7025 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
7027 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
7028 exclude non-statement entries.
7030 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7032 * NEWS (New commands): Mention new command
7033 "maintenance print core-file-backed-mappings".
7035 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7037 * corelow.c (gdbcmd.h): Include.
7038 (core_target::info_proc_mappings): New method.
7039 (get_current_core_target): New function.
7040 (maintenance_print_core_file_backed_mappings): New function.
7041 (_initialize_corelow): Add core-file-backed-mappings to
7042 "maint print" commands.
7044 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7046 * linux-tdep.c (dump_note_entry_p): New function.
7047 (linux_dump_mapping_p_ftype): New typedef.
7048 (linux_find_memory_regions_full): Add new parameter,
7049 should_dump_mapping_p.
7050 (linux_find_memory_regions): Adjust call to
7051 linux_find_memory_regions_full.
7052 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
7053 call to linux_find_memory_regions_full.
7055 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7057 * corelow.c (solist.h, unordered_map): Include.
7058 (class core_target): Add field m_core_file_mappings and
7059 method build_file_mappings.
7060 (core_target::core_target): Call build_file_mappings.
7061 (core_target::~core_target): Free memory associated with
7062 m_core_file_mappings.
7063 (core_target::build_file_mappings): New method.
7064 (core_target::xfer_partial): Use m_core_file_mappings
7065 for memory transfers.
7066 * linux-tdep.c (linux_read_core_file_mappings): New
7068 (linux_core_info_proc_mappings): Rewrite to use
7069 linux_read_core_file_mappings.
7070 (linux_init_abi): Register linux_read_core_file_mappings.
7072 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7074 * arch-utils.c (default_read_core_file_mappings): New function.
7075 * arch-utils.c (default_read_core_file_mappings): Declare.
7076 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
7077 * gdbarch.h, gdbarch.c: Regenerate.
7079 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7082 * corelow.c (core_target:xfer_partial): Revise
7083 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
7084 case after first checking the stratum beneath the core
7086 (has_all_memory): Return true.
7087 * target.c (raw_memory_xfer_partial): Revise comment
7088 regarding use of has_all_memory.
7090 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7092 * exec.h (section_table_xfer_memory): Revise declaration,
7093 replacing section name parameter with an optional callback
7095 * exec.c (section_table_xfer_memory): Likewise.
7096 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
7097 of section_table_xfer_memory.
7099 2020-07-22 Tom Tromey <tromey@adacore.com>
7101 * mi/mi-cmd-stack.c (list_args_or_locals): Use
7102 lookup_symbol_search_name.
7104 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
7106 * python/py-registers.c (gdbpy_register_object_data_init): Remove
7107 redundant local variable.
7108 (gdbpy_get_register_descriptor): Extract descriptor vector as a
7109 reference, not pointer, update code accordingly.
7111 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7112 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7114 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
7115 * jit.c (jit_breakpoint_re_set_internal): Use the
7116 `skip_jit_symbol_lookup` field.
7118 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7119 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7121 * jit.c (jit_read_descriptor): Define the descriptor address once,
7123 (jit_breakpoint_deleted): Move the declaration of the loop variable
7124 `iter` into the loop header.
7125 (jit_breakpoint_re_set_internal): Move the declaration of the local
7126 variable `objf_data` to the first point of definition.
7127 (jit_event_handler): Move the declaration of local variables
7128 `code_entry`, `entry_addr`, and `objf` to their first point of use.
7129 Rename `objf` to `jited`.
7131 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7133 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
7135 * jit.c (get_jiter_objfile_data): Update.
7137 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7138 Simon Marchi <simon.marchi@polymtl.ca>
7140 * jit.c (struct jit_program_space_data): Remove.
7141 (jit_program_space_key): Remove.
7142 (jiter_objfile_data::~jiter_objfile_data): Remove program space
7144 (get_jit_program_space_data): Remove.
7145 (jit_breakpoint_deleted): Iterate on all of the program space's
7147 (jit_inferior_init): Likewise.
7148 (jit_breakpoint_re_set_internal): Likewise. Also change return
7150 (jit_breakpoint_re_set): Pass current_program_space to
7151 jit_breakpoint_re_set_internal.
7153 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7155 * jit.h (struct jiter_objfile_data) <cached_code_address,
7156 jit_breakpoint>: Move to here from ...
7157 * jit.c (jit_program_space_data): ... here.
7158 (jiter_objfile_data::~jiter_objfile_data): Update.
7159 (jit_breakpoint_deleted): Update.
7160 (jit_breakpoint_re_set_internal): Update.
7162 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7164 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
7166 (jit_read_descriptor): Remove NULL check.
7167 (jit_event_handler): Add an assertion.
7169 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7171 * jit.h (struct jit_objfile_data): Split into...
7172 (struct jiter_objfile_data): ... this ...
7173 (struct jited_objfile_data): ... and this.
7174 * objfiles.h (struct objfile) <jit_data>: Remove.
7175 <jiter_data, jited_data>: New fields.
7176 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
7177 (jiter_objfile_data::~jiter_objfile_data): ... this.
7178 (get_jit_objfile_data): Rename to ...
7179 (get_jiter_objfile_data): ... this.
7180 (add_objfile_entry): Update.
7181 (jit_read_descriptor): Use get_jiter_objfile_data.
7182 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
7183 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
7184 (jit_inferior_exit_hook): Use objfile's jited_data field.
7186 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7188 * jit.h: Forward-declare `struct minimal_symbol`.
7189 (struct jit_objfile_data): Migrate to here from jit.c; also add a
7190 constructor, destructor, and an objfile* field.
7191 * jit.c (jit_objfile_data): Remove.
7192 (struct jit_objfile_data): Migrate from here to jit.h.
7193 (jit_objfile_data::~jit_objfile_data): New destructor
7194 implementation with code moved from free_objfile_data.
7195 (free_objfile_data): Delete.
7196 (get_jit_objfile_data): Update to use the jit_data field of objfile.
7197 (jit_find_objf_with_entry_addr): Ditto.
7198 (jit_inferior_exit_hook): Ditto.
7199 (_initialize_jit): Remove the call to
7200 register_objfile_data_with_cleanup.
7201 * objfiles.h (struct objfile) <jit_data>: New field.
7203 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7205 * jit.h: Forward-declare `struct objfile`.
7206 (jit_event_handler): Add a second parameter, the JITer objfile.
7207 * jit.c (jit_read_descriptor): Change the signature to take the
7208 JITer objfile as an argument instead of the jit_program_space_data.
7209 (jit_inferior_init): Update the call to jit_read_descriptor.
7210 (jit_event_handler): Use the new JITer objfile argument when calling
7211 jit_read_descriptor.
7212 * breakpoint.c (handle_jit_event): Update the call to
7213 jit_event_handler to pass the JITer objfile.
7215 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7217 * gdbarch.c: Regenerate.
7218 * gdbarch.h: Regenerate.
7219 * gdbarch.sh (handle_segmentation_fault): Remove method.
7220 * infrun.c (handle_segmentation_fault): Remove.
7221 (print_signal_received_reason): Remove call to
7222 handle_segmentation_fault.
7224 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7226 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7227 Rename to sparc64_linux_report_signal_info and add siggnal
7229 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
7230 instead of sparc64_linux_handle_segmentation_fault.
7232 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7234 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
7235 i386_linux_report_signal_info instead of
7236 i386_linux_handle_segmentation_fault.
7237 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
7238 to i386_linux_report_signal_info and add siggnal argument.
7239 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
7240 of i386_linux_handle_segmentation_fault.
7241 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
7242 to i386_linux_report_signal_info and add siggnal argument.
7244 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7246 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7249 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7251 * gdbarch.c: Regenerate.
7252 * gdbarch.h: Regenerate.
7253 * gdbarch.sh (report_signal_info): New method.
7254 * infrun.c (print_signal_received_reason): Invoke gdbarch
7255 report_signal_info hook if present.
7257 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7259 * python/py-registers.c : Add 'unordered_map' include.
7260 (gdbpy_new_reggroup): Renamed to...
7261 (gdbpy_get_reggroup): ...this. Update to only create register
7262 group descriptors when needed.
7263 (gdbpy_reggroup_iter_next): Update.
7265 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7267 * python/py-registers.c (gdbpy_register_object_data): New static
7269 (gdbpy_register_object_data_init): New function.
7270 (gdbpy_new_register_descriptor): Renamed to...
7271 (gdbpy_get_register_descriptor): ...this, and update to reuse
7272 existing register descriptors where possible.
7273 (gdbpy_register_descriptor_iter_next): Update.
7274 (gdbpy_initialize_registers): Register new gdbarch data.
7276 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
7278 * linux-nat.c (stopped_pids): Make static.
7280 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7283 * gdbtypes.c (ada_discrete_type_low_bound,
7284 ada_discrete_type_high_bound): Handle undefined bounds.
7286 2020-07-21 Kamil Rytarowski <n54@gmx.com>
7288 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7290 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7293 2020-07-20 John Baldwin <jhb@FreeBSD.org>
7295 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7296 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7297 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7298 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7299 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7302 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7304 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7305 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7306 which are deprecated in Guile 3.0.
7307 * configure.ac (try_guile_versions): Add "guile-3.0".
7308 * configure (try_guile_versions): Regenerate.
7309 * NEWS: Update entry.
7311 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7312 Doug Evans <dje@google.com>
7315 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7316 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7317 USING_GUILE_BEFORE_2_2.
7318 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7319 Change type to 'scm_t_port_type *'.
7320 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7321 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7322 parameter and honor it. Update callers.
7323 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7324 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7326 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7327 USING_GUILE_BEFORE_2_2.
7328 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7329 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7330 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7331 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7332 and 'SCM_PORT_TYPE'.
7333 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7334 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7335 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7336 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7337 [!USING_GUILE_BEFORE_2_2]: New functions.
7338 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7339 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7340 'gdbscm_memory_port_read'.
7341 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7342 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7343 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7345 (ioscm_init_memory_port): Remove.
7346 (ioscm_init_memory_port_stream): New function
7347 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7349 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7350 Return scm_from_uint (0).
7351 (gdbscm_set_memory_port_read_buffer_size_x)
7352 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7353 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7354 Return scm_from_uint (0).
7355 (gdbscm_set_memory_port_write_buffer_size_x)
7356 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7357 * configure.ac (try_guile_versions): Add "guile-2.2".
7358 * configure: Regenerate.
7361 2020-07-18 Tom Tromey <tom@tromey.com>
7363 * linux-nat.c (linux_multi_process): Remove.
7364 (linux_nat_target::supports_multi_process): Return true.
7366 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7368 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7369 (riscv_lookup_target_description): Return pointer out of
7371 * target-descriptions.c (allocate_target_description): Add
7373 (target_desc_deleter::operator()): Likewise.
7374 * target-descriptions.h (struct target_desc_deleter): Moved to
7376 (target_desc_up): Likewise.
7378 2020-07-17 Tom Tromey <tromey@adacore.com>
7380 * linux-nat.c (linux_nat_target::supports_non_stop)
7381 (linux_nat_target::always_non_stop_p): Use "true".
7382 (linux_nat_target::supports_disable_randomization): Use "true" and
7385 2020-07-16 Caroline Tice <cmtice@google.com>
7387 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7388 (RNGLIST_HEADER_SIZE64): New constant definition.
7389 (struct dwop_section_names): Add rnglists_dwo.
7390 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7391 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7392 (struct dwo_sections): Add rnglists field.
7393 (read_attribut_reprocess): Add tag parameter.
7394 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7395 (cu_debug_rnglists_section): New function (decl & definition).
7396 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7397 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7398 die whose range is being checked; get rnglist section from
7399 cu_debug_rnglists_section, to get from either objfile or dwo file as
7400 appropriate. Add cases for DW_RLE_base_addressx,
7401 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7402 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7403 test inside if-condition and updating complaint message.
7404 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7405 dwarf2_rnglists_process.
7406 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7407 dwarf2_ranges_process.
7408 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7409 need_ranges_base and update comment appropriately. Also pass die tag
7410 to dwarf2_ranges_read.
7411 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7412 need_ranges_base and update comment appropriately. Also pass die tag
7413 to dwarf2_ranges_process.
7414 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7415 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7416 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7417 need_ranges_base and update comment appropriately. Also pass die tag
7418 to read_attribute_reprocess and dwarf2_ranges_read.
7419 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7420 and update function comment appropriately.
7421 (read_loclist_index): Call read_loclists_rnglists_header instead of
7422 read_loclist_header.
7423 (read_rnglist_index): New function.
7424 (read_attribute_reprocess): Add tag parameter. Add code for
7425 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7426 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7428 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7430 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7433 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7435 * arch-utils.c (show_architecture): Update formatting of messages.
7437 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7439 * gdbtypes.h (struct type) <bounds>: Handle array and string
7441 * ada-lang.c (assign_aggregate): Use type::bounds on
7443 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7444 * c-varobj.c (c_number_of_children): Likewise.
7445 (c_describe_child): Likewise.
7446 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7447 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7448 (f_type_print_base): Likewise.
7449 * f-valprint.c (f77_array_offset_tbl): Likewise.
7450 (f77_get_upperbound): Likewise.
7451 (f77_print_array_1): Likewise.
7452 * guile/scm-type.c (gdbscm_type_range): Likewise.
7453 * m2-typeprint.c (m2_array): Likewise.
7454 (m2_is_long_set_of_type): Likewise.
7455 * m2-valprint.c (get_long_set_bounds): Likewise.
7456 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7457 * python/py-type.c (typy_range): Likewise.
7458 * rust-lang.c (rust_internal_print_type): Likewise.
7459 * type-stack.c (type_stack::follow_types): Likewise.
7460 * valarith.c (value_subscripted_rvalue): Likewise.
7461 * valops.c (value_cast): Likewise.
7463 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7465 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7466 callers to use the equivalent accessor methods.
7468 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7470 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7471 (struct type) <bit_stride>: New method.
7472 (TYPE_BIT_STRIDE): Remove.
7473 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7475 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7477 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7478 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7479 callers to use the equivalent accessor methods instead.
7481 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7483 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7484 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7485 callers to use the equivalent accessor methods instead.
7487 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7489 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7490 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7491 to use dynamic_prop::kind.
7493 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7495 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7496 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7497 to get the bound property's kind and check against
7500 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7502 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7503 all callers to use type::range_bounds followed by
7504 dynamic_prop::{low,high}.
7506 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7508 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7509 const_val, set_const_val, baton, set_locexpr, set_loclist,
7510 set_addr_offset, variant_parts, set_variant_parts,
7511 original_type, set_original_type>: New methods.
7512 <kind>: Rename to...
7513 <m_kind>: ... this. Update all users to use the new methods
7515 <data>: Rename to...
7516 <m_data>: ... this. Update all users to use the new methods
7519 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7521 * gdbtypes.c (get_discrete_bounds): Return failure if
7522 the range type's bounds are not both defined and constant
7524 (get_array_bounds): Update comment. Remove undefined bound check.
7526 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7528 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7529 the type::bounds method directly.
7531 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7533 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7534 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7535 are used to set the range type's bounds to use set_bounds.
7537 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7539 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7541 2020-07-10 Pedro Alves <pedro@palves.net>
7543 * gdbthread.h (inferior_ref): Define.
7544 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7545 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7547 (scoped_restore_current_thread::restore):
7548 Adjust to gdb::ref_ptr.
7549 (scoped_restore_current_thread::~scoped_restore_current_thread):
7550 Remove manual decref handling.
7551 (scoped_restore_current_thread::scoped_restore_current_thread):
7553 inferior_ref::new_reference/thread_info_ref::new_reference.
7554 Incref the thread before calling get_frame_id instead of after.
7555 Let TARGET_CLOSE_ERROR propagate.
7557 2020-07-10 Pedro Alves <pedro@palves.net>
7559 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7560 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7561 NOT_AVAILABLE_ERROR.
7562 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7563 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7565 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7566 Pedro Alves <pedro@palves.net>
7569 * infrun.c (threads_are_resumed_pending_p): Delete.
7570 (do_target_wait): Remove threads_are_executing and
7571 threads_are_resumed_pending_p checks from the inferior_matches
7572 lambda. Update comments.
7574 2020-07-10 Pedro Alves <pedro@palves.net>
7577 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7580 2020-07-10 Pedro Alves <pedro@palves.net>
7583 * infrun.c (handle_no_resumed): Handle multiple targets.
7585 2020-07-10 Pedro Alves <pedro@palves.net>
7588 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7591 2020-07-10 Pedro Alves <pedro@palves.net>
7594 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7595 threads, not all threads.
7597 2020-07-10 Pedro Alves <pedro@palves.net>
7600 * remote.c (remote_target::open_1): Pass remote target pointer as
7601 data to create_async_event_handler.
7602 (remote_async_inferior_event_handler): Mark async event handler
7603 before returning if the remote target still has either pending
7604 events or unacknowledged notifications.
7606 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7608 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7610 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7613 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7615 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7618 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7620 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7621 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7622 AT_FREEBSD_PS_STRINGS.
7624 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7626 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7627 of debugfile path on Windows.
7629 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7631 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7634 2020-07-08 Tom Tromey <tromey@adacore.com>
7636 * ada-lang.c (ada_exception_message_1): Use read_memory.
7638 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7641 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7642 special handling for inline frames.
7643 * findvar.c (value_of_register_lazy): Skip inline frames when
7644 creating lazy register values.
7645 * frame.c (frame_id_computed_p): Delete definition.
7646 * frame.h (frame_id_computed_p): Delete declaration.
7648 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7650 * NEWS: Mention additions to Python API.
7651 * python/py-arch.c (archpy_register_groups): New function.
7652 (arch_object_methods): Add 'register_groups' method.
7653 * python/py-registers.c (reggroup_iterator_object): New struct.
7654 (reggroup_object): New struct.
7655 (gdbpy_new_reggroup): New function.
7656 (gdbpy_reggroup_to_string): New function.
7657 (gdbpy_reggroup_name): New function.
7658 (gdbpy_reggroup_iter): New function.
7659 (gdbpy_reggroup_iter_next): New function.
7660 (gdbpy_new_reggroup_iterator): New function
7661 (gdbpy_initialize_registers): Register new types.
7662 (reggroup_iterator_object_type): Define new Python type.
7663 (gdbpy_reggroup_getset): New static global.
7664 (reggroup_object_type): Define new Python type.
7665 * python/python-internal.h
7667 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7669 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7670 * python/py-arch.c (archpy_registers): New function.
7671 (arch_object_methods): Add 'registers' method.
7672 * python/py-registers.c: New file.
7673 * python/python-internal.h
7674 (gdbpy_new_register_descriptor_iterator): Declare.
7675 (gdbpy_initialize_registers): Declare.
7676 * python/python.c (do_start_initialization): Call
7677 gdbpy_initialize_registers.
7678 * NEWS: Mention additions to the Python API.
7680 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7682 * NEWS: Mention new Python API method.
7683 * python/py-unwind.c (pending_framepy_architecture): New function.
7684 (pending_frame_object_methods): Add architecture method.
7686 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7688 * gdbarch.c: Regenerate.
7689 * gdbarch.h: Regenerate.
7690 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7691 (gdbarch_data): Use internal_error for the case where
7692 deprecated_set_gdbarch_data was originally needed.
7693 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7694 and use passed in obstack.
7695 (libunwind_frame_set_descr): Should no longer get back NULL from
7697 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7699 * user-regs.c (user_regs_init): Update parameters, and use passed
7701 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7702 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7704 2020-07-06 Tom de Vries <tdevries@suse.de>
7706 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7707 End-Of-Sequence in lte_is_less_than.
7708 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7709 "gdb: Don't reorder line table entries too much when sorting".
7711 2020-07-06 Tom de Vries <tdevries@suse.de>
7714 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7716 2020-07-05 Tom de Vries <tdevries@suse.de>
7719 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7720 std::uncaught_exceptions instead of deprecated
7721 std::uncaught_exception.
7723 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7725 * macroexp.h (macro_stringify): Return
7726 gdb::unique_xmalloc_ptr<char>.
7727 * macroexp.c (macro_stringify): Likewise.
7728 * macrotab.c (fixup_definition): Update.
7730 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7732 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7733 (lex_one_token): Update.
7734 * macroexp.c (struct macro_buffer) <release>: Return
7735 gdb::unique_xmalloc_ptr<char>.
7736 (macro_stringify): Update.
7737 (macro_expand): Update.
7738 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7739 * macroexp.h (macro_expand_next): Likewise.
7741 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7743 * macroexp.h (macro_lookup_ftype): Remove.
7744 (macro_expand, macro_expand_once, macro_expand_next): Remove
7745 lookup function parameters, add scope parameter.
7746 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7747 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7748 * macroscope.h (standard_macro_lookup): Change parameter type
7750 * macroscope.c (standard_macro_lookup): Likewise.
7751 * c-exp.y (lex_one_token): Update.
7752 * macrocmd.c (macro_expand_command): Likewise.
7753 (macro_expand_once_command): Likewise.
7755 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7757 * inf-loop.c (inferior_event_handler): Remove client_data param.
7758 * inf-loop.h (inferior_event_handler): Likewise.
7759 * infcmd.c (step_1): Adjust.
7760 * infrun.c (proceed): Adjust.
7761 (fetch_inferior_event): Remove client_data param.
7762 (infrun_async_inferior_event_handler): Adjust.
7763 * infrun.h (fetch_inferior_event): Remove `void *` param.
7764 * linux-nat.c (handle_target_event): Adjust.
7765 * record-btrace.c (record_btrace_handle_async_inferior_event):
7767 * record-full.c (record_full_async_inferior_event_handler):
7769 * remote.c (remote_async_inferior_event_handler): Adjust.
7771 2020-07-01 Tom Tromey <tom@tromey.com>
7773 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7774 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7776 2020-07-01 Tom Tromey <tom@tromey.com>
7778 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7780 (tui_win_info::make_window): Merge with
7781 tui_gen_win_info::make_window.
7782 (tui_win_info::make_visible): Move from tui_gen_win_info.
7783 * tui/tui-win.c (tui_win_info::max_width): Move from
7785 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7787 <window_factory>: Likewise.
7788 * tui/tui-layout.c (tui_win_info::resize): Move from
7790 (make_standard_window): Change return type.
7791 (get_locator_window, tui_get_window_by_name): Likewise.
7792 (tui_layout_window::apply): Remove a cast.
7793 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7794 (struct tui_win_info): Merge with tui_gen_win_info.
7795 (struct tui_gen_win_info): Remove.
7797 2020-07-01 Tom Tromey <tom@tromey.com>
7799 * tui/tui-stack.h (struct tui_locator_window): Derive from
7801 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7802 <can_box>: New method.
7804 2020-07-01 Tom Tromey <tom@tromey.com>
7806 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7808 2020-07-01 Tom Tromey <tom@tromey.com>
7810 * tui/tui-regs.c (tui_data_window::display_registers_from)
7811 (tui_data_window::display_registers_from)
7812 (tui_data_window::first_data_item_displayed)
7813 (tui_data_window::delete_data_content_windows): Update.
7814 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7816 (tui_data_window::check_register_values): Update.
7817 (tui_data_item_window::rerender): Add parameters. Update.
7818 (tui_data_item_window::refresh_window): Remove.
7819 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7821 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7823 <refresh_window, max_height, min_height>: Remove.
7824 <rerender>: Add parameters.
7825 <x, y, visible>: New members.
7826 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7827 <m_item_width>: New member.
7829 2020-07-01 Tom Tromey <tom@tromey.com>
7831 * tui/tui-regs.c (tui_data_window::show_register_group)
7832 (tui_data_window::check_register_values): Update.
7833 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7836 2020-07-01 Tom Tromey <tom@tromey.com>
7838 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7841 2020-07-01 Tom Tromey <tom@tromey.com>
7843 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7844 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7846 2020-07-01 Tom Tromey <tom@tromey.com>
7848 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7849 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7850 (struct tui_line_or_address): Move from tui-data.h.
7851 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7852 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7853 (tui_cmd_window, tui_source_window_base, tui_source_window)
7854 (tui_disasm_window): Don't declare.
7855 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7857 (SINGLE_KEY): Move to tui-stack.c.
7859 2020-07-01 Tom Tromey <tom@tromey.com>
7861 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7863 * tui/tui-regs.c (class tab_expansion_file): New.
7864 (tab_expansion_file::write): New method.
7865 (tui_register_format): Change return type. Use
7867 (tui_get_register, tui_data_window::display_registers_from)
7868 (tui_data_item_window::rerender): Update.
7869 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7870 * tui/tui-io.c (tui_expand_tabs): Remove.
7872 2020-07-01 Tom Tromey <tom@tromey.com>
7874 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7876 2020-07-01 Fangrui Song <maskray@google.com>
7878 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7880 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7882 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7883 forms for DW_AT_associated and DW_AT_allocated attributes,
7884 which is already checked in function attr_to_dynamic_prop.
7886 2020-06-30 Tom Tromey <tromey@adacore.com>
7888 * dwarf2/read.c (quirk_rust_enum): Correctly call
7889 alloc_rust_variant for default-less enum.
7891 2020-06-30 Tom Tromey <tromey@adacore.com>
7894 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7897 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7899 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7900 * gdbarch.h: Re-generate.
7902 2020-06-28 Tom Tromey <tom@tromey.com>
7904 * command.h (cmd_types): Remove.
7905 (cmd_type): Don't declare.
7906 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7908 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7909 * cli/cli-decode.c (cmd_type): Remove.
7911 2020-06-27 Pedro Alves <palves@redhat.com>
7913 * fork-child.c (prefork_hook): Adjust.
7914 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7916 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7917 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7918 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7919 Remove declarations.
7920 (struct inferior) <set_tty, tty>: New methods.
7921 (struct inferior) <terminal>: Rename to ...
7922 (struct inferior) <m_terminal>: ... this and make private.
7923 * main.c (captured_main_1): Adjust.
7924 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7925 (mi_cmd_inferior_tty_show): Adjust.
7926 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7927 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7929 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7931 * configure.ac: Add --enable-libctf: handle --disable-static
7933 * acinclude.m4: sinclude ../config/enable.m4.
7934 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7935 (LIBCTF): Substitute in.
7936 (CTF_DEPS): New, likewise.
7937 (CLIBS): libctf needs symbols from libbfd: move earlier.
7938 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7940 * ctfread.c: Surround in ENABLE_LIBCTF.
7941 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7942 * configure: Regenerate.
7943 * config.in: Likewise.
7945 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7947 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7949 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7951 * inferior.h (struct inferior) <terminal>: Change type to
7952 gdb::unique_xmalloc_ptr<char>.
7953 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7954 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7955 field, adjust to unique pointer.
7956 (get_inferior_io_terminal): Adjust to unique pointer.
7958 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7960 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7961 registers, not just the known core set of registers.
7963 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7965 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7966 fflags, frm, and fcsr registers.
7967 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7969 (riscv_tdesc_unknown_reg): New function.
7970 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7971 tdesc_use_registers.
7972 * riscv-tdep.h (struct gdbarch_tdep): Add
7973 unknown_csrs_first_regnum, unknown_csrs_count,
7974 duplicate_fflags_regnum, duplicate_frm_regnum, and
7975 duplicate_fcsr_regnum fields.
7977 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7979 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7980 callback, use the callback (when not null) to help number unknown
7982 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7983 (tdesc_use_registers): Add extra parameter to declaration.
7985 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7987 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7989 (class riscv_pending_register_alias): Likewise.
7990 (riscv_register_feature::register_info): Change 'required_p' field
7991 to 'required', and change its type. Add 'check' member function.
7992 (riscv_register_feature::register_info::check): Define new member
7994 (riscv_xreg_feature): Change initialisation of 'required' field.
7995 (riscv_freg_feature): Likewise.
7996 (riscv_virtual_feature): Likewise.
7997 (riscv_csr_feature): Likewise.
7998 (riscv_check_tdesc_feature): Take extra parameter, the csr
7999 tdesc_feature, rewrite the function to use the new
8000 riscv_register_feature::register_info::check function.
8001 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
8003 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8005 * features/Makefile: Remove all references to the deleted files
8007 * features/riscv/32bit-csr.c: Deleted.
8008 * features/riscv/32bit-csr.xml: Deleted.
8009 * features/riscv/64bit-csr.c: Deleted.
8010 * features/riscv/64bit-csr.xml: Deleted.
8011 * features/riscv/rebuild-csr-xml.sh: Deleted.
8013 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8015 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
8016 whitespace error for declaration of names member variable.
8017 (struct riscv_register_feature): Add new prefer_first_name member
8018 variable, and fix whitespace error in declaration of registers.
8019 (riscv_xreg_feature): Initialize prefer_first_name field.
8020 (riscv_freg_feature): Likewise.
8021 (riscv_virtual_feature): Likewise.
8022 (riscv_csr_feature): Likewise.
8023 (riscv_register_name): Expand on comments. Remove register name
8024 modifications for CSR and virtual registers.
8026 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8028 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
8031 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8033 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
8035 (class riscv_pending_register_alias): New class.
8036 (riscv_check_tdesc_feature): Take vector of pending aliases and
8037 populate it as appropriate.
8038 (riscv_setup_register_aliases): Delete.
8039 (riscv_gdbarch_init): Create vector of pending aliases and pass it
8040 to riscv_check_tdesc_feature in all cases. Use the vector to
8041 create the register aliases.
8043 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8045 * sol2-tdep.c (sol2_static_transform_name): Remove.
8046 (sol2_init_abi): Don't register it.
8047 * gdbarch.sh (static_transform_name): Remove.
8048 * gdbarch.c, gdbarch.h: Regenerate.
8050 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
8051 gdbarch_static_transform_name.
8052 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
8053 * stabsread.c (define_symbol) <'X'>: Remove.
8054 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
8057 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
8058 <'S'>: Remove call to gdbarch_static_transform_name.
8060 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8062 * procfs.c (procfs_pre_trace): New function.
8063 (procfs_target::create_inferior): Pass it to fork_inferior.
8065 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8067 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
8068 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
8069 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
8070 sol2-tdep.o, sparc-sol2-tdep.o.
8071 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
8072 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
8073 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
8074 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
8076 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8078 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
8079 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
8081 Remove calls to set_gdbarch_skip_solib_resolver,
8082 set_gdbarch_core_pid_to_str.
8083 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
8084 (i386_sol2_static_transform_name): Remove.
8085 (i386_sol2_init_abi): Call sol2_init_abi.
8086 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8087 set_gdbarch_static_transform_name,
8088 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8089 Use sol2_sigtramp_p.
8090 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
8091 (sol2_sigtramp_p): New function.
8092 (sol2_static_transform_name): New function.
8093 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
8094 (sol2_init_abi): New function.
8095 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
8096 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
8097 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
8098 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
8099 (sparc_sol2_static_transform_name): Remove.
8100 (sparc32_sol2_init_abi): Call sol2_init_abi.
8101 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8102 set_gdbarch_static_transform_name,
8103 set_gdbarch_skip_solib_resolver,
8104 set_gdbarch_core_pid_to_str.
8105 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
8106 (sparc_sol2_static_transform_name): Remove
8107 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
8108 call sol2_sigtramp_p.
8109 (sparc64_sol2_init_abi): Call sol2_init_abi.
8110 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8111 set_gdbarch_static_transform_name,
8112 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8114 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8116 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
8117 * exec.c (validate_exec_file): If from_tty, set both
8118 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
8119 * symfile.c (symbol_file_add_with_addrs): if always_confirm
8120 and from_tty, unconditionally ask a confirmation.
8122 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8124 * target-descriptions.c (tdesc_architecture_name): Protect against
8125 NULL pointer dereference.
8126 (maint_print_xml_tdesc_cmd): New function.
8127 (_initialize_target_descriptions): Register new 'maint print
8128 xml-tdesc' command and give it the filename completer.
8129 * NEWS: Mention new 'maint print xml-tdesc' command.
8131 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8133 * target-descriptions.c (class tdesc_compatible_info): New class.
8134 (struct target_desc): Change type of compatible vector.
8135 (tdesc_compatible_p): Update for change in type of
8136 target_desc::compatible.
8137 (tdesc_compatible_info_list): New function.
8138 (tdesc_compatible_info_arch_name): New function.
8139 (tdesc_add_compatible): Update for change in type of
8140 target_desc::compatible.
8141 (print_c_tdesc::visit_pre): Likewise.
8143 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8145 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
8146 whitespace to underscore.
8147 (maint_print_c_tdesc_cmd): Use fake filename for target
8148 descriptions that came from the target.
8149 (_initialize_target_descriptions): Add filename command completion
8150 for 'maint print c-tdesc'.
8152 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
8154 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
8157 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
8159 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
8161 (dwarf2_find_location_expression): Likewise.
8162 (call_site_parameter_matches): Likewise.
8163 (dwarf2_compile_expr_to_ax): Likewise.
8164 (disassemble_dwarf_expression): Likewise.
8165 (loclist_describe_location): Likewise.
8167 2020-06-23 Pedro Alves <palves@redhat.com>
8169 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
8170 progspace-and-thread.h. Include scoped-mock-context.h instead.
8171 (register_to_value_test): Use scoped_mock_context.
8172 * regcache.c: Include "scoped-mock-context.h".
8173 (cooked_read_test): Don't error out if a target is already pushed.
8174 Use scoped_mock_context. Adjust.
8175 * scoped-mock-context.h: New file.
8177 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8179 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
8181 (ada_language::is_string_type_p): New member function.
8182 * c-lang.c (c_language_data): Delete la_is_string_type_p
8184 (cplus_language_data): Likewise.
8185 (asm_language_data): Likewise.
8186 (minimal_language_data): Likewise.
8187 * d-lang.c (d_language_data): Likewise.
8188 * f-lang.c (f_is_string_type_p): Delete function, implementation
8189 moved to f_language::is_string_type_p.
8190 (f_language_data): Delete la_is_string_type_p initializer.
8191 (f_language::is_string_type_p): New member function,
8192 implementation from f_is_string_type_p.
8193 * go-lang.c (go_is_string_type_p): Delete function, implementation
8194 moved to go_language::is_string_type_p.
8195 (go_language_data): Delete la_is_string_type_p initializer.
8196 (go_language::is_string_type_p): New member function,
8197 implementation from go_is_string_type_p.
8198 * language.c (language_defn::is_string_type_p): Define new member
8200 (default_is_string_type_p): Make static, add comment copied from
8202 (unknown_language_data): Delete la_is_string_type_p initializer.
8203 (unknown_language::is_string_type_p): New member function.
8204 (auto_language_data): Delete la_is_string_type_p initializer.
8205 (auto_language::is_string_type_p): New member function.
8206 * language.h (language_data): Delete la_is_string_type_p field.
8207 (language_defn::is_string_type_p): Declare new function.
8208 (default_is_string_type_p): Delete desclaration, move comment to
8210 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
8211 moved to m2_language::is_string_type_p.
8212 (m2_language_data): Delete la_is_string_type_p initializer.
8213 (m2_language::is_string_type_p): New member function,
8214 implementation from m2_is_string_type_p.
8215 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
8217 * opencl-lang.c (opencl_language_data): Likewise.
8218 * p-lang.c (pascal_is_string_type_p): Delete function,
8219 implementation moved to pascal_language::is_string_type_p.
8220 (pascal_language_data): Delete la_is_string_type_p initializer.
8221 (pascal_language::is_string_type_p): New member function,
8222 implementation from pascal_is_string_type_p.
8223 * rust-lang.c (rust_is_string_type_p): Delete function,
8224 implementation moved to rust_language::is_string_type_p.
8225 (rust_language_data): Delete la_is_string_type_p initializer.
8226 (rust_language::is_string_type_p): New member function,
8227 implementation from rust_is_string_type_p.
8228 * valprint.c (val_print_scalar_or_string_type_p): Update call to
8231 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8233 * ada-lang.c (ada_language_data): Delete la_print_typedef
8235 (ada_language::print_typedef): New member function.
8236 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
8237 (cplus_language_data): Likewise.
8238 (asm_language_data): Likewise.
8239 (minimal_language_data): Likewise.
8240 * d-lang.c (d_language_data): Likewise.
8241 * f-lang.c (f_language_data): Likewise.
8242 (f_language::print_typedef): New member function.
8243 * go-lang.c (go_language_data): Delete la_print_typedef
8245 * language.c (language_defn::print_typedef): Define member
8247 (unknown_language_data): Delete la_print_typedef initializer.
8248 (unknown_language::print_typedef): New member function.
8249 (auto_language_data): Delete la_print_typedef initializer.
8250 (auto_language::print_typedef): New member function.
8251 * language.h (language_data): Delete la_print_typedef field.
8252 (language_defn::print_typedef): Declare new member function.
8253 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8254 (default_print_typedef): Delete declaration.
8255 * m2-lang.c (m2_language_data): Delete la_print_typedef
8257 (m2_language::print_typedef): New member function.
8258 * objc-lang.c (objc_language_data): Delete la_print_typedef
8260 * opencl-lang.c (opencl_language_data): Likewise.
8261 * p-lang.c (pascal_language_data): Likewise.
8262 (pascal_language::print_typedef): New member function.
8263 * rust-lang.c (rust_print_typedef): Delete function,
8264 implementation moved to rust_language::print_typedef.
8265 (rust_language): Delete la_print_typedef initializer.
8266 (rust_language::print_typedef): New member function,
8267 implementation from rust_print_typedef.
8268 * typeprint.c (default_print_typedef): Delete.
8270 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8272 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8273 (ada_language::printstr): New member function.
8274 * c-lang.c (c_language_data): Delete la_printstr initializer.
8275 (cplus_language_data): Likewise.
8276 (asm_language_data): Likewise.
8277 (minimal_language_data): Likewise.
8278 * d-lang.c (d_language_data): Likewise.
8279 * f-lang.c (f_printstr): Rename to f_language::printstr.
8280 (f_language_data): Delete la_printstr initializer.
8281 (f_language::printstr): New member function, implementation from
8283 * go-lang.c (go_language_data): Delete la_printstr initializer.
8284 * language.c (language_defn::printstr): Define new member
8286 (unk_lang_printstr): Delete.
8287 (unknown_language_data): Delete la_printstr initializer.
8288 (unknown_language::printstr): New member function.
8289 (auto_language_data): Delete la_printstr initializer.
8290 (auto_language::printstr): New member function.
8291 * language.h (language_data): Delete la_printstr field.
8292 (language_defn::printstr): Declare new member function.
8293 (LA_PRINT_STRING): Update call to printstr.
8294 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8295 (m2_language_data): Delete la_printstr initializer.
8296 (m2_language::printstr): New member function, implementation from
8298 * objc-lang.c (objc_language_data): Delete la_printstr
8300 * opencl-lang.c (opencl_language_data): Likewise.
8301 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8302 (pascal_language_data): Delete la_printstr initializer.
8303 (pascal_language::printstr): New member function, implementation
8304 from pascal_printstr.
8305 * p-lang.h (pascal_printstr): Delete declaration.
8306 * rust-lang.c (rust_printstr): Update header comment.
8307 (rust_language_data): Delete la_printstr initializer.
8308 (rust_language::printstr): New member function.
8310 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8312 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8313 (ada_language::printchar): New member function.
8314 * c-lang.c (c_language_data): Delete la_printchar initializer.
8315 (cplus_language_data): Likewise.
8316 (asm_language_data): Likewise.
8317 (minimal_language_data): Likewise.
8318 * d-lang.c (d_language_data): Likewise.
8319 * f-lang.c (f_printchar): Rename to f_language::printchar.
8320 (f_language_data): Delete la_printchar initializer.
8321 (f_language::printchar): New member function, implementation from
8323 * go-lang.c (go_language_data): Delete la_printchar initializer.
8324 * language.c (unk_lang_printchar): Delete.
8325 (language_defn::printchar): Define new member function.
8326 (unknown_language_data): Delete la_printchar initializer.
8327 (unknown_language::printchar): New member function.
8328 (auto_language_data): Delete la_printchar initializer.
8329 (auto_language::printchar): New member function.
8330 * language.h (language_data): Delete la_printchar field.
8331 (language_defn::printchar): Declare new member function.
8332 (LA_PRINT_CHAR): Update call to printchar.
8333 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8334 (m2_language::printchar): New member function.
8335 * objc-lang.c (objc_language_data): Delete la_printchar
8337 * opencl-lang.c (opencl_language_data): Likewise.
8338 * p-lang.c (pascal_language_data): Delete la_printchar
8340 (pascal_language::printchar): New member function.
8341 * rust-lang.c (rust_printchar): Rename to
8342 rust_language::printchar.
8343 (rust_language_data): Delete la_printchar initializer.
8344 (rust_language::printchar): New member function, implementation
8345 from rust_printchar.
8347 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8349 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8350 (ada_language_data): Delete la_emitchar initializer.
8351 (ada_language::emitchar): New member function, implementation from
8353 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8354 (cplus_language_data): Likewise.
8355 (asm_language_data): Likewise.
8356 (minimal_language_data): Likewise.
8357 * d-lang.c (d_language_data): Likewise.
8358 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8359 (f_language_data): Delete la_emitchar initializer.
8360 (f_language::emitchar): New member function, implementation from
8362 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8363 * language.c (unk_lang_emit_char): Delete.
8364 (language_defn::emitchar): New member function definition.
8365 (unknown_language_data): Delete la_emitchar initializer.
8366 (unknown_language::emitchar): New member function.
8367 (auto_language_data): Delete la_emitchar initializer.
8368 (auto_language::emitchar): New member function.
8369 * language.h (language_data): Delete la_emitchar field.
8370 (language_defn::emitchar): New member field declaration.
8371 (LA_EMIT_CHAR): Update call to emitchar.
8372 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8373 (m2_language_data): Delete la_emitchar initializer.
8374 (m2_language::emitchar): New member function, implementation from
8376 * objc-lang.c (objc_language_data): Delete la_emitchar
8378 * opencl-lang.c (opencl_language_data): Likewise.
8379 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8380 (pascal_language_data): Delete la_emitchar initializer.
8381 (pascal_language::emitchar): New member function, implementation
8382 from pascal_emit_char.
8383 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8384 (rust_language_data): Delete la_emitchar initializer.
8385 (rust_language::emitchar): New member function, implementation
8388 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8390 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8391 (ada_language_data): Delete la_post_parser initializer.
8392 (ada_language::post_parser): New member function.
8393 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8394 (cplus_language_data): Likewise.
8395 (asm_language_data): Likewise.
8396 (minimal_language_data): Likewise.
8397 * d-lang.c (d_language_data): Likewise.
8398 * f-lang.c (f_language_data): Likewise.
8399 * go-lang.c (go_language_data): Likewise.
8400 * language.c (unknown_language_data): Likewise.
8401 (auto_language_data): Likewise.
8402 * language.h (language_data): Delete la_post_parser field.
8403 (language_defn::post_parser): New member function.
8404 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8405 * objc-lang.c (objc_language_data): Likewise.
8406 * opencl-lang.c (opencl_language_data): Likewise.
8407 * p-lang.c (pascal_language_data): Likewise.
8408 * parse.c (parse_exp_in_context): Update call to post_parser.
8409 (null_post_parser): Delete definition.
8410 * parser-defs.h (null_post_parser): Delete declaration.
8411 * rust-lang.c (rust_language_data): Delete la_post_parser
8414 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8416 * ada-lang.c (parse): Rename to ada_language::parser.
8417 (ada_language_data): Delete la_parser initializer.
8418 (ada_language::parser): New member function, implementation from
8420 * c-lang.c (c_language_data): Delete la_parser initializer.
8421 (cplus_language_data): Likewise.
8422 (asm_language_data): Likewise.
8423 (minimal_language_data): Likewise.
8424 * d-lang.c (d_language_data): Likewise.
8425 (d_language::parser): New member function.
8426 * f-lang.c (f_language_data): Delete la_parser initializer.
8427 (f_language::parser): New member function.
8428 * go-lang.c (go_language_data): Delete la_parser initializer.
8429 (go_language::parser): New member function.
8430 * language.c (unk_lang_parser): Delete.
8431 (language_defn::parser): Define new member function.
8432 (unknown_language_data): Delete la_parser initializer.
8433 (unknown_language::parser): New member function.
8434 (auto_language_data): Delete la_parser initializer.
8435 (auto_language::parser): New member function.
8436 * language.h (language_data): Delete la_parser field.
8437 (language_defn::parser): Declare new member function.
8438 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8439 (m2_language::parser): New member function.
8440 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8441 * opencl-lang.c (opencl_language_data): Likewise.
8442 * p-lang.c (pascal_language_data): Likewise.
8443 (pascal_language::parser): New member function.
8444 * parse.c (parse_exp_in_context): Update call to parser.
8445 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8446 (rust_language::parser): New member function.
8448 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8450 * top.c (print_gdb_configuration): Print --with-python-libdir
8451 configuration value.
8453 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8455 * NEWS: Mention change to the alias command.
8457 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8459 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8460 (alias_command_completer)
8461 (make_alias_options_def_group): New functions.
8462 (alias_opts, alias_option_defs): New struct and array.
8463 (alias_usage_error): Update usage.
8464 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8465 Use option framework.
8466 (_initialize_cli_cmds): Update alias command help.
8467 Update aliases command help.
8469 Add NULL for new default_args lookup_cmd argument.
8470 (valid_command_p): Rename to validate_aliased_command.
8471 Add NULL for new default_args lookup_cmd argument. Verify that the
8472 aliased_command has no default args.
8473 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8474 (lookup_cmd_1, lookup_cmd): New argument default_args.
8476 Add NULL for new default_args lookup_cmd argument.
8477 (print_help_for_command): Show default args under the layout
8478 alias some_alias = some_aliased_cmd some_alias_default_arg.
8479 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8480 xfree default_args in destructor.
8481 * cli/cli-script.c (process_next_line, do_define_command):
8482 Add NULL for new default_args lookup_cmd argument.
8483 * command.h: Declare new default_args argument in lookup_cmd
8485 * completer.c (complete_line_internal_1):
8486 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8487 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8488 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8490 * infcmd.c (_initialize_infcmd): Likewise.
8491 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8492 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8493 * python/py-param.c (add_setshow_generic): Likewise.
8494 * remote.c (_initialize_remote): Likewise.
8495 * top.c (execute_command): Prepend default_args if command has some.
8497 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8498 * tracepoint.c (validate_actionline, encode_actions_1):
8499 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8501 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8503 * jit.c (jit_read_descriptor): Use bool as the return type.
8504 (jit_breakpoint_re_set_internal): Use bool as the return type.
8505 Invert the return value logic; return true if the jit breakpoint
8506 has been successfully initialized.
8507 (jit_inferior_init): Update the call to
8508 jit_breakpoint_re_set_internal.
8510 2020-06-22 Pedro Alves <palves@redhat.com>
8513 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8514 Use the current inferior instead. Don't return
8515 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8517 * sol-thread.c (sol_thread_target::wait): Don't reference
8519 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8520 (sol_update_thread_list_callback): Use the current inferior's pid
8521 instead of inferior_ptid.
8523 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8525 * procfs.c: Cleanup many comments.
8527 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8528 (AFTER_WATCHFLAG): Replace by value.
8530 (MAIN_PROC_NAME_FORMAT): Inline ...
8531 (create_procinfo): ... here.
8533 (procfs_debug_inferior): Remove SYS_exec handling.
8534 (syscall_is_exec): Likewise.
8535 (procfs_set_exec_trap): Likewise.
8537 (syscall_is_lwp_exit): Inline in callers.
8538 (syscall_is_exit): Likewise.
8539 (syscall_is_exec): Likewise.
8540 (syscall_is_lwp_create): Likewise.
8542 (invalidate_cache): Remove #if 0 code.
8544 (make_signal_thread_runnable): Remove.
8545 (procfs_target::resume): Remove #if 0 code.
8547 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8550 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8552 (procfs_target::create_inferior): ... here.
8554 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8556 * exec.c (validate_exec_file): Ensure the build-id is up to
8557 date by calling reopen_exec_file (that checks file timestamp
8558 to decide to re-read the file).
8560 2020-06-18 Pedro Alves <palves@redhat.com>
8563 * gdbthread.h (delete_thread, delete_thread_silent)
8564 (find_thread_ptid): Update comments.
8565 * thread.c (current_thread_): New global.
8566 (is_current_thread): Move higher, and reimplement.
8567 (inferior_thread): Reimplement.
8568 (set_thread_exited): Use bool. Add assertions.
8569 (add_thread_silent): Simplify thread-reuse handling by always
8570 calling delete_thread.
8571 (delete_thread): Remove intro comment.
8572 (find_thread_ptid): Skip exited threads.
8573 (switch_to_thread_no_regs): Write to current_thread_.
8574 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8575 INFERIOR_PTID. Clear current_thread_.
8577 2020-06-18 Pedro Alves <palves@redhat.com>
8579 * aix-thread.c (pd_update): Use switch_to_thread.
8581 2020-06-18 Pedro Alves <palves@redhat.com>
8583 * ravenscar-thread.c (ravenscar_thread_target): Update.
8584 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8585 (ravenscar_thread_target::add_active_thread): ... this. Don't
8586 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8587 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8589 2020-06-18 Pedro Alves <palves@redhat.com>
8591 * nat/windows-nat.c (current_windows_thread): Remove.
8592 * nat/windows-nat.h (current_windows_thread): Remove.
8593 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8595 (display_selectors): Adjust to fetch the current
8596 windows_thread_info based on inferior_ptid.
8597 (fake_create_process): No longer write to current_windows_thread.
8598 (windows_nat_target::get_windows_debug_event):
8599 Don't set inferior_ptid or current_windows_thread.
8600 (windows_nat_target::wait): Adjust to not rely on
8601 current_windows_thread.
8602 (do_initial_windows_stuff): Now a method of windows_nat_target.
8603 Switch to the last_ptid thread.
8604 (windows_nat_target::attach): Adjust.
8605 (windows_nat_target::detach): Use switch_to_no_thread instead of
8606 writing to inferior_ptid directly.
8607 (windows_nat_target::create_inferior): Adjust.
8609 2020-06-18 Pedro Alves <palves@redhat.com>
8611 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8613 2020-06-18 Pedro Alves <palves@redhat.com>
8615 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8616 after creating it, instead of writing to inferior_ptid. Don't
8617 write to inferior_ptid.
8619 2020-06-18 Pedro Alves <palves@redhat.com>
8621 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8623 2020-06-18 Pedro Alves <palves@redhat.com>
8625 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8626 it, instead of writing to inferior_ptid.
8628 2020-06-18 Pedro Alves <palves@redhat.com>
8630 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8633 2020-06-18 Pedro Alves <palves@redhat.com>
8635 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8636 instead of writing to inferior_ptid directly.
8638 2020-06-18 Pedro Alves <palves@redhat.com>
8640 * corelow.c (core_target::close): Use switch_to_no_thread instead
8641 of writing to inferior_ptid directly.
8642 (add_to_thread_list, core_target_open): Use switch_to_thread
8643 instead of writing to inferior_ptid directly.
8645 2020-06-18 Pedro Alves <palves@redhat.com>
8647 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8649 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8651 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8652 inferior_ptid directly.
8653 (darwin_nat_target::init_thread_list): Switch to thread, instead
8654 of writing to inferior_ptid.
8655 (darwin_nat_target::attach): Don't write to inferior_ptid.
8656 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8658 2020-06-18 Pedro Alves <palves@redhat.com>
8660 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8662 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8663 Instead use switch_to_thread.
8664 (gnu_nat_target::detach): Use switch_to_no_thread
8665 instead of writing to inferior_ptid directly. Used passed-in
8666 inferior instead of looking up the inferior by pid.
8668 2020-06-18 Pedro Alves <palves@redhat.com>
8670 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8673 2020-06-18 Pedro Alves <palves@redhat.com>
8675 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8677 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8679 (nto_procfs_target::detach): Avoid referencing
8680 inferior_ptid. Use switch_to_no_thread instead of writing to
8681 inferior_ptid directly.
8682 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8683 instead of writing to inferior_ptid directly.
8684 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8687 2020-06-18 Pedro Alves <palves@redhat.com>
8689 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8690 after creating it, instead of writing to inferior_ptid.
8691 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8692 to inferior_ptid directly.
8693 (gdbsim_target::wait): Don't write to inferior_ptid.
8695 2020-06-18 Pedro Alves <palves@redhat.com>
8697 * remote.c (remote_target::remote_notice_new_inferior): Use
8698 switch_to_thread instead of writing to inferior_ptid directly.
8699 (remote_target::add_current_inferior_and_thread): Use
8700 switch_to_no_thread instead of writing to inferior_ptid directly.
8701 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8702 and switch_to_thread instead of using set_current_inferior or
8703 writing to inferior_ptid directly.
8705 2020-06-18 Pedro Alves <palves@redhat.com>
8707 * tracectf.c (ctf_target_open): Switch to added thread instead of
8708 writing to inferior_ptid directly.
8709 (ctf_target::close): Use switch_to_no_thread instead of writing to
8710 inferior_ptid directly.
8712 2020-06-18 Pedro Alves <palves@redhat.com>
8714 * tracefile-tfile.c (tfile_target_open): Don't write to
8715 inferior_ptid directly, instead switch to added thread.
8716 (tfile_target::close): Use switch_to_no_thread instead of writing
8717 to inferior_ptid directly.
8719 2020-06-18 Pedro Alves <palves@redhat.com>
8721 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8722 (procfs_target::detach): Use switch_to_no_thread
8723 instead of writing to inferior_ptid directly.
8724 (do_attach): Change return type to void. Switch to the added
8726 (procfs_target::create_inferior): Switch to the added thread.
8727 (procfs_do_thread_registers): Don't write to inferior_ptid.
8729 2020-06-18 Pedro Alves <palves@redhat.com>
8731 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8732 of writing to inferior_ptid.
8733 (scoped_restore_exited_inferior): Delete.
8734 (handle_vfork_child_exec_or_exit): Simplify using
8735 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8736 instead of writing to inferior_ptid.
8737 (THREAD_STOPPED_BY): Delete.
8738 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8739 (thread_stopped_by_hw_breakpoint): Delete.
8740 (save_waitstatus): Use
8741 scoped_restore_current_thread+switch_to_thread, and call
8742 target_stopped_by_watchpoint instead of
8743 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8744 instead of thread_stopped_by_sw_breakpoint, and
8745 target_stopped_by_hw_breakpoint instead of
8746 thread_stopped_by_hw_breakpoint.
8747 (handle_inferior_event)
8748 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8749 inferior_ptid directly, nor
8750 set_current_inferior/set_current_program_space. Use
8751 switch_to_thread / switch_to_inferior_no_thread instead.
8753 2020-06-18 Pedro Alves <palves@redhat.com>
8755 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8756 instead of writing to inferior_ptid.
8758 2020-06-18 Pedro Alves <palves@redhat.com>
8760 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8762 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8763 to the added thread.
8764 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8765 instead of writing to inferior_ptid.
8767 2020-06-18 Pedro Alves <palves@redhat.com>
8769 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8770 (register_to_value_test): Mock a program_space too. Heap-allocate
8771 the address space. Don't write to inferior_ptid. Use
8772 switch_to_thread instead.
8774 2020-06-18 Pedro Alves <palves@redhat.com>
8776 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8778 (find_signalled_thread()): New, factored out from
8779 linux_make_corefile_notes and adjusted to handle exited threads.
8780 (linux_make_corefile_notes): Adjust to use the new
8781 find_signalled_thread.
8783 2020-06-18 Pedro Alves <palves@redhat.com>
8785 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8786 of saving/restoring inferior_ptid.
8788 2020-06-17 Tom Tromey <tom@tromey.com>
8790 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8791 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8793 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8795 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8797 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8800 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8802 * regformats/reg-arm.dat: Remove.
8803 * regformats/reg-bfin.dat: Remove.
8804 * regformats/reg-cris.dat: Remove.
8805 * regformats/reg-crisv32.dat: Remove.
8806 * regformats/reg-m32r.dat: Remove.
8807 * regformats/reg-tilegx.dat: Remove.
8808 * regformats/reg-tilegx32.dat: Remove.
8810 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8812 * features/Makefile (WHICH): Remove arm files.
8813 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8814 * regformats/arm/arm-with-neon.dat: Remove.
8815 * regformats/arm/arm-with-vfpv2.dat: Remove.
8816 * regformats/arm/arm-with-vfpv3.dat: Remove.
8818 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8820 * features/Makefile (XMLTOC): Remove rx.xml.
8822 2020-06-17 Pedro Alves <palves@redhat.com>
8824 * gdbthread.h (thread_control_state) <trap_expected> Update
8827 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8829 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8830 ada_language::lookup_symbol_nonlocal.
8831 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8832 (ada_language::lookup_symbol_nonlocal): New member function,
8833 implementation from ada_lookup_symbol_nonlocal.
8834 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8836 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8838 (cplus_language::lookup_symbol_nonlocal): New member function.
8839 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8840 (minimal_language_data) Likewise.
8841 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8842 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8844 (d_language::lookup_symbol_nonlocal): New member function.
8845 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8847 (f_language::lookup_symbol_nonlocal): New member function.
8848 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8850 * language.c (unknown_language_data): Likewise.
8851 (auto_language_data): Likewise.
8852 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8854 (language_defn::lookup_symbol_nonlocal): New member function.
8855 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8857 * objc-lang.c (objc_language_data): Likewise.
8858 * opencl-lang.c (opencl_language_data): Likewise.
8859 * p-lang.c (pascal_language_data): Likewise.
8860 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8861 rust_language::lookup_symbol_nonlocal.
8862 (rust_language_data): Delete la_lookup_symbol_nonlocal
8864 (rust_language::lookup_symbol_nonlocal): New member function,
8865 implementation from rust_lookup_symbol_nonlocal.
8866 * symtab.c (lookup_symbol_aux): Update call to
8867 lookup_symbol_nonlocal.
8868 (basic_lookup_symbol_nonlocal): Rename to...
8869 (language_defn::lookup_symbol_nonlocal): ...this, and update
8870 header comment. Remove language_defn parameter, and replace with
8872 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8874 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8876 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8878 (ada_language::value_print_inner): New member function.
8879 * c-lang.c (c_language_data): Delete la_value_print_inner
8881 (cplus_language_data): Likewise.
8882 (asm_language_data): Likewise.
8883 (minimal_language_data): Likewise.
8884 * d-lang.c (d_language_data): Likewise.
8885 (d_language::value_print_inner): New member function.
8886 * f-lang.c (f_language_data): Delete la_value_print_inner
8888 (f_language::value_print_inner): New member function.
8889 * f-lang.h (f_value_print_innner): Rename to...
8890 (f_value_print_inner): ...this (note spelling of 'inner').
8891 * f-valprint.c (f_value_print_innner): Rename to...
8892 (f_value_print_inner): ...this (note spelling of 'inner').
8893 * go-lang.c (go_language_data): Delete la_value_print_inner
8895 (go_language::value_print_inner): New member function.
8896 * language.c (language_defn::value_print_inner): Define new member
8898 (unk_lang_value_print_inner): Delete.
8899 (unknown_language_data): Delete la_value_print_inner initializer.
8900 (unknown_language::value_print_inner): New member function.
8901 (auto_language_data): Delete la_value_print_inner initializer.
8902 (auto_language::value_print_inner): New member function.
8903 * language.h (language_data): Delete la_value_print_inner field.
8904 (language_defn::value_print_inner): Delcare new member function.
8905 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8907 (m2_language::value_print_inner): New member function.
8908 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8910 * opencl-lang.c (opencl_language_data): Likewise.
8911 * p-lang.c (pascal_language_data): Likewise.
8912 (pascal_language::value_print_inner): New member function.
8913 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8915 (rust_language::value_print_inner): New member function.
8916 * valprint.c (do_val_print): Update call to value_print_inner.
8918 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8920 * ada-lang.c (ada_language_data): Delete la_value_print
8922 (ada_language::value_print): New member function.
8923 * c-lang.c (c_language_data): Delete la_value_print initializer.
8924 (cplus_language_data): Likewise.
8925 (asm_language_data): Likewise.
8926 (minimal_language_data): Likewise.
8927 * d-lang.c (d_language_data): Likewise.
8928 * f-lang.c (f_language_data): Likewise.
8929 * go-lang.c (go_language_data): Likewise.
8930 * language.c (unk_lang_value_print): Delete.
8931 (language_defn::value_print): Define new member function.
8932 (unknown_language_data): Delete la_value_print initializer.
8933 (unknown_language::value_print): New member function.
8934 (auto_language_data): Delete la_value_print initializer.
8935 (auto_language::value_print): New member function.
8936 * language.h (language_data): Delete la_value_print field.
8937 (language_defn::value_print): Declare new member function.
8938 (LA_VALUE_PRINT): Update call to value_print.
8939 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8940 * objc-lang.c (objc_language_data): Likewise.
8941 * opencl-lang.c (opencl_language_data): Likewise.
8942 * p-lang.c (pascal_language_data): Likewise.
8943 (pascal_language::value_print): New member function.
8944 * rust-lang.c (rust_language_data): Delete la_value_print
8947 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8949 * ada-lang.c (ada_watch_location_expression): Rename to
8950 ada_language::watch_location_expression.
8951 (ada_language_data): Delete la_watch_location_expression
8953 (ada_language::watch_location_expression): New member function,
8954 implementation from ada_watch_location_expression.
8955 * breakpoint.c (watch_command_1): Update call to
8956 watch_location_expression.
8957 * c-lang.c (c_watch_location_expression): Rename to
8958 language_defn::watch_location_expression.
8959 (c_language_data): Delete la_watch_location_expression
8961 (cplus_language_data): Likewise.
8962 (asm_language_data): Likewise.
8963 (minimal_language_data): Likewise.
8964 * c-lang.h (c_watch_location_expression): Delete declaration.
8965 * d-lang.c (d_language_data): Delete la_watch_location_expression
8967 * f-lang.c (f_language_data): Likewise.
8968 * go-lang.c (go_language_data): Likewise.
8969 * language.c (language_defn::watch_location_expression): Member
8970 function implementation from c_watch_location_expression.
8971 (unknown_language_data): Delete la_watch_location_expression
8973 (auto_language_data): Likewise.
8974 * language.h (language_data): Delete la_watch_location_expression
8976 (language_defn::watch_location_expression): Declare new member
8978 * m2-lang.c (m2_language_data): Delete
8979 la_watch_location_expression initializer.
8980 * objc-lang.c (objc_language_data): Likewise.
8981 * opencl-lang.c (opencl_language_data): Likewise.
8982 * p-lang.c (pascal_language_data): Likewise.
8983 * rust-lang.c (rust_watch_location_expression): Rename to
8984 rust_language::watch_location_expression.
8985 (rust_language_data): Delete la_watch_location_expression
8987 (rust_language::watch_location_expression): New member function,
8988 implementation from rust_watch_location_expression.
8990 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8992 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8993 ada_language::collect_symbol_completion_matches.
8994 (ada_language_data): Delete la_collect_symbol_completion_matches
8996 (ada_language::collect_symbol_completion_matches): New member
8997 function, implementation from
8998 ada_collect_symbol_completion_matches.
8999 * c-lang.c (c_language_data): Delete
9000 la_collect_symbol_completion_matches initializer.
9001 (cplus_language_data): Likewise.
9002 (asm_language_data): Likewise.
9003 (minimal_language_data): Likewise.
9004 * d-lang.c (d_language_data): Likewise.
9005 * f-lang.c (f_collect_symbol_completion_matches): Rename to
9006 f_language::collect_symbol_completion_matches.
9007 (f_language_data): Delete la_collect_symbol_completion_matches
9009 (f_language::collect_symbol_completion_matches) New member
9010 function, implementation from f_collect_symbol_completion_matches.
9011 * go-lang.c (go_language_data): Delete
9012 la_collect_symbol_completion_matches initializer.
9013 * language.c (unknown_language_data): Likewise.
9014 (auto_language_data): Likewise.
9015 * language.h (language_data): Delete
9016 la_collect_symbol_completion_matches field.
9017 (language_defn::collect_symbol_completion_matches): New member
9019 * m2-lang.c (m2_language_data): Delete
9020 la_collect_symbol_completion_matches initializer.
9021 * objc-lang.c (objc_language_data): Likewise.
9022 * opencl-lang.c (opencl_language_data): Likewise.
9023 * p-lang.c (pascal_language_data): Likewise.
9024 * rust-lang.c (rust_language_data): Likewise.
9025 * symtab.c (default_collect_symbol_completion_matches): Delete.
9026 (collect_symbol_completion_matches): Update call to
9027 collect_symbol_completion_matches.
9028 (collect_symbol_completion_matches_type): Likewise.
9029 * symtab.h (default_collect_symbol_completion_matches): Delete
9032 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9034 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
9035 (ada_language_data): Delete la_word_break_characters initializer.
9036 (ada_language::word_break_characters): New member function.
9037 * c-lang.c (c_language_data): Delete la_word_break_characters
9039 (cplus_language_data): Likewise.
9040 (asm_language_data): Likewise.
9041 (minimal_language_data): Likewise.
9042 * completer.c: Update global comment.
9043 (advance_to_expression_complete_word_point): Update call to
9044 word_break_characters.
9045 (complete_files_symbols): Likewise.
9046 (complete_line_internal_1): Likewise.
9047 (default_completer_handle_brkchars): Likewise.
9048 (skip_quoted_chars): Likewise.
9049 * d-lang.c (d_language_data): Delete la_word_break_characters
9051 * f-lang.c (f_word_break_characters): Delete.
9052 (f_language_data): Delete la_word_break_characters initializer.
9053 (f_language::word_break_characters): New member function.
9054 * go-lang.c (go_language_data): Delete la_word_break_characters
9056 * language.c (unknown_language_data): Likewise.
9057 (auto_language_data): Likewise.
9058 * language.h (default_word_break_characters): Move declaration to
9059 earlier in the file.
9060 (language_data): Delete la_word_break_characters field.
9061 (language_defn::word_break_characters): New member function.
9062 * m2-lang.c (m2_language_data): Delete la_word_break_characters
9064 * objc-lang.c (objc_language_data): Likewise.
9065 * opencl-lang.c (opencl_language_data): Likewise.
9066 * p-lang.c (pascal_language_data): Likewise.
9067 * rust-lang.c (rust_language_data): Likewise.
9069 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9071 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
9072 (ada_language_data): Delete la_get_symbol_name_matcher
9074 (language_defn::get_symbol_name_matcher_inner): New member
9076 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
9078 (cplus_language_data): Likewise.
9079 (cplus_language::get_symbol_name_matcher_inner): New member
9081 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
9082 (minimal_language_data): Likewise.
9083 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
9084 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
9086 * dictionary.c (iter_match_first_hashed): Update call to
9087 get_symbol_name_matcher.
9088 (iter_match_next_hashed): Likewise.
9089 (iter_match_next_linear): Likewise.
9090 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
9091 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
9093 (f_language::get_symbol_name_matcher_inner): New member function.
9094 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
9096 * language.c (default_symbol_name_matcher): Update header comment,
9098 (language_defn::get_symbol_name_matcher): New definition.
9099 (language_defn::get_symbol_name_matcher_inner): Likewise.
9100 (get_symbol_name_matcher): Delete.
9101 (unknown_language_data): Delete la_get_symbol_name_matcher
9103 (auto_language_data): Likewise.
9104 * language.h (language_data): Delete la_get_symbol_name_matcher
9106 (language_defn::get_symbol_name_matcher): New member function.
9107 (language_defn::get_symbol_name_matcher_inner): Likewise.
9108 (default_symbol_name_matcher): Delete declaration.
9109 * linespec.c (find_methods): Update call to
9110 get_symbol_name_matcher.
9111 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
9113 * minsyms.c (lookup_minimal_symbol): Update call to
9114 get_symbol_name_matcher.
9115 (iterate_over_minimal_symbols): Likewise.
9116 * objc-lang.c (objc_language_data): Delete
9117 la_get_symbol_name_matcher initializer.
9118 * opencl-lang.c (opencl_language_data): Likewise.
9119 * p-lang.c (pascal_language_data): Likewise.
9120 * psymtab.c (psymbol_name_matches): Update call to
9121 get_symbol_name_matcher.
9122 * rust-lang.c (rust_language_data): Delete
9123 la_get_symbol_name_matcher initializer.
9124 * symtab.c (symbol_matches_search_name): Update call to
9125 get_symbol_name_matcher.
9126 (compare_symbol_name): Likewise.
9128 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9130 * ada-lang.c (ada_language_data): Delete la_compute_program
9132 * c-lang.c (c_language_data): Likewise.
9133 (c_language::compute_program): New member function.
9134 (cplus_language_data): Delete la_compute_program initializer.
9135 (cplus_language::compute_program): New member function.
9136 (asm_language_data): Delete la_compute_program initializer.
9137 (minimal_language_data): Likewise.
9138 * c-lang.h (c_compute_program): Update comment.
9139 (cplus_compute_program): Likewise.
9140 * compile/compile-c-support.c (c_compute_program): Likewise.
9141 (cplus_compute_program): Likewise.
9142 * compile/compile.c (compile_to_object): Update call to
9144 * d-lang.c (d_language_data): Delete la_compute_program
9146 * f-lang.c (f_language_data): Likewise.
9147 * go-lang.c (go_language_data): Likewise.
9148 * language.c (unknown_language_data): Likewise.
9149 (auto_language_data): Likewise.
9150 * language.h (language_data): Delete la_compute_program field.
9151 (language_defn::compute_program): New member function.
9152 * m2-lang.c (m2_language_data): Delete la_compute_program
9154 * objc-lang.c (objc_language_data): Likewise.
9155 * opencl-lang.c (opencl_language_data): Likewise.
9156 * p-lang.c (pascal_language_data): Likewise.
9157 * rust-lang.c (rust_language_data): Likewise.
9159 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9161 * ada-lang.c (ada_language_data) Delete
9162 la_class_name_from_physname initializer.
9163 * c-lang.c (c_language_data): Likewise.
9164 (cplus_language_data): Likewise.
9165 (cplus_language::class_name_from_physname): New member function.
9166 (asm_language_data): Delete la_class_name_from_physname
9168 (minimal_language_data): Likewise.
9169 * d-lang.c (d_language_data): Likewise.
9170 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
9171 method on language_defn class.
9172 (guess_full_die_structure_name): Likewise.
9173 * f-lang.c (f_language_data): Delete la_class_name_from_physname
9175 * go-lang.c (go_language_data): Likewise.
9176 * language.c (language_class_name_from_physname): Delete.
9177 (unk_lang_class_name): Delete.
9178 (unknown_language_data): Delete la_class_name_from_physname
9180 (auto_language_data): Likewise.
9181 * language.h (language_data): Delete la_class_name_from_physname
9183 (language_defn::class_name_from_physname): New function.
9184 (language_class_name_from_physname): Delete declaration.
9185 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
9187 * objc-lang.c (objc_language_data): Likewise.
9188 * opencl-lang.c (opencl_language_data): Likewise.
9189 * p-lang.c (pascal_language_data): Likewise.
9190 * rust-lang.c (rust_language_data): Likewise.
9192 2020-06-16 Tom Tromey <tom@tromey.com>
9194 * tui/tui-data.h (STATUS_NAME): New macro.
9195 * tui/tui-layout.c (tui_remove_some_windows)
9196 (initialize_known_windows, tui_register_window)
9197 (tui_layout_split::remove_windows, initialize_layouts)
9198 (tui_new_layout_command): Don't use hard-coded window names.
9200 2020-06-16 Tom Tromey <tom@tromey.com>
9203 * tui/tui.c (tui_ensure_readline_initialized): Rename from
9204 tui_initialize_readline. Only run once. Call rl_initialize.
9205 * tui/tui.h (tui_ensure_readline_initialized): Rename from
9206 tui_initialize_readline.
9207 * tui/tui-io.c (tui_setup_io): Call
9208 tui_ensure_readline_initialized.
9209 * tui/tui-interp.c (tui_interp::init): Update.
9211 2020-06-16 Tom Tromey <tom@tromey.com>
9213 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
9214 Also preserve the status window.
9216 2020-06-16 Tom Tromey <tom@tromey.com>
9218 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
9219 where m_window==nullptr.
9221 2020-06-15 Tom Tromey <tromey@adacore.com>
9223 * windows-nat.c (windows_nat::handle_output_debug_string):
9225 (windows_nat::handle_ms_vc_exception): Update.
9226 * target.h (target_read_string): Change API.
9227 * target.c (target_read_string): Change API.
9228 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9230 * solib-frv.c (frv_current_sos): Update.
9231 * solib-dsbt.c (dsbt_current_sos): Update.
9232 * solib-darwin.c (darwin_current_sos): Update.
9233 * linux-thread-db.c (inferior_has_bug): Update.
9234 * expprint.c (print_subexp_standard): Update.
9235 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
9236 (ada_exception_message_1): Update.
9238 2020-06-15 Tom Tromey <tromey@adacore.com>
9240 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
9242 2020-06-15 Tom Tromey <tromey@adacore.com>
9244 * valprint.c (read_string): Update comment.
9245 * target.c (MIN): Remove.
9246 (target_read_string): Rewrite.
9248 2020-06-15 Tom Tromey <tromey@adacore.com>
9250 * corefile.c (read_memory_string): Remove.
9251 * ada-valprint.c (ada_value_print_ptr): Update.
9252 * ada-lang.h (ada_tag_name): Change return type.
9253 * ada-lang.c (type_from_tag): Update.
9254 (ada_tag_name_from_tsd): Change return type. Use
9256 (ada_tag_name): Likewise.
9257 * gdbcore.h (read_memory_string): Don't declare.
9259 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
9261 * symtab.c (rbreak_command): Ignore Windows drive colon.
9263 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
9265 * NEWS: Mention removed GDBserver host support.
9267 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
9269 * features/riscv/rebuild-csr-xml.sh: Updated.
9271 2020-06-11 Tom Tromey <tom@tromey.com>
9274 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9276 2020-06-09 Jonny Grant <jg@jguk.org>
9277 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9279 * main.c (captured_main_1): Don't print new line after help.
9280 (print_gdb_help): add mailing list and IRC channel information
9281 to --help. Add new lines between items in the footer. Remove
9282 quotes around bug url.
9284 2020-06-11 Keith Seitz <keiths@redhat.com>
9287 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9288 Resolve typedefs for type length calculations.
9290 2020-06-10 Tom de Vries <tdevries@suse.de>
9293 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9294 (write_psymbols): Enable .gdb_index for ada.
9295 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9298 2020-06-10 Tom de Vries <tdevries@suse.de>
9300 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9301 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9302 namei" instead of "const char *name" argument.
9303 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9304 dw2_symtab_iter_init.
9306 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9308 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9309 to use type::field and field::type instead.
9311 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9313 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9314 to use field::type instead.
9316 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9318 * gdbtypes.h (struct field) <type, set_type>: New methods.
9319 Rename `type` field to...
9320 <m_type>: ... this. Change references throughout to use type or
9322 (FIELD_TYPE): Use field::type. Change call sites that modify
9323 the field's type to use field::set_type instead.
9325 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9327 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9328 to use type::index_type instead.
9330 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9332 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9334 (TYPE_INDEX_TYPE): Use type::index_type.
9335 * gdbtypes.c (create_array_type_with_stride): Likewise.
9337 2020-06-07 Tom Tromey <tom@tromey.com>
9339 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9341 (generic_value_print): Update.
9343 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9345 Revert commit 982a38f60b0.
9346 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9348 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9350 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9351 avoid use after free.
9353 2020-06-05 Tom de Vries <tdevries@suse.de>
9357 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
9359 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9361 (dwarf2_read_debug_names): Likewise.
9362 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9363 object when re-using a per_bfd object with an index.
9365 2020-06-03 Tom de Vries <tdevries@suse.de>
9368 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9370 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9373 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9375 * ada-lang.c (ada_language_data): Delete skip_trampoline
9377 * c-lang.c (c_language_data): Likewise.
9378 (cplus_language_data): Likewise.
9379 (cplus_language::skip_trampoline): New member function.
9380 (asm_language_data): Delete skip_trampoline initializer.
9381 (minimal_language_data): Likewise.
9382 * d-lang.c (d_language_data): Likewise.
9383 * f-lang.c (f_language_data): Likewise.
9384 * go-lang.c (go_language_data): Likewise.
9385 * language.c (unk_lang_trampoline): Delete function.
9386 (skip_language_trampoline): Update.
9387 (unknown_language_data): Delete skip_trampoline initializer.
9388 (auto_language_data): Likewise.
9389 * language.h (language_data): Delete skip_trampoline field.
9390 (language_defn::skip_trampoline): New function.
9391 * m2-lang.c (m2_language_data): Delete skip_trampoline
9393 * objc-lang.c (objc_skip_trampoline): Delete function, move
9394 implementation to objc_language::skip_trampoline.
9395 (objc_language_data): Delete skip_trampoline initializer.
9396 (objc_language::skip_trampoline): New member function with
9397 implementation from objc_skip_trampoline.
9398 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9400 * p-lang.c (pascal_language_data): Likewise.
9401 * rust-lang.c (rust_language_data): Likewise.
9403 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9405 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9406 (ada_language::demangle): New member function.
9407 * c-lang.c (c_language_data): Delete la_demangle initializer.
9408 (cplus_language_data): Delete la_demangle initializer.
9409 (cplus_language::demangle): New member function.
9410 (asm_language_data): Delete la_demangle initializer.
9411 (minimal_language_data): Delete la_demangle initializer.
9412 * d-lang.c (d_language_data): Delete la_demangle initializer.
9413 (d_language::demangle): New member function.
9414 * f-lang.c (f_language_data): Delete la_demangle initializer.
9415 (f_language::demangle): New member function.
9416 * go-lang.c (go_language_data): Delete la_demangle initializer.
9417 (go_language::demangle): New member function.
9418 * language.c (language_demangle): Update.
9419 (unk_lang_demangle): Delete.
9420 (unknown_language_data): Delete la_demangle initializer.
9421 (unknown_language::demangle): New member function.
9422 (auto_language_data): Delete la_demangle initializer.
9423 (auto_language::demangle): New member function.
9424 * language.h (language_data): Delete la_demangle field.
9425 (language_defn::demangle): New function.
9426 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9427 * objc-lang.c (objc_language_data): Delete la_demangle
9429 (objc_language::demangle): New member function.
9430 * opencl-lang.c (opencl_language_data): Delete la_demangle
9432 * p-lang.c (pascal_language_data): Likewise.
9433 * rust-lang.c (rust_language_data): Likewise.
9434 (rust_language::demangle): New member function.
9436 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9438 * ada-lang.c (ada_language_data): Delete la_print_type
9440 (ada_language::print_type): New member function.
9441 * c-lang.c (c_language_data): Delete la_print_type initializer.
9442 (c_language::print_type): New member function.
9443 (cplus_language_data): Delete la_print_type initializer.
9444 (cplus_language::print_type): New member function.
9445 (asm_language_data): Delete la_print_type initializer.
9446 (asm_language::print_type): New member function.
9447 (minimal_language_data): Delete la_print_type initializer.
9448 (minimal_language::print_type): New member function.
9449 * d-lang.c (d_language_data): Delete la_print_type initializer.
9450 (d_language::print_type): New member function.
9451 * f-lang.c (f_language_data): Delete la_print_type initializer.
9452 (f_language::print_type): New member function.
9453 * go-lang.c (go_language_data): Delete la_print_type initializer.
9454 (go_language::print_type): New member function.
9455 * language.c (unk_lang_print_type): Delete.
9456 (unknown_language_data): Delete la_print_type initializer.
9457 (unknown_language::print_type): New member function.
9458 (auto_language_data): Delete la_print_type initializer.
9459 (auto_language::print_type): New member function.
9460 * language.h (language_data): Delete la_print_type field.
9461 (language_defn::print_type): New function.
9462 (LA_PRINT_TYPE): Update.
9463 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9464 (m2_language::print_type): New member function.
9465 * objc-lang.c (objc_language_data): Delete la_print_type
9467 (objc_language::print_type): New member function.
9468 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9469 to opencl_language::print_type.
9470 (opencl_language_data): Delete la_print_type initializer.
9471 (opencl_language::print_type): New member function, implementation
9472 from opencl_print_type.
9473 * p-lang.c (pascal_language_data): Delete la_print_type
9475 (pascal_language::print_type): New member function.
9476 * rust-lang.c (rust_print_type): Delete, implementation moved to
9477 rust_language::print_type.
9478 (rust_language_data): Delete la_print_type initializer.
9479 (rust_language::print_type): New member function, implementation
9480 from rust_print_type.
9482 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9484 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9485 implementation moves to...
9486 (ada_language::sniff_from_mangled_name): ...here. Update return
9488 (ada_language_data): Delete la_sniff_from_mangled_name
9490 * c-lang.c (c_language_data): Likewise.
9491 (cplus_language_data): Likewise.
9492 (cplus_language::sniff_from_mangled_name): New member function,
9493 implementation taken from gdb_sniff_from_mangled_name.
9494 (asm_language_data): Delete la_sniff_from_mangled_name
9496 (minimal_language_data): Likewise.
9497 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9498 implementation moves to cplus_language::sniff_from_mangled_name.
9499 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9500 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9502 (d_language::sniff_from_mangled_name): ...here.
9503 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9504 * f-lang.c (f_language_data): Likewise.
9505 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9507 (go_language::sniff_from_mangled_name): ...here.
9508 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9509 * language.c (language_sniff_from_mangled_name): Delete.
9510 (unknown_language_data): Delete la_sniff_from_mangled_name
9512 (auto_language_data): Likewise.
9513 * language.h (language_data): Delete la_sniff_from_mangled_name
9515 (language_defn::sniff_from_mangled_name): New function.
9516 (language_sniff_from_mangled_name): Delete declaration.
9517 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9519 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9520 implementation moves to...
9521 (objc_language::sniff_from_mangled_name): ...here.
9522 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9523 * opencl-lang.c (opencl_language_data): Likewise.
9524 * p-lang.c (pascal_language_data): Likewise.
9525 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9526 implementation moves to...
9527 (rust_language::sniff_from_mangled_name): ...here.
9528 (rust_language_data): Delete la_sniff_from_mangled_name
9530 * symtab.c (symbol_find_demangled_name): Call
9531 sniff_from_mangled_name member function.
9533 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9535 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9537 * c-lang.c (c_language_data): Likewise.
9538 (cplus_language_data): Likewise.
9539 (cplus_language::search_name_hash): New member function.
9540 (asm_language_data): Delete la_search_name_hash initializer.
9541 (minimal_language_data): Likewise.
9542 * d-lang.c (d_language_data): Likewise.
9543 * dictionary.c (default_search_name_hash): Rename to...
9544 (language_defn::search_name_hash): ...this.
9545 * f-lang.c (f_language_data): Likewise.
9546 (f_language::search_name_hash): New member function.
9547 * go-lang.c (go_language_data): Delete la_search_name_hash
9549 * language.c (unknown_language_data): Likewise.
9550 (auto_language_data): Likewise.
9551 * language.h (struct language_data): Delete la_search_name_hash
9553 (language_defn::search_name_hash): Declare new member function.
9554 (default_search_name_hash): Delete declaration.
9555 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9557 * objc-lang.c (objc_language_data): Likewise.
9558 * opencl-lang.c (opencl_language_data): Likewise.
9559 * p-lang.c (pascal_language_data): Likewise.
9560 * rust-lang.c (rust_language_data): Likewise.
9561 * symtab.c (search_name_hash): Update call.
9563 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9565 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9567 * c-lang.c (class compile_instance): Declare.
9568 (c_language_data): Delete la_get_compile_instance initializer.
9569 (c_language::get_compile_instance): New member function.
9570 (cplus_language_data): Delete la_get_compile_instance initializer.
9571 (cplus_language::get_compile_instance): New member function.
9572 (asm_language_data): Delete la_get_compile_instance initializer.
9573 (minimal_language_data): Likewise.
9574 * c-lang.h (c_get_compile_context): Update comment.
9575 (cplus_get_compile_context): Update comment.
9576 * compile/compile.c (compile_to_object): Update calls, don't rely
9577 on function pointer being NULL.
9578 * d-lang.c (d_language_data): Delete la_get_compile_instance
9580 * f-lang.c (f_language_data): Likewise.
9581 * go-lang.c (go_language_data): Likewise.
9582 * language.c (unknown_language_data): Likewise.
9583 (auto_language_data): Likewise.
9584 * language.h (language_data): Delete la_get_compile_instance field.
9585 (language_defn::get_compile_instance): New member function.
9586 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9588 * objc-lang.c (objc_language_data): Likewise.
9589 * opencl-lang.c (opencl_language_data): Likewise.
9590 * p-lang.c (pascal_language_data): Likewise.
9591 * rust-lang.c (rust_language_data): Likewise.
9593 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9595 * ada-lang.c (ada_add_all_symbols): Update comment.
9596 (ada_iterate_over_symbols): Delete, move implementation to...
9597 (ada_language::iterate_over_symbols): ...here, a new member
9598 function, rewrite to use range based for loop.
9599 (ada_language_data): Delete la_iterate_over_symbols initializer.
9600 * c-lang.c (c_language_data): Likewise.
9601 (cplus_language_data): Likewise.
9602 (asm_language_data): Likewise.
9603 (minimal_language_data): Likewise.
9604 * d-lang.c (d_language_data): Likewise.
9605 * f-lang.c (f_language_data): Likewise.
9606 * go-lang.c (go_language_data): Likewise.
9607 * language.c (unknown_language_data): Likewise.
9608 (auto_language_data): Likewise.
9609 * language.h (language_data): Delete la_iterate_over_symbols field.
9610 (language_defn::iterate_over_symbols): New member function.
9611 (LA_ITERATE_OVER_SYMBOLS): Update.
9612 * linespec.c (iterate_over_all_matching_symtabs): Update.
9613 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9615 * objc-lang.c (objc_language_data): Likewise.
9616 * opencl-lang.c (opencl_language_data): Likewise.
9617 * p-lang.c (pascal_language_data): Likewise.
9618 * rust-lang.c (rust_language_data): Likewise.
9620 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9622 * ada-lang.c (ada_language_data): Delete
9623 la_lookup_transparent_type initializer.
9624 * c-lang.c (c_language_data): Likewise.
9625 (cplus_language_data): Likewise.
9626 (cplus_language::lookup_transparent_type): New member function.
9627 (asm_language_data): Delete la_lookup_transparent_type
9629 (minimal_language_data): Likewise.
9630 * d-lang.c (d_language_data): Likewise.
9631 * f-lang.c (f_language_data): Likewise.
9632 * go-lang.c (go_language_data): Likewise.
9633 * language.c (unknown_language_data): Likewise.
9634 (auto_language_data): Likewise.
9635 * language.h (struct language_data): Delete
9636 la_lookup_transparent_type field.
9637 (language_defn::lookup_transparent_type): New member function.
9638 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9640 * objc-lang.c (objc_language_data): Likewise.
9641 * opencl-lang.c (opencl_language_data): Likewise.
9642 * p-lang.c (pascal_language_data): Likewise.
9643 * rust-lang.c (rust_language_data): Likewise.
9644 * symtab.c (symbol_matches_domain): Update call.
9646 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9648 * ada-lang.c (ada_language_arch_info): Delete function, move
9649 implementation to...
9650 (ada_language::language_arch_info): ...here, a new member
9652 (ada_language_data): Delete la_language_arch_info.
9653 * c-lang.c (c_language_data): Likewise.
9654 (c_language::language_arch_info): New member function.
9655 (cplus_language_arch_info): Delete function, move
9656 implementation to...
9657 (cplus_language::language_arch_info): ...here, a new member
9659 (cplus_language_data): Delete la_language_arch_info.
9660 (asm_language_data): Likewise.
9661 (asm_language::language_arch_info): New member function.
9662 (minimal_language_data): Delete la_language_arch_info.
9663 (minimal_language::language_arch_info): New member function.
9664 * d-lang.c (d_language_arch_info): Delete function, move
9665 implementation to...
9666 (d_language::language_arch_info): ...here, a new member
9668 (d_language_data): Delete la_language_arch_info.
9669 * f-lang.c (f_language_arch_info): Delete function, move
9670 implementation to...
9671 (f_language::language_arch_info): ...here, a new member
9673 (f_language_data): Delete la_language_arch_info.
9674 * go-lang.c (go_language_arch_info): Delete function, move
9675 implementation to...
9676 (go_language::language_arch_info): ...here, a new member
9678 (go_language_data): Delete la_language_arch_info.
9679 * language.c (unknown_language_data): Likewise.
9680 (unknown_language::language_arch_info): New member function.
9681 (auto_language_data): Delete la_language_arch_info.
9682 (auto_language::language_arch_info): New member function.
9683 (language_gdbarch_post_init): Update call to
9684 la_language_arch_info.
9685 * language.h (language_data): Delete la_language_arch_info
9687 (language_defn::language_arch_info): New function.
9688 * m2-lang.c (m2_language_arch_info): Delete function, move
9689 implementation to...
9690 (m2_language::language_arch_info): ...here, a new member
9692 (m2_language_data): Delete la_language_arch_info.
9693 * objc-lang.c (objc_language_arch_info): Delete function, move
9694 implementation to...
9695 (objc_language::language_arch_info): ...here, a new member
9697 (objc_language_data): Delete la_language_arch_info.
9698 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9699 implementation to...
9700 (opencl_language::language_arch_info): ...here, a new member
9702 (opencl_language_data): Delete la_language_arch_info.
9703 * p-lang.c (pascal_language_arch_info): Delete function, move
9704 implementation to...
9705 (pascal_language::language_arch_info): ...here, a new member
9707 (pascal_language_data): Delete la_language_arch_info.
9708 * rust-lang.c (rust_language_arch_info): Delete function, move
9709 implementation to...
9710 (rust_language::language_arch_info): ...here, a new member
9712 (rust_language_data): Delete la_language_arch_info.
9714 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9716 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9718 * c-lang.c (c_language_data): Likewise.
9719 (cplus_language_data): Likewise.
9720 (cplus_language::pass_by_reference_info): New method.
9721 (asm_language_data): Delete la_pass_by_reference initializer.
9722 (minimal_language_data): Likewise.
9723 * cp-abi.c (cp_pass_by_reference): Remove use of
9724 default_pass_by_reference.
9725 * d-lang.c (d_language_data): Likewise.
9726 * f-lang.c (f_language_data): Likewise.
9727 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9728 default_pass_by_reference.
9729 * go-lang.c (go_language_data): Likewise.
9730 * language.c (language_pass_by_reference): Update.
9731 (default_pass_by_reference): Delete.
9732 (unknown_language_data): Delete la_pass_by_reference
9734 (auto_language_data): Likewise.
9735 * language.h (struct language_data): Delete la_pass_by_reference
9737 (language_defn::pass_by_reference_info): New member function.
9738 (default_pass_by_reference): Delete declaration.
9739 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9741 * objc-lang.c (objc_language_data): Likewise.
9742 * opencl-lang.c (opencl_language_data): Likewise.
9743 * p-lang.c (pascal_language_data): Likewise.
9744 * rust-lang.c (rust_language_data): Likewise.
9746 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9748 * ada-lang.c (ada_read_var_value): Delete function, move
9749 implementation to...
9750 (ada_language::read_var_value): ...here.
9751 (ada_language_data): Delete la_read_var_value initializer.
9752 * c-lang.c (c_language_data): Likewise.
9753 (cplus_language_data): Likewise.
9754 (minimal_language_data): Likewise.
9755 * d-lang.c (d_language_data): Likewise.
9756 * f-lang.c (f_language_data): Likewise.
9757 * findvar.c (default_read_var_value): Rename to...
9758 (language_defn::read_var_value): ...this.
9759 * findvar.c (read_var_value): Update header comment, and change to
9760 call member function instead of function pointer.
9761 * go-lang.c (go_language_data): Likewise.
9762 * language.c (unknown_language_data): Delete la_read_var_value
9764 (auto_language_data): Likewise.
9765 * language.h (struct language_data): Delete la_read_var_value
9767 (language_defn::read_var_value): New member function.
9768 (default_read_var_value): Delete declaration.
9769 * m2-lang.c (m2_language_data): Delete la_read_var_value
9771 * objc-lang.c (objc_language_data): Likewise.
9772 * opencl-lang.c (opencl_language_data): Likewise.
9773 * p-lang.c (pascal_language_data): Likewise.
9774 * rust-lang.c (rust_language_data): Likewise.
9775 * value.h (default_read_var_value): Delete declaration.
9777 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9779 * ada-lang.c (ada_print_array_index): Delete function, move
9780 implementation to...
9781 (ada_language::print_array_index): ...here.
9782 (ada_language_data): Delete la_print_array_index initializer.
9783 * c-lang.c (c_language_data): Likewise.
9784 (cplus_language_data): Likewise.
9785 (minimal_language_data): Likewise.
9786 * d-lang.c (d_language_data): Likewise.
9787 * f-lang.c (f_language_data): Likewise.
9788 * go-lang.c (go_language_data): Likewise.
9789 * language.c (default_print_array_index): Delete function, move
9790 implementation to...
9791 (language_defn::print_array_index): ...here.
9792 (unknown_language_data): Delete la_print_array_index initializer.
9793 (auto_language_data): Likewise.
9794 * language.h (struct language_data): Delete la_print_array_index
9796 (language_defn::print_array_index): New member function.
9797 (LA_PRINT_ARRAY_INDEX): Update.
9798 (default_print_array_index): Delete declaration.
9799 * m2-lang.c (m2_language_data): Delete la_print_array_index
9801 * objc-lang.c (objc_language_data): Likewise.
9802 * opencl-lang.c (opencl_language_data): Likewise.
9803 * p-lang.c (pascal_language_data): Likewise.
9804 * rust-lang.c (rust_language_data): Likewise.
9806 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9808 * gdb/ada-lang.c (ada_language_defn): Convert to...
9809 (ada_language_data): ...this.
9810 (class ada_language): New class.
9811 (ada_language_defn): New static global.
9812 * gdb/c-lang.c (c_language_defn): Convert to...
9813 (c_language_data): ...this.
9814 (class c_language): New class.
9815 (c_language_defn): New static global.
9816 (cplus_language_defn): Convert to...
9817 (cplus_language_data): ...this.
9818 (class cplus_language): New class.
9819 (cplus_language_defn): New static global.
9820 (asm_language_defn): Convert to...
9821 (asm_language_data): ...this.
9822 (class asm_language): New class.
9823 (asm_language_defn): New static global.
9824 (minimal_language_defn): Convert to...
9825 (minimal_language_data): ...this.
9826 (class minimal_language): New class.
9827 (minimal_language_defn): New static global.
9828 * gdb/d-lang.c (d_language_defn): Convert to...
9829 (d_language_data): ...this.
9830 (class d_language): New class.
9831 (d_language_defn): New static global.
9832 * gdb/f-lang.c (f_language_defn): Convert to...
9833 (f_language_data): ...this.
9834 (class f_language): New class.
9835 (f_language_defn): New static global.
9836 * gdb/go-lang.c (go_language_defn): Convert to...
9837 (go_language_data): ...this.
9838 (class go_language): New class.
9839 (go_language_defn): New static global.
9840 * gdb/language.c (unknown_language_defn): Remove declaration.
9841 (current_language): Initialize to nullptr, real initialization is
9842 moved to _initialize_language.
9843 (languages): Delete global.
9844 (language_defn::languages): Define.
9845 (set_language_command): Use language_defn::languages.
9846 (set_language): Likewise.
9847 (range_error): Likewise.
9848 (language_enum): Likewise.
9849 (language_def): Likewise.
9850 (add_set_language_command): Use language_def::languages for the
9851 language list, and language_def to lookup language pointers.
9852 (skip_language_trampoline): Use language_defn::languages.
9853 (unknown_language_defn): Convert to...
9854 (unknown_language_data): ...this.
9855 (class unknown_language): New class.
9856 (unknown_language_defn): New static global.
9857 (auto_language_defn): Convert to...
9858 (auto_language_data): ...this.
9859 (class auto_language): New class.
9860 (auto_language_defn): New static global.
9861 (language_gdbarch_post_init): Use language_defn::languages.
9862 (_initialize_language): Initialize current_language.
9863 * gdb/language.h (struct language_defn): Rename to...
9864 (struct language_data): ...this.
9865 (struct language_defn): New.
9866 (auto_language_defn): Delete.
9867 (unknown_language_defn): Delete.
9868 (minimal_language_defn): Delete.
9869 (ada_language_defn): Delete.
9870 (asm_language_defn): Delete.
9871 (c_language_defn): Delete.
9872 (cplus_language_defn): Delete.
9873 (d_language_defn): Delete.
9874 (f_language_defn): Delete.
9875 (go_language_defn): Delete.
9876 (m2_language_defn): Delete.
9877 (objc_language_defn): Delete.
9878 (opencl_language_defn): Delete.
9879 (pascal_language_defn): Delete.
9880 (rust_language_defn): Delete.
9881 * gdb/m2-lang.c (m2_language_defn): Convert to...
9882 (m2_language_data): ...this.
9883 (class m2_language): New class.
9884 (m2_language_defn): New static global.
9885 * gdb/objc-lang.c (objc_language_defn): Convert to...
9886 (objc_language_data): ...this.
9887 (class objc_language): New class.
9888 (objc_language_defn): New static global.
9889 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9890 (opencl_language_data): ...this.
9891 (class opencl_language): New class.
9892 (opencl_language_defn): New static global.
9893 * gdb/p-lang.c (pascal_language_defn): Convert to...
9894 (pascal_language_data): ...this.
9895 (class pascal_language): New class.
9896 (pascal_language_defn): New static global.
9897 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9898 language pointer, update comment format.
9899 * gdb/rust-lang.c (rust_language_defn): Convert to...
9900 (rust_language_data): ...this.
9901 (class rust_language): New class.
9902 (rust_language_defn): New static global.
9904 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9906 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9908 <m_stmt_at_address>: New member variable.
9909 (lnp_state_machine::record_line): Don't record some lines, update
9910 tracking of is_stmt at the same address.
9911 (lnp_state_machine::lnp_state_machine): Initialise new member
9914 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9916 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9917 "-include gnu-nat-mig.h".
9918 * gnu-nat-mig.h: New file.
9919 * gnu-nat.c: Include "gnu-nat-mig.h".
9920 (exc_server, msg_reply_server, notify_server,
9921 process_reply_server): Remove declarations.
9923 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9925 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9926 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9927 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9928 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9929 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9930 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9931 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9932 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9933 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9934 to gnu_nat_target class.
9935 * gnu-nat.c: Likewise.
9936 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9937 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9938 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9940 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9941 instead of `gnu_target'.
9943 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9945 * i386-gnu-tdep.c: Include "gdbcore.h"
9946 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9947 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9948 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9949 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9950 i386_gnu_sigcontext_addr): New functions
9951 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9952 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9955 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9957 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9958 before fork_inferior call. Avoid calling it if target_is_pushed returns
9961 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9963 * gnu-nat.h (gnu_target): New variable declaration.
9964 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9966 * gnu-nat.c (gnu_target): New variable.
9967 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9968 add_thread_silent, and add_thread calls.
9969 (gnu_nat_target::create_inferior): Pass gnu_target to
9970 add_thread_silent, thread_change_ptid call.
9971 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9974 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9976 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9977 (gnu_nat_target::find_memory_regions): Remove unused
9978 `old_address' variable.
9980 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9982 * gnu-nat.c: Include "gdbarch.h".
9984 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9986 * reply_mig_hack.awk (Error return): Cast function through
9987 void *, to bypass compiler function call check.
9989 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9991 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9992 $(srcdir)/reply_mig_hack.awk.
9994 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9996 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9998 2020-05-30 Jonny Grant <jg@jguk.org>
10000 * configure.ac (ACX_BUGURL): change bug URL to https.
10002 2020-05-30 Pedro Alves <palves@redhat.com>
10004 * cp-support.c (replace_typedefs_template): New.
10005 (replace_typedefs_qualified_name): Handle
10006 DEMANGLE_COMPONENT_TEMPLATE.
10008 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
10010 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
10011 dwarf2/index-cache.h, dwarf2/index-write.c,
10012 dwarf2/index-write.h, dwarf2/line-header.c,
10013 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
10014 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
10015 variables and fields from `dwarf2_per_objfile` to just
10016 `per_objfile` throughout.
10018 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
10020 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10021 <push_dwarf_reg_entry_value>: Add comment.
10023 2020-05-28 Kevin Buettner <kevinb@redhat.com>
10024 Keith Seitz <keiths@redhat.com>
10026 * python/python.c (do_start_initialization): Call PyEval_SaveThread
10027 instead of PyEval_ReleaseLock.
10028 (class gdbpy_gil): Move to earlier in file.
10029 (finalize_python): Set gdb_python_initialized.
10030 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
10031 when not initialized.
10033 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
10035 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10036 <push_dwarf_reg_entry_value>: Remove assert. Override
10037 per_objfile with caller_per_objfile.
10039 2020-05-28 Tom de Vries <tdevries@suse.de>
10041 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
10042 PR gold/15646 workaround to symbol kind "type".
10044 2020-05-27 Tom Tromey <tromey@adacore.com>
10046 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
10048 2020-05-27 Tom Tromey <tromey@adacore.com>
10050 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
10051 Use htab_find_with_hash.
10052 <add_abbrev>: Remove "abbrev_number" parameter.
10053 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
10054 "abbrev_number" parameter. Use htab_find_slot_with_hash.
10055 (hash_abbrev): Add comment.
10056 (abbrev_table::lookup_abbrev): Move to header file.
10057 (abbrev_table::read): Update.
10059 2020-05-27 Tom Tromey <tromey@adacore.com>
10061 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
10063 <canonical_name>: New member.
10064 <raw_name>: Rename from "name".
10065 (partial_die_info): Initialize canonical_name.
10066 (scan_partial_symbols): Check raw_name.
10067 (partial_die_parent_scope, partial_die_full_name)
10068 (add_partial_symbol, add_partial_subprogram)
10069 (add_partial_enumeration, load_partial_dies): Use "name" method.
10070 (partial_die_info::name): New method.
10071 (partial_die_info::read, guess_partial_die_structure_name)
10072 (partial_die_info::fixup): Update.
10074 2020-05-27 Tom Tromey <tromey@adacore.com>
10076 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
10077 <get_ref_die_offset>: Inline.
10078 <get_ref_die_offset_complaint>: New method.
10079 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
10080 (attribute::get_ref_die_offset_complaint): Rename from
10081 get_ref_die_offset. Just issue complaint.
10083 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10085 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
10087 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10089 * exec.c (exec_file_attach): Use errno value of first openp failure.
10091 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10093 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
10094 Don't close thread handle.
10096 2020-05-27 Tom Tromey <tom@tromey.com>
10097 Simon Marchi <simon.marchi@efficios.com>
10099 * objfiles.h (struct objfile) <partial_symtabs>: Now a
10101 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
10103 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
10104 dwarf2_per_bfd_objfile_data_key>: New globals.
10105 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
10106 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
10107 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
10109 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
10110 short-circuit when sharing.
10111 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
10112 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
10114 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10116 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
10118 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
10119 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
10121 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10123 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
10124 build_name_components, find_name_components_bounds>:
10125 Add per_objfile parameter.
10126 (struct mapped_index) <symbol_name_at>: Likewise.
10127 (struct mapped_debug_names): Remove constructor.
10128 <dwarf2_per_objfile>: Remove field.
10129 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
10130 (mapped_index_base::find_name_components_bounds,
10131 mapped_index_base::build_name_components,
10132 dw2_expand_symtabs_matching_symbol): Likewise.
10133 (class mock_mapped_index) <symbol_name_at>: Likewise.
10134 (check_match): Likewise.
10135 (check_find_bounds_finds): Likewise.
10136 (test_mapped_index_find_name_component_bounds): Update.
10137 (CHECK_MATCH): Update.
10138 (dw2_expand_symtabs_matching): Update.
10139 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
10140 per_objfile parameter.
10141 <find_vec_in_debug_names>: Likewise.
10142 <m_per_objfile>: New field.
10143 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
10145 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
10146 (dw2_debug_names_iterator::next): Update.
10147 (dw2_debug_names_lookup_symbol): Update.
10148 (dw2_debug_names_expand_symtabs_for_function): Update.
10149 (dw2_debug_names_map_matching_symbols): Update.
10150 (dw2_debug_names_expand_symtabs_matching): Update.
10151 (dwarf2_read_debug_names): Update.
10153 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10155 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
10156 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
10157 move to dwarf2_per_objfile.
10158 <read_in_chain>: Remove.
10159 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
10160 remove_all_cus, age_comp_units>: New methods.
10161 <m_dwarf2_cus>: New member.
10162 (struct dwarf2_per_cu_data) <cu>: Remove.
10163 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
10164 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
10165 moved to methods of dwarf2_per_objfile.
10166 (dwarf2_clear_marks): Remove.
10167 (dwarf2_queue_item::~dwarf2_queue_item): Update.
10168 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
10169 (dwarf2_per_bfd::free_cached_comp_units): Remove.
10170 (dwarf2_per_objfile::remove_all_cus): New.
10171 (class free_cached_comp_units) <~free_cached_comp_units>:
10174 (dw2_do_instantiate_symtab): Adjust.
10175 (fill_in_sig_entry_from_dwo_entry): Adjust.
10176 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10177 (cutu_reader::cutu_reader): Likewise.
10178 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
10179 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
10180 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
10181 and dwarf2_per_objfile::age_comp_units.
10182 (load_partial_comp_unit): Update.
10183 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
10184 (process_queue): Likewise.
10185 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
10187 (dwarf2_read_addr_index): Likewise.
10188 (follow_die_offset): Likewise.
10189 (dwarf2_fetch_die_loc_sect_off): Likewise.
10190 (dwarf2_fetch_constant_bytes): Likewise.
10191 (dwarf2_fetch_die_type_sect_off): Likewise.
10192 (follow_die_sig_1): Likewise.
10193 (load_full_type_unit): Likewise.
10194 (read_signatured_type): Likewise.
10195 (dwarf2_cu::dwarf2_cu): Don't set cu field.
10196 (dwarf2_cu::~dwarf2_cu): Remove.
10197 (dwarf2_per_objfile::get_cu): New.
10198 (dwarf2_per_objfile::set_cu): New.
10199 (age_cached_comp_units): Rename to...
10200 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
10201 to std::unordered_map.
10202 (free_one_cached_comp_unit): Rename to...
10203 (dwarf2_per_objfile::remove_cu): ... this. Adjust
10204 to std::unordered_map.
10205 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
10206 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
10207 a dwarf2_per_objfile in data.
10208 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
10209 (dwarf2_clear_marks): Remove.
10211 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10213 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
10214 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
10215 (init_tu_and_read_dwo_dies): Likewise.
10216 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
10217 (cutu_reader::cutu_reader): Likewise.
10218 (load_partial_comp_unit): Likewise.
10219 (process_psymtab_comp_unit): Update.
10220 (build_type_psymtabs_1): Update.
10221 (process_skeletonless_type_unit): Update.
10222 (load_full_comp_unit): Update.
10223 (find_partial_die): Update.
10224 (dwarf2_read_addr_index): Update.
10225 (read_signatured_type): Update.
10227 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10229 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
10230 m_header_read_in>: New fields.
10231 <get_header>: New method.
10232 * dwarf2/read.c (per_cu_header_read_in): Remove.
10233 (dwarf2_per_cu_data::get_header): New.
10234 (dwarf2_per_cu_data::addr_size): Update.
10235 (dwarf2_per_cu_data::offset_size): Update.
10236 (dwarf2_per_cu_data::ref_addr_size): Update.
10238 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10240 * dwarf2/read.c (load_cu): Return dwarf2_cu.
10241 (dw2_do_instantiate_symtab): Update.
10242 (queue_and_load_all_dwo_tus): Change parameter from
10243 dwarf2_per_cu_data to dwarf2_cu.
10244 (dwarf2_fetch_die_loc_sect_off): Update.
10245 (dwarf2_fetch_constant_bytes): Update.
10246 (dwarf2_fetch_die_type_sect_off): Update.
10248 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10250 * dwarf2/read.c (process_full_comp_unit,
10251 process_full_type_unit): Remove per_cu, per_objfile paramters.
10252 Add dwarf2_cu parameter.
10253 (process_queue): Update.
10255 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10257 * dwarf2/read.c (create_cu_from_index_list): Replace
10258 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10259 (create_cus_from_index_list): Likewise.
10260 (create_cus_from_index): Likewise.
10261 (create_signatured_type_table_from_index): Likewise.
10262 (create_cus_from_debug_names_list): Likewise.
10263 (create_cus_from_debug_names): Likewise.
10264 (dwarf2_read_gdb_index): Update.
10265 (dwarf2_read_debug_names): Update.
10267 2020-05-27 Tom Tromey <tom@tromey.com>
10268 Simon Marchi <simon.marchi@efficios.com>
10270 * dwarf2/read.h (struct dwarf2_per_objfile)
10271 <get_type_for_signatured_type, set_type_for_signatured_type>:
10273 <m_type_map>: New member.
10274 (struct signatured_type) <type>: Remove.
10276 (dwarf2_per_objfile::get_type_for_signatured_type,
10277 dwarf2_per_objfile::set_type_for_signatured_type): New.
10278 (get_signatured_type): Use new methods.
10280 2020-05-27 Tom Tromey <tom@tromey.com>
10281 Simon Marchi <simon.marchi@efficios.com>
10283 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10284 (struct dwarf2_per_objfile) <type_units>: New member.
10285 <get_type_unit_group_unshareable>: New method.
10286 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10287 num_symtabs, symtabs>: Remove; move to
10288 type_unit_group_unshareable.
10289 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10290 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10291 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10293 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10295 * dwarf2/read.h (struct dwarf2_per_cu_data):
10296 <dwarf2_per_objfile>: Remove.
10297 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10298 dwarf2_per_objfile.
10299 (create_signatured_type_table_from_index): Likewise.
10300 (create_signatured_type_table_from_debug_names): Likewise.
10301 (create_debug_type_hash_table): Likewise.
10302 (fill_in_sig_entry_from_dwo_entry): Likewise.
10303 (create_type_unit_group): Likewise.
10304 (read_comp_units_from_section): Likewise.
10305 (create_cus_hash_table): Likewise.
10307 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10309 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10310 dwarf2_per_cu_data::dwarf2_per_objfile.
10311 (compute_compunit_symtab_includes): Likewise.
10312 (dwarf2_cu::start_symtab): Likewise.
10314 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10316 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10318 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10319 (read_namespace_alias): Update.
10320 (lookup_die_type): Update.
10321 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10322 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10324 (disassemble_dwarf_expression): Update.
10326 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10328 * dwarf2/read.h (struct dwarf2_queue_item): Add
10329 dwarf2_per_objfile parameter, assign new parameter.
10330 <per_objfile>: New field.
10331 * dwarf2/read.c (free_one_cached_comp_unit): Add
10332 dwarf2_per_objfile parameter.
10333 (queue_comp_unit): Likewise.
10334 (dw2_do_instantiate_symtab): Update.
10335 (process_psymtab_comp_unit): Update.
10336 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10337 (process_imported_unit_die): Update.
10338 (queue_and_load_dwo_tu): Update.
10339 (follow_die_offset): Update.
10340 (follow_die_sig_1): Update.
10342 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10344 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10345 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10346 (read_call_site_scope): Assign per_objfile.
10347 (dwarf2_per_cu_data::objfile): Remove.
10348 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10349 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10350 dwarf2_per_objfile parameter.
10351 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10352 dwarf2_per_objfile parameter.
10353 (dwarf_expr_reg_to_entry_parameter): Add output
10354 dwarf2_per_objfile parameter.
10355 (locexpr_get_frame_base): Update.
10356 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10357 <push_dwarf_reg_entry_value>: Update.
10358 <call_site_to_target_addr>: Update.
10359 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10361 (value_of_dwarf_reg_entry): Update.
10362 (rw_pieced_value): Update.
10363 (indirect_synthetic_pointer): Update.
10364 (dwarf2_evaluate_property): Update.
10365 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10367 (locexpr_read_variable): Update.
10368 (locexpr_get_symbol_read_needs): Update.
10369 (loclist_read_variable): Update.
10371 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10373 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10374 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10375 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10377 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10378 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10379 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10381 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10382 sect_variable_value): Add dwarf2_per_objfile parameter.
10383 (class dwarf_evaluate_loc_desc) <dwarf_call,
10384 dwarf_variable_value>: Update.
10385 (fetch_const_value_from_synthetic_pointer): Add
10386 dwarf2_per_objfile parameter.
10387 (fetch_const_value_from_synthetic_pointer): Update.
10388 (coerced_pieced_ref): Update.
10389 (class symbol_needs_eval_context) <dwarf_call,
10390 dwarf_variable_value>: Update.
10391 (dwarf2_compile_expr_to_ax): Update.
10393 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10395 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10397 (dwarf2_evaluate_loc_desc_full): Update.
10399 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10401 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10403 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10404 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10405 dwarf2_per_objfile parameter.
10406 (decode_debug_loc_dwo_addresses): Likewise.
10407 (dwarf2_find_location_expression): Update.
10408 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10409 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10411 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10413 (locexpr_describe_location_1): Likewise.
10414 (locexpr_describe_location): Update.
10416 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10418 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10420 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10421 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10422 (dwarf2_compile_property_to_c): Update.
10423 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10424 use text offset from objfile.
10425 (locexpr_tracepoint_var_ref): Update.
10426 (locexpr_generate_c_location): Update.
10427 (loclist_describe_location): Update.
10428 (loclist_tracepoint_var_ref): Update.
10429 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10430 dwarf2_per_objfile parameter.
10431 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10432 use text offset from objfile.
10433 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10435 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10437 * dwarf2/expr.h (struct dwarf_expr_context)
10438 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10440 <per_objfile>: New member.
10441 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10442 dwarf2_per_objfile parameter. Don't set offset, set
10444 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10445 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10446 a dwarf2_per_objfile object instead of an offset.
10447 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10449 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10450 to dwarf2_expr_executor constructor. Don't set offset.
10451 (dwarf2_fetch_cfa_info): Update.
10452 (struct dwarf2_frame_cache) <text_offset>: Remove.
10453 <per_objfile>: New field.
10454 (dwarf2_frame_cache): Update.
10455 (dwarf2_frame_prev_register): Update.
10456 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10457 <dwarf_evaluate_loc_desc>: Add constructor.
10458 (dwarf2_evaluate_loc_desc_full): Update.
10459 (dwarf2_locexpr_baton_eval): Update.
10460 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10462 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10464 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10466 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10467 addr_sized_int_type>: Move to dwarf2_cu.
10468 <int_type>: Move to dwarf2_per_objfile.
10469 (struct dwarf2_per_objfile) <int_type>: Move here.
10470 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10471 addr_sized_int_type>: Move here.
10472 (read_func_scope): Update.
10473 (read_array_type): Update.
10474 (read_tag_string_type): Update.
10475 (attr_to_dynamic_prop): Update.
10476 (dwarf2_per_cu_data::int_type): Rename to...
10477 (dwarf2_per_objfile::int_type): ... this.
10478 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10479 (dwarf2_cu::addr_sized_int_type): ... this.
10480 (read_subrange_type): Update.
10481 (dwarf2_per_cu_data::addr_type): Rename to...
10482 (dwarf2_cu::addr_type): ... this.
10483 (set_die_type): Update.
10485 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10487 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10488 data through per_cu->cu.
10490 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10492 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10493 dwarf2_per_cu_data parameter fo dwarf2_cu.
10494 (lookup_dwo_type_unit): Likewise.
10495 (read_cutu_die_from_dwo): Likewise.
10496 (lookup_dwo_unit): Likewise.
10497 (open_and_init_dwo_file): Likewise.
10498 (lookup_dwo_cutu): Likewise.
10499 (lookup_dwo_comp_unit): Likewise.
10500 (lookup_dwo_type_unit): Likewise.
10501 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10502 (cutu_reader::cutu_reader): Update.
10504 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10506 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10508 (process_full_type_unit): Likewise.
10509 (process_queue): Update.
10511 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10513 * dwarf2/read.c (recursively_compute_inclusions): Add
10514 dwarf2_per_objfile parameter.
10515 (compute_compunit_symtab_includes): Likewise.
10516 (process_cu_includes): Update.
10518 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10520 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10522 (create_type_unit_group): Update.
10523 (process_psymtab_comp_unit_reader): Update.
10524 (build_type_psymtabs_reader): Update.
10526 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10528 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10529 object through m_this_cu->cu.
10531 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10533 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10534 the info parameter.
10535 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10537 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10539 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10540 per_objfile parameter.
10541 (load_full_type_unit): Add per_objfile parameter.
10542 (read_signatured_type): Likewise.
10543 (load_full_comp_unit): Likewise.
10544 (load_cu): Likewise.
10545 (dw2_do_instantiate_symtab): Likewise.
10546 (dw2_get_file_names): Likewise.
10547 (dw2_map_symtabs_matching_filename): Update.
10548 (dw_expand_symtabs_matching_file_matcher): Update.
10549 (dw2_map_symbol_filenames): Update.
10550 (process_psymtab_comp_unit): Add per_objfile parameter.
10551 (build_type_psymtabs_1): Update.
10552 (process_skeletonless_type_unit): Update.
10553 (dwarf2_build_psymtabs_hard): Update.
10554 (load_partial_comp_unit): Add per_objfile parameter.
10555 (scan_partial_symbols): Update.
10556 (load_full_comp_unit): Add per_objfile parameter.
10557 (process_imported_unit_die): Update.
10558 (create_cus_hash_table): Update.
10559 (find_partial_die): Update.
10560 (dwarf2_read_addr_index): Update.
10561 (follow_die_offset): Update.
10562 (dwarf2_fetch_die_loc_sect_off): Update.
10563 (dwarf2_fetch_constant_bytes): Update.
10564 (dwarf2_fetch_die_type_sect_off): Update.
10565 (follow_die_sig_1): Update.
10566 (load_full_type_unit): Add per_objfile parameter.
10567 (read_signatured_type): Likewise.
10569 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10571 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10574 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10576 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10577 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10578 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10580 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10581 (create_cus_from_index): Update.
10582 (dwarf2_read_gdb_index): Update.
10583 (create_cus_from_debug_names): Update.
10584 (dwarf2_read_debug_names): Update.
10585 (get_abbrev_section_for_cu): Update.
10586 (create_all_comp_units): Update.
10587 (read_attribute_value): Update.
10588 (get_debug_line_section): Update.
10589 * dwarf2/index-cache.c (index_cache::store): Update.
10590 * dwarf2/index-write.c (save_gdb_index_command): Update.
10591 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10593 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10595 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10597 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10598 dwarf2_per_cu_data::per_bfd.
10599 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10600 (create_type_unit_group): Likewise.
10601 (queue_comp_unit): Remove reference to
10602 per_cu->dwarf2_per_objfile.
10603 (maybe_queue_comp_unit): Likewise.
10604 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10605 (create_cus_hash_table): Assign new field.
10607 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10609 * dwarf2/read.c: Replace
10610 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10611 dwarf2_cu->per_objfile throughout.
10613 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10615 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10616 parameter, don't use per_cu->dwarf2_per_objfile.
10617 (dw2_instantiate_symtab): Likewise.
10618 (dw2_find_last_source_symtab): Update.
10619 (dw2_map_expand_apply): Update.
10620 (dw2_lookup_symbol): Update.
10621 (dw2_expand_symtabs_for_function): Update.
10622 (dw2_expand_all_symtabs): Update.
10623 (dw2_expand_symtabs_with_fullname): Update.
10624 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10625 don't use per_cu->dwarf2_per_objfile.
10626 (dw2_expand_marked_cus): Update.
10627 (dw2_find_pc_sect_compunit_symtab): Update.
10628 (dw2_debug_names_lookup_symbol): Update.
10629 (dw2_debug_names_expand_symtabs_for_function): Update.
10630 (dw2_debug_names_map_matching_symbols): Update.
10631 (dwarf2_psymtab::expand_psymtab): Update.
10633 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10635 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10636 <per_objfile>: New member.
10637 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10638 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10640 (cutu_reader::cutu_reader): Update.
10641 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10643 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10645 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10646 struct dwarf2_per_objfile.
10647 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10649 * dwarf2/read.c (set_die_type): Update.
10650 (get_die_type_at_offset): Update.
10652 2020-05-27 Tom Tromey <tom@tromey.com>
10653 Simon Marchi <simon.marchi@efficios.com>
10655 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10657 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10658 get_symtab, set_symtab>: New methods.
10659 <m_symtabs>: New field.
10660 (struct dwarf2_psymtab): Derive from partial_symtab.
10661 <readin_p, get_compunit_symtab>: Declare methods.
10662 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10663 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10665 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10666 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10667 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10668 (dw2_symtab_iter_next, dw2_print_stats)
10669 (dw2_expand_symtabs_with_fullname)
10670 (dw2_expand_symtabs_matching_one)
10671 (dw_expand_symtabs_matching_file_matcher)
10672 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10673 (dw2_debug_names_iterator::next)
10674 (dw2_debug_names_map_matching_symbols)
10675 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10676 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10677 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10679 (get_compunit_symtab, process_full_comp_unit)
10680 (process_full_type_unit): Update.
10681 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10683 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10685 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10686 then introduce a new dwarf2_per_objfile type.
10687 <read_line_string>: Move to the new dwarf2_per_objfile type.
10688 <objfile>: Likewise.
10689 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10690 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10691 dwarf2_per_objfile->per_bfd.
10692 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10693 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10694 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10695 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10696 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10697 (dwarf2_per_objfile::locate_sections): Rename to...
10698 (dwarf2_per_bfd::locate_sections): ... this.
10699 (dwarf2_per_objfile::get_cutu): Rename to...
10700 (dwarf2_per_bfd::get_cutu): ... this.
10701 (dwarf2_per_objfile::get_cu): Rename to...
10702 (dwarf2_per_bfd::get_cu): ... this.
10703 (dwarf2_per_objfile::get_tu): Rename to...
10704 (dwarf2_per_bfd::get_tu): ... this.
10705 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10706 (dwarf2_per_bfd::allocate_per_cu): ... this.
10707 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10708 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10709 (get_gdb_index_contents_ftype): Change parameter from
10710 dwarf2_per_objfile to dwarf2_per_bfd.
10711 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10712 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10714 2020-05-27 Tom Tromey <tom@tromey.com>
10715 Simon Marchi <simon.marchi@efficios.com>
10717 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10718 (allocate_piece_closure): Set "per_objfile" member.
10719 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10720 (locexpr_describe_location, loclist_describe_location): Use new
10722 * dwarf2/read.c (read_call_site_scope)
10723 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10724 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10725 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10726 handle_data_member_location): Set per_objfile member.
10727 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10729 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10731 2020-05-27 Tom Tromey <tom@tromey.com>
10733 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10734 allocate_signatured_type>: Declare new methods.
10735 <m_num_psymtabs>: New member.
10736 (struct dwarf2_per_cu_data) <index>: New member.
10737 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10738 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10739 (create_cu_from_index_list): Use allocate_per_cu.
10740 (create_signatured_type_table_from_index)
10741 (create_signatured_type_table_from_debug_names)
10742 (create_debug_type_hash_table, add_type_unit)
10743 (read_comp_units_from_section): Use allocate_signatured_type.
10745 2020-05-27 Tom Tromey <tom@tromey.com>
10747 * psymtab.c (partial_map_expand_apply)
10748 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10749 (psym_lookup_global_symbol_language)
10750 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10751 (psym_print_stats, psym_expand_symtabs_for_function)
10752 (psym_map_symbol_filenames, psym_map_matching_symbols)
10753 (psym_expand_symtabs_matching)
10754 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10755 (maintenance_check_psymtabs): Update.
10756 * psympriv.h (struct partial_symtab) <readin_p,
10757 get_compunit_symtab>: Add objfile parameter.
10758 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10760 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10761 get_compunit_symtab>: Likewise.
10762 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10764 2020-05-27 Tom Tromey <tom@tromey.com>
10766 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10768 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10769 (create_cu_from_index_list)
10770 (create_signatured_type_table_from_index)
10771 (create_signatured_type_table_from_debug_names)
10772 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10773 (dwarf2_create_include_psymtab)
10774 (create_debug_type_hash_table, add_type_unit)
10775 (create_type_unit_group, read_comp_units_from_section)
10776 (dwarf2_compute_name, create_cus_hash_table)
10777 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10778 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10780 (dw2_get_real_path): Likewise. Change argument to
10781 dwarf2_per_objfile.
10783 2020-05-27 Luis Machado <luis.machado@linaro.org>
10786 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10787 for ldrd (immediate).
10789 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10791 * command.h: Add comment giving the name of class_tui.
10792 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10793 create the fake command for the help for class_tui.
10795 2020-05-26 Tom Tromey <tromey@adacore.com>
10797 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10798 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10799 (val_atr): New function.
10800 (value_val_atr): Use it.
10801 * ada-valprint.c (print_optional_low_bound): Change low bound
10802 handling for enums.
10803 (val_print_packed_array_elements): Don't call discrete_position.
10804 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10805 discrete_position for enum types.
10806 * language.c (default_print_array_index): Change type.
10807 * language.h (struct language_defn) <la_print_array_index>: Add
10808 index_type parameter, change type of index_value.
10809 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10810 (default_print_array_index): Update.
10811 * valprint.c (maybe_print_array_index): Don't call
10812 value_from_longest. Update.
10813 (value_print_array_elements): Don't call discrete_position.
10815 2020-05-26 Tom Tromey <tromey@adacore.com>
10817 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10818 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10820 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10823 * avr-tdep.c (avr_integer_to_address): Return data or code
10824 address accordingly to the second 'type' argument of the
10827 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10829 * infcmd.c, inferior.h: (construct_inferior_arguments):
10830 Moved function from here to gdbsupport/common-inferior.{h,cc}
10832 2020-05-23 Tom Tromey <tom@tromey.com>
10834 Revert commit eca1f90c:
10835 * NEWS: Remove entry for completion styling.
10836 * completer.c (_rl_completion_prefix_display_length): Move
10838 (gdb_fnprint): Revert.
10839 (gdb_display_match_list_1): Likewise.
10840 * cli/cli-style.c (completion_prefix_style)
10841 (completion_difference_style, completion_suffix_style): Remove.
10842 (_initialize_cli_style): Revert.
10843 * cli/cli-style.h (completion_prefix_style)
10844 (completion_difference_style, completion_suffix_style): Don't
10847 2020-05-24 Pedro Alves <palves@redhat.com>
10849 * symtab.c (completion_list_add_name): Return boolean indication
10850 of whether the symbol matched.
10851 (completion_list_add_symbol): Don't try to remove C++ aliases if
10852 the symbol didn't match in the first place.
10853 * symtab.h (completion_list_add_name): Return bool.
10855 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10857 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10860 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10864 2020-05-23 Tom Tromey <tom@tromey.com>
10866 * NEWS: Add entry for completion styling.
10867 * completer.c (_rl_completion_prefix_display_length): Move
10868 declaration earlier.
10869 (gdb_fnprint): Use completion_style.
10870 (gdb_display_match_list_1): Likewise.
10871 * cli/cli-style.c (completion_prefix_style)
10872 (completion_difference_style, completion_suffix_style): New
10874 (_initialize_cli_style): Register new globals.
10875 * cli/cli-style.h (completion_prefix_style)
10876 (completion_difference_style, completion_suffix_style): Declare.
10878 2020-05-23 Pedro Alves <palves@redhat.com>
10880 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10881 (parse_escape): Use ISDIGIT instead of isdigit.
10882 (puts_debug): Use gdb_isprint instead of isprint.
10883 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10884 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10885 ISSPACE instead of isspace.
10886 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10887 instead of isspace.
10888 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10889 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10890 instead of isxdigit and ISDIGIT instead of isdigit.
10892 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10894 * gdbtypes.h (struct type) <field>: New method.
10895 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10898 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10900 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10901 (TYPE_FIELDS): Use type::fields. Change all call sites that
10902 modify the propery to use type::set_fields instead.
10904 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10906 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10907 type::num_fields instead.
10909 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10911 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10913 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10914 that modify the number of fields to use type::set_num_fields
10917 2020-05-22 Tom Tromey <tromey@adacore.com>
10919 * compile/compile-object-load.h (munmap_list_free): Don't
10922 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10924 * annotate.c (annotate_source_line): Update return type, add call
10925 to update current symtab and line.
10926 * annotate.h (annotate_source_line): Update return type, and
10927 extend header comment.
10928 * source.c (info_line_command): Check annotation_level before
10929 calling annotate_source_line.
10930 * stack.c (print_frame_info): If calling annotate_source_line
10931 returns true, then don't print any other source line information.
10933 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10935 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10937 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10939 * coffread.c (patch_type): Remove NULL check before xfree.
10940 * corefile.c (set_gnutarget): Likewise.
10941 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10942 * exec.c (build_section_table): Likewise.
10943 * remote.c (remote_target::pass_signals): Likewise.
10944 * utils.c (n_spaces): Likewise.
10945 * cli/cli-script.c (document_command): Likewise.
10946 * i386-windows-tdep.c (core_process_module_section): Likewise.
10947 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10949 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10951 * symfile.c (reread_symbols): Clear objfile's section_offsets
10952 vector and section indices, re-compute them by calling
10955 2020-05-20 Tom Tromey <tromey@adacore.com>
10957 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10958 (desc_one_bound, desc_index_type): Compute field name.
10960 2020-05-20 Tom de Vries <tdevries@suse.de>
10963 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10965 2020-05-20 Alan Modra <amodra@gmail.com>
10968 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10970 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10971 passed to bfd_set_filename.
10972 * symfile-mem.c (add_vsyscall_page): Likewise for string
10973 passed to symbol_file_add_from_memory.
10974 (symbol_file_add_from_memory): Make name param a const char* and
10977 2020-05-20 Alan Modra <amodra@gmail.com>
10979 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10980 rather than accessing bfd->filename directly.
10981 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10982 and use bfd_section_name.
10983 * dwarf2/frame.c (decode_frame_entry): Likewise.
10984 * exec.c (exec_set_section_address): Likewise.
10985 * solib-aix.c (solib_aix_bfd_open): Likewise.
10986 * stap-probe.c (get_stap_base_address): Likewise.
10987 * symfile.c (reread_symbols): Likewise.
10989 2020-05-19 Tom Tromey <tromey@adacore.com>
10991 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10993 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10995 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10997 2020-05-19 Pedro Alves <palves@redhat.com>
10999 * NEWS (set exec-file-mismatch): Adjust entry.
11000 * exec.c: Include "build-id.h".
11001 (validate_exec_file): Try to match build IDs instead of filenames.
11002 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
11003 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
11004 and pass down 'warn_if_slow'.
11005 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
11006 gdb_bfd_open_closure to pass it down.
11007 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
11009 2020-05-19 Pedro Alves <palves@redhat.com>
11011 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
11012 * target.c (target_fileio_open_1): Rename to target_fileio_open
11013 and make extern. Use bool.
11014 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
11015 (target_fileio_read_alloc_1): Adjust.
11016 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
11017 (target_fileio_open_warn_if_slow): Delete declaration.
11019 2020-05-19 Pedro Alves <palves@redhat.com>
11021 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
11022 Adjust all callers.
11024 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
11026 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
11027 whether disp is negative.
11029 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
11031 * symfile.h (struct symfile_segment_data)
11032 <~symfile_segment_data>: Remove.
11033 <segment_info>: Change to std::vector.
11034 * symfile.c (default_symfile_segments): Update.
11035 * elfread.c (elf_symfile_segments): Update.
11037 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
11039 * symfile.h (struct symfile_segment_data) <struct segment>: New.
11041 <segment_bases, segment_sizes>: Remove.
11042 * symfile.c (default_symfile_segments): Update.
11043 * elfread.c (elf_symfile_segments): Update.
11044 * remote.c (remote_target::get_offsets): Update.
11045 * solib-target.c (solib_target_relocate_section_addresses):
11048 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
11050 * symfile.h (struct symfile_segment_data): Initialize fields.
11051 <~symfile_segment_data>: Add.
11052 (symfile_segment_data_up): New.
11053 (struct sym_fns) <sym_segments>: Return a
11054 symfile_segment_data_up.
11055 (default_symfile_segments): Return a symfile_segment_data_up.
11056 (free_symfile_segment_data): Remove.
11057 (get_symfile_segment_data): Return a symfile_segment_data_up.
11058 * symfile.c (default_symfile_segments): Likewise.
11059 (get_symfile_segment_data): Likewise.
11060 (free_symfile_segment_data): Remove.
11061 (symfile_find_segment_sections): Update.
11062 * elfread.c (elf_symfile_segments): Return a
11063 symfile_segment_data_up.
11064 * remote.c (remote_target::get_offsets): Update.
11065 * solib-target.c (solib_target_relocate_section_addresses):
11067 * symfile-debug.c (debug_sym_segments): Return a
11068 symfile_segment_data_up.
11070 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11073 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
11074 Hardcode register numbers.
11077 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
11078 procfs_find_LDT_entry): Remove.
11079 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
11080 procfs_find_LDT_entry): Remove.
11081 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
11084 2020-05-17 Pedro Alves <palves@redhat.com>
11085 Andrew Burgess <andrew.burgess@embecosm.com>
11086 Keno Fischer <keno@juliacomputing.com>
11089 * breakpoint.c (build_target_condition_list): Update comments.
11090 (build_target_command_list): Update comments and skip matching
11092 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
11093 a separate function. Simplify "set breakpoint auto-hw off"
11095 (insert_breakpoints): Update comment.
11096 (tracepoint_locations_match): New parameter. For breakpoints,
11097 compare location types too, if the caller wants to.
11098 (handle_automatic_hardware_breakpoints): New functions.
11099 (bp_location_is_less_than): Also sort by location type and
11100 hardware breakpoint length.
11101 (update_global_location_list): Handle "set breakpoint auto-hw on"
11103 (update_breakpoint_locations): Ask breakpoint_locations_match to
11104 ignore location types.
11106 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11108 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
11109 type::name instead.
11111 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11113 * gdbtypes.h (struct type) <name, set_name>: New methods.
11114 (TYPE_CODE): Use type::name. Change all call sites used to set
11115 the name to use type::set_name instead.
11117 2020-05-16 Tom Tromey <tom@tromey.com>
11119 * top.c (quit_force): Update.
11120 * infrun.c (handle_no_resumed): Update.
11121 * top.h (all_uis): New function.
11124 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11126 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
11128 2020-05-16 Pedro Alves <palves@redhat.com>
11131 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
11133 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
11135 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
11137 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
11138 (sparc64_adi_info): Likewise.
11140 2020-05-15 Tom Tromey <tom@tromey.com>
11142 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
11144 (lookup_objfile_from_block): Remove.
11145 (lookup_symbol_in_block, lookup_symbol_in_static_block)
11146 (lookup_global_symbol): Use block_objfile.
11147 * symtab.h (lookup_objfile_from_block): Don't declare.
11148 * printcmd.c (clear_dangling_display_expressions): Use
11150 * parse.c (operator_check_standard): Use block_objfile.
11152 2020-05-15 Tom Tromey <tom@tromey.com>
11154 * language.c (language_alloc_type_symbol): Set
11156 * symtab.c (initialize_objfile_symbol): Remove.
11157 (allocate_symbol): Remove.
11158 (allocate_template_symbol): Remove.
11159 * dwarf2/read.c (fixup_go_packaging): Use "new".
11160 (new_symbol): Use "new".
11161 (read_variable): Don't call initialize_objfile_symbol. Use
11163 (read_func_scope): Use "new".
11164 * xcoffread.c (process_xcoff_symbol): Don't call
11165 initialize_objfile_symbol.
11166 (SYMBOL_DUP): Remove.
11167 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
11169 * symtab.h (allocate_symbol, initialize_objfile_symbol)
11170 (allocate_template_symbol): Don't declare.
11171 (struct symbol): Add copy constructor. Change defaults.
11172 * jit.c (finalize_symtab): Use "new".
11173 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
11175 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11176 (common_block_end): Use "new".
11177 * mdebugread.c (parse_symbol): Use "new".
11178 (new_symbol): Likewise.
11180 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11182 * NEWS: Mention changes to help and apropos.
11184 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11186 * command.h (enum command_class): Improve comments, document
11187 that class_alias is for user-defined aliases, give the class
11188 name for each class, remove unused class_xdb.
11189 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
11190 * breakpoint.c (_initialize_breakpoint): Replace class_alias
11191 by a precise class.
11192 * infcmd.c (_initialize_infcmd): Likewise.
11193 * reverse.c (_initialize_reverse): Likewise.
11194 * stack.c (_initialize_stack): Likewise.
11195 * symfile.c (_initialize_symfile): Likewise.
11196 * tracepoint.c (_initialize_tracepoint): Likewise.
11198 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11200 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
11201 when their aliased command is traversed.
11202 (help_cmd): Add fput_command_names_styled call to
11203 output command name and aliases when command has an alias.
11205 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11207 * cli/cli-decode.h (help_cmd_list): Remove declaration.
11208 * cli/cli-decode.c (help_cmd_list): Declare as static,
11209 remove prefix argument, use bool for recurse arg, rework to show the aliases of
11210 a command together with the command.
11211 (fput_command_name_styled, fput_command_names_styled): New functions.
11212 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
11213 fput_command_name_styled.
11214 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
11215 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
11217 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11219 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
11220 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
11221 * command.h (cmd_show_list): Likewise.
11222 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
11223 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
11225 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11227 * unittests/command-def-selftests.c (traverse_command_structure):
11228 Verify all commands of a list have the same prefix command and
11229 that only the top cmdlist commands have a null prefix.
11231 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11233 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
11234 as prefix, not one of its aliases.
11235 (set_cmd_prefix): Remove.
11236 (do_add_cmd): Centralize the setting of the prefix of a command, when
11237 command is defined after its full chain of prefix commands.
11238 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
11239 (add_setshow_cmd_full): Likewise.
11240 (update_prefix_field_of_prefixed_commands): New function.
11241 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
11242 update_prefix_field_of_prefixed_commands.
11243 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
11244 addresses of remote_set_cmdlist and remote_show_cmdlist given
11245 as argument, not the address of an argument.
11246 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11247 * gdb/remote.c (_initialize_remote): Likewise.
11249 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11251 * cli/cli-cmds.c (alias_command): Check for an existing alias
11252 using lookup_cmd_composition, as valid_command_p is too strict
11253 and forbids aliases that are the prefix of an existing alias
11255 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11256 command is properly recognised as a valid command.
11258 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11260 * unittests/help-doc-selftests.c: Rename to
11261 unittests/command-def-selftests.c
11262 * unittests/command-def-selftests.c (help_doc_tests): Update some
11264 (command_structure_tests, traverse_command_structure): New namespace
11266 (command_structure_invariants_tests): New function.
11267 (_initialize_command_def_selftests) Renamed from
11268 _initialize_help_doc_selftests, register command_structure_invariants
11271 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11273 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11274 an alias of 'show'.
11276 2020-05-15 Joel Brobecker <brobecker@adacore.com>
11278 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11279 ada_is_fixed_point_type. Update all callers.
11280 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11282 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11283 Update all callers.
11284 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11285 print_fixed_point_type. Update all callers.
11286 * ada-valprint.c (ada_value_print_num): Replace call to
11287 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11289 2020-05-14 Kevin Buettner <kevinb@redhat.com>
11291 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11293 (cpu_supports_bts): Add CV_AMD case.
11295 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11296 Simon Marchi <simon.marchi@efficios.com>
11298 * infrun.c (stop_all_threads): Collect multiple wait events at
11301 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11303 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11304 type::code instead.
11306 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11308 * gdbtypes.h (struct type) <code, set_code>: New methods.
11309 (TYPE_CODE): Use type::code. Change all call sites used to set
11310 the code to use type::set_code instead.
11312 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11313 Tom de Vries <tdevries@suse.de>
11314 Pedro Alves <palves@redhat.com>
11317 * infrun.c (stop_all_threads): Do NOT ignore
11318 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11319 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11321 (handle_no_resumed): Remove code handling a live inferior with no
11323 * remote.c (has_single_non_exited_thread): New.
11324 (remote_target::update_thread_list): Do not delete a thread if is
11325 the last thread of the process.
11326 * thread.c (thread_select): Call delete_exited_threads instead of
11329 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11331 * infrun.c (stop_all_threads): Enable/disable thread events of all
11332 targets. Move a debug message denoting the end of the function
11333 into the SCOPED_EXIT block.
11335 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11337 * process-stratum-target.h: Include <set>.
11338 (all_non_exited_process_targets, switch_to_target_no_thread): New
11339 function declarations.
11340 * process-stratum-target.c (all_non_exited_process_targets)
11341 (switch_to_target_no_thread): New function implementations.
11343 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11345 * infrun.c (handle_inferior_event): Extract out a piece of code
11347 (mark_non_executing_threads): ...this new function.
11349 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11351 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11354 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11356 * regcache.c (regcache_read_pc_protected): New function
11357 implementation that returns 0 if the PC cannot read via
11358 'regcache_read_pc'.
11359 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11360 instead of 'regcache_read_pc'.
11361 (keep_going_pass_signal): Ditto.
11363 2020-05-13 Tom Tromey <tromey@adacore.com>
11365 * ada-lang.c (align_value): Remove.
11366 (ada_template_to_fixed_record_type_1): Use align_up.
11368 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11370 * async-event.c: Update the copyright year.
11371 * async-event.h: Update the copyright year.
11373 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
11375 * objfiles.h (is_addr_in_objfile,
11376 shared_objfile_contains_address_p): Return bool.
11377 * objfile.c (is_addr_in_objfile,
11378 shared_objfile_contains_address_p): Return bool.
11380 2020-05-11 Tom Tromey <tromey@adacore.com>
11382 * cli/cli-cmds.c (info_command): Restore.
11383 (_initialize_cli_cmds): Use add_prefix_command for "info".
11384 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11386 2020-05-11 Tom Tromey <tromey@adacore.com>
11388 * ada-lang.c (ada_value_primitive_field): Now public.
11389 * ada-lang.h (ada_value_primitive_field): Declare.
11390 * ada-valprint.c (print_field_values): Use
11391 ada_value_primitive_field for wrapper fields.
11393 2020-05-11 Tom de Vries <tdevries@suse.de>
11395 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11398 2020-05-11 Tom de Vries <tdevries@suse.de>
11401 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11402 with length 0, if not gdb-produced.
11403 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11405 2020-05-09 Tom de Vries <tdevries@suse.de>
11408 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11411 2020-05-09 Tom Tromey <tom@tromey.com>
11413 * top.c (server_command): Now bool.
11414 * top.h (server_command): Now bool.
11416 2020-05-08 Tom Tromey <tromey@adacore.com>
11418 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11419 already being processed.
11421 2020-05-08 Tom Tromey <tom@tromey.com>
11423 * printcmd.c (struct display) <next>: Remove.
11424 <display>: New constructor.
11425 <exp_string>: Now a std::string.
11426 <enabled_p>: Now a bool.
11427 (display_number): Move definition earlier.
11428 (displays): Rename from display_chain. Now a std::vector.
11429 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11430 (display_command): Update.
11431 (do_one_display, disable_display)
11432 (enable_disable_display_command, do_enable_disable_display):
11434 (free_display): Remove.
11435 (clear_displays): Rewrite.
11436 (delete_display): Update.
11437 (map_display_numbers): Use function_view. Remove "data"
11439 (do_delete_display): Remove.
11440 (undisplay_command): Update.
11441 (do_one_display, do_displays, disable_display)
11442 (info_display_command): Update.
11443 (do_enable_disable_display): Remove.
11444 (enable_disable_display_command)
11445 (clear_dangling_display_expressions): Update.
11447 2020-05-08 Tom Tromey <tom@tromey.com>
11449 * symtab.c (set_symbol_cache_size)
11450 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11451 (maintenance_print_symbol_cache_statistics): Update.
11452 * symmisc.c (print_symbol_bcache_statistics)
11453 (print_objfile_statistics, maintenance_print_objfiles)
11454 (maintenance_info_symtabs, maintenance_check_symtabs)
11455 (maintenance_expand_symtabs, maintenance_info_line_tables):
11457 * symfile-debug.c (set_debug_symfile): Update.
11458 * source.c (forget_cached_source_info): Update.
11459 * python/python.c (gdbpy_progspaces): Update.
11460 * psymtab.c (maintenance_info_psymtabs): Update.
11461 * probe.c (parse_probes): Update.
11462 * linespec.c (iterate_over_all_matching_symtabs)
11463 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11464 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11465 * exec.c (exec_target::close): Update.
11466 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11467 * breakpoint.c (print_one_breakpoint_location)
11468 (create_longjmp_master_breakpoint)
11469 (create_std_terminate_master_breakpoint): Update.
11470 * progspace.c (program_spaces): Now a std::vector.
11471 (maybe_new_address_space): Update.
11472 (add_program_space): Remove.
11473 (program_space::program_space): Update.
11474 (remove_program_space): Update.
11475 (number_of_program_spaces): Remove.
11476 (print_program_space, update_address_spaces): Update.
11477 * progspace.h (program_spaces): Change type.
11478 (ALL_PSPACES): Remove.
11479 (number_of_program_spaces): Don't declare.
11480 (struct program_space) <next>: Remove.
11482 2020-05-08 Tom Tromey <tom@tromey.com>
11484 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11485 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11486 (enable_break): Update.
11487 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11488 (frv_fdpic_find_canonical_descriptor): Update.
11489 (frv_fetch_objfile_link_map): Update.
11490 * progspace.c (program_space::free_all_objfiles): Update.
11491 (program_space::solibs): New method.
11492 * progspace.h (struct program_space) <solibs>: New method.
11493 * solist.h (master_so_list): Don't declare.
11494 (ALL_SO_LIBS): Remove.
11495 * solib.h (so_list_head): Remove.
11496 (update_solib_list): Update comment.
11497 * solib.c (master_so_list): Remove.
11498 (solib_used, update_solib_list, solib_add)
11499 (info_sharedlibrary_command, clear_solib)
11500 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11502 2020-05-08 Tom Tromey <tom@tromey.com>
11504 * extension.c (extension_languages): Now a std::array.
11505 (ALL_EXTENSION_LANGUAGES): Remove.
11506 (get_ext_lang_defn, get_ext_lang_of_file)
11507 (eval_ext_lang_from_control_command): Update.
11508 (finish_ext_lang_initialization)
11509 (auto_load_ext_lang_scripts_for_objfile)
11510 (ext_lang_type_printers::ext_lang_type_printers)
11511 (apply_ext_lang_type_printers)
11512 (ext_lang_type_printers::~ext_lang_type_printers)
11513 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11514 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11515 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11516 (get_matching_xmethod_workers, ext_lang_colorize)
11517 (ext_lang_before_prompt): Update.
11518 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11520 2020-05-08 Tom Tromey <tom@tromey.com>
11522 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11524 <swap_string, m_string>: Remove.
11525 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11527 * stabsread.c (define_symbol, read_type): Update.
11528 * linespec.c (find_linespec_symbols): Update.
11529 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11530 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11531 * dbxread.c (read_dbx_symtab): Update.
11532 * cp-support.h (cp_canonicalize_string_full)
11533 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11534 Return unique_xmalloc_ptr.
11535 * cp-support.c (inspect_type): Update.
11536 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11537 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11539 * c-typeprint.c (print_name_maybe_canonical): Update.
11540 * break-catch-throw.c (check_status_exception_catchpoint):
11543 2020-05-08 Tom de Vries <tdevries@suse.de>
11545 * infrun.c (follow_fork): Copy current_line and current_symtab to
11548 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11550 * async-event.c (struct async_signal_handler, struct
11551 async_event_handler): Reformat, remove typedef.
11553 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11555 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11556 access thistype->main_type->dyn_prop_list directly.
11558 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11560 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11561 (remove_dyn_prop): Remove. Update all users to use
11562 type::remove_dyn_prop.
11563 * gdbtypes.c (remove_dyn_prop): Rename to...
11564 (type::remove_dyn_prop): ... this.
11566 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11568 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11569 (add_dyn_prop): Remove. Update all users to use
11570 type::add_dyn_prop.
11571 * gdbtypes.c (add_dyn_prop): Rename to...
11572 (type::add_dyn_prop): ... this.
11574 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11576 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11577 (get_dyn_prop): Remove. Update all users to use
11579 * gdbtypes.c (get_dyn_prop): Rename to...
11580 (type::dyn_prop): ... this.
11582 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11584 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11586 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11588 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11589 instruction, skip it if it's there.
11591 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11593 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11595 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11597 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11598 * gdbtypes.c (recursive_dump_type): Remove use of
11601 2020-05-03 Tom Tromey <tom@tromey.com>
11603 * breakpoint.c (catch_command, tcatch_command): Remove.
11604 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11605 add_show_prefix_cmd.
11606 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11607 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11609 (add_internal_problem_command): Use add_basic_prefix_cmd,
11610 add_show_prefix_cmd.
11611 * mips-tdep.c (set_mipsfpu_command): Remove.
11612 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11613 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11614 (_initialize_index_cache): Use add_basic_prefix_cmd.
11615 * memattr.c (dummy_cmd): Remove.
11616 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11617 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11618 (_initialize_tui_win): Use add_basic_prefix_cmd,
11619 add_show_prefix_cmd.
11620 * cli/cli-logging.c (set_logging_command): Remove.
11621 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11622 add_show_prefix_cmd.
11623 (show_logging_command): Remove.
11624 * target.c (target_command): Remove.
11625 (add_target): Use add_basic_prefix_cmd.
11627 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11629 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11631 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11633 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11636 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11638 * nbsd-nat.c (nbsd_enable_proc_events)
11639 (nbsd_nat_target::post_startup_inferior): Add.
11640 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11641 (nbsd_nat_target::update_thread_list): Rewrite.
11642 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11643 "PTRACE_LWP_CREATE".
11644 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11646 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11648 * stack.c (_initialize_stack): Remove duplicated creation
11649 of "frame" command and "f" alias.
11651 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11654 * gdbtypes.c (check_typedef): Calculate size of array of
11657 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11660 * i386-tdep.c (i386_push_dummy_call): Call
11661 i386_thiscall_push_dummy_call.
11662 (i386_thiscall_push_dummy_call): New function.
11663 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11664 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11665 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11667 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11669 * gdbarch.sh (do_read): Add shellcheck disable directive for
11672 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11674 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11675 "referenced but not assigned" warning.
11677 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11679 * gdbarch.sh: Remove code that sets fallbackdefault.
11681 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11683 * gdbarch.sh: Use shell operators && and || instead of
11686 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11688 * gdbarch.sh: Use $(...) instead of `...`.
11690 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11692 * gdbarch.sh: Use double quotes around variables.
11694 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11696 * gdbarch.sh: Use %s with printf, instead of variables in the
11699 2020-04-29 Tom Tromey <tromey@adacore.com>
11702 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11704 (read_enumeration_type): Call
11705 update_enumeration_type_from_children later. Update comments.
11706 (process_enumeration_scope): Don't create type fields.
11708 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11710 * nbsd-tdep.c: Include "xml-syscall.h".
11711 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11713 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11715 * nbsd-nat.c: Include "sys/wait.h".
11716 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11717 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11718 (nbsd_nat_target::remove_exec_catchpoint)
11719 (nbsd_nat_target::set_syscall_catchpoint): Add.
11720 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11721 (nbsd_nat_target::insert_exec_catchpoint)
11722 (nbsd_nat_target::remove_exec_catchpoint)
11723 (nbsd_nat_target::set_syscall_catchpoint): Add.
11724 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11725 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11726 `nbsd_get_syscall_number'.
11728 2020-04-29 Tom Tromey <tom@tromey.com>
11730 * stack.c (print_block_frame_labels): Remove.
11732 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11735 * ada-valprint.c (val_print_packed_array_elements): Move array
11736 end bracket to new line.
11737 (ada_val_print_string): Remove extra spaces before first array
11739 * c-valprint.c (c_value_print_array): Likewise.
11740 * m2-valprint.c (m2_print_array_contents): Likewise.
11741 (m2_value_print_inner): Likewise.
11742 * p-valprint.c (pascal_value_print_inner): Likewise.
11743 * valprint.c (generic_val_print_array): Likewise.
11744 (value_print_array_elements): Move first array element and array
11745 end bracket to new line.
11747 2020-04-29 Tom de Vries <tdevries@suse.de>
11750 * linespec.c (find_method): Fix ix calculation.
11752 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11754 * syscalls/update-netbsd.sh: New file.
11755 * syscalls/netbsd.xml: Regenerate.
11756 * data-directory/Makefile.in: Register `netbsd.xml' in
11759 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11761 * syscalls/update-freebsd.sh: Add double quotes.
11763 2020-04-28 Tom Tromey <tom@tromey.com>
11766 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11767 (cmdpy_init): Allow class_tui.
11769 2020-04-28 Mark Williams <mark@myosotissp.com>
11772 * dwarf2read.c: Add missing assingments to list_in_scope when
11773 start_symtab was already called.
11775 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11778 * dwarf2/read.c (offset_map_type): Use
11779 gdb:hash_enum<sect_offset> as hash function.
11781 2020-04-28 Tom de Vries <tdevries@suse.de>
11783 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11784 with DW_AT_signature.
11786 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11788 * configure.ac: Remove check for fs_base/gs_base in
11790 * configure: Re-generate.
11791 * config.in: Re-generate.
11792 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11793 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11794 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11796 2020-04-27 Luis Machado <luis.machado@linaro.org>
11798 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11799 problematic inline frame unwinding situation.
11800 * frame.c (frame_id_computed_p): New function.
11801 * frame.h (frame_id_computed_p): New prototype.
11803 2020-04-26 Tom Tromey <tom@tromey.com>
11805 * command.h (enum command_class) <class_pseudo>: Remove.
11807 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11809 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11812 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11814 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11815 `PT_GET_PROCESS_STATE' block.
11817 2020-04-24 Tom Tromey <tom@tromey.com>
11819 * symtab.h (symbol_get_demangled_name): Don't declare.
11820 * symtab.c (symbol_get_demangled_name): Remove.
11821 (general_symbol_info::natural_name)
11822 (general_symbol_info::demangled_name): Update.
11824 2020-04-24 Tom Tromey <tom@tromey.com>
11827 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11829 2020-04-24 Tom Tromey <tom@tromey.com>
11832 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11834 (new_symbol): Likewise.
11835 * compile/compile-object-load.c (get_out_value_type): Use
11836 symbol_matches_search_name.
11838 2020-04-24 Tom Tromey <tom@tromey.com>
11840 * dwarf2/read.c (add_partial_symbol): Do not call
11841 compute_and_set_names.
11843 2020-04-24 Tom Tromey <tom@tromey.com>
11845 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11848 2020-04-24 Tom Tromey <tom@tromey.com>
11850 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11851 (add_psymbol_to_list): New overload. Make old overload call new
11853 * psympriv.h (add_psymbol_to_list): New overload.
11855 2020-04-24 Tom Tromey <tom@tromey.com>
11857 * dwarf2/read.c (partial_die_info::read) <case
11858 DW_AT_linkage_name>: Use value_as_string.
11859 (dwarf2_string_attr): Use value_as_string.
11860 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11862 * dwarf2/attribute.c (attribute::value_as_string): New method.
11864 2020-04-24 Tom Tromey <tom@tromey.com>
11866 * symtab.c (general_symbol_info::natural_name)
11867 (general_symbol_info::demangled_name): Check for language_rust.
11869 2020-04-24 Tom Tromey <tom@tromey.com>
11871 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11872 (dwarf2_physname): ... from here.
11873 (partial_die_info::read): Add Rust "{" hack.
11875 2020-04-24 Tom Tromey <tom@tromey.com>
11877 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11879 (symbol_set_demangled_name): Don't declare.
11880 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11881 symbol_set_demangled_name.
11882 (general_symbol_info::set_language)
11883 (general_symbol_info::compute_and_set_names): Update.
11884 * minsyms.c (minimal_symbol_reader::install): Update.
11885 * dwarf2/read.c (new_symbol): Update.
11887 2020-04-24 Tom Tromey <tromey@adacore.com>
11890 * python/py-type.c (convert_field): Handle
11891 FIELD_LOC_KIND_DWARF_BLOCK.
11892 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11893 (typy_get_dynamic): Nw function.
11894 (type_object_getset): Add "dynamic".
11897 2020-04-24 Tom Tromey <tromey@adacore.com>
11899 * ada-typeprint.c (print_choices, print_variant_part)
11900 (print_record_field_types_dynamic): New functions.
11901 (print_record_field_types): Use print_record_field_types_dynamic.
11903 2020-04-24 Tom Tromey <tromey@adacore.com>
11905 * dwarf2/read.c (handle_data_member_location): New overload.
11906 (dwarf2_add_field): Use it.
11907 (decode_locdesc): Add "computed" parameter. Update comment.
11908 * gdbtypes.c (is_dynamic_type_internal): Also look for
11909 FIELD_LOC_KIND_DWARF_BLOCK.
11910 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11911 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11912 virtual base classes.
11913 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11914 FIELD_LOC_KIND_DWARF_BLOCK.
11916 2020-04-24 Tom Tromey <tromey@adacore.com>
11918 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11919 * gdbtypes.c (is_dynamic_type_internal): Check
11920 TYPE_HAS_DYNAMIC_LENGTH.
11921 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11922 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11924 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11927 2020-04-24 Tom Tromey <tromey@adacore.com>
11929 * dwarf2/read.c (struct variant_field): Rewrite.
11930 (struct variant_part_builder): New.
11931 (struct nextfield): Remove "variant" field. Add "offset".
11932 (struct field_info): Add "current_variant_part" and
11934 (alloc_discriminant_info): Remove.
11935 (alloc_rust_variant): New function.
11936 (quirk_rust_enum): Update.
11937 (dwarf2_add_field): Set "offset" member. Don't handle
11938 DW_TAG_variant_part.
11939 (offset_map_type): New typedef.
11940 (convert_variant_range, create_one_variant)
11941 (create_one_variant_part, create_variant_parts)
11942 (add_variant_property): New functions.
11943 (dwarf2_attach_fields_to_type): Call add_variant_property.
11944 (read_structure_type): Don't handle DW_TAG_variant_part.
11945 (handle_variant_part, handle_variant): New functions.
11946 (handle_struct_member_die): Use them.
11947 (process_structure_scope): Don't handle variant parts.
11948 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11949 (struct discriminant_info): Remove.
11950 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11951 (struct main_type) <flag_discriminated_union>: Remove.
11952 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11953 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11954 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11956 * valops.c (value_union_variant): Remove.
11957 * value.h (value_union_variant): Don't declare.
11959 2020-04-24 Tom Tromey <tromey@adacore.com>
11961 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11962 (ada_value_primitive_packed_val): Update.
11963 * ada-valprint.c (ada_value_print_1): Update.
11964 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11965 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11966 just an address. Use evaluate_for_locexpr_baton.
11967 (dwarf2_evaluate_property): Update.
11968 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11970 * findvar.c (default_read_var_value): Update.
11971 * gdbtypes.c (compute_variant_fields_inner)
11972 (resolve_dynamic_type_internal): Update.
11973 (resolve_dynamic_type): Change type of valaddr parameter.
11974 * gdbtypes.h (resolve_dynamic_type): Update.
11975 * valarith.c (value_subscripted_rvalue): Update.
11976 * value.c (value_from_contents_and_address): Update.
11978 2020-04-24 Tom Tromey <tromey@adacore.com>
11980 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11981 "push_initial_value" parameter.
11982 (dwarf2_evaluate_property): Likewise.
11983 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11985 2020-04-24 Tom Tromey <tromey@adacore.com>
11987 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11988 (variant::matches, compute_variant_fields_recurse)
11989 (compute_variant_fields_inner, compute_variant_fields): New
11991 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11992 Use resolved_type after type is made.
11993 (operator==): Add new cases.
11994 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11995 (struct discriminant_range, struct variant, struct variant_part):
11997 (union dynamic_prop_data) <variant_parts, original_type>: New
11999 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
12000 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
12002 * value.c (unpack_bits_as_long): Now public.
12003 * value.h (unpack_bits_as_long): Declare.
12005 2020-04-24 Tom Tromey <tromey@adacore.com>
12007 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
12008 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
12010 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
12012 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
12014 2020-04-24 Kamil Rytarowski <n54@gmx.com>
12016 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
12017 (remove_fork_catchpoint, post_startup_inferior)
12018 (post_attach): Move...
12019 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
12020 (remove_fork_catchpoint, post_startup_inferior)
12021 (post_attach): ...here.
12022 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
12023 (remove_fork_catchpoint, post_startup_inferior)
12024 (post_attach): Move...
12025 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
12026 (remove_fork_catchpoint, post_startup_inferior)
12027 (post_attach): ...here.
12029 2020-04-24 Tom Tromey <tromey@adacore.com>
12031 * nat/windows-nat.h (struct windows_thread_info)
12032 <pc_adjusted>: New member.
12033 * windows-nat.c (windows_fetch_one_register): Check
12035 (windows_nat_target::get_windows_debug_event)
12036 (windows_nat_target::wait): Set pc_adjusted.
12038 2020-04-24 Tom de Vries <tdevries@suse.de>
12040 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
12041 Run gdb-add-index inside temp dir.
12043 2020-04-23 Tom Tromey <tromey@adacore.com>
12045 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
12048 2020-04-23 Luis Machado <luis.machado@linaro.org>
12050 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
12051 get_frame_register instead of gdbarch_unwind_pc.
12053 2020-04-23 Tom de Vries <tdevries@suse.de>
12055 * symtab.c (lookup_global_symbol): Prefer def over decl.
12057 2020-04-23 Tom de Vries <tdevries@suse.de>
12060 * block.c (best_symbol, better_symbol): Promote to external.
12061 * block.h (best_symbol, better_symbol): Declare.
12062 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
12065 2020-04-23 Tom Tromey <tromey@adacore.com>
12068 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
12069 "const char *", not a "const std::string &".
12070 <name_and_matcher::operator==>: Update.
12071 * unittests/lookup_name_info-selftests.c: Change type of
12074 2020-04-23 Tom Tromey <tom@tromey.com>
12076 * inferior.h (iterate_over_inferiors): Don't declare.
12077 * inferior.c (iterate_over_inferiors): Remove.
12078 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
12080 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
12081 use iterate_over_inferiors.
12082 (darwin_resume_inferior_it)
12083 (struct resume_inferior_threads_param)
12084 (darwin_resume_inferior_threads_it): Remove.
12085 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
12087 2020-04-23 Tom de Vries <tdevries@suse.de>
12089 * blockframe.c (find_pc_partial_function): Use
12090 find_pc_sect_compunit_symtab rather than
12091 objfile->sf->qf->find_pc_sect_compunit_symtab.
12093 2020-04-22 Tom de Vries <tdevries@suse.de>
12096 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
12099 2020-04-22 Tom de Vries <tdevries@suse.de>
12102 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
12105 2020-04-22 Tom de Vries <tdevries@suse.de>
12108 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
12109 CU if already created.
12111 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12113 * infrun.c (displaced_step_fixup): Switch to the event_thread
12114 before calling displaced_step_restore, not after.
12116 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12118 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
12119 its inferior is not recorded by us.
12120 (record_btrace_target_open): Replace call to
12121 all_non_exited_threads () with call to current_inferior
12122 ()->non_exited_threads ().
12123 (record_btrace_target::stop_recording): Likewise.
12124 (record_btrace_target::close): Likewise.
12125 (record_btrace_target::wait): Likewise.
12126 (record_btrace_target::record_stop_replaying): Likewise.
12128 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12130 * btrace.c (btrace_enable): Throw an error on double enables and
12131 when enabling recording fails.
12132 (btrace_disable): Throw an error if the thread is not recorded.
12134 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12136 * record-btrace.c (record_btrace_target::fetch_registers): Forward
12137 request if we do not have a thread_info.
12139 2020-04-21 Tom de Vries <tdevries@suse.de>
12143 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
12144 exception in get_frame_id.
12146 2020-04-20 Tom Tromey <tromey@adacore.com>
12148 * python/python.c (struct gdbpy_event): Mark move constructor as
12150 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
12151 constructor as noexcept.
12152 * completer.h (struct completion_result): Mark move constructor as
12154 * completer.c (completion_result::completion_result): Use
12155 initialization style. Don't call reset_match_list.
12157 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
12159 * MAINTAINERS (Write After Approval): Add myself.
12161 2020-04-18 Tom Tromey <tom@tromey.com>
12163 * windows-tdep.c (init_w32_command_list)
12164 (w32_prefix_command_valid): Restore.
12165 (_initialize_windows_tdep): Call init_w32_command_list.
12167 2020-04-18 Tom Tromey <tom@tromey.com>
12169 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
12170 * value.c (value_fn_field): Update.
12171 * valops.c (find_function_in_inferior)
12172 (value_allocate_space_in_inferior): Update.
12173 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12175 * tui/tui-source.c (tui_source_window::set_contents): Update.
12176 * symtab.c (lookup_global_or_static_symbol)
12177 (find_function_start_sal_1, skip_prologue_sal)
12178 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
12179 * symmisc.c (dump_msymbols, dump_symtab_1)
12180 (maintenance_print_one_line_table): Update.
12181 * symfile.c (init_entry_point_info, section_is_mapped)
12182 (list_overlays_command, simple_read_overlay_table)
12183 (simple_overlay_update_1): Update.
12184 * stap-probe.c (handle_stap_probe): Update.
12185 * stabsread.c (dbx_init_float_type, define_symbol)
12186 (read_one_struct_field, read_enum_type, read_range_type): Update.
12187 * source.c (info_line_command): Update.
12188 * python/python.c (gdbpy_source_objfile_script)
12189 (gdbpy_execute_objfile_script): Update.
12190 * python/py-type.c (save_objfile_types): Update.
12191 * python/py-objfile.c (py_free_objfile): Update.
12192 * python/py-inferior.c (python_new_objfile): Update.
12193 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
12194 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
12195 (maintenance_check_psymtabs): Update.
12196 * printcmd.c (info_address_command): Update.
12197 * objfiles.h (struct objfile) <arch>: New method, from
12199 (get_objfile_arch): Don't declare.
12200 * objfiles.c (get_objfile_arch): Remove.
12201 (filter_overlapping_sections): Update.
12202 * minsyms.c (msymbol_is_function): Update.
12203 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
12204 (output_nondebug_symbol): Update.
12205 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
12206 (mdebug_expand_psymtab): Update.
12207 * machoread.c (macho_add_oso_symfile): Update.
12208 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
12210 * linux-fork.c (checkpoint_command): Update.
12211 * linespec.c (convert_linespec_to_sals): Update.
12212 * jit.c (finalize_symtab): Update.
12213 * infrun.c (insert_exception_resume_from_probe): Update.
12214 * ia64-tdep.c (ia64_find_unwind_table): Update.
12215 * hppa-tdep.c (internalize_unwinds): Update.
12216 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
12218 * gcore.c (call_target_sbrk): Update.
12219 * elfread.c (record_minimal_symbol, elf_symtab_read)
12220 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
12221 (elf_gnu_ifunc_resolve_by_got): Update.
12222 * dwarf2/read.c (create_addrmap_from_index)
12223 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12224 (read_debug_names_from_section)
12225 (process_psymtab_comp_unit_reader, add_partial_symbol)
12226 (add_partial_subprogram, process_full_comp_unit)
12227 (read_file_scope, read_func_scope, read_lexical_block_scope)
12228 (read_call_site_scope, dwarf2_ranges_read)
12229 (dwarf2_record_block_ranges, dwarf2_add_field)
12230 (mark_common_block_symbol_computed, read_tag_pointer_type)
12231 (read_tag_string_type, dwarf2_init_float_type)
12232 (dwarf2_init_complex_target_type, read_base_type)
12233 (partial_die_info::read, partial_die_info::read)
12234 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
12235 (dwarf2_fetch_die_loc_sect_off): Update.
12236 * dwarf2/loc.c (dwarf2_find_location_expression)
12237 (class dwarf_evaluate_loc_desc, rw_pieced_value)
12238 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
12239 (dwarf2_loc_desc_get_symbol_read_needs)
12240 (locexpr_describe_location_piece, locexpr_describe_location_1)
12241 (loclist_describe_location): Update.
12242 * dwarf2/index-write.c (write_debug_names): Update.
12243 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
12244 * dtrace-probe.c (dtrace_process_dof): Update.
12245 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12246 (process_one_symbol): Update.
12247 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12248 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12249 (coff_read_enum_type): Update.
12250 * cli/cli-cmds.c (edit_command, list_command): Update.
12251 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12252 * breakpoint.c (create_overlay_event_breakpoint)
12253 (create_longjmp_master_breakpoint)
12254 (create_std_terminate_master_breakpoint)
12255 (create_exception_master_breakpoint, get_sal_arch): Update.
12256 * block.c (block_gdbarch): Update.
12257 * annotate.c (annotate_source_line): Update.
12259 2020-04-17 Tom Tromey <tromey@adacore.com>
12261 * auto-load.c (show_auto_load_cmd): Remove.
12262 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12263 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12264 (maintenance_print_arc_command): Remove.
12265 * tui/tui-win.c (tui_command): Remove.
12266 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12267 * tui/tui-layout.c (tui_layout_command): Remove.
12268 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12269 * python/python.c (user_set_python, user_show_python): Remove.
12270 (_initialize_python): Use add_basic_prefix_cmd,
12271 add_show_prefix_cmd.
12272 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12273 (install_gdb_commands): Use add_basic_prefix_cmd,
12274 add_show_prefix_cmd.
12275 (info_guile_command): Remove.
12276 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12277 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12278 add_show_prefix_cmd.
12279 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12280 Remove do_set and do_show parameters.
12281 * cli/cli-style.c (set_style, show_style): Remove.
12282 (_initialize_cli_style): Use add_basic_prefix_cmd,
12283 add_show_prefix_cmd.
12284 (cli_style_option::add_setshow_commands): Remove do_set and
12285 do_show parameters.
12286 (cli_style_option::add_setshow_commands): Use
12287 add_basic_prefix_cmd, add_show_prefix_cmd.
12288 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12289 (set_style_name): Remove.
12290 * cli/cli-dump.c (dump_command, append_command): Remove.
12291 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12292 (tekhex_dump_command, binary_dump_command)
12293 (binary_append_command): Remove.
12294 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12295 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12296 (init_w32_command_list): Remove; move into ...
12297 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12298 * valprint.c (set_print, show_print, set_print_raw)
12299 (show_print_raw): Remove.
12300 (_initialize_valprint): Use add_basic_prefix_cmd,
12301 add_show_prefix_cmd.
12302 * typeprint.c (set_print_type, show_print_type): Remove.
12303 (_initialize_typeprint): Use add_basic_prefix_cmd,
12304 add_show_prefix_cmd.
12305 * record.c (set_record_command, show_record_command): Remove.
12306 (_initialize_record): Use add_basic_prefix_cmd,
12307 add_show_prefix_cmd.
12308 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12309 add_show_prefix_cmd.
12310 (info_command, show_command, set_debug, show_debug): Remove.
12311 * top.h (set_history, show_history): Don't declare.
12312 * top.c (set_history, show_history): Remove.
12313 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12314 (unset_tdesc_cmd): Remove.
12315 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12316 add_show_prefix_cmd.
12317 * symtab.c (info_module_command): Remove.
12318 (_initialize_symtab): Use add_basic_prefix_cmd.
12319 * symfile.c (overlay_command): Remove.
12320 (_initialize_symfile): Use add_basic_prefix_cmd.
12321 * sparc64-tdep.c (info_adi_command): Remove.
12322 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12323 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12324 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12325 add_show_prefix_cmd.
12326 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12327 (_initialize_serial): Use add_basic_prefix_cmd,
12328 add_show_prefix_cmd.
12329 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12330 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12331 add_show_prefix_cmd.
12332 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12333 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12334 add_show_prefix_cmd.
12335 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12336 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12337 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12338 add_show_prefix_cmd.
12339 * remote.c (remote_command, set_remote_cmd): Remove.
12340 (_initialize_remote): Use add_basic_prefix_cmd.
12341 * record-full.c (set_record_full_command)
12342 (show_record_full_command): Remove.
12343 (_initialize_record_full): Use add_basic_prefix_cmd,
12344 add_show_prefix_cmd.
12345 * record-btrace.c (cmd_set_record_btrace)
12346 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12347 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12348 (cmd_show_record_btrace_pt): Remove.
12349 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12350 add_show_prefix_cmd.
12351 * ravenscar-thread.c (set_ravenscar_command)
12352 (show_ravenscar_command): Remove.
12353 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12354 add_show_prefix_cmd.
12355 * mips-tdep.c (show_mips_command, set_mips_command)
12356 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12357 add_show_prefix_cmd.
12358 * maint.c (maintenance_command, maintenance_info_command)
12359 (maintenance_check_command, maintenance_print_command)
12360 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12361 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12362 add_show_prefix_cmd.
12363 (show_per_command_cmd): Remove.
12364 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12366 (maintenance_show_test_settings_cmd): Remove.
12367 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12368 add_show_prefix_cmd.
12369 * maint-test-options.c (maintenance_test_options_command):
12371 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12372 * macrocmd.c (macro_command): Remove
12373 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12374 * language.c (set_check, show_check): Remove.
12375 (_initialize_language): Use add_basic_prefix_cmd,
12376 add_show_prefix_cmd.
12377 * infcmd.c (unset_command): Remove.
12378 (_initialize_infcmd): Use add_basic_prefix_cmd.
12379 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12380 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12381 add_show_prefix_cmd.
12382 * go32-nat.c (go32_info_dos_command): Remove.
12383 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12384 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12385 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12386 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12387 (_initialize_frame): Use add_basic_prefix_cmd,
12388 add_show_prefix_cmd.
12389 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12390 (_initialize_dcache): Use add_basic_prefix_cmd,
12391 add_show_prefix_cmd.
12392 * cp-support.c (maint_cplus_command): Remove.
12393 (_initialize_cp_support): Use add_basic_prefix_cmd.
12394 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12395 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12396 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12397 add_basic_prefix_cmd, add_show_prefix_cmd.
12398 * breakpoint.c (save_command): Remove.
12399 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12400 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12401 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12402 add_show_prefix_cmd.
12403 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12404 (set_ada_command, show_ada_command): Remove.
12405 (_initialize_ada_language): Use add_basic_prefix_cmd,
12406 add_show_prefix_cmd.
12407 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12409 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12411 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12412 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12414 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12416 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12419 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12421 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12422 import table is not at beginning of .idata section.
12424 2020-04-16 Pedro Alves <palves@redhat.com>
12426 * inferior.c (delete_inferior): Use delete operator directly
12427 instead of delete_program_space.
12428 * progspace.c (add_program_space): New, factored out from
12429 program_space::program_space.
12430 (remove_program_space): New, factored out from
12431 delete_program_space.
12432 (program_space::program_space): Remove intro comment. Rewrite.
12433 (program_space::~program_space): Remove intro comment. Call
12434 remove_program_space.
12435 (delete_program_space): Delete.
12436 * progspace.h (program_space::program_space): Make explicit. Move
12437 intro comment here, adjusted.
12438 (program_space::~program_space): Move intro comment here,
12440 (delete_program_space): Remove.
12442 2020-04-16 Tom Tromey <tromey@adacore.com>
12444 * windows-nat.c (windows_nat::handle_access_violation): New
12446 * nat/windows-nat.h (handle_access_violation): Declare.
12447 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12448 windows-nat.c. Call handle_access_violation.
12450 2020-04-16 Tom de Vries <tdevries@suse.de>
12453 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12454 CUs without psymtab.
12456 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12458 * python/python.c (do_start_initialization): Don't call
12459 PyEval_InitThreads for Python 3.9 and beyond.
12461 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12463 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12465 (obsd_nat_target::wait): Likewise.
12467 2020-04-15 Tom Tromey <tromey@adacore.com>
12469 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12470 (DEBUG_EXCEPT): Use debug_printf.
12472 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12474 * completer.c (class completion_tracker::completion_hash_entry)
12475 <hash_name>: New member function.
12476 (completion_tracker::discard_completions): New callback to hash a
12477 completion_hash_entry, pass this to htab_create_alloc.
12479 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12481 * windows-nat.c (windows_make_so): Warn rather than stopping with
12482 an error if realpath() fails.
12484 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12486 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12487 (nbsd_nat_target::info_proc): Add do_status.
12489 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12490 Tom de Vries <tdevries@suse.de>
12493 * psympriv.h (struct partial_symtab::read_symtab)
12494 (struct partial_symtab::expand_psymtab)
12495 (struct partial_symtab::read_dependencies): Update comments.
12496 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12497 read_symtab for includer.
12498 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12499 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12500 (struct dwarf2_include_psymtab::m_readin): Remove.
12501 (struct dwarf2_include_psymtab::includer): New member function.
12502 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12504 2020-04-14 Tom de Vries <tdevries@suse.de>
12507 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12508 with NULL symbol_matcher and lookup_name.
12509 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12511 * dwarf2/read.c (dw2_expand_symtabs_matching)
12512 (dw2_debug_names_expand_symtabs_matching): Same.
12513 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12514 Make lookup_name a pointer. Update comment.
12515 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12516 lookup_name being a pointer.
12517 * symfile.c (expand_symtabs_matching): Same.
12518 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12519 * linespec.c (iterate_over_all_matching_symtabs): Same.
12521 2020-04-13 Tom Tromey <tom@tromey.com>
12523 * run-on-main-thread.c: Update include.
12524 * unittests/main-thread-selftests.c: Update include.
12525 * tui/tui-win.c: Update include.
12526 * tui/tui-io.c: Update include.
12527 * tui/tui-interp.c: Update include.
12528 * tui/tui-hooks.c: Update include.
12529 * top.h: Update include.
12530 * top.c: Update include.
12531 * ser-base.c: Update include.
12532 * remote.c: Update include.
12533 * remote-notif.c: Update include.
12534 * remote-fileio.c: Update include.
12535 * record-full.c: Update include.
12536 * record-btrace.c: Update include.
12537 * python/python.c: Update include.
12538 * posix-hdep.c: Update include.
12539 * mingw-hdep.c: Update include.
12540 * mi/mi-main.c: Update include.
12541 * mi/mi-interp.c: Update include.
12542 * main.c: Update include.
12543 * linux-nat.c: Update include.
12544 * interps.c: Update include.
12545 * infrun.c: Update include.
12546 * inf-loop.c: Update include.
12547 * event-top.c: Update include.
12548 * event-loop.c: Move to ../gdbsupport/.
12549 * event-loop.h: Move to ../gdbsupport/.
12550 * async-event.h: Update include.
12551 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12553 2020-04-13 Tom Tromey <tom@tromey.com>
12555 * tui/tui-win.c: Include async-event.h.
12556 * remote.c: Include async-event.h.
12557 * remote-notif.c: Include async-event.h.
12558 * record-full.c: Include async-event.h.
12559 * record-btrace.c: Include async-event.h.
12560 * infrun.c: Include async-event.h.
12561 * event-top.c: Include async-event.h.
12562 * event-loop.h: Move some declarations to async-event.h.
12563 * event-loop.c: Don't include ser-event.h or top.h. Move some
12564 code to async-event.c.
12565 * async-event.h: New file.
12566 * async-event.c: New file.
12567 * Makefile.in (COMMON_SFILES): Add async-event.c.
12568 (HFILES_NO_SRCDIR): Add async-event.h.
12570 2020-04-13 Tom Tromey <tom@tromey.com>
12572 * utils.c (flush_streams): New function.
12573 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12575 2020-04-13 Tom Tromey <tom@tromey.com>
12577 * event-loop.c (handle_file_event): Use warning, not
12580 2020-04-13 Tom Tromey <tom@tromey.com>
12582 * event-loop.c: Include <chrono>.
12584 2020-04-13 Tom Tromey <tom@tromey.com>
12586 * gdb_select.h: Move to ../gdbsupport/.
12587 * event-loop.c: Update include path.
12588 * top.c: Update include path.
12589 * ser-base.c: Update include path.
12590 * ui-file.c: Update include path.
12591 * ser-tcp.c: Update include path.
12592 * guile/scm-ports.c: Update include path.
12593 * posix-hdep.c: Update include path.
12594 * ser-unix.c: Update include path.
12595 * gdb_usleep.c: Update include path.
12596 * mingw-hdep.c: Update include path.
12597 * inflow.c: Update include path.
12598 * infrun.c: Update include path.
12599 * event-top.c: Update include path.
12601 2020-04-13 Tom Tromey <tom@tromey.com>
12603 * configure: Rebuild.
12604 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12606 2020-04-13 Tom Tromey <tom@tromey.com>
12608 * event-loop.h (start_event_loop): Don't declare.
12609 * event-loop.c (start_event_loop): Move...
12610 * main.c (start_event_loop): ...here. Now static.
12612 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12614 * MAINTAINERS: Update my email address.
12616 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12618 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12621 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12623 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12624 (nbsd_nat_target::info_proc): Add do_cmdline.
12626 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12628 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12629 (nbsd_nat_target::info_proc): Add do_cwd.
12631 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12633 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12635 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12637 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12638 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12639 (nbsd_nat_target::info_proc): New functions.
12640 * nbsd-nat.c (kinfo_get_vmmap): New function.
12641 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12642 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12643 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12644 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12646 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12647 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12648 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12649 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12650 (KINFO_VME_FLAG_GROWS_DOWN): New.
12652 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12654 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12657 2020-04-10 Tom Tromey <tromey@adacore.com>
12659 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12661 2020-04-10 Tom Tromey <tromey@adacore.com>
12663 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12664 separate debug files.
12666 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12668 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12670 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12672 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12673 Check for STATUS_WX86_BREAKPOINT.
12674 (windows_nat_target::wait): Same.
12676 2020-04-10 Tom de Vries <tdevries@suse.de>
12679 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12681 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12683 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12684 (Write After Approval): Remove Tom de Vries.
12686 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12689 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12691 * buildsym.c (record_line): Fix undefined behavior and preserve
12694 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12696 * auxv.h (svr4_auxv_parse): New.
12697 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12698 and generic_auxv_parse.
12699 (svr4_auxv_parse): Add.
12700 * obsd-tdep.c: Include "auxv.h".
12701 (obsd_auxv_parse): Remove.
12702 (obsd_init_abi): Remove comment.
12703 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12704 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12705 * nbsd-tdep.c: Include "auxv.h".
12706 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12708 2020-04-08 Tom Tromey <tromey@adacore.com>
12710 * nat/windows-nat.h (last_wait_event): Don't declare.
12711 (wait_for_debug_event): Update comment.
12712 * nat/windows-nat.c (last_wait_event): Now static.
12714 2020-04-08 Tom Tromey <tromey@adacore.com>
12716 * windows-nat.c (wait_for_debug_event): Move to
12718 * nat/windows-nat.h (wait_for_debug_event): Declare.
12719 * nat/windows-nat.c (wait_for_debug_event): Move from
12720 windows-nat.c. No longer static.
12722 2020-04-08 Tom Tromey <tromey@adacore.com>
12724 * windows-nat.c (get_windows_debug_event): Use
12725 fetch_pending_stop.
12726 * nat/windows-nat.h (fetch_pending_stop): Declare.
12727 * nat/windows-nat.c (fetch_pending_stop): New function.
12729 2020-04-08 Tom Tromey <tromey@adacore.com>
12731 * windows-nat.c (windows_continue): Use matching_pending_stop and
12732 continue_last_debug_event.
12733 * nat/windows-nat.h (matching_pending_stop)
12734 (continue_last_debug_event): Declare.
12735 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12736 (matching_pending_stop, continue_last_debug_event): New
12739 2020-04-08 Tom Tromey <tromey@adacore.com>
12741 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12742 (handle_exception_result): Move to nat/windows-nat.h.
12743 (DEBUG_EXCEPTION_SIMPLE): Remove.
12744 (windows_nat::handle_ms_vc_exception): New function.
12745 (handle_exception): Move to nat/windows-nat.c.
12746 (get_windows_debug_event): Update.
12747 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12749 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12750 (handle_exception_result): Move from windows-nat.c.
12751 (handle_exception): Declare.
12752 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12753 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12756 2020-04-08 Tom Tromey <tromey@adacore.com>
12758 * windows-nat.c (exception_count, event_count): Remove.
12759 (handle_exception, get_windows_debug_event)
12760 (do_initial_windows_stuff): Update.
12762 2020-04-08 Tom Tromey <tromey@adacore.com>
12764 * windows-nat.c (windows_nat::handle_load_dll)
12765 (windows_nat::handle_unload_dll): Rename. No longer static.
12766 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12769 2020-04-08 Tom Tromey <tromey@adacore.com>
12771 * complaints.h (stop_whining): Declare at top-level.
12772 (complaint): Don't declare stop_whining.
12774 2020-04-08 Tom Tromey <tromey@adacore.com>
12776 * windows-nat.c (windows_nat::handle_output_debug_string):
12777 Rename. No longer static.
12778 * nat/windows-nat.h (handle_output_debug_string): Declare.
12780 2020-04-08 Tom Tromey <tromey@adacore.com>
12782 * windows-nat.c (current_process_handle, current_process_id)
12783 (main_thread_id, last_sig, current_event, last_wait_event)
12784 (current_windows_thread, desired_stop_thread_id, pending_stops)
12785 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12786 (display_selectors, fake_create_process)
12787 (get_windows_debug_event): Update.
12788 * nat/windows-nat.h (current_process_handle, current_process_id)
12789 (main_thread_id, last_sig, current_event, last_wait_event)
12790 (current_windows_thread, desired_stop_thread_id, pending_stops)
12791 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12792 * nat/windows-nat.c (current_process_handle, current_process_id)
12793 (main_thread_id, last_sig, current_event, last_wait_event)
12794 (current_windows_thread, desired_stop_thread_id, pending_stops)
12795 (siginfo_er): New globals. Move from windows-nat.c.
12797 2020-04-08 Tom Tromey <tromey@adacore.com>
12799 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12800 (handle_load_dll): Update.
12801 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12803 2020-04-08 Tom Tromey <tromey@adacore.com>
12805 * windows-nat.c (enum thread_disposition_type): Move to
12807 (windows_nat::thread_rec): Rename from thread_rec. No longer
12809 (windows_add_thread, windows_nat_target::fetch_registers)
12810 (windows_nat_target::store_registers, handle_exception)
12811 (windows_nat_target::resume, get_windows_debug_event)
12812 (windows_nat_target::get_tib_address)
12813 (windows_nat_target::thread_name)
12814 (windows_nat_target::thread_alive): Update.
12815 * nat/windows-nat.h (enum thread_disposition_type): Move from
12817 (thread_rec): Declare.
12819 2020-04-08 Tom Tromey <tromey@adacore.com>
12821 * windows-nat.c: Add "using namespace".
12822 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12823 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12825 2020-04-08 Tom Tromey <tromey@adacore.com>
12827 * nat/windows-nat.h (struct windows_thread_info): Declare
12829 * nat/windows-nat.c (~windows_thread_info): New.
12831 2020-04-08 Tom Tromey <tromey@adacore.com>
12834 * windows-nat.c (current_event): Update comment.
12835 (last_wait_event, desired_stop_thread_id): New globals.
12836 (struct pending_stop): New.
12837 (pending_stops): New global.
12838 (windows_nat_target) <stopped_by_sw_breakpoint>
12839 <supports_stopped_by_sw_breakpoint>: New methods.
12840 (windows_fetch_one_register): Add assertions. Adjust PC.
12841 (windows_continue): Handle pending stops. Suspend other threads
12842 when stepping. Use last_wait_event
12843 (wait_for_debug_event): New function.
12844 (get_windows_debug_event): Use wait_for_debug_event. Handle
12845 pending stops. Queue spurious stops.
12846 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12847 (windows_nat_target::kill): Use wait_for_debug_event.
12848 * nat/windows-nat.h (struct windows_thread_info)
12849 <stopped_at_software_breakpoint>: New field.
12850 * nat/windows-nat.c (windows_thread_info::resume): Clear
12851 stopped_at_software_breakpoint.
12853 2020-04-08 Tom Tromey <tromey@adacore.com>
12855 * windows-nat.c (enum thread_disposition_type): New.
12856 (thread_rec): Replace "get_context" parameter with "disposition";
12858 (windows_add_thread, windows_nat_target::fetch_registers)
12859 (windows_nat_target::store_registers, handle_exception)
12860 (windows_nat_target::resume, get_windows_debug_event)
12861 (windows_nat_target::get_tib_address)
12862 (windows_nat_target::thread_name)
12863 (windows_nat_target::thread_alive): Update.
12865 2020-04-08 Tom Tromey <tromey@adacore.com>
12867 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12868 (windows_continue): Use windows_continue::resume.
12869 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12870 resume>: Declare new methods.
12871 * nat/windows-nat.c: New file.
12872 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12874 2020-04-08 Tom Tromey <tromey@adacore.com>
12876 * windows-nat.c (windows_add_thread, windows_delete_thread)
12877 (windows_nat_target::fetch_registers)
12878 (windows_nat_target::store_registers, fake_create_process)
12879 (windows_nat_target::resume, windows_nat_target::resume)
12880 (get_windows_debug_event, windows_nat_target::wait)
12881 (windows_nat_target::pid_to_str)
12882 (windows_nat_target::get_tib_address)
12883 (windows_nat_target::get_ada_task_ptid)
12884 (windows_nat_target::thread_name)
12885 (windows_nat_target::thread_alive): Use lwp, not tid.
12887 2020-04-08 Tom Tromey <tromey@adacore.com>
12889 * windows-nat.c (handle_exception)
12890 (windows_nat_target::thread_name): Update.
12891 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12892 <name>: Now unique_xmalloc_ptr.
12894 2020-04-08 Tom Tromey <tromey@adacore.com>
12896 * windows-nat.c (thread_rec)
12897 (windows_nat_target::fetch_registers): Update.
12898 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12900 <debug_registers_changed, reload_context>: Now bool.
12902 2020-04-08 Tom Tromey <tromey@adacore.com>
12904 * windows-nat.c (windows_add_thread): Use new.
12905 (windows_init_thread_list, windows_delete_thread): Use delete.
12906 (get_windows_debug_event): Update.
12907 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12908 destructor, and initializers.
12910 2020-04-08 Tom Tromey <tromey@adacore.com>
12912 * windows-nat.c (struct windows_thread_info): Remove.
12913 * nat/windows-nat.h: New file.
12915 2020-04-08 Tom Tromey <tromey@adacore.com>
12917 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12918 (thread_rec, windows_add_thread, windows_delete_thread)
12919 (windows_continue): Update.
12921 2020-04-08 Tom Tromey <tromey@adacore.com>
12923 * windows-nat.c (struct windows_thread_info): Remove typedef.
12924 (thread_head): Remove.
12925 (thread_list): New global.
12926 (thread_rec, windows_add_thread, windows_init_thread_list)
12927 (windows_delete_thread, windows_continue): Update.
12929 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12931 * windows-tdep.h (windows_init_abi): Add comment.
12932 (cygwin_init_abi): New declaration.
12933 * windows-tdep.c: Split signal enumeration in two, one for
12934 Windows and one for Cygwin.
12935 (windows_gdb_signal_to_target): Only deal with signal of the
12937 (cygwin_gdb_signal_to_target): New function.
12938 (windows_init_abi): Rename to windows_init_abi_common, don't set
12939 gdb_signal_to_target gdbarch method. Add new new function with
12941 (cygwin_init_abi): New function.
12942 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12943 comment. Don't call windows_init_abi.
12944 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12945 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12946 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12947 i386_windows_init_abi_common, don't call windows_init_abi. Add
12948 a new function of this name.
12949 (i386_cygwin_init_abi): New function.
12950 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12953 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12955 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12957 (dwarf2_read_gdb_index): Update.
12959 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12961 * nbsd-tdep.c: Include "objfiles.h".
12962 (nbsd_skip_solib_resolver): New.
12963 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12965 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12967 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12968 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12969 with DW_LLE_base_addressx are being emitted in DWARFv5.
12970 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12971 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12974 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12976 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12977 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12978 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12979 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12980 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12981 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12982 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12985 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12987 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12988 (read_loclist_index): New function definition.
12989 (lookup_loclist_base): New function definition.
12990 (read_loclist_header): New function definition.
12991 (dwarf2_cu): Add loclist_base and loclist_header field.
12992 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12993 (read_full_die_1): Read the value of DW_AT_loclists_base.
12994 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12995 (read_attribute_value): Handle DW_FORM_loclistx.
12996 (skip_one_die): Handle DW_FORM_loclistx.
12997 (loclist_header): New structure declaration.
12998 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
13000 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13002 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
13003 constructor. Remove `addr` parameter from other constructor and
13004 add `per_cu` parameter.
13005 * dwarf2/read.c (create_partial_symtab): Update.
13007 2020-04-07 Tom de Vries <tdevries@suse.de>
13010 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
13011 (partial_die_info::fixup): Inherit has_const_value.
13013 2020-04-07 Tom de Vries <tdevries@suse.de>
13015 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
13016 symbols without address.
13018 2020-04-06 Kamil Rytarowski <n54@gmx.com>
13020 * nbsd-nat.h (struct thread_info): Add forward declaration.
13021 (nbsd_nat_target::thread_alive): Add.
13022 (nbsd_nat_target::thread_name): Likewise.
13023 (nbsd_nat_target::update_thread_list): Likewise.
13024 (update_thread_list::post_attach): Likewise.
13025 (post_attach::pid_to_str): Likewise.
13026 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
13027 (nbsd_thread_lister): Add.
13028 (nbsd_nat_target::thread_alive): Likewise.
13029 (nbsd_nat_target::thread_name): Likewise.
13030 (nbsd_add_threads): Likewise.
13031 (update_thread_list::post_attach): Likewise.
13032 (nbsd_nat_target::update_thread_list): Likewise.
13033 (post_attach::pid_to_str): Likewise.
13035 2020-04-06 Tom Tromey <tromey@adacore.com>
13037 * ada-valprint.c (print_variant_part): Extract the variant field.
13038 (print_field_values): Use the field as the outer value when
13041 2020-04-06 Tom Tromey <tromey@adacore.com>
13043 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
13044 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
13045 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
13046 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
13047 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
13049 2020-04-06 Tom Tromey <tromey@adacore.com>
13051 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
13054 2020-04-06 Kamil Rytarowski <n54@gmx.com>
13056 * nbsd-tdep.c: Include "gdbarch.h".
13057 Define enum with NetBSD signal numbers.
13058 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
13059 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
13060 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
13061 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
13062 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
13063 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
13064 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
13065 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13066 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
13067 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
13068 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
13069 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
13071 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
13074 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
13076 2020-04-03 Tom Tromey <tromey@adacore.com>
13078 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
13079 Read constant block.
13081 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13083 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
13084 (gdb_bfd_get_full_section_contents): New declaration.
13085 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
13086 * windows-tdep.c (is_linked_with_cygwin_dll): Use
13087 gdb_bfd_get_full_section_contents.
13089 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13091 * exec.c (build_section_table): Replace internal_error with
13093 (section_table_xfer_memory_partial): Likewise.
13094 * mdebugread.c (parse_partial_symbols): Likewise.
13095 * psymtab.c (lookup_partial_symbol): Likewise.
13096 * utils.c (wrap_here): Likewise.
13098 2020-04-02 Tom Tromey <tromey@adacore.com>
13100 * f-lang.c (build_fortran_types): Use arch_type to initialize
13101 builtin_complex_s32 in the TYPE_CODE_ERROR case.
13103 2020-04-02 Tom Tromey <tromey@adacore.com>
13105 * dwarf2/read.c (partial_die_info::read): Do not create a vector
13108 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
13109 Bernd Edlinger <bernd.edlinger@hotmail.de>
13110 Tom Tromey <tromey@adacore.com>
13112 * buildsym.c (buildsym_compunit::record_line): Remove
13113 deduplication code.
13115 2020-04-02 Tom de Vries <tdevries@suse.de>
13118 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
13120 2020-04-02 Tom de Vries <tdevries@suse.de>
13122 * dwarf2/read.c (dwarf2_gdb_index_functions,
13123 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
13125 * psymtab.c (psym_lookup_global_symbol_language): New function.
13126 (psym_functions): Init psym_lookup_global_symbol_language with
13127 psym_lookup_global_symbol_language.
13128 * symfile-debug.c (debug_sym_quick_functions): Init
13129 lookup_global_symbol_language with NULL.
13130 * symfile.c (set_initial_language): Remove fixme comment.
13131 * symfile.h (struct quick_symbol_functions): Add
13132 lookup_global_symbol_language.
13133 * symtab.c (find_quick_global_symbol_language): New function.
13134 (find_main_name): Use find_quick_global_symbol_language.
13136 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
13138 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
13140 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13142 * buildsym.c (record_line): Fix undefined behavior and preserve
13145 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13147 * buildsym.c (record_line): Fix the resizing condition.
13149 2020-04-01 Tom Tromey <tom@tromey.com>
13151 * value.h (value_literal_complex): Add comment.
13152 * valops.c (value_literal_complex): Refer to value.h.
13154 2020-04-01 Tom Tromey <tom@tromey.com>
13156 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
13157 (scalar_type): New rule, from typebase.
13158 (typebase): Use scalar_type. Recognize complex types.
13159 (field_name): Handle FLOAT_KEYWORD.
13160 (ident_tokens): Add _Complex and __complex__.
13162 2020-04-01 Tom Tromey <tom@tromey.com>
13165 * valarith.c (promotion_type, complex_binop): New functions.
13166 (scalar_binop): Handle complex numbers. Use promotion_type.
13167 (value_pos, value_neg, value_complement): Handle complex numbers.
13169 2020-04-01 Tom Tromey <tom@tromey.com>
13171 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
13172 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
13173 (parse_number): Handle complex numbers.
13175 2020-04-01 Tom Tromey <tom@tromey.com>
13177 * c-valprint.c (c_decorations): Change complex suffix to "i".
13179 2020-04-01 Tom Tromey <tom@tromey.com>
13181 * valprint.c (generic_value_print_complex): Use accessors.
13182 * value.h (value_real_part, value_imaginary_part): Declare.
13183 * valops.c (value_real_part, value_imaginary_part): New
13185 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
13187 2020-04-01 Tom Tromey <tom@tromey.com>
13189 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
13190 (read_range_type): Update.
13191 * mdebugread.c (basic_type): Update.
13192 * go-lang.c (build_go_types): Use init_complex_type.
13193 * gdbtypes.h (struct main_type) <complex_type>: New member.
13194 (init_complex_type): Update.
13195 (arch_complex_type): Don't declare.
13196 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
13197 Make name if none given. Use alloc_type_copy. Look for cached
13199 (arch_complex_type): Remove.
13200 (gdbtypes_post_init): Use init_complex_type.
13201 * f-lang.c (build_fortran_types): Use init_complex_type.
13202 * dwarf2/read.c (read_base_type): Update.
13203 * d-lang.c (build_d_types): Use init_complex_type.
13204 * ctfread.c (read_base_type): Update.
13206 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13208 * infrun.c (stop_all_threads): Update assertion, plus when
13209 stopping threads, take into account that we might be trying
13210 to stop an all-stop target.
13211 (stop_waiting): Call 'stop_all_threads' if there exists a
13214 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13216 * target.h (exists_non_stop_target): New function declaration.
13217 * target.c (exists_non_stop_target): New function.
13219 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
13222 * eval.c (is_integral_or_integral_reference): New function.
13223 (evaluate_subexp_standard): Allow integer references in
13224 pointer arithmetic.
13226 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13228 * remote.c (remote_target::remote_parse_stop_reply): Remove the
13229 check for no ptid in the stop reply when the target is non-stop.
13231 2020-04-01 Tom Tromey <tromey@adacore.com>
13233 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
13234 "name" parameter to rvalue reference. Initialize m_name_holder.
13235 <lookup_name_info>: New overloads.
13236 <name>: Return gdb::string_view.
13237 <c_str>: New method.
13238 <make_ignore_params>: Update.
13239 <search_name_hash>: Update.
13240 <language_lookup_name>: Return const char *.
13241 <m_name>: Change type.
13242 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
13243 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
13244 (lookup_name_info::match_any): Update.
13245 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13247 * minsyms.c (linkage_name_str): Update.
13248 * language.c (default_symbol_name_matcher): Update.
13249 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13251 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13252 (ada_lookup_name_info::ada_lookup_name_info): Update.
13253 (literal_symbol_name_matcher): Update.
13255 2020-04-01 Tom Tromey <tromey@adacore.com>
13257 * psymtab.c (psymtab_search_name): Remove function.
13258 (psym_lookup_symbol): Create search name and lookup name here.
13259 (lookup_partial_symbol): Remove "name" parameter; add
13261 (psym_expand_symtabs_for_function): Update.
13263 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
13266 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13268 2020-03-31 Tom Tromey <tromey@adacore.com>
13270 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13273 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
13275 * features/riscv/32bit-csr.xml: Regenerated.
13276 * features/riscv/64bit-csr.xml: Regenerated.
13278 2020-03-30 Tom Tromey <tromey@adacore.com>
13280 * ada-valprint.c (print_variant_part): Update.
13281 * ada-lang.h (ada_which_variant_applies): Update.
13282 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13283 outer_valaddr parameters; replace with "outer" value parameter.
13284 (to_fixed_variant_branch_type): Update.
13286 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13288 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13289 <list>. Remove inclusion of observable.h.
13290 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13291 (struct arch_lwp_info): New struct.
13292 (class ppc_linux_dreg_interface): New class.
13293 (struct ppc_linux_process_info): New struct.
13294 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13295 <low_new_clone, low_forget_process, low_prepare_to_resume>
13296 <copy_thread_dreg_state, mark_thread_stale>
13297 <mark_debug_registers_changed, register_hw_breakpoint>
13298 <clear_hw_breakpoint, register_wp, clear_wp>
13299 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13300 <num_memory_accesses, get_trigger_type>
13301 <create_watchpoint_request, hwdebug_point_cmp>
13302 <init_arch_lwp_info, get_arch_lwp_info>
13303 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13305 <struct ptid_hash>: New inner struct.
13306 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13308 (saved_dabr_value, hwdebug_info, max_slots_number)
13309 (struct hw_break_tuple, struct thread_points, ppc_threads)
13310 (have_ptrace_hwdebug_interface)
13311 (hwdebug_find_thread_points_by_tid)
13312 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13313 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13314 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13315 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13316 use m_dreg_interface.
13317 (hwdebug_point_cmp): Change to...
13318 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13319 reference arguments instead of pointers.
13320 (ppc_linux_nat_target::ranged_break_num_registers): Use
13322 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13323 m_dreg_interface. Call register_hw_breakpoint.
13324 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13325 m_dreg_interface. Call clear_hw_breakpoint.
13326 (get_trigger_type): Change to...
13327 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13329 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13330 use m_dreg_interface. Call register_hw_breakpoint.
13331 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13332 use m_dreg_interface. Call clear_hw_breakpoint.
13333 (can_use_watchpoint_cond_accel): Change to...
13334 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13335 method. Update comment, use m_dreg_interface and
13337 (calculate_dvc): Change to...
13338 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13340 (num_memory_accesses): Change to...
13341 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13342 (check_condition): Change to...
13343 (ppc_linux_nat_target::check_condition): ...this method.
13344 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13345 comment, use m_dreg_interface.
13346 (create_watchpoint_request): Change to...
13347 (ppc_linux_nat_target::create_watchpoint_request): ...this
13348 method. Use m_dreg_interface.
13349 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13350 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13351 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13352 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13353 (ppc_linux_nat_target::low_forget_process)
13354 (ppc_linux_nat_target::low_new_fork)
13355 (ppc_linux_nat_target::low_new_clone)
13356 (ppc_linux_nat_target::low_delete_thread)
13357 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13358 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13359 only call mark_thread_stale.
13360 (ppc_linux_thread_exit): Remove.
13361 (ppc_linux_nat_target::stopped_data_address): Change to...
13362 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13363 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13364 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13365 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13366 comment. Call low_stopped_data_address.
13367 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13369 (ppc_linux_nat_target::masked_watch_num_registers): Use
13371 (ppc_linux_nat_target::copy_thread_dreg_state)
13372 (ppc_linux_nat_target::mark_thread_stale)
13373 (ppc_linux_nat_target::mark_debug_registers_changed)
13374 (ppc_linux_nat_target::register_hw_breakpoint)
13375 (ppc_linux_nat_target::clear_hw_breakpoint)
13376 (ppc_linux_nat_target::register_wp)
13377 (ppc_linux_nat_target::clear_wp)
13378 (ppc_linux_nat_target::init_arch_lwp_info)
13379 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13380 (_initialize_ppc_linux_nat): Remove observer callback.
13382 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13384 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13385 (ppc_linux_nat_target::auxv_parse)
13386 (ppc_linux_nat_target::read_description)
13387 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13390 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13392 * linux-nat.h (low_new_clone): New method.
13393 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13395 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13397 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13398 (dbx_expand_psymtab): ... this.
13399 (start_psymtab): Update.
13400 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13401 (mdebug_expand_psymtab): ... this.
13402 (parse_partial_symbols): Update.
13403 (new_psymtab): Update.
13404 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13405 (xcoff_expand_psymtab): ... this.
13406 (xcoff_start_psymtab): Update.
13408 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13410 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13411 <expand_dependencies>: ... this.
13412 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13413 (partial_symtab::expand_dependencies): ... this.
13414 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13416 (dwarf2_psymtab::expand_psymtab): Update.
13417 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13418 * mdebugread.c (psymtab_to_symtab_1): Update.
13419 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13421 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13423 * psympriv.h (discard_psymtab): Remove.
13424 * dbxread.c (dbx_end_psymtab): Update.
13425 * xcoffread.c (xcoff_end_psymtab): Update.
13427 2020-03-28 Tom Tromey <tom@tromey.com>
13429 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13432 2020-03-28 Tom Tromey <tom@tromey.com>
13434 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13436 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13438 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13440 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13442 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13444 2020-03-26 Tom Tromey <tom@tromey.com>
13446 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13447 (mark_common_block_symbol_computed, read_tag_string_type)
13448 (attr_to_dynamic_prop, read_subrange_type): Update.
13449 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13450 to be methods on struct attribute.
13451 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13452 (read_call_site_scope, partial_die_info::read)
13453 (partial_die_info::read, lookup_die_type, follow_die_ref):
13455 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13456 from dwarf2_get_ref_die_offset.
13457 (attribute::constant_value): New method, from
13458 dwarf2_get_attr_constant_value.
13459 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13461 <constant_value>: New method.
13463 2020-03-26 Tom Tromey <tom@tromey.com>
13465 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13466 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13467 (dwarf_type_encoding_name): Move to stringify.c.
13468 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13469 * dwarf2/stringify.c: New file.
13470 * dwarf2/stringify.h: New file.
13472 2020-03-26 Tom Tromey <tom@tromey.com>
13474 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13477 2020-03-26 Tom Tromey <tom@tromey.com>
13479 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13481 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13482 (lookup_ranges_base): Likewise.
13483 (read_cutu_die_from_dwo, read_full_die_1): Update.
13485 2020-03-26 Tom Tromey <tom@tromey.com>
13487 * dwarf2/read.c (read_import_statement, read_file_scope)
13488 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13489 (read_lexical_block_scope, read_call_site_scope)
13490 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13491 (handle_struct_member_die, process_structure_scope)
13492 (update_enumeration_type_from_children)
13493 (process_enumeration_scope, read_array_type, read_common_block)
13494 (read_namespace, read_module, read_subroutine_type): Update.
13495 (sibling_die): Remove.
13497 2020-03-26 Tom Tromey <tom@tromey.com>
13499 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13500 (build_type_psymtabs_reader, read_structure_type)
13501 (read_enumeration_type, read_full_die_1): Update.
13502 (dwarf2_attr_no_follow): Move to die.h.
13503 * dwarf2/die.h (struct die_info) <attr>: New method.
13505 2020-03-26 Tom Tromey <tom@tromey.com>
13507 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13508 <base_address>: Now an optional.
13509 (dwarf2_find_base_address, dwarf2_rnglists_process)
13510 (dwarf2_ranges_process, fill_in_loclist_baton)
13511 (dwarf2_symbol_mark_computed): Update.
13513 2020-03-26 Tom Tromey <tom@tromey.com>
13515 * dwarf2/read.c (struct die_info): Move to die.h.
13516 * dwarf2/die.h: New file.
13518 2020-03-26 Tom Tromey <tom@tromey.com>
13520 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13522 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13523 Move to line-header.c.
13524 (read_checked_initial_length_and_offset, read_formatted_entries):
13526 (dwarf_decode_line_header): Split into two.
13527 * dwarf2/line-header.c
13528 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13530 (read_checked_initial_length_and_offset, read_formatted_entries):
13532 (dwarf_decode_line_header): New function, split from read.c.
13534 2020-03-26 Tom Tromey <tom@tromey.com>
13536 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13538 * dwarf2/read.c (read_attribute_value): Update.
13539 (dwarf2_per_objfile::read_line_string): Rename from
13540 read_indirect_line_string.
13541 (read_formatted_entries): Update.
13543 2020-03-26 Tom Tromey <tom@tromey.com>
13545 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13548 2020-03-26 Tom Tromey <tom@tromey.com>
13550 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13552 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13553 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13556 2020-03-26 Tom Tromey <tom@tromey.com>
13558 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13559 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13560 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13561 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13563 2020-03-26 Tom Tromey <tom@tromey.com>
13565 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13566 file_names_size, file_full_name, file_file_name>: Use const.
13567 <file_name_at, file_names>: Add const overload.
13568 * dwarf2/line-header.c (line_header::file_file_name)
13569 (line_header::file_full_name): Update.
13571 2020-03-26 Tom Tromey <tom@tromey.com>
13573 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13574 (macro_start_file, consume_improper_spaces)
13575 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13576 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13577 (dwarf_decode_macros): Move to macro.c.
13578 * dwarf2/macro.c: New file.
13579 * dwarf2/macro.h: New file.
13580 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13582 2020-03-26 Tom Tromey <tom@tromey.com>
13584 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13586 * dwarf2/section.c: New method. From
13587 read_indirect_string_at_offset_from.
13588 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13589 (read_indirect_string_at_offset_from): Move to section.c.
13590 (read_indirect_string_at_offset): Rewrite.
13591 (read_indirect_line_string_at_offset): Remove.
13592 (read_indirect_string, read_indirect_line_string)
13593 (dwarf_decode_macro_bytes): Update.
13595 2020-03-26 Tom Tromey <tom@tromey.com>
13597 * dwarf2/section.h (struct dwarf2_section_info)
13598 <overload_complaint>: Declare.
13599 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13600 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13601 Rename from dwarf2_section_buffer_overflow_complaint.
13602 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13603 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13605 2020-03-26 Tom Tromey <tom@tromey.com>
13607 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13609 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13611 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13614 2020-03-26 Tom Tromey <tom@tromey.com>
13616 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13618 2020-03-26 Tom Tromey <tom@tromey.com>
13620 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13622 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13624 (dwarf_decode_macros): Update.
13626 2020-03-26 Tom Tromey <tom@tromey.com>
13628 * dwarf2/read.c (read_attribute_value): Update.
13629 (read_indirect_string_from_dwz): Move to dwz.c; change into
13631 (dwarf_decode_macro_bytes): Update.
13632 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13633 * dwarf2/dwz.c: New file.
13634 * Makefile.in (COMMON_SFILES): Add dwz.c.
13636 2020-03-26 Tom Tromey <tom@tromey.com>
13638 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13639 * dwarf2/read.c: Add include.
13640 * dwarf2/index-write.c: Add include.
13641 * dwarf2/index-cache.c: Add include.
13642 * dwarf2/dwz.h: New file.
13644 2020-03-25 Tom Tromey <tom@tromey.com>
13646 * compile/compile-object-load.c (get_out_value_type): Mention
13647 correct symbol name in error message.
13649 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13651 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13653 2020-03-25 Tom de Vries <tdevries@suse.de>
13655 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13656 * symmisc.c (dump_symtab_1): Print user and includes fields.
13657 (maintenance_info_symtabs): Same.
13659 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13662 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13663 (riscv_regcache_cooked_write): New function.
13664 (riscv_push_dummy_call): Use new function.
13665 (riscv_return_value): Likewise.
13667 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13669 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13670 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13671 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13672 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13673 * infrun.c (follow_fork): Likewise.
13674 (follow_fork_inferior): Likewise.
13675 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13676 * linux-nat.h (class linux_nat_target): Likewise.
13677 * remote.c (class remote_target) <follow_fork>: Likewise.
13678 (remote_target::follow_fork): Likewise.
13679 * target-delegates.c: Re-generate.
13680 * target.c (default_follow_fork): Likewise.
13681 (target_follow_fork): Likewise.
13682 * target.h (struct target_ops) <follow_fork>: Likewise.
13683 (target_follow_fork): Likewise.
13685 2020-03-24 Tom de Vries <tdevries@suse.de>
13687 * psymtab.c (maintenance_info_psymtabs): Print user field.
13689 2020-03-20 Tom Tromey <tromey@adacore.com>
13691 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13693 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13696 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13698 * ptrace.m4: Don't check for ptrace declaration.
13699 * config.in: Re-generate.
13700 * configure: Re-generate.
13701 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13704 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13706 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13708 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13709 * sparc-nat.c (gdb_ptrace): Likewise.
13710 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13712 2020-03-20 Tom Tromey <tromey@adacore.com>
13714 * c-exp.y (lex_one_token): Fix assert.
13716 2020-03-20 Tom Tromey <tromey@adacore.com>
13718 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13719 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13722 2020-03-20 Tom Tromey <tromey@adacore.com>
13724 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13726 2020-03-20 Tom Tromey <tromey@adacore.com>
13728 * ada-valprint.c (print_variant_part): Remove parameters; switch
13729 to value-based API.
13730 (print_field_values): Likewise.
13731 (ada_val_print_struct_union): Likewise.
13732 (ada_value_print_1): Update.
13734 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13736 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13737 nbsd_nat_target instead of inf_ptrace_target.
13738 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13741 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13743 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13744 it to the ptrace call.
13745 * (store_registers): Likewise.
13747 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13749 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13750 it to the ptrace call.
13751 * (store_registers): Likewise.
13753 2020-03-19 Luis Machado <luis.machado@linaro.org>
13755 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13756 valid, fetch vg value from ptrace.
13758 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13759 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13760 * inf-ptrace.c: Likewise.
13761 * (gdb_ptrace): Add.
13762 * (inf_ptrace_target::resume): Update.
13763 * (inf_ptrace_target::xfer_partial): Likewise.
13764 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13765 * (inf_ptrace_peek_poke): Update.
13767 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13769 * x86-bsd-nat.c (gdb_ptrace): New.
13770 * (x86bsd_dr_set): Add new argument `ptid'.
13771 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13772 x86bsd_dr_set_addr): Update.
13774 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13776 * remote.c (remote_target::process_stop_reply): Handle events for
13777 all threads differently.
13779 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13781 * completer.c (completion_tracker::remove_completion): Define new
13783 * completer.h (completion_tracker::remove_completion): Declare new
13785 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13786 when adding a C++ function symbol.
13788 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13790 * completer.c (completion_tracker::completion_hash_entry): Define
13792 (advance_to_filename_complete_word_point): Call
13793 recompute_lowest_common_denominator.
13794 (completion_tracker::completion_tracker): Call discard_completions
13795 to setup the hash table.
13796 (completion_tracker::discard_completions): Allow for being called
13797 from the constructor, pass new equal function, and element deleter
13798 when constructing the hash table. Initialise new class member
13800 (completion_tracker::maybe_add_completion): Remove use of
13801 m_entries_vec, and store more information into m_entries_hash.
13802 (completion_tracker::recompute_lcd_visitor): New function, most
13803 content taken from...
13804 (completion_tracker::recompute_lowest_common_denominator):
13805 ...here, this now just visits each item in the hash calling the
13807 (completion_tracker::build_completion_result): Remove use of
13808 m_entries_vec, call recompute_lowest_common_denominator.
13809 * completer.h (completion_tracker::have_completions): Remove use
13811 (completion_tracker::completion_hash_entry): Declare new class.
13812 (completion_tracker::recompute_lowest_common_denominator): Change
13813 function signature.
13814 (completion_tracker::recompute_lcd_visitor): Declare new function.
13815 (completion_tracker::m_entries_vec): Delete.
13816 (completion_tracker::m_entries_hash): Initialize to NULL.
13817 (completion_tracker::m_lowest_common_denominator_valid): New
13819 (completion_tracker::m_lowest_common_denominator_max_length): New
13822 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13824 * regformats/regdef.h: Put reg in gdb namespace.
13826 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13828 * i386-bsd-nat.c (gdb_ptrace): New.
13829 * (i386bsd_fetch_inferior_registers,
13830 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13831 * (i386bsd_fetch_inferior_registers,
13832 i386bsd_store_inferior_registers) Use gdb_ptrace.
13834 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13836 * amd64-bsd-nat.c (gdb_ptrace): New.
13837 * (amd64bsd_fetch_inferior_registers,
13838 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13839 * (amd64bsd_fetch_inferior_registers,
13840 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13842 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13844 * user-regs.c (user_reg::read): Rename to...
13845 (user_reg::xread): ...this.
13846 * (append_user_reg): Rename argument `read' to `xread'.
13847 * (user_reg_add_builtin): Likewise.
13848 * (user_reg_add): Likewise.
13849 * (value_of_user_reg): Likewise.
13851 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13853 * sparc-nat.c (gdb_ptrace): New.
13854 * sparc-nat.c (sparc_fetch_inferior_registers)
13855 (sparc_store_inferior_registers) Remove obsolete comment.
13856 * sparc-nat.c (sparc_fetch_inferior_registers)
13857 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13858 * sparc-nat.c (sparc_fetch_inferior_registers)
13859 (sparc_store_inferior_registers) Use gdb_ptrace.
13861 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13863 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13864 it to the ptrace call.
13865 * sh-nbsd-nat.c (store_registers): Likewise.
13867 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13869 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13870 nbsd_nat_target instead of inf_ptrace_target.
13871 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13874 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13876 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13878 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13880 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13882 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13884 2020-03-17 Tom de Vries <tdevries@suse.de>
13887 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13889 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13891 (process_imported_unit_die): Skip import of c++ CUs.
13893 2020-03-16 Tom Tromey <tom@tromey.com>
13895 * p-valprint.c (pascal_object_print_value): Initialize
13898 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13899 Shahab Vahedi <shahab@synopsys.com>
13901 * Makefile.in: Add arch/arc.o
13902 * configure.tgt: Likewise.
13903 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13904 (_initialize_arc_tdep): Don't initialize old target descriptions.
13905 (arc_read_description): New function to cache target descriptions.
13906 * arc-tdep.h (arc_read_description): Add proto type.
13907 * arch/arc.c: New file.
13908 * arch/arc.h: Likewise.
13909 * features/Makefile: Replace old target descriptions with new.
13910 * features/arc-arcompact.c: Remove.
13911 * features/arc-arcompact.xml: Likewise.
13912 * features/arc-v2.c: Likewise
13913 * features/arc-v2.xml: Likewise
13914 * features/arc/aux-arcompact.xml: New file.
13915 * features/arc/aux-v2.xml: Likewise.
13916 * features/arc/core-arcompact.xml: Likewise.
13917 * features/arc/core-v2.xml: Likewise.
13918 * features/arc/aux-arcompact.c: Generate.
13919 * features/arc/aux-v2.c: Likewise.
13920 * features/arc/core-arcompact.c: Likewise.
13921 * features/arc/core-v2.c: Likewise.
13922 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13924 2020-03-16 Tom Tromey <tromey@adacore.com>
13927 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13928 putting value into bcache.
13930 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13933 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13935 (amd64_windows_init_abi_common): ... this. Don't set size of
13937 (amd64_windows_init_abi): New function.
13938 (amd64_cygwin_init_abi): New function.
13939 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13941 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13944 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13946 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13947 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13948 (pe_import_directory_entry): New struct type.
13949 (is_linked_with_cygwin_dll): New function.
13950 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13951 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13952 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13954 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13956 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13957 i386_cygwin_core_osabi_sniffer.
13959 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13961 * i386-cygwin-tdep.c: Rename to...
13962 * i386-windows-tdep.c: ... this.
13963 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13964 i386-windows-tdep.c.
13965 * configure.tgt: Likewise.
13967 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13969 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13970 * osabi.c (gdb_osabi_names): Add "Windows".
13971 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13972 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13973 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13974 i386_cygwin_osabi_sniffer.
13975 (_initialize_i386_cygwin_tdep): Register OS ABI
13976 GDB_OSABI_WINDOWS for i386.
13977 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13978 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13979 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13981 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13982 when the target matches '*-*-mingw*'.
13984 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13986 * defs.h (enum gdb_osabi): Move to...
13987 * osabi.h (enum gdb_osabi): ... here.
13988 * gdbarch.sh: Include osabi.h in gdbarch.h.
13989 * gdbarch.h: Re-generate.
13991 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13993 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13995 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13997 2020-03-14 Tom Tromey <tom@tromey.com>
13999 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
14001 (c_type_print_modifier): Likewise. Add "language" parameter.
14002 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
14003 (c_type_print_base_1): Update.
14004 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
14006 * type-stack.c (type_stack::insert): Handle tp_atomic and
14008 (type_stack::follow_type_instance_flags): Likewise.
14009 (type_stack::follow_types): Likewise. Merge type-following code.
14010 * c-exp.y (RESTRICT, ATOMIC): New tokens.
14011 (space_identifier, cv_with_space_id)
14012 (const_or_volatile_or_space_identifier_noopt)
14013 (const_or_volatile_or_space_identifier): Remove.
14014 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
14016 (ptr_operator, typebase): Update.
14017 (enum token_flag) <FLAG_C>: New constant.
14018 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
14020 (lex_one_token): Handle FLAG_C.
14022 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14024 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
14025 it to the ptrace call.
14026 * m68k-bsd-nat.c (store_registers): Likewise.
14028 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14030 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
14032 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
14033 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
14034 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
14036 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14038 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
14039 nbsd_nat_target instead of inf_ptrace_target.
14040 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14043 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14045 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
14048 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14050 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
14051 it to the ptrace call.
14052 * alpha-bsd-nat.c (store_registers): Likewise.
14054 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14056 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
14058 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
14059 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
14060 fill_fpregset): Likewise.
14062 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14064 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
14065 nbsd_nat_target instead of inf_ptrace_target.
14066 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14069 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14071 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
14074 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14076 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
14077 it to the ptrace call.
14078 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
14079 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
14080 * arm-nbsd-nat.c (store_register): Likewise.
14081 * arm-nbsd-nat.c (store_regs): Likewise.
14082 * arm-nbsd-nat.c (store_fp_register): Likewise.
14083 * arm-nbsd-nat.c (store_fp_regs): Likewise.
14085 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14087 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
14088 nbsd_nat_target instead of inf_ptrace_target.
14089 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
14092 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14094 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
14095 it to the ptrace call.
14096 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
14098 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14100 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
14101 it to the ptrace call.
14102 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
14104 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14106 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
14108 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
14110 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14112 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
14113 instead of inf_ptrace_target.
14114 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14117 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14119 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14122 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14124 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14127 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14129 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
14132 2020-03-13 Tom Tromey <tom@tromey.com>
14134 * value.h (val_print): Don't declare.
14135 * valprint.h (val_print_array_elements)
14136 (val_print_scalar_formatted, generic_val_print): Don't declare.
14137 * valprint.c (generic_val_print_array): Take a struct value.
14138 (generic_val_print_ptr, generic_val_print_memberptr)
14139 (generic_val_print_bool, generic_val_print_int)
14140 (generic_val_print_char, generic_val_print_complex)
14141 (generic_val_print): Remove.
14142 (generic_value_print): Update.
14143 (do_val_print): Remove unused parameters. Don't call
14145 (val_print): Remove.
14146 (common_val_print): Update. Don't call value_check_printable.
14147 (val_print_scalar_formatted, val_print_array_elements): Remove.
14148 * rust-lang.c (rust_val_print): Remove.
14149 (rust_language_defn): Update.
14150 * p-valprint.c (pascal_val_print): Remove.
14151 (pascal_value_print_inner): Update.
14152 (pascal_object_print_val_fields, pascal_object_print_val):
14154 (pascal_object_print_static_field): Update.
14155 * p-lang.h (pascal_val_print): Don't declare.
14156 * p-lang.c (pascal_language_defn): Update.
14157 * opencl-lang.c (opencl_language_defn): Update.
14158 * objc-lang.c (objc_language_defn): Update.
14159 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
14160 * m2-lang.h (m2_val_print): Don't declare.
14161 * m2-lang.c (m2_language_defn): Update.
14162 * language.h (struct language_defn) <la_val_print>: Remove.
14163 * language.c (unk_lang_value_print_inner): Rename. Change
14165 (unknown_language_defn, auto_language_defn): Update.
14166 * go-valprint.c (go_val_print): Remove.
14167 * go-lang.h (go_val_print): Don't declare.
14168 * go-lang.c (go_language_defn): Update.
14169 * f-valprint.c (f_val_print): Remove.
14170 * f-lang.h (f_value_print): Don't declare.
14171 * f-lang.c (f_language_defn): Update.
14172 * d-valprint.c (d_val_print): Remove.
14173 * d-lang.h (d_value_print): Don't declare.
14174 * d-lang.c (d_language_defn): Update.
14175 * cp-valprint.c (cp_print_value_fields)
14176 (cp_print_value_fields_rtti, cp_print_value): Remove.
14177 (cp_print_static_field): Update.
14178 * c-valprint.c (c_val_print_array, c_val_print_ptr)
14179 (c_val_print_struct, c_val_print_union, c_val_print_int)
14180 (c_val_print_memberptr, c_val_print): Remove.
14181 * c-lang.h (c_val_print_array, cp_print_value_fields)
14182 (cp_print_value_fields_rtti): Don't declare.
14183 * c-lang.c (c_language_defn, cplus_language_defn)
14184 (asm_language_defn, minimal_language_defn): Update.
14185 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
14186 (ada_val_print_enum): Take a struct value.
14187 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
14188 (ada_val_print): Remove.
14189 (ada_value_print_1): Update.
14190 (printable_val_type): Remove.
14191 * ada-lang.h (ada_val_print): Don't declare.
14192 * ada-lang.c (ada_language_defn): Update.
14194 2020-03-13 Tom Tromey <tom@tromey.com>
14196 * valprint.c (do_val_print): Update.
14197 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
14199 (value_to_value_object_no_release): Declare.
14200 * python/py-value.c (value_to_value_object_no_release): New
14202 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
14204 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
14206 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
14208 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
14210 (gdbscm_apply_val_pretty_printer): Take a struct value.
14211 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
14213 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
14215 * extension-priv.h (struct extension_language_ops)
14216 <apply_val_pretty_printer>: Take a struct value.
14217 * cp-valprint.c (cp_print_value): Create a struct value.
14218 (cp_print_value): Update.
14220 2020-03-13 Tom Tromey <tom@tromey.com>
14222 * ada-valprint.c (print_field_values): Call common_val_print.
14224 2020-03-13 Tom Tromey <tom@tromey.com>
14226 * ada-valprint.c (val_print_packed_array_elements): Remove
14227 bitoffset and val parameters. Call common_val_print.
14228 (ada_val_print_string): Remove offset, address, and original_value
14230 (ada_val_print_array): Update.
14231 (ada_value_print_array): New function.
14232 (ada_value_print_1): Call it.
14234 2020-03-13 Tom Tromey <tom@tromey.com>
14236 * ada-valprint.c (ada_value_print): Use common_val_print.
14238 2020-03-13 Tom Tromey <tom@tromey.com>
14240 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
14242 2020-03-13 Tom Tromey <tom@tromey.com>
14244 * ada-valprint.c (ada_value_print_num): New function.
14245 (ada_value_print_1): Use it.
14247 2020-03-13 Tom Tromey <tom@tromey.com>
14249 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14251 2020-03-13 Tom Tromey <tom@tromey.com>
14253 * ada-valprint.c (ada_value_print_ptr): New function.
14254 (ada_value_print_1): Use it.
14256 2020-03-13 Tom Tromey <tom@tromey.com>
14258 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14259 call common_val_print.
14260 (ada_val_print_1): Update.
14261 (ada_value_print_1): New function.
14262 (ada_value_print_inner): Rewrite.
14264 2020-03-13 Tom Tromey <tom@tromey.com>
14266 * cp-valprint.c (cp_print_value_fields): Update.
14267 (cp_print_value): New function.
14269 2020-03-13 Tom Tromey <tom@tromey.com>
14271 * m2-valprint.c (m2_value_print_inner): Use
14272 cp_print_value_fields.
14273 * cp-valprint.c (cp_print_value_fields): New function.
14274 * c-valprint.c (c_value_print_struct): New function.
14275 (c_value_print_inner): Use c_value_print_struct.
14276 * c-lang.h (cp_print_value_fields): Declare.
14278 2020-03-13 Tom Tromey <tom@tromey.com>
14280 * c-valprint.c (c_value_print_array): New function.
14281 (c_value_print_inner): Use it.
14283 2020-03-13 Tom Tromey <tom@tromey.com>
14285 * c-valprint.c (c_value_print_memberptr): New function.
14286 (c_value_print_inner): Use it.
14288 2020-03-13 Tom Tromey <tom@tromey.com>
14290 * c-valprint.c (c_value_print_int): New function.
14291 (c_value_print_inner): Use it.
14293 2020-03-13 Tom Tromey <tom@tromey.com>
14295 * c-valprint.c (c_value_print_ptr): New function.
14296 (c_value_print_inner): Use it.
14298 2020-03-13 Tom Tromey <tom@tromey.com>
14300 * c-valprint.c (c_value_print_inner): Rewrite.
14302 2020-03-13 Tom Tromey <tom@tromey.com>
14304 * valprint.c (generic_value_print_complex): New function.
14305 (generic_value_print): Use it.
14307 2020-03-13 Tom Tromey <tom@tromey.com>
14309 * valprint.c (generic_val_print_float): Don't call
14310 val_print_scalar_formatted.
14311 (generic_val_print, generic_value_print): Update.
14313 2020-03-13 Tom Tromey <tom@tromey.com>
14315 * valprint.c (generic_value_print_char): New function
14316 (generic_value_print): Use it.
14318 2020-03-13 Tom Tromey <tom@tromey.com>
14320 * valprint.c (generic_value_print_int): New function.
14321 (generic_value_print): Use it.
14323 2020-03-13 Tom Tromey <tom@tromey.com>
14325 * valprint.c (generic_value_print_bool): New function.
14326 (generic_value_print): Use it.
14328 2020-03-13 Tom Tromey <tom@tromey.com>
14330 * valprint.c (generic_val_print_func): Simplify.
14331 (generic_val_print, generic_value_print): Update.
14333 2020-03-13 Tom Tromey <tom@tromey.com>
14335 * valprint.c (generic_val_print_flags): Remove.
14336 (generic_val_print, generic_value_print): Update.
14337 (val_print_type_code_flags): Add original_value parameter.
14339 2020-03-13 Tom Tromey <tom@tromey.com>
14341 * valprint.c (generic_val_print): Update.
14342 (generic_value_print): Update.
14343 * valprint.c (generic_val_print_enum): Don't call
14344 val_print_scalar_formatted.
14346 2020-03-13 Tom Tromey <tom@tromey.com>
14348 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14349 * valprint.c (generic_value_print_ptr): New function.
14351 2020-03-13 Tom Tromey <tom@tromey.com>
14353 * valprint.c (generic_value_print): Rewrite.
14355 2020-03-13 Tom Tromey <tom@tromey.com>
14357 * p-valprint.c (pascal_object_print_value_fields)
14358 (pascal_object_print_value): New functions.
14360 2020-03-13 Tom Tromey <tom@tromey.com>
14362 * p-valprint.c (pascal_value_print_inner): Rewrite.
14364 2020-03-13 Tom Tromey <tom@tromey.com>
14366 * f-valprint.c (f_value_print_innner): Rewrite.
14368 2020-03-13 Tom Tromey <tom@tromey.com>
14370 * m2-valprint.c (m2_print_unbounded_array): New overload.
14371 (m2_print_unbounded_array): Update.
14372 (m2_print_array_contents): Take a struct value.
14373 (m2_value_print_inner): Rewrite.
14375 2020-03-13 Tom Tromey <tom@tromey.com>
14377 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14378 (d_value_print_inner): New function.
14379 * d-lang.h (d_value_print_inner): Declare.
14380 * d-lang.c (d_language_defn): Use d_value_print_inner.
14382 2020-03-13 Tom Tromey <tom@tromey.com>
14384 * go-valprint.c (go_value_print_inner): New function.
14385 * go-lang.h (go_value_print_inner): Declare.
14386 * go-lang.c (go_language_defn): Use go_value_print_inner.
14388 2020-03-13 Tom Tromey <tom@tromey.com>
14390 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14392 (rust_val_print): Rewrite.
14393 (rust_value_print_inner): New function, from rust_val_print.
14394 (rust_language_defn): Use rust_value_print_inner.
14396 2020-03-13 Tom Tromey <tom@tromey.com>
14398 * ada-valprint.c (ada_value_print_inner): New function.
14399 * ada-lang.h (ada_value_print_inner): Declare.
14400 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14402 2020-03-13 Tom Tromey <tom@tromey.com>
14404 * f-valprint.c (f_value_print_innner): New function.
14405 * f-lang.h (f_value_print_innner): Declare.
14406 * f-lang.c (f_language_defn): Use f_value_print_innner.
14408 2020-03-13 Tom Tromey <tom@tromey.com>
14410 * p-valprint.c (pascal_value_print_inner): New function.
14411 * p-lang.h (pascal_value_print_inner): Declare.
14412 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14414 2020-03-13 Tom Tromey <tom@tromey.com>
14416 * m2-valprint.c (m2_value_print_inner): New function.
14417 * m2-lang.h (m2_value_print_inner): Declare.
14418 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14420 2020-03-13 Tom Tromey <tom@tromey.com>
14422 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14423 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14424 * c-valprint.c (c_value_print_inner): New function.
14425 * c-lang.h (c_value_print_inner): Declare.
14426 * c-lang.c (c_language_defn, cplus_language_defn)
14427 (asm_language_defn, minimal_language_defn): Use
14428 c_value_print_inner.
14430 2020-03-13 Tom Tromey <tom@tromey.com>
14432 * p-valprint.c (pascal_object_print_value_fields): Now static.
14433 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14435 2020-03-13 Tom Tromey <tom@tromey.com>
14437 * c-valprint.c (c_val_print_array): Simplify.
14439 2020-03-13 Tom Tromey <tom@tromey.com>
14441 * valprint.c (value_print_array_elements): New function.
14442 * valprint.h (value_print_array_elements): Declare.
14444 2020-03-13 Tom Tromey <tom@tromey.com>
14446 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14447 * mips-tdep.c (mips_print_register): Use
14448 value_print_scalar_formatted.
14450 2020-03-13 Tom Tromey <tom@tromey.com>
14452 * valprint.h (value_print_scalar_formatted): Declare.
14453 * valprint.c (value_print_scalar_formatted): New function.
14455 2020-03-13 Tom Tromey <tom@tromey.com>
14457 * valprint.h (generic_value_print): Declare.
14458 * valprint.c (generic_value_print): New function.
14460 2020-03-13 Tom Tromey <tom@tromey.com>
14462 * valprint.c (do_val_print): Call la_value_print_inner, if
14464 * rust-lang.c (rust_language_defn): Update.
14465 * p-lang.c (pascal_language_defn): Update.
14466 * opencl-lang.c (opencl_language_defn): Update.
14467 * objc-lang.c (objc_language_defn): Update.
14468 * m2-lang.c (m2_language_defn): Update.
14469 * language.h (struct language_defn) <la_value_print_inner>: New
14471 * language.c (unknown_language_defn, auto_language_defn): Update.
14472 * go-lang.c (go_language_defn): Update.
14473 * f-lang.c (f_language_defn): Update.
14474 * d-lang.c (d_language_defn): Update.
14475 * c-lang.c (c_language_defn, cplus_language_defn)
14476 (asm_language_defn, minimal_language_defn): Update.
14477 * ada-lang.c (ada_language_defn): Update.
14479 2020-03-13 Tom Tromey <tom@tromey.com>
14481 * c-valprint.c (c_value_print): Use common_val_print.
14483 2020-03-13 Tom Tromey <tom@tromey.com>
14485 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14487 2020-03-13 Tom Tromey <tom@tromey.com>
14489 * f-valprint.c (f77_print_array_1, f_val_print): Use
14492 2020-03-13 Tom Tromey <tom@tromey.com>
14494 * riscv-tdep.c (riscv_print_one_register_info): Use
14497 2020-03-13 Tom Tromey <tom@tromey.com>
14499 * mi/mi-main.c (output_register): Use common_val_print.
14501 2020-03-13 Tom Tromey <tom@tromey.com>
14503 * infcmd.c (default_print_one_register_info): Use
14506 2020-03-13 Tom Tromey <tom@tromey.com>
14508 * valprint.h (common_val_print_checked): Declare.
14509 * valprint.c (common_val_print_checked): New function.
14510 * stack.c (print_frame_arg): Use common_val_print_checked.
14512 2020-03-13 Tom Tromey <tom@tromey.com>
14514 * valprint.c (do_val_print): New function, from val_print.
14515 (val_print): Use do_val_print.
14516 (common_val_print): Use do_val_print.
14518 2020-03-13 Tom Tromey <tom@tromey.com>
14520 * valprint.c (value_print): Use scoped_value_mark.
14522 2020-03-13 Tom de Vries <tdevries@suse.de>
14525 * psymtab.c (partial_symtab::partial_symtab): Don't set
14526 globals_offset and statics_offset. Push element onto
14527 current_global_psymbols and current_static_psymbols stacks.
14528 (concat): New function.
14529 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14530 element from current_global_psymbols and current_static_psymbols
14531 stacks. Concat popped elements to global_psymbols and
14533 (add_psymbol_to_list): Use current_global_psymbols and
14534 current_static_psymbols stacks.
14535 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14536 current_static_psymbols fields.
14538 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14540 * corelow.c (sniff_core_bfd): Remove.
14541 (class core_target) <m_core_vec>: Remove.
14542 (core_target::core_target): Update.
14543 (core_file_fns): Remove.
14544 (deprecated_add_core_fns): Remove.
14545 (default_core_sniffer): Remove.
14546 (sniff_core_bfd): Remove.
14547 (default_check_format): Remove.
14548 (gdb_check_format): Remove.
14549 (core_target_open): Update.
14550 (core_target::get_core_register_section): Update.
14551 (get_core_registers_cb): Update.
14552 (core_target::fetch_registers): Update.
14553 * gdbcore.h (struct core_fns): Remove.
14554 (deprecated_add_core_fns): Remove.
14555 (default_core_sniffer): Remove.
14556 (default_check_format): Remove.
14558 2020-03-12 Tom Tromey <tom@tromey.com>
14560 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14562 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14564 2020-03-12 Tom Tromey <tom@tromey.com>
14566 * remote.c (remote_target::download_tracepoint)
14567 (remote_target::enable_tracepoint)
14568 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14569 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14572 2020-03-12 Tom Tromey <tom@tromey.com>
14574 * symfile-mem.c: Update CORE_ADDR size assert.
14576 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14578 * selftest.m4: Move to gdbsupport/.
14579 * acinclude.m4: Update path to selftest.m4.
14581 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14583 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14584 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14585 gdbarch-selfselftests.c and selftest-arch.c.
14586 (SUBDIR_UNITTESTS_OBS): Rename to...
14587 (SELFTESTS_OBS): ... this.
14588 (COMMON_SFILES): Remove disasm-selftests.c and
14589 gdbarch-selftests.c.
14590 * configure.ac: Don't add selftest-arch.{c,o} to
14592 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14593 preprocessor conditions.
14595 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14597 * configure.ac: Don't source bfd/development.sh.
14598 * selftest.m4: Modify comment.
14599 * configure: Re-generate.
14601 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14603 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14604 not "true" or "false".
14605 * configure: Re-generate.
14607 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14609 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14610 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14611 renamed to arm_nbsd_supply_gregset.
14612 (fetch_register): Update to call arm_nbsd_supply_gregset.
14613 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14614 (arm_netbsd_nat_target::fetch_registers): Update.
14615 (fetch_elfcore_registers): Removed.
14616 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14617 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14618 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14619 not require NetBSD system headers.
14620 (arm_nbsd_regset): New struct.
14621 (arm_nbsd_iterate_over_regset_sections): New function.
14622 (arm_netbsd_init_abi_common): Updated to call
14623 set_gdbarch_iterate_over_regset_sections.
14624 * arm-nbsd-tdep.h: New file.
14626 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14628 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14631 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14633 * configure: Re-generate.
14635 2020-03-11 Tom Tromey <tromey@adacore.com>
14637 * ada-typeprint.c (print_choices): Fix comment.
14639 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14641 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14642 previous item in the list, when the list has no items.
14644 2020-03-11 Tom de Vries <tdevries@suse.de>
14646 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14647 PROP_LOCLIST handling code.
14649 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14651 * buildsym-legacy.c (record_line): Pass extra parameter to
14653 * buildsym.c (buildsym_compunit::record_line): Take an extra
14654 parameter, reduce duplication in the line table, and record the
14655 is_stmt flag in the line table.
14656 * buildsym.h (buildsym_compunit::record_line): Add extra
14658 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14659 non-statement lines.
14660 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14661 this to the symtab builder.
14662 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14663 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14664 through to dwarf_record_line_1.
14665 * infrun.c (process_event_stop_test): When stepping, don't stop at
14666 a non-statement instruction, and only refresh the step info when
14667 we land in the middle of a line's range. Also add an extra
14669 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14671 * record-btrace.c (btrace_find_line_range): Only record lines
14672 marked as is-statement.
14673 * stack.c (frame_show_address): Show the frame address if we are
14674 in a non-statement sal.
14675 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14676 (maintenance_print_one_line_table): Print a header for the is_stmt
14677 column, and include is_stmt information in the output.
14678 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14679 preference to non-statements.
14680 (find_pcs_for_symtab_line): Prefer is-statement entries.
14681 (find_line_common): Likewise.
14682 * symtab.h (struct linetable_entry): Add is_stmt field.
14683 (struct symtab_and_line): Likewise.
14684 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14685 arranging the line table.
14687 2020-03-07 Tom de Vries <tdevries@suse.de>
14689 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14692 2020-03-07 Tom Tromey <tom@tromey.com>
14694 * valops.c (value_literal_complex): Remove obsolete comment.
14695 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14698 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14700 * infrun.h: Forward-declare thread_info.
14701 (set_step_info): Add thread_info parameter, add doc.
14702 * infrun.c (set_step_info): Add thread_info parameter, move doc
14704 * infrun.c (process_event_stop_test): Pass thread to
14705 set_step_info call.
14706 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14708 (prepare_one_step): Add thread_info parameter, pass it to
14709 set_step_frame and prepare_one_step (recursive) call.
14710 (step_1): Pass thread to prepare_one_step call.
14711 (step_command_fsm::should_stop): Pass thread to
14713 (until_next_fsm): Pass thread to set_step_frame call.
14714 (finish_command): Pass thread to set_step_info call.
14716 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14718 * windows-tdep.c (windows_solib_create_inferior_hook):
14719 Check if inferior is running.
14721 2020-03-06 Tom de Vries <tdevries@suse.de>
14723 * NEWS: Fix "the the".
14726 2020-03-06 Tom de Vries <tdevries@suse.de>
14728 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14730 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14732 * .dir-locals.el: Add a comment referencing the other copies of
14735 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14737 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14740 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14742 * .gitattributes: New file.
14744 2020-03-04 Tom Tromey <tom@tromey.com>
14746 * symmisc.c (print_symbol_bcache_statistics)
14747 (print_objfile_statistics): Update.
14748 * symfile.c (allocate_symtab): Use intern.
14749 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14750 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14751 macro_cache>: Remove.
14752 <string_cache>: New member.
14753 (struct objfile) <intern>: New methods.
14754 * elfread.c (elf_symtab_read): Use intern.
14755 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14756 (dwarf2_compute_name, dwarf2_physname)
14757 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14759 (guess_partial_die_structure_name): Update.
14760 (partial_die_info::fixup): Intern name.
14761 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14763 (dwarf2_name): Intern name. Update.
14764 * buildsym.c (buildsym_compunit::get_macro_table): Use
14767 2020-03-04 Tom Tromey <tom@tromey.com>
14769 * jit.c (bfd_open_from_target_memory): Make "target" const.
14770 * corefile.c (gnutarget): Now const.
14771 * gdbcore.h (gnutarget): Now const.
14773 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14775 * NEWS: Mention support for WOW64 processes.
14776 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14777 (amd64_windows_segment_register_p): Remove static.
14778 (_initialize_amd64_windows_nat): Update.
14779 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14780 * i386-windows-nat.c (context_offset): Update.
14781 (i386_mappings): Rename and remove static.
14782 (i386_windows_segment_register_p): Remove static.
14783 (_initialize_i386_windows_nat): Update.
14784 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14785 (STATUS_WX86_SINGLE_STEP): New macro.
14786 (EnumProcessModulesEx): New macro.
14787 (Wow64SuspendThread): New macro.
14788 (Wow64GetThreadContext): New macro.
14789 (Wow64SetThreadContext): New macro.
14790 (Wow64GetThreadSelectorEntry): New macro.
14791 (windows_set_context_register_offsets): Add static.
14792 (windows_set_segment_register_p): Likewise.
14793 (windows_add_thread): Adapt for WOW64 processes.
14794 (windows_fetch_one_register): Likewise.
14795 (windows_nat_target::fetch_registers): Likewise.
14796 (windows_store_one_register): Likewise.
14797 (display_selector): Likewise.
14798 (display_selectors): Likewise.
14799 (handle_exception): Likewise.
14800 (windows_continue): Likewise.
14801 (windows_nat_target::resume): Likewise.
14802 (windows_add_all_dlls): Likewise.
14803 (do_initial_windows_stuff): Likewise.
14804 (windows_nat_target::attach): Likewise.
14805 (windows_get_exec_module_filename): Likewise.
14806 (windows_nat_target::create_inferior): Likewise.
14807 (windows_xfer_siginfo): Likewise.
14808 (_initialize_loadable): Initialize Wow64SuspendThread,
14809 Wow64GetThreadContext, Wow64SetThreadContext,
14810 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14811 * windows-nat.h (windows_set_context_register_offsets):
14812 Remove declaration.
14813 (windows_set_segment_register_p): Likewise.
14814 (i386_windows_segment_register_p): Add declaration.
14815 (amd64_windows_segment_register_p): Likewise.
14817 2020-03-04 Luis Machado <luis.machado@linaro.org>
14819 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14820 in "info registers" for AArch64/ARM.
14822 The change caused "info registers" to not print GPR's.
14826 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14828 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14829 when reg->group is empty and reggroup is not.
14831 2020-03-03 Tom Tromey <tromey@adacore.com>
14833 * dwarf2/frame.c (struct dwarf2_frame_cache)
14834 <checked_tailcall_bottom, entry_cfa_sp_offset,
14835 entry_cfa_sp_offset_p>: Remove members.
14836 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14837 (dwarf2_frame_prev_register): Don't call
14838 dwarf2_tailcall_sniffer_first.
14839 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14840 * frame-unwind.c (add_unwinder): New fuction.
14841 (frame_unwind_init): Use it. Add tailcall unwinder.
14843 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14844 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14846 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14847 value should be printed as true.
14849 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14851 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14852 (windows_init_abi): Set and use windows_so_ops.
14854 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14856 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14857 when verifying if dealing with a convenience variable.
14859 2020-03-03 Luis Machado <luis.machado@linaro.org>
14861 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14863 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14865 * infrun.c (gdbarch_supports_displaced_stepping): New.
14866 (use_displaced_stepping): Break up conditions in smaller pieces.
14867 Use gdbarch_supports_displaced_stepping.
14868 (displaced_step_prepare_throw): Use
14869 gdbarch_supports_displaced_stepping.
14871 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14873 * NEWS: Mention new behaviour of the history filename.
14874 * top.c (write_history_p): Add comment.
14875 (show_write_history_p): Add header comment, give a different
14876 message when history writing is on, but the history filename is
14878 (history_filename): Add comment.
14879 (history_filename_empty): New function.
14880 (show_history_filename): Add header comment, give a different
14881 message when the filename is empty.
14882 (init_history): Compare history_filename against nullptr, and only
14883 read history if the filename is not empty.
14884 (set_history_filename): Add header comment, and only make
14885 non-empty filenames absolute.
14886 (init_main): Make the filename argument to 'set history filename'
14889 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14891 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14892 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14893 (fetch_fp_register): Update.
14894 (fetch_fp_regs): Update.
14895 (store_fp_register): Update.
14896 (store_fp_regs): Update.
14897 (arm_netbsd_nat_target::read_description): New function.
14898 (fetch_elfcore_registers): Update.
14900 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14902 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14903 general_thread if the stop reply is missing a thread-id.
14904 (remote_target::process_stop_reply): Use the first non-exited
14905 thread if the target didn't pass a thread-id.
14906 * infrun.c (do_target_wait): Move call to
14907 switch_to_inferior_no_thread to ....
14908 (do_target_wait_1): ... here.
14910 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14912 * debuginfod-support.c: Include defs.h first.
14914 2020-02-28 Tom de Vries <tdevries@suse.de>
14916 * symfile.c (set_initial_language): Use default language for lookup.
14918 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14920 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14921 reader variable, pass `this` to read_cutu_die_from_dwo.
14923 2020-02-27 Aaron Merey <amerey@redhat.com>
14925 * source.c (open_source_file): Check for nullptr when computing
14928 2020-02-27 Tom Tromey <tromey@adacore.com>
14930 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14932 (dwarf2_add_field): Don't update nfields.
14933 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14935 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14937 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14940 2020-02-26 Tom Tromey <tom@tromey.com>
14942 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14943 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14944 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14945 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14948 2020-02-26 Tom Tromey <tom@tromey.com>
14950 * dwarf2/index-write.c (psym_index_map): Change type.
14951 (add_address_entry_worker, write_one_signatured_type)
14952 (recursively_count_psymbols, recursively_write_psymbols)
14953 (class debug_names, psyms_seen_size, write_gdbindex)
14954 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14956 2020-02-26 Aaron Merey <amerey@redhat.com>
14958 * Makefile.in: Handle optional debuginfod support.
14960 * README: Add --with-debuginfod summary.
14961 * config.in: Regenerate.
14962 * configure: Regenerate.
14963 * configure.ac: Handle optional debuginfod support.
14964 * debuginfod-support.c: debuginfod helper functions.
14965 * debuginfod-support.h: Ditto.
14966 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14968 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14969 when a dwz file cannot be found.
14970 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14971 debuginfo file cannot be found.
14972 * source.c (open_source_file): Query debuginfod servers when a
14973 source file cannot be found.
14974 * top.c (print_gdb_configuration): Include
14975 --{with,without}-debuginfod in the output.
14977 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14979 * thread.c (thr_try_catch_cmd): Print thread name.
14981 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14983 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14984 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14985 dwarf2_fetch_die_type_sect_off): Move to...
14986 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14987 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14988 dwarf2_fetch_die_type_sect_off): ... here.
14989 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14990 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14991 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14993 2020-02-26 Tom de Vries <tdevries@suse.de>
14996 * symfile.c (set_initial_language): Exit-early if
14997 language_mode == language_mode_manual.
14999 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
15001 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
15002 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
15003 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
15005 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
15007 * gdbtypes.c (create_array_type_with_stride): Handle negative
15009 * valarith.c (value_subscripted_rvalue): Likewise.
15011 2020-02-25 Luis Machado <luis.machado@linaro.org>
15013 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
15015 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
15017 * loc.h (dwarf2_get_die_type): Move to...
15018 * read.h (dwarf2_get_die_type): ... here.
15019 * read.c (dwarf2_get_die_type): Move doc to header.
15021 2020-02-25 Joel Brobecker <brobecker@adacore.com>
15023 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
15024 'gnulib/Makefile.in' to the list.
15026 2020-02-24 Tom Tromey <tom@tromey.com>
15028 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
15030 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
15033 2020-02-24 Tom Tromey <tom@tromey.com>
15035 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
15037 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
15038 (dw2_do_instantiate_symtab, dw2_get_file_names)
15039 (build_type_psymtab_dependencies, load_full_type_unit): Update.
15041 2020-02-24 Tom Tromey <tom@tromey.com>
15043 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
15044 make_scoped_restore.
15045 (dwarf2_psymtab::read_symtab): Don't clear
15046 reading_partial_symbols.
15048 2020-02-24 Tom de Vries <tdevries@suse.de>
15051 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
15053 2020-02-24 Tom de Vries <tdevries@suse.de>
15055 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
15056 commands layout next/prev/regs.
15058 2020-02-22 Tom Tromey <tom@tromey.com>
15060 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
15061 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
15063 2020-02-22 Tom Tromey <tom@tromey.com>
15065 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
15067 2020-02-22 Tom Tromey <tom@tromey.com>
15069 * tui/tui-win.c (_initialize_tui_win): Add usage text.
15070 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
15071 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
15072 * tui/tui.c (_initialize_tui): Add usage text.
15074 2020-02-22 Tom Tromey <tom@tromey.com>
15076 * tui/tui-win.c (tui_set_focus_command)
15077 (tui_set_win_height_command): Use error_no_arg.
15078 (_initialize_tui_win): Update help text.
15079 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
15081 2020-02-22 Tom Tromey <tom@tromey.com>
15083 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
15084 * tui/tui-disasm.h (struct tui_disasm_window)
15085 <display_start_addr>: Declare.
15086 * tui/tui-source.h (struct tui_source_window)
15087 <display_start_addr>: Declare.
15088 * tui/tui-winsource.h (struct tui_source_window_base)
15089 <show_source_line, display_start_addr>: New methods.
15090 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
15091 Rename and move to protected section.
15092 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
15093 (tui_source_window_base::do_erase_source_content): Update.
15094 (tui_source_window_base::show_source_line): Now a method.
15095 (tui_source_window_base::show_source_content)
15096 (tui_source_window_base::tui_source_window_base)
15097 (tui_source_window_base::rerender)
15098 (tui_source_window_base::refill)
15099 (tui_source_window_base::do_scroll_horizontal)
15100 (tui_source_window_base::set_is_exec_point_at)
15101 (tui_source_window_base::update_breakpoint_info)
15102 (tui_source_window_base::update_exec_info): Update.
15103 * tui/tui-source.c (tui_source_window::set_contents)
15104 (tui_source_window::showing_source_p)
15105 (tui_source_window::do_scroll_vertical)
15106 (tui_source_window::location_matches_p)
15107 (tui_source_window::line_is_displayed): Update.
15108 (tui_source_window::display_start_addr): New method.
15109 * tui/tui-disasm.c (tui_disasm_window::set_contents)
15110 (tui_disasm_window::do_scroll_vertical)
15111 (tui_disasm_window::location_matches_p): Update.
15112 (tui_disasm_window::display_start_addr): New method.
15114 2020-02-22 Tom Tromey <tom@tromey.com>
15116 * NEWS: Add entry for gdb.register_window_type.
15117 * tui/tui-layout.h (window_factory): New typedef.
15118 (tui_register_window): Declare.
15119 * tui/tui-layout.c (saved_tui_windows): New global.
15120 (tui_apply_current_layout): Use it.
15121 (tui_register_window): New function.
15122 * python/python.c (do_start_initialization): Call
15123 gdbpy_initialize_tui.
15124 (python_GdbMethods): Add "register_window_type" function.
15125 * python/python-internal.h (gdbpy_register_tui_window)
15126 (gdbpy_initialize_tui): Declare.
15127 * python/py-tui.c: New file.
15128 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
15130 2020-02-22 Tom Tromey <tom@tromey.com>
15132 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
15134 2020-02-22 Tom Tromey <tom@tromey.com>
15136 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
15137 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
15138 * tui/tui-data.c (tui_set_win_with_focus): Remove.
15139 (tui_set_win_focus_to): Move from tui-win.c.
15141 2020-02-22 Tom Tromey <tom@tromey.com>
15143 * tui/tui-layout.c (make_standard_window, get_locator_window): New
15145 (known_window_types): New global.
15146 (tui_get_window_by_name): Reimplement.
15147 (initialize_known_windows): New function.
15148 (validate_window_name): Rewrite.
15149 (_initialize_tui_layout): Call initialize_known_windows.
15151 2020-02-22 Tom Tromey <tom@tromey.com>
15153 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
15155 * tui/tui-winsource.h (struct tui_source_window_base)
15156 <tui_source_window_base>: Remove parameter.
15157 * tui/tui-winsource.c
15158 (tui_source_window_base::tui_source_window_base): Remove
15160 (tui_source_window_base::refill): Update.
15161 * tui/tui-stack.h (struct tui_locator_window)
15162 <tui_locator_window>: Update.
15163 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
15164 Default the constructor.
15165 * tui/tui-regs.h (struct tui_data_item_window)
15166 <tui_data_item_window>: Default the constructor.
15167 (struct tui_data_window) <tui_data_window>: Likewise.
15168 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
15169 Default the constructor.
15170 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
15171 Default the constructor.
15173 (struct tui_win_info) <tui_win_info>: Default the constructor.
15174 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
15175 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
15176 Default the constructor.
15178 2020-02-22 Tom Tromey <tom@tromey.com>
15180 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
15181 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
15182 * tui/tui-win.c (tui_resize_all): Don't call
15183 tui_delete_invisible_windows.
15184 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
15186 (tui_set_layout): Update.
15187 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
15188 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
15189 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
15191 2020-02-22 Tom Tromey <tom@tromey.com>
15193 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
15196 2020-02-22 Tom Tromey <tom@tromey.com>
15198 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
15200 2020-02-22 Tom Tromey <tom@tromey.com>
15202 * tui/tui-winsource.h (struct tui_source_window_iterator)
15203 <inner_iterator>: New etytypedef.
15204 <tui_source_window_iterator>: Take "end" parameter.
15205 <tui_source_window_iterator>: Take iterator.
15206 <operator*, advance>: Update.
15207 <m_iter>: Change type.
15208 <m_end>: New field.
15209 (struct tui_source_windows) <begin, end>: Update.
15210 * tui/tui-layout.c (tui_windows): New global.
15211 (tui_apply_current_layout): Clear tui_windows.
15212 (tui_layout_window::apply): Update tui_windows.
15213 * tui/tui-data.h (tui_windows): Declare.
15214 (all_tui_windows): Now inline function.
15215 (class tui_window_iterator, struct all_tui_windows): Remove.
15217 2020-02-22 Tom Tromey <tom@tromey.com>
15220 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
15221 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
15223 (class tui_layout_window) <get_sizes>: Likewise.
15224 (class tui_layout_split) <tui_layout_split>: Add "vertical"
15226 <get_sizes>: Add "height" argument.
15227 <m_vertical>: New field.
15228 * tui/tui-layout.c (tui_layout_split::clone): Update.
15229 (tui_layout_split::get_sizes): Add "height" argument.
15230 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
15231 (tui_new_layout_command): Parse "-horizontal".
15232 (_initialize_tui_layout): Update help string.
15233 (tui_layout_split::specification): Add "-horizontal" when needed.
15234 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
15236 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
15239 2020-02-22 Tom Tromey <tom@tromey.com>
15241 * tui/tui-layout.h (enum tui_adjust_result): New.
15242 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
15243 (class tui_layout_window) <adjust_size>: Return
15244 tui_adjust_result. Rewrite.
15245 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15246 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15248 2020-02-22 Tom Tromey <tom@tromey.com>
15250 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15251 parameter and return types.
15252 (class tui_layout_base) <specification>: Add "depth".
15253 (class tui_layout_window) <specification>: Add "depth".
15254 (class tui_layout_split) <specification>: Add "depth".
15255 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15257 (tui_new_layout_command): Parse sub-layouts.
15258 (_initialize_tui_layout): Update help string.
15259 (tui_layout_window::specification): Add "depth".
15260 (add_layout_command): Update.
15262 2020-02-22 Tom Tromey <tom@tromey.com>
15264 * NEWS: Add "tui new-layout" item.
15265 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15266 Add new-layout command to help text.
15267 (validate_window_name): New function.
15268 (tui_new_layout_command): New function.
15269 (_initialize_tui_layout): Register "new-layout".
15270 (tui_layout_window::specification): New method.
15271 (tui_layout_window::specification): New method.
15272 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15274 (class tui_layout_window) <specification>: New method.
15275 (class tui_layout_split) <specification>: New method.
15277 2020-02-22 Tom Tromey <tom@tromey.com>
15279 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15280 * tui/tui-win.c (window_name_completer): Update comment.
15281 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15283 (class tui_layout_window) <replace_window>: Likewise.
15284 (class tui_layout_split) <replace_window>: Likewise.
15285 (tui_set_layout): Don't declare.
15286 (tui_set_initial_layout): Declare function.
15287 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15288 (asm_regs_layout): New globals.
15289 (tui_current_layout, show_layout): Remove.
15290 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15291 (find_layout, tui_apply_layout): New function.
15292 (layout_completer): Remove.
15293 (tui_next_layout): Reimplement.
15294 (tui_next_layout_command): New function.
15295 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15296 (tui_regs_layout): Reimplement.
15297 (tui_regs_layout_command): New function.
15298 (extract_display_start_addr): Rewrite.
15299 (next_layout, prev_layout): Remove.
15300 (tui_layout_window::replace_window): New method.
15301 (tui_layout_split::replace_window): New method.
15302 (destroy_layout): New function.
15303 (layout_list): New global.
15304 (add_layout_command): New function.
15305 (initialize_layouts): Update.
15306 (tui_layout_command): New function.
15307 (_initialize_tui_layout): Install "layout" commands.
15308 * tui/tui-data.h (enum tui_layout_type): Remove.
15309 (tui_current_layout): Don't declare.
15311 2020-02-22 Tom Tromey <tom@tromey.com>
15313 * tui/tui-regs.c (tui_reg_layout): Remove.
15314 (tui_reg_command): Use tui_regs_layout.
15315 * tui/tui-layout.h (tui_reg_command): Declare.
15316 * tui/tui-layout.c (tui_reg_command): New function.
15318 2020-02-22 Tom Tromey <tom@tromey.com>
15320 * tui/tui.c (tui_rl_delete_other_windows): Call
15321 tui_remove_some_windows.
15322 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15324 (class tui_layout_window) <remove_windows>: New method.
15325 (class tui_layout_split) <remove_windows>: Declare.
15326 (tui_remove_some_windows): Declare.
15327 * tui/tui-layout.c (tui_remove_some_windows): New function.
15328 (tui_layout_split::remove_windows): New method.
15330 2020-02-22 Tom Tromey <tom@tromey.com>
15332 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15333 * tui/tui-layout.h (tui_next_layout): Declare.
15334 * tui/tui-layout.c (tui_next_layout): New function.
15336 2020-02-22 Tom Tromey <tom@tromey.com>
15338 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15339 correct coordinates.
15341 2020-02-22 Tom Tromey <tom@tromey.com>
15343 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15344 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15347 2020-02-22 Tom Tromey <tom@tromey.com>
15349 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15350 TUI_DISASM_WIN, not tui_win_list.
15352 2020-02-22 Tom Tromey <tom@tromey.com>
15354 * valprint.c (generic_val_print_enum_1)
15355 (val_print_type_code_flags): Style member names.
15356 * rust-lang.c (val_print_struct, rust_print_enum)
15357 (rust_print_struct_def, rust_internal_print_type): Style member
15359 * p-valprint.c (pascal_object_print_value_fields): Style member
15360 names. Only call fprintf_symbol_filtered for static members.
15361 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15362 * f-valprint.c (f_val_print): Style member names.
15363 * f-typeprint.c (f_type_print_base): Style member names.
15364 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15365 call fprintf_symbol_filtered for static members.
15366 (cp_print_class_member): Style member names.
15367 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15369 * ada-valprint.c (ada_print_scalar): Style enum names.
15370 (ada_val_print_enum): Likewise.
15371 * ada-typeprint.c (print_enum_type): Style enum names.
15373 2020-02-21 Tom Tromey <tom@tromey.com>
15375 * psympriv.h (struct partial_symtab): Update comment.
15377 2020-02-21 Tom Tromey <tromey@adacore.com>
15379 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15382 2020-02-21 Tom de Vries <tdevries@suse.de>
15385 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15386 if dependencies[i]->user != NULL.
15388 2020-02-21 Ali Tamur <tamur@google.com>
15390 * dwarf2/read.c (dwarf2_name): Add null check.
15392 2020-02-20 Tom Tromey <tom@tromey.com>
15394 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15395 ">=", in binary search.
15396 (dwarf2_find_containing_comp_unit): New overload.
15397 (run_test): New self-test.
15398 (_initialize_dwarf2_read): Register new test.
15400 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15402 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15403 * riscv-tdep.h: Likewise.
15404 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15406 * features/riscv/64bit-csr.xml: Regenerated.
15408 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15409 Tom Tromey <tom@tromey.com>
15411 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15412 of 'fputc_unfiltered'.
15413 (putchar_unfiltered): Call 'fputc_unfiltered'.
15414 (fputc_unfiltered): Call 'fputs_unfiltered'.
15416 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15418 * config.in: Regenerate.
15419 * configure: Regenerate.
15420 * configure.ac: Add --with-python-libdir option.
15421 * main.c: Use WITH_PYTHON_LIBDIR.
15423 2020-02-19 Tom Tromey <tom@tromey.com>
15425 * symtab.c (general_symbol_info::compute_and_set_names): Use
15426 obstack_strndup. Simplify call to symbol_set_demangled_name.
15428 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15430 * dwarf2/read.c (allocate_signatured_type_table,
15431 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15432 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15433 Remove objfile parameter, update all callers.
15435 2020-02-19 Doug Evans <dje@google.com>
15438 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15439 rust_enum_variant calculation.
15441 2020-02-19 Tom Tromey <tromey@adacore.com>
15443 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15445 2020-02-19 Tom Tromey <tromey@adacore.com>
15447 * ada-lang.c (cache_symbol): Use obstack_strdup.
15449 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15451 * configure: Regenerate.
15453 2020-02-19 Tom Tromey <tromey@adacore.com>
15455 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15458 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15460 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15462 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15464 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15465 if GDBSERVER is not defined.
15466 (riscv_tdesc_cache): Likewise, also store const target_desc.
15467 (STATIC_IN_GDB): Define.
15468 (riscv_create_target_description): Update declaration with
15470 (riscv_lookup_target_description): New function, only define if
15471 GDBSERVER is not defined.
15472 * arch/riscv.h (riscv_create_target_description): Declare only
15473 when GDBSERVER is defined.
15474 (riscv_lookup_target_description): New declaration when GDBSERVER
15476 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15477 (riscv_linux_read_features): ...this, and return
15478 riscv_gdbarch_features instead of target_desc.
15479 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15480 (riscv_linux_read_description): Rename to...
15481 (riscv_linux_read_features): ...this.
15482 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15483 Update to use riscv_gdbarch_features and
15484 riscv_lookup_target_description.
15485 * riscv-tdep.c (riscv_find_default_target_description): Use
15486 riscv_lookup_target_description instead of
15487 riscv_create_target_description.
15489 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15491 * valprint.c (generic_val_print_enum_1): When printing a flag
15492 enum with value 0 and there is no enumerator with value 0, print
15493 just "0" instead of "(unknown: 0x0)".
15495 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15497 * valprint.c (generic_val_print_enum_1): Print unknown part of
15500 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15502 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15503 flag enums to contain duplicate enumerators.
15504 * valprint.c (generic_val_print_enum_1): Update comment.
15506 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15508 * dwarf2/read.c: Include "count-one-bits.h".
15509 (update_enumeration_type_from_children): If an enumerator has
15510 multiple bits set, don't treat the enumeration as a "flag enum".
15511 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15512 of flag enums have 0 or 1 bit set.
15514 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15516 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15518 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15519 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15520 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15521 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15522 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15524 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15526 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15528 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15530 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15531 displaced_step_closure_up.
15532 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15533 (struct displaced_step_closure_up):
15534 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15535 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15536 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15538 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15539 * gdbarch.c, gdbarch.h: Re-generate.
15540 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15541 displaced_step_closure_up.
15542 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15543 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15544 * infrun.h (displaced_step_closure_up): New type alias.
15545 (struct displaced_step_inferior_state) <step_closure>: Change
15546 type to displaced_step_closure_up.
15547 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15548 displaced_step_closure_up.
15549 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15551 2020-02-14 Tom Tromey <tom@tromey.com>
15553 * minidebug.c (gnu_debug_key): New global.
15554 (find_separate_debug_file_in_section): Use it.
15556 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15558 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15560 * gdbarch.c: Re-generate.
15561 * gdbarch.h: Re-generate.
15562 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15564 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15565 type to std::unique_ptr.
15566 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15567 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15568 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15569 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15570 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15571 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15572 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15573 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15574 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15576 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15578 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15580 (displaced_step_clear): Rename to...
15581 (displaced_step_reset): ... this. Just call displaced->reset ().
15582 (displaced_step_clear_cleanup): Rename to...
15583 (displaced_step_reset_cleanup): ... this.
15584 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15585 (displaced_step_fixup): Likewise.
15586 (resume_1): Likewise.
15587 (handle_inferior_event): Restore child's memory before calling
15588 displaced_step_fixup on the parent.
15589 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15590 to std::unique_ptr.
15591 <step_closure>: Change type to std::unique_ptr.
15593 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15595 * arm-tdep.c: Include count-one-bits.h.
15596 (cleanup_block_store_pc): Use count_one_bits.
15597 (cleanup_block_load_pc): Use count_one_bits.
15598 (arm_copy_block_xfer): Use count_one_bits.
15599 (thumb2_copy_block_xfer): Use count_one_bits.
15600 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15601 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15602 (thumb_get_next_pcs_raw): Use count_one_bits.
15603 (arm_get_next_pcs_raw): Use count_one_bits_l.
15604 * arch/arm.c (bitcount): Remove.
15605 * arch/arm.h (bitcount): Remove.
15607 2020-02-14 Tom Tromey <tromey@adacore.com>
15609 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15611 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15612 * dwarf2/loc.c (call_site_find_chain_1): Return
15613 unique_xmalloc_ptr.
15614 (call_site_find_chain): Likewise.
15616 2020-02-14 Richard Biener <rguenther@suse.de>
15618 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15619 on expression with division operators.
15621 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15623 * MAINTAINERS (Write After Approval): Adding myself.
15625 2020-02-12 Tom Tromey <tom@tromey.com>
15627 * event-loop.c (event_data, gdb_event, event_handler_func):
15630 2020-02-12 Tom Tromey <tom@tromey.com>
15632 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15633 (dwarf2_frame_objfile_data): Add comment.
15634 (find_comp_unit, set_comp_unit): New functions.
15635 (dwarf2_frame_find_fde): Use find_comp_unit.
15636 (dwarf2_build_frame_info): Use set_comp_unit.
15638 2020-02-12 Tom Tromey <tom@tromey.com>
15640 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15641 (comp_unit): Don't initialize objfile.
15642 (execute_cfa_program): Add text_offset parameter.
15643 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15644 (dwarf2_frame_cache): Update.
15645 (dwarf2_build_frame_info): Don't set "objfile" member.
15647 2020-02-12 Tom Tromey <tom@tromey.com>
15649 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15650 (decode_frame_entry): Likewise.
15651 (dwarf2_build_frame_info): Update.
15653 2020-02-12 Tom Tromey <tom@tromey.com>
15655 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15656 (decode_frame_entry_1): Use the comp_unit obstack.
15658 2020-02-12 Tom Tromey <tom@tromey.com>
15660 * dwarf2/frame.c (struct comp_unit): Add initializers and
15662 (dwarf2_frame_objfile_data): Store a comp_unit.
15663 (dwarf2_frame_find_fde): Update.
15664 (dwarf2_build_frame_info): Use "new".
15666 2020-02-12 Tom Tromey <tom@tromey.com>
15668 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15669 (dwarf2_fde_table): Typedef for std::vector.
15670 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15671 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15672 (decode_frame_entry): Update.
15673 (dwarf2_build_frame_info): Use "new".
15675 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15677 * arm-tdep.c (arm_gdbarch_init): Update.
15678 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15679 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15680 have_neon, is_m>: Change to bool.
15682 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15684 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15686 2020-02-12 Tom Tromey <tom@tromey.com>
15688 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15690 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15692 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15693 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15695 2020-02-11 Tom Tromey <tom@tromey.com>
15697 * psymtab.h: Update comment.
15699 2020-02-11 Tom Tromey <tom@tromey.com>
15701 * gdb_obstack.h (struct auto_obstack): Use
15702 DISABLE_COPY_AND_ASSIGN.
15704 2020-02-11 Tom Tromey <tom@tromey.com>
15706 * dwarf2/frame.h (struct objfile): Don't forward declare.
15708 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15710 * cris-tdep.c (cris_supply_gregset): Change signature to match
15711 what struct regset expects.
15712 (cris_regset): New struct.
15713 (fetch_core_registers): Remove.
15714 (cris_iterate_over_regset_sections): New function.
15715 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15716 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15718 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15720 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15723 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15725 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15727 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15729 * configure: Re-generate.
15731 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15733 * configure: Re-generate.
15735 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15737 * acinclude: Update warning.m4 path.
15738 * warning.m4: Move to gdbsupport.
15740 2020-02-11 Tom Tromey <tromey@adacore.com>
15742 * remote.c (remote_console_output): Update.
15743 * printcmd.c (printf_command): Update.
15744 * event-loop.c (gdb_wait_for_event): Update.
15745 * linux-nat.c (sigchld_handler): Update.
15746 * remote-sim.c (gdb_os_write_stdout): Update.
15747 (gdb_os_flush_stdout): Update.
15748 (gdb_os_flush_stderr): Update.
15749 (gdb_os_write_stderr): Update.
15750 * exceptions.c (print_exception): Update.
15751 * remote-fileio.c (remote_fileio_func_read): Update.
15752 (remote_fileio_func_write): Update.
15753 * tui/tui.c (tui_enable): Update.
15754 * tui/tui-interp.c (tui_interp::init): Update.
15755 * utils.c (init_page_info): Update.
15756 (putchar_unfiltered, fputc_unfiltered): Update.
15757 (gdb_flush): Update.
15758 (emit_style_escape): Update.
15759 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15760 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15761 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15762 (stderr_file::write): Update.
15763 (stderr_file::puts): Update.
15764 * ui-file.h (ui_file_isatty, ui_file_write)
15765 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15766 (ui_file_puts): Don't declare.
15768 2020-02-10 Tom de Vries <tdevries@suse.de>
15770 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15771 sentinel to char *.
15773 2020-02-09 Tom de Vries <tdevries@suse.de>
15775 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15776 filename if it matches "<artificial>".
15778 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15780 * windows-tdep.c (struct enum_value_name): New struct.
15781 (create_enum): New function.
15782 (windows_get_siginfo_type): Create and use enum types.
15784 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15786 * NEWS: Mention $_siginfo support for Windows.
15787 * windows-nat.c (handle_exception): Set siginfo_er.
15788 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15789 (windows_xfer_siginfo): New function.
15790 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15791 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15792 (init_windows_gdbarch_data): New function.
15793 (get_windows_gdbarch_data): New function.
15794 (windows_get_siginfo_type): New function.
15795 (windows_init_abi): Register windows_get_siginfo_type.
15796 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15798 2020-02-08 Tom Tromey <tom@tromey.com>
15800 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15801 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15802 <keep>: Declare method.
15803 <m_keep>: Remove member.
15804 <~cutu_reader>: Remove.
15805 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15806 (cutu_reader::cutu_reader): Update.
15807 (cutu_reader::keep): Rename from ~cutu_reader.
15808 (process_psymtab_comp_unit, build_type_psymtabs_1)
15809 (process_skeletonless_type_unit, load_partial_comp_unit)
15810 (load_full_comp_unit, dwarf2_read_addr_index)
15811 (read_signatured_type): Update.
15813 2020-02-08 Tom Tromey <tom@tromey.com>
15815 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15816 "want_partial_unit" parameter.
15817 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15818 Inline check for DW_TAG_partial_unit.
15819 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15821 2020-02-08 Tom Tromey <tom@tromey.com>
15823 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15825 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15828 2020-02-08 Tom Tromey <tom@tromey.com>
15830 * dwarf2/read.c (read_address): Move to comp-unit.c.
15831 (dwarf2_rnglists_process, dwarf2_ranges_process)
15832 (read_attribute_value, dwarf_decode_lines_1)
15833 (var_decode_location, decode_locdesc): Update.
15834 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15835 read.c. Remove "cu" parameter.
15836 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15839 2020-02-08 Tom Tromey <tom@tromey.com>
15841 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15842 (read_indirect_line_string): Update.
15843 * dwarf2/comp-unit.c (read_offset): Remove.
15844 (read_comp_unit_head): Update.
15845 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15847 (read_offset): Don't declare.
15849 2020-02-08 Tom Tromey <tom@tromey.com>
15851 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15852 * dwarf2/read.c (struct comp_unit_head): Move to
15853 dwarf2/comp-unit.h.
15854 (enum class rcuh_kind): Move to comp-unit.h.
15855 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15856 (read_comp_unit_head, error_check_comp_unit_head)
15857 (read_and_check_comp_unit_head): Move to comp-unit.c.
15858 (read_offset, dwarf_unit_type_name): Likewise.
15859 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15860 (cutu_reader::cutu_reader, read_call_site_scope)
15861 (find_partial_die, follow_die_offset): Update.
15862 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15864 2020-02-08 Tom Tromey <tom@tromey.com>
15866 * dwarf2/read.c (read_offset_1): Move to leb.c.
15867 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15868 (dwarf_decode_macro_bytes): Update.
15869 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15870 * dwarf2/leb.h (read_offset): Declare.
15872 2020-02-08 Tom Tromey <tom@tromey.com>
15874 * dwarf2/read.c (dwarf2_section_size): Remove.
15875 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15877 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15879 2020-02-08 Tom Tromey <tom@tromey.com>
15881 * dwarf2/read.c (read_initial_length): Move to leb.c.
15882 * dwarf2/leb.h (read_initial_length): Declare.
15883 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15884 handle_nonstd parameter.
15885 * dwarf2/frame.c (read_initial_length): Remove.
15886 (decode_frame_entry_1): Update.
15888 2020-02-08 Tom Tromey <tom@tromey.com>
15890 * dwarf2/loc.c (dwarf2_find_location_expression)
15891 (dwarf_evaluate_loc_desc::get_tls_address)
15892 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15893 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15894 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15895 (dwarf2_compile_property_to_c)
15896 (dwarf2_loc_desc_get_symbol_read_needs)
15897 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15898 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15899 (loclist_describe_location, loclist_tracepoint_var_ref)
15900 (loclist_generate_c_location): Update.
15901 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15902 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15903 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15904 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15905 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15906 (dwarf2_per_cu_data::addr_size)
15907 (dwarf2_per_cu_data::ref_addr_size)
15908 (dwarf2_per_cu_data::text_offset)
15909 (dwarf2_per_cu_data::addr_type): Now methods.
15910 (per_cu_header_read_in): Make per_cu "const".
15911 (dwarf2_version): Remove.
15912 (dwarf2_per_cu_data::int_type): Now a method.
15913 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15914 (set_die_type, read_array_type, read_subrange_index_type)
15915 (read_tag_string_type, read_subrange_type): Update.
15916 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15917 offset_size, ref_addr_size, text_offset, addr_type, version,
15918 objfile, int_type, addr_sized_int_type>: Declare methods.
15920 2020-02-08 Tom Tromey <tom@tromey.com>
15922 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15925 2020-02-08 Tom Tromey <tom@tromey.com>
15927 * dwarf2/read.h (dwarf_line_debug): Declare.
15928 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15929 * dwarf2/read.c: Move line_header code to new files.
15930 (dwarf_line_debug): No longer static.
15931 * dwarf2/line-header.c: New file.
15932 * dwarf2/line-header.h: New file.
15934 2020-02-08 Tom Tromey <tom@tromey.com>
15936 * dwarf2/read.c (struct line_header) <file_full_name,
15937 file_file_name>: Return unique_xmalloc_ptr.
15938 (line_header::file_file_name): Update.
15939 (line_header::file_full_name): Update.
15940 (dw2_get_file_names_reader): Update.
15941 (macro_start_file): Update.
15943 2020-02-08 Tom Tromey <tom@tromey.com>
15945 * dwarf2/read.c (struct line_header) <file_full_name,
15946 file_file_name>: Declare methods.
15947 (dw2_get_file_names_reader): Update.
15948 (file_file_name): Now a method.
15949 (file_full_name): Likewise.
15950 (macro_start_file): Update.
15952 2020-02-08 Tom Tromey <tom@tromey.com>
15954 * dwarf2/read.c (dwarf_always_disassemble)
15955 (show_dwarf_always_disassemble): Move to loc.c.
15956 (_initialize_dwarf2_read): Move "always-disassemble" registration
15958 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15959 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15961 (show_dwarf_always_disassemble): Move from read.c.
15962 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15964 2020-02-08 Tom Tromey <tom@tromey.com>
15966 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15967 (create_quick_file_names_table): Return htab_up.
15968 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15970 * dwarf2/read.h (struct dwarf2_per_objfile)
15971 <quick_file_names_table>: Now htab_up.
15973 2020-02-08 Tom Tromey <tom@tromey.com>
15975 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15977 2020-02-08 Tom Tromey <tom@tromey.com>
15979 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15981 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15982 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15983 (abbrev_table::abbrev_table): No longer inline.
15984 (ABBREV_HASH_SIZE): Remove.
15985 (abbrev_table::m_abbrevs): Now an htab_up.
15987 2020-02-08 Tom Tromey <tom@tromey.com>
15989 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15990 (cutu_reader): Update.
15991 (build_type_psymtabs_1): Update.
15992 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15993 (abbrev_table::alloc_abbrev): Update.
15994 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15995 (abbrev_table::read): New static method, renamed from
15996 abbrev_table_read_table.
15997 (abbrev_table::alloc_abbrev)
15998 (abbrev_table::add_abbrev): Now private.
15999 (abbrev_table::abbrev_table): Now private.
16000 (abbrev_table::m_abbrev_obstack): Now private. Rename.
16002 2020-02-08 Tom Tromey <tom@tromey.com>
16004 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
16005 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
16008 2020-02-08 Tom Tromey <tom@tromey.com>
16010 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
16012 (lookup_dwo_unit_in_dwp): Update.
16013 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
16016 2020-02-08 Tom Tromey <tom@tromey.com>
16018 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
16021 2020-02-08 Tom Tromey <tom@tromey.com>
16023 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
16025 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
16026 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
16027 Change type to htab_up.
16029 2020-02-08 Tom Tromey <tom@tromey.com>
16031 * dwarf2/read.c (allocate_type_unit_groups_table): Return
16032 htab_up. Don't allocate on obstack.
16033 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
16034 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
16035 Change type to htab_up.
16037 2020-02-08 Tom Tromey <tom@tromey.com>
16039 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
16040 Change type to htab_up.
16041 * dwarf2/read.c (create_signatured_type_table_from_index)
16042 (create_signatured_type_table_from_debug_names)
16043 (create_all_type_units, add_type_unit)
16044 (lookup_dwo_signatured_type, lookup_signatured_type)
16045 (process_skeletonless_type_unit): Update.
16046 (create_debug_type_hash_table, create_debug_types_hash_table):
16047 Change type of types_htab.
16048 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
16049 htab_up. Don't allocate on obstack.
16050 (create_cus_hash_table): Change type of cus_htab parameter.
16051 (struct dwo_file) <cus, tus>: Now htab_up.
16052 (lookup_dwo_signatured_type, lookup_dwo_cutu)
16053 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
16054 (queue_and_load_all_dwo_tus): Update.
16055 * dwarf2/index-write.c (write_gdbindex): Update.
16056 (write_debug_names): Update.
16058 2020-02-08 Tom Tromey <tom@tromey.com>
16060 * dwarf2/read.h (struct dwarf2_queue_item): Move from
16061 dwarf2/read.c. Remove "next" member. Add constructor ntad
16063 (struct dwarf2_per_objfile) <queue>: New member.
16064 * dwarf2/read.c (struct dwarf2_queue_item): Move to
16066 (dwarf2_queue, dwarf2_queue_tail): Remove.
16067 (class dwarf2_queue_guard): Add parameter to constructor. Use
16068 DISABLE_COPY_AND_ASSIGN.
16069 <m_per_objfile>: New member.
16070 <~dwarf2_queue_guard>: Rewrite.
16071 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
16073 (~dwarf2_queue_item): New.
16075 2020-02-08 Tom Tromey <tom@tromey.com>
16077 * dwarf2/read.c (struct die_info) <has_children>: New member.
16078 (dw2_get_file_names_reader): Remove has_children.
16079 (dw2_get_file_names): Update.
16080 (read_cutu_die_from_dwo): Remove has_children.
16081 (cutu_reader::init_tu_and_read_dwo_dies)
16082 (cutu_reader::cutu_reader): Update.
16083 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
16084 Remove has_children.
16085 (build_type_psymtabs_1, process_skeletonless_type_unit)
16086 (load_partial_comp_unit, load_full_comp_unit): Update.
16087 (create_dwo_cu_reader): Remove has_children.
16088 (create_cus_hash_table, read_die_and_children): Update.
16089 (read_full_die_1,read_full_die): Remove has_children.
16090 (read_signatured_type): Update.
16091 (class cutu_reader) <has_children>: Remove.
16093 2020-02-08 Tom Tromey <tom@tromey.com>
16095 * dwarf2/expr.c: Rename from dwarf2expr.c.
16096 * dwarf2/expr.h: Rename from dwarf2expr.h.
16097 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
16098 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
16099 * dwarf2/frame.c: Rename from dwarf2-frame.c.
16100 * dwarf2/frame.h: Rename from dwarf2-frame.h.
16101 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
16102 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
16103 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
16104 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
16105 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
16106 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
16107 * dwarf2/loc.c: Rename from dwarf2loc.c.
16108 * dwarf2/loc.h: Rename from dwarf2loc.h.
16109 * dwarf2/read.c: Rename from dwarf2read.c.
16110 * dwarf2/read.h: Rename from dwarf2read.h.
16111 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
16112 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
16113 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
16114 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
16115 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
16116 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
16117 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
16118 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
16119 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
16120 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
16121 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
16122 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
16123 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
16125 * Makefile.in (COMMON_SFILES): Update.
16126 (HFILES_NO_SRCDIR): Update.
16128 2020-02-08 Tom Tromey <tom@tromey.com>
16130 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
16131 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
16133 2020-02-08 Tom Tromey <tom@tromey.com>
16135 * dwarf2read.h (struct die_info): Don't declare.
16137 2020-02-08 Tom Tromey <tom@tromey.com>
16139 * dwarf2read.h (die_info_ptr): Remove typedef.
16141 2020-02-08 Tom Tromey <tom@tromey.com>
16143 * dwarf2read.c (read_call_site_scope)
16144 (handle_data_member_location, dwarf2_add_member_fn)
16145 (mark_common_block_symbol_computed, read_common_block)
16146 (attr_to_dynamic_prop, partial_die_info::read)
16147 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
16148 (dwarf2_symbol_mark_computed, set_die_type): Update.
16149 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
16151 (attr_form_is_block): Don't declare.
16152 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
16154 2020-02-08 Tom Tromey <tom@tromey.com>
16156 * dwarf2read.c (dwarf2_find_base_address, )
16157 (read_call_site_scope, rust_containing_type)
16158 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
16159 (handle_data_member_location, dwarf2_add_member_fn)
16160 (get_alignment, read_structure_type, process_structure_scope)
16161 (mark_common_block_symbol_computed, read_common_block)
16162 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
16163 (partial_die_info::read, read_attribute_value, new_symbol)
16164 (lookup_die_type, dwarf2_get_ref_die_offset)
16165 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
16166 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
16167 (dwarf2_symbol_mark_computed): Update.
16168 * dwarf2/attribute.h (struct attribute) <value_as_address,
16169 form_is_section_offset, form_is_constant, form_is_ref>: Declare
16171 (value_as_address, attr_form_is_section_offset)
16172 (attr_form_is_constant, attr_form_is_ref): Don't declare.
16173 * dwarf2/attribute.c (attribute::value_as_address)
16174 (attribute::form_is_section_offset, attribute::form_is_constant)
16175 (attribute::form_is_ref): Now methods.
16177 2020-02-08 Tom Tromey <tom@tromey.com>
16179 * dwarf2read.c (struct attribute, DW_STRING)
16180 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
16181 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
16182 (attr_form_is_block, attr_form_is_section_offset)
16183 (attr_form_is_constant, attr_form_is_ref): Move.
16184 * dwarf2/attribute.h: New file.
16185 * dwarf2/attribute.c: New file, from dwarf2read.c.
16186 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
16188 2020-02-08 Tom Tromey <tom@tromey.com>
16190 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
16191 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
16193 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
16194 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
16195 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
16197 * dwarf2/abbrev.h: New file.
16198 * dwarf2/abbrev.c: New file, from dwarf2read.c.
16199 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
16201 2020-02-08 Tom Tromey <tom@tromey.com>
16203 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
16204 (dwarf2_section_size, dwarf2_get_section_info)
16205 (create_signatured_type_table_from_debug_names)
16206 (create_addrmap_from_aranges, read_debug_names_from_section)
16207 (get_gdb_index_contents_from_section, read_comp_unit_head)
16208 (error_check_comp_unit_head, read_abbrev_offset)
16209 (create_debug_type_hash_table, init_cu_die_reader)
16210 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
16211 (read_comp_units_from_section, create_cus_hash_table)
16212 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
16213 (create_dwp_v2_section, dwarf2_rnglists_process)
16214 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
16215 (abbrev_table_read_table, read_indirect_string_at_offset_from)
16216 (read_indirect_string_from_dwz, read_addr_index_1)
16217 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
16218 (dwarf_decode_macro_bytes, dwarf_decode_macros)
16219 (fill_in_loclist_baton): Update.
16220 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
16221 get_containing_section, get_bfd_owner, get_bfd_section,
16222 get_file_name, get_id, get_flags, empty, read>: Declare methods.
16223 (dwarf2_read_section, get_section_name, get_section_file_name)
16224 (get_containing_section, get_section_bfd_owner)
16225 (get_section_bfd_section, get_section_name, get_section_file_name)
16226 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
16228 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
16229 (dwarf2_section_info::get_bfd_owner)
16230 (dwarf2_section_info::get_bfd_section)
16231 (dwarf2_section_info::get_name)
16232 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
16233 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
16234 (dwarf2_section_info::read): Now methods.
16235 * dwarf-index-write.c (class debug_names): Update.
16237 2020-02-08 Tom Tromey <tom@tromey.com>
16239 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
16240 Move to dwarf2/section.h.
16241 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
16242 (get_section_bfd_section, get_section_name)
16243 (get_section_file_name, get_section_id, get_section_flags)
16244 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
16246 * dwarf2/section.h: New file.
16247 * dwarf2/section.c: New file, from dwarf2read.c.
16248 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16250 2020-02-08 Tom Tromey <tom@tromey.com>
16252 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16253 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16254 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16255 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16256 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16257 * dwarf2/leb.h: New file, from dwarf2read.c.
16258 * dwarf2/leb.c: New file, from dwarf2read.c.
16259 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16261 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16262 (COMMON_SFILES): Add dwarf2/leb.c.
16264 2020-02-08 Joel Brobecker <brobecker@adacore.com>
16268 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16271 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16272 * gdb/remote.c (remote_console_output): Update.
16273 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16274 (ui_file_puts): ...this.
16275 * gdb/ui-file.h (ui_file_puts): Add declaration.
16276 * gdb/utils.c (emit_style_escape): Update.
16277 (flush_wrap_buffer): Update.
16278 (fputs_maybe_filtered): Update.
16279 (fputs_unfiltered): Add function.
16281 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16283 * gdb/event-loop.c (gdb_wait_for_event): Update.
16284 * gdb/printcmd.c (printf_command): Update.
16285 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16286 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16287 (gdb_os_flush_stderr): Update.
16288 * gdb/remote.c (remote_console_output): Update.
16289 * gdb/ui-file.c (gdb_flush): Rename to...
16290 (ui_file_flush): ...this.
16291 (stderr_file::write): Update.
16292 (stderr_file::puts): Update.
16293 * gdb/ui-file.h (gdb_flush): Rename to...
16294 (ui_file_flush): ...this.
16295 * gdb/utils.c (gdb_flush): Add function.
16296 * gdb/utils.h (gdb_flush): Add declaration.
16298 2020-02-07 Tom Tromey <tromey@adacore.com>
16300 PR breakpoints/24915:
16301 * source.c (find_and_open_source): Do not check basenames_may_differ.
16303 2020-02-07 Tom Tromey <tom@tromey.com>
16305 * README: Update gdbserver documentation.
16306 * gdbserver: Move to top level.
16307 * configure.tgt (build_gdbserver): Remove.
16308 * configure.ac: Remove --enable-gdbserver.
16309 * configure: Rebuild.
16310 * Makefile.in (distclean): Don't mention gdbserver.
16312 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16314 * source-cache.c (source_cache::ensure): Surround
16315 get_plain_source_lines with a try/catch.
16316 (source_cache::get_line_charpos): Get rid of try/catch
16317 and only check for the return value of "ensure".
16318 * tui/tui-source.c (tui_source_window::set_contents):
16319 Simplify "nlines" calculation.
16321 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16323 * MAINTAINERS (Write After Approval): Add myself.
16325 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16327 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16330 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16332 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16334 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
16336 * nat/riscv-linux-tdesc.h: New file.
16337 * nat/riscv-linux-tdesc.c: New file, taking code from...
16338 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16340 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16343 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16345 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16346 we don't set the fake simulator ptid to the null_ptid.
16348 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
16350 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16351 * gdbthread.h (class thread_info) <resumed>: Likewise.
16352 * infrun.c (resume_1): Likewise.
16353 (proceed): Likewise.
16354 (infrun_thread_stop_requested): Likewise.
16355 (stop_all_threads): Likewise.
16356 (handle_inferior_event): Likewise.
16357 (restart_threads): Likewise.
16358 (finish_step_over): Likewise.
16359 (keep_going_stepped_thread): Likewise.
16360 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16361 (linux_handle_extended_wait): Likewise.
16362 * record-btrace.c (get_thread_current_frame_id): Likewise.
16363 * record-full.c (record_full_wait_1): Likewise.
16364 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16365 * target.c (target_resume): Likewise.
16366 * thread.c (set_running_thread): Likewise.
16368 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16370 * f-valprint.c (f77_print_array_1): Changed datatype of index
16371 variable to LONGEST from int to enable it to contain bound
16374 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
16376 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16377 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16378 offsets according to FLEN determined.
16379 (riscv_linux_nat_target::read_description): Determine FLEN
16381 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16382 according to FLEN determined.
16383 (riscv_linux_nat_target::store_registers): Likewise.
16385 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16387 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16388 when reg->group is empty and reggroup is not.
16390 2020-01-31 Tom Tromey <tromey@adacore.com>
16392 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16393 Call beneath target's mourn_inferior after unpushing.
16395 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16398 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16399 have enough lines to fill the screen, still return the lowest
16402 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16404 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16405 '-', '<', and '>' commands.
16407 2020-01-29 Pedro Alves <palves@redhat.com>
16408 Sergio Durigan Junior <sergiodj@redhat.com>
16410 * infcmd.c (construct_inferior_arguments): Assert that
16411 'argc' is greater than 0.
16413 2020-01-29 Luis Machado <luis.machado@linaro.org>
16415 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16416 (BRK_INSN_MASK): Define to 0xd4200000.
16417 (aarch64_program_breakpoint_here_p): New function.
16418 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16419 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16421 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16423 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16424 call gdbarch_program_breakpoint_here_p.
16425 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16426 default_program_breakpoint_here_p, changed return type to bool and
16428 * breakpoint.h (program_breakpoint_here): Moved prototype to
16429 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16430 return type to bool.
16431 * gdbarch.c: Regenerate.
16432 * gdbarch.h: Regenerate.
16433 * gdbarch.sh (program_breakpoint_here_p): New method.
16434 * infrun.c (handle_signal_stop): Call
16435 gdbarch_program_breakpoint_here_p.
16437 2020-01-26 Tom Tromey <tom@tromey.com>
16439 * ctfread.c (struct ctf_fp_info): Reindent.
16440 (_initialize_ctfread): Remove.
16442 2020-01-26 Tom Tromey <tom@tromey.com>
16444 * psymtab.c (partial_map_expand_apply)
16445 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16446 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16447 (psym_print_stats, psym_expand_symtabs_for_function)
16448 (psym_map_symbol_filenames, psym_map_matching_symbols)
16449 (psym_expand_symtabs_matching)
16450 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16451 (maintenance_check_psymtabs): Use new methods.
16452 * psympriv.h (struct partial_symtab) <readin_p,
16453 get_compunit_symtab>: New methods.
16454 <readin, compunit_symtab>: Remove members.
16455 (struct standard_psymtab): New.
16456 (struct legacy_psymtab): Derive from standard_psymtab.
16457 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16459 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16461 2020-01-26 Tom Tromey <tom@tromey.com>
16463 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16464 read_dependencies. Add assert.
16465 * psymtab.c (partial_symtab::read_dependencies): New method.
16466 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16468 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16469 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16471 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16474 2020-01-26 Tom Tromey <tom@tromey.com>
16476 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16477 Call expand_psymtab.
16478 (xcoff_read_symtab): Call expand_psymtab.
16479 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16480 legacy_expand_psymtab.
16481 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16483 (struct legacy_psymtab) <expand_psymtab>: Implement.
16484 <legacy_expand_psymtab>: New member.
16485 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16486 (parse_partial_symbols): Set legacy_expand_psymtab.
16487 (psymtab_to_symtab_1): Change argument order. Call
16489 (new_psymtab): Set legacy_expand_psymtab.
16490 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16491 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16493 (dwarf2_psymtab::expand_psymtab): Rename from
16494 psymtab_to_symtab_1. Call expand_psymtab.
16495 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16496 (dbx_end_psymtab): Likewise.
16497 (dbx_psymtab_to_symtab_1): Change argument order. Call
16499 (dbx_read_symtab): Call expand_psymtab.
16500 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16501 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16502 (ctf_psymtab::read_symtab): Call expand_psymtab.
16504 2020-01-26 Tom Tromey <tom@tromey.com>
16506 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16507 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16509 * mdebugread.c (mdebug_read_symtab): Remove prints.
16510 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16512 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16514 2020-01-26 Tom Tromey <tom@tromey.com>
16516 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16517 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16518 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16520 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16521 * psymtab.c (psymtab_to_symtab): Call method.
16522 (dump_psymtab): Update.
16523 * psympriv.h (struct partial_symtab): Add virtual destructor.
16524 <read_symtab>: New method.
16525 (struct legacy_symtab): New.
16526 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16527 (struct pst_map) <pst>: Now a legacy_psymtab.
16528 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16529 (new_psymtab): Use legacy_psymtab.
16530 * dwarf2read.h (struct dwarf2_psymtab): New.
16531 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16532 * dwarf2read.c (dwarf2_create_include_psymtab)
16533 (dwarf2_build_include_psymtabs, create_type_unit_group)
16534 (create_partial_symtab, process_psymtab_comp_unit_reader)
16535 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16536 (set_partial_user): Use dwarf2_psymtab.
16537 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16538 (psymtab_to_symtab_1, process_full_comp_unit)
16539 (process_full_type_unit, dwarf2_ranges_read)
16540 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16541 (dwarf_decode_lines): Use dwarf2_psymtab.
16542 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16543 (add_address_entry_worker, write_one_signatured_type)
16544 (recursively_count_psymbols, recursively_write_psymbols)
16545 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16546 (write_debug_names): Likewise.
16547 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16548 <pst>: Now a legacy_psymtab.
16549 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16550 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16551 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16552 * ctfread.c (struct ctf_psymtab): New.
16553 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16555 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16556 (create_partial_symtab): Return a ctf_psymtab.
16557 (scan_partial_symbols): Update.
16559 2020-01-26 Tom Tromey <tom@tromey.com>
16561 * xcoffread.c (xcoff_start_psymtab): Use new.
16562 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16563 renamed from start_psymtab_common.
16564 * psympriv.h (struct partial_symtab): Add new constructor.
16565 (start_psymtab_common): Don't declare.
16566 * mdebugread.c (parse_partial_symbols): Use new.
16567 * dwarf2read.c (create_partial_symtab): Use new.
16568 * dbxread.c (start_psymtab): Use new.
16569 * ctfread.c (create_partial_symtab): Use new.
16571 2020-01-26 Tom Tromey <tom@tromey.com>
16573 * xcoffread.c (xcoff_end_psymtab): Use new.
16574 * psymtab.c (start_psymtab_common): Use new.
16575 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16577 * psympriv.h (struct partial_symtab): Add parameters to
16578 constructor. Don't inline.
16579 (allocate_psymtab): Don't declare.
16580 * mdebugread.c (new_psymtab): Use new.
16581 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16582 * dbxread.c (dbx_end_psymtab): Use new.
16584 2020-01-26 Tom Tromey <tom@tromey.com>
16586 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16587 allocate_psymtab. Update documentation.
16588 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16589 allocate_psymtab. Do not use new.
16590 (allocate_psymtab): Use new. Update.
16592 2020-01-26 Tom Tromey <tom@tromey.com>
16594 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16595 * psymtab.c (psym_print_stats): Update.
16596 * psympriv.h (struct partial_symtab) <readin,
16597 psymtabs_addrmap_supported, anonymous>: Now bool.
16598 * mdebugread.c (psymtab_to_symtab_1): Update.
16599 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16600 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16601 (process_full_comp_unit, process_full_type_unit): Update.
16602 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16603 * ctfread.c (psymtab_to_symtab): Update.
16605 2020-01-26 Tom Tromey <tom@tromey.com>
16607 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16608 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16609 * psymtab.c (psymtab_storage): Delete psymtabs.
16610 (psymtab_storage::allocate_psymtab): Use new.
16611 (psymtab_storage::discard_psymtab): Use delete.
16612 * psympriv.h (struct partial_symtab): Add constructor and
16615 2020-01-26 Tom Tromey <tom@tromey.com>
16617 * machoread.c: Do not include psympriv.h.
16619 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16621 * NEWS: Mention the new option and the set/show commands.
16623 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16625 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16626 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16627 (validate_exec_file): New variables, enums, functions.
16628 (exec_file_locate_attach, print_section_info): Style the filenames.
16629 (_initialize_exec): Install show_exec_file_mismatch_command and
16630 set_exec_file_mismatch_command.
16631 * gdbcore.h (validate_exec_file): Declare.
16632 * infcmd.c (attach_command): Call validate_exec_file.
16633 * remote.c ( remote_target::remote_add_inferior): Likewise.
16635 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16637 * frame.c (find_frame_sal): Move call to get_next_frame into more
16639 * inline-frame.c (inilne_state) <inline_state>: Update argument
16641 (inilne_state) <skipped_symbol>: Rename to...
16642 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16643 (skip_inline_frames): Build vector of skipped symbols and use this
16644 to reate the inline_state.
16645 (inline_skipped_symbol): Add a comment and some assertions, fetch
16646 skipped symbol from the list.
16648 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16650 * buildsym.c (lte_is_less_than): Delete.
16651 (buildsym_compunit::end_symtab_with_blockvector): Create local
16652 lambda function to sort line table entries, and use
16653 std::stable_sort instead of std::sort.
16654 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16655 markers when looking for a previous line.
16657 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16659 * dwarf2read.c (lnp_state_machine::record_line): Include
16660 end_sequence parameter in debug print out. Record the line if we
16661 are at an end_sequence marker even if it's not the start of a
16663 * symmisc.c (maintenance_print_one_line_table): Print end of
16664 sequence markers with 'END' not '0'.
16666 2020-01-24 Pedro Alves <palves@redhat.com>
16669 * thread.c (scoped_restore_current_thread::restore): Use
16670 switch_to_inferior_no_thread.
16671 * exec.c: Include "progspace-and-thread.h".
16672 (add_target_sections, remove_target_sections):
16673 scoped_restore_current_pspace_and_thread instead of
16674 scoped_restore_current_thread.
16675 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16676 and aspace to the inferior before calling clone_program_space.
16677 Remove stale comment.
16679 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16681 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16682 (arm_netbsd_nat_target::fetch_registers): ...this.
16683 (arm_nbsd_nat_target::store_registers): Rename to...
16684 (arm_netbsd_nat_target::store_registers): ...this.
16686 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16688 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16691 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16693 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16695 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16697 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16698 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16699 the correct replacement (iterate_over_regset_sections).
16700 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16703 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16706 * gdb/python/python.c (execute_gdb_command): Call
16707 async_enable_stdin in catch block.
16709 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16711 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16712 SWITCH_THRU_ALL_UIS.
16714 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16717 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16718 comment, add extra parameter, and update to store previous symbol
16720 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16721 add extra parameter.
16722 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16723 remove unneeded parameter, add try/catch around gdb_print_insn,
16724 rewrite to add items to asm_lines vector.
16725 (tui_find_backward_disassembly_start_address): New function.
16726 (tui_find_disassembly_address): Updated throughout.
16727 (tui_disasm_window::set_contents): Update for changes to
16729 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16730 number of lines to scroll.
16732 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16734 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16735 (SECT_OFF_DATA): Likewise.
16736 (SECT_OFF_RODATA): Likewise.
16737 (SECT_OFF_TEXT): Likewise.
16738 (SECT_OFF_BSS): Likewise.
16739 (struct objfile) <text_section_offset, data_section_offset>: New
16741 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16742 objfile::text_section_offset.
16743 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16744 * coffread.c (coff_symtab_read): Likewise.
16745 (enter_linenos): Likewise.
16746 (process_coff_symbol): Likewise.
16747 * ctfread.c (get_objfile_text_range): Likewise.
16748 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16749 Use objfile::data_section_offset.
16750 * dwarf2-frame.c (execute_cfa_program): Use
16751 objfile::text_section_offset.
16752 (dwarf2_frame_find_fde): Likewise.
16753 * dwarf2read.c (create_addrmap_from_index): Likewise.
16754 (create_addrmap_from_aranges): Likewise.
16755 (dw2_find_pc_sect_compunit_symtab): Likewise.
16756 (process_psymtab_comp_unit_reader): Likewise.
16757 (add_partial_symbol): Likewise.
16758 (add_partial_subprogram): Likewise.
16759 (process_full_comp_unit): Likewise.
16760 (read_file_scope): Likewise.
16761 (read_func_scope): Likewise.
16762 (read_lexical_block_scope): Likewise.
16763 (read_call_site_scope): Likewise.
16764 (dwarf2_rnglists_process): Likewise.
16765 (dwarf2_ranges_process): Likewise.
16766 (dwarf2_ranges_read): Likewise.
16767 (dwarf_decode_lines_1): Likewise.
16768 (new_symbol): Likewise.
16769 (dwarf2_fetch_die_loc_sect_off): Likewise.
16770 (dwarf2_per_cu_text_offset): Likewise.
16771 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16772 * hppa-tdep.c (read_unwind_info): Likewise.
16773 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16774 * psympriv.h (struct partial_symtab): Likewise.
16775 * psymtab.c (find_pc_sect_psymtab): Likewise.
16776 * solib-svr4.c (enable_break): Likewise.
16777 * stap-probe.c (relocate_address): Use
16778 objfile::data_section_offset.
16779 * xcoffread.c (enter_line_range): Use
16780 objfile::text_section_offset.
16781 (read_xcoff_symtab): Likewise.
16783 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16785 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16786 declaration to narrower scopes.
16788 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16790 * darwin-nat.h (struct darwin_exception_msg, enum
16791 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16793 (class darwin_nat_target) <wait_1, check_new_threads,
16794 decode_exception_message, decode_message, stop_inferior,
16795 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16796 * darwin-nat.c (darwin_check_new_threads): Rename to...
16797 (darwin_nat_target::check_new_threads): ... this.
16798 (darwin_suspend_inferior_it): Remove.
16799 (darwin_decode_exception_message): Rename to...
16800 (darwin_nat_target::decode_exception_message): ... this.
16801 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16802 (darwin_decode_message): Rename to...
16803 (darwin_nat_target::decode_message): ... this.
16804 (cancel_breakpoint): Rename to...
16805 (darwin_nat_target::cancel_breakpoint): ... this.
16806 (darwin_wait): Rename to...
16807 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16808 instead of iterate_over_inferiors.
16809 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16810 (darwin_stop_inferior): Rename to...
16811 (darwin_nat_target::stop_inferior): ... this.
16812 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16813 (darwin_init_thread_list): Rename to...
16814 (darwin_nat_target::init_thread_list): ... this.
16815 (darwin_ptrace_him): Rename to...
16816 (darwin_nat_target::ptrace_him): ... this.
16817 (darwin_nat_target::create_inferior): Pass lambda function to
16819 (darwin_nat_target::detach): Call stop_inferior instead of
16820 darwin_stop_inferior.
16821 * fork-inferior.h (fork_inferior): Change init_trace_fun
16822 parameter to gdb::function_view.
16823 * fork-inferior.c (fork_inferior): Likewise.
16825 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16827 * i386-cygwin-tdep.c (core_process_module_section): Update.
16828 * windows-nat.c (struct lm_info_windows): Add text_offset.
16829 (windows_xfer_shared_libraries): Update.
16830 * windows-tdep.c (windows_xfer_shared_library):
16831 Add text_offset_cached argument.
16832 * windows-tdep.h (windows_xfer_shared_library): Update.
16834 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16836 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16838 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16840 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16841 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16842 replace with range-based for.
16843 (gdbsim_interrupt_inferior): Remove.
16844 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16845 with a range-based for. Inline code from
16846 gdbsim_interrupt_inferior.
16848 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16850 * infrun.c (proceed): Fix indentation.
16852 2020-01-21 Tom Tromey <tromey@adacore.com>
16854 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16855 * python/python.c (python_extension_ops): Update.
16856 (gdbpy_colorize): New function.
16857 * python/lib/gdb/__init__.py (colorize): New function.
16858 * extension.h (ext_lang_colorize): Declare.
16859 * extension.c (ext_lang_colorize): New function.
16860 * extension-priv.h (struct extension_language_ops) <colorize>: New
16862 * cli/cli-style.c (_initialize_cli_style): Update help text.
16864 2020-01-21 Luis Machado <luis.machado@linaro.org>
16866 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16867 <cond>: Change type to bool.
16868 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16869 (aarch64_displaced_step_cb): Likewise.
16870 (aarch64_displaced_step_tb): Likewise.
16872 2020-01-21 Luis Machado <luis.machado@linaro.org>
16874 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16877 2020-01-21 Luis Machado <luis.machado@linaro.org>
16879 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16880 <pc_adjust>: Adjust the documentation.
16881 (aarch64_displaced_step_fixup): Check if PC really moved before
16884 2020-01-19 Tom Tromey <tom@tromey.com>
16886 * disasm.c (~gdb_disassembler): New destructor.
16887 (gdb_buffered_insn_length): Call disassemble_free_target.
16888 * disasm.h (class gdb_disassembler): Declare destructor. Use
16889 DISABLE_COPY_AND_ASSIGN.
16891 2020-01-19 Tom Tromey <tom@tromey.com>
16893 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16894 (die_reader_func_ftype): Remove.
16895 (cutu_reader): New class.
16896 (dw2_get_file_names_reader): Remove "data" parameter.
16897 (dw2_get_file_names): Use cutu_reader.
16898 (create_debug_type_hash_table): Update.
16899 (read_cutu_die_from_dwo): Update comment.
16900 (lookup_dwo_unit): Add dwo_name parameter.
16901 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16902 die_reader_func_ftype and data parameters.
16903 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16904 Remove die_reader_func_ftype and data parameters.
16905 (~cutu_reader): New; from init_cutu_and_read_dies.
16906 (cutu_reader::cutu_reader): Rename from
16907 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16908 and data parameters.
16909 (init_cutu_and_read_dies_simple): Remove.
16910 (struct process_psymtab_comp_unit_data): Remove.
16911 (process_psymtab_comp_unit_reader): Remove data parameter; add
16912 want_partial_unit and pretend_language parameters.
16913 (process_psymtab_comp_unit): Use cutu_reader.
16914 (build_type_psymtabs_reader): Remove data parameter.
16915 (build_type_psymtabs_1): Use cutu_reader.
16916 (process_skeletonless_type_unit): Likewise.
16917 (load_partial_comp_unit_reader): Remove.
16918 (load_partial_comp_unit): Use cutu_reader.
16919 (load_full_comp_unit_reader): Remove.
16920 (load_full_comp_unit): Use cutu_reader.
16921 (struct create_dwo_cu_data): Remove.
16922 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16923 dwo_unit parameters.
16924 (create_cus_hash_table): Use cutu_reader.
16925 (struct dwarf2_read_addr_index_data): Remove.
16926 (dwarf2_read_addr_index_reader): Remove.
16927 (dwarf2_read_addr_index): Use cutu_reader.
16928 (read_signatured_type_reader): Remove.
16929 (read_signatured_type): Use cutu_reader.
16931 2020-01-19 Tom Tromey <tom@tromey.com>
16933 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16934 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16935 (tui_wrefresh): Declare.
16936 * tui/tui-wingeneral.c (suppress_output): New global.
16937 (tui_suppress_output, ~tui_suppress_output): New constructor and
16939 (tui_wrefresh): New function.
16940 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16941 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16942 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16944 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16946 (tui_data_window::no_refresh): New method.
16947 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16948 (tui_reg_command): Use tui_suppress_output
16949 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16950 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16952 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16954 2020-01-19 Tom Tromey <tom@tromey.com>
16956 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16957 Handle case where symtab is null.
16959 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16961 * linux-fork.c (one_fork_p): Simplify.
16963 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16965 * top.c (struct qt_args): Remove.
16966 (kill_or_detach): Change return type to void, replace `void *`
16967 parameter with a proper one.
16968 (print_inferior_quit_action): Likewise.
16969 (quit_confirm): Use range-based for loop to iterate over inferiors.
16970 (quit_force): Likewise.
16972 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16974 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16975 `void *` parameter with proper parameters.
16976 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16977 (print_one_inferior): Change return type to void, replace `void *`
16978 parameter with proper parameters.
16979 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16981 (get_other_inferior): Remove.
16982 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16985 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16987 * mi/mi-interp.c (report_initial_inferior): Remove.
16988 (mi_interp::init): Use range-based for to iterate over inferiors.
16990 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16992 * python/py-inferior.c (build_inferior_list): Remove.
16993 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16995 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16997 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16998 (btrace_stitch_trace): Likewise.
16999 * charset.c (intermediate_encoding): Likewise (vaild).
17000 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
17001 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
17002 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
17004 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
17006 * windows-tdep.c (windows_get_tlb_type):
17007 Add rtl_user_process_parameters type.
17009 2020-01-16 Pedro Alves <palves@redhat.com>
17010 Norbert Lange <nolange79@gmail.com>
17013 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
17014 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
17015 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
17016 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
17017 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
17018 (ps_plog): Redeclare exported functions with default visibility.
17020 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
17022 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
17023 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
17025 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
17027 * infcmd.c (post_create_inferior): Use get_thread_regcache
17028 instead of get_current_regcache.
17030 2020-01-14 Tom Tromey <tom@tromey.com>
17033 * python/python.c (gdbpy_decode_line): Treat empty string the same
17036 2020-01-14 Tom Tromey <tom@tromey.com>
17038 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
17040 2020-01-14 Tom Tromey <tom@tromey.com>
17042 * nat/linux-btrace.c: Don't include <config.h>.
17043 * nat/linux-ptrace.c: Don't include <config.h>.
17044 * nat/x86-linux-dregs.c: Don't include <config.h>.
17046 2020-01-14 Tom Tromey <tom@tromey.com>
17048 * configure: Rebuild.
17049 * configure.ac: Move many checks to ../gdbsupport/common.m4.
17051 2020-01-14 Tom Tromey <tom@tromey.com>
17053 * nat/x86-linux-dregs.c: Include configh.h.
17054 * nat/linux-ptrace.c: Include configh.h.
17055 * nat/linux-btrace.c: Include configh.h.
17056 * defs.h: Include config.h, bfd.h.
17057 * configure.ac: Don't source common.host.
17058 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
17059 * configure: Rebuild.
17060 * acinclude.m4: Update path.
17061 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
17062 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
17063 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
17064 (CLIBS): Add LIBSUPPORT.
17066 (COMMON_SFILES): Remove gdbsupport files.
17067 (HFILES_NO_SRCDIR): Likewise.
17068 (stamp-version): Update path to create-version.sh.
17069 (ALLDEPFILES): Remove gdbsupport files.
17071 2020-01-14 Tom Tromey <tom@tromey.com>
17073 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
17074 USE_WIN32API when needed.
17075 * configure.ac (USE_WIN32API): Don't define.
17076 (WIN32LIBS): Use WIN32APILIBS.
17077 * configure: Rebuild.
17079 2020-01-14 Tom Tromey <tom@tromey.com>
17081 * configure: Rebuild.
17082 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
17084 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
17086 * skip.c (skip_function_command): Make skip w/o arguments use the
17087 name of the inlined function if pc is inside any inlined function.
17089 2020-01-14 Luis Machado <luis.machado@linaro.org>
17091 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
17092 * infrun.c (resume_1): Likewise.
17093 (handle_inferior_event): Remove stale comment.
17094 * linux-nat.c (linux_nat_target::resume): Update comments.
17095 (save_stop_reason): Likewise.
17096 (linux_nat_filter_event): Likewise.
17097 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
17099 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17101 * elfread.c (record_minimal_symbol): Set section index to 0 for
17102 non-allocatable sections.
17105 2020-01-13 Ali Tamur <tamur@google.com>
17107 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
17108 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
17109 to gdb::optional. Update comments.
17110 (dwo_file): Update comments.
17111 (read_attribute): Update API to take an additional out parameter,
17112 need_reprocess. This is used to mark attributes that need other
17113 attributes (e.g. str_offsets_base) for correct computation which may not
17114 have been read yet.
17115 (read_attribute_reprocess): New function declaration.
17116 (read_addr_index): Likewise.
17117 (read_dwo_str_index): Likewise.
17118 (read_stub_str_index): Likewise.
17119 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
17120 (lookup_addr_base): New function definition.
17121 (lookup_ranges_base): Likewise.
17122 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
17123 lookup_ranges_base.
17124 (init_cutu_and_read_dies): Update comments.
17125 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
17126 unit. This is used to inherit parent's str_offsets_base and addr_base.
17128 (init_cutu_and_read_dies_simple): Reflect API changes.
17129 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
17130 (create_cus_hash_table): Change API to take parent compile unit.
17131 Reflect API changes.
17132 (open_and_init_dwo_file): Reflect API changes.
17133 (dwarf2_get_pc_bounds): Update comments.
17134 (dwarf2_record_block_ranges): Likewise.
17135 (read_full_die_1): Change implementation to reprocess attributes that
17136 need str_offsets_base and addr_base.
17137 (partial_die_info::read): Likewise.
17138 (read_attribute_reprocess): New function definition.
17139 (read_attribute_value): Change API to take an additional out parameter,
17140 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
17141 when a non-dwo compile unit has index based attributes.
17142 (read_attribute): Reflect API changes.
17143 (read_addr_index_1): Reflect API changes. Update comments.
17144 (dwarf2_read_addr_index_data): Reflect API changes.
17145 (dwarf2_read_addr_index): Likewise.
17146 (read_str_index): Change API and implementation. This becomes a helper
17147 to be used by the new string index related methods. Update error
17148 message and comments.
17149 (read_dwo_str_index): New function definition.
17150 (read_stub_str_index): Likewise.
17151 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
17152 * symfile.h (dwarf2_debug_sections): Likewise.
17153 * xcoffread.c (dwarf2_debug_sections): Likewise.
17155 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17157 * gdbcore.h (struct core_fns) <core_read_registers>: Change
17158 core_reg_sect type to gdb_byte *.
17159 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
17160 * cris-tdep.c (fetch_core_registers): Likewise.
17161 * corelow.c (core_target::get_core_register_section): Change
17162 type of `contents` to gdb::byte_vector.
17164 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17166 * tui/tui-wingeneral.c (box_win): Position the title in the center
17169 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17171 * corelow.c (core_target::get_core_register_section): Use
17172 std::vector instead of alloca.
17174 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17176 * warning.m4: Add -Wmissing-declarations to build_warnings.
17177 * configure: Re-generate.
17179 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17181 * python/python.c (init__gdb_module): Add declaration.
17183 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17185 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
17186 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
17187 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
17188 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
17189 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
17190 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
17191 * ada-exp.y (_initialize_ada_exp): Add declaration.
17192 * ada-lang.c (_initialize_ada_language): Add declaration.
17193 * ada-tasks.c (_initialize_tasks): Add declaration.
17194 * agent.c (_initialize_agent): Add declaration.
17195 * aix-thread.c (_initialize_aix_thread): Add declaration.
17196 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
17197 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
17198 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
17199 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
17200 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
17201 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
17202 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
17203 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
17204 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
17205 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
17206 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
17207 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
17208 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
17209 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
17210 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
17211 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
17212 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
17213 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
17214 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
17215 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
17216 * annotate.c (_initialize_annotate): Add declaration.
17217 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
17218 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
17219 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
17220 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
17221 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
17222 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
17223 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
17224 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
17225 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
17226 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
17227 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
17228 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
17229 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
17230 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
17231 * auto-load.c (_initialize_auto_load): Add declaration.
17232 * auxv.c (_initialize_auxv): Add declaration.
17233 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
17234 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
17235 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
17236 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
17237 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
17238 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
17239 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
17240 * breakpoint.c (_initialize_breakpoint): Add declaration.
17241 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
17242 * btrace.c (_initialize_btrace): Add declaration.
17243 * charset.c (_initialize_charset): Add declaration.
17244 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
17245 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17246 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17247 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17248 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17249 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17250 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17251 * coffread.c (_initialize_coffread): Add declaration.
17252 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17253 * compile/compile.c (_initialize_compile): Add declaration.
17254 * complaints.c (_initialize_complaints): Add declaration.
17255 * completer.c (_initialize_completer): Add declaration.
17256 * copying.c (_initialize_copying): Add declaration.
17257 * corefile.c (_initialize_core): Add declaration.
17258 * corelow.c (_initialize_corelow): Add declaration.
17259 * cp-abi.c (_initialize_cp_abi): Add declaration.
17260 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17261 * cp-support.c (_initialize_cp_support): Add declaration.
17262 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17263 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17264 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17265 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17266 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17267 * ctfread.c (_initialize_ctfread): Add declaration.
17268 * d-lang.c (_initialize_d_language): Add declaration.
17269 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17270 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17271 * dbxread.c (_initialize_dbxread): Add declaration.
17272 * dcache.c (_initialize_dcache): Add declaration.
17273 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17274 * disasm.c (_initialize_disasm): Add declaration.
17275 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17276 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17277 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17278 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17279 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17280 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17281 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17282 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17283 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17284 * elfread.c (_initialize_elfread): Add declaration.
17285 * exec.c (_initialize_exec): Add declaration.
17286 * extension.c (_initialize_extension): Add declaration.
17287 * f-lang.c (_initialize_f_language): Add declaration.
17288 * f-valprint.c (_initialize_f_valprint): Add declaration.
17289 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17290 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17291 * filesystem.c (_initialize_filesystem): Add declaration.
17292 * findcmd.c (_initialize_mem_search): Add declaration.
17293 * findvar.c (_initialize_findvar): Add declaration.
17294 * fork-child.c (_initialize_fork_child): Add declaration.
17295 * frame-base.c (_initialize_frame_base): Add declaration.
17296 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17297 * frame.c (_initialize_frame): Add declaration.
17298 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17299 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17300 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17301 * gcore.c (_initialize_gcore): Add declaration.
17302 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17303 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17304 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17305 * gdbarch.c (_initialize_gdbarch): Add declaration.
17306 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17307 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17308 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17309 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17310 * go-lang.c (_initialize_go_language): Add declaration.
17311 * go32-nat.c (_initialize_go32_nat): Add declaration.
17312 * guile/guile.c (_initialize_guile): Add declaration.
17313 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17314 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17315 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17316 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17317 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17318 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17319 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17320 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17321 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17322 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17323 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17324 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17325 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17326 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17327 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17328 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17329 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17330 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17331 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17332 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17333 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17334 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17335 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17336 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17337 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17338 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17339 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17340 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17341 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17342 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17343 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17344 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17345 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17346 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17347 * infcall.c (_initialize_infcall): Add declaration.
17348 * infcmd.c (_initialize_infcmd): Add declaration.
17349 * inflow.c (_initialize_inflow): Add declaration.
17350 * infrun.c (_initialize_infrun): Add declaration.
17351 * interps.c (_initialize_interpreter): Add declaration.
17352 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17353 * jit.c (_initialize_jit): Add declaration.
17354 * language.c (_initialize_language): Add declaration.
17355 * linux-fork.c (_initialize_linux_fork): Add declaration.
17356 * linux-nat.c (_initialize_linux_nat): Add declaration.
17357 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17358 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17359 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17360 * m2-lang.c (_initialize_m2_language): Add declaration.
17361 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17362 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17363 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17364 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17365 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17366 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17367 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17368 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17369 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17370 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17371 * machoread.c (_initialize_machoread): Add declaration.
17372 * macrocmd.c (_initialize_macrocmd): Add declaration.
17373 * macroscope.c (_initialize_macroscope): Add declaration.
17374 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17375 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17376 * maint.c (_initialize_maint_cmds): Add declaration.
17377 * mdebugread.c (_initialize_mdebugread): Add declaration.
17378 * memattr.c (_initialize_mem): Add declaration.
17379 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17380 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17381 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17382 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17383 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17384 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17385 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17386 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17387 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17388 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17389 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17390 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17391 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17392 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17393 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17394 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17395 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17396 * mipsread.c (_initialize_mipsread): Add declaration.
17397 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17398 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17399 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17400 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17401 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17402 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17403 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17404 * nto-procfs.c (_initialize_procfs): Add declaration.
17405 * objc-lang.c (_initialize_objc_language): Add declaration.
17406 * observable.c (_initialize_observer): Add declaration.
17407 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17408 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17409 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17410 * osabi.c (_initialize_gdb_osabi): Add declaration.
17411 * osdata.c (_initialize_osdata): Add declaration.
17412 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17413 * parse.c (_initialize_parse): Add declaration.
17414 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17415 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17416 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17417 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17418 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17419 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17420 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17421 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17422 * printcmd.c (_initialize_printcmd): Add declaration.
17423 * probe.c (_initialize_probe): Add declaration.
17424 * proc-api.c (_initialize_proc_api): Add declaration.
17425 * proc-events.c (_initialize_proc_events): Add declaration.
17426 * proc-service.c (_initialize_proc_service): Add declaration.
17427 * procfs.c (_initialize_procfs): Add declaration.
17428 * producer.c (_initialize_producer): Add declaration.
17429 * psymtab.c (_initialize_psymtab): Add declaration.
17430 * python/python.c (_initialize_python): Add declaration.
17431 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17432 * record-btrace.c (_initialize_record_btrace): Add declaration.
17433 * record-full.c (_initialize_record_full): Add declaration.
17434 * record.c (_initialize_record): Add declaration.
17435 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17436 * regcache.c (_initialize_regcache): Add declaration.
17437 * reggroups.c (_initialize_reggroup): Add declaration.
17438 * remote-notif.c (_initialize_notif): Add declaration.
17439 * remote-sim.c (_initialize_remote_sim): Add declaration.
17440 * remote.c (_initialize_remote): Add declaration.
17441 * reverse.c (_initialize_reverse): Add declaration.
17442 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17443 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17444 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17445 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17446 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17447 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17448 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17449 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17451 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17452 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17453 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17454 * rust-exp.y (_initialize_rust_exp): Add declaration.
17455 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17456 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17457 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17458 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17459 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17460 * score-tdep.c (_initialize_score_tdep): Add declaration.
17461 * ser-go32.c (_initialize_ser_dos): Add declaration.
17462 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17463 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17464 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17465 * ser-uds.c (_initialize_ser_socket): Add declaration.
17466 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17467 * serial.c (_initialize_serial): Add declaration.
17468 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17469 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17470 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17471 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17472 * skip.c (_initialize_step_skip): Add declaration.
17473 * sol-thread.c (_initialize_sol_thread): Add declaration.
17474 * solib-aix.c (_initialize_solib_aix): Add declaration.
17475 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17476 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17477 * solib-frv.c (_initialize_frv_solib): Add declaration.
17478 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17479 * solib-target.c (_initialize_solib_target): Add declaration.
17480 * solib.c (_initialize_solib): Add declaration.
17481 * source-cache.c (_initialize_source_cache): Add declaration.
17482 * source.c (_initialize_source): Add declaration.
17483 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17484 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17485 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17486 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17487 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17488 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17489 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17490 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17491 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17492 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17493 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17494 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17495 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17496 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17497 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17498 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17499 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17500 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17501 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17502 * stabsread.c (_initialize_stabsread): Add declaration.
17503 * stack.c (_initialize_stack): Add declaration.
17504 * stap-probe.c (_initialize_stap_probe): Add declaration.
17505 * std-regs.c (_initialize_frame_reg): Add declaration.
17506 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17507 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17508 * symfile.c (_initialize_symfile): Add declaration.
17509 * symmisc.c (_initialize_symmisc): Add declaration.
17510 * symtab.c (_initialize_symtab): Add declaration.
17511 * target.c (_initialize_target): Add declaration.
17512 * target-connection.c (_initialize_target_connection): Add
17514 * target-dcache.c (_initialize_target_dcache): Add declaration.
17515 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17516 * thread.c (_initialize_thread): Add declaration.
17517 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17518 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17519 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17520 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17521 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17522 * tracectf.c (_initialize_ctf): Add declaration.
17523 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17524 * tracefile.c (_initialize_tracefile): Add declaration.
17525 * tracepoint.c (_initialize_tracepoint): Add declaration.
17526 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17527 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17528 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17529 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17530 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17531 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17532 * tui/tui.c (_initialize_tui): Add declaration.
17533 * typeprint.c (_initialize_typeprint): Add declaration.
17534 * ui-style.c (_initialize_ui_style): Add declaration.
17535 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17536 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17537 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17538 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17539 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17540 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17541 * unittests/filtered_iterator-selftests.c
17542 (_initialize_filtered_iterator_selftests): Add declaration.
17543 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17544 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17545 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17546 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17547 * unittests/main-thread-selftests.c
17548 (_initialize_main_thread_selftests): Add declaration.
17549 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17550 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17551 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17552 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17553 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17554 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17555 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17556 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17557 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17558 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17559 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17560 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17561 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17562 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17563 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17565 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17566 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17567 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17568 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17569 * user-regs.c (_initialize_user_regs): Add declaration.
17570 * utils.c (_initialize_utils): Add declaration.
17571 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17572 * valops.c (_initialize_valops): Add declaration.
17573 * valprint.c (_initialize_valprint): Add declaration.
17574 * value.c (_initialize_values): Add declaration.
17575 * varobj.c (_initialize_varobj): Add declaration.
17576 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17577 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17578 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17579 * windows-nat.c (_initialize_windows_nat): Add declaration.
17580 (_initialize_check_for_gdb_ini): Add declaration.
17581 (_initialize_loadable): Add declaration.
17582 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17583 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17584 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17585 * xcoffread.c (_initialize_xcoffread): Add declaration.
17586 * xml-support.c (_initialize_xml_support): Add declaration.
17587 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17588 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17589 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17590 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17592 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17594 * regformats/regdat.sh: Generate declaration for init function.
17596 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17598 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17600 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17601 close_one_inferior>: New methods.
17602 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17603 pass down target to find_inferior_pid.
17604 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17605 Pass down target to find_inferior_ptid.
17606 (gdbsim_target::create_inferior): Pass down target to
17608 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17609 target down to find_inferior_ptid and switch_to_thread.
17610 (gdbsim_target::close): Update to call close_one_inferior.
17611 (struct resume_data): Remove.
17612 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17613 directly, rather than through a void pointer.
17614 (gdbsim_target::resume): Update to call resume_one_inferior.
17616 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17618 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17620 2020-01-12 Pedro Alves <palves@redhat.com>
17622 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17623 directly for the current inferior instead of
17624 discard_all_inferiors.
17625 (discard_all_inferiors): Delete.
17627 2020-01-11 Tom Tromey <tom@tromey.com>
17629 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17630 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17631 deprecated_safe_get_selected_frame.
17633 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17635 * inferior.c (print_inferior): Switch inferior before printing it.
17637 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17638 Pedro Alves <palves@redhat.com>
17640 * progspace-and-thread.c (switch_to_program_space_and_thread):
17641 Assert there's an inferior for PSPACE. Use
17642 switch_to_inferior_no_thread to switch the inferior too.
17643 * progspace.c (program_space::~program_space): Call
17644 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17645 (program_space::free_all_objfiles): Don't call clear_symtab_users
17647 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17649 2020-01-10 Pedro Alves <palves@redhat.com>
17651 * NEWS: Mention multi-target debugging, "info connections", and
17652 "add-inferior -no-connection".
17654 2020-01-10 Pedro Alves <palves@redhat.com>
17656 * infrun.c: Include "target-connection.h".
17657 (check_multi_target_resumption): New.
17658 (proceed): Call it.
17659 * target-connection.c (make_target_connection_string): Make
17661 * target-connection.h (make_target_connection_string): Declare.
17663 2020-01-10 Pedro Alves <palves@redhat.com>
17665 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17666 * inferior.c (uiout_field_connection): New function.
17667 (print_inferior): Add new "connection-id" column.
17668 (add_inferior_command): Show connection number/string of added
17670 * process-stratum-target.h
17671 (process_stratum_target::connection_string): New virtual method.
17672 (process_stratum_target::connection_number): New field.
17673 * remote.c (remote_target::connection_string): New override.
17674 * target-connection.c: New file.
17675 * target-connection.h: New file.
17676 * target.c (decref_target): Remove process_stratum targets from
17677 the connection list.
17678 (target_stack::push): Add process_stratum targets to the
17681 2020-01-10 Pedro Alves <palves@redhat.com>
17684 2016-04-12 Pedro Alves <palves@redhat.com>
17685 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17686 Remove references to name.
17687 * serial.h (struct serial) <name>: Delete.
17689 2020-01-10 Pedro Alves <palves@redhat.com>
17691 * gdbarch-selftests.c (register_to_value_test): Remove "target
17692 already pushed" check.
17694 2020-01-10 Pedro Alves <palves@redhat.com>
17695 John Baldwin <jhb@FreeBSD.org>
17697 * aarch64-linux-nat.c
17698 (aarch64_linux_nat_target::thread_architecture): Adjust.
17699 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17700 (task_command_1): Likewise.
17701 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17702 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17703 (aix_thread_target::store_registers)
17704 (aix_thread_target::thread_alive): Adjust.
17705 * amd64-fbsd-tdep.c: Include "inferior.h".
17706 (amd64fbsd_get_thread_local_address): Pass down target.
17707 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17708 thread's gdbarch instead of target_gdbarch.
17709 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17710 get_last_target_status.
17711 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17712 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17714 (update_inserted_breakpoint_locations): Skip if inferiors with no
17716 (update_global_location_list): When handling moribund locations,
17717 find representative inferior for location's pspace, and use thread
17718 count of its process_stratum target.
17719 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17720 * bsd-uthread.c (bsd_uthread_target::wait): Use
17721 as_process_stratum_target and adjust thread_change_ptid and
17723 (bsd_uthread_target::update_thread_list): Use
17724 as_process_stratum_target and adjust find_thread_ptid,
17725 thread_change_ptid and add_thread calls.
17726 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17727 find_thread_ptid call.
17728 * corelow.c (add_to_thread_list): Adjust add_thread call.
17729 (core_target_open): Adjust add_thread_silent and thread_count
17731 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17732 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17733 * event-top.c (async_disconnect): Pop targets from all inferiors.
17734 * exec.c (add_target_sections): Push exec target on all inferiors
17735 sharing the program space.
17736 (remove_target_sections): Remove the exec target from all
17737 inferiors sharing the program space.
17738 (exec_on_vfork): New.
17739 * exec.h (exec_on_vfork): Declare.
17740 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17742 (fbsd_nat_target::update_thread_list): Adjust.
17743 (fbsd_nat_target::resume): Adjust.
17744 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17746 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17747 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17748 get_thread_arch_regcache call.
17749 * fork-child.c (gdb_startup_inferior): Pass target down to
17750 startup_inferior and set_executing.
17751 * gdbthread.h (struct process_stratum_target): Forward declare.
17752 (add_thread, add_thread_silent, add_thread_with_info)
17753 (in_thread_list): Add process_stratum_target parameter.
17754 (find_thread_ptid(inferior*, ptid_t)): New overload.
17755 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17757 (all_threads()): Delete overload.
17758 (all_threads, all_non_exited_threads): Add process_stratum_target
17760 (all_threads_safe): Use brace initialization.
17761 (thread_count): Add process_stratum_target parameter.
17762 (set_resumed, set_running, set_stop_requested, set_executing)
17763 (threads_are_executing, finish_thread_state): Add
17764 process_stratum_target parameter.
17765 (switch_to_thread): Use is_current_thread.
17766 * i386-fbsd-tdep.c: Include "inferior.h".
17767 (i386fbsd_get_thread_local_address): Pass down target.
17768 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17769 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17770 have_inferiors check.
17771 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17772 (inf_ptrace_target::attach): Adjust.
17773 * infcall.c (run_inferior_call): Adjust.
17774 * infcmd.c (run_command_1): Pass target to
17775 scoped_finish_thread_state.
17776 (proceed_thread_callback): Skip inferiors with no execution.
17777 (continue_command): Rename 'all_threads' local to avoid hiding
17778 'all_threads' function. Adjust get_last_target_status call.
17779 (prepare_one_step): Adjust set_running call.
17780 (signal_command): Use user_visible_resume_target. Compare thread
17781 pointers instead of inferior_ptid.
17782 (info_program_command): Adjust to pass down target.
17783 (attach_command): Mark target's 'thread_executing' flag.
17784 (stop_current_target_threads_ns): New, factored out from ...
17785 (interrupt_target_1): ... this. Switch inferior before making
17788 (struct all_inferiors_iterator, struct all_inferiors_range)
17789 (struct all_inferiors_safe_range)
17790 (struct all_non_exited_inferiors_range): Filter on
17791 process_stratum_target too. Remove explicit.
17792 * inferior.c (inferior::inferior): Push dummy target on target
17794 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17795 Add process_stratum_target parameter, and pass it down.
17796 (have_live_inferiors): Adjust.
17797 (switch_to_inferior_and_push_target): New.
17798 (add_inferior_command, clone_inferior_command): Handle
17799 "-no-connection" parameter. Use
17800 switch_to_inferior_and_push_target.
17801 (_initialize_inferior): Mention "-no-connection" option in
17802 the help of "add-inferior" and "clone-inferior" commands.
17803 * inferior.h: Include "process-stratum-target.h".
17804 (interrupt_target_1): Use bool.
17805 (struct inferior) <push_target, unpush_target, target_is_pushed,
17806 find_target_beneath, top_target, process_target, target_at,
17808 (discard_all_inferiors): Delete.
17809 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17810 (all_inferiors, all_non_exited_inferiors): Add
17811 process_stratum_target parameter.
17812 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17813 (target_last_proc_target): New global.
17814 (follow_fork_inferior): Push target on new inferior. Pass target
17815 to add_thread_silent. Call exec_on_vfork. Handle target's
17817 (follow_fork): Adjust get_last_target_status call. Also consider
17819 (follow_exec): Push target on new inferior.
17820 (struct execution_control_state) <target>: New field.
17821 (user_visible_resume_target): New.
17822 (do_target_resume): Call target_async.
17823 (resume_1): Set target's threads_executing flag. Consider resume
17825 (commit_resume_all_targets): New.
17826 (proceed): Also consider resume target. Skip threads of inferiors
17827 with no execution. Commit resumtion in all targets.
17828 (start_remote): Pass current inferior to wait_for_inferior.
17829 (infrun_thread_stop_requested): Consider target as well. Pass
17830 thread_info pointer to clear_inline_frame_state instead of ptid.
17831 (infrun_thread_thread_exit): Consider target as well.
17832 (random_pending_event_thread): New inferior parameter. Use it.
17833 (do_target_wait): Rename to ...
17834 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17836 (threads_are_resumed_pending_p, do_target_wait): New.
17837 (prepare_for_detach): Adjust calls.
17838 (wait_for_inferior): New inferior parameter. Handle it. Use
17839 do_target_wait_1 instead of do_target_wait.
17840 (fetch_inferior_event): Adjust. Switch to representative
17841 inferior. Pass target down.
17842 (set_last_target_status): Add process_stratum_target parameter.
17843 Save target in global.
17844 (get_last_target_status): Add process_stratum_target parameter and
17846 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17847 (context_switch): Check inferior_ptid == null_ptid before calling
17849 (get_inferior_stop_soon): Pass down target.
17850 (wait_one): Rename to ...
17851 (poll_one_curr_target): ... this.
17852 (struct wait_one_event): New.
17854 (stop_all_threads): Adjust.
17855 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17857 (switch_back_to_stepped_thread): Also consider target.
17858 (print_stop_event): Update.
17859 (normal_stop): Update. Also consider the resume target.
17860 * infrun.h (wait_for_inferior): Remove declaration.
17861 (user_visible_resume_target): New declaration.
17862 (get_last_target_status, set_last_target_status): New
17863 process_stratum_target parameter.
17864 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17865 process_stratum_target parameter, and use it.
17866 (clear_inline_frame_state (thread_info*)): New.
17867 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17868 process_stratum_target parameter.
17869 (clear_inline_frame_state (thread_info*)): Declare.
17870 * linux-fork.c (delete_checkpoint_command): Pass target down to
17872 (checkpoint_command): Adjust.
17873 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17874 instead of just tweaking inferior_ptid.
17875 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17876 (exit_lwp): Pass target down to find_thread_ptid.
17877 (attach_proc_task_lwp_callback): Pass target down to
17878 add_thread/set_running/set_executing.
17879 (linux_nat_target::attach): Pass target down to
17880 thread_change_ptid.
17881 (get_detach_signal): Pass target down to find_thread_ptid.
17882 Consider last target status's target.
17883 (linux_resume_one_lwp_throw, resume_lwp)
17884 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17885 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17886 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17887 (linux_nat_target::async_wait_fd): New.
17888 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17890 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17891 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17892 * linux-thread-db.c (struct thread_db_info::process_target): New
17894 (add_thread_db_info): Save target.
17895 (get_thread_db_info): New process_stratum_target parameter. Also
17897 (delete_thread_db_info): New process_stratum_target parameter.
17899 (thread_from_lwp): Adjust to pass down target.
17900 (thread_db_notice_clone): Pass down target.
17901 (check_thread_db_callback): Pass down target.
17902 (try_thread_db_load_1): Always push the thread_db target.
17903 (try_thread_db_load, record_thread): Pass target down.
17904 (thread_db_target::detach): Pass target down. Always unpush the
17906 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17907 target down. Always unpush the thread_db target.
17908 (find_new_threads_callback, thread_db_find_new_threads_2)
17909 (thread_db_target::update_thread_list): Pass target down.
17910 (thread_db_target::pid_to_str): Pass current inferior down.
17911 (thread_db_target::get_thread_local_address): Pass target down.
17912 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17914 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17915 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17916 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17917 (procfs_init_inferior): Rename to ...
17918 (procfs_target::procfs_init_inferior): ... this and adjust.
17919 (procfs_target::create_inferior, procfs_notice_thread)
17920 (procfs_do_thread_registers): Adjust.
17921 * ppc-fbsd-tdep.c: Include "inferior.h".
17922 (ppcfbsd_get_thread_local_address): Pass down target.
17923 * proc-service.c (ps_xfer_memory): Switch current inferior and
17924 program space as well.
17925 (get_ps_regcache): Pass target down.
17926 * process-stratum-target.c
17927 (process_stratum_target::thread_address_space)
17928 (process_stratum_target::thread_architecture): Pass target down.
17929 * process-stratum-target.h
17930 (process_stratum_target::threads_executing): New field.
17931 (as_process_stratum_target): New.
17932 * ravenscar-thread.c
17933 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17934 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17936 * record-btrace.c (record_btrace_target::info_record): Adjust.
17937 (record_btrace_target::record_method)
17938 (record_btrace_target::record_is_replaying)
17939 (record_btrace_target::fetch_registers)
17940 (get_thread_current_frame_id, record_btrace_target::resume)
17941 (record_btrace_target::wait, record_btrace_target::stop): Pass
17943 * record-full.c (record_full_wait_1): Switch to event thread.
17945 * regcache.c (regcache::regcache)
17946 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17947 process_stratum_target parameter and handle it.
17948 (current_thread_target): New global.
17949 (get_thread_regcache): Add process_stratum_target parameter and
17950 handle it. Switch inferior before calling target method.
17951 (get_thread_regcache): Pass target down.
17952 (get_thread_regcache_for_ptid): Pass target down.
17953 (registers_changed_ptid): Add process_stratum_target parameter and
17955 (registers_changed_thread, registers_changed): Pass target down.
17956 (test_get_thread_arch_aspace_regcache): New.
17957 (current_regcache_test): Define a couple local test_target_ops
17958 instances and use them for testing.
17959 (readwrite_regcache): Pass process_stratum_target parameter.
17960 (cooked_read_test, cooked_write_test): Pass mock_target down.
17961 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17962 (get_thread_arch_aspace_regcache): Add process_stratum_target
17964 (regcache::target): New method.
17965 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17966 (regcache::registers_changed_ptid): Add process_stratum_target
17968 (regcache::m_target): New field.
17969 (registers_changed_ptid): Add process_stratum_target parameter.
17970 * remote.c (remote_state::supports_vCont_probed): New field.
17971 (remote_target::async_wait_fd): New method.
17972 (remote_unpush_and_throw): Add remote_target parameter.
17973 (get_current_remote_target): Adjust.
17974 (remote_target::remote_add_inferior): Push target.
17975 (remote_target::remote_add_thread)
17976 (remote_target::remote_notice_new_inferior)
17977 (get_remote_thread_info): Pass target down.
17978 (remote_target::update_thread_list): Skip threads of inferiors
17979 bound to other targets. (remote_target::close): Don't discard
17980 inferiors. (remote_target::add_current_inferior_and_thread)
17981 (remote_target::process_initial_stop_replies)
17982 (remote_target::start_remote)
17983 (remote_target::remote_serial_quit_handler): Pass down target.
17984 (remote_target::remote_unpush_target): New remote_target
17985 parameter. Unpush the target from all inferiors.
17986 (remote_target::remote_unpush_and_throw): New remote_target
17987 parameter. Pass it down.
17988 (remote_target::open_1): Check whether the current inferior has
17989 execution instead of checking whether any inferior is live. Pass
17991 (remote_target::remote_detach_1): Pass down target. Use
17992 remote_unpush_target.
17993 (extended_remote_target::attach): Pass down target.
17994 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17995 (remote_target::append_resumption): Pass down target.
17996 (remote_target::append_pending_thread_resumptions)
17997 (remote_target::remote_resume_with_hc, remote_target::resume)
17998 (remote_target::commit_resume): Pass down target.
17999 (remote_target::remote_stop_ns): Check supports_vCont_probed.
18000 (remote_target::interrupt_query)
18001 (remote_target::remove_new_fork_children)
18002 (remote_target::check_pending_events_prevent_wildcard_vcont)
18003 (remote_target::remote_parse_stop_reply)
18004 (remote_target::process_stop_reply): Pass down target.
18005 (first_remote_resumed_thread): New remote_target parameter. Pass
18007 (remote_target::wait_as): Pass down target.
18008 (unpush_and_perror): New remote_target parameter. Pass it down.
18009 (remote_target::readchar, remote_target::remote_serial_write)
18010 (remote_target::getpkt_or_notif_sane_1)
18011 (remote_target::kill_new_fork_children, remote_target::kill): Pass
18013 (remote_target::mourn_inferior): Pass down target. Use
18014 remote_unpush_target.
18015 (remote_target::core_of_thread)
18016 (remote_target::remote_btrace_maybe_reopen): Pass down target.
18017 (remote_target::pid_to_exec_file)
18018 (remote_target::thread_handle_to_thread_info): Pass down target.
18019 (remote_target::async_wait_fd): New.
18020 * riscv-fbsd-tdep.c: Include "inferior.h".
18021 (riscv_fbsd_get_thread_local_address): Pass down target.
18022 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
18023 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
18024 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
18026 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
18027 * solib-svr4.c (enable_break): Pass down target.
18028 * spu-multiarch.c (parse_spufs_run): Pass down target.
18029 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
18030 * target-delegates.c: Regenerate.
18031 * target.c (g_target_stack): Delete.
18032 (current_top_target): Return the current inferior's top target.
18033 (target_has_execution_1): Refer to the passed-in inferior's top
18035 (target_supports_terminal_ours): Check whether the initial
18036 inferior was already created.
18037 (decref_target): New.
18038 (target_stack::push): Incref/decref the target.
18039 (push_target, push_target, unpush_target): Adjust.
18040 (target_stack::unpush): Defref target.
18041 (target_is_pushed): Return bool. Adjust to refer to the current
18042 inferior's target stack.
18043 (dispose_inferior): Delete, and inline parts ...
18044 (target_preopen): ... here. Only dispose of the current inferior.
18045 (target_detach): Hold strong target reference while detaching.
18047 (target_thread_name): Add assertion.
18048 (target_resume): Pass down target.
18049 (target_ops::beneath, find_target_at): Adjust to refer to the
18050 current inferior's target stack.
18051 (get_dummy_target): New.
18052 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
18053 has a thread running.
18054 (initialize_targets): Rename to ...
18055 (_initialize_target): ... this.
18056 * target.h: Include "gdbsupport/refcounted-object.h".
18057 (struct target_ops): Inherit refcounted_object.
18058 (target_ops::shortname, target_ops::longname): Make const.
18059 (target_ops::async_wait_fd): New method.
18060 (decref_target): Declare.
18061 (struct target_ops_ref_policy): New.
18062 (target_ops_ref): New typedef.
18063 (get_dummy_target): Declare function.
18064 (target_is_pushed): Return bool.
18065 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
18066 (all_matching_threads_iterator::all_matching_threads_iterator):
18067 Handle filter target.
18068 * thread-iter.h (struct all_matching_threads_iterator, struct
18069 all_matching_threads_range, class all_non_exited_threads_range):
18070 Filter by target too. Remove explicit.
18071 * thread.c (threads_executing): Delete.
18072 (inferior_thread): Pass down current inferior.
18073 (clear_thread_inferior_resources): Pass down thread pointer
18075 (add_thread_silent, add_thread_with_info, add_thread): Add
18076 process_stratum_target parameter. Use it for thread and inferior
18078 (is_current_thread): New.
18079 (thread_info::deletable): Use it.
18080 (find_thread_ptid, thread_count, in_thread_list)
18081 (thread_change_ptid, set_resumed, set_running): New
18082 process_stratum_target parameter. Pass it down.
18083 (set_executing): New process_stratum_target parameter. Pass it
18084 down. Adjust reference to 'threads_executing'.
18085 (threads_are_executing): New process_stratum_target parameter.
18086 Adjust reference to 'threads_executing'.
18087 (set_stop_requested, finish_thread_state): New
18088 process_stratum_target parameter. Pass it down.
18089 (switch_to_thread): Also match inferior.
18090 (switch_to_thread): New process_stratum_target parameter. Pass it
18092 (update_threads_executing): Reimplement.
18093 * top.c (quit_force): Pop targets from all inferior.
18094 (gdb_init): Don't call initialize_targets.
18095 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
18097 (windows_add_thread, windows_delete_thread): Adjust.
18098 (get_windows_debug_event): Rename to ...
18099 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
18100 * tracefile-tfile.c (tfile_target_open): Pass down target.
18101 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
18103 (switch_to_thread): Add process_stratum_target parameter.
18104 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
18106 (mi_on_resume): Pass target down.
18107 * nat/fork-inferior.c (startup_inferior): Add
18108 process_stratum_target parameter. Pass it down.
18109 * nat/fork-inferior.h (startup_inferior): Add
18110 process_stratum_target parameter.
18111 * python/py-threadevent.c (py_get_event_thread): Pass target down.
18113 2020-01-10 Pedro Alves <palves@redhat.com>
18115 * remote.c (remote_target::start_remote): Don't set inferior_ptid
18116 directly. Instead find the first thread in the thread list and
18117 use switch_to_thread.
18119 2020-01-10 Pedro Alves <palves@redhat.com>
18121 * remote.c (remote_target::remote_add_inferior): Don't bind a
18122 process to the current inferior if the current inferior is already
18123 bound to a process.
18125 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
18126 Pedro Alves <palves@redhat.com>
18128 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
18129 If no process is specified, return null_ptid instead of
18131 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
18132 TARGET_WAITKIND_SIGNALLED with no pid.
18134 2020-01-10 Pedro Alves <palves@redhat.com>
18136 * remote.c (first_remote_resumed_thread): New.
18137 (remote_target::wait_as): Use it as default event_ptid instead of
18140 2020-01-10 Pedro Alves <palves@redhat.com>
18142 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
18144 2020-01-10 Pedro Alves <palves@redhat.com>
18146 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
18149 2020-01-10 Pedro Alves <palves@redhat.com>
18151 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
18152 ptid to get_last_target_status.
18153 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
18154 ptid to get_last_target_status.
18155 * infcmd.c (continue_command): Don't pass a target_waitstatus to
18156 get_last_target_status.
18157 (info_program_command): Don't pass a target_waitstatus to
18158 get_last_target_status.
18159 * infrun.c (init_wait_for_inferior): Use
18160 nullify_last_target_wait_ptid.
18161 (get_last_target_status): Handle nullptr arguments.
18162 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
18163 (print_stop_event): Don't pass a ptid to get_last_target_status.
18164 (normal_stop): Don't pass a ptid to get_last_target_status.
18165 * infrun.h (get_last_target_status, set_last_target_status): Move
18166 comments here and update.
18167 (nullify_last_target_wait_ptid): Declare.
18168 * linux-fork.c (fork_load_infrun_state): Remove local extern
18169 declaration of nullify_last_target_wait_ptid.
18170 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
18171 to get_last_target_status.
18173 2020-01-10 Pedro Alves <palves@redhat.com>
18175 * gdbthread.h (scoped_restore_current_thread)
18176 <dont_restore, restore, m_dont_restore>: Declare.
18177 * thread.c (thread_alive): Add assertion. Return bool.
18178 (switch_to_thread_if_alive): New.
18179 (prune_threads): Switch inferior/thread.
18180 (print_thread_info_1): Switch thread before calling target methods.
18181 (scoped_restore_current_thread::restore): New, factored out from
18183 (scoped_restore_current_thread::~scoped_restore_current_thread):
18185 (scoped_restore_current_thread::scoped_restore_current_thread):
18187 (thread_apply_all_command, thread_select): Use
18188 switch_to_thread_if_alive.
18189 * infrun.c (proceed, restart_threads, handle_signal_stop)
18190 (switch_back_to_stepped_thread): Switch current thread before
18191 calling target methods.
18193 2020-01-10 Pedro Alves <palves@redhat.com>
18195 * inferior.c (switch_to_inferior_no_thread): New function,
18196 factored out from ...
18197 (inferior_command): ... here.
18198 * inferior.h (switch_to_inferior_no_thread): Declare.
18199 * mi/mi-main.c (run_one_inferior): Use
18200 switch_to_inferior_no_thread.
18202 2020-01-10 Pedro Alves <palves@redhat.com>
18204 * infcmd.c (kill_command): Remove dead code.
18206 2020-01-10 Pedro Alves <palves@redhat.com>
18208 * remote.c (remote_target::mourn_inferior): No longer check
18209 whether the target is running.
18211 2020-01-10 Pedro Alves <palves@redhat.com>
18213 * corelow.c (core_target::has_execution): Change parameter type to
18215 * inferior.c (number_of_live_inferiors): Use
18216 inferior::has_execution instead of target_has_execution_1.
18217 * inferior.h (inferior::has_execution): New.
18218 * linux-thread-db.c (thread_db_target::update_thread_list): Use
18219 inferior::has_execution instead of target_has_execution_1.
18220 * process-stratum-target.c
18221 (process_stratum_target::has_execution): Change parameter type to
18222 inferior pointer. Check the inferior's PID instead of
18224 * process-stratum-target.h
18225 (process_stratum_target::has_execution): Change parameter type to
18227 * record-full.c (record_full_core_target::has_execution): Change
18228 parameter type to inferior pointer.
18229 * target.c (target_has_execution_1): Change parameter type to
18231 (target_has_execution_current): Adjust.
18232 * target.h (target_ops::has_execution): Change parameter type to
18234 (target_has_execution_1): Change parameter type to inferior
18235 pointer. Change return type to bool.
18236 * tracefile.h (tracefile_target::has_execution): Change parameter
18237 type to inferior pointer.
18239 2020-01-10 Pedro Alves <palves@redhat.com>
18241 * exceptions.c (print_flush): Remove current_top_target() check.
18243 2020-01-10 Pedro Alves <palves@redhat.com>
18245 * remote.c (show_remote_exec_file): Show the current inferior's
18246 exec-file instead of the command variable's value.
18248 2020-01-10 Pedro Alves <palves@redhat.com>
18250 * record-full.c (record_full_resume_ptid): New global.
18251 (record_full_target::resume): Set it.
18252 (record_full_wait_1): Use record_full_resume_ptid instead of
18255 2020-01-10 Pedro Alves <palves@redhat.com>
18257 * gdbthread.h (scoped_restore_current_thread)
18258 <dont_restore, restore, m_dont_restore>: Declare.
18259 * thread.c (thread_alive): Add assertion. Return bool.
18260 (switch_to_thread_if_alive): New.
18261 (prune_threads): Switch inferior/thread.
18262 (print_thread_info_1): Switch thread before calling target methods.
18263 (scoped_restore_current_thread::restore): New, factored out from
18265 (scoped_restore_current_thread::~scoped_restore_current_thread):
18267 (scoped_restore_current_thread::scoped_restore_current_thread):
18269 (thread_apply_all_command, thread_select): Use
18270 switch_to_thread_if_alive.
18272 2020-01-10 George Barrett <bob@bob131.so>
18274 * stap-probe.c (stap_modify_semaphore): Don't check for null
18276 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18277 for null semaphores.
18279 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18281 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18282 all source windows, and maintain horizontal scroll status while
18285 2020-01-09 Tom Tromey <tom@tromey.com>
18288 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18289 update_source_window, not print_source_lines.
18291 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18293 * tui/tui.c (tui_enable): Register tui hooks after calling
18296 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18298 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18300 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
18302 * thread.c (print_thread_info_1): Fix indentation.
18304 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18306 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18307 unique_xmalloc_ptr outside the if to always free the demangled name.
18309 2020-01-08 Tom Tromey <tromey@adacore.com>
18311 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18312 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18313 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18314 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18316 (section_offsets): New typedef.
18317 * symtab.c (fixup_section, get_msymbol_address): Update.
18318 * symmisc.c (dump_msymbols): Update.
18319 * symfile.h (relative_addr_info_to_section_offsets)
18320 (symfile_map_offsets_to_segments): Update.
18321 * symfile.c (build_section_addr_info_from_objfile)
18322 (init_objfile_sect_indices): Update.
18323 (struct place_section_arg): Change type of "offsets".
18324 (place_section): Update.
18325 (relative_addr_info_to_section_offsets): Change type of
18326 "section_offsets". Remove "num_sections" parameter.
18327 (default_symfile_offsets, syms_from_objfile_1)
18328 (set_objfile_default_section_offset): Update.
18329 (reread_symbols): No need to preserve section offsets by hand.
18330 (symfile_map_offsets_to_segments): Change type of "offsets".
18331 * stap-probe.c (relocate_address): Update.
18332 * stabsread.h (process_one_symbol): Update.
18333 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18334 (solib_target_relocate_section_addresses): Update.
18335 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18337 * solib-frv.c (frv_relocate_main_executable): Update.
18338 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18339 * solib-aix.c (solib_aix_get_section_offsets): Change return
18341 (solib_aix_solib_create_inferior_hook): Update.
18342 * remote.c (remote_target::get_offsets): Update.
18343 * psymtab.c (find_pc_sect_psymtab): Update.
18344 * psympriv.h (struct partial_symbol) <address, text_low,
18345 text_high>: Update.
18346 * objfiles.h (obj_section_offset): Update.
18347 (struct objfile) <section_offsets>: Change type.
18348 <num_sections>: Remove.
18349 (objfile_relocate): Update.
18350 * objfiles.c (entry_point_address_query): Update
18351 (relocate_one_symbol): Change type of "section_offsets".
18352 (objfile_relocate1, objfile_relocate1): Change type of
18354 (objfile_rebase1): Update.
18355 * mipsread.c (mipscoff_symfile_read): Update.
18356 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18358 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18359 (parse_external, psymtab_to_symtab_1): Update.
18360 * machoread.c (macho_symfile_offsets): Update.
18361 * ia64-tdep.c (ia64_find_unwind_table): Update.
18362 * hppa-tdep.c (read_unwind_info): Update.
18363 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18364 * dwarf2read.c (create_addrmap_from_index)
18365 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18366 (process_psymtab_comp_unit_reader, add_partial_symbol)
18367 (add_partial_subprogram, process_full_comp_unit)
18368 (read_file_scope, read_func_scope, read_lexical_block_scope)
18369 (read_call_site_scope, dwarf2_rnglists_process)
18370 (dwarf2_ranges_process, dwarf2_ranges_read)
18371 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18372 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18374 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18376 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18377 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18378 (process_one_symbol): Change type of "section_offsets".
18379 * ctfread.c (get_objfile_text_range): Update.
18380 * coffread.c (coff_symtab_read, enter_linenos)
18381 (process_coff_symbol): Update.
18382 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18383 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18385 2020-01-08 Tom Tromey <tromey@adacore.com>
18387 * dwarf2read.c (parse_macro_definition): Use std::string.
18388 (parse_macro_definition): Likewise.
18390 2020-01-08 Tom Tromey <tromey@adacore.com>
18392 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18393 (ATTR_ALLOC_CHUNK): Remove.
18395 2020-01-08 Tom Tromey <tromey@adacore.com>
18397 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18399 2020-01-08 Tom Tromey <tromey@adacore.com>
18401 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18402 (dwarf2_compute_name, open_dwo_file): Likewise.
18403 (process_enumeration_scope): Use std::vector.
18404 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18405 (partial_die_info::fixup, dwarf2_start_subfile)
18406 (guess_full_die_structure_name, dwarf2_name): Likewise.
18407 (determine_prefix): Update.
18408 (guess_full_die_structure_name): Make return type const.
18409 (partial_die_full_name): Return unique_xmalloc_ptr.
18410 (DW_FIELD_ALLOC_CHUNK): Remove.
18412 2020-01-07 Tom Tromey <tromey@adacore.com>
18415 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18417 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18419 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18421 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18423 * stack.c (print_frame_info): Move disassemble_next_line code
18424 inside source_print block.
18426 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18428 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18429 gdb/signals.h, as we are now using native signal symbols.
18431 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18433 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18434 overflow by an early check of content vs threshold.
18435 * tui/tui-source.c (tui_source_window::line_is_displayed):
18438 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18440 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18442 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18444 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18445 export table if no section contains it's RVA.
18447 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18449 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18451 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18453 * source.c (print_source_lines_base): Set last_line_listed.
18455 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18457 * tui/tui-disasm.c: Remove trailing spaces.
18459 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18460 Pedro Alves <palves@redhat.com>
18462 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18463 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18464 (windows_gdb_signal_to_target): New function, uses the above
18465 enumeration to convert GDB internal signal codes to equivalent
18467 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18468 * windows-nat.c: Include "gdb_wait.h".
18469 (get_windows_debug_event): Extract the fatal exception from the
18470 exit status and convert to the equivalent Posix signal number.
18471 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18472 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18473 * gdbsupport/gdb_wait.c: New file, implements
18474 windows_status_to_termsig.
18475 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18476 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18478 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18480 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18483 2020-01-05 Luis Machado <luis.machado@linaro.org>
18485 * aarch64-linux-nat.c
18486 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18487 and bfd_mach_aarch64.
18489 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18491 * ui-file.c (stdio_file::can_emit_style_escape)
18492 (tee_file::can_emit_style_escape): Ensure style is used also on
18493 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18495 * main.c (set_gdb_data_directory): Use file style to output the
18496 warning that the given pathname is not a directory.
18497 * top.c (show_history_filename, gdb_safe_append_history)
18498 (show_gdb_datadir): Use file style.
18500 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18502 * solib-target.c (struct lm_info_target):
18503 Change offsets to be a unique_xmalloc_ptr.
18504 (solib_target_relocate_section_addresses): Update.
18506 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18508 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18510 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18512 * MAINTAINERS (Write After Approval): Add myself.
18514 2020-01-02 Luis Machado <luis.machado@linaro.org>
18516 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18517 Cell BE architecture.
18518 * target.h (struct target_ops) <thread_architecture>: Likewise.
18520 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18522 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18524 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18526 * MAINTAINERS (Write After Approval): Add myself.
18528 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18530 * gdbarch.sh: Update copyright year range of generated files.
18532 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18534 Update copyright year range in all GDB files.
18536 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18538 * copyright.py: Convert to Python 3.
18540 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18542 * copyright.py: Adapt after move of gnulib directory from gdb
18543 directory to toplevel directory.
18545 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18547 * copyright.py (main): Exit if run from the wrong directory.
18549 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18551 * top.c (print_gdb_version): Change copyright year to 2020.
18553 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18555 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18557 For older changes see ChangeLog-2019.
18563 version-control: never