1 2020-12-22 Shahab Vahedi <shahab@synopsys.com>
3 * frame.c: Remove trailing white spaces.
6 2020-12-22 Shahab Vahedi <shahab@synopsys.com>
8 * arc-linux-tdep.c: Replace "regnum" with "REGNUM" in comments.
10 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
12 * Makefile.in (ALLDEPFILES): Add arc-linux-nat.c.
13 * configure.host (host to gdb names): Add arc*-*-linux*.
14 * configure.nat (gdb_host_cpu): Add arc.
15 * arc-linux-nat.c: New.
17 2020-12-22 Shahab Vahedi <shahab@synopsys.com>
19 * arc-linux-tdep.c (supply_register): New.
20 (arc_linux_supply_gregset, arc_linux_supply_v2_regset,
21 arc_linux_collect_v2_regset): Consider REGNUM.
23 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
25 * arc-linux-tdep.c (arc_linux_sc_reg_offsets): New static variable.
26 (arc_linux_is_sigtramp): New function.
27 (arc_linux_sigcontext_addr): Likewise.
28 (arc_linux_init_osabi): Use them.
30 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
32 * arc-tdep.c (arc_make_sigtramp_frame_cache): New function.
33 (arc_sigtramp_frame_this_id): Likewise.
34 (arc_sigtramp_frame_prev_register): Likewise.
35 (arc_sigtramp_frame_sniffer): Likewise.
36 (arc_siftramp_frame_unwind): New global variable.
37 (arc_gdbarch_init): Use sigtramp capabilities.
38 (arc_dump_tdep): Print sigtramp fields.
39 * arc-tdep.h (gdbarch_tdep): Add sigtramp fields.
41 2020-12-21 Tom Tromey <tom@tromey.com>
43 * expression.h (enum noside): Move earlier.
45 2020-12-21 Peter Waller <p@pwaller.net>
47 * interps.c (interpreter_exec_cmd): Restore streams pointers.
49 2020-12-21 Markus Metzger <markus.t.metzger@intel.com>
51 * record.c (require_record_target): Rephrase error message.
52 (info_record_command): Likewise.
54 2020-12-19 Hannes Domani <ssbssa@yahoo.de>
57 * gdbtypes.c (check_types_equal): Don't compare types of enum fields.
59 2020-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
61 * configure.ac: Move the static libs vs. source-highlight
62 error message to a better place.
63 * configure: Regenerate.
65 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
67 * gdb-gdb.py.in: Fix main_type field name.
69 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
71 * python/py-value.c (valpy_format_string): Implement address keyword.
73 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
75 * python/py-type.c (typy_get_composite): Add TYPE_CODE_METHOD.
77 2020-12-18 Jameson Nash <vtjnash@gmail.com>
79 * coffread.c (linetab_offset): Change type to file_ptr.
80 (linetab_size): Likewise.
81 (enter_linenos): Change parameter type to file_ptr.
82 (init_lineno): Likewise.
83 (init_stringtab): Likewise.
84 (coff_symtab_read): Likewise.
85 (coff_symfile_read): Change variable types to file_ptr.
87 2020-12-17 Tom Tromey <tromey@adacore.com>
89 * printcmd.c (print_variable_and_value): Don't use n_spaces.
91 2020-12-17 Tom Tromey <tromey@adacore.com>
93 * gdbtypes.c (print_args, dump_fn_fieldlists, print_cplus_stuff)
94 (print_gnat_stuff, print_fixed_point_type_info)
95 (recursive_dump_type): Update.
96 * go32-nat.c (go32_sysinfo, display_descriptor): Update.
97 * c-typeprint.c (c_type_print_base_struct_union)
98 (c_type_print_base_1): Update.
99 * rust-lang.c (rust_internal_print_type): Update.
100 * f-typeprint.c (f_language::f_type_print_base): Update.
101 * utils.h (fprintfi_filtered, printfi_filtered): Remove.
102 * m2-typeprint.c (m2_record_fields): Update.
103 * p-typeprint.c (pascal_type_print_base): Update.
104 * compile/compile-loc2c.c (push, pushf, unary, binary)
105 (do_compile_dwarf_expr_to_c): Update.
106 * utils.c (fprintfi_filtered, printfi_filtered): Remove.
108 2020-12-16 Tom Tromey <tom@tromey.com>
110 * rust-exp.y (rust_lex_tests): Update.
111 * parser-defs.h (parser_state): Add void_p parameter.
112 <void_context_p>: New member.
113 * parse.c (parse_exp_in_context): Update.
114 * language.h (language_defn::post_parser): Remove void_context_p,
115 completing, tracker parameters. Add parser state.
116 * ada-lang.c (ada_language::post_parser): Update.
118 2020-12-16 Tom Tromey <tom@tromey.com>
120 * parse.c (parse_exp_1, parse_expression_for_completion): Update.
121 (parse_exp_in_context): Change void_context_p to bool.
122 * language.h (struct language_defn) <post_parser>: Change
123 void_context_p to bool.
124 * ada-lang.c (class ada_language) <post_parser>: Update.
126 2020-12-16 Tom Tromey <tom@tromey.com>
127 Tom Tromey <tromey@redhat.com>
128 Tom de Vries <tdevries@suse.de>
130 * utils.h (get_chars_per_line): Declare.
131 * utils.c (get_chars_per_line): New function.
132 (fputs_maybe_filtered): Handle '\r'.
133 * ui-out.h (ui_out::progress_meter): New class.
134 (ui_out::progress, ui_out::do_progress_start)
135 (ui_out::do_progress_notify, ui_out::do_progress_end): New
137 * ui-out.c (do_progress_end)
138 (make_cleanup_ui_out_progress_begin_end, ui_out_progress): New
140 * mi/mi-out.h (mi_ui_out::do_progress_start)
141 (mi_ui_out::do_progress_notify, mi_ui_out::do_progress_end): New
143 * cli-out.h (struct cli_ui_out) <do_progress_start,
144 do_progress_notify, do_progress_end>: New methods.
145 <enum meter_stat, struct cli_progress_info>: New.
146 <m_meters>: New member.
147 * cli-out.c (cli_ui_out::do_progress_start)
148 (cli_ui_out::do_progress_notify, cli_ui_out::do_progress_end): New
151 2020-12-16 Luis Machado <luis.machado@linaro.org>
153 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Record FPSR.
155 2020-12-16 Luis Machado <luis.machado@linaro.org>
157 * aarch64-linux-nat.c
158 (aarch64_linux_nat_target::stopped_data_address): Handle the TBI.
160 2020-12-15 Rae Kim <rae.kim@gmail.com>
162 * cli/cli-script.c (do_document_command): Rename from
163 document_command. Handle multi-line input.
164 (multi_line_command_p): Handle document_control.
165 (build_command_line): Likewise.
166 (execute_control_command_1): Likewise.
167 (process_next_line): Likewise.
168 (document_command): Call do_document_command.
169 * cli/cli-script.h (enum command_control_type): Add
172 2020-12-15 Tom Tromey <tom@tromey.com>
174 * stap-probe.c (stap_probe::evaluate_argument): Use
176 * dtrace-probe.c (dtrace_probe::evaluate_argument): Use
178 * value.h (evaluate_expression): Add expect_type parameter.
179 * objc-lang.c (print_object_command): Call evaluate_expression.
180 * eval.c (evaluate_expression): Add expect_type parameter.
182 2020-12-15 Tom Tromey <tom@tromey.com>
184 * varobj.c (varobj_create): Use first_opcode.
185 * value.c (init_if_undefined_command): Use first_opcode.
186 * typeprint.c (whatis_exp): Use first_opcode.
187 * tracepoint.c (validate_actionline): Use first_opcode.
188 (encode_actions_1): Use first_opcode.
189 * stack.c (return_command): Use first_opcode.
190 * expression.h (struct expression) <first_opcode>: New method.
191 * eval.c (parse_and_eval_type): Use first_opcode.
192 * dtrace-probe.c (dtrace_process_dof_probe): Use first_opcode.
194 2020-12-15 Tom Tromey <tom@tromey.com>
196 * f-lang.c (evaluate_subexp_f): Update.
197 * expression.h (evaluate_subexp_do_call): Update.
198 * eval.c (evaluate_subexp_do_call): Add callee parameter. Replace
199 nargs, argvec with array_view.
200 (evaluate_funcall): Update.
202 2020-12-15 Tom Tromey <tom@tromey.com>
204 * ada-lang.c (num_component_specs): Remove.
205 (assign_aggregate): Update.
206 (aggregate_assign_positional, aggregate_assign_from_choices)
207 (aggregate_assign_others, add_component_interval): Change
210 2020-12-15 Tom Tromey <tromey@adacore.com>
212 * cli/cli-decode.c (deprecated_cmd_warning): Use title style for
215 2020-12-14 Tom Tromey <tom@tromey.com>
217 * dtrace-probe.c (dtrace_process_dof_probe): Use value_type.
218 * typeprint.c (whatis_exp): Always use evaluate_type.
219 (maintenance_print_type): Likewise. Simplify.
221 2020-12-14 Tom Tromey <tromey@adacore.com>
223 * dictionary.c (language_defn::search_name_hash): Ignore "B".
224 * ada-lang.c (advance_wild_match): Ignore "B".
225 (full_match): Remove.
226 (do_full_match): Rewrite.
228 2020-12-14 Tom Tromey <tromey@adacore.com>
230 * ada-lang.c (get_var_value): Only consider exact matches.
232 2020-12-14 Tom Tromey <tromey@adacore.com>
234 * dwarf2/read.c (rewrite_array_type): New function.
235 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
237 2020-12-14 Tom Tromey <tromey@adacore.com>
239 * valarith.c (fixed_point_binop): Call error on division by zero.
241 2020-12-13 Tom Tromey <tom@tromey.com>
243 * gdbtypes.c (safe_parse_type): Make argument const.
244 * value.h (parse_and_eval_type): Make argument const.
245 * eval.c (parse_and_eval_type): Make argument const.
247 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
249 * NEWS: Mention new commands.
250 * target-dcache.c: Add 'cli/cli-cmds.h' include.
251 (maint_flush_dcache_command): New function.
252 (_initialize_target_dcache): Create new 'maint flush dcache'
255 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
257 * NEWS: Mention new commands, and that the old commands are now
259 * cli/cli-cmds.c (maintenanceflushlist): Define.
260 * cli/cli-cmds.h (maintenanceflushlist): Declare.
261 * maint.c (_initialize_maint_cmds): Initialise
262 maintenanceflushlist.
263 * regcache.c: Add 'cli/cli-cmds.h' include.
264 (reg_flush_command): Add header comment.
265 (_initialize_regcache): Create new 'maint flush register-cache'
266 command, make 'flushregs' an alias.
267 * symtab.c: Add 'cli/cli-cmds.h' include.
268 (_initialize_symtab): Create new 'maint flush symbol-cache'
269 command, make old command an alias.
271 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
273 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
274 result from lookup_cmd_composition_1, use the prefixes from both
275 the command and the alias instead.
276 (lookup_cmd_composition_1): Initial prefix command is the based on
277 the search list being passed in. Simplify the logic for tracking
278 the prefix command. Replace a use of alloca with a local
281 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
283 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
284 of NULL. Don't print message piece by piece, but sentence at a
285 time to allow internationalisation. Some whitespace cleanup.
287 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
290 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
291 deprecated_cmd_warning.
292 (deprecated_cmd_warning): Take extra parameter, call
293 lookup_cmd_composition_1 and pass new parameter through.
294 (lookup_cmd_composition_1): New function, takes implementation of
295 lookup_cmd_composition but with extra parameter.
296 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
298 * command.h (deprecated_cmd_warning): Add extra parameter to
300 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
302 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
304 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
305 command.h, add extra parameter, and use this to guard giving a
307 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
308 include argument names in declaration, add new argument.
309 * completer.c (complete_line_internal_1): Remove unneeded
310 brackets, pass extra argument to lookup_cmd_1.
312 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
314 * infrun.h (debug_infrun): Make a bool.
315 * infrun.c (debug_infrun): Make a bool.
316 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
319 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
321 * displaced-stepping.h (displaced_debug_printf): Use
322 debug_prefixed_printf_cond.
323 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
324 (dwarf_read_debug_printf_v): Likewise.
325 * infrun.h (infrun_debug_printf): Likewise.
326 * linux-nat.c (linux_nat_debug_printf): Likewise.
328 2020-12-11 Tom Tromey <tom@tromey.com>
330 * p-exp.y (intvar): Remove global.
331 (DOLLAR_VARIABLE): Change type.
333 (exp): Call write_dollar_variable here...
334 (yylex): ... not here.
335 * m2-exp.y (DOLLAR_VARIABLE): Change type.
336 (variable): Call write_dollar_variable here...
337 (yylex): ... not here.
338 * f-exp.y (DOLLAR_VARIABLE): Change type.
339 (exp): Call write_dollar_variable here...
340 (yylex): ... not here.
342 2020-12-11 Tom Tromey <tom@tromey.com>
344 * varobj.c (varobj_create): Update.
345 (install_variable): Return void.
347 2020-12-11 Tom Tromey <tom@tromey.com>
349 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
351 2020-12-11 Tom Tromey <tom@tromey.com>
353 * varobj.c (varobj_clear_saved_item): Remove.
354 (update_dynamic_varobj_children): Update.
355 (varobj::~varobj): Don't call varobj_clear_saved_item.
357 2020-12-11 Tom Tromey <tom@tromey.com>
359 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
360 (update_dynamic_varobj_children, create_child)
361 (create_child_with_value): Update.
362 * varobj-iter.h (struct varobj_item) <value>: Now a
364 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
366 2020-12-11 Tom Tromey <tom@tromey.com>
368 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
369 (varobj_get_iterator): Return unique_ptr.
370 (update_dynamic_varobj_children, install_visualizer)
371 (varobj::~varobj): Update.
372 * python/python-internal.h (py_varobj_get_iterator): Return
374 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
376 2020-12-11 Tom Tromey <tom@tromey.com>
378 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
379 (varobj_clear_saved_item, update_dynamic_varobj_children):
382 2020-12-11 Tom Tromey <tom@tromey.com>
384 * varobj.c (update_dynamic_varobj_children): Update.
385 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
386 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
388 (py_varobj_iter::next): Likewise.
390 2020-12-11 Tom Tromey <tom@tromey.com>
392 * varobj.c (update_dynamic_varobj_children, install_visualizer)
393 (varobj::~varobj): Update.
394 * varobj-iter.h (struct varobj_iter): Change to interface class.
395 (struct varobj_iter_ops): Remove.
396 (varobj_iter_next, varobj_iter_delete): Remove.
397 * python/py-varobj.c (struct py_varobj_iter): Derive from
398 varobj_iter. Add constructor, destructor. Rename members.
399 (py_varobj_iter::~py_varobj_iter): Rename from
401 (py_varobj_iter::next): Rename from py_varobj_iter_next.
402 (py_varobj_iter_ops): Remove.
403 (py_varobj_iter): Rename from py_varobj_iter_ctor.
404 (py_varobj_iter_new): Remove.
405 (py_varobj_get_iterator): Update.
407 2020-12-11 Tom Tromey <tom@tromey.com>
409 * varobj.h (all_root_varobjs): Take a function_view.
410 * varobj.c (all_root_varobjs): Take a function_view.
411 (varobj_invalidate_iter): Remove unused parameter.
412 (varobj_invalidate): Update.
413 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
414 (mi_cmd_var_update_iter): Change parameters.
416 2020-12-11 Tom Tromey <tom@tromey.com>
418 * varobj.c (struct varobj_root) <next>: Remove.
419 (struct vlist): Remove.
420 (rootlist): Now a std::list.
421 (install_variable, uninstall_variable, all_root_varobjs): Update.
423 2020-12-11 Tom Tromey <tom@tromey.com>
425 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
426 (varobj_table): Now htab_t.
427 (varobj_get_handle, install_variable, uninstall_variable):
429 (hash_varobj, eq_varobj_and_string): New functions.
430 (hash_varobj): Update.
432 2020-12-11 Tom Tromey <tom@tromey.com>
434 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
435 * ada-lang.c (check_status_exception): Update.
436 * breakpoint.c (free_bp_location): Remove.
437 (decref_bp_location): Use bp_location_ref_policy.
438 (bpstats::bpstats): Don't call incref_bp_location.
439 (bpstats::~bpstats): Remove.
440 (bpstats::bpstats): Update.
441 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
442 (bp_location::bp_location): Update.
443 (incref_bp_location): Remove.
444 (bkpt_print_it): Update.
445 * breakpoint.h (class bp_location): Derive from
447 (struct bpstats): Remove destructor.
448 <bp_location_at>: Now a bp_location_ref_ptr.
450 (bp_location_ref_ptr): New typedef.
451 (struct bp_location_ref_policy): New.
453 2020-12-11 Tom Tromey <tom@tromey.com>
455 * thread.c (class scoped_inc_dec_ref): Remove.
456 (tp_array_compar_ascending, tp_array_compar_descending): Change
458 (thread_apply_all_command): Use thread_info_ref.
460 2020-12-11 Tom Tromey <tom@tromey.com>
462 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
463 (stop_context::stop_context): Update.
464 (stop_context::~stop_context): Remove.
466 2020-12-11 Tom Tromey <tom@tromey.com>
468 * inferior.c (current_inferior_): Change type.
469 (current_inferior, set_current_inferior, initialize_inferiors):
472 2020-12-11 Tom Tromey <tom@tromey.com>
474 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
477 2020-12-11 Tom Tromey <tromey@adacore.com>
479 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
481 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
482 (read_atcb): Use cpu_id_offset.
484 2020-12-10 Kevin Buettner <kevinb@redhat.com>
486 * ada-lang.c (ada_fold_name): Fix off-by-one error.
488 2020-12-10 Luis Machado <luis.machado@linaro.org>
490 * breakpoint.c (should_be_inserted): Don't output newline.
492 2020-12-10 Luis Machado <luis.machado@linaro.org>
494 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
495 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
496 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
497 * arch/aarch64.h: ... here.
498 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
499 (aarch64_maybe_swab128): New function.
500 (aarch64_sve_regs_copy_to_reg_buf)
501 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
502 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
504 (TF_REG_VALUE_BYTES): New enum value.
505 (trad_frame_value_bytes_p): New function.
506 (trad_frame_set_value_bytes): New function.
507 (trad_frame_set_reg_value_bytes): New function.
508 (trad_frame_get_prev_register): Handle register values saved as bytes.
509 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
510 (struct trad_frame_saved_reg) <data>: New field.
511 (trad_frame_set_value_bytes): New prototype.
512 (trad_frame_value_bytes_p): New prototype.
514 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
516 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
517 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
518 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
520 2020-12-09 Tom Tromey <tromey@adacore.com>
522 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
524 2020-12-09 Tom Tromey <tromey@adacore.com>
526 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
527 and "denominator" to gdb_mpz. Handle block forms.
528 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
529 "denominator" to gdb_mpz.
530 (finish_fixed_point_type): Update.
531 (has_zero_over_zero_small_attribute): Update.
533 2020-12-09 Tom Tromey <tromey@adacore.com>
535 * expprint.c (op_name): Update.
536 * expression.h (enum exp_opcode): Update.
537 * std-operator.def: Add more opcodes.
538 * ada-operator.def, fortran-operator.def: Remove, moving contents
539 into std-operator.def.
541 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
543 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
544 Return {} instead of false.
545 (get_discrete_bounds): Compute high bound only if low bound is
548 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
551 * gdbtypes.c (get_discrete_low_bound): Make non-static.
552 (get_discrete_high_bound): Make non-static.
553 * gdbtypes.h (get_discrete_low_bound): New declaration.
554 (get_discrete_high_bound): New declaration.
555 * valarith.c (value_subscript): Only fetch high bound if
558 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
560 * gdbtypes.c (get_discrete_bounds): Implement with
561 get_discrete_low_bound and get_discrete_high_bound.
562 (get_discrete_low_bound): New.
563 (get_discrete_high_bound): New.
565 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
567 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
569 * gdbtypes.c (get_discrete_bounds): Return bool.
571 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
573 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
574 (ada_value_slice): Adjust.
576 * gdbtypes.c (get_discrete_bounds): Adjust.
577 (discrete_position): Return optional.
578 * gdbtypes.h (discrete_position): Return optional.
580 2020-12-07 Tom Tromey <tromey@adacore.com>
582 * maint.c (_initialize_maint_cmds): Use expression command
583 completer for "maint print type".
585 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
587 * completer.c (complete_explicit_location): Also add keywords
588 that start with '-' to the completion list.
590 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
592 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
593 keyword may be followed by any keyword.
594 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
595 'toklen' in the case for "-force-condition".
597 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
599 * main.c (catch_command_errors): Add a flag parameter; invoke
600 `bpstat_do_actions` if the flag is set.
601 (execute_cmdargs): Update a call to `catch_command_errors`.
603 2020-12-07 Tom de Vries <tdevries@suse.de>
605 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
607 2020-12-06 Tom Tromey <tom@tromey.com>
610 * ada-lang.c (replace_operator_with_call): Rewrite.
612 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
615 * s390-tdep.h (op_bc): Correct BC opcode value.
617 2020-12-06 Joel Brobecker <brobecker@adacore.com>
619 * gmp-utils.h (gdb_mpz::safe_export): New private method.
620 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
621 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
622 (gdb_mpz::safe_export): New method.
623 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
624 Update function description.
625 (check_as_integer_raises_out_of_range_error): New function.
626 (gdb_mpz_as_integer_out_of_range): New function.
627 (_initialize_gmp_utils_selftests): Register
628 gdb_mpz_as_integer_out_of_range as a selftest.
630 2020-12-05 Joel Brobecker <brobecker@adacore.com>
632 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
634 (gdb_mpz::write): Likewise.
636 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
638 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
639 number of displaced step buffers.
641 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
643 * displaced-stepping.h (struct displaced_step_buffer): Rename
645 (struct displaced_step_buffers): ... this.
646 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
647 <struct displaced_step_buffer>: New inner class.
649 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
651 (displaced_step_buffers::prepare): ... this, adjust for multiple
653 (displaced_step_buffer::finish): Rename to...
654 (displaced_step_buffers::finish): ... this, adjust for multiple
656 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
657 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
658 adjust for multiple buffers.
659 (displaced_step_buffer::restore_in_ptid): Rename to...
660 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
662 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
663 for num_disp_step_buffers.
664 * linux-tdep.c (struct linux_gdbarch_data)
665 <num_disp_step_buffers>: New field.
666 (struct linux_info) <disp_step_buf>: Rename to...
667 <disp_step_bufs>: ... this, change type to
668 displaced_step_buffers.
669 (linux_displaced_step_prepare): Use
670 linux_gdbarch_data::num_disp_step_buffers to create that number
672 (linux_displaced_step_finish): Adjust.
673 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
674 (linux_displaced_step_restore_all_in_ptid): Adjust.
675 (linux_init_abi): Change supports_displaced_step parameter for
676 num_disp_step_buffers, save it in linux_gdbarch_data.
677 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
678 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
679 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
680 supports_displaced_step parameter for num_disp_step_buffers.
681 (amd64_linux_init_abi): Adjust.
682 (amd64_x32_linux_init_abi): Adjust.
683 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
684 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
685 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
686 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
687 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
688 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
689 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
690 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
691 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
692 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
693 * m68k-linux-tdep.c (m68k_linux_init_abi):
694 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
695 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
696 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
697 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
698 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
699 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
700 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
701 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
702 Change type to displaced_step_buffers.
703 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
704 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
705 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
706 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
707 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
708 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
709 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
711 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
713 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
715 (_initialize_linux_tdep): Register pre-init gdb data instead of
718 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
720 * displaced-stepping.h (struct
721 displaced_step_copy_insn_closure): Adjust comments.
722 (struct displaced_step_inferior_state) <step_thread,
723 step_gdbarch, step_closure, step_original, step_copy,
724 step_saved_copy>: Remove fields.
725 (struct displaced_step_thread_state): New.
726 (struct displaced_step_buffer): New.
727 * displaced-stepping.c (displaced_step_buffer::prepare): New.
728 (write_memory_ptid): Move from infrun.c.
729 (displaced_step_instruction_executed_successfully): New,
730 factored out of displaced_step_finish.
731 (displaced_step_buffer::finish): New.
732 (displaced_step_buffer::copy_insn_closure_by_addr): New.
733 (displaced_step_buffer::restore_in_ptid): New.
734 * gdbarch.sh (displaced_step_location): Remove.
735 (displaced_step_prepare, displaced_step_finish,
736 displaced_step_copy_insn_closure_by_addr,
737 displaced_step_restore_all_in_ptid): New.
738 * gdbarch.c: Re-generate.
739 * gdbarch.h: Re-generate.
740 * gdbthread.h (class thread_info) <displaced_step_state>: New
742 (thread_step_over_chain_remove): New declaration.
743 (thread_step_over_chain_next): New declaration.
744 (thread_step_over_chain_length): New declaration.
745 * thread.c (thread_step_over_chain_remove): Make non-static.
746 (thread_step_over_chain_next): New.
747 (global_thread_step_over_chain_next): Use
748 thread_step_over_chain_next.
749 (thread_step_over_chain_length): New.
750 (global_thread_step_over_chain_enqueue): Add debug print.
751 (global_thread_step_over_chain_remove): Add debug print.
752 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
754 * infrun.c (get_displaced_stepping_state): New.
755 (displaced_step_in_progress_any_inferior): Remove.
756 (displaced_step_in_progress_thread): Adjust.
757 (displaced_step_in_progress): Adjust.
758 (displaced_step_in_progress_any_thread): New.
759 (get_displaced_step_copy_insn_closure_by_addr): Remove.
760 (gdbarch_supports_displaced_stepping): Use
761 gdbarch_displaced_step_prepare_p.
762 (displaced_step_reset): Change parameter from inferior to
764 (displaced_step_prepare_throw): Implement using
765 gdbarch_displaced_step_prepare.
766 (write_memory_ptid): Move to displaced-step.c.
767 (displaced_step_restore): Remove.
768 (displaced_step_finish): Implement using
769 gdbarch_displaced_step_finish.
770 (start_step_over): Allow starting more than one displaced step.
771 (prepare_for_detach): Handle possibly multiple threads doing
773 (handle_inferior_event): Handle possibility that fork event
774 happens while another thread displaced steps.
775 * linux-tdep.h (linux_displaced_step_prepare): New.
776 (linux_displaced_step_finish): New.
777 (linux_displaced_step_copy_insn_closure_by_addr): New.
778 (linux_displaced_step_restore_all_in_ptid): New.
779 (linux_init_abi): Add supports_displaced_step parameter.
780 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
781 (linux_displaced_step_prepare): New.
782 (linux_displaced_step_finish): New.
783 (linux_displaced_step_copy_insn_closure_by_addr): New.
784 (linux_displaced_step_restore_all_in_ptid): New.
785 (linux_init_abi): Add supports_displaced_step parameter,
786 register displaced step methods if true.
787 (_initialize_linux_tdep): Register inferior_execd observer.
788 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
789 supports_displaced_step parameter, adjust call to
790 linux_init_abi. Remove call to
791 set_gdbarch_displaced_step_location.
792 (amd64_linux_init_abi): Adjust call to
793 amd64_linux_init_abi_common.
794 (amd64_x32_linux_init_abi): Likewise.
795 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
796 linux_init_abi. Remove call to
797 set_gdbarch_displaced_step_location.
798 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
799 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
800 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
802 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
803 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
804 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
805 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
806 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
807 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
808 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
809 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
810 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
811 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
812 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
813 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
814 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
815 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
816 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
817 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
818 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
819 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
820 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
821 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
822 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
823 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
824 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
825 linux_init_abi. Remove call to
826 set_gdbarch_displaced_step_location.
827 * arm-tdep.c (arm_pc_is_thumb): Call
828 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
829 get_displaced_step_copy_insn_closure_by_addr.
830 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
831 clear gdbarch methods.
832 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
833 (get_ppc_per_inferior): New function.
834 (ppc_displaced_step_prepare): New function.
835 (ppc_displaced_step_finish): New function.
836 (ppc_displaced_step_restore_all_in_ptid): New function.
837 (rs6000_gdbarch_init): Register new gdbarch methods.
838 * s390-tdep.c (s390_gdbarch_init): Don't call
839 set_gdbarch_displaced_step_location, set new gdbarch methods.
841 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
843 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
844 * aarch64-tdep.h: Include displaced-stepping.h.
845 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
847 (displaced_step_copy_insn_closure_up): Move here.
848 (struct buf_displaced_step_copy_insn_closure): Move here.
849 (struct displaced_step_inferior_state): Move here.
850 (debug_displaced): Move here.
851 (displaced_debug_printf_1): Move here.
852 (displaced_debug_printf): Move here.
853 * displaced-stepping.c: New file.
854 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
855 * gdbarch.h: Re-generate.
856 * inferior.h: Include displaced-stepping.h.
857 * infrun.h (debug_displaced): Move to displaced-stepping.h.
858 (displaced_debug_printf_1): Likewise.
859 (displaced_debug_printf): Likewise.
860 (struct displaced_step_copy_insn_closure): Likewise.
861 (displaced_step_copy_insn_closure_up): Likewise.
862 (struct buf_displaced_step_copy_insn_closure): Likewise.
863 (struct displaced_step_inferior_state): Likewise.
864 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
865 (displaced_debug_printf_1): Likewise.
866 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
868 (_initialize_infrun): Don't register "set/show debug displaced".
870 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
872 * linux-tdep.c (get_linux_inferior_data): Add inferior
874 (linux_vsyscall_range): Pass current inferior.
876 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
878 * infrun.c (displaced_step_prepare_throw): Change return type to
879 displaced_step_prepare_status.
880 (displaced_step_prepare): Likewise.
881 (displaced_step_finish): Change return type to
882 displaced_step_finish_status.
884 (stop_all_threads): Adjust.
885 * displaced-stepping.h: New file.
887 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
889 * infrun.c (displaced_step_fixup): Rename to...
890 (displaced_step_finish): ... this, update all callers.
892 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
894 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
895 (get_displaced_step_copy_insn_closure_by_addr): ... this.
897 (displaced_step_closure): Rename to...
898 (displaced_step_copy_insn_closure): ... this. Update all users.
899 (displaced_step_closure_up): Rename to...
900 (displaced_step_copy_insn_closure_up). ... this. Update all
902 (buf_displaced_step_closure): Rename to...
903 (buf_displaced_step_copy_insn_closure): ... this. Update all
905 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
906 (get_displaced_step_copy_insn_closure_by_addr): ... this.
908 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
909 (aarch64_displaced_step_copy_insn_closure): ... this. Update
911 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
912 (amd64_displaced_step_copy_insn_closure): ... this. Update all
914 * arm-tdep.h (arm_displaced_step_closure): Rename to...
915 (arm_displaced_step_copy_insn_closure): ... this. Update all
917 * i386-tdep.h (i386_displaced_step_closure): Rename to...
918 (i386_displaced_step_copy_insn_closure): ... this. Update all
920 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
921 (ppc_displaced_step_copy_insn_closure): ... this. Update all
923 * s390-tdep.c (s390_displaced_step_closure): Rename to...
924 (s390_displaced_step_copy_insn_closure): ... this. Update all
926 * gdbarch.h: Re-generate.
927 * gdbarch.c: Re-generate.
929 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
931 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
932 (global_thread_step_over_chain_enqueue): ... this. Update all
934 (thread_step_over_chain_remove): Rename to...
935 (global_thread_step_over_chain_remove): ... this. Update all
937 (thread_step_over_chain_next): Rename to...
938 (global_thread_step_over_chain_next): ... this. Update all
940 * infrun.h (step_over_queue_head): Rename to...
941 (global_thread_step_over_chain_head): ... this. Update all
943 * infrun.c (step_over_queue_head): Rename to...
944 (global_thread_step_over_chain_head): ... this. Update all
946 * thread.c (step_over_chain_remove): Rename to...
947 (thread_step_over_chain_remove): ... this. Update all users.
948 (thread_step_over_chain_next): Rename to...
949 (global_thread_step_over_chain_next): ... this. Update all
951 (thread_step_over_chain_enqueue): Rename to...
952 (global_thread_step_over_chain_enqueue): ... this. Update all
954 (thread_step_over_chain_remove): Rename to...
955 (global_thread_step_over_chain_remove): ... this. Update all
958 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
960 * infrun.c (get_displaced_stepping_state): Remove, change
961 callers to access the field directly.
963 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
965 * infrun.c (handle_inferior_event): Restore displaced step
966 buffer bytes in child process when handling fork, even if fork
967 happened in another thread than the displaced-stepping one.
969 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
971 * infrun.c (infrun_inferior_execd): New function.
972 (_initialize_infrun): Attach inferior_execd observer.
974 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
976 * observable.h (inferior_execd): Declare new observable.
977 * observable.c (inferior_execd): Declare new observable.
978 * infrun.c (follow_exec): Notify inferior_execd observer.
979 * jit.c (jit_inferior_created_hook): Make static.
980 (_initialize_jit): Register inferior_execd observer.
981 * jit.h (jit_inferior_created_hook): Remove declaration.
982 * solib.c (_initialize_solib): Register inferior_execd observer.
984 2020-12-04 Tom de Vries <tdevries@suse.de>
987 * completer.c (completion_tracker::build_completion_result): Don't
988 access match_list[0][-1].
990 2020-12-04 Tom Tromey <tromey@adacore.com>
992 * linespec.c (struct linespec_token): Rename; remove typedef.
993 * guile/scm-block.c (struct block_smob): Remove typedef.
994 (struct block_syms_progress_smob): Likewise.
995 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
996 * guile/scm-symtab.c (symtab_smob): Remove typedef.
997 (struct sal_smob): Remove typedef.
998 * guile/scm-param.c (struct param_smob): Remove typedef.
999 * guile/scm-progspace.c (struct pspace_smob): Rename.
1000 * guile/scm-objfile.c (struct objfile_smob): Rename.
1001 * guile/scm-iterator.c (struct iterator_smob): Rename.
1002 * guile/scm-frame.c (struct frame_smob): Rename.
1003 * guile/scm-arch.c (struct arch_smob): Rename.
1004 * guile/scm-type.c (struct field_smob): Remove typedef.
1005 (struct type_smob): Rename.
1006 * guile/scm-cmd.c (struct command_smob): Remove typedef.
1007 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
1008 * guile/scm-value.c (struct value_smob): Remove typedef.
1009 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
1010 * guile/guile-internal.h (struct scheme_variable)
1011 (struct scheme_function, struct scheme_integer_constant)
1012 (struct gdb_smob, struct chained_gdb_smob)
1013 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
1014 (objfile_smob, pspace_smob, type_smob): Remove typedef.
1015 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
1016 (struct pretty_printer_worker_smob): Remove typedef.
1017 * guile/scm-exception.c (struct exception_smob): Remove typedef.
1018 * python/py-block.c (struct block_object): Remove typedef.
1019 (block_syms_iterator_object): Update.
1020 (set_block): Update.
1021 (block_syms_iterator_object): Remove typedef.
1022 * python/py-inferior.c (struct membuf_object): Remove typedef.
1023 * python/py-symtab.c (struct symtab_object): Remove typedef.
1024 (set_symtab): Update.
1025 (sal_object): Remove typedef.
1027 * python/py-frame.c (frame_object): Remove typedef.
1028 * python/py-record-btrace.c (struct btpy_list_object): Remove
1030 * python/py-arch.c (struct arch_object): Remove typedef.
1031 * python/py-linetable.c (struct linetable_entry_object)
1032 (linetable_object, struct ltpy_iterator_object): Remove typedef.
1033 * python/py-events.h (eventregistry_object): Remove typedef.
1034 (struct events_object): Remove typedef.
1035 * python/python-internal.h (gdbpy_breakpoint_object): Remove
1037 (thread_object): Remove typedef.
1038 * python/py-progspace.c (pspace_object): Remove typedef.
1039 * python/py-value.c (struct value_object): Remove typedef.
1040 * python/py-record.h (recpy_record_object): Remove typedef.
1041 (struct recpy_element_object): Remove typedef.
1042 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
1043 * python/py-objfile.c (objfile_object): Remove typedef.
1044 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
1045 * python/py-type.c (type_object): Remove typedef.
1046 (typy_iterator_object): Update.
1048 (field_object): Remove typedef.
1049 (typy_iterator_object): Remove typedef.
1050 * python/py-registers.c (register_descriptor_iterator_object):
1052 (struct register_descriptor_object)
1053 (struct reggroup_iterator_object, struct reggroup_object): Remove
1055 * python/py-record.c (recpy_gap_object): Remove typedef.
1056 * python/py-symbol.c (symbol_object): Remove typedef.
1057 (set_symbol): Update.
1058 * python/py-event.h (event_object): Remove typedef.
1059 * python/py-param.c (parmpy_object): Remove typedef.
1060 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
1061 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
1062 (unwind_info_object, struct cached_frame_info): Likewise.
1064 2020-12-04 Tom Tromey <tromey@adacore.com>
1066 * value.c (value_internal_function_name): Make return type const.
1067 * value.h (value_internal_function_name): Make return type const.
1069 2020-12-04 Luis Machado <luis.machado@linaro.org>
1071 * aarch64-tdep.c (submask, bit, bits): Remove.
1072 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
1073 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
1074 (aarch64_decode_cb, aarch64_decode_tb)
1075 (aarch64_decode_ldr_literal): Use sbits to extract a signed
1077 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
1079 2020-12-04 Tom de Vries <tdevries@suse.de>
1082 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
1084 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
1087 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
1088 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
1090 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1092 * arch/riscv.c: Include 'rv32e-xregs.c'.
1093 (riscv_create_target_description): Update to handle rv32e.
1094 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
1096 <operator==>: Update to account for new field.
1098 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
1099 * features/riscv/rv32e-xregs.c: Generated.
1100 * features/riscv/rv32e-xregs.xml: New file.
1101 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
1103 (riscv_debug_infcall): Likewise.
1104 (riscv_debug_unwinder): Likewise.
1105 (riscv_debug_gdbarch): Likewise.
1106 (enum riscv_register_required_status): Delete.
1107 (struct riscv_register_feature): Add constructor, delete default
1108 constructor, copy, and assign constructors.
1109 (struct riscv_register_feature::register_info) <required>: Delete.
1110 <check>: Update comment and arguments.
1111 (struct riscv_register_feature) <name>: Change to member function.
1112 <prefer_first_name>: Delete.
1113 <tdesc_feature>: New member function.
1114 <registers>: Rename to...
1115 <m_registers>: ...this.
1116 <m_feature_name>: New member variable.
1117 (riscv_register_feature::register_info::check): Update arguments.
1118 (riscv_xreg_feature): Rewrite as class, create a single static
1119 instance of the class.
1120 (riscv_freg_feature): Likewise.
1121 (riscv_virtual_feature): Likewise.
1122 (riscv_csr_feature): Likewise.
1123 (riscv_create_csr_aliases): Has become a member function inside
1124 riscv_csr_feature class.
1125 (riscv_abi_embedded): New function definition.
1126 (riscv_register_name): Adjust to use new feature objects.
1127 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
1128 and adjust available argument registers.
1129 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
1130 (riscv_check_tdesc_feature): Delete.
1131 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
1132 (riscv_gdbarch_init): Delete target description checking code, and
1133 instead call to the new feature objects to perform the checks.
1134 Reorder handling of no abi information case, allows small code
1136 (_initialize_riscv_tdep): Remove call, this is now done in the
1137 riscv_csr_feature constructor.
1138 * riscv-tdep.h (riscv_abi_embedded): Declare.
1140 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1142 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
1145 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1147 * riscv-tdep.c (riscv_is_unknown_csr): New function,
1148 implementation moved from riscv_register_reggroup_p.
1149 (riscv_register_reggroup_p): Update group handling for unknown
1152 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
1154 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
1155 (dwarf2_get_dwz_file): Convert 'filename' to a
1156 std::string. Use dwz_search_other_debugdirs to search for DWZ
1157 files in the debug-file-directories provided by the user as well.
1159 2020-12-01 Tom Tromey <tom@tromey.com>
1161 * parse.c (expr_builder::expr_builder): Initialize expout.
1162 (expr_builder::release): Use expression::resize.
1163 (expression::expression, expression::~expression)
1164 (expression::resize): New methods.
1165 (write_exp_elt): Use expression::resize.
1166 (prefixify_expression): Update.
1167 (increase_expout_size): Use expression::resize.
1168 * expression.h (struct expression): Add constructor, destructor.
1169 <resize>: New method.
1170 (expression_up): Change type.
1172 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1173 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
1174 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
1177 2020-11-30 Tom de Vries <tdevries@suse.de>
1180 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
1181 is_reference parameter.
1182 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
1184 2020-11-30 Tom Tromey <tom@tromey.com>
1186 * rust-lang.c (rust_op_name): Remove.
1187 (exp_descriptor_rust): Update.
1188 * parser-defs.h (op_name_standard): Don't declare.
1189 (struct exp_descriptor) <op_name>: Remove.
1190 * parse.c (exp_descriptor_standard): Update.
1191 * opencl-lang.c (exp_descriptor_opencl): Update.
1192 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
1193 * f-lang.c (op_name_f): Remove.
1194 (f_language::exp_descriptor_tab): Update.
1195 * expression.h (op_name): Update.
1196 * expprint.c (op_name): Rewrite.
1197 (op_name_standard): Remove.
1198 (dump_raw_expression, dump_subexp): Update.
1199 * c-lang.c (exp_descriptor_c): Update.
1200 * ax-gdb.c (gen_expr): Update.
1201 * ada-lang.c (ada_op_name): Remove.
1202 (ada_exp_descriptor): Update.
1204 2020-11-30 Tom Tromey <tom@tromey.com>
1206 * eval.c (init_array_element): Remove.
1207 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
1209 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
1212 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
1213 static locator win info.
1215 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
1217 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
1220 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1222 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
1223 is always initialized.
1225 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
1226 * MAINTAINERS (Write After Approval): Add myself.
1228 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1230 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1231 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1233 2020-11-25 Tom Tromey <tom@tromey.com>
1235 * eval.c (evaluate_subexp_standard): Remove unnecessary
1238 2020-11-25 Tom Tromey <tom@tromey.com>
1240 * d-lang.c: Include parser-defs.h.
1241 * rust-lang.c: Include parser-defs.h.
1242 * c-lang.h: Do not include parser-defs.h.
1244 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1246 * regcache.h (struct cached_reg): Remove typedef.
1248 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1250 * README: Fix the URL of the MPFR library.
1252 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1254 * README: Document the --with-libgmp-prefix configure option.
1256 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1258 * NEWS: Add entry documenting support for DWARF-based fixed
1261 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1263 * NEWS: Document that building GDB now requires GMP.
1265 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1267 * typeprint.c (print_type_scalar): Add handling of
1268 TYPE_CODE_FIXED_POINT.
1270 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1272 * valarith.c (fixed_point_binop): Replace the
1273 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1276 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1278 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1279 replacing fixed_point_scaling_factor. All callers updated
1280 throughout this project.
1281 (fixed_point_scaling_factor): Delete declaration.
1282 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1283 fixed_point_scaling_factor. Adjust implementation accordingly.
1285 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1287 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1288 replacing the fixed_point_type_base_type function. All callers
1289 updated throughout this project.
1290 (fixed_point_type_base_type): Remove declaration.
1291 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1292 fixed_point_type_base_type. Adjust implementation accordingly.
1294 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1296 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1298 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1299 (TYPE_FIXED_POINT_INFO): Delete macro.
1300 (allocate_fixed_point_type_info): Change return type to void.
1301 * gdbtypes.c (copy_type_recursive): Replace the use of
1302 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1303 (fixed_point_scaling_factor): Likewise.
1304 (allocate_fixed_point_type_info): Change return type to void.
1305 Adjust implementation accordingly.
1306 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1307 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1309 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1311 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1312 into one single gdb::array_view parameter.
1313 (gdb_mpz::write): Likewise.
1314 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1315 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1316 into one single gdb::array_view parameter.
1317 Adjust implementation accordingly.
1318 (gdb_mpz::write): Likewise.
1319 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1320 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1321 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1323 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1325 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1326 Change return type to std::string. Update all callers.
1327 * gmp-utils.c (gmp_string_printf): Likewise.
1329 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1331 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1332 instead of mpq_set_ui to initialize our GMP rational.
1334 2020-11-23 Tom de Vries <tdevries@suse.de>
1336 * debuginfod-support.c (debuginfod_source_query)
1337 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1339 2020-11-21 Tom Tromey <tom@tromey.com>
1341 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1343 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1345 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1347 (gdb_mpz_write_all_from_small): Likewise.
1349 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1351 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1354 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1356 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1357 ctf_arc_open_by_name.
1359 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1361 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1362 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1364 2020-11-20 Pedro Alves <pedro@palves.net>
1366 * language.c (language_arch_info::lookup_primitive_type): Use
1367 gdb::function_view instead of gdb::function.
1368 (template language_lookup_primitive_type): Rename to ...
1369 (language_lookup_primitive_type_1): ... this, and make static.
1370 (language_lookup_primitive_type(const struct language_defn *,
1371 struct gdbarch *, const char *): Make non-template.
1372 (language_lookup_primitive_type(const struct language_defn *,
1373 struct gdbarch *, std::function<bool (struct type *)>): Make
1374 non-template and use gdb::function_view.
1375 * language.h (language_arch_info::lookup_primitive_type): Use
1376 gdb::function_view instead of std::function.
1377 (language_lookup_primitive_type): No longer template.
1378 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1379 lambda instead of a std::function.
1381 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1384 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1387 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1389 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1391 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1393 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1394 in `loop_cb` parameter.
1395 * gdbarch.c: Re-generate.
1396 * gdbarch.h: Re-generate.
1397 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1399 * arch-utils.h (default_read_core_file_mappings): Likewise.
1400 * corelow.c (core_target::build_file_mappings): Likewise.
1401 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1402 (linux_core_info_proc_mappings): Likewise.
1404 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1406 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1407 * NEWS: Mention new options.
1408 * f-array-walker.h: New file.
1409 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1410 (repack_array_slices): New static global.
1411 (show_repack_array_slices): New function.
1412 (fortran_array_slicing_debug): New static global.
1413 (show_fortran_array_slicing_debug): New function.
1414 (value_f90_subarray): Delete.
1415 (skip_undetermined_arglist): Delete.
1416 (class fortran_array_repacker_base_impl): New class.
1417 (class fortran_lazy_array_repacker_impl): New class.
1418 (class fortran_array_repacker_impl): New class.
1419 (fortran_value_subarray): Complete rewrite.
1420 (set_fortran_list): New static global.
1421 (show_fortran_list): Likewise.
1422 (_initialize_f_language): Register new commands.
1423 (fortran_adjust_dynamic_array_base_address_hack): New function.
1424 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1426 * f-valprint.c: Include 'f-array-walker.h'.
1427 (class fortran_array_printer_impl): New class.
1428 (f77_print_array_1): Delete.
1429 (f77_print_array): Delete.
1430 (fortran_print_array): New.
1431 (f_value_print_inner): Update to call fortran_print_array.
1432 * gdbtypes.c: Include 'f-lang.h'.
1433 (resolve_dynamic_type_internal): Call
1434 fortran_adjust_dynamic_array_base_address_hack.
1436 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1438 * breakpoint.c (struct watch_options): New struct.
1439 (watch_option_defs): New static global.
1440 (make_watch_options_def_group): New function.
1441 (watch_maybe_just_location): Convert option parsing.
1442 (watch_command_completer): New function.
1443 (_initialize_breakpoint): Build help text using options mechanism.
1445 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1447 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1448 (watch_command_1): Update parameter types. Convert locals to
1450 (watch_command_wrapper): Change parameter type.
1451 (watch_maybe_just_location): Change locals to bool.
1452 (rwatch_command_wrapper): Update parameter type.
1453 (awatch_command_wrapper): Update parameter type.
1454 * breakpoint.h (watch_command_wrapper): Change parameter type.
1455 (rwatch_command_wrapper): Update parameter type.
1456 (awatch_command_wrapper): Update parameter type.
1457 * eval.c (fetch_subexp_value): Change parameter type.
1458 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1460 * value.h (fetch_subexp_value): Change parameter type in
1463 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1465 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1468 2020-11-18 Keith Seitz <keiths@redhat.com>
1470 * linux-tdep.c (dump_note_entry_p): Return true instead of
1471 checking `filename'.
1473 2020-11-18 Tom de Vries <tdevries@suse.de>
1475 * debuginfod-support.c (debuginfod_source_query)
1476 (debuginfod_debuginfo_query): Also do early exit if
1477 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1479 2020-11-18 Tom de Vries <tdevries@suse.de>
1481 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1484 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1486 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1487 callers. Move doc here.
1488 * gdbtypes.c (get_array_bounds): Return bool
1490 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1492 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1494 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1495 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1496 case to the default.
1498 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1500 * printcmd.c: Include 'safe-ctype.c'.
1501 (skip_over_slash_fmt): New function.
1502 (print_command_completer): Call skip_over_slash_fmt.
1503 (display_and_x_command_completer): New function.
1504 (_initialize_printcmd): Add command completion for 'x' and
1507 2020-11-16 Pedro Alves <pedro@palves.net>
1509 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1510 (get_prev_frame_always_1): ... to here.
1511 * inline-frame.c (inline_frame_this_id): Mention
1512 get_prev_frame_always_1 in comment.
1514 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1516 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1518 (value_less): Add fixed-point handling.
1520 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1522 * eval.c (binop_promote): Add fixed-point type handling.
1523 * valarith.c (fixed_point_binop): New function.
1524 (scalar_binop): Add fixed-point type handling.
1525 (value_neg): Add fixed-point type handling.
1526 * valops.c (value_cast_to_fixed_point): New function.
1527 (value_cast): Add fixed-point type handling.
1529 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1531 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1533 * c-typeprint.c (c_type_print_varspec_prefix)
1534 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1535 TYPE_CODE_FIXED_POINT handling.
1536 * p-typeprint.c (pascal_type_print_varspec_prefix)
1537 (pascal_type_print_varspec_suffix): Likewise.
1538 * typeprint.c (print_type_fixed_point): New function.
1539 * typeprint.h (print_type_fixed_point): Add declaration.
1541 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1543 * printcmd.c (print_scalar_formatted): Add fixed-point type
1544 handling when options->format is set.
1546 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1548 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1549 * dwarf2/read.c (get_dwarf2_rational_constant)
1550 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1551 (has_zero_over_zero_small_attribute): New functions.
1552 read_base_type, set_die_type): Add fixed-point type handling.
1553 * gdb-gdb.py.in: Add fixed-point type handling.
1554 * gdbtypes.c: #include "gmp-utils.h".
1555 (create_range_type, set_type_code): Add fixed-point type handling.
1556 (init_fixed_point_type): New function.
1557 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1558 (print_fixed_point_type_info): New function.
1559 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1561 (fixed_point_type_storage): New typedef.
1562 (fixed_point_objfile_key): New static global.
1563 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1564 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1566 * gdbtypes.h: #include "gmp-utils.h".
1567 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1568 (union type_specific) <fixed_point_info>: New field.
1569 (struct fixed_point_type_info): New struct.
1570 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1571 (init_fixed_point_type, is_fixed_point_type)
1572 (fixed_point_type_base_type, fixed_point_scaling_factor)
1573 (allocate_fixed_point_type_info): Add declarations.
1574 * valprint.c (generic_val_print_fixed_point): New function.
1575 (generic_value_print): Add fixed-point type handling.
1576 * value.c (value_as_address, unpack_long): Add fixed-point type
1579 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1581 * utils.h (uinteger_pow): Add declaration.
1582 * utils.c (uinteger_pow): Moved here (without changes)...
1583 * valarith.c (uinteger_pow): ... from here.
1585 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1587 * gmp-utils.h, gmp-utils.c: New file.
1588 * unittests/gmp-utils-selftests.c: New file.
1589 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1590 unittests/gmp-utils-selftests.c.
1591 (COMMON_SFILES) Add gmp-utils.c.
1592 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1594 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1596 * configure.ac: Generate an error if a usable GMP library
1598 * configure: Regenerate.
1600 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1602 * configure.ac: Add support for --with-libgmp-prefix.
1603 * Makefile.in (LIBGMP): New variable.
1604 (CLIBS): Include $(LIBGMP).
1605 * configure, config.in: Regenerate
1607 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1610 * f-exp.y (COMPLETE): New token.
1611 (exp): Two new rules for tab-completion.
1612 (saw_name_at_eof): New static global.
1613 (last_was_structop): Likewise.
1614 (yylex): Set new variables, and return COMPLETE token at the end
1615 of the input stream in some cases.
1617 2020-11-14 Tom Tromey <tom@tromey.com>
1619 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1621 2020-11-14 Tom Tromey <tom@tromey.com>
1623 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1625 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1627 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1629 2020-11-13 Tom Tromey <tom@tromey.com>
1631 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1632 (convert_escape, parse_one_string): Constify.
1634 2020-11-13 Keith Seitz <keiths@redhat.com>
1636 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1637 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1638 outside of ELF segments" warning for debugin
1640 2020-11-13 Keith Seitz <keiths@redhat.com>
1643 * elfread.c (elf_symfile_segments): Output a BFD file name
1644 for the "Loadable section ... outside of ELF segments" warning.
1646 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1649 * arm-tdep.c (class arm_instruction_reader): New.
1650 (target_arm_instruction_reader): New.
1651 (arm_analyze_prologue): Add instruction reader parameter and use
1652 it. Use arm_expand_immediate.
1653 (class target_arm_instruction_reader): Adjust.
1654 (arm_skip_prologue): Adjust.
1655 (arm_expand_immediate): New.
1656 (arm_scan_prologue): Adjust.
1657 (arm_analyze_prologue_test): New.
1658 (class test_arm_instruction_reader): New.
1660 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1662 * f-lang.c (fortran_argument_convert): Add declaration. Add
1663 header comment, taken from f-lang.h. Make static.
1664 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1665 (fortran_argument_convert): Delete declaration.
1667 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1669 * ada-exp.y (find_primitive_type): Make parameter const.
1670 * ada-lang.c (enum ada_primitive_types): Delete.
1671 (ada_language::language_arch_info): Update.
1672 * c-lang.c (enum c_primitive_types): Delete.
1673 (c_language_arch_info): Update.
1674 (enum cplus_primitive_types): Delete.
1675 (cplus_language::language_arch_info): Update.
1676 * d-lang.c (enum d_primitive_types): Delete.
1677 (d_language::language_arch_info): Update.
1678 * f-lang.c (enum f_primitive_types): Delete.
1679 (f_language::language_arch_info): Update.
1680 * go-lang.c (enum go_primitive_types): Delete.
1681 (go_language::language_arch_info): Update.
1682 * language.c (auto_or_unknown_language::language_arch_info):
1684 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1685 (language_string_char_type): Add header comment, call function in
1687 (language_bool_type): Likewise
1688 (language_arch_info::bool_type): Define.
1689 (language_lookup_primitive_type_1): Delete.
1690 (language_lookup_primitive_type): Rewrite as a templated function
1691 to call function in language_arch_info, then instantiate twice.
1692 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1693 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1694 (language_arch_info::lookup_primitive_type): Define twice with
1695 different signatures.
1696 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1697 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1698 member function in language_arch_info.
1699 * language.h (language_arch_info): Complete rewrite.
1700 (language_lookup_primitive_type): Make templated.
1701 * m2-lang.c (enum m2_primitive_types): Delete.
1702 (m2_language::language_arch_info): Update.
1703 * opencl-lang.c (OCL_P_TYPE): Delete.
1704 (enum opencl_primitive_types): Delete.
1705 (opencl_type_data): Delete.
1706 (builtin_opencl_type): Delete.
1707 (lookup_opencl_vector_type): Update.
1708 (opencl_language::language_arch_info): Update, lots of content
1710 (build_opencl_types): ...here. This function is now deleted.
1711 (_initialize_opencl_language): Delete.
1712 * p-lang.c (enum pascal_primitive_types): Delete.
1713 (pascal_language::language_arch_info): Update.
1714 * rust-lang.c (enum rust_primitive_types): Delete.
1715 (rust_language::language_arch_info): Update.
1717 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1719 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1722 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1724 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1727 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1729 * dwarf2/read.c (dwarf_read_debug_printf,
1730 dwarf_read_debug_printf_v): New macros, use throughout the file.
1732 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1735 * arc-linux-tdep.c (collect_register): Populate "eret" by
1736 "pc" value from the regcache when asked for "pc" value.
1738 2020-11-12 Tom Tromey <tom@tromey.com>
1741 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1744 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1746 * features/Makefile (XMLTOC): Add rx.xml.
1747 (FEATURE_XMLFILES): Remove rx.xml.
1748 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1749 * features/rx.c: Regenerate.
1750 * features/rx.xml: Wrap in `target` tags, and reindent.
1751 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1753 (maint_print_c_tdesc_opt_def): New typedef.
1754 (maint_print_c_tdesc_opt_defs): New static global.
1755 (make_maint_print_c_tdesc_options_def_group): New function.
1756 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1757 print single feature C file for target descriptions containing a
1759 (maint_print_c_tdesc_cmd_completer): New function.
1760 (_initialize_target_descriptions): Update call to register command
1761 completer, and include command line flag in help text.
1763 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1765 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1767 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1770 2020-11-10 Tom Tromey <tom@tromey.com>
1772 * value.h (internalvar_name): Update.
1773 * value.c (internalvar_name): Make return type const.
1775 2020-11-10 Tom Tromey <tom@tromey.com>
1777 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1778 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1781 2020-11-10 Tom Tromey <tom@tromey.com>
1783 * objc-lang.h (value_nsstring): Update.
1784 * objc-lang.c (value_nsstring): Make "ptr" const.
1786 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1788 * expprint.c (print_subexp_funcall): Increment expression position
1789 after reading argument count.
1790 * f-lang.c (print_subexp_f): Skip over opcode before calling
1792 (dump_subexp_body_f): Likewise.
1794 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1797 * configure: Regenerate.
1798 * configure.ac: Check for python modules ctypes instead of
1801 2020-11-06 Pedro Alves <pedro@palves.net>
1803 * macroexp.c (struct macro_buffer): Split in two classes. Add
1805 (struct shared_macro_buffer): New, factored out from struct
1807 (struct growable_macro_buffer): New, factored out from struct
1809 (set_token, get_comment, get_identifier, get_pp_number)
1810 (get_character_constant, get_string_literal, get_punctuator)
1811 (get_next_token_for_substitution): Constify parameters.
1812 (substitute_args): Constify locals.
1814 2020-11-05 Tom Tromey <tom@tromey.com>
1816 * dwarf2/read.c (read_cutu_die_from_dwo)
1817 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1818 (build_type_psymtabs_1): Update.
1819 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1821 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1822 Don't read section. Add assert.
1824 2020-11-04 Tom Tromey <tromey@adacore.com>
1826 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1828 2020-11-04 Tom Tromey <tromey@adacore.com>
1830 * ada-typeprint.c (ada_print_type): Handle __T types.
1832 2020-11-04 Tom Tromey <tromey@adacore.com>
1834 * dwarf2/read.c (add_partial_symbol, process_die):
1835 Handle DW_TAG_array_type.
1836 (is_type_tag_for_partial): Add "lang" parameter.
1837 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1839 2020-11-04 Tom Tromey <tromey@adacore.com>
1841 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1843 2020-11-04 Tom Tromey <tromey@adacore.com>
1845 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1848 2020-11-04 Tom Tromey <tromey@adacore.com>
1850 * gdbtypes.c (update_static_array_size): Handle bit stride.
1852 2020-11-04 Tom Tromey <tromey@adacore.com>
1854 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1856 2020-11-04 Tom Tromey <tromey@adacore.com>
1858 * ada-lang.c (ada_is_any_packed_array_type): New function.
1859 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1861 2020-11-04 Tom Tromey <tromey@adacore.com>
1863 * dwarf2/read.c (recognize_bound_expression)
1864 (quirk_ada_thick_pointer): New functions.
1865 (read_array_type): Call quirk_ada_thick_pointer.
1866 (set_die_type): Add "skip_data_location" parameter.
1867 (quirk_ada_thick_pointer): New function.
1868 (process_structure_scope): Call quirk_ada_thick_pointer.
1869 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1870 (decode_packed_array_bitsize): Handle thick pointers without
1872 (ada_is_gnat_encoded_packed_array_type): Rename from
1873 ada_is_packed_array_type.
1874 (ada_is_constrained_packed_array_type): Update.
1875 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1876 (ada_value_print_1): Use ada_get_decoded_value.
1878 2020-11-04 Tom Tromey <tromey@adacore.com>
1880 * ada-lang.c (recursively_update_array_bitsize): New function.
1881 (decode_constrained_packed_array_type): Call it.
1883 2020-11-04 Tom Tromey <tromey@adacore.com>
1885 * ada-lang.c (to_fixed_array_type): Error if
1886 decode_constrained_packed_array_type returns NULL.
1888 2020-11-04 Tom Tromey <tromey@adacore.com>
1890 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1892 2020-11-02 Tom Tromey <tromey@adacore.com>
1894 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1895 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1896 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1897 * amd64-ravenscar-thread.c: New file.
1898 * amd64-ravenscar-thread.h: New file.
1899 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1900 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1902 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1904 * main.c (execute_cmdargs): New function.
1905 (captured_main_1): Make use of execute_cmdargs.
1907 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1909 * NEWS: Mention changes to config file search path.
1912 2020-11-02 Tom Tromey <tromey@adacore.com>
1914 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1915 (python_GdbModuleDef): Move earlier. Now static.
1916 (do_start_initialization): Consolidate some IS_PY3K blocks.
1918 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1920 * aarch64-linux-tdep.c: Fix indentation.
1921 * aarch64-ravenscar-thread.c: Fix indentation.
1922 * aarch64-tdep.c: Fix indentation.
1923 * aarch64-tdep.h: Fix indentation.
1924 * ada-lang.c: Fix indentation.
1925 * ada-lang.h: Fix indentation.
1926 * ada-tasks.c: Fix indentation.
1927 * ada-typeprint.c: Fix indentation.
1928 * ada-valprint.c: Fix indentation.
1929 * ada-varobj.c: Fix indentation.
1930 * addrmap.c: Fix indentation.
1931 * addrmap.h: Fix indentation.
1932 * agent.c: Fix indentation.
1933 * aix-thread.c: Fix indentation.
1934 * alpha-bsd-nat.c: Fix indentation.
1935 * alpha-linux-tdep.c: Fix indentation.
1936 * alpha-mdebug-tdep.c: Fix indentation.
1937 * alpha-nbsd-tdep.c: Fix indentation.
1938 * alpha-obsd-tdep.c: Fix indentation.
1939 * alpha-tdep.c: Fix indentation.
1940 * amd64-bsd-nat.c: Fix indentation.
1941 * amd64-darwin-tdep.c: Fix indentation.
1942 * amd64-linux-nat.c: Fix indentation.
1943 * amd64-linux-tdep.c: Fix indentation.
1944 * amd64-nat.c: Fix indentation.
1945 * amd64-obsd-tdep.c: Fix indentation.
1946 * amd64-tdep.c: Fix indentation.
1947 * amd64-windows-tdep.c: Fix indentation.
1948 * annotate.c: Fix indentation.
1949 * arc-tdep.c: Fix indentation.
1950 * arch-utils.c: Fix indentation.
1951 * arch/arm-get-next-pcs.c: Fix indentation.
1952 * arch/arm.c: Fix indentation.
1953 * arm-linux-nat.c: Fix indentation.
1954 * arm-linux-tdep.c: Fix indentation.
1955 * arm-nbsd-tdep.c: Fix indentation.
1956 * arm-pikeos-tdep.c: Fix indentation.
1957 * arm-tdep.c: Fix indentation.
1958 * arm-tdep.h: Fix indentation.
1959 * arm-wince-tdep.c: Fix indentation.
1960 * auto-load.c: Fix indentation.
1961 * auxv.c: Fix indentation.
1962 * avr-tdep.c: Fix indentation.
1963 * ax-gdb.c: Fix indentation.
1964 * ax-general.c: Fix indentation.
1965 * bfin-linux-tdep.c: Fix indentation.
1966 * block.c: Fix indentation.
1967 * block.h: Fix indentation.
1968 * blockframe.c: Fix indentation.
1969 * bpf-tdep.c: Fix indentation.
1970 * break-catch-sig.c: Fix indentation.
1971 * break-catch-syscall.c: Fix indentation.
1972 * break-catch-throw.c: Fix indentation.
1973 * breakpoint.c: Fix indentation.
1974 * breakpoint.h: Fix indentation.
1975 * bsd-uthread.c: Fix indentation.
1976 * btrace.c: Fix indentation.
1977 * build-id.c: Fix indentation.
1978 * buildsym-legacy.h: Fix indentation.
1979 * buildsym.c: Fix indentation.
1980 * c-typeprint.c: Fix indentation.
1981 * c-valprint.c: Fix indentation.
1982 * c-varobj.c: Fix indentation.
1983 * charset.c: Fix indentation.
1984 * cli/cli-cmds.c: Fix indentation.
1985 * cli/cli-decode.c: Fix indentation.
1986 * cli/cli-decode.h: Fix indentation.
1987 * cli/cli-script.c: Fix indentation.
1988 * cli/cli-setshow.c: Fix indentation.
1989 * coff-pe-read.c: Fix indentation.
1990 * coffread.c: Fix indentation.
1991 * compile/compile-cplus-types.c: Fix indentation.
1992 * compile/compile-object-load.c: Fix indentation.
1993 * compile/compile-object-run.c: Fix indentation.
1994 * completer.c: Fix indentation.
1995 * corefile.c: Fix indentation.
1996 * corelow.c: Fix indentation.
1997 * cp-abi.h: Fix indentation.
1998 * cp-namespace.c: Fix indentation.
1999 * cp-support.c: Fix indentation.
2000 * cp-valprint.c: Fix indentation.
2001 * cris-linux-tdep.c: Fix indentation.
2002 * cris-tdep.c: Fix indentation.
2003 * darwin-nat-info.c: Fix indentation.
2004 * darwin-nat.c: Fix indentation.
2005 * darwin-nat.h: Fix indentation.
2006 * dbxread.c: Fix indentation.
2007 * dcache.c: Fix indentation.
2008 * disasm.c: Fix indentation.
2009 * dtrace-probe.c: Fix indentation.
2010 * dwarf2/abbrev.c: Fix indentation.
2011 * dwarf2/attribute.c: Fix indentation.
2012 * dwarf2/expr.c: Fix indentation.
2013 * dwarf2/frame.c: Fix indentation.
2014 * dwarf2/index-cache.c: Fix indentation.
2015 * dwarf2/index-write.c: Fix indentation.
2016 * dwarf2/line-header.c: Fix indentation.
2017 * dwarf2/loc.c: Fix indentation.
2018 * dwarf2/macro.c: Fix indentation.
2019 * dwarf2/read.c: Fix indentation.
2020 * dwarf2/read.h: Fix indentation.
2021 * elfread.c: Fix indentation.
2022 * eval.c: Fix indentation.
2023 * event-top.c: Fix indentation.
2024 * exec.c: Fix indentation.
2025 * exec.h: Fix indentation.
2026 * expprint.c: Fix indentation.
2027 * f-lang.c: Fix indentation.
2028 * f-typeprint.c: Fix indentation.
2029 * f-valprint.c: Fix indentation.
2030 * fbsd-nat.c: Fix indentation.
2031 * fbsd-tdep.c: Fix indentation.
2032 * findvar.c: Fix indentation.
2033 * fork-child.c: Fix indentation.
2034 * frame-unwind.c: Fix indentation.
2035 * frame-unwind.h: Fix indentation.
2036 * frame.c: Fix indentation.
2037 * frv-linux-tdep.c: Fix indentation.
2038 * frv-tdep.c: Fix indentation.
2039 * frv-tdep.h: Fix indentation.
2040 * ft32-tdep.c: Fix indentation.
2041 * gcore.c: Fix indentation.
2042 * gdb_bfd.c: Fix indentation.
2043 * gdbarch.sh: Fix indentation.
2044 * gdbarch.c: Re-generate
2045 * gdbarch.h: Re-generate.
2046 * gdbcore.h: Fix indentation.
2047 * gdbthread.h: Fix indentation.
2048 * gdbtypes.c: Fix indentation.
2049 * gdbtypes.h: Fix indentation.
2050 * glibc-tdep.c: Fix indentation.
2051 * gnu-nat.c: Fix indentation.
2052 * gnu-nat.h: Fix indentation.
2053 * gnu-v2-abi.c: Fix indentation.
2054 * gnu-v3-abi.c: Fix indentation.
2055 * go32-nat.c: Fix indentation.
2056 * guile/guile-internal.h: Fix indentation.
2057 * guile/scm-cmd.c: Fix indentation.
2058 * guile/scm-frame.c: Fix indentation.
2059 * guile/scm-iterator.c: Fix indentation.
2060 * guile/scm-math.c: Fix indentation.
2061 * guile/scm-ports.c: Fix indentation.
2062 * guile/scm-pretty-print.c: Fix indentation.
2063 * guile/scm-value.c: Fix indentation.
2064 * h8300-tdep.c: Fix indentation.
2065 * hppa-linux-nat.c: Fix indentation.
2066 * hppa-linux-tdep.c: Fix indentation.
2067 * hppa-nbsd-nat.c: Fix indentation.
2068 * hppa-nbsd-tdep.c: Fix indentation.
2069 * hppa-obsd-nat.c: Fix indentation.
2070 * hppa-tdep.c: Fix indentation.
2071 * hppa-tdep.h: Fix indentation.
2072 * i386-bsd-nat.c: Fix indentation.
2073 * i386-darwin-nat.c: Fix indentation.
2074 * i386-darwin-tdep.c: Fix indentation.
2075 * i386-dicos-tdep.c: Fix indentation.
2076 * i386-gnu-nat.c: Fix indentation.
2077 * i386-linux-nat.c: Fix indentation.
2078 * i386-linux-tdep.c: Fix indentation.
2079 * i386-nto-tdep.c: Fix indentation.
2080 * i386-obsd-tdep.c: Fix indentation.
2081 * i386-sol2-nat.c: Fix indentation.
2082 * i386-tdep.c: Fix indentation.
2083 * i386-tdep.h: Fix indentation.
2084 * i386-windows-tdep.c: Fix indentation.
2085 * i387-tdep.c: Fix indentation.
2086 * i387-tdep.h: Fix indentation.
2087 * ia64-libunwind-tdep.c: Fix indentation.
2088 * ia64-libunwind-tdep.h: Fix indentation.
2089 * ia64-linux-nat.c: Fix indentation.
2090 * ia64-linux-tdep.c: Fix indentation.
2091 * ia64-tdep.c: Fix indentation.
2092 * ia64-tdep.h: Fix indentation.
2093 * ia64-vms-tdep.c: Fix indentation.
2094 * infcall.c: Fix indentation.
2095 * infcmd.c: Fix indentation.
2096 * inferior.c: Fix indentation.
2097 * infrun.c: Fix indentation.
2098 * iq2000-tdep.c: Fix indentation.
2099 * language.c: Fix indentation.
2100 * linespec.c: Fix indentation.
2101 * linux-fork.c: Fix indentation.
2102 * linux-nat.c: Fix indentation.
2103 * linux-tdep.c: Fix indentation.
2104 * linux-thread-db.c: Fix indentation.
2105 * lm32-tdep.c: Fix indentation.
2106 * m2-lang.c: Fix indentation.
2107 * m2-typeprint.c: Fix indentation.
2108 * m2-valprint.c: Fix indentation.
2109 * m32c-tdep.c: Fix indentation.
2110 * m32r-linux-tdep.c: Fix indentation.
2111 * m32r-tdep.c: Fix indentation.
2112 * m68hc11-tdep.c: Fix indentation.
2113 * m68k-bsd-nat.c: Fix indentation.
2114 * m68k-linux-nat.c: Fix indentation.
2115 * m68k-linux-tdep.c: Fix indentation.
2116 * m68k-tdep.c: Fix indentation.
2117 * machoread.c: Fix indentation.
2118 * macrocmd.c: Fix indentation.
2119 * macroexp.c: Fix indentation.
2120 * macroscope.c: Fix indentation.
2121 * macrotab.c: Fix indentation.
2122 * macrotab.h: Fix indentation.
2123 * main.c: Fix indentation.
2124 * mdebugread.c: Fix indentation.
2125 * mep-tdep.c: Fix indentation.
2126 * mi/mi-cmd-catch.c: Fix indentation.
2127 * mi/mi-cmd-disas.c: Fix indentation.
2128 * mi/mi-cmd-env.c: Fix indentation.
2129 * mi/mi-cmd-stack.c: Fix indentation.
2130 * mi/mi-cmd-var.c: Fix indentation.
2131 * mi/mi-cmds.c: Fix indentation.
2132 * mi/mi-main.c: Fix indentation.
2133 * mi/mi-parse.c: Fix indentation.
2134 * microblaze-tdep.c: Fix indentation.
2135 * minidebug.c: Fix indentation.
2136 * minsyms.c: Fix indentation.
2137 * mips-linux-nat.c: Fix indentation.
2138 * mips-linux-tdep.c: Fix indentation.
2139 * mips-nbsd-tdep.c: Fix indentation.
2140 * mips-tdep.c: Fix indentation.
2141 * mn10300-linux-tdep.c: Fix indentation.
2142 * mn10300-tdep.c: Fix indentation.
2143 * moxie-tdep.c: Fix indentation.
2144 * msp430-tdep.c: Fix indentation.
2145 * namespace.h: Fix indentation.
2146 * nat/fork-inferior.c: Fix indentation.
2147 * nat/gdb_ptrace.h: Fix indentation.
2148 * nat/linux-namespaces.c: Fix indentation.
2149 * nat/linux-osdata.c: Fix indentation.
2150 * nat/netbsd-nat.c: Fix indentation.
2151 * nat/x86-dregs.c: Fix indentation.
2152 * nbsd-nat.c: Fix indentation.
2153 * nbsd-tdep.c: Fix indentation.
2154 * nios2-linux-tdep.c: Fix indentation.
2155 * nios2-tdep.c: Fix indentation.
2156 * nto-procfs.c: Fix indentation.
2157 * nto-tdep.c: Fix indentation.
2158 * objfiles.c: Fix indentation.
2159 * objfiles.h: Fix indentation.
2160 * opencl-lang.c: Fix indentation.
2161 * or1k-tdep.c: Fix indentation.
2162 * osabi.c: Fix indentation.
2163 * osabi.h: Fix indentation.
2164 * osdata.c: Fix indentation.
2165 * p-lang.c: Fix indentation.
2166 * p-typeprint.c: Fix indentation.
2167 * p-valprint.c: Fix indentation.
2168 * parse.c: Fix indentation.
2169 * ppc-linux-nat.c: Fix indentation.
2170 * ppc-linux-tdep.c: Fix indentation.
2171 * ppc-nbsd-nat.c: Fix indentation.
2172 * ppc-nbsd-tdep.c: Fix indentation.
2173 * ppc-obsd-nat.c: Fix indentation.
2174 * ppc-ravenscar-thread.c: Fix indentation.
2175 * ppc-sysv-tdep.c: Fix indentation.
2176 * ppc64-tdep.c: Fix indentation.
2177 * printcmd.c: Fix indentation.
2178 * proc-api.c: Fix indentation.
2179 * producer.c: Fix indentation.
2180 * producer.h: Fix indentation.
2181 * prologue-value.c: Fix indentation.
2182 * prologue-value.h: Fix indentation.
2183 * psymtab.c: Fix indentation.
2184 * python/py-arch.c: Fix indentation.
2185 * python/py-bpevent.c: Fix indentation.
2186 * python/py-event.c: Fix indentation.
2187 * python/py-event.h: Fix indentation.
2188 * python/py-finishbreakpoint.c: Fix indentation.
2189 * python/py-frame.c: Fix indentation.
2190 * python/py-framefilter.c: Fix indentation.
2191 * python/py-inferior.c: Fix indentation.
2192 * python/py-infthread.c: Fix indentation.
2193 * python/py-objfile.c: Fix indentation.
2194 * python/py-prettyprint.c: Fix indentation.
2195 * python/py-registers.c: Fix indentation.
2196 * python/py-signalevent.c: Fix indentation.
2197 * python/py-stopevent.c: Fix indentation.
2198 * python/py-stopevent.h: Fix indentation.
2199 * python/py-threadevent.c: Fix indentation.
2200 * python/py-tui.c: Fix indentation.
2201 * python/py-unwind.c: Fix indentation.
2202 * python/py-value.c: Fix indentation.
2203 * python/py-xmethods.c: Fix indentation.
2204 * python/python-internal.h: Fix indentation.
2205 * python/python.c: Fix indentation.
2206 * ravenscar-thread.c: Fix indentation.
2207 * record-btrace.c: Fix indentation.
2208 * record-full.c: Fix indentation.
2209 * record.c: Fix indentation.
2210 * reggroups.c: Fix indentation.
2211 * regset.h: Fix indentation.
2212 * remote-fileio.c: Fix indentation.
2213 * remote.c: Fix indentation.
2214 * reverse.c: Fix indentation.
2215 * riscv-linux-tdep.c: Fix indentation.
2216 * riscv-ravenscar-thread.c: Fix indentation.
2217 * riscv-tdep.c: Fix indentation.
2218 * rl78-tdep.c: Fix indentation.
2219 * rs6000-aix-tdep.c: Fix indentation.
2220 * rs6000-lynx178-tdep.c: Fix indentation.
2221 * rs6000-nat.c: Fix indentation.
2222 * rs6000-tdep.c: Fix indentation.
2223 * rust-lang.c: Fix indentation.
2224 * rx-tdep.c: Fix indentation.
2225 * s12z-tdep.c: Fix indentation.
2226 * s390-linux-tdep.c: Fix indentation.
2227 * score-tdep.c: Fix indentation.
2228 * ser-base.c: Fix indentation.
2229 * ser-mingw.c: Fix indentation.
2230 * ser-uds.c: Fix indentation.
2231 * ser-unix.c: Fix indentation.
2232 * serial.c: Fix indentation.
2233 * sh-linux-tdep.c: Fix indentation.
2234 * sh-nbsd-tdep.c: Fix indentation.
2235 * sh-tdep.c: Fix indentation.
2236 * skip.c: Fix indentation.
2237 * sol-thread.c: Fix indentation.
2238 * solib-aix.c: Fix indentation.
2239 * solib-darwin.c: Fix indentation.
2240 * solib-frv.c: Fix indentation.
2241 * solib-svr4.c: Fix indentation.
2242 * solib.c: Fix indentation.
2243 * source.c: Fix indentation.
2244 * sparc-linux-tdep.c: Fix indentation.
2245 * sparc-nbsd-tdep.c: Fix indentation.
2246 * sparc-obsd-tdep.c: Fix indentation.
2247 * sparc-ravenscar-thread.c: Fix indentation.
2248 * sparc-tdep.c: Fix indentation.
2249 * sparc64-linux-tdep.c: Fix indentation.
2250 * sparc64-nbsd-tdep.c: Fix indentation.
2251 * sparc64-obsd-tdep.c: Fix indentation.
2252 * sparc64-tdep.c: Fix indentation.
2253 * stabsread.c: Fix indentation.
2254 * stack.c: Fix indentation.
2255 * stap-probe.c: Fix indentation.
2256 * stubs/ia64vms-stub.c: Fix indentation.
2257 * stubs/m32r-stub.c: Fix indentation.
2258 * stubs/m68k-stub.c: Fix indentation.
2259 * stubs/sh-stub.c: Fix indentation.
2260 * stubs/sparc-stub.c: Fix indentation.
2261 * symfile-mem.c: Fix indentation.
2262 * symfile.c: Fix indentation.
2263 * symfile.h: Fix indentation.
2264 * symmisc.c: Fix indentation.
2265 * symtab.c: Fix indentation.
2266 * symtab.h: Fix indentation.
2267 * target-float.c: Fix indentation.
2268 * target.c: Fix indentation.
2269 * target.h: Fix indentation.
2270 * tic6x-tdep.c: Fix indentation.
2271 * tilegx-linux-tdep.c: Fix indentation.
2272 * tilegx-tdep.c: Fix indentation.
2273 * top.c: Fix indentation.
2274 * tracefile-tfile.c: Fix indentation.
2275 * tracepoint.c: Fix indentation.
2276 * tui/tui-disasm.c: Fix indentation.
2277 * tui/tui-io.c: Fix indentation.
2278 * tui/tui-regs.c: Fix indentation.
2279 * tui/tui-stack.c: Fix indentation.
2280 * tui/tui-win.c: Fix indentation.
2281 * tui/tui-winsource.c: Fix indentation.
2282 * tui/tui.c: Fix indentation.
2283 * typeprint.c: Fix indentation.
2284 * ui-out.h: Fix indentation.
2285 * unittests/copy_bitwise-selftests.c: Fix indentation.
2286 * unittests/memory-map-selftests.c: Fix indentation.
2287 * utils.c: Fix indentation.
2288 * v850-tdep.c: Fix indentation.
2289 * valarith.c: Fix indentation.
2290 * valops.c: Fix indentation.
2291 * valprint.c: Fix indentation.
2292 * valprint.h: Fix indentation.
2293 * value.c: Fix indentation.
2294 * value.h: Fix indentation.
2295 * varobj.c: Fix indentation.
2296 * vax-tdep.c: Fix indentation.
2297 * windows-nat.c: Fix indentation.
2298 * windows-tdep.c: Fix indentation.
2299 * xcoffread.c: Fix indentation.
2300 * xml-syscall.c: Fix indentation.
2301 * xml-tdesc.c: Fix indentation.
2302 * xstormy16-tdep.c: Fix indentation.
2303 * xtensa-config.c: Fix indentation.
2304 * xtensa-linux-nat.c: Fix indentation.
2305 * xtensa-linux-tdep.c: Fix indentation.
2306 * xtensa-tdep.c: Fix indentation.
2308 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2309 Craig Blackmore <craig.blackmore@embecosm.com>
2311 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2312 as an unsigned value.
2314 2020-11-01 Tom Tromey <tom@tromey.com>
2316 * dbxread.c (dbx_end_psymtab): Update.
2317 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2318 (build_type_psymtabs_reader): Update.
2319 * xcoffread.c (xcoff_end_psymtab): Update.
2320 * ctfread.c (scan_partial_symbols): Update.
2321 * psymtab.c (sort_pst_symbols): Remove.
2322 (partial_symtab::end): Rename from end_psymtab_common. Inline
2324 * psympriv.h (struct partial_symtab) <end>: New method.
2325 (end_psymtab_common): Don't declare.
2327 2020-11-01 Tom Tromey <tom@tromey.com>
2329 * symmisc.c (count_psyms): New function.
2330 (print_objfile_statistics): Use it.
2331 * psymtab.c (append_psymbol_to_list): Remove.
2332 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2333 * objfiles.h (struct objstats) <n_psyms>: Remove.
2335 2020-11-01 Tom Tromey <tom@tromey.com>
2337 * dbxread.c (dbx_end_psymtab): Update.
2338 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2339 (build_type_psymtabs_reader): Update.
2340 * xcoffread.c (xcoff_end_psymtab): Update.
2341 * ctfread.c (scan_partial_symbols): Update.
2342 * psympriv.h (end_psymtab_common): Update.
2343 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2344 (sort_pst_symbols): Likewise.
2346 2020-11-01 Tom Tromey <tom@tromey.com>
2348 * dbxread.c (dbx_symfile_read): Update.
2349 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2350 * xcoffread.c (xcoff_initial_scan): Update.
2351 * psympriv.h (init_psymbol_list): Don't declare.
2352 * psymtab.c (init_psymbol_list): Remove.
2354 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2356 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2357 gnat_encoded_fixed_type_info. Update all callers.
2359 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2361 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2364 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2366 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2367 cast_from_fixed. Update all callers.
2368 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2370 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2372 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2374 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2375 to print_gnat_encoded_fixed_point_type.
2376 * ada-valprint.c: Likewise.
2378 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2380 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2381 (debug_prefixed_printf): Add check of debug_displaced flag.
2382 * linux-nat.c (linux_nat_debug_printf): Add check of
2383 debug_linux_nat flag.
2385 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2387 * infrun.c (infrun_debug_printf_1): Remove.
2388 (displaced_debug_printf_1): Remove.
2389 (stop_all_threads): Use debug_prefixed_printf.
2390 * infrun.h (infrun_debug_printf_1): Remove.
2391 (infrun_debug_printf): Use debug_prefixed_printf.
2392 (displaced_debug_printf_1): Remove.
2393 (displaced_debug_printf): Use debug_prefixed_printf.
2394 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2395 (linux_nat_debug_printf): Use debug_prefixed_printf.
2397 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2399 * configure: Re-generate.
2400 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2403 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2405 * configure: Re-generate.
2407 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2409 * configure: Re-generate.
2411 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2413 * configure: Re-generate.
2415 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2417 * configure: Re-generate.
2419 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2421 * acinclude.m4: Modernize.
2422 * configure: Re-generate.
2424 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2426 * configure.ac: Modernize.
2427 * configure: Re-generate.
2429 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2431 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2432 * configure: Re-generate.
2433 * configure.ac: Remove AM_PROG_CC_STDC.
2435 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2437 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2438 AC_CANONICAL_SYSTEM.
2439 * configure: Re-generate.
2441 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2443 * infrun.h (displaced_debug_printf): New macro. Replace
2444 displaced debug prints throughout to use it.
2445 (displaced_debug_printf_1): New declaration.
2446 (displaced_step_dump_bytes): Return string, remove ui_file
2447 parameter, update all callers.
2448 * infrun.c (displaced_debug_printf_1): New function.
2449 (displaced_step_dump_bytes): Return string, remove ui_file
2452 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2454 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2456 2020-10-30 Tom Tromey <tromey@adacore.com>
2458 * Makefile.in (stamp-init): Depend on config.status.
2460 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2462 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2464 2020-10-30 Pedro Alves <pedro@palves.net>
2466 * thread.c (lookup_selected_frame): Move ...
2467 * frame.c (lookup_selected_frame): ... here.
2469 2020-10-30 Pedro Alves <pedro@palves.net>
2471 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2473 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2474 Use save_selected_frame. Save language as well.
2475 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2476 Use restore_selected_frame, and restore language as well.
2477 (selected_frame_id, selected_frame_level): New.
2478 (selected_frame): Update comments.
2479 (save_selected_frame, restore_selected_frame): New.
2480 (get_selected_frame): Use lookup_selected_frame.
2481 (get_selected_frame_if_set): Delete.
2482 (select_frame): Record selected_frame_level and selected_frame_id.
2483 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2485 (get_selected_frame): Make 'message' parameter optional.
2486 (get_selected_frame_if_set): Delete declaration.
2487 (select_frame): Update comments.
2488 (save_selected_frame, restore_selected_frame)
2489 (lookup_selected_frame): Declare.
2490 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2491 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2493 (save_infcall_control_state): Use save_selected_frame.
2494 (restore_selected_frame): Delete.
2495 (restore_infcall_control_state): Use restore_selected_frame.
2496 * stack.c (select_frame_command_core, frame_command_core): Use
2498 * thread.c (restore_selected_frame): Rename to ...
2499 (lookup_selected_frame): ... this and make extern. Select the
2500 current frame if the frame level is -1.
2501 (scoped_restore_current_thread::restore): Also restore the
2503 (scoped_restore_current_thread::~scoped_restore_current_thread):
2505 (scoped_restore_current_thread::scoped_restore_current_thread):
2506 Save the language as well. Use save_selected_frame.
2508 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2510 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2512 * gdbarch.h: Re-generate.
2514 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2516 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2518 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2520 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2522 * arch-utils.c (default_displaced_step_hw_singlestep):
2524 * arch-utils.h (default_displaced_step_hw_singlestep):
2526 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2528 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2530 * gdbarch.c: Re-generate.
2531 * gdbarch.h: Re-generate.
2532 * infrun.c (resume_1): Adjust.
2534 2020-10-29 Tom Tromey <tom@tromey.com>
2536 * progspace.c (program_space::~program_space): Don't call
2539 2020-10-29 Tom Tromey <tom@tromey.com>
2541 * exec.c (exec_target::close): Don't change current program
2544 2020-10-29 Tom Tromey <tom@tromey.com>
2546 * symfile.c (add_symbol_file_command): Update.
2547 * exec.c (program_space::add_target_sections): Rename.
2548 * symfile-mem.c (symbol_file_add_from_memory): Update.
2549 * progspace.h (struct program_space) <add_target_sections>:
2550 Declare new overload.
2551 * exec.h (add_target_sections_of_objfile): Don't declare.
2553 2020-10-29 Tom Tromey <tom@tromey.com>
2555 * solib.c (solib_map_sections): Update.
2556 * exec.c (program_space::add_target_sections): Now a method.
2557 (exec_file_attach): Update.
2558 * exec.h (add_target_sections): Don't declare.
2559 * progspace.h (struct program_space) <add_target_sections>:
2562 2020-10-29 Tom Tromey <tom@tromey.com>
2564 * progspace.h (struct program_space) <remove_target_sections>:
2566 * exec.c (program_space::remove_target_sections): Now a method.
2567 * exec.h (remove_target_sections): Don't declare.
2569 2020-10-29 Tom Tromey <tom@tromey.com>
2571 * inferior.c (delete_inferior): Update.
2572 * progspace.c (program_space::empty): Rename from
2573 program_space_empty_p. Return bool.
2574 * progspace.h (struct program_space) <empty>: New method.
2575 (program_space_empty_p): Don't declare.
2577 2020-10-29 Tom Tromey <tom@tromey.com>
2579 * progspace.c (program_space::~program_space): Don't call
2580 clear_program_space_solib_cache.
2581 (program_space::clear_solib_cache): Rename from
2583 * solib.c (handle_solib_event): Update.
2584 * progspace.h (struct program_space) <clear_solib_cache>: New
2586 (clear_program_space_solib_cache): Don't declare.
2588 2020-10-29 Tom Tromey <tom@tromey.com>
2590 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2591 * target.c (info_target_command): Update.
2592 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2593 (symbol_file_clear, reread_symbols): Update.
2594 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2595 * stabsread.c (scan_file_globals): Update.
2596 * solib.c (update_solib_list): Update.
2597 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2598 (svr4_fetch_objfile_link_map, enable_break)
2599 (svr4_relocate_main_executable)
2600 (svr4_iterate_over_objfiles_in_search_order): Update.
2601 * solib-frv.c (lm_base, enable_break)
2602 (frv_relocate_main_executable): Update.
2603 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2604 (frv_fetch_objfile_link_map): Update.
2605 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2606 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2607 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2608 * remote.c (remote_target::get_offsets): Update.
2609 (remote_target::start_remote)
2610 (extended_remote_target::post_attach): Update.
2611 * objfiles.c (entry_point_address_query): Update.
2612 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2613 * minsyms.c (get_symbol_leading_char): Update.
2614 * frame.c (inside_main_func): Update.
2615 * progspace.h (symfile_objfile): Remove macro.
2617 2020-10-29 Tom Tromey <tom@tromey.com>
2619 * exec.c (exec_file_attach): Update.
2620 * progspace.c (program_space::exec_close): Update.
2621 * progspace.h (struct program_space) <ebfd>: Now a
2623 <set_exec_bfd>: Change argument type.
2626 2020-10-29 Tom Tromey <tom@tromey.com>
2628 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2629 * symfile.c (reread_symbols): Update.
2630 * symfile-mem.c (add_symbol_file_from_memory_command)
2631 (add_vsyscall_page): Update.
2632 * source-cache.c (source_cache::get_plain_source_lines): Update.
2633 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2634 (svr4_current_sos_direct, svr4_exec_displacement)
2635 (svr4_relocate_main_executable): Update.
2636 (svr4_iterate_over_objfiles_in_search_order): Update.
2637 * solib-frv.c (enable_break2, enable_break): Update.
2638 * solib-dsbt.c (lm_base, enable_break): Update.
2639 * solib-darwin.c (find_program_interpreter)
2640 (darwin_solib_create_inferior_hook): Update.
2641 * sol-thread.c (rw_common, ps_pdmodel): Update.
2642 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2643 * remote.c (compare_sections_command)
2644 (remote_target::trace_set_readonly_regions): Update.
2645 * remote-sim.c (get_sim_inferior_data)
2646 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2647 (gdbsim_target_open, gdbsim_target::files_info): Update.
2648 * exec.h (exec_bfd): Remove macro.
2649 * progspace.c (initialize_progspace): Update.
2650 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2652 * nto-procfs.c (nto_procfs_target::post_attach)
2653 (nto_procfs_target::create_inferior): Update.
2654 * maint.c (maintenance_info_sections): Update.
2655 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2657 * infcmd.c (post_create_inferior): Update.
2658 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2659 (objfile_find_memory_regions): Update.
2660 * exec.c (validate_exec_file, exec_file_attach)
2661 (exec_read_partial_read_only, print_section_info): Update.
2662 * corelow.c (core_target_open): Update.
2663 * corefile.c (reopen_exec_file, validate_files): Update.
2664 * arm-tdep.c (gdb_print_insn_arm): Update.
2665 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2666 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2669 2020-10-29 Tom Tromey <tom@tromey.com>
2671 * progspace.h (current_target_sections): Remove macro.
2672 * solib-svr4.c (scan_dyntag): Update.
2673 * solib-dsbt.c (scan_dyntag): Update.
2674 * exec.c (exec_target::close): Update.
2675 (add_target_sections, add_target_sections_of_objfile)
2676 (remove_target_sections, exec_target::get_section_table)
2677 (exec_target::files_info, set_section_command)
2678 (exec_set_section_address, exec_target::has_memory)
2679 (exec_target::has_memory): Update.
2681 2020-10-29 Tom Tromey <tom@tromey.com>
2683 * source-cache.c (source_cache::get_plain_source_lines): Use
2684 current_program_space.
2685 * corefile.c (reopen_exec_file): Use current_program_space.
2686 * exec.c (exec_file_attach): Use current_program_space.
2687 * exec.h (exec_bfd_mtime): Remove.
2689 2020-10-29 Tom Tromey <tom@tromey.com>
2691 * gcore.c (default_gcore_mach): Remove.
2692 (create_gcore_bfd): Update.
2694 2020-10-29 Tom Tromey <tom@tromey.com>
2696 * progspace.c (program_space::exec_close): New method, from
2697 exec_close in exec.c.
2698 * exec.c (exec_close): Move to progspace.c.
2699 (exec_target::close, exec_file_attach): Update.
2700 * progspace.h (struct program_space) <exec_close>: Declare
2703 2020-10-29 Tom Tromey <tom@tromey.com>
2705 * progspace.h (struct program_space) <exec_filename>: Rename from
2706 pspace_exec_filename. Now a unique_xmalloc_ptr.
2707 * inferior.c (print_selected_inferior): Update.
2708 (print_inferior): Update.
2709 * mi/mi-main.c (print_one_inferior): Update.
2710 * exec.h (exec_filename): Remove macro.
2711 * corefile.c (get_exec_file): Update.
2712 * exec.c (exec_close): Update.
2713 (exec_file_attach): Update.
2714 * progspace.c (clone_program_space): Update.
2715 (print_program_space): Update.
2717 2020-10-29 Tom Tromey <tom@tromey.com>
2719 * target-section.h (struct target_section): Add constructor.
2720 * exec.c (build_section_table, add_target_sections_of_objfile):
2722 * corelow.c (core_target::build_file_mappings): Update.
2724 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2727 * inferior.c (detach_inferior_command): Restore the current thread.
2728 (kill_inferior_command): Ditto.
2730 2020-10-28 Tom de Vries <tdevries@suse.de>
2733 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2734 map, check it in the "best match" loop.
2736 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2738 * m32c-tdep.c: Remove unused includes.
2740 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2742 * xtensa-tdep.c: Remove includes.
2744 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2746 * breakpoint.c (struct condition_command_opts): New struct.
2747 (condition_command_option_defs): New static global.
2748 (make_condition_command_options_def_group): New function.
2749 (condition_completer): Update to consider the '-force' flag.
2750 (condition_command): Use gdb::option for the '-force' flag.
2752 2020-10-27 Tom de Vries <tdevries@suse.de>
2754 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2755 symbols in section check.
2757 2020-10-27 Tom de Vries <tdevries@suse.de>
2759 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2761 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2763 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2764 * breakpoint.c: Update the help text of the 'condition' and 'break'
2766 (set_breakpoint_condition): Take a new bool parameter
2767 to control whether condition definition should be forced even when
2768 the condition expression is invalid in all of the current locations.
2769 (condition_command): Update the call to 'set_breakpoint_condition'.
2770 (find_condition_and_thread): Take the "-force-condition" flag into
2772 * linespec.c (linespec_keywords): Add "-force-condition" as an
2774 (FORCE_KEYWORD_INDEX): New #define.
2775 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2777 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2778 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2779 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2780 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2782 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2784 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2785 * breakpoint.c (set_breakpoint_location_condition): New function.
2786 (set_breakpoint_condition): Disable a breakpoint location if parsing
2787 the condition string gives an error.
2788 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2789 (build_target_condition_list): Ditto.
2790 (build_target_command_list): Ditto.
2791 (build_bpstat_chain): Ditto.
2792 (print_one_breakpoint_location): Ditto.
2793 (print_one_breakpoint): Ditto.
2794 (breakpoint_1): Ditto.
2795 (bp_location::bp_location): Ditto.
2796 (locations_are_equal): Ditto.
2797 (update_breakpoint_locations): Ditto.
2798 (enable_disable_bp_num_loc): Ditto.
2799 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2800 (find_condition_and_thread_for_sals): New static function.
2801 (create_breakpoint): Call find_condition_and_thread_for_sals.
2802 (location_to_sals): Call find_condition_and_thread_for_sals instead
2803 of find_condition_and_thread.
2805 2020-10-26 Tom de Vries <tdevries@suse.de>
2807 * dwarf2/read.c (process_full_comp_unit): Call
2808 dwarf2_find_base_address.
2810 2020-10-26 Tom Tromey <tromey@adacore.com>
2812 * gdbtypes.c (create_range_type): Revert previous patch. Add
2815 2020-10-26 Pedro Alves <pedro@palves.net>
2817 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2818 (my_waitpid): Use gdb::handle_eintr.
2820 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2822 * acinclude.m4: Update ptrace.m4 path.
2823 * ptrace.m4: Moved to gdbsupport.
2825 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2827 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2828 instead of target_gdbarch.
2830 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2832 * jit.c (jit_reader_load_command): Pass current inferior.
2833 (jit_inferior_init): Change parameter type to inferior, use it.
2834 (jit_inferior_created): Remove.
2835 (jit_inferior_created_hook): Pass inferior parameter down.
2836 (_initialize_jit): Use jit_inferior_created_hook instead of
2837 jit_inferior_created.
2838 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2839 * infrun.c (follow_exec): Pass inferior to
2840 jit_inferior_created_hook.
2842 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2844 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2845 parameter and use it.
2846 (thread_db_inferior_created): Pass inferior argument.
2848 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2850 * aix-thread.c (aix_thread_inferior_created): Add inferior
2852 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2853 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2854 * jit.c (jit_inferior_created): Likewise.
2855 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2856 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2857 * observable.h (inferior_created): Likewise.
2858 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2859 * symfile-mem.c (add_vsyscall_page): Likewise.
2860 * infcmd.c (post_create_inferior): Pass inferior argument.
2862 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2866 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2868 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2869 to ada_check_typedef.
2871 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2873 * f-exp.y (f_parse): Rename to...
2874 (f_language::parser): ...this.
2875 * f-lang.c (f_get_encoding): Rename to...
2876 (f_language::get_encoding): ...this.
2877 (f_op_print_tab): Rename to...
2878 (f_language::op_print_tab): ...this.
2879 (exp_descriptor_f): Rename to...
2880 (f_language::exp_descriptor_tab): ...this.
2881 (class f_language): Moved to f-lang.h.
2882 (f_language::language_arch_info): New function, moved out of class
2884 (f_language::search_name_hash): Likewise.
2885 (f_language::lookup_symbol_nonlocal): Likewise.
2886 (f_language::get_symbol_name_matcher_inner): Likewise.
2887 * f-lang.h: Add 'valprint.h' include.
2888 (class f_language): Moved here from f-lang.c.
2889 * f-typeprint.c (f_type_print_args): Delete commented out
2891 (f_print_typedef): Rename to...
2892 (f_language::print_typedef): ...this.
2893 (f_print_type): Rename to...
2894 (f_language::print_type): ...this.
2895 (f_type_print_varspec_prefix): Delete declaration and rename to...
2896 (f_language::f_type_print_varspec_prefix): ...this.
2897 (f_type_print_varspec_suffix): Delete declaration and rename to...
2898 (f_language::f_type_print_varspec_suffix): ...this.
2899 (f_type_print_base): Delete declaration and rename to...
2900 (f_language::f_type_print_base): ...this.
2901 * f-valprint.c (f_value_print_inner): Rename to...
2902 (f_language::value_print_inner): ...this.
2903 * parse.c: Delete 'f-lang.h' include.
2905 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2907 * language.h (language_defn::print_type): Add variable names in
2908 declaration, and update header comment.
2910 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2912 * ada-lang.c (ada_language::demangle): Rename to...
2913 (ada_language::demangle_symbol): ...this.
2914 * c-lang.c (cplus_language::demangle): Rename to...
2915 (cplus_language::demangle_symbol): ...this.
2916 * d-lang.c (d_language::demangle): Rename to...
2917 (d_language::demangle_symbol): ...this.
2918 * f-lang.c (f_language::demangle): Rename to...
2919 (f_language::demangle_symbol): ...this.
2920 * go-lang.c (go_language::demangle): Rename to...
2921 (go_language::demangle_symbol): ...this.
2922 * language.c (language_demangle): Update call to demangle_symbol.
2923 (auto_or_unknown_language::demangle): Rename to...
2924 (auto_or_unknown_language::demangle_symbol): ...this.
2925 * language.h (language_defn::demangle): Rename to...
2926 (language_defn::demangle_symbol): ...this.
2927 * objc-lang.c (objc_language::demangle): Rename to...
2928 (objc_language::demangle_symbol): ...this.
2929 * rust-lang.c (rust_language::demangle): Rename to...
2930 (rust_language::demangle_symbol): ...this.
2932 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2934 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2935 (iterate_over_file_blocks): Replace use of macro with the macros
2938 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2940 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2941 * valprint.c (maybe_print_array_index): Replace use of macro with
2942 the macros definition.
2944 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2946 * ada-lang.c (ada_language::print_array_index): Call value_print
2948 * language.c (language_defn::print_array_index): Likewise.
2949 * language.h (LA_VALUE_PRINT): Delete.
2950 * valprint.c (value_print): Call value_print on the
2951 current_language directly.
2953 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2955 * language.h (LA_PRINT_TYPEDEF): Delete.
2956 * typeprint.c (typedef_print): Call print_typedef directly on the
2957 current_language object.
2959 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2961 * m2-exp.y (m2_parse): Rename to...
2962 (m2_language::parser): ...this. Update function signature.
2963 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2964 (m2_op_print): Rename to...
2965 (m2_language::op_print_tab): ...this, and make const.
2966 (exp_descriptor_modula2): Rename to...
2967 (m2_language::exp_descriptor_modula2): ...this.
2968 (class m2_language): Move to m2-lang.h.
2969 (m2_language::language_arch_info): New function, moved out of
2971 (m2_language::printchar): New function, body from m2_printchar.
2972 (m2_language::printstr): New function, moved out of class
2974 (m2_language::emitchar): Likewise.
2975 * m2-lang.h (m2_parse): Delete declaration.
2976 (m2_print_typedef): Delete declaration.
2977 (m2_value_print_inner): Delete declaration.
2978 (class m2_language): Class declaration moved from m2-lang.c,
2979 larger functions are left in m2-lang.c.
2980 * m2-typeprint.c (m2_print_typedef): Rename to...
2981 (m2_language::print_typedef): ...this, and update function
2983 * m2-valprint.c (m2_value_print_inner): Rename to...
2984 (m2_language::value_print_inner): ...this, replace use of
2985 LA_PRINT_STRING with a direct call to printstr member function,
2986 and update recursive call.
2988 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2990 * language.c (default_is_string_type_p): Delete, implementation
2991 moved into auto_or_unknown_language::is_string_type_p.
2992 (unk_op_print_tab): Moved into
2993 auto_or_unknown_language::opcode_print_table.
2994 (unknown_language_arch_info): Delete, implementation moved into
2995 auto_or_unknown_language::language_arch_info.
2996 (class auto_or_unknown_language): New class, member functions
2997 copied from unknown_language class, with some updates.
2998 (class unknown_language): Most member functions moved into
2999 auto_or_unknown_language class. Inherit from
3000 auto_or_unknown_language class.
3001 (class auto_language): Inherit from auto_or_unknown_language.
3002 Delete most member functions.
3004 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
3006 * stabsread.c (read_member_functions): Remove gdb_assert.
3008 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
3010 * gdbtypes.c (init_complex_type): Check target type name.
3012 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
3014 * target-debug.h (target_debug_print_struct_target_ops_p):
3016 (target_debug_print_async_callback_ftype_p): Remove.
3017 (target_debug_print_struct_trace_state_variable_p): Remove.
3018 (target_debug_print_struct_traceframe_info_p): Remove.
3019 (target_debug_print_VEC__btrace_block_s__pp): Remove.
3020 (target_debug_print_enum_btrace_format): Remove.
3021 (target_debug_print_enum_info_proc_what): Remove.
3022 (target_debug_print_thread_info_pp): Remove.
3024 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
3026 * target.h (struct target_ops) <make_corefile_notes>:
3027 Change return type to unique pointer.
3028 * target.c (dummy_make_corefile_notes): Likewise.
3029 * exec.c (struct exec_target) <make_corefile_notes>:
3031 (exec_target::make_corefile_notes): Likewise.
3032 * procfs.c (class procfs_target) <make_corefile_notes>:
3034 (procfs_do_thread_registers): Adjust to unique pointer.
3035 (struct procfs_corefile_thread_data): Add constructor.
3036 <note_data>: Change type to unique pointer.
3037 (procfs_corefile_thread_callback): Adjust to unique pointer.
3038 (procfs_target::make_corefile_notes): Change return type to
3040 * target-delegates.c: Re-generate.
3041 * gcore.c (write_gcore_file_1): Adjust.
3042 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
3045 2020-10-22 Tom de Vries <tdevries@suse.de>
3047 * block.c (find_block_in_blockvector): Make sure the returned block
3050 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
3053 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
3055 (load_cu): Pass existing CU.
3056 (process_imported_unit_die): Likewise.
3057 (follow_die_offset): Likewise.
3059 2020-10-22 Luis Machado <luis.machado@linaro.org>
3061 * corelow.c (core_target::xfer_partial): Also check for an empty
3062 m_core_unavailable_mappings vector.
3064 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3066 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
3067 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
3068 * f-exp.y (arglist): Allow for a series of subranges.
3069 (subrange): Add cases for subranges with strides.
3070 * f-lang.c (value_f90_subarray): Catch use of array strides and
3072 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
3074 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3076 * expprint.c (print_subexp_standard): Change enum range_type to
3077 range_flag and rename variables to match.
3078 (dump_subexp_body_standard): Likewise.
3079 * expression.h (enum range_type): Rename to...
3080 (enum range_flag): ...this.
3081 (range_types): Rename to...
3082 (range_flags): ...this.
3083 * f-lang.c (value_f90_subarray): Change enum range_type to
3084 range_flag and rename variables to match.
3085 * parse.c (operator_length_standard): Likewise.
3086 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
3087 range_type to range_flag.
3088 * rust-lang.c (rust_evaluate_funcall): Likewise.
3089 (rust_range): Likewise.
3090 (rust_compute_range): Likewise.
3091 (rust_subscript): Likewise.
3093 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3095 * expprint.c (print_subexp_standard): Update to reflect changes to
3097 (dump_subexp_body_standard): Likewise.
3098 * expression.h (enum range_type): Convert to a bit field enum, and
3099 make the enum unsigned.
3100 * f-exp.y (subrange): Update to reflect changes to enum
3102 * f-lang.c (value_f90_subarray): Likewise.
3103 * parse.c (operator_length_standard): Likewise.
3104 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
3105 * rust-lang.c (rust_range): Likewise.
3106 (rust_compute_range): Likewise.
3107 (rust_subscript): Likewise.
3109 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
3111 * infrun.c (displaced_step_in_progress_thread): Fix comment.
3112 (displaced_step_in_progress): Fix comment.
3114 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3116 * gdbarch.sh (make_corefile_notes): Return unique pointer.
3117 * gdbarch.c: Re-generate.
3118 * gdbarch.h: Re-generate.
3119 * gcore.c (write_gcore_file_1): Adjust.
3120 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
3122 <note_data>: Change type to unique pointer.
3123 <abort_iteration>: Change type to bool.
3124 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
3125 (fbsd_collect_thread_registers): Return void, adjust.
3126 (struct fbsd_corefile_thread_data): Add construtor.
3127 <note_data>: Change type to unique pointer.
3128 (fbsd_corefile_thread): Adjust.
3129 (fbsd_make_corefile_notes): Return unique pointer, adjust.
3130 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
3131 to unique pointer, adjust.
3132 (struct linux_collect_regset_section_cb_data): Add constructor.
3133 <note_data>: Change type to unique pointer.
3134 <abort_iteration>: Change type to bool.
3135 (linux_collect_thread_registers): Return void, adjust.
3136 (struct linux_corefile_thread_data): Add constructor.
3137 <note_data>: Change type to unique pointer.
3138 (linux_corefile_thread): Adjust.
3139 (linux_make_corefile_notes): Return unique pointer, adjust.
3141 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3143 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
3144 * gdbarch.c: Re-generate.
3145 * gdbarch.h: Re-generate.
3146 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
3148 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
3150 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
3151 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
3152 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
3153 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
3155 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3157 * gdbarch.sh: Make generated predicates return bool.
3158 * gdbarch.c: Re-generate.
3159 * gdbarch.h: Re-generate.
3161 2020-10-20 Tom Tromey <tom@tromey.com>
3163 * varobj-iter.h (struct varobj_item): Remove typedef.
3165 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3167 * infrun.c (currently_stepping): Change int to bool
3168 (maybe_software_singlestep): Likewise.
3169 (show_stop_on_solib_events): Likewise.
3170 (stepping_past_nonsteppable_watchpoint): Likewise.
3171 (displaced_step_in_progress_any_inferior): Likewise.
3172 (displaced_step_in_progress_thread): Likewise.
3173 (keep_going_stepped_thread): Likewise.
3174 (thread_still_needs_step_over): Likewise.
3175 (start_step_over): Likewise.
3176 (do_target_resume): Likewise.
3177 (resume_1): Likewise.
3178 (clear_proceed_status): Likewise.
3179 (thread_still_needs_step_over_bp): Likewise.
3180 (proceed): Likewise.
3181 (switch_back_to_stepped_thread): Likewise.
3182 (adjust_pc_after_break): Likewise.
3183 (stepped_in_from): Likewise.
3184 (handle_stop_requested): Likewise.
3185 (handle_syscall_event): Likewise.
3186 (handle_no_resumed): Likewise.
3187 (handle_inferior_event): Likewise.
3188 (finish_step_over): Likewise.
3189 (handle_signal_stop): Likewise.
3190 (process_event_stop_test): Likewise.
3192 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3194 * infrun.c (get_displaced_stepping_state): Fix comment.
3196 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
3198 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
3200 2020-10-19 Tom Tromey <tromey@adacore.com>
3203 * tui/tui-winsource.h (struct tui_source_window_base)
3204 <refresh_window>: Rename from refresh_pad.
3205 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3206 Rename from refresh_pad.
3207 (tui_source_window_base::show_source_content)
3208 (tui_source_window_base::do_scroll_horizontal): Update.
3210 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3212 * thread.c (_initialize_thread): Fine-tune the help text of
3215 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3217 * frame.c: Remove the unused 'uinteger_option_def' type alias.
3219 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
3221 * breakpoint.c (handle_jit_event): Add an argument, change how
3222 `jit_event_handler` is called.
3224 2020-10-17 Tom Tromey <tom@tromey.com>
3226 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
3227 (scan_xcoff_symtab): Update.
3228 * psymtab.h (class psymtab_storage) <global_psymbols,
3229 static_psymbols, current_global_psymbols,
3230 current_static_psymbols>: Remove.
3231 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3232 (match_partial_symbol, lookup_partial_symbol): Update.
3233 (print_partial_symbols): Change parameters.
3234 (dump_psymtab, recursively_search_psymtabs)
3235 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3236 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3238 (end_psymtab_common): Simplify.
3239 (append_psymbol_to_list): Change parameters.
3240 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3241 (init_psymbol_list): Simplify.
3242 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3243 * psympriv.h (struct partial_symtab) <empty>: New method.
3244 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3246 <global_psymbols, static_psymbols>: New members.
3247 <add_psymbol>: New methods.
3248 (add_psymbol_to_list): Don't declare.
3249 (psymbol_placement): Move earlier.
3250 * mdebugread.c (parse_partial_symbols): Update.
3251 (handle_psymbol_enumerators): Change parameters.
3252 (mdebug_expand_psymtab): Update.
3253 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3254 (add_partial_symbol): Update.
3255 * dwarf2/index-write.c (write_psymbols): Change parameters.
3256 (write_one_signatured_type): Update.
3257 (recursively_count_psymbols): Update.
3258 (recursively_write_psymbols): Update.
3259 (class debug_names) <recursively_write_psymbols>: Update.
3260 <write_psymbols>: Change parameters.
3261 <write_one_signatured_type>: Update.
3262 * dbxread.c (read_dbx_symtab): Update.
3263 (dbx_end_psymtab): Use partial_symtab::empty.
3264 * ctfread.c (struct ctf_context) <pst>: New member.
3265 (create_partial_symtab): Set it.
3266 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3267 (scan_partial_symbols): Use the psymtab's context. Update.
3269 2020-10-17 Tom Tromey <tom@tromey.com>
3271 * valprint.c (generic_value_print): Remove comment.
3272 * m2-valprint.c (m2_value_print_inner): Remove comment.
3273 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3276 2020-10-17 Tom de Vries <tdevries@suse.de>
3279 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3282 2020-10-14 Tom de Vries <tdevries@suse.de>
3285 * solib.c (solib_contains_address_p): Handle
3286 'solib->sections == nullptr'.
3288 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3291 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3292 target can't do async.
3293 * target.c (target_wait): Assert that we don't pass
3294 TARGET_WNOHANG to a target that can't async.
3296 2020-10-13 Kamil Rytarowski <n54@gmx.com>
3298 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3299 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3300 * alpha-bsd-nat.c: Adjust include.
3301 * alpha-bsd-tdep.h: Adjust comment.
3302 * alpha-nbsd-tdep.c: Rename to ...
3303 * alpha-netbsd-tdep.c: ... this, adjust include.
3304 * amd64-nbsd-nat.c: Rename to ...
3305 * amd64-netbsd-nat.c: ... this, adjust include.
3306 * amd64-nbsd-tdep.c: Rename to ...
3307 * amd64-netbsd-tdep.c: ... this, adjust include.
3308 * amd64-tdep.h: Adjust include.
3309 * arm-nbsd-nat.c: Rename to ...
3310 * arm-netbsd-nat.c: ... this, adjust include.
3311 * arm-nbsd-tdep.c: Rename to ...
3312 * arm-netbsd-tdep.c: ... this, adjust include.
3313 * arm-nbsd-tdep.h: Rename to ...
3314 * arm-netbsd-tdep.h: ... this, adjust include.
3315 * configure.nat: Adjust file lists.
3316 * configure.tgt: Likewise.
3317 * hppa-nbsd-nat.c: Rename to ...
3318 * hppa-netbsd-nat.c: ... this, adjust include.
3319 * hppa-nbsd-tdep.c: Rename to ...
3320 * hppa-netbsd-tdep.c: ... this, adjust include.
3321 * i386-nbsd-nat.c: Rename to ...
3322 * i386-netbsd-nat.c: ... this, adjust include.
3323 * i386-nbsd-tdep.c: Rename to ...
3324 * i386-netbsd-tdep.c: ... this, adjust include.
3325 * m68k-bsd-nat.c: Adjust include.
3326 * mips-nbsd-nat.c: Rename to ...
3327 * mips-netbsd-nat.c: ... this, adjust include.
3328 * mips-nbsd-tdep.c: Rename to ...
3329 * mips-netbsd-tdep.c: ... this, adjust include.
3330 * mips-nbsd-tdep.h: Rename to ...
3331 * mips-netbsd-tdep.h: ... this.
3332 * nbsd-nat.c: Rename to ...
3333 * netbsd-nat.c: ... this, adjust include.
3334 * nbsd-nat.h: Rename to ...
3335 * netbsd-nat.h: ... this, adjust include.
3336 * nbsd-tdep.c: Rename to ...
3337 * netbsd-tdep.c: ... this, adjust include.
3338 * nbsd-tdep.h: Rename to ...
3339 * netbsd-tdep.h: ... this.
3340 * ppc-nbsd-nat.c: Rename to ...
3341 * ppc-netbsd-nat.c: ... this, adjust include.
3342 * ppc-nbsd-tdep.c: Rename to ...
3343 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3344 * ppc-nbsd-tdep.h: Rename to ...
3345 * ppc-netbsd-tdep.h: ... this.
3346 * sh-nbsd-nat.c: Rename to ...
3347 * sh-netbsd-nat.c: ... this, adjust include.
3348 * sh-nbsd-tdep.c: Rename to ...
3349 * sh-netbsd-tdep.c: ... this, adjust include.
3350 * sparc-nbsd-nat.c: Rename to ...
3351 * sparc-netbsd-nat.c: ... this.
3352 * sparc-nbsd-tdep.c: Rename to ...
3353 * sparc-netbsd-tdep.c: ... this, adjust include.
3354 * sparc64-nbsd-nat.c: Rename to ...
3355 * sparc64-netbsd-nat.c: ... this.
3356 * sparc64-nbsd-tdep.c: Rename to ...
3357 * sparc64-netbsd-tdep.c: ... this, adjust include.
3358 * sparc64-tdep.h: Adjust comment.
3359 * vax-bsd-nat.c: Adjust include.
3360 * vax-nbsd-tdep.c: Rename to ...
3361 * vax-netbsd-tdep.c: ... this, adjust include.
3363 2020-10-12 Tom Tromey <tom@tromey.com>
3365 * target.h (struct target_ops) <get_section_table>: Update.
3366 (target_get_section_table): Update.
3367 * target.c (target_get_section_table, target_section_by_addr)
3368 (memory_xfer_partial_1): Update.
3369 * target-section.h (target_section_table): Now an alias.
3370 * target-delegates.c: Rebuild.
3371 * target-debug.h (target_debug_print_target_section_table_p):
3372 Rename from target_debug_print_struct_target_section_table_p.
3373 * symfile.c (build_section_addr_info_from_section_table): Update.
3374 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3375 * solib-svr4.c (scan_dyntag): Update.
3376 * solib-dsbt.c (scan_dyntag): Update.
3377 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3379 * record-full.c (record_full_core_target::xfer_partial): Update.
3380 * progspace.h (struct program_space) <target_sections>: Update.
3381 * exec.h (print_section_info): Update.
3382 * exec.c (exec_target::close, build_section_table)
3383 (add_target_sections, add_target_sections_of_objfile)
3384 (remove_target_sections, exec_on_vfork)
3385 (section_table_available_memory)
3386 (section_table_xfer_memory_partial)
3387 (exec_target::get_section_table, exec_target::xfer_partial)
3388 (print_section_info, set_section_command)
3389 (exec_set_section_address, exec_target::has_memory): Update.
3390 * corelow.c (core_target::build_file_mappings)
3391 (core_target::xfer_partial, core_target::info_proc_mappings)
3392 (core_target::info_proc_mappings): Update.
3393 * bfd-target.c (class target_bfd): Update
3395 2020-10-12 Tom Tromey <tom@tromey.com>
3397 * progspace.c (program_space::~program_space): Don't call
3398 clear_section_table.
3399 * exec.h (clear_section_table): Don't declare.
3400 * exec.c (exec_target::close): Update.
3401 (clear_section_table): Remove.
3403 2020-10-12 Tom Tromey <tom@tromey.com>
3405 * exec.c (add_target_sections_of_objfile): Simplify.
3407 2020-10-12 Tom Tromey <tom@tromey.com>
3409 * solib.c (solib_map_sections): Update.
3410 * record-full.c (record_full_core_open_1): Update.
3411 * exec.h (build_section_table): Return a target_section_table.
3412 * exec.c (exec_file_attach): Update.
3413 (build_section_table): Return a target_section_table.
3414 * corelow.c (core_target::core_target): Update.
3415 * bfd-target.c (target_bfd::target_bfd): Update.
3417 2020-10-12 Tom Tromey <tom@tromey.com>
3419 * target.c (target_section_by_addr, memory_xfer_partial_1):
3421 * target-section.h (struct target_section_table): Use
3423 * symfile.h (build_section_addr_info_from_section_table): Take a
3424 target_section_table.
3425 * symfile.c (build_section_addr_info_from_section_table): Take a
3426 target_section_table.
3427 * solist.h (struct so_list) <sections>: Change type.
3428 <sections_end>: Remove.
3429 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3430 (solib_contains_address_p): Update.
3431 * solib-svr4.c (scan_dyntag): Update.
3432 * solib-dsbt.c (scan_dyntag): Update.
3433 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3435 * record-full.c (record_full_core_start, record_full_core_end):
3437 (record_full_core_sections): New global.
3438 (record_full_core_open_1, record_full_core_target::xfer_partial):
3440 * exec.h (build_section_table, section_table_xfer_memory_partial)
3441 (add_target_sections): Take a target_section_table.
3442 * exec.c (exec_file_attach, clear_section_table): Update.
3443 (resize_section_table): Remove.
3444 (build_section_table, add_target_sections): Take a
3445 target_section_table.
3446 (add_target_sections_of_objfile, remove_target_sections)
3447 (exec_on_vfork): Update.
3448 (section_table_available_memory): Take a target_section_table.
3449 (section_table_read_available_memory): Update.
3450 (section_table_xfer_memory_partial): Take a target_section_table.
3451 (print_section_info, set_section_command)
3452 (exec_set_section_address, exec_target::has_memory): Update.
3453 * corelow.c (class core_target) <m_core_section_table,
3454 m_core_file_mappings>: Remove braces.
3455 <~core_target>: Remove.
3456 (core_target::core_target): Update.
3457 (core_target::~core_target): Remove.
3458 (core_target::build_file_mappings)
3459 (core_target::xfer_memory_via_mappings)
3460 (core_target::xfer_partial, core_target::info_proc_mappings):
3462 * bfd-target.c (target_bfd::xfer_partial): Update.
3463 (target_bfd::target_bfd): Update.
3464 (target_bfd::~target_bfd): Remove.
3466 2020-10-12 Tom Tromey <tom@tromey.com>
3468 * target.h (struct target_section, struct target_section_table):
3469 Move to target-section.h.
3470 * target-section.h: New file.
3472 2020-10-12 Pedro Alves <pedro@palves.net>
3475 * valops.c (struct struct_field_searcher): New.
3476 (update_search_result): Rename to ...
3477 (struct_field_searcher::update_result): ... this. Simplify
3478 prototype. Record all found fields.
3479 (do_search_struct_field): Rename to ...
3480 (struct_field_searcher::search): ... this. Simplify prototype.
3481 Maintain stack of visited baseclass path. Call update_result for
3482 fields too. Keep searching fields in baseclasses instead of
3483 stopping at the first found field.
3484 (search_struct_field): Use struct_field_searcher. When looking
3485 for fields, report ambiguous access attempts.
3487 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3489 * frame.c (inside_main_func): Check full symbols as well as
3492 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3494 * ada-lang.c (advance_wild_match): Rewrite the function's
3495 description. Change the type of target0, t0 and t1 to char.
3497 2020-10-09 Tom Tromey <tromey@adacore.com>
3499 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3501 2020-10-09 Tom Tromey <tromey@adacore.com>
3503 * ada-lang.h (ada_encode): Return std::string.
3504 * ada-lang.c (ada_encode_1): Return std::string.
3505 (ada_encode): Likewise.
3506 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3508 * ada-exp.y (block_lookup, write_var_or_type): Update.
3510 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3513 * printcmd.c (print_formatted): Handle void results as
3516 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3518 * arch/aarch32.c (aarch32_create_target_description): Release the
3519 target_desc_up as late as possible.
3520 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3521 * arch/amd64.c (amd64_create_target_description): Likewise.
3522 * arch/arc.c (arc_create_target_description): Return a
3523 target_desc_up, don't release it.
3524 * arch/arc.h (arc_create_target_description): Update declaration.
3525 (arc_lookup_target_description): Move target_desc_up into the
3526 cache, and return a borrowed pointer.
3527 * arch/arm.c (arm_create_target_description): Release the
3528 target_desc_up as late as possible.
3529 * arch/i386.c (i386_create_target_description): Likewise.
3530 * arch/riscv.h (riscv_create_target_description): Update
3531 declaration to match definition.
3532 * arch/tic6x.c (tic6x_create_target_description): Release the
3533 target_desc_up as late as possible.
3535 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3537 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3538 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3540 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3542 * source.c (directory_command): Notify observers that "directories"
3543 parameter has changed.
3545 2020-10-08 Tom Tromey <tom@tromey.com>
3547 * cli/cli-cmds.c (print_disassembly): Style function name and
3548 addresses. Add _() wrappers.
3550 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3552 * NEWS: Mention ARC support in GDBserver.
3554 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3556 * arch/aarch32.c (aarch32_create_target_description): Release
3557 unique_ptr returned from allocate_target_description.
3558 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3559 * arch/amd64.c (amd64_create_target_description): Likewise.
3560 * arch/arc.c (arc_create_target_description): Likewise.
3561 * arch/arm.c (arm_create_target_description): Likewise.
3562 * arch/i386.c (i386_create_target_description): Likewise.
3563 * arch/riscv.c (riscv_create_target_description): Update return
3564 type. Handle allocate_target_description returning a unique_ptr.
3565 (riscv_lookup_target_description): Update to handle unique_ptr.
3566 * arch/tic6x.c (tic6x_create_target_description): Release
3567 unique_ptr returned from allocate_target_description.
3568 * features/microblaze-with-stack-protect.c: Regenerate.
3569 * features/microblaze.c: Regenerate.
3570 * features/mips-dsp-linux.c: Regenerate.
3571 * features/mips-linux.c: Regenerate.
3572 * features/mips64-dsp-linux.c: Regenerate.
3573 * features/mips64-linux.c: Regenerate.
3574 * features/nds32.c: Regenerate.
3575 * features/nios2.c: Regenerate.
3576 * features/or1k.c: Regenerate.
3577 * features/rs6000/powerpc-32.c: Regenerate.
3578 * features/rs6000/powerpc-32l.c: Regenerate.
3579 * features/rs6000/powerpc-403.c: Regenerate.
3580 * features/rs6000/powerpc-403gc.c: Regenerate.
3581 * features/rs6000/powerpc-405.c: Regenerate.
3582 * features/rs6000/powerpc-505.c: Regenerate.
3583 * features/rs6000/powerpc-601.c: Regenerate.
3584 * features/rs6000/powerpc-602.c: Regenerate.
3585 * features/rs6000/powerpc-603.c: Regenerate.
3586 * features/rs6000/powerpc-604.c: Regenerate.
3587 * features/rs6000/powerpc-64.c: Regenerate.
3588 * features/rs6000/powerpc-64l.c: Regenerate.
3589 * features/rs6000/powerpc-7400.c: Regenerate.
3590 * features/rs6000/powerpc-750.c: Regenerate.
3591 * features/rs6000/powerpc-860.c: Regenerate.
3592 * features/rs6000/powerpc-altivec32.c: Regenerate.
3593 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3594 * features/rs6000/powerpc-altivec64.c: Regenerate.
3595 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3596 * features/rs6000/powerpc-e500.c: Regenerate.
3597 * features/rs6000/powerpc-e500l.c: Regenerate.
3598 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3599 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3600 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3601 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3602 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3603 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3604 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3605 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3606 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3607 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3608 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3609 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3610 * features/rs6000/powerpc-vsx32.c: Regenerate.
3611 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3612 * features/rs6000/powerpc-vsx64.c: Regenerate.
3613 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3614 * features/rs6000/rs6000.c: Regenerate.
3615 * features/rx.c: Regenerate.
3616 * features/s390-gs-linux64.c: Regenerate.
3617 * features/s390-linux32.c: Regenerate.
3618 * features/s390-linux32v1.c: Regenerate.
3619 * features/s390-linux32v2.c: Regenerate.
3620 * features/s390-linux64.c: Regenerate.
3621 * features/s390-linux64v1.c: Regenerate.
3622 * features/s390-linux64v2.c: Regenerate.
3623 * features/s390-te-linux64.c: Regenerate.
3624 * features/s390-tevx-linux64.c: Regenerate.
3625 * features/s390-vx-linux64.c: Regenerate.
3626 * features/s390x-gs-linux64.c: Regenerate.
3627 * features/s390x-linux64.c: Regenerate.
3628 * features/s390x-linux64v1.c: Regenerate.
3629 * features/s390x-linux64v2.c: Regenerate.
3630 * features/s390x-te-linux64.c: Regenerate.
3631 * features/s390x-tevx-linux64.c: Regenerate.
3632 * features/s390x-vx-linux64.c: Regenerate.
3633 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3634 from allocate_target_description.
3635 * target-descriptions.c (allocate_target_description): Update
3637 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3638 allocate_target_description.
3640 2020-10-07 Tom Tromey <tromey@adacore.com>
3642 * unittests/search-memory-selftests.c: New file.
3643 * Makefile.in (SELFTESTS_SRCS): Add
3644 unittests/search-memory-selftests.c.
3646 2020-10-07 Tom Tromey <tromey@adacore.com>
3649 * findcmd.c (_initialize_mem_search): Mention that the range is
3652 2020-10-07 Tom Tromey <tromey@adacore.com>
3654 * target.h (simple_search_memory): Don't declare.
3655 * target.c (simple_search_memory): Move to gdbsupport.
3656 (default_search_memory): Update.
3657 * remote.c (remote_target::search_memory): Update.
3659 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3661 * Makefile.in (COMPILE): Add CXXFLAGS.
3662 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3663 (check-headers): Add CXXFLAGS.
3665 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3667 * arc-linux-tdep.h: New file.
3668 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3669 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3670 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3671 arc_linux_gregset, arc_linux_v2_regset,
3672 arc_linux_iterate_over_regset_sections,
3673 arc_linux_core_read_description): Implement.
3674 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3675 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3676 (arc_gdbarch_features_create): Add.
3677 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3679 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3681 * arch/arc.h: Rename "arc_gdbarch_features" to
3682 "arc_arch_features".
3683 * arc-tdep.h: Likewise.
3684 * arc-tdep.c: Likewise.
3686 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3688 * infcmd.c (attach_command): Remove the redundant call to
3689 `clear_proceed_status`.
3691 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3693 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3695 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3697 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3698 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3699 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3701 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3703 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3704 (_initialize_break_catch_sig): Don't allocate array.
3706 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3708 * symtab.c (find_pc_line): Return unmapped addresses when the
3709 requested address is also unmapped.
3711 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3713 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3716 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3718 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3719 type::is_vector instead of TYPE_VECTOR.
3721 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3723 * auto-load.c (auto_load_objfile_script_1): Don't use
3724 debugfile_holder as temporary variable when stripping drive
3727 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3729 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3730 Add TYPE_CODE_COMPLEX.
3731 (amd64_windows_return_value): Fix types returned via XMM0.
3733 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3735 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3736 AArch64/ARM maintainers.
3738 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3740 * NEWS: Mention set/show debug event-loop.
3742 2020-10-02 Tom Tromey <tromey@adacore.com>
3744 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3747 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3749 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3750 * procfs.c (procfs_inferior_created): Remove.
3751 (_initialize_procfs): Don't register procfs_inferior_created.
3753 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3755 * async-event.c (invoke_async_signal_handlers): Add debug
3757 (check_async_event_handlers): Likewise.
3758 * event-top.c (show_debug_event_loop): New function.
3759 (_initialize_event_top): Register "set debug event-loop"
3762 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3764 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3766 * infrun.c: Include gdbsupport/common-debug.h.
3767 * linux-nat.c: Likewise.
3769 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3771 * async-event.h (create_async_signal_handler): Add name
3773 (create_async_event_handler): Likewise.
3774 * async-event.c (struct async_signal_handler) <name>: New field.
3775 (struct async_event_handler) <name>: New field.
3776 (create_async_signal_handler): Assign name.
3777 (create_async_event_handler): Assign name.
3778 * event-top.c (async_init_signals): Pass name when creating
3780 * infrun.c (_initialize_infrun): Likewise.
3781 * record-btrace.c (record_btrace_push_target): Likewise.
3782 * record-full.c (record_full_open): Likewise.
3783 * remote-notif.c (remote_notif_state_allocate): Likewise.
3784 * remote.c (remote_target::open_1): Likewise.
3785 * tui/tui-win.c (tui_initialize_win): Likewise.
3787 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3789 * async-event.c (initialize_async_signal_handlers): Pass name to
3791 * event-top.c (ui_register_input_event_handler): Likewise.
3792 * linux-nat.c (linux_nat_target::async): Likewise.
3793 * run-on-main-thread.c (_initialize_run_on_main_thread):
3795 * ser-base.c (reschedule): Likewise.
3796 (ser_base_async): Likewise.
3797 * tui/tui-io.c: Likewise.
3798 * top.h (struct ui) <num>: New field.
3799 * top.c (highest_ui_num): New variable.
3800 (ui::ui): Initialize num.
3802 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3804 * observable.h <inferior_created>: Remove parameters. Update all
3806 * inferior.h (post_create_inferior): Remove target parameter.
3809 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3811 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3812 and DW_MACRO_undef_strx.
3813 (dwarf_decode_macros): Likewise
3814 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3815 which is the value of DW_AT_str_offsets_base.
3816 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3819 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3821 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3823 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3825 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3826 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3828 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3830 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3832 2020-09-30 Tom de Vries <tdevries@suse.de>
3835 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3837 2020-09-30 Tom Tromey <tromey@adacore.com>
3839 * dwarf2/read.c (handle_variant): Use constant_value.
3841 2020-09-29 Tom Tromey <tom@tromey.com>
3843 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3844 (read_file_scope, dwarf2_get_pc_bounds)
3845 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3846 (read_structure_type, handle_struct_member_die)
3847 (read_enumeration_type, read_array_type, read_set_type)
3848 (read_tag_pointer_type, read_tag_reference_type)
3849 (read_subroutine_type, read_base_type, read_subrange_type)
3850 (read_full_die_1, partial_die_info::read)
3851 (partial_die_info::read, by, new_symbol)
3852 (dwarf2_const_value_data, dwarf2_const_value_attr)
3853 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3854 (prepare_one_comp_unit): Update.
3855 * dwarf2/attribute.h (DW_UNSND): Remove.
3857 2020-09-29 Tom Tromey <tom@tromey.com>
3859 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3860 (read_subroutine_type, partial_die_info::read)
3861 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3862 (dwarf2_add_member_fn): Update.
3863 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3864 * dwarf2/attribute.c (attribute::as_boolean): New method.
3866 2020-09-29 Tom Tromey <tom@tromey.com>
3868 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3869 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3871 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3873 2020-09-29 Tom Tromey <tom@tromey.com>
3875 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3876 the attribute's form.
3878 2020-09-29 Tom Tromey <tom@tromey.com>
3880 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3881 (dwarf2_add_member_fn): Update.
3882 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3883 * dwarf2/attribute.c (attribute::defaulted): New method, from
3884 is_valid_DW_AT_defaulted.
3886 2020-09-29 Tom Tromey <tom@tromey.com>
3888 * dwarf2/read.c (dw2_get_file_names_reader)
3889 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3890 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3891 (dwarf2_symbol_mark_computed): Use as_unsigned.
3892 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3894 <form_is_section_offset>: Update comment.
3896 2020-09-29 Tom Tromey <tom@tromey.com>
3898 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3899 dwarf2_default_access_attribute. Look up attribute.
3900 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3903 2020-09-29 Tom Tromey <tom@tromey.com>
3905 * dwarf2/read.c (skip_one_die): Update.
3906 (read_full_die_1): Change how reprocessing is done.
3907 (partial_die_info::read): Update.
3908 (read_attribute_value): Remove need_reprocess parameter.
3909 (read_attribute): Likewise.
3910 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3913 2020-09-29 Tom Tromey <tom@tromey.com>
3915 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3916 (dwarf2_const_value_attr, dump_die_shallow)
3917 (dwarf2_fetch_constant_bytes): Update.
3918 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3920 <set_address>: New method.
3922 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3923 (attribute::as_string, attribute::as_address): Add assert.
3925 2020-09-29 Tom Tromey <tom@tromey.com>
3927 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3928 (read_attribute_reprocess, read_attribute_value): Update.
3929 (read_attribute): Clear requires_reprocessing.
3930 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3931 form_requires_reprocessing>: New methods.
3932 <string_init>: Clear requires_reprocessing.
3933 <set_unsigned_reprocess>: New method.
3934 <name>: Shrink by one bit.
3935 <requires_reprocessing>: New member.
3936 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3939 2020-09-29 Tom Tromey <tom@tromey.com>
3941 * dwarf2/read.c (read_attribute_value): Update.
3942 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3943 set_unsigned>: New methods.
3944 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3946 2020-09-29 Tom Tromey <tom@tromey.com>
3948 * dwarf2/read.c (get_alignment, read_array_order)
3949 (read_attribute_value, dwarf2_const_value_attr)
3950 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3951 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3955 2020-09-29 Tom Tromey <tom@tromey.com>
3957 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3958 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3960 * dwarf2/attribute.h (struct attribute) <as_signature,
3961 set_signature>: New methods.
3962 (DW_SIGNATURE): Remove.
3964 2020-09-29 Tom Tromey <tom@tromey.com>
3966 * dwarf2/read.c (read_call_site_scope)
3967 (handle_data_member_location, dwarf2_add_member_fn)
3968 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3969 (partial_die_info::read, read_attribute_value)
3970 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3971 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3972 (dwarf2_symbol_mark_computed): Update.
3973 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3976 * dwarf2/attribute.c (attribute::form_is_block): Add
3979 2020-09-29 Tom Tromey <tom@tromey.com>
3981 * dwarf2/read.c (read_cutu_die_from_dwo)
3982 (read_attribute_reprocess, read_attribute_value, read_attribute)
3983 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3984 (dwarf2_fetch_constant_bytes): Update.
3985 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3986 <set_string_noncanonical, set_string_canonical>: New methods.
3987 <string_is_canonical>: Update comment.
3988 <canonical_string_p>: Add assert.
3989 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3990 * dwarf2/attribute.c (attribute::form_is_string): New method.
3991 (attribute::string): Use it.
3993 2020-09-29 Tom Tromey <tom@tromey.com>
3995 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3996 (dump_die_shallow): Use canonical_string_p.
3997 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
4000 2020-09-29 Tom Tromey <tom@tromey.com>
4002 * dwarf2/read.c (partial_die_info::read)
4003 (dwarf2_const_value_attr, anonymous_struct_prefix, )
4004 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
4005 attribute::as_string.
4007 2020-09-29 Tom Tromey <tom@tromey.com>
4009 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
4011 (attribute::string): Don't use DW_STRING.
4012 (attribute::get_ref_die_offset): Don't use DW_UNSND.
4013 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
4015 2020-09-29 Tom Tromey <tom@tromey.com>
4017 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
4018 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
4019 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
4020 * dwarf2/attribute.h (struct attribute): Rename methods.
4021 * dwarf2/attribute.c (attribute::as_address): Rename from
4023 (attribute::as_string): Rename from value_as_string.
4025 2020-09-29 Tom Tromey <tom@tromey.com>
4027 * dwarf2/read.c (partial_die_info::read) <case
4028 DW_AT_linkage_name>: Use value_as_string.
4029 (dwarf2_string_attr): Use value_as_string.
4030 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4032 * dwarf2/attribute.c (attribute::value_as_string): New method.
4034 2020-09-29 Pedro Alves <pedro@palves.net>
4036 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
4037 defined before using '#pragma GCC diagnostic' instead of checking
4040 2020-09-28 Tom Tromey <tom@tromey.com>
4042 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
4043 (handle_signal_stop): Update.
4044 * procfs.c (procfs_target::insert_watchpoint): Update.
4045 * target.h (target_have_steppable_watchpoint): Now a function.
4047 2020-09-28 Tom Tromey <tom@tromey.com>
4049 * infrun.c (set_schedlock_func): Update.
4050 * target.h (target_can_lock_scheduler): Now a function.
4052 2020-09-28 Tom Tromey <tom@tromey.com>
4054 * inferior.h (class inferior) <has_execution>: Update.
4055 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
4056 * valops.c (find_function_in_inferior)
4057 (value_allocate_space_in_inferior): Update.
4058 * top.c (kill_or_detach): Update.
4059 * target.c (target_preopen, set_target_permissions): Update.
4060 (target_has_execution_current): Remove.
4061 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
4063 * solib.c (update_solib_list, reload_shared_libraries): Update.
4064 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
4065 * solib-dsbt.c (enable_break): Update.
4066 * score-tdep.c (score7_fetch_inst): Update.
4067 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
4069 * remote.c (remote_target::start_remote)
4070 (remote_target::remote_check_symbols, remote_target::open_1)
4071 (remote_target::remote_detach_1, remote_target::verify_memory)
4072 (remote_target::xfer_partial, remote_target::read_description)
4073 (remote_target::get_min_fast_tracepoint_insn_len): Update.
4074 * record-full.c (record_full_open_1): Update.
4075 * record-btrace.c (record_btrace_target_open): Update.
4076 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4077 (value_nsstring): Update.
4078 * linux-thread-db.c (add_thread_db_info)
4079 (thread_db_find_new_threads_silently, check_thread_db_callback)
4080 (try_thread_db_load_1, record_thread): Update.
4081 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
4083 * linux-fork.c (checkpoint_command): Update.
4084 * infrun.c (set_non_stop, set_observer_mode)
4085 (check_multi_target_resumption, for_each_just_stopped_thread)
4086 (maybe_remove_breakpoints, normal_stop)
4087 (class infcall_suspend_state): Update.
4088 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
4089 (info_program_command, attach_command): Update.
4090 * infcall.c (call_function_by_hand_dummy): Update.
4091 * inf-loop.c (inferior_event_handler): Update.
4092 * gcore.c (gcore_command, derive_heap_segment): Update.
4093 * exec.c (exec_file_command): Update.
4094 * eval.c (evaluate_subexp): Update.
4095 * compile/compile.c (compile_to_object): Update.
4096 * cli/cli-dump.c (restore_command): Update.
4097 * breakpoint.c (update_watchpoint)
4098 (update_inserted_breakpoint_locations)
4099 (insert_breakpoint_locations, get_bpstat_thread): Update.
4100 * target.h (target_has_execution): Remove macro.
4101 (target_has_execution_current): Don't declare.
4102 (target_has_execution): Rename from target_has_execution_1. Add
4105 2020-09-28 Tom Tromey <tom@tromey.com>
4107 * mi/mi-main.c (exec_reverse_continue)
4108 (mi_cmd_list_target_features): Update.
4109 * infrun.c (set_exec_direction_func): Update.
4110 * target.c (default_execution_direction): Update.
4111 * reverse.c (exec_reverse_once): Update.
4112 * target.h (target_can_execute_reverse): Now a function.
4114 2020-09-28 Tom Tromey <tom@tromey.com>
4116 * tui/tui-regs.c (tui_get_register)
4117 (tui_data_window::show_registers): Update.
4118 * thread.c (scoped_restore_current_thread::restore)
4119 (scoped_restore_current_thread::scoped_restore_current_thread):
4121 * regcache-dump.c (regcache_print): Update.
4122 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
4124 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
4125 * mep-tdep.c (current_me_module, current_options): Update.
4126 * linux-thread-db.c (thread_db_load): Update.
4127 * infcmd.c (registers_info, info_vector_command)
4128 (info_float_command): Update.
4129 * ia64-tdep.c (ia64_frame_prev_register)
4130 (ia64_sigtramp_frame_prev_register): Update.
4131 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
4132 * gcore.c (derive_stack_segment): Update.
4133 * frame.c (get_current_frame, has_stack_frames): Update.
4134 * findvar.c (language_defn::read_var_value): Update.
4135 * arm-tdep.c (arm_pc_is_thumb): Update.
4136 * target.c (target_has_registers): Rename from
4137 target_has_registers_1.
4138 * target.h (target_has_registers): Remove macro.
4139 (target_has_registers): Rename from target_has_registers_1.
4141 2020-09-28 Tom Tromey <tom@tromey.com>
4143 * windows-tdep.c (tlb_make_value): Update.
4144 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4145 * thread.c (scoped_restore_current_thread::restore)
4146 (scoped_restore_current_thread::scoped_restore_current_thread)
4147 (thread_command): Update.
4148 * stack.c (backtrace_command_1, frame_apply_level_command)
4149 (frame_apply_all_command, frame_apply_command): Update.
4150 * infrun.c (siginfo_make_value, restore_infcall_control_state):
4152 * gcore.c (derive_stack_segment): Update.
4153 * frame.c (get_current_frame, has_stack_frames): Update.
4154 * auxv.c (info_auxv_command): Update.
4155 * ada-tasks.c (ada_build_task_list): Update.
4156 * target.c (target_has_stack): Rename from target_has_stack_1.
4157 * target.h (target_has_stack): Remove macro.
4158 (target_has_stack): Rename from target_has_stack_1.
4160 2020-09-28 Tom Tromey <tom@tromey.com>
4162 * target.c (target_has_memory): Rename from target_has_memory_1.
4163 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4164 * thread.c (scoped_restore_current_thread::restore)
4165 (scoped_restore_current_thread::scoped_restore_current_thread):
4167 * frame.c (get_current_frame, has_stack_frames): Update.
4168 * target.h (target_has_memory): Remove macro.
4169 (target_has_memory): Rename from target_has_memory_1.
4171 2020-09-28 Tom Tromey <tom@tromey.com>
4173 * target.c (target_has_all_memory_1): Remove.
4174 * target.h (target_has_all_memory): Remove define.
4175 (target_has_all_memory_1): Don't declare.
4177 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4179 * ser-base.c: Adjust comments formatting.
4181 2020-09-27 Tom Tromey <tom@tromey.com>
4184 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
4186 2020-09-27 Tom Tromey <tom@tromey.com>
4189 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
4191 2020-09-27 Tom Tromey <tom@tromey.com>
4193 * unittests/tui-selftests.c: Update.
4194 * tui/tui-winsource.h (struct tui_source_window_base)
4195 <extra_margin, show_line_number, refresh_pad>: New methods.
4196 <m_max_length, m_pad>: New members.
4197 (tui_copy_source_line): Update.
4198 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
4199 first_col, line_width, ndigits parameters. Add length.
4200 (tui_source_window_base::show_source_line): Write to pad. Line
4202 (tui_source_window_base::refresh_pad): New method.
4203 (tui_source_window_base::show_source_content): Write to pad. Call
4205 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
4207 (tui_source_window_base::update_exec_info): Call
4209 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
4211 <m_digits>: New member.
4212 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
4214 (tui_source_window::show_line_number): New method.
4215 * tui/tui-io.h (tui_puts): Fix comment.
4216 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
4219 2020-09-27 Tom Tromey <tom@tromey.com>
4221 * tui/tui-winsource.c
4222 (tui_source_window_base::set_is_exec_point_at): Don't call
4225 2020-09-27 Tom Tromey <tom@tromey.com>
4227 * python/py-tui.c (class tui_py_window) <refresh_window>: New
4230 <cursor_x, cursor_y>: Remove.
4231 <m_inner_window>: New member.
4232 (tui_py_window::rerender): Create inner window.
4233 (tui_py_window::output): Write to inner window.
4235 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4238 * cli/cli-script.c (execute_control_commands): don't set
4239 instream to nullptr here as this breaks the from_tty argument
4240 to gdb.execute in Python.
4241 (execute_user_command): set instream to nullptr here instead.
4243 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
4245 * infrun.h (infrun_debug_printf): Fix formatting.
4246 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4248 2020-09-25 Saagar Jha <saagar@saagarjha.com>
4250 * compile/compile-object-load.h (struct munmap_list): Add
4251 explicitly-defined move constructor.
4253 2020-09-24 Tom Tromey <tromey@adacore.com>
4256 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4258 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4259 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4260 (tui_prev_win): Rewrite.
4262 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
4264 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4265 in WOW64 processes as SIGINT.
4266 * nat/windows-nat.h: Make wow64_process a shared variable.
4267 * windows-nat.c: Remove static wow64_process variable.
4269 2020-09-23 Tom Tromey <tom@tromey.com>
4272 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4273 offset and bit size.
4274 * printcmd.c (print_scalar_formatted): Handle zero-length
4276 (print_scalar_formatted): Use bit_size_differs_p.
4277 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4279 (union type_specific): <int_stuff>: New member.
4280 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4282 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4283 TYPE_SPECIFIC_FIELD.
4284 (recursive_dump_type, copy_type_recursive): Update.
4285 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4286 DW_AT_data_bit_offset.
4288 2020-09-23 Tom Tromey <tom@tromey.com>
4290 * utils.h (class gdb_argv): Add move operators.
4291 <append>: New methods.
4292 * compile/compile.c (build_argc_argv): Remove.
4293 (compile_args_argc): Remove.
4294 (compile_args_argv): Change type.
4295 (set_compile_args): Simplify.
4296 (append_args): Remove.
4297 (filter_args): Remove argcp parameter.
4298 (get_args): Return gdb_argv. Simplify.
4299 (compile_to_object): Update.
4301 2020-09-23 Tom Tromey <tom@tromey.com>
4303 * compile/compile-object-run.c (do_module_cleanup)
4304 <~do_module_cleanup> :Remove.
4305 (do_module_cleanup): Update.
4306 * compile/compile-object-load.h (struct munmap_list): Add move
4307 assignment operator.
4308 <source_file>: Now a std::string.
4309 <munmap_list>: Rename. No longer a pointer.
4310 * compile/compile-object-load.c (struct setup_sections_data): Add
4312 <setup_one_section>: Declare.
4313 <munmap_list>: Move earlier.
4314 <m_bfd>: New member.
4315 <m_last_size, m_last_section_first, m_last_prot,
4316 m_last_max_alignment>: Rename, add initializers where needed.
4317 (setup_sections_data::setup_one_section): Rename from
4318 setup_sections. Update.
4319 (compile_object_load): Update. Don't use bfd_map_over_sections.
4321 2020-09-23 Tom Tromey <tom@tromey.com>
4323 * compile/compile-object-run.c (struct do_module_cleanup): Add
4324 parameters to constructor. Update destructor.
4325 <source_file, scope, scope_data, out_value_type, out_value_addr,
4326 munmap_list_head, objfile_name_string>: Remove.
4327 <module>: New member.
4328 (do_module_cleanup): Update.
4329 (compile_object_run): Update.
4331 2020-09-23 Tom Tromey <tom@tromey.com>
4333 * compile/compile.c (eval_compile_command): Update.
4334 * compile/compile-object-run.h (compile_object_run): Take a
4336 * compile/compile-object-run.c (compile_object_run): Take a
4338 * compile/compile-object-load.h (struct compile_module): Add
4339 constructor, destructor.
4340 (compile_module_up): New typedef.
4341 (compile_object_load): Return compile_object_up.
4342 * compile/compile-object-load.c (compile_object_load): Return
4345 2020-09-23 Tom Tromey <tom@tromey.com>
4347 * compile/compile-object-run.c (struct do_module_cleanup): Add
4348 constructor, destructor.
4349 <objfile_name_string>: Don't use struct hack.
4350 (do_module_cleanup): Use delete.
4351 (compile_object_run): Use new.
4353 2020-09-23 Tom Tromey <tom@tromey.com>
4355 * compile/compile-cplus-types.c
4356 (compile_cplus_convert_struct_or_union): Use std::vector.
4357 (compile_cplus_convert_func): Likewise.
4358 * compile/compile-c-types.c (convert_func): Use std::vector.
4360 2020-09-21 Tom Tromey <tromey@adacore.com>
4362 * sparc-tdep.c (sparc32_skip_prologue): Use
4363 skip_prologue_using_sal.
4365 2020-09-19 Tom Tromey <tom@tromey.com>
4367 * symfile.c (add_section_size_callback): Remove.
4368 (load_one_section): Rename from load_section_callback. Change
4370 (generic_load): Use foreach.
4372 2020-09-19 Tom Tromey <tom@tromey.com>
4374 * exec.c (add_to_section_table): Remove.
4375 (build_section_table): Use foreach.
4377 2020-09-19 Tom Tromey <tom@tromey.com>
4379 * elfread.c (elf_locate_sections): Change parameters.
4380 (elf_symfile_read): Use foreach.
4382 2020-09-19 Tom Tromey <tom@tromey.com>
4384 * cli/cli-dump.c (struct callback_data): Remove.
4385 (restore_one_section): Rename from restore_section_callback.
4387 (restore_binary_file): Change parameters.
4388 (restore_command): Use foreach.
4390 2020-09-19 Tom Tromey <tom@tromey.com>
4392 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4393 (gcore_copy_callback): Likewise.
4394 (gcore_memory_sections): Use foreach.
4396 2020-09-19 Tom Tromey <tom@tromey.com>
4398 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4399 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4401 (generic_elf_osabi_sniffer): Use foreach.
4402 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4403 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4405 2020-09-19 Tom Tromey <tom@tromey.com>
4407 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4408 (dwarf2_get_dwz_file): Use foreach.
4409 (dwarf2_locate_dwo_sections): Change parameters.
4410 (open_and_init_dwo_file): Use foreach.
4411 (dwarf2_locate_common_dwp_sections): Change parameters.
4412 (open_and_init_dwp_file): Use foreach.
4414 2020-09-19 Tom Tromey <tom@tromey.com>
4416 * symfile.h: (find_lowest_section): Don't declare.
4417 * symfile.c (find_lowest_section): Now static. Change
4419 (struct place_section_arg): Remove.
4420 (place_section): Change parameters.
4421 (addr_info_make_relative): Use foreach.
4422 (symfile_dummy_outputs): Remove.
4423 (default_symfile_relocate): Use foreach.
4425 2020-09-19 Tom Tromey <tom@tromey.com>
4427 * objfiles.c (add_to_objfile_sections): Rename from
4428 add_to_objfile_sections_full.
4429 (add_to_objfile_sections): Remove.
4430 (build_objfile_section_table): Use foreach.
4432 2020-09-19 Tom Tromey <tom@tromey.com>
4434 * stap-probe.c (get_stap_base_address_1): Remove.
4435 (get_stap_base_address): Use foreach.
4437 2020-09-19 Tom Tromey <tom@tromey.com>
4439 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4441 (gdb_bfd_close_or_warn): Use foreach.
4443 2020-09-19 Tom Tromey <tom@tromey.com>
4445 * corelow.c (add_to_thread_list): Change parameters.
4446 (core_target_open): Use foreach.
4448 2020-09-19 Tom Tromey <tom@tromey.com>
4450 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4453 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4455 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4458 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4460 * eval.c: Remove 'f-lang.h' include.
4461 (value_f90_subarray): Moved to f-lang.c.
4462 (eval_call): Renamed to...
4463 (evaluate_subexp_do_call): ...this, is no longer static, header
4464 comment moved into header file.
4465 (evaluate_funcall): Update call to eval_call.
4466 (skip_undetermined_arglist): Moved to f-lang.c.
4467 (fortran_value_subarray): Likewise.
4468 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4469 moved to evaluate_subexp_f.
4470 (calc_f77_array_dims): Moved to f-lang.c
4471 * expprint.c (print_subexp_funcall): New function.
4472 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4473 moved to print_subexp_f, OP_FUNCALL uses new function.
4474 (dump_subexp_body_funcall): New function.
4475 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4476 moved to dump_subexp_f, OP_FUNCALL uses new function.
4477 * expression.h (evaluate_subexp_do_call): Declare.
4478 * f-lang.c (value_f90_subarray): Moved from eval.c.
4479 (skip_undetermined_arglist): Likewise.
4480 (calc_f77_array_dims): Likewise.
4481 (fortran_value_subarray): Likewise.
4482 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4483 (operator_length_f): Likewise.
4484 (print_subexp_f): Likewise.
4485 (dump_subexp_body_f): Likewise.
4486 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4487 declaration of this operation to here.
4488 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4489 support moved to operator_length_f.
4490 * parser-defs.h (dump_subexp_body_funcall): Declare.
4491 (print_subexp_funcall): Declare.
4492 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4493 fortran-operator.def.
4495 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4497 * eval.c (fortran_value_subarray): New function, content is taken
4499 (evaluate_subexp_standard): ...here, in two places. Now arrays
4500 and strings both call the new function.
4501 (calc_f77_array_dims): Add header comment, handle strings.
4503 2020-09-18 Victor Collod <vcollod@nvidia.com>
4506 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4507 (i386_analyze_prologue): Call i386_skip_endbr.
4509 2020-09-18 Tom Tromey <tromey@adacore.com>
4511 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4512 (windows_nat_target::wait): Update.
4513 * target/wait.h (enum target_wait_flag): New. Use
4514 DEF_ENUM_FLAGS_TYPE.
4515 * target/target.h (target_wait): Change type of options.
4516 * target.h (target_options_to_string, default_target_wait):
4518 (struct target_ops) <wait>: Change type of options.
4519 * target.c (target_wait, default_target_wait, do_option): Change
4521 (target_options_to_string): Likewise.
4522 * target-delegates.c: Rebuild.
4523 * target-debug.h (target_debug_print_target_wait_flags): Rename
4524 from target_debug_print_options.
4525 * sol-thread.c (class sol_thread_target) <wait>: Update.
4526 (sol_thread_target::wait): Update.
4527 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4528 (rs6000_nat_target::wait): Update.
4529 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4531 (remote_target::wait_ns, remote_target::wait_as): Change type of
4533 (remote_target::wait): Update.
4534 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4535 (gdbsim_target::wait): Update.
4536 * record-full.c (class record_full_base_target) <wait>: Update.
4537 (record_full_wait_1): Change type of "options".
4538 (record_full_base_target::wait): Update.
4539 * record-btrace.c (class record_btrace_target) <wait>: Update.
4540 (record_btrace_target::wait): Update.
4541 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4543 (ravenscar_thread_target::wait): Update.
4544 * procfs.c (class procfs_target) <wait>: Update.
4545 (procfs_target::wait): Update.
4546 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4547 * obsd-nat.c (obsd_nat_target::wait): Update.
4548 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4549 (nto_procfs_target::wait): Update.
4550 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4551 * nbsd-nat.c (nbsd_wait): Change type of "options".
4552 (nbsd_nat_target::wait): Update.
4553 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4554 (thread_db_target::wait): Update.
4555 * linux-nat.h (class linux_nat_target) <wait>: Update.
4556 * linux-nat.c (linux_nat_target::wait): Update.
4557 (linux_nat_wait_1): Update.
4558 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4560 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4561 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4562 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4563 (go32_nat_target::wait): Update.
4564 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4565 * gnu-nat.c (gnu_nat_target::wait): Update.
4566 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4567 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4568 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4569 * darwin-nat.c (darwin_nat_target::wait): Update.
4570 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4571 (bsd_uthread_target::wait): Update.
4572 * aix-thread.c (class aix_thread_target) <wait>: Update.
4573 (aix_thread_target::wait): Update.
4575 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4577 * compile/compile-object-run.c (create_copied_type_recursive): New
4579 (compile_object_run): Use new function.
4581 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4583 * NEWS: Mention x86_64 Cygwin core file support.
4585 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4587 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4588 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4590 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4592 * windows-tdep.h: Add prototypes.
4593 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4594 (i386_windows_core_pid_to_str): Move and rename ...
4595 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4596 (windows_core_pid_to_str): ... and here.
4597 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4599 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4600 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4601 (amd64_windows_init_abi_common): ... and register.
4603 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4605 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4606 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4608 2020-09-18 Pedro Alves <pedro@palves.net>
4611 * thread.c (thread_find_command): Switch inferior before calling
4614 2020-09-17 Tom Tromey <tromey@adacore.com>
4616 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4617 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4618 (tdesc_arch_data_up): New typedef.
4619 (tdesc_use_registers, tdesc_data_alloc): Update.
4620 (tdesc_data_cleanup): Don't declare.
4621 * target-descriptions.c (tdesc_data_alloc): Return a
4623 (tdesc_arch_data_deleter::operator()): Rename from
4624 tdesc_data_cleanup. Change argument type.
4625 (tdesc_use_registers): Change early_data to an rvalue reference.
4626 (tdesc_use_registers): Don't use delete.
4627 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4628 * s390-tdep.c (s390_gdbarch_init): Update.
4629 * rx-tdep.c (rx_gdbarch_init): Update.
4630 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4631 * riscv-tdep.c (riscv_gdbarch_init): Update.
4632 * or1k-tdep.c (or1k_gdbarch_init): Update.
4633 * nios2-tdep.c (nios2_gdbarch_init): Update.
4634 * nds32-tdep.c (nds32_gdbarch_init): Update.
4635 * mips-tdep.c (mips_gdbarch_init): Update.
4636 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4637 * m68k-tdep.c (m68k_gdbarch_init): Update.
4638 * i386-tdep.c (i386_gdbarch_init): Update.
4639 * arm-tdep.c (arm_gdbarch_init): Update.
4640 * arc-tdep.c (arc_tdesc_init): Update.
4641 (arc_gdbarch_init): Update.
4642 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4644 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4646 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4647 for WOW64 processes.
4649 2020-09-17 Tom Tromey <tom@tromey.com>
4651 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4653 2020-09-17 Tom Tromey <tom@tromey.com>
4655 * value.c (preserve_values): Update.
4656 * python/py-type.c (save_objfile_types): Update.
4657 * guile/scm-type.c (save_objfile_types): Update.
4658 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4659 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4660 * compile/compile-object-run.c (compile_object_run): Update.
4662 2020-09-17 Tom Tromey <tom@tromey.com>
4664 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4666 <m_table>: Now htab_up.
4667 * typeprint.c (typedef_hash_table::recursively_update)
4668 (typedef_hash_table::add_template_parameters)
4669 (typedef_hash_table::typedef_hash_table): Update.
4670 (typedef_hash_table::~typedef_hash_table): Remove.
4671 (typedef_hash_table::typedef_hash_table)
4672 (typedef_hash_table::find_global_typedef)
4673 (typedef_hash_table::find_typedef): Update.
4675 2020-09-17 Tom Tromey <tom@tromey.com>
4677 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4679 2020-09-17 Tom Tromey <tom@tromey.com>
4681 * linespec.c (class decode_compound_collector)
4682 <~decode_compound_collector>: Remove.
4683 <m_unique_syms>: Now htab_up.
4684 (decode_compound_collector::operator ()): Update.
4685 (class symtab_collector) <~symtab_collector>: Remove.
4686 <m_symtab_table>: Now htab_up.
4687 (symtab_collector::operator ()): Update.
4689 2020-09-17 Tom Tromey <tom@tromey.com>
4691 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4692 (filename_seen_cache::clear): Update.
4693 (~filename_seen_cache): Remove.
4694 (filename_seen_cache::seen): Update.
4695 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4697 <~filename_seen_cache>: Remove.
4700 2020-09-17 Tom Tromey <tom@tromey.com>
4702 * completer.c (completion_tracker::discard_completions)
4703 (completion_tracker::~completion_tracker)
4704 (completion_tracker::maybe_add_completion)
4705 (completion_tracker::remove_completion)
4706 (completion_tracker::recompute_lowest_common_denominator)
4707 (completion_tracker::build_completion_result): Update.
4708 * completer.h (class completion_tracker) <have_completions>:
4710 <m_entries_hash>: Now htab_up.
4712 2020-09-17 Tom Tromey <tom@tromey.com>
4714 * breakpoint.c (ambiguous_names_p): Use htab_up.
4716 2020-09-17 Tom Tromey <tom@tromey.com>
4718 * auto-load.c (struct auto_load_pspace_info)
4719 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4720 <loaded_script_files, loaded_script_texts>: Change type to
4722 (~auto_load_pspace_info) Remove.
4723 (init_loaded_scripts_info, maybe_add_script_file)
4724 (maybe_add_script_text, auto_load_info_scripts): Update.
4726 2020-09-17 Tom Tromey <tromey@adacore.com>
4728 * c-exp.y (name_obstack): Now static.
4730 2020-09-17 Chungyi Chi <demonic@csie.io>
4732 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4734 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4736 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4737 (add_solib_catchpoint): Likewise.
4738 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4740 (add_solib_catchpoint): Change int parameter/variable to bool.
4741 (catch_load_or_unload): Likewise.
4742 (init_catchpoint): Likewise.
4743 (create_fork_vfork_event_catchpoint): Likewise.
4744 (catch_fork_command_1): Likewise.
4745 (catch_exec_command_1): Likewise.
4747 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4749 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4750 Change instance_flags to m_instance_flags.
4752 2020-09-16 Tom Tromey <tromey@adacore.com>
4755 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4757 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4759 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4761 (fbsd_nat_target::insert_exec_catchpoint)
4762 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4763 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4764 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4766 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4768 * configure.ac: Remove check for kinfo_getvmmap().
4769 * configure, config.in: Regenerate.
4770 * fbsd-nat.c (fbsd_read_mapping): Remove
4771 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4772 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4773 kinfo_get_vmmap() are always present.
4775 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4777 * fbsd-nat.c: Always include support for
4778 TARGET_OBJECT_SIGNAL_INFO.
4780 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4782 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4783 sysctl and remove procfs fallback.
4785 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4787 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4788 * fbsd-nat.h: Likewise.
4790 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4792 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4795 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4797 * ada-lang.c (ada_language_data): Delete.
4798 (ada_language): Remove references to ada_language_data.
4799 * c-lang.c (c_language_data): Delete.
4800 (c_language): Remove references to c_language_data.
4801 (cplus_language_data): Delete.
4802 (cplus_language): Remove references to cplus_language_data.
4803 (asm_language_data): Delete.
4804 (asm_language): Remove references to asm_language_data.
4805 (minimal_language_data): Delete.
4806 (minimal_language): Remove references to minimal_language_data.
4807 * d-lang.c (d_language_data): Delete.
4808 (d_language): Remove references to d_language_data.
4809 * f-lang.c (f_language_data): Delete.
4810 (f_language): Remove references to f_language_data.
4811 * go-lang.c (go_language_data): Delete.
4812 (go_language): Remove references to go_language_data.
4813 * language.c (unknown_language_data): Delete.
4814 (unknown_language): Remove references to unknown_language_data.
4815 (auto_language_data): Delete.
4816 (auto_language): Remove references to auto_language_data.
4817 * language.h (language_data): Delete struct.
4818 (language_defn): No longer inherit from language_data.
4819 * m2-lang.c (m2_language_data): Delete.
4820 (m2_language): Remove references to m2_language_data.
4821 * objc-lang.c (objc_language_data): Delete.
4822 (objc_language): Remove references to objc_language_data.
4823 * opencl-lang.c (opencl_language_data): Delete.
4824 (opencl_language): Remove references to opencl_language_data.
4825 * p-lang.c (pascal_language_data): Delete.
4826 (pascal_language): Remove references to pascal_language_data.
4827 * rust-lang.c (rust_language_data): Delete.
4828 (rust_language): Remove references to rust_language_data.
4830 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4832 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4834 (ada_language::opcode_print_table): New member function.
4835 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4836 (c_language::opcode_print_table): New member function.
4837 (cplus_language_data): Remove la_op_print_tab initializer.
4838 (cplus_language::opcode_print_table): New member function.
4839 (asm_language_data): Remove la_op_print_tab initializer.
4840 (asm_language::opcode_print_table): New member function.
4841 (minimal_language_data): Remove la_op_print_tab initializer.
4842 (minimal_language::opcode_print_table): New member function.
4843 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4844 (d_language::opcode_print_table): New member function.
4845 * expprint.c (print_subexp_standard): Update call to
4847 (op_string): Likewise.
4848 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4849 (f_language::opcode_print_table): New member function.
4850 * go-lang.c (go_language_data): Remove la_op_print_tab
4852 (go_language::opcode_print_table): New member function.
4853 * language.c (unknown_language_data): Remove la_op_print_tab
4855 (unknown_language::opcode_print_table): New member function.
4856 (auto_language_data): Remove la_op_print_tab initializer.
4857 (auto_language::opcode_print_table): New member function.
4858 * language.h (language_data): Remove la_op_print_tab field.
4859 (language_defn::opcode_print_table): Declare new member function.
4860 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4862 (m2_language::opcode_print_table): New member function.
4863 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4865 (objc_language::opcode_print_table): New member function.
4866 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4868 (opencl_language::opcode_print_table): New member function.
4869 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4871 (pascal_language::opcode_print_table): New member function.
4872 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4874 (rust_language::opcode_print_table): New member function.
4876 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4878 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4879 (ada_language::expression_ops): New member function.
4880 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4881 (c_language::expression_ops): New member function.
4882 (cplus_language_data): Remove la_exp_desc initializer.
4883 (cplus_language::expression_ops): New member function.
4884 (asm_language_data): Remove la_exp_desc initializer.
4885 (asm_language::expression_ops): New member function.
4886 (minimal_language_data): Remove la_exp_desc initializer.
4887 (minimal_language::expression_ops): New member function.
4888 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4889 (d_language::expression_ops): New member function.
4890 * eval.c (evaluate_subexp): Update call to expression_ops.
4891 * expprint.c (print_subexp): Likewise.
4892 (op_name): Likewise.
4893 (dump_subexp_body): Likewise.
4894 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4895 (f_language::expression_ops): New member function.
4896 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4897 (go_language::expression_ops): New member function.
4898 * language.c (language_defn::expression_ops): New function.
4899 (unknown_language_data): Remove la_exp_desc initializer.
4900 (auto_language_data): Likewise.
4901 * language.h (language_data): Remove la_exp_desc field.
4902 (language_defn::expression_ops): Declare new member function.
4903 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4904 (m2_language::expression_ops): New member function.
4905 * objc-lang.c (objc_language_data): Remove la_exp_desc
4907 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4909 (opencl_language::expression_ops): New member function.
4910 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4911 * parse.c (operator_length): Update call to expression_ops.
4912 (exp_iterate): Likewise.
4913 * rust-lang.c (rust_language_data): Remove la_exp_desc
4915 (ruse_language::expression_ops): New member function.
4917 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4919 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4921 (ada_language::varobj_ops): New member function.
4922 * c-lang.c (c_language_data): Remove la_varobj_ops
4924 (cplus_language_data): Likewise.
4925 (cplus_language::varobj_ops): New member function.
4926 (asm_language_data): Remove la_varobj_ops initializer.
4927 (minimal_language_data): Likewise.
4928 * d-lang.c (d_language_data): Likewise.
4929 * f-lang.c (f_language_data): Likewise.
4930 * go-lang.c (go_language_data): Likewise.
4931 * language.c (language_defn::varobj_ops): New function.
4932 (unknown_language_data): Remove la_varobj_ops
4934 (auto_language_data): Likewise.
4935 * language.h (language_data): Remove la_varobj_ops field.
4936 (language_defn::varobj_ops): Declare new member function.
4937 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4938 * objc-lang.c (objc_language_data): Likewise.
4939 * opencl-lang.c (opencl_language_data): Likewise.
4940 * p-lang.c (pascal_language_data): Likewise.
4941 * rust-lang.c (rust_language_data): Likewise.
4942 * varobj.c (varobj_create): Update call to varobj_ops.
4943 * varobj.h (default_varobj_ops): Delete define.
4945 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4947 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4949 * c-lang.c (c_language_data): Likewise.
4950 (c_language::macro_expansion): New member function.
4951 (cplus_language_data): Likewise.
4952 (cplus_language::macro_expansion): New member function.
4953 (asm_language_data): Likewise.
4954 (asm_language::macro_expansion): New member function.
4955 (minimal_language_data): Likewise.
4956 (minimal_language::macro_expansion): New member function.
4957 * d-lang.c (d_language_data): Remove la_macro_expansion
4959 * f-lang.c (f_language_data): Likewise.
4960 * go-lang.c (go_language_data): Likewise.
4961 * language.c (unknown_language_data): Likewise.
4962 (auto_language_data): Likewise.
4963 * language.h (language_data): Remove la_macro_expansion field.
4964 (language_defn::macro_expansion): New member function.
4965 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4967 * objc-lang.c (objc_language_data): Likewise.
4968 (objc_language::macro_expansion): New member function.
4969 * opencl-lang.c (opencl_language_data): Likewise.
4970 (opencl_language::macro_expansion): New member function.
4971 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4973 * rust-lang.c (rust_language_data): Likewise.
4974 * symtab.c (default_collect_symbol_completion_matches_break_on):
4975 Update call to macro_expansion.
4977 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4979 * ada-lang.c (ada_language_data): Remove la_array_ordering
4981 * c-lang.c (c_language_data): Likewise.
4982 (cplus_language_data): Likewise.
4983 (asm_language_data): Likewise.
4984 (minimal_language_data): Likewise.
4985 * d-lang.c (d_language_data): Likewise.
4986 * dwarf2/read.c (read_array_order): Update for call to
4988 * f-lang.c (f_language_data): Remove la_array_ordering
4990 (f_language::array_ordering): New member function.
4991 * go-lang.c (go_language_data): Remove la_array_ordering
4993 * language.c (unknown_language_data): Likewise.
4994 (auto_language_data): Likewise.
4995 * language.h (language_data): Delete la_array_ordering field.
4996 (language_defn::array_ordering): New member function.
4997 * m2-lang.c (m2_language_data): Remove la_array_ordering
4999 * objc-lang.c (objc_language_data): Likewise.
5000 * opencl-lang.c (opencl_language_data): Likewise.
5001 * p-lang.c (pascal_language_data): Likewise.
5002 * rust-lang.c (rust_language_data): Likewise.
5004 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5006 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
5008 * c-lang.c (c_language_data): Likewise.
5009 (cplus_language_data): Likewise.
5010 (asm_language_data): Likewise.
5011 (minimal_language_data): Likewise.
5012 * d-lang.c (d_language_data): Likewise.
5013 * f-lang.c (f_language_data): Likewise.
5014 (f_language::case_sensitivity): New member function.
5015 * go-lang.c (go_language_data): Remove la_case_sensitivity
5017 * language.c (enum case_mode): Moved here from language.h.
5018 (case_mode): Make static.
5019 (show_case_command): Update for case_sensitivity being a method.
5020 (set_case_command): Likewise.
5021 (set_range_case): Likewise.
5022 (unknown_language_data): Remove la_case_sensitivity initializer.
5023 (auto_language_data): Likewise.
5024 * language.h (case_mode): Delete, move enum declaration to
5026 (language_data): Delete la_case_sensitivity field.
5027 (language_defn::case_sensitivity): New member function.
5028 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
5030 * objc-lang.c (objc_language_data): Likewise.
5031 * opencl-lang.c (opencl_language_data): Likewise.
5032 * p-lang.c (pascal_language_data): Likewise.
5033 * rust-lang.c (rust_language_data): Likewise.
5035 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5037 * ada-lang.c (ada_language_data): Remove la_range_check
5039 * c-lang.c (c_language_data): Likewise.
5040 (cplus_language_data): Likewise.
5041 (asm_language_data): Likewise.
5042 (minimal_language_data): Likewise.
5043 * d-lang.c (d_language_data): Likewise.
5044 * f-lang.c (f_language_data): Likewise.
5045 (f_language::range_checking_on_by_default): New member function.
5046 * go-lang.c (go_language_data): Remove la_range_check initializer.
5047 * language.c (enum range_mode): Moved here from language.h.
5048 (range_mode): Made static.
5049 (show_range_command): Update to use
5050 range_checking_on_by_default.
5051 (set_range_command): Likewise.
5052 (set_range_case): Likewise.
5053 (unknown_language_data): Remove la_range_check initializer.
5054 (auto_language_data): Likewise.
5055 * language.h (range_mode): Delete. Enum definition moved to
5057 (language_data): Remove la_range_check field.
5058 (language_defn::range_checking_on_by_default): New member
5060 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
5061 (m2_language::range_checking_on_by_default): New member function.
5062 * objc-lang.c (objc_language_data): Remove la_range_check
5064 * opencl-lang.c (opencl_language_data): Likewise.
5065 * p-lang.c (pascal_language_data): Likewise.
5066 (pascal_language::range_checking_on_by_default): New member
5068 * rust-lang.c (rust_language_data): Remove la_range_check
5070 (rust_language::range_checking_on_by_default): New member
5073 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5075 * dwarf2/read.c (dwarf2_physname): Remove special case for
5077 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
5080 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5082 * ada-lang.c (ada_language_data): Remove
5083 la_store_sym_names_in_linkage_form_p initializer.
5084 (ada_language::store_sym_names_in_linkage_form_p): New member
5086 * c-lang.c (c_language_data): Remove
5087 la_store_sym_names_in_linkage_form_p initializer.
5088 (c_language::store_sym_names_in_linkage_form_p): New member
5090 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
5092 (asm_language_data): Likewise.
5093 (asm_language::store_sym_names_in_linkage_form_p): New member
5095 (minimal_language_data): Remove
5096 la_store_sym_names_in_linkage_form_p initializer.
5097 (minimal_language::store_sym_names_in_linkage_form_p): New member
5099 * d-lang.c (d_language_data): Remove
5100 la_store_sym_names_in_linkage_form_p initializer.
5101 * dwarf2/read.c (dwarf2_physname): Update call to
5102 store_sym_names_in_linkage_form_p.
5103 * f-lang.c (f_language_data): Remove
5104 la_store_sym_names_in_linkage_form_p initializer.
5105 * go-lang.c (go_language_data): Remove
5106 la_store_sym_names_in_linkage_form_p initializer.
5107 * language.c (unknown_language_data): Remove
5108 la_store_sym_names_in_linkage_form_p initializer.
5109 (unknown_language::store_sym_names_in_linkage_form_p): New member
5111 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
5113 (auto_language::store_sym_names_in_linkage_form_p): New member
5115 * language.h (language_data): Remove
5116 la_store_sym_names_in_linkage_form_p member variable.
5117 (language_defn::store_sym_names_in_linkage_form_p): New member
5119 * m2-lang.c (m2_language_data): Remove
5120 la_store_sym_names_in_linkage_form_p initializer.
5121 * objc-lang.c (objc_language_data): Likewise.
5122 * opencl-lang.c (opencl_language_data): Likewise.
5123 * p-lang.c (pascal_language_data): Likewise.
5124 * rust-lang.c (rust_language_data): Likewise.
5126 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5128 * ada-lang.c (ada_language_data): Remove string_lower_bound
5130 * c-lang.c (c_language_data): Likewise.
5131 (cplus_language_data): Likewise.
5132 (asm_language_data): Likewise.
5133 (minimal_language_data): Likewise.
5134 * d-lang.c (d_language_data): Likewise.
5135 * f-lang.c (f_language_data): Likewise.
5136 * go-lang.c (go_language_data): Likewise.
5137 * language.c (unknown_language_data): Likewise.
5138 (auto_language_data): Likewise.
5139 * language.h (language_data): Remove string_lower_bound field.
5140 (language_defn::string_lower_bound): New member function.
5141 * m2-lang.c (m2_language_data): Remove string_lower_bound
5143 (m2_language::string_lower_bound): New member function.
5144 * objc-lang.c (objc_language_data): Remove string_lower_bound
5146 * opencl-lang.c (opencl_language_data): Likewise.
5147 * p-lang.c (pascal_language_data): Likewise.
5148 * rust-lang.c (rust_language_data): Likewise.
5149 * valops.c (value_cstring): Update call to string_lower_bound.
5150 (value_string): Likewise.
5151 * value.c (allocate_repeated_value): Likewise.
5153 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5155 * valops.c (value_repeat): Fix incorrect argument name in comment.
5157 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5159 * ada-lang.c (ada_language_data): Remove c_style_arrays
5161 (ada_language::c_style_arrays_p): New member fuction.
5162 * c-lang.c (c_language_data): Remove c_style_arrays
5164 (cplus_language_data): Likewise.
5165 (asm_language_data): Likewise.
5166 (minimal_language_data): Likewise.
5167 * d-lang.c (d_language_data): Likewise.
5168 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
5169 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
5170 (f_language::c_style_arrays_p): New member function.
5171 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
5172 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
5173 * language.c (unknown_language_data): Remove c_style_arrays
5175 (auto_language_data): Likewise.
5176 * language.h (language_data): Remove c_style_arrays field.
5177 (language_defn::c_style_arrays_p): New member function.
5178 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
5179 (m2_language::c_style_arrays_p): New member function.
5180 * objc-lang.c (objc_language_data): Remove c_style_arrays
5182 * opencl-lang.c (opencl_language_data): Likewise.
5183 * p-lang.c (pascal_language_data): Likewise.
5184 * rust-lang.c (rust_language_data): Likewise.
5185 * valarith.c (value_subscript): Update call to c_style_arrays_p,
5186 and update local variable to a bool.
5187 * valops.c (value_cast): Update call to c_style_arrays_p.
5188 (value_array): Likewise.
5189 * value.c (coerce_array): Likewise.
5191 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5193 * ada-lang.c (ada_language_data): Remove la_language initializer.
5194 * c-lang.c (c_language_data): Likewise.
5195 (cplus_language_data): Likewise.
5196 (asm_language_data): Likewise.
5197 (minimal_language_data): Likewise.
5198 * d-lang.c (d_language_data): Likewise.
5199 * f-lang.c (f_language_data): Likewise.
5200 * go-lang.c (go_language_data): Likewise.
5201 * language.c (unknown_language_data): Likewise.
5202 (auto_language_data): Likewise.
5203 * language.h (language_data): Remove la_language field.
5204 (language_defn::language_defn): Initialise la_language field.
5205 (language_defn::la_language): New member variable.
5206 * m2-lang.c (m2_language_data): Remove la_language field.
5207 * objc-lang.c (objc_language_data): Likewise.
5208 * opencl-lang.c (opencl_language_data): Likewise.
5209 * p-lang.c (pascal_language_data): Likewise.
5210 * rust-lang.c (rust_language_data): Likewise.
5212 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5214 * ada-lang.c (ada_extensions): Delete, moved into
5215 ada_language::filename_extensions.
5216 (ada_language_data): Remove la_filename_extensions initializer.
5217 (ada_language::filename_extensions): New member function.
5218 * c-lang.c (c_extensions): Delete, moved into
5219 c_language::filename_extensions.
5220 (c_language_data): Remove la_filename_extensions initializer.
5221 (c_language::filename_extensions): New member function.
5222 (cplus_extensions): Delete, moved into
5223 cplus_language::filename_extensions.
5224 (cplus_language_data): Remove la_filename_extensions initializer.
5225 (cplus_language::filename_extensions): New member function.
5226 (asm_extensions): Delete, moved into
5227 asm_language::filename_extensions.
5228 (asm_language_data): Remove la_filename_extensions initializer.
5229 (asm_language::filename_extensions): New member function.
5230 (minimal_language_data): Remove la_filename_extensions
5232 * d-lang.c (d_extensions): Delete, moved into
5233 d_language::filename_extensions.
5234 (d_language_data): Remove la_filename_extensions initializer.
5235 (d_language::filename_extensions): New member function.
5236 * f-lang.c (f_extensions): Delete, moved into
5237 f_language::filename_extensions.
5238 (f_language_data): Remove la_filename_extensions initializer.
5239 (f_language::filename_extensions): New member function.
5240 * go-lang.c (go_language_data): Remove la_filename_extensions
5242 * language.c (add_set_language_command): Update now that
5243 filename_extensions returns a vector.
5244 (unknown_language_data): Remove la_filename_extensions
5246 (auto_language_data): Likewise.
5247 * language.h (language_data): Remove la_filename_extensions field.
5248 (language_defn::filename_extensions): New member function.
5249 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5251 * objc-lang.c (objc_extensions): Delete, moved into
5252 objc_language::filename_extensions.
5253 (objc_language_data): Remove la_filename_extensions initializer.
5254 (objc_language::filename_extensions): New member function.
5255 * opencl-lang.c (opencl_language_data): Remove
5256 la_filename_extensions initializer.
5257 * p-lang.c (pascal_extensions): Delete, moved into
5258 pascal_language::filename_extensions.
5259 (pascal_language_data): Remove la_filename_extensions initializer.
5260 (pascal_language::filename_extensions): New member function.
5261 * rust-lang.c (rust_extensions): Delete, moved into
5262 rust_language::filename_extensions.
5263 (rust_language_data): Remove la_filename_extensions initializer.
5264 (rust_language::filename_extensions): New member function.
5265 * symfile.c (add_filename_language): Add new assert.
5267 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5269 * ada-lang.c (ada_language_data): Remove la_name and
5270 la_natural_name initializers.
5271 (ada_language::name): New member function.
5272 (ada_language::natural_name): New member function.
5273 * c-lang.c (c_language_data): Remove la_name and
5274 la_natural_name initializers.
5275 (c_language::name): New member function.
5276 (c_language::natural_name): New member function.
5277 (cplus_language_data): Remove la_name and
5278 la_natural_name initializers.
5279 (cplus_language::name): New member function.
5280 (cplus_language::natural_name): New member function.
5281 (asm_language_data): Remove la_name and
5282 la_natural_name initializers.
5283 (asm_language::name): New member function.
5284 (asm_language::natural_name): New member function.
5285 (minimal_language_data): Remove la_name and
5286 la_natural_name initializers.
5287 (minimal_language::name): New member function.
5288 (minimal_language::natural_name): New member function.
5289 * compile/compile.c (compile_to_object): Update call to
5290 lanugage_defn::name.
5291 * d-lang.c (d_language_data): Remove la_name and
5292 la_natural_name initializers.
5293 (d_language::name): New member function.
5294 (d_language::natural_name): New member function.
5295 * expprint.c (print_subexp_standard): Update call to
5296 language_defn::name.
5297 (dump_raw_expression): Likewise
5298 (dump_prefix_expression): Likewise.
5299 * f-lang.c (f_language_data): Remove la_name and
5300 la_natural_name initializers.
5301 (f_language::name): New member function.
5302 (f_language::natural_name): New member function.
5303 * go-lang.c (go_language_data): Remove la_name and
5304 la_natural_name initializers.
5305 (go_language::name): New member function.
5306 (go_language::natural_name): New member function.
5307 * language.c (show_language_command): Update call to
5308 language_defn::name.
5309 (set_language_command): Likewise.
5310 (language_enum): Likewise.
5311 (language_str): Likewise.
5312 (add_set_language_command): Likewise, use
5313 language_defn::natural_name in the doc string.
5314 (unknown_language_data): Remove la_name and
5315 la_natural_name initializers.
5316 (unknown_language::name): New member function.
5317 (unknown_language::natural_name): New member function.
5318 (auto_language_data): Remove la_name and
5319 la_natural_name initializers.
5320 (auto_language::name): New member function.
5321 (auto_language::natural_name): New member function.
5322 (language_lookup_primitive_type_as_symbol): Update call to
5323 language_defn::name.
5324 * language.h (language_data): Remove la_name and la_natural_name
5326 (language_defn::name): New member function.
5327 (language_defn::natural_name): New member function.
5328 * m2-lang.c (m2_language_data): Remove la_name and
5329 la_natural_name initializers.
5330 (m2_language::name): New member function.
5331 (m2_language::natural_name): New member function.
5332 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5333 language_defn::natural_name.
5334 * objc-lang.c (objc_language_data): Remove la_name and
5335 la_natural_name initializers.
5336 (objc_language::name): New member function.
5337 (objc_language::natural_name): New member function.
5338 * opencl-lang.c (opencl_language_data): Remove la_name and
5339 la_natural_name initializers.
5340 (opencl_language::name): New member function.
5341 (opencl_language::natural_name): New member function.
5342 * p-lang.c (pascal_language_data): Remove la_name and
5343 la_natural_name initializers.
5344 (pascal_language::name): New member function.
5345 (pascal_language::natural_name): New member function.
5346 * rust-lang.c (rust_language_data): Remove la_name and
5347 la_natural_name initializers.
5348 (rust_language::name): New member function.
5349 (rust_language::natural_name): New member function.
5350 * symtab.c (lookup_language_this): Update call to
5351 language_defn::name.
5353 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5355 * ada-lang.c (ada_language_data): Remove la_name_of_this
5357 * ax-gdb.c (gen_expr): Update call to name_of_this.
5358 * c-exp.y (classify_name): Likewise.
5359 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5360 (cplus_language_data): Likewise.
5361 (cplus_language::name_of_this): New member function.
5362 (asm_language_data): Remove la_name_of_this initializer.
5363 (minimal_language_data): Likewise.
5364 * d-lang.c (d_language_data): Likewise.
5365 (d_language::name_of_this): New member function.
5366 * expprint.c (print_subexp_standard): Update call to name_of_this.
5367 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5368 * go-lang.c (go_language_data): Likewise.
5369 * language.c (unknown_language_data): Likewise.
5370 (unknown_language::name_of_this): New member function.
5371 (auto_language_data): Remove la_name_of_this initializer.
5372 (auto_language::name_of_this): New member function.
5373 * language.h (language_data): Delete la_name_of_this member
5375 (language_defn::name_of_this): New member function.
5376 * m2-lang.c (m2_language_data): Remove la_name_of_this
5378 * objc-lang.c (objc_language_data): Likewise.
5379 (objc_language::name_of_this): New member function.
5380 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5382 * p-lang.c (pascal_language_data): Likewise.
5383 (pascal_language::name_of_this): New member function.
5384 * rust-lang.c (rust_language_data): Remove la_name_of_this
5386 * symtab.c (lookup_language_this): Update call to name_of_this.
5387 (lookup_symbol_aux): Likewise.
5388 * valops.c (value_of_this): Likewise.
5390 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5392 * ada-lang.c (ada_language_data): Remove
5393 la_struct_too_deep_ellipsis initializer.
5394 (ada_language::struct_too_deep_ellipsis): New member function.
5395 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5397 (cplus_language_data): Likewise.
5398 (asm_language_data): Likewise.
5399 (minimal_language_data): Likewise.
5400 * cp-valprint.c (cp_print_value): Update call to
5401 struct_too_deep_ellipsis.
5402 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5404 * f-lang.c (f_language_data): Likewise.
5405 (f_language::struct_too_deep_ellipsis): New member function.
5406 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5408 * language.c (unknown_language_data): Likewise.
5409 (auto_language_data): Likewise.
5410 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5412 (language_defn::struct_too_deep_ellipsis): New member function.
5413 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5415 * objc-lang.c (objc_language_data): Likewise.
5416 * opencl-lang.c (opencl_language_data): Likewise.
5417 * p-lang.c (pascal_language_data): Likewise.
5418 * rust-lang.c (rust_language_data): Likewise.
5419 * valprint.c (val_print_check_max_depth): Update call to
5420 struct_too_deep_ellipsis.
5422 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5424 * MAINTAINERS (Write After Approval): Add myself.
5426 2020-09-15 Tom Tromey <tom@tromey.com>
5428 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5431 2020-09-15 Tom Tromey <tom@tromey.com>
5433 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5434 and TYPE_CODE_METHODPTR cases.
5435 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5436 (c_value_print_inner): Update.
5437 * valprint.c (generic_value_print_memberptr): New function, from
5438 c_value_print_memberptr.
5439 (generic_value_print): Use it. Call cplus_print_method_ptr.
5441 2020-09-15 Tom Tromey <tromey@adacore.com>
5443 * python/python-internal.h (PyInt_FromLong): Remove define.
5444 * python/py-value.c (convert_value_from_python): Use
5445 gdb_py_object_from_longest.
5446 * python/py-type.c (typy_get_code): Use
5447 gdb_py_object_from_longest.
5448 * python/py-symtab.c (salpy_get_line): Use
5449 gdb_py_object_from_longest.
5450 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5451 gdb_py_object_from_longest.
5452 * python/py-record.c (recpy_gap_reason_code): Use
5453 gdb_py_object_from_longest.
5454 * python/py-record-btrace.c (recpy_bt_insn_size)
5455 (recpy_bt_func_level, btpy_list_count): Use
5456 gdb_py_object_from_longest.
5457 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5458 gdb_py_object_from_longest. Fix error handling.
5459 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5460 gdb_py_object_from_longest.
5461 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5462 gdb_py_object_from_longest.
5463 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5464 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5465 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5467 2020-09-15 Tom Tromey <tromey@adacore.com>
5469 * python/python.c (gdbpy_parameter_value): Use
5470 gdb_py_object_from_ulongest.
5472 2020-09-15 Tom Tromey <tromey@adacore.com>
5474 * python/py-infevents.c (create_register_changed_event_object):
5475 Use gdb_py_object_from_longest.
5476 * python/py-exitedevent.c (create_exited_event_object): Use
5477 gdb_py_object_from_longest.
5479 2020-09-15 Tom Tromey <tromey@adacore.com>
5481 * python/python.c (gdbpy_parameter_value): Use
5482 gdb_py_object_from_longest.
5483 * python/py-type.c (convert_field, typy_range): Use
5484 gdb_py_object_from_longest.
5485 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5486 gdb_py_object_from_longest.
5487 * python/py-lazy-string.c (stpy_get_length): Use
5488 gdb_py_object_from_longest.
5489 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5490 gdb_py_object_from_longest.
5491 * python/py-infevents.c (create_memory_changed_event_object): Use
5492 gdb_py_object_from_longest.
5493 * python/py-inferior.c (infpy_get_num): Use
5494 gdb_py_object_from_longest.
5495 (infpy_get_pid): Likewise.
5497 2020-09-15 Tom Tromey <tromey@adacore.com>
5499 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5501 * python/py-value.c (valpy_long): Use
5502 gdb_py_object_from_ulongest.
5503 * python/py-symtab.c (salpy_get_pc): Use
5504 gdb_py_object_from_ulongest.
5505 (salpy_get_last): Likewise.
5506 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5507 gdb_py_object_from_ulongest.
5508 * python/py-lazy-string.c (stpy_get_address): Use
5509 gdb_py_object_from_ulongest.
5510 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5511 * python/py-arch.c (archpy_disassemble): Use
5512 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5515 2020-09-15 Tom Tromey <tromey@adacore.com>
5517 * python/python-internal.h (gdb_py_long_from_longest): Remove
5519 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5520 * python/py-type.c (convert_field, typy_get_sizeof): Use
5521 gdb_py_object_from_longest.
5522 * python/py-record-btrace.c (btpy_list_index): Use
5523 gdb_py_object_from_longest.
5525 2020-09-15 Tom Tromey <tromey@adacore.com>
5527 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5528 * python/py-record.c (recpy_element_number): Use
5529 gdb_py_object_from_longest.
5530 (recpy_gap_number): Likewise.
5532 2020-09-15 Tom Tromey <tromey@adacore.com>
5534 * top.c (ui::ui): Update.
5535 (highest_ui_num): Remove.
5536 * top.h (struct ui) <num>: Remove.
5538 2020-09-15 Tom Tromey <tromey@adacore.com>
5540 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5541 * ui-style.c (ansi_regex_text): Now array.
5542 * rust-exp.y (number_regex_text): Now array.
5543 * linespec.c (linespec_quote_characters): Now array.
5544 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5547 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5549 * debuginfod-support.c (debuginfod_client_deleter): New.
5550 (debuginfod_client_up): New.
5551 (debuginfod_init): Return debuginfod_client_up.
5552 (debuginfod_source_query): Adjust.
5553 (debuginfod_debuginfo_query): Adjust.
5555 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5557 * debuginfod-support.c (debuginfod_source_query): Use
5558 make_unique_xstrdup.
5560 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5562 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5563 with `type::instance_flags`.
5565 2020-09-14 Michael Mullin <masmullin@gmail.com>
5567 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5568 Remove baton parameter.
5570 2020-09-14 Pedro Alves <pedro@palves.net>
5572 * Makefile.in (SELFTESTS_SRCS): Add
5573 unittests/enum-flags-selftests.c.
5574 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5575 btrace_function_flags instead of enum btrace_function_flag.
5576 * compile/compile-c-types.c (convert_qualified): Use
5578 * compile/compile-cplus-symbols.c (convert_one_symbol)
5579 (convert_symbol_bmsym):
5580 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5581 (compile_cplus_convert_struct_or_union_methods)
5582 (compile_cplus_instance::convert_qualified_base):
5583 * go-exp.y (parse_string_or_char): Add cast to int.
5584 * unittests/enum-flags-selftests.c: New file.
5585 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5586 type to btrace_thread_flags from btrace_thread_flag.
5587 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5588 local's type to btrace_thread_flags from btrace_thread_flag. Add
5591 2020-09-14 Pedro Alves <pedro@palves.net>
5593 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5594 * gdbtypes.c (address_space_name_to_int): Rename to ...
5595 (address_space_name_to_type_instance_flags): ... this.
5596 (address_space_int_to_name): Rename to ...
5597 (address_space_type_instance_flags_to_name): ... this.
5598 * gdbtypes.h (address_space_name_to_int): Rename to ...
5599 (address_space_name_to_type_instance_flags): ... this.
5600 (address_space_int_to_name): Rename to ...
5601 (address_space_type_instance_flags_to_name): ... this.
5602 * type-stack.c (type_stack::insert): Adjust to rename.
5603 * type-stack.h (type_stack::insert): Likewise.
5605 2020-09-14 Pedro Alves <pedro@palves.net>
5606 Andrew Burgess <andrew.burgess@embecosm.com>
5608 * avr-tdep.c (avr_address_class_type_flags): Return
5609 type_instance_flags.
5610 (avr_address_class_type_flags_to_name): Take a
5611 type_instance_flags.
5612 (avr_address_class_name_to_type_flags): Return bool and take a
5613 type_instance_flags.
5614 * d-lang.c (build_d_types): Use type::set_instance_flags.
5615 * ft32-tdep.c (ft32_address_class_type_flags): Return
5616 type_instance_flags.
5617 (ft32_address_class_type_flags_to_name): Take a
5618 type_instance_flags.
5619 (ft32_address_class_name_to_type_flags): Return bool and take a
5620 type_instance_flags.
5621 (ft32_gdbarch_init): Use type::set_instance_flags.
5622 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5623 * gdbarch.h, gdbarch.c: Regenerate.
5624 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5625 (address_class_name_to_type_flags): Use type_instance_flags and
5627 * gdbtypes.c (address_space_name_to_int)
5628 (address_space_int_to_name, make_qualified_type): Use
5629 type_instance_flags.
5630 (make_qualified_type): Use type_instance_flags and
5631 type::set_instance_flags.
5632 (make_type_with_address_space, make_cv_type, make_vector_type)
5633 (check_typedef): Use type_instance_flags.
5634 (recursive_dump_type): Cast type_instance_flags to unsigned for
5636 (copy_type_recursive): Use type::set_instance_flags.
5637 (gdbtypes_post_init): Use type::set_instance_flags.
5638 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5639 <m_instance_flags>: ... this.
5640 <instance_flags, set_instance_flags>: New methods.
5641 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5642 (SET_TYPE_INSTANCE_FLAGS): New.
5643 (address_space_name_to_int, address_space_int_to_name)
5644 (make_type_with_address_space): Pass flags using
5645 type_instance_flags instead of int.
5646 * stabsread.c (cleanup_undefined_types_noname): Use
5647 type::set_instance_flags.
5648 * s390-tdep.c (s390_address_class_type_flags): Return
5649 type_instance_flags.
5650 (s390_address_class_type_flags_to_name): Take a
5651 type_instance_flags.
5652 (s390_address_class_name_to_type_flags): Return bool and take a
5653 type_instance_flags.
5654 * type-stack.c (type_stack::follow_types): Use
5655 type_instance_flags.
5656 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5658 2020-09-14 Tom Tromey <tromey@adacore.com>
5660 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5661 * x86-tdep.c (x86_is_thunk_register_name)
5662 (x86_in_indirect_branch_thunk): Update.
5663 * sparc64-tdep.c (sparc64_fpu_register_names)
5664 (sparc64_cp0_register_names, sparc64_register_names)
5665 (sparc64_pseudo_register_names): Now const.
5666 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5667 cp0_registers_num>: Now const.
5668 * sparc-tdep.c (sparc_core_register_names)
5669 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5670 (sparc32_pseudo_register_names): Now const.
5671 (validate_tdesc_registers): Update.
5672 * rust-lang.c (rust_extensions): Now const.
5673 * p-lang.c (p_extensions): Now const.
5674 * objc-lang.c (objc_extensions): Now const.
5675 * nto-tdep.c (nto_thread_state_str): Now const.
5676 * moxie-tdep.c (moxie_register_names): Now const.
5677 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5679 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5680 (mips_linux_reg_names): Now const.
5681 (mips_gdbarch_init): Update.
5682 * microblaze-tdep.c (microblaze_register_names): Now const.
5683 * m68k-tdep.c (m68k_register_names): Now const.
5684 * m32r-tdep.c (m32r_register_names): Now const.
5685 * ia64-tdep.c (ia64_register_names): Now const.
5686 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5687 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5688 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5689 ymm_avx512_register_names, pkeys_register_names>: Now const.
5690 * i386-tdep.c (i386_register_names, i386_zmm_names)
5691 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5692 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5693 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5694 * f-lang.c (f_extensions): Now const.
5695 * d-lang.c (d_extensions): Now const.
5696 * csky-tdep.c (csky_register_names): Now const.
5697 * charset.c (default_charset_names, charset_enum): Now const.
5698 (_initialize_charset): Update.
5699 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5701 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5702 (bsd_uthread_solib_loaded): Update.
5703 (bsd_uthread_state): Now const.
5704 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5705 (amd64_ymm_avx512_names, amd64_ymmh_names)
5706 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5707 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5708 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5709 (amd64_dword_names): Now const.
5710 * agent.c (can_use_agent_enum): Now const.
5711 * ada-tasks.c (task_states, long_task_states): Now const.
5712 * ada-lang.c (known_runtime_file_name_patterns)
5713 (known_auxiliary_function_name_patterns, attribute_names)
5714 (standard_exc, ada_extensions): Now const.
5716 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5718 * bcache.h (struct bcache) <bcache>: Remove constructor.
5719 <m_hash_function, m_compare_function>: Remove.
5720 <~bcache>: Make virtual.
5721 <compare>: Remove static method, introduce virtual method.
5722 <default_hash>: Remove.
5723 <hash>: New virtual method.
5724 * bcache.c (bcache::expand_hash_table): Update.
5725 (bcache::insert): Update.
5726 (bcache::hash): New.
5727 (bcache::compare): Update comment and parameter names.
5728 * gdbtypes.c (types_deeply_equal): Update.
5729 * psymtab.h (struct psymbol_bcache): New struct.
5730 (class psymtab_storage) <psymtab_storage>: Make default.
5731 <psymbol_cache>: Change type to psymbol_bcache.
5732 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5733 (psymbol_hash): Change to...
5734 (psymbol_bcache::hash): ... this.
5735 (psymbol_compare): Change to...
5736 (psymbol_bcache::compare): ... this.
5738 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5740 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5741 checking for initial lwp.
5743 2020-09-14 Tom Tromey <tromey@adacore.com>
5745 * m68k-tdep.c (m68k_extract_return_value): Use
5746 pointer_result_regnum.
5747 (m68k_store_return_value): Likewise.
5748 (m68k_reg_struct_return_p): Handle vectors and arrays.
5749 (m68k_return_value): Handle arrays.
5750 (m68k_svr4_return_value): Fix single-element aggregate handling.
5751 Handle long double. Adjust for embedded ABI.
5752 (m68k_svr4_init_abi): Set pointer_result_regnum.
5753 (m68k_embedded_init_abi): New function.
5754 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5755 (m68k_osabi_sniffer): New function.
5756 (_initialize_m68k_tdep): Register osabi sniffer.
5757 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5760 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5762 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5763 with gdb::unique_xmalloc_ptr<char>.
5765 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5767 * xml-support.h (xml_fetch_another): Change type to be a
5769 (xml_process_xincludes): Remove baton parameter.
5770 (xml_fetch_content_from_file): Change baton parameter to
5772 * xml-support.c (struct xinclude_parsing_data)
5773 <xinclude_parsing_data>: Remove baton parameter.
5774 <fetcher_baton>: Remove.
5775 (xinclude_start_include): Adjust.
5776 (xml_process_xincludes): Adjust.
5777 (xml_fetch_content_from_file): Replace baton parameter with
5779 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5780 (xml_init_syscalls_info): Use a lambda.
5781 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5782 (file_read_description_xml): Use a lambda.
5783 (fetch_available_features_from_target): Change baton parameter
5785 (target_read_description_xml): Use a lambda.
5786 (target_fetch_description_xml): Use a lambda.
5787 (string_read_description_xml): Update.
5789 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5791 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5792 uses with type::endianity_is_not_default.
5794 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5796 * gdbtypes.h (struct type) <endianity_is_not_default,
5797 set_endianity_is_not_default>: New methods.
5798 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5799 type::endianity_is_not_default, change all write call sites to
5800 use type::set_endianity_is_not_default.
5802 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5804 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5805 uses with type::is_fixed_instance.
5807 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5809 * gdbtypes.h (struct type) <is_fixed_instance,
5810 set_is_fixed_instance>: New methods.
5811 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5812 write call sites to use type::set_is_fixed_instance.
5814 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5816 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5817 uses with type::is_gnu_ifunc.
5819 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5821 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5822 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5823 use type::set_is_gnu_ifunc.
5825 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5827 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5828 uses with type::stub_is_supported.
5830 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5832 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5833 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5834 use type::set_stub_is_supported.
5836 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5838 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5839 uses with type::is_vector.
5841 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5843 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5844 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5845 use type::set_is_vector.
5847 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5849 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5850 uses with type::has_varargs.
5852 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5854 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5855 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5856 use type::set_has_varargs.
5858 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5860 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5861 uses with type::is_prototyped.
5863 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5865 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5867 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5868 call sites to use type::set_is_prototyped.
5870 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5872 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5873 uses with type::target_is_stub.
5875 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5877 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5879 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5880 sites to use type::set_target_is_stub.
5882 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5884 * gdbtypes.h (TYPE_STUB): Remove, replace all
5885 uses with type::is_stub.
5887 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5889 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5890 (TYPE_STUB): Use type::is_stub, change all write call sites to
5891 use type::set_is_stub.
5893 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5895 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5896 type::has_no_signedness.
5898 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5900 * gdbtypes.h (struct type) <has_no_signedness,
5901 set_has_no_signedness>: New methods.
5902 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5903 call sites to use type::set_has_no_signedness.
5905 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5907 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5910 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5912 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5914 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5915 sites to use type::set_is_unsigned.
5917 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5918 Adam Renquinha <arenquinha@cimeq.qc.ca>
5920 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5921 pointer and stack frame offset when unwinding.
5923 2020-09-13 Pedro Alves <pedro@palves.net>
5925 * NEWS: Document "-break-insert --qualified".
5926 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5928 2020-09-13 Pedro Alves <pedro@palves.net>
5930 * linespec.c (classify_mtype, compare_msyms): Delete.
5931 (search_minsyms_for_name): Remove classification logic. Instead
5932 filter out trampoline symbols if we also found an external
5933 function of the same name.
5935 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5937 * NEWS: Create a new section for the next release branch.
5938 Rename the section of the current branch, now that it has
5941 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5943 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5944 * version.in: Bump version to 11.0.50.DATE-git.
5946 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5948 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5950 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5951 Felix Willgerodt <Felix.Willgerodt@intel.com>
5953 * gdbarch.sh: Added bfloat16 type.
5954 * gdbarch.c: Regenerated.
5955 * gdbarch.h: Regenerated.
5956 * gdbtypes.c (floatformats_bfloat16): New struct.
5957 (gdbtypes_post_init): Add builtin_bfloat16.
5958 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5959 (floatformats_bfloat16): New struct.
5960 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5961 (i386_ymm_type): Add field "v16_bfloat16"
5962 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5963 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5964 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5965 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5966 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5967 * features/i386/64bit-avx512.c: Regenerated.
5968 * features/i386/64bit-sse.xml: Add bfloat16 type.
5969 * features/i386/64bit-sse.c: Regenerated.
5971 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5973 * i386-tdep.c (i386_zmm_type): Fix field names.
5974 (i386_ymm_type): Fix field names.
5976 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5978 * breakpoint.c: Fix typo in the help message of the
5979 "set breakpoint condition-evaluation" command.
5981 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5983 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5984 * (nbsd_nat_target::pid_to_exec_file)
5985 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5986 (nbsd_nat_target::post_startup_inferior)
5987 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5988 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5989 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5990 * (nbsd_thread_lister): Remove.
5992 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5994 * fork-inferior.c (startup_inferior): Avoid double free.
5996 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5998 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5999 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
6001 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6003 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
6004 * netbsd-nat.c: Include <sys/ptrace.h>.
6005 * (netbsd_nat::enable_proc_events): Add.
6007 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6009 * netbsd-nat.h: Include "gdbsupport/function-view.h".
6010 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
6011 (netbsd_nat::for_each_thread): Add.
6012 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
6013 "gdbsupport/common-debug.h".
6014 * (netbsd_nat::netbsd_thread_lister)
6015 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
6016 (netbsd_nat::for_each_thread): Add.
6018 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6020 * netbsd-nat.h: Include <unistd.h>.
6021 * (netbsd_nat::pid_to_exec_file): Add.
6022 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
6023 * (netbsd_nat::pid_to_exec_file) Add.
6025 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6027 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
6029 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6031 * netbsd-nat.h: New file.
6032 * netbsd-nat.c: Likewise.
6034 2020-09-09 Tom Tromey <tromey@adacore.com>
6036 * ada-lang.c (remove_extra_symbols): Do not increment when
6039 2020-09-08 Tom Tromey <tromey@adacore.com>
6041 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
6043 2020-09-08 Tom Tromey <tromey@adacore.com>
6046 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
6047 (gdb_bfd_init_data): New function.
6048 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
6050 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6052 * infrun.c (fetch_inferior_event): Use
6053 `switch_to_target_no_thread` to switch the target.
6055 2020-09-06 Tom Tromey <tom@tromey.com>
6057 * symfile.h (dwarf2_free_objfile): Don't declare.
6059 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6061 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
6062 to match 16 byte real/complex type generated by Flang compiler.
6064 2020-09-03 Tom de Vries <tdevries@suse.de>
6067 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
6068 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
6070 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
6072 * maint.c (index_digits): New function.
6073 (struct maint_print_section_data): Remove.
6074 (print_bfd_section_info): Remove print_data parameter, add arg
6076 (print_objfile_section_info): Likewise.
6077 (print_bfd_section_info_maybe_relocated): Likewise (plus
6079 (maintenance_info_sections): Adjust calls.
6081 2020-09-02 Tom Tromey <tromey@adacore.com>
6083 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
6085 (ada_varobj_adjust_for_child_access): Special-case null pointers.
6087 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
6089 * bcache.h (struct bcache) <insert>: Change type of `added` to
6091 * bcache.c (bcache::insert): Likewise.
6092 * gdbtypes.c (check_types_worklist): Adjust.
6093 * psymtab.c (add_psymbol_to_bcache): Adjust.
6095 2020-08-31 Kevin Buettner <kevinb@redhat.com>
6097 * corelow.c (unordered_set): Include.
6098 (class core_target): Add field 'm_core_unavailable_mappings'.
6099 (core_target::build_file_mappings): Print only one warning
6100 per inaccessible file. Add unavailable/broken mappings
6101 to m_core_unavailable_mappings.
6102 (core_target::xfer_partial): Call...
6103 (core_target::xfer_memory_via_mappings): New method.
6105 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6107 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
6110 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6112 * dwarf2/read.c (struct field_info): Fix indentation.
6114 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6116 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
6117 ordering in comment.
6118 * frame.c (frame_id_eq): Fix indentation.
6120 2020-08-31 Scott Linder <scott@scottlinder.com>
6121 Simon Marchi <simon.marchi@efficios.com>
6123 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
6124 inline frame ids in outer frame.
6126 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6128 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
6129 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
6130 (outer_frame_id): Use FID_STACK_OUTER instead of
6132 (frame_id_p): Don't check for outer_frame_id.
6134 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6136 * frame-unwind.c (frame_unwind_got_optimized): Don't set
6137 regnum/frame in value. Call allocate_value_lazy.
6138 * frame.c (frame_unwind_register_value): Use
6139 val_print_not_saved.
6141 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6143 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
6145 2020-08-29 Pedro Alves <pedro@palves.net>
6147 * progspace.c (print_program_space): Use all_inferiors. Switch to
6148 the inferior before calling target_pid_to_str.
6150 2020-08-28 Tom Tromey <tom@tromey.com>
6152 * xcoffread.c (xcoff_end_psymtab): Update comment.
6153 * dbxread.c (dbx_end_psymtab): Update comment.
6155 2020-08-28 Tom de Vries <tdevries@suse.de>
6158 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
6160 (create_breakpoint): Same.
6161 (base_breakpoint_decode_location): Same.
6162 (bkpt_create_sals_from_location): Same.
6163 (bkpt_decode_location): Same.
6164 (bkpt_probe_create_sals_from_location): Same.
6165 (bkpt_probe_decode_location): Same.
6166 (tracepoint_create_sals_from_location): Same.
6167 (tracepoint_decode_location): Same.
6168 (tracepoint_probe_decode_location): Same.
6169 (strace_marker_create_sals_from_location): Same.
6170 (strace_marker_decode_location): Same.
6171 (create_sals_from_location_default): Same.
6172 (decode_location_default): Same.
6173 * breakpoint.h (struct breakpoint_ops): Same.
6174 (create_breakpoint): Same.
6175 * linespec.h (decode_line_full): Same.
6176 * linespec.c (decode_line_full): Same. Throw error if
6177 result.size () == 0.
6179 2020-08-27 Pedro Alves <pedro@palves.net>
6182 * breakpoint.c (until_break_fsm) <location_breakpoint,
6183 caller_breakpoint>: Delete fields.
6184 <breakpoints>: New field.
6185 <until_break_fsm>: Adjust to save a breakpoint vector instead of
6186 two individual breakpoints.
6187 (until_break_fsm::should_stop): Loop over breakpoints in the
6189 (until_break_fsm::clean_up): Adjust to clear the breakpoints
6191 (until_break_command): Handle location expanding into multiple
6194 2020-08-27 Pedro Alves <pedro@palves.net>
6197 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
6198 bp_until breakpoints user-specified locations. Update intro
6201 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
6203 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
6204 gdb_bfd_sections): New.
6205 * maint.c (print_bfd_section_info): Change param type to
6206 maint_print_section_data.
6207 (print_objfile_section_info): Likewise.
6208 (print_bfd_section_info_maybe_relocated): Likewise.
6209 (maintenance_info_sections): Use gdb_bfd_sections.
6211 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6213 * MAINTAINERS: Add ARC target and maintainer.
6215 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
6217 * configure.tgt: ARC support for GNU/Linux.
6218 * Makefile.in (ALL_TARGET_OBJS): Likewise.
6219 * arc-linux-tdep.c: New file.
6220 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
6221 * arc-tdep.c (arc_write_pc): Use it.
6223 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6225 * arc-tdep.c (arc_check_for_hardware_loop): New.
6226 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
6228 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6230 * arc-tdep.h: Include "gdbarch.h".
6232 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6235 (arc_gdbarch_features): New class to stir the selection of target XML.
6236 (arc_create_target_description): Use FEATURES to choose XML target.
6237 (arc_lookup_target_description): Use arc_create_target_description
6238 to create _new_ target descriptions or return the already created
6239 ones if the FEATURES is the same.
6240 * arch/arc.c: Implementation of prototypes described above.
6241 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6242 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6243 * arc-tdep.c (*_feature_name): Make feature names consistent.
6244 (arc_register_feature): A new struct to hold information about
6245 registers of a particular target/feature.
6246 (arc_check_tdesc_feature): Check if XML provides registers in
6247 compliance with ARC_REGISTER_FEATURE structs.
6248 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6249 (determine_*_reg_feature_set): Which feature name to look for.
6250 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6251 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6252 to expected ISA enums to be used in arc_gdbarch_features structs.
6253 * features/Makefile (FEATURE_XMLFILES): Add new files.
6254 * gdb/features/arc/v1-aux.c: New file.
6255 * gdb/features/arc/v1-aux.xml: Likewise.
6256 * gdb/features/arc/v1-core.c: Likewise.
6257 * gdb/features/arc/v1-core.xml: Likewise.
6258 * gdb/features/arc/v2-aux.c: Likewise.
6259 * gdb/features/arc/v2-aux.xml: Likewise.
6260 * gdb/features/arc/v2-core.c: Likewise.
6261 * gdb/features/arc/v2-core.xml: Likewise.
6262 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6264 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6265 Andrew Burgess <andrew.burgess@embecosm.com>
6268 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
6269 an assert. Remove single element array indexing pattern as the
6270 MULTI_SUBSCRIPT support will handle this case too.
6272 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6274 * value.h (valprint_check_validity): Move declaration from
6276 * valprint.h (valprint_check_validity): ... to here.
6278 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6280 * debug.h: New file.
6281 * debug.c (debug_prefixed_vprintf): New function.
6282 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6283 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6285 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6287 * infrun.h (infrun_debug_printf_1): New function declaration.
6288 (infrun_debug_printf): New macro.
6289 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6291 (infrun_debug_printf): New function.
6292 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6293 (handle_jit_event): Likewise.
6295 2020-08-21 Mark Wielaard <mark@klomp.org>
6297 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6299 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
6301 * frame.c (enum class frame_id_status): New.
6302 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6303 (fprintf_frame): Update.
6304 (compute_frame_id): Set frame id status to "computing" on entry.
6305 Set it back to "not_computed" on failure and to "computed" on
6307 (get_frame_id): Assert the frame id is not being computed.
6308 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6309 (create_new_frame): Likewise.
6310 (frame_cleanup_after_sniffer): Update assert.
6312 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6314 * regcache.c (pid_ptid_regcache_map): New type.
6315 (target_ptid_regcache_map): Remove.
6316 (target_pid_ptid_regcache_map): New type.
6317 (regcaches): Change type to target_pid_ptid_regcache_map.
6318 (get_thread_arch_aspace_regcache): Update.
6319 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6321 (regcaches_size): Update.
6322 (regcache_count): Update.
6323 (registers_changed_ptid_target_pid_test): New.
6324 (_initialize_regcache): Register new test.
6326 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6328 * regcache.c (regcache_count): New.
6329 (struct regcache_test_data): New.
6330 (regcache_test_data_up): New.
6331 (populate_regcaches_for_test): New.
6332 (regcaches_test): Remove.
6333 (get_thread_arch_aspace_regcache_test): New.
6334 (registers_changed_ptid_all_test): New.
6335 (registers_changed_ptid_target_test): New.
6336 (registers_changed_ptid_target_ptid_test): New.
6337 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6338 (_initialize_regcache): Register new tests.
6340 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6342 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6343 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6344 gdbarch and aspace parameter. Use current inferior's aspace.
6345 Validate regcache's arch value.
6346 (regcaches_test): Update.
6348 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6350 * regcache.c (regcaches_test): Call registers_changed.
6352 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6354 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6356 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6358 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6359 to find the end of prologue for flang compiled binaries.
6360 * arm-tdep.c (arm_skip_prologue): Likewise.
6361 * i386-tdep.c (i386_skip_prologue): Likewise.
6362 * producer.c (producer_is_llvm): New function.
6363 (producer_parsing_tests): Added new tests for clang/flang.
6364 * producer.h (producer_is_llvm): New declaration.
6366 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6368 * linux-nat.c (linux_nat_debug_printf): New function.
6369 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6371 2020-08-18 Aaron Merey <amerey@redhat.com>
6373 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6374 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6375 (CLIBS): Add DEBUGINFOD_LIBS.
6377 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6379 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6382 2020-08-17 Tom Tromey <tromey@adacore.com>
6384 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6385 ada_get_decoded_value returns NULL.
6387 2020-08-17 Tom Tromey <tromey@adacore.com>
6389 * python/py-inferior.c (infpy_search_memory): Use
6390 gdb_py_object_from_ulongest.
6391 * python/py-infevents.c (create_inferior_call_event_object)
6392 (create_memory_changed_event_object): Use
6393 gdb_py_object_from_ulongest.
6394 * python/py-linetable.c (ltpy_entry_get_pc): Use
6395 gdb_py_object_from_ulongest.
6397 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6399 * loc.c (class symbol_needs_eval_context): Fix indentation.
6401 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6403 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6406 2020-08-17 Tom de Vries <tdevries@suse.de>
6409 * gdbtypes.c (dump_dynamic_prop): New function.
6410 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6412 2020-08-15 Tom de Vries <tdevries@suse.de>
6415 * stack.c (print_frame_args): Temporarily set the selected
6416 frame to FRAME while printing the frame's arguments.
6418 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6420 PR breakpoints/26385
6421 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6422 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6424 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6426 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6427 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6428 and >= to check return value instead of == -1 and != -1.
6430 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6432 * utils.h (class gdb_argv) <as_array_view>: New method.
6433 * utils.c (gdb_argv_as_array_view_test): New.
6434 (_initialize_utils): Register selftest.
6435 * maint.c (maintenance_selftest): Use the new method.
6437 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6439 * target.h (supports_dumpcore, dumpcore): New
6440 function declarations.
6441 * target.c (supports_dumpcore, dumpcore): New
6443 * target-delegates.c: Rebuild.
6444 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6445 and target_dumpcore ().
6447 2020-08-13 Aaron Merey <amerey@redhat.com>
6449 * debuginfod-support.c: Replace global variables with user_data.
6451 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6453 * maint.c (maintenance_selftest): Split args and pass array_view
6456 2020-08-12 Luis Machado <luis.machado@linaro.org>
6458 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6460 Use %s and pulongest to print the length.
6462 2020-08-12 Pedro Alves <palves@redhat.com>
6464 * NEWS: Move "Multi-target debugging support" item to the
6465 "Changes since GDB 9" section.
6467 2020-08-12 Pedro Alves <palves@redhat.com>
6470 * progspace.c (program_space::remove_objfile): Invalidate the
6473 2020-08-11 Tom de Vries <tdevries@suse.de>
6475 * MAINTAINERS: Mark ms1 as deleted.
6477 2020-08-10 Luis Machado <luis.machado@linaro.org>
6481 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6483 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6484 movz/str/stur/stp skipping behavior.
6486 2020-08-10 Luis Machado <luis.machado@linaro.org>
6488 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6489 struct user_sve_header instead of struct sve_context.
6491 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6493 * read.h (dwarf2_fetch_die_loc_sect_off,
6494 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6495 `void *` parameter with function_view.
6496 * read.c (dwarf2_fetch_die_loc_sect_off,
6497 dwarf2_fetch_die_loc_cu_off): Likewise.
6498 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6499 (per_cu_dwarf_call): Adjust.
6500 (get_frame_address_in_block_wrapper): Remove.
6501 (indirect_synthetic_pointer): Adjust.
6502 (get_ax_pc): Remove.
6503 (dwarf2_compile_expr_to_ax): Adjust.
6505 2020-08-08 Tom de Vries <tdevries@suse.de>
6508 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6510 * regcache.c (get_thread_arch_aspace_regcache): Same.
6512 2020-08-07 Tom Tromey <tromey@adacore.com>
6514 * ravenscar-thread.c
6515 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6517 (ravenscar_thread_target::wait): Check
6518 runtime_initialized.
6519 (ravenscar_thread_target::prepare_to_store)
6520 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6521 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6522 (ravenscar_thread_target::stopped_by_watchpoint)
6523 (ravenscar_thread_target::stopped_data_address)
6524 (ravenscar_thread_target::core_of_thread): Use
6525 scoped_restore_current_thread and
6526 set_base_thread_from_ravenscar_task.
6528 2020-08-07 Tom Tromey <tromey@adacore.com>
6530 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6532 2020-08-07 Tom Tromey <tromey@adacore.com>
6534 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6535 update_inferior_ptid before update_thread_list.
6536 (temporarily_change_regcache_ptid): New class.
6537 (ravenscar_thread_target::fetch_registers)
6538 (ravenscar_thread_target::store_registers)
6539 (ravenscar_thread_target::prepare_to_store): Use base thread when
6540 forwarding operation.
6542 2020-08-07 Tom Tromey <tromey@adacore.com>
6544 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6547 2020-08-07 Tom Tromey <tromey@adacore.com>
6549 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6551 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6553 (ravenscar_thread_target::add_thread): Rename from
6554 ravenscar_add_thread.
6555 (ravenscar_thread_target::update_thread_list): Use a lambda.
6556 (ravenscar_thread_target::xfer_partial): New method.
6558 2020-08-07 Tom Tromey <tromey@adacore.com>
6560 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6562 (iterate_over_live_ada_tasks): Change type of argument.
6563 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6566 2020-08-07 Tom Tromey <tromey@adacore.com>
6568 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6570 (ravenscar_thread_target::extra_thread_info): Remove.
6571 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6572 defer to target beneath for non-Ravenscar threads.
6574 2020-08-07 Tom Tromey <tromey@adacore.com>
6576 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6577 get_base_thread_from_ravenscar_task>: Now methods.
6578 <m_cpu_map>: New member.
6579 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6580 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6581 (ravenscar_thread_target::task_is_currently_active): Update.
6582 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6584 (ravenscar_thread_target::add_active_thread): Put initial thread
6587 2020-08-07 Tom Tromey <tromey@adacore.com>
6589 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6592 2020-08-07 Tom Tromey <tromey@adacore.com>
6594 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6595 runtime_initialized.
6597 2020-08-07 Tom Tromey <tromey@adacore.com>
6599 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6601 (ravenscar_thread_target::add_active_thread): Now public.
6602 (ravenscar_inferior_created): Call add_active_thread after pushing
6605 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6607 * regcache.c (ptid_regcache_map): New type.
6608 (target_ptid_regcache_map): New type.
6609 (regcaches): Change type to target_ptid_regcache_map.
6610 (get_thread_arch_aspace_regcache): Update to regcaches' new
6612 (regcache_thread_ptid_changed): Likewise.
6613 (registers_changed_ptid): Likewise.
6614 (regcaches_size): Likewise.
6615 (regcaches_test): Update.
6616 (regcache_thread_ptid_changed): Update.
6617 * regcache.h (regcache_up): New type.
6618 * gdbsupport/ptid.h (hash_ptid): New struct.
6620 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6622 * observable.h (thread_ptid_changed): Add parameter
6623 `process_stratum_target *`.
6624 * infrun.c (infrun_thread_ptid_changed): Add parameter
6625 `process_stratum_target *` and use it.
6626 (selftests): New namespace.
6627 (infrun_thread_ptid_changed): New function.
6628 (_initialize_infrun): Register selftest.
6629 * regcache.c (regcache_thread_ptid_changed): Add parameter
6630 `process_stratum_target *` and use it.
6631 (regcache_thread_ptid_changed): New function.
6632 (_initialize_regcache): Register selftest.
6633 * thread.c (thread_change_ptid): Pass target to
6634 thread_ptid_changed observable.
6636 2020-08-06 Caroline Tice <cmtice@google.com>
6638 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6639 (struct dwp_sections): Update field comments. Add loclists and
6641 (struct virtual_v2_dwo_sections): Rename struct to
6642 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6643 size & offset fields for loclists and rnglists.
6644 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6645 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6646 skipping dummy type units.
6647 (create_dwp_hash_table): Update the large comment above the function to
6648 discuss Version 5 DWP files as well, with references. Update all the
6649 version checks in the function to check for version 5 as well. Add new
6650 section at the end to create dwp hash table for version 5.
6651 (create_dwp_v2_section): Rename function to
6652 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6653 Add V5 to error message text.
6654 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6655 into calls to create_dwp_v2_or_v5_section.
6656 (create_dwo_unit_in_dwp_v5): New function.
6657 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6658 check for version2; add else clause to handle version 5.
6659 (open_and_init_dwo_file): Add code to check dwarf version & only call
6660 create_debug_types_hash_table (with sections.types) if version is not 5;
6661 else call create_debug_type_hash_table, with sections.info.
6662 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6664 (dwarf2_locate_v5_dwp_sections): New function.
6665 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6666 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6668 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6670 * regcache.h (class regcache): Remove friend
6671 registers_changed_ptid.
6672 <regcache_thread_ptid_changed>: Remove.
6673 <regcaches>: Remove.
6674 * regcache.c (regcache::regcaches): Rename to...
6675 (regcaches): ... this. Make static.
6676 (get_thread_arch_aspace_regcache): Update.
6677 (regcache::regcache_thread_ptid_changed): Rename to...
6678 (regcache_thread_ptid_changed): ... this. Update.
6679 (class regcache_access): Remove.
6680 (regcaches_test): Update.
6681 (_initialize_regcache): Update.
6682 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6685 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6687 * regcache.h (class regcache) <current_regcache>: Rename to...
6688 <regcaches>: ... this. Move doc here.
6689 * regcache.c (regcache::current_regcache) Rename to...
6690 (regcache::regcaches): ... this. Move doc to header.
6691 (get_thread_arch_aspace_regcache): Update.
6692 (regcache::regcache_thread_ptid_changed): Update.
6693 (registers_changed_ptid): Update.
6694 (class regcache_access) <current_regcache_size>: Rename to...
6695 <regcaches_size>: ... this.
6696 (current_regcache_test): Rename to...
6697 (regcaches_test): ... this.
6698 (_initialize_regcache): Update.
6700 2020-08-06 Victor Collod <vcollod@nvidia.com>
6702 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6704 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6706 * corelow.c (core_target::build_file_mappings): Don't output
6707 null pathname in warning.
6709 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6711 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6712 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6713 gdb.dwarf2/dw2-single-line-discriminators.exp,
6714 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6716 2020-08-05 Tom Tromey <tromey@adacore.com>
6719 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6720 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6721 Fix off-by-one and type size errors in ordinary case.
6723 2020-08-05 Tom de Vries <tdevries@suse.de>
6725 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6726 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6728 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6730 * frame.h (frame_id_p): Return bool.
6731 (frame_id_artificial_p): Return bool.
6732 (frame_id_eq): Return bool.
6733 (has_stack_frames): Return bool.
6734 (get_selected_frame): Fix typo in comment.
6735 (get_frame_pc_if_available): Return bool.
6736 (get_frame_address_in_block_if_available): Return bool.
6737 (get_frame_func_if_available): Return bool.
6738 (read_frame_register_unsigned): Return bool.
6739 (get_frame_register_bytes): Return bool.
6740 (safe_frame_unwind_memory): Return bool.
6741 (deprecated_frame_register_read): Return bool.
6742 (frame_unwinder_is): Return bool.
6743 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6745 <this_id::p>: Likewise.
6747 (frame_stash_add): Return bool.
6748 (get_frame_id): Use bool.
6749 (frame_id_build_special) Use bool.
6750 (frame_id_build_unavailable_stack): Use bool.
6751 (frame_id_build): Use bool.
6752 (frame_id_p): Return bool, use true/false instead of 1/0.
6753 (frame_id_artificial_p): Likewise.
6754 (frame_id_eq): Likewise.
6755 (frame_id_inner): Likewise.
6756 (get_frame_func_if_available): Likewise.
6757 (read_frame_register_unsigned): Likewise.
6758 (deprecated_frame_register_read): Likewise.
6759 (get_frame_register_bytes): Likewise.
6760 (has_stack_frames): Likewise.
6761 (inside_main_func): Likewise.
6762 (inside_entry_func): Likewise.
6763 (get_frame_pc_if_available): Likewise.
6764 (get_frame_address_in_block_if_available): Likewise.
6765 (frame_unwinder_is): Likewise.
6766 (safe_frame_unwind_memory): Likewise.
6767 (frame_unwind_arch): Likewise.
6769 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6771 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6772 type to cached_copy_status.
6773 (fprintf_frame): Adjust.
6774 (get_frame_func_if_available): Adjust.
6775 (frame_cleanup_after_sniffer): Adjust.
6777 2020-08-04 Mark Wielaard <mark@klomp.org>
6779 * MAINTAINERS (Write After Approval): Update email address.
6781 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6783 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6784 dynamic_prop::const_val.
6786 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6788 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6791 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6793 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6795 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6797 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6799 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6800 Jose E. Marchesi <jose.marchesi@oracle.com>
6802 * configure.tgt: Add entry for bpf-*-*.
6803 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6804 (ALLDEPFILES): Add bpf-tdep.c.
6805 * bpf-tdep.c: New file.
6806 * MAINTAINERS: Add bpf target and maintainer.
6807 * NEWS: Mention the support for the new target.
6809 2020-08-04 Tom de Vries <tdevries@suse.de>
6812 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6815 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6817 * syscalls/freebsd.xml: Regenerate.
6819 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6821 * syscalls/update-freebsd.sh: Fix usage and year range.
6823 2020-08-03 Tom de Vries <tdevries@suse.de>
6826 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6827 DW_LNE_lo_user/DW_LNE_hi_user range.
6829 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6832 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6835 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6837 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6839 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6841 * breakpoint.c (set_breakpoint_condition): Update the condition
6842 expressions after checking that the input condition string parses
6843 successfully and does not contain junk at the end.
6845 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6847 * breakpoint.c (set_breakpoint_condition): Update the
6848 condition string after parsing the new condition successfully.
6850 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6852 * proc-api.c (_STRUCTURED_PROC): Don't define.
6853 * proc-events.c: Likewise.
6854 * proc-flags.c: Likewise.
6855 * proc-why.c: Likewise.
6856 * procfs.c: Likewise.
6858 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6859 * configure, config.in: Regenerate.
6861 2020-07-30 Tom de Vries <tdevries@suse.de>
6864 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6865 m_red/m_green/m_blue in a union.
6867 2020-07-29 Tom de Vries <tdevries@suse.de>
6870 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6872 2020-07-28 Tom Tromey <tromey@adacore.com>
6875 * symtab.h (find_pc_partial_function_sym): Declare.
6876 * cli/cli-cmds.c (disassemble_command): Use
6877 find_pc_partial_function_sym. Check asm_demangle.
6878 * blockframe.c (cache_pc_function_sym): New global.
6879 (cache_pc_function_name): Remove.
6880 (clear_pc_function_cache): Update.
6881 (find_pc_partial_function_sym): New function, from
6882 find_pc_partial_function.
6883 (find_pc_partial_function): Rewrite using
6884 find_pc_partial_function_sym.
6886 2020-07-28 Tom Tromey <tromey@adacore.com>
6888 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6891 2020-07-28 Tom Tromey <tromey@adacore.com>
6893 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6894 <DW_OP_GNU_variable_value>: Cast to address type.
6896 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6898 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6899 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6900 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6901 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6902 (nbsd_get_siginfo_type): New.
6903 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6904 (_initialize_nbsd_tdep): New.
6906 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6909 * configure: Regenerated.
6911 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6914 * configure: Regenerated.
6916 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6918 * python/py-frame.c: Remove 'user-regs.h' include.
6919 (frapy_read_register): Rewrite to make use of
6920 gdbpy_parse_register_id.
6921 * python/py-registers.c (gdbpy_parse_register_id): New function,
6922 moved here from python/py-unwind.c. Updated the return type, and
6923 also accepts register descriptor objects.
6924 * python/py-unwind.c: Remove 'user-regs.h' include.
6925 (pyuw_parse_register_id): Moved to python/py-registers.c.
6926 (unwind_infopy_add_saved_register): Update to use
6927 gdbpy_parse_register_id.
6928 (pending_framepy_read_register): Likewise.
6929 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6931 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6933 * python/py-registers.c: Add 'user-regs.h' include.
6934 (register_descriptor_iter_find): New function.
6935 (register_descriptor_iterator_object_methods): New static global
6937 (register_descriptor_iterator_object_type): Add pointer to methods
6940 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6942 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6943 for all architectures on FreeBSD 11.3 and later.
6945 2020-07-27 Tom Tromey <tromey@adacore.com>
6947 * gcore.h (load_corefile): Don't declare.
6949 2020-07-27 Tom de Vries <tdevries@suse.de>
6951 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6952 * config.in: Regenerate.
6953 * configure: Regenerate.
6955 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6957 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6958 ws2tcpip.h. When checking whether socklen_t type is defined, use
6959 ws2tcpip.h if it is available and sys/socket.h isn't.
6960 * configure: Regenerate.
6961 * config.in: Regenerate.
6963 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6967 * valops.c (value_ind): Pass address to
6968 readjust_indirect_value_type.
6969 * value.c (readjust_indirect_value_type): Make parameter
6970 non-const, and add extra address parameter. Resolve original type
6972 * value.h (readjust_indirect_value_type): Update function
6973 signature and comment.
6975 2020-07-25 Tom de Vries <tdevries@suse.de>
6978 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6981 2020-07-24 Aaron Merey <amerey@redhat.com>
6983 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6984 * configure: Rebuild.
6986 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6989 * corelow.c (_initialize_corelow): Add period to help text
6990 for "maintenance print core-file-backed-mappings".
6992 2020-07-23 Pedro Alves <pedro@palves.net>
6994 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6995 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6997 * frame.c (frame_cache_generation, get_frame_cache_generation):
6999 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
7000 (get_prev_frame_if_no_cycle): On exception, don't touch
7001 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
7002 * frame.h (get_frame_cache_generation): Declare.
7004 2020-07-23 Tom de Vries <tdevries@suse.de>
7007 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
7008 New default constructor.
7010 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
7012 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
7013 exclude non-statement entries.
7015 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7017 * NEWS (New commands): Mention new command
7018 "maintenance print core-file-backed-mappings".
7020 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7022 * corelow.c (gdbcmd.h): Include.
7023 (core_target::info_proc_mappings): New method.
7024 (get_current_core_target): New function.
7025 (maintenance_print_core_file_backed_mappings): New function.
7026 (_initialize_corelow): Add core-file-backed-mappings to
7027 "maint print" commands.
7029 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7031 * linux-tdep.c (dump_note_entry_p): New function.
7032 (linux_dump_mapping_p_ftype): New typedef.
7033 (linux_find_memory_regions_full): Add new parameter,
7034 should_dump_mapping_p.
7035 (linux_find_memory_regions): Adjust call to
7036 linux_find_memory_regions_full.
7037 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
7038 call to linux_find_memory_regions_full.
7040 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7042 * corelow.c (solist.h, unordered_map): Include.
7043 (class core_target): Add field m_core_file_mappings and
7044 method build_file_mappings.
7045 (core_target::core_target): Call build_file_mappings.
7046 (core_target::~core_target): Free memory associated with
7047 m_core_file_mappings.
7048 (core_target::build_file_mappings): New method.
7049 (core_target::xfer_partial): Use m_core_file_mappings
7050 for memory transfers.
7051 * linux-tdep.c (linux_read_core_file_mappings): New
7053 (linux_core_info_proc_mappings): Rewrite to use
7054 linux_read_core_file_mappings.
7055 (linux_init_abi): Register linux_read_core_file_mappings.
7057 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7059 * arch-utils.c (default_read_core_file_mappings): New function.
7060 * arch-utils.c (default_read_core_file_mappings): Declare.
7061 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
7062 * gdbarch.h, gdbarch.c: Regenerate.
7064 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7067 * corelow.c (core_target:xfer_partial): Revise
7068 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
7069 case after first checking the stratum beneath the core
7071 (has_all_memory): Return true.
7072 * target.c (raw_memory_xfer_partial): Revise comment
7073 regarding use of has_all_memory.
7075 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7077 * exec.h (section_table_xfer_memory): Revise declaration,
7078 replacing section name parameter with an optional callback
7080 * exec.c (section_table_xfer_memory): Likewise.
7081 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
7082 of section_table_xfer_memory.
7084 2020-07-22 Tom Tromey <tromey@adacore.com>
7086 * mi/mi-cmd-stack.c (list_args_or_locals): Use
7087 lookup_symbol_search_name.
7089 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
7091 * python/py-registers.c (gdbpy_register_object_data_init): Remove
7092 redundant local variable.
7093 (gdbpy_get_register_descriptor): Extract descriptor vector as a
7094 reference, not pointer, update code accordingly.
7096 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7097 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7099 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
7100 * jit.c (jit_breakpoint_re_set_internal): Use the
7101 `skip_jit_symbol_lookup` field.
7103 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7104 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7106 * jit.c (jit_read_descriptor): Define the descriptor address once,
7108 (jit_breakpoint_deleted): Move the declaration of the loop variable
7109 `iter` into the loop header.
7110 (jit_breakpoint_re_set_internal): Move the declaration of the local
7111 variable `objf_data` to the first point of definition.
7112 (jit_event_handler): Move the declaration of local variables
7113 `code_entry`, `entry_addr`, and `objf` to their first point of use.
7114 Rename `objf` to `jited`.
7116 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7118 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
7120 * jit.c (get_jiter_objfile_data): Update.
7122 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7123 Simon Marchi <simon.marchi@polymtl.ca>
7125 * jit.c (struct jit_program_space_data): Remove.
7126 (jit_program_space_key): Remove.
7127 (jiter_objfile_data::~jiter_objfile_data): Remove program space
7129 (get_jit_program_space_data): Remove.
7130 (jit_breakpoint_deleted): Iterate on all of the program space's
7132 (jit_inferior_init): Likewise.
7133 (jit_breakpoint_re_set_internal): Likewise. Also change return
7135 (jit_breakpoint_re_set): Pass current_program_space to
7136 jit_breakpoint_re_set_internal.
7138 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7140 * jit.h (struct jiter_objfile_data) <cached_code_address,
7141 jit_breakpoint>: Move to here from ...
7142 * jit.c (jit_program_space_data): ... here.
7143 (jiter_objfile_data::~jiter_objfile_data): Update.
7144 (jit_breakpoint_deleted): Update.
7145 (jit_breakpoint_re_set_internal): Update.
7147 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7149 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
7151 (jit_read_descriptor): Remove NULL check.
7152 (jit_event_handler): Add an assertion.
7154 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7156 * jit.h (struct jit_objfile_data): Split into...
7157 (struct jiter_objfile_data): ... this ...
7158 (struct jited_objfile_data): ... and this.
7159 * objfiles.h (struct objfile) <jit_data>: Remove.
7160 <jiter_data, jited_data>: New fields.
7161 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
7162 (jiter_objfile_data::~jiter_objfile_data): ... this.
7163 (get_jit_objfile_data): Rename to ...
7164 (get_jiter_objfile_data): ... this.
7165 (add_objfile_entry): Update.
7166 (jit_read_descriptor): Use get_jiter_objfile_data.
7167 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
7168 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
7169 (jit_inferior_exit_hook): Use objfile's jited_data field.
7171 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7173 * jit.h: Forward-declare `struct minimal_symbol`.
7174 (struct jit_objfile_data): Migrate to here from jit.c; also add a
7175 constructor, destructor, and an objfile* field.
7176 * jit.c (jit_objfile_data): Remove.
7177 (struct jit_objfile_data): Migrate from here to jit.h.
7178 (jit_objfile_data::~jit_objfile_data): New destructor
7179 implementation with code moved from free_objfile_data.
7180 (free_objfile_data): Delete.
7181 (get_jit_objfile_data): Update to use the jit_data field of objfile.
7182 (jit_find_objf_with_entry_addr): Ditto.
7183 (jit_inferior_exit_hook): Ditto.
7184 (_initialize_jit): Remove the call to
7185 register_objfile_data_with_cleanup.
7186 * objfiles.h (struct objfile) <jit_data>: New field.
7188 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7190 * jit.h: Forward-declare `struct objfile`.
7191 (jit_event_handler): Add a second parameter, the JITer objfile.
7192 * jit.c (jit_read_descriptor): Change the signature to take the
7193 JITer objfile as an argument instead of the jit_program_space_data.
7194 (jit_inferior_init): Update the call to jit_read_descriptor.
7195 (jit_event_handler): Use the new JITer objfile argument when calling
7196 jit_read_descriptor.
7197 * breakpoint.c (handle_jit_event): Update the call to
7198 jit_event_handler to pass the JITer objfile.
7200 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7202 * gdbarch.c: Regenerate.
7203 * gdbarch.h: Regenerate.
7204 * gdbarch.sh (handle_segmentation_fault): Remove method.
7205 * infrun.c (handle_segmentation_fault): Remove.
7206 (print_signal_received_reason): Remove call to
7207 handle_segmentation_fault.
7209 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7211 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7212 Rename to sparc64_linux_report_signal_info and add siggnal
7214 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
7215 instead of sparc64_linux_handle_segmentation_fault.
7217 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7219 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
7220 i386_linux_report_signal_info instead of
7221 i386_linux_handle_segmentation_fault.
7222 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
7223 to i386_linux_report_signal_info and add siggnal argument.
7224 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
7225 of i386_linux_handle_segmentation_fault.
7226 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
7227 to i386_linux_report_signal_info and add siggnal argument.
7229 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7231 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7234 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7236 * gdbarch.c: Regenerate.
7237 * gdbarch.h: Regenerate.
7238 * gdbarch.sh (report_signal_info): New method.
7239 * infrun.c (print_signal_received_reason): Invoke gdbarch
7240 report_signal_info hook if present.
7242 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7244 * python/py-registers.c : Add 'unordered_map' include.
7245 (gdbpy_new_reggroup): Renamed to...
7246 (gdbpy_get_reggroup): ...this. Update to only create register
7247 group descriptors when needed.
7248 (gdbpy_reggroup_iter_next): Update.
7250 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7252 * python/py-registers.c (gdbpy_register_object_data): New static
7254 (gdbpy_register_object_data_init): New function.
7255 (gdbpy_new_register_descriptor): Renamed to...
7256 (gdbpy_get_register_descriptor): ...this, and update to reuse
7257 existing register descriptors where possible.
7258 (gdbpy_register_descriptor_iter_next): Update.
7259 (gdbpy_initialize_registers): Register new gdbarch data.
7261 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
7263 * linux-nat.c (stopped_pids): Make static.
7265 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7268 * gdbtypes.c (ada_discrete_type_low_bound,
7269 ada_discrete_type_high_bound): Handle undefined bounds.
7271 2020-07-21 Kamil Rytarowski <n54@gmx.com>
7273 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7275 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7278 2020-07-20 John Baldwin <jhb@FreeBSD.org>
7280 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7281 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7282 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7283 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7284 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7287 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7289 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7290 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7291 which are deprecated in Guile 3.0.
7292 * configure.ac (try_guile_versions): Add "guile-3.0".
7293 * configure (try_guile_versions): Regenerate.
7294 * NEWS: Update entry.
7296 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7297 Doug Evans <dje@google.com>
7300 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7301 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7302 USING_GUILE_BEFORE_2_2.
7303 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7304 Change type to 'scm_t_port_type *'.
7305 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7306 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7307 parameter and honor it. Update callers.
7308 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7309 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7311 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7312 USING_GUILE_BEFORE_2_2.
7313 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7314 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7315 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7316 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7317 and 'SCM_PORT_TYPE'.
7318 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7319 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7320 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7321 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7322 [!USING_GUILE_BEFORE_2_2]: New functions.
7323 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7324 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7325 'gdbscm_memory_port_read'.
7326 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7327 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7328 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7330 (ioscm_init_memory_port): Remove.
7331 (ioscm_init_memory_port_stream): New function
7332 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7334 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7335 Return scm_from_uint (0).
7336 (gdbscm_set_memory_port_read_buffer_size_x)
7337 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7338 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7339 Return scm_from_uint (0).
7340 (gdbscm_set_memory_port_write_buffer_size_x)
7341 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7342 * configure.ac (try_guile_versions): Add "guile-2.2".
7343 * configure: Regenerate.
7346 2020-07-18 Tom Tromey <tom@tromey.com>
7348 * linux-nat.c (linux_multi_process): Remove.
7349 (linux_nat_target::supports_multi_process): Return true.
7351 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7353 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7354 (riscv_lookup_target_description): Return pointer out of
7356 * target-descriptions.c (allocate_target_description): Add
7358 (target_desc_deleter::operator()): Likewise.
7359 * target-descriptions.h (struct target_desc_deleter): Moved to
7361 (target_desc_up): Likewise.
7363 2020-07-17 Tom Tromey <tromey@adacore.com>
7365 * linux-nat.c (linux_nat_target::supports_non_stop)
7366 (linux_nat_target::always_non_stop_p): Use "true".
7367 (linux_nat_target::supports_disable_randomization): Use "true" and
7370 2020-07-16 Caroline Tice <cmtice@google.com>
7372 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7373 (RNGLIST_HEADER_SIZE64): New constant definition.
7374 (struct dwop_section_names): Add rnglists_dwo.
7375 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7376 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7377 (struct dwo_sections): Add rnglists field.
7378 (read_attribut_reprocess): Add tag parameter.
7379 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7380 (cu_debug_rnglists_section): New function (decl & definition).
7381 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7382 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7383 die whose range is being checked; get rnglist section from
7384 cu_debug_rnglists_section, to get from either objfile or dwo file as
7385 appropriate. Add cases for DW_RLE_base_addressx,
7386 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7387 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7388 test inside if-condition and updating complaint message.
7389 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7390 dwarf2_rnglists_process.
7391 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7392 dwarf2_ranges_process.
7393 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7394 need_ranges_base and update comment appropriately. Also pass die tag
7395 to dwarf2_ranges_read.
7396 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7397 need_ranges_base and update comment appropriately. Also pass die tag
7398 to dwarf2_ranges_process.
7399 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7400 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7401 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7402 need_ranges_base and update comment appropriately. Also pass die tag
7403 to read_attribute_reprocess and dwarf2_ranges_read.
7404 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7405 and update function comment appropriately.
7406 (read_loclist_index): Call read_loclists_rnglists_header instead of
7407 read_loclist_header.
7408 (read_rnglist_index): New function.
7409 (read_attribute_reprocess): Add tag parameter. Add code for
7410 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7411 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7413 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7415 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7418 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7420 * arch-utils.c (show_architecture): Update formatting of messages.
7422 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7424 * gdbtypes.h (struct type) <bounds>: Handle array and string
7426 * ada-lang.c (assign_aggregate): Use type::bounds on
7428 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7429 * c-varobj.c (c_number_of_children): Likewise.
7430 (c_describe_child): Likewise.
7431 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7432 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7433 (f_type_print_base): Likewise.
7434 * f-valprint.c (f77_array_offset_tbl): Likewise.
7435 (f77_get_upperbound): Likewise.
7436 (f77_print_array_1): Likewise.
7437 * guile/scm-type.c (gdbscm_type_range): Likewise.
7438 * m2-typeprint.c (m2_array): Likewise.
7439 (m2_is_long_set_of_type): Likewise.
7440 * m2-valprint.c (get_long_set_bounds): Likewise.
7441 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7442 * python/py-type.c (typy_range): Likewise.
7443 * rust-lang.c (rust_internal_print_type): Likewise.
7444 * type-stack.c (type_stack::follow_types): Likewise.
7445 * valarith.c (value_subscripted_rvalue): Likewise.
7446 * valops.c (value_cast): Likewise.
7448 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7450 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7451 callers to use the equivalent accessor methods.
7453 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7455 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7456 (struct type) <bit_stride>: New method.
7457 (TYPE_BIT_STRIDE): Remove.
7458 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7460 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7462 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7463 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7464 callers to use the equivalent accessor methods instead.
7466 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7468 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7469 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7470 callers to use the equivalent accessor methods instead.
7472 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7474 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7475 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7476 to use dynamic_prop::kind.
7478 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7480 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7481 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7482 to get the bound property's kind and check against
7485 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7487 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7488 all callers to use type::range_bounds followed by
7489 dynamic_prop::{low,high}.
7491 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7493 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7494 const_val, set_const_val, baton, set_locexpr, set_loclist,
7495 set_addr_offset, variant_parts, set_variant_parts,
7496 original_type, set_original_type>: New methods.
7497 <kind>: Rename to...
7498 <m_kind>: ... this. Update all users to use the new methods
7500 <data>: Rename to...
7501 <m_data>: ... this. Update all users to use the new methods
7504 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7506 * gdbtypes.c (get_discrete_bounds): Return failure if
7507 the range type's bounds are not both defined and constant
7509 (get_array_bounds): Update comment. Remove undefined bound check.
7511 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7513 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7514 the type::bounds method directly.
7516 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7518 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7519 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7520 are used to set the range type's bounds to use set_bounds.
7522 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7524 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7526 2020-07-10 Pedro Alves <pedro@palves.net>
7528 * gdbthread.h (inferior_ref): Define.
7529 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7530 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7532 (scoped_restore_current_thread::restore):
7533 Adjust to gdb::ref_ptr.
7534 (scoped_restore_current_thread::~scoped_restore_current_thread):
7535 Remove manual decref handling.
7536 (scoped_restore_current_thread::scoped_restore_current_thread):
7538 inferior_ref::new_reference/thread_info_ref::new_reference.
7539 Incref the thread before calling get_frame_id instead of after.
7540 Let TARGET_CLOSE_ERROR propagate.
7542 2020-07-10 Pedro Alves <pedro@palves.net>
7544 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7545 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7546 NOT_AVAILABLE_ERROR.
7547 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7548 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7550 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7551 Pedro Alves <pedro@palves.net>
7554 * infrun.c (threads_are_resumed_pending_p): Delete.
7555 (do_target_wait): Remove threads_are_executing and
7556 threads_are_resumed_pending_p checks from the inferior_matches
7557 lambda. Update comments.
7559 2020-07-10 Pedro Alves <pedro@palves.net>
7562 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7565 2020-07-10 Pedro Alves <pedro@palves.net>
7568 * infrun.c (handle_no_resumed): Handle multiple targets.
7570 2020-07-10 Pedro Alves <pedro@palves.net>
7573 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7576 2020-07-10 Pedro Alves <pedro@palves.net>
7579 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7580 threads, not all threads.
7582 2020-07-10 Pedro Alves <pedro@palves.net>
7585 * remote.c (remote_target::open_1): Pass remote target pointer as
7586 data to create_async_event_handler.
7587 (remote_async_inferior_event_handler): Mark async event handler
7588 before returning if the remote target still has either pending
7589 events or unacknowledged notifications.
7591 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7593 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7595 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7598 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7600 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7603 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7605 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7606 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7607 AT_FREEBSD_PS_STRINGS.
7609 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7611 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7612 of debugfile path on Windows.
7614 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7616 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7619 2020-07-08 Tom Tromey <tromey@adacore.com>
7621 * ada-lang.c (ada_exception_message_1): Use read_memory.
7623 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7626 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7627 special handling for inline frames.
7628 * findvar.c (value_of_register_lazy): Skip inline frames when
7629 creating lazy register values.
7630 * frame.c (frame_id_computed_p): Delete definition.
7631 * frame.h (frame_id_computed_p): Delete declaration.
7633 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7635 * NEWS: Mention additions to Python API.
7636 * python/py-arch.c (archpy_register_groups): New function.
7637 (arch_object_methods): Add 'register_groups' method.
7638 * python/py-registers.c (reggroup_iterator_object): New struct.
7639 (reggroup_object): New struct.
7640 (gdbpy_new_reggroup): New function.
7641 (gdbpy_reggroup_to_string): New function.
7642 (gdbpy_reggroup_name): New function.
7643 (gdbpy_reggroup_iter): New function.
7644 (gdbpy_reggroup_iter_next): New function.
7645 (gdbpy_new_reggroup_iterator): New function
7646 (gdbpy_initialize_registers): Register new types.
7647 (reggroup_iterator_object_type): Define new Python type.
7648 (gdbpy_reggroup_getset): New static global.
7649 (reggroup_object_type): Define new Python type.
7650 * python/python-internal.h
7652 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7654 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7655 * python/py-arch.c (archpy_registers): New function.
7656 (arch_object_methods): Add 'registers' method.
7657 * python/py-registers.c: New file.
7658 * python/python-internal.h
7659 (gdbpy_new_register_descriptor_iterator): Declare.
7660 (gdbpy_initialize_registers): Declare.
7661 * python/python.c (do_start_initialization): Call
7662 gdbpy_initialize_registers.
7663 * NEWS: Mention additions to the Python API.
7665 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7667 * NEWS: Mention new Python API method.
7668 * python/py-unwind.c (pending_framepy_architecture): New function.
7669 (pending_frame_object_methods): Add architecture method.
7671 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7673 * gdbarch.c: Regenerate.
7674 * gdbarch.h: Regenerate.
7675 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7676 (gdbarch_data): Use internal_error for the case where
7677 deprecated_set_gdbarch_data was originally needed.
7678 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7679 and use passed in obstack.
7680 (libunwind_frame_set_descr): Should no longer get back NULL from
7682 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7684 * user-regs.c (user_regs_init): Update parameters, and use passed
7686 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7687 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7689 2020-07-06 Tom de Vries <tdevries@suse.de>
7691 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7692 End-Of-Sequence in lte_is_less_than.
7693 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7694 "gdb: Don't reorder line table entries too much when sorting".
7696 2020-07-06 Tom de Vries <tdevries@suse.de>
7699 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7701 2020-07-05 Tom de Vries <tdevries@suse.de>
7704 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7705 std::uncaught_exceptions instead of deprecated
7706 std::uncaught_exception.
7708 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7710 * macroexp.h (macro_stringify): Return
7711 gdb::unique_xmalloc_ptr<char>.
7712 * macroexp.c (macro_stringify): Likewise.
7713 * macrotab.c (fixup_definition): Update.
7715 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7717 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7718 (lex_one_token): Update.
7719 * macroexp.c (struct macro_buffer) <release>: Return
7720 gdb::unique_xmalloc_ptr<char>.
7721 (macro_stringify): Update.
7722 (macro_expand): Update.
7723 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7724 * macroexp.h (macro_expand_next): Likewise.
7726 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7728 * macroexp.h (macro_lookup_ftype): Remove.
7729 (macro_expand, macro_expand_once, macro_expand_next): Remove
7730 lookup function parameters, add scope parameter.
7731 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7732 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7733 * macroscope.h (standard_macro_lookup): Change parameter type
7735 * macroscope.c (standard_macro_lookup): Likewise.
7736 * c-exp.y (lex_one_token): Update.
7737 * macrocmd.c (macro_expand_command): Likewise.
7738 (macro_expand_once_command): Likewise.
7740 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7742 * inf-loop.c (inferior_event_handler): Remove client_data param.
7743 * inf-loop.h (inferior_event_handler): Likewise.
7744 * infcmd.c (step_1): Adjust.
7745 * infrun.c (proceed): Adjust.
7746 (fetch_inferior_event): Remove client_data param.
7747 (infrun_async_inferior_event_handler): Adjust.
7748 * infrun.h (fetch_inferior_event): Remove `void *` param.
7749 * linux-nat.c (handle_target_event): Adjust.
7750 * record-btrace.c (record_btrace_handle_async_inferior_event):
7752 * record-full.c (record_full_async_inferior_event_handler):
7754 * remote.c (remote_async_inferior_event_handler): Adjust.
7756 2020-07-01 Tom Tromey <tom@tromey.com>
7758 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7759 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7761 2020-07-01 Tom Tromey <tom@tromey.com>
7763 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7765 (tui_win_info::make_window): Merge with
7766 tui_gen_win_info::make_window.
7767 (tui_win_info::make_visible): Move from tui_gen_win_info.
7768 * tui/tui-win.c (tui_win_info::max_width): Move from
7770 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7772 <window_factory>: Likewise.
7773 * tui/tui-layout.c (tui_win_info::resize): Move from
7775 (make_standard_window): Change return type.
7776 (get_locator_window, tui_get_window_by_name): Likewise.
7777 (tui_layout_window::apply): Remove a cast.
7778 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7779 (struct tui_win_info): Merge with tui_gen_win_info.
7780 (struct tui_gen_win_info): Remove.
7782 2020-07-01 Tom Tromey <tom@tromey.com>
7784 * tui/tui-stack.h (struct tui_locator_window): Derive from
7786 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7787 <can_box>: New method.
7789 2020-07-01 Tom Tromey <tom@tromey.com>
7791 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7793 2020-07-01 Tom Tromey <tom@tromey.com>
7795 * tui/tui-regs.c (tui_data_window::display_registers_from)
7796 (tui_data_window::display_registers_from)
7797 (tui_data_window::first_data_item_displayed)
7798 (tui_data_window::delete_data_content_windows): Update.
7799 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7801 (tui_data_window::check_register_values): Update.
7802 (tui_data_item_window::rerender): Add parameters. Update.
7803 (tui_data_item_window::refresh_window): Remove.
7804 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7806 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7808 <refresh_window, max_height, min_height>: Remove.
7809 <rerender>: Add parameters.
7810 <x, y, visible>: New members.
7811 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7812 <m_item_width>: New member.
7814 2020-07-01 Tom Tromey <tom@tromey.com>
7816 * tui/tui-regs.c (tui_data_window::show_register_group)
7817 (tui_data_window::check_register_values): Update.
7818 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7821 2020-07-01 Tom Tromey <tom@tromey.com>
7823 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7826 2020-07-01 Tom Tromey <tom@tromey.com>
7828 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7829 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7831 2020-07-01 Tom Tromey <tom@tromey.com>
7833 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7834 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7835 (struct tui_line_or_address): Move from tui-data.h.
7836 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7837 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7838 (tui_cmd_window, tui_source_window_base, tui_source_window)
7839 (tui_disasm_window): Don't declare.
7840 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7842 (SINGLE_KEY): Move to tui-stack.c.
7844 2020-07-01 Tom Tromey <tom@tromey.com>
7846 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7848 * tui/tui-regs.c (class tab_expansion_file): New.
7849 (tab_expansion_file::write): New method.
7850 (tui_register_format): Change return type. Use
7852 (tui_get_register, tui_data_window::display_registers_from)
7853 (tui_data_item_window::rerender): Update.
7854 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7855 * tui/tui-io.c (tui_expand_tabs): Remove.
7857 2020-07-01 Tom Tromey <tom@tromey.com>
7859 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7861 2020-07-01 Fangrui Song <maskray@google.com>
7863 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7865 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7867 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7868 forms for DW_AT_associated and DW_AT_allocated attributes,
7869 which is already checked in function attr_to_dynamic_prop.
7871 2020-06-30 Tom Tromey <tromey@adacore.com>
7873 * dwarf2/read.c (quirk_rust_enum): Correctly call
7874 alloc_rust_variant for default-less enum.
7876 2020-06-30 Tom Tromey <tromey@adacore.com>
7879 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7882 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7884 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7885 * gdbarch.h: Re-generate.
7887 2020-06-28 Tom Tromey <tom@tromey.com>
7889 * command.h (cmd_types): Remove.
7890 (cmd_type): Don't declare.
7891 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7893 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7894 * cli/cli-decode.c (cmd_type): Remove.
7896 2020-06-27 Pedro Alves <palves@redhat.com>
7898 * fork-child.c (prefork_hook): Adjust.
7899 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7901 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7902 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7903 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7904 Remove declarations.
7905 (struct inferior) <set_tty, tty>: New methods.
7906 (struct inferior) <terminal>: Rename to ...
7907 (struct inferior) <m_terminal>: ... this and make private.
7908 * main.c (captured_main_1): Adjust.
7909 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7910 (mi_cmd_inferior_tty_show): Adjust.
7911 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7912 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7914 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7916 * configure.ac: Add --enable-libctf: handle --disable-static
7918 * acinclude.m4: sinclude ../config/enable.m4.
7919 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7920 (LIBCTF): Substitute in.
7921 (CTF_DEPS): New, likewise.
7922 (CLIBS): libctf needs symbols from libbfd: move earlier.
7923 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7925 * ctfread.c: Surround in ENABLE_LIBCTF.
7926 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7927 * configure: Regenerate.
7928 * config.in: Likewise.
7930 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7932 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7934 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7936 * inferior.h (struct inferior) <terminal>: Change type to
7937 gdb::unique_xmalloc_ptr<char>.
7938 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7939 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7940 field, adjust to unique pointer.
7941 (get_inferior_io_terminal): Adjust to unique pointer.
7943 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7945 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7946 registers, not just the known core set of registers.
7948 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7950 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7951 fflags, frm, and fcsr registers.
7952 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7954 (riscv_tdesc_unknown_reg): New function.
7955 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7956 tdesc_use_registers.
7957 * riscv-tdep.h (struct gdbarch_tdep): Add
7958 unknown_csrs_first_regnum, unknown_csrs_count,
7959 duplicate_fflags_regnum, duplicate_frm_regnum, and
7960 duplicate_fcsr_regnum fields.
7962 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7964 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7965 callback, use the callback (when not null) to help number unknown
7967 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7968 (tdesc_use_registers): Add extra parameter to declaration.
7970 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7972 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7974 (class riscv_pending_register_alias): Likewise.
7975 (riscv_register_feature::register_info): Change 'required_p' field
7976 to 'required', and change its type. Add 'check' member function.
7977 (riscv_register_feature::register_info::check): Define new member
7979 (riscv_xreg_feature): Change initialisation of 'required' field.
7980 (riscv_freg_feature): Likewise.
7981 (riscv_virtual_feature): Likewise.
7982 (riscv_csr_feature): Likewise.
7983 (riscv_check_tdesc_feature): Take extra parameter, the csr
7984 tdesc_feature, rewrite the function to use the new
7985 riscv_register_feature::register_info::check function.
7986 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7988 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7990 * features/Makefile: Remove all references to the deleted files
7992 * features/riscv/32bit-csr.c: Deleted.
7993 * features/riscv/32bit-csr.xml: Deleted.
7994 * features/riscv/64bit-csr.c: Deleted.
7995 * features/riscv/64bit-csr.xml: Deleted.
7996 * features/riscv/rebuild-csr-xml.sh: Deleted.
7998 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8000 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
8001 whitespace error for declaration of names member variable.
8002 (struct riscv_register_feature): Add new prefer_first_name member
8003 variable, and fix whitespace error in declaration of registers.
8004 (riscv_xreg_feature): Initialize prefer_first_name field.
8005 (riscv_freg_feature): Likewise.
8006 (riscv_virtual_feature): Likewise.
8007 (riscv_csr_feature): Likewise.
8008 (riscv_register_name): Expand on comments. Remove register name
8009 modifications for CSR and virtual registers.
8011 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8013 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
8016 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8018 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
8020 (class riscv_pending_register_alias): New class.
8021 (riscv_check_tdesc_feature): Take vector of pending aliases and
8022 populate it as appropriate.
8023 (riscv_setup_register_aliases): Delete.
8024 (riscv_gdbarch_init): Create vector of pending aliases and pass it
8025 to riscv_check_tdesc_feature in all cases. Use the vector to
8026 create the register aliases.
8028 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8030 * sol2-tdep.c (sol2_static_transform_name): Remove.
8031 (sol2_init_abi): Don't register it.
8032 * gdbarch.sh (static_transform_name): Remove.
8033 * gdbarch.c, gdbarch.h: Regenerate.
8035 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
8036 gdbarch_static_transform_name.
8037 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
8038 * stabsread.c (define_symbol) <'X'>: Remove.
8039 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
8042 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
8043 <'S'>: Remove call to gdbarch_static_transform_name.
8045 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8047 * procfs.c (procfs_pre_trace): New function.
8048 (procfs_target::create_inferior): Pass it to fork_inferior.
8050 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8052 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
8053 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
8054 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
8055 sol2-tdep.o, sparc-sol2-tdep.o.
8056 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
8057 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
8058 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
8059 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
8061 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8063 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
8064 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
8066 Remove calls to set_gdbarch_skip_solib_resolver,
8067 set_gdbarch_core_pid_to_str.
8068 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
8069 (i386_sol2_static_transform_name): Remove.
8070 (i386_sol2_init_abi): Call sol2_init_abi.
8071 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8072 set_gdbarch_static_transform_name,
8073 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8074 Use sol2_sigtramp_p.
8075 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
8076 (sol2_sigtramp_p): New function.
8077 (sol2_static_transform_name): New function.
8078 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
8079 (sol2_init_abi): New function.
8080 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
8081 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
8082 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
8083 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
8084 (sparc_sol2_static_transform_name): Remove.
8085 (sparc32_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,
8089 set_gdbarch_core_pid_to_str.
8090 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
8091 (sparc_sol2_static_transform_name): Remove
8092 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
8093 call sol2_sigtramp_p.
8094 (sparc64_sol2_init_abi): Call sol2_init_abi.
8095 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8096 set_gdbarch_static_transform_name,
8097 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8099 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8101 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
8102 * exec.c (validate_exec_file): If from_tty, set both
8103 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
8104 * symfile.c (symbol_file_add_with_addrs): if always_confirm
8105 and from_tty, unconditionally ask a confirmation.
8107 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8109 * target-descriptions.c (tdesc_architecture_name): Protect against
8110 NULL pointer dereference.
8111 (maint_print_xml_tdesc_cmd): New function.
8112 (_initialize_target_descriptions): Register new 'maint print
8113 xml-tdesc' command and give it the filename completer.
8114 * NEWS: Mention new 'maint print xml-tdesc' command.
8116 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8118 * target-descriptions.c (class tdesc_compatible_info): New class.
8119 (struct target_desc): Change type of compatible vector.
8120 (tdesc_compatible_p): Update for change in type of
8121 target_desc::compatible.
8122 (tdesc_compatible_info_list): New function.
8123 (tdesc_compatible_info_arch_name): New function.
8124 (tdesc_add_compatible): Update for change in type of
8125 target_desc::compatible.
8126 (print_c_tdesc::visit_pre): Likewise.
8128 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8130 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
8131 whitespace to underscore.
8132 (maint_print_c_tdesc_cmd): Use fake filename for target
8133 descriptions that came from the target.
8134 (_initialize_target_descriptions): Add filename command completion
8135 for 'maint print c-tdesc'.
8137 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
8139 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
8142 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
8144 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
8146 (dwarf2_find_location_expression): Likewise.
8147 (call_site_parameter_matches): Likewise.
8148 (dwarf2_compile_expr_to_ax): Likewise.
8149 (disassemble_dwarf_expression): Likewise.
8150 (loclist_describe_location): Likewise.
8152 2020-06-23 Pedro Alves <palves@redhat.com>
8154 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
8155 progspace-and-thread.h. Include scoped-mock-context.h instead.
8156 (register_to_value_test): Use scoped_mock_context.
8157 * regcache.c: Include "scoped-mock-context.h".
8158 (cooked_read_test): Don't error out if a target is already pushed.
8159 Use scoped_mock_context. Adjust.
8160 * scoped-mock-context.h: New file.
8162 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8164 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
8166 (ada_language::is_string_type_p): New member function.
8167 * c-lang.c (c_language_data): Delete la_is_string_type_p
8169 (cplus_language_data): Likewise.
8170 (asm_language_data): Likewise.
8171 (minimal_language_data): Likewise.
8172 * d-lang.c (d_language_data): Likewise.
8173 * f-lang.c (f_is_string_type_p): Delete function, implementation
8174 moved to f_language::is_string_type_p.
8175 (f_language_data): Delete la_is_string_type_p initializer.
8176 (f_language::is_string_type_p): New member function,
8177 implementation from f_is_string_type_p.
8178 * go-lang.c (go_is_string_type_p): Delete function, implementation
8179 moved to go_language::is_string_type_p.
8180 (go_language_data): Delete la_is_string_type_p initializer.
8181 (go_language::is_string_type_p): New member function,
8182 implementation from go_is_string_type_p.
8183 * language.c (language_defn::is_string_type_p): Define new member
8185 (default_is_string_type_p): Make static, add comment copied from
8187 (unknown_language_data): Delete la_is_string_type_p initializer.
8188 (unknown_language::is_string_type_p): New member function.
8189 (auto_language_data): Delete la_is_string_type_p initializer.
8190 (auto_language::is_string_type_p): New member function.
8191 * language.h (language_data): Delete la_is_string_type_p field.
8192 (language_defn::is_string_type_p): Declare new function.
8193 (default_is_string_type_p): Delete desclaration, move comment to
8195 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
8196 moved to m2_language::is_string_type_p.
8197 (m2_language_data): Delete la_is_string_type_p initializer.
8198 (m2_language::is_string_type_p): New member function,
8199 implementation from m2_is_string_type_p.
8200 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
8202 * opencl-lang.c (opencl_language_data): Likewise.
8203 * p-lang.c (pascal_is_string_type_p): Delete function,
8204 implementation moved to pascal_language::is_string_type_p.
8205 (pascal_language_data): Delete la_is_string_type_p initializer.
8206 (pascal_language::is_string_type_p): New member function,
8207 implementation from pascal_is_string_type_p.
8208 * rust-lang.c (rust_is_string_type_p): Delete function,
8209 implementation moved to rust_language::is_string_type_p.
8210 (rust_language_data): Delete la_is_string_type_p initializer.
8211 (rust_language::is_string_type_p): New member function,
8212 implementation from rust_is_string_type_p.
8213 * valprint.c (val_print_scalar_or_string_type_p): Update call to
8216 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8218 * ada-lang.c (ada_language_data): Delete la_print_typedef
8220 (ada_language::print_typedef): New member function.
8221 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
8222 (cplus_language_data): Likewise.
8223 (asm_language_data): Likewise.
8224 (minimal_language_data): Likewise.
8225 * d-lang.c (d_language_data): Likewise.
8226 * f-lang.c (f_language_data): Likewise.
8227 (f_language::print_typedef): New member function.
8228 * go-lang.c (go_language_data): Delete la_print_typedef
8230 * language.c (language_defn::print_typedef): Define member
8232 (unknown_language_data): Delete la_print_typedef initializer.
8233 (unknown_language::print_typedef): New member function.
8234 (auto_language_data): Delete la_print_typedef initializer.
8235 (auto_language::print_typedef): New member function.
8236 * language.h (language_data): Delete la_print_typedef field.
8237 (language_defn::print_typedef): Declare new member function.
8238 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8239 (default_print_typedef): Delete declaration.
8240 * m2-lang.c (m2_language_data): Delete la_print_typedef
8242 (m2_language::print_typedef): New member function.
8243 * objc-lang.c (objc_language_data): Delete la_print_typedef
8245 * opencl-lang.c (opencl_language_data): Likewise.
8246 * p-lang.c (pascal_language_data): Likewise.
8247 (pascal_language::print_typedef): New member function.
8248 * rust-lang.c (rust_print_typedef): Delete function,
8249 implementation moved to rust_language::print_typedef.
8250 (rust_language): Delete la_print_typedef initializer.
8251 (rust_language::print_typedef): New member function,
8252 implementation from rust_print_typedef.
8253 * typeprint.c (default_print_typedef): Delete.
8255 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8257 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8258 (ada_language::printstr): New member function.
8259 * c-lang.c (c_language_data): Delete la_printstr initializer.
8260 (cplus_language_data): Likewise.
8261 (asm_language_data): Likewise.
8262 (minimal_language_data): Likewise.
8263 * d-lang.c (d_language_data): Likewise.
8264 * f-lang.c (f_printstr): Rename to f_language::printstr.
8265 (f_language_data): Delete la_printstr initializer.
8266 (f_language::printstr): New member function, implementation from
8268 * go-lang.c (go_language_data): Delete la_printstr initializer.
8269 * language.c (language_defn::printstr): Define new member
8271 (unk_lang_printstr): Delete.
8272 (unknown_language_data): Delete la_printstr initializer.
8273 (unknown_language::printstr): New member function.
8274 (auto_language_data): Delete la_printstr initializer.
8275 (auto_language::printstr): New member function.
8276 * language.h (language_data): Delete la_printstr field.
8277 (language_defn::printstr): Declare new member function.
8278 (LA_PRINT_STRING): Update call to printstr.
8279 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8280 (m2_language_data): Delete la_printstr initializer.
8281 (m2_language::printstr): New member function, implementation from
8283 * objc-lang.c (objc_language_data): Delete la_printstr
8285 * opencl-lang.c (opencl_language_data): Likewise.
8286 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8287 (pascal_language_data): Delete la_printstr initializer.
8288 (pascal_language::printstr): New member function, implementation
8289 from pascal_printstr.
8290 * p-lang.h (pascal_printstr): Delete declaration.
8291 * rust-lang.c (rust_printstr): Update header comment.
8292 (rust_language_data): Delete la_printstr initializer.
8293 (rust_language::printstr): New member function.
8295 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8297 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8298 (ada_language::printchar): New member function.
8299 * c-lang.c (c_language_data): Delete la_printchar initializer.
8300 (cplus_language_data): Likewise.
8301 (asm_language_data): Likewise.
8302 (minimal_language_data): Likewise.
8303 * d-lang.c (d_language_data): Likewise.
8304 * f-lang.c (f_printchar): Rename to f_language::printchar.
8305 (f_language_data): Delete la_printchar initializer.
8306 (f_language::printchar): New member function, implementation from
8308 * go-lang.c (go_language_data): Delete la_printchar initializer.
8309 * language.c (unk_lang_printchar): Delete.
8310 (language_defn::printchar): Define new member function.
8311 (unknown_language_data): Delete la_printchar initializer.
8312 (unknown_language::printchar): New member function.
8313 (auto_language_data): Delete la_printchar initializer.
8314 (auto_language::printchar): New member function.
8315 * language.h (language_data): Delete la_printchar field.
8316 (language_defn::printchar): Declare new member function.
8317 (LA_PRINT_CHAR): Update call to printchar.
8318 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8319 (m2_language::printchar): New member function.
8320 * objc-lang.c (objc_language_data): Delete la_printchar
8322 * opencl-lang.c (opencl_language_data): Likewise.
8323 * p-lang.c (pascal_language_data): Delete la_printchar
8325 (pascal_language::printchar): New member function.
8326 * rust-lang.c (rust_printchar): Rename to
8327 rust_language::printchar.
8328 (rust_language_data): Delete la_printchar initializer.
8329 (rust_language::printchar): New member function, implementation
8330 from rust_printchar.
8332 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8334 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8335 (ada_language_data): Delete la_emitchar initializer.
8336 (ada_language::emitchar): New member function, implementation from
8338 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8339 (cplus_language_data): Likewise.
8340 (asm_language_data): Likewise.
8341 (minimal_language_data): Likewise.
8342 * d-lang.c (d_language_data): Likewise.
8343 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8344 (f_language_data): Delete la_emitchar initializer.
8345 (f_language::emitchar): New member function, implementation from
8347 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8348 * language.c (unk_lang_emit_char): Delete.
8349 (language_defn::emitchar): New member function definition.
8350 (unknown_language_data): Delete la_emitchar initializer.
8351 (unknown_language::emitchar): New member function.
8352 (auto_language_data): Delete la_emitchar initializer.
8353 (auto_language::emitchar): New member function.
8354 * language.h (language_data): Delete la_emitchar field.
8355 (language_defn::emitchar): New member field declaration.
8356 (LA_EMIT_CHAR): Update call to emitchar.
8357 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8358 (m2_language_data): Delete la_emitchar initializer.
8359 (m2_language::emitchar): New member function, implementation from
8361 * objc-lang.c (objc_language_data): Delete la_emitchar
8363 * opencl-lang.c (opencl_language_data): Likewise.
8364 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8365 (pascal_language_data): Delete la_emitchar initializer.
8366 (pascal_language::emitchar): New member function, implementation
8367 from pascal_emit_char.
8368 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8369 (rust_language_data): Delete la_emitchar initializer.
8370 (rust_language::emitchar): New member function, implementation
8373 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8375 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8376 (ada_language_data): Delete la_post_parser initializer.
8377 (ada_language::post_parser): New member function.
8378 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8379 (cplus_language_data): Likewise.
8380 (asm_language_data): Likewise.
8381 (minimal_language_data): Likewise.
8382 * d-lang.c (d_language_data): Likewise.
8383 * f-lang.c (f_language_data): Likewise.
8384 * go-lang.c (go_language_data): Likewise.
8385 * language.c (unknown_language_data): Likewise.
8386 (auto_language_data): Likewise.
8387 * language.h (language_data): Delete la_post_parser field.
8388 (language_defn::post_parser): New member function.
8389 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8390 * objc-lang.c (objc_language_data): Likewise.
8391 * opencl-lang.c (opencl_language_data): Likewise.
8392 * p-lang.c (pascal_language_data): Likewise.
8393 * parse.c (parse_exp_in_context): Update call to post_parser.
8394 (null_post_parser): Delete definition.
8395 * parser-defs.h (null_post_parser): Delete declaration.
8396 * rust-lang.c (rust_language_data): Delete la_post_parser
8399 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8401 * ada-lang.c (parse): Rename to ada_language::parser.
8402 (ada_language_data): Delete la_parser initializer.
8403 (ada_language::parser): New member function, implementation from
8405 * c-lang.c (c_language_data): Delete la_parser initializer.
8406 (cplus_language_data): Likewise.
8407 (asm_language_data): Likewise.
8408 (minimal_language_data): Likewise.
8409 * d-lang.c (d_language_data): Likewise.
8410 (d_language::parser): New member function.
8411 * f-lang.c (f_language_data): Delete la_parser initializer.
8412 (f_language::parser): New member function.
8413 * go-lang.c (go_language_data): Delete la_parser initializer.
8414 (go_language::parser): New member function.
8415 * language.c (unk_lang_parser): Delete.
8416 (language_defn::parser): Define new member function.
8417 (unknown_language_data): Delete la_parser initializer.
8418 (unknown_language::parser): New member function.
8419 (auto_language_data): Delete la_parser initializer.
8420 (auto_language::parser): New member function.
8421 * language.h (language_data): Delete la_parser field.
8422 (language_defn::parser): Declare new member function.
8423 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8424 (m2_language::parser): New member function.
8425 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8426 * opencl-lang.c (opencl_language_data): Likewise.
8427 * p-lang.c (pascal_language_data): Likewise.
8428 (pascal_language::parser): New member function.
8429 * parse.c (parse_exp_in_context): Update call to parser.
8430 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8431 (rust_language::parser): New member function.
8433 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8435 * top.c (print_gdb_configuration): Print --with-python-libdir
8436 configuration value.
8438 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8440 * NEWS: Mention change to the alias command.
8442 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8444 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8445 (alias_command_completer)
8446 (make_alias_options_def_group): New functions.
8447 (alias_opts, alias_option_defs): New struct and array.
8448 (alias_usage_error): Update usage.
8449 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8450 Use option framework.
8451 (_initialize_cli_cmds): Update alias command help.
8452 Update aliases command help.
8454 Add NULL for new default_args lookup_cmd argument.
8455 (valid_command_p): Rename to validate_aliased_command.
8456 Add NULL for new default_args lookup_cmd argument. Verify that the
8457 aliased_command has no default args.
8458 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8459 (lookup_cmd_1, lookup_cmd): New argument default_args.
8461 Add NULL for new default_args lookup_cmd argument.
8462 (print_help_for_command): Show default args under the layout
8463 alias some_alias = some_aliased_cmd some_alias_default_arg.
8464 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8465 xfree default_args in destructor.
8466 * cli/cli-script.c (process_next_line, do_define_command):
8467 Add NULL for new default_args lookup_cmd argument.
8468 * command.h: Declare new default_args argument in lookup_cmd
8470 * completer.c (complete_line_internal_1):
8471 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8472 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8473 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8475 * infcmd.c (_initialize_infcmd): Likewise.
8476 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8477 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8478 * python/py-param.c (add_setshow_generic): Likewise.
8479 * remote.c (_initialize_remote): Likewise.
8480 * top.c (execute_command): Prepend default_args if command has some.
8482 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8483 * tracepoint.c (validate_actionline, encode_actions_1):
8484 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8486 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8488 * jit.c (jit_read_descriptor): Use bool as the return type.
8489 (jit_breakpoint_re_set_internal): Use bool as the return type.
8490 Invert the return value logic; return true if the jit breakpoint
8491 has been successfully initialized.
8492 (jit_inferior_init): Update the call to
8493 jit_breakpoint_re_set_internal.
8495 2020-06-22 Pedro Alves <palves@redhat.com>
8498 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8499 Use the current inferior instead. Don't return
8500 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8502 * sol-thread.c (sol_thread_target::wait): Don't reference
8504 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8505 (sol_update_thread_list_callback): Use the current inferior's pid
8506 instead of inferior_ptid.
8508 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8510 * procfs.c: Cleanup many comments.
8512 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8513 (AFTER_WATCHFLAG): Replace by value.
8515 (MAIN_PROC_NAME_FORMAT): Inline ...
8516 (create_procinfo): ... here.
8518 (procfs_debug_inferior): Remove SYS_exec handling.
8519 (syscall_is_exec): Likewise.
8520 (procfs_set_exec_trap): Likewise.
8522 (syscall_is_lwp_exit): Inline in callers.
8523 (syscall_is_exit): Likewise.
8524 (syscall_is_exec): Likewise.
8525 (syscall_is_lwp_create): Likewise.
8527 (invalidate_cache): Remove #if 0 code.
8529 (make_signal_thread_runnable): Remove.
8530 (procfs_target::resume): Remove #if 0 code.
8532 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8535 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8537 (procfs_target::create_inferior): ... here.
8539 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8541 * exec.c (validate_exec_file): Ensure the build-id is up to
8542 date by calling reopen_exec_file (that checks file timestamp
8543 to decide to re-read the file).
8545 2020-06-18 Pedro Alves <palves@redhat.com>
8548 * gdbthread.h (delete_thread, delete_thread_silent)
8549 (find_thread_ptid): Update comments.
8550 * thread.c (current_thread_): New global.
8551 (is_current_thread): Move higher, and reimplement.
8552 (inferior_thread): Reimplement.
8553 (set_thread_exited): Use bool. Add assertions.
8554 (add_thread_silent): Simplify thread-reuse handling by always
8555 calling delete_thread.
8556 (delete_thread): Remove intro comment.
8557 (find_thread_ptid): Skip exited threads.
8558 (switch_to_thread_no_regs): Write to current_thread_.
8559 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8560 INFERIOR_PTID. Clear current_thread_.
8562 2020-06-18 Pedro Alves <palves@redhat.com>
8564 * aix-thread.c (pd_update): Use switch_to_thread.
8566 2020-06-18 Pedro Alves <palves@redhat.com>
8568 * ravenscar-thread.c (ravenscar_thread_target): Update.
8569 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8570 (ravenscar_thread_target::add_active_thread): ... this. Don't
8571 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8572 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8574 2020-06-18 Pedro Alves <palves@redhat.com>
8576 * nat/windows-nat.c (current_windows_thread): Remove.
8577 * nat/windows-nat.h (current_windows_thread): Remove.
8578 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8580 (display_selectors): Adjust to fetch the current
8581 windows_thread_info based on inferior_ptid.
8582 (fake_create_process): No longer write to current_windows_thread.
8583 (windows_nat_target::get_windows_debug_event):
8584 Don't set inferior_ptid or current_windows_thread.
8585 (windows_nat_target::wait): Adjust to not rely on
8586 current_windows_thread.
8587 (do_initial_windows_stuff): Now a method of windows_nat_target.
8588 Switch to the last_ptid thread.
8589 (windows_nat_target::attach): Adjust.
8590 (windows_nat_target::detach): Use switch_to_no_thread instead of
8591 writing to inferior_ptid directly.
8592 (windows_nat_target::create_inferior): Adjust.
8594 2020-06-18 Pedro Alves <palves@redhat.com>
8596 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8598 2020-06-18 Pedro Alves <palves@redhat.com>
8600 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8601 after creating it, instead of writing to inferior_ptid. Don't
8602 write to inferior_ptid.
8604 2020-06-18 Pedro Alves <palves@redhat.com>
8606 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8608 2020-06-18 Pedro Alves <palves@redhat.com>
8610 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8611 it, instead of writing to inferior_ptid.
8613 2020-06-18 Pedro Alves <palves@redhat.com>
8615 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8618 2020-06-18 Pedro Alves <palves@redhat.com>
8620 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8621 instead of writing to inferior_ptid directly.
8623 2020-06-18 Pedro Alves <palves@redhat.com>
8625 * corelow.c (core_target::close): Use switch_to_no_thread instead
8626 of writing to inferior_ptid directly.
8627 (add_to_thread_list, core_target_open): Use switch_to_thread
8628 instead of writing to inferior_ptid directly.
8630 2020-06-18 Pedro Alves <palves@redhat.com>
8632 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8634 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8636 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8637 inferior_ptid directly.
8638 (darwin_nat_target::init_thread_list): Switch to thread, instead
8639 of writing to inferior_ptid.
8640 (darwin_nat_target::attach): Don't write to inferior_ptid.
8641 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8643 2020-06-18 Pedro Alves <palves@redhat.com>
8645 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8647 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8648 Instead use switch_to_thread.
8649 (gnu_nat_target::detach): Use switch_to_no_thread
8650 instead of writing to inferior_ptid directly. Used passed-in
8651 inferior instead of looking up the inferior by pid.
8653 2020-06-18 Pedro Alves <palves@redhat.com>
8655 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8658 2020-06-18 Pedro Alves <palves@redhat.com>
8660 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8662 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8664 (nto_procfs_target::detach): Avoid referencing
8665 inferior_ptid. Use switch_to_no_thread instead of writing to
8666 inferior_ptid directly.
8667 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8668 instead of writing to inferior_ptid directly.
8669 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8672 2020-06-18 Pedro Alves <palves@redhat.com>
8674 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8675 after creating it, instead of writing to inferior_ptid.
8676 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8677 to inferior_ptid directly.
8678 (gdbsim_target::wait): Don't write to inferior_ptid.
8680 2020-06-18 Pedro Alves <palves@redhat.com>
8682 * remote.c (remote_target::remote_notice_new_inferior): Use
8683 switch_to_thread instead of writing to inferior_ptid directly.
8684 (remote_target::add_current_inferior_and_thread): Use
8685 switch_to_no_thread instead of writing to inferior_ptid directly.
8686 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8687 and switch_to_thread instead of using set_current_inferior or
8688 writing to inferior_ptid directly.
8690 2020-06-18 Pedro Alves <palves@redhat.com>
8692 * tracectf.c (ctf_target_open): Switch to added thread instead of
8693 writing to inferior_ptid directly.
8694 (ctf_target::close): Use switch_to_no_thread instead of writing to
8695 inferior_ptid directly.
8697 2020-06-18 Pedro Alves <palves@redhat.com>
8699 * tracefile-tfile.c (tfile_target_open): Don't write to
8700 inferior_ptid directly, instead switch to added thread.
8701 (tfile_target::close): Use switch_to_no_thread instead of writing
8702 to inferior_ptid directly.
8704 2020-06-18 Pedro Alves <palves@redhat.com>
8706 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8707 (procfs_target::detach): Use switch_to_no_thread
8708 instead of writing to inferior_ptid directly.
8709 (do_attach): Change return type to void. Switch to the added
8711 (procfs_target::create_inferior): Switch to the added thread.
8712 (procfs_do_thread_registers): Don't write to inferior_ptid.
8714 2020-06-18 Pedro Alves <palves@redhat.com>
8716 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8717 of writing to inferior_ptid.
8718 (scoped_restore_exited_inferior): Delete.
8719 (handle_vfork_child_exec_or_exit): Simplify using
8720 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8721 instead of writing to inferior_ptid.
8722 (THREAD_STOPPED_BY): Delete.
8723 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8724 (thread_stopped_by_hw_breakpoint): Delete.
8725 (save_waitstatus): Use
8726 scoped_restore_current_thread+switch_to_thread, and call
8727 target_stopped_by_watchpoint instead of
8728 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8729 instead of thread_stopped_by_sw_breakpoint, and
8730 target_stopped_by_hw_breakpoint instead of
8731 thread_stopped_by_hw_breakpoint.
8732 (handle_inferior_event)
8733 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8734 inferior_ptid directly, nor
8735 set_current_inferior/set_current_program_space. Use
8736 switch_to_thread / switch_to_inferior_no_thread instead.
8738 2020-06-18 Pedro Alves <palves@redhat.com>
8740 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8741 instead of writing to inferior_ptid.
8743 2020-06-18 Pedro Alves <palves@redhat.com>
8745 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8747 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8748 to the added thread.
8749 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8750 instead of writing to inferior_ptid.
8752 2020-06-18 Pedro Alves <palves@redhat.com>
8754 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8755 (register_to_value_test): Mock a program_space too. Heap-allocate
8756 the address space. Don't write to inferior_ptid. Use
8757 switch_to_thread instead.
8759 2020-06-18 Pedro Alves <palves@redhat.com>
8761 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8763 (find_signalled_thread()): New, factored out from
8764 linux_make_corefile_notes and adjusted to handle exited threads.
8765 (linux_make_corefile_notes): Adjust to use the new
8766 find_signalled_thread.
8768 2020-06-18 Pedro Alves <palves@redhat.com>
8770 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8771 of saving/restoring inferior_ptid.
8773 2020-06-17 Tom Tromey <tom@tromey.com>
8775 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8776 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8778 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8780 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8782 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8785 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8787 * regformats/reg-arm.dat: Remove.
8788 * regformats/reg-bfin.dat: Remove.
8789 * regformats/reg-cris.dat: Remove.
8790 * regformats/reg-crisv32.dat: Remove.
8791 * regformats/reg-m32r.dat: Remove.
8792 * regformats/reg-tilegx.dat: Remove.
8793 * regformats/reg-tilegx32.dat: Remove.
8795 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8797 * features/Makefile (WHICH): Remove arm files.
8798 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8799 * regformats/arm/arm-with-neon.dat: Remove.
8800 * regformats/arm/arm-with-vfpv2.dat: Remove.
8801 * regformats/arm/arm-with-vfpv3.dat: Remove.
8803 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8805 * features/Makefile (XMLTOC): Remove rx.xml.
8807 2020-06-17 Pedro Alves <palves@redhat.com>
8809 * gdbthread.h (thread_control_state) <trap_expected> Update
8812 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8814 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8815 ada_language::lookup_symbol_nonlocal.
8816 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8817 (ada_language::lookup_symbol_nonlocal): New member function,
8818 implementation from ada_lookup_symbol_nonlocal.
8819 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8821 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8823 (cplus_language::lookup_symbol_nonlocal): New member function.
8824 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8825 (minimal_language_data) Likewise.
8826 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8827 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8829 (d_language::lookup_symbol_nonlocal): New member function.
8830 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8832 (f_language::lookup_symbol_nonlocal): New member function.
8833 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8835 * language.c (unknown_language_data): Likewise.
8836 (auto_language_data): Likewise.
8837 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8839 (language_defn::lookup_symbol_nonlocal): New member function.
8840 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8842 * objc-lang.c (objc_language_data): Likewise.
8843 * opencl-lang.c (opencl_language_data): Likewise.
8844 * p-lang.c (pascal_language_data): Likewise.
8845 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8846 rust_language::lookup_symbol_nonlocal.
8847 (rust_language_data): Delete la_lookup_symbol_nonlocal
8849 (rust_language::lookup_symbol_nonlocal): New member function,
8850 implementation from rust_lookup_symbol_nonlocal.
8851 * symtab.c (lookup_symbol_aux): Update call to
8852 lookup_symbol_nonlocal.
8853 (basic_lookup_symbol_nonlocal): Rename to...
8854 (language_defn::lookup_symbol_nonlocal): ...this, and update
8855 header comment. Remove language_defn parameter, and replace with
8857 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8859 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8861 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8863 (ada_language::value_print_inner): New member function.
8864 * c-lang.c (c_language_data): Delete la_value_print_inner
8866 (cplus_language_data): Likewise.
8867 (asm_language_data): Likewise.
8868 (minimal_language_data): Likewise.
8869 * d-lang.c (d_language_data): Likewise.
8870 (d_language::value_print_inner): New member function.
8871 * f-lang.c (f_language_data): Delete la_value_print_inner
8873 (f_language::value_print_inner): New member function.
8874 * f-lang.h (f_value_print_innner): Rename to...
8875 (f_value_print_inner): ...this (note spelling of 'inner').
8876 * f-valprint.c (f_value_print_innner): Rename to...
8877 (f_value_print_inner): ...this (note spelling of 'inner').
8878 * go-lang.c (go_language_data): Delete la_value_print_inner
8880 (go_language::value_print_inner): New member function.
8881 * language.c (language_defn::value_print_inner): Define new member
8883 (unk_lang_value_print_inner): Delete.
8884 (unknown_language_data): Delete la_value_print_inner initializer.
8885 (unknown_language::value_print_inner): New member function.
8886 (auto_language_data): Delete la_value_print_inner initializer.
8887 (auto_language::value_print_inner): New member function.
8888 * language.h (language_data): Delete la_value_print_inner field.
8889 (language_defn::value_print_inner): Delcare new member function.
8890 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8892 (m2_language::value_print_inner): New member function.
8893 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8895 * opencl-lang.c (opencl_language_data): Likewise.
8896 * p-lang.c (pascal_language_data): Likewise.
8897 (pascal_language::value_print_inner): New member function.
8898 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8900 (rust_language::value_print_inner): New member function.
8901 * valprint.c (do_val_print): Update call to value_print_inner.
8903 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8905 * ada-lang.c (ada_language_data): Delete la_value_print
8907 (ada_language::value_print): New member function.
8908 * c-lang.c (c_language_data): Delete la_value_print initializer.
8909 (cplus_language_data): Likewise.
8910 (asm_language_data): Likewise.
8911 (minimal_language_data): Likewise.
8912 * d-lang.c (d_language_data): Likewise.
8913 * f-lang.c (f_language_data): Likewise.
8914 * go-lang.c (go_language_data): Likewise.
8915 * language.c (unk_lang_value_print): Delete.
8916 (language_defn::value_print): Define new member function.
8917 (unknown_language_data): Delete la_value_print initializer.
8918 (unknown_language::value_print): New member function.
8919 (auto_language_data): Delete la_value_print initializer.
8920 (auto_language::value_print): New member function.
8921 * language.h (language_data): Delete la_value_print field.
8922 (language_defn::value_print): Declare new member function.
8923 (LA_VALUE_PRINT): Update call to value_print.
8924 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8925 * objc-lang.c (objc_language_data): Likewise.
8926 * opencl-lang.c (opencl_language_data): Likewise.
8927 * p-lang.c (pascal_language_data): Likewise.
8928 (pascal_language::value_print): New member function.
8929 * rust-lang.c (rust_language_data): Delete la_value_print
8932 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8934 * ada-lang.c (ada_watch_location_expression): Rename to
8935 ada_language::watch_location_expression.
8936 (ada_language_data): Delete la_watch_location_expression
8938 (ada_language::watch_location_expression): New member function,
8939 implementation from ada_watch_location_expression.
8940 * breakpoint.c (watch_command_1): Update call to
8941 watch_location_expression.
8942 * c-lang.c (c_watch_location_expression): Rename to
8943 language_defn::watch_location_expression.
8944 (c_language_data): Delete la_watch_location_expression
8946 (cplus_language_data): Likewise.
8947 (asm_language_data): Likewise.
8948 (minimal_language_data): Likewise.
8949 * c-lang.h (c_watch_location_expression): Delete declaration.
8950 * d-lang.c (d_language_data): Delete la_watch_location_expression
8952 * f-lang.c (f_language_data): Likewise.
8953 * go-lang.c (go_language_data): Likewise.
8954 * language.c (language_defn::watch_location_expression): Member
8955 function implementation from c_watch_location_expression.
8956 (unknown_language_data): Delete la_watch_location_expression
8958 (auto_language_data): Likewise.
8959 * language.h (language_data): Delete la_watch_location_expression
8961 (language_defn::watch_location_expression): Declare new member
8963 * m2-lang.c (m2_language_data): Delete
8964 la_watch_location_expression initializer.
8965 * objc-lang.c (objc_language_data): Likewise.
8966 * opencl-lang.c (opencl_language_data): Likewise.
8967 * p-lang.c (pascal_language_data): Likewise.
8968 * rust-lang.c (rust_watch_location_expression): Rename to
8969 rust_language::watch_location_expression.
8970 (rust_language_data): Delete la_watch_location_expression
8972 (rust_language::watch_location_expression): New member function,
8973 implementation from rust_watch_location_expression.
8975 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8977 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8978 ada_language::collect_symbol_completion_matches.
8979 (ada_language_data): Delete la_collect_symbol_completion_matches
8981 (ada_language::collect_symbol_completion_matches): New member
8982 function, implementation from
8983 ada_collect_symbol_completion_matches.
8984 * c-lang.c (c_language_data): Delete
8985 la_collect_symbol_completion_matches initializer.
8986 (cplus_language_data): Likewise.
8987 (asm_language_data): Likewise.
8988 (minimal_language_data): Likewise.
8989 * d-lang.c (d_language_data): Likewise.
8990 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8991 f_language::collect_symbol_completion_matches.
8992 (f_language_data): Delete la_collect_symbol_completion_matches
8994 (f_language::collect_symbol_completion_matches) New member
8995 function, implementation from f_collect_symbol_completion_matches.
8996 * go-lang.c (go_language_data): Delete
8997 la_collect_symbol_completion_matches initializer.
8998 * language.c (unknown_language_data): Likewise.
8999 (auto_language_data): Likewise.
9000 * language.h (language_data): Delete
9001 la_collect_symbol_completion_matches field.
9002 (language_defn::collect_symbol_completion_matches): New member
9004 * m2-lang.c (m2_language_data): Delete
9005 la_collect_symbol_completion_matches initializer.
9006 * objc-lang.c (objc_language_data): Likewise.
9007 * opencl-lang.c (opencl_language_data): Likewise.
9008 * p-lang.c (pascal_language_data): Likewise.
9009 * rust-lang.c (rust_language_data): Likewise.
9010 * symtab.c (default_collect_symbol_completion_matches): Delete.
9011 (collect_symbol_completion_matches): Update call to
9012 collect_symbol_completion_matches.
9013 (collect_symbol_completion_matches_type): Likewise.
9014 * symtab.h (default_collect_symbol_completion_matches): Delete
9017 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9019 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
9020 (ada_language_data): Delete la_word_break_characters initializer.
9021 (ada_language::word_break_characters): New member function.
9022 * c-lang.c (c_language_data): Delete la_word_break_characters
9024 (cplus_language_data): Likewise.
9025 (asm_language_data): Likewise.
9026 (minimal_language_data): Likewise.
9027 * completer.c: Update global comment.
9028 (advance_to_expression_complete_word_point): Update call to
9029 word_break_characters.
9030 (complete_files_symbols): Likewise.
9031 (complete_line_internal_1): Likewise.
9032 (default_completer_handle_brkchars): Likewise.
9033 (skip_quoted_chars): Likewise.
9034 * d-lang.c (d_language_data): Delete la_word_break_characters
9036 * f-lang.c (f_word_break_characters): Delete.
9037 (f_language_data): Delete la_word_break_characters initializer.
9038 (f_language::word_break_characters): New member function.
9039 * go-lang.c (go_language_data): Delete la_word_break_characters
9041 * language.c (unknown_language_data): Likewise.
9042 (auto_language_data): Likewise.
9043 * language.h (default_word_break_characters): Move declaration to
9044 earlier in the file.
9045 (language_data): Delete la_word_break_characters field.
9046 (language_defn::word_break_characters): New member function.
9047 * m2-lang.c (m2_language_data): Delete la_word_break_characters
9049 * objc-lang.c (objc_language_data): Likewise.
9050 * opencl-lang.c (opencl_language_data): Likewise.
9051 * p-lang.c (pascal_language_data): Likewise.
9052 * rust-lang.c (rust_language_data): Likewise.
9054 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9056 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
9057 (ada_language_data): Delete la_get_symbol_name_matcher
9059 (language_defn::get_symbol_name_matcher_inner): New member
9061 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
9063 (cplus_language_data): Likewise.
9064 (cplus_language::get_symbol_name_matcher_inner): New member
9066 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
9067 (minimal_language_data): Likewise.
9068 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
9069 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
9071 * dictionary.c (iter_match_first_hashed): Update call to
9072 get_symbol_name_matcher.
9073 (iter_match_next_hashed): Likewise.
9074 (iter_match_next_linear): Likewise.
9075 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
9076 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
9078 (f_language::get_symbol_name_matcher_inner): New member function.
9079 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
9081 * language.c (default_symbol_name_matcher): Update header comment,
9083 (language_defn::get_symbol_name_matcher): New definition.
9084 (language_defn::get_symbol_name_matcher_inner): Likewise.
9085 (get_symbol_name_matcher): Delete.
9086 (unknown_language_data): Delete la_get_symbol_name_matcher
9088 (auto_language_data): Likewise.
9089 * language.h (language_data): Delete la_get_symbol_name_matcher
9091 (language_defn::get_symbol_name_matcher): New member function.
9092 (language_defn::get_symbol_name_matcher_inner): Likewise.
9093 (default_symbol_name_matcher): Delete declaration.
9094 * linespec.c (find_methods): Update call to
9095 get_symbol_name_matcher.
9096 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
9098 * minsyms.c (lookup_minimal_symbol): Update call to
9099 get_symbol_name_matcher.
9100 (iterate_over_minimal_symbols): Likewise.
9101 * objc-lang.c (objc_language_data): Delete
9102 la_get_symbol_name_matcher initializer.
9103 * opencl-lang.c (opencl_language_data): Likewise.
9104 * p-lang.c (pascal_language_data): Likewise.
9105 * psymtab.c (psymbol_name_matches): Update call to
9106 get_symbol_name_matcher.
9107 * rust-lang.c (rust_language_data): Delete
9108 la_get_symbol_name_matcher initializer.
9109 * symtab.c (symbol_matches_search_name): Update call to
9110 get_symbol_name_matcher.
9111 (compare_symbol_name): Likewise.
9113 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9115 * ada-lang.c (ada_language_data): Delete la_compute_program
9117 * c-lang.c (c_language_data): Likewise.
9118 (c_language::compute_program): New member function.
9119 (cplus_language_data): Delete la_compute_program initializer.
9120 (cplus_language::compute_program): New member function.
9121 (asm_language_data): Delete la_compute_program initializer.
9122 (minimal_language_data): Likewise.
9123 * c-lang.h (c_compute_program): Update comment.
9124 (cplus_compute_program): Likewise.
9125 * compile/compile-c-support.c (c_compute_program): Likewise.
9126 (cplus_compute_program): Likewise.
9127 * compile/compile.c (compile_to_object): Update call to
9129 * d-lang.c (d_language_data): Delete la_compute_program
9131 * f-lang.c (f_language_data): Likewise.
9132 * go-lang.c (go_language_data): Likewise.
9133 * language.c (unknown_language_data): Likewise.
9134 (auto_language_data): Likewise.
9135 * language.h (language_data): Delete la_compute_program field.
9136 (language_defn::compute_program): New member function.
9137 * m2-lang.c (m2_language_data): Delete la_compute_program
9139 * objc-lang.c (objc_language_data): Likewise.
9140 * opencl-lang.c (opencl_language_data): Likewise.
9141 * p-lang.c (pascal_language_data): Likewise.
9142 * rust-lang.c (rust_language_data): Likewise.
9144 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9146 * ada-lang.c (ada_language_data) Delete
9147 la_class_name_from_physname initializer.
9148 * c-lang.c (c_language_data): Likewise.
9149 (cplus_language_data): Likewise.
9150 (cplus_language::class_name_from_physname): New member function.
9151 (asm_language_data): Delete la_class_name_from_physname
9153 (minimal_language_data): Likewise.
9154 * d-lang.c (d_language_data): Likewise.
9155 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
9156 method on language_defn class.
9157 (guess_full_die_structure_name): Likewise.
9158 * f-lang.c (f_language_data): Delete la_class_name_from_physname
9160 * go-lang.c (go_language_data): Likewise.
9161 * language.c (language_class_name_from_physname): Delete.
9162 (unk_lang_class_name): Delete.
9163 (unknown_language_data): Delete la_class_name_from_physname
9165 (auto_language_data): Likewise.
9166 * language.h (language_data): Delete la_class_name_from_physname
9168 (language_defn::class_name_from_physname): New function.
9169 (language_class_name_from_physname): Delete declaration.
9170 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
9172 * objc-lang.c (objc_language_data): Likewise.
9173 * opencl-lang.c (opencl_language_data): Likewise.
9174 * p-lang.c (pascal_language_data): Likewise.
9175 * rust-lang.c (rust_language_data): Likewise.
9177 2020-06-16 Tom Tromey <tom@tromey.com>
9179 * tui/tui-data.h (STATUS_NAME): New macro.
9180 * tui/tui-layout.c (tui_remove_some_windows)
9181 (initialize_known_windows, tui_register_window)
9182 (tui_layout_split::remove_windows, initialize_layouts)
9183 (tui_new_layout_command): Don't use hard-coded window names.
9185 2020-06-16 Tom Tromey <tom@tromey.com>
9188 * tui/tui.c (tui_ensure_readline_initialized): Rename from
9189 tui_initialize_readline. Only run once. Call rl_initialize.
9190 * tui/tui.h (tui_ensure_readline_initialized): Rename from
9191 tui_initialize_readline.
9192 * tui/tui-io.c (tui_setup_io): Call
9193 tui_ensure_readline_initialized.
9194 * tui/tui-interp.c (tui_interp::init): Update.
9196 2020-06-16 Tom Tromey <tom@tromey.com>
9198 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
9199 Also preserve the status window.
9201 2020-06-16 Tom Tromey <tom@tromey.com>
9203 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
9204 where m_window==nullptr.
9206 2020-06-15 Tom Tromey <tromey@adacore.com>
9208 * windows-nat.c (windows_nat::handle_output_debug_string):
9210 (windows_nat::handle_ms_vc_exception): Update.
9211 * target.h (target_read_string): Change API.
9212 * target.c (target_read_string): Change API.
9213 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9215 * solib-frv.c (frv_current_sos): Update.
9216 * solib-dsbt.c (dsbt_current_sos): Update.
9217 * solib-darwin.c (darwin_current_sos): Update.
9218 * linux-thread-db.c (inferior_has_bug): Update.
9219 * expprint.c (print_subexp_standard): Update.
9220 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
9221 (ada_exception_message_1): Update.
9223 2020-06-15 Tom Tromey <tromey@adacore.com>
9225 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
9227 2020-06-15 Tom Tromey <tromey@adacore.com>
9229 * valprint.c (read_string): Update comment.
9230 * target.c (MIN): Remove.
9231 (target_read_string): Rewrite.
9233 2020-06-15 Tom Tromey <tromey@adacore.com>
9235 * corefile.c (read_memory_string): Remove.
9236 * ada-valprint.c (ada_value_print_ptr): Update.
9237 * ada-lang.h (ada_tag_name): Change return type.
9238 * ada-lang.c (type_from_tag): Update.
9239 (ada_tag_name_from_tsd): Change return type. Use
9241 (ada_tag_name): Likewise.
9242 * gdbcore.h (read_memory_string): Don't declare.
9244 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
9246 * symtab.c (rbreak_command): Ignore Windows drive colon.
9248 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
9250 * NEWS: Mention removed GDBserver host support.
9252 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
9254 * features/riscv/rebuild-csr-xml.sh: Updated.
9256 2020-06-11 Tom Tromey <tom@tromey.com>
9259 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9261 2020-06-09 Jonny Grant <jg@jguk.org>
9262 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9264 * main.c (captured_main_1): Don't print new line after help.
9265 (print_gdb_help): add mailing list and IRC channel information
9266 to --help. Add new lines between items in the footer. Remove
9267 quotes around bug url.
9269 2020-06-11 Keith Seitz <keiths@redhat.com>
9272 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9273 Resolve typedefs for type length calculations.
9275 2020-06-10 Tom de Vries <tdevries@suse.de>
9278 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9279 (write_psymbols): Enable .gdb_index for ada.
9280 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9283 2020-06-10 Tom de Vries <tdevries@suse.de>
9285 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9286 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9287 namei" instead of "const char *name" argument.
9288 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9289 dw2_symtab_iter_init.
9291 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9293 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9294 to use type::field and field::type instead.
9296 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9298 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9299 to use field::type instead.
9301 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9303 * gdbtypes.h (struct field) <type, set_type>: New methods.
9304 Rename `type` field to...
9305 <m_type>: ... this. Change references throughout to use type or
9307 (FIELD_TYPE): Use field::type. Change call sites that modify
9308 the field's type to use field::set_type instead.
9310 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9312 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9313 to use type::index_type instead.
9315 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9317 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9319 (TYPE_INDEX_TYPE): Use type::index_type.
9320 * gdbtypes.c (create_array_type_with_stride): Likewise.
9322 2020-06-07 Tom Tromey <tom@tromey.com>
9324 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9326 (generic_value_print): Update.
9328 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9330 Revert commit 982a38f60b0.
9331 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9333 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9335 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9336 avoid use after free.
9338 2020-06-05 Tom de Vries <tdevries@suse.de>
9342 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
9344 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9346 (dwarf2_read_debug_names): Likewise.
9347 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9348 object when re-using a per_bfd object with an index.
9350 2020-06-03 Tom de Vries <tdevries@suse.de>
9353 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9355 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9358 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9360 * ada-lang.c (ada_language_data): Delete skip_trampoline
9362 * c-lang.c (c_language_data): Likewise.
9363 (cplus_language_data): Likewise.
9364 (cplus_language::skip_trampoline): New member function.
9365 (asm_language_data): Delete skip_trampoline initializer.
9366 (minimal_language_data): Likewise.
9367 * d-lang.c (d_language_data): Likewise.
9368 * f-lang.c (f_language_data): Likewise.
9369 * go-lang.c (go_language_data): Likewise.
9370 * language.c (unk_lang_trampoline): Delete function.
9371 (skip_language_trampoline): Update.
9372 (unknown_language_data): Delete skip_trampoline initializer.
9373 (auto_language_data): Likewise.
9374 * language.h (language_data): Delete skip_trampoline field.
9375 (language_defn::skip_trampoline): New function.
9376 * m2-lang.c (m2_language_data): Delete skip_trampoline
9378 * objc-lang.c (objc_skip_trampoline): Delete function, move
9379 implementation to objc_language::skip_trampoline.
9380 (objc_language_data): Delete skip_trampoline initializer.
9381 (objc_language::skip_trampoline): New member function with
9382 implementation from objc_skip_trampoline.
9383 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9385 * p-lang.c (pascal_language_data): Likewise.
9386 * rust-lang.c (rust_language_data): Likewise.
9388 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9390 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9391 (ada_language::demangle): New member function.
9392 * c-lang.c (c_language_data): Delete la_demangle initializer.
9393 (cplus_language_data): Delete la_demangle initializer.
9394 (cplus_language::demangle): New member function.
9395 (asm_language_data): Delete la_demangle initializer.
9396 (minimal_language_data): Delete la_demangle initializer.
9397 * d-lang.c (d_language_data): Delete la_demangle initializer.
9398 (d_language::demangle): New member function.
9399 * f-lang.c (f_language_data): Delete la_demangle initializer.
9400 (f_language::demangle): New member function.
9401 * go-lang.c (go_language_data): Delete la_demangle initializer.
9402 (go_language::demangle): New member function.
9403 * language.c (language_demangle): Update.
9404 (unk_lang_demangle): Delete.
9405 (unknown_language_data): Delete la_demangle initializer.
9406 (unknown_language::demangle): New member function.
9407 (auto_language_data): Delete la_demangle initializer.
9408 (auto_language::demangle): New member function.
9409 * language.h (language_data): Delete la_demangle field.
9410 (language_defn::demangle): New function.
9411 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9412 * objc-lang.c (objc_language_data): Delete la_demangle
9414 (objc_language::demangle): New member function.
9415 * opencl-lang.c (opencl_language_data): Delete la_demangle
9417 * p-lang.c (pascal_language_data): Likewise.
9418 * rust-lang.c (rust_language_data): Likewise.
9419 (rust_language::demangle): New member function.
9421 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9423 * ada-lang.c (ada_language_data): Delete la_print_type
9425 (ada_language::print_type): New member function.
9426 * c-lang.c (c_language_data): Delete la_print_type initializer.
9427 (c_language::print_type): New member function.
9428 (cplus_language_data): Delete la_print_type initializer.
9429 (cplus_language::print_type): New member function.
9430 (asm_language_data): Delete la_print_type initializer.
9431 (asm_language::print_type): New member function.
9432 (minimal_language_data): Delete la_print_type initializer.
9433 (minimal_language::print_type): New member function.
9434 * d-lang.c (d_language_data): Delete la_print_type initializer.
9435 (d_language::print_type): New member function.
9436 * f-lang.c (f_language_data): Delete la_print_type initializer.
9437 (f_language::print_type): New member function.
9438 * go-lang.c (go_language_data): Delete la_print_type initializer.
9439 (go_language::print_type): New member function.
9440 * language.c (unk_lang_print_type): Delete.
9441 (unknown_language_data): Delete la_print_type initializer.
9442 (unknown_language::print_type): New member function.
9443 (auto_language_data): Delete la_print_type initializer.
9444 (auto_language::print_type): New member function.
9445 * language.h (language_data): Delete la_print_type field.
9446 (language_defn::print_type): New function.
9447 (LA_PRINT_TYPE): Update.
9448 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9449 (m2_language::print_type): New member function.
9450 * objc-lang.c (objc_language_data): Delete la_print_type
9452 (objc_language::print_type): New member function.
9453 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9454 to opencl_language::print_type.
9455 (opencl_language_data): Delete la_print_type initializer.
9456 (opencl_language::print_type): New member function, implementation
9457 from opencl_print_type.
9458 * p-lang.c (pascal_language_data): Delete la_print_type
9460 (pascal_language::print_type): New member function.
9461 * rust-lang.c (rust_print_type): Delete, implementation moved to
9462 rust_language::print_type.
9463 (rust_language_data): Delete la_print_type initializer.
9464 (rust_language::print_type): New member function, implementation
9465 from rust_print_type.
9467 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9469 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9470 implementation moves to...
9471 (ada_language::sniff_from_mangled_name): ...here. Update return
9473 (ada_language_data): Delete la_sniff_from_mangled_name
9475 * c-lang.c (c_language_data): Likewise.
9476 (cplus_language_data): Likewise.
9477 (cplus_language::sniff_from_mangled_name): New member function,
9478 implementation taken from gdb_sniff_from_mangled_name.
9479 (asm_language_data): Delete la_sniff_from_mangled_name
9481 (minimal_language_data): Likewise.
9482 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9483 implementation moves to cplus_language::sniff_from_mangled_name.
9484 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9485 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9487 (d_language::sniff_from_mangled_name): ...here.
9488 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9489 * f-lang.c (f_language_data): Likewise.
9490 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9492 (go_language::sniff_from_mangled_name): ...here.
9493 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9494 * language.c (language_sniff_from_mangled_name): Delete.
9495 (unknown_language_data): Delete la_sniff_from_mangled_name
9497 (auto_language_data): Likewise.
9498 * language.h (language_data): Delete la_sniff_from_mangled_name
9500 (language_defn::sniff_from_mangled_name): New function.
9501 (language_sniff_from_mangled_name): Delete declaration.
9502 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9504 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9505 implementation moves to...
9506 (objc_language::sniff_from_mangled_name): ...here.
9507 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9508 * opencl-lang.c (opencl_language_data): Likewise.
9509 * p-lang.c (pascal_language_data): Likewise.
9510 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9511 implementation moves to...
9512 (rust_language::sniff_from_mangled_name): ...here.
9513 (rust_language_data): Delete la_sniff_from_mangled_name
9515 * symtab.c (symbol_find_demangled_name): Call
9516 sniff_from_mangled_name member function.
9518 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9520 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9522 * c-lang.c (c_language_data): Likewise.
9523 (cplus_language_data): Likewise.
9524 (cplus_language::search_name_hash): New member function.
9525 (asm_language_data): Delete la_search_name_hash initializer.
9526 (minimal_language_data): Likewise.
9527 * d-lang.c (d_language_data): Likewise.
9528 * dictionary.c (default_search_name_hash): Rename to...
9529 (language_defn::search_name_hash): ...this.
9530 * f-lang.c (f_language_data): Likewise.
9531 (f_language::search_name_hash): New member function.
9532 * go-lang.c (go_language_data): Delete la_search_name_hash
9534 * language.c (unknown_language_data): Likewise.
9535 (auto_language_data): Likewise.
9536 * language.h (struct language_data): Delete la_search_name_hash
9538 (language_defn::search_name_hash): Declare new member function.
9539 (default_search_name_hash): Delete declaration.
9540 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9542 * objc-lang.c (objc_language_data): Likewise.
9543 * opencl-lang.c (opencl_language_data): Likewise.
9544 * p-lang.c (pascal_language_data): Likewise.
9545 * rust-lang.c (rust_language_data): Likewise.
9546 * symtab.c (search_name_hash): Update call.
9548 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9550 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9552 * c-lang.c (class compile_instance): Declare.
9553 (c_language_data): Delete la_get_compile_instance initializer.
9554 (c_language::get_compile_instance): New member function.
9555 (cplus_language_data): Delete la_get_compile_instance initializer.
9556 (cplus_language::get_compile_instance): New member function.
9557 (asm_language_data): Delete la_get_compile_instance initializer.
9558 (minimal_language_data): Likewise.
9559 * c-lang.h (c_get_compile_context): Update comment.
9560 (cplus_get_compile_context): Update comment.
9561 * compile/compile.c (compile_to_object): Update calls, don't rely
9562 on function pointer being NULL.
9563 * d-lang.c (d_language_data): Delete la_get_compile_instance
9565 * f-lang.c (f_language_data): Likewise.
9566 * go-lang.c (go_language_data): Likewise.
9567 * language.c (unknown_language_data): Likewise.
9568 (auto_language_data): Likewise.
9569 * language.h (language_data): Delete la_get_compile_instance field.
9570 (language_defn::get_compile_instance): New member function.
9571 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9573 * objc-lang.c (objc_language_data): Likewise.
9574 * opencl-lang.c (opencl_language_data): Likewise.
9575 * p-lang.c (pascal_language_data): Likewise.
9576 * rust-lang.c (rust_language_data): Likewise.
9578 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9580 * ada-lang.c (ada_add_all_symbols): Update comment.
9581 (ada_iterate_over_symbols): Delete, move implementation to...
9582 (ada_language::iterate_over_symbols): ...here, a new member
9583 function, rewrite to use range based for loop.
9584 (ada_language_data): Delete la_iterate_over_symbols initializer.
9585 * c-lang.c (c_language_data): Likewise.
9586 (cplus_language_data): Likewise.
9587 (asm_language_data): Likewise.
9588 (minimal_language_data): Likewise.
9589 * d-lang.c (d_language_data): Likewise.
9590 * f-lang.c (f_language_data): Likewise.
9591 * go-lang.c (go_language_data): Likewise.
9592 * language.c (unknown_language_data): Likewise.
9593 (auto_language_data): Likewise.
9594 * language.h (language_data): Delete la_iterate_over_symbols field.
9595 (language_defn::iterate_over_symbols): New member function.
9596 (LA_ITERATE_OVER_SYMBOLS): Update.
9597 * linespec.c (iterate_over_all_matching_symtabs): Update.
9598 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9600 * objc-lang.c (objc_language_data): Likewise.
9601 * opencl-lang.c (opencl_language_data): Likewise.
9602 * p-lang.c (pascal_language_data): Likewise.
9603 * rust-lang.c (rust_language_data): Likewise.
9605 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9607 * ada-lang.c (ada_language_data): Delete
9608 la_lookup_transparent_type initializer.
9609 * c-lang.c (c_language_data): Likewise.
9610 (cplus_language_data): Likewise.
9611 (cplus_language::lookup_transparent_type): New member function.
9612 (asm_language_data): Delete la_lookup_transparent_type
9614 (minimal_language_data): Likewise.
9615 * d-lang.c (d_language_data): Likewise.
9616 * f-lang.c (f_language_data): Likewise.
9617 * go-lang.c (go_language_data): Likewise.
9618 * language.c (unknown_language_data): Likewise.
9619 (auto_language_data): Likewise.
9620 * language.h (struct language_data): Delete
9621 la_lookup_transparent_type field.
9622 (language_defn::lookup_transparent_type): New member function.
9623 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9625 * objc-lang.c (objc_language_data): Likewise.
9626 * opencl-lang.c (opencl_language_data): Likewise.
9627 * p-lang.c (pascal_language_data): Likewise.
9628 * rust-lang.c (rust_language_data): Likewise.
9629 * symtab.c (symbol_matches_domain): Update call.
9631 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9633 * ada-lang.c (ada_language_arch_info): Delete function, move
9634 implementation to...
9635 (ada_language::language_arch_info): ...here, a new member
9637 (ada_language_data): Delete la_language_arch_info.
9638 * c-lang.c (c_language_data): Likewise.
9639 (c_language::language_arch_info): New member function.
9640 (cplus_language_arch_info): Delete function, move
9641 implementation to...
9642 (cplus_language::language_arch_info): ...here, a new member
9644 (cplus_language_data): Delete la_language_arch_info.
9645 (asm_language_data): Likewise.
9646 (asm_language::language_arch_info): New member function.
9647 (minimal_language_data): Delete la_language_arch_info.
9648 (minimal_language::language_arch_info): New member function.
9649 * d-lang.c (d_language_arch_info): Delete function, move
9650 implementation to...
9651 (d_language::language_arch_info): ...here, a new member
9653 (d_language_data): Delete la_language_arch_info.
9654 * f-lang.c (f_language_arch_info): Delete function, move
9655 implementation to...
9656 (f_language::language_arch_info): ...here, a new member
9658 (f_language_data): Delete la_language_arch_info.
9659 * go-lang.c (go_language_arch_info): Delete function, move
9660 implementation to...
9661 (go_language::language_arch_info): ...here, a new member
9663 (go_language_data): Delete la_language_arch_info.
9664 * language.c (unknown_language_data): Likewise.
9665 (unknown_language::language_arch_info): New member function.
9666 (auto_language_data): Delete la_language_arch_info.
9667 (auto_language::language_arch_info): New member function.
9668 (language_gdbarch_post_init): Update call to
9669 la_language_arch_info.
9670 * language.h (language_data): Delete la_language_arch_info
9672 (language_defn::language_arch_info): New function.
9673 * m2-lang.c (m2_language_arch_info): Delete function, move
9674 implementation to...
9675 (m2_language::language_arch_info): ...here, a new member
9677 (m2_language_data): Delete la_language_arch_info.
9678 * objc-lang.c (objc_language_arch_info): Delete function, move
9679 implementation to...
9680 (objc_language::language_arch_info): ...here, a new member
9682 (objc_language_data): Delete la_language_arch_info.
9683 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9684 implementation to...
9685 (opencl_language::language_arch_info): ...here, a new member
9687 (opencl_language_data): Delete la_language_arch_info.
9688 * p-lang.c (pascal_language_arch_info): Delete function, move
9689 implementation to...
9690 (pascal_language::language_arch_info): ...here, a new member
9692 (pascal_language_data): Delete la_language_arch_info.
9693 * rust-lang.c (rust_language_arch_info): Delete function, move
9694 implementation to...
9695 (rust_language::language_arch_info): ...here, a new member
9697 (rust_language_data): Delete la_language_arch_info.
9699 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9701 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9703 * c-lang.c (c_language_data): Likewise.
9704 (cplus_language_data): Likewise.
9705 (cplus_language::pass_by_reference_info): New method.
9706 (asm_language_data): Delete la_pass_by_reference initializer.
9707 (minimal_language_data): Likewise.
9708 * cp-abi.c (cp_pass_by_reference): Remove use of
9709 default_pass_by_reference.
9710 * d-lang.c (d_language_data): Likewise.
9711 * f-lang.c (f_language_data): Likewise.
9712 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9713 default_pass_by_reference.
9714 * go-lang.c (go_language_data): Likewise.
9715 * language.c (language_pass_by_reference): Update.
9716 (default_pass_by_reference): Delete.
9717 (unknown_language_data): Delete la_pass_by_reference
9719 (auto_language_data): Likewise.
9720 * language.h (struct language_data): Delete la_pass_by_reference
9722 (language_defn::pass_by_reference_info): New member function.
9723 (default_pass_by_reference): Delete declaration.
9724 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9726 * objc-lang.c (objc_language_data): Likewise.
9727 * opencl-lang.c (opencl_language_data): Likewise.
9728 * p-lang.c (pascal_language_data): Likewise.
9729 * rust-lang.c (rust_language_data): Likewise.
9731 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9733 * ada-lang.c (ada_read_var_value): Delete function, move
9734 implementation to...
9735 (ada_language::read_var_value): ...here.
9736 (ada_language_data): Delete la_read_var_value initializer.
9737 * c-lang.c (c_language_data): Likewise.
9738 (cplus_language_data): Likewise.
9739 (minimal_language_data): Likewise.
9740 * d-lang.c (d_language_data): Likewise.
9741 * f-lang.c (f_language_data): Likewise.
9742 * findvar.c (default_read_var_value): Rename to...
9743 (language_defn::read_var_value): ...this.
9744 * findvar.c (read_var_value): Update header comment, and change to
9745 call member function instead of function pointer.
9746 * go-lang.c (go_language_data): Likewise.
9747 * language.c (unknown_language_data): Delete la_read_var_value
9749 (auto_language_data): Likewise.
9750 * language.h (struct language_data): Delete la_read_var_value
9752 (language_defn::read_var_value): New member function.
9753 (default_read_var_value): Delete declaration.
9754 * m2-lang.c (m2_language_data): Delete la_read_var_value
9756 * objc-lang.c (objc_language_data): Likewise.
9757 * opencl-lang.c (opencl_language_data): Likewise.
9758 * p-lang.c (pascal_language_data): Likewise.
9759 * rust-lang.c (rust_language_data): Likewise.
9760 * value.h (default_read_var_value): Delete declaration.
9762 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9764 * ada-lang.c (ada_print_array_index): Delete function, move
9765 implementation to...
9766 (ada_language::print_array_index): ...here.
9767 (ada_language_data): Delete la_print_array_index initializer.
9768 * c-lang.c (c_language_data): Likewise.
9769 (cplus_language_data): Likewise.
9770 (minimal_language_data): Likewise.
9771 * d-lang.c (d_language_data): Likewise.
9772 * f-lang.c (f_language_data): Likewise.
9773 * go-lang.c (go_language_data): Likewise.
9774 * language.c (default_print_array_index): Delete function, move
9775 implementation to...
9776 (language_defn::print_array_index): ...here.
9777 (unknown_language_data): Delete la_print_array_index initializer.
9778 (auto_language_data): Likewise.
9779 * language.h (struct language_data): Delete la_print_array_index
9781 (language_defn::print_array_index): New member function.
9782 (LA_PRINT_ARRAY_INDEX): Update.
9783 (default_print_array_index): Delete declaration.
9784 * m2-lang.c (m2_language_data): Delete la_print_array_index
9786 * objc-lang.c (objc_language_data): Likewise.
9787 * opencl-lang.c (opencl_language_data): Likewise.
9788 * p-lang.c (pascal_language_data): Likewise.
9789 * rust-lang.c (rust_language_data): Likewise.
9791 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9793 * gdb/ada-lang.c (ada_language_defn): Convert to...
9794 (ada_language_data): ...this.
9795 (class ada_language): New class.
9796 (ada_language_defn): New static global.
9797 * gdb/c-lang.c (c_language_defn): Convert to...
9798 (c_language_data): ...this.
9799 (class c_language): New class.
9800 (c_language_defn): New static global.
9801 (cplus_language_defn): Convert to...
9802 (cplus_language_data): ...this.
9803 (class cplus_language): New class.
9804 (cplus_language_defn): New static global.
9805 (asm_language_defn): Convert to...
9806 (asm_language_data): ...this.
9807 (class asm_language): New class.
9808 (asm_language_defn): New static global.
9809 (minimal_language_defn): Convert to...
9810 (minimal_language_data): ...this.
9811 (class minimal_language): New class.
9812 (minimal_language_defn): New static global.
9813 * gdb/d-lang.c (d_language_defn): Convert to...
9814 (d_language_data): ...this.
9815 (class d_language): New class.
9816 (d_language_defn): New static global.
9817 * gdb/f-lang.c (f_language_defn): Convert to...
9818 (f_language_data): ...this.
9819 (class f_language): New class.
9820 (f_language_defn): New static global.
9821 * gdb/go-lang.c (go_language_defn): Convert to...
9822 (go_language_data): ...this.
9823 (class go_language): New class.
9824 (go_language_defn): New static global.
9825 * gdb/language.c (unknown_language_defn): Remove declaration.
9826 (current_language): Initialize to nullptr, real initialization is
9827 moved to _initialize_language.
9828 (languages): Delete global.
9829 (language_defn::languages): Define.
9830 (set_language_command): Use language_defn::languages.
9831 (set_language): Likewise.
9832 (range_error): Likewise.
9833 (language_enum): Likewise.
9834 (language_def): Likewise.
9835 (add_set_language_command): Use language_def::languages for the
9836 language list, and language_def to lookup language pointers.
9837 (skip_language_trampoline): Use language_defn::languages.
9838 (unknown_language_defn): Convert to...
9839 (unknown_language_data): ...this.
9840 (class unknown_language): New class.
9841 (unknown_language_defn): New static global.
9842 (auto_language_defn): Convert to...
9843 (auto_language_data): ...this.
9844 (class auto_language): New class.
9845 (auto_language_defn): New static global.
9846 (language_gdbarch_post_init): Use language_defn::languages.
9847 (_initialize_language): Initialize current_language.
9848 * gdb/language.h (struct language_defn): Rename to...
9849 (struct language_data): ...this.
9850 (struct language_defn): New.
9851 (auto_language_defn): Delete.
9852 (unknown_language_defn): Delete.
9853 (minimal_language_defn): Delete.
9854 (ada_language_defn): Delete.
9855 (asm_language_defn): Delete.
9856 (c_language_defn): Delete.
9857 (cplus_language_defn): Delete.
9858 (d_language_defn): Delete.
9859 (f_language_defn): Delete.
9860 (go_language_defn): Delete.
9861 (m2_language_defn): Delete.
9862 (objc_language_defn): Delete.
9863 (opencl_language_defn): Delete.
9864 (pascal_language_defn): Delete.
9865 (rust_language_defn): Delete.
9866 * gdb/m2-lang.c (m2_language_defn): Convert to...
9867 (m2_language_data): ...this.
9868 (class m2_language): New class.
9869 (m2_language_defn): New static global.
9870 * gdb/objc-lang.c (objc_language_defn): Convert to...
9871 (objc_language_data): ...this.
9872 (class objc_language): New class.
9873 (objc_language_defn): New static global.
9874 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9875 (opencl_language_data): ...this.
9876 (class opencl_language): New class.
9877 (opencl_language_defn): New static global.
9878 * gdb/p-lang.c (pascal_language_defn): Convert to...
9879 (pascal_language_data): ...this.
9880 (class pascal_language): New class.
9881 (pascal_language_defn): New static global.
9882 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9883 language pointer, update comment format.
9884 * gdb/rust-lang.c (rust_language_defn): Convert to...
9885 (rust_language_data): ...this.
9886 (class rust_language): New class.
9887 (rust_language_defn): New static global.
9889 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9891 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9893 <m_stmt_at_address>: New member variable.
9894 (lnp_state_machine::record_line): Don't record some lines, update
9895 tracking of is_stmt at the same address.
9896 (lnp_state_machine::lnp_state_machine): Initialise new member
9899 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9901 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9902 "-include gnu-nat-mig.h".
9903 * gnu-nat-mig.h: New file.
9904 * gnu-nat.c: Include "gnu-nat-mig.h".
9905 (exc_server, msg_reply_server, notify_server,
9906 process_reply_server): Remove declarations.
9908 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9910 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9911 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9912 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9913 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9914 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9915 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9916 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9917 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9918 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9919 to gnu_nat_target class.
9920 * gnu-nat.c: Likewise.
9921 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9922 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9923 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9925 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9926 instead of `gnu_target'.
9928 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9930 * i386-gnu-tdep.c: Include "gdbcore.h"
9931 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9932 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9933 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9934 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9935 i386_gnu_sigcontext_addr): New functions
9936 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9937 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9940 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9942 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9943 before fork_inferior call. Avoid calling it if target_is_pushed returns
9946 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9948 * gnu-nat.h (gnu_target): New variable declaration.
9949 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9951 * gnu-nat.c (gnu_target): New variable.
9952 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9953 add_thread_silent, and add_thread calls.
9954 (gnu_nat_target::create_inferior): Pass gnu_target to
9955 add_thread_silent, thread_change_ptid call.
9956 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9959 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9961 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9962 (gnu_nat_target::find_memory_regions): Remove unused
9963 `old_address' variable.
9965 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9967 * gnu-nat.c: Include "gdbarch.h".
9969 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9971 * reply_mig_hack.awk (Error return): Cast function through
9972 void *, to bypass compiler function call check.
9974 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9976 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9977 $(srcdir)/reply_mig_hack.awk.
9979 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9981 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9983 2020-05-30 Jonny Grant <jg@jguk.org>
9985 * configure.ac (ACX_BUGURL): change bug URL to https.
9987 2020-05-30 Pedro Alves <palves@redhat.com>
9989 * cp-support.c (replace_typedefs_template): New.
9990 (replace_typedefs_qualified_name): Handle
9991 DEMANGLE_COMPONENT_TEMPLATE.
9993 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9995 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9996 dwarf2/index-cache.h, dwarf2/index-write.c,
9997 dwarf2/index-write.h, dwarf2/line-header.c,
9998 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9999 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
10000 variables and fields from `dwarf2_per_objfile` to just
10001 `per_objfile` throughout.
10003 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
10005 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10006 <push_dwarf_reg_entry_value>: Add comment.
10008 2020-05-28 Kevin Buettner <kevinb@redhat.com>
10009 Keith Seitz <keiths@redhat.com>
10011 * python/python.c (do_start_initialization): Call PyEval_SaveThread
10012 instead of PyEval_ReleaseLock.
10013 (class gdbpy_gil): Move to earlier in file.
10014 (finalize_python): Set gdb_python_initialized.
10015 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
10016 when not initialized.
10018 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
10020 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10021 <push_dwarf_reg_entry_value>: Remove assert. Override
10022 per_objfile with caller_per_objfile.
10024 2020-05-28 Tom de Vries <tdevries@suse.de>
10026 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
10027 PR gold/15646 workaround to symbol kind "type".
10029 2020-05-27 Tom Tromey <tromey@adacore.com>
10031 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
10033 2020-05-27 Tom Tromey <tromey@adacore.com>
10035 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
10036 Use htab_find_with_hash.
10037 <add_abbrev>: Remove "abbrev_number" parameter.
10038 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
10039 "abbrev_number" parameter. Use htab_find_slot_with_hash.
10040 (hash_abbrev): Add comment.
10041 (abbrev_table::lookup_abbrev): Move to header file.
10042 (abbrev_table::read): Update.
10044 2020-05-27 Tom Tromey <tromey@adacore.com>
10046 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
10048 <canonical_name>: New member.
10049 <raw_name>: Rename from "name".
10050 (partial_die_info): Initialize canonical_name.
10051 (scan_partial_symbols): Check raw_name.
10052 (partial_die_parent_scope, partial_die_full_name)
10053 (add_partial_symbol, add_partial_subprogram)
10054 (add_partial_enumeration, load_partial_dies): Use "name" method.
10055 (partial_die_info::name): New method.
10056 (partial_die_info::read, guess_partial_die_structure_name)
10057 (partial_die_info::fixup): Update.
10059 2020-05-27 Tom Tromey <tromey@adacore.com>
10061 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
10062 <get_ref_die_offset>: Inline.
10063 <get_ref_die_offset_complaint>: New method.
10064 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
10065 (attribute::get_ref_die_offset_complaint): Rename from
10066 get_ref_die_offset. Just issue complaint.
10068 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10070 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
10072 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10074 * exec.c (exec_file_attach): Use errno value of first openp failure.
10076 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10078 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
10079 Don't close thread handle.
10081 2020-05-27 Tom Tromey <tom@tromey.com>
10082 Simon Marchi <simon.marchi@efficios.com>
10084 * objfiles.h (struct objfile) <partial_symtabs>: Now a
10086 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
10088 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
10089 dwarf2_per_bfd_objfile_data_key>: New globals.
10090 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
10091 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
10092 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
10094 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
10095 short-circuit when sharing.
10096 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
10097 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
10099 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10101 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
10103 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
10104 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
10106 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10108 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
10109 build_name_components, find_name_components_bounds>:
10110 Add per_objfile parameter.
10111 (struct mapped_index) <symbol_name_at>: Likewise.
10112 (struct mapped_debug_names): Remove constructor.
10113 <dwarf2_per_objfile>: Remove field.
10114 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
10115 (mapped_index_base::find_name_components_bounds,
10116 mapped_index_base::build_name_components,
10117 dw2_expand_symtabs_matching_symbol): Likewise.
10118 (class mock_mapped_index) <symbol_name_at>: Likewise.
10119 (check_match): Likewise.
10120 (check_find_bounds_finds): Likewise.
10121 (test_mapped_index_find_name_component_bounds): Update.
10122 (CHECK_MATCH): Update.
10123 (dw2_expand_symtabs_matching): Update.
10124 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
10125 per_objfile parameter.
10126 <find_vec_in_debug_names>: Likewise.
10127 <m_per_objfile>: New field.
10128 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
10130 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
10131 (dw2_debug_names_iterator::next): Update.
10132 (dw2_debug_names_lookup_symbol): Update.
10133 (dw2_debug_names_expand_symtabs_for_function): Update.
10134 (dw2_debug_names_map_matching_symbols): Update.
10135 (dw2_debug_names_expand_symtabs_matching): Update.
10136 (dwarf2_read_debug_names): Update.
10138 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10140 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
10141 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
10142 move to dwarf2_per_objfile.
10143 <read_in_chain>: Remove.
10144 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
10145 remove_all_cus, age_comp_units>: New methods.
10146 <m_dwarf2_cus>: New member.
10147 (struct dwarf2_per_cu_data) <cu>: Remove.
10148 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
10149 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
10150 moved to methods of dwarf2_per_objfile.
10151 (dwarf2_clear_marks): Remove.
10152 (dwarf2_queue_item::~dwarf2_queue_item): Update.
10153 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
10154 (dwarf2_per_bfd::free_cached_comp_units): Remove.
10155 (dwarf2_per_objfile::remove_all_cus): New.
10156 (class free_cached_comp_units) <~free_cached_comp_units>:
10159 (dw2_do_instantiate_symtab): Adjust.
10160 (fill_in_sig_entry_from_dwo_entry): Adjust.
10161 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10162 (cutu_reader::cutu_reader): Likewise.
10163 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
10164 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
10165 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
10166 and dwarf2_per_objfile::age_comp_units.
10167 (load_partial_comp_unit): Update.
10168 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
10169 (process_queue): Likewise.
10170 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
10172 (dwarf2_read_addr_index): Likewise.
10173 (follow_die_offset): Likewise.
10174 (dwarf2_fetch_die_loc_sect_off): Likewise.
10175 (dwarf2_fetch_constant_bytes): Likewise.
10176 (dwarf2_fetch_die_type_sect_off): Likewise.
10177 (follow_die_sig_1): Likewise.
10178 (load_full_type_unit): Likewise.
10179 (read_signatured_type): Likewise.
10180 (dwarf2_cu::dwarf2_cu): Don't set cu field.
10181 (dwarf2_cu::~dwarf2_cu): Remove.
10182 (dwarf2_per_objfile::get_cu): New.
10183 (dwarf2_per_objfile::set_cu): New.
10184 (age_cached_comp_units): Rename to...
10185 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
10186 to std::unordered_map.
10187 (free_one_cached_comp_unit): Rename to...
10188 (dwarf2_per_objfile::remove_cu): ... this. Adjust
10189 to std::unordered_map.
10190 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
10191 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
10192 a dwarf2_per_objfile in data.
10193 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
10194 (dwarf2_clear_marks): Remove.
10196 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10198 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
10199 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
10200 (init_tu_and_read_dwo_dies): Likewise.
10201 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
10202 (cutu_reader::cutu_reader): Likewise.
10203 (load_partial_comp_unit): Likewise.
10204 (process_psymtab_comp_unit): Update.
10205 (build_type_psymtabs_1): Update.
10206 (process_skeletonless_type_unit): Update.
10207 (load_full_comp_unit): Update.
10208 (find_partial_die): Update.
10209 (dwarf2_read_addr_index): Update.
10210 (read_signatured_type): Update.
10212 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10214 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
10215 m_header_read_in>: New fields.
10216 <get_header>: New method.
10217 * dwarf2/read.c (per_cu_header_read_in): Remove.
10218 (dwarf2_per_cu_data::get_header): New.
10219 (dwarf2_per_cu_data::addr_size): Update.
10220 (dwarf2_per_cu_data::offset_size): Update.
10221 (dwarf2_per_cu_data::ref_addr_size): Update.
10223 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10225 * dwarf2/read.c (load_cu): Return dwarf2_cu.
10226 (dw2_do_instantiate_symtab): Update.
10227 (queue_and_load_all_dwo_tus): Change parameter from
10228 dwarf2_per_cu_data to dwarf2_cu.
10229 (dwarf2_fetch_die_loc_sect_off): Update.
10230 (dwarf2_fetch_constant_bytes): Update.
10231 (dwarf2_fetch_die_type_sect_off): Update.
10233 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10235 * dwarf2/read.c (process_full_comp_unit,
10236 process_full_type_unit): Remove per_cu, per_objfile paramters.
10237 Add dwarf2_cu parameter.
10238 (process_queue): Update.
10240 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10242 * dwarf2/read.c (create_cu_from_index_list): Replace
10243 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10244 (create_cus_from_index_list): Likewise.
10245 (create_cus_from_index): Likewise.
10246 (create_signatured_type_table_from_index): Likewise.
10247 (create_cus_from_debug_names_list): Likewise.
10248 (create_cus_from_debug_names): Likewise.
10249 (dwarf2_read_gdb_index): Update.
10250 (dwarf2_read_debug_names): Update.
10252 2020-05-27 Tom Tromey <tom@tromey.com>
10253 Simon Marchi <simon.marchi@efficios.com>
10255 * dwarf2/read.h (struct dwarf2_per_objfile)
10256 <get_type_for_signatured_type, set_type_for_signatured_type>:
10258 <m_type_map>: New member.
10259 (struct signatured_type) <type>: Remove.
10261 (dwarf2_per_objfile::get_type_for_signatured_type,
10262 dwarf2_per_objfile::set_type_for_signatured_type): New.
10263 (get_signatured_type): Use new methods.
10265 2020-05-27 Tom Tromey <tom@tromey.com>
10266 Simon Marchi <simon.marchi@efficios.com>
10268 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10269 (struct dwarf2_per_objfile) <type_units>: New member.
10270 <get_type_unit_group_unshareable>: New method.
10271 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10272 num_symtabs, symtabs>: Remove; move to
10273 type_unit_group_unshareable.
10274 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10275 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10276 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10278 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10280 * dwarf2/read.h (struct dwarf2_per_cu_data):
10281 <dwarf2_per_objfile>: Remove.
10282 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10283 dwarf2_per_objfile.
10284 (create_signatured_type_table_from_index): Likewise.
10285 (create_signatured_type_table_from_debug_names): Likewise.
10286 (create_debug_type_hash_table): Likewise.
10287 (fill_in_sig_entry_from_dwo_entry): Likewise.
10288 (create_type_unit_group): Likewise.
10289 (read_comp_units_from_section): Likewise.
10290 (create_cus_hash_table): Likewise.
10292 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10294 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10295 dwarf2_per_cu_data::dwarf2_per_objfile.
10296 (compute_compunit_symtab_includes): Likewise.
10297 (dwarf2_cu::start_symtab): Likewise.
10299 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10301 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10303 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10304 (read_namespace_alias): Update.
10305 (lookup_die_type): Update.
10306 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10307 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10309 (disassemble_dwarf_expression): Update.
10311 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10313 * dwarf2/read.h (struct dwarf2_queue_item): Add
10314 dwarf2_per_objfile parameter, assign new parameter.
10315 <per_objfile>: New field.
10316 * dwarf2/read.c (free_one_cached_comp_unit): Add
10317 dwarf2_per_objfile parameter.
10318 (queue_comp_unit): Likewise.
10319 (dw2_do_instantiate_symtab): Update.
10320 (process_psymtab_comp_unit): Update.
10321 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10322 (process_imported_unit_die): Update.
10323 (queue_and_load_dwo_tu): Update.
10324 (follow_die_offset): Update.
10325 (follow_die_sig_1): Update.
10327 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10329 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10330 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10331 (read_call_site_scope): Assign per_objfile.
10332 (dwarf2_per_cu_data::objfile): Remove.
10333 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10334 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10335 dwarf2_per_objfile parameter.
10336 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10337 dwarf2_per_objfile parameter.
10338 (dwarf_expr_reg_to_entry_parameter): Add output
10339 dwarf2_per_objfile parameter.
10340 (locexpr_get_frame_base): Update.
10341 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10342 <push_dwarf_reg_entry_value>: Update.
10343 <call_site_to_target_addr>: Update.
10344 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10346 (value_of_dwarf_reg_entry): Update.
10347 (rw_pieced_value): Update.
10348 (indirect_synthetic_pointer): Update.
10349 (dwarf2_evaluate_property): Update.
10350 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10352 (locexpr_read_variable): Update.
10353 (locexpr_get_symbol_read_needs): Update.
10354 (loclist_read_variable): Update.
10356 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10358 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10359 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10360 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10362 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10363 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10364 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10366 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10367 sect_variable_value): Add dwarf2_per_objfile parameter.
10368 (class dwarf_evaluate_loc_desc) <dwarf_call,
10369 dwarf_variable_value>: Update.
10370 (fetch_const_value_from_synthetic_pointer): Add
10371 dwarf2_per_objfile parameter.
10372 (fetch_const_value_from_synthetic_pointer): Update.
10373 (coerced_pieced_ref): Update.
10374 (class symbol_needs_eval_context) <dwarf_call,
10375 dwarf_variable_value>: Update.
10376 (dwarf2_compile_expr_to_ax): Update.
10378 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10380 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10382 (dwarf2_evaluate_loc_desc_full): Update.
10384 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10386 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10388 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10389 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10390 dwarf2_per_objfile parameter.
10391 (decode_debug_loc_dwo_addresses): Likewise.
10392 (dwarf2_find_location_expression): Update.
10393 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10394 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10396 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10398 (locexpr_describe_location_1): Likewise.
10399 (locexpr_describe_location): Update.
10401 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10403 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10405 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10406 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10407 (dwarf2_compile_property_to_c): Update.
10408 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10409 use text offset from objfile.
10410 (locexpr_tracepoint_var_ref): Update.
10411 (locexpr_generate_c_location): Update.
10412 (loclist_describe_location): Update.
10413 (loclist_tracepoint_var_ref): Update.
10414 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10415 dwarf2_per_objfile parameter.
10416 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10417 use text offset from objfile.
10418 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10420 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10422 * dwarf2/expr.h (struct dwarf_expr_context)
10423 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10425 <per_objfile>: New member.
10426 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10427 dwarf2_per_objfile parameter. Don't set offset, set
10429 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10430 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10431 a dwarf2_per_objfile object instead of an offset.
10432 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10434 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10435 to dwarf2_expr_executor constructor. Don't set offset.
10436 (dwarf2_fetch_cfa_info): Update.
10437 (struct dwarf2_frame_cache) <text_offset>: Remove.
10438 <per_objfile>: New field.
10439 (dwarf2_frame_cache): Update.
10440 (dwarf2_frame_prev_register): Update.
10441 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10442 <dwarf_evaluate_loc_desc>: Add constructor.
10443 (dwarf2_evaluate_loc_desc_full): Update.
10444 (dwarf2_locexpr_baton_eval): Update.
10445 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10447 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10449 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10451 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10452 addr_sized_int_type>: Move to dwarf2_cu.
10453 <int_type>: Move to dwarf2_per_objfile.
10454 (struct dwarf2_per_objfile) <int_type>: Move here.
10455 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10456 addr_sized_int_type>: Move here.
10457 (read_func_scope): Update.
10458 (read_array_type): Update.
10459 (read_tag_string_type): Update.
10460 (attr_to_dynamic_prop): Update.
10461 (dwarf2_per_cu_data::int_type): Rename to...
10462 (dwarf2_per_objfile::int_type): ... this.
10463 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10464 (dwarf2_cu::addr_sized_int_type): ... this.
10465 (read_subrange_type): Update.
10466 (dwarf2_per_cu_data::addr_type): Rename to...
10467 (dwarf2_cu::addr_type): ... this.
10468 (set_die_type): Update.
10470 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10472 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10473 data through per_cu->cu.
10475 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10477 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10478 dwarf2_per_cu_data parameter fo dwarf2_cu.
10479 (lookup_dwo_type_unit): Likewise.
10480 (read_cutu_die_from_dwo): Likewise.
10481 (lookup_dwo_unit): Likewise.
10482 (open_and_init_dwo_file): Likewise.
10483 (lookup_dwo_cutu): Likewise.
10484 (lookup_dwo_comp_unit): Likewise.
10485 (lookup_dwo_type_unit): Likewise.
10486 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10487 (cutu_reader::cutu_reader): Update.
10489 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10491 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10493 (process_full_type_unit): Likewise.
10494 (process_queue): Update.
10496 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10498 * dwarf2/read.c (recursively_compute_inclusions): Add
10499 dwarf2_per_objfile parameter.
10500 (compute_compunit_symtab_includes): Likewise.
10501 (process_cu_includes): Update.
10503 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10505 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10507 (create_type_unit_group): Update.
10508 (process_psymtab_comp_unit_reader): Update.
10509 (build_type_psymtabs_reader): Update.
10511 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10513 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10514 object through m_this_cu->cu.
10516 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10518 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10519 the info parameter.
10520 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10522 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10524 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10525 per_objfile parameter.
10526 (load_full_type_unit): Add per_objfile parameter.
10527 (read_signatured_type): Likewise.
10528 (load_full_comp_unit): Likewise.
10529 (load_cu): Likewise.
10530 (dw2_do_instantiate_symtab): Likewise.
10531 (dw2_get_file_names): Likewise.
10532 (dw2_map_symtabs_matching_filename): Update.
10533 (dw_expand_symtabs_matching_file_matcher): Update.
10534 (dw2_map_symbol_filenames): Update.
10535 (process_psymtab_comp_unit): Add per_objfile parameter.
10536 (build_type_psymtabs_1): Update.
10537 (process_skeletonless_type_unit): Update.
10538 (dwarf2_build_psymtabs_hard): Update.
10539 (load_partial_comp_unit): Add per_objfile parameter.
10540 (scan_partial_symbols): Update.
10541 (load_full_comp_unit): Add per_objfile parameter.
10542 (process_imported_unit_die): Update.
10543 (create_cus_hash_table): Update.
10544 (find_partial_die): Update.
10545 (dwarf2_read_addr_index): Update.
10546 (follow_die_offset): Update.
10547 (dwarf2_fetch_die_loc_sect_off): Update.
10548 (dwarf2_fetch_constant_bytes): Update.
10549 (dwarf2_fetch_die_type_sect_off): Update.
10550 (follow_die_sig_1): Update.
10551 (load_full_type_unit): Add per_objfile parameter.
10552 (read_signatured_type): Likewise.
10554 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10556 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10559 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10561 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10562 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10563 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10565 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10566 (create_cus_from_index): Update.
10567 (dwarf2_read_gdb_index): Update.
10568 (create_cus_from_debug_names): Update.
10569 (dwarf2_read_debug_names): Update.
10570 (get_abbrev_section_for_cu): Update.
10571 (create_all_comp_units): Update.
10572 (read_attribute_value): Update.
10573 (get_debug_line_section): Update.
10574 * dwarf2/index-cache.c (index_cache::store): Update.
10575 * dwarf2/index-write.c (save_gdb_index_command): Update.
10576 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10578 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10580 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10582 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10583 dwarf2_per_cu_data::per_bfd.
10584 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10585 (create_type_unit_group): Likewise.
10586 (queue_comp_unit): Remove reference to
10587 per_cu->dwarf2_per_objfile.
10588 (maybe_queue_comp_unit): Likewise.
10589 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10590 (create_cus_hash_table): Assign new field.
10592 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10594 * dwarf2/read.c: Replace
10595 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10596 dwarf2_cu->per_objfile throughout.
10598 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10600 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10601 parameter, don't use per_cu->dwarf2_per_objfile.
10602 (dw2_instantiate_symtab): Likewise.
10603 (dw2_find_last_source_symtab): Update.
10604 (dw2_map_expand_apply): Update.
10605 (dw2_lookup_symbol): Update.
10606 (dw2_expand_symtabs_for_function): Update.
10607 (dw2_expand_all_symtabs): Update.
10608 (dw2_expand_symtabs_with_fullname): Update.
10609 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10610 don't use per_cu->dwarf2_per_objfile.
10611 (dw2_expand_marked_cus): Update.
10612 (dw2_find_pc_sect_compunit_symtab): Update.
10613 (dw2_debug_names_lookup_symbol): Update.
10614 (dw2_debug_names_expand_symtabs_for_function): Update.
10615 (dw2_debug_names_map_matching_symbols): Update.
10616 (dwarf2_psymtab::expand_psymtab): Update.
10618 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10620 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10621 <per_objfile>: New member.
10622 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10623 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10625 (cutu_reader::cutu_reader): Update.
10626 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10628 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10630 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10631 struct dwarf2_per_objfile.
10632 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10634 * dwarf2/read.c (set_die_type): Update.
10635 (get_die_type_at_offset): Update.
10637 2020-05-27 Tom Tromey <tom@tromey.com>
10638 Simon Marchi <simon.marchi@efficios.com>
10640 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10642 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10643 get_symtab, set_symtab>: New methods.
10644 <m_symtabs>: New field.
10645 (struct dwarf2_psymtab): Derive from partial_symtab.
10646 <readin_p, get_compunit_symtab>: Declare methods.
10647 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10648 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10650 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10651 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10652 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10653 (dw2_symtab_iter_next, dw2_print_stats)
10654 (dw2_expand_symtabs_with_fullname)
10655 (dw2_expand_symtabs_matching_one)
10656 (dw_expand_symtabs_matching_file_matcher)
10657 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10658 (dw2_debug_names_iterator::next)
10659 (dw2_debug_names_map_matching_symbols)
10660 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10661 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10662 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10664 (get_compunit_symtab, process_full_comp_unit)
10665 (process_full_type_unit): Update.
10666 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10668 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10670 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10671 then introduce a new dwarf2_per_objfile type.
10672 <read_line_string>: Move to the new dwarf2_per_objfile type.
10673 <objfile>: Likewise.
10674 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10675 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10676 dwarf2_per_objfile->per_bfd.
10677 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10678 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10679 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10680 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10681 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10682 (dwarf2_per_objfile::locate_sections): Rename to...
10683 (dwarf2_per_bfd::locate_sections): ... this.
10684 (dwarf2_per_objfile::get_cutu): Rename to...
10685 (dwarf2_per_bfd::get_cutu): ... this.
10686 (dwarf2_per_objfile::get_cu): Rename to...
10687 (dwarf2_per_bfd::get_cu): ... this.
10688 (dwarf2_per_objfile::get_tu): Rename to...
10689 (dwarf2_per_bfd::get_tu): ... this.
10690 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10691 (dwarf2_per_bfd::allocate_per_cu): ... this.
10692 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10693 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10694 (get_gdb_index_contents_ftype): Change parameter from
10695 dwarf2_per_objfile to dwarf2_per_bfd.
10696 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10697 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10699 2020-05-27 Tom Tromey <tom@tromey.com>
10700 Simon Marchi <simon.marchi@efficios.com>
10702 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10703 (allocate_piece_closure): Set "per_objfile" member.
10704 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10705 (locexpr_describe_location, loclist_describe_location): Use new
10707 * dwarf2/read.c (read_call_site_scope)
10708 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10709 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10710 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10711 handle_data_member_location): Set per_objfile member.
10712 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10714 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10716 2020-05-27 Tom Tromey <tom@tromey.com>
10718 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10719 allocate_signatured_type>: Declare new methods.
10720 <m_num_psymtabs>: New member.
10721 (struct dwarf2_per_cu_data) <index>: New member.
10722 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10723 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10724 (create_cu_from_index_list): Use allocate_per_cu.
10725 (create_signatured_type_table_from_index)
10726 (create_signatured_type_table_from_debug_names)
10727 (create_debug_type_hash_table, add_type_unit)
10728 (read_comp_units_from_section): Use allocate_signatured_type.
10730 2020-05-27 Tom Tromey <tom@tromey.com>
10732 * psymtab.c (partial_map_expand_apply)
10733 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10734 (psym_lookup_global_symbol_language)
10735 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10736 (psym_print_stats, psym_expand_symtabs_for_function)
10737 (psym_map_symbol_filenames, psym_map_matching_symbols)
10738 (psym_expand_symtabs_matching)
10739 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10740 (maintenance_check_psymtabs): Update.
10741 * psympriv.h (struct partial_symtab) <readin_p,
10742 get_compunit_symtab>: Add objfile parameter.
10743 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10745 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10746 get_compunit_symtab>: Likewise.
10747 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10749 2020-05-27 Tom Tromey <tom@tromey.com>
10751 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10753 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10754 (create_cu_from_index_list)
10755 (create_signatured_type_table_from_index)
10756 (create_signatured_type_table_from_debug_names)
10757 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10758 (dwarf2_create_include_psymtab)
10759 (create_debug_type_hash_table, add_type_unit)
10760 (create_type_unit_group, read_comp_units_from_section)
10761 (dwarf2_compute_name, create_cus_hash_table)
10762 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10763 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10765 (dw2_get_real_path): Likewise. Change argument to
10766 dwarf2_per_objfile.
10768 2020-05-27 Luis Machado <luis.machado@linaro.org>
10771 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10772 for ldrd (immediate).
10774 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10776 * command.h: Add comment giving the name of class_tui.
10777 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10778 create the fake command for the help for class_tui.
10780 2020-05-26 Tom Tromey <tromey@adacore.com>
10782 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10783 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10784 (val_atr): New function.
10785 (value_val_atr): Use it.
10786 * ada-valprint.c (print_optional_low_bound): Change low bound
10787 handling for enums.
10788 (val_print_packed_array_elements): Don't call discrete_position.
10789 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10790 discrete_position for enum types.
10791 * language.c (default_print_array_index): Change type.
10792 * language.h (struct language_defn) <la_print_array_index>: Add
10793 index_type parameter, change type of index_value.
10794 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10795 (default_print_array_index): Update.
10796 * valprint.c (maybe_print_array_index): Don't call
10797 value_from_longest. Update.
10798 (value_print_array_elements): Don't call discrete_position.
10800 2020-05-26 Tom Tromey <tromey@adacore.com>
10802 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10803 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10805 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10808 * avr-tdep.c (avr_integer_to_address): Return data or code
10809 address accordingly to the second 'type' argument of the
10812 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10814 * infcmd.c, inferior.h: (construct_inferior_arguments):
10815 Moved function from here to gdbsupport/common-inferior.{h,cc}
10817 2020-05-23 Tom Tromey <tom@tromey.com>
10819 Revert commit eca1f90c:
10820 * NEWS: Remove entry for completion styling.
10821 * completer.c (_rl_completion_prefix_display_length): Move
10823 (gdb_fnprint): Revert.
10824 (gdb_display_match_list_1): Likewise.
10825 * cli/cli-style.c (completion_prefix_style)
10826 (completion_difference_style, completion_suffix_style): Remove.
10827 (_initialize_cli_style): Revert.
10828 * cli/cli-style.h (completion_prefix_style)
10829 (completion_difference_style, completion_suffix_style): Don't
10832 2020-05-24 Pedro Alves <palves@redhat.com>
10834 * symtab.c (completion_list_add_name): Return boolean indication
10835 of whether the symbol matched.
10836 (completion_list_add_symbol): Don't try to remove C++ aliases if
10837 the symbol didn't match in the first place.
10838 * symtab.h (completion_list_add_name): Return bool.
10840 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10842 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10845 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10849 2020-05-23 Tom Tromey <tom@tromey.com>
10851 * NEWS: Add entry for completion styling.
10852 * completer.c (_rl_completion_prefix_display_length): Move
10853 declaration earlier.
10854 (gdb_fnprint): Use completion_style.
10855 (gdb_display_match_list_1): Likewise.
10856 * cli/cli-style.c (completion_prefix_style)
10857 (completion_difference_style, completion_suffix_style): New
10859 (_initialize_cli_style): Register new globals.
10860 * cli/cli-style.h (completion_prefix_style)
10861 (completion_difference_style, completion_suffix_style): Declare.
10863 2020-05-23 Pedro Alves <palves@redhat.com>
10865 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10866 (parse_escape): Use ISDIGIT instead of isdigit.
10867 (puts_debug): Use gdb_isprint instead of isprint.
10868 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10869 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10870 ISSPACE instead of isspace.
10871 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10872 instead of isspace.
10873 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10874 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10875 instead of isxdigit and ISDIGIT instead of isdigit.
10877 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10879 * gdbtypes.h (struct type) <field>: New method.
10880 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10883 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10885 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10886 (TYPE_FIELDS): Use type::fields. Change all call sites that
10887 modify the propery to use type::set_fields instead.
10889 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10891 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10892 type::num_fields instead.
10894 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10896 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10898 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10899 that modify the number of fields to use type::set_num_fields
10902 2020-05-22 Tom Tromey <tromey@adacore.com>
10904 * compile/compile-object-load.h (munmap_list_free): Don't
10907 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10909 * annotate.c (annotate_source_line): Update return type, add call
10910 to update current symtab and line.
10911 * annotate.h (annotate_source_line): Update return type, and
10912 extend header comment.
10913 * source.c (info_line_command): Check annotation_level before
10914 calling annotate_source_line.
10915 * stack.c (print_frame_info): If calling annotate_source_line
10916 returns true, then don't print any other source line information.
10918 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10920 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10922 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10924 * coffread.c (patch_type): Remove NULL check before xfree.
10925 * corefile.c (set_gnutarget): Likewise.
10926 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10927 * exec.c (build_section_table): Likewise.
10928 * remote.c (remote_target::pass_signals): Likewise.
10929 * utils.c (n_spaces): Likewise.
10930 * cli/cli-script.c (document_command): Likewise.
10931 * i386-windows-tdep.c (core_process_module_section): Likewise.
10932 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10934 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10936 * symfile.c (reread_symbols): Clear objfile's section_offsets
10937 vector and section indices, re-compute them by calling
10940 2020-05-20 Tom Tromey <tromey@adacore.com>
10942 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10943 (desc_one_bound, desc_index_type): Compute field name.
10945 2020-05-20 Tom de Vries <tdevries@suse.de>
10948 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10950 2020-05-20 Alan Modra <amodra@gmail.com>
10953 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10955 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10956 passed to bfd_set_filename.
10957 * symfile-mem.c (add_vsyscall_page): Likewise for string
10958 passed to symbol_file_add_from_memory.
10959 (symbol_file_add_from_memory): Make name param a const char* and
10962 2020-05-20 Alan Modra <amodra@gmail.com>
10964 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10965 rather than accessing bfd->filename directly.
10966 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10967 and use bfd_section_name.
10968 * dwarf2/frame.c (decode_frame_entry): Likewise.
10969 * exec.c (exec_set_section_address): Likewise.
10970 * solib-aix.c (solib_aix_bfd_open): Likewise.
10971 * stap-probe.c (get_stap_base_address): Likewise.
10972 * symfile.c (reread_symbols): Likewise.
10974 2020-05-19 Tom Tromey <tromey@adacore.com>
10976 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10978 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10980 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10982 2020-05-19 Pedro Alves <palves@redhat.com>
10984 * NEWS (set exec-file-mismatch): Adjust entry.
10985 * exec.c: Include "build-id.h".
10986 (validate_exec_file): Try to match build IDs instead of filenames.
10987 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10988 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10989 and pass down 'warn_if_slow'.
10990 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10991 gdb_bfd_open_closure to pass it down.
10992 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10994 2020-05-19 Pedro Alves <palves@redhat.com>
10996 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10997 * target.c (target_fileio_open_1): Rename to target_fileio_open
10998 and make extern. Use bool.
10999 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
11000 (target_fileio_read_alloc_1): Adjust.
11001 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
11002 (target_fileio_open_warn_if_slow): Delete declaration.
11004 2020-05-19 Pedro Alves <palves@redhat.com>
11006 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
11007 Adjust all callers.
11009 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
11011 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
11012 whether disp is negative.
11014 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
11016 * symfile.h (struct symfile_segment_data)
11017 <~symfile_segment_data>: Remove.
11018 <segment_info>: Change to std::vector.
11019 * symfile.c (default_symfile_segments): Update.
11020 * elfread.c (elf_symfile_segments): Update.
11022 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
11024 * symfile.h (struct symfile_segment_data) <struct segment>: New.
11026 <segment_bases, segment_sizes>: Remove.
11027 * symfile.c (default_symfile_segments): Update.
11028 * elfread.c (elf_symfile_segments): Update.
11029 * remote.c (remote_target::get_offsets): Update.
11030 * solib-target.c (solib_target_relocate_section_addresses):
11033 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
11035 * symfile.h (struct symfile_segment_data): Initialize fields.
11036 <~symfile_segment_data>: Add.
11037 (symfile_segment_data_up): New.
11038 (struct sym_fns) <sym_segments>: Return a
11039 symfile_segment_data_up.
11040 (default_symfile_segments): Return a symfile_segment_data_up.
11041 (free_symfile_segment_data): Remove.
11042 (get_symfile_segment_data): Return a symfile_segment_data_up.
11043 * symfile.c (default_symfile_segments): Likewise.
11044 (get_symfile_segment_data): Likewise.
11045 (free_symfile_segment_data): Remove.
11046 (symfile_find_segment_sections): Update.
11047 * elfread.c (elf_symfile_segments): Return a
11048 symfile_segment_data_up.
11049 * remote.c (remote_target::get_offsets): Update.
11050 * solib-target.c (solib_target_relocate_section_addresses):
11052 * symfile-debug.c (debug_sym_segments): Return a
11053 symfile_segment_data_up.
11055 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11058 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
11059 Hardcode register numbers.
11062 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
11063 procfs_find_LDT_entry): Remove.
11064 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
11065 procfs_find_LDT_entry): Remove.
11066 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
11069 2020-05-17 Pedro Alves <palves@redhat.com>
11070 Andrew Burgess <andrew.burgess@embecosm.com>
11071 Keno Fischer <keno@juliacomputing.com>
11074 * breakpoint.c (build_target_condition_list): Update comments.
11075 (build_target_command_list): Update comments and skip matching
11077 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
11078 a separate function. Simplify "set breakpoint auto-hw off"
11080 (insert_breakpoints): Update comment.
11081 (tracepoint_locations_match): New parameter. For breakpoints,
11082 compare location types too, if the caller wants to.
11083 (handle_automatic_hardware_breakpoints): New functions.
11084 (bp_location_is_less_than): Also sort by location type and
11085 hardware breakpoint length.
11086 (update_global_location_list): Handle "set breakpoint auto-hw on"
11088 (update_breakpoint_locations): Ask breakpoint_locations_match to
11089 ignore location types.
11091 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11093 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
11094 type::name instead.
11096 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11098 * gdbtypes.h (struct type) <name, set_name>: New methods.
11099 (TYPE_CODE): Use type::name. Change all call sites used to set
11100 the name to use type::set_name instead.
11102 2020-05-16 Tom Tromey <tom@tromey.com>
11104 * top.c (quit_force): Update.
11105 * infrun.c (handle_no_resumed): Update.
11106 * top.h (all_uis): New function.
11109 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11111 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
11113 2020-05-16 Pedro Alves <palves@redhat.com>
11116 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
11118 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
11120 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
11122 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
11123 (sparc64_adi_info): Likewise.
11125 2020-05-15 Tom Tromey <tom@tromey.com>
11127 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
11129 (lookup_objfile_from_block): Remove.
11130 (lookup_symbol_in_block, lookup_symbol_in_static_block)
11131 (lookup_global_symbol): Use block_objfile.
11132 * symtab.h (lookup_objfile_from_block): Don't declare.
11133 * printcmd.c (clear_dangling_display_expressions): Use
11135 * parse.c (operator_check_standard): Use block_objfile.
11137 2020-05-15 Tom Tromey <tom@tromey.com>
11139 * language.c (language_alloc_type_symbol): Set
11141 * symtab.c (initialize_objfile_symbol): Remove.
11142 (allocate_symbol): Remove.
11143 (allocate_template_symbol): Remove.
11144 * dwarf2/read.c (fixup_go_packaging): Use "new".
11145 (new_symbol): Use "new".
11146 (read_variable): Don't call initialize_objfile_symbol. Use
11148 (read_func_scope): Use "new".
11149 * xcoffread.c (process_xcoff_symbol): Don't call
11150 initialize_objfile_symbol.
11151 (SYMBOL_DUP): Remove.
11152 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
11154 * symtab.h (allocate_symbol, initialize_objfile_symbol)
11155 (allocate_template_symbol): Don't declare.
11156 (struct symbol): Add copy constructor. Change defaults.
11157 * jit.c (finalize_symtab): Use "new".
11158 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
11160 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11161 (common_block_end): Use "new".
11162 * mdebugread.c (parse_symbol): Use "new".
11163 (new_symbol): Likewise.
11165 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11167 * NEWS: Mention changes to help and apropos.
11169 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11171 * command.h (enum command_class): Improve comments, document
11172 that class_alias is for user-defined aliases, give the class
11173 name for each class, remove unused class_xdb.
11174 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
11175 * breakpoint.c (_initialize_breakpoint): Replace class_alias
11176 by a precise class.
11177 * infcmd.c (_initialize_infcmd): Likewise.
11178 * reverse.c (_initialize_reverse): Likewise.
11179 * stack.c (_initialize_stack): Likewise.
11180 * symfile.c (_initialize_symfile): Likewise.
11181 * tracepoint.c (_initialize_tracepoint): Likewise.
11183 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11185 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
11186 when their aliased command is traversed.
11187 (help_cmd): Add fput_command_names_styled call to
11188 output command name and aliases when command has an alias.
11190 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11192 * cli/cli-decode.h (help_cmd_list): Remove declaration.
11193 * cli/cli-decode.c (help_cmd_list): Declare as static,
11194 remove prefix argument, use bool for recurse arg, rework to show the aliases of
11195 a command together with the command.
11196 (fput_command_name_styled, fput_command_names_styled): New functions.
11197 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
11198 fput_command_name_styled.
11199 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
11200 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
11202 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11204 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
11205 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
11206 * command.h (cmd_show_list): Likewise.
11207 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
11208 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
11210 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11212 * unittests/command-def-selftests.c (traverse_command_structure):
11213 Verify all commands of a list have the same prefix command and
11214 that only the top cmdlist commands have a null prefix.
11216 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11218 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
11219 as prefix, not one of its aliases.
11220 (set_cmd_prefix): Remove.
11221 (do_add_cmd): Centralize the setting of the prefix of a command, when
11222 command is defined after its full chain of prefix commands.
11223 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
11224 (add_setshow_cmd_full): Likewise.
11225 (update_prefix_field_of_prefixed_commands): New function.
11226 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
11227 update_prefix_field_of_prefixed_commands.
11228 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
11229 addresses of remote_set_cmdlist and remote_show_cmdlist given
11230 as argument, not the address of an argument.
11231 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11232 * gdb/remote.c (_initialize_remote): Likewise.
11234 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11236 * cli/cli-cmds.c (alias_command): Check for an existing alias
11237 using lookup_cmd_composition, as valid_command_p is too strict
11238 and forbids aliases that are the prefix of an existing alias
11240 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11241 command is properly recognised as a valid command.
11243 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11245 * unittests/help-doc-selftests.c: Rename to
11246 unittests/command-def-selftests.c
11247 * unittests/command-def-selftests.c (help_doc_tests): Update some
11249 (command_structure_tests, traverse_command_structure): New namespace
11251 (command_structure_invariants_tests): New function.
11252 (_initialize_command_def_selftests) Renamed from
11253 _initialize_help_doc_selftests, register command_structure_invariants
11256 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11258 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11259 an alias of 'show'.
11261 2020-05-15 Joel Brobecker <brobecker@adacore.com>
11263 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11264 ada_is_fixed_point_type. Update all callers.
11265 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11267 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11268 Update all callers.
11269 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11270 print_fixed_point_type. Update all callers.
11271 * ada-valprint.c (ada_value_print_num): Replace call to
11272 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11274 2020-05-14 Kevin Buettner <kevinb@redhat.com>
11276 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11278 (cpu_supports_bts): Add CV_AMD case.
11280 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11281 Simon Marchi <simon.marchi@efficios.com>
11283 * infrun.c (stop_all_threads): Collect multiple wait events at
11286 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11288 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11289 type::code instead.
11291 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11293 * gdbtypes.h (struct type) <code, set_code>: New methods.
11294 (TYPE_CODE): Use type::code. Change all call sites used to set
11295 the code to use type::set_code instead.
11297 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11298 Tom de Vries <tdevries@suse.de>
11299 Pedro Alves <palves@redhat.com>
11302 * infrun.c (stop_all_threads): Do NOT ignore
11303 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11304 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11306 (handle_no_resumed): Remove code handling a live inferior with no
11308 * remote.c (has_single_non_exited_thread): New.
11309 (remote_target::update_thread_list): Do not delete a thread if is
11310 the last thread of the process.
11311 * thread.c (thread_select): Call delete_exited_threads instead of
11314 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11316 * infrun.c (stop_all_threads): Enable/disable thread events of all
11317 targets. Move a debug message denoting the end of the function
11318 into the SCOPED_EXIT block.
11320 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11322 * process-stratum-target.h: Include <set>.
11323 (all_non_exited_process_targets, switch_to_target_no_thread): New
11324 function declarations.
11325 * process-stratum-target.c (all_non_exited_process_targets)
11326 (switch_to_target_no_thread): New function implementations.
11328 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11330 * infrun.c (handle_inferior_event): Extract out a piece of code
11332 (mark_non_executing_threads): ...this new function.
11334 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11336 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11339 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11341 * regcache.c (regcache_read_pc_protected): New function
11342 implementation that returns 0 if the PC cannot read via
11343 'regcache_read_pc'.
11344 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11345 instead of 'regcache_read_pc'.
11346 (keep_going_pass_signal): Ditto.
11348 2020-05-13 Tom Tromey <tromey@adacore.com>
11350 * ada-lang.c (align_value): Remove.
11351 (ada_template_to_fixed_record_type_1): Use align_up.
11353 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11355 * async-event.c: Update the copyright year.
11356 * async-event.h: Update the copyright year.
11358 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
11360 * objfiles.h (is_addr_in_objfile,
11361 shared_objfile_contains_address_p): Return bool.
11362 * objfile.c (is_addr_in_objfile,
11363 shared_objfile_contains_address_p): Return bool.
11365 2020-05-11 Tom Tromey <tromey@adacore.com>
11367 * cli/cli-cmds.c (info_command): Restore.
11368 (_initialize_cli_cmds): Use add_prefix_command for "info".
11369 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11371 2020-05-11 Tom Tromey <tromey@adacore.com>
11373 * ada-lang.c (ada_value_primitive_field): Now public.
11374 * ada-lang.h (ada_value_primitive_field): Declare.
11375 * ada-valprint.c (print_field_values): Use
11376 ada_value_primitive_field for wrapper fields.
11378 2020-05-11 Tom de Vries <tdevries@suse.de>
11380 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11383 2020-05-11 Tom de Vries <tdevries@suse.de>
11386 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11387 with length 0, if not gdb-produced.
11388 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11390 2020-05-09 Tom de Vries <tdevries@suse.de>
11393 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11396 2020-05-09 Tom Tromey <tom@tromey.com>
11398 * top.c (server_command): Now bool.
11399 * top.h (server_command): Now bool.
11401 2020-05-08 Tom Tromey <tromey@adacore.com>
11403 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11404 already being processed.
11406 2020-05-08 Tom Tromey <tom@tromey.com>
11408 * printcmd.c (struct display) <next>: Remove.
11409 <display>: New constructor.
11410 <exp_string>: Now a std::string.
11411 <enabled_p>: Now a bool.
11412 (display_number): Move definition earlier.
11413 (displays): Rename from display_chain. Now a std::vector.
11414 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11415 (display_command): Update.
11416 (do_one_display, disable_display)
11417 (enable_disable_display_command, do_enable_disable_display):
11419 (free_display): Remove.
11420 (clear_displays): Rewrite.
11421 (delete_display): Update.
11422 (map_display_numbers): Use function_view. Remove "data"
11424 (do_delete_display): Remove.
11425 (undisplay_command): Update.
11426 (do_one_display, do_displays, disable_display)
11427 (info_display_command): Update.
11428 (do_enable_disable_display): Remove.
11429 (enable_disable_display_command)
11430 (clear_dangling_display_expressions): Update.
11432 2020-05-08 Tom Tromey <tom@tromey.com>
11434 * symtab.c (set_symbol_cache_size)
11435 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11436 (maintenance_print_symbol_cache_statistics): Update.
11437 * symmisc.c (print_symbol_bcache_statistics)
11438 (print_objfile_statistics, maintenance_print_objfiles)
11439 (maintenance_info_symtabs, maintenance_check_symtabs)
11440 (maintenance_expand_symtabs, maintenance_info_line_tables):
11442 * symfile-debug.c (set_debug_symfile): Update.
11443 * source.c (forget_cached_source_info): Update.
11444 * python/python.c (gdbpy_progspaces): Update.
11445 * psymtab.c (maintenance_info_psymtabs): Update.
11446 * probe.c (parse_probes): Update.
11447 * linespec.c (iterate_over_all_matching_symtabs)
11448 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11449 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11450 * exec.c (exec_target::close): Update.
11451 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11452 * breakpoint.c (print_one_breakpoint_location)
11453 (create_longjmp_master_breakpoint)
11454 (create_std_terminate_master_breakpoint): Update.
11455 * progspace.c (program_spaces): Now a std::vector.
11456 (maybe_new_address_space): Update.
11457 (add_program_space): Remove.
11458 (program_space::program_space): Update.
11459 (remove_program_space): Update.
11460 (number_of_program_spaces): Remove.
11461 (print_program_space, update_address_spaces): Update.
11462 * progspace.h (program_spaces): Change type.
11463 (ALL_PSPACES): Remove.
11464 (number_of_program_spaces): Don't declare.
11465 (struct program_space) <next>: Remove.
11467 2020-05-08 Tom Tromey <tom@tromey.com>
11469 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11470 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11471 (enable_break): Update.
11472 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11473 (frv_fdpic_find_canonical_descriptor): Update.
11474 (frv_fetch_objfile_link_map): Update.
11475 * progspace.c (program_space::free_all_objfiles): Update.
11476 (program_space::solibs): New method.
11477 * progspace.h (struct program_space) <solibs>: New method.
11478 * solist.h (master_so_list): Don't declare.
11479 (ALL_SO_LIBS): Remove.
11480 * solib.h (so_list_head): Remove.
11481 (update_solib_list): Update comment.
11482 * solib.c (master_so_list): Remove.
11483 (solib_used, update_solib_list, solib_add)
11484 (info_sharedlibrary_command, clear_solib)
11485 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11487 2020-05-08 Tom Tromey <tom@tromey.com>
11489 * extension.c (extension_languages): Now a std::array.
11490 (ALL_EXTENSION_LANGUAGES): Remove.
11491 (get_ext_lang_defn, get_ext_lang_of_file)
11492 (eval_ext_lang_from_control_command): Update.
11493 (finish_ext_lang_initialization)
11494 (auto_load_ext_lang_scripts_for_objfile)
11495 (ext_lang_type_printers::ext_lang_type_printers)
11496 (apply_ext_lang_type_printers)
11497 (ext_lang_type_printers::~ext_lang_type_printers)
11498 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11499 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11500 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11501 (get_matching_xmethod_workers, ext_lang_colorize)
11502 (ext_lang_before_prompt): Update.
11503 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11505 2020-05-08 Tom Tromey <tom@tromey.com>
11507 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11509 <swap_string, m_string>: Remove.
11510 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11512 * stabsread.c (define_symbol, read_type): Update.
11513 * linespec.c (find_linespec_symbols): Update.
11514 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11515 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11516 * dbxread.c (read_dbx_symtab): Update.
11517 * cp-support.h (cp_canonicalize_string_full)
11518 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11519 Return unique_xmalloc_ptr.
11520 * cp-support.c (inspect_type): Update.
11521 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11522 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11524 * c-typeprint.c (print_name_maybe_canonical): Update.
11525 * break-catch-throw.c (check_status_exception_catchpoint):
11528 2020-05-08 Tom de Vries <tdevries@suse.de>
11530 * infrun.c (follow_fork): Copy current_line and current_symtab to
11533 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11535 * async-event.c (struct async_signal_handler, struct
11536 async_event_handler): Reformat, remove typedef.
11538 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11540 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11541 access thistype->main_type->dyn_prop_list directly.
11543 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11545 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11546 (remove_dyn_prop): Remove. Update all users to use
11547 type::remove_dyn_prop.
11548 * gdbtypes.c (remove_dyn_prop): Rename to...
11549 (type::remove_dyn_prop): ... this.
11551 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11553 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11554 (add_dyn_prop): Remove. Update all users to use
11555 type::add_dyn_prop.
11556 * gdbtypes.c (add_dyn_prop): Rename to...
11557 (type::add_dyn_prop): ... this.
11559 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11561 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11562 (get_dyn_prop): Remove. Update all users to use
11564 * gdbtypes.c (get_dyn_prop): Rename to...
11565 (type::dyn_prop): ... this.
11567 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11569 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11571 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11573 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11574 instruction, skip it if it's there.
11576 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11578 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11580 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11582 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11583 * gdbtypes.c (recursive_dump_type): Remove use of
11586 2020-05-03 Tom Tromey <tom@tromey.com>
11588 * breakpoint.c (catch_command, tcatch_command): Remove.
11589 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11590 add_show_prefix_cmd.
11591 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11592 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11594 (add_internal_problem_command): Use add_basic_prefix_cmd,
11595 add_show_prefix_cmd.
11596 * mips-tdep.c (set_mipsfpu_command): Remove.
11597 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11598 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11599 (_initialize_index_cache): Use add_basic_prefix_cmd.
11600 * memattr.c (dummy_cmd): Remove.
11601 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11602 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11603 (_initialize_tui_win): Use add_basic_prefix_cmd,
11604 add_show_prefix_cmd.
11605 * cli/cli-logging.c (set_logging_command): Remove.
11606 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11607 add_show_prefix_cmd.
11608 (show_logging_command): Remove.
11609 * target.c (target_command): Remove.
11610 (add_target): Use add_basic_prefix_cmd.
11612 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11614 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11616 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11618 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11621 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11623 * nbsd-nat.c (nbsd_enable_proc_events)
11624 (nbsd_nat_target::post_startup_inferior): Add.
11625 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11626 (nbsd_nat_target::update_thread_list): Rewrite.
11627 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11628 "PTRACE_LWP_CREATE".
11629 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11631 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11633 * stack.c (_initialize_stack): Remove duplicated creation
11634 of "frame" command and "f" alias.
11636 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11639 * gdbtypes.c (check_typedef): Calculate size of array of
11642 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11645 * i386-tdep.c (i386_push_dummy_call): Call
11646 i386_thiscall_push_dummy_call.
11647 (i386_thiscall_push_dummy_call): New function.
11648 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11649 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11650 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11652 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11654 * gdbarch.sh (do_read): Add shellcheck disable directive for
11657 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11659 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11660 "referenced but not assigned" warning.
11662 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11664 * gdbarch.sh: Remove code that sets fallbackdefault.
11666 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11668 * gdbarch.sh: Use shell operators && and || instead of
11671 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11673 * gdbarch.sh: Use $(...) instead of `...`.
11675 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11677 * gdbarch.sh: Use double quotes around variables.
11679 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11681 * gdbarch.sh: Use %s with printf, instead of variables in the
11684 2020-04-29 Tom Tromey <tromey@adacore.com>
11687 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11689 (read_enumeration_type): Call
11690 update_enumeration_type_from_children later. Update comments.
11691 (process_enumeration_scope): Don't create type fields.
11693 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11695 * nbsd-tdep.c: Include "xml-syscall.h".
11696 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11698 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11700 * nbsd-nat.c: Include "sys/wait.h".
11701 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11702 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11703 (nbsd_nat_target::remove_exec_catchpoint)
11704 (nbsd_nat_target::set_syscall_catchpoint): Add.
11705 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11706 (nbsd_nat_target::insert_exec_catchpoint)
11707 (nbsd_nat_target::remove_exec_catchpoint)
11708 (nbsd_nat_target::set_syscall_catchpoint): Add.
11709 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11710 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11711 `nbsd_get_syscall_number'.
11713 2020-04-29 Tom Tromey <tom@tromey.com>
11715 * stack.c (print_block_frame_labels): Remove.
11717 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11720 * ada-valprint.c (val_print_packed_array_elements): Move array
11721 end bracket to new line.
11722 (ada_val_print_string): Remove extra spaces before first array
11724 * c-valprint.c (c_value_print_array): Likewise.
11725 * m2-valprint.c (m2_print_array_contents): Likewise.
11726 (m2_value_print_inner): Likewise.
11727 * p-valprint.c (pascal_value_print_inner): Likewise.
11728 * valprint.c (generic_val_print_array): Likewise.
11729 (value_print_array_elements): Move first array element and array
11730 end bracket to new line.
11732 2020-04-29 Tom de Vries <tdevries@suse.de>
11735 * linespec.c (find_method): Fix ix calculation.
11737 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11739 * syscalls/update-netbsd.sh: New file.
11740 * syscalls/netbsd.xml: Regenerate.
11741 * data-directory/Makefile.in: Register `netbsd.xml' in
11744 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11746 * syscalls/update-freebsd.sh: Add double quotes.
11748 2020-04-28 Tom Tromey <tom@tromey.com>
11751 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11752 (cmdpy_init): Allow class_tui.
11754 2020-04-28 Mark Williams <mark@myosotissp.com>
11757 * dwarf2read.c: Add missing assingments to list_in_scope when
11758 start_symtab was already called.
11760 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11763 * dwarf2/read.c (offset_map_type): Use
11764 gdb:hash_enum<sect_offset> as hash function.
11766 2020-04-28 Tom de Vries <tdevries@suse.de>
11768 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11769 with DW_AT_signature.
11771 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11773 * configure.ac: Remove check for fs_base/gs_base in
11775 * configure: Re-generate.
11776 * config.in: Re-generate.
11777 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11778 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11779 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11781 2020-04-27 Luis Machado <luis.machado@linaro.org>
11783 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11784 problematic inline frame unwinding situation.
11785 * frame.c (frame_id_computed_p): New function.
11786 * frame.h (frame_id_computed_p): New prototype.
11788 2020-04-26 Tom Tromey <tom@tromey.com>
11790 * command.h (enum command_class) <class_pseudo>: Remove.
11792 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11794 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11797 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11799 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11800 `PT_GET_PROCESS_STATE' block.
11802 2020-04-24 Tom Tromey <tom@tromey.com>
11804 * symtab.h (symbol_get_demangled_name): Don't declare.
11805 * symtab.c (symbol_get_demangled_name): Remove.
11806 (general_symbol_info::natural_name)
11807 (general_symbol_info::demangled_name): Update.
11809 2020-04-24 Tom Tromey <tom@tromey.com>
11812 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11814 2020-04-24 Tom Tromey <tom@tromey.com>
11817 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11819 (new_symbol): Likewise.
11820 * compile/compile-object-load.c (get_out_value_type): Use
11821 symbol_matches_search_name.
11823 2020-04-24 Tom Tromey <tom@tromey.com>
11825 * dwarf2/read.c (add_partial_symbol): Do not call
11826 compute_and_set_names.
11828 2020-04-24 Tom Tromey <tom@tromey.com>
11830 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11833 2020-04-24 Tom Tromey <tom@tromey.com>
11835 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11836 (add_psymbol_to_list): New overload. Make old overload call new
11838 * psympriv.h (add_psymbol_to_list): New overload.
11840 2020-04-24 Tom Tromey <tom@tromey.com>
11842 * dwarf2/read.c (partial_die_info::read) <case
11843 DW_AT_linkage_name>: Use value_as_string.
11844 (dwarf2_string_attr): Use value_as_string.
11845 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11847 * dwarf2/attribute.c (attribute::value_as_string): New method.
11849 2020-04-24 Tom Tromey <tom@tromey.com>
11851 * symtab.c (general_symbol_info::natural_name)
11852 (general_symbol_info::demangled_name): Check for language_rust.
11854 2020-04-24 Tom Tromey <tom@tromey.com>
11856 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11857 (dwarf2_physname): ... from here.
11858 (partial_die_info::read): Add Rust "{" hack.
11860 2020-04-24 Tom Tromey <tom@tromey.com>
11862 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11864 (symbol_set_demangled_name): Don't declare.
11865 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11866 symbol_set_demangled_name.
11867 (general_symbol_info::set_language)
11868 (general_symbol_info::compute_and_set_names): Update.
11869 * minsyms.c (minimal_symbol_reader::install): Update.
11870 * dwarf2/read.c (new_symbol): Update.
11872 2020-04-24 Tom Tromey <tromey@adacore.com>
11875 * python/py-type.c (convert_field): Handle
11876 FIELD_LOC_KIND_DWARF_BLOCK.
11877 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11878 (typy_get_dynamic): Nw function.
11879 (type_object_getset): Add "dynamic".
11882 2020-04-24 Tom Tromey <tromey@adacore.com>
11884 * ada-typeprint.c (print_choices, print_variant_part)
11885 (print_record_field_types_dynamic): New functions.
11886 (print_record_field_types): Use print_record_field_types_dynamic.
11888 2020-04-24 Tom Tromey <tromey@adacore.com>
11890 * dwarf2/read.c (handle_data_member_location): New overload.
11891 (dwarf2_add_field): Use it.
11892 (decode_locdesc): Add "computed" parameter. Update comment.
11893 * gdbtypes.c (is_dynamic_type_internal): Also look for
11894 FIELD_LOC_KIND_DWARF_BLOCK.
11895 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11896 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11897 virtual base classes.
11898 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11899 FIELD_LOC_KIND_DWARF_BLOCK.
11901 2020-04-24 Tom Tromey <tromey@adacore.com>
11903 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11904 * gdbtypes.c (is_dynamic_type_internal): Check
11905 TYPE_HAS_DYNAMIC_LENGTH.
11906 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11907 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11909 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11912 2020-04-24 Tom Tromey <tromey@adacore.com>
11914 * dwarf2/read.c (struct variant_field): Rewrite.
11915 (struct variant_part_builder): New.
11916 (struct nextfield): Remove "variant" field. Add "offset".
11917 (struct field_info): Add "current_variant_part" and
11919 (alloc_discriminant_info): Remove.
11920 (alloc_rust_variant): New function.
11921 (quirk_rust_enum): Update.
11922 (dwarf2_add_field): Set "offset" member. Don't handle
11923 DW_TAG_variant_part.
11924 (offset_map_type): New typedef.
11925 (convert_variant_range, create_one_variant)
11926 (create_one_variant_part, create_variant_parts)
11927 (add_variant_property): New functions.
11928 (dwarf2_attach_fields_to_type): Call add_variant_property.
11929 (read_structure_type): Don't handle DW_TAG_variant_part.
11930 (handle_variant_part, handle_variant): New functions.
11931 (handle_struct_member_die): Use them.
11932 (process_structure_scope): Don't handle variant parts.
11933 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11934 (struct discriminant_info): Remove.
11935 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11936 (struct main_type) <flag_discriminated_union>: Remove.
11937 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11938 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11939 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11941 * valops.c (value_union_variant): Remove.
11942 * value.h (value_union_variant): Don't declare.
11944 2020-04-24 Tom Tromey <tromey@adacore.com>
11946 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11947 (ada_value_primitive_packed_val): Update.
11948 * ada-valprint.c (ada_value_print_1): Update.
11949 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11950 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11951 just an address. Use evaluate_for_locexpr_baton.
11952 (dwarf2_evaluate_property): Update.
11953 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11955 * findvar.c (default_read_var_value): Update.
11956 * gdbtypes.c (compute_variant_fields_inner)
11957 (resolve_dynamic_type_internal): Update.
11958 (resolve_dynamic_type): Change type of valaddr parameter.
11959 * gdbtypes.h (resolve_dynamic_type): Update.
11960 * valarith.c (value_subscripted_rvalue): Update.
11961 * value.c (value_from_contents_and_address): Update.
11963 2020-04-24 Tom Tromey <tromey@adacore.com>
11965 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11966 "push_initial_value" parameter.
11967 (dwarf2_evaluate_property): Likewise.
11968 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11970 2020-04-24 Tom Tromey <tromey@adacore.com>
11972 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11973 (variant::matches, compute_variant_fields_recurse)
11974 (compute_variant_fields_inner, compute_variant_fields): New
11976 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11977 Use resolved_type after type is made.
11978 (operator==): Add new cases.
11979 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11980 (struct discriminant_range, struct variant, struct variant_part):
11982 (union dynamic_prop_data) <variant_parts, original_type>: New
11984 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11985 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11987 * value.c (unpack_bits_as_long): Now public.
11988 * value.h (unpack_bits_as_long): Declare.
11990 2020-04-24 Tom Tromey <tromey@adacore.com>
11992 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11993 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11995 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11997 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11999 2020-04-24 Kamil Rytarowski <n54@gmx.com>
12001 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
12002 (remove_fork_catchpoint, post_startup_inferior)
12003 (post_attach): Move...
12004 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
12005 (remove_fork_catchpoint, post_startup_inferior)
12006 (post_attach): ...here.
12007 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
12008 (remove_fork_catchpoint, post_startup_inferior)
12009 (post_attach): Move...
12010 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
12011 (remove_fork_catchpoint, post_startup_inferior)
12012 (post_attach): ...here.
12014 2020-04-24 Tom Tromey <tromey@adacore.com>
12016 * nat/windows-nat.h (struct windows_thread_info)
12017 <pc_adjusted>: New member.
12018 * windows-nat.c (windows_fetch_one_register): Check
12020 (windows_nat_target::get_windows_debug_event)
12021 (windows_nat_target::wait): Set pc_adjusted.
12023 2020-04-24 Tom de Vries <tdevries@suse.de>
12025 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
12026 Run gdb-add-index inside temp dir.
12028 2020-04-23 Tom Tromey <tromey@adacore.com>
12030 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
12033 2020-04-23 Luis Machado <luis.machado@linaro.org>
12035 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
12036 get_frame_register instead of gdbarch_unwind_pc.
12038 2020-04-23 Tom de Vries <tdevries@suse.de>
12040 * symtab.c (lookup_global_symbol): Prefer def over decl.
12042 2020-04-23 Tom de Vries <tdevries@suse.de>
12045 * block.c (best_symbol, better_symbol): Promote to external.
12046 * block.h (best_symbol, better_symbol): Declare.
12047 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
12050 2020-04-23 Tom Tromey <tromey@adacore.com>
12053 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
12054 "const char *", not a "const std::string &".
12055 <name_and_matcher::operator==>: Update.
12056 * unittests/lookup_name_info-selftests.c: Change type of
12059 2020-04-23 Tom Tromey <tom@tromey.com>
12061 * inferior.h (iterate_over_inferiors): Don't declare.
12062 * inferior.c (iterate_over_inferiors): Remove.
12063 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
12065 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
12066 use iterate_over_inferiors.
12067 (darwin_resume_inferior_it)
12068 (struct resume_inferior_threads_param)
12069 (darwin_resume_inferior_threads_it): Remove.
12070 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
12072 2020-04-23 Tom de Vries <tdevries@suse.de>
12074 * blockframe.c (find_pc_partial_function): Use
12075 find_pc_sect_compunit_symtab rather than
12076 objfile->sf->qf->find_pc_sect_compunit_symtab.
12078 2020-04-22 Tom de Vries <tdevries@suse.de>
12081 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
12084 2020-04-22 Tom de Vries <tdevries@suse.de>
12087 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
12090 2020-04-22 Tom de Vries <tdevries@suse.de>
12093 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
12094 CU if already created.
12096 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12098 * infrun.c (displaced_step_fixup): Switch to the event_thread
12099 before calling displaced_step_restore, not after.
12101 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12103 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
12104 its inferior is not recorded by us.
12105 (record_btrace_target_open): Replace call to
12106 all_non_exited_threads () with call to current_inferior
12107 ()->non_exited_threads ().
12108 (record_btrace_target::stop_recording): Likewise.
12109 (record_btrace_target::close): Likewise.
12110 (record_btrace_target::wait): Likewise.
12111 (record_btrace_target::record_stop_replaying): Likewise.
12113 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12115 * btrace.c (btrace_enable): Throw an error on double enables and
12116 when enabling recording fails.
12117 (btrace_disable): Throw an error if the thread is not recorded.
12119 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12121 * record-btrace.c (record_btrace_target::fetch_registers): Forward
12122 request if we do not have a thread_info.
12124 2020-04-21 Tom de Vries <tdevries@suse.de>
12128 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
12129 exception in get_frame_id.
12131 2020-04-20 Tom Tromey <tromey@adacore.com>
12133 * python/python.c (struct gdbpy_event): Mark move constructor as
12135 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
12136 constructor as noexcept.
12137 * completer.h (struct completion_result): Mark move constructor as
12139 * completer.c (completion_result::completion_result): Use
12140 initialization style. Don't call reset_match_list.
12142 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
12144 * MAINTAINERS (Write After Approval): Add myself.
12146 2020-04-18 Tom Tromey <tom@tromey.com>
12148 * windows-tdep.c (init_w32_command_list)
12149 (w32_prefix_command_valid): Restore.
12150 (_initialize_windows_tdep): Call init_w32_command_list.
12152 2020-04-18 Tom Tromey <tom@tromey.com>
12154 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
12155 * value.c (value_fn_field): Update.
12156 * valops.c (find_function_in_inferior)
12157 (value_allocate_space_in_inferior): Update.
12158 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12160 * tui/tui-source.c (tui_source_window::set_contents): Update.
12161 * symtab.c (lookup_global_or_static_symbol)
12162 (find_function_start_sal_1, skip_prologue_sal)
12163 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
12164 * symmisc.c (dump_msymbols, dump_symtab_1)
12165 (maintenance_print_one_line_table): Update.
12166 * symfile.c (init_entry_point_info, section_is_mapped)
12167 (list_overlays_command, simple_read_overlay_table)
12168 (simple_overlay_update_1): Update.
12169 * stap-probe.c (handle_stap_probe): Update.
12170 * stabsread.c (dbx_init_float_type, define_symbol)
12171 (read_one_struct_field, read_enum_type, read_range_type): Update.
12172 * source.c (info_line_command): Update.
12173 * python/python.c (gdbpy_source_objfile_script)
12174 (gdbpy_execute_objfile_script): Update.
12175 * python/py-type.c (save_objfile_types): Update.
12176 * python/py-objfile.c (py_free_objfile): Update.
12177 * python/py-inferior.c (python_new_objfile): Update.
12178 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
12179 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
12180 (maintenance_check_psymtabs): Update.
12181 * printcmd.c (info_address_command): Update.
12182 * objfiles.h (struct objfile) <arch>: New method, from
12184 (get_objfile_arch): Don't declare.
12185 * objfiles.c (get_objfile_arch): Remove.
12186 (filter_overlapping_sections): Update.
12187 * minsyms.c (msymbol_is_function): Update.
12188 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
12189 (output_nondebug_symbol): Update.
12190 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
12191 (mdebug_expand_psymtab): Update.
12192 * machoread.c (macho_add_oso_symfile): Update.
12193 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
12195 * linux-fork.c (checkpoint_command): Update.
12196 * linespec.c (convert_linespec_to_sals): Update.
12197 * jit.c (finalize_symtab): Update.
12198 * infrun.c (insert_exception_resume_from_probe): Update.
12199 * ia64-tdep.c (ia64_find_unwind_table): Update.
12200 * hppa-tdep.c (internalize_unwinds): Update.
12201 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
12203 * gcore.c (call_target_sbrk): Update.
12204 * elfread.c (record_minimal_symbol, elf_symtab_read)
12205 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
12206 (elf_gnu_ifunc_resolve_by_got): Update.
12207 * dwarf2/read.c (create_addrmap_from_index)
12208 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12209 (read_debug_names_from_section)
12210 (process_psymtab_comp_unit_reader, add_partial_symbol)
12211 (add_partial_subprogram, process_full_comp_unit)
12212 (read_file_scope, read_func_scope, read_lexical_block_scope)
12213 (read_call_site_scope, dwarf2_ranges_read)
12214 (dwarf2_record_block_ranges, dwarf2_add_field)
12215 (mark_common_block_symbol_computed, read_tag_pointer_type)
12216 (read_tag_string_type, dwarf2_init_float_type)
12217 (dwarf2_init_complex_target_type, read_base_type)
12218 (partial_die_info::read, partial_die_info::read)
12219 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
12220 (dwarf2_fetch_die_loc_sect_off): Update.
12221 * dwarf2/loc.c (dwarf2_find_location_expression)
12222 (class dwarf_evaluate_loc_desc, rw_pieced_value)
12223 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
12224 (dwarf2_loc_desc_get_symbol_read_needs)
12225 (locexpr_describe_location_piece, locexpr_describe_location_1)
12226 (loclist_describe_location): Update.
12227 * dwarf2/index-write.c (write_debug_names): Update.
12228 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
12229 * dtrace-probe.c (dtrace_process_dof): Update.
12230 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12231 (process_one_symbol): Update.
12232 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12233 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12234 (coff_read_enum_type): Update.
12235 * cli/cli-cmds.c (edit_command, list_command): Update.
12236 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12237 * breakpoint.c (create_overlay_event_breakpoint)
12238 (create_longjmp_master_breakpoint)
12239 (create_std_terminate_master_breakpoint)
12240 (create_exception_master_breakpoint, get_sal_arch): Update.
12241 * block.c (block_gdbarch): Update.
12242 * annotate.c (annotate_source_line): Update.
12244 2020-04-17 Tom Tromey <tromey@adacore.com>
12246 * auto-load.c (show_auto_load_cmd): Remove.
12247 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12248 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12249 (maintenance_print_arc_command): Remove.
12250 * tui/tui-win.c (tui_command): Remove.
12251 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12252 * tui/tui-layout.c (tui_layout_command): Remove.
12253 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12254 * python/python.c (user_set_python, user_show_python): Remove.
12255 (_initialize_python): Use add_basic_prefix_cmd,
12256 add_show_prefix_cmd.
12257 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12258 (install_gdb_commands): Use add_basic_prefix_cmd,
12259 add_show_prefix_cmd.
12260 (info_guile_command): Remove.
12261 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12262 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12263 add_show_prefix_cmd.
12264 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12265 Remove do_set and do_show parameters.
12266 * cli/cli-style.c (set_style, show_style): Remove.
12267 (_initialize_cli_style): Use add_basic_prefix_cmd,
12268 add_show_prefix_cmd.
12269 (cli_style_option::add_setshow_commands): Remove do_set and
12270 do_show parameters.
12271 (cli_style_option::add_setshow_commands): Use
12272 add_basic_prefix_cmd, add_show_prefix_cmd.
12273 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12274 (set_style_name): Remove.
12275 * cli/cli-dump.c (dump_command, append_command): Remove.
12276 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12277 (tekhex_dump_command, binary_dump_command)
12278 (binary_append_command): Remove.
12279 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12280 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12281 (init_w32_command_list): Remove; move into ...
12282 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12283 * valprint.c (set_print, show_print, set_print_raw)
12284 (show_print_raw): Remove.
12285 (_initialize_valprint): Use add_basic_prefix_cmd,
12286 add_show_prefix_cmd.
12287 * typeprint.c (set_print_type, show_print_type): Remove.
12288 (_initialize_typeprint): Use add_basic_prefix_cmd,
12289 add_show_prefix_cmd.
12290 * record.c (set_record_command, show_record_command): Remove.
12291 (_initialize_record): Use add_basic_prefix_cmd,
12292 add_show_prefix_cmd.
12293 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12294 add_show_prefix_cmd.
12295 (info_command, show_command, set_debug, show_debug): Remove.
12296 * top.h (set_history, show_history): Don't declare.
12297 * top.c (set_history, show_history): Remove.
12298 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12299 (unset_tdesc_cmd): Remove.
12300 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12301 add_show_prefix_cmd.
12302 * symtab.c (info_module_command): Remove.
12303 (_initialize_symtab): Use add_basic_prefix_cmd.
12304 * symfile.c (overlay_command): Remove.
12305 (_initialize_symfile): Use add_basic_prefix_cmd.
12306 * sparc64-tdep.c (info_adi_command): Remove.
12307 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12308 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12309 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12310 add_show_prefix_cmd.
12311 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12312 (_initialize_serial): Use add_basic_prefix_cmd,
12313 add_show_prefix_cmd.
12314 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12315 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12316 add_show_prefix_cmd.
12317 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12318 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12319 add_show_prefix_cmd.
12320 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12321 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12322 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12323 add_show_prefix_cmd.
12324 * remote.c (remote_command, set_remote_cmd): Remove.
12325 (_initialize_remote): Use add_basic_prefix_cmd.
12326 * record-full.c (set_record_full_command)
12327 (show_record_full_command): Remove.
12328 (_initialize_record_full): Use add_basic_prefix_cmd,
12329 add_show_prefix_cmd.
12330 * record-btrace.c (cmd_set_record_btrace)
12331 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12332 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12333 (cmd_show_record_btrace_pt): Remove.
12334 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12335 add_show_prefix_cmd.
12336 * ravenscar-thread.c (set_ravenscar_command)
12337 (show_ravenscar_command): Remove.
12338 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12339 add_show_prefix_cmd.
12340 * mips-tdep.c (show_mips_command, set_mips_command)
12341 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12342 add_show_prefix_cmd.
12343 * maint.c (maintenance_command, maintenance_info_command)
12344 (maintenance_check_command, maintenance_print_command)
12345 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12346 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12347 add_show_prefix_cmd.
12348 (show_per_command_cmd): Remove.
12349 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12351 (maintenance_show_test_settings_cmd): Remove.
12352 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12353 add_show_prefix_cmd.
12354 * maint-test-options.c (maintenance_test_options_command):
12356 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12357 * macrocmd.c (macro_command): Remove
12358 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12359 * language.c (set_check, show_check): Remove.
12360 (_initialize_language): Use add_basic_prefix_cmd,
12361 add_show_prefix_cmd.
12362 * infcmd.c (unset_command): Remove.
12363 (_initialize_infcmd): Use add_basic_prefix_cmd.
12364 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12365 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12366 add_show_prefix_cmd.
12367 * go32-nat.c (go32_info_dos_command): Remove.
12368 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12369 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12370 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12371 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12372 (_initialize_frame): Use add_basic_prefix_cmd,
12373 add_show_prefix_cmd.
12374 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12375 (_initialize_dcache): Use add_basic_prefix_cmd,
12376 add_show_prefix_cmd.
12377 * cp-support.c (maint_cplus_command): Remove.
12378 (_initialize_cp_support): Use add_basic_prefix_cmd.
12379 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12380 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12381 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12382 add_basic_prefix_cmd, add_show_prefix_cmd.
12383 * breakpoint.c (save_command): Remove.
12384 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12385 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12386 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12387 add_show_prefix_cmd.
12388 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12389 (set_ada_command, show_ada_command): Remove.
12390 (_initialize_ada_language): Use add_basic_prefix_cmd,
12391 add_show_prefix_cmd.
12392 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12394 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12396 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12397 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12399 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12401 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12404 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12406 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12407 import table is not at beginning of .idata section.
12409 2020-04-16 Pedro Alves <palves@redhat.com>
12411 * inferior.c (delete_inferior): Use delete operator directly
12412 instead of delete_program_space.
12413 * progspace.c (add_program_space): New, factored out from
12414 program_space::program_space.
12415 (remove_program_space): New, factored out from
12416 delete_program_space.
12417 (program_space::program_space): Remove intro comment. Rewrite.
12418 (program_space::~program_space): Remove intro comment. Call
12419 remove_program_space.
12420 (delete_program_space): Delete.
12421 * progspace.h (program_space::program_space): Make explicit. Move
12422 intro comment here, adjusted.
12423 (program_space::~program_space): Move intro comment here,
12425 (delete_program_space): Remove.
12427 2020-04-16 Tom Tromey <tromey@adacore.com>
12429 * windows-nat.c (windows_nat::handle_access_violation): New
12431 * nat/windows-nat.h (handle_access_violation): Declare.
12432 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12433 windows-nat.c. Call handle_access_violation.
12435 2020-04-16 Tom de Vries <tdevries@suse.de>
12438 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12439 CUs without psymtab.
12441 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12443 * python/python.c (do_start_initialization): Don't call
12444 PyEval_InitThreads for Python 3.9 and beyond.
12446 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12448 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12450 (obsd_nat_target::wait): Likewise.
12452 2020-04-15 Tom Tromey <tromey@adacore.com>
12454 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12455 (DEBUG_EXCEPT): Use debug_printf.
12457 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12459 * completer.c (class completion_tracker::completion_hash_entry)
12460 <hash_name>: New member function.
12461 (completion_tracker::discard_completions): New callback to hash a
12462 completion_hash_entry, pass this to htab_create_alloc.
12464 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12466 * windows-nat.c (windows_make_so): Warn rather than stopping with
12467 an error if realpath() fails.
12469 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12471 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12472 (nbsd_nat_target::info_proc): Add do_status.
12474 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12475 Tom de Vries <tdevries@suse.de>
12478 * psympriv.h (struct partial_symtab::read_symtab)
12479 (struct partial_symtab::expand_psymtab)
12480 (struct partial_symtab::read_dependencies): Update comments.
12481 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12482 read_symtab for includer.
12483 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12484 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12485 (struct dwarf2_include_psymtab::m_readin): Remove.
12486 (struct dwarf2_include_psymtab::includer): New member function.
12487 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12489 2020-04-14 Tom de Vries <tdevries@suse.de>
12492 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12493 with NULL symbol_matcher and lookup_name.
12494 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12496 * dwarf2/read.c (dw2_expand_symtabs_matching)
12497 (dw2_debug_names_expand_symtabs_matching): Same.
12498 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12499 Make lookup_name a pointer. Update comment.
12500 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12501 lookup_name being a pointer.
12502 * symfile.c (expand_symtabs_matching): Same.
12503 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12504 * linespec.c (iterate_over_all_matching_symtabs): Same.
12506 2020-04-13 Tom Tromey <tom@tromey.com>
12508 * run-on-main-thread.c: Update include.
12509 * unittests/main-thread-selftests.c: Update include.
12510 * tui/tui-win.c: Update include.
12511 * tui/tui-io.c: Update include.
12512 * tui/tui-interp.c: Update include.
12513 * tui/tui-hooks.c: Update include.
12514 * top.h: Update include.
12515 * top.c: Update include.
12516 * ser-base.c: Update include.
12517 * remote.c: Update include.
12518 * remote-notif.c: Update include.
12519 * remote-fileio.c: Update include.
12520 * record-full.c: Update include.
12521 * record-btrace.c: Update include.
12522 * python/python.c: Update include.
12523 * posix-hdep.c: Update include.
12524 * mingw-hdep.c: Update include.
12525 * mi/mi-main.c: Update include.
12526 * mi/mi-interp.c: Update include.
12527 * main.c: Update include.
12528 * linux-nat.c: Update include.
12529 * interps.c: Update include.
12530 * infrun.c: Update include.
12531 * inf-loop.c: Update include.
12532 * event-top.c: Update include.
12533 * event-loop.c: Move to ../gdbsupport/.
12534 * event-loop.h: Move to ../gdbsupport/.
12535 * async-event.h: Update include.
12536 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12538 2020-04-13 Tom Tromey <tom@tromey.com>
12540 * tui/tui-win.c: Include async-event.h.
12541 * remote.c: Include async-event.h.
12542 * remote-notif.c: Include async-event.h.
12543 * record-full.c: Include async-event.h.
12544 * record-btrace.c: Include async-event.h.
12545 * infrun.c: Include async-event.h.
12546 * event-top.c: Include async-event.h.
12547 * event-loop.h: Move some declarations to async-event.h.
12548 * event-loop.c: Don't include ser-event.h or top.h. Move some
12549 code to async-event.c.
12550 * async-event.h: New file.
12551 * async-event.c: New file.
12552 * Makefile.in (COMMON_SFILES): Add async-event.c.
12553 (HFILES_NO_SRCDIR): Add async-event.h.
12555 2020-04-13 Tom Tromey <tom@tromey.com>
12557 * utils.c (flush_streams): New function.
12558 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12560 2020-04-13 Tom Tromey <tom@tromey.com>
12562 * event-loop.c (handle_file_event): Use warning, not
12565 2020-04-13 Tom Tromey <tom@tromey.com>
12567 * event-loop.c: Include <chrono>.
12569 2020-04-13 Tom Tromey <tom@tromey.com>
12571 * gdb_select.h: Move to ../gdbsupport/.
12572 * event-loop.c: Update include path.
12573 * top.c: Update include path.
12574 * ser-base.c: Update include path.
12575 * ui-file.c: Update include path.
12576 * ser-tcp.c: Update include path.
12577 * guile/scm-ports.c: Update include path.
12578 * posix-hdep.c: Update include path.
12579 * ser-unix.c: Update include path.
12580 * gdb_usleep.c: Update include path.
12581 * mingw-hdep.c: Update include path.
12582 * inflow.c: Update include path.
12583 * infrun.c: Update include path.
12584 * event-top.c: Update include path.
12586 2020-04-13 Tom Tromey <tom@tromey.com>
12588 * configure: Rebuild.
12589 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12591 2020-04-13 Tom Tromey <tom@tromey.com>
12593 * event-loop.h (start_event_loop): Don't declare.
12594 * event-loop.c (start_event_loop): Move...
12595 * main.c (start_event_loop): ...here. Now static.
12597 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12599 * MAINTAINERS: Update my email address.
12601 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12603 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12606 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12608 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12609 (nbsd_nat_target::info_proc): Add do_cmdline.
12611 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12613 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12614 (nbsd_nat_target::info_proc): Add do_cwd.
12616 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12618 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12620 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12622 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12623 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12624 (nbsd_nat_target::info_proc): New functions.
12625 * nbsd-nat.c (kinfo_get_vmmap): New function.
12626 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12627 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12628 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12629 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12631 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12632 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12633 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12634 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12635 (KINFO_VME_FLAG_GROWS_DOWN): New.
12637 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12639 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12642 2020-04-10 Tom Tromey <tromey@adacore.com>
12644 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12646 2020-04-10 Tom Tromey <tromey@adacore.com>
12648 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12649 separate debug files.
12651 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12653 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12655 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12657 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12658 Check for STATUS_WX86_BREAKPOINT.
12659 (windows_nat_target::wait): Same.
12661 2020-04-10 Tom de Vries <tdevries@suse.de>
12664 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12666 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12668 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12669 (Write After Approval): Remove Tom de Vries.
12671 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12674 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12676 * buildsym.c (record_line): Fix undefined behavior and preserve
12679 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12681 * auxv.h (svr4_auxv_parse): New.
12682 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12683 and generic_auxv_parse.
12684 (svr4_auxv_parse): Add.
12685 * obsd-tdep.c: Include "auxv.h".
12686 (obsd_auxv_parse): Remove.
12687 (obsd_init_abi): Remove comment.
12688 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12689 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12690 * nbsd-tdep.c: Include "auxv.h".
12691 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12693 2020-04-08 Tom Tromey <tromey@adacore.com>
12695 * nat/windows-nat.h (last_wait_event): Don't declare.
12696 (wait_for_debug_event): Update comment.
12697 * nat/windows-nat.c (last_wait_event): Now static.
12699 2020-04-08 Tom Tromey <tromey@adacore.com>
12701 * windows-nat.c (wait_for_debug_event): Move to
12703 * nat/windows-nat.h (wait_for_debug_event): Declare.
12704 * nat/windows-nat.c (wait_for_debug_event): Move from
12705 windows-nat.c. No longer static.
12707 2020-04-08 Tom Tromey <tromey@adacore.com>
12709 * windows-nat.c (get_windows_debug_event): Use
12710 fetch_pending_stop.
12711 * nat/windows-nat.h (fetch_pending_stop): Declare.
12712 * nat/windows-nat.c (fetch_pending_stop): New function.
12714 2020-04-08 Tom Tromey <tromey@adacore.com>
12716 * windows-nat.c (windows_continue): Use matching_pending_stop and
12717 continue_last_debug_event.
12718 * nat/windows-nat.h (matching_pending_stop)
12719 (continue_last_debug_event): Declare.
12720 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12721 (matching_pending_stop, continue_last_debug_event): New
12724 2020-04-08 Tom Tromey <tromey@adacore.com>
12726 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12727 (handle_exception_result): Move to nat/windows-nat.h.
12728 (DEBUG_EXCEPTION_SIMPLE): Remove.
12729 (windows_nat::handle_ms_vc_exception): New function.
12730 (handle_exception): Move to nat/windows-nat.c.
12731 (get_windows_debug_event): Update.
12732 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12734 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12735 (handle_exception_result): Move from windows-nat.c.
12736 (handle_exception): Declare.
12737 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12738 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12741 2020-04-08 Tom Tromey <tromey@adacore.com>
12743 * windows-nat.c (exception_count, event_count): Remove.
12744 (handle_exception, get_windows_debug_event)
12745 (do_initial_windows_stuff): Update.
12747 2020-04-08 Tom Tromey <tromey@adacore.com>
12749 * windows-nat.c (windows_nat::handle_load_dll)
12750 (windows_nat::handle_unload_dll): Rename. No longer static.
12751 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12754 2020-04-08 Tom Tromey <tromey@adacore.com>
12756 * complaints.h (stop_whining): Declare at top-level.
12757 (complaint): Don't declare stop_whining.
12759 2020-04-08 Tom Tromey <tromey@adacore.com>
12761 * windows-nat.c (windows_nat::handle_output_debug_string):
12762 Rename. No longer static.
12763 * nat/windows-nat.h (handle_output_debug_string): Declare.
12765 2020-04-08 Tom Tromey <tromey@adacore.com>
12767 * windows-nat.c (current_process_handle, current_process_id)
12768 (main_thread_id, last_sig, current_event, last_wait_event)
12769 (current_windows_thread, desired_stop_thread_id, pending_stops)
12770 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12771 (display_selectors, fake_create_process)
12772 (get_windows_debug_event): Update.
12773 * nat/windows-nat.h (current_process_handle, current_process_id)
12774 (main_thread_id, last_sig, current_event, last_wait_event)
12775 (current_windows_thread, desired_stop_thread_id, pending_stops)
12776 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12777 * nat/windows-nat.c (current_process_handle, current_process_id)
12778 (main_thread_id, last_sig, current_event, last_wait_event)
12779 (current_windows_thread, desired_stop_thread_id, pending_stops)
12780 (siginfo_er): New globals. Move from windows-nat.c.
12782 2020-04-08 Tom Tromey <tromey@adacore.com>
12784 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12785 (handle_load_dll): Update.
12786 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12788 2020-04-08 Tom Tromey <tromey@adacore.com>
12790 * windows-nat.c (enum thread_disposition_type): Move to
12792 (windows_nat::thread_rec): Rename from thread_rec. No longer
12794 (windows_add_thread, windows_nat_target::fetch_registers)
12795 (windows_nat_target::store_registers, handle_exception)
12796 (windows_nat_target::resume, get_windows_debug_event)
12797 (windows_nat_target::get_tib_address)
12798 (windows_nat_target::thread_name)
12799 (windows_nat_target::thread_alive): Update.
12800 * nat/windows-nat.h (enum thread_disposition_type): Move from
12802 (thread_rec): Declare.
12804 2020-04-08 Tom Tromey <tromey@adacore.com>
12806 * windows-nat.c: Add "using namespace".
12807 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12808 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12810 2020-04-08 Tom Tromey <tromey@adacore.com>
12812 * nat/windows-nat.h (struct windows_thread_info): Declare
12814 * nat/windows-nat.c (~windows_thread_info): New.
12816 2020-04-08 Tom Tromey <tromey@adacore.com>
12819 * windows-nat.c (current_event): Update comment.
12820 (last_wait_event, desired_stop_thread_id): New globals.
12821 (struct pending_stop): New.
12822 (pending_stops): New global.
12823 (windows_nat_target) <stopped_by_sw_breakpoint>
12824 <supports_stopped_by_sw_breakpoint>: New methods.
12825 (windows_fetch_one_register): Add assertions. Adjust PC.
12826 (windows_continue): Handle pending stops. Suspend other threads
12827 when stepping. Use last_wait_event
12828 (wait_for_debug_event): New function.
12829 (get_windows_debug_event): Use wait_for_debug_event. Handle
12830 pending stops. Queue spurious stops.
12831 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12832 (windows_nat_target::kill): Use wait_for_debug_event.
12833 * nat/windows-nat.h (struct windows_thread_info)
12834 <stopped_at_software_breakpoint>: New field.
12835 * nat/windows-nat.c (windows_thread_info::resume): Clear
12836 stopped_at_software_breakpoint.
12838 2020-04-08 Tom Tromey <tromey@adacore.com>
12840 * windows-nat.c (enum thread_disposition_type): New.
12841 (thread_rec): Replace "get_context" parameter with "disposition";
12843 (windows_add_thread, windows_nat_target::fetch_registers)
12844 (windows_nat_target::store_registers, handle_exception)
12845 (windows_nat_target::resume, get_windows_debug_event)
12846 (windows_nat_target::get_tib_address)
12847 (windows_nat_target::thread_name)
12848 (windows_nat_target::thread_alive): Update.
12850 2020-04-08 Tom Tromey <tromey@adacore.com>
12852 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12853 (windows_continue): Use windows_continue::resume.
12854 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12855 resume>: Declare new methods.
12856 * nat/windows-nat.c: New file.
12857 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12859 2020-04-08 Tom Tromey <tromey@adacore.com>
12861 * windows-nat.c (windows_add_thread, windows_delete_thread)
12862 (windows_nat_target::fetch_registers)
12863 (windows_nat_target::store_registers, fake_create_process)
12864 (windows_nat_target::resume, windows_nat_target::resume)
12865 (get_windows_debug_event, windows_nat_target::wait)
12866 (windows_nat_target::pid_to_str)
12867 (windows_nat_target::get_tib_address)
12868 (windows_nat_target::get_ada_task_ptid)
12869 (windows_nat_target::thread_name)
12870 (windows_nat_target::thread_alive): Use lwp, not tid.
12872 2020-04-08 Tom Tromey <tromey@adacore.com>
12874 * windows-nat.c (handle_exception)
12875 (windows_nat_target::thread_name): Update.
12876 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12877 <name>: Now unique_xmalloc_ptr.
12879 2020-04-08 Tom Tromey <tromey@adacore.com>
12881 * windows-nat.c (thread_rec)
12882 (windows_nat_target::fetch_registers): Update.
12883 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12885 <debug_registers_changed, reload_context>: Now bool.
12887 2020-04-08 Tom Tromey <tromey@adacore.com>
12889 * windows-nat.c (windows_add_thread): Use new.
12890 (windows_init_thread_list, windows_delete_thread): Use delete.
12891 (get_windows_debug_event): Update.
12892 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12893 destructor, and initializers.
12895 2020-04-08 Tom Tromey <tromey@adacore.com>
12897 * windows-nat.c (struct windows_thread_info): Remove.
12898 * nat/windows-nat.h: New file.
12900 2020-04-08 Tom Tromey <tromey@adacore.com>
12902 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12903 (thread_rec, windows_add_thread, windows_delete_thread)
12904 (windows_continue): Update.
12906 2020-04-08 Tom Tromey <tromey@adacore.com>
12908 * windows-nat.c (struct windows_thread_info): Remove typedef.
12909 (thread_head): Remove.
12910 (thread_list): New global.
12911 (thread_rec, windows_add_thread, windows_init_thread_list)
12912 (windows_delete_thread, windows_continue): Update.
12914 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12916 * windows-tdep.h (windows_init_abi): Add comment.
12917 (cygwin_init_abi): New declaration.
12918 * windows-tdep.c: Split signal enumeration in two, one for
12919 Windows and one for Cygwin.
12920 (windows_gdb_signal_to_target): Only deal with signal of the
12922 (cygwin_gdb_signal_to_target): New function.
12923 (windows_init_abi): Rename to windows_init_abi_common, don't set
12924 gdb_signal_to_target gdbarch method. Add new new function with
12926 (cygwin_init_abi): New function.
12927 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12928 comment. Don't call windows_init_abi.
12929 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12930 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12931 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12932 i386_windows_init_abi_common, don't call windows_init_abi. Add
12933 a new function of this name.
12934 (i386_cygwin_init_abi): New function.
12935 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12938 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12940 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12942 (dwarf2_read_gdb_index): Update.
12944 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12946 * nbsd-tdep.c: Include "objfiles.h".
12947 (nbsd_skip_solib_resolver): New.
12948 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12950 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12952 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12953 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12954 with DW_LLE_base_addressx are being emitted in DWARFv5.
12955 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12956 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12959 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12961 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12962 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12963 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12964 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12965 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12966 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12967 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12970 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12972 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12973 (read_loclist_index): New function definition.
12974 (lookup_loclist_base): New function definition.
12975 (read_loclist_header): New function definition.
12976 (dwarf2_cu): Add loclist_base and loclist_header field.
12977 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12978 (read_full_die_1): Read the value of DW_AT_loclists_base.
12979 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12980 (read_attribute_value): Handle DW_FORM_loclistx.
12981 (skip_one_die): Handle DW_FORM_loclistx.
12982 (loclist_header): New structure declaration.
12983 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12985 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12987 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12988 constructor. Remove `addr` parameter from other constructor and
12989 add `per_cu` parameter.
12990 * dwarf2/read.c (create_partial_symtab): Update.
12992 2020-04-07 Tom de Vries <tdevries@suse.de>
12995 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12996 (partial_die_info::fixup): Inherit has_const_value.
12998 2020-04-07 Tom de Vries <tdevries@suse.de>
13000 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
13001 symbols without address.
13003 2020-04-06 Kamil Rytarowski <n54@gmx.com>
13005 * nbsd-nat.h (struct thread_info): Add forward declaration.
13006 (nbsd_nat_target::thread_alive): Add.
13007 (nbsd_nat_target::thread_name): Likewise.
13008 (nbsd_nat_target::update_thread_list): Likewise.
13009 (update_thread_list::post_attach): Likewise.
13010 (post_attach::pid_to_str): Likewise.
13011 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
13012 (nbsd_thread_lister): Add.
13013 (nbsd_nat_target::thread_alive): Likewise.
13014 (nbsd_nat_target::thread_name): Likewise.
13015 (nbsd_add_threads): Likewise.
13016 (update_thread_list::post_attach): Likewise.
13017 (nbsd_nat_target::update_thread_list): Likewise.
13018 (post_attach::pid_to_str): Likewise.
13020 2020-04-06 Tom Tromey <tromey@adacore.com>
13022 * ada-valprint.c (print_variant_part): Extract the variant field.
13023 (print_field_values): Use the field as the outer value when
13026 2020-04-06 Tom Tromey <tromey@adacore.com>
13028 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
13029 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
13030 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
13031 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
13032 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
13034 2020-04-06 Tom Tromey <tromey@adacore.com>
13036 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
13039 2020-04-06 Kamil Rytarowski <n54@gmx.com>
13041 * nbsd-tdep.c: Include "gdbarch.h".
13042 Define enum with NetBSD signal numbers.
13043 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
13044 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
13045 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
13046 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
13047 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
13048 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
13049 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
13050 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13051 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
13052 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
13053 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
13054 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
13056 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
13059 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
13061 2020-04-03 Tom Tromey <tromey@adacore.com>
13063 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
13064 Read constant block.
13066 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13068 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
13069 (gdb_bfd_get_full_section_contents): New declaration.
13070 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
13071 * windows-tdep.c (is_linked_with_cygwin_dll): Use
13072 gdb_bfd_get_full_section_contents.
13074 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13076 * exec.c (build_section_table): Replace internal_error with
13078 (section_table_xfer_memory_partial): Likewise.
13079 * mdebugread.c (parse_partial_symbols): Likewise.
13080 * psymtab.c (lookup_partial_symbol): Likewise.
13081 * utils.c (wrap_here): Likewise.
13083 2020-04-02 Tom Tromey <tromey@adacore.com>
13085 * f-lang.c (build_fortran_types): Use arch_type to initialize
13086 builtin_complex_s32 in the TYPE_CODE_ERROR case.
13088 2020-04-02 Tom Tromey <tromey@adacore.com>
13090 * dwarf2/read.c (partial_die_info::read): Do not create a vector
13093 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
13094 Bernd Edlinger <bernd.edlinger@hotmail.de>
13095 Tom Tromey <tromey@adacore.com>
13097 * buildsym.c (buildsym_compunit::record_line): Remove
13098 deduplication code.
13100 2020-04-02 Tom de Vries <tdevries@suse.de>
13103 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
13105 2020-04-02 Tom de Vries <tdevries@suse.de>
13107 * dwarf2/read.c (dwarf2_gdb_index_functions,
13108 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
13110 * psymtab.c (psym_lookup_global_symbol_language): New function.
13111 (psym_functions): Init psym_lookup_global_symbol_language with
13112 psym_lookup_global_symbol_language.
13113 * symfile-debug.c (debug_sym_quick_functions): Init
13114 lookup_global_symbol_language with NULL.
13115 * symfile.c (set_initial_language): Remove fixme comment.
13116 * symfile.h (struct quick_symbol_functions): Add
13117 lookup_global_symbol_language.
13118 * symtab.c (find_quick_global_symbol_language): New function.
13119 (find_main_name): Use find_quick_global_symbol_language.
13121 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
13123 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
13125 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13127 * buildsym.c (record_line): Fix undefined behavior and preserve
13130 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13132 * buildsym.c (record_line): Fix the resizing condition.
13134 2020-04-01 Tom Tromey <tom@tromey.com>
13136 * value.h (value_literal_complex): Add comment.
13137 * valops.c (value_literal_complex): Refer to value.h.
13139 2020-04-01 Tom Tromey <tom@tromey.com>
13141 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
13142 (scalar_type): New rule, from typebase.
13143 (typebase): Use scalar_type. Recognize complex types.
13144 (field_name): Handle FLOAT_KEYWORD.
13145 (ident_tokens): Add _Complex and __complex__.
13147 2020-04-01 Tom Tromey <tom@tromey.com>
13150 * valarith.c (promotion_type, complex_binop): New functions.
13151 (scalar_binop): Handle complex numbers. Use promotion_type.
13152 (value_pos, value_neg, value_complement): Handle complex numbers.
13154 2020-04-01 Tom Tromey <tom@tromey.com>
13156 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
13157 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
13158 (parse_number): Handle complex numbers.
13160 2020-04-01 Tom Tromey <tom@tromey.com>
13162 * c-valprint.c (c_decorations): Change complex suffix to "i".
13164 2020-04-01 Tom Tromey <tom@tromey.com>
13166 * valprint.c (generic_value_print_complex): Use accessors.
13167 * value.h (value_real_part, value_imaginary_part): Declare.
13168 * valops.c (value_real_part, value_imaginary_part): New
13170 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
13172 2020-04-01 Tom Tromey <tom@tromey.com>
13174 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
13175 (read_range_type): Update.
13176 * mdebugread.c (basic_type): Update.
13177 * go-lang.c (build_go_types): Use init_complex_type.
13178 * gdbtypes.h (struct main_type) <complex_type>: New member.
13179 (init_complex_type): Update.
13180 (arch_complex_type): Don't declare.
13181 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
13182 Make name if none given. Use alloc_type_copy. Look for cached
13184 (arch_complex_type): Remove.
13185 (gdbtypes_post_init): Use init_complex_type.
13186 * f-lang.c (build_fortran_types): Use init_complex_type.
13187 * dwarf2/read.c (read_base_type): Update.
13188 * d-lang.c (build_d_types): Use init_complex_type.
13189 * ctfread.c (read_base_type): Update.
13191 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13193 * infrun.c (stop_all_threads): Update assertion, plus when
13194 stopping threads, take into account that we might be trying
13195 to stop an all-stop target.
13196 (stop_waiting): Call 'stop_all_threads' if there exists a
13199 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13201 * target.h (exists_non_stop_target): New function declaration.
13202 * target.c (exists_non_stop_target): New function.
13204 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
13207 * eval.c (is_integral_or_integral_reference): New function.
13208 (evaluate_subexp_standard): Allow integer references in
13209 pointer arithmetic.
13211 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13213 * remote.c (remote_target::remote_parse_stop_reply): Remove the
13214 check for no ptid in the stop reply when the target is non-stop.
13216 2020-04-01 Tom Tromey <tromey@adacore.com>
13218 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
13219 "name" parameter to rvalue reference. Initialize m_name_holder.
13220 <lookup_name_info>: New overloads.
13221 <name>: Return gdb::string_view.
13222 <c_str>: New method.
13223 <make_ignore_params>: Update.
13224 <search_name_hash>: Update.
13225 <language_lookup_name>: Return const char *.
13226 <m_name>: Change type.
13227 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
13228 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
13229 (lookup_name_info::match_any): Update.
13230 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13232 * minsyms.c (linkage_name_str): Update.
13233 * language.c (default_symbol_name_matcher): Update.
13234 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13236 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13237 (ada_lookup_name_info::ada_lookup_name_info): Update.
13238 (literal_symbol_name_matcher): Update.
13240 2020-04-01 Tom Tromey <tromey@adacore.com>
13242 * psymtab.c (psymtab_search_name): Remove function.
13243 (psym_lookup_symbol): Create search name and lookup name here.
13244 (lookup_partial_symbol): Remove "name" parameter; add
13246 (psym_expand_symtabs_for_function): Update.
13248 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
13251 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13253 2020-03-31 Tom Tromey <tromey@adacore.com>
13255 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13258 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
13260 * features/riscv/32bit-csr.xml: Regenerated.
13261 * features/riscv/64bit-csr.xml: Regenerated.
13263 2020-03-30 Tom Tromey <tromey@adacore.com>
13265 * ada-valprint.c (print_variant_part): Update.
13266 * ada-lang.h (ada_which_variant_applies): Update.
13267 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13268 outer_valaddr parameters; replace with "outer" value parameter.
13269 (to_fixed_variant_branch_type): Update.
13271 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13273 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13274 <list>. Remove inclusion of observable.h.
13275 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13276 (struct arch_lwp_info): New struct.
13277 (class ppc_linux_dreg_interface): New class.
13278 (struct ppc_linux_process_info): New struct.
13279 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13280 <low_new_clone, low_forget_process, low_prepare_to_resume>
13281 <copy_thread_dreg_state, mark_thread_stale>
13282 <mark_debug_registers_changed, register_hw_breakpoint>
13283 <clear_hw_breakpoint, register_wp, clear_wp>
13284 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13285 <num_memory_accesses, get_trigger_type>
13286 <create_watchpoint_request, hwdebug_point_cmp>
13287 <init_arch_lwp_info, get_arch_lwp_info>
13288 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13290 <struct ptid_hash>: New inner struct.
13291 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13293 (saved_dabr_value, hwdebug_info, max_slots_number)
13294 (struct hw_break_tuple, struct thread_points, ppc_threads)
13295 (have_ptrace_hwdebug_interface)
13296 (hwdebug_find_thread_points_by_tid)
13297 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13298 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13299 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13300 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13301 use m_dreg_interface.
13302 (hwdebug_point_cmp): Change to...
13303 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13304 reference arguments instead of pointers.
13305 (ppc_linux_nat_target::ranged_break_num_registers): Use
13307 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13308 m_dreg_interface. Call register_hw_breakpoint.
13309 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13310 m_dreg_interface. Call clear_hw_breakpoint.
13311 (get_trigger_type): Change to...
13312 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13314 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13315 use m_dreg_interface. Call register_hw_breakpoint.
13316 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13317 use m_dreg_interface. Call clear_hw_breakpoint.
13318 (can_use_watchpoint_cond_accel): Change to...
13319 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13320 method. Update comment, use m_dreg_interface and
13322 (calculate_dvc): Change to...
13323 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13325 (num_memory_accesses): Change to...
13326 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13327 (check_condition): Change to...
13328 (ppc_linux_nat_target::check_condition): ...this method.
13329 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13330 comment, use m_dreg_interface.
13331 (create_watchpoint_request): Change to...
13332 (ppc_linux_nat_target::create_watchpoint_request): ...this
13333 method. Use m_dreg_interface.
13334 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13335 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13336 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13337 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13338 (ppc_linux_nat_target::low_forget_process)
13339 (ppc_linux_nat_target::low_new_fork)
13340 (ppc_linux_nat_target::low_new_clone)
13341 (ppc_linux_nat_target::low_delete_thread)
13342 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13343 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13344 only call mark_thread_stale.
13345 (ppc_linux_thread_exit): Remove.
13346 (ppc_linux_nat_target::stopped_data_address): Change to...
13347 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13348 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13349 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13350 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13351 comment. Call low_stopped_data_address.
13352 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13354 (ppc_linux_nat_target::masked_watch_num_registers): Use
13356 (ppc_linux_nat_target::copy_thread_dreg_state)
13357 (ppc_linux_nat_target::mark_thread_stale)
13358 (ppc_linux_nat_target::mark_debug_registers_changed)
13359 (ppc_linux_nat_target::register_hw_breakpoint)
13360 (ppc_linux_nat_target::clear_hw_breakpoint)
13361 (ppc_linux_nat_target::register_wp)
13362 (ppc_linux_nat_target::clear_wp)
13363 (ppc_linux_nat_target::init_arch_lwp_info)
13364 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13365 (_initialize_ppc_linux_nat): Remove observer callback.
13367 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13369 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13370 (ppc_linux_nat_target::auxv_parse)
13371 (ppc_linux_nat_target::read_description)
13372 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13375 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13377 * linux-nat.h (low_new_clone): New method.
13378 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13380 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13382 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13383 (dbx_expand_psymtab): ... this.
13384 (start_psymtab): Update.
13385 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13386 (mdebug_expand_psymtab): ... this.
13387 (parse_partial_symbols): Update.
13388 (new_psymtab): Update.
13389 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13390 (xcoff_expand_psymtab): ... this.
13391 (xcoff_start_psymtab): Update.
13393 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13395 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13396 <expand_dependencies>: ... this.
13397 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13398 (partial_symtab::expand_dependencies): ... this.
13399 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13401 (dwarf2_psymtab::expand_psymtab): Update.
13402 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13403 * mdebugread.c (psymtab_to_symtab_1): Update.
13404 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13406 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13408 * psympriv.h (discard_psymtab): Remove.
13409 * dbxread.c (dbx_end_psymtab): Update.
13410 * xcoffread.c (xcoff_end_psymtab): Update.
13412 2020-03-28 Tom Tromey <tom@tromey.com>
13414 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13417 2020-03-28 Tom Tromey <tom@tromey.com>
13419 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13421 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13423 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13425 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13427 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13429 2020-03-26 Tom Tromey <tom@tromey.com>
13431 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13432 (mark_common_block_symbol_computed, read_tag_string_type)
13433 (attr_to_dynamic_prop, read_subrange_type): Update.
13434 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13435 to be methods on struct attribute.
13436 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13437 (read_call_site_scope, partial_die_info::read)
13438 (partial_die_info::read, lookup_die_type, follow_die_ref):
13440 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13441 from dwarf2_get_ref_die_offset.
13442 (attribute::constant_value): New method, from
13443 dwarf2_get_attr_constant_value.
13444 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13446 <constant_value>: New method.
13448 2020-03-26 Tom Tromey <tom@tromey.com>
13450 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13451 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13452 (dwarf_type_encoding_name): Move to stringify.c.
13453 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13454 * dwarf2/stringify.c: New file.
13455 * dwarf2/stringify.h: New file.
13457 2020-03-26 Tom Tromey <tom@tromey.com>
13459 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13462 2020-03-26 Tom Tromey <tom@tromey.com>
13464 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13466 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13467 (lookup_ranges_base): Likewise.
13468 (read_cutu_die_from_dwo, read_full_die_1): Update.
13470 2020-03-26 Tom Tromey <tom@tromey.com>
13472 * dwarf2/read.c (read_import_statement, read_file_scope)
13473 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13474 (read_lexical_block_scope, read_call_site_scope)
13475 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13476 (handle_struct_member_die, process_structure_scope)
13477 (update_enumeration_type_from_children)
13478 (process_enumeration_scope, read_array_type, read_common_block)
13479 (read_namespace, read_module, read_subroutine_type): Update.
13480 (sibling_die): Remove.
13482 2020-03-26 Tom Tromey <tom@tromey.com>
13484 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13485 (build_type_psymtabs_reader, read_structure_type)
13486 (read_enumeration_type, read_full_die_1): Update.
13487 (dwarf2_attr_no_follow): Move to die.h.
13488 * dwarf2/die.h (struct die_info) <attr>: New method.
13490 2020-03-26 Tom Tromey <tom@tromey.com>
13492 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13493 <base_address>: Now an optional.
13494 (dwarf2_find_base_address, dwarf2_rnglists_process)
13495 (dwarf2_ranges_process, fill_in_loclist_baton)
13496 (dwarf2_symbol_mark_computed): Update.
13498 2020-03-26 Tom Tromey <tom@tromey.com>
13500 * dwarf2/read.c (struct die_info): Move to die.h.
13501 * dwarf2/die.h: New file.
13503 2020-03-26 Tom Tromey <tom@tromey.com>
13505 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13507 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13508 Move to line-header.c.
13509 (read_checked_initial_length_and_offset, read_formatted_entries):
13511 (dwarf_decode_line_header): Split into two.
13512 * dwarf2/line-header.c
13513 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13515 (read_checked_initial_length_and_offset, read_formatted_entries):
13517 (dwarf_decode_line_header): New function, split from read.c.
13519 2020-03-26 Tom Tromey <tom@tromey.com>
13521 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13523 * dwarf2/read.c (read_attribute_value): Update.
13524 (dwarf2_per_objfile::read_line_string): Rename from
13525 read_indirect_line_string.
13526 (read_formatted_entries): Update.
13528 2020-03-26 Tom Tromey <tom@tromey.com>
13530 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13533 2020-03-26 Tom Tromey <tom@tromey.com>
13535 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13537 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13538 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13541 2020-03-26 Tom Tromey <tom@tromey.com>
13543 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13544 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13545 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13546 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13548 2020-03-26 Tom Tromey <tom@tromey.com>
13550 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13551 file_names_size, file_full_name, file_file_name>: Use const.
13552 <file_name_at, file_names>: Add const overload.
13553 * dwarf2/line-header.c (line_header::file_file_name)
13554 (line_header::file_full_name): Update.
13556 2020-03-26 Tom Tromey <tom@tromey.com>
13558 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13559 (macro_start_file, consume_improper_spaces)
13560 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13561 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13562 (dwarf_decode_macros): Move to macro.c.
13563 * dwarf2/macro.c: New file.
13564 * dwarf2/macro.h: New file.
13565 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13567 2020-03-26 Tom Tromey <tom@tromey.com>
13569 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13571 * dwarf2/section.c: New method. From
13572 read_indirect_string_at_offset_from.
13573 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13574 (read_indirect_string_at_offset_from): Move to section.c.
13575 (read_indirect_string_at_offset): Rewrite.
13576 (read_indirect_line_string_at_offset): Remove.
13577 (read_indirect_string, read_indirect_line_string)
13578 (dwarf_decode_macro_bytes): Update.
13580 2020-03-26 Tom Tromey <tom@tromey.com>
13582 * dwarf2/section.h (struct dwarf2_section_info)
13583 <overload_complaint>: Declare.
13584 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13585 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13586 Rename from dwarf2_section_buffer_overflow_complaint.
13587 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13588 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13590 2020-03-26 Tom Tromey <tom@tromey.com>
13592 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13594 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13596 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13599 2020-03-26 Tom Tromey <tom@tromey.com>
13601 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13603 2020-03-26 Tom Tromey <tom@tromey.com>
13605 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13607 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13609 (dwarf_decode_macros): Update.
13611 2020-03-26 Tom Tromey <tom@tromey.com>
13613 * dwarf2/read.c (read_attribute_value): Update.
13614 (read_indirect_string_from_dwz): Move to dwz.c; change into
13616 (dwarf_decode_macro_bytes): Update.
13617 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13618 * dwarf2/dwz.c: New file.
13619 * Makefile.in (COMMON_SFILES): Add dwz.c.
13621 2020-03-26 Tom Tromey <tom@tromey.com>
13623 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13624 * dwarf2/read.c: Add include.
13625 * dwarf2/index-write.c: Add include.
13626 * dwarf2/index-cache.c: Add include.
13627 * dwarf2/dwz.h: New file.
13629 2020-03-25 Tom Tromey <tom@tromey.com>
13631 * compile/compile-object-load.c (get_out_value_type): Mention
13632 correct symbol name in error message.
13634 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13636 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13638 2020-03-25 Tom de Vries <tdevries@suse.de>
13640 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13641 * symmisc.c (dump_symtab_1): Print user and includes fields.
13642 (maintenance_info_symtabs): Same.
13644 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13647 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13648 (riscv_regcache_cooked_write): New function.
13649 (riscv_push_dummy_call): Use new function.
13650 (riscv_return_value): Likewise.
13652 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13654 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13655 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13656 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13657 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13658 * infrun.c (follow_fork): Likewise.
13659 (follow_fork_inferior): Likewise.
13660 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13661 * linux-nat.h (class linux_nat_target): Likewise.
13662 * remote.c (class remote_target) <follow_fork>: Likewise.
13663 (remote_target::follow_fork): Likewise.
13664 * target-delegates.c: Re-generate.
13665 * target.c (default_follow_fork): Likewise.
13666 (target_follow_fork): Likewise.
13667 * target.h (struct target_ops) <follow_fork>: Likewise.
13668 (target_follow_fork): Likewise.
13670 2020-03-24 Tom de Vries <tdevries@suse.de>
13672 * psymtab.c (maintenance_info_psymtabs): Print user field.
13674 2020-03-20 Tom Tromey <tromey@adacore.com>
13676 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13678 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13681 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13683 * ptrace.m4: Don't check for ptrace declaration.
13684 * config.in: Re-generate.
13685 * configure: Re-generate.
13686 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13689 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13691 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13693 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13694 * sparc-nat.c (gdb_ptrace): Likewise.
13695 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13697 2020-03-20 Tom Tromey <tromey@adacore.com>
13699 * c-exp.y (lex_one_token): Fix assert.
13701 2020-03-20 Tom Tromey <tromey@adacore.com>
13703 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13704 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13707 2020-03-20 Tom Tromey <tromey@adacore.com>
13709 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13711 2020-03-20 Tom Tromey <tromey@adacore.com>
13713 * ada-valprint.c (print_variant_part): Remove parameters; switch
13714 to value-based API.
13715 (print_field_values): Likewise.
13716 (ada_val_print_struct_union): Likewise.
13717 (ada_value_print_1): Update.
13719 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13721 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13722 nbsd_nat_target instead of inf_ptrace_target.
13723 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13726 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13728 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13729 it to the ptrace call.
13730 * (store_registers): Likewise.
13732 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13734 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13735 it to the ptrace call.
13736 * (store_registers): Likewise.
13738 2020-03-19 Luis Machado <luis.machado@linaro.org>
13740 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13741 valid, fetch vg value from ptrace.
13743 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13744 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13745 * inf-ptrace.c: Likewise.
13746 * (gdb_ptrace): Add.
13747 * (inf_ptrace_target::resume): Update.
13748 * (inf_ptrace_target::xfer_partial): Likewise.
13749 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13750 * (inf_ptrace_peek_poke): Update.
13752 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13754 * x86-bsd-nat.c (gdb_ptrace): New.
13755 * (x86bsd_dr_set): Add new argument `ptid'.
13756 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13757 x86bsd_dr_set_addr): Update.
13759 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13761 * remote.c (remote_target::process_stop_reply): Handle events for
13762 all threads differently.
13764 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13766 * completer.c (completion_tracker::remove_completion): Define new
13768 * completer.h (completion_tracker::remove_completion): Declare new
13770 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13771 when adding a C++ function symbol.
13773 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13775 * completer.c (completion_tracker::completion_hash_entry): Define
13777 (advance_to_filename_complete_word_point): Call
13778 recompute_lowest_common_denominator.
13779 (completion_tracker::completion_tracker): Call discard_completions
13780 to setup the hash table.
13781 (completion_tracker::discard_completions): Allow for being called
13782 from the constructor, pass new equal function, and element deleter
13783 when constructing the hash table. Initialise new class member
13785 (completion_tracker::maybe_add_completion): Remove use of
13786 m_entries_vec, and store more information into m_entries_hash.
13787 (completion_tracker::recompute_lcd_visitor): New function, most
13788 content taken from...
13789 (completion_tracker::recompute_lowest_common_denominator):
13790 ...here, this now just visits each item in the hash calling the
13792 (completion_tracker::build_completion_result): Remove use of
13793 m_entries_vec, call recompute_lowest_common_denominator.
13794 * completer.h (completion_tracker::have_completions): Remove use
13796 (completion_tracker::completion_hash_entry): Declare new class.
13797 (completion_tracker::recompute_lowest_common_denominator): Change
13798 function signature.
13799 (completion_tracker::recompute_lcd_visitor): Declare new function.
13800 (completion_tracker::m_entries_vec): Delete.
13801 (completion_tracker::m_entries_hash): Initialize to NULL.
13802 (completion_tracker::m_lowest_common_denominator_valid): New
13804 (completion_tracker::m_lowest_common_denominator_max_length): New
13807 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13809 * regformats/regdef.h: Put reg in gdb namespace.
13811 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13813 * i386-bsd-nat.c (gdb_ptrace): New.
13814 * (i386bsd_fetch_inferior_registers,
13815 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13816 * (i386bsd_fetch_inferior_registers,
13817 i386bsd_store_inferior_registers) Use gdb_ptrace.
13819 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13821 * amd64-bsd-nat.c (gdb_ptrace): New.
13822 * (amd64bsd_fetch_inferior_registers,
13823 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13824 * (amd64bsd_fetch_inferior_registers,
13825 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13827 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13829 * user-regs.c (user_reg::read): Rename to...
13830 (user_reg::xread): ...this.
13831 * (append_user_reg): Rename argument `read' to `xread'.
13832 * (user_reg_add_builtin): Likewise.
13833 * (user_reg_add): Likewise.
13834 * (value_of_user_reg): Likewise.
13836 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13838 * sparc-nat.c (gdb_ptrace): New.
13839 * sparc-nat.c (sparc_fetch_inferior_registers)
13840 (sparc_store_inferior_registers) Remove obsolete comment.
13841 * sparc-nat.c (sparc_fetch_inferior_registers)
13842 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13843 * sparc-nat.c (sparc_fetch_inferior_registers)
13844 (sparc_store_inferior_registers) Use gdb_ptrace.
13846 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13848 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13849 it to the ptrace call.
13850 * sh-nbsd-nat.c (store_registers): Likewise.
13852 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13854 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13855 nbsd_nat_target instead of inf_ptrace_target.
13856 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13859 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13861 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13863 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13865 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13867 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13869 2020-03-17 Tom de Vries <tdevries@suse.de>
13872 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13874 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13876 (process_imported_unit_die): Skip import of c++ CUs.
13878 2020-03-16 Tom Tromey <tom@tromey.com>
13880 * p-valprint.c (pascal_object_print_value): Initialize
13883 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13884 Shahab Vahedi <shahab@synopsys.com>
13886 * Makefile.in: Add arch/arc.o
13887 * configure.tgt: Likewise.
13888 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13889 (_initialize_arc_tdep): Don't initialize old target descriptions.
13890 (arc_read_description): New function to cache target descriptions.
13891 * arc-tdep.h (arc_read_description): Add proto type.
13892 * arch/arc.c: New file.
13893 * arch/arc.h: Likewise.
13894 * features/Makefile: Replace old target descriptions with new.
13895 * features/arc-arcompact.c: Remove.
13896 * features/arc-arcompact.xml: Likewise.
13897 * features/arc-v2.c: Likewise
13898 * features/arc-v2.xml: Likewise
13899 * features/arc/aux-arcompact.xml: New file.
13900 * features/arc/aux-v2.xml: Likewise.
13901 * features/arc/core-arcompact.xml: Likewise.
13902 * features/arc/core-v2.xml: Likewise.
13903 * features/arc/aux-arcompact.c: Generate.
13904 * features/arc/aux-v2.c: Likewise.
13905 * features/arc/core-arcompact.c: Likewise.
13906 * features/arc/core-v2.c: Likewise.
13907 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13909 2020-03-16 Tom Tromey <tromey@adacore.com>
13912 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13913 putting value into bcache.
13915 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13918 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13920 (amd64_windows_init_abi_common): ... this. Don't set size of
13922 (amd64_windows_init_abi): New function.
13923 (amd64_cygwin_init_abi): New function.
13924 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13926 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13929 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13931 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13932 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13933 (pe_import_directory_entry): New struct type.
13934 (is_linked_with_cygwin_dll): New function.
13935 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13936 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13937 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13939 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13941 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13942 i386_cygwin_core_osabi_sniffer.
13944 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13946 * i386-cygwin-tdep.c: Rename to...
13947 * i386-windows-tdep.c: ... this.
13948 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13949 i386-windows-tdep.c.
13950 * configure.tgt: Likewise.
13952 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13954 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13955 * osabi.c (gdb_osabi_names): Add "Windows".
13956 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13957 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13958 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13959 i386_cygwin_osabi_sniffer.
13960 (_initialize_i386_cygwin_tdep): Register OS ABI
13961 GDB_OSABI_WINDOWS for i386.
13962 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13963 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13964 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13966 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13967 when the target matches '*-*-mingw*'.
13969 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13971 * defs.h (enum gdb_osabi): Move to...
13972 * osabi.h (enum gdb_osabi): ... here.
13973 * gdbarch.sh: Include osabi.h in gdbarch.h.
13974 * gdbarch.h: Re-generate.
13976 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13978 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13980 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13982 2020-03-14 Tom Tromey <tom@tromey.com>
13984 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13986 (c_type_print_modifier): Likewise. Add "language" parameter.
13987 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13988 (c_type_print_base_1): Update.
13989 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13991 * type-stack.c (type_stack::insert): Handle tp_atomic and
13993 (type_stack::follow_type_instance_flags): Likewise.
13994 (type_stack::follow_types): Likewise. Merge type-following code.
13995 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13996 (space_identifier, cv_with_space_id)
13997 (const_or_volatile_or_space_identifier_noopt)
13998 (const_or_volatile_or_space_identifier): Remove.
13999 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
14001 (ptr_operator, typebase): Update.
14002 (enum token_flag) <FLAG_C>: New constant.
14003 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
14005 (lex_one_token): Handle FLAG_C.
14007 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14009 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
14010 it to the ptrace call.
14011 * m68k-bsd-nat.c (store_registers): Likewise.
14013 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14015 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
14017 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
14018 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
14019 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
14021 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14023 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
14024 nbsd_nat_target instead of inf_ptrace_target.
14025 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14028 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14030 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
14033 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14035 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
14036 it to the ptrace call.
14037 * alpha-bsd-nat.c (store_registers): Likewise.
14039 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14041 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
14043 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
14044 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
14045 fill_fpregset): Likewise.
14047 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14049 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
14050 nbsd_nat_target instead of inf_ptrace_target.
14051 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14054 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14056 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
14059 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14061 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
14062 it to the ptrace call.
14063 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
14064 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
14065 * arm-nbsd-nat.c (store_register): Likewise.
14066 * arm-nbsd-nat.c (store_regs): Likewise.
14067 * arm-nbsd-nat.c (store_fp_register): Likewise.
14068 * arm-nbsd-nat.c (store_fp_regs): Likewise.
14070 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14072 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
14073 nbsd_nat_target instead of inf_ptrace_target.
14074 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
14077 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14079 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
14080 it to the ptrace call.
14081 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
14083 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14085 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
14086 it to the ptrace call.
14087 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
14089 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14091 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
14093 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
14095 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14097 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
14098 instead of inf_ptrace_target.
14099 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14102 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14104 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14107 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14109 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14112 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14114 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
14117 2020-03-13 Tom Tromey <tom@tromey.com>
14119 * value.h (val_print): Don't declare.
14120 * valprint.h (val_print_array_elements)
14121 (val_print_scalar_formatted, generic_val_print): Don't declare.
14122 * valprint.c (generic_val_print_array): Take a struct value.
14123 (generic_val_print_ptr, generic_val_print_memberptr)
14124 (generic_val_print_bool, generic_val_print_int)
14125 (generic_val_print_char, generic_val_print_complex)
14126 (generic_val_print): Remove.
14127 (generic_value_print): Update.
14128 (do_val_print): Remove unused parameters. Don't call
14130 (val_print): Remove.
14131 (common_val_print): Update. Don't call value_check_printable.
14132 (val_print_scalar_formatted, val_print_array_elements): Remove.
14133 * rust-lang.c (rust_val_print): Remove.
14134 (rust_language_defn): Update.
14135 * p-valprint.c (pascal_val_print): Remove.
14136 (pascal_value_print_inner): Update.
14137 (pascal_object_print_val_fields, pascal_object_print_val):
14139 (pascal_object_print_static_field): Update.
14140 * p-lang.h (pascal_val_print): Don't declare.
14141 * p-lang.c (pascal_language_defn): Update.
14142 * opencl-lang.c (opencl_language_defn): Update.
14143 * objc-lang.c (objc_language_defn): Update.
14144 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
14145 * m2-lang.h (m2_val_print): Don't declare.
14146 * m2-lang.c (m2_language_defn): Update.
14147 * language.h (struct language_defn) <la_val_print>: Remove.
14148 * language.c (unk_lang_value_print_inner): Rename. Change
14150 (unknown_language_defn, auto_language_defn): Update.
14151 * go-valprint.c (go_val_print): Remove.
14152 * go-lang.h (go_val_print): Don't declare.
14153 * go-lang.c (go_language_defn): Update.
14154 * f-valprint.c (f_val_print): Remove.
14155 * f-lang.h (f_value_print): Don't declare.
14156 * f-lang.c (f_language_defn): Update.
14157 * d-valprint.c (d_val_print): Remove.
14158 * d-lang.h (d_value_print): Don't declare.
14159 * d-lang.c (d_language_defn): Update.
14160 * cp-valprint.c (cp_print_value_fields)
14161 (cp_print_value_fields_rtti, cp_print_value): Remove.
14162 (cp_print_static_field): Update.
14163 * c-valprint.c (c_val_print_array, c_val_print_ptr)
14164 (c_val_print_struct, c_val_print_union, c_val_print_int)
14165 (c_val_print_memberptr, c_val_print): Remove.
14166 * c-lang.h (c_val_print_array, cp_print_value_fields)
14167 (cp_print_value_fields_rtti): Don't declare.
14168 * c-lang.c (c_language_defn, cplus_language_defn)
14169 (asm_language_defn, minimal_language_defn): Update.
14170 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
14171 (ada_val_print_enum): Take a struct value.
14172 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
14173 (ada_val_print): Remove.
14174 (ada_value_print_1): Update.
14175 (printable_val_type): Remove.
14176 * ada-lang.h (ada_val_print): Don't declare.
14177 * ada-lang.c (ada_language_defn): Update.
14179 2020-03-13 Tom Tromey <tom@tromey.com>
14181 * valprint.c (do_val_print): Update.
14182 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
14184 (value_to_value_object_no_release): Declare.
14185 * python/py-value.c (value_to_value_object_no_release): New
14187 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
14189 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
14191 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
14193 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
14195 (gdbscm_apply_val_pretty_printer): Take a struct value.
14196 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
14198 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
14200 * extension-priv.h (struct extension_language_ops)
14201 <apply_val_pretty_printer>: Take a struct value.
14202 * cp-valprint.c (cp_print_value): Create a struct value.
14203 (cp_print_value): Update.
14205 2020-03-13 Tom Tromey <tom@tromey.com>
14207 * ada-valprint.c (print_field_values): Call common_val_print.
14209 2020-03-13 Tom Tromey <tom@tromey.com>
14211 * ada-valprint.c (val_print_packed_array_elements): Remove
14212 bitoffset and val parameters. Call common_val_print.
14213 (ada_val_print_string): Remove offset, address, and original_value
14215 (ada_val_print_array): Update.
14216 (ada_value_print_array): New function.
14217 (ada_value_print_1): Call it.
14219 2020-03-13 Tom Tromey <tom@tromey.com>
14221 * ada-valprint.c (ada_value_print): Use common_val_print.
14223 2020-03-13 Tom Tromey <tom@tromey.com>
14225 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
14227 2020-03-13 Tom Tromey <tom@tromey.com>
14229 * ada-valprint.c (ada_value_print_num): New function.
14230 (ada_value_print_1): Use it.
14232 2020-03-13 Tom Tromey <tom@tromey.com>
14234 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14236 2020-03-13 Tom Tromey <tom@tromey.com>
14238 * ada-valprint.c (ada_value_print_ptr): New function.
14239 (ada_value_print_1): Use it.
14241 2020-03-13 Tom Tromey <tom@tromey.com>
14243 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14244 call common_val_print.
14245 (ada_val_print_1): Update.
14246 (ada_value_print_1): New function.
14247 (ada_value_print_inner): Rewrite.
14249 2020-03-13 Tom Tromey <tom@tromey.com>
14251 * cp-valprint.c (cp_print_value_fields): Update.
14252 (cp_print_value): New function.
14254 2020-03-13 Tom Tromey <tom@tromey.com>
14256 * m2-valprint.c (m2_value_print_inner): Use
14257 cp_print_value_fields.
14258 * cp-valprint.c (cp_print_value_fields): New function.
14259 * c-valprint.c (c_value_print_struct): New function.
14260 (c_value_print_inner): Use c_value_print_struct.
14261 * c-lang.h (cp_print_value_fields): Declare.
14263 2020-03-13 Tom Tromey <tom@tromey.com>
14265 * c-valprint.c (c_value_print_array): New function.
14266 (c_value_print_inner): Use it.
14268 2020-03-13 Tom Tromey <tom@tromey.com>
14270 * c-valprint.c (c_value_print_memberptr): New function.
14271 (c_value_print_inner): Use it.
14273 2020-03-13 Tom Tromey <tom@tromey.com>
14275 * c-valprint.c (c_value_print_int): New function.
14276 (c_value_print_inner): Use it.
14278 2020-03-13 Tom Tromey <tom@tromey.com>
14280 * c-valprint.c (c_value_print_ptr): 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_inner): Rewrite.
14287 2020-03-13 Tom Tromey <tom@tromey.com>
14289 * valprint.c (generic_value_print_complex): New function.
14290 (generic_value_print): Use it.
14292 2020-03-13 Tom Tromey <tom@tromey.com>
14294 * valprint.c (generic_val_print_float): Don't call
14295 val_print_scalar_formatted.
14296 (generic_val_print, generic_value_print): Update.
14298 2020-03-13 Tom Tromey <tom@tromey.com>
14300 * valprint.c (generic_value_print_char): New function
14301 (generic_value_print): Use it.
14303 2020-03-13 Tom Tromey <tom@tromey.com>
14305 * valprint.c (generic_value_print_int): New function.
14306 (generic_value_print): Use it.
14308 2020-03-13 Tom Tromey <tom@tromey.com>
14310 * valprint.c (generic_value_print_bool): New function.
14311 (generic_value_print): Use it.
14313 2020-03-13 Tom Tromey <tom@tromey.com>
14315 * valprint.c (generic_val_print_func): Simplify.
14316 (generic_val_print, generic_value_print): Update.
14318 2020-03-13 Tom Tromey <tom@tromey.com>
14320 * valprint.c (generic_val_print_flags): Remove.
14321 (generic_val_print, generic_value_print): Update.
14322 (val_print_type_code_flags): Add original_value parameter.
14324 2020-03-13 Tom Tromey <tom@tromey.com>
14326 * valprint.c (generic_val_print): Update.
14327 (generic_value_print): Update.
14328 * valprint.c (generic_val_print_enum): Don't call
14329 val_print_scalar_formatted.
14331 2020-03-13 Tom Tromey <tom@tromey.com>
14333 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14334 * valprint.c (generic_value_print_ptr): New function.
14336 2020-03-13 Tom Tromey <tom@tromey.com>
14338 * valprint.c (generic_value_print): Rewrite.
14340 2020-03-13 Tom Tromey <tom@tromey.com>
14342 * p-valprint.c (pascal_object_print_value_fields)
14343 (pascal_object_print_value): New functions.
14345 2020-03-13 Tom Tromey <tom@tromey.com>
14347 * p-valprint.c (pascal_value_print_inner): Rewrite.
14349 2020-03-13 Tom Tromey <tom@tromey.com>
14351 * f-valprint.c (f_value_print_innner): Rewrite.
14353 2020-03-13 Tom Tromey <tom@tromey.com>
14355 * m2-valprint.c (m2_print_unbounded_array): New overload.
14356 (m2_print_unbounded_array): Update.
14357 (m2_print_array_contents): Take a struct value.
14358 (m2_value_print_inner): Rewrite.
14360 2020-03-13 Tom Tromey <tom@tromey.com>
14362 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14363 (d_value_print_inner): New function.
14364 * d-lang.h (d_value_print_inner): Declare.
14365 * d-lang.c (d_language_defn): Use d_value_print_inner.
14367 2020-03-13 Tom Tromey <tom@tromey.com>
14369 * go-valprint.c (go_value_print_inner): New function.
14370 * go-lang.h (go_value_print_inner): Declare.
14371 * go-lang.c (go_language_defn): Use go_value_print_inner.
14373 2020-03-13 Tom Tromey <tom@tromey.com>
14375 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14377 (rust_val_print): Rewrite.
14378 (rust_value_print_inner): New function, from rust_val_print.
14379 (rust_language_defn): Use rust_value_print_inner.
14381 2020-03-13 Tom Tromey <tom@tromey.com>
14383 * ada-valprint.c (ada_value_print_inner): New function.
14384 * ada-lang.h (ada_value_print_inner): Declare.
14385 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14387 2020-03-13 Tom Tromey <tom@tromey.com>
14389 * f-valprint.c (f_value_print_innner): New function.
14390 * f-lang.h (f_value_print_innner): Declare.
14391 * f-lang.c (f_language_defn): Use f_value_print_innner.
14393 2020-03-13 Tom Tromey <tom@tromey.com>
14395 * p-valprint.c (pascal_value_print_inner): New function.
14396 * p-lang.h (pascal_value_print_inner): Declare.
14397 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14399 2020-03-13 Tom Tromey <tom@tromey.com>
14401 * m2-valprint.c (m2_value_print_inner): New function.
14402 * m2-lang.h (m2_value_print_inner): Declare.
14403 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14405 2020-03-13 Tom Tromey <tom@tromey.com>
14407 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14408 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14409 * c-valprint.c (c_value_print_inner): New function.
14410 * c-lang.h (c_value_print_inner): Declare.
14411 * c-lang.c (c_language_defn, cplus_language_defn)
14412 (asm_language_defn, minimal_language_defn): Use
14413 c_value_print_inner.
14415 2020-03-13 Tom Tromey <tom@tromey.com>
14417 * p-valprint.c (pascal_object_print_value_fields): Now static.
14418 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14420 2020-03-13 Tom Tromey <tom@tromey.com>
14422 * c-valprint.c (c_val_print_array): Simplify.
14424 2020-03-13 Tom Tromey <tom@tromey.com>
14426 * valprint.c (value_print_array_elements): New function.
14427 * valprint.h (value_print_array_elements): Declare.
14429 2020-03-13 Tom Tromey <tom@tromey.com>
14431 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14432 * mips-tdep.c (mips_print_register): Use
14433 value_print_scalar_formatted.
14435 2020-03-13 Tom Tromey <tom@tromey.com>
14437 * valprint.h (value_print_scalar_formatted): Declare.
14438 * valprint.c (value_print_scalar_formatted): New function.
14440 2020-03-13 Tom Tromey <tom@tromey.com>
14442 * valprint.h (generic_value_print): Declare.
14443 * valprint.c (generic_value_print): New function.
14445 2020-03-13 Tom Tromey <tom@tromey.com>
14447 * valprint.c (do_val_print): Call la_value_print_inner, if
14449 * rust-lang.c (rust_language_defn): Update.
14450 * p-lang.c (pascal_language_defn): Update.
14451 * opencl-lang.c (opencl_language_defn): Update.
14452 * objc-lang.c (objc_language_defn): Update.
14453 * m2-lang.c (m2_language_defn): Update.
14454 * language.h (struct language_defn) <la_value_print_inner>: New
14456 * language.c (unknown_language_defn, auto_language_defn): Update.
14457 * go-lang.c (go_language_defn): Update.
14458 * f-lang.c (f_language_defn): Update.
14459 * d-lang.c (d_language_defn): Update.
14460 * c-lang.c (c_language_defn, cplus_language_defn)
14461 (asm_language_defn, minimal_language_defn): Update.
14462 * ada-lang.c (ada_language_defn): Update.
14464 2020-03-13 Tom Tromey <tom@tromey.com>
14466 * c-valprint.c (c_value_print): Use common_val_print.
14468 2020-03-13 Tom Tromey <tom@tromey.com>
14470 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14472 2020-03-13 Tom Tromey <tom@tromey.com>
14474 * f-valprint.c (f77_print_array_1, f_val_print): Use
14477 2020-03-13 Tom Tromey <tom@tromey.com>
14479 * riscv-tdep.c (riscv_print_one_register_info): Use
14482 2020-03-13 Tom Tromey <tom@tromey.com>
14484 * mi/mi-main.c (output_register): Use common_val_print.
14486 2020-03-13 Tom Tromey <tom@tromey.com>
14488 * infcmd.c (default_print_one_register_info): Use
14491 2020-03-13 Tom Tromey <tom@tromey.com>
14493 * valprint.h (common_val_print_checked): Declare.
14494 * valprint.c (common_val_print_checked): New function.
14495 * stack.c (print_frame_arg): Use common_val_print_checked.
14497 2020-03-13 Tom Tromey <tom@tromey.com>
14499 * valprint.c (do_val_print): New function, from val_print.
14500 (val_print): Use do_val_print.
14501 (common_val_print): Use do_val_print.
14503 2020-03-13 Tom Tromey <tom@tromey.com>
14505 * valprint.c (value_print): Use scoped_value_mark.
14507 2020-03-13 Tom de Vries <tdevries@suse.de>
14510 * psymtab.c (partial_symtab::partial_symtab): Don't set
14511 globals_offset and statics_offset. Push element onto
14512 current_global_psymbols and current_static_psymbols stacks.
14513 (concat): New function.
14514 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14515 element from current_global_psymbols and current_static_psymbols
14516 stacks. Concat popped elements to global_psymbols and
14518 (add_psymbol_to_list): Use current_global_psymbols and
14519 current_static_psymbols stacks.
14520 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14521 current_static_psymbols fields.
14523 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14525 * corelow.c (sniff_core_bfd): Remove.
14526 (class core_target) <m_core_vec>: Remove.
14527 (core_target::core_target): Update.
14528 (core_file_fns): Remove.
14529 (deprecated_add_core_fns): Remove.
14530 (default_core_sniffer): Remove.
14531 (sniff_core_bfd): Remove.
14532 (default_check_format): Remove.
14533 (gdb_check_format): Remove.
14534 (core_target_open): Update.
14535 (core_target::get_core_register_section): Update.
14536 (get_core_registers_cb): Update.
14537 (core_target::fetch_registers): Update.
14538 * gdbcore.h (struct core_fns): Remove.
14539 (deprecated_add_core_fns): Remove.
14540 (default_core_sniffer): Remove.
14541 (default_check_format): Remove.
14543 2020-03-12 Tom Tromey <tom@tromey.com>
14545 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14547 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14549 2020-03-12 Tom Tromey <tom@tromey.com>
14551 * remote.c (remote_target::download_tracepoint)
14552 (remote_target::enable_tracepoint)
14553 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14554 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14557 2020-03-12 Tom Tromey <tom@tromey.com>
14559 * symfile-mem.c: Update CORE_ADDR size assert.
14561 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14563 * selftest.m4: Move to gdbsupport/.
14564 * acinclude.m4: Update path to selftest.m4.
14566 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14568 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14569 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14570 gdbarch-selfselftests.c and selftest-arch.c.
14571 (SUBDIR_UNITTESTS_OBS): Rename to...
14572 (SELFTESTS_OBS): ... this.
14573 (COMMON_SFILES): Remove disasm-selftests.c and
14574 gdbarch-selftests.c.
14575 * configure.ac: Don't add selftest-arch.{c,o} to
14577 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14578 preprocessor conditions.
14580 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14582 * configure.ac: Don't source bfd/development.sh.
14583 * selftest.m4: Modify comment.
14584 * configure: Re-generate.
14586 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14588 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14589 not "true" or "false".
14590 * configure: Re-generate.
14592 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14594 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14595 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14596 renamed to arm_nbsd_supply_gregset.
14597 (fetch_register): Update to call arm_nbsd_supply_gregset.
14598 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14599 (arm_netbsd_nat_target::fetch_registers): Update.
14600 (fetch_elfcore_registers): Removed.
14601 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14602 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14603 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14604 not require NetBSD system headers.
14605 (arm_nbsd_regset): New struct.
14606 (arm_nbsd_iterate_over_regset_sections): New function.
14607 (arm_netbsd_init_abi_common): Updated to call
14608 set_gdbarch_iterate_over_regset_sections.
14609 * arm-nbsd-tdep.h: New file.
14611 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14613 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14616 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14618 * configure: Re-generate.
14620 2020-03-11 Tom Tromey <tromey@adacore.com>
14622 * ada-typeprint.c (print_choices): Fix comment.
14624 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14626 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14627 previous item in the list, when the list has no items.
14629 2020-03-11 Tom de Vries <tdevries@suse.de>
14631 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14632 PROP_LOCLIST handling code.
14634 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14636 * buildsym-legacy.c (record_line): Pass extra parameter to
14638 * buildsym.c (buildsym_compunit::record_line): Take an extra
14639 parameter, reduce duplication in the line table, and record the
14640 is_stmt flag in the line table.
14641 * buildsym.h (buildsym_compunit::record_line): Add extra
14643 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14644 non-statement lines.
14645 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14646 this to the symtab builder.
14647 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14648 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14649 through to dwarf_record_line_1.
14650 * infrun.c (process_event_stop_test): When stepping, don't stop at
14651 a non-statement instruction, and only refresh the step info when
14652 we land in the middle of a line's range. Also add an extra
14654 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14656 * record-btrace.c (btrace_find_line_range): Only record lines
14657 marked as is-statement.
14658 * stack.c (frame_show_address): Show the frame address if we are
14659 in a non-statement sal.
14660 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14661 (maintenance_print_one_line_table): Print a header for the is_stmt
14662 column, and include is_stmt information in the output.
14663 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14664 preference to non-statements.
14665 (find_pcs_for_symtab_line): Prefer is-statement entries.
14666 (find_line_common): Likewise.
14667 * symtab.h (struct linetable_entry): Add is_stmt field.
14668 (struct symtab_and_line): Likewise.
14669 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14670 arranging the line table.
14672 2020-03-07 Tom de Vries <tdevries@suse.de>
14674 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14677 2020-03-07 Tom Tromey <tom@tromey.com>
14679 * valops.c (value_literal_complex): Remove obsolete comment.
14680 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14683 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14685 * infrun.h: Forward-declare thread_info.
14686 (set_step_info): Add thread_info parameter, add doc.
14687 * infrun.c (set_step_info): Add thread_info parameter, move doc
14689 * infrun.c (process_event_stop_test): Pass thread to
14690 set_step_info call.
14691 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14693 (prepare_one_step): Add thread_info parameter, pass it to
14694 set_step_frame and prepare_one_step (recursive) call.
14695 (step_1): Pass thread to prepare_one_step call.
14696 (step_command_fsm::should_stop): Pass thread to
14698 (until_next_fsm): Pass thread to set_step_frame call.
14699 (finish_command): Pass thread to set_step_info call.
14701 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14703 * windows-tdep.c (windows_solib_create_inferior_hook):
14704 Check if inferior is running.
14706 2020-03-06 Tom de Vries <tdevries@suse.de>
14708 * NEWS: Fix "the the".
14711 2020-03-06 Tom de Vries <tdevries@suse.de>
14713 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14715 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14717 * .dir-locals.el: Add a comment referencing the other copies of
14720 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14722 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14725 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14727 * .gitattributes: New file.
14729 2020-03-04 Tom Tromey <tom@tromey.com>
14731 * symmisc.c (print_symbol_bcache_statistics)
14732 (print_objfile_statistics): Update.
14733 * symfile.c (allocate_symtab): Use intern.
14734 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14735 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14736 macro_cache>: Remove.
14737 <string_cache>: New member.
14738 (struct objfile) <intern>: New methods.
14739 * elfread.c (elf_symtab_read): Use intern.
14740 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14741 (dwarf2_compute_name, dwarf2_physname)
14742 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14744 (guess_partial_die_structure_name): Update.
14745 (partial_die_info::fixup): Intern name.
14746 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14748 (dwarf2_name): Intern name. Update.
14749 * buildsym.c (buildsym_compunit::get_macro_table): Use
14752 2020-03-04 Tom Tromey <tom@tromey.com>
14754 * jit.c (bfd_open_from_target_memory): Make "target" const.
14755 * corefile.c (gnutarget): Now const.
14756 * gdbcore.h (gnutarget): Now const.
14758 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14760 * NEWS: Mention support for WOW64 processes.
14761 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14762 (amd64_windows_segment_register_p): Remove static.
14763 (_initialize_amd64_windows_nat): Update.
14764 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14765 * i386-windows-nat.c (context_offset): Update.
14766 (i386_mappings): Rename and remove static.
14767 (i386_windows_segment_register_p): Remove static.
14768 (_initialize_i386_windows_nat): Update.
14769 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14770 (STATUS_WX86_SINGLE_STEP): New macro.
14771 (EnumProcessModulesEx): New macro.
14772 (Wow64SuspendThread): New macro.
14773 (Wow64GetThreadContext): New macro.
14774 (Wow64SetThreadContext): New macro.
14775 (Wow64GetThreadSelectorEntry): New macro.
14776 (windows_set_context_register_offsets): Add static.
14777 (windows_set_segment_register_p): Likewise.
14778 (windows_add_thread): Adapt for WOW64 processes.
14779 (windows_fetch_one_register): Likewise.
14780 (windows_nat_target::fetch_registers): Likewise.
14781 (windows_store_one_register): Likewise.
14782 (display_selector): Likewise.
14783 (display_selectors): Likewise.
14784 (handle_exception): Likewise.
14785 (windows_continue): Likewise.
14786 (windows_nat_target::resume): Likewise.
14787 (windows_add_all_dlls): Likewise.
14788 (do_initial_windows_stuff): Likewise.
14789 (windows_nat_target::attach): Likewise.
14790 (windows_get_exec_module_filename): Likewise.
14791 (windows_nat_target::create_inferior): Likewise.
14792 (windows_xfer_siginfo): Likewise.
14793 (_initialize_loadable): Initialize Wow64SuspendThread,
14794 Wow64GetThreadContext, Wow64SetThreadContext,
14795 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14796 * windows-nat.h (windows_set_context_register_offsets):
14797 Remove declaration.
14798 (windows_set_segment_register_p): Likewise.
14799 (i386_windows_segment_register_p): Add declaration.
14800 (amd64_windows_segment_register_p): Likewise.
14802 2020-03-04 Luis Machado <luis.machado@linaro.org>
14804 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14805 in "info registers" for AArch64/ARM.
14807 The change caused "info registers" to not print GPR's.
14811 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14813 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14814 when reg->group is empty and reggroup is not.
14816 2020-03-03 Tom Tromey <tromey@adacore.com>
14818 * dwarf2/frame.c (struct dwarf2_frame_cache)
14819 <checked_tailcall_bottom, entry_cfa_sp_offset,
14820 entry_cfa_sp_offset_p>: Remove members.
14821 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14822 (dwarf2_frame_prev_register): Don't call
14823 dwarf2_tailcall_sniffer_first.
14824 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14825 * frame-unwind.c (add_unwinder): New fuction.
14826 (frame_unwind_init): Use it. Add tailcall unwinder.
14828 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14829 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14831 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14832 value should be printed as true.
14834 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14836 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14837 (windows_init_abi): Set and use windows_so_ops.
14839 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14841 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14842 when verifying if dealing with a convenience variable.
14844 2020-03-03 Luis Machado <luis.machado@linaro.org>
14846 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14848 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14850 * infrun.c (gdbarch_supports_displaced_stepping): New.
14851 (use_displaced_stepping): Break up conditions in smaller pieces.
14852 Use gdbarch_supports_displaced_stepping.
14853 (displaced_step_prepare_throw): Use
14854 gdbarch_supports_displaced_stepping.
14856 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14858 * NEWS: Mention new behaviour of the history filename.
14859 * top.c (write_history_p): Add comment.
14860 (show_write_history_p): Add header comment, give a different
14861 message when history writing is on, but the history filename is
14863 (history_filename): Add comment.
14864 (history_filename_empty): New function.
14865 (show_history_filename): Add header comment, give a different
14866 message when the filename is empty.
14867 (init_history): Compare history_filename against nullptr, and only
14868 read history if the filename is not empty.
14869 (set_history_filename): Add header comment, and only make
14870 non-empty filenames absolute.
14871 (init_main): Make the filename argument to 'set history filename'
14874 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14876 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14877 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14878 (fetch_fp_register): Update.
14879 (fetch_fp_regs): Update.
14880 (store_fp_register): Update.
14881 (store_fp_regs): Update.
14882 (arm_netbsd_nat_target::read_description): New function.
14883 (fetch_elfcore_registers): Update.
14885 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14887 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14888 general_thread if the stop reply is missing a thread-id.
14889 (remote_target::process_stop_reply): Use the first non-exited
14890 thread if the target didn't pass a thread-id.
14891 * infrun.c (do_target_wait): Move call to
14892 switch_to_inferior_no_thread to ....
14893 (do_target_wait_1): ... here.
14895 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14897 * debuginfod-support.c: Include defs.h first.
14899 2020-02-28 Tom de Vries <tdevries@suse.de>
14901 * symfile.c (set_initial_language): Use default language for lookup.
14903 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14905 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14906 reader variable, pass `this` to read_cutu_die_from_dwo.
14908 2020-02-27 Aaron Merey <amerey@redhat.com>
14910 * source.c (open_source_file): Check for nullptr when computing
14913 2020-02-27 Tom Tromey <tromey@adacore.com>
14915 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14917 (dwarf2_add_field): Don't update nfields.
14918 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14920 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14922 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14925 2020-02-26 Tom Tromey <tom@tromey.com>
14927 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14928 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14929 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14930 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14933 2020-02-26 Tom Tromey <tom@tromey.com>
14935 * dwarf2/index-write.c (psym_index_map): Change type.
14936 (add_address_entry_worker, write_one_signatured_type)
14937 (recursively_count_psymbols, recursively_write_psymbols)
14938 (class debug_names, psyms_seen_size, write_gdbindex)
14939 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14941 2020-02-26 Aaron Merey <amerey@redhat.com>
14943 * Makefile.in: Handle optional debuginfod support.
14945 * README: Add --with-debuginfod summary.
14946 * config.in: Regenerate.
14947 * configure: Regenerate.
14948 * configure.ac: Handle optional debuginfod support.
14949 * debuginfod-support.c: debuginfod helper functions.
14950 * debuginfod-support.h: Ditto.
14951 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14953 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14954 when a dwz file cannot be found.
14955 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14956 debuginfo file cannot be found.
14957 * source.c (open_source_file): Query debuginfod servers when a
14958 source file cannot be found.
14959 * top.c (print_gdb_configuration): Include
14960 --{with,without}-debuginfod in the output.
14962 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14964 * thread.c (thr_try_catch_cmd): Print thread name.
14966 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14968 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14969 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14970 dwarf2_fetch_die_type_sect_off): Move to...
14971 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14972 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14973 dwarf2_fetch_die_type_sect_off): ... here.
14974 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14975 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14976 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14978 2020-02-26 Tom de Vries <tdevries@suse.de>
14981 * symfile.c (set_initial_language): Exit-early if
14982 language_mode == language_mode_manual.
14984 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14986 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14987 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14988 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14990 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14992 * gdbtypes.c (create_array_type_with_stride): Handle negative
14994 * valarith.c (value_subscripted_rvalue): Likewise.
14996 2020-02-25 Luis Machado <luis.machado@linaro.org>
14998 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
15000 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
15002 * loc.h (dwarf2_get_die_type): Move to...
15003 * read.h (dwarf2_get_die_type): ... here.
15004 * read.c (dwarf2_get_die_type): Move doc to header.
15006 2020-02-25 Joel Brobecker <brobecker@adacore.com>
15008 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
15009 'gnulib/Makefile.in' to the list.
15011 2020-02-24 Tom Tromey <tom@tromey.com>
15013 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
15015 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
15018 2020-02-24 Tom Tromey <tom@tromey.com>
15020 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
15022 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
15023 (dw2_do_instantiate_symtab, dw2_get_file_names)
15024 (build_type_psymtab_dependencies, load_full_type_unit): Update.
15026 2020-02-24 Tom Tromey <tom@tromey.com>
15028 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
15029 make_scoped_restore.
15030 (dwarf2_psymtab::read_symtab): Don't clear
15031 reading_partial_symbols.
15033 2020-02-24 Tom de Vries <tdevries@suse.de>
15036 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
15038 2020-02-24 Tom de Vries <tdevries@suse.de>
15040 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
15041 commands layout next/prev/regs.
15043 2020-02-22 Tom Tromey <tom@tromey.com>
15045 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
15046 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
15048 2020-02-22 Tom Tromey <tom@tromey.com>
15050 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
15052 2020-02-22 Tom Tromey <tom@tromey.com>
15054 * tui/tui-win.c (_initialize_tui_win): Add usage text.
15055 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
15056 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
15057 * tui/tui.c (_initialize_tui): Add usage text.
15059 2020-02-22 Tom Tromey <tom@tromey.com>
15061 * tui/tui-win.c (tui_set_focus_command)
15062 (tui_set_win_height_command): Use error_no_arg.
15063 (_initialize_tui_win): Update help text.
15064 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
15066 2020-02-22 Tom Tromey <tom@tromey.com>
15068 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
15069 * tui/tui-disasm.h (struct tui_disasm_window)
15070 <display_start_addr>: Declare.
15071 * tui/tui-source.h (struct tui_source_window)
15072 <display_start_addr>: Declare.
15073 * tui/tui-winsource.h (struct tui_source_window_base)
15074 <show_source_line, display_start_addr>: New methods.
15075 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
15076 Rename and move to protected section.
15077 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
15078 (tui_source_window_base::do_erase_source_content): Update.
15079 (tui_source_window_base::show_source_line): Now a method.
15080 (tui_source_window_base::show_source_content)
15081 (tui_source_window_base::tui_source_window_base)
15082 (tui_source_window_base::rerender)
15083 (tui_source_window_base::refill)
15084 (tui_source_window_base::do_scroll_horizontal)
15085 (tui_source_window_base::set_is_exec_point_at)
15086 (tui_source_window_base::update_breakpoint_info)
15087 (tui_source_window_base::update_exec_info): Update.
15088 * tui/tui-source.c (tui_source_window::set_contents)
15089 (tui_source_window::showing_source_p)
15090 (tui_source_window::do_scroll_vertical)
15091 (tui_source_window::location_matches_p)
15092 (tui_source_window::line_is_displayed): Update.
15093 (tui_source_window::display_start_addr): New method.
15094 * tui/tui-disasm.c (tui_disasm_window::set_contents)
15095 (tui_disasm_window::do_scroll_vertical)
15096 (tui_disasm_window::location_matches_p): Update.
15097 (tui_disasm_window::display_start_addr): New method.
15099 2020-02-22 Tom Tromey <tom@tromey.com>
15101 * NEWS: Add entry for gdb.register_window_type.
15102 * tui/tui-layout.h (window_factory): New typedef.
15103 (tui_register_window): Declare.
15104 * tui/tui-layout.c (saved_tui_windows): New global.
15105 (tui_apply_current_layout): Use it.
15106 (tui_register_window): New function.
15107 * python/python.c (do_start_initialization): Call
15108 gdbpy_initialize_tui.
15109 (python_GdbMethods): Add "register_window_type" function.
15110 * python/python-internal.h (gdbpy_register_tui_window)
15111 (gdbpy_initialize_tui): Declare.
15112 * python/py-tui.c: New file.
15113 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
15115 2020-02-22 Tom Tromey <tom@tromey.com>
15117 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
15119 2020-02-22 Tom Tromey <tom@tromey.com>
15121 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
15122 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
15123 * tui/tui-data.c (tui_set_win_with_focus): Remove.
15124 (tui_set_win_focus_to): Move from tui-win.c.
15126 2020-02-22 Tom Tromey <tom@tromey.com>
15128 * tui/tui-layout.c (make_standard_window, get_locator_window): New
15130 (known_window_types): New global.
15131 (tui_get_window_by_name): Reimplement.
15132 (initialize_known_windows): New function.
15133 (validate_window_name): Rewrite.
15134 (_initialize_tui_layout): Call initialize_known_windows.
15136 2020-02-22 Tom Tromey <tom@tromey.com>
15138 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
15140 * tui/tui-winsource.h (struct tui_source_window_base)
15141 <tui_source_window_base>: Remove parameter.
15142 * tui/tui-winsource.c
15143 (tui_source_window_base::tui_source_window_base): Remove
15145 (tui_source_window_base::refill): Update.
15146 * tui/tui-stack.h (struct tui_locator_window)
15147 <tui_locator_window>: Update.
15148 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
15149 Default the constructor.
15150 * tui/tui-regs.h (struct tui_data_item_window)
15151 <tui_data_item_window>: Default the constructor.
15152 (struct tui_data_window) <tui_data_window>: Likewise.
15153 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
15154 Default the constructor.
15155 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
15156 Default the constructor.
15158 (struct tui_win_info) <tui_win_info>: Default the constructor.
15159 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
15160 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
15161 Default the constructor.
15163 2020-02-22 Tom Tromey <tom@tromey.com>
15165 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
15166 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
15167 * tui/tui-win.c (tui_resize_all): Don't call
15168 tui_delete_invisible_windows.
15169 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
15171 (tui_set_layout): Update.
15172 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
15173 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
15174 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
15176 2020-02-22 Tom Tromey <tom@tromey.com>
15178 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
15181 2020-02-22 Tom Tromey <tom@tromey.com>
15183 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
15185 2020-02-22 Tom Tromey <tom@tromey.com>
15187 * tui/tui-winsource.h (struct tui_source_window_iterator)
15188 <inner_iterator>: New etytypedef.
15189 <tui_source_window_iterator>: Take "end" parameter.
15190 <tui_source_window_iterator>: Take iterator.
15191 <operator*, advance>: Update.
15192 <m_iter>: Change type.
15193 <m_end>: New field.
15194 (struct tui_source_windows) <begin, end>: Update.
15195 * tui/tui-layout.c (tui_windows): New global.
15196 (tui_apply_current_layout): Clear tui_windows.
15197 (tui_layout_window::apply): Update tui_windows.
15198 * tui/tui-data.h (tui_windows): Declare.
15199 (all_tui_windows): Now inline function.
15200 (class tui_window_iterator, struct all_tui_windows): Remove.
15202 2020-02-22 Tom Tromey <tom@tromey.com>
15205 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
15206 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
15208 (class tui_layout_window) <get_sizes>: Likewise.
15209 (class tui_layout_split) <tui_layout_split>: Add "vertical"
15211 <get_sizes>: Add "height" argument.
15212 <m_vertical>: New field.
15213 * tui/tui-layout.c (tui_layout_split::clone): Update.
15214 (tui_layout_split::get_sizes): Add "height" argument.
15215 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
15216 (tui_new_layout_command): Parse "-horizontal".
15217 (_initialize_tui_layout): Update help string.
15218 (tui_layout_split::specification): Add "-horizontal" when needed.
15219 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
15221 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
15224 2020-02-22 Tom Tromey <tom@tromey.com>
15226 * tui/tui-layout.h (enum tui_adjust_result): New.
15227 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
15228 (class tui_layout_window) <adjust_size>: Return
15229 tui_adjust_result. Rewrite.
15230 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15231 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15233 2020-02-22 Tom Tromey <tom@tromey.com>
15235 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15236 parameter and return types.
15237 (class tui_layout_base) <specification>: Add "depth".
15238 (class tui_layout_window) <specification>: Add "depth".
15239 (class tui_layout_split) <specification>: Add "depth".
15240 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15242 (tui_new_layout_command): Parse sub-layouts.
15243 (_initialize_tui_layout): Update help string.
15244 (tui_layout_window::specification): Add "depth".
15245 (add_layout_command): Update.
15247 2020-02-22 Tom Tromey <tom@tromey.com>
15249 * NEWS: Add "tui new-layout" item.
15250 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15251 Add new-layout command to help text.
15252 (validate_window_name): New function.
15253 (tui_new_layout_command): New function.
15254 (_initialize_tui_layout): Register "new-layout".
15255 (tui_layout_window::specification): New method.
15256 (tui_layout_window::specification): New method.
15257 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15259 (class tui_layout_window) <specification>: New method.
15260 (class tui_layout_split) <specification>: New method.
15262 2020-02-22 Tom Tromey <tom@tromey.com>
15264 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15265 * tui/tui-win.c (window_name_completer): Update comment.
15266 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15268 (class tui_layout_window) <replace_window>: Likewise.
15269 (class tui_layout_split) <replace_window>: Likewise.
15270 (tui_set_layout): Don't declare.
15271 (tui_set_initial_layout): Declare function.
15272 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15273 (asm_regs_layout): New globals.
15274 (tui_current_layout, show_layout): Remove.
15275 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15276 (find_layout, tui_apply_layout): New function.
15277 (layout_completer): Remove.
15278 (tui_next_layout): Reimplement.
15279 (tui_next_layout_command): New function.
15280 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15281 (tui_regs_layout): Reimplement.
15282 (tui_regs_layout_command): New function.
15283 (extract_display_start_addr): Rewrite.
15284 (next_layout, prev_layout): Remove.
15285 (tui_layout_window::replace_window): New method.
15286 (tui_layout_split::replace_window): New method.
15287 (destroy_layout): New function.
15288 (layout_list): New global.
15289 (add_layout_command): New function.
15290 (initialize_layouts): Update.
15291 (tui_layout_command): New function.
15292 (_initialize_tui_layout): Install "layout" commands.
15293 * tui/tui-data.h (enum tui_layout_type): Remove.
15294 (tui_current_layout): Don't declare.
15296 2020-02-22 Tom Tromey <tom@tromey.com>
15298 * tui/tui-regs.c (tui_reg_layout): Remove.
15299 (tui_reg_command): Use tui_regs_layout.
15300 * tui/tui-layout.h (tui_reg_command): Declare.
15301 * tui/tui-layout.c (tui_reg_command): New function.
15303 2020-02-22 Tom Tromey <tom@tromey.com>
15305 * tui/tui.c (tui_rl_delete_other_windows): Call
15306 tui_remove_some_windows.
15307 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15309 (class tui_layout_window) <remove_windows>: New method.
15310 (class tui_layout_split) <remove_windows>: Declare.
15311 (tui_remove_some_windows): Declare.
15312 * tui/tui-layout.c (tui_remove_some_windows): New function.
15313 (tui_layout_split::remove_windows): New method.
15315 2020-02-22 Tom Tromey <tom@tromey.com>
15317 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15318 * tui/tui-layout.h (tui_next_layout): Declare.
15319 * tui/tui-layout.c (tui_next_layout): New function.
15321 2020-02-22 Tom Tromey <tom@tromey.com>
15323 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15324 correct coordinates.
15326 2020-02-22 Tom Tromey <tom@tromey.com>
15328 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15329 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15332 2020-02-22 Tom Tromey <tom@tromey.com>
15334 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15335 TUI_DISASM_WIN, not tui_win_list.
15337 2020-02-22 Tom Tromey <tom@tromey.com>
15339 * valprint.c (generic_val_print_enum_1)
15340 (val_print_type_code_flags): Style member names.
15341 * rust-lang.c (val_print_struct, rust_print_enum)
15342 (rust_print_struct_def, rust_internal_print_type): Style member
15344 * p-valprint.c (pascal_object_print_value_fields): Style member
15345 names. Only call fprintf_symbol_filtered for static members.
15346 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15347 * f-valprint.c (f_val_print): Style member names.
15348 * f-typeprint.c (f_type_print_base): Style member names.
15349 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15350 call fprintf_symbol_filtered for static members.
15351 (cp_print_class_member): Style member names.
15352 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15354 * ada-valprint.c (ada_print_scalar): Style enum names.
15355 (ada_val_print_enum): Likewise.
15356 * ada-typeprint.c (print_enum_type): Style enum names.
15358 2020-02-21 Tom Tromey <tom@tromey.com>
15360 * psympriv.h (struct partial_symtab): Update comment.
15362 2020-02-21 Tom Tromey <tromey@adacore.com>
15364 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15367 2020-02-21 Tom de Vries <tdevries@suse.de>
15370 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15371 if dependencies[i]->user != NULL.
15373 2020-02-21 Ali Tamur <tamur@google.com>
15375 * dwarf2/read.c (dwarf2_name): Add null check.
15377 2020-02-20 Tom Tromey <tom@tromey.com>
15379 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15380 ">=", in binary search.
15381 (dwarf2_find_containing_comp_unit): New overload.
15382 (run_test): New self-test.
15383 (_initialize_dwarf2_read): Register new test.
15385 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15387 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15388 * riscv-tdep.h: Likewise.
15389 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15391 * features/riscv/64bit-csr.xml: Regenerated.
15393 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15394 Tom Tromey <tom@tromey.com>
15396 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15397 of 'fputc_unfiltered'.
15398 (putchar_unfiltered): Call 'fputc_unfiltered'.
15399 (fputc_unfiltered): Call 'fputs_unfiltered'.
15401 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15403 * config.in: Regenerate.
15404 * configure: Regenerate.
15405 * configure.ac: Add --with-python-libdir option.
15406 * main.c: Use WITH_PYTHON_LIBDIR.
15408 2020-02-19 Tom Tromey <tom@tromey.com>
15410 * symtab.c (general_symbol_info::compute_and_set_names): Use
15411 obstack_strndup. Simplify call to symbol_set_demangled_name.
15413 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15415 * dwarf2/read.c (allocate_signatured_type_table,
15416 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15417 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15418 Remove objfile parameter, update all callers.
15420 2020-02-19 Doug Evans <dje@google.com>
15423 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15424 rust_enum_variant calculation.
15426 2020-02-19 Tom Tromey <tromey@adacore.com>
15428 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15430 2020-02-19 Tom Tromey <tromey@adacore.com>
15432 * ada-lang.c (cache_symbol): Use obstack_strdup.
15434 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15436 * configure: Regenerate.
15438 2020-02-19 Tom Tromey <tromey@adacore.com>
15440 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15443 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15445 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15447 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15449 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15450 if GDBSERVER is not defined.
15451 (riscv_tdesc_cache): Likewise, also store const target_desc.
15452 (STATIC_IN_GDB): Define.
15453 (riscv_create_target_description): Update declaration with
15455 (riscv_lookup_target_description): New function, only define if
15456 GDBSERVER is not defined.
15457 * arch/riscv.h (riscv_create_target_description): Declare only
15458 when GDBSERVER is defined.
15459 (riscv_lookup_target_description): New declaration when GDBSERVER
15461 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15462 (riscv_linux_read_features): ...this, and return
15463 riscv_gdbarch_features instead of target_desc.
15464 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15465 (riscv_linux_read_description): Rename to...
15466 (riscv_linux_read_features): ...this.
15467 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15468 Update to use riscv_gdbarch_features and
15469 riscv_lookup_target_description.
15470 * riscv-tdep.c (riscv_find_default_target_description): Use
15471 riscv_lookup_target_description instead of
15472 riscv_create_target_description.
15474 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15476 * valprint.c (generic_val_print_enum_1): When printing a flag
15477 enum with value 0 and there is no enumerator with value 0, print
15478 just "0" instead of "(unknown: 0x0)".
15480 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15482 * valprint.c (generic_val_print_enum_1): Print unknown part of
15485 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15487 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15488 flag enums to contain duplicate enumerators.
15489 * valprint.c (generic_val_print_enum_1): Update comment.
15491 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15493 * dwarf2/read.c: Include "count-one-bits.h".
15494 (update_enumeration_type_from_children): If an enumerator has
15495 multiple bits set, don't treat the enumeration as a "flag enum".
15496 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15497 of flag enums have 0 or 1 bit set.
15499 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15501 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15503 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15504 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15505 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15506 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15507 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15509 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15511 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15513 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15515 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15516 displaced_step_closure_up.
15517 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15518 (struct displaced_step_closure_up):
15519 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15520 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15521 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15523 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15524 * gdbarch.c, gdbarch.h: Re-generate.
15525 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15526 displaced_step_closure_up.
15527 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15528 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15529 * infrun.h (displaced_step_closure_up): New type alias.
15530 (struct displaced_step_inferior_state) <step_closure>: Change
15531 type to displaced_step_closure_up.
15532 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15533 displaced_step_closure_up.
15534 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15536 2020-02-14 Tom Tromey <tom@tromey.com>
15538 * minidebug.c (gnu_debug_key): New global.
15539 (find_separate_debug_file_in_section): Use it.
15541 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15543 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15545 * gdbarch.c: Re-generate.
15546 * gdbarch.h: Re-generate.
15547 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15549 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15550 type to std::unique_ptr.
15551 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15552 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15553 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15554 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15555 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15556 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15557 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15558 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15559 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15561 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15563 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15565 (displaced_step_clear): Rename to...
15566 (displaced_step_reset): ... this. Just call displaced->reset ().
15567 (displaced_step_clear_cleanup): Rename to...
15568 (displaced_step_reset_cleanup): ... this.
15569 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15570 (displaced_step_fixup): Likewise.
15571 (resume_1): Likewise.
15572 (handle_inferior_event): Restore child's memory before calling
15573 displaced_step_fixup on the parent.
15574 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15575 to std::unique_ptr.
15576 <step_closure>: Change type to std::unique_ptr.
15578 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15580 * arm-tdep.c: Include count-one-bits.h.
15581 (cleanup_block_store_pc): Use count_one_bits.
15582 (cleanup_block_load_pc): Use count_one_bits.
15583 (arm_copy_block_xfer): Use count_one_bits.
15584 (thumb2_copy_block_xfer): Use count_one_bits.
15585 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15586 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15587 (thumb_get_next_pcs_raw): Use count_one_bits.
15588 (arm_get_next_pcs_raw): Use count_one_bits_l.
15589 * arch/arm.c (bitcount): Remove.
15590 * arch/arm.h (bitcount): Remove.
15592 2020-02-14 Tom Tromey <tromey@adacore.com>
15594 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15596 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15597 * dwarf2/loc.c (call_site_find_chain_1): Return
15598 unique_xmalloc_ptr.
15599 (call_site_find_chain): Likewise.
15601 2020-02-14 Richard Biener <rguenther@suse.de>
15603 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15604 on expression with division operators.
15606 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15608 * MAINTAINERS (Write After Approval): Adding myself.
15610 2020-02-12 Tom Tromey <tom@tromey.com>
15612 * event-loop.c (event_data, gdb_event, event_handler_func):
15615 2020-02-12 Tom Tromey <tom@tromey.com>
15617 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15618 (dwarf2_frame_objfile_data): Add comment.
15619 (find_comp_unit, set_comp_unit): New functions.
15620 (dwarf2_frame_find_fde): Use find_comp_unit.
15621 (dwarf2_build_frame_info): Use set_comp_unit.
15623 2020-02-12 Tom Tromey <tom@tromey.com>
15625 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15626 (comp_unit): Don't initialize objfile.
15627 (execute_cfa_program): Add text_offset parameter.
15628 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15629 (dwarf2_frame_cache): Update.
15630 (dwarf2_build_frame_info): Don't set "objfile" member.
15632 2020-02-12 Tom Tromey <tom@tromey.com>
15634 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15635 (decode_frame_entry): Likewise.
15636 (dwarf2_build_frame_info): Update.
15638 2020-02-12 Tom Tromey <tom@tromey.com>
15640 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15641 (decode_frame_entry_1): Use the comp_unit obstack.
15643 2020-02-12 Tom Tromey <tom@tromey.com>
15645 * dwarf2/frame.c (struct comp_unit): Add initializers and
15647 (dwarf2_frame_objfile_data): Store a comp_unit.
15648 (dwarf2_frame_find_fde): Update.
15649 (dwarf2_build_frame_info): Use "new".
15651 2020-02-12 Tom Tromey <tom@tromey.com>
15653 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15654 (dwarf2_fde_table): Typedef for std::vector.
15655 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15656 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15657 (decode_frame_entry): Update.
15658 (dwarf2_build_frame_info): Use "new".
15660 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15662 * arm-tdep.c (arm_gdbarch_init): Update.
15663 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15664 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15665 have_neon, is_m>: Change to bool.
15667 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15669 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15671 2020-02-12 Tom Tromey <tom@tromey.com>
15673 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15675 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15677 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15678 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15680 2020-02-11 Tom Tromey <tom@tromey.com>
15682 * psymtab.h: Update comment.
15684 2020-02-11 Tom Tromey <tom@tromey.com>
15686 * gdb_obstack.h (struct auto_obstack): Use
15687 DISABLE_COPY_AND_ASSIGN.
15689 2020-02-11 Tom Tromey <tom@tromey.com>
15691 * dwarf2/frame.h (struct objfile): Don't forward declare.
15693 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15695 * cris-tdep.c (cris_supply_gregset): Change signature to match
15696 what struct regset expects.
15697 (cris_regset): New struct.
15698 (fetch_core_registers): Remove.
15699 (cris_iterate_over_regset_sections): New function.
15700 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15701 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15703 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15705 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15708 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15710 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15712 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15714 * configure: Re-generate.
15716 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15718 * configure: Re-generate.
15720 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15722 * acinclude: Update warning.m4 path.
15723 * warning.m4: Move to gdbsupport.
15725 2020-02-11 Tom Tromey <tromey@adacore.com>
15727 * remote.c (remote_console_output): Update.
15728 * printcmd.c (printf_command): Update.
15729 * event-loop.c (gdb_wait_for_event): Update.
15730 * linux-nat.c (sigchld_handler): Update.
15731 * remote-sim.c (gdb_os_write_stdout): Update.
15732 (gdb_os_flush_stdout): Update.
15733 (gdb_os_flush_stderr): Update.
15734 (gdb_os_write_stderr): Update.
15735 * exceptions.c (print_exception): Update.
15736 * remote-fileio.c (remote_fileio_func_read): Update.
15737 (remote_fileio_func_write): Update.
15738 * tui/tui.c (tui_enable): Update.
15739 * tui/tui-interp.c (tui_interp::init): Update.
15740 * utils.c (init_page_info): Update.
15741 (putchar_unfiltered, fputc_unfiltered): Update.
15742 (gdb_flush): Update.
15743 (emit_style_escape): Update.
15744 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15745 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15746 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15747 (stderr_file::write): Update.
15748 (stderr_file::puts): Update.
15749 * ui-file.h (ui_file_isatty, ui_file_write)
15750 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15751 (ui_file_puts): Don't declare.
15753 2020-02-10 Tom de Vries <tdevries@suse.de>
15755 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15756 sentinel to char *.
15758 2020-02-09 Tom de Vries <tdevries@suse.de>
15760 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15761 filename if it matches "<artificial>".
15763 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15765 * windows-tdep.c (struct enum_value_name): New struct.
15766 (create_enum): New function.
15767 (windows_get_siginfo_type): Create and use enum types.
15769 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15771 * NEWS: Mention $_siginfo support for Windows.
15772 * windows-nat.c (handle_exception): Set siginfo_er.
15773 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15774 (windows_xfer_siginfo): New function.
15775 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15776 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15777 (init_windows_gdbarch_data): New function.
15778 (get_windows_gdbarch_data): New function.
15779 (windows_get_siginfo_type): New function.
15780 (windows_init_abi): Register windows_get_siginfo_type.
15781 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15783 2020-02-08 Tom Tromey <tom@tromey.com>
15785 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15786 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15787 <keep>: Declare method.
15788 <m_keep>: Remove member.
15789 <~cutu_reader>: Remove.
15790 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15791 (cutu_reader::cutu_reader): Update.
15792 (cutu_reader::keep): Rename from ~cutu_reader.
15793 (process_psymtab_comp_unit, build_type_psymtabs_1)
15794 (process_skeletonless_type_unit, load_partial_comp_unit)
15795 (load_full_comp_unit, dwarf2_read_addr_index)
15796 (read_signatured_type): Update.
15798 2020-02-08 Tom Tromey <tom@tromey.com>
15800 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15801 "want_partial_unit" parameter.
15802 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15803 Inline check for DW_TAG_partial_unit.
15804 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15806 2020-02-08 Tom Tromey <tom@tromey.com>
15808 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15810 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15813 2020-02-08 Tom Tromey <tom@tromey.com>
15815 * dwarf2/read.c (read_address): Move to comp-unit.c.
15816 (dwarf2_rnglists_process, dwarf2_ranges_process)
15817 (read_attribute_value, dwarf_decode_lines_1)
15818 (var_decode_location, decode_locdesc): Update.
15819 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15820 read.c. Remove "cu" parameter.
15821 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15824 2020-02-08 Tom Tromey <tom@tromey.com>
15826 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15827 (read_indirect_line_string): Update.
15828 * dwarf2/comp-unit.c (read_offset): Remove.
15829 (read_comp_unit_head): Update.
15830 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15832 (read_offset): Don't declare.
15834 2020-02-08 Tom Tromey <tom@tromey.com>
15836 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15837 * dwarf2/read.c (struct comp_unit_head): Move to
15838 dwarf2/comp-unit.h.
15839 (enum class rcuh_kind): Move to comp-unit.h.
15840 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15841 (read_comp_unit_head, error_check_comp_unit_head)
15842 (read_and_check_comp_unit_head): Move to comp-unit.c.
15843 (read_offset, dwarf_unit_type_name): Likewise.
15844 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15845 (cutu_reader::cutu_reader, read_call_site_scope)
15846 (find_partial_die, follow_die_offset): Update.
15847 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15849 2020-02-08 Tom Tromey <tom@tromey.com>
15851 * dwarf2/read.c (read_offset_1): Move to leb.c.
15852 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15853 (dwarf_decode_macro_bytes): Update.
15854 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15855 * dwarf2/leb.h (read_offset): Declare.
15857 2020-02-08 Tom Tromey <tom@tromey.com>
15859 * dwarf2/read.c (dwarf2_section_size): Remove.
15860 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15862 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15864 2020-02-08 Tom Tromey <tom@tromey.com>
15866 * dwarf2/read.c (read_initial_length): Move to leb.c.
15867 * dwarf2/leb.h (read_initial_length): Declare.
15868 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15869 handle_nonstd parameter.
15870 * dwarf2/frame.c (read_initial_length): Remove.
15871 (decode_frame_entry_1): Update.
15873 2020-02-08 Tom Tromey <tom@tromey.com>
15875 * dwarf2/loc.c (dwarf2_find_location_expression)
15876 (dwarf_evaluate_loc_desc::get_tls_address)
15877 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15878 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15879 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15880 (dwarf2_compile_property_to_c)
15881 (dwarf2_loc_desc_get_symbol_read_needs)
15882 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15883 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15884 (loclist_describe_location, loclist_tracepoint_var_ref)
15885 (loclist_generate_c_location): Update.
15886 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15887 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15888 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15889 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15890 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15891 (dwarf2_per_cu_data::addr_size)
15892 (dwarf2_per_cu_data::ref_addr_size)
15893 (dwarf2_per_cu_data::text_offset)
15894 (dwarf2_per_cu_data::addr_type): Now methods.
15895 (per_cu_header_read_in): Make per_cu "const".
15896 (dwarf2_version): Remove.
15897 (dwarf2_per_cu_data::int_type): Now a method.
15898 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15899 (set_die_type, read_array_type, read_subrange_index_type)
15900 (read_tag_string_type, read_subrange_type): Update.
15901 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15902 offset_size, ref_addr_size, text_offset, addr_type, version,
15903 objfile, int_type, addr_sized_int_type>: Declare methods.
15905 2020-02-08 Tom Tromey <tom@tromey.com>
15907 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15910 2020-02-08 Tom Tromey <tom@tromey.com>
15912 * dwarf2/read.h (dwarf_line_debug): Declare.
15913 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15914 * dwarf2/read.c: Move line_header code to new files.
15915 (dwarf_line_debug): No longer static.
15916 * dwarf2/line-header.c: New file.
15917 * dwarf2/line-header.h: New file.
15919 2020-02-08 Tom Tromey <tom@tromey.com>
15921 * dwarf2/read.c (struct line_header) <file_full_name,
15922 file_file_name>: Return unique_xmalloc_ptr.
15923 (line_header::file_file_name): Update.
15924 (line_header::file_full_name): Update.
15925 (dw2_get_file_names_reader): Update.
15926 (macro_start_file): Update.
15928 2020-02-08 Tom Tromey <tom@tromey.com>
15930 * dwarf2/read.c (struct line_header) <file_full_name,
15931 file_file_name>: Declare methods.
15932 (dw2_get_file_names_reader): Update.
15933 (file_file_name): Now a method.
15934 (file_full_name): Likewise.
15935 (macro_start_file): Update.
15937 2020-02-08 Tom Tromey <tom@tromey.com>
15939 * dwarf2/read.c (dwarf_always_disassemble)
15940 (show_dwarf_always_disassemble): Move to loc.c.
15941 (_initialize_dwarf2_read): Move "always-disassemble" registration
15943 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15944 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15946 (show_dwarf_always_disassemble): Move from read.c.
15947 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15949 2020-02-08 Tom Tromey <tom@tromey.com>
15951 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15952 (create_quick_file_names_table): Return htab_up.
15953 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15955 * dwarf2/read.h (struct dwarf2_per_objfile)
15956 <quick_file_names_table>: Now htab_up.
15958 2020-02-08 Tom Tromey <tom@tromey.com>
15960 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15962 2020-02-08 Tom Tromey <tom@tromey.com>
15964 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15966 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15967 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15968 (abbrev_table::abbrev_table): No longer inline.
15969 (ABBREV_HASH_SIZE): Remove.
15970 (abbrev_table::m_abbrevs): Now an htab_up.
15972 2020-02-08 Tom Tromey <tom@tromey.com>
15974 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15975 (cutu_reader): Update.
15976 (build_type_psymtabs_1): Update.
15977 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15978 (abbrev_table::alloc_abbrev): Update.
15979 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15980 (abbrev_table::read): New static method, renamed from
15981 abbrev_table_read_table.
15982 (abbrev_table::alloc_abbrev)
15983 (abbrev_table::add_abbrev): Now private.
15984 (abbrev_table::abbrev_table): Now private.
15985 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15987 2020-02-08 Tom Tromey <tom@tromey.com>
15989 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15990 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15993 2020-02-08 Tom Tromey <tom@tromey.com>
15995 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15997 (lookup_dwo_unit_in_dwp): Update.
15998 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
16001 2020-02-08 Tom Tromey <tom@tromey.com>
16003 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
16006 2020-02-08 Tom Tromey <tom@tromey.com>
16008 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
16010 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
16011 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
16012 Change type to htab_up.
16014 2020-02-08 Tom Tromey <tom@tromey.com>
16016 * dwarf2/read.c (allocate_type_unit_groups_table): Return
16017 htab_up. Don't allocate on obstack.
16018 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
16019 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
16020 Change type to htab_up.
16022 2020-02-08 Tom Tromey <tom@tromey.com>
16024 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
16025 Change type to htab_up.
16026 * dwarf2/read.c (create_signatured_type_table_from_index)
16027 (create_signatured_type_table_from_debug_names)
16028 (create_all_type_units, add_type_unit)
16029 (lookup_dwo_signatured_type, lookup_signatured_type)
16030 (process_skeletonless_type_unit): Update.
16031 (create_debug_type_hash_table, create_debug_types_hash_table):
16032 Change type of types_htab.
16033 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
16034 htab_up. Don't allocate on obstack.
16035 (create_cus_hash_table): Change type of cus_htab parameter.
16036 (struct dwo_file) <cus, tus>: Now htab_up.
16037 (lookup_dwo_signatured_type, lookup_dwo_cutu)
16038 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
16039 (queue_and_load_all_dwo_tus): Update.
16040 * dwarf2/index-write.c (write_gdbindex): Update.
16041 (write_debug_names): Update.
16043 2020-02-08 Tom Tromey <tom@tromey.com>
16045 * dwarf2/read.h (struct dwarf2_queue_item): Move from
16046 dwarf2/read.c. Remove "next" member. Add constructor ntad
16048 (struct dwarf2_per_objfile) <queue>: New member.
16049 * dwarf2/read.c (struct dwarf2_queue_item): Move to
16051 (dwarf2_queue, dwarf2_queue_tail): Remove.
16052 (class dwarf2_queue_guard): Add parameter to constructor. Use
16053 DISABLE_COPY_AND_ASSIGN.
16054 <m_per_objfile>: New member.
16055 <~dwarf2_queue_guard>: Rewrite.
16056 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
16058 (~dwarf2_queue_item): New.
16060 2020-02-08 Tom Tromey <tom@tromey.com>
16062 * dwarf2/read.c (struct die_info) <has_children>: New member.
16063 (dw2_get_file_names_reader): Remove has_children.
16064 (dw2_get_file_names): Update.
16065 (read_cutu_die_from_dwo): Remove has_children.
16066 (cutu_reader::init_tu_and_read_dwo_dies)
16067 (cutu_reader::cutu_reader): Update.
16068 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
16069 Remove has_children.
16070 (build_type_psymtabs_1, process_skeletonless_type_unit)
16071 (load_partial_comp_unit, load_full_comp_unit): Update.
16072 (create_dwo_cu_reader): Remove has_children.
16073 (create_cus_hash_table, read_die_and_children): Update.
16074 (read_full_die_1,read_full_die): Remove has_children.
16075 (read_signatured_type): Update.
16076 (class cutu_reader) <has_children>: Remove.
16078 2020-02-08 Tom Tromey <tom@tromey.com>
16080 * dwarf2/expr.c: Rename from dwarf2expr.c.
16081 * dwarf2/expr.h: Rename from dwarf2expr.h.
16082 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
16083 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
16084 * dwarf2/frame.c: Rename from dwarf2-frame.c.
16085 * dwarf2/frame.h: Rename from dwarf2-frame.h.
16086 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
16087 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
16088 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
16089 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
16090 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
16091 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
16092 * dwarf2/loc.c: Rename from dwarf2loc.c.
16093 * dwarf2/loc.h: Rename from dwarf2loc.h.
16094 * dwarf2/read.c: Rename from dwarf2read.c.
16095 * dwarf2/read.h: Rename from dwarf2read.h.
16096 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
16097 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
16098 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
16099 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
16100 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
16101 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
16102 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
16103 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
16104 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
16105 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
16106 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
16107 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
16108 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
16110 * Makefile.in (COMMON_SFILES): Update.
16111 (HFILES_NO_SRCDIR): Update.
16113 2020-02-08 Tom Tromey <tom@tromey.com>
16115 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
16116 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
16118 2020-02-08 Tom Tromey <tom@tromey.com>
16120 * dwarf2read.h (struct die_info): Don't declare.
16122 2020-02-08 Tom Tromey <tom@tromey.com>
16124 * dwarf2read.h (die_info_ptr): Remove typedef.
16126 2020-02-08 Tom Tromey <tom@tromey.com>
16128 * dwarf2read.c (read_call_site_scope)
16129 (handle_data_member_location, dwarf2_add_member_fn)
16130 (mark_common_block_symbol_computed, read_common_block)
16131 (attr_to_dynamic_prop, partial_die_info::read)
16132 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
16133 (dwarf2_symbol_mark_computed, set_die_type): Update.
16134 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
16136 (attr_form_is_block): Don't declare.
16137 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
16139 2020-02-08 Tom Tromey <tom@tromey.com>
16141 * dwarf2read.c (dwarf2_find_base_address, )
16142 (read_call_site_scope, rust_containing_type)
16143 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
16144 (handle_data_member_location, dwarf2_add_member_fn)
16145 (get_alignment, read_structure_type, process_structure_scope)
16146 (mark_common_block_symbol_computed, read_common_block)
16147 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
16148 (partial_die_info::read, read_attribute_value, new_symbol)
16149 (lookup_die_type, dwarf2_get_ref_die_offset)
16150 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
16151 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
16152 (dwarf2_symbol_mark_computed): Update.
16153 * dwarf2/attribute.h (struct attribute) <value_as_address,
16154 form_is_section_offset, form_is_constant, form_is_ref>: Declare
16156 (value_as_address, attr_form_is_section_offset)
16157 (attr_form_is_constant, attr_form_is_ref): Don't declare.
16158 * dwarf2/attribute.c (attribute::value_as_address)
16159 (attribute::form_is_section_offset, attribute::form_is_constant)
16160 (attribute::form_is_ref): Now methods.
16162 2020-02-08 Tom Tromey <tom@tromey.com>
16164 * dwarf2read.c (struct attribute, DW_STRING)
16165 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
16166 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
16167 (attr_form_is_block, attr_form_is_section_offset)
16168 (attr_form_is_constant, attr_form_is_ref): Move.
16169 * dwarf2/attribute.h: New file.
16170 * dwarf2/attribute.c: New file, from dwarf2read.c.
16171 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
16173 2020-02-08 Tom Tromey <tom@tromey.com>
16175 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
16176 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
16178 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
16179 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
16180 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
16182 * dwarf2/abbrev.h: New file.
16183 * dwarf2/abbrev.c: New file, from dwarf2read.c.
16184 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
16186 2020-02-08 Tom Tromey <tom@tromey.com>
16188 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
16189 (dwarf2_section_size, dwarf2_get_section_info)
16190 (create_signatured_type_table_from_debug_names)
16191 (create_addrmap_from_aranges, read_debug_names_from_section)
16192 (get_gdb_index_contents_from_section, read_comp_unit_head)
16193 (error_check_comp_unit_head, read_abbrev_offset)
16194 (create_debug_type_hash_table, init_cu_die_reader)
16195 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
16196 (read_comp_units_from_section, create_cus_hash_table)
16197 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
16198 (create_dwp_v2_section, dwarf2_rnglists_process)
16199 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
16200 (abbrev_table_read_table, read_indirect_string_at_offset_from)
16201 (read_indirect_string_from_dwz, read_addr_index_1)
16202 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
16203 (dwarf_decode_macro_bytes, dwarf_decode_macros)
16204 (fill_in_loclist_baton): Update.
16205 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
16206 get_containing_section, get_bfd_owner, get_bfd_section,
16207 get_file_name, get_id, get_flags, empty, read>: Declare methods.
16208 (dwarf2_read_section, get_section_name, get_section_file_name)
16209 (get_containing_section, get_section_bfd_owner)
16210 (get_section_bfd_section, get_section_name, get_section_file_name)
16211 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
16213 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
16214 (dwarf2_section_info::get_bfd_owner)
16215 (dwarf2_section_info::get_bfd_section)
16216 (dwarf2_section_info::get_name)
16217 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
16218 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
16219 (dwarf2_section_info::read): Now methods.
16220 * dwarf-index-write.c (class debug_names): Update.
16222 2020-02-08 Tom Tromey <tom@tromey.com>
16224 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
16225 Move to dwarf2/section.h.
16226 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
16227 (get_section_bfd_section, get_section_name)
16228 (get_section_file_name, get_section_id, get_section_flags)
16229 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
16231 * dwarf2/section.h: New file.
16232 * dwarf2/section.c: New file, from dwarf2read.c.
16233 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16235 2020-02-08 Tom Tromey <tom@tromey.com>
16237 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16238 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16239 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16240 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16241 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16242 * dwarf2/leb.h: New file, from dwarf2read.c.
16243 * dwarf2/leb.c: New file, from dwarf2read.c.
16244 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16246 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16247 (COMMON_SFILES): Add dwarf2/leb.c.
16249 2020-02-08 Joel Brobecker <brobecker@adacore.com>
16253 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16256 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16257 * gdb/remote.c (remote_console_output): Update.
16258 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16259 (ui_file_puts): ...this.
16260 * gdb/ui-file.h (ui_file_puts): Add declaration.
16261 * gdb/utils.c (emit_style_escape): Update.
16262 (flush_wrap_buffer): Update.
16263 (fputs_maybe_filtered): Update.
16264 (fputs_unfiltered): Add function.
16266 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16268 * gdb/event-loop.c (gdb_wait_for_event): Update.
16269 * gdb/printcmd.c (printf_command): Update.
16270 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16271 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16272 (gdb_os_flush_stderr): Update.
16273 * gdb/remote.c (remote_console_output): Update.
16274 * gdb/ui-file.c (gdb_flush): Rename to...
16275 (ui_file_flush): ...this.
16276 (stderr_file::write): Update.
16277 (stderr_file::puts): Update.
16278 * gdb/ui-file.h (gdb_flush): Rename to...
16279 (ui_file_flush): ...this.
16280 * gdb/utils.c (gdb_flush): Add function.
16281 * gdb/utils.h (gdb_flush): Add declaration.
16283 2020-02-07 Tom Tromey <tromey@adacore.com>
16285 PR breakpoints/24915:
16286 * source.c (find_and_open_source): Do not check basenames_may_differ.
16288 2020-02-07 Tom Tromey <tom@tromey.com>
16290 * README: Update gdbserver documentation.
16291 * gdbserver: Move to top level.
16292 * configure.tgt (build_gdbserver): Remove.
16293 * configure.ac: Remove --enable-gdbserver.
16294 * configure: Rebuild.
16295 * Makefile.in (distclean): Don't mention gdbserver.
16297 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16299 * source-cache.c (source_cache::ensure): Surround
16300 get_plain_source_lines with a try/catch.
16301 (source_cache::get_line_charpos): Get rid of try/catch
16302 and only check for the return value of "ensure".
16303 * tui/tui-source.c (tui_source_window::set_contents):
16304 Simplify "nlines" calculation.
16306 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16308 * MAINTAINERS (Write After Approval): Add myself.
16310 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16312 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16315 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16317 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16319 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
16321 * nat/riscv-linux-tdesc.h: New file.
16322 * nat/riscv-linux-tdesc.c: New file, taking code from...
16323 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16325 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16328 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16330 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16331 we don't set the fake simulator ptid to the null_ptid.
16333 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
16335 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16336 * gdbthread.h (class thread_info) <resumed>: Likewise.
16337 * infrun.c (resume_1): Likewise.
16338 (proceed): Likewise.
16339 (infrun_thread_stop_requested): Likewise.
16340 (stop_all_threads): Likewise.
16341 (handle_inferior_event): Likewise.
16342 (restart_threads): Likewise.
16343 (finish_step_over): Likewise.
16344 (keep_going_stepped_thread): Likewise.
16345 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16346 (linux_handle_extended_wait): Likewise.
16347 * record-btrace.c (get_thread_current_frame_id): Likewise.
16348 * record-full.c (record_full_wait_1): Likewise.
16349 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16350 * target.c (target_resume): Likewise.
16351 * thread.c (set_running_thread): Likewise.
16353 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16355 * f-valprint.c (f77_print_array_1): Changed datatype of index
16356 variable to LONGEST from int to enable it to contain bound
16359 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
16361 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16362 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16363 offsets according to FLEN determined.
16364 (riscv_linux_nat_target::read_description): Determine FLEN
16366 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16367 according to FLEN determined.
16368 (riscv_linux_nat_target::store_registers): Likewise.
16370 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16372 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16373 when reg->group is empty and reggroup is not.
16375 2020-01-31 Tom Tromey <tromey@adacore.com>
16377 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16378 Call beneath target's mourn_inferior after unpushing.
16380 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16383 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16384 have enough lines to fill the screen, still return the lowest
16387 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16389 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16390 '-', '<', and '>' commands.
16392 2020-01-29 Pedro Alves <palves@redhat.com>
16393 Sergio Durigan Junior <sergiodj@redhat.com>
16395 * infcmd.c (construct_inferior_arguments): Assert that
16396 'argc' is greater than 0.
16398 2020-01-29 Luis Machado <luis.machado@linaro.org>
16400 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16401 (BRK_INSN_MASK): Define to 0xd4200000.
16402 (aarch64_program_breakpoint_here_p): New function.
16403 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16404 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16406 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16408 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16409 call gdbarch_program_breakpoint_here_p.
16410 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16411 default_program_breakpoint_here_p, changed return type to bool and
16413 * breakpoint.h (program_breakpoint_here): Moved prototype to
16414 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16415 return type to bool.
16416 * gdbarch.c: Regenerate.
16417 * gdbarch.h: Regenerate.
16418 * gdbarch.sh (program_breakpoint_here_p): New method.
16419 * infrun.c (handle_signal_stop): Call
16420 gdbarch_program_breakpoint_here_p.
16422 2020-01-26 Tom Tromey <tom@tromey.com>
16424 * ctfread.c (struct ctf_fp_info): Reindent.
16425 (_initialize_ctfread): Remove.
16427 2020-01-26 Tom Tromey <tom@tromey.com>
16429 * psymtab.c (partial_map_expand_apply)
16430 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16431 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16432 (psym_print_stats, psym_expand_symtabs_for_function)
16433 (psym_map_symbol_filenames, psym_map_matching_symbols)
16434 (psym_expand_symtabs_matching)
16435 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16436 (maintenance_check_psymtabs): Use new methods.
16437 * psympriv.h (struct partial_symtab) <readin_p,
16438 get_compunit_symtab>: New methods.
16439 <readin, compunit_symtab>: Remove members.
16440 (struct standard_psymtab): New.
16441 (struct legacy_psymtab): Derive from standard_psymtab.
16442 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16444 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16446 2020-01-26 Tom Tromey <tom@tromey.com>
16448 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16449 read_dependencies. Add assert.
16450 * psymtab.c (partial_symtab::read_dependencies): New method.
16451 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16453 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16454 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16456 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16459 2020-01-26 Tom Tromey <tom@tromey.com>
16461 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16462 Call expand_psymtab.
16463 (xcoff_read_symtab): Call expand_psymtab.
16464 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16465 legacy_expand_psymtab.
16466 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16468 (struct legacy_psymtab) <expand_psymtab>: Implement.
16469 <legacy_expand_psymtab>: New member.
16470 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16471 (parse_partial_symbols): Set legacy_expand_psymtab.
16472 (psymtab_to_symtab_1): Change argument order. Call
16474 (new_psymtab): Set legacy_expand_psymtab.
16475 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16476 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16478 (dwarf2_psymtab::expand_psymtab): Rename from
16479 psymtab_to_symtab_1. Call expand_psymtab.
16480 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16481 (dbx_end_psymtab): Likewise.
16482 (dbx_psymtab_to_symtab_1): Change argument order. Call
16484 (dbx_read_symtab): Call expand_psymtab.
16485 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16486 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16487 (ctf_psymtab::read_symtab): Call expand_psymtab.
16489 2020-01-26 Tom Tromey <tom@tromey.com>
16491 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16492 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16494 * mdebugread.c (mdebug_read_symtab): Remove prints.
16495 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16497 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16499 2020-01-26 Tom Tromey <tom@tromey.com>
16501 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16502 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16503 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16505 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16506 * psymtab.c (psymtab_to_symtab): Call method.
16507 (dump_psymtab): Update.
16508 * psympriv.h (struct partial_symtab): Add virtual destructor.
16509 <read_symtab>: New method.
16510 (struct legacy_symtab): New.
16511 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16512 (struct pst_map) <pst>: Now a legacy_psymtab.
16513 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16514 (new_psymtab): Use legacy_psymtab.
16515 * dwarf2read.h (struct dwarf2_psymtab): New.
16516 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16517 * dwarf2read.c (dwarf2_create_include_psymtab)
16518 (dwarf2_build_include_psymtabs, create_type_unit_group)
16519 (create_partial_symtab, process_psymtab_comp_unit_reader)
16520 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16521 (set_partial_user): Use dwarf2_psymtab.
16522 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16523 (psymtab_to_symtab_1, process_full_comp_unit)
16524 (process_full_type_unit, dwarf2_ranges_read)
16525 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16526 (dwarf_decode_lines): Use dwarf2_psymtab.
16527 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16528 (add_address_entry_worker, write_one_signatured_type)
16529 (recursively_count_psymbols, recursively_write_psymbols)
16530 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16531 (write_debug_names): Likewise.
16532 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16533 <pst>: Now a legacy_psymtab.
16534 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16535 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16536 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16537 * ctfread.c (struct ctf_psymtab): New.
16538 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16540 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16541 (create_partial_symtab): Return a ctf_psymtab.
16542 (scan_partial_symbols): Update.
16544 2020-01-26 Tom Tromey <tom@tromey.com>
16546 * xcoffread.c (xcoff_start_psymtab): Use new.
16547 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16548 renamed from start_psymtab_common.
16549 * psympriv.h (struct partial_symtab): Add new constructor.
16550 (start_psymtab_common): Don't declare.
16551 * mdebugread.c (parse_partial_symbols): Use new.
16552 * dwarf2read.c (create_partial_symtab): Use new.
16553 * dbxread.c (start_psymtab): Use new.
16554 * ctfread.c (create_partial_symtab): Use new.
16556 2020-01-26 Tom Tromey <tom@tromey.com>
16558 * xcoffread.c (xcoff_end_psymtab): Use new.
16559 * psymtab.c (start_psymtab_common): Use new.
16560 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16562 * psympriv.h (struct partial_symtab): Add parameters to
16563 constructor. Don't inline.
16564 (allocate_psymtab): Don't declare.
16565 * mdebugread.c (new_psymtab): Use new.
16566 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16567 * dbxread.c (dbx_end_psymtab): Use new.
16569 2020-01-26 Tom Tromey <tom@tromey.com>
16571 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16572 allocate_psymtab. Update documentation.
16573 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16574 allocate_psymtab. Do not use new.
16575 (allocate_psymtab): Use new. Update.
16577 2020-01-26 Tom Tromey <tom@tromey.com>
16579 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16580 * psymtab.c (psym_print_stats): Update.
16581 * psympriv.h (struct partial_symtab) <readin,
16582 psymtabs_addrmap_supported, anonymous>: Now bool.
16583 * mdebugread.c (psymtab_to_symtab_1): Update.
16584 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16585 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16586 (process_full_comp_unit, process_full_type_unit): Update.
16587 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16588 * ctfread.c (psymtab_to_symtab): Update.
16590 2020-01-26 Tom Tromey <tom@tromey.com>
16592 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16593 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16594 * psymtab.c (psymtab_storage): Delete psymtabs.
16595 (psymtab_storage::allocate_psymtab): Use new.
16596 (psymtab_storage::discard_psymtab): Use delete.
16597 * psympriv.h (struct partial_symtab): Add constructor and
16600 2020-01-26 Tom Tromey <tom@tromey.com>
16602 * machoread.c: Do not include psympriv.h.
16604 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16606 * NEWS: Mention the new option and the set/show commands.
16608 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16610 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16611 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16612 (validate_exec_file): New variables, enums, functions.
16613 (exec_file_locate_attach, print_section_info): Style the filenames.
16614 (_initialize_exec): Install show_exec_file_mismatch_command and
16615 set_exec_file_mismatch_command.
16616 * gdbcore.h (validate_exec_file): Declare.
16617 * infcmd.c (attach_command): Call validate_exec_file.
16618 * remote.c ( remote_target::remote_add_inferior): Likewise.
16620 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16622 * frame.c (find_frame_sal): Move call to get_next_frame into more
16624 * inline-frame.c (inilne_state) <inline_state>: Update argument
16626 (inilne_state) <skipped_symbol>: Rename to...
16627 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16628 (skip_inline_frames): Build vector of skipped symbols and use this
16629 to reate the inline_state.
16630 (inline_skipped_symbol): Add a comment and some assertions, fetch
16631 skipped symbol from the list.
16633 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16635 * buildsym.c (lte_is_less_than): Delete.
16636 (buildsym_compunit::end_symtab_with_blockvector): Create local
16637 lambda function to sort line table entries, and use
16638 std::stable_sort instead of std::sort.
16639 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16640 markers when looking for a previous line.
16642 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16644 * dwarf2read.c (lnp_state_machine::record_line): Include
16645 end_sequence parameter in debug print out. Record the line if we
16646 are at an end_sequence marker even if it's not the start of a
16648 * symmisc.c (maintenance_print_one_line_table): Print end of
16649 sequence markers with 'END' not '0'.
16651 2020-01-24 Pedro Alves <palves@redhat.com>
16654 * thread.c (scoped_restore_current_thread::restore): Use
16655 switch_to_inferior_no_thread.
16656 * exec.c: Include "progspace-and-thread.h".
16657 (add_target_sections, remove_target_sections):
16658 scoped_restore_current_pspace_and_thread instead of
16659 scoped_restore_current_thread.
16660 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16661 and aspace to the inferior before calling clone_program_space.
16662 Remove stale comment.
16664 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16666 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16667 (arm_netbsd_nat_target::fetch_registers): ...this.
16668 (arm_nbsd_nat_target::store_registers): Rename to...
16669 (arm_netbsd_nat_target::store_registers): ...this.
16671 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16673 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16676 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16678 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16680 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16682 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16683 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16684 the correct replacement (iterate_over_regset_sections).
16685 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16688 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16691 * gdb/python/python.c (execute_gdb_command): Call
16692 async_enable_stdin in catch block.
16694 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16696 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16697 SWITCH_THRU_ALL_UIS.
16699 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16702 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16703 comment, add extra parameter, and update to store previous symbol
16705 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16706 add extra parameter.
16707 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16708 remove unneeded parameter, add try/catch around gdb_print_insn,
16709 rewrite to add items to asm_lines vector.
16710 (tui_find_backward_disassembly_start_address): New function.
16711 (tui_find_disassembly_address): Updated throughout.
16712 (tui_disasm_window::set_contents): Update for changes to
16714 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16715 number of lines to scroll.
16717 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16719 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16720 (SECT_OFF_DATA): Likewise.
16721 (SECT_OFF_RODATA): Likewise.
16722 (SECT_OFF_TEXT): Likewise.
16723 (SECT_OFF_BSS): Likewise.
16724 (struct objfile) <text_section_offset, data_section_offset>: New
16726 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16727 objfile::text_section_offset.
16728 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16729 * coffread.c (coff_symtab_read): Likewise.
16730 (enter_linenos): Likewise.
16731 (process_coff_symbol): Likewise.
16732 * ctfread.c (get_objfile_text_range): Likewise.
16733 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16734 Use objfile::data_section_offset.
16735 * dwarf2-frame.c (execute_cfa_program): Use
16736 objfile::text_section_offset.
16737 (dwarf2_frame_find_fde): Likewise.
16738 * dwarf2read.c (create_addrmap_from_index): Likewise.
16739 (create_addrmap_from_aranges): Likewise.
16740 (dw2_find_pc_sect_compunit_symtab): Likewise.
16741 (process_psymtab_comp_unit_reader): Likewise.
16742 (add_partial_symbol): Likewise.
16743 (add_partial_subprogram): Likewise.
16744 (process_full_comp_unit): Likewise.
16745 (read_file_scope): Likewise.
16746 (read_func_scope): Likewise.
16747 (read_lexical_block_scope): Likewise.
16748 (read_call_site_scope): Likewise.
16749 (dwarf2_rnglists_process): Likewise.
16750 (dwarf2_ranges_process): Likewise.
16751 (dwarf2_ranges_read): Likewise.
16752 (dwarf_decode_lines_1): Likewise.
16753 (new_symbol): Likewise.
16754 (dwarf2_fetch_die_loc_sect_off): Likewise.
16755 (dwarf2_per_cu_text_offset): Likewise.
16756 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16757 * hppa-tdep.c (read_unwind_info): Likewise.
16758 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16759 * psympriv.h (struct partial_symtab): Likewise.
16760 * psymtab.c (find_pc_sect_psymtab): Likewise.
16761 * solib-svr4.c (enable_break): Likewise.
16762 * stap-probe.c (relocate_address): Use
16763 objfile::data_section_offset.
16764 * xcoffread.c (enter_line_range): Use
16765 objfile::text_section_offset.
16766 (read_xcoff_symtab): Likewise.
16768 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16770 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16771 declaration to narrower scopes.
16773 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16775 * darwin-nat.h (struct darwin_exception_msg, enum
16776 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16778 (class darwin_nat_target) <wait_1, check_new_threads,
16779 decode_exception_message, decode_message, stop_inferior,
16780 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16781 * darwin-nat.c (darwin_check_new_threads): Rename to...
16782 (darwin_nat_target::check_new_threads): ... this.
16783 (darwin_suspend_inferior_it): Remove.
16784 (darwin_decode_exception_message): Rename to...
16785 (darwin_nat_target::decode_exception_message): ... this.
16786 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16787 (darwin_decode_message): Rename to...
16788 (darwin_nat_target::decode_message): ... this.
16789 (cancel_breakpoint): Rename to...
16790 (darwin_nat_target::cancel_breakpoint): ... this.
16791 (darwin_wait): Rename to...
16792 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16793 instead of iterate_over_inferiors.
16794 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16795 (darwin_stop_inferior): Rename to...
16796 (darwin_nat_target::stop_inferior): ... this.
16797 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16798 (darwin_init_thread_list): Rename to...
16799 (darwin_nat_target::init_thread_list): ... this.
16800 (darwin_ptrace_him): Rename to...
16801 (darwin_nat_target::ptrace_him): ... this.
16802 (darwin_nat_target::create_inferior): Pass lambda function to
16804 (darwin_nat_target::detach): Call stop_inferior instead of
16805 darwin_stop_inferior.
16806 * fork-inferior.h (fork_inferior): Change init_trace_fun
16807 parameter to gdb::function_view.
16808 * fork-inferior.c (fork_inferior): Likewise.
16810 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16812 * i386-cygwin-tdep.c (core_process_module_section): Update.
16813 * windows-nat.c (struct lm_info_windows): Add text_offset.
16814 (windows_xfer_shared_libraries): Update.
16815 * windows-tdep.c (windows_xfer_shared_library):
16816 Add text_offset_cached argument.
16817 * windows-tdep.h (windows_xfer_shared_library): Update.
16819 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16821 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16823 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16825 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16826 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16827 replace with range-based for.
16828 (gdbsim_interrupt_inferior): Remove.
16829 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16830 with a range-based for. Inline code from
16831 gdbsim_interrupt_inferior.
16833 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16835 * infrun.c (proceed): Fix indentation.
16837 2020-01-21 Tom Tromey <tromey@adacore.com>
16839 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16840 * python/python.c (python_extension_ops): Update.
16841 (gdbpy_colorize): New function.
16842 * python/lib/gdb/__init__.py (colorize): New function.
16843 * extension.h (ext_lang_colorize): Declare.
16844 * extension.c (ext_lang_colorize): New function.
16845 * extension-priv.h (struct extension_language_ops) <colorize>: New
16847 * cli/cli-style.c (_initialize_cli_style): Update help text.
16849 2020-01-21 Luis Machado <luis.machado@linaro.org>
16851 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16852 <cond>: Change type to bool.
16853 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16854 (aarch64_displaced_step_cb): Likewise.
16855 (aarch64_displaced_step_tb): Likewise.
16857 2020-01-21 Luis Machado <luis.machado@linaro.org>
16859 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16862 2020-01-21 Luis Machado <luis.machado@linaro.org>
16864 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16865 <pc_adjust>: Adjust the documentation.
16866 (aarch64_displaced_step_fixup): Check if PC really moved before
16869 2020-01-19 Tom Tromey <tom@tromey.com>
16871 * disasm.c (~gdb_disassembler): New destructor.
16872 (gdb_buffered_insn_length): Call disassemble_free_target.
16873 * disasm.h (class gdb_disassembler): Declare destructor. Use
16874 DISABLE_COPY_AND_ASSIGN.
16876 2020-01-19 Tom Tromey <tom@tromey.com>
16878 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16879 (die_reader_func_ftype): Remove.
16880 (cutu_reader): New class.
16881 (dw2_get_file_names_reader): Remove "data" parameter.
16882 (dw2_get_file_names): Use cutu_reader.
16883 (create_debug_type_hash_table): Update.
16884 (read_cutu_die_from_dwo): Update comment.
16885 (lookup_dwo_unit): Add dwo_name parameter.
16886 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16887 die_reader_func_ftype and data parameters.
16888 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16889 Remove die_reader_func_ftype and data parameters.
16890 (~cutu_reader): New; from init_cutu_and_read_dies.
16891 (cutu_reader::cutu_reader): Rename from
16892 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16893 and data parameters.
16894 (init_cutu_and_read_dies_simple): Remove.
16895 (struct process_psymtab_comp_unit_data): Remove.
16896 (process_psymtab_comp_unit_reader): Remove data parameter; add
16897 want_partial_unit and pretend_language parameters.
16898 (process_psymtab_comp_unit): Use cutu_reader.
16899 (build_type_psymtabs_reader): Remove data parameter.
16900 (build_type_psymtabs_1): Use cutu_reader.
16901 (process_skeletonless_type_unit): Likewise.
16902 (load_partial_comp_unit_reader): Remove.
16903 (load_partial_comp_unit): Use cutu_reader.
16904 (load_full_comp_unit_reader): Remove.
16905 (load_full_comp_unit): Use cutu_reader.
16906 (struct create_dwo_cu_data): Remove.
16907 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16908 dwo_unit parameters.
16909 (create_cus_hash_table): Use cutu_reader.
16910 (struct dwarf2_read_addr_index_data): Remove.
16911 (dwarf2_read_addr_index_reader): Remove.
16912 (dwarf2_read_addr_index): Use cutu_reader.
16913 (read_signatured_type_reader): Remove.
16914 (read_signatured_type): Use cutu_reader.
16916 2020-01-19 Tom Tromey <tom@tromey.com>
16918 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16919 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16920 (tui_wrefresh): Declare.
16921 * tui/tui-wingeneral.c (suppress_output): New global.
16922 (tui_suppress_output, ~tui_suppress_output): New constructor and
16924 (tui_wrefresh): New function.
16925 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16926 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16927 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16929 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16931 (tui_data_window::no_refresh): New method.
16932 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16933 (tui_reg_command): Use tui_suppress_output
16934 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16935 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16937 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16939 2020-01-19 Tom Tromey <tom@tromey.com>
16941 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16942 Handle case where symtab is null.
16944 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16946 * linux-fork.c (one_fork_p): Simplify.
16948 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16950 * top.c (struct qt_args): Remove.
16951 (kill_or_detach): Change return type to void, replace `void *`
16952 parameter with a proper one.
16953 (print_inferior_quit_action): Likewise.
16954 (quit_confirm): Use range-based for loop to iterate over inferiors.
16955 (quit_force): Likewise.
16957 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16959 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16960 `void *` parameter with proper parameters.
16961 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16962 (print_one_inferior): Change return type to void, replace `void *`
16963 parameter with proper parameters.
16964 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16966 (get_other_inferior): Remove.
16967 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16970 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16972 * mi/mi-interp.c (report_initial_inferior): Remove.
16973 (mi_interp::init): Use range-based for to iterate over inferiors.
16975 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16977 * python/py-inferior.c (build_inferior_list): Remove.
16978 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16980 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16982 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16983 (btrace_stitch_trace): Likewise.
16984 * charset.c (intermediate_encoding): Likewise (vaild).
16985 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16986 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16987 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16989 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16991 * windows-tdep.c (windows_get_tlb_type):
16992 Add rtl_user_process_parameters type.
16994 2020-01-16 Pedro Alves <palves@redhat.com>
16995 Norbert Lange <nolange79@gmail.com>
16998 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16999 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
17000 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
17001 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
17002 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
17003 (ps_plog): Redeclare exported functions with default visibility.
17005 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
17007 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
17008 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
17010 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
17012 * infcmd.c (post_create_inferior): Use get_thread_regcache
17013 instead of get_current_regcache.
17015 2020-01-14 Tom Tromey <tom@tromey.com>
17018 * python/python.c (gdbpy_decode_line): Treat empty string the same
17021 2020-01-14 Tom Tromey <tom@tromey.com>
17023 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
17025 2020-01-14 Tom Tromey <tom@tromey.com>
17027 * nat/linux-btrace.c: Don't include <config.h>.
17028 * nat/linux-ptrace.c: Don't include <config.h>.
17029 * nat/x86-linux-dregs.c: Don't include <config.h>.
17031 2020-01-14 Tom Tromey <tom@tromey.com>
17033 * configure: Rebuild.
17034 * configure.ac: Move many checks to ../gdbsupport/common.m4.
17036 2020-01-14 Tom Tromey <tom@tromey.com>
17038 * nat/x86-linux-dregs.c: Include configh.h.
17039 * nat/linux-ptrace.c: Include configh.h.
17040 * nat/linux-btrace.c: Include configh.h.
17041 * defs.h: Include config.h, bfd.h.
17042 * configure.ac: Don't source common.host.
17043 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
17044 * configure: Rebuild.
17045 * acinclude.m4: Update path.
17046 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
17047 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
17048 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
17049 (CLIBS): Add LIBSUPPORT.
17051 (COMMON_SFILES): Remove gdbsupport files.
17052 (HFILES_NO_SRCDIR): Likewise.
17053 (stamp-version): Update path to create-version.sh.
17054 (ALLDEPFILES): Remove gdbsupport files.
17056 2020-01-14 Tom Tromey <tom@tromey.com>
17058 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
17059 USE_WIN32API when needed.
17060 * configure.ac (USE_WIN32API): Don't define.
17061 (WIN32LIBS): Use WIN32APILIBS.
17062 * configure: Rebuild.
17064 2020-01-14 Tom Tromey <tom@tromey.com>
17066 * configure: Rebuild.
17067 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
17069 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
17071 * skip.c (skip_function_command): Make skip w/o arguments use the
17072 name of the inlined function if pc is inside any inlined function.
17074 2020-01-14 Luis Machado <luis.machado@linaro.org>
17076 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
17077 * infrun.c (resume_1): Likewise.
17078 (handle_inferior_event): Remove stale comment.
17079 * linux-nat.c (linux_nat_target::resume): Update comments.
17080 (save_stop_reason): Likewise.
17081 (linux_nat_filter_event): Likewise.
17082 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
17084 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17086 * elfread.c (record_minimal_symbol): Set section index to 0 for
17087 non-allocatable sections.
17090 2020-01-13 Ali Tamur <tamur@google.com>
17092 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
17093 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
17094 to gdb::optional. Update comments.
17095 (dwo_file): Update comments.
17096 (read_attribute): Update API to take an additional out parameter,
17097 need_reprocess. This is used to mark attributes that need other
17098 attributes (e.g. str_offsets_base) for correct computation which may not
17099 have been read yet.
17100 (read_attribute_reprocess): New function declaration.
17101 (read_addr_index): Likewise.
17102 (read_dwo_str_index): Likewise.
17103 (read_stub_str_index): Likewise.
17104 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
17105 (lookup_addr_base): New function definition.
17106 (lookup_ranges_base): Likewise.
17107 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
17108 lookup_ranges_base.
17109 (init_cutu_and_read_dies): Update comments.
17110 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
17111 unit. This is used to inherit parent's str_offsets_base and addr_base.
17113 (init_cutu_and_read_dies_simple): Reflect API changes.
17114 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
17115 (create_cus_hash_table): Change API to take parent compile unit.
17116 Reflect API changes.
17117 (open_and_init_dwo_file): Reflect API changes.
17118 (dwarf2_get_pc_bounds): Update comments.
17119 (dwarf2_record_block_ranges): Likewise.
17120 (read_full_die_1): Change implementation to reprocess attributes that
17121 need str_offsets_base and addr_base.
17122 (partial_die_info::read): Likewise.
17123 (read_attribute_reprocess): New function definition.
17124 (read_attribute_value): Change API to take an additional out parameter,
17125 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
17126 when a non-dwo compile unit has index based attributes.
17127 (read_attribute): Reflect API changes.
17128 (read_addr_index_1): Reflect API changes. Update comments.
17129 (dwarf2_read_addr_index_data): Reflect API changes.
17130 (dwarf2_read_addr_index): Likewise.
17131 (read_str_index): Change API and implementation. This becomes a helper
17132 to be used by the new string index related methods. Update error
17133 message and comments.
17134 (read_dwo_str_index): New function definition.
17135 (read_stub_str_index): Likewise.
17136 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
17137 * symfile.h (dwarf2_debug_sections): Likewise.
17138 * xcoffread.c (dwarf2_debug_sections): Likewise.
17140 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17142 * gdbcore.h (struct core_fns) <core_read_registers>: Change
17143 core_reg_sect type to gdb_byte *.
17144 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
17145 * cris-tdep.c (fetch_core_registers): Likewise.
17146 * corelow.c (core_target::get_core_register_section): Change
17147 type of `contents` to gdb::byte_vector.
17149 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17151 * tui/tui-wingeneral.c (box_win): Position the title in the center
17154 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17156 * corelow.c (core_target::get_core_register_section): Use
17157 std::vector instead of alloca.
17159 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17161 * warning.m4: Add -Wmissing-declarations to build_warnings.
17162 * configure: Re-generate.
17164 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17166 * python/python.c (init__gdb_module): Add declaration.
17168 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17170 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
17171 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
17172 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
17173 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
17174 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
17175 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
17176 * ada-exp.y (_initialize_ada_exp): Add declaration.
17177 * ada-lang.c (_initialize_ada_language): Add declaration.
17178 * ada-tasks.c (_initialize_tasks): Add declaration.
17179 * agent.c (_initialize_agent): Add declaration.
17180 * aix-thread.c (_initialize_aix_thread): Add declaration.
17181 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
17182 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
17183 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
17184 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
17185 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
17186 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
17187 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
17188 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
17189 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
17190 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
17191 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
17192 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
17193 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
17194 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
17195 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
17196 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
17197 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
17198 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
17199 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
17200 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
17201 * annotate.c (_initialize_annotate): Add declaration.
17202 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
17203 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
17204 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
17205 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
17206 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
17207 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
17208 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
17209 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
17210 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
17211 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
17212 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
17213 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
17214 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
17215 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
17216 * auto-load.c (_initialize_auto_load): Add declaration.
17217 * auxv.c (_initialize_auxv): Add declaration.
17218 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
17219 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
17220 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
17221 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
17222 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
17223 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
17224 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
17225 * breakpoint.c (_initialize_breakpoint): Add declaration.
17226 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
17227 * btrace.c (_initialize_btrace): Add declaration.
17228 * charset.c (_initialize_charset): Add declaration.
17229 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
17230 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17231 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17232 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17233 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17234 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17235 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17236 * coffread.c (_initialize_coffread): Add declaration.
17237 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17238 * compile/compile.c (_initialize_compile): Add declaration.
17239 * complaints.c (_initialize_complaints): Add declaration.
17240 * completer.c (_initialize_completer): Add declaration.
17241 * copying.c (_initialize_copying): Add declaration.
17242 * corefile.c (_initialize_core): Add declaration.
17243 * corelow.c (_initialize_corelow): Add declaration.
17244 * cp-abi.c (_initialize_cp_abi): Add declaration.
17245 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17246 * cp-support.c (_initialize_cp_support): Add declaration.
17247 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17248 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17249 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17250 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17251 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17252 * ctfread.c (_initialize_ctfread): Add declaration.
17253 * d-lang.c (_initialize_d_language): Add declaration.
17254 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17255 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17256 * dbxread.c (_initialize_dbxread): Add declaration.
17257 * dcache.c (_initialize_dcache): Add declaration.
17258 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17259 * disasm.c (_initialize_disasm): Add declaration.
17260 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17261 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17262 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17263 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17264 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17265 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17266 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17267 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17268 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17269 * elfread.c (_initialize_elfread): Add declaration.
17270 * exec.c (_initialize_exec): Add declaration.
17271 * extension.c (_initialize_extension): Add declaration.
17272 * f-lang.c (_initialize_f_language): Add declaration.
17273 * f-valprint.c (_initialize_f_valprint): Add declaration.
17274 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17275 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17276 * filesystem.c (_initialize_filesystem): Add declaration.
17277 * findcmd.c (_initialize_mem_search): Add declaration.
17278 * findvar.c (_initialize_findvar): Add declaration.
17279 * fork-child.c (_initialize_fork_child): Add declaration.
17280 * frame-base.c (_initialize_frame_base): Add declaration.
17281 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17282 * frame.c (_initialize_frame): Add declaration.
17283 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17284 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17285 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17286 * gcore.c (_initialize_gcore): Add declaration.
17287 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17288 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17289 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17290 * gdbarch.c (_initialize_gdbarch): Add declaration.
17291 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17292 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17293 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17294 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17295 * go-lang.c (_initialize_go_language): Add declaration.
17296 * go32-nat.c (_initialize_go32_nat): Add declaration.
17297 * guile/guile.c (_initialize_guile): Add declaration.
17298 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17299 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17300 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17301 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17302 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17303 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17304 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17305 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17306 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17307 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17308 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17309 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17310 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17311 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17312 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17313 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17314 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17315 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17316 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17317 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17318 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17319 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17320 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17321 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17322 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17323 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17324 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17325 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17326 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17327 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17328 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17329 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17330 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17331 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17332 * infcall.c (_initialize_infcall): Add declaration.
17333 * infcmd.c (_initialize_infcmd): Add declaration.
17334 * inflow.c (_initialize_inflow): Add declaration.
17335 * infrun.c (_initialize_infrun): Add declaration.
17336 * interps.c (_initialize_interpreter): Add declaration.
17337 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17338 * jit.c (_initialize_jit): Add declaration.
17339 * language.c (_initialize_language): Add declaration.
17340 * linux-fork.c (_initialize_linux_fork): Add declaration.
17341 * linux-nat.c (_initialize_linux_nat): Add declaration.
17342 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17343 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17344 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17345 * m2-lang.c (_initialize_m2_language): Add declaration.
17346 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17347 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17348 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17349 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17350 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17351 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17352 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17353 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17354 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17355 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17356 * machoread.c (_initialize_machoread): Add declaration.
17357 * macrocmd.c (_initialize_macrocmd): Add declaration.
17358 * macroscope.c (_initialize_macroscope): Add declaration.
17359 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17360 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17361 * maint.c (_initialize_maint_cmds): Add declaration.
17362 * mdebugread.c (_initialize_mdebugread): Add declaration.
17363 * memattr.c (_initialize_mem): Add declaration.
17364 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17365 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17366 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17367 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17368 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17369 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17370 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17371 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17372 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17373 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17374 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17375 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17376 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17377 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17378 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17379 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17380 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17381 * mipsread.c (_initialize_mipsread): Add declaration.
17382 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17383 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17384 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17385 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17386 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17387 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17388 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17389 * nto-procfs.c (_initialize_procfs): Add declaration.
17390 * objc-lang.c (_initialize_objc_language): Add declaration.
17391 * observable.c (_initialize_observer): Add declaration.
17392 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17393 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17394 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17395 * osabi.c (_initialize_gdb_osabi): Add declaration.
17396 * osdata.c (_initialize_osdata): Add declaration.
17397 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17398 * parse.c (_initialize_parse): Add declaration.
17399 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17400 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17401 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17402 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17403 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17404 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17405 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17406 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17407 * printcmd.c (_initialize_printcmd): Add declaration.
17408 * probe.c (_initialize_probe): Add declaration.
17409 * proc-api.c (_initialize_proc_api): Add declaration.
17410 * proc-events.c (_initialize_proc_events): Add declaration.
17411 * proc-service.c (_initialize_proc_service): Add declaration.
17412 * procfs.c (_initialize_procfs): Add declaration.
17413 * producer.c (_initialize_producer): Add declaration.
17414 * psymtab.c (_initialize_psymtab): Add declaration.
17415 * python/python.c (_initialize_python): Add declaration.
17416 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17417 * record-btrace.c (_initialize_record_btrace): Add declaration.
17418 * record-full.c (_initialize_record_full): Add declaration.
17419 * record.c (_initialize_record): Add declaration.
17420 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17421 * regcache.c (_initialize_regcache): Add declaration.
17422 * reggroups.c (_initialize_reggroup): Add declaration.
17423 * remote-notif.c (_initialize_notif): Add declaration.
17424 * remote-sim.c (_initialize_remote_sim): Add declaration.
17425 * remote.c (_initialize_remote): Add declaration.
17426 * reverse.c (_initialize_reverse): Add declaration.
17427 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17428 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17429 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17430 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17431 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17432 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17433 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17434 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17436 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17437 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17438 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17439 * rust-exp.y (_initialize_rust_exp): Add declaration.
17440 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17441 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17442 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17443 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17444 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17445 * score-tdep.c (_initialize_score_tdep): Add declaration.
17446 * ser-go32.c (_initialize_ser_dos): Add declaration.
17447 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17448 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17449 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17450 * ser-uds.c (_initialize_ser_socket): Add declaration.
17451 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17452 * serial.c (_initialize_serial): Add declaration.
17453 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17454 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17455 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17456 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17457 * skip.c (_initialize_step_skip): Add declaration.
17458 * sol-thread.c (_initialize_sol_thread): Add declaration.
17459 * solib-aix.c (_initialize_solib_aix): Add declaration.
17460 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17461 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17462 * solib-frv.c (_initialize_frv_solib): Add declaration.
17463 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17464 * solib-target.c (_initialize_solib_target): Add declaration.
17465 * solib.c (_initialize_solib): Add declaration.
17466 * source-cache.c (_initialize_source_cache): Add declaration.
17467 * source.c (_initialize_source): Add declaration.
17468 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17469 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17470 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17471 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17472 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17473 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17474 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17475 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17476 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17477 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17478 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17479 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17480 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17481 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17482 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17483 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17484 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17485 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17486 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17487 * stabsread.c (_initialize_stabsread): Add declaration.
17488 * stack.c (_initialize_stack): Add declaration.
17489 * stap-probe.c (_initialize_stap_probe): Add declaration.
17490 * std-regs.c (_initialize_frame_reg): Add declaration.
17491 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17492 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17493 * symfile.c (_initialize_symfile): Add declaration.
17494 * symmisc.c (_initialize_symmisc): Add declaration.
17495 * symtab.c (_initialize_symtab): Add declaration.
17496 * target.c (_initialize_target): Add declaration.
17497 * target-connection.c (_initialize_target_connection): Add
17499 * target-dcache.c (_initialize_target_dcache): Add declaration.
17500 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17501 * thread.c (_initialize_thread): Add declaration.
17502 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17503 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17504 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17505 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17506 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17507 * tracectf.c (_initialize_ctf): Add declaration.
17508 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17509 * tracefile.c (_initialize_tracefile): Add declaration.
17510 * tracepoint.c (_initialize_tracepoint): Add declaration.
17511 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17512 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17513 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17514 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17515 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17516 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17517 * tui/tui.c (_initialize_tui): Add declaration.
17518 * typeprint.c (_initialize_typeprint): Add declaration.
17519 * ui-style.c (_initialize_ui_style): Add declaration.
17520 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17521 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17522 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17523 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17524 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17525 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17526 * unittests/filtered_iterator-selftests.c
17527 (_initialize_filtered_iterator_selftests): Add declaration.
17528 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17529 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17530 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17531 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17532 * unittests/main-thread-selftests.c
17533 (_initialize_main_thread_selftests): Add declaration.
17534 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17535 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17536 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17537 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17538 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17539 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17540 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17541 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17542 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17543 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17544 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17545 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17546 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17547 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17548 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17550 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17551 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17552 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17553 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17554 * user-regs.c (_initialize_user_regs): Add declaration.
17555 * utils.c (_initialize_utils): Add declaration.
17556 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17557 * valops.c (_initialize_valops): Add declaration.
17558 * valprint.c (_initialize_valprint): Add declaration.
17559 * value.c (_initialize_values): Add declaration.
17560 * varobj.c (_initialize_varobj): Add declaration.
17561 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17562 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17563 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17564 * windows-nat.c (_initialize_windows_nat): Add declaration.
17565 (_initialize_check_for_gdb_ini): Add declaration.
17566 (_initialize_loadable): Add declaration.
17567 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17568 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17569 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17570 * xcoffread.c (_initialize_xcoffread): Add declaration.
17571 * xml-support.c (_initialize_xml_support): Add declaration.
17572 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17573 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17574 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17575 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17577 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17579 * regformats/regdat.sh: Generate declaration for init function.
17581 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17583 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17585 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17586 close_one_inferior>: New methods.
17587 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17588 pass down target to find_inferior_pid.
17589 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17590 Pass down target to find_inferior_ptid.
17591 (gdbsim_target::create_inferior): Pass down target to
17593 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17594 target down to find_inferior_ptid and switch_to_thread.
17595 (gdbsim_target::close): Update to call close_one_inferior.
17596 (struct resume_data): Remove.
17597 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17598 directly, rather than through a void pointer.
17599 (gdbsim_target::resume): Update to call resume_one_inferior.
17601 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17603 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17605 2020-01-12 Pedro Alves <palves@redhat.com>
17607 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17608 directly for the current inferior instead of
17609 discard_all_inferiors.
17610 (discard_all_inferiors): Delete.
17612 2020-01-11 Tom Tromey <tom@tromey.com>
17614 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17615 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17616 deprecated_safe_get_selected_frame.
17618 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17620 * inferior.c (print_inferior): Switch inferior before printing it.
17622 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17623 Pedro Alves <palves@redhat.com>
17625 * progspace-and-thread.c (switch_to_program_space_and_thread):
17626 Assert there's an inferior for PSPACE. Use
17627 switch_to_inferior_no_thread to switch the inferior too.
17628 * progspace.c (program_space::~program_space): Call
17629 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17630 (program_space::free_all_objfiles): Don't call clear_symtab_users
17632 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17634 2020-01-10 Pedro Alves <palves@redhat.com>
17636 * NEWS: Mention multi-target debugging, "info connections", and
17637 "add-inferior -no-connection".
17639 2020-01-10 Pedro Alves <palves@redhat.com>
17641 * infrun.c: Include "target-connection.h".
17642 (check_multi_target_resumption): New.
17643 (proceed): Call it.
17644 * target-connection.c (make_target_connection_string): Make
17646 * target-connection.h (make_target_connection_string): Declare.
17648 2020-01-10 Pedro Alves <palves@redhat.com>
17650 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17651 * inferior.c (uiout_field_connection): New function.
17652 (print_inferior): Add new "connection-id" column.
17653 (add_inferior_command): Show connection number/string of added
17655 * process-stratum-target.h
17656 (process_stratum_target::connection_string): New virtual method.
17657 (process_stratum_target::connection_number): New field.
17658 * remote.c (remote_target::connection_string): New override.
17659 * target-connection.c: New file.
17660 * target-connection.h: New file.
17661 * target.c (decref_target): Remove process_stratum targets from
17662 the connection list.
17663 (target_stack::push): Add process_stratum targets to the
17666 2020-01-10 Pedro Alves <palves@redhat.com>
17669 2016-04-12 Pedro Alves <palves@redhat.com>
17670 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17671 Remove references to name.
17672 * serial.h (struct serial) <name>: Delete.
17674 2020-01-10 Pedro Alves <palves@redhat.com>
17676 * gdbarch-selftests.c (register_to_value_test): Remove "target
17677 already pushed" check.
17679 2020-01-10 Pedro Alves <palves@redhat.com>
17680 John Baldwin <jhb@FreeBSD.org>
17682 * aarch64-linux-nat.c
17683 (aarch64_linux_nat_target::thread_architecture): Adjust.
17684 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17685 (task_command_1): Likewise.
17686 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17687 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17688 (aix_thread_target::store_registers)
17689 (aix_thread_target::thread_alive): Adjust.
17690 * amd64-fbsd-tdep.c: Include "inferior.h".
17691 (amd64fbsd_get_thread_local_address): Pass down target.
17692 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17693 thread's gdbarch instead of target_gdbarch.
17694 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17695 get_last_target_status.
17696 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17697 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17699 (update_inserted_breakpoint_locations): Skip if inferiors with no
17701 (update_global_location_list): When handling moribund locations,
17702 find representative inferior for location's pspace, and use thread
17703 count of its process_stratum target.
17704 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17705 * bsd-uthread.c (bsd_uthread_target::wait): Use
17706 as_process_stratum_target and adjust thread_change_ptid and
17708 (bsd_uthread_target::update_thread_list): Use
17709 as_process_stratum_target and adjust find_thread_ptid,
17710 thread_change_ptid and add_thread calls.
17711 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17712 find_thread_ptid call.
17713 * corelow.c (add_to_thread_list): Adjust add_thread call.
17714 (core_target_open): Adjust add_thread_silent and thread_count
17716 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17717 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17718 * event-top.c (async_disconnect): Pop targets from all inferiors.
17719 * exec.c (add_target_sections): Push exec target on all inferiors
17720 sharing the program space.
17721 (remove_target_sections): Remove the exec target from all
17722 inferiors sharing the program space.
17723 (exec_on_vfork): New.
17724 * exec.h (exec_on_vfork): Declare.
17725 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17727 (fbsd_nat_target::update_thread_list): Adjust.
17728 (fbsd_nat_target::resume): Adjust.
17729 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17731 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17732 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17733 get_thread_arch_regcache call.
17734 * fork-child.c (gdb_startup_inferior): Pass target down to
17735 startup_inferior and set_executing.
17736 * gdbthread.h (struct process_stratum_target): Forward declare.
17737 (add_thread, add_thread_silent, add_thread_with_info)
17738 (in_thread_list): Add process_stratum_target parameter.
17739 (find_thread_ptid(inferior*, ptid_t)): New overload.
17740 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17742 (all_threads()): Delete overload.
17743 (all_threads, all_non_exited_threads): Add process_stratum_target
17745 (all_threads_safe): Use brace initialization.
17746 (thread_count): Add process_stratum_target parameter.
17747 (set_resumed, set_running, set_stop_requested, set_executing)
17748 (threads_are_executing, finish_thread_state): Add
17749 process_stratum_target parameter.
17750 (switch_to_thread): Use is_current_thread.
17751 * i386-fbsd-tdep.c: Include "inferior.h".
17752 (i386fbsd_get_thread_local_address): Pass down target.
17753 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17754 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17755 have_inferiors check.
17756 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17757 (inf_ptrace_target::attach): Adjust.
17758 * infcall.c (run_inferior_call): Adjust.
17759 * infcmd.c (run_command_1): Pass target to
17760 scoped_finish_thread_state.
17761 (proceed_thread_callback): Skip inferiors with no execution.
17762 (continue_command): Rename 'all_threads' local to avoid hiding
17763 'all_threads' function. Adjust get_last_target_status call.
17764 (prepare_one_step): Adjust set_running call.
17765 (signal_command): Use user_visible_resume_target. Compare thread
17766 pointers instead of inferior_ptid.
17767 (info_program_command): Adjust to pass down target.
17768 (attach_command): Mark target's 'thread_executing' flag.
17769 (stop_current_target_threads_ns): New, factored out from ...
17770 (interrupt_target_1): ... this. Switch inferior before making
17773 (struct all_inferiors_iterator, struct all_inferiors_range)
17774 (struct all_inferiors_safe_range)
17775 (struct all_non_exited_inferiors_range): Filter on
17776 process_stratum_target too. Remove explicit.
17777 * inferior.c (inferior::inferior): Push dummy target on target
17779 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17780 Add process_stratum_target parameter, and pass it down.
17781 (have_live_inferiors): Adjust.
17782 (switch_to_inferior_and_push_target): New.
17783 (add_inferior_command, clone_inferior_command): Handle
17784 "-no-connection" parameter. Use
17785 switch_to_inferior_and_push_target.
17786 (_initialize_inferior): Mention "-no-connection" option in
17787 the help of "add-inferior" and "clone-inferior" commands.
17788 * inferior.h: Include "process-stratum-target.h".
17789 (interrupt_target_1): Use bool.
17790 (struct inferior) <push_target, unpush_target, target_is_pushed,
17791 find_target_beneath, top_target, process_target, target_at,
17793 (discard_all_inferiors): Delete.
17794 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17795 (all_inferiors, all_non_exited_inferiors): Add
17796 process_stratum_target parameter.
17797 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17798 (target_last_proc_target): New global.
17799 (follow_fork_inferior): Push target on new inferior. Pass target
17800 to add_thread_silent. Call exec_on_vfork. Handle target's
17802 (follow_fork): Adjust get_last_target_status call. Also consider
17804 (follow_exec): Push target on new inferior.
17805 (struct execution_control_state) <target>: New field.
17806 (user_visible_resume_target): New.
17807 (do_target_resume): Call target_async.
17808 (resume_1): Set target's threads_executing flag. Consider resume
17810 (commit_resume_all_targets): New.
17811 (proceed): Also consider resume target. Skip threads of inferiors
17812 with no execution. Commit resumtion in all targets.
17813 (start_remote): Pass current inferior to wait_for_inferior.
17814 (infrun_thread_stop_requested): Consider target as well. Pass
17815 thread_info pointer to clear_inline_frame_state instead of ptid.
17816 (infrun_thread_thread_exit): Consider target as well.
17817 (random_pending_event_thread): New inferior parameter. Use it.
17818 (do_target_wait): Rename to ...
17819 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17821 (threads_are_resumed_pending_p, do_target_wait): New.
17822 (prepare_for_detach): Adjust calls.
17823 (wait_for_inferior): New inferior parameter. Handle it. Use
17824 do_target_wait_1 instead of do_target_wait.
17825 (fetch_inferior_event): Adjust. Switch to representative
17826 inferior. Pass target down.
17827 (set_last_target_status): Add process_stratum_target parameter.
17828 Save target in global.
17829 (get_last_target_status): Add process_stratum_target parameter and
17831 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17832 (context_switch): Check inferior_ptid == null_ptid before calling
17834 (get_inferior_stop_soon): Pass down target.
17835 (wait_one): Rename to ...
17836 (poll_one_curr_target): ... this.
17837 (struct wait_one_event): New.
17839 (stop_all_threads): Adjust.
17840 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17842 (switch_back_to_stepped_thread): Also consider target.
17843 (print_stop_event): Update.
17844 (normal_stop): Update. Also consider the resume target.
17845 * infrun.h (wait_for_inferior): Remove declaration.
17846 (user_visible_resume_target): New declaration.
17847 (get_last_target_status, set_last_target_status): New
17848 process_stratum_target parameter.
17849 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17850 process_stratum_target parameter, and use it.
17851 (clear_inline_frame_state (thread_info*)): New.
17852 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17853 process_stratum_target parameter.
17854 (clear_inline_frame_state (thread_info*)): Declare.
17855 * linux-fork.c (delete_checkpoint_command): Pass target down to
17857 (checkpoint_command): Adjust.
17858 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17859 instead of just tweaking inferior_ptid.
17860 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17861 (exit_lwp): Pass target down to find_thread_ptid.
17862 (attach_proc_task_lwp_callback): Pass target down to
17863 add_thread/set_running/set_executing.
17864 (linux_nat_target::attach): Pass target down to
17865 thread_change_ptid.
17866 (get_detach_signal): Pass target down to find_thread_ptid.
17867 Consider last target status's target.
17868 (linux_resume_one_lwp_throw, resume_lwp)
17869 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17870 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17871 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17872 (linux_nat_target::async_wait_fd): New.
17873 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17875 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17876 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17877 * linux-thread-db.c (struct thread_db_info::process_target): New
17879 (add_thread_db_info): Save target.
17880 (get_thread_db_info): New process_stratum_target parameter. Also
17882 (delete_thread_db_info): New process_stratum_target parameter.
17884 (thread_from_lwp): Adjust to pass down target.
17885 (thread_db_notice_clone): Pass down target.
17886 (check_thread_db_callback): Pass down target.
17887 (try_thread_db_load_1): Always push the thread_db target.
17888 (try_thread_db_load, record_thread): Pass target down.
17889 (thread_db_target::detach): Pass target down. Always unpush the
17891 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17892 target down. Always unpush the thread_db target.
17893 (find_new_threads_callback, thread_db_find_new_threads_2)
17894 (thread_db_target::update_thread_list): Pass target down.
17895 (thread_db_target::pid_to_str): Pass current inferior down.
17896 (thread_db_target::get_thread_local_address): Pass target down.
17897 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17899 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17900 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17901 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17902 (procfs_init_inferior): Rename to ...
17903 (procfs_target::procfs_init_inferior): ... this and adjust.
17904 (procfs_target::create_inferior, procfs_notice_thread)
17905 (procfs_do_thread_registers): Adjust.
17906 * ppc-fbsd-tdep.c: Include "inferior.h".
17907 (ppcfbsd_get_thread_local_address): Pass down target.
17908 * proc-service.c (ps_xfer_memory): Switch current inferior and
17909 program space as well.
17910 (get_ps_regcache): Pass target down.
17911 * process-stratum-target.c
17912 (process_stratum_target::thread_address_space)
17913 (process_stratum_target::thread_architecture): Pass target down.
17914 * process-stratum-target.h
17915 (process_stratum_target::threads_executing): New field.
17916 (as_process_stratum_target): New.
17917 * ravenscar-thread.c
17918 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17919 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17921 * record-btrace.c (record_btrace_target::info_record): Adjust.
17922 (record_btrace_target::record_method)
17923 (record_btrace_target::record_is_replaying)
17924 (record_btrace_target::fetch_registers)
17925 (get_thread_current_frame_id, record_btrace_target::resume)
17926 (record_btrace_target::wait, record_btrace_target::stop): Pass
17928 * record-full.c (record_full_wait_1): Switch to event thread.
17930 * regcache.c (regcache::regcache)
17931 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17932 process_stratum_target parameter and handle it.
17933 (current_thread_target): New global.
17934 (get_thread_regcache): Add process_stratum_target parameter and
17935 handle it. Switch inferior before calling target method.
17936 (get_thread_regcache): Pass target down.
17937 (get_thread_regcache_for_ptid): Pass target down.
17938 (registers_changed_ptid): Add process_stratum_target parameter and
17940 (registers_changed_thread, registers_changed): Pass target down.
17941 (test_get_thread_arch_aspace_regcache): New.
17942 (current_regcache_test): Define a couple local test_target_ops
17943 instances and use them for testing.
17944 (readwrite_regcache): Pass process_stratum_target parameter.
17945 (cooked_read_test, cooked_write_test): Pass mock_target down.
17946 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17947 (get_thread_arch_aspace_regcache): Add process_stratum_target
17949 (regcache::target): New method.
17950 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17951 (regcache::registers_changed_ptid): Add process_stratum_target
17953 (regcache::m_target): New field.
17954 (registers_changed_ptid): Add process_stratum_target parameter.
17955 * remote.c (remote_state::supports_vCont_probed): New field.
17956 (remote_target::async_wait_fd): New method.
17957 (remote_unpush_and_throw): Add remote_target parameter.
17958 (get_current_remote_target): Adjust.
17959 (remote_target::remote_add_inferior): Push target.
17960 (remote_target::remote_add_thread)
17961 (remote_target::remote_notice_new_inferior)
17962 (get_remote_thread_info): Pass target down.
17963 (remote_target::update_thread_list): Skip threads of inferiors
17964 bound to other targets. (remote_target::close): Don't discard
17965 inferiors. (remote_target::add_current_inferior_and_thread)
17966 (remote_target::process_initial_stop_replies)
17967 (remote_target::start_remote)
17968 (remote_target::remote_serial_quit_handler): Pass down target.
17969 (remote_target::remote_unpush_target): New remote_target
17970 parameter. Unpush the target from all inferiors.
17971 (remote_target::remote_unpush_and_throw): New remote_target
17972 parameter. Pass it down.
17973 (remote_target::open_1): Check whether the current inferior has
17974 execution instead of checking whether any inferior is live. Pass
17976 (remote_target::remote_detach_1): Pass down target. Use
17977 remote_unpush_target.
17978 (extended_remote_target::attach): Pass down target.
17979 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17980 (remote_target::append_resumption): Pass down target.
17981 (remote_target::append_pending_thread_resumptions)
17982 (remote_target::remote_resume_with_hc, remote_target::resume)
17983 (remote_target::commit_resume): Pass down target.
17984 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17985 (remote_target::interrupt_query)
17986 (remote_target::remove_new_fork_children)
17987 (remote_target::check_pending_events_prevent_wildcard_vcont)
17988 (remote_target::remote_parse_stop_reply)
17989 (remote_target::process_stop_reply): Pass down target.
17990 (first_remote_resumed_thread): New remote_target parameter. Pass
17992 (remote_target::wait_as): Pass down target.
17993 (unpush_and_perror): New remote_target parameter. Pass it down.
17994 (remote_target::readchar, remote_target::remote_serial_write)
17995 (remote_target::getpkt_or_notif_sane_1)
17996 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17998 (remote_target::mourn_inferior): Pass down target. Use
17999 remote_unpush_target.
18000 (remote_target::core_of_thread)
18001 (remote_target::remote_btrace_maybe_reopen): Pass down target.
18002 (remote_target::pid_to_exec_file)
18003 (remote_target::thread_handle_to_thread_info): Pass down target.
18004 (remote_target::async_wait_fd): New.
18005 * riscv-fbsd-tdep.c: Include "inferior.h".
18006 (riscv_fbsd_get_thread_local_address): Pass down target.
18007 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
18008 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
18009 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
18011 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
18012 * solib-svr4.c (enable_break): Pass down target.
18013 * spu-multiarch.c (parse_spufs_run): Pass down target.
18014 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
18015 * target-delegates.c: Regenerate.
18016 * target.c (g_target_stack): Delete.
18017 (current_top_target): Return the current inferior's top target.
18018 (target_has_execution_1): Refer to the passed-in inferior's top
18020 (target_supports_terminal_ours): Check whether the initial
18021 inferior was already created.
18022 (decref_target): New.
18023 (target_stack::push): Incref/decref the target.
18024 (push_target, push_target, unpush_target): Adjust.
18025 (target_stack::unpush): Defref target.
18026 (target_is_pushed): Return bool. Adjust to refer to the current
18027 inferior's target stack.
18028 (dispose_inferior): Delete, and inline parts ...
18029 (target_preopen): ... here. Only dispose of the current inferior.
18030 (target_detach): Hold strong target reference while detaching.
18032 (target_thread_name): Add assertion.
18033 (target_resume): Pass down target.
18034 (target_ops::beneath, find_target_at): Adjust to refer to the
18035 current inferior's target stack.
18036 (get_dummy_target): New.
18037 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
18038 has a thread running.
18039 (initialize_targets): Rename to ...
18040 (_initialize_target): ... this.
18041 * target.h: Include "gdbsupport/refcounted-object.h".
18042 (struct target_ops): Inherit refcounted_object.
18043 (target_ops::shortname, target_ops::longname): Make const.
18044 (target_ops::async_wait_fd): New method.
18045 (decref_target): Declare.
18046 (struct target_ops_ref_policy): New.
18047 (target_ops_ref): New typedef.
18048 (get_dummy_target): Declare function.
18049 (target_is_pushed): Return bool.
18050 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
18051 (all_matching_threads_iterator::all_matching_threads_iterator):
18052 Handle filter target.
18053 * thread-iter.h (struct all_matching_threads_iterator, struct
18054 all_matching_threads_range, class all_non_exited_threads_range):
18055 Filter by target too. Remove explicit.
18056 * thread.c (threads_executing): Delete.
18057 (inferior_thread): Pass down current inferior.
18058 (clear_thread_inferior_resources): Pass down thread pointer
18060 (add_thread_silent, add_thread_with_info, add_thread): Add
18061 process_stratum_target parameter. Use it for thread and inferior
18063 (is_current_thread): New.
18064 (thread_info::deletable): Use it.
18065 (find_thread_ptid, thread_count, in_thread_list)
18066 (thread_change_ptid, set_resumed, set_running): New
18067 process_stratum_target parameter. Pass it down.
18068 (set_executing): New process_stratum_target parameter. Pass it
18069 down. Adjust reference to 'threads_executing'.
18070 (threads_are_executing): New process_stratum_target parameter.
18071 Adjust reference to 'threads_executing'.
18072 (set_stop_requested, finish_thread_state): New
18073 process_stratum_target parameter. Pass it down.
18074 (switch_to_thread): Also match inferior.
18075 (switch_to_thread): New process_stratum_target parameter. Pass it
18077 (update_threads_executing): Reimplement.
18078 * top.c (quit_force): Pop targets from all inferior.
18079 (gdb_init): Don't call initialize_targets.
18080 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
18082 (windows_add_thread, windows_delete_thread): Adjust.
18083 (get_windows_debug_event): Rename to ...
18084 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
18085 * tracefile-tfile.c (tfile_target_open): Pass down target.
18086 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
18088 (switch_to_thread): Add process_stratum_target parameter.
18089 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
18091 (mi_on_resume): Pass target down.
18092 * nat/fork-inferior.c (startup_inferior): Add
18093 process_stratum_target parameter. Pass it down.
18094 * nat/fork-inferior.h (startup_inferior): Add
18095 process_stratum_target parameter.
18096 * python/py-threadevent.c (py_get_event_thread): Pass target down.
18098 2020-01-10 Pedro Alves <palves@redhat.com>
18100 * remote.c (remote_target::start_remote): Don't set inferior_ptid
18101 directly. Instead find the first thread in the thread list and
18102 use switch_to_thread.
18104 2020-01-10 Pedro Alves <palves@redhat.com>
18106 * remote.c (remote_target::remote_add_inferior): Don't bind a
18107 process to the current inferior if the current inferior is already
18108 bound to a process.
18110 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
18111 Pedro Alves <palves@redhat.com>
18113 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
18114 If no process is specified, return null_ptid instead of
18116 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
18117 TARGET_WAITKIND_SIGNALLED with no pid.
18119 2020-01-10 Pedro Alves <palves@redhat.com>
18121 * remote.c (first_remote_resumed_thread): New.
18122 (remote_target::wait_as): Use it as default event_ptid instead of
18125 2020-01-10 Pedro Alves <palves@redhat.com>
18127 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
18129 2020-01-10 Pedro Alves <palves@redhat.com>
18131 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
18134 2020-01-10 Pedro Alves <palves@redhat.com>
18136 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
18137 ptid to get_last_target_status.
18138 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
18139 ptid to get_last_target_status.
18140 * infcmd.c (continue_command): Don't pass a target_waitstatus to
18141 get_last_target_status.
18142 (info_program_command): Don't pass a target_waitstatus to
18143 get_last_target_status.
18144 * infrun.c (init_wait_for_inferior): Use
18145 nullify_last_target_wait_ptid.
18146 (get_last_target_status): Handle nullptr arguments.
18147 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
18148 (print_stop_event): Don't pass a ptid to get_last_target_status.
18149 (normal_stop): Don't pass a ptid to get_last_target_status.
18150 * infrun.h (get_last_target_status, set_last_target_status): Move
18151 comments here and update.
18152 (nullify_last_target_wait_ptid): Declare.
18153 * linux-fork.c (fork_load_infrun_state): Remove local extern
18154 declaration of nullify_last_target_wait_ptid.
18155 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
18156 to get_last_target_status.
18158 2020-01-10 Pedro Alves <palves@redhat.com>
18160 * gdbthread.h (scoped_restore_current_thread)
18161 <dont_restore, restore, m_dont_restore>: Declare.
18162 * thread.c (thread_alive): Add assertion. Return bool.
18163 (switch_to_thread_if_alive): New.
18164 (prune_threads): Switch inferior/thread.
18165 (print_thread_info_1): Switch thread before calling target methods.
18166 (scoped_restore_current_thread::restore): New, factored out from
18168 (scoped_restore_current_thread::~scoped_restore_current_thread):
18170 (scoped_restore_current_thread::scoped_restore_current_thread):
18172 (thread_apply_all_command, thread_select): Use
18173 switch_to_thread_if_alive.
18174 * infrun.c (proceed, restart_threads, handle_signal_stop)
18175 (switch_back_to_stepped_thread): Switch current thread before
18176 calling target methods.
18178 2020-01-10 Pedro Alves <palves@redhat.com>
18180 * inferior.c (switch_to_inferior_no_thread): New function,
18181 factored out from ...
18182 (inferior_command): ... here.
18183 * inferior.h (switch_to_inferior_no_thread): Declare.
18184 * mi/mi-main.c (run_one_inferior): Use
18185 switch_to_inferior_no_thread.
18187 2020-01-10 Pedro Alves <palves@redhat.com>
18189 * infcmd.c (kill_command): Remove dead code.
18191 2020-01-10 Pedro Alves <palves@redhat.com>
18193 * remote.c (remote_target::mourn_inferior): No longer check
18194 whether the target is running.
18196 2020-01-10 Pedro Alves <palves@redhat.com>
18198 * corelow.c (core_target::has_execution): Change parameter type to
18200 * inferior.c (number_of_live_inferiors): Use
18201 inferior::has_execution instead of target_has_execution_1.
18202 * inferior.h (inferior::has_execution): New.
18203 * linux-thread-db.c (thread_db_target::update_thread_list): Use
18204 inferior::has_execution instead of target_has_execution_1.
18205 * process-stratum-target.c
18206 (process_stratum_target::has_execution): Change parameter type to
18207 inferior pointer. Check the inferior's PID instead of
18209 * process-stratum-target.h
18210 (process_stratum_target::has_execution): Change parameter type to
18212 * record-full.c (record_full_core_target::has_execution): Change
18213 parameter type to inferior pointer.
18214 * target.c (target_has_execution_1): Change parameter type to
18216 (target_has_execution_current): Adjust.
18217 * target.h (target_ops::has_execution): Change parameter type to
18219 (target_has_execution_1): Change parameter type to inferior
18220 pointer. Change return type to bool.
18221 * tracefile.h (tracefile_target::has_execution): Change parameter
18222 type to inferior pointer.
18224 2020-01-10 Pedro Alves <palves@redhat.com>
18226 * exceptions.c (print_flush): Remove current_top_target() check.
18228 2020-01-10 Pedro Alves <palves@redhat.com>
18230 * remote.c (show_remote_exec_file): Show the current inferior's
18231 exec-file instead of the command variable's value.
18233 2020-01-10 Pedro Alves <palves@redhat.com>
18235 * record-full.c (record_full_resume_ptid): New global.
18236 (record_full_target::resume): Set it.
18237 (record_full_wait_1): Use record_full_resume_ptid instead of
18240 2020-01-10 Pedro Alves <palves@redhat.com>
18242 * gdbthread.h (scoped_restore_current_thread)
18243 <dont_restore, restore, m_dont_restore>: Declare.
18244 * thread.c (thread_alive): Add assertion. Return bool.
18245 (switch_to_thread_if_alive): New.
18246 (prune_threads): Switch inferior/thread.
18247 (print_thread_info_1): Switch thread before calling target methods.
18248 (scoped_restore_current_thread::restore): New, factored out from
18250 (scoped_restore_current_thread::~scoped_restore_current_thread):
18252 (scoped_restore_current_thread::scoped_restore_current_thread):
18254 (thread_apply_all_command, thread_select): Use
18255 switch_to_thread_if_alive.
18257 2020-01-10 George Barrett <bob@bob131.so>
18259 * stap-probe.c (stap_modify_semaphore): Don't check for null
18261 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18262 for null semaphores.
18264 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18266 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18267 all source windows, and maintain horizontal scroll status while
18270 2020-01-09 Tom Tromey <tom@tromey.com>
18273 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18274 update_source_window, not print_source_lines.
18276 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18278 * tui/tui.c (tui_enable): Register tui hooks after calling
18281 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18283 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18285 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
18287 * thread.c (print_thread_info_1): Fix indentation.
18289 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18291 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18292 unique_xmalloc_ptr outside the if to always free the demangled name.
18294 2020-01-08 Tom Tromey <tromey@adacore.com>
18296 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18297 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18298 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18299 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18301 (section_offsets): New typedef.
18302 * symtab.c (fixup_section, get_msymbol_address): Update.
18303 * symmisc.c (dump_msymbols): Update.
18304 * symfile.h (relative_addr_info_to_section_offsets)
18305 (symfile_map_offsets_to_segments): Update.
18306 * symfile.c (build_section_addr_info_from_objfile)
18307 (init_objfile_sect_indices): Update.
18308 (struct place_section_arg): Change type of "offsets".
18309 (place_section): Update.
18310 (relative_addr_info_to_section_offsets): Change type of
18311 "section_offsets". Remove "num_sections" parameter.
18312 (default_symfile_offsets, syms_from_objfile_1)
18313 (set_objfile_default_section_offset): Update.
18314 (reread_symbols): No need to preserve section offsets by hand.
18315 (symfile_map_offsets_to_segments): Change type of "offsets".
18316 * stap-probe.c (relocate_address): Update.
18317 * stabsread.h (process_one_symbol): Update.
18318 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18319 (solib_target_relocate_section_addresses): Update.
18320 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18322 * solib-frv.c (frv_relocate_main_executable): Update.
18323 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18324 * solib-aix.c (solib_aix_get_section_offsets): Change return
18326 (solib_aix_solib_create_inferior_hook): Update.
18327 * remote.c (remote_target::get_offsets): Update.
18328 * psymtab.c (find_pc_sect_psymtab): Update.
18329 * psympriv.h (struct partial_symbol) <address, text_low,
18330 text_high>: Update.
18331 * objfiles.h (obj_section_offset): Update.
18332 (struct objfile) <section_offsets>: Change type.
18333 <num_sections>: Remove.
18334 (objfile_relocate): Update.
18335 * objfiles.c (entry_point_address_query): Update
18336 (relocate_one_symbol): Change type of "section_offsets".
18337 (objfile_relocate1, objfile_relocate1): Change type of
18339 (objfile_rebase1): Update.
18340 * mipsread.c (mipscoff_symfile_read): Update.
18341 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18343 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18344 (parse_external, psymtab_to_symtab_1): Update.
18345 * machoread.c (macho_symfile_offsets): Update.
18346 * ia64-tdep.c (ia64_find_unwind_table): Update.
18347 * hppa-tdep.c (read_unwind_info): Update.
18348 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18349 * dwarf2read.c (create_addrmap_from_index)
18350 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18351 (process_psymtab_comp_unit_reader, add_partial_symbol)
18352 (add_partial_subprogram, process_full_comp_unit)
18353 (read_file_scope, read_func_scope, read_lexical_block_scope)
18354 (read_call_site_scope, dwarf2_rnglists_process)
18355 (dwarf2_ranges_process, dwarf2_ranges_read)
18356 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18357 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18359 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18361 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18362 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18363 (process_one_symbol): Change type of "section_offsets".
18364 * ctfread.c (get_objfile_text_range): Update.
18365 * coffread.c (coff_symtab_read, enter_linenos)
18366 (process_coff_symbol): Update.
18367 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18368 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18370 2020-01-08 Tom Tromey <tromey@adacore.com>
18372 * dwarf2read.c (parse_macro_definition): Use std::string.
18373 (parse_macro_definition): Likewise.
18375 2020-01-08 Tom Tromey <tromey@adacore.com>
18377 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18378 (ATTR_ALLOC_CHUNK): Remove.
18380 2020-01-08 Tom Tromey <tromey@adacore.com>
18382 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18384 2020-01-08 Tom Tromey <tromey@adacore.com>
18386 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18387 (dwarf2_compute_name, open_dwo_file): Likewise.
18388 (process_enumeration_scope): Use std::vector.
18389 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18390 (partial_die_info::fixup, dwarf2_start_subfile)
18391 (guess_full_die_structure_name, dwarf2_name): Likewise.
18392 (determine_prefix): Update.
18393 (guess_full_die_structure_name): Make return type const.
18394 (partial_die_full_name): Return unique_xmalloc_ptr.
18395 (DW_FIELD_ALLOC_CHUNK): Remove.
18397 2020-01-07 Tom Tromey <tromey@adacore.com>
18400 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18402 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18404 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18406 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18408 * stack.c (print_frame_info): Move disassemble_next_line code
18409 inside source_print block.
18411 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18413 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18414 gdb/signals.h, as we are now using native signal symbols.
18416 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18418 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18419 overflow by an early check of content vs threshold.
18420 * tui/tui-source.c (tui_source_window::line_is_displayed):
18423 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18425 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18427 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18429 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18430 export table if no section contains it's RVA.
18432 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18434 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18436 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18438 * source.c (print_source_lines_base): Set last_line_listed.
18440 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18442 * tui/tui-disasm.c: Remove trailing spaces.
18444 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18445 Pedro Alves <palves@redhat.com>
18447 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18448 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18449 (windows_gdb_signal_to_target): New function, uses the above
18450 enumeration to convert GDB internal signal codes to equivalent
18452 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18453 * windows-nat.c: Include "gdb_wait.h".
18454 (get_windows_debug_event): Extract the fatal exception from the
18455 exit status and convert to the equivalent Posix signal number.
18456 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18457 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18458 * gdbsupport/gdb_wait.c: New file, implements
18459 windows_status_to_termsig.
18460 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18461 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18463 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18465 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18468 2020-01-05 Luis Machado <luis.machado@linaro.org>
18470 * aarch64-linux-nat.c
18471 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18472 and bfd_mach_aarch64.
18474 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18476 * ui-file.c (stdio_file::can_emit_style_escape)
18477 (tee_file::can_emit_style_escape): Ensure style is used also on
18478 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18480 * main.c (set_gdb_data_directory): Use file style to output the
18481 warning that the given pathname is not a directory.
18482 * top.c (show_history_filename, gdb_safe_append_history)
18483 (show_gdb_datadir): Use file style.
18485 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18487 * solib-target.c (struct lm_info_target):
18488 Change offsets to be a unique_xmalloc_ptr.
18489 (solib_target_relocate_section_addresses): Update.
18491 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18493 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18495 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18497 * MAINTAINERS (Write After Approval): Add myself.
18499 2020-01-02 Luis Machado <luis.machado@linaro.org>
18501 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18502 Cell BE architecture.
18503 * target.h (struct target_ops) <thread_architecture>: Likewise.
18505 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18507 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18509 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18511 * MAINTAINERS (Write After Approval): Add myself.
18513 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18515 * gdbarch.sh: Update copyright year range of generated files.
18517 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18519 Update copyright year range in all GDB files.
18521 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18523 * copyright.py: Convert to Python 3.
18525 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18527 * copyright.py: Adapt after move of gnulib directory from gdb
18528 directory to toplevel directory.
18530 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18532 * copyright.py (main): Exit if run from the wrong directory.
18534 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18536 * top.c (print_gdb_version): Change copyright year to 2020.
18538 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18540 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18542 For older changes see ChangeLog-2019.
18548 version-control: never