1 2020-12-16 Tom Tromey <tom@tromey.com>
2 Tom Tromey <tromey@redhat.com>
3 Tom de Vries <tdevries@suse.de>
5 * utils.h (get_chars_per_line): Declare.
6 * utils.c (get_chars_per_line): New function.
7 (fputs_maybe_filtered): Handle '\r'.
8 * ui-out.h (ui_out::progress_meter): New class.
9 (ui_out::progress, ui_out::do_progress_start)
10 (ui_out::do_progress_notify, ui_out::do_progress_end): New
12 * ui-out.c (do_progress_end)
13 (make_cleanup_ui_out_progress_begin_end, ui_out_progress): New
15 * mi/mi-out.h (mi_ui_out::do_progress_start)
16 (mi_ui_out::do_progress_notify, mi_ui_out::do_progress_end): New
18 * cli-out.h (struct cli_ui_out) <do_progress_start,
19 do_progress_notify, do_progress_end>: New methods.
20 <enum meter_stat, struct cli_progress_info>: New.
21 <m_meters>: New member.
22 * cli-out.c (cli_ui_out::do_progress_start)
23 (cli_ui_out::do_progress_notify, cli_ui_out::do_progress_end): New
26 2020-12-16 Luis Machado <luis.machado@linaro.org>
28 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Record FPSR.
30 2020-12-16 Luis Machado <luis.machado@linaro.org>
33 (aarch64_linux_nat_target::stopped_data_address): Handle the TBI.
35 2020-12-15 Rae Kim <rae.kim@gmail.com>
37 * cli/cli-script.c (do_document_command): Rename from
38 document_command. Handle multi-line input.
39 (multi_line_command_p): Handle document_control.
40 (build_command_line): Likewise.
41 (execute_control_command_1): Likewise.
42 (process_next_line): Likewise.
43 (document_command): Call do_document_command.
44 * cli/cli-script.h (enum command_control_type): Add
47 2020-12-15 Tom Tromey <tom@tromey.com>
49 * stap-probe.c (stap_probe::evaluate_argument): Use
51 * dtrace-probe.c (dtrace_probe::evaluate_argument): Use
53 * value.h (evaluate_expression): Add expect_type parameter.
54 * objc-lang.c (print_object_command): Call evaluate_expression.
55 * eval.c (evaluate_expression): Add expect_type parameter.
57 2020-12-15 Tom Tromey <tom@tromey.com>
59 * varobj.c (varobj_create): Use first_opcode.
60 * value.c (init_if_undefined_command): Use first_opcode.
61 * typeprint.c (whatis_exp): Use first_opcode.
62 * tracepoint.c (validate_actionline): Use first_opcode.
63 (encode_actions_1): Use first_opcode.
64 * stack.c (return_command): Use first_opcode.
65 * expression.h (struct expression) <first_opcode>: New method.
66 * eval.c (parse_and_eval_type): Use first_opcode.
67 * dtrace-probe.c (dtrace_process_dof_probe): Use first_opcode.
69 2020-12-15 Tom Tromey <tom@tromey.com>
71 * f-lang.c (evaluate_subexp_f): Update.
72 * expression.h (evaluate_subexp_do_call): Update.
73 * eval.c (evaluate_subexp_do_call): Add callee parameter. Replace
74 nargs, argvec with array_view.
75 (evaluate_funcall): Update.
77 2020-12-15 Tom Tromey <tom@tromey.com>
79 * ada-lang.c (num_component_specs): Remove.
80 (assign_aggregate): Update.
81 (aggregate_assign_positional, aggregate_assign_from_choices)
82 (aggregate_assign_others, add_component_interval): Change
85 2020-12-15 Tom Tromey <tromey@adacore.com>
87 * cli/cli-decode.c (deprecated_cmd_warning): Use title style for
90 2020-12-14 Tom Tromey <tom@tromey.com>
92 * dtrace-probe.c (dtrace_process_dof_probe): Use value_type.
93 * typeprint.c (whatis_exp): Always use evaluate_type.
94 (maintenance_print_type): Likewise. Simplify.
96 2020-12-14 Tom Tromey <tromey@adacore.com>
98 * dictionary.c (language_defn::search_name_hash): Ignore "B".
99 * ada-lang.c (advance_wild_match): Ignore "B".
100 (full_match): Remove.
101 (do_full_match): Rewrite.
103 2020-12-14 Tom Tromey <tromey@adacore.com>
105 * ada-lang.c (get_var_value): Only consider exact matches.
107 2020-12-14 Tom Tromey <tromey@adacore.com>
109 * dwarf2/read.c (rewrite_array_type): New function.
110 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
112 2020-12-14 Tom Tromey <tromey@adacore.com>
114 * valarith.c (fixed_point_binop): Call error on division by zero.
116 2020-12-13 Tom Tromey <tom@tromey.com>
118 * gdbtypes.c (safe_parse_type): Make argument const.
119 * value.h (parse_and_eval_type): Make argument const.
120 * eval.c (parse_and_eval_type): Make argument const.
122 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
124 * NEWS: Mention new commands.
125 * target-dcache.c: Add 'cli/cli-cmds.h' include.
126 (maint_flush_dcache_command): New function.
127 (_initialize_target_dcache): Create new 'maint flush dcache'
130 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
132 * NEWS: Mention new commands, and that the old commands are now
134 * cli/cli-cmds.c (maintenanceflushlist): Define.
135 * cli/cli-cmds.h (maintenanceflushlist): Declare.
136 * maint.c (_initialize_maint_cmds): Initialise
137 maintenanceflushlist.
138 * regcache.c: Add 'cli/cli-cmds.h' include.
139 (reg_flush_command): Add header comment.
140 (_initialize_regcache): Create new 'maint flush register-cache'
141 command, make 'flushregs' an alias.
142 * symtab.c: Add 'cli/cli-cmds.h' include.
143 (_initialize_symtab): Create new 'maint flush symbol-cache'
144 command, make old command an alias.
146 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
148 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
149 result from lookup_cmd_composition_1, use the prefixes from both
150 the command and the alias instead.
151 (lookup_cmd_composition_1): Initial prefix command is the based on
152 the search list being passed in. Simplify the logic for tracking
153 the prefix command. Replace a use of alloca with a local
156 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
158 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
159 of NULL. Don't print message piece by piece, but sentence at a
160 time to allow internationalisation. Some whitespace cleanup.
162 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
165 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
166 deprecated_cmd_warning.
167 (deprecated_cmd_warning): Take extra parameter, call
168 lookup_cmd_composition_1 and pass new parameter through.
169 (lookup_cmd_composition_1): New function, takes implementation of
170 lookup_cmd_composition but with extra parameter.
171 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
173 * command.h (deprecated_cmd_warning): Add extra parameter to
175 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
177 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
179 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
180 command.h, add extra parameter, and use this to guard giving a
182 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
183 include argument names in declaration, add new argument.
184 * completer.c (complete_line_internal_1): Remove unneeded
185 brackets, pass extra argument to lookup_cmd_1.
187 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
189 * infrun.h (debug_infrun): Make a bool.
190 * infrun.c (debug_infrun): Make a bool.
191 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
194 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
196 * displaced-stepping.h (displaced_debug_printf): Use
197 debug_prefixed_printf_cond.
198 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
199 (dwarf_read_debug_printf_v): Likewise.
200 * infrun.h (infrun_debug_printf): Likewise.
201 * linux-nat.c (linux_nat_debug_printf): Likewise.
203 2020-12-11 Tom Tromey <tom@tromey.com>
205 * p-exp.y (intvar): Remove global.
206 (DOLLAR_VARIABLE): Change type.
208 (exp): Call write_dollar_variable here...
209 (yylex): ... not here.
210 * m2-exp.y (DOLLAR_VARIABLE): Change type.
211 (variable): Call write_dollar_variable here...
212 (yylex): ... not here.
213 * f-exp.y (DOLLAR_VARIABLE): Change type.
214 (exp): Call write_dollar_variable here...
215 (yylex): ... not here.
217 2020-12-11 Tom Tromey <tom@tromey.com>
219 * varobj.c (varobj_create): Update.
220 (install_variable): Return void.
222 2020-12-11 Tom Tromey <tom@tromey.com>
224 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
226 2020-12-11 Tom Tromey <tom@tromey.com>
228 * varobj.c (varobj_clear_saved_item): Remove.
229 (update_dynamic_varobj_children): Update.
230 (varobj::~varobj): Don't call varobj_clear_saved_item.
232 2020-12-11 Tom Tromey <tom@tromey.com>
234 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
235 (update_dynamic_varobj_children, create_child)
236 (create_child_with_value): Update.
237 * varobj-iter.h (struct varobj_item) <value>: Now a
239 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
241 2020-12-11 Tom Tromey <tom@tromey.com>
243 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
244 (varobj_get_iterator): Return unique_ptr.
245 (update_dynamic_varobj_children, install_visualizer)
246 (varobj::~varobj): Update.
247 * python/python-internal.h (py_varobj_get_iterator): Return
249 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
251 2020-12-11 Tom Tromey <tom@tromey.com>
253 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
254 (varobj_clear_saved_item, update_dynamic_varobj_children):
257 2020-12-11 Tom Tromey <tom@tromey.com>
259 * varobj.c (update_dynamic_varobj_children): Update.
260 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
261 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
263 (py_varobj_iter::next): Likewise.
265 2020-12-11 Tom Tromey <tom@tromey.com>
267 * varobj.c (update_dynamic_varobj_children, install_visualizer)
268 (varobj::~varobj): Update.
269 * varobj-iter.h (struct varobj_iter): Change to interface class.
270 (struct varobj_iter_ops): Remove.
271 (varobj_iter_next, varobj_iter_delete): Remove.
272 * python/py-varobj.c (struct py_varobj_iter): Derive from
273 varobj_iter. Add constructor, destructor. Rename members.
274 (py_varobj_iter::~py_varobj_iter): Rename from
276 (py_varobj_iter::next): Rename from py_varobj_iter_next.
277 (py_varobj_iter_ops): Remove.
278 (py_varobj_iter): Rename from py_varobj_iter_ctor.
279 (py_varobj_iter_new): Remove.
280 (py_varobj_get_iterator): Update.
282 2020-12-11 Tom Tromey <tom@tromey.com>
284 * varobj.h (all_root_varobjs): Take a function_view.
285 * varobj.c (all_root_varobjs): Take a function_view.
286 (varobj_invalidate_iter): Remove unused parameter.
287 (varobj_invalidate): Update.
288 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
289 (mi_cmd_var_update_iter): Change parameters.
291 2020-12-11 Tom Tromey <tom@tromey.com>
293 * varobj.c (struct varobj_root) <next>: Remove.
294 (struct vlist): Remove.
295 (rootlist): Now a std::list.
296 (install_variable, uninstall_variable, all_root_varobjs): Update.
298 2020-12-11 Tom Tromey <tom@tromey.com>
300 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
301 (varobj_table): Now htab_t.
302 (varobj_get_handle, install_variable, uninstall_variable):
304 (hash_varobj, eq_varobj_and_string): New functions.
305 (hash_varobj): Update.
307 2020-12-11 Tom Tromey <tom@tromey.com>
309 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
310 * ada-lang.c (check_status_exception): Update.
311 * breakpoint.c (free_bp_location): Remove.
312 (decref_bp_location): Use bp_location_ref_policy.
313 (bpstats::bpstats): Don't call incref_bp_location.
314 (bpstats::~bpstats): Remove.
315 (bpstats::bpstats): Update.
316 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
317 (bp_location::bp_location): Update.
318 (incref_bp_location): Remove.
319 (bkpt_print_it): Update.
320 * breakpoint.h (class bp_location): Derive from
322 (struct bpstats): Remove destructor.
323 <bp_location_at>: Now a bp_location_ref_ptr.
325 (bp_location_ref_ptr): New typedef.
326 (struct bp_location_ref_policy): New.
328 2020-12-11 Tom Tromey <tom@tromey.com>
330 * thread.c (class scoped_inc_dec_ref): Remove.
331 (tp_array_compar_ascending, tp_array_compar_descending): Change
333 (thread_apply_all_command): Use thread_info_ref.
335 2020-12-11 Tom Tromey <tom@tromey.com>
337 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
338 (stop_context::stop_context): Update.
339 (stop_context::~stop_context): Remove.
341 2020-12-11 Tom Tromey <tom@tromey.com>
343 * inferior.c (current_inferior_): Change type.
344 (current_inferior, set_current_inferior, initialize_inferiors):
347 2020-12-11 Tom Tromey <tom@tromey.com>
349 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
352 2020-12-11 Tom Tromey <tromey@adacore.com>
354 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
356 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
357 (read_atcb): Use cpu_id_offset.
359 2020-12-10 Kevin Buettner <kevinb@redhat.com>
361 * ada-lang.c (ada_fold_name): Fix off-by-one error.
363 2020-12-10 Luis Machado <luis.machado@linaro.org>
365 * breakpoint.c (should_be_inserted): Don't output newline.
367 2020-12-10 Luis Machado <luis.machado@linaro.org>
369 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
370 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
371 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
372 * arch/aarch64.h: ... here.
373 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
374 (aarch64_maybe_swab128): New function.
375 (aarch64_sve_regs_copy_to_reg_buf)
376 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
377 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
379 (TF_REG_VALUE_BYTES): New enum value.
380 (trad_frame_value_bytes_p): New function.
381 (trad_frame_set_value_bytes): New function.
382 (trad_frame_set_reg_value_bytes): New function.
383 (trad_frame_get_prev_register): Handle register values saved as bytes.
384 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
385 (struct trad_frame_saved_reg) <data>: New field.
386 (trad_frame_set_value_bytes): New prototype.
387 (trad_frame_value_bytes_p): New prototype.
389 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
391 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
392 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
393 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
395 2020-12-09 Tom Tromey <tromey@adacore.com>
397 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
399 2020-12-09 Tom Tromey <tromey@adacore.com>
401 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
402 and "denominator" to gdb_mpz. Handle block forms.
403 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
404 "denominator" to gdb_mpz.
405 (finish_fixed_point_type): Update.
406 (has_zero_over_zero_small_attribute): Update.
408 2020-12-09 Tom Tromey <tromey@adacore.com>
410 * expprint.c (op_name): Update.
411 * expression.h (enum exp_opcode): Update.
412 * std-operator.def: Add more opcodes.
413 * ada-operator.def, fortran-operator.def: Remove, moving contents
414 into std-operator.def.
416 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
418 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
419 Return {} instead of false.
420 (get_discrete_bounds): Compute high bound only if low bound is
423 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
426 * gdbtypes.c (get_discrete_low_bound): Make non-static.
427 (get_discrete_high_bound): Make non-static.
428 * gdbtypes.h (get_discrete_low_bound): New declaration.
429 (get_discrete_high_bound): New declaration.
430 * valarith.c (value_subscript): Only fetch high bound if
433 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
435 * gdbtypes.c (get_discrete_bounds): Implement with
436 get_discrete_low_bound and get_discrete_high_bound.
437 (get_discrete_low_bound): New.
438 (get_discrete_high_bound): New.
440 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
442 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
444 * gdbtypes.c (get_discrete_bounds): Return bool.
446 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
448 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
449 (ada_value_slice): Adjust.
451 * gdbtypes.c (get_discrete_bounds): Adjust.
452 (discrete_position): Return optional.
453 * gdbtypes.h (discrete_position): Return optional.
455 2020-12-07 Tom Tromey <tromey@adacore.com>
457 * maint.c (_initialize_maint_cmds): Use expression command
458 completer for "maint print type".
460 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
462 * completer.c (complete_explicit_location): Also add keywords
463 that start with '-' to the completion list.
465 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
467 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
468 keyword may be followed by any keyword.
469 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
470 'toklen' in the case for "-force-condition".
472 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
474 * main.c (catch_command_errors): Add a flag parameter; invoke
475 `bpstat_do_actions` if the flag is set.
476 (execute_cmdargs): Update a call to `catch_command_errors`.
478 2020-12-07 Tom de Vries <tdevries@suse.de>
480 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
482 2020-12-06 Tom Tromey <tom@tromey.com>
485 * ada-lang.c (replace_operator_with_call): Rewrite.
487 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
490 * s390-tdep.h (op_bc): Correct BC opcode value.
492 2020-12-06 Joel Brobecker <brobecker@adacore.com>
494 * gmp-utils.h (gdb_mpz::safe_export): New private method.
495 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
496 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
497 (gdb_mpz::safe_export): New method.
498 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
499 Update function description.
500 (check_as_integer_raises_out_of_range_error): New function.
501 (gdb_mpz_as_integer_out_of_range): New function.
502 (_initialize_gmp_utils_selftests): Register
503 gdb_mpz_as_integer_out_of_range as a selftest.
505 2020-12-05 Joel Brobecker <brobecker@adacore.com>
507 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
509 (gdb_mpz::write): Likewise.
511 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
513 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
514 number of displaced step buffers.
516 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
518 * displaced-stepping.h (struct displaced_step_buffer): Rename
520 (struct displaced_step_buffers): ... this.
521 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
522 <struct displaced_step_buffer>: New inner class.
524 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
526 (displaced_step_buffers::prepare): ... this, adjust for multiple
528 (displaced_step_buffer::finish): Rename to...
529 (displaced_step_buffers::finish): ... this, adjust for multiple
531 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
532 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
533 adjust for multiple buffers.
534 (displaced_step_buffer::restore_in_ptid): Rename to...
535 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
537 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
538 for num_disp_step_buffers.
539 * linux-tdep.c (struct linux_gdbarch_data)
540 <num_disp_step_buffers>: New field.
541 (struct linux_info) <disp_step_buf>: Rename to...
542 <disp_step_bufs>: ... this, change type to
543 displaced_step_buffers.
544 (linux_displaced_step_prepare): Use
545 linux_gdbarch_data::num_disp_step_buffers to create that number
547 (linux_displaced_step_finish): Adjust.
548 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
549 (linux_displaced_step_restore_all_in_ptid): Adjust.
550 (linux_init_abi): Change supports_displaced_step parameter for
551 num_disp_step_buffers, save it in linux_gdbarch_data.
552 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
553 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
554 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
555 supports_displaced_step parameter for num_disp_step_buffers.
556 (amd64_linux_init_abi): Adjust.
557 (amd64_x32_linux_init_abi): Adjust.
558 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
559 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
560 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
561 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
562 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
563 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
564 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
565 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
566 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
567 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
568 * m68k-linux-tdep.c (m68k_linux_init_abi):
569 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
570 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
571 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
572 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
573 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
574 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
575 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
576 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
577 Change type to displaced_step_buffers.
578 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
579 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
580 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
581 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
582 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
583 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
584 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
586 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
588 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
590 (_initialize_linux_tdep): Register pre-init gdb data instead of
593 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
595 * displaced-stepping.h (struct
596 displaced_step_copy_insn_closure): Adjust comments.
597 (struct displaced_step_inferior_state) <step_thread,
598 step_gdbarch, step_closure, step_original, step_copy,
599 step_saved_copy>: Remove fields.
600 (struct displaced_step_thread_state): New.
601 (struct displaced_step_buffer): New.
602 * displaced-stepping.c (displaced_step_buffer::prepare): New.
603 (write_memory_ptid): Move from infrun.c.
604 (displaced_step_instruction_executed_successfully): New,
605 factored out of displaced_step_finish.
606 (displaced_step_buffer::finish): New.
607 (displaced_step_buffer::copy_insn_closure_by_addr): New.
608 (displaced_step_buffer::restore_in_ptid): New.
609 * gdbarch.sh (displaced_step_location): Remove.
610 (displaced_step_prepare, displaced_step_finish,
611 displaced_step_copy_insn_closure_by_addr,
612 displaced_step_restore_all_in_ptid): New.
613 * gdbarch.c: Re-generate.
614 * gdbarch.h: Re-generate.
615 * gdbthread.h (class thread_info) <displaced_step_state>: New
617 (thread_step_over_chain_remove): New declaration.
618 (thread_step_over_chain_next): New declaration.
619 (thread_step_over_chain_length): New declaration.
620 * thread.c (thread_step_over_chain_remove): Make non-static.
621 (thread_step_over_chain_next): New.
622 (global_thread_step_over_chain_next): Use
623 thread_step_over_chain_next.
624 (thread_step_over_chain_length): New.
625 (global_thread_step_over_chain_enqueue): Add debug print.
626 (global_thread_step_over_chain_remove): Add debug print.
627 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
629 * infrun.c (get_displaced_stepping_state): New.
630 (displaced_step_in_progress_any_inferior): Remove.
631 (displaced_step_in_progress_thread): Adjust.
632 (displaced_step_in_progress): Adjust.
633 (displaced_step_in_progress_any_thread): New.
634 (get_displaced_step_copy_insn_closure_by_addr): Remove.
635 (gdbarch_supports_displaced_stepping): Use
636 gdbarch_displaced_step_prepare_p.
637 (displaced_step_reset): Change parameter from inferior to
639 (displaced_step_prepare_throw): Implement using
640 gdbarch_displaced_step_prepare.
641 (write_memory_ptid): Move to displaced-step.c.
642 (displaced_step_restore): Remove.
643 (displaced_step_finish): Implement using
644 gdbarch_displaced_step_finish.
645 (start_step_over): Allow starting more than one displaced step.
646 (prepare_for_detach): Handle possibly multiple threads doing
648 (handle_inferior_event): Handle possibility that fork event
649 happens while another thread displaced steps.
650 * linux-tdep.h (linux_displaced_step_prepare): New.
651 (linux_displaced_step_finish): New.
652 (linux_displaced_step_copy_insn_closure_by_addr): New.
653 (linux_displaced_step_restore_all_in_ptid): New.
654 (linux_init_abi): Add supports_displaced_step parameter.
655 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
656 (linux_displaced_step_prepare): New.
657 (linux_displaced_step_finish): New.
658 (linux_displaced_step_copy_insn_closure_by_addr): New.
659 (linux_displaced_step_restore_all_in_ptid): New.
660 (linux_init_abi): Add supports_displaced_step parameter,
661 register displaced step methods if true.
662 (_initialize_linux_tdep): Register inferior_execd observer.
663 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
664 supports_displaced_step parameter, adjust call to
665 linux_init_abi. Remove call to
666 set_gdbarch_displaced_step_location.
667 (amd64_linux_init_abi): Adjust call to
668 amd64_linux_init_abi_common.
669 (amd64_x32_linux_init_abi): Likewise.
670 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
671 linux_init_abi. Remove call to
672 set_gdbarch_displaced_step_location.
673 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
674 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
675 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
677 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
678 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
679 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
680 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
681 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
682 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
683 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
684 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
685 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
686 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
687 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
688 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
689 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
690 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
691 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
692 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
693 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
694 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
695 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
696 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
697 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
698 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
699 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
700 linux_init_abi. Remove call to
701 set_gdbarch_displaced_step_location.
702 * arm-tdep.c (arm_pc_is_thumb): Call
703 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
704 get_displaced_step_copy_insn_closure_by_addr.
705 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
706 clear gdbarch methods.
707 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
708 (get_ppc_per_inferior): New function.
709 (ppc_displaced_step_prepare): New function.
710 (ppc_displaced_step_finish): New function.
711 (ppc_displaced_step_restore_all_in_ptid): New function.
712 (rs6000_gdbarch_init): Register new gdbarch methods.
713 * s390-tdep.c (s390_gdbarch_init): Don't call
714 set_gdbarch_displaced_step_location, set new gdbarch methods.
716 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
718 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
719 * aarch64-tdep.h: Include displaced-stepping.h.
720 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
722 (displaced_step_copy_insn_closure_up): Move here.
723 (struct buf_displaced_step_copy_insn_closure): Move here.
724 (struct displaced_step_inferior_state): Move here.
725 (debug_displaced): Move here.
726 (displaced_debug_printf_1): Move here.
727 (displaced_debug_printf): Move here.
728 * displaced-stepping.c: New file.
729 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
730 * gdbarch.h: Re-generate.
731 * inferior.h: Include displaced-stepping.h.
732 * infrun.h (debug_displaced): Move to displaced-stepping.h.
733 (displaced_debug_printf_1): Likewise.
734 (displaced_debug_printf): Likewise.
735 (struct displaced_step_copy_insn_closure): Likewise.
736 (displaced_step_copy_insn_closure_up): Likewise.
737 (struct buf_displaced_step_copy_insn_closure): Likewise.
738 (struct displaced_step_inferior_state): Likewise.
739 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
740 (displaced_debug_printf_1): Likewise.
741 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
743 (_initialize_infrun): Don't register "set/show debug displaced".
745 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
747 * linux-tdep.c (get_linux_inferior_data): Add inferior
749 (linux_vsyscall_range): Pass current inferior.
751 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
753 * infrun.c (displaced_step_prepare_throw): Change return type to
754 displaced_step_prepare_status.
755 (displaced_step_prepare): Likewise.
756 (displaced_step_finish): Change return type to
757 displaced_step_finish_status.
759 (stop_all_threads): Adjust.
760 * displaced-stepping.h: New file.
762 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
764 * infrun.c (displaced_step_fixup): Rename to...
765 (displaced_step_finish): ... this, update all callers.
767 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
769 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
770 (get_displaced_step_copy_insn_closure_by_addr): ... this.
772 (displaced_step_closure): Rename to...
773 (displaced_step_copy_insn_closure): ... this. Update all users.
774 (displaced_step_closure_up): Rename to...
775 (displaced_step_copy_insn_closure_up). ... this. Update all
777 (buf_displaced_step_closure): Rename to...
778 (buf_displaced_step_copy_insn_closure): ... this. Update all
780 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
781 (get_displaced_step_copy_insn_closure_by_addr): ... this.
783 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
784 (aarch64_displaced_step_copy_insn_closure): ... this. Update
786 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
787 (amd64_displaced_step_copy_insn_closure): ... this. Update all
789 * arm-tdep.h (arm_displaced_step_closure): Rename to...
790 (arm_displaced_step_copy_insn_closure): ... this. Update all
792 * i386-tdep.h (i386_displaced_step_closure): Rename to...
793 (i386_displaced_step_copy_insn_closure): ... this. Update all
795 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
796 (ppc_displaced_step_copy_insn_closure): ... this. Update all
798 * s390-tdep.c (s390_displaced_step_closure): Rename to...
799 (s390_displaced_step_copy_insn_closure): ... this. Update all
801 * gdbarch.h: Re-generate.
802 * gdbarch.c: Re-generate.
804 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
806 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
807 (global_thread_step_over_chain_enqueue): ... this. Update all
809 (thread_step_over_chain_remove): Rename to...
810 (global_thread_step_over_chain_remove): ... this. Update all
812 (thread_step_over_chain_next): Rename to...
813 (global_thread_step_over_chain_next): ... this. Update all
815 * infrun.h (step_over_queue_head): Rename to...
816 (global_thread_step_over_chain_head): ... this. Update all
818 * infrun.c (step_over_queue_head): Rename to...
819 (global_thread_step_over_chain_head): ... this. Update all
821 * thread.c (step_over_chain_remove): Rename to...
822 (thread_step_over_chain_remove): ... this. Update all users.
823 (thread_step_over_chain_next): Rename to...
824 (global_thread_step_over_chain_next): ... this. Update all
826 (thread_step_over_chain_enqueue): Rename to...
827 (global_thread_step_over_chain_enqueue): ... this. Update all
829 (thread_step_over_chain_remove): Rename to...
830 (global_thread_step_over_chain_remove): ... this. Update all
833 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
835 * infrun.c (get_displaced_stepping_state): Remove, change
836 callers to access the field directly.
838 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
840 * infrun.c (handle_inferior_event): Restore displaced step
841 buffer bytes in child process when handling fork, even if fork
842 happened in another thread than the displaced-stepping one.
844 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
846 * infrun.c (infrun_inferior_execd): New function.
847 (_initialize_infrun): Attach inferior_execd observer.
849 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
851 * observable.h (inferior_execd): Declare new observable.
852 * observable.c (inferior_execd): Declare new observable.
853 * infrun.c (follow_exec): Notify inferior_execd observer.
854 * jit.c (jit_inferior_created_hook): Make static.
855 (_initialize_jit): Register inferior_execd observer.
856 * jit.h (jit_inferior_created_hook): Remove declaration.
857 * solib.c (_initialize_solib): Register inferior_execd observer.
859 2020-12-04 Tom de Vries <tdevries@suse.de>
862 * completer.c (completion_tracker::build_completion_result): Don't
863 access match_list[0][-1].
865 2020-12-04 Tom Tromey <tromey@adacore.com>
867 * linespec.c (struct linespec_token): Rename; remove typedef.
868 * guile/scm-block.c (struct block_smob): Remove typedef.
869 (struct block_syms_progress_smob): Likewise.
870 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
871 * guile/scm-symtab.c (symtab_smob): Remove typedef.
872 (struct sal_smob): Remove typedef.
873 * guile/scm-param.c (struct param_smob): Remove typedef.
874 * guile/scm-progspace.c (struct pspace_smob): Rename.
875 * guile/scm-objfile.c (struct objfile_smob): Rename.
876 * guile/scm-iterator.c (struct iterator_smob): Rename.
877 * guile/scm-frame.c (struct frame_smob): Rename.
878 * guile/scm-arch.c (struct arch_smob): Rename.
879 * guile/scm-type.c (struct field_smob): Remove typedef.
880 (struct type_smob): Rename.
881 * guile/scm-cmd.c (struct command_smob): Remove typedef.
882 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
883 * guile/scm-value.c (struct value_smob): Remove typedef.
884 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
885 * guile/guile-internal.h (struct scheme_variable)
886 (struct scheme_function, struct scheme_integer_constant)
887 (struct gdb_smob, struct chained_gdb_smob)
888 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
889 (objfile_smob, pspace_smob, type_smob): Remove typedef.
890 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
891 (struct pretty_printer_worker_smob): Remove typedef.
892 * guile/scm-exception.c (struct exception_smob): Remove typedef.
893 * python/py-block.c (struct block_object): Remove typedef.
894 (block_syms_iterator_object): Update.
896 (block_syms_iterator_object): Remove typedef.
897 * python/py-inferior.c (struct membuf_object): Remove typedef.
898 * python/py-symtab.c (struct symtab_object): Remove typedef.
899 (set_symtab): Update.
900 (sal_object): Remove typedef.
902 * python/py-frame.c (frame_object): Remove typedef.
903 * python/py-record-btrace.c (struct btpy_list_object): Remove
905 * python/py-arch.c (struct arch_object): Remove typedef.
906 * python/py-linetable.c (struct linetable_entry_object)
907 (linetable_object, struct ltpy_iterator_object): Remove typedef.
908 * python/py-events.h (eventregistry_object): Remove typedef.
909 (struct events_object): Remove typedef.
910 * python/python-internal.h (gdbpy_breakpoint_object): Remove
912 (thread_object): Remove typedef.
913 * python/py-progspace.c (pspace_object): Remove typedef.
914 * python/py-value.c (struct value_object): Remove typedef.
915 * python/py-record.h (recpy_record_object): Remove typedef.
916 (struct recpy_element_object): Remove typedef.
917 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
918 * python/py-objfile.c (objfile_object): Remove typedef.
919 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
920 * python/py-type.c (type_object): Remove typedef.
921 (typy_iterator_object): Update.
923 (field_object): Remove typedef.
924 (typy_iterator_object): Remove typedef.
925 * python/py-registers.c (register_descriptor_iterator_object):
927 (struct register_descriptor_object)
928 (struct reggroup_iterator_object, struct reggroup_object): Remove
930 * python/py-record.c (recpy_gap_object): Remove typedef.
931 * python/py-symbol.c (symbol_object): Remove typedef.
932 (set_symbol): Update.
933 * python/py-event.h (event_object): Remove typedef.
934 * python/py-param.c (parmpy_object): Remove typedef.
935 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
936 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
937 (unwind_info_object, struct cached_frame_info): Likewise.
939 2020-12-04 Tom Tromey <tromey@adacore.com>
941 * value.c (value_internal_function_name): Make return type const.
942 * value.h (value_internal_function_name): Make return type const.
944 2020-12-04 Luis Machado <luis.machado@linaro.org>
946 * aarch64-tdep.c (submask, bit, bits): Remove.
947 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
948 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
949 (aarch64_decode_cb, aarch64_decode_tb)
950 (aarch64_decode_ldr_literal): Use sbits to extract a signed
952 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
954 2020-12-04 Tom de Vries <tdevries@suse.de>
957 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
959 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
962 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
963 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
965 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
967 * arch/riscv.c: Include 'rv32e-xregs.c'.
968 (riscv_create_target_description): Update to handle rv32e.
969 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
971 <operator==>: Update to account for new field.
973 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
974 * features/riscv/rv32e-xregs.c: Generated.
975 * features/riscv/rv32e-xregs.xml: New file.
976 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
978 (riscv_debug_infcall): Likewise.
979 (riscv_debug_unwinder): Likewise.
980 (riscv_debug_gdbarch): Likewise.
981 (enum riscv_register_required_status): Delete.
982 (struct riscv_register_feature): Add constructor, delete default
983 constructor, copy, and assign constructors.
984 (struct riscv_register_feature::register_info) <required>: Delete.
985 <check>: Update comment and arguments.
986 (struct riscv_register_feature) <name>: Change to member function.
987 <prefer_first_name>: Delete.
988 <tdesc_feature>: New member function.
989 <registers>: Rename to...
990 <m_registers>: ...this.
991 <m_feature_name>: New member variable.
992 (riscv_register_feature::register_info::check): Update arguments.
993 (riscv_xreg_feature): Rewrite as class, create a single static
994 instance of the class.
995 (riscv_freg_feature): Likewise.
996 (riscv_virtual_feature): Likewise.
997 (riscv_csr_feature): Likewise.
998 (riscv_create_csr_aliases): Has become a member function inside
999 riscv_csr_feature class.
1000 (riscv_abi_embedded): New function definition.
1001 (riscv_register_name): Adjust to use new feature objects.
1002 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
1003 and adjust available argument registers.
1004 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
1005 (riscv_check_tdesc_feature): Delete.
1006 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
1007 (riscv_gdbarch_init): Delete target description checking code, and
1008 instead call to the new feature objects to perform the checks.
1009 Reorder handling of no abi information case, allows small code
1011 (_initialize_riscv_tdep): Remove call, this is now done in the
1012 riscv_csr_feature constructor.
1013 * riscv-tdep.h (riscv_abi_embedded): Declare.
1015 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1017 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
1020 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1022 * riscv-tdep.c (riscv_is_unknown_csr): New function,
1023 implementation moved from riscv_register_reggroup_p.
1024 (riscv_register_reggroup_p): Update group handling for unknown
1027 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
1029 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
1030 (dwarf2_get_dwz_file): Convert 'filename' to a
1031 std::string. Use dwz_search_other_debugdirs to search for DWZ
1032 files in the debug-file-directories provided by the user as well.
1034 2020-12-01 Tom Tromey <tom@tromey.com>
1036 * parse.c (expr_builder::expr_builder): Initialize expout.
1037 (expr_builder::release): Use expression::resize.
1038 (expression::expression, expression::~expression)
1039 (expression::resize): New methods.
1040 (write_exp_elt): Use expression::resize.
1041 (prefixify_expression): Update.
1042 (increase_expout_size): Use expression::resize.
1043 * expression.h (struct expression): Add constructor, destructor.
1044 <resize>: New method.
1045 (expression_up): Change type.
1047 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1048 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
1049 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
1052 2020-11-30 Tom de Vries <tdevries@suse.de>
1055 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
1056 is_reference parameter.
1057 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
1059 2020-11-30 Tom Tromey <tom@tromey.com>
1061 * rust-lang.c (rust_op_name): Remove.
1062 (exp_descriptor_rust): Update.
1063 * parser-defs.h (op_name_standard): Don't declare.
1064 (struct exp_descriptor) <op_name>: Remove.
1065 * parse.c (exp_descriptor_standard): Update.
1066 * opencl-lang.c (exp_descriptor_opencl): Update.
1067 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
1068 * f-lang.c (op_name_f): Remove.
1069 (f_language::exp_descriptor_tab): Update.
1070 * expression.h (op_name): Update.
1071 * expprint.c (op_name): Rewrite.
1072 (op_name_standard): Remove.
1073 (dump_raw_expression, dump_subexp): Update.
1074 * c-lang.c (exp_descriptor_c): Update.
1075 * ax-gdb.c (gen_expr): Update.
1076 * ada-lang.c (ada_op_name): Remove.
1077 (ada_exp_descriptor): Update.
1079 2020-11-30 Tom Tromey <tom@tromey.com>
1081 * eval.c (init_array_element): Remove.
1082 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
1084 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
1087 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
1088 static locator win info.
1090 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
1092 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
1095 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1097 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
1098 is always initialized.
1100 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
1101 * MAINTAINERS (Write After Approval): Add myself.
1103 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1105 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1106 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1108 2020-11-25 Tom Tromey <tom@tromey.com>
1110 * eval.c (evaluate_subexp_standard): Remove unnecessary
1113 2020-11-25 Tom Tromey <tom@tromey.com>
1115 * d-lang.c: Include parser-defs.h.
1116 * rust-lang.c: Include parser-defs.h.
1117 * c-lang.h: Do not include parser-defs.h.
1119 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1121 * regcache.h (struct cached_reg): Remove typedef.
1123 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1125 * README: Fix the URL of the MPFR library.
1127 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1129 * README: Document the --with-libgmp-prefix configure option.
1131 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1133 * NEWS: Add entry documenting support for DWARF-based fixed
1136 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1138 * NEWS: Document that building GDB now requires GMP.
1140 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1142 * typeprint.c (print_type_scalar): Add handling of
1143 TYPE_CODE_FIXED_POINT.
1145 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1147 * valarith.c (fixed_point_binop): Replace the
1148 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1151 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1153 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1154 replacing fixed_point_scaling_factor. All callers updated
1155 throughout this project.
1156 (fixed_point_scaling_factor): Delete declaration.
1157 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1158 fixed_point_scaling_factor. Adjust implementation accordingly.
1160 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1162 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1163 replacing the fixed_point_type_base_type function. All callers
1164 updated throughout this project.
1165 (fixed_point_type_base_type): Remove declaration.
1166 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1167 fixed_point_type_base_type. Adjust implementation accordingly.
1169 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1171 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1173 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1174 (TYPE_FIXED_POINT_INFO): Delete macro.
1175 (allocate_fixed_point_type_info): Change return type to void.
1176 * gdbtypes.c (copy_type_recursive): Replace the use of
1177 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1178 (fixed_point_scaling_factor): Likewise.
1179 (allocate_fixed_point_type_info): Change return type to void.
1180 Adjust implementation accordingly.
1181 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1182 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1184 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1186 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1187 into one single gdb::array_view parameter.
1188 (gdb_mpz::write): Likewise.
1189 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1190 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1191 into one single gdb::array_view parameter.
1192 Adjust implementation accordingly.
1193 (gdb_mpz::write): Likewise.
1194 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1195 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1196 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1198 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1200 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1201 Change return type to std::string. Update all callers.
1202 * gmp-utils.c (gmp_string_printf): Likewise.
1204 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1206 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1207 instead of mpq_set_ui to initialize our GMP rational.
1209 2020-11-23 Tom de Vries <tdevries@suse.de>
1211 * debuginfod-support.c (debuginfod_source_query)
1212 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1214 2020-11-21 Tom Tromey <tom@tromey.com>
1216 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1218 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1220 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1222 (gdb_mpz_write_all_from_small): Likewise.
1224 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1226 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1229 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1231 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1232 ctf_arc_open_by_name.
1234 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1236 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1237 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1239 2020-11-20 Pedro Alves <pedro@palves.net>
1241 * language.c (language_arch_info::lookup_primitive_type): Use
1242 gdb::function_view instead of gdb::function.
1243 (template language_lookup_primitive_type): Rename to ...
1244 (language_lookup_primitive_type_1): ... this, and make static.
1245 (language_lookup_primitive_type(const struct language_defn *,
1246 struct gdbarch *, const char *): Make non-template.
1247 (language_lookup_primitive_type(const struct language_defn *,
1248 struct gdbarch *, std::function<bool (struct type *)>): Make
1249 non-template and use gdb::function_view.
1250 * language.h (language_arch_info::lookup_primitive_type): Use
1251 gdb::function_view instead of std::function.
1252 (language_lookup_primitive_type): No longer template.
1253 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1254 lambda instead of a std::function.
1256 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1259 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1262 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1264 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1266 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1268 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1269 in `loop_cb` parameter.
1270 * gdbarch.c: Re-generate.
1271 * gdbarch.h: Re-generate.
1272 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1274 * arch-utils.h (default_read_core_file_mappings): Likewise.
1275 * corelow.c (core_target::build_file_mappings): Likewise.
1276 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1277 (linux_core_info_proc_mappings): Likewise.
1279 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1281 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1282 * NEWS: Mention new options.
1283 * f-array-walker.h: New file.
1284 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1285 (repack_array_slices): New static global.
1286 (show_repack_array_slices): New function.
1287 (fortran_array_slicing_debug): New static global.
1288 (show_fortran_array_slicing_debug): New function.
1289 (value_f90_subarray): Delete.
1290 (skip_undetermined_arglist): Delete.
1291 (class fortran_array_repacker_base_impl): New class.
1292 (class fortran_lazy_array_repacker_impl): New class.
1293 (class fortran_array_repacker_impl): New class.
1294 (fortran_value_subarray): Complete rewrite.
1295 (set_fortran_list): New static global.
1296 (show_fortran_list): Likewise.
1297 (_initialize_f_language): Register new commands.
1298 (fortran_adjust_dynamic_array_base_address_hack): New function.
1299 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1301 * f-valprint.c: Include 'f-array-walker.h'.
1302 (class fortran_array_printer_impl): New class.
1303 (f77_print_array_1): Delete.
1304 (f77_print_array): Delete.
1305 (fortran_print_array): New.
1306 (f_value_print_inner): Update to call fortran_print_array.
1307 * gdbtypes.c: Include 'f-lang.h'.
1308 (resolve_dynamic_type_internal): Call
1309 fortran_adjust_dynamic_array_base_address_hack.
1311 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1313 * breakpoint.c (struct watch_options): New struct.
1314 (watch_option_defs): New static global.
1315 (make_watch_options_def_group): New function.
1316 (watch_maybe_just_location): Convert option parsing.
1317 (watch_command_completer): New function.
1318 (_initialize_breakpoint): Build help text using options mechanism.
1320 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1322 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1323 (watch_command_1): Update parameter types. Convert locals to
1325 (watch_command_wrapper): Change parameter type.
1326 (watch_maybe_just_location): Change locals to bool.
1327 (rwatch_command_wrapper): Update parameter type.
1328 (awatch_command_wrapper): Update parameter type.
1329 * breakpoint.h (watch_command_wrapper): Change parameter type.
1330 (rwatch_command_wrapper): Update parameter type.
1331 (awatch_command_wrapper): Update parameter type.
1332 * eval.c (fetch_subexp_value): Change parameter type.
1333 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1335 * value.h (fetch_subexp_value): Change parameter type in
1338 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1340 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1343 2020-11-18 Keith Seitz <keiths@redhat.com>
1345 * linux-tdep.c (dump_note_entry_p): Return true instead of
1346 checking `filename'.
1348 2020-11-18 Tom de Vries <tdevries@suse.de>
1350 * debuginfod-support.c (debuginfod_source_query)
1351 (debuginfod_debuginfo_query): Also do early exit if
1352 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1354 2020-11-18 Tom de Vries <tdevries@suse.de>
1356 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1359 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1361 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1362 callers. Move doc here.
1363 * gdbtypes.c (get_array_bounds): Return bool
1365 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1367 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1369 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1370 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1371 case to the default.
1373 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1375 * printcmd.c: Include 'safe-ctype.c'.
1376 (skip_over_slash_fmt): New function.
1377 (print_command_completer): Call skip_over_slash_fmt.
1378 (display_and_x_command_completer): New function.
1379 (_initialize_printcmd): Add command completion for 'x' and
1382 2020-11-16 Pedro Alves <pedro@palves.net>
1384 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1385 (get_prev_frame_always_1): ... to here.
1386 * inline-frame.c (inline_frame_this_id): Mention
1387 get_prev_frame_always_1 in comment.
1389 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1391 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1393 (value_less): Add fixed-point handling.
1395 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1397 * eval.c (binop_promote): Add fixed-point type handling.
1398 * valarith.c (fixed_point_binop): New function.
1399 (scalar_binop): Add fixed-point type handling.
1400 (value_neg): Add fixed-point type handling.
1401 * valops.c (value_cast_to_fixed_point): New function.
1402 (value_cast): Add fixed-point type handling.
1404 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1406 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1408 * c-typeprint.c (c_type_print_varspec_prefix)
1409 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1410 TYPE_CODE_FIXED_POINT handling.
1411 * p-typeprint.c (pascal_type_print_varspec_prefix)
1412 (pascal_type_print_varspec_suffix): Likewise.
1413 * typeprint.c (print_type_fixed_point): New function.
1414 * typeprint.h (print_type_fixed_point): Add declaration.
1416 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1418 * printcmd.c (print_scalar_formatted): Add fixed-point type
1419 handling when options->format is set.
1421 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1423 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1424 * dwarf2/read.c (get_dwarf2_rational_constant)
1425 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1426 (has_zero_over_zero_small_attribute): New functions.
1427 read_base_type, set_die_type): Add fixed-point type handling.
1428 * gdb-gdb.py.in: Add fixed-point type handling.
1429 * gdbtypes.c: #include "gmp-utils.h".
1430 (create_range_type, set_type_code): Add fixed-point type handling.
1431 (init_fixed_point_type): New function.
1432 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1433 (print_fixed_point_type_info): New function.
1434 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1436 (fixed_point_type_storage): New typedef.
1437 (fixed_point_objfile_key): New static global.
1438 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1439 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1441 * gdbtypes.h: #include "gmp-utils.h".
1442 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1443 (union type_specific) <fixed_point_info>: New field.
1444 (struct fixed_point_type_info): New struct.
1445 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1446 (init_fixed_point_type, is_fixed_point_type)
1447 (fixed_point_type_base_type, fixed_point_scaling_factor)
1448 (allocate_fixed_point_type_info): Add declarations.
1449 * valprint.c (generic_val_print_fixed_point): New function.
1450 (generic_value_print): Add fixed-point type handling.
1451 * value.c (value_as_address, unpack_long): Add fixed-point type
1454 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1456 * utils.h (uinteger_pow): Add declaration.
1457 * utils.c (uinteger_pow): Moved here (without changes)...
1458 * valarith.c (uinteger_pow): ... from here.
1460 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1462 * gmp-utils.h, gmp-utils.c: New file.
1463 * unittests/gmp-utils-selftests.c: New file.
1464 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1465 unittests/gmp-utils-selftests.c.
1466 (COMMON_SFILES) Add gmp-utils.c.
1467 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1469 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1471 * configure.ac: Generate an error if a usable GMP library
1473 * configure: Regenerate.
1475 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1477 * configure.ac: Add support for --with-libgmp-prefix.
1478 * Makefile.in (LIBGMP): New variable.
1479 (CLIBS): Include $(LIBGMP).
1480 * configure, config.in: Regenerate
1482 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1485 * f-exp.y (COMPLETE): New token.
1486 (exp): Two new rules for tab-completion.
1487 (saw_name_at_eof): New static global.
1488 (last_was_structop): Likewise.
1489 (yylex): Set new variables, and return COMPLETE token at the end
1490 of the input stream in some cases.
1492 2020-11-14 Tom Tromey <tom@tromey.com>
1494 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1496 2020-11-14 Tom Tromey <tom@tromey.com>
1498 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1500 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1502 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1504 2020-11-13 Tom Tromey <tom@tromey.com>
1506 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1507 (convert_escape, parse_one_string): Constify.
1509 2020-11-13 Keith Seitz <keiths@redhat.com>
1511 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1512 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1513 outside of ELF segments" warning for debugin
1515 2020-11-13 Keith Seitz <keiths@redhat.com>
1518 * elfread.c (elf_symfile_segments): Output a BFD file name
1519 for the "Loadable section ... outside of ELF segments" warning.
1521 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1524 * arm-tdep.c (class arm_instruction_reader): New.
1525 (target_arm_instruction_reader): New.
1526 (arm_analyze_prologue): Add instruction reader parameter and use
1527 it. Use arm_expand_immediate.
1528 (class target_arm_instruction_reader): Adjust.
1529 (arm_skip_prologue): Adjust.
1530 (arm_expand_immediate): New.
1531 (arm_scan_prologue): Adjust.
1532 (arm_analyze_prologue_test): New.
1533 (class test_arm_instruction_reader): New.
1535 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1537 * f-lang.c (fortran_argument_convert): Add declaration. Add
1538 header comment, taken from f-lang.h. Make static.
1539 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1540 (fortran_argument_convert): Delete declaration.
1542 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1544 * ada-exp.y (find_primitive_type): Make parameter const.
1545 * ada-lang.c (enum ada_primitive_types): Delete.
1546 (ada_language::language_arch_info): Update.
1547 * c-lang.c (enum c_primitive_types): Delete.
1548 (c_language_arch_info): Update.
1549 (enum cplus_primitive_types): Delete.
1550 (cplus_language::language_arch_info): Update.
1551 * d-lang.c (enum d_primitive_types): Delete.
1552 (d_language::language_arch_info): Update.
1553 * f-lang.c (enum f_primitive_types): Delete.
1554 (f_language::language_arch_info): Update.
1555 * go-lang.c (enum go_primitive_types): Delete.
1556 (go_language::language_arch_info): Update.
1557 * language.c (auto_or_unknown_language::language_arch_info):
1559 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1560 (language_string_char_type): Add header comment, call function in
1562 (language_bool_type): Likewise
1563 (language_arch_info::bool_type): Define.
1564 (language_lookup_primitive_type_1): Delete.
1565 (language_lookup_primitive_type): Rewrite as a templated function
1566 to call function in language_arch_info, then instantiate twice.
1567 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1568 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1569 (language_arch_info::lookup_primitive_type): Define twice with
1570 different signatures.
1571 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1572 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1573 member function in language_arch_info.
1574 * language.h (language_arch_info): Complete rewrite.
1575 (language_lookup_primitive_type): Make templated.
1576 * m2-lang.c (enum m2_primitive_types): Delete.
1577 (m2_language::language_arch_info): Update.
1578 * opencl-lang.c (OCL_P_TYPE): Delete.
1579 (enum opencl_primitive_types): Delete.
1580 (opencl_type_data): Delete.
1581 (builtin_opencl_type): Delete.
1582 (lookup_opencl_vector_type): Update.
1583 (opencl_language::language_arch_info): Update, lots of content
1585 (build_opencl_types): ...here. This function is now deleted.
1586 (_initialize_opencl_language): Delete.
1587 * p-lang.c (enum pascal_primitive_types): Delete.
1588 (pascal_language::language_arch_info): Update.
1589 * rust-lang.c (enum rust_primitive_types): Delete.
1590 (rust_language::language_arch_info): Update.
1592 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1594 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1597 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1599 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1602 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1604 * dwarf2/read.c (dwarf_read_debug_printf,
1605 dwarf_read_debug_printf_v): New macros, use throughout the file.
1607 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1610 * arc-linux-tdep.c (collect_register): Populate "eret" by
1611 "pc" value from the regcache when asked for "pc" value.
1613 2020-11-12 Tom Tromey <tom@tromey.com>
1616 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1619 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1621 * features/Makefile (XMLTOC): Add rx.xml.
1622 (FEATURE_XMLFILES): Remove rx.xml.
1623 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1624 * features/rx.c: Regenerate.
1625 * features/rx.xml: Wrap in `target` tags, and reindent.
1626 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1628 (maint_print_c_tdesc_opt_def): New typedef.
1629 (maint_print_c_tdesc_opt_defs): New static global.
1630 (make_maint_print_c_tdesc_options_def_group): New function.
1631 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1632 print single feature C file for target descriptions containing a
1634 (maint_print_c_tdesc_cmd_completer): New function.
1635 (_initialize_target_descriptions): Update call to register command
1636 completer, and include command line flag in help text.
1638 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1640 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1642 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1645 2020-11-10 Tom Tromey <tom@tromey.com>
1647 * value.h (internalvar_name): Update.
1648 * value.c (internalvar_name): Make return type const.
1650 2020-11-10 Tom Tromey <tom@tromey.com>
1652 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1653 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1656 2020-11-10 Tom Tromey <tom@tromey.com>
1658 * objc-lang.h (value_nsstring): Update.
1659 * objc-lang.c (value_nsstring): Make "ptr" const.
1661 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1663 * expprint.c (print_subexp_funcall): Increment expression position
1664 after reading argument count.
1665 * f-lang.c (print_subexp_f): Skip over opcode before calling
1667 (dump_subexp_body_f): Likewise.
1669 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1672 * configure: Regenerate.
1673 * configure.ac: Check for python modules ctypes instead of
1676 2020-11-06 Pedro Alves <pedro@palves.net>
1678 * macroexp.c (struct macro_buffer): Split in two classes. Add
1680 (struct shared_macro_buffer): New, factored out from struct
1682 (struct growable_macro_buffer): New, factored out from struct
1684 (set_token, get_comment, get_identifier, get_pp_number)
1685 (get_character_constant, get_string_literal, get_punctuator)
1686 (get_next_token_for_substitution): Constify parameters.
1687 (substitute_args): Constify locals.
1689 2020-11-05 Tom Tromey <tom@tromey.com>
1691 * dwarf2/read.c (read_cutu_die_from_dwo)
1692 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1693 (build_type_psymtabs_1): Update.
1694 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1696 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1697 Don't read section. Add assert.
1699 2020-11-04 Tom Tromey <tromey@adacore.com>
1701 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1703 2020-11-04 Tom Tromey <tromey@adacore.com>
1705 * ada-typeprint.c (ada_print_type): Handle __T types.
1707 2020-11-04 Tom Tromey <tromey@adacore.com>
1709 * dwarf2/read.c (add_partial_symbol, process_die):
1710 Handle DW_TAG_array_type.
1711 (is_type_tag_for_partial): Add "lang" parameter.
1712 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1714 2020-11-04 Tom Tromey <tromey@adacore.com>
1716 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1718 2020-11-04 Tom Tromey <tromey@adacore.com>
1720 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1723 2020-11-04 Tom Tromey <tromey@adacore.com>
1725 * gdbtypes.c (update_static_array_size): Handle bit stride.
1727 2020-11-04 Tom Tromey <tromey@adacore.com>
1729 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1731 2020-11-04 Tom Tromey <tromey@adacore.com>
1733 * ada-lang.c (ada_is_any_packed_array_type): New function.
1734 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1736 2020-11-04 Tom Tromey <tromey@adacore.com>
1738 * dwarf2/read.c (recognize_bound_expression)
1739 (quirk_ada_thick_pointer): New functions.
1740 (read_array_type): Call quirk_ada_thick_pointer.
1741 (set_die_type): Add "skip_data_location" parameter.
1742 (quirk_ada_thick_pointer): New function.
1743 (process_structure_scope): Call quirk_ada_thick_pointer.
1744 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1745 (decode_packed_array_bitsize): Handle thick pointers without
1747 (ada_is_gnat_encoded_packed_array_type): Rename from
1748 ada_is_packed_array_type.
1749 (ada_is_constrained_packed_array_type): Update.
1750 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1751 (ada_value_print_1): Use ada_get_decoded_value.
1753 2020-11-04 Tom Tromey <tromey@adacore.com>
1755 * ada-lang.c (recursively_update_array_bitsize): New function.
1756 (decode_constrained_packed_array_type): Call it.
1758 2020-11-04 Tom Tromey <tromey@adacore.com>
1760 * ada-lang.c (to_fixed_array_type): Error if
1761 decode_constrained_packed_array_type returns NULL.
1763 2020-11-04 Tom Tromey <tromey@adacore.com>
1765 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1767 2020-11-02 Tom Tromey <tromey@adacore.com>
1769 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1770 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1771 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1772 * amd64-ravenscar-thread.c: New file.
1773 * amd64-ravenscar-thread.h: New file.
1774 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1775 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1777 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1779 * main.c (execute_cmdargs): New function.
1780 (captured_main_1): Make use of execute_cmdargs.
1782 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1784 * NEWS: Mention changes to config file search path.
1787 2020-11-02 Tom Tromey <tromey@adacore.com>
1789 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1790 (python_GdbModuleDef): Move earlier. Now static.
1791 (do_start_initialization): Consolidate some IS_PY3K blocks.
1793 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1795 * aarch64-linux-tdep.c: Fix indentation.
1796 * aarch64-ravenscar-thread.c: Fix indentation.
1797 * aarch64-tdep.c: Fix indentation.
1798 * aarch64-tdep.h: Fix indentation.
1799 * ada-lang.c: Fix indentation.
1800 * ada-lang.h: Fix indentation.
1801 * ada-tasks.c: Fix indentation.
1802 * ada-typeprint.c: Fix indentation.
1803 * ada-valprint.c: Fix indentation.
1804 * ada-varobj.c: Fix indentation.
1805 * addrmap.c: Fix indentation.
1806 * addrmap.h: Fix indentation.
1807 * agent.c: Fix indentation.
1808 * aix-thread.c: Fix indentation.
1809 * alpha-bsd-nat.c: Fix indentation.
1810 * alpha-linux-tdep.c: Fix indentation.
1811 * alpha-mdebug-tdep.c: Fix indentation.
1812 * alpha-nbsd-tdep.c: Fix indentation.
1813 * alpha-obsd-tdep.c: Fix indentation.
1814 * alpha-tdep.c: Fix indentation.
1815 * amd64-bsd-nat.c: Fix indentation.
1816 * amd64-darwin-tdep.c: Fix indentation.
1817 * amd64-linux-nat.c: Fix indentation.
1818 * amd64-linux-tdep.c: Fix indentation.
1819 * amd64-nat.c: Fix indentation.
1820 * amd64-obsd-tdep.c: Fix indentation.
1821 * amd64-tdep.c: Fix indentation.
1822 * amd64-windows-tdep.c: Fix indentation.
1823 * annotate.c: Fix indentation.
1824 * arc-tdep.c: Fix indentation.
1825 * arch-utils.c: Fix indentation.
1826 * arch/arm-get-next-pcs.c: Fix indentation.
1827 * arch/arm.c: Fix indentation.
1828 * arm-linux-nat.c: Fix indentation.
1829 * arm-linux-tdep.c: Fix indentation.
1830 * arm-nbsd-tdep.c: Fix indentation.
1831 * arm-pikeos-tdep.c: Fix indentation.
1832 * arm-tdep.c: Fix indentation.
1833 * arm-tdep.h: Fix indentation.
1834 * arm-wince-tdep.c: Fix indentation.
1835 * auto-load.c: Fix indentation.
1836 * auxv.c: Fix indentation.
1837 * avr-tdep.c: Fix indentation.
1838 * ax-gdb.c: Fix indentation.
1839 * ax-general.c: Fix indentation.
1840 * bfin-linux-tdep.c: Fix indentation.
1841 * block.c: Fix indentation.
1842 * block.h: Fix indentation.
1843 * blockframe.c: Fix indentation.
1844 * bpf-tdep.c: Fix indentation.
1845 * break-catch-sig.c: Fix indentation.
1846 * break-catch-syscall.c: Fix indentation.
1847 * break-catch-throw.c: Fix indentation.
1848 * breakpoint.c: Fix indentation.
1849 * breakpoint.h: Fix indentation.
1850 * bsd-uthread.c: Fix indentation.
1851 * btrace.c: Fix indentation.
1852 * build-id.c: Fix indentation.
1853 * buildsym-legacy.h: Fix indentation.
1854 * buildsym.c: Fix indentation.
1855 * c-typeprint.c: Fix indentation.
1856 * c-valprint.c: Fix indentation.
1857 * c-varobj.c: Fix indentation.
1858 * charset.c: Fix indentation.
1859 * cli/cli-cmds.c: Fix indentation.
1860 * cli/cli-decode.c: Fix indentation.
1861 * cli/cli-decode.h: Fix indentation.
1862 * cli/cli-script.c: Fix indentation.
1863 * cli/cli-setshow.c: Fix indentation.
1864 * coff-pe-read.c: Fix indentation.
1865 * coffread.c: Fix indentation.
1866 * compile/compile-cplus-types.c: Fix indentation.
1867 * compile/compile-object-load.c: Fix indentation.
1868 * compile/compile-object-run.c: Fix indentation.
1869 * completer.c: Fix indentation.
1870 * corefile.c: Fix indentation.
1871 * corelow.c: Fix indentation.
1872 * cp-abi.h: Fix indentation.
1873 * cp-namespace.c: Fix indentation.
1874 * cp-support.c: Fix indentation.
1875 * cp-valprint.c: Fix indentation.
1876 * cris-linux-tdep.c: Fix indentation.
1877 * cris-tdep.c: Fix indentation.
1878 * darwin-nat-info.c: Fix indentation.
1879 * darwin-nat.c: Fix indentation.
1880 * darwin-nat.h: Fix indentation.
1881 * dbxread.c: Fix indentation.
1882 * dcache.c: Fix indentation.
1883 * disasm.c: Fix indentation.
1884 * dtrace-probe.c: Fix indentation.
1885 * dwarf2/abbrev.c: Fix indentation.
1886 * dwarf2/attribute.c: Fix indentation.
1887 * dwarf2/expr.c: Fix indentation.
1888 * dwarf2/frame.c: Fix indentation.
1889 * dwarf2/index-cache.c: Fix indentation.
1890 * dwarf2/index-write.c: Fix indentation.
1891 * dwarf2/line-header.c: Fix indentation.
1892 * dwarf2/loc.c: Fix indentation.
1893 * dwarf2/macro.c: Fix indentation.
1894 * dwarf2/read.c: Fix indentation.
1895 * dwarf2/read.h: Fix indentation.
1896 * elfread.c: Fix indentation.
1897 * eval.c: Fix indentation.
1898 * event-top.c: Fix indentation.
1899 * exec.c: Fix indentation.
1900 * exec.h: Fix indentation.
1901 * expprint.c: Fix indentation.
1902 * f-lang.c: Fix indentation.
1903 * f-typeprint.c: Fix indentation.
1904 * f-valprint.c: Fix indentation.
1905 * fbsd-nat.c: Fix indentation.
1906 * fbsd-tdep.c: Fix indentation.
1907 * findvar.c: Fix indentation.
1908 * fork-child.c: Fix indentation.
1909 * frame-unwind.c: Fix indentation.
1910 * frame-unwind.h: Fix indentation.
1911 * frame.c: Fix indentation.
1912 * frv-linux-tdep.c: Fix indentation.
1913 * frv-tdep.c: Fix indentation.
1914 * frv-tdep.h: Fix indentation.
1915 * ft32-tdep.c: Fix indentation.
1916 * gcore.c: Fix indentation.
1917 * gdb_bfd.c: Fix indentation.
1918 * gdbarch.sh: Fix indentation.
1919 * gdbarch.c: Re-generate
1920 * gdbarch.h: Re-generate.
1921 * gdbcore.h: Fix indentation.
1922 * gdbthread.h: Fix indentation.
1923 * gdbtypes.c: Fix indentation.
1924 * gdbtypes.h: Fix indentation.
1925 * glibc-tdep.c: Fix indentation.
1926 * gnu-nat.c: Fix indentation.
1927 * gnu-nat.h: Fix indentation.
1928 * gnu-v2-abi.c: Fix indentation.
1929 * gnu-v3-abi.c: Fix indentation.
1930 * go32-nat.c: Fix indentation.
1931 * guile/guile-internal.h: Fix indentation.
1932 * guile/scm-cmd.c: Fix indentation.
1933 * guile/scm-frame.c: Fix indentation.
1934 * guile/scm-iterator.c: Fix indentation.
1935 * guile/scm-math.c: Fix indentation.
1936 * guile/scm-ports.c: Fix indentation.
1937 * guile/scm-pretty-print.c: Fix indentation.
1938 * guile/scm-value.c: Fix indentation.
1939 * h8300-tdep.c: Fix indentation.
1940 * hppa-linux-nat.c: Fix indentation.
1941 * hppa-linux-tdep.c: Fix indentation.
1942 * hppa-nbsd-nat.c: Fix indentation.
1943 * hppa-nbsd-tdep.c: Fix indentation.
1944 * hppa-obsd-nat.c: Fix indentation.
1945 * hppa-tdep.c: Fix indentation.
1946 * hppa-tdep.h: Fix indentation.
1947 * i386-bsd-nat.c: Fix indentation.
1948 * i386-darwin-nat.c: Fix indentation.
1949 * i386-darwin-tdep.c: Fix indentation.
1950 * i386-dicos-tdep.c: Fix indentation.
1951 * i386-gnu-nat.c: Fix indentation.
1952 * i386-linux-nat.c: Fix indentation.
1953 * i386-linux-tdep.c: Fix indentation.
1954 * i386-nto-tdep.c: Fix indentation.
1955 * i386-obsd-tdep.c: Fix indentation.
1956 * i386-sol2-nat.c: Fix indentation.
1957 * i386-tdep.c: Fix indentation.
1958 * i386-tdep.h: Fix indentation.
1959 * i386-windows-tdep.c: Fix indentation.
1960 * i387-tdep.c: Fix indentation.
1961 * i387-tdep.h: Fix indentation.
1962 * ia64-libunwind-tdep.c: Fix indentation.
1963 * ia64-libunwind-tdep.h: Fix indentation.
1964 * ia64-linux-nat.c: Fix indentation.
1965 * ia64-linux-tdep.c: Fix indentation.
1966 * ia64-tdep.c: Fix indentation.
1967 * ia64-tdep.h: Fix indentation.
1968 * ia64-vms-tdep.c: Fix indentation.
1969 * infcall.c: Fix indentation.
1970 * infcmd.c: Fix indentation.
1971 * inferior.c: Fix indentation.
1972 * infrun.c: Fix indentation.
1973 * iq2000-tdep.c: Fix indentation.
1974 * language.c: Fix indentation.
1975 * linespec.c: Fix indentation.
1976 * linux-fork.c: Fix indentation.
1977 * linux-nat.c: Fix indentation.
1978 * linux-tdep.c: Fix indentation.
1979 * linux-thread-db.c: Fix indentation.
1980 * lm32-tdep.c: Fix indentation.
1981 * m2-lang.c: Fix indentation.
1982 * m2-typeprint.c: Fix indentation.
1983 * m2-valprint.c: Fix indentation.
1984 * m32c-tdep.c: Fix indentation.
1985 * m32r-linux-tdep.c: Fix indentation.
1986 * m32r-tdep.c: Fix indentation.
1987 * m68hc11-tdep.c: Fix indentation.
1988 * m68k-bsd-nat.c: Fix indentation.
1989 * m68k-linux-nat.c: Fix indentation.
1990 * m68k-linux-tdep.c: Fix indentation.
1991 * m68k-tdep.c: Fix indentation.
1992 * machoread.c: Fix indentation.
1993 * macrocmd.c: Fix indentation.
1994 * macroexp.c: Fix indentation.
1995 * macroscope.c: Fix indentation.
1996 * macrotab.c: Fix indentation.
1997 * macrotab.h: Fix indentation.
1998 * main.c: Fix indentation.
1999 * mdebugread.c: Fix indentation.
2000 * mep-tdep.c: Fix indentation.
2001 * mi/mi-cmd-catch.c: Fix indentation.
2002 * mi/mi-cmd-disas.c: Fix indentation.
2003 * mi/mi-cmd-env.c: Fix indentation.
2004 * mi/mi-cmd-stack.c: Fix indentation.
2005 * mi/mi-cmd-var.c: Fix indentation.
2006 * mi/mi-cmds.c: Fix indentation.
2007 * mi/mi-main.c: Fix indentation.
2008 * mi/mi-parse.c: Fix indentation.
2009 * microblaze-tdep.c: Fix indentation.
2010 * minidebug.c: Fix indentation.
2011 * minsyms.c: Fix indentation.
2012 * mips-linux-nat.c: Fix indentation.
2013 * mips-linux-tdep.c: Fix indentation.
2014 * mips-nbsd-tdep.c: Fix indentation.
2015 * mips-tdep.c: Fix indentation.
2016 * mn10300-linux-tdep.c: Fix indentation.
2017 * mn10300-tdep.c: Fix indentation.
2018 * moxie-tdep.c: Fix indentation.
2019 * msp430-tdep.c: Fix indentation.
2020 * namespace.h: Fix indentation.
2021 * nat/fork-inferior.c: Fix indentation.
2022 * nat/gdb_ptrace.h: Fix indentation.
2023 * nat/linux-namespaces.c: Fix indentation.
2024 * nat/linux-osdata.c: Fix indentation.
2025 * nat/netbsd-nat.c: Fix indentation.
2026 * nat/x86-dregs.c: Fix indentation.
2027 * nbsd-nat.c: Fix indentation.
2028 * nbsd-tdep.c: Fix indentation.
2029 * nios2-linux-tdep.c: Fix indentation.
2030 * nios2-tdep.c: Fix indentation.
2031 * nto-procfs.c: Fix indentation.
2032 * nto-tdep.c: Fix indentation.
2033 * objfiles.c: Fix indentation.
2034 * objfiles.h: Fix indentation.
2035 * opencl-lang.c: Fix indentation.
2036 * or1k-tdep.c: Fix indentation.
2037 * osabi.c: Fix indentation.
2038 * osabi.h: Fix indentation.
2039 * osdata.c: Fix indentation.
2040 * p-lang.c: Fix indentation.
2041 * p-typeprint.c: Fix indentation.
2042 * p-valprint.c: Fix indentation.
2043 * parse.c: Fix indentation.
2044 * ppc-linux-nat.c: Fix indentation.
2045 * ppc-linux-tdep.c: Fix indentation.
2046 * ppc-nbsd-nat.c: Fix indentation.
2047 * ppc-nbsd-tdep.c: Fix indentation.
2048 * ppc-obsd-nat.c: Fix indentation.
2049 * ppc-ravenscar-thread.c: Fix indentation.
2050 * ppc-sysv-tdep.c: Fix indentation.
2051 * ppc64-tdep.c: Fix indentation.
2052 * printcmd.c: Fix indentation.
2053 * proc-api.c: Fix indentation.
2054 * producer.c: Fix indentation.
2055 * producer.h: Fix indentation.
2056 * prologue-value.c: Fix indentation.
2057 * prologue-value.h: Fix indentation.
2058 * psymtab.c: Fix indentation.
2059 * python/py-arch.c: Fix indentation.
2060 * python/py-bpevent.c: Fix indentation.
2061 * python/py-event.c: Fix indentation.
2062 * python/py-event.h: Fix indentation.
2063 * python/py-finishbreakpoint.c: Fix indentation.
2064 * python/py-frame.c: Fix indentation.
2065 * python/py-framefilter.c: Fix indentation.
2066 * python/py-inferior.c: Fix indentation.
2067 * python/py-infthread.c: Fix indentation.
2068 * python/py-objfile.c: Fix indentation.
2069 * python/py-prettyprint.c: Fix indentation.
2070 * python/py-registers.c: Fix indentation.
2071 * python/py-signalevent.c: Fix indentation.
2072 * python/py-stopevent.c: Fix indentation.
2073 * python/py-stopevent.h: Fix indentation.
2074 * python/py-threadevent.c: Fix indentation.
2075 * python/py-tui.c: Fix indentation.
2076 * python/py-unwind.c: Fix indentation.
2077 * python/py-value.c: Fix indentation.
2078 * python/py-xmethods.c: Fix indentation.
2079 * python/python-internal.h: Fix indentation.
2080 * python/python.c: Fix indentation.
2081 * ravenscar-thread.c: Fix indentation.
2082 * record-btrace.c: Fix indentation.
2083 * record-full.c: Fix indentation.
2084 * record.c: Fix indentation.
2085 * reggroups.c: Fix indentation.
2086 * regset.h: Fix indentation.
2087 * remote-fileio.c: Fix indentation.
2088 * remote.c: Fix indentation.
2089 * reverse.c: Fix indentation.
2090 * riscv-linux-tdep.c: Fix indentation.
2091 * riscv-ravenscar-thread.c: Fix indentation.
2092 * riscv-tdep.c: Fix indentation.
2093 * rl78-tdep.c: Fix indentation.
2094 * rs6000-aix-tdep.c: Fix indentation.
2095 * rs6000-lynx178-tdep.c: Fix indentation.
2096 * rs6000-nat.c: Fix indentation.
2097 * rs6000-tdep.c: Fix indentation.
2098 * rust-lang.c: Fix indentation.
2099 * rx-tdep.c: Fix indentation.
2100 * s12z-tdep.c: Fix indentation.
2101 * s390-linux-tdep.c: Fix indentation.
2102 * score-tdep.c: Fix indentation.
2103 * ser-base.c: Fix indentation.
2104 * ser-mingw.c: Fix indentation.
2105 * ser-uds.c: Fix indentation.
2106 * ser-unix.c: Fix indentation.
2107 * serial.c: Fix indentation.
2108 * sh-linux-tdep.c: Fix indentation.
2109 * sh-nbsd-tdep.c: Fix indentation.
2110 * sh-tdep.c: Fix indentation.
2111 * skip.c: Fix indentation.
2112 * sol-thread.c: Fix indentation.
2113 * solib-aix.c: Fix indentation.
2114 * solib-darwin.c: Fix indentation.
2115 * solib-frv.c: Fix indentation.
2116 * solib-svr4.c: Fix indentation.
2117 * solib.c: Fix indentation.
2118 * source.c: Fix indentation.
2119 * sparc-linux-tdep.c: Fix indentation.
2120 * sparc-nbsd-tdep.c: Fix indentation.
2121 * sparc-obsd-tdep.c: Fix indentation.
2122 * sparc-ravenscar-thread.c: Fix indentation.
2123 * sparc-tdep.c: Fix indentation.
2124 * sparc64-linux-tdep.c: Fix indentation.
2125 * sparc64-nbsd-tdep.c: Fix indentation.
2126 * sparc64-obsd-tdep.c: Fix indentation.
2127 * sparc64-tdep.c: Fix indentation.
2128 * stabsread.c: Fix indentation.
2129 * stack.c: Fix indentation.
2130 * stap-probe.c: Fix indentation.
2131 * stubs/ia64vms-stub.c: Fix indentation.
2132 * stubs/m32r-stub.c: Fix indentation.
2133 * stubs/m68k-stub.c: Fix indentation.
2134 * stubs/sh-stub.c: Fix indentation.
2135 * stubs/sparc-stub.c: Fix indentation.
2136 * symfile-mem.c: Fix indentation.
2137 * symfile.c: Fix indentation.
2138 * symfile.h: Fix indentation.
2139 * symmisc.c: Fix indentation.
2140 * symtab.c: Fix indentation.
2141 * symtab.h: Fix indentation.
2142 * target-float.c: Fix indentation.
2143 * target.c: Fix indentation.
2144 * target.h: Fix indentation.
2145 * tic6x-tdep.c: Fix indentation.
2146 * tilegx-linux-tdep.c: Fix indentation.
2147 * tilegx-tdep.c: Fix indentation.
2148 * top.c: Fix indentation.
2149 * tracefile-tfile.c: Fix indentation.
2150 * tracepoint.c: Fix indentation.
2151 * tui/tui-disasm.c: Fix indentation.
2152 * tui/tui-io.c: Fix indentation.
2153 * tui/tui-regs.c: Fix indentation.
2154 * tui/tui-stack.c: Fix indentation.
2155 * tui/tui-win.c: Fix indentation.
2156 * tui/tui-winsource.c: Fix indentation.
2157 * tui/tui.c: Fix indentation.
2158 * typeprint.c: Fix indentation.
2159 * ui-out.h: Fix indentation.
2160 * unittests/copy_bitwise-selftests.c: Fix indentation.
2161 * unittests/memory-map-selftests.c: Fix indentation.
2162 * utils.c: Fix indentation.
2163 * v850-tdep.c: Fix indentation.
2164 * valarith.c: Fix indentation.
2165 * valops.c: Fix indentation.
2166 * valprint.c: Fix indentation.
2167 * valprint.h: Fix indentation.
2168 * value.c: Fix indentation.
2169 * value.h: Fix indentation.
2170 * varobj.c: Fix indentation.
2171 * vax-tdep.c: Fix indentation.
2172 * windows-nat.c: Fix indentation.
2173 * windows-tdep.c: Fix indentation.
2174 * xcoffread.c: Fix indentation.
2175 * xml-syscall.c: Fix indentation.
2176 * xml-tdesc.c: Fix indentation.
2177 * xstormy16-tdep.c: Fix indentation.
2178 * xtensa-config.c: Fix indentation.
2179 * xtensa-linux-nat.c: Fix indentation.
2180 * xtensa-linux-tdep.c: Fix indentation.
2181 * xtensa-tdep.c: Fix indentation.
2183 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2184 Craig Blackmore <craig.blackmore@embecosm.com>
2186 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2187 as an unsigned value.
2189 2020-11-01 Tom Tromey <tom@tromey.com>
2191 * dbxread.c (dbx_end_psymtab): Update.
2192 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2193 (build_type_psymtabs_reader): Update.
2194 * xcoffread.c (xcoff_end_psymtab): Update.
2195 * ctfread.c (scan_partial_symbols): Update.
2196 * psymtab.c (sort_pst_symbols): Remove.
2197 (partial_symtab::end): Rename from end_psymtab_common. Inline
2199 * psympriv.h (struct partial_symtab) <end>: New method.
2200 (end_psymtab_common): Don't declare.
2202 2020-11-01 Tom Tromey <tom@tromey.com>
2204 * symmisc.c (count_psyms): New function.
2205 (print_objfile_statistics): Use it.
2206 * psymtab.c (append_psymbol_to_list): Remove.
2207 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2208 * objfiles.h (struct objstats) <n_psyms>: Remove.
2210 2020-11-01 Tom Tromey <tom@tromey.com>
2212 * dbxread.c (dbx_end_psymtab): Update.
2213 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2214 (build_type_psymtabs_reader): Update.
2215 * xcoffread.c (xcoff_end_psymtab): Update.
2216 * ctfread.c (scan_partial_symbols): Update.
2217 * psympriv.h (end_psymtab_common): Update.
2218 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2219 (sort_pst_symbols): Likewise.
2221 2020-11-01 Tom Tromey <tom@tromey.com>
2223 * dbxread.c (dbx_symfile_read): Update.
2224 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2225 * xcoffread.c (xcoff_initial_scan): Update.
2226 * psympriv.h (init_psymbol_list): Don't declare.
2227 * psymtab.c (init_psymbol_list): Remove.
2229 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2231 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2232 gnat_encoded_fixed_type_info. Update all callers.
2234 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2236 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2239 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2241 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2242 cast_from_fixed. Update all callers.
2243 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2245 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2247 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2249 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2250 to print_gnat_encoded_fixed_point_type.
2251 * ada-valprint.c: Likewise.
2253 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2255 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2256 (debug_prefixed_printf): Add check of debug_displaced flag.
2257 * linux-nat.c (linux_nat_debug_printf): Add check of
2258 debug_linux_nat flag.
2260 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2262 * infrun.c (infrun_debug_printf_1): Remove.
2263 (displaced_debug_printf_1): Remove.
2264 (stop_all_threads): Use debug_prefixed_printf.
2265 * infrun.h (infrun_debug_printf_1): Remove.
2266 (infrun_debug_printf): Use debug_prefixed_printf.
2267 (displaced_debug_printf_1): Remove.
2268 (displaced_debug_printf): Use debug_prefixed_printf.
2269 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2270 (linux_nat_debug_printf): Use debug_prefixed_printf.
2272 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2274 * configure: Re-generate.
2275 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2278 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2280 * configure: Re-generate.
2282 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2284 * configure: Re-generate.
2286 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2288 * configure: Re-generate.
2290 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2292 * configure: Re-generate.
2294 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2296 * acinclude.m4: Modernize.
2297 * configure: Re-generate.
2299 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2301 * configure.ac: Modernize.
2302 * configure: Re-generate.
2304 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2306 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2307 * configure: Re-generate.
2308 * configure.ac: Remove AM_PROG_CC_STDC.
2310 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2312 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2313 AC_CANONICAL_SYSTEM.
2314 * configure: Re-generate.
2316 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2318 * infrun.h (displaced_debug_printf): New macro. Replace
2319 displaced debug prints throughout to use it.
2320 (displaced_debug_printf_1): New declaration.
2321 (displaced_step_dump_bytes): Return string, remove ui_file
2322 parameter, update all callers.
2323 * infrun.c (displaced_debug_printf_1): New function.
2324 (displaced_step_dump_bytes): Return string, remove ui_file
2327 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2329 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2331 2020-10-30 Tom Tromey <tromey@adacore.com>
2333 * Makefile.in (stamp-init): Depend on config.status.
2335 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2337 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2339 2020-10-30 Pedro Alves <pedro@palves.net>
2341 * thread.c (lookup_selected_frame): Move ...
2342 * frame.c (lookup_selected_frame): ... here.
2344 2020-10-30 Pedro Alves <pedro@palves.net>
2346 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2348 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2349 Use save_selected_frame. Save language as well.
2350 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2351 Use restore_selected_frame, and restore language as well.
2352 (selected_frame_id, selected_frame_level): New.
2353 (selected_frame): Update comments.
2354 (save_selected_frame, restore_selected_frame): New.
2355 (get_selected_frame): Use lookup_selected_frame.
2356 (get_selected_frame_if_set): Delete.
2357 (select_frame): Record selected_frame_level and selected_frame_id.
2358 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2360 (get_selected_frame): Make 'message' parameter optional.
2361 (get_selected_frame_if_set): Delete declaration.
2362 (select_frame): Update comments.
2363 (save_selected_frame, restore_selected_frame)
2364 (lookup_selected_frame): Declare.
2365 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2366 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2368 (save_infcall_control_state): Use save_selected_frame.
2369 (restore_selected_frame): Delete.
2370 (restore_infcall_control_state): Use restore_selected_frame.
2371 * stack.c (select_frame_command_core, frame_command_core): Use
2373 * thread.c (restore_selected_frame): Rename to ...
2374 (lookup_selected_frame): ... this and make extern. Select the
2375 current frame if the frame level is -1.
2376 (scoped_restore_current_thread::restore): Also restore the
2378 (scoped_restore_current_thread::~scoped_restore_current_thread):
2380 (scoped_restore_current_thread::scoped_restore_current_thread):
2381 Save the language as well. Use save_selected_frame.
2383 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2385 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2387 * gdbarch.h: Re-generate.
2389 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2391 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2393 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2395 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2397 * arch-utils.c (default_displaced_step_hw_singlestep):
2399 * arch-utils.h (default_displaced_step_hw_singlestep):
2401 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2403 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2405 * gdbarch.c: Re-generate.
2406 * gdbarch.h: Re-generate.
2407 * infrun.c (resume_1): Adjust.
2409 2020-10-29 Tom Tromey <tom@tromey.com>
2411 * progspace.c (program_space::~program_space): Don't call
2414 2020-10-29 Tom Tromey <tom@tromey.com>
2416 * exec.c (exec_target::close): Don't change current program
2419 2020-10-29 Tom Tromey <tom@tromey.com>
2421 * symfile.c (add_symbol_file_command): Update.
2422 * exec.c (program_space::add_target_sections): Rename.
2423 * symfile-mem.c (symbol_file_add_from_memory): Update.
2424 * progspace.h (struct program_space) <add_target_sections>:
2425 Declare new overload.
2426 * exec.h (add_target_sections_of_objfile): Don't declare.
2428 2020-10-29 Tom Tromey <tom@tromey.com>
2430 * solib.c (solib_map_sections): Update.
2431 * exec.c (program_space::add_target_sections): Now a method.
2432 (exec_file_attach): Update.
2433 * exec.h (add_target_sections): Don't declare.
2434 * progspace.h (struct program_space) <add_target_sections>:
2437 2020-10-29 Tom Tromey <tom@tromey.com>
2439 * progspace.h (struct program_space) <remove_target_sections>:
2441 * exec.c (program_space::remove_target_sections): Now a method.
2442 * exec.h (remove_target_sections): Don't declare.
2444 2020-10-29 Tom Tromey <tom@tromey.com>
2446 * inferior.c (delete_inferior): Update.
2447 * progspace.c (program_space::empty): Rename from
2448 program_space_empty_p. Return bool.
2449 * progspace.h (struct program_space) <empty>: New method.
2450 (program_space_empty_p): Don't declare.
2452 2020-10-29 Tom Tromey <tom@tromey.com>
2454 * progspace.c (program_space::~program_space): Don't call
2455 clear_program_space_solib_cache.
2456 (program_space::clear_solib_cache): Rename from
2458 * solib.c (handle_solib_event): Update.
2459 * progspace.h (struct program_space) <clear_solib_cache>: New
2461 (clear_program_space_solib_cache): Don't declare.
2463 2020-10-29 Tom Tromey <tom@tromey.com>
2465 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2466 * target.c (info_target_command): Update.
2467 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2468 (symbol_file_clear, reread_symbols): Update.
2469 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2470 * stabsread.c (scan_file_globals): Update.
2471 * solib.c (update_solib_list): Update.
2472 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2473 (svr4_fetch_objfile_link_map, enable_break)
2474 (svr4_relocate_main_executable)
2475 (svr4_iterate_over_objfiles_in_search_order): Update.
2476 * solib-frv.c (lm_base, enable_break)
2477 (frv_relocate_main_executable): Update.
2478 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2479 (frv_fetch_objfile_link_map): Update.
2480 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2481 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2482 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2483 * remote.c (remote_target::get_offsets): Update.
2484 (remote_target::start_remote)
2485 (extended_remote_target::post_attach): Update.
2486 * objfiles.c (entry_point_address_query): Update.
2487 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2488 * minsyms.c (get_symbol_leading_char): Update.
2489 * frame.c (inside_main_func): Update.
2490 * progspace.h (symfile_objfile): Remove macro.
2492 2020-10-29 Tom Tromey <tom@tromey.com>
2494 * exec.c (exec_file_attach): Update.
2495 * progspace.c (program_space::exec_close): Update.
2496 * progspace.h (struct program_space) <ebfd>: Now a
2498 <set_exec_bfd>: Change argument type.
2501 2020-10-29 Tom Tromey <tom@tromey.com>
2503 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2504 * symfile.c (reread_symbols): Update.
2505 * symfile-mem.c (add_symbol_file_from_memory_command)
2506 (add_vsyscall_page): Update.
2507 * source-cache.c (source_cache::get_plain_source_lines): Update.
2508 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2509 (svr4_current_sos_direct, svr4_exec_displacement)
2510 (svr4_relocate_main_executable): Update.
2511 (svr4_iterate_over_objfiles_in_search_order): Update.
2512 * solib-frv.c (enable_break2, enable_break): Update.
2513 * solib-dsbt.c (lm_base, enable_break): Update.
2514 * solib-darwin.c (find_program_interpreter)
2515 (darwin_solib_create_inferior_hook): Update.
2516 * sol-thread.c (rw_common, ps_pdmodel): Update.
2517 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2518 * remote.c (compare_sections_command)
2519 (remote_target::trace_set_readonly_regions): Update.
2520 * remote-sim.c (get_sim_inferior_data)
2521 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2522 (gdbsim_target_open, gdbsim_target::files_info): Update.
2523 * exec.h (exec_bfd): Remove macro.
2524 * progspace.c (initialize_progspace): Update.
2525 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2527 * nto-procfs.c (nto_procfs_target::post_attach)
2528 (nto_procfs_target::create_inferior): Update.
2529 * maint.c (maintenance_info_sections): Update.
2530 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2532 * infcmd.c (post_create_inferior): Update.
2533 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2534 (objfile_find_memory_regions): Update.
2535 * exec.c (validate_exec_file, exec_file_attach)
2536 (exec_read_partial_read_only, print_section_info): Update.
2537 * corelow.c (core_target_open): Update.
2538 * corefile.c (reopen_exec_file, validate_files): Update.
2539 * arm-tdep.c (gdb_print_insn_arm): Update.
2540 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2541 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2544 2020-10-29 Tom Tromey <tom@tromey.com>
2546 * progspace.h (current_target_sections): Remove macro.
2547 * solib-svr4.c (scan_dyntag): Update.
2548 * solib-dsbt.c (scan_dyntag): Update.
2549 * exec.c (exec_target::close): Update.
2550 (add_target_sections, add_target_sections_of_objfile)
2551 (remove_target_sections, exec_target::get_section_table)
2552 (exec_target::files_info, set_section_command)
2553 (exec_set_section_address, exec_target::has_memory)
2554 (exec_target::has_memory): Update.
2556 2020-10-29 Tom Tromey <tom@tromey.com>
2558 * source-cache.c (source_cache::get_plain_source_lines): Use
2559 current_program_space.
2560 * corefile.c (reopen_exec_file): Use current_program_space.
2561 * exec.c (exec_file_attach): Use current_program_space.
2562 * exec.h (exec_bfd_mtime): Remove.
2564 2020-10-29 Tom Tromey <tom@tromey.com>
2566 * gcore.c (default_gcore_mach): Remove.
2567 (create_gcore_bfd): Update.
2569 2020-10-29 Tom Tromey <tom@tromey.com>
2571 * progspace.c (program_space::exec_close): New method, from
2572 exec_close in exec.c.
2573 * exec.c (exec_close): Move to progspace.c.
2574 (exec_target::close, exec_file_attach): Update.
2575 * progspace.h (struct program_space) <exec_close>: Declare
2578 2020-10-29 Tom Tromey <tom@tromey.com>
2580 * progspace.h (struct program_space) <exec_filename>: Rename from
2581 pspace_exec_filename. Now a unique_xmalloc_ptr.
2582 * inferior.c (print_selected_inferior): Update.
2583 (print_inferior): Update.
2584 * mi/mi-main.c (print_one_inferior): Update.
2585 * exec.h (exec_filename): Remove macro.
2586 * corefile.c (get_exec_file): Update.
2587 * exec.c (exec_close): Update.
2588 (exec_file_attach): Update.
2589 * progspace.c (clone_program_space): Update.
2590 (print_program_space): Update.
2592 2020-10-29 Tom Tromey <tom@tromey.com>
2594 * target-section.h (struct target_section): Add constructor.
2595 * exec.c (build_section_table, add_target_sections_of_objfile):
2597 * corelow.c (core_target::build_file_mappings): Update.
2599 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2602 * inferior.c (detach_inferior_command): Restore the current thread.
2603 (kill_inferior_command): Ditto.
2605 2020-10-28 Tom de Vries <tdevries@suse.de>
2608 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2609 map, check it in the "best match" loop.
2611 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2613 * m32c-tdep.c: Remove unused includes.
2615 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2617 * xtensa-tdep.c: Remove includes.
2619 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2621 * breakpoint.c (struct condition_command_opts): New struct.
2622 (condition_command_option_defs): New static global.
2623 (make_condition_command_options_def_group): New function.
2624 (condition_completer): Update to consider the '-force' flag.
2625 (condition_command): Use gdb::option for the '-force' flag.
2627 2020-10-27 Tom de Vries <tdevries@suse.de>
2629 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2630 symbols in section check.
2632 2020-10-27 Tom de Vries <tdevries@suse.de>
2634 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2636 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2638 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2639 * breakpoint.c: Update the help text of the 'condition' and 'break'
2641 (set_breakpoint_condition): Take a new bool parameter
2642 to control whether condition definition should be forced even when
2643 the condition expression is invalid in all of the current locations.
2644 (condition_command): Update the call to 'set_breakpoint_condition'.
2645 (find_condition_and_thread): Take the "-force-condition" flag into
2647 * linespec.c (linespec_keywords): Add "-force-condition" as an
2649 (FORCE_KEYWORD_INDEX): New #define.
2650 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2652 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2653 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2654 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2655 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2657 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2659 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2660 * breakpoint.c (set_breakpoint_location_condition): New function.
2661 (set_breakpoint_condition): Disable a breakpoint location if parsing
2662 the condition string gives an error.
2663 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2664 (build_target_condition_list): Ditto.
2665 (build_target_command_list): Ditto.
2666 (build_bpstat_chain): Ditto.
2667 (print_one_breakpoint_location): Ditto.
2668 (print_one_breakpoint): Ditto.
2669 (breakpoint_1): Ditto.
2670 (bp_location::bp_location): Ditto.
2671 (locations_are_equal): Ditto.
2672 (update_breakpoint_locations): Ditto.
2673 (enable_disable_bp_num_loc): Ditto.
2674 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2675 (find_condition_and_thread_for_sals): New static function.
2676 (create_breakpoint): Call find_condition_and_thread_for_sals.
2677 (location_to_sals): Call find_condition_and_thread_for_sals instead
2678 of find_condition_and_thread.
2680 2020-10-26 Tom de Vries <tdevries@suse.de>
2682 * dwarf2/read.c (process_full_comp_unit): Call
2683 dwarf2_find_base_address.
2685 2020-10-26 Tom Tromey <tromey@adacore.com>
2687 * gdbtypes.c (create_range_type): Revert previous patch. Add
2690 2020-10-26 Pedro Alves <pedro@palves.net>
2692 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2693 (my_waitpid): Use gdb::handle_eintr.
2695 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2697 * acinclude.m4: Update ptrace.m4 path.
2698 * ptrace.m4: Moved to gdbsupport.
2700 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2702 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2703 instead of target_gdbarch.
2705 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2707 * jit.c (jit_reader_load_command): Pass current inferior.
2708 (jit_inferior_init): Change parameter type to inferior, use it.
2709 (jit_inferior_created): Remove.
2710 (jit_inferior_created_hook): Pass inferior parameter down.
2711 (_initialize_jit): Use jit_inferior_created_hook instead of
2712 jit_inferior_created.
2713 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2714 * infrun.c (follow_exec): Pass inferior to
2715 jit_inferior_created_hook.
2717 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2719 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2720 parameter and use it.
2721 (thread_db_inferior_created): Pass inferior argument.
2723 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2725 * aix-thread.c (aix_thread_inferior_created): Add inferior
2727 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2728 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2729 * jit.c (jit_inferior_created): Likewise.
2730 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2731 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2732 * observable.h (inferior_created): Likewise.
2733 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2734 * symfile-mem.c (add_vsyscall_page): Likewise.
2735 * infcmd.c (post_create_inferior): Pass inferior argument.
2737 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2741 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2743 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2744 to ada_check_typedef.
2746 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2748 * f-exp.y (f_parse): Rename to...
2749 (f_language::parser): ...this.
2750 * f-lang.c (f_get_encoding): Rename to...
2751 (f_language::get_encoding): ...this.
2752 (f_op_print_tab): Rename to...
2753 (f_language::op_print_tab): ...this.
2754 (exp_descriptor_f): Rename to...
2755 (f_language::exp_descriptor_tab): ...this.
2756 (class f_language): Moved to f-lang.h.
2757 (f_language::language_arch_info): New function, moved out of class
2759 (f_language::search_name_hash): Likewise.
2760 (f_language::lookup_symbol_nonlocal): Likewise.
2761 (f_language::get_symbol_name_matcher_inner): Likewise.
2762 * f-lang.h: Add 'valprint.h' include.
2763 (class f_language): Moved here from f-lang.c.
2764 * f-typeprint.c (f_type_print_args): Delete commented out
2766 (f_print_typedef): Rename to...
2767 (f_language::print_typedef): ...this.
2768 (f_print_type): Rename to...
2769 (f_language::print_type): ...this.
2770 (f_type_print_varspec_prefix): Delete declaration and rename to...
2771 (f_language::f_type_print_varspec_prefix): ...this.
2772 (f_type_print_varspec_suffix): Delete declaration and rename to...
2773 (f_language::f_type_print_varspec_suffix): ...this.
2774 (f_type_print_base): Delete declaration and rename to...
2775 (f_language::f_type_print_base): ...this.
2776 * f-valprint.c (f_value_print_inner): Rename to...
2777 (f_language::value_print_inner): ...this.
2778 * parse.c: Delete 'f-lang.h' include.
2780 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2782 * language.h (language_defn::print_type): Add variable names in
2783 declaration, and update header comment.
2785 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2787 * ada-lang.c (ada_language::demangle): Rename to...
2788 (ada_language::demangle_symbol): ...this.
2789 * c-lang.c (cplus_language::demangle): Rename to...
2790 (cplus_language::demangle_symbol): ...this.
2791 * d-lang.c (d_language::demangle): Rename to...
2792 (d_language::demangle_symbol): ...this.
2793 * f-lang.c (f_language::demangle): Rename to...
2794 (f_language::demangle_symbol): ...this.
2795 * go-lang.c (go_language::demangle): Rename to...
2796 (go_language::demangle_symbol): ...this.
2797 * language.c (language_demangle): Update call to demangle_symbol.
2798 (auto_or_unknown_language::demangle): Rename to...
2799 (auto_or_unknown_language::demangle_symbol): ...this.
2800 * language.h (language_defn::demangle): Rename to...
2801 (language_defn::demangle_symbol): ...this.
2802 * objc-lang.c (objc_language::demangle): Rename to...
2803 (objc_language::demangle_symbol): ...this.
2804 * rust-lang.c (rust_language::demangle): Rename to...
2805 (rust_language::demangle_symbol): ...this.
2807 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2809 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2810 (iterate_over_file_blocks): Replace use of macro with the macros
2813 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2815 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2816 * valprint.c (maybe_print_array_index): Replace use of macro with
2817 the macros definition.
2819 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2821 * ada-lang.c (ada_language::print_array_index): Call value_print
2823 * language.c (language_defn::print_array_index): Likewise.
2824 * language.h (LA_VALUE_PRINT): Delete.
2825 * valprint.c (value_print): Call value_print on the
2826 current_language directly.
2828 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2830 * language.h (LA_PRINT_TYPEDEF): Delete.
2831 * typeprint.c (typedef_print): Call print_typedef directly on the
2832 current_language object.
2834 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2836 * m2-exp.y (m2_parse): Rename to...
2837 (m2_language::parser): ...this. Update function signature.
2838 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2839 (m2_op_print): Rename to...
2840 (m2_language::op_print_tab): ...this, and make const.
2841 (exp_descriptor_modula2): Rename to...
2842 (m2_language::exp_descriptor_modula2): ...this.
2843 (class m2_language): Move to m2-lang.h.
2844 (m2_language::language_arch_info): New function, moved out of
2846 (m2_language::printchar): New function, body from m2_printchar.
2847 (m2_language::printstr): New function, moved out of class
2849 (m2_language::emitchar): Likewise.
2850 * m2-lang.h (m2_parse): Delete declaration.
2851 (m2_print_typedef): Delete declaration.
2852 (m2_value_print_inner): Delete declaration.
2853 (class m2_language): Class declaration moved from m2-lang.c,
2854 larger functions are left in m2-lang.c.
2855 * m2-typeprint.c (m2_print_typedef): Rename to...
2856 (m2_language::print_typedef): ...this, and update function
2858 * m2-valprint.c (m2_value_print_inner): Rename to...
2859 (m2_language::value_print_inner): ...this, replace use of
2860 LA_PRINT_STRING with a direct call to printstr member function,
2861 and update recursive call.
2863 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2865 * language.c (default_is_string_type_p): Delete, implementation
2866 moved into auto_or_unknown_language::is_string_type_p.
2867 (unk_op_print_tab): Moved into
2868 auto_or_unknown_language::opcode_print_table.
2869 (unknown_language_arch_info): Delete, implementation moved into
2870 auto_or_unknown_language::language_arch_info.
2871 (class auto_or_unknown_language): New class, member functions
2872 copied from unknown_language class, with some updates.
2873 (class unknown_language): Most member functions moved into
2874 auto_or_unknown_language class. Inherit from
2875 auto_or_unknown_language class.
2876 (class auto_language): Inherit from auto_or_unknown_language.
2877 Delete most member functions.
2879 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2881 * stabsread.c (read_member_functions): Remove gdb_assert.
2883 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2885 * gdbtypes.c (init_complex_type): Check target type name.
2887 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2889 * target-debug.h (target_debug_print_struct_target_ops_p):
2891 (target_debug_print_async_callback_ftype_p): Remove.
2892 (target_debug_print_struct_trace_state_variable_p): Remove.
2893 (target_debug_print_struct_traceframe_info_p): Remove.
2894 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2895 (target_debug_print_enum_btrace_format): Remove.
2896 (target_debug_print_enum_info_proc_what): Remove.
2897 (target_debug_print_thread_info_pp): Remove.
2899 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2901 * target.h (struct target_ops) <make_corefile_notes>:
2902 Change return type to unique pointer.
2903 * target.c (dummy_make_corefile_notes): Likewise.
2904 * exec.c (struct exec_target) <make_corefile_notes>:
2906 (exec_target::make_corefile_notes): Likewise.
2907 * procfs.c (class procfs_target) <make_corefile_notes>:
2909 (procfs_do_thread_registers): Adjust to unique pointer.
2910 (struct procfs_corefile_thread_data): Add constructor.
2911 <note_data>: Change type to unique pointer.
2912 (procfs_corefile_thread_callback): Adjust to unique pointer.
2913 (procfs_target::make_corefile_notes): Change return type to
2915 * target-delegates.c: Re-generate.
2916 * gcore.c (write_gcore_file_1): Adjust.
2917 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2920 2020-10-22 Tom de Vries <tdevries@suse.de>
2922 * block.c (find_block_in_blockvector): Make sure the returned block
2925 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2928 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2930 (load_cu): Pass existing CU.
2931 (process_imported_unit_die): Likewise.
2932 (follow_die_offset): Likewise.
2934 2020-10-22 Luis Machado <luis.machado@linaro.org>
2936 * corelow.c (core_target::xfer_partial): Also check for an empty
2937 m_core_unavailable_mappings vector.
2939 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2941 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2942 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2943 * f-exp.y (arglist): Allow for a series of subranges.
2944 (subrange): Add cases for subranges with strides.
2945 * f-lang.c (value_f90_subarray): Catch use of array strides and
2947 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2949 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2951 * expprint.c (print_subexp_standard): Change enum range_type to
2952 range_flag and rename variables to match.
2953 (dump_subexp_body_standard): Likewise.
2954 * expression.h (enum range_type): Rename to...
2955 (enum range_flag): ...this.
2956 (range_types): Rename to...
2957 (range_flags): ...this.
2958 * f-lang.c (value_f90_subarray): Change enum range_type to
2959 range_flag and rename variables to match.
2960 * parse.c (operator_length_standard): Likewise.
2961 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2962 range_type to range_flag.
2963 * rust-lang.c (rust_evaluate_funcall): Likewise.
2964 (rust_range): Likewise.
2965 (rust_compute_range): Likewise.
2966 (rust_subscript): Likewise.
2968 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2970 * expprint.c (print_subexp_standard): Update to reflect changes to
2972 (dump_subexp_body_standard): Likewise.
2973 * expression.h (enum range_type): Convert to a bit field enum, and
2974 make the enum unsigned.
2975 * f-exp.y (subrange): Update to reflect changes to enum
2977 * f-lang.c (value_f90_subarray): Likewise.
2978 * parse.c (operator_length_standard): Likewise.
2979 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2980 * rust-lang.c (rust_range): Likewise.
2981 (rust_compute_range): Likewise.
2982 (rust_subscript): Likewise.
2984 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2986 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2987 (displaced_step_in_progress): Fix comment.
2989 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2991 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2992 * gdbarch.c: Re-generate.
2993 * gdbarch.h: Re-generate.
2994 * gcore.c (write_gcore_file_1): Adjust.
2995 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2997 <note_data>: Change type to unique pointer.
2998 <abort_iteration>: Change type to bool.
2999 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
3000 (fbsd_collect_thread_registers): Return void, adjust.
3001 (struct fbsd_corefile_thread_data): Add construtor.
3002 <note_data>: Change type to unique pointer.
3003 (fbsd_corefile_thread): Adjust.
3004 (fbsd_make_corefile_notes): Return unique pointer, adjust.
3005 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
3006 to unique pointer, adjust.
3007 (struct linux_collect_regset_section_cb_data): Add constructor.
3008 <note_data>: Change type to unique pointer.
3009 <abort_iteration>: Change type to bool.
3010 (linux_collect_thread_registers): Return void, adjust.
3011 (struct linux_corefile_thread_data): Add constructor.
3012 <note_data>: Change type to unique pointer.
3013 (linux_corefile_thread): Adjust.
3014 (linux_make_corefile_notes): Return unique pointer, adjust.
3016 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3018 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
3019 * gdbarch.c: Re-generate.
3020 * gdbarch.h: Re-generate.
3021 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
3023 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
3025 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
3026 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
3027 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
3028 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
3030 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3032 * gdbarch.sh: Make generated predicates return bool.
3033 * gdbarch.c: Re-generate.
3034 * gdbarch.h: Re-generate.
3036 2020-10-20 Tom Tromey <tom@tromey.com>
3038 * varobj-iter.h (struct varobj_item): Remove typedef.
3040 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3042 * infrun.c (currently_stepping): Change int to bool
3043 (maybe_software_singlestep): Likewise.
3044 (show_stop_on_solib_events): Likewise.
3045 (stepping_past_nonsteppable_watchpoint): Likewise.
3046 (displaced_step_in_progress_any_inferior): Likewise.
3047 (displaced_step_in_progress_thread): Likewise.
3048 (keep_going_stepped_thread): Likewise.
3049 (thread_still_needs_step_over): Likewise.
3050 (start_step_over): Likewise.
3051 (do_target_resume): Likewise.
3052 (resume_1): Likewise.
3053 (clear_proceed_status): Likewise.
3054 (thread_still_needs_step_over_bp): Likewise.
3055 (proceed): Likewise.
3056 (switch_back_to_stepped_thread): Likewise.
3057 (adjust_pc_after_break): Likewise.
3058 (stepped_in_from): Likewise.
3059 (handle_stop_requested): Likewise.
3060 (handle_syscall_event): Likewise.
3061 (handle_no_resumed): Likewise.
3062 (handle_inferior_event): Likewise.
3063 (finish_step_over): Likewise.
3064 (handle_signal_stop): Likewise.
3065 (process_event_stop_test): Likewise.
3067 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3069 * infrun.c (get_displaced_stepping_state): Fix comment.
3071 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
3073 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
3075 2020-10-19 Tom Tromey <tromey@adacore.com>
3078 * tui/tui-winsource.h (struct tui_source_window_base)
3079 <refresh_window>: Rename from refresh_pad.
3080 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3081 Rename from refresh_pad.
3082 (tui_source_window_base::show_source_content)
3083 (tui_source_window_base::do_scroll_horizontal): Update.
3085 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3087 * thread.c (_initialize_thread): Fine-tune the help text of
3090 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3092 * frame.c: Remove the unused 'uinteger_option_def' type alias.
3094 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
3096 * breakpoint.c (handle_jit_event): Add an argument, change how
3097 `jit_event_handler` is called.
3099 2020-10-17 Tom Tromey <tom@tromey.com>
3101 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
3102 (scan_xcoff_symtab): Update.
3103 * psymtab.h (class psymtab_storage) <global_psymbols,
3104 static_psymbols, current_global_psymbols,
3105 current_static_psymbols>: Remove.
3106 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3107 (match_partial_symbol, lookup_partial_symbol): Update.
3108 (print_partial_symbols): Change parameters.
3109 (dump_psymtab, recursively_search_psymtabs)
3110 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3111 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3113 (end_psymtab_common): Simplify.
3114 (append_psymbol_to_list): Change parameters.
3115 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3116 (init_psymbol_list): Simplify.
3117 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3118 * psympriv.h (struct partial_symtab) <empty>: New method.
3119 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3121 <global_psymbols, static_psymbols>: New members.
3122 <add_psymbol>: New methods.
3123 (add_psymbol_to_list): Don't declare.
3124 (psymbol_placement): Move earlier.
3125 * mdebugread.c (parse_partial_symbols): Update.
3126 (handle_psymbol_enumerators): Change parameters.
3127 (mdebug_expand_psymtab): Update.
3128 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3129 (add_partial_symbol): Update.
3130 * dwarf2/index-write.c (write_psymbols): Change parameters.
3131 (write_one_signatured_type): Update.
3132 (recursively_count_psymbols): Update.
3133 (recursively_write_psymbols): Update.
3134 (class debug_names) <recursively_write_psymbols>: Update.
3135 <write_psymbols>: Change parameters.
3136 <write_one_signatured_type>: Update.
3137 * dbxread.c (read_dbx_symtab): Update.
3138 (dbx_end_psymtab): Use partial_symtab::empty.
3139 * ctfread.c (struct ctf_context) <pst>: New member.
3140 (create_partial_symtab): Set it.
3141 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3142 (scan_partial_symbols): Use the psymtab's context. Update.
3144 2020-10-17 Tom Tromey <tom@tromey.com>
3146 * valprint.c (generic_value_print): Remove comment.
3147 * m2-valprint.c (m2_value_print_inner): Remove comment.
3148 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3151 2020-10-17 Tom de Vries <tdevries@suse.de>
3154 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3157 2020-10-14 Tom de Vries <tdevries@suse.de>
3160 * solib.c (solib_contains_address_p): Handle
3161 'solib->sections == nullptr'.
3163 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3166 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3167 target can't do async.
3168 * target.c (target_wait): Assert that we don't pass
3169 TARGET_WNOHANG to a target that can't async.
3171 2020-10-13 Kamil Rytarowski <n54@gmx.com>
3173 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3174 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3175 * alpha-bsd-nat.c: Adjust include.
3176 * alpha-bsd-tdep.h: Adjust comment.
3177 * alpha-nbsd-tdep.c: Rename to ...
3178 * alpha-netbsd-tdep.c: ... this, adjust include.
3179 * amd64-nbsd-nat.c: Rename to ...
3180 * amd64-netbsd-nat.c: ... this, adjust include.
3181 * amd64-nbsd-tdep.c: Rename to ...
3182 * amd64-netbsd-tdep.c: ... this, adjust include.
3183 * amd64-tdep.h: Adjust include.
3184 * arm-nbsd-nat.c: Rename to ...
3185 * arm-netbsd-nat.c: ... this, adjust include.
3186 * arm-nbsd-tdep.c: Rename to ...
3187 * arm-netbsd-tdep.c: ... this, adjust include.
3188 * arm-nbsd-tdep.h: Rename to ...
3189 * arm-netbsd-tdep.h: ... this, adjust include.
3190 * configure.nat: Adjust file lists.
3191 * configure.tgt: Likewise.
3192 * hppa-nbsd-nat.c: Rename to ...
3193 * hppa-netbsd-nat.c: ... this, adjust include.
3194 * hppa-nbsd-tdep.c: Rename to ...
3195 * hppa-netbsd-tdep.c: ... this, adjust include.
3196 * i386-nbsd-nat.c: Rename to ...
3197 * i386-netbsd-nat.c: ... this, adjust include.
3198 * i386-nbsd-tdep.c: Rename to ...
3199 * i386-netbsd-tdep.c: ... this, adjust include.
3200 * m68k-bsd-nat.c: Adjust include.
3201 * mips-nbsd-nat.c: Rename to ...
3202 * mips-netbsd-nat.c: ... this, adjust include.
3203 * mips-nbsd-tdep.c: Rename to ...
3204 * mips-netbsd-tdep.c: ... this, adjust include.
3205 * mips-nbsd-tdep.h: Rename to ...
3206 * mips-netbsd-tdep.h: ... this.
3207 * nbsd-nat.c: Rename to ...
3208 * netbsd-nat.c: ... this, adjust include.
3209 * nbsd-nat.h: Rename to ...
3210 * netbsd-nat.h: ... this, adjust include.
3211 * nbsd-tdep.c: Rename to ...
3212 * netbsd-tdep.c: ... this, adjust include.
3213 * nbsd-tdep.h: Rename to ...
3214 * netbsd-tdep.h: ... this.
3215 * ppc-nbsd-nat.c: Rename to ...
3216 * ppc-netbsd-nat.c: ... this, adjust include.
3217 * ppc-nbsd-tdep.c: Rename to ...
3218 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3219 * ppc-nbsd-tdep.h: Rename to ...
3220 * ppc-netbsd-tdep.h: ... this.
3221 * sh-nbsd-nat.c: Rename to ...
3222 * sh-netbsd-nat.c: ... this, adjust include.
3223 * sh-nbsd-tdep.c: Rename to ...
3224 * sh-netbsd-tdep.c: ... this, adjust include.
3225 * sparc-nbsd-nat.c: Rename to ...
3226 * sparc-netbsd-nat.c: ... this.
3227 * sparc-nbsd-tdep.c: Rename to ...
3228 * sparc-netbsd-tdep.c: ... this, adjust include.
3229 * sparc64-nbsd-nat.c: Rename to ...
3230 * sparc64-netbsd-nat.c: ... this.
3231 * sparc64-nbsd-tdep.c: Rename to ...
3232 * sparc64-netbsd-tdep.c: ... this, adjust include.
3233 * sparc64-tdep.h: Adjust comment.
3234 * vax-bsd-nat.c: Adjust include.
3235 * vax-nbsd-tdep.c: Rename to ...
3236 * vax-netbsd-tdep.c: ... this, adjust include.
3238 2020-10-12 Tom Tromey <tom@tromey.com>
3240 * target.h (struct target_ops) <get_section_table>: Update.
3241 (target_get_section_table): Update.
3242 * target.c (target_get_section_table, target_section_by_addr)
3243 (memory_xfer_partial_1): Update.
3244 * target-section.h (target_section_table): Now an alias.
3245 * target-delegates.c: Rebuild.
3246 * target-debug.h (target_debug_print_target_section_table_p):
3247 Rename from target_debug_print_struct_target_section_table_p.
3248 * symfile.c (build_section_addr_info_from_section_table): Update.
3249 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3250 * solib-svr4.c (scan_dyntag): Update.
3251 * solib-dsbt.c (scan_dyntag): Update.
3252 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3254 * record-full.c (record_full_core_target::xfer_partial): Update.
3255 * progspace.h (struct program_space) <target_sections>: Update.
3256 * exec.h (print_section_info): Update.
3257 * exec.c (exec_target::close, build_section_table)
3258 (add_target_sections, add_target_sections_of_objfile)
3259 (remove_target_sections, exec_on_vfork)
3260 (section_table_available_memory)
3261 (section_table_xfer_memory_partial)
3262 (exec_target::get_section_table, exec_target::xfer_partial)
3263 (print_section_info, set_section_command)
3264 (exec_set_section_address, exec_target::has_memory): Update.
3265 * corelow.c (core_target::build_file_mappings)
3266 (core_target::xfer_partial, core_target::info_proc_mappings)
3267 (core_target::info_proc_mappings): Update.
3268 * bfd-target.c (class target_bfd): Update
3270 2020-10-12 Tom Tromey <tom@tromey.com>
3272 * progspace.c (program_space::~program_space): Don't call
3273 clear_section_table.
3274 * exec.h (clear_section_table): Don't declare.
3275 * exec.c (exec_target::close): Update.
3276 (clear_section_table): Remove.
3278 2020-10-12 Tom Tromey <tom@tromey.com>
3280 * exec.c (add_target_sections_of_objfile): Simplify.
3282 2020-10-12 Tom Tromey <tom@tromey.com>
3284 * solib.c (solib_map_sections): Update.
3285 * record-full.c (record_full_core_open_1): Update.
3286 * exec.h (build_section_table): Return a target_section_table.
3287 * exec.c (exec_file_attach): Update.
3288 (build_section_table): Return a target_section_table.
3289 * corelow.c (core_target::core_target): Update.
3290 * bfd-target.c (target_bfd::target_bfd): Update.
3292 2020-10-12 Tom Tromey <tom@tromey.com>
3294 * target.c (target_section_by_addr, memory_xfer_partial_1):
3296 * target-section.h (struct target_section_table): Use
3298 * symfile.h (build_section_addr_info_from_section_table): Take a
3299 target_section_table.
3300 * symfile.c (build_section_addr_info_from_section_table): Take a
3301 target_section_table.
3302 * solist.h (struct so_list) <sections>: Change type.
3303 <sections_end>: Remove.
3304 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3305 (solib_contains_address_p): Update.
3306 * solib-svr4.c (scan_dyntag): Update.
3307 * solib-dsbt.c (scan_dyntag): Update.
3308 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3310 * record-full.c (record_full_core_start, record_full_core_end):
3312 (record_full_core_sections): New global.
3313 (record_full_core_open_1, record_full_core_target::xfer_partial):
3315 * exec.h (build_section_table, section_table_xfer_memory_partial)
3316 (add_target_sections): Take a target_section_table.
3317 * exec.c (exec_file_attach, clear_section_table): Update.
3318 (resize_section_table): Remove.
3319 (build_section_table, add_target_sections): Take a
3320 target_section_table.
3321 (add_target_sections_of_objfile, remove_target_sections)
3322 (exec_on_vfork): Update.
3323 (section_table_available_memory): Take a target_section_table.
3324 (section_table_read_available_memory): Update.
3325 (section_table_xfer_memory_partial): Take a target_section_table.
3326 (print_section_info, set_section_command)
3327 (exec_set_section_address, exec_target::has_memory): Update.
3328 * corelow.c (class core_target) <m_core_section_table,
3329 m_core_file_mappings>: Remove braces.
3330 <~core_target>: Remove.
3331 (core_target::core_target): Update.
3332 (core_target::~core_target): Remove.
3333 (core_target::build_file_mappings)
3334 (core_target::xfer_memory_via_mappings)
3335 (core_target::xfer_partial, core_target::info_proc_mappings):
3337 * bfd-target.c (target_bfd::xfer_partial): Update.
3338 (target_bfd::target_bfd): Update.
3339 (target_bfd::~target_bfd): Remove.
3341 2020-10-12 Tom Tromey <tom@tromey.com>
3343 * target.h (struct target_section, struct target_section_table):
3344 Move to target-section.h.
3345 * target-section.h: New file.
3347 2020-10-12 Pedro Alves <pedro@palves.net>
3350 * valops.c (struct struct_field_searcher): New.
3351 (update_search_result): Rename to ...
3352 (struct_field_searcher::update_result): ... this. Simplify
3353 prototype. Record all found fields.
3354 (do_search_struct_field): Rename to ...
3355 (struct_field_searcher::search): ... this. Simplify prototype.
3356 Maintain stack of visited baseclass path. Call update_result for
3357 fields too. Keep searching fields in baseclasses instead of
3358 stopping at the first found field.
3359 (search_struct_field): Use struct_field_searcher. When looking
3360 for fields, report ambiguous access attempts.
3362 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3364 * frame.c (inside_main_func): Check full symbols as well as
3367 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3369 * ada-lang.c (advance_wild_match): Rewrite the function's
3370 description. Change the type of target0, t0 and t1 to char.
3372 2020-10-09 Tom Tromey <tromey@adacore.com>
3374 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3376 2020-10-09 Tom Tromey <tromey@adacore.com>
3378 * ada-lang.h (ada_encode): Return std::string.
3379 * ada-lang.c (ada_encode_1): Return std::string.
3380 (ada_encode): Likewise.
3381 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3383 * ada-exp.y (block_lookup, write_var_or_type): Update.
3385 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3388 * printcmd.c (print_formatted): Handle void results as
3391 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3393 * arch/aarch32.c (aarch32_create_target_description): Release the
3394 target_desc_up as late as possible.
3395 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3396 * arch/amd64.c (amd64_create_target_description): Likewise.
3397 * arch/arc.c (arc_create_target_description): Return a
3398 target_desc_up, don't release it.
3399 * arch/arc.h (arc_create_target_description): Update declaration.
3400 (arc_lookup_target_description): Move target_desc_up into the
3401 cache, and return a borrowed pointer.
3402 * arch/arm.c (arm_create_target_description): Release the
3403 target_desc_up as late as possible.
3404 * arch/i386.c (i386_create_target_description): Likewise.
3405 * arch/riscv.h (riscv_create_target_description): Update
3406 declaration to match definition.
3407 * arch/tic6x.c (tic6x_create_target_description): Release the
3408 target_desc_up as late as possible.
3410 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3412 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3413 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3415 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3417 * source.c (directory_command): Notify observers that "directories"
3418 parameter has changed.
3420 2020-10-08 Tom Tromey <tom@tromey.com>
3422 * cli/cli-cmds.c (print_disassembly): Style function name and
3423 addresses. Add _() wrappers.
3425 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3427 * NEWS: Mention ARC support in GDBserver.
3429 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3431 * arch/aarch32.c (aarch32_create_target_description): Release
3432 unique_ptr returned from allocate_target_description.
3433 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3434 * arch/amd64.c (amd64_create_target_description): Likewise.
3435 * arch/arc.c (arc_create_target_description): Likewise.
3436 * arch/arm.c (arm_create_target_description): Likewise.
3437 * arch/i386.c (i386_create_target_description): Likewise.
3438 * arch/riscv.c (riscv_create_target_description): Update return
3439 type. Handle allocate_target_description returning a unique_ptr.
3440 (riscv_lookup_target_description): Update to handle unique_ptr.
3441 * arch/tic6x.c (tic6x_create_target_description): Release
3442 unique_ptr returned from allocate_target_description.
3443 * features/microblaze-with-stack-protect.c: Regenerate.
3444 * features/microblaze.c: Regenerate.
3445 * features/mips-dsp-linux.c: Regenerate.
3446 * features/mips-linux.c: Regenerate.
3447 * features/mips64-dsp-linux.c: Regenerate.
3448 * features/mips64-linux.c: Regenerate.
3449 * features/nds32.c: Regenerate.
3450 * features/nios2.c: Regenerate.
3451 * features/or1k.c: Regenerate.
3452 * features/rs6000/powerpc-32.c: Regenerate.
3453 * features/rs6000/powerpc-32l.c: Regenerate.
3454 * features/rs6000/powerpc-403.c: Regenerate.
3455 * features/rs6000/powerpc-403gc.c: Regenerate.
3456 * features/rs6000/powerpc-405.c: Regenerate.
3457 * features/rs6000/powerpc-505.c: Regenerate.
3458 * features/rs6000/powerpc-601.c: Regenerate.
3459 * features/rs6000/powerpc-602.c: Regenerate.
3460 * features/rs6000/powerpc-603.c: Regenerate.
3461 * features/rs6000/powerpc-604.c: Regenerate.
3462 * features/rs6000/powerpc-64.c: Regenerate.
3463 * features/rs6000/powerpc-64l.c: Regenerate.
3464 * features/rs6000/powerpc-7400.c: Regenerate.
3465 * features/rs6000/powerpc-750.c: Regenerate.
3466 * features/rs6000/powerpc-860.c: Regenerate.
3467 * features/rs6000/powerpc-altivec32.c: Regenerate.
3468 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3469 * features/rs6000/powerpc-altivec64.c: Regenerate.
3470 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3471 * features/rs6000/powerpc-e500.c: Regenerate.
3472 * features/rs6000/powerpc-e500l.c: Regenerate.
3473 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3474 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3475 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3476 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3477 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3478 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3479 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3480 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3481 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3482 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3483 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3484 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3485 * features/rs6000/powerpc-vsx32.c: Regenerate.
3486 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3487 * features/rs6000/powerpc-vsx64.c: Regenerate.
3488 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3489 * features/rs6000/rs6000.c: Regenerate.
3490 * features/rx.c: Regenerate.
3491 * features/s390-gs-linux64.c: Regenerate.
3492 * features/s390-linux32.c: Regenerate.
3493 * features/s390-linux32v1.c: Regenerate.
3494 * features/s390-linux32v2.c: Regenerate.
3495 * features/s390-linux64.c: Regenerate.
3496 * features/s390-linux64v1.c: Regenerate.
3497 * features/s390-linux64v2.c: Regenerate.
3498 * features/s390-te-linux64.c: Regenerate.
3499 * features/s390-tevx-linux64.c: Regenerate.
3500 * features/s390-vx-linux64.c: Regenerate.
3501 * features/s390x-gs-linux64.c: Regenerate.
3502 * features/s390x-linux64.c: Regenerate.
3503 * features/s390x-linux64v1.c: Regenerate.
3504 * features/s390x-linux64v2.c: Regenerate.
3505 * features/s390x-te-linux64.c: Regenerate.
3506 * features/s390x-tevx-linux64.c: Regenerate.
3507 * features/s390x-vx-linux64.c: Regenerate.
3508 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3509 from allocate_target_description.
3510 * target-descriptions.c (allocate_target_description): Update
3512 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3513 allocate_target_description.
3515 2020-10-07 Tom Tromey <tromey@adacore.com>
3517 * unittests/search-memory-selftests.c: New file.
3518 * Makefile.in (SELFTESTS_SRCS): Add
3519 unittests/search-memory-selftests.c.
3521 2020-10-07 Tom Tromey <tromey@adacore.com>
3524 * findcmd.c (_initialize_mem_search): Mention that the range is
3527 2020-10-07 Tom Tromey <tromey@adacore.com>
3529 * target.h (simple_search_memory): Don't declare.
3530 * target.c (simple_search_memory): Move to gdbsupport.
3531 (default_search_memory): Update.
3532 * remote.c (remote_target::search_memory): Update.
3534 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3536 * Makefile.in (COMPILE): Add CXXFLAGS.
3537 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3538 (check-headers): Add CXXFLAGS.
3540 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3542 * arc-linux-tdep.h: New file.
3543 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3544 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3545 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3546 arc_linux_gregset, arc_linux_v2_regset,
3547 arc_linux_iterate_over_regset_sections,
3548 arc_linux_core_read_description): Implement.
3549 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3550 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3551 (arc_gdbarch_features_create): Add.
3552 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3554 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3556 * arch/arc.h: Rename "arc_gdbarch_features" to
3557 "arc_arch_features".
3558 * arc-tdep.h: Likewise.
3559 * arc-tdep.c: Likewise.
3561 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3563 * infcmd.c (attach_command): Remove the redundant call to
3564 `clear_proceed_status`.
3566 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3568 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3570 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3572 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3573 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3574 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3576 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3578 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3579 (_initialize_break_catch_sig): Don't allocate array.
3581 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3583 * symtab.c (find_pc_line): Return unmapped addresses when the
3584 requested address is also unmapped.
3586 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3588 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3591 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3593 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3594 type::is_vector instead of TYPE_VECTOR.
3596 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3598 * auto-load.c (auto_load_objfile_script_1): Don't use
3599 debugfile_holder as temporary variable when stripping drive
3602 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3604 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3605 Add TYPE_CODE_COMPLEX.
3606 (amd64_windows_return_value): Fix types returned via XMM0.
3608 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3610 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3611 AArch64/ARM maintainers.
3613 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3615 * NEWS: Mention set/show debug event-loop.
3617 2020-10-02 Tom Tromey <tromey@adacore.com>
3619 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3622 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3624 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3625 * procfs.c (procfs_inferior_created): Remove.
3626 (_initialize_procfs): Don't register procfs_inferior_created.
3628 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3630 * async-event.c (invoke_async_signal_handlers): Add debug
3632 (check_async_event_handlers): Likewise.
3633 * event-top.c (show_debug_event_loop): New function.
3634 (_initialize_event_top): Register "set debug event-loop"
3637 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3639 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3641 * infrun.c: Include gdbsupport/common-debug.h.
3642 * linux-nat.c: Likewise.
3644 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3646 * async-event.h (create_async_signal_handler): Add name
3648 (create_async_event_handler): Likewise.
3649 * async-event.c (struct async_signal_handler) <name>: New field.
3650 (struct async_event_handler) <name>: New field.
3651 (create_async_signal_handler): Assign name.
3652 (create_async_event_handler): Assign name.
3653 * event-top.c (async_init_signals): Pass name when creating
3655 * infrun.c (_initialize_infrun): Likewise.
3656 * record-btrace.c (record_btrace_push_target): Likewise.
3657 * record-full.c (record_full_open): Likewise.
3658 * remote-notif.c (remote_notif_state_allocate): Likewise.
3659 * remote.c (remote_target::open_1): Likewise.
3660 * tui/tui-win.c (tui_initialize_win): Likewise.
3662 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3664 * async-event.c (initialize_async_signal_handlers): Pass name to
3666 * event-top.c (ui_register_input_event_handler): Likewise.
3667 * linux-nat.c (linux_nat_target::async): Likewise.
3668 * run-on-main-thread.c (_initialize_run_on_main_thread):
3670 * ser-base.c (reschedule): Likewise.
3671 (ser_base_async): Likewise.
3672 * tui/tui-io.c: Likewise.
3673 * top.h (struct ui) <num>: New field.
3674 * top.c (highest_ui_num): New variable.
3675 (ui::ui): Initialize num.
3677 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3679 * observable.h <inferior_created>: Remove parameters. Update all
3681 * inferior.h (post_create_inferior): Remove target parameter.
3684 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3686 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3687 and DW_MACRO_undef_strx.
3688 (dwarf_decode_macros): Likewise
3689 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3690 which is the value of DW_AT_str_offsets_base.
3691 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3694 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3696 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3698 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3700 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3701 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3703 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3705 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3707 2020-09-30 Tom de Vries <tdevries@suse.de>
3710 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3712 2020-09-30 Tom Tromey <tromey@adacore.com>
3714 * dwarf2/read.c (handle_variant): Use constant_value.
3716 2020-09-29 Tom Tromey <tom@tromey.com>
3718 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3719 (read_file_scope, dwarf2_get_pc_bounds)
3720 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3721 (read_structure_type, handle_struct_member_die)
3722 (read_enumeration_type, read_array_type, read_set_type)
3723 (read_tag_pointer_type, read_tag_reference_type)
3724 (read_subroutine_type, read_base_type, read_subrange_type)
3725 (read_full_die_1, partial_die_info::read)
3726 (partial_die_info::read, by, new_symbol)
3727 (dwarf2_const_value_data, dwarf2_const_value_attr)
3728 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3729 (prepare_one_comp_unit): Update.
3730 * dwarf2/attribute.h (DW_UNSND): Remove.
3732 2020-09-29 Tom Tromey <tom@tromey.com>
3734 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3735 (read_subroutine_type, partial_die_info::read)
3736 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3737 (dwarf2_add_member_fn): Update.
3738 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3739 * dwarf2/attribute.c (attribute::as_boolean): New method.
3741 2020-09-29 Tom Tromey <tom@tromey.com>
3743 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3744 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3746 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3748 2020-09-29 Tom Tromey <tom@tromey.com>
3750 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3751 the attribute's form.
3753 2020-09-29 Tom Tromey <tom@tromey.com>
3755 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3756 (dwarf2_add_member_fn): Update.
3757 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3758 * dwarf2/attribute.c (attribute::defaulted): New method, from
3759 is_valid_DW_AT_defaulted.
3761 2020-09-29 Tom Tromey <tom@tromey.com>
3763 * dwarf2/read.c (dw2_get_file_names_reader)
3764 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3765 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3766 (dwarf2_symbol_mark_computed): Use as_unsigned.
3767 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3769 <form_is_section_offset>: Update comment.
3771 2020-09-29 Tom Tromey <tom@tromey.com>
3773 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3774 dwarf2_default_access_attribute. Look up attribute.
3775 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3778 2020-09-29 Tom Tromey <tom@tromey.com>
3780 * dwarf2/read.c (skip_one_die): Update.
3781 (read_full_die_1): Change how reprocessing is done.
3782 (partial_die_info::read): Update.
3783 (read_attribute_value): Remove need_reprocess parameter.
3784 (read_attribute): Likewise.
3785 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3788 2020-09-29 Tom Tromey <tom@tromey.com>
3790 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3791 (dwarf2_const_value_attr, dump_die_shallow)
3792 (dwarf2_fetch_constant_bytes): Update.
3793 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3795 <set_address>: New method.
3797 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3798 (attribute::as_string, attribute::as_address): Add assert.
3800 2020-09-29 Tom Tromey <tom@tromey.com>
3802 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3803 (read_attribute_reprocess, read_attribute_value): Update.
3804 (read_attribute): Clear requires_reprocessing.
3805 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3806 form_requires_reprocessing>: New methods.
3807 <string_init>: Clear requires_reprocessing.
3808 <set_unsigned_reprocess>: New method.
3809 <name>: Shrink by one bit.
3810 <requires_reprocessing>: New member.
3811 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3814 2020-09-29 Tom Tromey <tom@tromey.com>
3816 * dwarf2/read.c (read_attribute_value): Update.
3817 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3818 set_unsigned>: New methods.
3819 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3821 2020-09-29 Tom Tromey <tom@tromey.com>
3823 * dwarf2/read.c (get_alignment, read_array_order)
3824 (read_attribute_value, dwarf2_const_value_attr)
3825 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3826 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3830 2020-09-29 Tom Tromey <tom@tromey.com>
3832 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3833 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3835 * dwarf2/attribute.h (struct attribute) <as_signature,
3836 set_signature>: New methods.
3837 (DW_SIGNATURE): Remove.
3839 2020-09-29 Tom Tromey <tom@tromey.com>
3841 * dwarf2/read.c (read_call_site_scope)
3842 (handle_data_member_location, dwarf2_add_member_fn)
3843 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3844 (partial_die_info::read, read_attribute_value)
3845 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3846 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3847 (dwarf2_symbol_mark_computed): Update.
3848 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3851 * dwarf2/attribute.c (attribute::form_is_block): Add
3854 2020-09-29 Tom Tromey <tom@tromey.com>
3856 * dwarf2/read.c (read_cutu_die_from_dwo)
3857 (read_attribute_reprocess, read_attribute_value, read_attribute)
3858 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3859 (dwarf2_fetch_constant_bytes): Update.
3860 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3861 <set_string_noncanonical, set_string_canonical>: New methods.
3862 <string_is_canonical>: Update comment.
3863 <canonical_string_p>: Add assert.
3864 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3865 * dwarf2/attribute.c (attribute::form_is_string): New method.
3866 (attribute::string): Use it.
3868 2020-09-29 Tom Tromey <tom@tromey.com>
3870 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3871 (dump_die_shallow): Use canonical_string_p.
3872 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3875 2020-09-29 Tom Tromey <tom@tromey.com>
3877 * dwarf2/read.c (partial_die_info::read)
3878 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3879 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3880 attribute::as_string.
3882 2020-09-29 Tom Tromey <tom@tromey.com>
3884 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3886 (attribute::string): Don't use DW_STRING.
3887 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3888 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3890 2020-09-29 Tom Tromey <tom@tromey.com>
3892 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3893 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3894 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3895 * dwarf2/attribute.h (struct attribute): Rename methods.
3896 * dwarf2/attribute.c (attribute::as_address): Rename from
3898 (attribute::as_string): Rename from value_as_string.
3900 2020-09-29 Tom Tromey <tom@tromey.com>
3902 * dwarf2/read.c (partial_die_info::read) <case
3903 DW_AT_linkage_name>: Use value_as_string.
3904 (dwarf2_string_attr): Use value_as_string.
3905 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3907 * dwarf2/attribute.c (attribute::value_as_string): New method.
3909 2020-09-29 Pedro Alves <pedro@palves.net>
3911 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3912 defined before using '#pragma GCC diagnostic' instead of checking
3915 2020-09-28 Tom Tromey <tom@tromey.com>
3917 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3918 (handle_signal_stop): Update.
3919 * procfs.c (procfs_target::insert_watchpoint): Update.
3920 * target.h (target_have_steppable_watchpoint): Now a function.
3922 2020-09-28 Tom Tromey <tom@tromey.com>
3924 * infrun.c (set_schedlock_func): Update.
3925 * target.h (target_can_lock_scheduler): Now a function.
3927 2020-09-28 Tom Tromey <tom@tromey.com>
3929 * inferior.h (class inferior) <has_execution>: Update.
3930 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3931 * valops.c (find_function_in_inferior)
3932 (value_allocate_space_in_inferior): Update.
3933 * top.c (kill_or_detach): Update.
3934 * target.c (target_preopen, set_target_permissions): Update.
3935 (target_has_execution_current): Remove.
3936 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3938 * solib.c (update_solib_list, reload_shared_libraries): Update.
3939 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3940 * solib-dsbt.c (enable_break): Update.
3941 * score-tdep.c (score7_fetch_inst): Update.
3942 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3944 * remote.c (remote_target::start_remote)
3945 (remote_target::remote_check_symbols, remote_target::open_1)
3946 (remote_target::remote_detach_1, remote_target::verify_memory)
3947 (remote_target::xfer_partial, remote_target::read_description)
3948 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3949 * record-full.c (record_full_open_1): Update.
3950 * record-btrace.c (record_btrace_target_open): Update.
3951 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3952 (value_nsstring): Update.
3953 * linux-thread-db.c (add_thread_db_info)
3954 (thread_db_find_new_threads_silently, check_thread_db_callback)
3955 (try_thread_db_load_1, record_thread): Update.
3956 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3958 * linux-fork.c (checkpoint_command): Update.
3959 * infrun.c (set_non_stop, set_observer_mode)
3960 (check_multi_target_resumption, for_each_just_stopped_thread)
3961 (maybe_remove_breakpoints, normal_stop)
3962 (class infcall_suspend_state): Update.
3963 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3964 (info_program_command, attach_command): Update.
3965 * infcall.c (call_function_by_hand_dummy): Update.
3966 * inf-loop.c (inferior_event_handler): Update.
3967 * gcore.c (gcore_command, derive_heap_segment): Update.
3968 * exec.c (exec_file_command): Update.
3969 * eval.c (evaluate_subexp): Update.
3970 * compile/compile.c (compile_to_object): Update.
3971 * cli/cli-dump.c (restore_command): Update.
3972 * breakpoint.c (update_watchpoint)
3973 (update_inserted_breakpoint_locations)
3974 (insert_breakpoint_locations, get_bpstat_thread): Update.
3975 * target.h (target_has_execution): Remove macro.
3976 (target_has_execution_current): Don't declare.
3977 (target_has_execution): Rename from target_has_execution_1. Add
3980 2020-09-28 Tom Tromey <tom@tromey.com>
3982 * mi/mi-main.c (exec_reverse_continue)
3983 (mi_cmd_list_target_features): Update.
3984 * infrun.c (set_exec_direction_func): Update.
3985 * target.c (default_execution_direction): Update.
3986 * reverse.c (exec_reverse_once): Update.
3987 * target.h (target_can_execute_reverse): Now a function.
3989 2020-09-28 Tom Tromey <tom@tromey.com>
3991 * tui/tui-regs.c (tui_get_register)
3992 (tui_data_window::show_registers): Update.
3993 * thread.c (scoped_restore_current_thread::restore)
3994 (scoped_restore_current_thread::scoped_restore_current_thread):
3996 * regcache-dump.c (regcache_print): Update.
3997 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3999 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
4000 * mep-tdep.c (current_me_module, current_options): Update.
4001 * linux-thread-db.c (thread_db_load): Update.
4002 * infcmd.c (registers_info, info_vector_command)
4003 (info_float_command): Update.
4004 * ia64-tdep.c (ia64_frame_prev_register)
4005 (ia64_sigtramp_frame_prev_register): Update.
4006 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
4007 * gcore.c (derive_stack_segment): Update.
4008 * frame.c (get_current_frame, has_stack_frames): Update.
4009 * findvar.c (language_defn::read_var_value): Update.
4010 * arm-tdep.c (arm_pc_is_thumb): Update.
4011 * target.c (target_has_registers): Rename from
4012 target_has_registers_1.
4013 * target.h (target_has_registers): Remove macro.
4014 (target_has_registers): Rename from target_has_registers_1.
4016 2020-09-28 Tom Tromey <tom@tromey.com>
4018 * windows-tdep.c (tlb_make_value): Update.
4019 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4020 * thread.c (scoped_restore_current_thread::restore)
4021 (scoped_restore_current_thread::scoped_restore_current_thread)
4022 (thread_command): Update.
4023 * stack.c (backtrace_command_1, frame_apply_level_command)
4024 (frame_apply_all_command, frame_apply_command): Update.
4025 * infrun.c (siginfo_make_value, restore_infcall_control_state):
4027 * gcore.c (derive_stack_segment): Update.
4028 * frame.c (get_current_frame, has_stack_frames): Update.
4029 * auxv.c (info_auxv_command): Update.
4030 * ada-tasks.c (ada_build_task_list): Update.
4031 * target.c (target_has_stack): Rename from target_has_stack_1.
4032 * target.h (target_has_stack): Remove macro.
4033 (target_has_stack): Rename from target_has_stack_1.
4035 2020-09-28 Tom Tromey <tom@tromey.com>
4037 * target.c (target_has_memory): Rename from target_has_memory_1.
4038 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4039 * thread.c (scoped_restore_current_thread::restore)
4040 (scoped_restore_current_thread::scoped_restore_current_thread):
4042 * frame.c (get_current_frame, has_stack_frames): Update.
4043 * target.h (target_has_memory): Remove macro.
4044 (target_has_memory): Rename from target_has_memory_1.
4046 2020-09-28 Tom Tromey <tom@tromey.com>
4048 * target.c (target_has_all_memory_1): Remove.
4049 * target.h (target_has_all_memory): Remove define.
4050 (target_has_all_memory_1): Don't declare.
4052 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4054 * ser-base.c: Adjust comments formatting.
4056 2020-09-27 Tom Tromey <tom@tromey.com>
4059 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
4061 2020-09-27 Tom Tromey <tom@tromey.com>
4064 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
4066 2020-09-27 Tom Tromey <tom@tromey.com>
4068 * unittests/tui-selftests.c: Update.
4069 * tui/tui-winsource.h (struct tui_source_window_base)
4070 <extra_margin, show_line_number, refresh_pad>: New methods.
4071 <m_max_length, m_pad>: New members.
4072 (tui_copy_source_line): Update.
4073 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
4074 first_col, line_width, ndigits parameters. Add length.
4075 (tui_source_window_base::show_source_line): Write to pad. Line
4077 (tui_source_window_base::refresh_pad): New method.
4078 (tui_source_window_base::show_source_content): Write to pad. Call
4080 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
4082 (tui_source_window_base::update_exec_info): Call
4084 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
4086 <m_digits>: New member.
4087 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
4089 (tui_source_window::show_line_number): New method.
4090 * tui/tui-io.h (tui_puts): Fix comment.
4091 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
4094 2020-09-27 Tom Tromey <tom@tromey.com>
4096 * tui/tui-winsource.c
4097 (tui_source_window_base::set_is_exec_point_at): Don't call
4100 2020-09-27 Tom Tromey <tom@tromey.com>
4102 * python/py-tui.c (class tui_py_window) <refresh_window>: New
4105 <cursor_x, cursor_y>: Remove.
4106 <m_inner_window>: New member.
4107 (tui_py_window::rerender): Create inner window.
4108 (tui_py_window::output): Write to inner window.
4110 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4113 * cli/cli-script.c (execute_control_commands): don't set
4114 instream to nullptr here as this breaks the from_tty argument
4115 to gdb.execute in Python.
4116 (execute_user_command): set instream to nullptr here instead.
4118 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
4120 * infrun.h (infrun_debug_printf): Fix formatting.
4121 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4123 2020-09-25 Saagar Jha <saagar@saagarjha.com>
4125 * compile/compile-object-load.h (struct munmap_list): Add
4126 explicitly-defined move constructor.
4128 2020-09-24 Tom Tromey <tromey@adacore.com>
4131 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4133 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4134 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4135 (tui_prev_win): Rewrite.
4137 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
4139 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4140 in WOW64 processes as SIGINT.
4141 * nat/windows-nat.h: Make wow64_process a shared variable.
4142 * windows-nat.c: Remove static wow64_process variable.
4144 2020-09-23 Tom Tromey <tom@tromey.com>
4147 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4148 offset and bit size.
4149 * printcmd.c (print_scalar_formatted): Handle zero-length
4151 (print_scalar_formatted): Use bit_size_differs_p.
4152 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4154 (union type_specific): <int_stuff>: New member.
4155 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4157 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4158 TYPE_SPECIFIC_FIELD.
4159 (recursive_dump_type, copy_type_recursive): Update.
4160 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4161 DW_AT_data_bit_offset.
4163 2020-09-23 Tom Tromey <tom@tromey.com>
4165 * utils.h (class gdb_argv): Add move operators.
4166 <append>: New methods.
4167 * compile/compile.c (build_argc_argv): Remove.
4168 (compile_args_argc): Remove.
4169 (compile_args_argv): Change type.
4170 (set_compile_args): Simplify.
4171 (append_args): Remove.
4172 (filter_args): Remove argcp parameter.
4173 (get_args): Return gdb_argv. Simplify.
4174 (compile_to_object): Update.
4176 2020-09-23 Tom Tromey <tom@tromey.com>
4178 * compile/compile-object-run.c (do_module_cleanup)
4179 <~do_module_cleanup> :Remove.
4180 (do_module_cleanup): Update.
4181 * compile/compile-object-load.h (struct munmap_list): Add move
4182 assignment operator.
4183 <source_file>: Now a std::string.
4184 <munmap_list>: Rename. No longer a pointer.
4185 * compile/compile-object-load.c (struct setup_sections_data): Add
4187 <setup_one_section>: Declare.
4188 <munmap_list>: Move earlier.
4189 <m_bfd>: New member.
4190 <m_last_size, m_last_section_first, m_last_prot,
4191 m_last_max_alignment>: Rename, add initializers where needed.
4192 (setup_sections_data::setup_one_section): Rename from
4193 setup_sections. Update.
4194 (compile_object_load): Update. Don't use bfd_map_over_sections.
4196 2020-09-23 Tom Tromey <tom@tromey.com>
4198 * compile/compile-object-run.c (struct do_module_cleanup): Add
4199 parameters to constructor. Update destructor.
4200 <source_file, scope, scope_data, out_value_type, out_value_addr,
4201 munmap_list_head, objfile_name_string>: Remove.
4202 <module>: New member.
4203 (do_module_cleanup): Update.
4204 (compile_object_run): Update.
4206 2020-09-23 Tom Tromey <tom@tromey.com>
4208 * compile/compile.c (eval_compile_command): Update.
4209 * compile/compile-object-run.h (compile_object_run): Take a
4211 * compile/compile-object-run.c (compile_object_run): Take a
4213 * compile/compile-object-load.h (struct compile_module): Add
4214 constructor, destructor.
4215 (compile_module_up): New typedef.
4216 (compile_object_load): Return compile_object_up.
4217 * compile/compile-object-load.c (compile_object_load): Return
4220 2020-09-23 Tom Tromey <tom@tromey.com>
4222 * compile/compile-object-run.c (struct do_module_cleanup): Add
4223 constructor, destructor.
4224 <objfile_name_string>: Don't use struct hack.
4225 (do_module_cleanup): Use delete.
4226 (compile_object_run): Use new.
4228 2020-09-23 Tom Tromey <tom@tromey.com>
4230 * compile/compile-cplus-types.c
4231 (compile_cplus_convert_struct_or_union): Use std::vector.
4232 (compile_cplus_convert_func): Likewise.
4233 * compile/compile-c-types.c (convert_func): Use std::vector.
4235 2020-09-21 Tom Tromey <tromey@adacore.com>
4237 * sparc-tdep.c (sparc32_skip_prologue): Use
4238 skip_prologue_using_sal.
4240 2020-09-19 Tom Tromey <tom@tromey.com>
4242 * symfile.c (add_section_size_callback): Remove.
4243 (load_one_section): Rename from load_section_callback. Change
4245 (generic_load): Use foreach.
4247 2020-09-19 Tom Tromey <tom@tromey.com>
4249 * exec.c (add_to_section_table): Remove.
4250 (build_section_table): Use foreach.
4252 2020-09-19 Tom Tromey <tom@tromey.com>
4254 * elfread.c (elf_locate_sections): Change parameters.
4255 (elf_symfile_read): Use foreach.
4257 2020-09-19 Tom Tromey <tom@tromey.com>
4259 * cli/cli-dump.c (struct callback_data): Remove.
4260 (restore_one_section): Rename from restore_section_callback.
4262 (restore_binary_file): Change parameters.
4263 (restore_command): Use foreach.
4265 2020-09-19 Tom Tromey <tom@tromey.com>
4267 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4268 (gcore_copy_callback): Likewise.
4269 (gcore_memory_sections): Use foreach.
4271 2020-09-19 Tom Tromey <tom@tromey.com>
4273 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4274 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4276 (generic_elf_osabi_sniffer): Use foreach.
4277 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4278 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4280 2020-09-19 Tom Tromey <tom@tromey.com>
4282 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4283 (dwarf2_get_dwz_file): Use foreach.
4284 (dwarf2_locate_dwo_sections): Change parameters.
4285 (open_and_init_dwo_file): Use foreach.
4286 (dwarf2_locate_common_dwp_sections): Change parameters.
4287 (open_and_init_dwp_file): Use foreach.
4289 2020-09-19 Tom Tromey <tom@tromey.com>
4291 * symfile.h: (find_lowest_section): Don't declare.
4292 * symfile.c (find_lowest_section): Now static. Change
4294 (struct place_section_arg): Remove.
4295 (place_section): Change parameters.
4296 (addr_info_make_relative): Use foreach.
4297 (symfile_dummy_outputs): Remove.
4298 (default_symfile_relocate): Use foreach.
4300 2020-09-19 Tom Tromey <tom@tromey.com>
4302 * objfiles.c (add_to_objfile_sections): Rename from
4303 add_to_objfile_sections_full.
4304 (add_to_objfile_sections): Remove.
4305 (build_objfile_section_table): Use foreach.
4307 2020-09-19 Tom Tromey <tom@tromey.com>
4309 * stap-probe.c (get_stap_base_address_1): Remove.
4310 (get_stap_base_address): Use foreach.
4312 2020-09-19 Tom Tromey <tom@tromey.com>
4314 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4316 (gdb_bfd_close_or_warn): Use foreach.
4318 2020-09-19 Tom Tromey <tom@tromey.com>
4320 * corelow.c (add_to_thread_list): Change parameters.
4321 (core_target_open): Use foreach.
4323 2020-09-19 Tom Tromey <tom@tromey.com>
4325 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4328 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4330 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4333 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4335 * eval.c: Remove 'f-lang.h' include.
4336 (value_f90_subarray): Moved to f-lang.c.
4337 (eval_call): Renamed to...
4338 (evaluate_subexp_do_call): ...this, is no longer static, header
4339 comment moved into header file.
4340 (evaluate_funcall): Update call to eval_call.
4341 (skip_undetermined_arglist): Moved to f-lang.c.
4342 (fortran_value_subarray): Likewise.
4343 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4344 moved to evaluate_subexp_f.
4345 (calc_f77_array_dims): Moved to f-lang.c
4346 * expprint.c (print_subexp_funcall): New function.
4347 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4348 moved to print_subexp_f, OP_FUNCALL uses new function.
4349 (dump_subexp_body_funcall): New function.
4350 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4351 moved to dump_subexp_f, OP_FUNCALL uses new function.
4352 * expression.h (evaluate_subexp_do_call): Declare.
4353 * f-lang.c (value_f90_subarray): Moved from eval.c.
4354 (skip_undetermined_arglist): Likewise.
4355 (calc_f77_array_dims): Likewise.
4356 (fortran_value_subarray): Likewise.
4357 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4358 (operator_length_f): Likewise.
4359 (print_subexp_f): Likewise.
4360 (dump_subexp_body_f): Likewise.
4361 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4362 declaration of this operation to here.
4363 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4364 support moved to operator_length_f.
4365 * parser-defs.h (dump_subexp_body_funcall): Declare.
4366 (print_subexp_funcall): Declare.
4367 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4368 fortran-operator.def.
4370 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4372 * eval.c (fortran_value_subarray): New function, content is taken
4374 (evaluate_subexp_standard): ...here, in two places. Now arrays
4375 and strings both call the new function.
4376 (calc_f77_array_dims): Add header comment, handle strings.
4378 2020-09-18 Victor Collod <vcollod@nvidia.com>
4381 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4382 (i386_analyze_prologue): Call i386_skip_endbr.
4384 2020-09-18 Tom Tromey <tromey@adacore.com>
4386 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4387 (windows_nat_target::wait): Update.
4388 * target/wait.h (enum target_wait_flag): New. Use
4389 DEF_ENUM_FLAGS_TYPE.
4390 * target/target.h (target_wait): Change type of options.
4391 * target.h (target_options_to_string, default_target_wait):
4393 (struct target_ops) <wait>: Change type of options.
4394 * target.c (target_wait, default_target_wait, do_option): Change
4396 (target_options_to_string): Likewise.
4397 * target-delegates.c: Rebuild.
4398 * target-debug.h (target_debug_print_target_wait_flags): Rename
4399 from target_debug_print_options.
4400 * sol-thread.c (class sol_thread_target) <wait>: Update.
4401 (sol_thread_target::wait): Update.
4402 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4403 (rs6000_nat_target::wait): Update.
4404 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4406 (remote_target::wait_ns, remote_target::wait_as): Change type of
4408 (remote_target::wait): Update.
4409 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4410 (gdbsim_target::wait): Update.
4411 * record-full.c (class record_full_base_target) <wait>: Update.
4412 (record_full_wait_1): Change type of "options".
4413 (record_full_base_target::wait): Update.
4414 * record-btrace.c (class record_btrace_target) <wait>: Update.
4415 (record_btrace_target::wait): Update.
4416 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4418 (ravenscar_thread_target::wait): Update.
4419 * procfs.c (class procfs_target) <wait>: Update.
4420 (procfs_target::wait): Update.
4421 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4422 * obsd-nat.c (obsd_nat_target::wait): Update.
4423 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4424 (nto_procfs_target::wait): Update.
4425 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4426 * nbsd-nat.c (nbsd_wait): Change type of "options".
4427 (nbsd_nat_target::wait): Update.
4428 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4429 (thread_db_target::wait): Update.
4430 * linux-nat.h (class linux_nat_target) <wait>: Update.
4431 * linux-nat.c (linux_nat_target::wait): Update.
4432 (linux_nat_wait_1): Update.
4433 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4435 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4436 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4437 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4438 (go32_nat_target::wait): Update.
4439 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4440 * gnu-nat.c (gnu_nat_target::wait): Update.
4441 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4442 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4443 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4444 * darwin-nat.c (darwin_nat_target::wait): Update.
4445 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4446 (bsd_uthread_target::wait): Update.
4447 * aix-thread.c (class aix_thread_target) <wait>: Update.
4448 (aix_thread_target::wait): Update.
4450 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4452 * compile/compile-object-run.c (create_copied_type_recursive): New
4454 (compile_object_run): Use new function.
4456 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4458 * NEWS: Mention x86_64 Cygwin core file support.
4460 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4462 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4463 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4465 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4467 * windows-tdep.h: Add prototypes.
4468 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4469 (i386_windows_core_pid_to_str): Move and rename ...
4470 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4471 (windows_core_pid_to_str): ... and here.
4472 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4474 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4475 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4476 (amd64_windows_init_abi_common): ... and register.
4478 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4480 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4481 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4483 2020-09-18 Pedro Alves <pedro@palves.net>
4486 * thread.c (thread_find_command): Switch inferior before calling
4489 2020-09-17 Tom Tromey <tromey@adacore.com>
4491 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4492 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4493 (tdesc_arch_data_up): New typedef.
4494 (tdesc_use_registers, tdesc_data_alloc): Update.
4495 (tdesc_data_cleanup): Don't declare.
4496 * target-descriptions.c (tdesc_data_alloc): Return a
4498 (tdesc_arch_data_deleter::operator()): Rename from
4499 tdesc_data_cleanup. Change argument type.
4500 (tdesc_use_registers): Change early_data to an rvalue reference.
4501 (tdesc_use_registers): Don't use delete.
4502 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4503 * s390-tdep.c (s390_gdbarch_init): Update.
4504 * rx-tdep.c (rx_gdbarch_init): Update.
4505 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4506 * riscv-tdep.c (riscv_gdbarch_init): Update.
4507 * or1k-tdep.c (or1k_gdbarch_init): Update.
4508 * nios2-tdep.c (nios2_gdbarch_init): Update.
4509 * nds32-tdep.c (nds32_gdbarch_init): Update.
4510 * mips-tdep.c (mips_gdbarch_init): Update.
4511 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4512 * m68k-tdep.c (m68k_gdbarch_init): Update.
4513 * i386-tdep.c (i386_gdbarch_init): Update.
4514 * arm-tdep.c (arm_gdbarch_init): Update.
4515 * arc-tdep.c (arc_tdesc_init): Update.
4516 (arc_gdbarch_init): Update.
4517 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4519 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4521 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4522 for WOW64 processes.
4524 2020-09-17 Tom Tromey <tom@tromey.com>
4526 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4528 2020-09-17 Tom Tromey <tom@tromey.com>
4530 * value.c (preserve_values): Update.
4531 * python/py-type.c (save_objfile_types): Update.
4532 * guile/scm-type.c (save_objfile_types): Update.
4533 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4534 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4535 * compile/compile-object-run.c (compile_object_run): Update.
4537 2020-09-17 Tom Tromey <tom@tromey.com>
4539 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4541 <m_table>: Now htab_up.
4542 * typeprint.c (typedef_hash_table::recursively_update)
4543 (typedef_hash_table::add_template_parameters)
4544 (typedef_hash_table::typedef_hash_table): Update.
4545 (typedef_hash_table::~typedef_hash_table): Remove.
4546 (typedef_hash_table::typedef_hash_table)
4547 (typedef_hash_table::find_global_typedef)
4548 (typedef_hash_table::find_typedef): Update.
4550 2020-09-17 Tom Tromey <tom@tromey.com>
4552 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4554 2020-09-17 Tom Tromey <tom@tromey.com>
4556 * linespec.c (class decode_compound_collector)
4557 <~decode_compound_collector>: Remove.
4558 <m_unique_syms>: Now htab_up.
4559 (decode_compound_collector::operator ()): Update.
4560 (class symtab_collector) <~symtab_collector>: Remove.
4561 <m_symtab_table>: Now htab_up.
4562 (symtab_collector::operator ()): Update.
4564 2020-09-17 Tom Tromey <tom@tromey.com>
4566 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4567 (filename_seen_cache::clear): Update.
4568 (~filename_seen_cache): Remove.
4569 (filename_seen_cache::seen): Update.
4570 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4572 <~filename_seen_cache>: Remove.
4575 2020-09-17 Tom Tromey <tom@tromey.com>
4577 * completer.c (completion_tracker::discard_completions)
4578 (completion_tracker::~completion_tracker)
4579 (completion_tracker::maybe_add_completion)
4580 (completion_tracker::remove_completion)
4581 (completion_tracker::recompute_lowest_common_denominator)
4582 (completion_tracker::build_completion_result): Update.
4583 * completer.h (class completion_tracker) <have_completions>:
4585 <m_entries_hash>: Now htab_up.
4587 2020-09-17 Tom Tromey <tom@tromey.com>
4589 * breakpoint.c (ambiguous_names_p): Use htab_up.
4591 2020-09-17 Tom Tromey <tom@tromey.com>
4593 * auto-load.c (struct auto_load_pspace_info)
4594 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4595 <loaded_script_files, loaded_script_texts>: Change type to
4597 (~auto_load_pspace_info) Remove.
4598 (init_loaded_scripts_info, maybe_add_script_file)
4599 (maybe_add_script_text, auto_load_info_scripts): Update.
4601 2020-09-17 Tom Tromey <tromey@adacore.com>
4603 * c-exp.y (name_obstack): Now static.
4605 2020-09-17 Chungyi Chi <demonic@csie.io>
4607 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4609 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4611 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4612 (add_solib_catchpoint): Likewise.
4613 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4615 (add_solib_catchpoint): Change int parameter/variable to bool.
4616 (catch_load_or_unload): Likewise.
4617 (init_catchpoint): Likewise.
4618 (create_fork_vfork_event_catchpoint): Likewise.
4619 (catch_fork_command_1): Likewise.
4620 (catch_exec_command_1): Likewise.
4622 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4624 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4625 Change instance_flags to m_instance_flags.
4627 2020-09-16 Tom Tromey <tromey@adacore.com>
4630 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4632 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4634 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4636 (fbsd_nat_target::insert_exec_catchpoint)
4637 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4638 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4639 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4641 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4643 * configure.ac: Remove check for kinfo_getvmmap().
4644 * configure, config.in: Regenerate.
4645 * fbsd-nat.c (fbsd_read_mapping): Remove
4646 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4647 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4648 kinfo_get_vmmap() are always present.
4650 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4652 * fbsd-nat.c: Always include support for
4653 TARGET_OBJECT_SIGNAL_INFO.
4655 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4657 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4658 sysctl and remove procfs fallback.
4660 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4662 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4663 * fbsd-nat.h: Likewise.
4665 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4667 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4670 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4672 * ada-lang.c (ada_language_data): Delete.
4673 (ada_language): Remove references to ada_language_data.
4674 * c-lang.c (c_language_data): Delete.
4675 (c_language): Remove references to c_language_data.
4676 (cplus_language_data): Delete.
4677 (cplus_language): Remove references to cplus_language_data.
4678 (asm_language_data): Delete.
4679 (asm_language): Remove references to asm_language_data.
4680 (minimal_language_data): Delete.
4681 (minimal_language): Remove references to minimal_language_data.
4682 * d-lang.c (d_language_data): Delete.
4683 (d_language): Remove references to d_language_data.
4684 * f-lang.c (f_language_data): Delete.
4685 (f_language): Remove references to f_language_data.
4686 * go-lang.c (go_language_data): Delete.
4687 (go_language): Remove references to go_language_data.
4688 * language.c (unknown_language_data): Delete.
4689 (unknown_language): Remove references to unknown_language_data.
4690 (auto_language_data): Delete.
4691 (auto_language): Remove references to auto_language_data.
4692 * language.h (language_data): Delete struct.
4693 (language_defn): No longer inherit from language_data.
4694 * m2-lang.c (m2_language_data): Delete.
4695 (m2_language): Remove references to m2_language_data.
4696 * objc-lang.c (objc_language_data): Delete.
4697 (objc_language): Remove references to objc_language_data.
4698 * opencl-lang.c (opencl_language_data): Delete.
4699 (opencl_language): Remove references to opencl_language_data.
4700 * p-lang.c (pascal_language_data): Delete.
4701 (pascal_language): Remove references to pascal_language_data.
4702 * rust-lang.c (rust_language_data): Delete.
4703 (rust_language): Remove references to rust_language_data.
4705 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4707 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4709 (ada_language::opcode_print_table): New member function.
4710 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4711 (c_language::opcode_print_table): New member function.
4712 (cplus_language_data): Remove la_op_print_tab initializer.
4713 (cplus_language::opcode_print_table): New member function.
4714 (asm_language_data): Remove la_op_print_tab initializer.
4715 (asm_language::opcode_print_table): New member function.
4716 (minimal_language_data): Remove la_op_print_tab initializer.
4717 (minimal_language::opcode_print_table): New member function.
4718 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4719 (d_language::opcode_print_table): New member function.
4720 * expprint.c (print_subexp_standard): Update call to
4722 (op_string): Likewise.
4723 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4724 (f_language::opcode_print_table): New member function.
4725 * go-lang.c (go_language_data): Remove la_op_print_tab
4727 (go_language::opcode_print_table): New member function.
4728 * language.c (unknown_language_data): Remove la_op_print_tab
4730 (unknown_language::opcode_print_table): New member function.
4731 (auto_language_data): Remove la_op_print_tab initializer.
4732 (auto_language::opcode_print_table): New member function.
4733 * language.h (language_data): Remove la_op_print_tab field.
4734 (language_defn::opcode_print_table): Declare new member function.
4735 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4737 (m2_language::opcode_print_table): New member function.
4738 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4740 (objc_language::opcode_print_table): New member function.
4741 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4743 (opencl_language::opcode_print_table): New member function.
4744 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4746 (pascal_language::opcode_print_table): New member function.
4747 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4749 (rust_language::opcode_print_table): New member function.
4751 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4753 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4754 (ada_language::expression_ops): New member function.
4755 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4756 (c_language::expression_ops): New member function.
4757 (cplus_language_data): Remove la_exp_desc initializer.
4758 (cplus_language::expression_ops): New member function.
4759 (asm_language_data): Remove la_exp_desc initializer.
4760 (asm_language::expression_ops): New member function.
4761 (minimal_language_data): Remove la_exp_desc initializer.
4762 (minimal_language::expression_ops): New member function.
4763 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4764 (d_language::expression_ops): New member function.
4765 * eval.c (evaluate_subexp): Update call to expression_ops.
4766 * expprint.c (print_subexp): Likewise.
4767 (op_name): Likewise.
4768 (dump_subexp_body): Likewise.
4769 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4770 (f_language::expression_ops): New member function.
4771 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4772 (go_language::expression_ops): New member function.
4773 * language.c (language_defn::expression_ops): New function.
4774 (unknown_language_data): Remove la_exp_desc initializer.
4775 (auto_language_data): Likewise.
4776 * language.h (language_data): Remove la_exp_desc field.
4777 (language_defn::expression_ops): Declare new member function.
4778 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4779 (m2_language::expression_ops): New member function.
4780 * objc-lang.c (objc_language_data): Remove la_exp_desc
4782 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4784 (opencl_language::expression_ops): New member function.
4785 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4786 * parse.c (operator_length): Update call to expression_ops.
4787 (exp_iterate): Likewise.
4788 * rust-lang.c (rust_language_data): Remove la_exp_desc
4790 (ruse_language::expression_ops): New member function.
4792 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4794 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4796 (ada_language::varobj_ops): New member function.
4797 * c-lang.c (c_language_data): Remove la_varobj_ops
4799 (cplus_language_data): Likewise.
4800 (cplus_language::varobj_ops): New member function.
4801 (asm_language_data): Remove la_varobj_ops initializer.
4802 (minimal_language_data): Likewise.
4803 * d-lang.c (d_language_data): Likewise.
4804 * f-lang.c (f_language_data): Likewise.
4805 * go-lang.c (go_language_data): Likewise.
4806 * language.c (language_defn::varobj_ops): New function.
4807 (unknown_language_data): Remove la_varobj_ops
4809 (auto_language_data): Likewise.
4810 * language.h (language_data): Remove la_varobj_ops field.
4811 (language_defn::varobj_ops): Declare new member function.
4812 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4813 * objc-lang.c (objc_language_data): Likewise.
4814 * opencl-lang.c (opencl_language_data): Likewise.
4815 * p-lang.c (pascal_language_data): Likewise.
4816 * rust-lang.c (rust_language_data): Likewise.
4817 * varobj.c (varobj_create): Update call to varobj_ops.
4818 * varobj.h (default_varobj_ops): Delete define.
4820 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4822 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4824 * c-lang.c (c_language_data): Likewise.
4825 (c_language::macro_expansion): New member function.
4826 (cplus_language_data): Likewise.
4827 (cplus_language::macro_expansion): New member function.
4828 (asm_language_data): Likewise.
4829 (asm_language::macro_expansion): New member function.
4830 (minimal_language_data): Likewise.
4831 (minimal_language::macro_expansion): New member function.
4832 * d-lang.c (d_language_data): Remove la_macro_expansion
4834 * f-lang.c (f_language_data): Likewise.
4835 * go-lang.c (go_language_data): Likewise.
4836 * language.c (unknown_language_data): Likewise.
4837 (auto_language_data): Likewise.
4838 * language.h (language_data): Remove la_macro_expansion field.
4839 (language_defn::macro_expansion): New member function.
4840 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4842 * objc-lang.c (objc_language_data): Likewise.
4843 (objc_language::macro_expansion): New member function.
4844 * opencl-lang.c (opencl_language_data): Likewise.
4845 (opencl_language::macro_expansion): New member function.
4846 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4848 * rust-lang.c (rust_language_data): Likewise.
4849 * symtab.c (default_collect_symbol_completion_matches_break_on):
4850 Update call to macro_expansion.
4852 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4854 * ada-lang.c (ada_language_data): Remove la_array_ordering
4856 * c-lang.c (c_language_data): Likewise.
4857 (cplus_language_data): Likewise.
4858 (asm_language_data): Likewise.
4859 (minimal_language_data): Likewise.
4860 * d-lang.c (d_language_data): Likewise.
4861 * dwarf2/read.c (read_array_order): Update for call to
4863 * f-lang.c (f_language_data): Remove la_array_ordering
4865 (f_language::array_ordering): New member function.
4866 * go-lang.c (go_language_data): Remove la_array_ordering
4868 * language.c (unknown_language_data): Likewise.
4869 (auto_language_data): Likewise.
4870 * language.h (language_data): Delete la_array_ordering field.
4871 (language_defn::array_ordering): New member function.
4872 * m2-lang.c (m2_language_data): Remove la_array_ordering
4874 * objc-lang.c (objc_language_data): Likewise.
4875 * opencl-lang.c (opencl_language_data): Likewise.
4876 * p-lang.c (pascal_language_data): Likewise.
4877 * rust-lang.c (rust_language_data): Likewise.
4879 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4881 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4883 * c-lang.c (c_language_data): Likewise.
4884 (cplus_language_data): Likewise.
4885 (asm_language_data): Likewise.
4886 (minimal_language_data): Likewise.
4887 * d-lang.c (d_language_data): Likewise.
4888 * f-lang.c (f_language_data): Likewise.
4889 (f_language::case_sensitivity): New member function.
4890 * go-lang.c (go_language_data): Remove la_case_sensitivity
4892 * language.c (enum case_mode): Moved here from language.h.
4893 (case_mode): Make static.
4894 (show_case_command): Update for case_sensitivity being a method.
4895 (set_case_command): Likewise.
4896 (set_range_case): Likewise.
4897 (unknown_language_data): Remove la_case_sensitivity initializer.
4898 (auto_language_data): Likewise.
4899 * language.h (case_mode): Delete, move enum declaration to
4901 (language_data): Delete la_case_sensitivity field.
4902 (language_defn::case_sensitivity): New member function.
4903 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4905 * objc-lang.c (objc_language_data): Likewise.
4906 * opencl-lang.c (opencl_language_data): Likewise.
4907 * p-lang.c (pascal_language_data): Likewise.
4908 * rust-lang.c (rust_language_data): Likewise.
4910 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4912 * ada-lang.c (ada_language_data): Remove la_range_check
4914 * c-lang.c (c_language_data): Likewise.
4915 (cplus_language_data): Likewise.
4916 (asm_language_data): Likewise.
4917 (minimal_language_data): Likewise.
4918 * d-lang.c (d_language_data): Likewise.
4919 * f-lang.c (f_language_data): Likewise.
4920 (f_language::range_checking_on_by_default): New member function.
4921 * go-lang.c (go_language_data): Remove la_range_check initializer.
4922 * language.c (enum range_mode): Moved here from language.h.
4923 (range_mode): Made static.
4924 (show_range_command): Update to use
4925 range_checking_on_by_default.
4926 (set_range_command): Likewise.
4927 (set_range_case): Likewise.
4928 (unknown_language_data): Remove la_range_check initializer.
4929 (auto_language_data): Likewise.
4930 * language.h (range_mode): Delete. Enum definition moved to
4932 (language_data): Remove la_range_check field.
4933 (language_defn::range_checking_on_by_default): New member
4935 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4936 (m2_language::range_checking_on_by_default): New member function.
4937 * objc-lang.c (objc_language_data): Remove la_range_check
4939 * opencl-lang.c (opencl_language_data): Likewise.
4940 * p-lang.c (pascal_language_data): Likewise.
4941 (pascal_language::range_checking_on_by_default): New member
4943 * rust-lang.c (rust_language_data): Remove la_range_check
4945 (rust_language::range_checking_on_by_default): New member
4948 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4950 * dwarf2/read.c (dwarf2_physname): Remove special case for
4952 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4955 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4957 * ada-lang.c (ada_language_data): Remove
4958 la_store_sym_names_in_linkage_form_p initializer.
4959 (ada_language::store_sym_names_in_linkage_form_p): New member
4961 * c-lang.c (c_language_data): Remove
4962 la_store_sym_names_in_linkage_form_p initializer.
4963 (c_language::store_sym_names_in_linkage_form_p): New member
4965 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4967 (asm_language_data): Likewise.
4968 (asm_language::store_sym_names_in_linkage_form_p): New member
4970 (minimal_language_data): Remove
4971 la_store_sym_names_in_linkage_form_p initializer.
4972 (minimal_language::store_sym_names_in_linkage_form_p): New member
4974 * d-lang.c (d_language_data): Remove
4975 la_store_sym_names_in_linkage_form_p initializer.
4976 * dwarf2/read.c (dwarf2_physname): Update call to
4977 store_sym_names_in_linkage_form_p.
4978 * f-lang.c (f_language_data): Remove
4979 la_store_sym_names_in_linkage_form_p initializer.
4980 * go-lang.c (go_language_data): Remove
4981 la_store_sym_names_in_linkage_form_p initializer.
4982 * language.c (unknown_language_data): Remove
4983 la_store_sym_names_in_linkage_form_p initializer.
4984 (unknown_language::store_sym_names_in_linkage_form_p): New member
4986 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4988 (auto_language::store_sym_names_in_linkage_form_p): New member
4990 * language.h (language_data): Remove
4991 la_store_sym_names_in_linkage_form_p member variable.
4992 (language_defn::store_sym_names_in_linkage_form_p): New member
4994 * m2-lang.c (m2_language_data): Remove
4995 la_store_sym_names_in_linkage_form_p initializer.
4996 * objc-lang.c (objc_language_data): Likewise.
4997 * opencl-lang.c (opencl_language_data): Likewise.
4998 * p-lang.c (pascal_language_data): Likewise.
4999 * rust-lang.c (rust_language_data): Likewise.
5001 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5003 * ada-lang.c (ada_language_data): Remove string_lower_bound
5005 * c-lang.c (c_language_data): Likewise.
5006 (cplus_language_data): Likewise.
5007 (asm_language_data): Likewise.
5008 (minimal_language_data): Likewise.
5009 * d-lang.c (d_language_data): Likewise.
5010 * f-lang.c (f_language_data): Likewise.
5011 * go-lang.c (go_language_data): Likewise.
5012 * language.c (unknown_language_data): Likewise.
5013 (auto_language_data): Likewise.
5014 * language.h (language_data): Remove string_lower_bound field.
5015 (language_defn::string_lower_bound): New member function.
5016 * m2-lang.c (m2_language_data): Remove string_lower_bound
5018 (m2_language::string_lower_bound): New member function.
5019 * objc-lang.c (objc_language_data): Remove string_lower_bound
5021 * opencl-lang.c (opencl_language_data): Likewise.
5022 * p-lang.c (pascal_language_data): Likewise.
5023 * rust-lang.c (rust_language_data): Likewise.
5024 * valops.c (value_cstring): Update call to string_lower_bound.
5025 (value_string): Likewise.
5026 * value.c (allocate_repeated_value): Likewise.
5028 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5030 * valops.c (value_repeat): Fix incorrect argument name in comment.
5032 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5034 * ada-lang.c (ada_language_data): Remove c_style_arrays
5036 (ada_language::c_style_arrays_p): New member fuction.
5037 * c-lang.c (c_language_data): Remove c_style_arrays
5039 (cplus_language_data): Likewise.
5040 (asm_language_data): Likewise.
5041 (minimal_language_data): Likewise.
5042 * d-lang.c (d_language_data): Likewise.
5043 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
5044 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
5045 (f_language::c_style_arrays_p): New member function.
5046 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
5047 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
5048 * language.c (unknown_language_data): Remove c_style_arrays
5050 (auto_language_data): Likewise.
5051 * language.h (language_data): Remove c_style_arrays field.
5052 (language_defn::c_style_arrays_p): New member function.
5053 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
5054 (m2_language::c_style_arrays_p): New member function.
5055 * objc-lang.c (objc_language_data): Remove c_style_arrays
5057 * opencl-lang.c (opencl_language_data): Likewise.
5058 * p-lang.c (pascal_language_data): Likewise.
5059 * rust-lang.c (rust_language_data): Likewise.
5060 * valarith.c (value_subscript): Update call to c_style_arrays_p,
5061 and update local variable to a bool.
5062 * valops.c (value_cast): Update call to c_style_arrays_p.
5063 (value_array): Likewise.
5064 * value.c (coerce_array): Likewise.
5066 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5068 * ada-lang.c (ada_language_data): Remove la_language initializer.
5069 * c-lang.c (c_language_data): Likewise.
5070 (cplus_language_data): Likewise.
5071 (asm_language_data): Likewise.
5072 (minimal_language_data): Likewise.
5073 * d-lang.c (d_language_data): Likewise.
5074 * f-lang.c (f_language_data): Likewise.
5075 * go-lang.c (go_language_data): Likewise.
5076 * language.c (unknown_language_data): Likewise.
5077 (auto_language_data): Likewise.
5078 * language.h (language_data): Remove la_language field.
5079 (language_defn::language_defn): Initialise la_language field.
5080 (language_defn::la_language): New member variable.
5081 * m2-lang.c (m2_language_data): Remove la_language field.
5082 * objc-lang.c (objc_language_data): Likewise.
5083 * opencl-lang.c (opencl_language_data): Likewise.
5084 * p-lang.c (pascal_language_data): Likewise.
5085 * rust-lang.c (rust_language_data): Likewise.
5087 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5089 * ada-lang.c (ada_extensions): Delete, moved into
5090 ada_language::filename_extensions.
5091 (ada_language_data): Remove la_filename_extensions initializer.
5092 (ada_language::filename_extensions): New member function.
5093 * c-lang.c (c_extensions): Delete, moved into
5094 c_language::filename_extensions.
5095 (c_language_data): Remove la_filename_extensions initializer.
5096 (c_language::filename_extensions): New member function.
5097 (cplus_extensions): Delete, moved into
5098 cplus_language::filename_extensions.
5099 (cplus_language_data): Remove la_filename_extensions initializer.
5100 (cplus_language::filename_extensions): New member function.
5101 (asm_extensions): Delete, moved into
5102 asm_language::filename_extensions.
5103 (asm_language_data): Remove la_filename_extensions initializer.
5104 (asm_language::filename_extensions): New member function.
5105 (minimal_language_data): Remove la_filename_extensions
5107 * d-lang.c (d_extensions): Delete, moved into
5108 d_language::filename_extensions.
5109 (d_language_data): Remove la_filename_extensions initializer.
5110 (d_language::filename_extensions): New member function.
5111 * f-lang.c (f_extensions): Delete, moved into
5112 f_language::filename_extensions.
5113 (f_language_data): Remove la_filename_extensions initializer.
5114 (f_language::filename_extensions): New member function.
5115 * go-lang.c (go_language_data): Remove la_filename_extensions
5117 * language.c (add_set_language_command): Update now that
5118 filename_extensions returns a vector.
5119 (unknown_language_data): Remove la_filename_extensions
5121 (auto_language_data): Likewise.
5122 * language.h (language_data): Remove la_filename_extensions field.
5123 (language_defn::filename_extensions): New member function.
5124 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5126 * objc-lang.c (objc_extensions): Delete, moved into
5127 objc_language::filename_extensions.
5128 (objc_language_data): Remove la_filename_extensions initializer.
5129 (objc_language::filename_extensions): New member function.
5130 * opencl-lang.c (opencl_language_data): Remove
5131 la_filename_extensions initializer.
5132 * p-lang.c (pascal_extensions): Delete, moved into
5133 pascal_language::filename_extensions.
5134 (pascal_language_data): Remove la_filename_extensions initializer.
5135 (pascal_language::filename_extensions): New member function.
5136 * rust-lang.c (rust_extensions): Delete, moved into
5137 rust_language::filename_extensions.
5138 (rust_language_data): Remove la_filename_extensions initializer.
5139 (rust_language::filename_extensions): New member function.
5140 * symfile.c (add_filename_language): Add new assert.
5142 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5144 * ada-lang.c (ada_language_data): Remove la_name and
5145 la_natural_name initializers.
5146 (ada_language::name): New member function.
5147 (ada_language::natural_name): New member function.
5148 * c-lang.c (c_language_data): Remove la_name and
5149 la_natural_name initializers.
5150 (c_language::name): New member function.
5151 (c_language::natural_name): New member function.
5152 (cplus_language_data): Remove la_name and
5153 la_natural_name initializers.
5154 (cplus_language::name): New member function.
5155 (cplus_language::natural_name): New member function.
5156 (asm_language_data): Remove la_name and
5157 la_natural_name initializers.
5158 (asm_language::name): New member function.
5159 (asm_language::natural_name): New member function.
5160 (minimal_language_data): Remove la_name and
5161 la_natural_name initializers.
5162 (minimal_language::name): New member function.
5163 (minimal_language::natural_name): New member function.
5164 * compile/compile.c (compile_to_object): Update call to
5165 lanugage_defn::name.
5166 * d-lang.c (d_language_data): Remove la_name and
5167 la_natural_name initializers.
5168 (d_language::name): New member function.
5169 (d_language::natural_name): New member function.
5170 * expprint.c (print_subexp_standard): Update call to
5171 language_defn::name.
5172 (dump_raw_expression): Likewise
5173 (dump_prefix_expression): Likewise.
5174 * f-lang.c (f_language_data): Remove la_name and
5175 la_natural_name initializers.
5176 (f_language::name): New member function.
5177 (f_language::natural_name): New member function.
5178 * go-lang.c (go_language_data): Remove la_name and
5179 la_natural_name initializers.
5180 (go_language::name): New member function.
5181 (go_language::natural_name): New member function.
5182 * language.c (show_language_command): Update call to
5183 language_defn::name.
5184 (set_language_command): Likewise.
5185 (language_enum): Likewise.
5186 (language_str): Likewise.
5187 (add_set_language_command): Likewise, use
5188 language_defn::natural_name in the doc string.
5189 (unknown_language_data): Remove la_name and
5190 la_natural_name initializers.
5191 (unknown_language::name): New member function.
5192 (unknown_language::natural_name): New member function.
5193 (auto_language_data): Remove la_name and
5194 la_natural_name initializers.
5195 (auto_language::name): New member function.
5196 (auto_language::natural_name): New member function.
5197 (language_lookup_primitive_type_as_symbol): Update call to
5198 language_defn::name.
5199 * language.h (language_data): Remove la_name and la_natural_name
5201 (language_defn::name): New member function.
5202 (language_defn::natural_name): New member function.
5203 * m2-lang.c (m2_language_data): Remove la_name and
5204 la_natural_name initializers.
5205 (m2_language::name): New member function.
5206 (m2_language::natural_name): New member function.
5207 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5208 language_defn::natural_name.
5209 * objc-lang.c (objc_language_data): Remove la_name and
5210 la_natural_name initializers.
5211 (objc_language::name): New member function.
5212 (objc_language::natural_name): New member function.
5213 * opencl-lang.c (opencl_language_data): Remove la_name and
5214 la_natural_name initializers.
5215 (opencl_language::name): New member function.
5216 (opencl_language::natural_name): New member function.
5217 * p-lang.c (pascal_language_data): Remove la_name and
5218 la_natural_name initializers.
5219 (pascal_language::name): New member function.
5220 (pascal_language::natural_name): New member function.
5221 * rust-lang.c (rust_language_data): Remove la_name and
5222 la_natural_name initializers.
5223 (rust_language::name): New member function.
5224 (rust_language::natural_name): New member function.
5225 * symtab.c (lookup_language_this): Update call to
5226 language_defn::name.
5228 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5230 * ada-lang.c (ada_language_data): Remove la_name_of_this
5232 * ax-gdb.c (gen_expr): Update call to name_of_this.
5233 * c-exp.y (classify_name): Likewise.
5234 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5235 (cplus_language_data): Likewise.
5236 (cplus_language::name_of_this): New member function.
5237 (asm_language_data): Remove la_name_of_this initializer.
5238 (minimal_language_data): Likewise.
5239 * d-lang.c (d_language_data): Likewise.
5240 (d_language::name_of_this): New member function.
5241 * expprint.c (print_subexp_standard): Update call to name_of_this.
5242 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5243 * go-lang.c (go_language_data): Likewise.
5244 * language.c (unknown_language_data): Likewise.
5245 (unknown_language::name_of_this): New member function.
5246 (auto_language_data): Remove la_name_of_this initializer.
5247 (auto_language::name_of_this): New member function.
5248 * language.h (language_data): Delete la_name_of_this member
5250 (language_defn::name_of_this): New member function.
5251 * m2-lang.c (m2_language_data): Remove la_name_of_this
5253 * objc-lang.c (objc_language_data): Likewise.
5254 (objc_language::name_of_this): New member function.
5255 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5257 * p-lang.c (pascal_language_data): Likewise.
5258 (pascal_language::name_of_this): New member function.
5259 * rust-lang.c (rust_language_data): Remove la_name_of_this
5261 * symtab.c (lookup_language_this): Update call to name_of_this.
5262 (lookup_symbol_aux): Likewise.
5263 * valops.c (value_of_this): Likewise.
5265 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5267 * ada-lang.c (ada_language_data): Remove
5268 la_struct_too_deep_ellipsis initializer.
5269 (ada_language::struct_too_deep_ellipsis): New member function.
5270 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5272 (cplus_language_data): Likewise.
5273 (asm_language_data): Likewise.
5274 (minimal_language_data): Likewise.
5275 * cp-valprint.c (cp_print_value): Update call to
5276 struct_too_deep_ellipsis.
5277 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5279 * f-lang.c (f_language_data): Likewise.
5280 (f_language::struct_too_deep_ellipsis): New member function.
5281 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5283 * language.c (unknown_language_data): Likewise.
5284 (auto_language_data): Likewise.
5285 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5287 (language_defn::struct_too_deep_ellipsis): New member function.
5288 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5290 * objc-lang.c (objc_language_data): Likewise.
5291 * opencl-lang.c (opencl_language_data): Likewise.
5292 * p-lang.c (pascal_language_data): Likewise.
5293 * rust-lang.c (rust_language_data): Likewise.
5294 * valprint.c (val_print_check_max_depth): Update call to
5295 struct_too_deep_ellipsis.
5297 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5299 * MAINTAINERS (Write After Approval): Add myself.
5301 2020-09-15 Tom Tromey <tom@tromey.com>
5303 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5306 2020-09-15 Tom Tromey <tom@tromey.com>
5308 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5309 and TYPE_CODE_METHODPTR cases.
5310 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5311 (c_value_print_inner): Update.
5312 * valprint.c (generic_value_print_memberptr): New function, from
5313 c_value_print_memberptr.
5314 (generic_value_print): Use it. Call cplus_print_method_ptr.
5316 2020-09-15 Tom Tromey <tromey@adacore.com>
5318 * python/python-internal.h (PyInt_FromLong): Remove define.
5319 * python/py-value.c (convert_value_from_python): Use
5320 gdb_py_object_from_longest.
5321 * python/py-type.c (typy_get_code): Use
5322 gdb_py_object_from_longest.
5323 * python/py-symtab.c (salpy_get_line): Use
5324 gdb_py_object_from_longest.
5325 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5326 gdb_py_object_from_longest.
5327 * python/py-record.c (recpy_gap_reason_code): Use
5328 gdb_py_object_from_longest.
5329 * python/py-record-btrace.c (recpy_bt_insn_size)
5330 (recpy_bt_func_level, btpy_list_count): Use
5331 gdb_py_object_from_longest.
5332 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5333 gdb_py_object_from_longest. Fix error handling.
5334 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5335 gdb_py_object_from_longest.
5336 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5337 gdb_py_object_from_longest.
5338 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5339 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5340 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5342 2020-09-15 Tom Tromey <tromey@adacore.com>
5344 * python/python.c (gdbpy_parameter_value): Use
5345 gdb_py_object_from_ulongest.
5347 2020-09-15 Tom Tromey <tromey@adacore.com>
5349 * python/py-infevents.c (create_register_changed_event_object):
5350 Use gdb_py_object_from_longest.
5351 * python/py-exitedevent.c (create_exited_event_object): Use
5352 gdb_py_object_from_longest.
5354 2020-09-15 Tom Tromey <tromey@adacore.com>
5356 * python/python.c (gdbpy_parameter_value): Use
5357 gdb_py_object_from_longest.
5358 * python/py-type.c (convert_field, typy_range): Use
5359 gdb_py_object_from_longest.
5360 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5361 gdb_py_object_from_longest.
5362 * python/py-lazy-string.c (stpy_get_length): Use
5363 gdb_py_object_from_longest.
5364 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5365 gdb_py_object_from_longest.
5366 * python/py-infevents.c (create_memory_changed_event_object): Use
5367 gdb_py_object_from_longest.
5368 * python/py-inferior.c (infpy_get_num): Use
5369 gdb_py_object_from_longest.
5370 (infpy_get_pid): Likewise.
5372 2020-09-15 Tom Tromey <tromey@adacore.com>
5374 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5376 * python/py-value.c (valpy_long): Use
5377 gdb_py_object_from_ulongest.
5378 * python/py-symtab.c (salpy_get_pc): Use
5379 gdb_py_object_from_ulongest.
5380 (salpy_get_last): Likewise.
5381 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5382 gdb_py_object_from_ulongest.
5383 * python/py-lazy-string.c (stpy_get_address): Use
5384 gdb_py_object_from_ulongest.
5385 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5386 * python/py-arch.c (archpy_disassemble): Use
5387 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5390 2020-09-15 Tom Tromey <tromey@adacore.com>
5392 * python/python-internal.h (gdb_py_long_from_longest): Remove
5394 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5395 * python/py-type.c (convert_field, typy_get_sizeof): Use
5396 gdb_py_object_from_longest.
5397 * python/py-record-btrace.c (btpy_list_index): Use
5398 gdb_py_object_from_longest.
5400 2020-09-15 Tom Tromey <tromey@adacore.com>
5402 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5403 * python/py-record.c (recpy_element_number): Use
5404 gdb_py_object_from_longest.
5405 (recpy_gap_number): Likewise.
5407 2020-09-15 Tom Tromey <tromey@adacore.com>
5409 * top.c (ui::ui): Update.
5410 (highest_ui_num): Remove.
5411 * top.h (struct ui) <num>: Remove.
5413 2020-09-15 Tom Tromey <tromey@adacore.com>
5415 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5416 * ui-style.c (ansi_regex_text): Now array.
5417 * rust-exp.y (number_regex_text): Now array.
5418 * linespec.c (linespec_quote_characters): Now array.
5419 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5422 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5424 * debuginfod-support.c (debuginfod_client_deleter): New.
5425 (debuginfod_client_up): New.
5426 (debuginfod_init): Return debuginfod_client_up.
5427 (debuginfod_source_query): Adjust.
5428 (debuginfod_debuginfo_query): Adjust.
5430 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5432 * debuginfod-support.c (debuginfod_source_query): Use
5433 make_unique_xstrdup.
5435 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5437 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5438 with `type::instance_flags`.
5440 2020-09-14 Michael Mullin <masmullin@gmail.com>
5442 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5443 Remove baton parameter.
5445 2020-09-14 Pedro Alves <pedro@palves.net>
5447 * Makefile.in (SELFTESTS_SRCS): Add
5448 unittests/enum-flags-selftests.c.
5449 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5450 btrace_function_flags instead of enum btrace_function_flag.
5451 * compile/compile-c-types.c (convert_qualified): Use
5453 * compile/compile-cplus-symbols.c (convert_one_symbol)
5454 (convert_symbol_bmsym):
5455 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5456 (compile_cplus_convert_struct_or_union_methods)
5457 (compile_cplus_instance::convert_qualified_base):
5458 * go-exp.y (parse_string_or_char): Add cast to int.
5459 * unittests/enum-flags-selftests.c: New file.
5460 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5461 type to btrace_thread_flags from btrace_thread_flag.
5462 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5463 local's type to btrace_thread_flags from btrace_thread_flag. Add
5466 2020-09-14 Pedro Alves <pedro@palves.net>
5468 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5469 * gdbtypes.c (address_space_name_to_int): Rename to ...
5470 (address_space_name_to_type_instance_flags): ... this.
5471 (address_space_int_to_name): Rename to ...
5472 (address_space_type_instance_flags_to_name): ... this.
5473 * gdbtypes.h (address_space_name_to_int): Rename to ...
5474 (address_space_name_to_type_instance_flags): ... this.
5475 (address_space_int_to_name): Rename to ...
5476 (address_space_type_instance_flags_to_name): ... this.
5477 * type-stack.c (type_stack::insert): Adjust to rename.
5478 * type-stack.h (type_stack::insert): Likewise.
5480 2020-09-14 Pedro Alves <pedro@palves.net>
5481 Andrew Burgess <andrew.burgess@embecosm.com>
5483 * avr-tdep.c (avr_address_class_type_flags): Return
5484 type_instance_flags.
5485 (avr_address_class_type_flags_to_name): Take a
5486 type_instance_flags.
5487 (avr_address_class_name_to_type_flags): Return bool and take a
5488 type_instance_flags.
5489 * d-lang.c (build_d_types): Use type::set_instance_flags.
5490 * ft32-tdep.c (ft32_address_class_type_flags): Return
5491 type_instance_flags.
5492 (ft32_address_class_type_flags_to_name): Take a
5493 type_instance_flags.
5494 (ft32_address_class_name_to_type_flags): Return bool and take a
5495 type_instance_flags.
5496 (ft32_gdbarch_init): Use type::set_instance_flags.
5497 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5498 * gdbarch.h, gdbarch.c: Regenerate.
5499 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5500 (address_class_name_to_type_flags): Use type_instance_flags and
5502 * gdbtypes.c (address_space_name_to_int)
5503 (address_space_int_to_name, make_qualified_type): Use
5504 type_instance_flags.
5505 (make_qualified_type): Use type_instance_flags and
5506 type::set_instance_flags.
5507 (make_type_with_address_space, make_cv_type, make_vector_type)
5508 (check_typedef): Use type_instance_flags.
5509 (recursive_dump_type): Cast type_instance_flags to unsigned for
5511 (copy_type_recursive): Use type::set_instance_flags.
5512 (gdbtypes_post_init): Use type::set_instance_flags.
5513 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5514 <m_instance_flags>: ... this.
5515 <instance_flags, set_instance_flags>: New methods.
5516 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5517 (SET_TYPE_INSTANCE_FLAGS): New.
5518 (address_space_name_to_int, address_space_int_to_name)
5519 (make_type_with_address_space): Pass flags using
5520 type_instance_flags instead of int.
5521 * stabsread.c (cleanup_undefined_types_noname): Use
5522 type::set_instance_flags.
5523 * s390-tdep.c (s390_address_class_type_flags): Return
5524 type_instance_flags.
5525 (s390_address_class_type_flags_to_name): Take a
5526 type_instance_flags.
5527 (s390_address_class_name_to_type_flags): Return bool and take a
5528 type_instance_flags.
5529 * type-stack.c (type_stack::follow_types): Use
5530 type_instance_flags.
5531 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5533 2020-09-14 Tom Tromey <tromey@adacore.com>
5535 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5536 * x86-tdep.c (x86_is_thunk_register_name)
5537 (x86_in_indirect_branch_thunk): Update.
5538 * sparc64-tdep.c (sparc64_fpu_register_names)
5539 (sparc64_cp0_register_names, sparc64_register_names)
5540 (sparc64_pseudo_register_names): Now const.
5541 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5542 cp0_registers_num>: Now const.
5543 * sparc-tdep.c (sparc_core_register_names)
5544 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5545 (sparc32_pseudo_register_names): Now const.
5546 (validate_tdesc_registers): Update.
5547 * rust-lang.c (rust_extensions): Now const.
5548 * p-lang.c (p_extensions): Now const.
5549 * objc-lang.c (objc_extensions): Now const.
5550 * nto-tdep.c (nto_thread_state_str): Now const.
5551 * moxie-tdep.c (moxie_register_names): Now const.
5552 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5554 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5555 (mips_linux_reg_names): Now const.
5556 (mips_gdbarch_init): Update.
5557 * microblaze-tdep.c (microblaze_register_names): Now const.
5558 * m68k-tdep.c (m68k_register_names): Now const.
5559 * m32r-tdep.c (m32r_register_names): Now const.
5560 * ia64-tdep.c (ia64_register_names): Now const.
5561 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5562 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5563 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5564 ymm_avx512_register_names, pkeys_register_names>: Now const.
5565 * i386-tdep.c (i386_register_names, i386_zmm_names)
5566 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5567 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5568 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5569 * f-lang.c (f_extensions): Now const.
5570 * d-lang.c (d_extensions): Now const.
5571 * csky-tdep.c (csky_register_names): Now const.
5572 * charset.c (default_charset_names, charset_enum): Now const.
5573 (_initialize_charset): Update.
5574 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5576 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5577 (bsd_uthread_solib_loaded): Update.
5578 (bsd_uthread_state): Now const.
5579 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5580 (amd64_ymm_avx512_names, amd64_ymmh_names)
5581 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5582 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5583 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5584 (amd64_dword_names): Now const.
5585 * agent.c (can_use_agent_enum): Now const.
5586 * ada-tasks.c (task_states, long_task_states): Now const.
5587 * ada-lang.c (known_runtime_file_name_patterns)
5588 (known_auxiliary_function_name_patterns, attribute_names)
5589 (standard_exc, ada_extensions): Now const.
5591 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5593 * bcache.h (struct bcache) <bcache>: Remove constructor.
5594 <m_hash_function, m_compare_function>: Remove.
5595 <~bcache>: Make virtual.
5596 <compare>: Remove static method, introduce virtual method.
5597 <default_hash>: Remove.
5598 <hash>: New virtual method.
5599 * bcache.c (bcache::expand_hash_table): Update.
5600 (bcache::insert): Update.
5601 (bcache::hash): New.
5602 (bcache::compare): Update comment and parameter names.
5603 * gdbtypes.c (types_deeply_equal): Update.
5604 * psymtab.h (struct psymbol_bcache): New struct.
5605 (class psymtab_storage) <psymtab_storage>: Make default.
5606 <psymbol_cache>: Change type to psymbol_bcache.
5607 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5608 (psymbol_hash): Change to...
5609 (psymbol_bcache::hash): ... this.
5610 (psymbol_compare): Change to...
5611 (psymbol_bcache::compare): ... this.
5613 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5615 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5616 checking for initial lwp.
5618 2020-09-14 Tom Tromey <tromey@adacore.com>
5620 * m68k-tdep.c (m68k_extract_return_value): Use
5621 pointer_result_regnum.
5622 (m68k_store_return_value): Likewise.
5623 (m68k_reg_struct_return_p): Handle vectors and arrays.
5624 (m68k_return_value): Handle arrays.
5625 (m68k_svr4_return_value): Fix single-element aggregate handling.
5626 Handle long double. Adjust for embedded ABI.
5627 (m68k_svr4_init_abi): Set pointer_result_regnum.
5628 (m68k_embedded_init_abi): New function.
5629 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5630 (m68k_osabi_sniffer): New function.
5631 (_initialize_m68k_tdep): Register osabi sniffer.
5632 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5635 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5637 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5638 with gdb::unique_xmalloc_ptr<char>.
5640 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5642 * xml-support.h (xml_fetch_another): Change type to be a
5644 (xml_process_xincludes): Remove baton parameter.
5645 (xml_fetch_content_from_file): Change baton parameter to
5647 * xml-support.c (struct xinclude_parsing_data)
5648 <xinclude_parsing_data>: Remove baton parameter.
5649 <fetcher_baton>: Remove.
5650 (xinclude_start_include): Adjust.
5651 (xml_process_xincludes): Adjust.
5652 (xml_fetch_content_from_file): Replace baton parameter with
5654 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5655 (xml_init_syscalls_info): Use a lambda.
5656 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5657 (file_read_description_xml): Use a lambda.
5658 (fetch_available_features_from_target): Change baton parameter
5660 (target_read_description_xml): Use a lambda.
5661 (target_fetch_description_xml): Use a lambda.
5662 (string_read_description_xml): Update.
5664 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5666 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5667 uses with type::endianity_is_not_default.
5669 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5671 * gdbtypes.h (struct type) <endianity_is_not_default,
5672 set_endianity_is_not_default>: New methods.
5673 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5674 type::endianity_is_not_default, change all write call sites to
5675 use type::set_endianity_is_not_default.
5677 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5679 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5680 uses with type::is_fixed_instance.
5682 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5684 * gdbtypes.h (struct type) <is_fixed_instance,
5685 set_is_fixed_instance>: New methods.
5686 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5687 write call sites to use type::set_is_fixed_instance.
5689 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5691 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5692 uses with type::is_gnu_ifunc.
5694 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5696 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5697 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5698 use type::set_is_gnu_ifunc.
5700 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5702 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5703 uses with type::stub_is_supported.
5705 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5707 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5708 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5709 use type::set_stub_is_supported.
5711 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5713 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5714 uses with type::is_vector.
5716 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5718 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5719 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5720 use type::set_is_vector.
5722 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5724 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5725 uses with type::has_varargs.
5727 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5729 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5730 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5731 use type::set_has_varargs.
5733 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5735 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5736 uses with type::is_prototyped.
5738 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5740 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5742 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5743 call sites to use type::set_is_prototyped.
5745 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5747 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5748 uses with type::target_is_stub.
5750 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5752 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5754 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5755 sites to use type::set_target_is_stub.
5757 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5759 * gdbtypes.h (TYPE_STUB): Remove, replace all
5760 uses with type::is_stub.
5762 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5764 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5765 (TYPE_STUB): Use type::is_stub, change all write call sites to
5766 use type::set_is_stub.
5768 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5770 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5771 type::has_no_signedness.
5773 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5775 * gdbtypes.h (struct type) <has_no_signedness,
5776 set_has_no_signedness>: New methods.
5777 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5778 call sites to use type::set_has_no_signedness.
5780 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5782 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5785 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5787 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5789 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5790 sites to use type::set_is_unsigned.
5792 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5793 Adam Renquinha <arenquinha@cimeq.qc.ca>
5795 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5796 pointer and stack frame offset when unwinding.
5798 2020-09-13 Pedro Alves <pedro@palves.net>
5800 * NEWS: Document "-break-insert --qualified".
5801 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5803 2020-09-13 Pedro Alves <pedro@palves.net>
5805 * linespec.c (classify_mtype, compare_msyms): Delete.
5806 (search_minsyms_for_name): Remove classification logic. Instead
5807 filter out trampoline symbols if we also found an external
5808 function of the same name.
5810 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5812 * NEWS: Create a new section for the next release branch.
5813 Rename the section of the current branch, now that it has
5816 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5818 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5819 * version.in: Bump version to 11.0.50.DATE-git.
5821 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5823 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5825 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5826 Felix Willgerodt <Felix.Willgerodt@intel.com>
5828 * gdbarch.sh: Added bfloat16 type.
5829 * gdbarch.c: Regenerated.
5830 * gdbarch.h: Regenerated.
5831 * gdbtypes.c (floatformats_bfloat16): New struct.
5832 (gdbtypes_post_init): Add builtin_bfloat16.
5833 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5834 (floatformats_bfloat16): New struct.
5835 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5836 (i386_ymm_type): Add field "v16_bfloat16"
5837 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5838 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5839 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5840 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5841 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5842 * features/i386/64bit-avx512.c: Regenerated.
5843 * features/i386/64bit-sse.xml: Add bfloat16 type.
5844 * features/i386/64bit-sse.c: Regenerated.
5846 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5848 * i386-tdep.c (i386_zmm_type): Fix field names.
5849 (i386_ymm_type): Fix field names.
5851 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5853 * breakpoint.c: Fix typo in the help message of the
5854 "set breakpoint condition-evaluation" command.
5856 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5858 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5859 * (nbsd_nat_target::pid_to_exec_file)
5860 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5861 (nbsd_nat_target::post_startup_inferior)
5862 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5863 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5864 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5865 * (nbsd_thread_lister): Remove.
5867 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5869 * fork-inferior.c (startup_inferior): Avoid double free.
5871 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5873 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5874 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5876 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5878 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5879 * netbsd-nat.c: Include <sys/ptrace.h>.
5880 * (netbsd_nat::enable_proc_events): Add.
5882 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5884 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5885 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5886 (netbsd_nat::for_each_thread): Add.
5887 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5888 "gdbsupport/common-debug.h".
5889 * (netbsd_nat::netbsd_thread_lister)
5890 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5891 (netbsd_nat::for_each_thread): Add.
5893 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5895 * netbsd-nat.h: Include <unistd.h>.
5896 * (netbsd_nat::pid_to_exec_file): Add.
5897 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5898 * (netbsd_nat::pid_to_exec_file) Add.
5900 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5902 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5904 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5906 * netbsd-nat.h: New file.
5907 * netbsd-nat.c: Likewise.
5909 2020-09-09 Tom Tromey <tromey@adacore.com>
5911 * ada-lang.c (remove_extra_symbols): Do not increment when
5914 2020-09-08 Tom Tromey <tromey@adacore.com>
5916 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5918 2020-09-08 Tom Tromey <tromey@adacore.com>
5921 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5922 (gdb_bfd_init_data): New function.
5923 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5925 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5927 * infrun.c (fetch_inferior_event): Use
5928 `switch_to_target_no_thread` to switch the target.
5930 2020-09-06 Tom Tromey <tom@tromey.com>
5932 * symfile.h (dwarf2_free_objfile): Don't declare.
5934 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5936 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5937 to match 16 byte real/complex type generated by Flang compiler.
5939 2020-09-03 Tom de Vries <tdevries@suse.de>
5942 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5943 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5945 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5947 * maint.c (index_digits): New function.
5948 (struct maint_print_section_data): Remove.
5949 (print_bfd_section_info): Remove print_data parameter, add arg
5951 (print_objfile_section_info): Likewise.
5952 (print_bfd_section_info_maybe_relocated): Likewise (plus
5954 (maintenance_info_sections): Adjust calls.
5956 2020-09-02 Tom Tromey <tromey@adacore.com>
5958 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5960 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5962 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5964 * bcache.h (struct bcache) <insert>: Change type of `added` to
5966 * bcache.c (bcache::insert): Likewise.
5967 * gdbtypes.c (check_types_worklist): Adjust.
5968 * psymtab.c (add_psymbol_to_bcache): Adjust.
5970 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5972 * corelow.c (unordered_set): Include.
5973 (class core_target): Add field 'm_core_unavailable_mappings'.
5974 (core_target::build_file_mappings): Print only one warning
5975 per inaccessible file. Add unavailable/broken mappings
5976 to m_core_unavailable_mappings.
5977 (core_target::xfer_partial): Call...
5978 (core_target::xfer_memory_via_mappings): New method.
5980 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5982 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5985 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5987 * dwarf2/read.c (struct field_info): Fix indentation.
5989 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5991 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5992 ordering in comment.
5993 * frame.c (frame_id_eq): Fix indentation.
5995 2020-08-31 Scott Linder <scott@scottlinder.com>
5996 Simon Marchi <simon.marchi@efficios.com>
5998 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5999 inline frame ids in outer frame.
6001 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6003 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
6004 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
6005 (outer_frame_id): Use FID_STACK_OUTER instead of
6007 (frame_id_p): Don't check for outer_frame_id.
6009 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6011 * frame-unwind.c (frame_unwind_got_optimized): Don't set
6012 regnum/frame in value. Call allocate_value_lazy.
6013 * frame.c (frame_unwind_register_value): Use
6014 val_print_not_saved.
6016 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6018 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
6020 2020-08-29 Pedro Alves <pedro@palves.net>
6022 * progspace.c (print_program_space): Use all_inferiors. Switch to
6023 the inferior before calling target_pid_to_str.
6025 2020-08-28 Tom Tromey <tom@tromey.com>
6027 * xcoffread.c (xcoff_end_psymtab): Update comment.
6028 * dbxread.c (dbx_end_psymtab): Update comment.
6030 2020-08-28 Tom de Vries <tdevries@suse.de>
6033 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
6035 (create_breakpoint): Same.
6036 (base_breakpoint_decode_location): Same.
6037 (bkpt_create_sals_from_location): Same.
6038 (bkpt_decode_location): Same.
6039 (bkpt_probe_create_sals_from_location): Same.
6040 (bkpt_probe_decode_location): Same.
6041 (tracepoint_create_sals_from_location): Same.
6042 (tracepoint_decode_location): Same.
6043 (tracepoint_probe_decode_location): Same.
6044 (strace_marker_create_sals_from_location): Same.
6045 (strace_marker_decode_location): Same.
6046 (create_sals_from_location_default): Same.
6047 (decode_location_default): Same.
6048 * breakpoint.h (struct breakpoint_ops): Same.
6049 (create_breakpoint): Same.
6050 * linespec.h (decode_line_full): Same.
6051 * linespec.c (decode_line_full): Same. Throw error if
6052 result.size () == 0.
6054 2020-08-27 Pedro Alves <pedro@palves.net>
6057 * breakpoint.c (until_break_fsm) <location_breakpoint,
6058 caller_breakpoint>: Delete fields.
6059 <breakpoints>: New field.
6060 <until_break_fsm>: Adjust to save a breakpoint vector instead of
6061 two individual breakpoints.
6062 (until_break_fsm::should_stop): Loop over breakpoints in the
6064 (until_break_fsm::clean_up): Adjust to clear the breakpoints
6066 (until_break_command): Handle location expanding into multiple
6069 2020-08-27 Pedro Alves <pedro@palves.net>
6072 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
6073 bp_until breakpoints user-specified locations. Update intro
6076 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
6078 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
6079 gdb_bfd_sections): New.
6080 * maint.c (print_bfd_section_info): Change param type to
6081 maint_print_section_data.
6082 (print_objfile_section_info): Likewise.
6083 (print_bfd_section_info_maybe_relocated): Likewise.
6084 (maintenance_info_sections): Use gdb_bfd_sections.
6086 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6088 * MAINTAINERS: Add ARC target and maintainer.
6090 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
6092 * configure.tgt: ARC support for GNU/Linux.
6093 * Makefile.in (ALL_TARGET_OBJS): Likewise.
6094 * arc-linux-tdep.c: New file.
6095 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
6096 * arc-tdep.c (arc_write_pc): Use it.
6098 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6100 * arc-tdep.c (arc_check_for_hardware_loop): New.
6101 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
6103 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6105 * arc-tdep.h: Include "gdbarch.h".
6107 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6110 (arc_gdbarch_features): New class to stir the selection of target XML.
6111 (arc_create_target_description): Use FEATURES to choose XML target.
6112 (arc_lookup_target_description): Use arc_create_target_description
6113 to create _new_ target descriptions or return the already created
6114 ones if the FEATURES is the same.
6115 * arch/arc.c: Implementation of prototypes described above.
6116 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6117 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6118 * arc-tdep.c (*_feature_name): Make feature names consistent.
6119 (arc_register_feature): A new struct to hold information about
6120 registers of a particular target/feature.
6121 (arc_check_tdesc_feature): Check if XML provides registers in
6122 compliance with ARC_REGISTER_FEATURE structs.
6123 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6124 (determine_*_reg_feature_set): Which feature name to look for.
6125 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6126 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6127 to expected ISA enums to be used in arc_gdbarch_features structs.
6128 * features/Makefile (FEATURE_XMLFILES): Add new files.
6129 * gdb/features/arc/v1-aux.c: New file.
6130 * gdb/features/arc/v1-aux.xml: Likewise.
6131 * gdb/features/arc/v1-core.c: Likewise.
6132 * gdb/features/arc/v1-core.xml: Likewise.
6133 * gdb/features/arc/v2-aux.c: Likewise.
6134 * gdb/features/arc/v2-aux.xml: Likewise.
6135 * gdb/features/arc/v2-core.c: Likewise.
6136 * gdb/features/arc/v2-core.xml: Likewise.
6137 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6139 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6140 Andrew Burgess <andrew.burgess@embecosm.com>
6143 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
6144 an assert. Remove single element array indexing pattern as the
6145 MULTI_SUBSCRIPT support will handle this case too.
6147 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6149 * value.h (valprint_check_validity): Move declaration from
6151 * valprint.h (valprint_check_validity): ... to here.
6153 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6155 * debug.h: New file.
6156 * debug.c (debug_prefixed_vprintf): New function.
6157 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6158 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6160 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6162 * infrun.h (infrun_debug_printf_1): New function declaration.
6163 (infrun_debug_printf): New macro.
6164 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6166 (infrun_debug_printf): New function.
6167 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6168 (handle_jit_event): Likewise.
6170 2020-08-21 Mark Wielaard <mark@klomp.org>
6172 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6174 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
6176 * frame.c (enum class frame_id_status): New.
6177 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6178 (fprintf_frame): Update.
6179 (compute_frame_id): Set frame id status to "computing" on entry.
6180 Set it back to "not_computed" on failure and to "computed" on
6182 (get_frame_id): Assert the frame id is not being computed.
6183 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6184 (create_new_frame): Likewise.
6185 (frame_cleanup_after_sniffer): Update assert.
6187 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6189 * regcache.c (pid_ptid_regcache_map): New type.
6190 (target_ptid_regcache_map): Remove.
6191 (target_pid_ptid_regcache_map): New type.
6192 (regcaches): Change type to target_pid_ptid_regcache_map.
6193 (get_thread_arch_aspace_regcache): Update.
6194 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6196 (regcaches_size): Update.
6197 (regcache_count): Update.
6198 (registers_changed_ptid_target_pid_test): New.
6199 (_initialize_regcache): Register new test.
6201 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6203 * regcache.c (regcache_count): New.
6204 (struct regcache_test_data): New.
6205 (regcache_test_data_up): New.
6206 (populate_regcaches_for_test): New.
6207 (regcaches_test): Remove.
6208 (get_thread_arch_aspace_regcache_test): New.
6209 (registers_changed_ptid_all_test): New.
6210 (registers_changed_ptid_target_test): New.
6211 (registers_changed_ptid_target_ptid_test): New.
6212 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6213 (_initialize_regcache): Register new tests.
6215 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6217 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6218 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6219 gdbarch and aspace parameter. Use current inferior's aspace.
6220 Validate regcache's arch value.
6221 (regcaches_test): Update.
6223 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6225 * regcache.c (regcaches_test): Call registers_changed.
6227 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6229 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6231 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6233 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6234 to find the end of prologue for flang compiled binaries.
6235 * arm-tdep.c (arm_skip_prologue): Likewise.
6236 * i386-tdep.c (i386_skip_prologue): Likewise.
6237 * producer.c (producer_is_llvm): New function.
6238 (producer_parsing_tests): Added new tests for clang/flang.
6239 * producer.h (producer_is_llvm): New declaration.
6241 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6243 * linux-nat.c (linux_nat_debug_printf): New function.
6244 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6246 2020-08-18 Aaron Merey <amerey@redhat.com>
6248 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6249 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6250 (CLIBS): Add DEBUGINFOD_LIBS.
6252 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6254 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6257 2020-08-17 Tom Tromey <tromey@adacore.com>
6259 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6260 ada_get_decoded_value returns NULL.
6262 2020-08-17 Tom Tromey <tromey@adacore.com>
6264 * python/py-inferior.c (infpy_search_memory): Use
6265 gdb_py_object_from_ulongest.
6266 * python/py-infevents.c (create_inferior_call_event_object)
6267 (create_memory_changed_event_object): Use
6268 gdb_py_object_from_ulongest.
6269 * python/py-linetable.c (ltpy_entry_get_pc): Use
6270 gdb_py_object_from_ulongest.
6272 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6274 * loc.c (class symbol_needs_eval_context): Fix indentation.
6276 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6278 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6281 2020-08-17 Tom de Vries <tdevries@suse.de>
6284 * gdbtypes.c (dump_dynamic_prop): New function.
6285 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6287 2020-08-15 Tom de Vries <tdevries@suse.de>
6290 * stack.c (print_frame_args): Temporarily set the selected
6291 frame to FRAME while printing the frame's arguments.
6293 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6295 PR breakpoints/26385
6296 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6297 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6299 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6301 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6302 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6303 and >= to check return value instead of == -1 and != -1.
6305 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6307 * utils.h (class gdb_argv) <as_array_view>: New method.
6308 * utils.c (gdb_argv_as_array_view_test): New.
6309 (_initialize_utils): Register selftest.
6310 * maint.c (maintenance_selftest): Use the new method.
6312 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6314 * target.h (supports_dumpcore, dumpcore): New
6315 function declarations.
6316 * target.c (supports_dumpcore, dumpcore): New
6318 * target-delegates.c: Rebuild.
6319 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6320 and target_dumpcore ().
6322 2020-08-13 Aaron Merey <amerey@redhat.com>
6324 * debuginfod-support.c: Replace global variables with user_data.
6326 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6328 * maint.c (maintenance_selftest): Split args and pass array_view
6331 2020-08-12 Luis Machado <luis.machado@linaro.org>
6333 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6335 Use %s and pulongest to print the length.
6337 2020-08-12 Pedro Alves <palves@redhat.com>
6339 * NEWS: Move "Multi-target debugging support" item to the
6340 "Changes since GDB 9" section.
6342 2020-08-12 Pedro Alves <palves@redhat.com>
6345 * progspace.c (program_space::remove_objfile): Invalidate the
6348 2020-08-11 Tom de Vries <tdevries@suse.de>
6350 * MAINTAINERS: Mark ms1 as deleted.
6352 2020-08-10 Luis Machado <luis.machado@linaro.org>
6356 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6358 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6359 movz/str/stur/stp skipping behavior.
6361 2020-08-10 Luis Machado <luis.machado@linaro.org>
6363 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6364 struct user_sve_header instead of struct sve_context.
6366 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6368 * read.h (dwarf2_fetch_die_loc_sect_off,
6369 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6370 `void *` parameter with function_view.
6371 * read.c (dwarf2_fetch_die_loc_sect_off,
6372 dwarf2_fetch_die_loc_cu_off): Likewise.
6373 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6374 (per_cu_dwarf_call): Adjust.
6375 (get_frame_address_in_block_wrapper): Remove.
6376 (indirect_synthetic_pointer): Adjust.
6377 (get_ax_pc): Remove.
6378 (dwarf2_compile_expr_to_ax): Adjust.
6380 2020-08-08 Tom de Vries <tdevries@suse.de>
6383 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6385 * regcache.c (get_thread_arch_aspace_regcache): Same.
6387 2020-08-07 Tom Tromey <tromey@adacore.com>
6389 * ravenscar-thread.c
6390 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6392 (ravenscar_thread_target::wait): Check
6393 runtime_initialized.
6394 (ravenscar_thread_target::prepare_to_store)
6395 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6396 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6397 (ravenscar_thread_target::stopped_by_watchpoint)
6398 (ravenscar_thread_target::stopped_data_address)
6399 (ravenscar_thread_target::core_of_thread): Use
6400 scoped_restore_current_thread and
6401 set_base_thread_from_ravenscar_task.
6403 2020-08-07 Tom Tromey <tromey@adacore.com>
6405 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6407 2020-08-07 Tom Tromey <tromey@adacore.com>
6409 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6410 update_inferior_ptid before update_thread_list.
6411 (temporarily_change_regcache_ptid): New class.
6412 (ravenscar_thread_target::fetch_registers)
6413 (ravenscar_thread_target::store_registers)
6414 (ravenscar_thread_target::prepare_to_store): Use base thread when
6415 forwarding operation.
6417 2020-08-07 Tom Tromey <tromey@adacore.com>
6419 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6422 2020-08-07 Tom Tromey <tromey@adacore.com>
6424 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6426 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6428 (ravenscar_thread_target::add_thread): Rename from
6429 ravenscar_add_thread.
6430 (ravenscar_thread_target::update_thread_list): Use a lambda.
6431 (ravenscar_thread_target::xfer_partial): New method.
6433 2020-08-07 Tom Tromey <tromey@adacore.com>
6435 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6437 (iterate_over_live_ada_tasks): Change type of argument.
6438 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6441 2020-08-07 Tom Tromey <tromey@adacore.com>
6443 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6445 (ravenscar_thread_target::extra_thread_info): Remove.
6446 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6447 defer to target beneath for non-Ravenscar threads.
6449 2020-08-07 Tom Tromey <tromey@adacore.com>
6451 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6452 get_base_thread_from_ravenscar_task>: Now methods.
6453 <m_cpu_map>: New member.
6454 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6455 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6456 (ravenscar_thread_target::task_is_currently_active): Update.
6457 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6459 (ravenscar_thread_target::add_active_thread): Put initial thread
6462 2020-08-07 Tom Tromey <tromey@adacore.com>
6464 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6467 2020-08-07 Tom Tromey <tromey@adacore.com>
6469 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6470 runtime_initialized.
6472 2020-08-07 Tom Tromey <tromey@adacore.com>
6474 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6476 (ravenscar_thread_target::add_active_thread): Now public.
6477 (ravenscar_inferior_created): Call add_active_thread after pushing
6480 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6482 * regcache.c (ptid_regcache_map): New type.
6483 (target_ptid_regcache_map): New type.
6484 (regcaches): Change type to target_ptid_regcache_map.
6485 (get_thread_arch_aspace_regcache): Update to regcaches' new
6487 (regcache_thread_ptid_changed): Likewise.
6488 (registers_changed_ptid): Likewise.
6489 (regcaches_size): Likewise.
6490 (regcaches_test): Update.
6491 (regcache_thread_ptid_changed): Update.
6492 * regcache.h (regcache_up): New type.
6493 * gdbsupport/ptid.h (hash_ptid): New struct.
6495 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6497 * observable.h (thread_ptid_changed): Add parameter
6498 `process_stratum_target *`.
6499 * infrun.c (infrun_thread_ptid_changed): Add parameter
6500 `process_stratum_target *` and use it.
6501 (selftests): New namespace.
6502 (infrun_thread_ptid_changed): New function.
6503 (_initialize_infrun): Register selftest.
6504 * regcache.c (regcache_thread_ptid_changed): Add parameter
6505 `process_stratum_target *` and use it.
6506 (regcache_thread_ptid_changed): New function.
6507 (_initialize_regcache): Register selftest.
6508 * thread.c (thread_change_ptid): Pass target to
6509 thread_ptid_changed observable.
6511 2020-08-06 Caroline Tice <cmtice@google.com>
6513 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6514 (struct dwp_sections): Update field comments. Add loclists and
6516 (struct virtual_v2_dwo_sections): Rename struct to
6517 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6518 size & offset fields for loclists and rnglists.
6519 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6520 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6521 skipping dummy type units.
6522 (create_dwp_hash_table): Update the large comment above the function to
6523 discuss Version 5 DWP files as well, with references. Update all the
6524 version checks in the function to check for version 5 as well. Add new
6525 section at the end to create dwp hash table for version 5.
6526 (create_dwp_v2_section): Rename function to
6527 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6528 Add V5 to error message text.
6529 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6530 into calls to create_dwp_v2_or_v5_section.
6531 (create_dwo_unit_in_dwp_v5): New function.
6532 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6533 check for version2; add else clause to handle version 5.
6534 (open_and_init_dwo_file): Add code to check dwarf version & only call
6535 create_debug_types_hash_table (with sections.types) if version is not 5;
6536 else call create_debug_type_hash_table, with sections.info.
6537 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6539 (dwarf2_locate_v5_dwp_sections): New function.
6540 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6541 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6543 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6545 * regcache.h (class regcache): Remove friend
6546 registers_changed_ptid.
6547 <regcache_thread_ptid_changed>: Remove.
6548 <regcaches>: Remove.
6549 * regcache.c (regcache::regcaches): Rename to...
6550 (regcaches): ... this. Make static.
6551 (get_thread_arch_aspace_regcache): Update.
6552 (regcache::regcache_thread_ptid_changed): Rename to...
6553 (regcache_thread_ptid_changed): ... this. Update.
6554 (class regcache_access): Remove.
6555 (regcaches_test): Update.
6556 (_initialize_regcache): Update.
6557 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6560 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6562 * regcache.h (class regcache) <current_regcache>: Rename to...
6563 <regcaches>: ... this. Move doc here.
6564 * regcache.c (regcache::current_regcache) Rename to...
6565 (regcache::regcaches): ... this. Move doc to header.
6566 (get_thread_arch_aspace_regcache): Update.
6567 (regcache::regcache_thread_ptid_changed): Update.
6568 (registers_changed_ptid): Update.
6569 (class regcache_access) <current_regcache_size>: Rename to...
6570 <regcaches_size>: ... this.
6571 (current_regcache_test): Rename to...
6572 (regcaches_test): ... this.
6573 (_initialize_regcache): Update.
6575 2020-08-06 Victor Collod <vcollod@nvidia.com>
6577 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6579 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6581 * corelow.c (core_target::build_file_mappings): Don't output
6582 null pathname in warning.
6584 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6586 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6587 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6588 gdb.dwarf2/dw2-single-line-discriminators.exp,
6589 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6591 2020-08-05 Tom Tromey <tromey@adacore.com>
6594 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6595 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6596 Fix off-by-one and type size errors in ordinary case.
6598 2020-08-05 Tom de Vries <tdevries@suse.de>
6600 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6601 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6603 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6605 * frame.h (frame_id_p): Return bool.
6606 (frame_id_artificial_p): Return bool.
6607 (frame_id_eq): Return bool.
6608 (has_stack_frames): Return bool.
6609 (get_selected_frame): Fix typo in comment.
6610 (get_frame_pc_if_available): Return bool.
6611 (get_frame_address_in_block_if_available): Return bool.
6612 (get_frame_func_if_available): Return bool.
6613 (read_frame_register_unsigned): Return bool.
6614 (get_frame_register_bytes): Return bool.
6615 (safe_frame_unwind_memory): Return bool.
6616 (deprecated_frame_register_read): Return bool.
6617 (frame_unwinder_is): Return bool.
6618 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6620 <this_id::p>: Likewise.
6622 (frame_stash_add): Return bool.
6623 (get_frame_id): Use bool.
6624 (frame_id_build_special) Use bool.
6625 (frame_id_build_unavailable_stack): Use bool.
6626 (frame_id_build): Use bool.
6627 (frame_id_p): Return bool, use true/false instead of 1/0.
6628 (frame_id_artificial_p): Likewise.
6629 (frame_id_eq): Likewise.
6630 (frame_id_inner): Likewise.
6631 (get_frame_func_if_available): Likewise.
6632 (read_frame_register_unsigned): Likewise.
6633 (deprecated_frame_register_read): Likewise.
6634 (get_frame_register_bytes): Likewise.
6635 (has_stack_frames): Likewise.
6636 (inside_main_func): Likewise.
6637 (inside_entry_func): Likewise.
6638 (get_frame_pc_if_available): Likewise.
6639 (get_frame_address_in_block_if_available): Likewise.
6640 (frame_unwinder_is): Likewise.
6641 (safe_frame_unwind_memory): Likewise.
6642 (frame_unwind_arch): Likewise.
6644 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6646 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6647 type to cached_copy_status.
6648 (fprintf_frame): Adjust.
6649 (get_frame_func_if_available): Adjust.
6650 (frame_cleanup_after_sniffer): Adjust.
6652 2020-08-04 Mark Wielaard <mark@klomp.org>
6654 * MAINTAINERS (Write After Approval): Update email address.
6656 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6658 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6659 dynamic_prop::const_val.
6661 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6663 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6666 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6668 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6670 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6672 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6674 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6675 Jose E. Marchesi <jose.marchesi@oracle.com>
6677 * configure.tgt: Add entry for bpf-*-*.
6678 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6679 (ALLDEPFILES): Add bpf-tdep.c.
6680 * bpf-tdep.c: New file.
6681 * MAINTAINERS: Add bpf target and maintainer.
6682 * NEWS: Mention the support for the new target.
6684 2020-08-04 Tom de Vries <tdevries@suse.de>
6687 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6690 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6692 * syscalls/freebsd.xml: Regenerate.
6694 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6696 * syscalls/update-freebsd.sh: Fix usage and year range.
6698 2020-08-03 Tom de Vries <tdevries@suse.de>
6701 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6702 DW_LNE_lo_user/DW_LNE_hi_user range.
6704 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6707 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6710 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6712 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6714 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6716 * breakpoint.c (set_breakpoint_condition): Update the condition
6717 expressions after checking that the input condition string parses
6718 successfully and does not contain junk at the end.
6720 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6722 * breakpoint.c (set_breakpoint_condition): Update the
6723 condition string after parsing the new condition successfully.
6725 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6727 * proc-api.c (_STRUCTURED_PROC): Don't define.
6728 * proc-events.c: Likewise.
6729 * proc-flags.c: Likewise.
6730 * proc-why.c: Likewise.
6731 * procfs.c: Likewise.
6733 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6734 * configure, config.in: Regenerate.
6736 2020-07-30 Tom de Vries <tdevries@suse.de>
6739 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6740 m_red/m_green/m_blue in a union.
6742 2020-07-29 Tom de Vries <tdevries@suse.de>
6745 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6747 2020-07-28 Tom Tromey <tromey@adacore.com>
6750 * symtab.h (find_pc_partial_function_sym): Declare.
6751 * cli/cli-cmds.c (disassemble_command): Use
6752 find_pc_partial_function_sym. Check asm_demangle.
6753 * blockframe.c (cache_pc_function_sym): New global.
6754 (cache_pc_function_name): Remove.
6755 (clear_pc_function_cache): Update.
6756 (find_pc_partial_function_sym): New function, from
6757 find_pc_partial_function.
6758 (find_pc_partial_function): Rewrite using
6759 find_pc_partial_function_sym.
6761 2020-07-28 Tom Tromey <tromey@adacore.com>
6763 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6766 2020-07-28 Tom Tromey <tromey@adacore.com>
6768 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6769 <DW_OP_GNU_variable_value>: Cast to address type.
6771 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6773 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6774 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6775 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6776 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6777 (nbsd_get_siginfo_type): New.
6778 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6779 (_initialize_nbsd_tdep): New.
6781 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6784 * configure: Regenerated.
6786 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6789 * configure: Regenerated.
6791 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6793 * python/py-frame.c: Remove 'user-regs.h' include.
6794 (frapy_read_register): Rewrite to make use of
6795 gdbpy_parse_register_id.
6796 * python/py-registers.c (gdbpy_parse_register_id): New function,
6797 moved here from python/py-unwind.c. Updated the return type, and
6798 also accepts register descriptor objects.
6799 * python/py-unwind.c: Remove 'user-regs.h' include.
6800 (pyuw_parse_register_id): Moved to python/py-registers.c.
6801 (unwind_infopy_add_saved_register): Update to use
6802 gdbpy_parse_register_id.
6803 (pending_framepy_read_register): Likewise.
6804 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6806 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6808 * python/py-registers.c: Add 'user-regs.h' include.
6809 (register_descriptor_iter_find): New function.
6810 (register_descriptor_iterator_object_methods): New static global
6812 (register_descriptor_iterator_object_type): Add pointer to methods
6815 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6817 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6818 for all architectures on FreeBSD 11.3 and later.
6820 2020-07-27 Tom Tromey <tromey@adacore.com>
6822 * gcore.h (load_corefile): Don't declare.
6824 2020-07-27 Tom de Vries <tdevries@suse.de>
6826 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6827 * config.in: Regenerate.
6828 * configure: Regenerate.
6830 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6832 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6833 ws2tcpip.h. When checking whether socklen_t type is defined, use
6834 ws2tcpip.h if it is available and sys/socket.h isn't.
6835 * configure: Regenerate.
6836 * config.in: Regenerate.
6838 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6842 * valops.c (value_ind): Pass address to
6843 readjust_indirect_value_type.
6844 * value.c (readjust_indirect_value_type): Make parameter
6845 non-const, and add extra address parameter. Resolve original type
6847 * value.h (readjust_indirect_value_type): Update function
6848 signature and comment.
6850 2020-07-25 Tom de Vries <tdevries@suse.de>
6853 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6856 2020-07-24 Aaron Merey <amerey@redhat.com>
6858 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6859 * configure: Rebuild.
6861 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6864 * corelow.c (_initialize_corelow): Add period to help text
6865 for "maintenance print core-file-backed-mappings".
6867 2020-07-23 Pedro Alves <pedro@palves.net>
6869 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6870 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6872 * frame.c (frame_cache_generation, get_frame_cache_generation):
6874 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6875 (get_prev_frame_if_no_cycle): On exception, don't touch
6876 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6877 * frame.h (get_frame_cache_generation): Declare.
6879 2020-07-23 Tom de Vries <tdevries@suse.de>
6882 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6883 New default constructor.
6885 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6887 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6888 exclude non-statement entries.
6890 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6892 * NEWS (New commands): Mention new command
6893 "maintenance print core-file-backed-mappings".
6895 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6897 * corelow.c (gdbcmd.h): Include.
6898 (core_target::info_proc_mappings): New method.
6899 (get_current_core_target): New function.
6900 (maintenance_print_core_file_backed_mappings): New function.
6901 (_initialize_corelow): Add core-file-backed-mappings to
6902 "maint print" commands.
6904 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6906 * linux-tdep.c (dump_note_entry_p): New function.
6907 (linux_dump_mapping_p_ftype): New typedef.
6908 (linux_find_memory_regions_full): Add new parameter,
6909 should_dump_mapping_p.
6910 (linux_find_memory_regions): Adjust call to
6911 linux_find_memory_regions_full.
6912 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6913 call to linux_find_memory_regions_full.
6915 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6917 * corelow.c (solist.h, unordered_map): Include.
6918 (class core_target): Add field m_core_file_mappings and
6919 method build_file_mappings.
6920 (core_target::core_target): Call build_file_mappings.
6921 (core_target::~core_target): Free memory associated with
6922 m_core_file_mappings.
6923 (core_target::build_file_mappings): New method.
6924 (core_target::xfer_partial): Use m_core_file_mappings
6925 for memory transfers.
6926 * linux-tdep.c (linux_read_core_file_mappings): New
6928 (linux_core_info_proc_mappings): Rewrite to use
6929 linux_read_core_file_mappings.
6930 (linux_init_abi): Register linux_read_core_file_mappings.
6932 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6934 * arch-utils.c (default_read_core_file_mappings): New function.
6935 * arch-utils.c (default_read_core_file_mappings): Declare.
6936 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6937 * gdbarch.h, gdbarch.c: Regenerate.
6939 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6942 * corelow.c (core_target:xfer_partial): Revise
6943 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6944 case after first checking the stratum beneath the core
6946 (has_all_memory): Return true.
6947 * target.c (raw_memory_xfer_partial): Revise comment
6948 regarding use of has_all_memory.
6950 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6952 * exec.h (section_table_xfer_memory): Revise declaration,
6953 replacing section name parameter with an optional callback
6955 * exec.c (section_table_xfer_memory): Likewise.
6956 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6957 of section_table_xfer_memory.
6959 2020-07-22 Tom Tromey <tromey@adacore.com>
6961 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6962 lookup_symbol_search_name.
6964 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6966 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6967 redundant local variable.
6968 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6969 reference, not pointer, update code accordingly.
6971 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6972 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6974 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6975 * jit.c (jit_breakpoint_re_set_internal): Use the
6976 `skip_jit_symbol_lookup` field.
6978 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6979 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6981 * jit.c (jit_read_descriptor): Define the descriptor address once,
6983 (jit_breakpoint_deleted): Move the declaration of the loop variable
6984 `iter` into the loop header.
6985 (jit_breakpoint_re_set_internal): Move the declaration of the local
6986 variable `objf_data` to the first point of definition.
6987 (jit_event_handler): Move the declaration of local variables
6988 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6989 Rename `objf` to `jited`.
6991 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6993 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6995 * jit.c (get_jiter_objfile_data): Update.
6997 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6998 Simon Marchi <simon.marchi@polymtl.ca>
7000 * jit.c (struct jit_program_space_data): Remove.
7001 (jit_program_space_key): Remove.
7002 (jiter_objfile_data::~jiter_objfile_data): Remove program space
7004 (get_jit_program_space_data): Remove.
7005 (jit_breakpoint_deleted): Iterate on all of the program space's
7007 (jit_inferior_init): Likewise.
7008 (jit_breakpoint_re_set_internal): Likewise. Also change return
7010 (jit_breakpoint_re_set): Pass current_program_space to
7011 jit_breakpoint_re_set_internal.
7013 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7015 * jit.h (struct jiter_objfile_data) <cached_code_address,
7016 jit_breakpoint>: Move to here from ...
7017 * jit.c (jit_program_space_data): ... here.
7018 (jiter_objfile_data::~jiter_objfile_data): Update.
7019 (jit_breakpoint_deleted): Update.
7020 (jit_breakpoint_re_set_internal): Update.
7022 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7024 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
7026 (jit_read_descriptor): Remove NULL check.
7027 (jit_event_handler): Add an assertion.
7029 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7031 * jit.h (struct jit_objfile_data): Split into...
7032 (struct jiter_objfile_data): ... this ...
7033 (struct jited_objfile_data): ... and this.
7034 * objfiles.h (struct objfile) <jit_data>: Remove.
7035 <jiter_data, jited_data>: New fields.
7036 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
7037 (jiter_objfile_data::~jiter_objfile_data): ... this.
7038 (get_jit_objfile_data): Rename to ...
7039 (get_jiter_objfile_data): ... this.
7040 (add_objfile_entry): Update.
7041 (jit_read_descriptor): Use get_jiter_objfile_data.
7042 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
7043 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
7044 (jit_inferior_exit_hook): Use objfile's jited_data field.
7046 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7048 * jit.h: Forward-declare `struct minimal_symbol`.
7049 (struct jit_objfile_data): Migrate to here from jit.c; also add a
7050 constructor, destructor, and an objfile* field.
7051 * jit.c (jit_objfile_data): Remove.
7052 (struct jit_objfile_data): Migrate from here to jit.h.
7053 (jit_objfile_data::~jit_objfile_data): New destructor
7054 implementation with code moved from free_objfile_data.
7055 (free_objfile_data): Delete.
7056 (get_jit_objfile_data): Update to use the jit_data field of objfile.
7057 (jit_find_objf_with_entry_addr): Ditto.
7058 (jit_inferior_exit_hook): Ditto.
7059 (_initialize_jit): Remove the call to
7060 register_objfile_data_with_cleanup.
7061 * objfiles.h (struct objfile) <jit_data>: New field.
7063 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7065 * jit.h: Forward-declare `struct objfile`.
7066 (jit_event_handler): Add a second parameter, the JITer objfile.
7067 * jit.c (jit_read_descriptor): Change the signature to take the
7068 JITer objfile as an argument instead of the jit_program_space_data.
7069 (jit_inferior_init): Update the call to jit_read_descriptor.
7070 (jit_event_handler): Use the new JITer objfile argument when calling
7071 jit_read_descriptor.
7072 * breakpoint.c (handle_jit_event): Update the call to
7073 jit_event_handler to pass the JITer objfile.
7075 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7077 * gdbarch.c: Regenerate.
7078 * gdbarch.h: Regenerate.
7079 * gdbarch.sh (handle_segmentation_fault): Remove method.
7080 * infrun.c (handle_segmentation_fault): Remove.
7081 (print_signal_received_reason): Remove call to
7082 handle_segmentation_fault.
7084 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7086 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7087 Rename to sparc64_linux_report_signal_info and add siggnal
7089 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
7090 instead of sparc64_linux_handle_segmentation_fault.
7092 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7094 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
7095 i386_linux_report_signal_info instead of
7096 i386_linux_handle_segmentation_fault.
7097 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
7098 to i386_linux_report_signal_info and add siggnal argument.
7099 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
7100 of i386_linux_handle_segmentation_fault.
7101 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
7102 to i386_linux_report_signal_info and add siggnal argument.
7104 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7106 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7109 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7111 * gdbarch.c: Regenerate.
7112 * gdbarch.h: Regenerate.
7113 * gdbarch.sh (report_signal_info): New method.
7114 * infrun.c (print_signal_received_reason): Invoke gdbarch
7115 report_signal_info hook if present.
7117 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7119 * python/py-registers.c : Add 'unordered_map' include.
7120 (gdbpy_new_reggroup): Renamed to...
7121 (gdbpy_get_reggroup): ...this. Update to only create register
7122 group descriptors when needed.
7123 (gdbpy_reggroup_iter_next): Update.
7125 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7127 * python/py-registers.c (gdbpy_register_object_data): New static
7129 (gdbpy_register_object_data_init): New function.
7130 (gdbpy_new_register_descriptor): Renamed to...
7131 (gdbpy_get_register_descriptor): ...this, and update to reuse
7132 existing register descriptors where possible.
7133 (gdbpy_register_descriptor_iter_next): Update.
7134 (gdbpy_initialize_registers): Register new gdbarch data.
7136 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
7138 * linux-nat.c (stopped_pids): Make static.
7140 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7143 * gdbtypes.c (ada_discrete_type_low_bound,
7144 ada_discrete_type_high_bound): Handle undefined bounds.
7146 2020-07-21 Kamil Rytarowski <n54@gmx.com>
7148 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7150 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7153 2020-07-20 John Baldwin <jhb@FreeBSD.org>
7155 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7156 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7157 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7158 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7159 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7162 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7164 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7165 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7166 which are deprecated in Guile 3.0.
7167 * configure.ac (try_guile_versions): Add "guile-3.0".
7168 * configure (try_guile_versions): Regenerate.
7169 * NEWS: Update entry.
7171 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7172 Doug Evans <dje@google.com>
7175 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7176 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7177 USING_GUILE_BEFORE_2_2.
7178 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7179 Change type to 'scm_t_port_type *'.
7180 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7181 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7182 parameter and honor it. Update callers.
7183 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7184 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7186 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7187 USING_GUILE_BEFORE_2_2.
7188 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7189 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7190 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7191 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7192 and 'SCM_PORT_TYPE'.
7193 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7194 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7195 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7196 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7197 [!USING_GUILE_BEFORE_2_2]: New functions.
7198 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7199 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7200 'gdbscm_memory_port_read'.
7201 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7202 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7203 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7205 (ioscm_init_memory_port): Remove.
7206 (ioscm_init_memory_port_stream): New function
7207 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7209 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7210 Return scm_from_uint (0).
7211 (gdbscm_set_memory_port_read_buffer_size_x)
7212 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7213 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7214 Return scm_from_uint (0).
7215 (gdbscm_set_memory_port_write_buffer_size_x)
7216 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7217 * configure.ac (try_guile_versions): Add "guile-2.2".
7218 * configure: Regenerate.
7221 2020-07-18 Tom Tromey <tom@tromey.com>
7223 * linux-nat.c (linux_multi_process): Remove.
7224 (linux_nat_target::supports_multi_process): Return true.
7226 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7228 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7229 (riscv_lookup_target_description): Return pointer out of
7231 * target-descriptions.c (allocate_target_description): Add
7233 (target_desc_deleter::operator()): Likewise.
7234 * target-descriptions.h (struct target_desc_deleter): Moved to
7236 (target_desc_up): Likewise.
7238 2020-07-17 Tom Tromey <tromey@adacore.com>
7240 * linux-nat.c (linux_nat_target::supports_non_stop)
7241 (linux_nat_target::always_non_stop_p): Use "true".
7242 (linux_nat_target::supports_disable_randomization): Use "true" and
7245 2020-07-16 Caroline Tice <cmtice@google.com>
7247 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7248 (RNGLIST_HEADER_SIZE64): New constant definition.
7249 (struct dwop_section_names): Add rnglists_dwo.
7250 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7251 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7252 (struct dwo_sections): Add rnglists field.
7253 (read_attribut_reprocess): Add tag parameter.
7254 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7255 (cu_debug_rnglists_section): New function (decl & definition).
7256 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7257 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7258 die whose range is being checked; get rnglist section from
7259 cu_debug_rnglists_section, to get from either objfile or dwo file as
7260 appropriate. Add cases for DW_RLE_base_addressx,
7261 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7262 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7263 test inside if-condition and updating complaint message.
7264 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7265 dwarf2_rnglists_process.
7266 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7267 dwarf2_ranges_process.
7268 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7269 need_ranges_base and update comment appropriately. Also pass die tag
7270 to dwarf2_ranges_read.
7271 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7272 need_ranges_base and update comment appropriately. Also pass die tag
7273 to dwarf2_ranges_process.
7274 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7275 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7276 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7277 need_ranges_base and update comment appropriately. Also pass die tag
7278 to read_attribute_reprocess and dwarf2_ranges_read.
7279 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7280 and update function comment appropriately.
7281 (read_loclist_index): Call read_loclists_rnglists_header instead of
7282 read_loclist_header.
7283 (read_rnglist_index): New function.
7284 (read_attribute_reprocess): Add tag parameter. Add code for
7285 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7286 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7288 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7290 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7293 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7295 * arch-utils.c (show_architecture): Update formatting of messages.
7297 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7299 * gdbtypes.h (struct type) <bounds>: Handle array and string
7301 * ada-lang.c (assign_aggregate): Use type::bounds on
7303 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7304 * c-varobj.c (c_number_of_children): Likewise.
7305 (c_describe_child): Likewise.
7306 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7307 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7308 (f_type_print_base): Likewise.
7309 * f-valprint.c (f77_array_offset_tbl): Likewise.
7310 (f77_get_upperbound): Likewise.
7311 (f77_print_array_1): Likewise.
7312 * guile/scm-type.c (gdbscm_type_range): Likewise.
7313 * m2-typeprint.c (m2_array): Likewise.
7314 (m2_is_long_set_of_type): Likewise.
7315 * m2-valprint.c (get_long_set_bounds): Likewise.
7316 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7317 * python/py-type.c (typy_range): Likewise.
7318 * rust-lang.c (rust_internal_print_type): Likewise.
7319 * type-stack.c (type_stack::follow_types): Likewise.
7320 * valarith.c (value_subscripted_rvalue): Likewise.
7321 * valops.c (value_cast): Likewise.
7323 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7325 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7326 callers to use the equivalent accessor methods.
7328 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7330 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7331 (struct type) <bit_stride>: New method.
7332 (TYPE_BIT_STRIDE): Remove.
7333 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7335 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7337 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7338 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7339 callers to use the equivalent accessor methods instead.
7341 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7343 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7344 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7345 callers to use the equivalent accessor methods instead.
7347 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7349 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7350 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7351 to use dynamic_prop::kind.
7353 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7355 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7356 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7357 to get the bound property's kind and check against
7360 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7362 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7363 all callers to use type::range_bounds followed by
7364 dynamic_prop::{low,high}.
7366 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7368 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7369 const_val, set_const_val, baton, set_locexpr, set_loclist,
7370 set_addr_offset, variant_parts, set_variant_parts,
7371 original_type, set_original_type>: New methods.
7372 <kind>: Rename to...
7373 <m_kind>: ... this. Update all users to use the new methods
7375 <data>: Rename to...
7376 <m_data>: ... this. Update all users to use the new methods
7379 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7381 * gdbtypes.c (get_discrete_bounds): Return failure if
7382 the range type's bounds are not both defined and constant
7384 (get_array_bounds): Update comment. Remove undefined bound check.
7386 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7388 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7389 the type::bounds method directly.
7391 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7393 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7394 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7395 are used to set the range type's bounds to use set_bounds.
7397 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7399 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7401 2020-07-10 Pedro Alves <pedro@palves.net>
7403 * gdbthread.h (inferior_ref): Define.
7404 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7405 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7407 (scoped_restore_current_thread::restore):
7408 Adjust to gdb::ref_ptr.
7409 (scoped_restore_current_thread::~scoped_restore_current_thread):
7410 Remove manual decref handling.
7411 (scoped_restore_current_thread::scoped_restore_current_thread):
7413 inferior_ref::new_reference/thread_info_ref::new_reference.
7414 Incref the thread before calling get_frame_id instead of after.
7415 Let TARGET_CLOSE_ERROR propagate.
7417 2020-07-10 Pedro Alves <pedro@palves.net>
7419 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7420 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7421 NOT_AVAILABLE_ERROR.
7422 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7423 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7425 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7426 Pedro Alves <pedro@palves.net>
7429 * infrun.c (threads_are_resumed_pending_p): Delete.
7430 (do_target_wait): Remove threads_are_executing and
7431 threads_are_resumed_pending_p checks from the inferior_matches
7432 lambda. Update comments.
7434 2020-07-10 Pedro Alves <pedro@palves.net>
7437 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7440 2020-07-10 Pedro Alves <pedro@palves.net>
7443 * infrun.c (handle_no_resumed): Handle multiple targets.
7445 2020-07-10 Pedro Alves <pedro@palves.net>
7448 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7451 2020-07-10 Pedro Alves <pedro@palves.net>
7454 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7455 threads, not all threads.
7457 2020-07-10 Pedro Alves <pedro@palves.net>
7460 * remote.c (remote_target::open_1): Pass remote target pointer as
7461 data to create_async_event_handler.
7462 (remote_async_inferior_event_handler): Mark async event handler
7463 before returning if the remote target still has either pending
7464 events or unacknowledged notifications.
7466 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7468 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7470 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7473 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7475 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7478 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7480 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7481 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7482 AT_FREEBSD_PS_STRINGS.
7484 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7486 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7487 of debugfile path on Windows.
7489 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7491 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7494 2020-07-08 Tom Tromey <tromey@adacore.com>
7496 * ada-lang.c (ada_exception_message_1): Use read_memory.
7498 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7501 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7502 special handling for inline frames.
7503 * findvar.c (value_of_register_lazy): Skip inline frames when
7504 creating lazy register values.
7505 * frame.c (frame_id_computed_p): Delete definition.
7506 * frame.h (frame_id_computed_p): Delete declaration.
7508 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7510 * NEWS: Mention additions to Python API.
7511 * python/py-arch.c (archpy_register_groups): New function.
7512 (arch_object_methods): Add 'register_groups' method.
7513 * python/py-registers.c (reggroup_iterator_object): New struct.
7514 (reggroup_object): New struct.
7515 (gdbpy_new_reggroup): New function.
7516 (gdbpy_reggroup_to_string): New function.
7517 (gdbpy_reggroup_name): New function.
7518 (gdbpy_reggroup_iter): New function.
7519 (gdbpy_reggroup_iter_next): New function.
7520 (gdbpy_new_reggroup_iterator): New function
7521 (gdbpy_initialize_registers): Register new types.
7522 (reggroup_iterator_object_type): Define new Python type.
7523 (gdbpy_reggroup_getset): New static global.
7524 (reggroup_object_type): Define new Python type.
7525 * python/python-internal.h
7527 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7529 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7530 * python/py-arch.c (archpy_registers): New function.
7531 (arch_object_methods): Add 'registers' method.
7532 * python/py-registers.c: New file.
7533 * python/python-internal.h
7534 (gdbpy_new_register_descriptor_iterator): Declare.
7535 (gdbpy_initialize_registers): Declare.
7536 * python/python.c (do_start_initialization): Call
7537 gdbpy_initialize_registers.
7538 * NEWS: Mention additions to the Python API.
7540 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7542 * NEWS: Mention new Python API method.
7543 * python/py-unwind.c (pending_framepy_architecture): New function.
7544 (pending_frame_object_methods): Add architecture method.
7546 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7548 * gdbarch.c: Regenerate.
7549 * gdbarch.h: Regenerate.
7550 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7551 (gdbarch_data): Use internal_error for the case where
7552 deprecated_set_gdbarch_data was originally needed.
7553 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7554 and use passed in obstack.
7555 (libunwind_frame_set_descr): Should no longer get back NULL from
7557 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7559 * user-regs.c (user_regs_init): Update parameters, and use passed
7561 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7562 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7564 2020-07-06 Tom de Vries <tdevries@suse.de>
7566 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7567 End-Of-Sequence in lte_is_less_than.
7568 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7569 "gdb: Don't reorder line table entries too much when sorting".
7571 2020-07-06 Tom de Vries <tdevries@suse.de>
7574 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7576 2020-07-05 Tom de Vries <tdevries@suse.de>
7579 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7580 std::uncaught_exceptions instead of deprecated
7581 std::uncaught_exception.
7583 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7585 * macroexp.h (macro_stringify): Return
7586 gdb::unique_xmalloc_ptr<char>.
7587 * macroexp.c (macro_stringify): Likewise.
7588 * macrotab.c (fixup_definition): Update.
7590 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7592 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7593 (lex_one_token): Update.
7594 * macroexp.c (struct macro_buffer) <release>: Return
7595 gdb::unique_xmalloc_ptr<char>.
7596 (macro_stringify): Update.
7597 (macro_expand): Update.
7598 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7599 * macroexp.h (macro_expand_next): Likewise.
7601 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7603 * macroexp.h (macro_lookup_ftype): Remove.
7604 (macro_expand, macro_expand_once, macro_expand_next): Remove
7605 lookup function parameters, add scope parameter.
7606 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7607 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7608 * macroscope.h (standard_macro_lookup): Change parameter type
7610 * macroscope.c (standard_macro_lookup): Likewise.
7611 * c-exp.y (lex_one_token): Update.
7612 * macrocmd.c (macro_expand_command): Likewise.
7613 (macro_expand_once_command): Likewise.
7615 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7617 * inf-loop.c (inferior_event_handler): Remove client_data param.
7618 * inf-loop.h (inferior_event_handler): Likewise.
7619 * infcmd.c (step_1): Adjust.
7620 * infrun.c (proceed): Adjust.
7621 (fetch_inferior_event): Remove client_data param.
7622 (infrun_async_inferior_event_handler): Adjust.
7623 * infrun.h (fetch_inferior_event): Remove `void *` param.
7624 * linux-nat.c (handle_target_event): Adjust.
7625 * record-btrace.c (record_btrace_handle_async_inferior_event):
7627 * record-full.c (record_full_async_inferior_event_handler):
7629 * remote.c (remote_async_inferior_event_handler): Adjust.
7631 2020-07-01 Tom Tromey <tom@tromey.com>
7633 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7634 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7636 2020-07-01 Tom Tromey <tom@tromey.com>
7638 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7640 (tui_win_info::make_window): Merge with
7641 tui_gen_win_info::make_window.
7642 (tui_win_info::make_visible): Move from tui_gen_win_info.
7643 * tui/tui-win.c (tui_win_info::max_width): Move from
7645 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7647 <window_factory>: Likewise.
7648 * tui/tui-layout.c (tui_win_info::resize): Move from
7650 (make_standard_window): Change return type.
7651 (get_locator_window, tui_get_window_by_name): Likewise.
7652 (tui_layout_window::apply): Remove a cast.
7653 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7654 (struct tui_win_info): Merge with tui_gen_win_info.
7655 (struct tui_gen_win_info): Remove.
7657 2020-07-01 Tom Tromey <tom@tromey.com>
7659 * tui/tui-stack.h (struct tui_locator_window): Derive from
7661 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7662 <can_box>: New method.
7664 2020-07-01 Tom Tromey <tom@tromey.com>
7666 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7668 2020-07-01 Tom Tromey <tom@tromey.com>
7670 * tui/tui-regs.c (tui_data_window::display_registers_from)
7671 (tui_data_window::display_registers_from)
7672 (tui_data_window::first_data_item_displayed)
7673 (tui_data_window::delete_data_content_windows): Update.
7674 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7676 (tui_data_window::check_register_values): Update.
7677 (tui_data_item_window::rerender): Add parameters. Update.
7678 (tui_data_item_window::refresh_window): Remove.
7679 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7681 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7683 <refresh_window, max_height, min_height>: Remove.
7684 <rerender>: Add parameters.
7685 <x, y, visible>: New members.
7686 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7687 <m_item_width>: New member.
7689 2020-07-01 Tom Tromey <tom@tromey.com>
7691 * tui/tui-regs.c (tui_data_window::show_register_group)
7692 (tui_data_window::check_register_values): Update.
7693 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7696 2020-07-01 Tom Tromey <tom@tromey.com>
7698 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7701 2020-07-01 Tom Tromey <tom@tromey.com>
7703 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7704 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7706 2020-07-01 Tom Tromey <tom@tromey.com>
7708 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7709 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7710 (struct tui_line_or_address): Move from tui-data.h.
7711 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7712 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7713 (tui_cmd_window, tui_source_window_base, tui_source_window)
7714 (tui_disasm_window): Don't declare.
7715 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7717 (SINGLE_KEY): Move to tui-stack.c.
7719 2020-07-01 Tom Tromey <tom@tromey.com>
7721 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7723 * tui/tui-regs.c (class tab_expansion_file): New.
7724 (tab_expansion_file::write): New method.
7725 (tui_register_format): Change return type. Use
7727 (tui_get_register, tui_data_window::display_registers_from)
7728 (tui_data_item_window::rerender): Update.
7729 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7730 * tui/tui-io.c (tui_expand_tabs): Remove.
7732 2020-07-01 Tom Tromey <tom@tromey.com>
7734 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7736 2020-07-01 Fangrui Song <maskray@google.com>
7738 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7740 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7742 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7743 forms for DW_AT_associated and DW_AT_allocated attributes,
7744 which is already checked in function attr_to_dynamic_prop.
7746 2020-06-30 Tom Tromey <tromey@adacore.com>
7748 * dwarf2/read.c (quirk_rust_enum): Correctly call
7749 alloc_rust_variant for default-less enum.
7751 2020-06-30 Tom Tromey <tromey@adacore.com>
7754 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7757 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7759 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7760 * gdbarch.h: Re-generate.
7762 2020-06-28 Tom Tromey <tom@tromey.com>
7764 * command.h (cmd_types): Remove.
7765 (cmd_type): Don't declare.
7766 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7768 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7769 * cli/cli-decode.c (cmd_type): Remove.
7771 2020-06-27 Pedro Alves <palves@redhat.com>
7773 * fork-child.c (prefork_hook): Adjust.
7774 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7776 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7777 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7778 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7779 Remove declarations.
7780 (struct inferior) <set_tty, tty>: New methods.
7781 (struct inferior) <terminal>: Rename to ...
7782 (struct inferior) <m_terminal>: ... this and make private.
7783 * main.c (captured_main_1): Adjust.
7784 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7785 (mi_cmd_inferior_tty_show): Adjust.
7786 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7787 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7789 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7791 * configure.ac: Add --enable-libctf: handle --disable-static
7793 * acinclude.m4: sinclude ../config/enable.m4.
7794 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7795 (LIBCTF): Substitute in.
7796 (CTF_DEPS): New, likewise.
7797 (CLIBS): libctf needs symbols from libbfd: move earlier.
7798 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7800 * ctfread.c: Surround in ENABLE_LIBCTF.
7801 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7802 * configure: Regenerate.
7803 * config.in: Likewise.
7805 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7807 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7809 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7811 * inferior.h (struct inferior) <terminal>: Change type to
7812 gdb::unique_xmalloc_ptr<char>.
7813 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7814 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7815 field, adjust to unique pointer.
7816 (get_inferior_io_terminal): Adjust to unique pointer.
7818 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7820 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7821 registers, not just the known core set of registers.
7823 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7825 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7826 fflags, frm, and fcsr registers.
7827 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7829 (riscv_tdesc_unknown_reg): New function.
7830 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7831 tdesc_use_registers.
7832 * riscv-tdep.h (struct gdbarch_tdep): Add
7833 unknown_csrs_first_regnum, unknown_csrs_count,
7834 duplicate_fflags_regnum, duplicate_frm_regnum, and
7835 duplicate_fcsr_regnum fields.
7837 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7839 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7840 callback, use the callback (when not null) to help number unknown
7842 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7843 (tdesc_use_registers): Add extra parameter to declaration.
7845 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7847 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7849 (class riscv_pending_register_alias): Likewise.
7850 (riscv_register_feature::register_info): Change 'required_p' field
7851 to 'required', and change its type. Add 'check' member function.
7852 (riscv_register_feature::register_info::check): Define new member
7854 (riscv_xreg_feature): Change initialisation of 'required' field.
7855 (riscv_freg_feature): Likewise.
7856 (riscv_virtual_feature): Likewise.
7857 (riscv_csr_feature): Likewise.
7858 (riscv_check_tdesc_feature): Take extra parameter, the csr
7859 tdesc_feature, rewrite the function to use the new
7860 riscv_register_feature::register_info::check function.
7861 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7863 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7865 * features/Makefile: Remove all references to the deleted files
7867 * features/riscv/32bit-csr.c: Deleted.
7868 * features/riscv/32bit-csr.xml: Deleted.
7869 * features/riscv/64bit-csr.c: Deleted.
7870 * features/riscv/64bit-csr.xml: Deleted.
7871 * features/riscv/rebuild-csr-xml.sh: Deleted.
7873 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7875 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7876 whitespace error for declaration of names member variable.
7877 (struct riscv_register_feature): Add new prefer_first_name member
7878 variable, and fix whitespace error in declaration of registers.
7879 (riscv_xreg_feature): Initialize prefer_first_name field.
7880 (riscv_freg_feature): Likewise.
7881 (riscv_virtual_feature): Likewise.
7882 (riscv_csr_feature): Likewise.
7883 (riscv_register_name): Expand on comments. Remove register name
7884 modifications for CSR and virtual registers.
7886 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7888 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7891 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7893 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7895 (class riscv_pending_register_alias): New class.
7896 (riscv_check_tdesc_feature): Take vector of pending aliases and
7897 populate it as appropriate.
7898 (riscv_setup_register_aliases): Delete.
7899 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7900 to riscv_check_tdesc_feature in all cases. Use the vector to
7901 create the register aliases.
7903 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7905 * sol2-tdep.c (sol2_static_transform_name): Remove.
7906 (sol2_init_abi): Don't register it.
7907 * gdbarch.sh (static_transform_name): Remove.
7908 * gdbarch.c, gdbarch.h: Regenerate.
7910 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7911 gdbarch_static_transform_name.
7912 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7913 * stabsread.c (define_symbol) <'X'>: Remove.
7914 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7917 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7918 <'S'>: Remove call to gdbarch_static_transform_name.
7920 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7922 * procfs.c (procfs_pre_trace): New function.
7923 (procfs_target::create_inferior): Pass it to fork_inferior.
7925 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7927 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7928 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7929 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7930 sol2-tdep.o, sparc-sol2-tdep.o.
7931 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7932 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7933 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7934 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7936 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7938 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7939 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7941 Remove calls to set_gdbarch_skip_solib_resolver,
7942 set_gdbarch_core_pid_to_str.
7943 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7944 (i386_sol2_static_transform_name): Remove.
7945 (i386_sol2_init_abi): Call sol2_init_abi.
7946 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7947 set_gdbarch_static_transform_name,
7948 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7949 Use sol2_sigtramp_p.
7950 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7951 (sol2_sigtramp_p): New function.
7952 (sol2_static_transform_name): New function.
7953 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7954 (sol2_init_abi): New function.
7955 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7956 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7957 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7958 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7959 (sparc_sol2_static_transform_name): Remove.
7960 (sparc32_sol2_init_abi): Call sol2_init_abi.
7961 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7962 set_gdbarch_static_transform_name,
7963 set_gdbarch_skip_solib_resolver,
7964 set_gdbarch_core_pid_to_str.
7965 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7966 (sparc_sol2_static_transform_name): Remove
7967 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7968 call sol2_sigtramp_p.
7969 (sparc64_sol2_init_abi): Call sol2_init_abi.
7970 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7971 set_gdbarch_static_transform_name,
7972 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7974 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7976 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7977 * exec.c (validate_exec_file): If from_tty, set both
7978 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7979 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7980 and from_tty, unconditionally ask a confirmation.
7982 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7984 * target-descriptions.c (tdesc_architecture_name): Protect against
7985 NULL pointer dereference.
7986 (maint_print_xml_tdesc_cmd): New function.
7987 (_initialize_target_descriptions): Register new 'maint print
7988 xml-tdesc' command and give it the filename completer.
7989 * NEWS: Mention new 'maint print xml-tdesc' command.
7991 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7993 * target-descriptions.c (class tdesc_compatible_info): New class.
7994 (struct target_desc): Change type of compatible vector.
7995 (tdesc_compatible_p): Update for change in type of
7996 target_desc::compatible.
7997 (tdesc_compatible_info_list): New function.
7998 (tdesc_compatible_info_arch_name): New function.
7999 (tdesc_add_compatible): Update for change in type of
8000 target_desc::compatible.
8001 (print_c_tdesc::visit_pre): Likewise.
8003 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8005 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
8006 whitespace to underscore.
8007 (maint_print_c_tdesc_cmd): Use fake filename for target
8008 descriptions that came from the target.
8009 (_initialize_target_descriptions): Add filename command completion
8010 for 'maint print c-tdesc'.
8012 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
8014 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
8017 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
8019 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
8021 (dwarf2_find_location_expression): Likewise.
8022 (call_site_parameter_matches): Likewise.
8023 (dwarf2_compile_expr_to_ax): Likewise.
8024 (disassemble_dwarf_expression): Likewise.
8025 (loclist_describe_location): Likewise.
8027 2020-06-23 Pedro Alves <palves@redhat.com>
8029 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
8030 progspace-and-thread.h. Include scoped-mock-context.h instead.
8031 (register_to_value_test): Use scoped_mock_context.
8032 * regcache.c: Include "scoped-mock-context.h".
8033 (cooked_read_test): Don't error out if a target is already pushed.
8034 Use scoped_mock_context. Adjust.
8035 * scoped-mock-context.h: New file.
8037 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8039 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
8041 (ada_language::is_string_type_p): New member function.
8042 * c-lang.c (c_language_data): Delete la_is_string_type_p
8044 (cplus_language_data): Likewise.
8045 (asm_language_data): Likewise.
8046 (minimal_language_data): Likewise.
8047 * d-lang.c (d_language_data): Likewise.
8048 * f-lang.c (f_is_string_type_p): Delete function, implementation
8049 moved to f_language::is_string_type_p.
8050 (f_language_data): Delete la_is_string_type_p initializer.
8051 (f_language::is_string_type_p): New member function,
8052 implementation from f_is_string_type_p.
8053 * go-lang.c (go_is_string_type_p): Delete function, implementation
8054 moved to go_language::is_string_type_p.
8055 (go_language_data): Delete la_is_string_type_p initializer.
8056 (go_language::is_string_type_p): New member function,
8057 implementation from go_is_string_type_p.
8058 * language.c (language_defn::is_string_type_p): Define new member
8060 (default_is_string_type_p): Make static, add comment copied from
8062 (unknown_language_data): Delete la_is_string_type_p initializer.
8063 (unknown_language::is_string_type_p): New member function.
8064 (auto_language_data): Delete la_is_string_type_p initializer.
8065 (auto_language::is_string_type_p): New member function.
8066 * language.h (language_data): Delete la_is_string_type_p field.
8067 (language_defn::is_string_type_p): Declare new function.
8068 (default_is_string_type_p): Delete desclaration, move comment to
8070 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
8071 moved to m2_language::is_string_type_p.
8072 (m2_language_data): Delete la_is_string_type_p initializer.
8073 (m2_language::is_string_type_p): New member function,
8074 implementation from m2_is_string_type_p.
8075 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
8077 * opencl-lang.c (opencl_language_data): Likewise.
8078 * p-lang.c (pascal_is_string_type_p): Delete function,
8079 implementation moved to pascal_language::is_string_type_p.
8080 (pascal_language_data): Delete la_is_string_type_p initializer.
8081 (pascal_language::is_string_type_p): New member function,
8082 implementation from pascal_is_string_type_p.
8083 * rust-lang.c (rust_is_string_type_p): Delete function,
8084 implementation moved to rust_language::is_string_type_p.
8085 (rust_language_data): Delete la_is_string_type_p initializer.
8086 (rust_language::is_string_type_p): New member function,
8087 implementation from rust_is_string_type_p.
8088 * valprint.c (val_print_scalar_or_string_type_p): Update call to
8091 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8093 * ada-lang.c (ada_language_data): Delete la_print_typedef
8095 (ada_language::print_typedef): New member function.
8096 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
8097 (cplus_language_data): Likewise.
8098 (asm_language_data): Likewise.
8099 (minimal_language_data): Likewise.
8100 * d-lang.c (d_language_data): Likewise.
8101 * f-lang.c (f_language_data): Likewise.
8102 (f_language::print_typedef): New member function.
8103 * go-lang.c (go_language_data): Delete la_print_typedef
8105 * language.c (language_defn::print_typedef): Define member
8107 (unknown_language_data): Delete la_print_typedef initializer.
8108 (unknown_language::print_typedef): New member function.
8109 (auto_language_data): Delete la_print_typedef initializer.
8110 (auto_language::print_typedef): New member function.
8111 * language.h (language_data): Delete la_print_typedef field.
8112 (language_defn::print_typedef): Declare new member function.
8113 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8114 (default_print_typedef): Delete declaration.
8115 * m2-lang.c (m2_language_data): Delete la_print_typedef
8117 (m2_language::print_typedef): New member function.
8118 * objc-lang.c (objc_language_data): Delete la_print_typedef
8120 * opencl-lang.c (opencl_language_data): Likewise.
8121 * p-lang.c (pascal_language_data): Likewise.
8122 (pascal_language::print_typedef): New member function.
8123 * rust-lang.c (rust_print_typedef): Delete function,
8124 implementation moved to rust_language::print_typedef.
8125 (rust_language): Delete la_print_typedef initializer.
8126 (rust_language::print_typedef): New member function,
8127 implementation from rust_print_typedef.
8128 * typeprint.c (default_print_typedef): Delete.
8130 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8132 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8133 (ada_language::printstr): New member function.
8134 * c-lang.c (c_language_data): Delete la_printstr initializer.
8135 (cplus_language_data): Likewise.
8136 (asm_language_data): Likewise.
8137 (minimal_language_data): Likewise.
8138 * d-lang.c (d_language_data): Likewise.
8139 * f-lang.c (f_printstr): Rename to f_language::printstr.
8140 (f_language_data): Delete la_printstr initializer.
8141 (f_language::printstr): New member function, implementation from
8143 * go-lang.c (go_language_data): Delete la_printstr initializer.
8144 * language.c (language_defn::printstr): Define new member
8146 (unk_lang_printstr): Delete.
8147 (unknown_language_data): Delete la_printstr initializer.
8148 (unknown_language::printstr): New member function.
8149 (auto_language_data): Delete la_printstr initializer.
8150 (auto_language::printstr): New member function.
8151 * language.h (language_data): Delete la_printstr field.
8152 (language_defn::printstr): Declare new member function.
8153 (LA_PRINT_STRING): Update call to printstr.
8154 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8155 (m2_language_data): Delete la_printstr initializer.
8156 (m2_language::printstr): New member function, implementation from
8158 * objc-lang.c (objc_language_data): Delete la_printstr
8160 * opencl-lang.c (opencl_language_data): Likewise.
8161 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8162 (pascal_language_data): Delete la_printstr initializer.
8163 (pascal_language::printstr): New member function, implementation
8164 from pascal_printstr.
8165 * p-lang.h (pascal_printstr): Delete declaration.
8166 * rust-lang.c (rust_printstr): Update header comment.
8167 (rust_language_data): Delete la_printstr initializer.
8168 (rust_language::printstr): New member function.
8170 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8172 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8173 (ada_language::printchar): New member function.
8174 * c-lang.c (c_language_data): Delete la_printchar initializer.
8175 (cplus_language_data): Likewise.
8176 (asm_language_data): Likewise.
8177 (minimal_language_data): Likewise.
8178 * d-lang.c (d_language_data): Likewise.
8179 * f-lang.c (f_printchar): Rename to f_language::printchar.
8180 (f_language_data): Delete la_printchar initializer.
8181 (f_language::printchar): New member function, implementation from
8183 * go-lang.c (go_language_data): Delete la_printchar initializer.
8184 * language.c (unk_lang_printchar): Delete.
8185 (language_defn::printchar): Define new member function.
8186 (unknown_language_data): Delete la_printchar initializer.
8187 (unknown_language::printchar): New member function.
8188 (auto_language_data): Delete la_printchar initializer.
8189 (auto_language::printchar): New member function.
8190 * language.h (language_data): Delete la_printchar field.
8191 (language_defn::printchar): Declare new member function.
8192 (LA_PRINT_CHAR): Update call to printchar.
8193 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8194 (m2_language::printchar): New member function.
8195 * objc-lang.c (objc_language_data): Delete la_printchar
8197 * opencl-lang.c (opencl_language_data): Likewise.
8198 * p-lang.c (pascal_language_data): Delete la_printchar
8200 (pascal_language::printchar): New member function.
8201 * rust-lang.c (rust_printchar): Rename to
8202 rust_language::printchar.
8203 (rust_language_data): Delete la_printchar initializer.
8204 (rust_language::printchar): New member function, implementation
8205 from rust_printchar.
8207 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8209 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8210 (ada_language_data): Delete la_emitchar initializer.
8211 (ada_language::emitchar): New member function, implementation from
8213 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8214 (cplus_language_data): Likewise.
8215 (asm_language_data): Likewise.
8216 (minimal_language_data): Likewise.
8217 * d-lang.c (d_language_data): Likewise.
8218 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8219 (f_language_data): Delete la_emitchar initializer.
8220 (f_language::emitchar): New member function, implementation from
8222 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8223 * language.c (unk_lang_emit_char): Delete.
8224 (language_defn::emitchar): New member function definition.
8225 (unknown_language_data): Delete la_emitchar initializer.
8226 (unknown_language::emitchar): New member function.
8227 (auto_language_data): Delete la_emitchar initializer.
8228 (auto_language::emitchar): New member function.
8229 * language.h (language_data): Delete la_emitchar field.
8230 (language_defn::emitchar): New member field declaration.
8231 (LA_EMIT_CHAR): Update call to emitchar.
8232 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8233 (m2_language_data): Delete la_emitchar initializer.
8234 (m2_language::emitchar): New member function, implementation from
8236 * objc-lang.c (objc_language_data): Delete la_emitchar
8238 * opencl-lang.c (opencl_language_data): Likewise.
8239 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8240 (pascal_language_data): Delete la_emitchar initializer.
8241 (pascal_language::emitchar): New member function, implementation
8242 from pascal_emit_char.
8243 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8244 (rust_language_data): Delete la_emitchar initializer.
8245 (rust_language::emitchar): New member function, implementation
8248 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8250 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8251 (ada_language_data): Delete la_post_parser initializer.
8252 (ada_language::post_parser): New member function.
8253 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8254 (cplus_language_data): Likewise.
8255 (asm_language_data): Likewise.
8256 (minimal_language_data): Likewise.
8257 * d-lang.c (d_language_data): Likewise.
8258 * f-lang.c (f_language_data): Likewise.
8259 * go-lang.c (go_language_data): Likewise.
8260 * language.c (unknown_language_data): Likewise.
8261 (auto_language_data): Likewise.
8262 * language.h (language_data): Delete la_post_parser field.
8263 (language_defn::post_parser): New member function.
8264 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8265 * objc-lang.c (objc_language_data): Likewise.
8266 * opencl-lang.c (opencl_language_data): Likewise.
8267 * p-lang.c (pascal_language_data): Likewise.
8268 * parse.c (parse_exp_in_context): Update call to post_parser.
8269 (null_post_parser): Delete definition.
8270 * parser-defs.h (null_post_parser): Delete declaration.
8271 * rust-lang.c (rust_language_data): Delete la_post_parser
8274 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8276 * ada-lang.c (parse): Rename to ada_language::parser.
8277 (ada_language_data): Delete la_parser initializer.
8278 (ada_language::parser): New member function, implementation from
8280 * c-lang.c (c_language_data): Delete la_parser initializer.
8281 (cplus_language_data): Likewise.
8282 (asm_language_data): Likewise.
8283 (minimal_language_data): Likewise.
8284 * d-lang.c (d_language_data): Likewise.
8285 (d_language::parser): New member function.
8286 * f-lang.c (f_language_data): Delete la_parser initializer.
8287 (f_language::parser): New member function.
8288 * go-lang.c (go_language_data): Delete la_parser initializer.
8289 (go_language::parser): New member function.
8290 * language.c (unk_lang_parser): Delete.
8291 (language_defn::parser): Define new member function.
8292 (unknown_language_data): Delete la_parser initializer.
8293 (unknown_language::parser): New member function.
8294 (auto_language_data): Delete la_parser initializer.
8295 (auto_language::parser): New member function.
8296 * language.h (language_data): Delete la_parser field.
8297 (language_defn::parser): Declare new member function.
8298 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8299 (m2_language::parser): New member function.
8300 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8301 * opencl-lang.c (opencl_language_data): Likewise.
8302 * p-lang.c (pascal_language_data): Likewise.
8303 (pascal_language::parser): New member function.
8304 * parse.c (parse_exp_in_context): Update call to parser.
8305 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8306 (rust_language::parser): New member function.
8308 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8310 * top.c (print_gdb_configuration): Print --with-python-libdir
8311 configuration value.
8313 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8315 * NEWS: Mention change to the alias command.
8317 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8319 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8320 (alias_command_completer)
8321 (make_alias_options_def_group): New functions.
8322 (alias_opts, alias_option_defs): New struct and array.
8323 (alias_usage_error): Update usage.
8324 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8325 Use option framework.
8326 (_initialize_cli_cmds): Update alias command help.
8327 Update aliases command help.
8329 Add NULL for new default_args lookup_cmd argument.
8330 (valid_command_p): Rename to validate_aliased_command.
8331 Add NULL for new default_args lookup_cmd argument. Verify that the
8332 aliased_command has no default args.
8333 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8334 (lookup_cmd_1, lookup_cmd): New argument default_args.
8336 Add NULL for new default_args lookup_cmd argument.
8337 (print_help_for_command): Show default args under the layout
8338 alias some_alias = some_aliased_cmd some_alias_default_arg.
8339 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8340 xfree default_args in destructor.
8341 * cli/cli-script.c (process_next_line, do_define_command):
8342 Add NULL for new default_args lookup_cmd argument.
8343 * command.h: Declare new default_args argument in lookup_cmd
8345 * completer.c (complete_line_internal_1):
8346 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8347 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8348 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8350 * infcmd.c (_initialize_infcmd): Likewise.
8351 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8352 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8353 * python/py-param.c (add_setshow_generic): Likewise.
8354 * remote.c (_initialize_remote): Likewise.
8355 * top.c (execute_command): Prepend default_args if command has some.
8357 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8358 * tracepoint.c (validate_actionline, encode_actions_1):
8359 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8361 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8363 * jit.c (jit_read_descriptor): Use bool as the return type.
8364 (jit_breakpoint_re_set_internal): Use bool as the return type.
8365 Invert the return value logic; return true if the jit breakpoint
8366 has been successfully initialized.
8367 (jit_inferior_init): Update the call to
8368 jit_breakpoint_re_set_internal.
8370 2020-06-22 Pedro Alves <palves@redhat.com>
8373 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8374 Use the current inferior instead. Don't return
8375 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8377 * sol-thread.c (sol_thread_target::wait): Don't reference
8379 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8380 (sol_update_thread_list_callback): Use the current inferior's pid
8381 instead of inferior_ptid.
8383 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8385 * procfs.c: Cleanup many comments.
8387 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8388 (AFTER_WATCHFLAG): Replace by value.
8390 (MAIN_PROC_NAME_FORMAT): Inline ...
8391 (create_procinfo): ... here.
8393 (procfs_debug_inferior): Remove SYS_exec handling.
8394 (syscall_is_exec): Likewise.
8395 (procfs_set_exec_trap): Likewise.
8397 (syscall_is_lwp_exit): Inline in callers.
8398 (syscall_is_exit): Likewise.
8399 (syscall_is_exec): Likewise.
8400 (syscall_is_lwp_create): Likewise.
8402 (invalidate_cache): Remove #if 0 code.
8404 (make_signal_thread_runnable): Remove.
8405 (procfs_target::resume): Remove #if 0 code.
8407 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8410 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8412 (procfs_target::create_inferior): ... here.
8414 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8416 * exec.c (validate_exec_file): Ensure the build-id is up to
8417 date by calling reopen_exec_file (that checks file timestamp
8418 to decide to re-read the file).
8420 2020-06-18 Pedro Alves <palves@redhat.com>
8423 * gdbthread.h (delete_thread, delete_thread_silent)
8424 (find_thread_ptid): Update comments.
8425 * thread.c (current_thread_): New global.
8426 (is_current_thread): Move higher, and reimplement.
8427 (inferior_thread): Reimplement.
8428 (set_thread_exited): Use bool. Add assertions.
8429 (add_thread_silent): Simplify thread-reuse handling by always
8430 calling delete_thread.
8431 (delete_thread): Remove intro comment.
8432 (find_thread_ptid): Skip exited threads.
8433 (switch_to_thread_no_regs): Write to current_thread_.
8434 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8435 INFERIOR_PTID. Clear current_thread_.
8437 2020-06-18 Pedro Alves <palves@redhat.com>
8439 * aix-thread.c (pd_update): Use switch_to_thread.
8441 2020-06-18 Pedro Alves <palves@redhat.com>
8443 * ravenscar-thread.c (ravenscar_thread_target): Update.
8444 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8445 (ravenscar_thread_target::add_active_thread): ... this. Don't
8446 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8447 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8449 2020-06-18 Pedro Alves <palves@redhat.com>
8451 * nat/windows-nat.c (current_windows_thread): Remove.
8452 * nat/windows-nat.h (current_windows_thread): Remove.
8453 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8455 (display_selectors): Adjust to fetch the current
8456 windows_thread_info based on inferior_ptid.
8457 (fake_create_process): No longer write to current_windows_thread.
8458 (windows_nat_target::get_windows_debug_event):
8459 Don't set inferior_ptid or current_windows_thread.
8460 (windows_nat_target::wait): Adjust to not rely on
8461 current_windows_thread.
8462 (do_initial_windows_stuff): Now a method of windows_nat_target.
8463 Switch to the last_ptid thread.
8464 (windows_nat_target::attach): Adjust.
8465 (windows_nat_target::detach): Use switch_to_no_thread instead of
8466 writing to inferior_ptid directly.
8467 (windows_nat_target::create_inferior): Adjust.
8469 2020-06-18 Pedro Alves <palves@redhat.com>
8471 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8473 2020-06-18 Pedro Alves <palves@redhat.com>
8475 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8476 after creating it, instead of writing to inferior_ptid. Don't
8477 write to inferior_ptid.
8479 2020-06-18 Pedro Alves <palves@redhat.com>
8481 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8483 2020-06-18 Pedro Alves <palves@redhat.com>
8485 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8486 it, instead of writing to inferior_ptid.
8488 2020-06-18 Pedro Alves <palves@redhat.com>
8490 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8493 2020-06-18 Pedro Alves <palves@redhat.com>
8495 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8496 instead of writing to inferior_ptid directly.
8498 2020-06-18 Pedro Alves <palves@redhat.com>
8500 * corelow.c (core_target::close): Use switch_to_no_thread instead
8501 of writing to inferior_ptid directly.
8502 (add_to_thread_list, core_target_open): Use switch_to_thread
8503 instead of writing to inferior_ptid directly.
8505 2020-06-18 Pedro Alves <palves@redhat.com>
8507 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8509 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8511 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8512 inferior_ptid directly.
8513 (darwin_nat_target::init_thread_list): Switch to thread, instead
8514 of writing to inferior_ptid.
8515 (darwin_nat_target::attach): Don't write to inferior_ptid.
8516 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8518 2020-06-18 Pedro Alves <palves@redhat.com>
8520 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8522 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8523 Instead use switch_to_thread.
8524 (gnu_nat_target::detach): Use switch_to_no_thread
8525 instead of writing to inferior_ptid directly. Used passed-in
8526 inferior instead of looking up the inferior by pid.
8528 2020-06-18 Pedro Alves <palves@redhat.com>
8530 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8533 2020-06-18 Pedro Alves <palves@redhat.com>
8535 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8537 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8539 (nto_procfs_target::detach): Avoid referencing
8540 inferior_ptid. Use switch_to_no_thread instead of writing to
8541 inferior_ptid directly.
8542 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8543 instead of writing to inferior_ptid directly.
8544 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8547 2020-06-18 Pedro Alves <palves@redhat.com>
8549 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8550 after creating it, instead of writing to inferior_ptid.
8551 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8552 to inferior_ptid directly.
8553 (gdbsim_target::wait): Don't write to inferior_ptid.
8555 2020-06-18 Pedro Alves <palves@redhat.com>
8557 * remote.c (remote_target::remote_notice_new_inferior): Use
8558 switch_to_thread instead of writing to inferior_ptid directly.
8559 (remote_target::add_current_inferior_and_thread): Use
8560 switch_to_no_thread instead of writing to inferior_ptid directly.
8561 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8562 and switch_to_thread instead of using set_current_inferior or
8563 writing to inferior_ptid directly.
8565 2020-06-18 Pedro Alves <palves@redhat.com>
8567 * tracectf.c (ctf_target_open): Switch to added thread instead of
8568 writing to inferior_ptid directly.
8569 (ctf_target::close): Use switch_to_no_thread instead of writing to
8570 inferior_ptid directly.
8572 2020-06-18 Pedro Alves <palves@redhat.com>
8574 * tracefile-tfile.c (tfile_target_open): Don't write to
8575 inferior_ptid directly, instead switch to added thread.
8576 (tfile_target::close): Use switch_to_no_thread instead of writing
8577 to inferior_ptid directly.
8579 2020-06-18 Pedro Alves <palves@redhat.com>
8581 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8582 (procfs_target::detach): Use switch_to_no_thread
8583 instead of writing to inferior_ptid directly.
8584 (do_attach): Change return type to void. Switch to the added
8586 (procfs_target::create_inferior): Switch to the added thread.
8587 (procfs_do_thread_registers): Don't write to inferior_ptid.
8589 2020-06-18 Pedro Alves <palves@redhat.com>
8591 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8592 of writing to inferior_ptid.
8593 (scoped_restore_exited_inferior): Delete.
8594 (handle_vfork_child_exec_or_exit): Simplify using
8595 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8596 instead of writing to inferior_ptid.
8597 (THREAD_STOPPED_BY): Delete.
8598 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8599 (thread_stopped_by_hw_breakpoint): Delete.
8600 (save_waitstatus): Use
8601 scoped_restore_current_thread+switch_to_thread, and call
8602 target_stopped_by_watchpoint instead of
8603 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8604 instead of thread_stopped_by_sw_breakpoint, and
8605 target_stopped_by_hw_breakpoint instead of
8606 thread_stopped_by_hw_breakpoint.
8607 (handle_inferior_event)
8608 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8609 inferior_ptid directly, nor
8610 set_current_inferior/set_current_program_space. Use
8611 switch_to_thread / switch_to_inferior_no_thread instead.
8613 2020-06-18 Pedro Alves <palves@redhat.com>
8615 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8616 instead of writing to inferior_ptid.
8618 2020-06-18 Pedro Alves <palves@redhat.com>
8620 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8622 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8623 to the added thread.
8624 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8625 instead of writing to inferior_ptid.
8627 2020-06-18 Pedro Alves <palves@redhat.com>
8629 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8630 (register_to_value_test): Mock a program_space too. Heap-allocate
8631 the address space. Don't write to inferior_ptid. Use
8632 switch_to_thread instead.
8634 2020-06-18 Pedro Alves <palves@redhat.com>
8636 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8638 (find_signalled_thread()): New, factored out from
8639 linux_make_corefile_notes and adjusted to handle exited threads.
8640 (linux_make_corefile_notes): Adjust to use the new
8641 find_signalled_thread.
8643 2020-06-18 Pedro Alves <palves@redhat.com>
8645 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8646 of saving/restoring inferior_ptid.
8648 2020-06-17 Tom Tromey <tom@tromey.com>
8650 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8651 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8653 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8655 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8657 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8660 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8662 * regformats/reg-arm.dat: Remove.
8663 * regformats/reg-bfin.dat: Remove.
8664 * regformats/reg-cris.dat: Remove.
8665 * regformats/reg-crisv32.dat: Remove.
8666 * regformats/reg-m32r.dat: Remove.
8667 * regformats/reg-tilegx.dat: Remove.
8668 * regformats/reg-tilegx32.dat: Remove.
8670 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8672 * features/Makefile (WHICH): Remove arm files.
8673 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8674 * regformats/arm/arm-with-neon.dat: Remove.
8675 * regformats/arm/arm-with-vfpv2.dat: Remove.
8676 * regformats/arm/arm-with-vfpv3.dat: Remove.
8678 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8680 * features/Makefile (XMLTOC): Remove rx.xml.
8682 2020-06-17 Pedro Alves <palves@redhat.com>
8684 * gdbthread.h (thread_control_state) <trap_expected> Update
8687 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8689 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8690 ada_language::lookup_symbol_nonlocal.
8691 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8692 (ada_language::lookup_symbol_nonlocal): New member function,
8693 implementation from ada_lookup_symbol_nonlocal.
8694 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8696 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8698 (cplus_language::lookup_symbol_nonlocal): New member function.
8699 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8700 (minimal_language_data) Likewise.
8701 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8702 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8704 (d_language::lookup_symbol_nonlocal): New member function.
8705 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8707 (f_language::lookup_symbol_nonlocal): New member function.
8708 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8710 * language.c (unknown_language_data): Likewise.
8711 (auto_language_data): Likewise.
8712 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8714 (language_defn::lookup_symbol_nonlocal): New member function.
8715 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8717 * objc-lang.c (objc_language_data): Likewise.
8718 * opencl-lang.c (opencl_language_data): Likewise.
8719 * p-lang.c (pascal_language_data): Likewise.
8720 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8721 rust_language::lookup_symbol_nonlocal.
8722 (rust_language_data): Delete la_lookup_symbol_nonlocal
8724 (rust_language::lookup_symbol_nonlocal): New member function,
8725 implementation from rust_lookup_symbol_nonlocal.
8726 * symtab.c (lookup_symbol_aux): Update call to
8727 lookup_symbol_nonlocal.
8728 (basic_lookup_symbol_nonlocal): Rename to...
8729 (language_defn::lookup_symbol_nonlocal): ...this, and update
8730 header comment. Remove language_defn parameter, and replace with
8732 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8734 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8736 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8738 (ada_language::value_print_inner): New member function.
8739 * c-lang.c (c_language_data): Delete la_value_print_inner
8741 (cplus_language_data): Likewise.
8742 (asm_language_data): Likewise.
8743 (minimal_language_data): Likewise.
8744 * d-lang.c (d_language_data): Likewise.
8745 (d_language::value_print_inner): New member function.
8746 * f-lang.c (f_language_data): Delete la_value_print_inner
8748 (f_language::value_print_inner): New member function.
8749 * f-lang.h (f_value_print_innner): Rename to...
8750 (f_value_print_inner): ...this (note spelling of 'inner').
8751 * f-valprint.c (f_value_print_innner): Rename to...
8752 (f_value_print_inner): ...this (note spelling of 'inner').
8753 * go-lang.c (go_language_data): Delete la_value_print_inner
8755 (go_language::value_print_inner): New member function.
8756 * language.c (language_defn::value_print_inner): Define new member
8758 (unk_lang_value_print_inner): Delete.
8759 (unknown_language_data): Delete la_value_print_inner initializer.
8760 (unknown_language::value_print_inner): New member function.
8761 (auto_language_data): Delete la_value_print_inner initializer.
8762 (auto_language::value_print_inner): New member function.
8763 * language.h (language_data): Delete la_value_print_inner field.
8764 (language_defn::value_print_inner): Delcare new member function.
8765 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8767 (m2_language::value_print_inner): New member function.
8768 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8770 * opencl-lang.c (opencl_language_data): Likewise.
8771 * p-lang.c (pascal_language_data): Likewise.
8772 (pascal_language::value_print_inner): New member function.
8773 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8775 (rust_language::value_print_inner): New member function.
8776 * valprint.c (do_val_print): Update call to value_print_inner.
8778 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8780 * ada-lang.c (ada_language_data): Delete la_value_print
8782 (ada_language::value_print): New member function.
8783 * c-lang.c (c_language_data): Delete la_value_print initializer.
8784 (cplus_language_data): Likewise.
8785 (asm_language_data): Likewise.
8786 (minimal_language_data): Likewise.
8787 * d-lang.c (d_language_data): Likewise.
8788 * f-lang.c (f_language_data): Likewise.
8789 * go-lang.c (go_language_data): Likewise.
8790 * language.c (unk_lang_value_print): Delete.
8791 (language_defn::value_print): Define new member function.
8792 (unknown_language_data): Delete la_value_print initializer.
8793 (unknown_language::value_print): New member function.
8794 (auto_language_data): Delete la_value_print initializer.
8795 (auto_language::value_print): New member function.
8796 * language.h (language_data): Delete la_value_print field.
8797 (language_defn::value_print): Declare new member function.
8798 (LA_VALUE_PRINT): Update call to value_print.
8799 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8800 * objc-lang.c (objc_language_data): Likewise.
8801 * opencl-lang.c (opencl_language_data): Likewise.
8802 * p-lang.c (pascal_language_data): Likewise.
8803 (pascal_language::value_print): New member function.
8804 * rust-lang.c (rust_language_data): Delete la_value_print
8807 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8809 * ada-lang.c (ada_watch_location_expression): Rename to
8810 ada_language::watch_location_expression.
8811 (ada_language_data): Delete la_watch_location_expression
8813 (ada_language::watch_location_expression): New member function,
8814 implementation from ada_watch_location_expression.
8815 * breakpoint.c (watch_command_1): Update call to
8816 watch_location_expression.
8817 * c-lang.c (c_watch_location_expression): Rename to
8818 language_defn::watch_location_expression.
8819 (c_language_data): Delete la_watch_location_expression
8821 (cplus_language_data): Likewise.
8822 (asm_language_data): Likewise.
8823 (minimal_language_data): Likewise.
8824 * c-lang.h (c_watch_location_expression): Delete declaration.
8825 * d-lang.c (d_language_data): Delete la_watch_location_expression
8827 * f-lang.c (f_language_data): Likewise.
8828 * go-lang.c (go_language_data): Likewise.
8829 * language.c (language_defn::watch_location_expression): Member
8830 function implementation from c_watch_location_expression.
8831 (unknown_language_data): Delete la_watch_location_expression
8833 (auto_language_data): Likewise.
8834 * language.h (language_data): Delete la_watch_location_expression
8836 (language_defn::watch_location_expression): Declare new member
8838 * m2-lang.c (m2_language_data): Delete
8839 la_watch_location_expression initializer.
8840 * objc-lang.c (objc_language_data): Likewise.
8841 * opencl-lang.c (opencl_language_data): Likewise.
8842 * p-lang.c (pascal_language_data): Likewise.
8843 * rust-lang.c (rust_watch_location_expression): Rename to
8844 rust_language::watch_location_expression.
8845 (rust_language_data): Delete la_watch_location_expression
8847 (rust_language::watch_location_expression): New member function,
8848 implementation from rust_watch_location_expression.
8850 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8852 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8853 ada_language::collect_symbol_completion_matches.
8854 (ada_language_data): Delete la_collect_symbol_completion_matches
8856 (ada_language::collect_symbol_completion_matches): New member
8857 function, implementation from
8858 ada_collect_symbol_completion_matches.
8859 * c-lang.c (c_language_data): Delete
8860 la_collect_symbol_completion_matches initializer.
8861 (cplus_language_data): Likewise.
8862 (asm_language_data): Likewise.
8863 (minimal_language_data): Likewise.
8864 * d-lang.c (d_language_data): Likewise.
8865 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8866 f_language::collect_symbol_completion_matches.
8867 (f_language_data): Delete la_collect_symbol_completion_matches
8869 (f_language::collect_symbol_completion_matches) New member
8870 function, implementation from f_collect_symbol_completion_matches.
8871 * go-lang.c (go_language_data): Delete
8872 la_collect_symbol_completion_matches initializer.
8873 * language.c (unknown_language_data): Likewise.
8874 (auto_language_data): Likewise.
8875 * language.h (language_data): Delete
8876 la_collect_symbol_completion_matches field.
8877 (language_defn::collect_symbol_completion_matches): New member
8879 * m2-lang.c (m2_language_data): Delete
8880 la_collect_symbol_completion_matches initializer.
8881 * objc-lang.c (objc_language_data): Likewise.
8882 * opencl-lang.c (opencl_language_data): Likewise.
8883 * p-lang.c (pascal_language_data): Likewise.
8884 * rust-lang.c (rust_language_data): Likewise.
8885 * symtab.c (default_collect_symbol_completion_matches): Delete.
8886 (collect_symbol_completion_matches): Update call to
8887 collect_symbol_completion_matches.
8888 (collect_symbol_completion_matches_type): Likewise.
8889 * symtab.h (default_collect_symbol_completion_matches): Delete
8892 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8894 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8895 (ada_language_data): Delete la_word_break_characters initializer.
8896 (ada_language::word_break_characters): New member function.
8897 * c-lang.c (c_language_data): Delete la_word_break_characters
8899 (cplus_language_data): Likewise.
8900 (asm_language_data): Likewise.
8901 (minimal_language_data): Likewise.
8902 * completer.c: Update global comment.
8903 (advance_to_expression_complete_word_point): Update call to
8904 word_break_characters.
8905 (complete_files_symbols): Likewise.
8906 (complete_line_internal_1): Likewise.
8907 (default_completer_handle_brkchars): Likewise.
8908 (skip_quoted_chars): Likewise.
8909 * d-lang.c (d_language_data): Delete la_word_break_characters
8911 * f-lang.c (f_word_break_characters): Delete.
8912 (f_language_data): Delete la_word_break_characters initializer.
8913 (f_language::word_break_characters): New member function.
8914 * go-lang.c (go_language_data): Delete la_word_break_characters
8916 * language.c (unknown_language_data): Likewise.
8917 (auto_language_data): Likewise.
8918 * language.h (default_word_break_characters): Move declaration to
8919 earlier in the file.
8920 (language_data): Delete la_word_break_characters field.
8921 (language_defn::word_break_characters): New member function.
8922 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8924 * objc-lang.c (objc_language_data): Likewise.
8925 * opencl-lang.c (opencl_language_data): Likewise.
8926 * p-lang.c (pascal_language_data): Likewise.
8927 * rust-lang.c (rust_language_data): Likewise.
8929 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8931 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8932 (ada_language_data): Delete la_get_symbol_name_matcher
8934 (language_defn::get_symbol_name_matcher_inner): New member
8936 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8938 (cplus_language_data): Likewise.
8939 (cplus_language::get_symbol_name_matcher_inner): New member
8941 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8942 (minimal_language_data): Likewise.
8943 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8944 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8946 * dictionary.c (iter_match_first_hashed): Update call to
8947 get_symbol_name_matcher.
8948 (iter_match_next_hashed): Likewise.
8949 (iter_match_next_linear): Likewise.
8950 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8951 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8953 (f_language::get_symbol_name_matcher_inner): New member function.
8954 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8956 * language.c (default_symbol_name_matcher): Update header comment,
8958 (language_defn::get_symbol_name_matcher): New definition.
8959 (language_defn::get_symbol_name_matcher_inner): Likewise.
8960 (get_symbol_name_matcher): Delete.
8961 (unknown_language_data): Delete la_get_symbol_name_matcher
8963 (auto_language_data): Likewise.
8964 * language.h (language_data): Delete la_get_symbol_name_matcher
8966 (language_defn::get_symbol_name_matcher): New member function.
8967 (language_defn::get_symbol_name_matcher_inner): Likewise.
8968 (default_symbol_name_matcher): Delete declaration.
8969 * linespec.c (find_methods): Update call to
8970 get_symbol_name_matcher.
8971 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8973 * minsyms.c (lookup_minimal_symbol): Update call to
8974 get_symbol_name_matcher.
8975 (iterate_over_minimal_symbols): Likewise.
8976 * objc-lang.c (objc_language_data): Delete
8977 la_get_symbol_name_matcher initializer.
8978 * opencl-lang.c (opencl_language_data): Likewise.
8979 * p-lang.c (pascal_language_data): Likewise.
8980 * psymtab.c (psymbol_name_matches): Update call to
8981 get_symbol_name_matcher.
8982 * rust-lang.c (rust_language_data): Delete
8983 la_get_symbol_name_matcher initializer.
8984 * symtab.c (symbol_matches_search_name): Update call to
8985 get_symbol_name_matcher.
8986 (compare_symbol_name): Likewise.
8988 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8990 * ada-lang.c (ada_language_data): Delete la_compute_program
8992 * c-lang.c (c_language_data): Likewise.
8993 (c_language::compute_program): New member function.
8994 (cplus_language_data): Delete la_compute_program initializer.
8995 (cplus_language::compute_program): New member function.
8996 (asm_language_data): Delete la_compute_program initializer.
8997 (minimal_language_data): Likewise.
8998 * c-lang.h (c_compute_program): Update comment.
8999 (cplus_compute_program): Likewise.
9000 * compile/compile-c-support.c (c_compute_program): Likewise.
9001 (cplus_compute_program): Likewise.
9002 * compile/compile.c (compile_to_object): Update call to
9004 * d-lang.c (d_language_data): Delete la_compute_program
9006 * f-lang.c (f_language_data): Likewise.
9007 * go-lang.c (go_language_data): Likewise.
9008 * language.c (unknown_language_data): Likewise.
9009 (auto_language_data): Likewise.
9010 * language.h (language_data): Delete la_compute_program field.
9011 (language_defn::compute_program): New member function.
9012 * m2-lang.c (m2_language_data): Delete la_compute_program
9014 * objc-lang.c (objc_language_data): Likewise.
9015 * opencl-lang.c (opencl_language_data): Likewise.
9016 * p-lang.c (pascal_language_data): Likewise.
9017 * rust-lang.c (rust_language_data): Likewise.
9019 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9021 * ada-lang.c (ada_language_data) Delete
9022 la_class_name_from_physname initializer.
9023 * c-lang.c (c_language_data): Likewise.
9024 (cplus_language_data): Likewise.
9025 (cplus_language::class_name_from_physname): New member function.
9026 (asm_language_data): Delete la_class_name_from_physname
9028 (minimal_language_data): Likewise.
9029 * d-lang.c (d_language_data): Likewise.
9030 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
9031 method on language_defn class.
9032 (guess_full_die_structure_name): Likewise.
9033 * f-lang.c (f_language_data): Delete la_class_name_from_physname
9035 * go-lang.c (go_language_data): Likewise.
9036 * language.c (language_class_name_from_physname): Delete.
9037 (unk_lang_class_name): Delete.
9038 (unknown_language_data): Delete la_class_name_from_physname
9040 (auto_language_data): Likewise.
9041 * language.h (language_data): Delete la_class_name_from_physname
9043 (language_defn::class_name_from_physname): New function.
9044 (language_class_name_from_physname): Delete declaration.
9045 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
9047 * objc-lang.c (objc_language_data): Likewise.
9048 * opencl-lang.c (opencl_language_data): Likewise.
9049 * p-lang.c (pascal_language_data): Likewise.
9050 * rust-lang.c (rust_language_data): Likewise.
9052 2020-06-16 Tom Tromey <tom@tromey.com>
9054 * tui/tui-data.h (STATUS_NAME): New macro.
9055 * tui/tui-layout.c (tui_remove_some_windows)
9056 (initialize_known_windows, tui_register_window)
9057 (tui_layout_split::remove_windows, initialize_layouts)
9058 (tui_new_layout_command): Don't use hard-coded window names.
9060 2020-06-16 Tom Tromey <tom@tromey.com>
9063 * tui/tui.c (tui_ensure_readline_initialized): Rename from
9064 tui_initialize_readline. Only run once. Call rl_initialize.
9065 * tui/tui.h (tui_ensure_readline_initialized): Rename from
9066 tui_initialize_readline.
9067 * tui/tui-io.c (tui_setup_io): Call
9068 tui_ensure_readline_initialized.
9069 * tui/tui-interp.c (tui_interp::init): Update.
9071 2020-06-16 Tom Tromey <tom@tromey.com>
9073 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
9074 Also preserve the status window.
9076 2020-06-16 Tom Tromey <tom@tromey.com>
9078 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
9079 where m_window==nullptr.
9081 2020-06-15 Tom Tromey <tromey@adacore.com>
9083 * windows-nat.c (windows_nat::handle_output_debug_string):
9085 (windows_nat::handle_ms_vc_exception): Update.
9086 * target.h (target_read_string): Change API.
9087 * target.c (target_read_string): Change API.
9088 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9090 * solib-frv.c (frv_current_sos): Update.
9091 * solib-dsbt.c (dsbt_current_sos): Update.
9092 * solib-darwin.c (darwin_current_sos): Update.
9093 * linux-thread-db.c (inferior_has_bug): Update.
9094 * expprint.c (print_subexp_standard): Update.
9095 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
9096 (ada_exception_message_1): Update.
9098 2020-06-15 Tom Tromey <tromey@adacore.com>
9100 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
9102 2020-06-15 Tom Tromey <tromey@adacore.com>
9104 * valprint.c (read_string): Update comment.
9105 * target.c (MIN): Remove.
9106 (target_read_string): Rewrite.
9108 2020-06-15 Tom Tromey <tromey@adacore.com>
9110 * corefile.c (read_memory_string): Remove.
9111 * ada-valprint.c (ada_value_print_ptr): Update.
9112 * ada-lang.h (ada_tag_name): Change return type.
9113 * ada-lang.c (type_from_tag): Update.
9114 (ada_tag_name_from_tsd): Change return type. Use
9116 (ada_tag_name): Likewise.
9117 * gdbcore.h (read_memory_string): Don't declare.
9119 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
9121 * symtab.c (rbreak_command): Ignore Windows drive colon.
9123 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
9125 * NEWS: Mention removed GDBserver host support.
9127 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
9129 * features/riscv/rebuild-csr-xml.sh: Updated.
9131 2020-06-11 Tom Tromey <tom@tromey.com>
9134 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9136 2020-06-09 Jonny Grant <jg@jguk.org>
9137 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9139 * main.c (captured_main_1): Don't print new line after help.
9140 (print_gdb_help): add mailing list and IRC channel information
9141 to --help. Add new lines between items in the footer. Remove
9142 quotes around bug url.
9144 2020-06-11 Keith Seitz <keiths@redhat.com>
9147 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9148 Resolve typedefs for type length calculations.
9150 2020-06-10 Tom de Vries <tdevries@suse.de>
9153 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9154 (write_psymbols): Enable .gdb_index for ada.
9155 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9158 2020-06-10 Tom de Vries <tdevries@suse.de>
9160 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9161 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9162 namei" instead of "const char *name" argument.
9163 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9164 dw2_symtab_iter_init.
9166 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9168 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9169 to use type::field and field::type instead.
9171 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9173 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9174 to use field::type instead.
9176 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9178 * gdbtypes.h (struct field) <type, set_type>: New methods.
9179 Rename `type` field to...
9180 <m_type>: ... this. Change references throughout to use type or
9182 (FIELD_TYPE): Use field::type. Change call sites that modify
9183 the field's type to use field::set_type instead.
9185 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9187 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9188 to use type::index_type instead.
9190 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9192 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9194 (TYPE_INDEX_TYPE): Use type::index_type.
9195 * gdbtypes.c (create_array_type_with_stride): Likewise.
9197 2020-06-07 Tom Tromey <tom@tromey.com>
9199 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9201 (generic_value_print): Update.
9203 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9205 Revert commit 982a38f60b0.
9206 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9208 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9210 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9211 avoid use after free.
9213 2020-06-05 Tom de Vries <tdevries@suse.de>
9217 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
9219 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9221 (dwarf2_read_debug_names): Likewise.
9222 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9223 object when re-using a per_bfd object with an index.
9225 2020-06-03 Tom de Vries <tdevries@suse.de>
9228 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9230 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9233 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9235 * ada-lang.c (ada_language_data): Delete skip_trampoline
9237 * c-lang.c (c_language_data): Likewise.
9238 (cplus_language_data): Likewise.
9239 (cplus_language::skip_trampoline): New member function.
9240 (asm_language_data): Delete skip_trampoline initializer.
9241 (minimal_language_data): Likewise.
9242 * d-lang.c (d_language_data): Likewise.
9243 * f-lang.c (f_language_data): Likewise.
9244 * go-lang.c (go_language_data): Likewise.
9245 * language.c (unk_lang_trampoline): Delete function.
9246 (skip_language_trampoline): Update.
9247 (unknown_language_data): Delete skip_trampoline initializer.
9248 (auto_language_data): Likewise.
9249 * language.h (language_data): Delete skip_trampoline field.
9250 (language_defn::skip_trampoline): New function.
9251 * m2-lang.c (m2_language_data): Delete skip_trampoline
9253 * objc-lang.c (objc_skip_trampoline): Delete function, move
9254 implementation to objc_language::skip_trampoline.
9255 (objc_language_data): Delete skip_trampoline initializer.
9256 (objc_language::skip_trampoline): New member function with
9257 implementation from objc_skip_trampoline.
9258 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9260 * p-lang.c (pascal_language_data): Likewise.
9261 * rust-lang.c (rust_language_data): Likewise.
9263 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9265 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9266 (ada_language::demangle): New member function.
9267 * c-lang.c (c_language_data): Delete la_demangle initializer.
9268 (cplus_language_data): Delete la_demangle initializer.
9269 (cplus_language::demangle): New member function.
9270 (asm_language_data): Delete la_demangle initializer.
9271 (minimal_language_data): Delete la_demangle initializer.
9272 * d-lang.c (d_language_data): Delete la_demangle initializer.
9273 (d_language::demangle): New member function.
9274 * f-lang.c (f_language_data): Delete la_demangle initializer.
9275 (f_language::demangle): New member function.
9276 * go-lang.c (go_language_data): Delete la_demangle initializer.
9277 (go_language::demangle): New member function.
9278 * language.c (language_demangle): Update.
9279 (unk_lang_demangle): Delete.
9280 (unknown_language_data): Delete la_demangle initializer.
9281 (unknown_language::demangle): New member function.
9282 (auto_language_data): Delete la_demangle initializer.
9283 (auto_language::demangle): New member function.
9284 * language.h (language_data): Delete la_demangle field.
9285 (language_defn::demangle): New function.
9286 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9287 * objc-lang.c (objc_language_data): Delete la_demangle
9289 (objc_language::demangle): New member function.
9290 * opencl-lang.c (opencl_language_data): Delete la_demangle
9292 * p-lang.c (pascal_language_data): Likewise.
9293 * rust-lang.c (rust_language_data): Likewise.
9294 (rust_language::demangle): New member function.
9296 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9298 * ada-lang.c (ada_language_data): Delete la_print_type
9300 (ada_language::print_type): New member function.
9301 * c-lang.c (c_language_data): Delete la_print_type initializer.
9302 (c_language::print_type): New member function.
9303 (cplus_language_data): Delete la_print_type initializer.
9304 (cplus_language::print_type): New member function.
9305 (asm_language_data): Delete la_print_type initializer.
9306 (asm_language::print_type): New member function.
9307 (minimal_language_data): Delete la_print_type initializer.
9308 (minimal_language::print_type): New member function.
9309 * d-lang.c (d_language_data): Delete la_print_type initializer.
9310 (d_language::print_type): New member function.
9311 * f-lang.c (f_language_data): Delete la_print_type initializer.
9312 (f_language::print_type): New member function.
9313 * go-lang.c (go_language_data): Delete la_print_type initializer.
9314 (go_language::print_type): New member function.
9315 * language.c (unk_lang_print_type): Delete.
9316 (unknown_language_data): Delete la_print_type initializer.
9317 (unknown_language::print_type): New member function.
9318 (auto_language_data): Delete la_print_type initializer.
9319 (auto_language::print_type): New member function.
9320 * language.h (language_data): Delete la_print_type field.
9321 (language_defn::print_type): New function.
9322 (LA_PRINT_TYPE): Update.
9323 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9324 (m2_language::print_type): New member function.
9325 * objc-lang.c (objc_language_data): Delete la_print_type
9327 (objc_language::print_type): New member function.
9328 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9329 to opencl_language::print_type.
9330 (opencl_language_data): Delete la_print_type initializer.
9331 (opencl_language::print_type): New member function, implementation
9332 from opencl_print_type.
9333 * p-lang.c (pascal_language_data): Delete la_print_type
9335 (pascal_language::print_type): New member function.
9336 * rust-lang.c (rust_print_type): Delete, implementation moved to
9337 rust_language::print_type.
9338 (rust_language_data): Delete la_print_type initializer.
9339 (rust_language::print_type): New member function, implementation
9340 from rust_print_type.
9342 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9344 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9345 implementation moves to...
9346 (ada_language::sniff_from_mangled_name): ...here. Update return
9348 (ada_language_data): Delete la_sniff_from_mangled_name
9350 * c-lang.c (c_language_data): Likewise.
9351 (cplus_language_data): Likewise.
9352 (cplus_language::sniff_from_mangled_name): New member function,
9353 implementation taken from gdb_sniff_from_mangled_name.
9354 (asm_language_data): Delete la_sniff_from_mangled_name
9356 (minimal_language_data): Likewise.
9357 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9358 implementation moves to cplus_language::sniff_from_mangled_name.
9359 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9360 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9362 (d_language::sniff_from_mangled_name): ...here.
9363 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9364 * f-lang.c (f_language_data): Likewise.
9365 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9367 (go_language::sniff_from_mangled_name): ...here.
9368 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9369 * language.c (language_sniff_from_mangled_name): Delete.
9370 (unknown_language_data): Delete la_sniff_from_mangled_name
9372 (auto_language_data): Likewise.
9373 * language.h (language_data): Delete la_sniff_from_mangled_name
9375 (language_defn::sniff_from_mangled_name): New function.
9376 (language_sniff_from_mangled_name): Delete declaration.
9377 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9379 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9380 implementation moves to...
9381 (objc_language::sniff_from_mangled_name): ...here.
9382 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9383 * opencl-lang.c (opencl_language_data): Likewise.
9384 * p-lang.c (pascal_language_data): Likewise.
9385 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9386 implementation moves to...
9387 (rust_language::sniff_from_mangled_name): ...here.
9388 (rust_language_data): Delete la_sniff_from_mangled_name
9390 * symtab.c (symbol_find_demangled_name): Call
9391 sniff_from_mangled_name member function.
9393 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9395 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9397 * c-lang.c (c_language_data): Likewise.
9398 (cplus_language_data): Likewise.
9399 (cplus_language::search_name_hash): New member function.
9400 (asm_language_data): Delete la_search_name_hash initializer.
9401 (minimal_language_data): Likewise.
9402 * d-lang.c (d_language_data): Likewise.
9403 * dictionary.c (default_search_name_hash): Rename to...
9404 (language_defn::search_name_hash): ...this.
9405 * f-lang.c (f_language_data): Likewise.
9406 (f_language::search_name_hash): New member function.
9407 * go-lang.c (go_language_data): Delete la_search_name_hash
9409 * language.c (unknown_language_data): Likewise.
9410 (auto_language_data): Likewise.
9411 * language.h (struct language_data): Delete la_search_name_hash
9413 (language_defn::search_name_hash): Declare new member function.
9414 (default_search_name_hash): Delete declaration.
9415 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9417 * objc-lang.c (objc_language_data): Likewise.
9418 * opencl-lang.c (opencl_language_data): Likewise.
9419 * p-lang.c (pascal_language_data): Likewise.
9420 * rust-lang.c (rust_language_data): Likewise.
9421 * symtab.c (search_name_hash): Update call.
9423 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9425 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9427 * c-lang.c (class compile_instance): Declare.
9428 (c_language_data): Delete la_get_compile_instance initializer.
9429 (c_language::get_compile_instance): New member function.
9430 (cplus_language_data): Delete la_get_compile_instance initializer.
9431 (cplus_language::get_compile_instance): New member function.
9432 (asm_language_data): Delete la_get_compile_instance initializer.
9433 (minimal_language_data): Likewise.
9434 * c-lang.h (c_get_compile_context): Update comment.
9435 (cplus_get_compile_context): Update comment.
9436 * compile/compile.c (compile_to_object): Update calls, don't rely
9437 on function pointer being NULL.
9438 * d-lang.c (d_language_data): Delete la_get_compile_instance
9440 * f-lang.c (f_language_data): Likewise.
9441 * go-lang.c (go_language_data): Likewise.
9442 * language.c (unknown_language_data): Likewise.
9443 (auto_language_data): Likewise.
9444 * language.h (language_data): Delete la_get_compile_instance field.
9445 (language_defn::get_compile_instance): New member function.
9446 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9448 * objc-lang.c (objc_language_data): Likewise.
9449 * opencl-lang.c (opencl_language_data): Likewise.
9450 * p-lang.c (pascal_language_data): Likewise.
9451 * rust-lang.c (rust_language_data): Likewise.
9453 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9455 * ada-lang.c (ada_add_all_symbols): Update comment.
9456 (ada_iterate_over_symbols): Delete, move implementation to...
9457 (ada_language::iterate_over_symbols): ...here, a new member
9458 function, rewrite to use range based for loop.
9459 (ada_language_data): Delete la_iterate_over_symbols initializer.
9460 * c-lang.c (c_language_data): Likewise.
9461 (cplus_language_data): Likewise.
9462 (asm_language_data): Likewise.
9463 (minimal_language_data): Likewise.
9464 * d-lang.c (d_language_data): Likewise.
9465 * f-lang.c (f_language_data): Likewise.
9466 * go-lang.c (go_language_data): Likewise.
9467 * language.c (unknown_language_data): Likewise.
9468 (auto_language_data): Likewise.
9469 * language.h (language_data): Delete la_iterate_over_symbols field.
9470 (language_defn::iterate_over_symbols): New member function.
9471 (LA_ITERATE_OVER_SYMBOLS): Update.
9472 * linespec.c (iterate_over_all_matching_symtabs): Update.
9473 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9475 * objc-lang.c (objc_language_data): Likewise.
9476 * opencl-lang.c (opencl_language_data): Likewise.
9477 * p-lang.c (pascal_language_data): Likewise.
9478 * rust-lang.c (rust_language_data): Likewise.
9480 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9482 * ada-lang.c (ada_language_data): Delete
9483 la_lookup_transparent_type initializer.
9484 * c-lang.c (c_language_data): Likewise.
9485 (cplus_language_data): Likewise.
9486 (cplus_language::lookup_transparent_type): New member function.
9487 (asm_language_data): Delete la_lookup_transparent_type
9489 (minimal_language_data): Likewise.
9490 * d-lang.c (d_language_data): Likewise.
9491 * f-lang.c (f_language_data): Likewise.
9492 * go-lang.c (go_language_data): Likewise.
9493 * language.c (unknown_language_data): Likewise.
9494 (auto_language_data): Likewise.
9495 * language.h (struct language_data): Delete
9496 la_lookup_transparent_type field.
9497 (language_defn::lookup_transparent_type): New member function.
9498 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9500 * objc-lang.c (objc_language_data): Likewise.
9501 * opencl-lang.c (opencl_language_data): Likewise.
9502 * p-lang.c (pascal_language_data): Likewise.
9503 * rust-lang.c (rust_language_data): Likewise.
9504 * symtab.c (symbol_matches_domain): Update call.
9506 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9508 * ada-lang.c (ada_language_arch_info): Delete function, move
9509 implementation to...
9510 (ada_language::language_arch_info): ...here, a new member
9512 (ada_language_data): Delete la_language_arch_info.
9513 * c-lang.c (c_language_data): Likewise.
9514 (c_language::language_arch_info): New member function.
9515 (cplus_language_arch_info): Delete function, move
9516 implementation to...
9517 (cplus_language::language_arch_info): ...here, a new member
9519 (cplus_language_data): Delete la_language_arch_info.
9520 (asm_language_data): Likewise.
9521 (asm_language::language_arch_info): New member function.
9522 (minimal_language_data): Delete la_language_arch_info.
9523 (minimal_language::language_arch_info): New member function.
9524 * d-lang.c (d_language_arch_info): Delete function, move
9525 implementation to...
9526 (d_language::language_arch_info): ...here, a new member
9528 (d_language_data): Delete la_language_arch_info.
9529 * f-lang.c (f_language_arch_info): Delete function, move
9530 implementation to...
9531 (f_language::language_arch_info): ...here, a new member
9533 (f_language_data): Delete la_language_arch_info.
9534 * go-lang.c (go_language_arch_info): Delete function, move
9535 implementation to...
9536 (go_language::language_arch_info): ...here, a new member
9538 (go_language_data): Delete la_language_arch_info.
9539 * language.c (unknown_language_data): Likewise.
9540 (unknown_language::language_arch_info): New member function.
9541 (auto_language_data): Delete la_language_arch_info.
9542 (auto_language::language_arch_info): New member function.
9543 (language_gdbarch_post_init): Update call to
9544 la_language_arch_info.
9545 * language.h (language_data): Delete la_language_arch_info
9547 (language_defn::language_arch_info): New function.
9548 * m2-lang.c (m2_language_arch_info): Delete function, move
9549 implementation to...
9550 (m2_language::language_arch_info): ...here, a new member
9552 (m2_language_data): Delete la_language_arch_info.
9553 * objc-lang.c (objc_language_arch_info): Delete function, move
9554 implementation to...
9555 (objc_language::language_arch_info): ...here, a new member
9557 (objc_language_data): Delete la_language_arch_info.
9558 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9559 implementation to...
9560 (opencl_language::language_arch_info): ...here, a new member
9562 (opencl_language_data): Delete la_language_arch_info.
9563 * p-lang.c (pascal_language_arch_info): Delete function, move
9564 implementation to...
9565 (pascal_language::language_arch_info): ...here, a new member
9567 (pascal_language_data): Delete la_language_arch_info.
9568 * rust-lang.c (rust_language_arch_info): Delete function, move
9569 implementation to...
9570 (rust_language::language_arch_info): ...here, a new member
9572 (rust_language_data): Delete la_language_arch_info.
9574 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9576 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9578 * c-lang.c (c_language_data): Likewise.
9579 (cplus_language_data): Likewise.
9580 (cplus_language::pass_by_reference_info): New method.
9581 (asm_language_data): Delete la_pass_by_reference initializer.
9582 (minimal_language_data): Likewise.
9583 * cp-abi.c (cp_pass_by_reference): Remove use of
9584 default_pass_by_reference.
9585 * d-lang.c (d_language_data): Likewise.
9586 * f-lang.c (f_language_data): Likewise.
9587 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9588 default_pass_by_reference.
9589 * go-lang.c (go_language_data): Likewise.
9590 * language.c (language_pass_by_reference): Update.
9591 (default_pass_by_reference): Delete.
9592 (unknown_language_data): Delete la_pass_by_reference
9594 (auto_language_data): Likewise.
9595 * language.h (struct language_data): Delete la_pass_by_reference
9597 (language_defn::pass_by_reference_info): New member function.
9598 (default_pass_by_reference): Delete declaration.
9599 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9601 * objc-lang.c (objc_language_data): Likewise.
9602 * opencl-lang.c (opencl_language_data): Likewise.
9603 * p-lang.c (pascal_language_data): Likewise.
9604 * rust-lang.c (rust_language_data): Likewise.
9606 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9608 * ada-lang.c (ada_read_var_value): Delete function, move
9609 implementation to...
9610 (ada_language::read_var_value): ...here.
9611 (ada_language_data): Delete la_read_var_value initializer.
9612 * c-lang.c (c_language_data): Likewise.
9613 (cplus_language_data): Likewise.
9614 (minimal_language_data): Likewise.
9615 * d-lang.c (d_language_data): Likewise.
9616 * f-lang.c (f_language_data): Likewise.
9617 * findvar.c (default_read_var_value): Rename to...
9618 (language_defn::read_var_value): ...this.
9619 * findvar.c (read_var_value): Update header comment, and change to
9620 call member function instead of function pointer.
9621 * go-lang.c (go_language_data): Likewise.
9622 * language.c (unknown_language_data): Delete la_read_var_value
9624 (auto_language_data): Likewise.
9625 * language.h (struct language_data): Delete la_read_var_value
9627 (language_defn::read_var_value): New member function.
9628 (default_read_var_value): Delete declaration.
9629 * m2-lang.c (m2_language_data): Delete la_read_var_value
9631 * objc-lang.c (objc_language_data): Likewise.
9632 * opencl-lang.c (opencl_language_data): Likewise.
9633 * p-lang.c (pascal_language_data): Likewise.
9634 * rust-lang.c (rust_language_data): Likewise.
9635 * value.h (default_read_var_value): Delete declaration.
9637 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9639 * ada-lang.c (ada_print_array_index): Delete function, move
9640 implementation to...
9641 (ada_language::print_array_index): ...here.
9642 (ada_language_data): Delete la_print_array_index initializer.
9643 * c-lang.c (c_language_data): Likewise.
9644 (cplus_language_data): Likewise.
9645 (minimal_language_data): Likewise.
9646 * d-lang.c (d_language_data): Likewise.
9647 * f-lang.c (f_language_data): Likewise.
9648 * go-lang.c (go_language_data): Likewise.
9649 * language.c (default_print_array_index): Delete function, move
9650 implementation to...
9651 (language_defn::print_array_index): ...here.
9652 (unknown_language_data): Delete la_print_array_index initializer.
9653 (auto_language_data): Likewise.
9654 * language.h (struct language_data): Delete la_print_array_index
9656 (language_defn::print_array_index): New member function.
9657 (LA_PRINT_ARRAY_INDEX): Update.
9658 (default_print_array_index): Delete declaration.
9659 * m2-lang.c (m2_language_data): Delete la_print_array_index
9661 * objc-lang.c (objc_language_data): Likewise.
9662 * opencl-lang.c (opencl_language_data): Likewise.
9663 * p-lang.c (pascal_language_data): Likewise.
9664 * rust-lang.c (rust_language_data): Likewise.
9666 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9668 * gdb/ada-lang.c (ada_language_defn): Convert to...
9669 (ada_language_data): ...this.
9670 (class ada_language): New class.
9671 (ada_language_defn): New static global.
9672 * gdb/c-lang.c (c_language_defn): Convert to...
9673 (c_language_data): ...this.
9674 (class c_language): New class.
9675 (c_language_defn): New static global.
9676 (cplus_language_defn): Convert to...
9677 (cplus_language_data): ...this.
9678 (class cplus_language): New class.
9679 (cplus_language_defn): New static global.
9680 (asm_language_defn): Convert to...
9681 (asm_language_data): ...this.
9682 (class asm_language): New class.
9683 (asm_language_defn): New static global.
9684 (minimal_language_defn): Convert to...
9685 (minimal_language_data): ...this.
9686 (class minimal_language): New class.
9687 (minimal_language_defn): New static global.
9688 * gdb/d-lang.c (d_language_defn): Convert to...
9689 (d_language_data): ...this.
9690 (class d_language): New class.
9691 (d_language_defn): New static global.
9692 * gdb/f-lang.c (f_language_defn): Convert to...
9693 (f_language_data): ...this.
9694 (class f_language): New class.
9695 (f_language_defn): New static global.
9696 * gdb/go-lang.c (go_language_defn): Convert to...
9697 (go_language_data): ...this.
9698 (class go_language): New class.
9699 (go_language_defn): New static global.
9700 * gdb/language.c (unknown_language_defn): Remove declaration.
9701 (current_language): Initialize to nullptr, real initialization is
9702 moved to _initialize_language.
9703 (languages): Delete global.
9704 (language_defn::languages): Define.
9705 (set_language_command): Use language_defn::languages.
9706 (set_language): Likewise.
9707 (range_error): Likewise.
9708 (language_enum): Likewise.
9709 (language_def): Likewise.
9710 (add_set_language_command): Use language_def::languages for the
9711 language list, and language_def to lookup language pointers.
9712 (skip_language_trampoline): Use language_defn::languages.
9713 (unknown_language_defn): Convert to...
9714 (unknown_language_data): ...this.
9715 (class unknown_language): New class.
9716 (unknown_language_defn): New static global.
9717 (auto_language_defn): Convert to...
9718 (auto_language_data): ...this.
9719 (class auto_language): New class.
9720 (auto_language_defn): New static global.
9721 (language_gdbarch_post_init): Use language_defn::languages.
9722 (_initialize_language): Initialize current_language.
9723 * gdb/language.h (struct language_defn): Rename to...
9724 (struct language_data): ...this.
9725 (struct language_defn): New.
9726 (auto_language_defn): Delete.
9727 (unknown_language_defn): Delete.
9728 (minimal_language_defn): Delete.
9729 (ada_language_defn): Delete.
9730 (asm_language_defn): Delete.
9731 (c_language_defn): Delete.
9732 (cplus_language_defn): Delete.
9733 (d_language_defn): Delete.
9734 (f_language_defn): Delete.
9735 (go_language_defn): Delete.
9736 (m2_language_defn): Delete.
9737 (objc_language_defn): Delete.
9738 (opencl_language_defn): Delete.
9739 (pascal_language_defn): Delete.
9740 (rust_language_defn): Delete.
9741 * gdb/m2-lang.c (m2_language_defn): Convert to...
9742 (m2_language_data): ...this.
9743 (class m2_language): New class.
9744 (m2_language_defn): New static global.
9745 * gdb/objc-lang.c (objc_language_defn): Convert to...
9746 (objc_language_data): ...this.
9747 (class objc_language): New class.
9748 (objc_language_defn): New static global.
9749 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9750 (opencl_language_data): ...this.
9751 (class opencl_language): New class.
9752 (opencl_language_defn): New static global.
9753 * gdb/p-lang.c (pascal_language_defn): Convert to...
9754 (pascal_language_data): ...this.
9755 (class pascal_language): New class.
9756 (pascal_language_defn): New static global.
9757 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9758 language pointer, update comment format.
9759 * gdb/rust-lang.c (rust_language_defn): Convert to...
9760 (rust_language_data): ...this.
9761 (class rust_language): New class.
9762 (rust_language_defn): New static global.
9764 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9766 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9768 <m_stmt_at_address>: New member variable.
9769 (lnp_state_machine::record_line): Don't record some lines, update
9770 tracking of is_stmt at the same address.
9771 (lnp_state_machine::lnp_state_machine): Initialise new member
9774 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9776 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9777 "-include gnu-nat-mig.h".
9778 * gnu-nat-mig.h: New file.
9779 * gnu-nat.c: Include "gnu-nat-mig.h".
9780 (exc_server, msg_reply_server, notify_server,
9781 process_reply_server): Remove declarations.
9783 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9785 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9786 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9787 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9788 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9789 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9790 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9791 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9792 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9793 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9794 to gnu_nat_target class.
9795 * gnu-nat.c: Likewise.
9796 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9797 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9798 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9800 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9801 instead of `gnu_target'.
9803 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9805 * i386-gnu-tdep.c: Include "gdbcore.h"
9806 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9807 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9808 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9809 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9810 i386_gnu_sigcontext_addr): New functions
9811 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9812 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9815 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9817 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9818 before fork_inferior call. Avoid calling it if target_is_pushed returns
9821 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9823 * gnu-nat.h (gnu_target): New variable declaration.
9824 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9826 * gnu-nat.c (gnu_target): New variable.
9827 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9828 add_thread_silent, and add_thread calls.
9829 (gnu_nat_target::create_inferior): Pass gnu_target to
9830 add_thread_silent, thread_change_ptid call.
9831 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9834 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9836 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9837 (gnu_nat_target::find_memory_regions): Remove unused
9838 `old_address' variable.
9840 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9842 * gnu-nat.c: Include "gdbarch.h".
9844 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9846 * reply_mig_hack.awk (Error return): Cast function through
9847 void *, to bypass compiler function call check.
9849 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9851 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9852 $(srcdir)/reply_mig_hack.awk.
9854 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9856 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9858 2020-05-30 Jonny Grant <jg@jguk.org>
9860 * configure.ac (ACX_BUGURL): change bug URL to https.
9862 2020-05-30 Pedro Alves <palves@redhat.com>
9864 * cp-support.c (replace_typedefs_template): New.
9865 (replace_typedefs_qualified_name): Handle
9866 DEMANGLE_COMPONENT_TEMPLATE.
9868 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9870 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9871 dwarf2/index-cache.h, dwarf2/index-write.c,
9872 dwarf2/index-write.h, dwarf2/line-header.c,
9873 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9874 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9875 variables and fields from `dwarf2_per_objfile` to just
9876 `per_objfile` throughout.
9878 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9880 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9881 <push_dwarf_reg_entry_value>: Add comment.
9883 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9884 Keith Seitz <keiths@redhat.com>
9886 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9887 instead of PyEval_ReleaseLock.
9888 (class gdbpy_gil): Move to earlier in file.
9889 (finalize_python): Set gdb_python_initialized.
9890 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9891 when not initialized.
9893 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9895 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9896 <push_dwarf_reg_entry_value>: Remove assert. Override
9897 per_objfile with caller_per_objfile.
9899 2020-05-28 Tom de Vries <tdevries@suse.de>
9901 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9902 PR gold/15646 workaround to symbol kind "type".
9904 2020-05-27 Tom Tromey <tromey@adacore.com>
9906 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9908 2020-05-27 Tom Tromey <tromey@adacore.com>
9910 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9911 Use htab_find_with_hash.
9912 <add_abbrev>: Remove "abbrev_number" parameter.
9913 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9914 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9915 (hash_abbrev): Add comment.
9916 (abbrev_table::lookup_abbrev): Move to header file.
9917 (abbrev_table::read): Update.
9919 2020-05-27 Tom Tromey <tromey@adacore.com>
9921 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9923 <canonical_name>: New member.
9924 <raw_name>: Rename from "name".
9925 (partial_die_info): Initialize canonical_name.
9926 (scan_partial_symbols): Check raw_name.
9927 (partial_die_parent_scope, partial_die_full_name)
9928 (add_partial_symbol, add_partial_subprogram)
9929 (add_partial_enumeration, load_partial_dies): Use "name" method.
9930 (partial_die_info::name): New method.
9931 (partial_die_info::read, guess_partial_die_structure_name)
9932 (partial_die_info::fixup): Update.
9934 2020-05-27 Tom Tromey <tromey@adacore.com>
9936 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9937 <get_ref_die_offset>: Inline.
9938 <get_ref_die_offset_complaint>: New method.
9939 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9940 (attribute::get_ref_die_offset_complaint): Rename from
9941 get_ref_die_offset. Just issue complaint.
9943 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9945 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9947 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9949 * exec.c (exec_file_attach): Use errno value of first openp failure.
9951 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9953 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9954 Don't close thread handle.
9956 2020-05-27 Tom Tromey <tom@tromey.com>
9957 Simon Marchi <simon.marchi@efficios.com>
9959 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9961 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9963 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9964 dwarf2_per_bfd_objfile_data_key>: New globals.
9965 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9966 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9967 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9969 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9970 short-circuit when sharing.
9971 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9972 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9974 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9976 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9978 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9979 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9981 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9983 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9984 build_name_components, find_name_components_bounds>:
9985 Add per_objfile parameter.
9986 (struct mapped_index) <symbol_name_at>: Likewise.
9987 (struct mapped_debug_names): Remove constructor.
9988 <dwarf2_per_objfile>: Remove field.
9989 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9990 (mapped_index_base::find_name_components_bounds,
9991 mapped_index_base::build_name_components,
9992 dw2_expand_symtabs_matching_symbol): Likewise.
9993 (class mock_mapped_index) <symbol_name_at>: Likewise.
9994 (check_match): Likewise.
9995 (check_find_bounds_finds): Likewise.
9996 (test_mapped_index_find_name_component_bounds): Update.
9997 (CHECK_MATCH): Update.
9998 (dw2_expand_symtabs_matching): Update.
9999 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
10000 per_objfile parameter.
10001 <find_vec_in_debug_names>: Likewise.
10002 <m_per_objfile>: New field.
10003 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
10005 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
10006 (dw2_debug_names_iterator::next): Update.
10007 (dw2_debug_names_lookup_symbol): Update.
10008 (dw2_debug_names_expand_symtabs_for_function): Update.
10009 (dw2_debug_names_map_matching_symbols): Update.
10010 (dw2_debug_names_expand_symtabs_matching): Update.
10011 (dwarf2_read_debug_names): Update.
10013 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10015 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
10016 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
10017 move to dwarf2_per_objfile.
10018 <read_in_chain>: Remove.
10019 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
10020 remove_all_cus, age_comp_units>: New methods.
10021 <m_dwarf2_cus>: New member.
10022 (struct dwarf2_per_cu_data) <cu>: Remove.
10023 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
10024 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
10025 moved to methods of dwarf2_per_objfile.
10026 (dwarf2_clear_marks): Remove.
10027 (dwarf2_queue_item::~dwarf2_queue_item): Update.
10028 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
10029 (dwarf2_per_bfd::free_cached_comp_units): Remove.
10030 (dwarf2_per_objfile::remove_all_cus): New.
10031 (class free_cached_comp_units) <~free_cached_comp_units>:
10034 (dw2_do_instantiate_symtab): Adjust.
10035 (fill_in_sig_entry_from_dwo_entry): Adjust.
10036 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10037 (cutu_reader::cutu_reader): Likewise.
10038 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
10039 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
10040 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
10041 and dwarf2_per_objfile::age_comp_units.
10042 (load_partial_comp_unit): Update.
10043 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
10044 (process_queue): Likewise.
10045 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
10047 (dwarf2_read_addr_index): Likewise.
10048 (follow_die_offset): Likewise.
10049 (dwarf2_fetch_die_loc_sect_off): Likewise.
10050 (dwarf2_fetch_constant_bytes): Likewise.
10051 (dwarf2_fetch_die_type_sect_off): Likewise.
10052 (follow_die_sig_1): Likewise.
10053 (load_full_type_unit): Likewise.
10054 (read_signatured_type): Likewise.
10055 (dwarf2_cu::dwarf2_cu): Don't set cu field.
10056 (dwarf2_cu::~dwarf2_cu): Remove.
10057 (dwarf2_per_objfile::get_cu): New.
10058 (dwarf2_per_objfile::set_cu): New.
10059 (age_cached_comp_units): Rename to...
10060 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
10061 to std::unordered_map.
10062 (free_one_cached_comp_unit): Rename to...
10063 (dwarf2_per_objfile::remove_cu): ... this. Adjust
10064 to std::unordered_map.
10065 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
10066 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
10067 a dwarf2_per_objfile in data.
10068 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
10069 (dwarf2_clear_marks): Remove.
10071 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10073 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
10074 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
10075 (init_tu_and_read_dwo_dies): Likewise.
10076 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
10077 (cutu_reader::cutu_reader): Likewise.
10078 (load_partial_comp_unit): Likewise.
10079 (process_psymtab_comp_unit): Update.
10080 (build_type_psymtabs_1): Update.
10081 (process_skeletonless_type_unit): Update.
10082 (load_full_comp_unit): Update.
10083 (find_partial_die): Update.
10084 (dwarf2_read_addr_index): Update.
10085 (read_signatured_type): Update.
10087 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10089 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
10090 m_header_read_in>: New fields.
10091 <get_header>: New method.
10092 * dwarf2/read.c (per_cu_header_read_in): Remove.
10093 (dwarf2_per_cu_data::get_header): New.
10094 (dwarf2_per_cu_data::addr_size): Update.
10095 (dwarf2_per_cu_data::offset_size): Update.
10096 (dwarf2_per_cu_data::ref_addr_size): Update.
10098 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10100 * dwarf2/read.c (load_cu): Return dwarf2_cu.
10101 (dw2_do_instantiate_symtab): Update.
10102 (queue_and_load_all_dwo_tus): Change parameter from
10103 dwarf2_per_cu_data to dwarf2_cu.
10104 (dwarf2_fetch_die_loc_sect_off): Update.
10105 (dwarf2_fetch_constant_bytes): Update.
10106 (dwarf2_fetch_die_type_sect_off): Update.
10108 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10110 * dwarf2/read.c (process_full_comp_unit,
10111 process_full_type_unit): Remove per_cu, per_objfile paramters.
10112 Add dwarf2_cu parameter.
10113 (process_queue): Update.
10115 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10117 * dwarf2/read.c (create_cu_from_index_list): Replace
10118 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10119 (create_cus_from_index_list): Likewise.
10120 (create_cus_from_index): Likewise.
10121 (create_signatured_type_table_from_index): Likewise.
10122 (create_cus_from_debug_names_list): Likewise.
10123 (create_cus_from_debug_names): Likewise.
10124 (dwarf2_read_gdb_index): Update.
10125 (dwarf2_read_debug_names): Update.
10127 2020-05-27 Tom Tromey <tom@tromey.com>
10128 Simon Marchi <simon.marchi@efficios.com>
10130 * dwarf2/read.h (struct dwarf2_per_objfile)
10131 <get_type_for_signatured_type, set_type_for_signatured_type>:
10133 <m_type_map>: New member.
10134 (struct signatured_type) <type>: Remove.
10136 (dwarf2_per_objfile::get_type_for_signatured_type,
10137 dwarf2_per_objfile::set_type_for_signatured_type): New.
10138 (get_signatured_type): Use new methods.
10140 2020-05-27 Tom Tromey <tom@tromey.com>
10141 Simon Marchi <simon.marchi@efficios.com>
10143 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10144 (struct dwarf2_per_objfile) <type_units>: New member.
10145 <get_type_unit_group_unshareable>: New method.
10146 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10147 num_symtabs, symtabs>: Remove; move to
10148 type_unit_group_unshareable.
10149 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10150 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10151 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10153 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10155 * dwarf2/read.h (struct dwarf2_per_cu_data):
10156 <dwarf2_per_objfile>: Remove.
10157 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10158 dwarf2_per_objfile.
10159 (create_signatured_type_table_from_index): Likewise.
10160 (create_signatured_type_table_from_debug_names): Likewise.
10161 (create_debug_type_hash_table): Likewise.
10162 (fill_in_sig_entry_from_dwo_entry): Likewise.
10163 (create_type_unit_group): Likewise.
10164 (read_comp_units_from_section): Likewise.
10165 (create_cus_hash_table): Likewise.
10167 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10169 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10170 dwarf2_per_cu_data::dwarf2_per_objfile.
10171 (compute_compunit_symtab_includes): Likewise.
10172 (dwarf2_cu::start_symtab): Likewise.
10174 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10176 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10178 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10179 (read_namespace_alias): Update.
10180 (lookup_die_type): Update.
10181 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10182 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10184 (disassemble_dwarf_expression): Update.
10186 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10188 * dwarf2/read.h (struct dwarf2_queue_item): Add
10189 dwarf2_per_objfile parameter, assign new parameter.
10190 <per_objfile>: New field.
10191 * dwarf2/read.c (free_one_cached_comp_unit): Add
10192 dwarf2_per_objfile parameter.
10193 (queue_comp_unit): Likewise.
10194 (dw2_do_instantiate_symtab): Update.
10195 (process_psymtab_comp_unit): Update.
10196 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10197 (process_imported_unit_die): Update.
10198 (queue_and_load_dwo_tu): Update.
10199 (follow_die_offset): Update.
10200 (follow_die_sig_1): Update.
10202 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10204 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10205 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10206 (read_call_site_scope): Assign per_objfile.
10207 (dwarf2_per_cu_data::objfile): Remove.
10208 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10209 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10210 dwarf2_per_objfile parameter.
10211 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10212 dwarf2_per_objfile parameter.
10213 (dwarf_expr_reg_to_entry_parameter): Add output
10214 dwarf2_per_objfile parameter.
10215 (locexpr_get_frame_base): Update.
10216 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10217 <push_dwarf_reg_entry_value>: Update.
10218 <call_site_to_target_addr>: Update.
10219 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10221 (value_of_dwarf_reg_entry): Update.
10222 (rw_pieced_value): Update.
10223 (indirect_synthetic_pointer): Update.
10224 (dwarf2_evaluate_property): Update.
10225 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10227 (locexpr_read_variable): Update.
10228 (locexpr_get_symbol_read_needs): Update.
10229 (loclist_read_variable): Update.
10231 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10233 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10234 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10235 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10237 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10238 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10239 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10241 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10242 sect_variable_value): Add dwarf2_per_objfile parameter.
10243 (class dwarf_evaluate_loc_desc) <dwarf_call,
10244 dwarf_variable_value>: Update.
10245 (fetch_const_value_from_synthetic_pointer): Add
10246 dwarf2_per_objfile parameter.
10247 (fetch_const_value_from_synthetic_pointer): Update.
10248 (coerced_pieced_ref): Update.
10249 (class symbol_needs_eval_context) <dwarf_call,
10250 dwarf_variable_value>: Update.
10251 (dwarf2_compile_expr_to_ax): Update.
10253 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10255 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10257 (dwarf2_evaluate_loc_desc_full): Update.
10259 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10261 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10263 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10264 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10265 dwarf2_per_objfile parameter.
10266 (decode_debug_loc_dwo_addresses): Likewise.
10267 (dwarf2_find_location_expression): Update.
10268 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10269 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10271 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10273 (locexpr_describe_location_1): Likewise.
10274 (locexpr_describe_location): Update.
10276 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10278 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10280 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10281 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10282 (dwarf2_compile_property_to_c): Update.
10283 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10284 use text offset from objfile.
10285 (locexpr_tracepoint_var_ref): Update.
10286 (locexpr_generate_c_location): Update.
10287 (loclist_describe_location): Update.
10288 (loclist_tracepoint_var_ref): Update.
10289 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10290 dwarf2_per_objfile parameter.
10291 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10292 use text offset from objfile.
10293 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10295 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10297 * dwarf2/expr.h (struct dwarf_expr_context)
10298 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10300 <per_objfile>: New member.
10301 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10302 dwarf2_per_objfile parameter. Don't set offset, set
10304 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10305 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10306 a dwarf2_per_objfile object instead of an offset.
10307 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10309 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10310 to dwarf2_expr_executor constructor. Don't set offset.
10311 (dwarf2_fetch_cfa_info): Update.
10312 (struct dwarf2_frame_cache) <text_offset>: Remove.
10313 <per_objfile>: New field.
10314 (dwarf2_frame_cache): Update.
10315 (dwarf2_frame_prev_register): Update.
10316 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10317 <dwarf_evaluate_loc_desc>: Add constructor.
10318 (dwarf2_evaluate_loc_desc_full): Update.
10319 (dwarf2_locexpr_baton_eval): Update.
10320 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10322 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10324 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10326 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10327 addr_sized_int_type>: Move to dwarf2_cu.
10328 <int_type>: Move to dwarf2_per_objfile.
10329 (struct dwarf2_per_objfile) <int_type>: Move here.
10330 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10331 addr_sized_int_type>: Move here.
10332 (read_func_scope): Update.
10333 (read_array_type): Update.
10334 (read_tag_string_type): Update.
10335 (attr_to_dynamic_prop): Update.
10336 (dwarf2_per_cu_data::int_type): Rename to...
10337 (dwarf2_per_objfile::int_type): ... this.
10338 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10339 (dwarf2_cu::addr_sized_int_type): ... this.
10340 (read_subrange_type): Update.
10341 (dwarf2_per_cu_data::addr_type): Rename to...
10342 (dwarf2_cu::addr_type): ... this.
10343 (set_die_type): Update.
10345 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10347 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10348 data through per_cu->cu.
10350 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10352 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10353 dwarf2_per_cu_data parameter fo dwarf2_cu.
10354 (lookup_dwo_type_unit): Likewise.
10355 (read_cutu_die_from_dwo): Likewise.
10356 (lookup_dwo_unit): Likewise.
10357 (open_and_init_dwo_file): Likewise.
10358 (lookup_dwo_cutu): Likewise.
10359 (lookup_dwo_comp_unit): Likewise.
10360 (lookup_dwo_type_unit): Likewise.
10361 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10362 (cutu_reader::cutu_reader): Update.
10364 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10366 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10368 (process_full_type_unit): Likewise.
10369 (process_queue): Update.
10371 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10373 * dwarf2/read.c (recursively_compute_inclusions): Add
10374 dwarf2_per_objfile parameter.
10375 (compute_compunit_symtab_includes): Likewise.
10376 (process_cu_includes): Update.
10378 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10380 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10382 (create_type_unit_group): Update.
10383 (process_psymtab_comp_unit_reader): Update.
10384 (build_type_psymtabs_reader): Update.
10386 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10388 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10389 object through m_this_cu->cu.
10391 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10393 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10394 the info parameter.
10395 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10397 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10399 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10400 per_objfile parameter.
10401 (load_full_type_unit): Add per_objfile parameter.
10402 (read_signatured_type): Likewise.
10403 (load_full_comp_unit): Likewise.
10404 (load_cu): Likewise.
10405 (dw2_do_instantiate_symtab): Likewise.
10406 (dw2_get_file_names): Likewise.
10407 (dw2_map_symtabs_matching_filename): Update.
10408 (dw_expand_symtabs_matching_file_matcher): Update.
10409 (dw2_map_symbol_filenames): Update.
10410 (process_psymtab_comp_unit): Add per_objfile parameter.
10411 (build_type_psymtabs_1): Update.
10412 (process_skeletonless_type_unit): Update.
10413 (dwarf2_build_psymtabs_hard): Update.
10414 (load_partial_comp_unit): Add per_objfile parameter.
10415 (scan_partial_symbols): Update.
10416 (load_full_comp_unit): Add per_objfile parameter.
10417 (process_imported_unit_die): Update.
10418 (create_cus_hash_table): Update.
10419 (find_partial_die): Update.
10420 (dwarf2_read_addr_index): Update.
10421 (follow_die_offset): Update.
10422 (dwarf2_fetch_die_loc_sect_off): Update.
10423 (dwarf2_fetch_constant_bytes): Update.
10424 (dwarf2_fetch_die_type_sect_off): Update.
10425 (follow_die_sig_1): Update.
10426 (load_full_type_unit): Add per_objfile parameter.
10427 (read_signatured_type): Likewise.
10429 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10431 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10434 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10436 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10437 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10438 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10440 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10441 (create_cus_from_index): Update.
10442 (dwarf2_read_gdb_index): Update.
10443 (create_cus_from_debug_names): Update.
10444 (dwarf2_read_debug_names): Update.
10445 (get_abbrev_section_for_cu): Update.
10446 (create_all_comp_units): Update.
10447 (read_attribute_value): Update.
10448 (get_debug_line_section): Update.
10449 * dwarf2/index-cache.c (index_cache::store): Update.
10450 * dwarf2/index-write.c (save_gdb_index_command): Update.
10451 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10453 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10455 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10457 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10458 dwarf2_per_cu_data::per_bfd.
10459 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10460 (create_type_unit_group): Likewise.
10461 (queue_comp_unit): Remove reference to
10462 per_cu->dwarf2_per_objfile.
10463 (maybe_queue_comp_unit): Likewise.
10464 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10465 (create_cus_hash_table): Assign new field.
10467 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10469 * dwarf2/read.c: Replace
10470 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10471 dwarf2_cu->per_objfile throughout.
10473 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10475 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10476 parameter, don't use per_cu->dwarf2_per_objfile.
10477 (dw2_instantiate_symtab): Likewise.
10478 (dw2_find_last_source_symtab): Update.
10479 (dw2_map_expand_apply): Update.
10480 (dw2_lookup_symbol): Update.
10481 (dw2_expand_symtabs_for_function): Update.
10482 (dw2_expand_all_symtabs): Update.
10483 (dw2_expand_symtabs_with_fullname): Update.
10484 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10485 don't use per_cu->dwarf2_per_objfile.
10486 (dw2_expand_marked_cus): Update.
10487 (dw2_find_pc_sect_compunit_symtab): Update.
10488 (dw2_debug_names_lookup_symbol): Update.
10489 (dw2_debug_names_expand_symtabs_for_function): Update.
10490 (dw2_debug_names_map_matching_symbols): Update.
10491 (dwarf2_psymtab::expand_psymtab): Update.
10493 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10495 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10496 <per_objfile>: New member.
10497 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10498 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10500 (cutu_reader::cutu_reader): Update.
10501 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10503 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10505 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10506 struct dwarf2_per_objfile.
10507 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10509 * dwarf2/read.c (set_die_type): Update.
10510 (get_die_type_at_offset): Update.
10512 2020-05-27 Tom Tromey <tom@tromey.com>
10513 Simon Marchi <simon.marchi@efficios.com>
10515 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10517 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10518 get_symtab, set_symtab>: New methods.
10519 <m_symtabs>: New field.
10520 (struct dwarf2_psymtab): Derive from partial_symtab.
10521 <readin_p, get_compunit_symtab>: Declare methods.
10522 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10523 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10525 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10526 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10527 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10528 (dw2_symtab_iter_next, dw2_print_stats)
10529 (dw2_expand_symtabs_with_fullname)
10530 (dw2_expand_symtabs_matching_one)
10531 (dw_expand_symtabs_matching_file_matcher)
10532 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10533 (dw2_debug_names_iterator::next)
10534 (dw2_debug_names_map_matching_symbols)
10535 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10536 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10537 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10539 (get_compunit_symtab, process_full_comp_unit)
10540 (process_full_type_unit): Update.
10541 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10543 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10545 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10546 then introduce a new dwarf2_per_objfile type.
10547 <read_line_string>: Move to the new dwarf2_per_objfile type.
10548 <objfile>: Likewise.
10549 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10550 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10551 dwarf2_per_objfile->per_bfd.
10552 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10553 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10554 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10555 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10556 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10557 (dwarf2_per_objfile::locate_sections): Rename to...
10558 (dwarf2_per_bfd::locate_sections): ... this.
10559 (dwarf2_per_objfile::get_cutu): Rename to...
10560 (dwarf2_per_bfd::get_cutu): ... this.
10561 (dwarf2_per_objfile::get_cu): Rename to...
10562 (dwarf2_per_bfd::get_cu): ... this.
10563 (dwarf2_per_objfile::get_tu): Rename to...
10564 (dwarf2_per_bfd::get_tu): ... this.
10565 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10566 (dwarf2_per_bfd::allocate_per_cu): ... this.
10567 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10568 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10569 (get_gdb_index_contents_ftype): Change parameter from
10570 dwarf2_per_objfile to dwarf2_per_bfd.
10571 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10572 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10574 2020-05-27 Tom Tromey <tom@tromey.com>
10575 Simon Marchi <simon.marchi@efficios.com>
10577 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10578 (allocate_piece_closure): Set "per_objfile" member.
10579 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10580 (locexpr_describe_location, loclist_describe_location): Use new
10582 * dwarf2/read.c (read_call_site_scope)
10583 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10584 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10585 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10586 handle_data_member_location): Set per_objfile member.
10587 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10589 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10591 2020-05-27 Tom Tromey <tom@tromey.com>
10593 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10594 allocate_signatured_type>: Declare new methods.
10595 <m_num_psymtabs>: New member.
10596 (struct dwarf2_per_cu_data) <index>: New member.
10597 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10598 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10599 (create_cu_from_index_list): Use allocate_per_cu.
10600 (create_signatured_type_table_from_index)
10601 (create_signatured_type_table_from_debug_names)
10602 (create_debug_type_hash_table, add_type_unit)
10603 (read_comp_units_from_section): Use allocate_signatured_type.
10605 2020-05-27 Tom Tromey <tom@tromey.com>
10607 * psymtab.c (partial_map_expand_apply)
10608 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10609 (psym_lookup_global_symbol_language)
10610 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10611 (psym_print_stats, psym_expand_symtabs_for_function)
10612 (psym_map_symbol_filenames, psym_map_matching_symbols)
10613 (psym_expand_symtabs_matching)
10614 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10615 (maintenance_check_psymtabs): Update.
10616 * psympriv.h (struct partial_symtab) <readin_p,
10617 get_compunit_symtab>: Add objfile parameter.
10618 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10620 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10621 get_compunit_symtab>: Likewise.
10622 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10624 2020-05-27 Tom Tromey <tom@tromey.com>
10626 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10628 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10629 (create_cu_from_index_list)
10630 (create_signatured_type_table_from_index)
10631 (create_signatured_type_table_from_debug_names)
10632 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10633 (dwarf2_create_include_psymtab)
10634 (create_debug_type_hash_table, add_type_unit)
10635 (create_type_unit_group, read_comp_units_from_section)
10636 (dwarf2_compute_name, create_cus_hash_table)
10637 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10638 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10640 (dw2_get_real_path): Likewise. Change argument to
10641 dwarf2_per_objfile.
10643 2020-05-27 Luis Machado <luis.machado@linaro.org>
10646 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10647 for ldrd (immediate).
10649 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10651 * command.h: Add comment giving the name of class_tui.
10652 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10653 create the fake command for the help for class_tui.
10655 2020-05-26 Tom Tromey <tromey@adacore.com>
10657 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10658 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10659 (val_atr): New function.
10660 (value_val_atr): Use it.
10661 * ada-valprint.c (print_optional_low_bound): Change low bound
10662 handling for enums.
10663 (val_print_packed_array_elements): Don't call discrete_position.
10664 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10665 discrete_position for enum types.
10666 * language.c (default_print_array_index): Change type.
10667 * language.h (struct language_defn) <la_print_array_index>: Add
10668 index_type parameter, change type of index_value.
10669 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10670 (default_print_array_index): Update.
10671 * valprint.c (maybe_print_array_index): Don't call
10672 value_from_longest. Update.
10673 (value_print_array_elements): Don't call discrete_position.
10675 2020-05-26 Tom Tromey <tromey@adacore.com>
10677 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10678 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10680 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10683 * avr-tdep.c (avr_integer_to_address): Return data or code
10684 address accordingly to the second 'type' argument of the
10687 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10689 * infcmd.c, inferior.h: (construct_inferior_arguments):
10690 Moved function from here to gdbsupport/common-inferior.{h,cc}
10692 2020-05-23 Tom Tromey <tom@tromey.com>
10694 Revert commit eca1f90c:
10695 * NEWS: Remove entry for completion styling.
10696 * completer.c (_rl_completion_prefix_display_length): Move
10698 (gdb_fnprint): Revert.
10699 (gdb_display_match_list_1): Likewise.
10700 * cli/cli-style.c (completion_prefix_style)
10701 (completion_difference_style, completion_suffix_style): Remove.
10702 (_initialize_cli_style): Revert.
10703 * cli/cli-style.h (completion_prefix_style)
10704 (completion_difference_style, completion_suffix_style): Don't
10707 2020-05-24 Pedro Alves <palves@redhat.com>
10709 * symtab.c (completion_list_add_name): Return boolean indication
10710 of whether the symbol matched.
10711 (completion_list_add_symbol): Don't try to remove C++ aliases if
10712 the symbol didn't match in the first place.
10713 * symtab.h (completion_list_add_name): Return bool.
10715 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10717 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10720 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10724 2020-05-23 Tom Tromey <tom@tromey.com>
10726 * NEWS: Add entry for completion styling.
10727 * completer.c (_rl_completion_prefix_display_length): Move
10728 declaration earlier.
10729 (gdb_fnprint): Use completion_style.
10730 (gdb_display_match_list_1): Likewise.
10731 * cli/cli-style.c (completion_prefix_style)
10732 (completion_difference_style, completion_suffix_style): New
10734 (_initialize_cli_style): Register new globals.
10735 * cli/cli-style.h (completion_prefix_style)
10736 (completion_difference_style, completion_suffix_style): Declare.
10738 2020-05-23 Pedro Alves <palves@redhat.com>
10740 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10741 (parse_escape): Use ISDIGIT instead of isdigit.
10742 (puts_debug): Use gdb_isprint instead of isprint.
10743 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10744 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10745 ISSPACE instead of isspace.
10746 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10747 instead of isspace.
10748 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10749 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10750 instead of isxdigit and ISDIGIT instead of isdigit.
10752 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10754 * gdbtypes.h (struct type) <field>: New method.
10755 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10758 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10760 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10761 (TYPE_FIELDS): Use type::fields. Change all call sites that
10762 modify the propery to use type::set_fields instead.
10764 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10766 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10767 type::num_fields instead.
10769 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10771 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10773 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10774 that modify the number of fields to use type::set_num_fields
10777 2020-05-22 Tom Tromey <tromey@adacore.com>
10779 * compile/compile-object-load.h (munmap_list_free): Don't
10782 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10784 * annotate.c (annotate_source_line): Update return type, add call
10785 to update current symtab and line.
10786 * annotate.h (annotate_source_line): Update return type, and
10787 extend header comment.
10788 * source.c (info_line_command): Check annotation_level before
10789 calling annotate_source_line.
10790 * stack.c (print_frame_info): If calling annotate_source_line
10791 returns true, then don't print any other source line information.
10793 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10795 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10797 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10799 * coffread.c (patch_type): Remove NULL check before xfree.
10800 * corefile.c (set_gnutarget): Likewise.
10801 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10802 * exec.c (build_section_table): Likewise.
10803 * remote.c (remote_target::pass_signals): Likewise.
10804 * utils.c (n_spaces): Likewise.
10805 * cli/cli-script.c (document_command): Likewise.
10806 * i386-windows-tdep.c (core_process_module_section): Likewise.
10807 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10809 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10811 * symfile.c (reread_symbols): Clear objfile's section_offsets
10812 vector and section indices, re-compute them by calling
10815 2020-05-20 Tom Tromey <tromey@adacore.com>
10817 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10818 (desc_one_bound, desc_index_type): Compute field name.
10820 2020-05-20 Tom de Vries <tdevries@suse.de>
10823 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10825 2020-05-20 Alan Modra <amodra@gmail.com>
10828 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10830 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10831 passed to bfd_set_filename.
10832 * symfile-mem.c (add_vsyscall_page): Likewise for string
10833 passed to symbol_file_add_from_memory.
10834 (symbol_file_add_from_memory): Make name param a const char* and
10837 2020-05-20 Alan Modra <amodra@gmail.com>
10839 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10840 rather than accessing bfd->filename directly.
10841 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10842 and use bfd_section_name.
10843 * dwarf2/frame.c (decode_frame_entry): Likewise.
10844 * exec.c (exec_set_section_address): Likewise.
10845 * solib-aix.c (solib_aix_bfd_open): Likewise.
10846 * stap-probe.c (get_stap_base_address): Likewise.
10847 * symfile.c (reread_symbols): Likewise.
10849 2020-05-19 Tom Tromey <tromey@adacore.com>
10851 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10853 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10855 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10857 2020-05-19 Pedro Alves <palves@redhat.com>
10859 * NEWS (set exec-file-mismatch): Adjust entry.
10860 * exec.c: Include "build-id.h".
10861 (validate_exec_file): Try to match build IDs instead of filenames.
10862 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10863 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10864 and pass down 'warn_if_slow'.
10865 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10866 gdb_bfd_open_closure to pass it down.
10867 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10869 2020-05-19 Pedro Alves <palves@redhat.com>
10871 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10872 * target.c (target_fileio_open_1): Rename to target_fileio_open
10873 and make extern. Use bool.
10874 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10875 (target_fileio_read_alloc_1): Adjust.
10876 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10877 (target_fileio_open_warn_if_slow): Delete declaration.
10879 2020-05-19 Pedro Alves <palves@redhat.com>
10881 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10882 Adjust all callers.
10884 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10886 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10887 whether disp is negative.
10889 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10891 * symfile.h (struct symfile_segment_data)
10892 <~symfile_segment_data>: Remove.
10893 <segment_info>: Change to std::vector.
10894 * symfile.c (default_symfile_segments): Update.
10895 * elfread.c (elf_symfile_segments): Update.
10897 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10899 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10901 <segment_bases, segment_sizes>: Remove.
10902 * symfile.c (default_symfile_segments): Update.
10903 * elfread.c (elf_symfile_segments): Update.
10904 * remote.c (remote_target::get_offsets): Update.
10905 * solib-target.c (solib_target_relocate_section_addresses):
10908 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10910 * symfile.h (struct symfile_segment_data): Initialize fields.
10911 <~symfile_segment_data>: Add.
10912 (symfile_segment_data_up): New.
10913 (struct sym_fns) <sym_segments>: Return a
10914 symfile_segment_data_up.
10915 (default_symfile_segments): Return a symfile_segment_data_up.
10916 (free_symfile_segment_data): Remove.
10917 (get_symfile_segment_data): Return a symfile_segment_data_up.
10918 * symfile.c (default_symfile_segments): Likewise.
10919 (get_symfile_segment_data): Likewise.
10920 (free_symfile_segment_data): Remove.
10921 (symfile_find_segment_sections): Update.
10922 * elfread.c (elf_symfile_segments): Return a
10923 symfile_segment_data_up.
10924 * remote.c (remote_target::get_offsets): Update.
10925 * solib-target.c (solib_target_relocate_section_addresses):
10927 * symfile-debug.c (debug_sym_segments): Return a
10928 symfile_segment_data_up.
10930 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10933 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10934 Hardcode register numbers.
10937 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10938 procfs_find_LDT_entry): Remove.
10939 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10940 procfs_find_LDT_entry): Remove.
10941 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10944 2020-05-17 Pedro Alves <palves@redhat.com>
10945 Andrew Burgess <andrew.burgess@embecosm.com>
10946 Keno Fischer <keno@juliacomputing.com>
10949 * breakpoint.c (build_target_condition_list): Update comments.
10950 (build_target_command_list): Update comments and skip matching
10952 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10953 a separate function. Simplify "set breakpoint auto-hw off"
10955 (insert_breakpoints): Update comment.
10956 (tracepoint_locations_match): New parameter. For breakpoints,
10957 compare location types too, if the caller wants to.
10958 (handle_automatic_hardware_breakpoints): New functions.
10959 (bp_location_is_less_than): Also sort by location type and
10960 hardware breakpoint length.
10961 (update_global_location_list): Handle "set breakpoint auto-hw on"
10963 (update_breakpoint_locations): Ask breakpoint_locations_match to
10964 ignore location types.
10966 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10968 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10969 type::name instead.
10971 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10973 * gdbtypes.h (struct type) <name, set_name>: New methods.
10974 (TYPE_CODE): Use type::name. Change all call sites used to set
10975 the name to use type::set_name instead.
10977 2020-05-16 Tom Tromey <tom@tromey.com>
10979 * top.c (quit_force): Update.
10980 * infrun.c (handle_no_resumed): Update.
10981 * top.h (all_uis): New function.
10984 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10986 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10988 2020-05-16 Pedro Alves <palves@redhat.com>
10991 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10993 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10995 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10997 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10998 (sparc64_adi_info): Likewise.
11000 2020-05-15 Tom Tromey <tom@tromey.com>
11002 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
11004 (lookup_objfile_from_block): Remove.
11005 (lookup_symbol_in_block, lookup_symbol_in_static_block)
11006 (lookup_global_symbol): Use block_objfile.
11007 * symtab.h (lookup_objfile_from_block): Don't declare.
11008 * printcmd.c (clear_dangling_display_expressions): Use
11010 * parse.c (operator_check_standard): Use block_objfile.
11012 2020-05-15 Tom Tromey <tom@tromey.com>
11014 * language.c (language_alloc_type_symbol): Set
11016 * symtab.c (initialize_objfile_symbol): Remove.
11017 (allocate_symbol): Remove.
11018 (allocate_template_symbol): Remove.
11019 * dwarf2/read.c (fixup_go_packaging): Use "new".
11020 (new_symbol): Use "new".
11021 (read_variable): Don't call initialize_objfile_symbol. Use
11023 (read_func_scope): Use "new".
11024 * xcoffread.c (process_xcoff_symbol): Don't call
11025 initialize_objfile_symbol.
11026 (SYMBOL_DUP): Remove.
11027 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
11029 * symtab.h (allocate_symbol, initialize_objfile_symbol)
11030 (allocate_template_symbol): Don't declare.
11031 (struct symbol): Add copy constructor. Change defaults.
11032 * jit.c (finalize_symtab): Use "new".
11033 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
11035 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11036 (common_block_end): Use "new".
11037 * mdebugread.c (parse_symbol): Use "new".
11038 (new_symbol): Likewise.
11040 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11042 * NEWS: Mention changes to help and apropos.
11044 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11046 * command.h (enum command_class): Improve comments, document
11047 that class_alias is for user-defined aliases, give the class
11048 name for each class, remove unused class_xdb.
11049 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
11050 * breakpoint.c (_initialize_breakpoint): Replace class_alias
11051 by a precise class.
11052 * infcmd.c (_initialize_infcmd): Likewise.
11053 * reverse.c (_initialize_reverse): Likewise.
11054 * stack.c (_initialize_stack): Likewise.
11055 * symfile.c (_initialize_symfile): Likewise.
11056 * tracepoint.c (_initialize_tracepoint): Likewise.
11058 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11060 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
11061 when their aliased command is traversed.
11062 (help_cmd): Add fput_command_names_styled call to
11063 output command name and aliases when command has an alias.
11065 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11067 * cli/cli-decode.h (help_cmd_list): Remove declaration.
11068 * cli/cli-decode.c (help_cmd_list): Declare as static,
11069 remove prefix argument, use bool for recurse arg, rework to show the aliases of
11070 a command together with the command.
11071 (fput_command_name_styled, fput_command_names_styled): New functions.
11072 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
11073 fput_command_name_styled.
11074 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
11075 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
11077 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11079 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
11080 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
11081 * command.h (cmd_show_list): Likewise.
11082 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
11083 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
11085 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11087 * unittests/command-def-selftests.c (traverse_command_structure):
11088 Verify all commands of a list have the same prefix command and
11089 that only the top cmdlist commands have a null prefix.
11091 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11093 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
11094 as prefix, not one of its aliases.
11095 (set_cmd_prefix): Remove.
11096 (do_add_cmd): Centralize the setting of the prefix of a command, when
11097 command is defined after its full chain of prefix commands.
11098 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
11099 (add_setshow_cmd_full): Likewise.
11100 (update_prefix_field_of_prefixed_commands): New function.
11101 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
11102 update_prefix_field_of_prefixed_commands.
11103 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
11104 addresses of remote_set_cmdlist and remote_show_cmdlist given
11105 as argument, not the address of an argument.
11106 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11107 * gdb/remote.c (_initialize_remote): Likewise.
11109 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11111 * cli/cli-cmds.c (alias_command): Check for an existing alias
11112 using lookup_cmd_composition, as valid_command_p is too strict
11113 and forbids aliases that are the prefix of an existing alias
11115 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11116 command is properly recognised as a valid command.
11118 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11120 * unittests/help-doc-selftests.c: Rename to
11121 unittests/command-def-selftests.c
11122 * unittests/command-def-selftests.c (help_doc_tests): Update some
11124 (command_structure_tests, traverse_command_structure): New namespace
11126 (command_structure_invariants_tests): New function.
11127 (_initialize_command_def_selftests) Renamed from
11128 _initialize_help_doc_selftests, register command_structure_invariants
11131 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11133 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11134 an alias of 'show'.
11136 2020-05-15 Joel Brobecker <brobecker@adacore.com>
11138 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11139 ada_is_fixed_point_type. Update all callers.
11140 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11142 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11143 Update all callers.
11144 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11145 print_fixed_point_type. Update all callers.
11146 * ada-valprint.c (ada_value_print_num): Replace call to
11147 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11149 2020-05-14 Kevin Buettner <kevinb@redhat.com>
11151 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11153 (cpu_supports_bts): Add CV_AMD case.
11155 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11156 Simon Marchi <simon.marchi@efficios.com>
11158 * infrun.c (stop_all_threads): Collect multiple wait events at
11161 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11163 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11164 type::code instead.
11166 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11168 * gdbtypes.h (struct type) <code, set_code>: New methods.
11169 (TYPE_CODE): Use type::code. Change all call sites used to set
11170 the code to use type::set_code instead.
11172 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11173 Tom de Vries <tdevries@suse.de>
11174 Pedro Alves <palves@redhat.com>
11177 * infrun.c (stop_all_threads): Do NOT ignore
11178 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11179 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11181 (handle_no_resumed): Remove code handling a live inferior with no
11183 * remote.c (has_single_non_exited_thread): New.
11184 (remote_target::update_thread_list): Do not delete a thread if is
11185 the last thread of the process.
11186 * thread.c (thread_select): Call delete_exited_threads instead of
11189 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11191 * infrun.c (stop_all_threads): Enable/disable thread events of all
11192 targets. Move a debug message denoting the end of the function
11193 into the SCOPED_EXIT block.
11195 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11197 * process-stratum-target.h: Include <set>.
11198 (all_non_exited_process_targets, switch_to_target_no_thread): New
11199 function declarations.
11200 * process-stratum-target.c (all_non_exited_process_targets)
11201 (switch_to_target_no_thread): New function implementations.
11203 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11205 * infrun.c (handle_inferior_event): Extract out a piece of code
11207 (mark_non_executing_threads): ...this new function.
11209 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11211 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11214 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11216 * regcache.c (regcache_read_pc_protected): New function
11217 implementation that returns 0 if the PC cannot read via
11218 'regcache_read_pc'.
11219 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11220 instead of 'regcache_read_pc'.
11221 (keep_going_pass_signal): Ditto.
11223 2020-05-13 Tom Tromey <tromey@adacore.com>
11225 * ada-lang.c (align_value): Remove.
11226 (ada_template_to_fixed_record_type_1): Use align_up.
11228 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11230 * async-event.c: Update the copyright year.
11231 * async-event.h: Update the copyright year.
11233 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
11235 * objfiles.h (is_addr_in_objfile,
11236 shared_objfile_contains_address_p): Return bool.
11237 * objfile.c (is_addr_in_objfile,
11238 shared_objfile_contains_address_p): Return bool.
11240 2020-05-11 Tom Tromey <tromey@adacore.com>
11242 * cli/cli-cmds.c (info_command): Restore.
11243 (_initialize_cli_cmds): Use add_prefix_command for "info".
11244 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11246 2020-05-11 Tom Tromey <tromey@adacore.com>
11248 * ada-lang.c (ada_value_primitive_field): Now public.
11249 * ada-lang.h (ada_value_primitive_field): Declare.
11250 * ada-valprint.c (print_field_values): Use
11251 ada_value_primitive_field for wrapper fields.
11253 2020-05-11 Tom de Vries <tdevries@suse.de>
11255 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11258 2020-05-11 Tom de Vries <tdevries@suse.de>
11261 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11262 with length 0, if not gdb-produced.
11263 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11265 2020-05-09 Tom de Vries <tdevries@suse.de>
11268 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11271 2020-05-09 Tom Tromey <tom@tromey.com>
11273 * top.c (server_command): Now bool.
11274 * top.h (server_command): Now bool.
11276 2020-05-08 Tom Tromey <tromey@adacore.com>
11278 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11279 already being processed.
11281 2020-05-08 Tom Tromey <tom@tromey.com>
11283 * printcmd.c (struct display) <next>: Remove.
11284 <display>: New constructor.
11285 <exp_string>: Now a std::string.
11286 <enabled_p>: Now a bool.
11287 (display_number): Move definition earlier.
11288 (displays): Rename from display_chain. Now a std::vector.
11289 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11290 (display_command): Update.
11291 (do_one_display, disable_display)
11292 (enable_disable_display_command, do_enable_disable_display):
11294 (free_display): Remove.
11295 (clear_displays): Rewrite.
11296 (delete_display): Update.
11297 (map_display_numbers): Use function_view. Remove "data"
11299 (do_delete_display): Remove.
11300 (undisplay_command): Update.
11301 (do_one_display, do_displays, disable_display)
11302 (info_display_command): Update.
11303 (do_enable_disable_display): Remove.
11304 (enable_disable_display_command)
11305 (clear_dangling_display_expressions): Update.
11307 2020-05-08 Tom Tromey <tom@tromey.com>
11309 * symtab.c (set_symbol_cache_size)
11310 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11311 (maintenance_print_symbol_cache_statistics): Update.
11312 * symmisc.c (print_symbol_bcache_statistics)
11313 (print_objfile_statistics, maintenance_print_objfiles)
11314 (maintenance_info_symtabs, maintenance_check_symtabs)
11315 (maintenance_expand_symtabs, maintenance_info_line_tables):
11317 * symfile-debug.c (set_debug_symfile): Update.
11318 * source.c (forget_cached_source_info): Update.
11319 * python/python.c (gdbpy_progspaces): Update.
11320 * psymtab.c (maintenance_info_psymtabs): Update.
11321 * probe.c (parse_probes): Update.
11322 * linespec.c (iterate_over_all_matching_symtabs)
11323 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11324 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11325 * exec.c (exec_target::close): Update.
11326 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11327 * breakpoint.c (print_one_breakpoint_location)
11328 (create_longjmp_master_breakpoint)
11329 (create_std_terminate_master_breakpoint): Update.
11330 * progspace.c (program_spaces): Now a std::vector.
11331 (maybe_new_address_space): Update.
11332 (add_program_space): Remove.
11333 (program_space::program_space): Update.
11334 (remove_program_space): Update.
11335 (number_of_program_spaces): Remove.
11336 (print_program_space, update_address_spaces): Update.
11337 * progspace.h (program_spaces): Change type.
11338 (ALL_PSPACES): Remove.
11339 (number_of_program_spaces): Don't declare.
11340 (struct program_space) <next>: Remove.
11342 2020-05-08 Tom Tromey <tom@tromey.com>
11344 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11345 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11346 (enable_break): Update.
11347 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11348 (frv_fdpic_find_canonical_descriptor): Update.
11349 (frv_fetch_objfile_link_map): Update.
11350 * progspace.c (program_space::free_all_objfiles): Update.
11351 (program_space::solibs): New method.
11352 * progspace.h (struct program_space) <solibs>: New method.
11353 * solist.h (master_so_list): Don't declare.
11354 (ALL_SO_LIBS): Remove.
11355 * solib.h (so_list_head): Remove.
11356 (update_solib_list): Update comment.
11357 * solib.c (master_so_list): Remove.
11358 (solib_used, update_solib_list, solib_add)
11359 (info_sharedlibrary_command, clear_solib)
11360 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11362 2020-05-08 Tom Tromey <tom@tromey.com>
11364 * extension.c (extension_languages): Now a std::array.
11365 (ALL_EXTENSION_LANGUAGES): Remove.
11366 (get_ext_lang_defn, get_ext_lang_of_file)
11367 (eval_ext_lang_from_control_command): Update.
11368 (finish_ext_lang_initialization)
11369 (auto_load_ext_lang_scripts_for_objfile)
11370 (ext_lang_type_printers::ext_lang_type_printers)
11371 (apply_ext_lang_type_printers)
11372 (ext_lang_type_printers::~ext_lang_type_printers)
11373 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11374 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11375 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11376 (get_matching_xmethod_workers, ext_lang_colorize)
11377 (ext_lang_before_prompt): Update.
11378 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11380 2020-05-08 Tom Tromey <tom@tromey.com>
11382 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11384 <swap_string, m_string>: Remove.
11385 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11387 * stabsread.c (define_symbol, read_type): Update.
11388 * linespec.c (find_linespec_symbols): Update.
11389 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11390 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11391 * dbxread.c (read_dbx_symtab): Update.
11392 * cp-support.h (cp_canonicalize_string_full)
11393 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11394 Return unique_xmalloc_ptr.
11395 * cp-support.c (inspect_type): Update.
11396 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11397 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11399 * c-typeprint.c (print_name_maybe_canonical): Update.
11400 * break-catch-throw.c (check_status_exception_catchpoint):
11403 2020-05-08 Tom de Vries <tdevries@suse.de>
11405 * infrun.c (follow_fork): Copy current_line and current_symtab to
11408 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11410 * async-event.c (struct async_signal_handler, struct
11411 async_event_handler): Reformat, remove typedef.
11413 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11415 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11416 access thistype->main_type->dyn_prop_list directly.
11418 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11420 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11421 (remove_dyn_prop): Remove. Update all users to use
11422 type::remove_dyn_prop.
11423 * gdbtypes.c (remove_dyn_prop): Rename to...
11424 (type::remove_dyn_prop): ... this.
11426 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11428 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11429 (add_dyn_prop): Remove. Update all users to use
11430 type::add_dyn_prop.
11431 * gdbtypes.c (add_dyn_prop): Rename to...
11432 (type::add_dyn_prop): ... this.
11434 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11436 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11437 (get_dyn_prop): Remove. Update all users to use
11439 * gdbtypes.c (get_dyn_prop): Rename to...
11440 (type::dyn_prop): ... this.
11442 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11444 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11446 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11448 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11449 instruction, skip it if it's there.
11451 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11453 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11455 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11457 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11458 * gdbtypes.c (recursive_dump_type): Remove use of
11461 2020-05-03 Tom Tromey <tom@tromey.com>
11463 * breakpoint.c (catch_command, tcatch_command): Remove.
11464 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11465 add_show_prefix_cmd.
11466 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11467 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11469 (add_internal_problem_command): Use add_basic_prefix_cmd,
11470 add_show_prefix_cmd.
11471 * mips-tdep.c (set_mipsfpu_command): Remove.
11472 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11473 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11474 (_initialize_index_cache): Use add_basic_prefix_cmd.
11475 * memattr.c (dummy_cmd): Remove.
11476 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11477 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11478 (_initialize_tui_win): Use add_basic_prefix_cmd,
11479 add_show_prefix_cmd.
11480 * cli/cli-logging.c (set_logging_command): Remove.
11481 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11482 add_show_prefix_cmd.
11483 (show_logging_command): Remove.
11484 * target.c (target_command): Remove.
11485 (add_target): Use add_basic_prefix_cmd.
11487 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11489 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11491 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11493 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11496 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11498 * nbsd-nat.c (nbsd_enable_proc_events)
11499 (nbsd_nat_target::post_startup_inferior): Add.
11500 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11501 (nbsd_nat_target::update_thread_list): Rewrite.
11502 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11503 "PTRACE_LWP_CREATE".
11504 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11506 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11508 * stack.c (_initialize_stack): Remove duplicated creation
11509 of "frame" command and "f" alias.
11511 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11514 * gdbtypes.c (check_typedef): Calculate size of array of
11517 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11520 * i386-tdep.c (i386_push_dummy_call): Call
11521 i386_thiscall_push_dummy_call.
11522 (i386_thiscall_push_dummy_call): New function.
11523 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11524 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11525 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11527 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11529 * gdbarch.sh (do_read): Add shellcheck disable directive for
11532 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11534 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11535 "referenced but not assigned" warning.
11537 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11539 * gdbarch.sh: Remove code that sets fallbackdefault.
11541 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11543 * gdbarch.sh: Use shell operators && and || instead of
11546 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11548 * gdbarch.sh: Use $(...) instead of `...`.
11550 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11552 * gdbarch.sh: Use double quotes around variables.
11554 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11556 * gdbarch.sh: Use %s with printf, instead of variables in the
11559 2020-04-29 Tom Tromey <tromey@adacore.com>
11562 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11564 (read_enumeration_type): Call
11565 update_enumeration_type_from_children later. Update comments.
11566 (process_enumeration_scope): Don't create type fields.
11568 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11570 * nbsd-tdep.c: Include "xml-syscall.h".
11571 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11573 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11575 * nbsd-nat.c: Include "sys/wait.h".
11576 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11577 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11578 (nbsd_nat_target::remove_exec_catchpoint)
11579 (nbsd_nat_target::set_syscall_catchpoint): Add.
11580 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11581 (nbsd_nat_target::insert_exec_catchpoint)
11582 (nbsd_nat_target::remove_exec_catchpoint)
11583 (nbsd_nat_target::set_syscall_catchpoint): Add.
11584 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11585 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11586 `nbsd_get_syscall_number'.
11588 2020-04-29 Tom Tromey <tom@tromey.com>
11590 * stack.c (print_block_frame_labels): Remove.
11592 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11595 * ada-valprint.c (val_print_packed_array_elements): Move array
11596 end bracket to new line.
11597 (ada_val_print_string): Remove extra spaces before first array
11599 * c-valprint.c (c_value_print_array): Likewise.
11600 * m2-valprint.c (m2_print_array_contents): Likewise.
11601 (m2_value_print_inner): Likewise.
11602 * p-valprint.c (pascal_value_print_inner): Likewise.
11603 * valprint.c (generic_val_print_array): Likewise.
11604 (value_print_array_elements): Move first array element and array
11605 end bracket to new line.
11607 2020-04-29 Tom de Vries <tdevries@suse.de>
11610 * linespec.c (find_method): Fix ix calculation.
11612 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11614 * syscalls/update-netbsd.sh: New file.
11615 * syscalls/netbsd.xml: Regenerate.
11616 * data-directory/Makefile.in: Register `netbsd.xml' in
11619 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11621 * syscalls/update-freebsd.sh: Add double quotes.
11623 2020-04-28 Tom Tromey <tom@tromey.com>
11626 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11627 (cmdpy_init): Allow class_tui.
11629 2020-04-28 Mark Williams <mark@myosotissp.com>
11632 * dwarf2read.c: Add missing assingments to list_in_scope when
11633 start_symtab was already called.
11635 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11638 * dwarf2/read.c (offset_map_type): Use
11639 gdb:hash_enum<sect_offset> as hash function.
11641 2020-04-28 Tom de Vries <tdevries@suse.de>
11643 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11644 with DW_AT_signature.
11646 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11648 * configure.ac: Remove check for fs_base/gs_base in
11650 * configure: Re-generate.
11651 * config.in: Re-generate.
11652 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11653 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11654 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11656 2020-04-27 Luis Machado <luis.machado@linaro.org>
11658 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11659 problematic inline frame unwinding situation.
11660 * frame.c (frame_id_computed_p): New function.
11661 * frame.h (frame_id_computed_p): New prototype.
11663 2020-04-26 Tom Tromey <tom@tromey.com>
11665 * command.h (enum command_class) <class_pseudo>: Remove.
11667 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11669 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11672 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11674 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11675 `PT_GET_PROCESS_STATE' block.
11677 2020-04-24 Tom Tromey <tom@tromey.com>
11679 * symtab.h (symbol_get_demangled_name): Don't declare.
11680 * symtab.c (symbol_get_demangled_name): Remove.
11681 (general_symbol_info::natural_name)
11682 (general_symbol_info::demangled_name): Update.
11684 2020-04-24 Tom Tromey <tom@tromey.com>
11687 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11689 2020-04-24 Tom Tromey <tom@tromey.com>
11692 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11694 (new_symbol): Likewise.
11695 * compile/compile-object-load.c (get_out_value_type): Use
11696 symbol_matches_search_name.
11698 2020-04-24 Tom Tromey <tom@tromey.com>
11700 * dwarf2/read.c (add_partial_symbol): Do not call
11701 compute_and_set_names.
11703 2020-04-24 Tom Tromey <tom@tromey.com>
11705 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11708 2020-04-24 Tom Tromey <tom@tromey.com>
11710 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11711 (add_psymbol_to_list): New overload. Make old overload call new
11713 * psympriv.h (add_psymbol_to_list): New overload.
11715 2020-04-24 Tom Tromey <tom@tromey.com>
11717 * dwarf2/read.c (partial_die_info::read) <case
11718 DW_AT_linkage_name>: Use value_as_string.
11719 (dwarf2_string_attr): Use value_as_string.
11720 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11722 * dwarf2/attribute.c (attribute::value_as_string): New method.
11724 2020-04-24 Tom Tromey <tom@tromey.com>
11726 * symtab.c (general_symbol_info::natural_name)
11727 (general_symbol_info::demangled_name): Check for language_rust.
11729 2020-04-24 Tom Tromey <tom@tromey.com>
11731 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11732 (dwarf2_physname): ... from here.
11733 (partial_die_info::read): Add Rust "{" hack.
11735 2020-04-24 Tom Tromey <tom@tromey.com>
11737 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11739 (symbol_set_demangled_name): Don't declare.
11740 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11741 symbol_set_demangled_name.
11742 (general_symbol_info::set_language)
11743 (general_symbol_info::compute_and_set_names): Update.
11744 * minsyms.c (minimal_symbol_reader::install): Update.
11745 * dwarf2/read.c (new_symbol): Update.
11747 2020-04-24 Tom Tromey <tromey@adacore.com>
11750 * python/py-type.c (convert_field): Handle
11751 FIELD_LOC_KIND_DWARF_BLOCK.
11752 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11753 (typy_get_dynamic): Nw function.
11754 (type_object_getset): Add "dynamic".
11757 2020-04-24 Tom Tromey <tromey@adacore.com>
11759 * ada-typeprint.c (print_choices, print_variant_part)
11760 (print_record_field_types_dynamic): New functions.
11761 (print_record_field_types): Use print_record_field_types_dynamic.
11763 2020-04-24 Tom Tromey <tromey@adacore.com>
11765 * dwarf2/read.c (handle_data_member_location): New overload.
11766 (dwarf2_add_field): Use it.
11767 (decode_locdesc): Add "computed" parameter. Update comment.
11768 * gdbtypes.c (is_dynamic_type_internal): Also look for
11769 FIELD_LOC_KIND_DWARF_BLOCK.
11770 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11771 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11772 virtual base classes.
11773 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11774 FIELD_LOC_KIND_DWARF_BLOCK.
11776 2020-04-24 Tom Tromey <tromey@adacore.com>
11778 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11779 * gdbtypes.c (is_dynamic_type_internal): Check
11780 TYPE_HAS_DYNAMIC_LENGTH.
11781 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11782 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11784 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11787 2020-04-24 Tom Tromey <tromey@adacore.com>
11789 * dwarf2/read.c (struct variant_field): Rewrite.
11790 (struct variant_part_builder): New.
11791 (struct nextfield): Remove "variant" field. Add "offset".
11792 (struct field_info): Add "current_variant_part" and
11794 (alloc_discriminant_info): Remove.
11795 (alloc_rust_variant): New function.
11796 (quirk_rust_enum): Update.
11797 (dwarf2_add_field): Set "offset" member. Don't handle
11798 DW_TAG_variant_part.
11799 (offset_map_type): New typedef.
11800 (convert_variant_range, create_one_variant)
11801 (create_one_variant_part, create_variant_parts)
11802 (add_variant_property): New functions.
11803 (dwarf2_attach_fields_to_type): Call add_variant_property.
11804 (read_structure_type): Don't handle DW_TAG_variant_part.
11805 (handle_variant_part, handle_variant): New functions.
11806 (handle_struct_member_die): Use them.
11807 (process_structure_scope): Don't handle variant parts.
11808 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11809 (struct discriminant_info): Remove.
11810 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11811 (struct main_type) <flag_discriminated_union>: Remove.
11812 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11813 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11814 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11816 * valops.c (value_union_variant): Remove.
11817 * value.h (value_union_variant): Don't declare.
11819 2020-04-24 Tom Tromey <tromey@adacore.com>
11821 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11822 (ada_value_primitive_packed_val): Update.
11823 * ada-valprint.c (ada_value_print_1): Update.
11824 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11825 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11826 just an address. Use evaluate_for_locexpr_baton.
11827 (dwarf2_evaluate_property): Update.
11828 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11830 * findvar.c (default_read_var_value): Update.
11831 * gdbtypes.c (compute_variant_fields_inner)
11832 (resolve_dynamic_type_internal): Update.
11833 (resolve_dynamic_type): Change type of valaddr parameter.
11834 * gdbtypes.h (resolve_dynamic_type): Update.
11835 * valarith.c (value_subscripted_rvalue): Update.
11836 * value.c (value_from_contents_and_address): Update.
11838 2020-04-24 Tom Tromey <tromey@adacore.com>
11840 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11841 "push_initial_value" parameter.
11842 (dwarf2_evaluate_property): Likewise.
11843 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11845 2020-04-24 Tom Tromey <tromey@adacore.com>
11847 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11848 (variant::matches, compute_variant_fields_recurse)
11849 (compute_variant_fields_inner, compute_variant_fields): New
11851 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11852 Use resolved_type after type is made.
11853 (operator==): Add new cases.
11854 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11855 (struct discriminant_range, struct variant, struct variant_part):
11857 (union dynamic_prop_data) <variant_parts, original_type>: New
11859 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11860 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11862 * value.c (unpack_bits_as_long): Now public.
11863 * value.h (unpack_bits_as_long): Declare.
11865 2020-04-24 Tom Tromey <tromey@adacore.com>
11867 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11868 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11870 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11872 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11874 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11876 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11877 (remove_fork_catchpoint, post_startup_inferior)
11878 (post_attach): Move...
11879 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11880 (remove_fork_catchpoint, post_startup_inferior)
11881 (post_attach): ...here.
11882 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11883 (remove_fork_catchpoint, post_startup_inferior)
11884 (post_attach): Move...
11885 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11886 (remove_fork_catchpoint, post_startup_inferior)
11887 (post_attach): ...here.
11889 2020-04-24 Tom Tromey <tromey@adacore.com>
11891 * nat/windows-nat.h (struct windows_thread_info)
11892 <pc_adjusted>: New member.
11893 * windows-nat.c (windows_fetch_one_register): Check
11895 (windows_nat_target::get_windows_debug_event)
11896 (windows_nat_target::wait): Set pc_adjusted.
11898 2020-04-24 Tom de Vries <tdevries@suse.de>
11900 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11901 Run gdb-add-index inside temp dir.
11903 2020-04-23 Tom Tromey <tromey@adacore.com>
11905 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11908 2020-04-23 Luis Machado <luis.machado@linaro.org>
11910 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11911 get_frame_register instead of gdbarch_unwind_pc.
11913 2020-04-23 Tom de Vries <tdevries@suse.de>
11915 * symtab.c (lookup_global_symbol): Prefer def over decl.
11917 2020-04-23 Tom de Vries <tdevries@suse.de>
11920 * block.c (best_symbol, better_symbol): Promote to external.
11921 * block.h (best_symbol, better_symbol): Declare.
11922 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11925 2020-04-23 Tom Tromey <tromey@adacore.com>
11928 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11929 "const char *", not a "const std::string &".
11930 <name_and_matcher::operator==>: Update.
11931 * unittests/lookup_name_info-selftests.c: Change type of
11934 2020-04-23 Tom Tromey <tom@tromey.com>
11936 * inferior.h (iterate_over_inferiors): Don't declare.
11937 * inferior.c (iterate_over_inferiors): Remove.
11938 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11940 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11941 use iterate_over_inferiors.
11942 (darwin_resume_inferior_it)
11943 (struct resume_inferior_threads_param)
11944 (darwin_resume_inferior_threads_it): Remove.
11945 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11947 2020-04-23 Tom de Vries <tdevries@suse.de>
11949 * blockframe.c (find_pc_partial_function): Use
11950 find_pc_sect_compunit_symtab rather than
11951 objfile->sf->qf->find_pc_sect_compunit_symtab.
11953 2020-04-22 Tom de Vries <tdevries@suse.de>
11956 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11959 2020-04-22 Tom de Vries <tdevries@suse.de>
11962 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11965 2020-04-22 Tom de Vries <tdevries@suse.de>
11968 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11969 CU if already created.
11971 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11973 * infrun.c (displaced_step_fixup): Switch to the event_thread
11974 before calling displaced_step_restore, not after.
11976 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11978 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11979 its inferior is not recorded by us.
11980 (record_btrace_target_open): Replace call to
11981 all_non_exited_threads () with call to current_inferior
11982 ()->non_exited_threads ().
11983 (record_btrace_target::stop_recording): Likewise.
11984 (record_btrace_target::close): Likewise.
11985 (record_btrace_target::wait): Likewise.
11986 (record_btrace_target::record_stop_replaying): Likewise.
11988 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11990 * btrace.c (btrace_enable): Throw an error on double enables and
11991 when enabling recording fails.
11992 (btrace_disable): Throw an error if the thread is not recorded.
11994 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11996 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11997 request if we do not have a thread_info.
11999 2020-04-21 Tom de Vries <tdevries@suse.de>
12003 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
12004 exception in get_frame_id.
12006 2020-04-20 Tom Tromey <tromey@adacore.com>
12008 * python/python.c (struct gdbpy_event): Mark move constructor as
12010 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
12011 constructor as noexcept.
12012 * completer.h (struct completion_result): Mark move constructor as
12014 * completer.c (completion_result::completion_result): Use
12015 initialization style. Don't call reset_match_list.
12017 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
12019 * MAINTAINERS (Write After Approval): Add myself.
12021 2020-04-18 Tom Tromey <tom@tromey.com>
12023 * windows-tdep.c (init_w32_command_list)
12024 (w32_prefix_command_valid): Restore.
12025 (_initialize_windows_tdep): Call init_w32_command_list.
12027 2020-04-18 Tom Tromey <tom@tromey.com>
12029 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
12030 * value.c (value_fn_field): Update.
12031 * valops.c (find_function_in_inferior)
12032 (value_allocate_space_in_inferior): Update.
12033 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12035 * tui/tui-source.c (tui_source_window::set_contents): Update.
12036 * symtab.c (lookup_global_or_static_symbol)
12037 (find_function_start_sal_1, skip_prologue_sal)
12038 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
12039 * symmisc.c (dump_msymbols, dump_symtab_1)
12040 (maintenance_print_one_line_table): Update.
12041 * symfile.c (init_entry_point_info, section_is_mapped)
12042 (list_overlays_command, simple_read_overlay_table)
12043 (simple_overlay_update_1): Update.
12044 * stap-probe.c (handle_stap_probe): Update.
12045 * stabsread.c (dbx_init_float_type, define_symbol)
12046 (read_one_struct_field, read_enum_type, read_range_type): Update.
12047 * source.c (info_line_command): Update.
12048 * python/python.c (gdbpy_source_objfile_script)
12049 (gdbpy_execute_objfile_script): Update.
12050 * python/py-type.c (save_objfile_types): Update.
12051 * python/py-objfile.c (py_free_objfile): Update.
12052 * python/py-inferior.c (python_new_objfile): Update.
12053 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
12054 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
12055 (maintenance_check_psymtabs): Update.
12056 * printcmd.c (info_address_command): Update.
12057 * objfiles.h (struct objfile) <arch>: New method, from
12059 (get_objfile_arch): Don't declare.
12060 * objfiles.c (get_objfile_arch): Remove.
12061 (filter_overlapping_sections): Update.
12062 * minsyms.c (msymbol_is_function): Update.
12063 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
12064 (output_nondebug_symbol): Update.
12065 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
12066 (mdebug_expand_psymtab): Update.
12067 * machoread.c (macho_add_oso_symfile): Update.
12068 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
12070 * linux-fork.c (checkpoint_command): Update.
12071 * linespec.c (convert_linespec_to_sals): Update.
12072 * jit.c (finalize_symtab): Update.
12073 * infrun.c (insert_exception_resume_from_probe): Update.
12074 * ia64-tdep.c (ia64_find_unwind_table): Update.
12075 * hppa-tdep.c (internalize_unwinds): Update.
12076 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
12078 * gcore.c (call_target_sbrk): Update.
12079 * elfread.c (record_minimal_symbol, elf_symtab_read)
12080 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
12081 (elf_gnu_ifunc_resolve_by_got): Update.
12082 * dwarf2/read.c (create_addrmap_from_index)
12083 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12084 (read_debug_names_from_section)
12085 (process_psymtab_comp_unit_reader, add_partial_symbol)
12086 (add_partial_subprogram, process_full_comp_unit)
12087 (read_file_scope, read_func_scope, read_lexical_block_scope)
12088 (read_call_site_scope, dwarf2_ranges_read)
12089 (dwarf2_record_block_ranges, dwarf2_add_field)
12090 (mark_common_block_symbol_computed, read_tag_pointer_type)
12091 (read_tag_string_type, dwarf2_init_float_type)
12092 (dwarf2_init_complex_target_type, read_base_type)
12093 (partial_die_info::read, partial_die_info::read)
12094 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
12095 (dwarf2_fetch_die_loc_sect_off): Update.
12096 * dwarf2/loc.c (dwarf2_find_location_expression)
12097 (class dwarf_evaluate_loc_desc, rw_pieced_value)
12098 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
12099 (dwarf2_loc_desc_get_symbol_read_needs)
12100 (locexpr_describe_location_piece, locexpr_describe_location_1)
12101 (loclist_describe_location): Update.
12102 * dwarf2/index-write.c (write_debug_names): Update.
12103 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
12104 * dtrace-probe.c (dtrace_process_dof): Update.
12105 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12106 (process_one_symbol): Update.
12107 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12108 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12109 (coff_read_enum_type): Update.
12110 * cli/cli-cmds.c (edit_command, list_command): Update.
12111 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12112 * breakpoint.c (create_overlay_event_breakpoint)
12113 (create_longjmp_master_breakpoint)
12114 (create_std_terminate_master_breakpoint)
12115 (create_exception_master_breakpoint, get_sal_arch): Update.
12116 * block.c (block_gdbarch): Update.
12117 * annotate.c (annotate_source_line): Update.
12119 2020-04-17 Tom Tromey <tromey@adacore.com>
12121 * auto-load.c (show_auto_load_cmd): Remove.
12122 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12123 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12124 (maintenance_print_arc_command): Remove.
12125 * tui/tui-win.c (tui_command): Remove.
12126 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12127 * tui/tui-layout.c (tui_layout_command): Remove.
12128 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12129 * python/python.c (user_set_python, user_show_python): Remove.
12130 (_initialize_python): Use add_basic_prefix_cmd,
12131 add_show_prefix_cmd.
12132 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12133 (install_gdb_commands): Use add_basic_prefix_cmd,
12134 add_show_prefix_cmd.
12135 (info_guile_command): Remove.
12136 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12137 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12138 add_show_prefix_cmd.
12139 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12140 Remove do_set and do_show parameters.
12141 * cli/cli-style.c (set_style, show_style): Remove.
12142 (_initialize_cli_style): Use add_basic_prefix_cmd,
12143 add_show_prefix_cmd.
12144 (cli_style_option::add_setshow_commands): Remove do_set and
12145 do_show parameters.
12146 (cli_style_option::add_setshow_commands): Use
12147 add_basic_prefix_cmd, add_show_prefix_cmd.
12148 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12149 (set_style_name): Remove.
12150 * cli/cli-dump.c (dump_command, append_command): Remove.
12151 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12152 (tekhex_dump_command, binary_dump_command)
12153 (binary_append_command): Remove.
12154 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12155 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12156 (init_w32_command_list): Remove; move into ...
12157 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12158 * valprint.c (set_print, show_print, set_print_raw)
12159 (show_print_raw): Remove.
12160 (_initialize_valprint): Use add_basic_prefix_cmd,
12161 add_show_prefix_cmd.
12162 * typeprint.c (set_print_type, show_print_type): Remove.
12163 (_initialize_typeprint): Use add_basic_prefix_cmd,
12164 add_show_prefix_cmd.
12165 * record.c (set_record_command, show_record_command): Remove.
12166 (_initialize_record): Use add_basic_prefix_cmd,
12167 add_show_prefix_cmd.
12168 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12169 add_show_prefix_cmd.
12170 (info_command, show_command, set_debug, show_debug): Remove.
12171 * top.h (set_history, show_history): Don't declare.
12172 * top.c (set_history, show_history): Remove.
12173 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12174 (unset_tdesc_cmd): Remove.
12175 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12176 add_show_prefix_cmd.
12177 * symtab.c (info_module_command): Remove.
12178 (_initialize_symtab): Use add_basic_prefix_cmd.
12179 * symfile.c (overlay_command): Remove.
12180 (_initialize_symfile): Use add_basic_prefix_cmd.
12181 * sparc64-tdep.c (info_adi_command): Remove.
12182 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12183 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12184 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12185 add_show_prefix_cmd.
12186 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12187 (_initialize_serial): Use add_basic_prefix_cmd,
12188 add_show_prefix_cmd.
12189 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12190 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12191 add_show_prefix_cmd.
12192 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12193 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12194 add_show_prefix_cmd.
12195 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12196 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12197 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12198 add_show_prefix_cmd.
12199 * remote.c (remote_command, set_remote_cmd): Remove.
12200 (_initialize_remote): Use add_basic_prefix_cmd.
12201 * record-full.c (set_record_full_command)
12202 (show_record_full_command): Remove.
12203 (_initialize_record_full): Use add_basic_prefix_cmd,
12204 add_show_prefix_cmd.
12205 * record-btrace.c (cmd_set_record_btrace)
12206 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12207 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12208 (cmd_show_record_btrace_pt): Remove.
12209 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12210 add_show_prefix_cmd.
12211 * ravenscar-thread.c (set_ravenscar_command)
12212 (show_ravenscar_command): Remove.
12213 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12214 add_show_prefix_cmd.
12215 * mips-tdep.c (show_mips_command, set_mips_command)
12216 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12217 add_show_prefix_cmd.
12218 * maint.c (maintenance_command, maintenance_info_command)
12219 (maintenance_check_command, maintenance_print_command)
12220 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12221 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12222 add_show_prefix_cmd.
12223 (show_per_command_cmd): Remove.
12224 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12226 (maintenance_show_test_settings_cmd): Remove.
12227 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12228 add_show_prefix_cmd.
12229 * maint-test-options.c (maintenance_test_options_command):
12231 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12232 * macrocmd.c (macro_command): Remove
12233 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12234 * language.c (set_check, show_check): Remove.
12235 (_initialize_language): Use add_basic_prefix_cmd,
12236 add_show_prefix_cmd.
12237 * infcmd.c (unset_command): Remove.
12238 (_initialize_infcmd): Use add_basic_prefix_cmd.
12239 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12240 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12241 add_show_prefix_cmd.
12242 * go32-nat.c (go32_info_dos_command): Remove.
12243 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12244 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12245 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12246 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12247 (_initialize_frame): Use add_basic_prefix_cmd,
12248 add_show_prefix_cmd.
12249 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12250 (_initialize_dcache): Use add_basic_prefix_cmd,
12251 add_show_prefix_cmd.
12252 * cp-support.c (maint_cplus_command): Remove.
12253 (_initialize_cp_support): Use add_basic_prefix_cmd.
12254 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12255 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12256 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12257 add_basic_prefix_cmd, add_show_prefix_cmd.
12258 * breakpoint.c (save_command): Remove.
12259 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12260 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12261 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12262 add_show_prefix_cmd.
12263 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12264 (set_ada_command, show_ada_command): Remove.
12265 (_initialize_ada_language): Use add_basic_prefix_cmd,
12266 add_show_prefix_cmd.
12267 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12269 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12271 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12272 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12274 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12276 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12279 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12281 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12282 import table is not at beginning of .idata section.
12284 2020-04-16 Pedro Alves <palves@redhat.com>
12286 * inferior.c (delete_inferior): Use delete operator directly
12287 instead of delete_program_space.
12288 * progspace.c (add_program_space): New, factored out from
12289 program_space::program_space.
12290 (remove_program_space): New, factored out from
12291 delete_program_space.
12292 (program_space::program_space): Remove intro comment. Rewrite.
12293 (program_space::~program_space): Remove intro comment. Call
12294 remove_program_space.
12295 (delete_program_space): Delete.
12296 * progspace.h (program_space::program_space): Make explicit. Move
12297 intro comment here, adjusted.
12298 (program_space::~program_space): Move intro comment here,
12300 (delete_program_space): Remove.
12302 2020-04-16 Tom Tromey <tromey@adacore.com>
12304 * windows-nat.c (windows_nat::handle_access_violation): New
12306 * nat/windows-nat.h (handle_access_violation): Declare.
12307 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12308 windows-nat.c. Call handle_access_violation.
12310 2020-04-16 Tom de Vries <tdevries@suse.de>
12313 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12314 CUs without psymtab.
12316 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12318 * python/python.c (do_start_initialization): Don't call
12319 PyEval_InitThreads for Python 3.9 and beyond.
12321 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12323 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12325 (obsd_nat_target::wait): Likewise.
12327 2020-04-15 Tom Tromey <tromey@adacore.com>
12329 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12330 (DEBUG_EXCEPT): Use debug_printf.
12332 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12334 * completer.c (class completion_tracker::completion_hash_entry)
12335 <hash_name>: New member function.
12336 (completion_tracker::discard_completions): New callback to hash a
12337 completion_hash_entry, pass this to htab_create_alloc.
12339 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12341 * windows-nat.c (windows_make_so): Warn rather than stopping with
12342 an error if realpath() fails.
12344 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12346 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12347 (nbsd_nat_target::info_proc): Add do_status.
12349 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12350 Tom de Vries <tdevries@suse.de>
12353 * psympriv.h (struct partial_symtab::read_symtab)
12354 (struct partial_symtab::expand_psymtab)
12355 (struct partial_symtab::read_dependencies): Update comments.
12356 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12357 read_symtab for includer.
12358 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12359 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12360 (struct dwarf2_include_psymtab::m_readin): Remove.
12361 (struct dwarf2_include_psymtab::includer): New member function.
12362 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12364 2020-04-14 Tom de Vries <tdevries@suse.de>
12367 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12368 with NULL symbol_matcher and lookup_name.
12369 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12371 * dwarf2/read.c (dw2_expand_symtabs_matching)
12372 (dw2_debug_names_expand_symtabs_matching): Same.
12373 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12374 Make lookup_name a pointer. Update comment.
12375 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12376 lookup_name being a pointer.
12377 * symfile.c (expand_symtabs_matching): Same.
12378 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12379 * linespec.c (iterate_over_all_matching_symtabs): Same.
12381 2020-04-13 Tom Tromey <tom@tromey.com>
12383 * run-on-main-thread.c: Update include.
12384 * unittests/main-thread-selftests.c: Update include.
12385 * tui/tui-win.c: Update include.
12386 * tui/tui-io.c: Update include.
12387 * tui/tui-interp.c: Update include.
12388 * tui/tui-hooks.c: Update include.
12389 * top.h: Update include.
12390 * top.c: Update include.
12391 * ser-base.c: Update include.
12392 * remote.c: Update include.
12393 * remote-notif.c: Update include.
12394 * remote-fileio.c: Update include.
12395 * record-full.c: Update include.
12396 * record-btrace.c: Update include.
12397 * python/python.c: Update include.
12398 * posix-hdep.c: Update include.
12399 * mingw-hdep.c: Update include.
12400 * mi/mi-main.c: Update include.
12401 * mi/mi-interp.c: Update include.
12402 * main.c: Update include.
12403 * linux-nat.c: Update include.
12404 * interps.c: Update include.
12405 * infrun.c: Update include.
12406 * inf-loop.c: Update include.
12407 * event-top.c: Update include.
12408 * event-loop.c: Move to ../gdbsupport/.
12409 * event-loop.h: Move to ../gdbsupport/.
12410 * async-event.h: Update include.
12411 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12413 2020-04-13 Tom Tromey <tom@tromey.com>
12415 * tui/tui-win.c: Include async-event.h.
12416 * remote.c: Include async-event.h.
12417 * remote-notif.c: Include async-event.h.
12418 * record-full.c: Include async-event.h.
12419 * record-btrace.c: Include async-event.h.
12420 * infrun.c: Include async-event.h.
12421 * event-top.c: Include async-event.h.
12422 * event-loop.h: Move some declarations to async-event.h.
12423 * event-loop.c: Don't include ser-event.h or top.h. Move some
12424 code to async-event.c.
12425 * async-event.h: New file.
12426 * async-event.c: New file.
12427 * Makefile.in (COMMON_SFILES): Add async-event.c.
12428 (HFILES_NO_SRCDIR): Add async-event.h.
12430 2020-04-13 Tom Tromey <tom@tromey.com>
12432 * utils.c (flush_streams): New function.
12433 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12435 2020-04-13 Tom Tromey <tom@tromey.com>
12437 * event-loop.c (handle_file_event): Use warning, not
12440 2020-04-13 Tom Tromey <tom@tromey.com>
12442 * event-loop.c: Include <chrono>.
12444 2020-04-13 Tom Tromey <tom@tromey.com>
12446 * gdb_select.h: Move to ../gdbsupport/.
12447 * event-loop.c: Update include path.
12448 * top.c: Update include path.
12449 * ser-base.c: Update include path.
12450 * ui-file.c: Update include path.
12451 * ser-tcp.c: Update include path.
12452 * guile/scm-ports.c: Update include path.
12453 * posix-hdep.c: Update include path.
12454 * ser-unix.c: Update include path.
12455 * gdb_usleep.c: Update include path.
12456 * mingw-hdep.c: Update include path.
12457 * inflow.c: Update include path.
12458 * infrun.c: Update include path.
12459 * event-top.c: Update include path.
12461 2020-04-13 Tom Tromey <tom@tromey.com>
12463 * configure: Rebuild.
12464 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12466 2020-04-13 Tom Tromey <tom@tromey.com>
12468 * event-loop.h (start_event_loop): Don't declare.
12469 * event-loop.c (start_event_loop): Move...
12470 * main.c (start_event_loop): ...here. Now static.
12472 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12474 * MAINTAINERS: Update my email address.
12476 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12478 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12481 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12483 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12484 (nbsd_nat_target::info_proc): Add do_cmdline.
12486 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12488 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12489 (nbsd_nat_target::info_proc): Add do_cwd.
12491 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12493 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12495 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12497 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12498 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12499 (nbsd_nat_target::info_proc): New functions.
12500 * nbsd-nat.c (kinfo_get_vmmap): New function.
12501 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12502 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12503 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12504 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12506 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12507 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12508 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12509 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12510 (KINFO_VME_FLAG_GROWS_DOWN): New.
12512 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12514 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12517 2020-04-10 Tom Tromey <tromey@adacore.com>
12519 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12521 2020-04-10 Tom Tromey <tromey@adacore.com>
12523 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12524 separate debug files.
12526 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12528 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12530 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12532 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12533 Check for STATUS_WX86_BREAKPOINT.
12534 (windows_nat_target::wait): Same.
12536 2020-04-10 Tom de Vries <tdevries@suse.de>
12539 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12541 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12543 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12544 (Write After Approval): Remove Tom de Vries.
12546 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12549 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12551 * buildsym.c (record_line): Fix undefined behavior and preserve
12554 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12556 * auxv.h (svr4_auxv_parse): New.
12557 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12558 and generic_auxv_parse.
12559 (svr4_auxv_parse): Add.
12560 * obsd-tdep.c: Include "auxv.h".
12561 (obsd_auxv_parse): Remove.
12562 (obsd_init_abi): Remove comment.
12563 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12564 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12565 * nbsd-tdep.c: Include "auxv.h".
12566 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12568 2020-04-08 Tom Tromey <tromey@adacore.com>
12570 * nat/windows-nat.h (last_wait_event): Don't declare.
12571 (wait_for_debug_event): Update comment.
12572 * nat/windows-nat.c (last_wait_event): Now static.
12574 2020-04-08 Tom Tromey <tromey@adacore.com>
12576 * windows-nat.c (wait_for_debug_event): Move to
12578 * nat/windows-nat.h (wait_for_debug_event): Declare.
12579 * nat/windows-nat.c (wait_for_debug_event): Move from
12580 windows-nat.c. No longer static.
12582 2020-04-08 Tom Tromey <tromey@adacore.com>
12584 * windows-nat.c (get_windows_debug_event): Use
12585 fetch_pending_stop.
12586 * nat/windows-nat.h (fetch_pending_stop): Declare.
12587 * nat/windows-nat.c (fetch_pending_stop): New function.
12589 2020-04-08 Tom Tromey <tromey@adacore.com>
12591 * windows-nat.c (windows_continue): Use matching_pending_stop and
12592 continue_last_debug_event.
12593 * nat/windows-nat.h (matching_pending_stop)
12594 (continue_last_debug_event): Declare.
12595 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12596 (matching_pending_stop, continue_last_debug_event): New
12599 2020-04-08 Tom Tromey <tromey@adacore.com>
12601 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12602 (handle_exception_result): Move to nat/windows-nat.h.
12603 (DEBUG_EXCEPTION_SIMPLE): Remove.
12604 (windows_nat::handle_ms_vc_exception): New function.
12605 (handle_exception): Move to nat/windows-nat.c.
12606 (get_windows_debug_event): Update.
12607 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12609 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12610 (handle_exception_result): Move from windows-nat.c.
12611 (handle_exception): Declare.
12612 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12613 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12616 2020-04-08 Tom Tromey <tromey@adacore.com>
12618 * windows-nat.c (exception_count, event_count): Remove.
12619 (handle_exception, get_windows_debug_event)
12620 (do_initial_windows_stuff): Update.
12622 2020-04-08 Tom Tromey <tromey@adacore.com>
12624 * windows-nat.c (windows_nat::handle_load_dll)
12625 (windows_nat::handle_unload_dll): Rename. No longer static.
12626 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12629 2020-04-08 Tom Tromey <tromey@adacore.com>
12631 * complaints.h (stop_whining): Declare at top-level.
12632 (complaint): Don't declare stop_whining.
12634 2020-04-08 Tom Tromey <tromey@adacore.com>
12636 * windows-nat.c (windows_nat::handle_output_debug_string):
12637 Rename. No longer static.
12638 * nat/windows-nat.h (handle_output_debug_string): Declare.
12640 2020-04-08 Tom Tromey <tromey@adacore.com>
12642 * windows-nat.c (current_process_handle, current_process_id)
12643 (main_thread_id, last_sig, current_event, last_wait_event)
12644 (current_windows_thread, desired_stop_thread_id, pending_stops)
12645 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12646 (display_selectors, fake_create_process)
12647 (get_windows_debug_event): Update.
12648 * nat/windows-nat.h (current_process_handle, current_process_id)
12649 (main_thread_id, last_sig, current_event, last_wait_event)
12650 (current_windows_thread, desired_stop_thread_id, pending_stops)
12651 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12652 * nat/windows-nat.c (current_process_handle, current_process_id)
12653 (main_thread_id, last_sig, current_event, last_wait_event)
12654 (current_windows_thread, desired_stop_thread_id, pending_stops)
12655 (siginfo_er): New globals. Move from windows-nat.c.
12657 2020-04-08 Tom Tromey <tromey@adacore.com>
12659 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12660 (handle_load_dll): Update.
12661 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12663 2020-04-08 Tom Tromey <tromey@adacore.com>
12665 * windows-nat.c (enum thread_disposition_type): Move to
12667 (windows_nat::thread_rec): Rename from thread_rec. No longer
12669 (windows_add_thread, windows_nat_target::fetch_registers)
12670 (windows_nat_target::store_registers, handle_exception)
12671 (windows_nat_target::resume, get_windows_debug_event)
12672 (windows_nat_target::get_tib_address)
12673 (windows_nat_target::thread_name)
12674 (windows_nat_target::thread_alive): Update.
12675 * nat/windows-nat.h (enum thread_disposition_type): Move from
12677 (thread_rec): Declare.
12679 2020-04-08 Tom Tromey <tromey@adacore.com>
12681 * windows-nat.c: Add "using namespace".
12682 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12683 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12685 2020-04-08 Tom Tromey <tromey@adacore.com>
12687 * nat/windows-nat.h (struct windows_thread_info): Declare
12689 * nat/windows-nat.c (~windows_thread_info): New.
12691 2020-04-08 Tom Tromey <tromey@adacore.com>
12694 * windows-nat.c (current_event): Update comment.
12695 (last_wait_event, desired_stop_thread_id): New globals.
12696 (struct pending_stop): New.
12697 (pending_stops): New global.
12698 (windows_nat_target) <stopped_by_sw_breakpoint>
12699 <supports_stopped_by_sw_breakpoint>: New methods.
12700 (windows_fetch_one_register): Add assertions. Adjust PC.
12701 (windows_continue): Handle pending stops. Suspend other threads
12702 when stepping. Use last_wait_event
12703 (wait_for_debug_event): New function.
12704 (get_windows_debug_event): Use wait_for_debug_event. Handle
12705 pending stops. Queue spurious stops.
12706 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12707 (windows_nat_target::kill): Use wait_for_debug_event.
12708 * nat/windows-nat.h (struct windows_thread_info)
12709 <stopped_at_software_breakpoint>: New field.
12710 * nat/windows-nat.c (windows_thread_info::resume): Clear
12711 stopped_at_software_breakpoint.
12713 2020-04-08 Tom Tromey <tromey@adacore.com>
12715 * windows-nat.c (enum thread_disposition_type): New.
12716 (thread_rec): Replace "get_context" parameter with "disposition";
12718 (windows_add_thread, windows_nat_target::fetch_registers)
12719 (windows_nat_target::store_registers, handle_exception)
12720 (windows_nat_target::resume, get_windows_debug_event)
12721 (windows_nat_target::get_tib_address)
12722 (windows_nat_target::thread_name)
12723 (windows_nat_target::thread_alive): Update.
12725 2020-04-08 Tom Tromey <tromey@adacore.com>
12727 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12728 (windows_continue): Use windows_continue::resume.
12729 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12730 resume>: Declare new methods.
12731 * nat/windows-nat.c: New file.
12732 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12734 2020-04-08 Tom Tromey <tromey@adacore.com>
12736 * windows-nat.c (windows_add_thread, windows_delete_thread)
12737 (windows_nat_target::fetch_registers)
12738 (windows_nat_target::store_registers, fake_create_process)
12739 (windows_nat_target::resume, windows_nat_target::resume)
12740 (get_windows_debug_event, windows_nat_target::wait)
12741 (windows_nat_target::pid_to_str)
12742 (windows_nat_target::get_tib_address)
12743 (windows_nat_target::get_ada_task_ptid)
12744 (windows_nat_target::thread_name)
12745 (windows_nat_target::thread_alive): Use lwp, not tid.
12747 2020-04-08 Tom Tromey <tromey@adacore.com>
12749 * windows-nat.c (handle_exception)
12750 (windows_nat_target::thread_name): Update.
12751 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12752 <name>: Now unique_xmalloc_ptr.
12754 2020-04-08 Tom Tromey <tromey@adacore.com>
12756 * windows-nat.c (thread_rec)
12757 (windows_nat_target::fetch_registers): Update.
12758 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12760 <debug_registers_changed, reload_context>: Now bool.
12762 2020-04-08 Tom Tromey <tromey@adacore.com>
12764 * windows-nat.c (windows_add_thread): Use new.
12765 (windows_init_thread_list, windows_delete_thread): Use delete.
12766 (get_windows_debug_event): Update.
12767 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12768 destructor, and initializers.
12770 2020-04-08 Tom Tromey <tromey@adacore.com>
12772 * windows-nat.c (struct windows_thread_info): Remove.
12773 * nat/windows-nat.h: New file.
12775 2020-04-08 Tom Tromey <tromey@adacore.com>
12777 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12778 (thread_rec, windows_add_thread, windows_delete_thread)
12779 (windows_continue): Update.
12781 2020-04-08 Tom Tromey <tromey@adacore.com>
12783 * windows-nat.c (struct windows_thread_info): Remove typedef.
12784 (thread_head): Remove.
12785 (thread_list): New global.
12786 (thread_rec, windows_add_thread, windows_init_thread_list)
12787 (windows_delete_thread, windows_continue): Update.
12789 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12791 * windows-tdep.h (windows_init_abi): Add comment.
12792 (cygwin_init_abi): New declaration.
12793 * windows-tdep.c: Split signal enumeration in two, one for
12794 Windows and one for Cygwin.
12795 (windows_gdb_signal_to_target): Only deal with signal of the
12797 (cygwin_gdb_signal_to_target): New function.
12798 (windows_init_abi): Rename to windows_init_abi_common, don't set
12799 gdb_signal_to_target gdbarch method. Add new new function with
12801 (cygwin_init_abi): New function.
12802 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12803 comment. Don't call windows_init_abi.
12804 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12805 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12806 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12807 i386_windows_init_abi_common, don't call windows_init_abi. Add
12808 a new function of this name.
12809 (i386_cygwin_init_abi): New function.
12810 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12813 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12815 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12817 (dwarf2_read_gdb_index): Update.
12819 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12821 * nbsd-tdep.c: Include "objfiles.h".
12822 (nbsd_skip_solib_resolver): New.
12823 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12825 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12827 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12828 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12829 with DW_LLE_base_addressx are being emitted in DWARFv5.
12830 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12831 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12834 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12836 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12837 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12838 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12839 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12840 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12841 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12842 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12845 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12847 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12848 (read_loclist_index): New function definition.
12849 (lookup_loclist_base): New function definition.
12850 (read_loclist_header): New function definition.
12851 (dwarf2_cu): Add loclist_base and loclist_header field.
12852 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12853 (read_full_die_1): Read the value of DW_AT_loclists_base.
12854 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12855 (read_attribute_value): Handle DW_FORM_loclistx.
12856 (skip_one_die): Handle DW_FORM_loclistx.
12857 (loclist_header): New structure declaration.
12858 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12860 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12862 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12863 constructor. Remove `addr` parameter from other constructor and
12864 add `per_cu` parameter.
12865 * dwarf2/read.c (create_partial_symtab): Update.
12867 2020-04-07 Tom de Vries <tdevries@suse.de>
12870 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12871 (partial_die_info::fixup): Inherit has_const_value.
12873 2020-04-07 Tom de Vries <tdevries@suse.de>
12875 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12876 symbols without address.
12878 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12880 * nbsd-nat.h (struct thread_info): Add forward declaration.
12881 (nbsd_nat_target::thread_alive): Add.
12882 (nbsd_nat_target::thread_name): Likewise.
12883 (nbsd_nat_target::update_thread_list): Likewise.
12884 (update_thread_list::post_attach): Likewise.
12885 (post_attach::pid_to_str): Likewise.
12886 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12887 (nbsd_thread_lister): Add.
12888 (nbsd_nat_target::thread_alive): Likewise.
12889 (nbsd_nat_target::thread_name): Likewise.
12890 (nbsd_add_threads): Likewise.
12891 (update_thread_list::post_attach): Likewise.
12892 (nbsd_nat_target::update_thread_list): Likewise.
12893 (post_attach::pid_to_str): Likewise.
12895 2020-04-06 Tom Tromey <tromey@adacore.com>
12897 * ada-valprint.c (print_variant_part): Extract the variant field.
12898 (print_field_values): Use the field as the outer value when
12901 2020-04-06 Tom Tromey <tromey@adacore.com>
12903 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12904 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12905 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12906 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12907 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12909 2020-04-06 Tom Tromey <tromey@adacore.com>
12911 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12914 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12916 * nbsd-tdep.c: Include "gdbarch.h".
12917 Define enum with NetBSD signal numbers.
12918 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12919 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12920 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12921 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12922 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12923 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12924 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12925 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12926 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12927 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12928 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12929 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12931 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12934 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12936 2020-04-03 Tom Tromey <tromey@adacore.com>
12938 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12939 Read constant block.
12941 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12943 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12944 (gdb_bfd_get_full_section_contents): New declaration.
12945 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12946 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12947 gdb_bfd_get_full_section_contents.
12949 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12951 * exec.c (build_section_table): Replace internal_error with
12953 (section_table_xfer_memory_partial): Likewise.
12954 * mdebugread.c (parse_partial_symbols): Likewise.
12955 * psymtab.c (lookup_partial_symbol): Likewise.
12956 * utils.c (wrap_here): Likewise.
12958 2020-04-02 Tom Tromey <tromey@adacore.com>
12960 * f-lang.c (build_fortran_types): Use arch_type to initialize
12961 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12963 2020-04-02 Tom Tromey <tromey@adacore.com>
12965 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12968 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12969 Bernd Edlinger <bernd.edlinger@hotmail.de>
12970 Tom Tromey <tromey@adacore.com>
12972 * buildsym.c (buildsym_compunit::record_line): Remove
12973 deduplication code.
12975 2020-04-02 Tom de Vries <tdevries@suse.de>
12978 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12980 2020-04-02 Tom de Vries <tdevries@suse.de>
12982 * dwarf2/read.c (dwarf2_gdb_index_functions,
12983 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12985 * psymtab.c (psym_lookup_global_symbol_language): New function.
12986 (psym_functions): Init psym_lookup_global_symbol_language with
12987 psym_lookup_global_symbol_language.
12988 * symfile-debug.c (debug_sym_quick_functions): Init
12989 lookup_global_symbol_language with NULL.
12990 * symfile.c (set_initial_language): Remove fixme comment.
12991 * symfile.h (struct quick_symbol_functions): Add
12992 lookup_global_symbol_language.
12993 * symtab.c (find_quick_global_symbol_language): New function.
12994 (find_main_name): Use find_quick_global_symbol_language.
12996 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12998 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
13000 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13002 * buildsym.c (record_line): Fix undefined behavior and preserve
13005 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13007 * buildsym.c (record_line): Fix the resizing condition.
13009 2020-04-01 Tom Tromey <tom@tromey.com>
13011 * value.h (value_literal_complex): Add comment.
13012 * valops.c (value_literal_complex): Refer to value.h.
13014 2020-04-01 Tom Tromey <tom@tromey.com>
13016 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
13017 (scalar_type): New rule, from typebase.
13018 (typebase): Use scalar_type. Recognize complex types.
13019 (field_name): Handle FLOAT_KEYWORD.
13020 (ident_tokens): Add _Complex and __complex__.
13022 2020-04-01 Tom Tromey <tom@tromey.com>
13025 * valarith.c (promotion_type, complex_binop): New functions.
13026 (scalar_binop): Handle complex numbers. Use promotion_type.
13027 (value_pos, value_neg, value_complement): Handle complex numbers.
13029 2020-04-01 Tom Tromey <tom@tromey.com>
13031 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
13032 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
13033 (parse_number): Handle complex numbers.
13035 2020-04-01 Tom Tromey <tom@tromey.com>
13037 * c-valprint.c (c_decorations): Change complex suffix to "i".
13039 2020-04-01 Tom Tromey <tom@tromey.com>
13041 * valprint.c (generic_value_print_complex): Use accessors.
13042 * value.h (value_real_part, value_imaginary_part): Declare.
13043 * valops.c (value_real_part, value_imaginary_part): New
13045 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
13047 2020-04-01 Tom Tromey <tom@tromey.com>
13049 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
13050 (read_range_type): Update.
13051 * mdebugread.c (basic_type): Update.
13052 * go-lang.c (build_go_types): Use init_complex_type.
13053 * gdbtypes.h (struct main_type) <complex_type>: New member.
13054 (init_complex_type): Update.
13055 (arch_complex_type): Don't declare.
13056 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
13057 Make name if none given. Use alloc_type_copy. Look for cached
13059 (arch_complex_type): Remove.
13060 (gdbtypes_post_init): Use init_complex_type.
13061 * f-lang.c (build_fortran_types): Use init_complex_type.
13062 * dwarf2/read.c (read_base_type): Update.
13063 * d-lang.c (build_d_types): Use init_complex_type.
13064 * ctfread.c (read_base_type): Update.
13066 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13068 * infrun.c (stop_all_threads): Update assertion, plus when
13069 stopping threads, take into account that we might be trying
13070 to stop an all-stop target.
13071 (stop_waiting): Call 'stop_all_threads' if there exists a
13074 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13076 * target.h (exists_non_stop_target): New function declaration.
13077 * target.c (exists_non_stop_target): New function.
13079 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
13082 * eval.c (is_integral_or_integral_reference): New function.
13083 (evaluate_subexp_standard): Allow integer references in
13084 pointer arithmetic.
13086 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13088 * remote.c (remote_target::remote_parse_stop_reply): Remove the
13089 check for no ptid in the stop reply when the target is non-stop.
13091 2020-04-01 Tom Tromey <tromey@adacore.com>
13093 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
13094 "name" parameter to rvalue reference. Initialize m_name_holder.
13095 <lookup_name_info>: New overloads.
13096 <name>: Return gdb::string_view.
13097 <c_str>: New method.
13098 <make_ignore_params>: Update.
13099 <search_name_hash>: Update.
13100 <language_lookup_name>: Return const char *.
13101 <m_name>: Change type.
13102 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
13103 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
13104 (lookup_name_info::match_any): Update.
13105 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13107 * minsyms.c (linkage_name_str): Update.
13108 * language.c (default_symbol_name_matcher): Update.
13109 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13111 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13112 (ada_lookup_name_info::ada_lookup_name_info): Update.
13113 (literal_symbol_name_matcher): Update.
13115 2020-04-01 Tom Tromey <tromey@adacore.com>
13117 * psymtab.c (psymtab_search_name): Remove function.
13118 (psym_lookup_symbol): Create search name and lookup name here.
13119 (lookup_partial_symbol): Remove "name" parameter; add
13121 (psym_expand_symtabs_for_function): Update.
13123 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
13126 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13128 2020-03-31 Tom Tromey <tromey@adacore.com>
13130 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13133 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
13135 * features/riscv/32bit-csr.xml: Regenerated.
13136 * features/riscv/64bit-csr.xml: Regenerated.
13138 2020-03-30 Tom Tromey <tromey@adacore.com>
13140 * ada-valprint.c (print_variant_part): Update.
13141 * ada-lang.h (ada_which_variant_applies): Update.
13142 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13143 outer_valaddr parameters; replace with "outer" value parameter.
13144 (to_fixed_variant_branch_type): Update.
13146 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13148 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13149 <list>. Remove inclusion of observable.h.
13150 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13151 (struct arch_lwp_info): New struct.
13152 (class ppc_linux_dreg_interface): New class.
13153 (struct ppc_linux_process_info): New struct.
13154 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13155 <low_new_clone, low_forget_process, low_prepare_to_resume>
13156 <copy_thread_dreg_state, mark_thread_stale>
13157 <mark_debug_registers_changed, register_hw_breakpoint>
13158 <clear_hw_breakpoint, register_wp, clear_wp>
13159 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13160 <num_memory_accesses, get_trigger_type>
13161 <create_watchpoint_request, hwdebug_point_cmp>
13162 <init_arch_lwp_info, get_arch_lwp_info>
13163 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13165 <struct ptid_hash>: New inner struct.
13166 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13168 (saved_dabr_value, hwdebug_info, max_slots_number)
13169 (struct hw_break_tuple, struct thread_points, ppc_threads)
13170 (have_ptrace_hwdebug_interface)
13171 (hwdebug_find_thread_points_by_tid)
13172 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13173 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13174 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13175 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13176 use m_dreg_interface.
13177 (hwdebug_point_cmp): Change to...
13178 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13179 reference arguments instead of pointers.
13180 (ppc_linux_nat_target::ranged_break_num_registers): Use
13182 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13183 m_dreg_interface. Call register_hw_breakpoint.
13184 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13185 m_dreg_interface. Call clear_hw_breakpoint.
13186 (get_trigger_type): Change to...
13187 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13189 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13190 use m_dreg_interface. Call register_hw_breakpoint.
13191 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13192 use m_dreg_interface. Call clear_hw_breakpoint.
13193 (can_use_watchpoint_cond_accel): Change to...
13194 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13195 method. Update comment, use m_dreg_interface and
13197 (calculate_dvc): Change to...
13198 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13200 (num_memory_accesses): Change to...
13201 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13202 (check_condition): Change to...
13203 (ppc_linux_nat_target::check_condition): ...this method.
13204 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13205 comment, use m_dreg_interface.
13206 (create_watchpoint_request): Change to...
13207 (ppc_linux_nat_target::create_watchpoint_request): ...this
13208 method. Use m_dreg_interface.
13209 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13210 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13211 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13212 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13213 (ppc_linux_nat_target::low_forget_process)
13214 (ppc_linux_nat_target::low_new_fork)
13215 (ppc_linux_nat_target::low_new_clone)
13216 (ppc_linux_nat_target::low_delete_thread)
13217 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13218 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13219 only call mark_thread_stale.
13220 (ppc_linux_thread_exit): Remove.
13221 (ppc_linux_nat_target::stopped_data_address): Change to...
13222 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13223 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13224 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13225 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13226 comment. Call low_stopped_data_address.
13227 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13229 (ppc_linux_nat_target::masked_watch_num_registers): Use
13231 (ppc_linux_nat_target::copy_thread_dreg_state)
13232 (ppc_linux_nat_target::mark_thread_stale)
13233 (ppc_linux_nat_target::mark_debug_registers_changed)
13234 (ppc_linux_nat_target::register_hw_breakpoint)
13235 (ppc_linux_nat_target::clear_hw_breakpoint)
13236 (ppc_linux_nat_target::register_wp)
13237 (ppc_linux_nat_target::clear_wp)
13238 (ppc_linux_nat_target::init_arch_lwp_info)
13239 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13240 (_initialize_ppc_linux_nat): Remove observer callback.
13242 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13244 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13245 (ppc_linux_nat_target::auxv_parse)
13246 (ppc_linux_nat_target::read_description)
13247 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13250 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13252 * linux-nat.h (low_new_clone): New method.
13253 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13255 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13257 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13258 (dbx_expand_psymtab): ... this.
13259 (start_psymtab): Update.
13260 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13261 (mdebug_expand_psymtab): ... this.
13262 (parse_partial_symbols): Update.
13263 (new_psymtab): Update.
13264 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13265 (xcoff_expand_psymtab): ... this.
13266 (xcoff_start_psymtab): Update.
13268 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13270 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13271 <expand_dependencies>: ... this.
13272 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13273 (partial_symtab::expand_dependencies): ... this.
13274 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13276 (dwarf2_psymtab::expand_psymtab): Update.
13277 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13278 * mdebugread.c (psymtab_to_symtab_1): Update.
13279 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13281 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13283 * psympriv.h (discard_psymtab): Remove.
13284 * dbxread.c (dbx_end_psymtab): Update.
13285 * xcoffread.c (xcoff_end_psymtab): Update.
13287 2020-03-28 Tom Tromey <tom@tromey.com>
13289 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13292 2020-03-28 Tom Tromey <tom@tromey.com>
13294 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13296 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13298 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13300 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13302 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13304 2020-03-26 Tom Tromey <tom@tromey.com>
13306 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13307 (mark_common_block_symbol_computed, read_tag_string_type)
13308 (attr_to_dynamic_prop, read_subrange_type): Update.
13309 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13310 to be methods on struct attribute.
13311 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13312 (read_call_site_scope, partial_die_info::read)
13313 (partial_die_info::read, lookup_die_type, follow_die_ref):
13315 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13316 from dwarf2_get_ref_die_offset.
13317 (attribute::constant_value): New method, from
13318 dwarf2_get_attr_constant_value.
13319 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13321 <constant_value>: New method.
13323 2020-03-26 Tom Tromey <tom@tromey.com>
13325 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13326 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13327 (dwarf_type_encoding_name): Move to stringify.c.
13328 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13329 * dwarf2/stringify.c: New file.
13330 * dwarf2/stringify.h: New file.
13332 2020-03-26 Tom Tromey <tom@tromey.com>
13334 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13337 2020-03-26 Tom Tromey <tom@tromey.com>
13339 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13341 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13342 (lookup_ranges_base): Likewise.
13343 (read_cutu_die_from_dwo, read_full_die_1): Update.
13345 2020-03-26 Tom Tromey <tom@tromey.com>
13347 * dwarf2/read.c (read_import_statement, read_file_scope)
13348 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13349 (read_lexical_block_scope, read_call_site_scope)
13350 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13351 (handle_struct_member_die, process_structure_scope)
13352 (update_enumeration_type_from_children)
13353 (process_enumeration_scope, read_array_type, read_common_block)
13354 (read_namespace, read_module, read_subroutine_type): Update.
13355 (sibling_die): Remove.
13357 2020-03-26 Tom Tromey <tom@tromey.com>
13359 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13360 (build_type_psymtabs_reader, read_structure_type)
13361 (read_enumeration_type, read_full_die_1): Update.
13362 (dwarf2_attr_no_follow): Move to die.h.
13363 * dwarf2/die.h (struct die_info) <attr>: New method.
13365 2020-03-26 Tom Tromey <tom@tromey.com>
13367 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13368 <base_address>: Now an optional.
13369 (dwarf2_find_base_address, dwarf2_rnglists_process)
13370 (dwarf2_ranges_process, fill_in_loclist_baton)
13371 (dwarf2_symbol_mark_computed): Update.
13373 2020-03-26 Tom Tromey <tom@tromey.com>
13375 * dwarf2/read.c (struct die_info): Move to die.h.
13376 * dwarf2/die.h: New file.
13378 2020-03-26 Tom Tromey <tom@tromey.com>
13380 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13382 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13383 Move to line-header.c.
13384 (read_checked_initial_length_and_offset, read_formatted_entries):
13386 (dwarf_decode_line_header): Split into two.
13387 * dwarf2/line-header.c
13388 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13390 (read_checked_initial_length_and_offset, read_formatted_entries):
13392 (dwarf_decode_line_header): New function, split from read.c.
13394 2020-03-26 Tom Tromey <tom@tromey.com>
13396 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13398 * dwarf2/read.c (read_attribute_value): Update.
13399 (dwarf2_per_objfile::read_line_string): Rename from
13400 read_indirect_line_string.
13401 (read_formatted_entries): Update.
13403 2020-03-26 Tom Tromey <tom@tromey.com>
13405 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13408 2020-03-26 Tom Tromey <tom@tromey.com>
13410 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13412 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13413 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13416 2020-03-26 Tom Tromey <tom@tromey.com>
13418 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13419 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13420 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13421 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13423 2020-03-26 Tom Tromey <tom@tromey.com>
13425 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13426 file_names_size, file_full_name, file_file_name>: Use const.
13427 <file_name_at, file_names>: Add const overload.
13428 * dwarf2/line-header.c (line_header::file_file_name)
13429 (line_header::file_full_name): Update.
13431 2020-03-26 Tom Tromey <tom@tromey.com>
13433 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13434 (macro_start_file, consume_improper_spaces)
13435 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13436 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13437 (dwarf_decode_macros): Move to macro.c.
13438 * dwarf2/macro.c: New file.
13439 * dwarf2/macro.h: New file.
13440 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13442 2020-03-26 Tom Tromey <tom@tromey.com>
13444 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13446 * dwarf2/section.c: New method. From
13447 read_indirect_string_at_offset_from.
13448 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13449 (read_indirect_string_at_offset_from): Move to section.c.
13450 (read_indirect_string_at_offset): Rewrite.
13451 (read_indirect_line_string_at_offset): Remove.
13452 (read_indirect_string, read_indirect_line_string)
13453 (dwarf_decode_macro_bytes): Update.
13455 2020-03-26 Tom Tromey <tom@tromey.com>
13457 * dwarf2/section.h (struct dwarf2_section_info)
13458 <overload_complaint>: Declare.
13459 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13460 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13461 Rename from dwarf2_section_buffer_overflow_complaint.
13462 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13463 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13465 2020-03-26 Tom Tromey <tom@tromey.com>
13467 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13469 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13471 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13474 2020-03-26 Tom Tromey <tom@tromey.com>
13476 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13478 2020-03-26 Tom Tromey <tom@tromey.com>
13480 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13482 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13484 (dwarf_decode_macros): Update.
13486 2020-03-26 Tom Tromey <tom@tromey.com>
13488 * dwarf2/read.c (read_attribute_value): Update.
13489 (read_indirect_string_from_dwz): Move to dwz.c; change into
13491 (dwarf_decode_macro_bytes): Update.
13492 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13493 * dwarf2/dwz.c: New file.
13494 * Makefile.in (COMMON_SFILES): Add dwz.c.
13496 2020-03-26 Tom Tromey <tom@tromey.com>
13498 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13499 * dwarf2/read.c: Add include.
13500 * dwarf2/index-write.c: Add include.
13501 * dwarf2/index-cache.c: Add include.
13502 * dwarf2/dwz.h: New file.
13504 2020-03-25 Tom Tromey <tom@tromey.com>
13506 * compile/compile-object-load.c (get_out_value_type): Mention
13507 correct symbol name in error message.
13509 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13511 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13513 2020-03-25 Tom de Vries <tdevries@suse.de>
13515 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13516 * symmisc.c (dump_symtab_1): Print user and includes fields.
13517 (maintenance_info_symtabs): Same.
13519 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13522 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13523 (riscv_regcache_cooked_write): New function.
13524 (riscv_push_dummy_call): Use new function.
13525 (riscv_return_value): Likewise.
13527 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13529 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13530 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13531 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13532 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13533 * infrun.c (follow_fork): Likewise.
13534 (follow_fork_inferior): Likewise.
13535 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13536 * linux-nat.h (class linux_nat_target): Likewise.
13537 * remote.c (class remote_target) <follow_fork>: Likewise.
13538 (remote_target::follow_fork): Likewise.
13539 * target-delegates.c: Re-generate.
13540 * target.c (default_follow_fork): Likewise.
13541 (target_follow_fork): Likewise.
13542 * target.h (struct target_ops) <follow_fork>: Likewise.
13543 (target_follow_fork): Likewise.
13545 2020-03-24 Tom de Vries <tdevries@suse.de>
13547 * psymtab.c (maintenance_info_psymtabs): Print user field.
13549 2020-03-20 Tom Tromey <tromey@adacore.com>
13551 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13553 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13556 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13558 * ptrace.m4: Don't check for ptrace declaration.
13559 * config.in: Re-generate.
13560 * configure: Re-generate.
13561 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13564 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13566 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13568 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13569 * sparc-nat.c (gdb_ptrace): Likewise.
13570 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13572 2020-03-20 Tom Tromey <tromey@adacore.com>
13574 * c-exp.y (lex_one_token): Fix assert.
13576 2020-03-20 Tom Tromey <tromey@adacore.com>
13578 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13579 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13582 2020-03-20 Tom Tromey <tromey@adacore.com>
13584 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13586 2020-03-20 Tom Tromey <tromey@adacore.com>
13588 * ada-valprint.c (print_variant_part): Remove parameters; switch
13589 to value-based API.
13590 (print_field_values): Likewise.
13591 (ada_val_print_struct_union): Likewise.
13592 (ada_value_print_1): Update.
13594 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13596 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13597 nbsd_nat_target instead of inf_ptrace_target.
13598 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13601 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13603 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13604 it to the ptrace call.
13605 * (store_registers): Likewise.
13607 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13609 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13610 it to the ptrace call.
13611 * (store_registers): Likewise.
13613 2020-03-19 Luis Machado <luis.machado@linaro.org>
13615 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13616 valid, fetch vg value from ptrace.
13618 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13619 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13620 * inf-ptrace.c: Likewise.
13621 * (gdb_ptrace): Add.
13622 * (inf_ptrace_target::resume): Update.
13623 * (inf_ptrace_target::xfer_partial): Likewise.
13624 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13625 * (inf_ptrace_peek_poke): Update.
13627 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13629 * x86-bsd-nat.c (gdb_ptrace): New.
13630 * (x86bsd_dr_set): Add new argument `ptid'.
13631 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13632 x86bsd_dr_set_addr): Update.
13634 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13636 * remote.c (remote_target::process_stop_reply): Handle events for
13637 all threads differently.
13639 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13641 * completer.c (completion_tracker::remove_completion): Define new
13643 * completer.h (completion_tracker::remove_completion): Declare new
13645 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13646 when adding a C++ function symbol.
13648 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13650 * completer.c (completion_tracker::completion_hash_entry): Define
13652 (advance_to_filename_complete_word_point): Call
13653 recompute_lowest_common_denominator.
13654 (completion_tracker::completion_tracker): Call discard_completions
13655 to setup the hash table.
13656 (completion_tracker::discard_completions): Allow for being called
13657 from the constructor, pass new equal function, and element deleter
13658 when constructing the hash table. Initialise new class member
13660 (completion_tracker::maybe_add_completion): Remove use of
13661 m_entries_vec, and store more information into m_entries_hash.
13662 (completion_tracker::recompute_lcd_visitor): New function, most
13663 content taken from...
13664 (completion_tracker::recompute_lowest_common_denominator):
13665 ...here, this now just visits each item in the hash calling the
13667 (completion_tracker::build_completion_result): Remove use of
13668 m_entries_vec, call recompute_lowest_common_denominator.
13669 * completer.h (completion_tracker::have_completions): Remove use
13671 (completion_tracker::completion_hash_entry): Declare new class.
13672 (completion_tracker::recompute_lowest_common_denominator): Change
13673 function signature.
13674 (completion_tracker::recompute_lcd_visitor): Declare new function.
13675 (completion_tracker::m_entries_vec): Delete.
13676 (completion_tracker::m_entries_hash): Initialize to NULL.
13677 (completion_tracker::m_lowest_common_denominator_valid): New
13679 (completion_tracker::m_lowest_common_denominator_max_length): New
13682 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13684 * regformats/regdef.h: Put reg in gdb namespace.
13686 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13688 * i386-bsd-nat.c (gdb_ptrace): New.
13689 * (i386bsd_fetch_inferior_registers,
13690 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13691 * (i386bsd_fetch_inferior_registers,
13692 i386bsd_store_inferior_registers) Use gdb_ptrace.
13694 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13696 * amd64-bsd-nat.c (gdb_ptrace): New.
13697 * (amd64bsd_fetch_inferior_registers,
13698 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13699 * (amd64bsd_fetch_inferior_registers,
13700 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13702 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13704 * user-regs.c (user_reg::read): Rename to...
13705 (user_reg::xread): ...this.
13706 * (append_user_reg): Rename argument `read' to `xread'.
13707 * (user_reg_add_builtin): Likewise.
13708 * (user_reg_add): Likewise.
13709 * (value_of_user_reg): Likewise.
13711 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13713 * sparc-nat.c (gdb_ptrace): New.
13714 * sparc-nat.c (sparc_fetch_inferior_registers)
13715 (sparc_store_inferior_registers) Remove obsolete comment.
13716 * sparc-nat.c (sparc_fetch_inferior_registers)
13717 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13718 * sparc-nat.c (sparc_fetch_inferior_registers)
13719 (sparc_store_inferior_registers) Use gdb_ptrace.
13721 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13723 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13724 it to the ptrace call.
13725 * sh-nbsd-nat.c (store_registers): Likewise.
13727 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13729 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13730 nbsd_nat_target instead of inf_ptrace_target.
13731 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13734 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13736 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13738 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13740 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13742 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13744 2020-03-17 Tom de Vries <tdevries@suse.de>
13747 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13749 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13751 (process_imported_unit_die): Skip import of c++ CUs.
13753 2020-03-16 Tom Tromey <tom@tromey.com>
13755 * p-valprint.c (pascal_object_print_value): Initialize
13758 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13759 Shahab Vahedi <shahab@synopsys.com>
13761 * Makefile.in: Add arch/arc.o
13762 * configure.tgt: Likewise.
13763 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13764 (_initialize_arc_tdep): Don't initialize old target descriptions.
13765 (arc_read_description): New function to cache target descriptions.
13766 * arc-tdep.h (arc_read_description): Add proto type.
13767 * arch/arc.c: New file.
13768 * arch/arc.h: Likewise.
13769 * features/Makefile: Replace old target descriptions with new.
13770 * features/arc-arcompact.c: Remove.
13771 * features/arc-arcompact.xml: Likewise.
13772 * features/arc-v2.c: Likewise
13773 * features/arc-v2.xml: Likewise
13774 * features/arc/aux-arcompact.xml: New file.
13775 * features/arc/aux-v2.xml: Likewise.
13776 * features/arc/core-arcompact.xml: Likewise.
13777 * features/arc/core-v2.xml: Likewise.
13778 * features/arc/aux-arcompact.c: Generate.
13779 * features/arc/aux-v2.c: Likewise.
13780 * features/arc/core-arcompact.c: Likewise.
13781 * features/arc/core-v2.c: Likewise.
13782 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13784 2020-03-16 Tom Tromey <tromey@adacore.com>
13787 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13788 putting value into bcache.
13790 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13793 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13795 (amd64_windows_init_abi_common): ... this. Don't set size of
13797 (amd64_windows_init_abi): New function.
13798 (amd64_cygwin_init_abi): New function.
13799 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13801 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13804 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13806 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13807 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13808 (pe_import_directory_entry): New struct type.
13809 (is_linked_with_cygwin_dll): New function.
13810 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13811 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13812 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13814 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13816 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13817 i386_cygwin_core_osabi_sniffer.
13819 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13821 * i386-cygwin-tdep.c: Rename to...
13822 * i386-windows-tdep.c: ... this.
13823 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13824 i386-windows-tdep.c.
13825 * configure.tgt: Likewise.
13827 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13829 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13830 * osabi.c (gdb_osabi_names): Add "Windows".
13831 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13832 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13833 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13834 i386_cygwin_osabi_sniffer.
13835 (_initialize_i386_cygwin_tdep): Register OS ABI
13836 GDB_OSABI_WINDOWS for i386.
13837 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13838 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13839 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13841 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13842 when the target matches '*-*-mingw*'.
13844 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13846 * defs.h (enum gdb_osabi): Move to...
13847 * osabi.h (enum gdb_osabi): ... here.
13848 * gdbarch.sh: Include osabi.h in gdbarch.h.
13849 * gdbarch.h: Re-generate.
13851 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13853 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13855 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13857 2020-03-14 Tom Tromey <tom@tromey.com>
13859 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13861 (c_type_print_modifier): Likewise. Add "language" parameter.
13862 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13863 (c_type_print_base_1): Update.
13864 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13866 * type-stack.c (type_stack::insert): Handle tp_atomic and
13868 (type_stack::follow_type_instance_flags): Likewise.
13869 (type_stack::follow_types): Likewise. Merge type-following code.
13870 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13871 (space_identifier, cv_with_space_id)
13872 (const_or_volatile_or_space_identifier_noopt)
13873 (const_or_volatile_or_space_identifier): Remove.
13874 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13876 (ptr_operator, typebase): Update.
13877 (enum token_flag) <FLAG_C>: New constant.
13878 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13880 (lex_one_token): Handle FLAG_C.
13882 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13884 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13885 it to the ptrace call.
13886 * m68k-bsd-nat.c (store_registers): Likewise.
13888 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13890 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13892 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13893 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13894 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13896 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13898 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13899 nbsd_nat_target instead of inf_ptrace_target.
13900 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13903 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13905 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13908 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13910 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13911 it to the ptrace call.
13912 * alpha-bsd-nat.c (store_registers): Likewise.
13914 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13916 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13918 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13919 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13920 fill_fpregset): Likewise.
13922 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13924 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13925 nbsd_nat_target instead of inf_ptrace_target.
13926 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13929 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13931 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13934 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13936 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13937 it to the ptrace call.
13938 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13939 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13940 * arm-nbsd-nat.c (store_register): Likewise.
13941 * arm-nbsd-nat.c (store_regs): Likewise.
13942 * arm-nbsd-nat.c (store_fp_register): Likewise.
13943 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13945 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13947 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13948 nbsd_nat_target instead of inf_ptrace_target.
13949 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13952 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13954 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13955 it to the ptrace call.
13956 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13958 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13960 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13961 it to the ptrace call.
13962 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13964 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13966 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13968 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13970 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13972 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13973 instead of inf_ptrace_target.
13974 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13977 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13979 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13982 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13984 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13987 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13989 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13992 2020-03-13 Tom Tromey <tom@tromey.com>
13994 * value.h (val_print): Don't declare.
13995 * valprint.h (val_print_array_elements)
13996 (val_print_scalar_formatted, generic_val_print): Don't declare.
13997 * valprint.c (generic_val_print_array): Take a struct value.
13998 (generic_val_print_ptr, generic_val_print_memberptr)
13999 (generic_val_print_bool, generic_val_print_int)
14000 (generic_val_print_char, generic_val_print_complex)
14001 (generic_val_print): Remove.
14002 (generic_value_print): Update.
14003 (do_val_print): Remove unused parameters. Don't call
14005 (val_print): Remove.
14006 (common_val_print): Update. Don't call value_check_printable.
14007 (val_print_scalar_formatted, val_print_array_elements): Remove.
14008 * rust-lang.c (rust_val_print): Remove.
14009 (rust_language_defn): Update.
14010 * p-valprint.c (pascal_val_print): Remove.
14011 (pascal_value_print_inner): Update.
14012 (pascal_object_print_val_fields, pascal_object_print_val):
14014 (pascal_object_print_static_field): Update.
14015 * p-lang.h (pascal_val_print): Don't declare.
14016 * p-lang.c (pascal_language_defn): Update.
14017 * opencl-lang.c (opencl_language_defn): Update.
14018 * objc-lang.c (objc_language_defn): Update.
14019 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
14020 * m2-lang.h (m2_val_print): Don't declare.
14021 * m2-lang.c (m2_language_defn): Update.
14022 * language.h (struct language_defn) <la_val_print>: Remove.
14023 * language.c (unk_lang_value_print_inner): Rename. Change
14025 (unknown_language_defn, auto_language_defn): Update.
14026 * go-valprint.c (go_val_print): Remove.
14027 * go-lang.h (go_val_print): Don't declare.
14028 * go-lang.c (go_language_defn): Update.
14029 * f-valprint.c (f_val_print): Remove.
14030 * f-lang.h (f_value_print): Don't declare.
14031 * f-lang.c (f_language_defn): Update.
14032 * d-valprint.c (d_val_print): Remove.
14033 * d-lang.h (d_value_print): Don't declare.
14034 * d-lang.c (d_language_defn): Update.
14035 * cp-valprint.c (cp_print_value_fields)
14036 (cp_print_value_fields_rtti, cp_print_value): Remove.
14037 (cp_print_static_field): Update.
14038 * c-valprint.c (c_val_print_array, c_val_print_ptr)
14039 (c_val_print_struct, c_val_print_union, c_val_print_int)
14040 (c_val_print_memberptr, c_val_print): Remove.
14041 * c-lang.h (c_val_print_array, cp_print_value_fields)
14042 (cp_print_value_fields_rtti): Don't declare.
14043 * c-lang.c (c_language_defn, cplus_language_defn)
14044 (asm_language_defn, minimal_language_defn): Update.
14045 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
14046 (ada_val_print_enum): Take a struct value.
14047 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
14048 (ada_val_print): Remove.
14049 (ada_value_print_1): Update.
14050 (printable_val_type): Remove.
14051 * ada-lang.h (ada_val_print): Don't declare.
14052 * ada-lang.c (ada_language_defn): Update.
14054 2020-03-13 Tom Tromey <tom@tromey.com>
14056 * valprint.c (do_val_print): Update.
14057 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
14059 (value_to_value_object_no_release): Declare.
14060 * python/py-value.c (value_to_value_object_no_release): New
14062 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
14064 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
14066 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
14068 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
14070 (gdbscm_apply_val_pretty_printer): Take a struct value.
14071 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
14073 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
14075 * extension-priv.h (struct extension_language_ops)
14076 <apply_val_pretty_printer>: Take a struct value.
14077 * cp-valprint.c (cp_print_value): Create a struct value.
14078 (cp_print_value): Update.
14080 2020-03-13 Tom Tromey <tom@tromey.com>
14082 * ada-valprint.c (print_field_values): Call common_val_print.
14084 2020-03-13 Tom Tromey <tom@tromey.com>
14086 * ada-valprint.c (val_print_packed_array_elements): Remove
14087 bitoffset and val parameters. Call common_val_print.
14088 (ada_val_print_string): Remove offset, address, and original_value
14090 (ada_val_print_array): Update.
14091 (ada_value_print_array): New function.
14092 (ada_value_print_1): Call it.
14094 2020-03-13 Tom Tromey <tom@tromey.com>
14096 * ada-valprint.c (ada_value_print): Use common_val_print.
14098 2020-03-13 Tom Tromey <tom@tromey.com>
14100 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
14102 2020-03-13 Tom Tromey <tom@tromey.com>
14104 * ada-valprint.c (ada_value_print_num): New function.
14105 (ada_value_print_1): Use it.
14107 2020-03-13 Tom Tromey <tom@tromey.com>
14109 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14111 2020-03-13 Tom Tromey <tom@tromey.com>
14113 * ada-valprint.c (ada_value_print_ptr): New function.
14114 (ada_value_print_1): Use it.
14116 2020-03-13 Tom Tromey <tom@tromey.com>
14118 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14119 call common_val_print.
14120 (ada_val_print_1): Update.
14121 (ada_value_print_1): New function.
14122 (ada_value_print_inner): Rewrite.
14124 2020-03-13 Tom Tromey <tom@tromey.com>
14126 * cp-valprint.c (cp_print_value_fields): Update.
14127 (cp_print_value): New function.
14129 2020-03-13 Tom Tromey <tom@tromey.com>
14131 * m2-valprint.c (m2_value_print_inner): Use
14132 cp_print_value_fields.
14133 * cp-valprint.c (cp_print_value_fields): New function.
14134 * c-valprint.c (c_value_print_struct): New function.
14135 (c_value_print_inner): Use c_value_print_struct.
14136 * c-lang.h (cp_print_value_fields): Declare.
14138 2020-03-13 Tom Tromey <tom@tromey.com>
14140 * c-valprint.c (c_value_print_array): New function.
14141 (c_value_print_inner): Use it.
14143 2020-03-13 Tom Tromey <tom@tromey.com>
14145 * c-valprint.c (c_value_print_memberptr): New function.
14146 (c_value_print_inner): Use it.
14148 2020-03-13 Tom Tromey <tom@tromey.com>
14150 * c-valprint.c (c_value_print_int): New function.
14151 (c_value_print_inner): Use it.
14153 2020-03-13 Tom Tromey <tom@tromey.com>
14155 * c-valprint.c (c_value_print_ptr): New function.
14156 (c_value_print_inner): Use it.
14158 2020-03-13 Tom Tromey <tom@tromey.com>
14160 * c-valprint.c (c_value_print_inner): Rewrite.
14162 2020-03-13 Tom Tromey <tom@tromey.com>
14164 * valprint.c (generic_value_print_complex): New function.
14165 (generic_value_print): Use it.
14167 2020-03-13 Tom Tromey <tom@tromey.com>
14169 * valprint.c (generic_val_print_float): Don't call
14170 val_print_scalar_formatted.
14171 (generic_val_print, generic_value_print): Update.
14173 2020-03-13 Tom Tromey <tom@tromey.com>
14175 * valprint.c (generic_value_print_char): New function
14176 (generic_value_print): Use it.
14178 2020-03-13 Tom Tromey <tom@tromey.com>
14180 * valprint.c (generic_value_print_int): New function.
14181 (generic_value_print): Use it.
14183 2020-03-13 Tom Tromey <tom@tromey.com>
14185 * valprint.c (generic_value_print_bool): New function.
14186 (generic_value_print): Use it.
14188 2020-03-13 Tom Tromey <tom@tromey.com>
14190 * valprint.c (generic_val_print_func): Simplify.
14191 (generic_val_print, generic_value_print): Update.
14193 2020-03-13 Tom Tromey <tom@tromey.com>
14195 * valprint.c (generic_val_print_flags): Remove.
14196 (generic_val_print, generic_value_print): Update.
14197 (val_print_type_code_flags): Add original_value parameter.
14199 2020-03-13 Tom Tromey <tom@tromey.com>
14201 * valprint.c (generic_val_print): Update.
14202 (generic_value_print): Update.
14203 * valprint.c (generic_val_print_enum): Don't call
14204 val_print_scalar_formatted.
14206 2020-03-13 Tom Tromey <tom@tromey.com>
14208 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14209 * valprint.c (generic_value_print_ptr): New function.
14211 2020-03-13 Tom Tromey <tom@tromey.com>
14213 * valprint.c (generic_value_print): Rewrite.
14215 2020-03-13 Tom Tromey <tom@tromey.com>
14217 * p-valprint.c (pascal_object_print_value_fields)
14218 (pascal_object_print_value): New functions.
14220 2020-03-13 Tom Tromey <tom@tromey.com>
14222 * p-valprint.c (pascal_value_print_inner): Rewrite.
14224 2020-03-13 Tom Tromey <tom@tromey.com>
14226 * f-valprint.c (f_value_print_innner): Rewrite.
14228 2020-03-13 Tom Tromey <tom@tromey.com>
14230 * m2-valprint.c (m2_print_unbounded_array): New overload.
14231 (m2_print_unbounded_array): Update.
14232 (m2_print_array_contents): Take a struct value.
14233 (m2_value_print_inner): Rewrite.
14235 2020-03-13 Tom Tromey <tom@tromey.com>
14237 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14238 (d_value_print_inner): New function.
14239 * d-lang.h (d_value_print_inner): Declare.
14240 * d-lang.c (d_language_defn): Use d_value_print_inner.
14242 2020-03-13 Tom Tromey <tom@tromey.com>
14244 * go-valprint.c (go_value_print_inner): New function.
14245 * go-lang.h (go_value_print_inner): Declare.
14246 * go-lang.c (go_language_defn): Use go_value_print_inner.
14248 2020-03-13 Tom Tromey <tom@tromey.com>
14250 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14252 (rust_val_print): Rewrite.
14253 (rust_value_print_inner): New function, from rust_val_print.
14254 (rust_language_defn): Use rust_value_print_inner.
14256 2020-03-13 Tom Tromey <tom@tromey.com>
14258 * ada-valprint.c (ada_value_print_inner): New function.
14259 * ada-lang.h (ada_value_print_inner): Declare.
14260 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14262 2020-03-13 Tom Tromey <tom@tromey.com>
14264 * f-valprint.c (f_value_print_innner): New function.
14265 * f-lang.h (f_value_print_innner): Declare.
14266 * f-lang.c (f_language_defn): Use f_value_print_innner.
14268 2020-03-13 Tom Tromey <tom@tromey.com>
14270 * p-valprint.c (pascal_value_print_inner): New function.
14271 * p-lang.h (pascal_value_print_inner): Declare.
14272 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14274 2020-03-13 Tom Tromey <tom@tromey.com>
14276 * m2-valprint.c (m2_value_print_inner): New function.
14277 * m2-lang.h (m2_value_print_inner): Declare.
14278 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14280 2020-03-13 Tom Tromey <tom@tromey.com>
14282 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14283 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14284 * c-valprint.c (c_value_print_inner): New function.
14285 * c-lang.h (c_value_print_inner): Declare.
14286 * c-lang.c (c_language_defn, cplus_language_defn)
14287 (asm_language_defn, minimal_language_defn): Use
14288 c_value_print_inner.
14290 2020-03-13 Tom Tromey <tom@tromey.com>
14292 * p-valprint.c (pascal_object_print_value_fields): Now static.
14293 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14295 2020-03-13 Tom Tromey <tom@tromey.com>
14297 * c-valprint.c (c_val_print_array): Simplify.
14299 2020-03-13 Tom Tromey <tom@tromey.com>
14301 * valprint.c (value_print_array_elements): New function.
14302 * valprint.h (value_print_array_elements): Declare.
14304 2020-03-13 Tom Tromey <tom@tromey.com>
14306 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14307 * mips-tdep.c (mips_print_register): Use
14308 value_print_scalar_formatted.
14310 2020-03-13 Tom Tromey <tom@tromey.com>
14312 * valprint.h (value_print_scalar_formatted): Declare.
14313 * valprint.c (value_print_scalar_formatted): New function.
14315 2020-03-13 Tom Tromey <tom@tromey.com>
14317 * valprint.h (generic_value_print): Declare.
14318 * valprint.c (generic_value_print): New function.
14320 2020-03-13 Tom Tromey <tom@tromey.com>
14322 * valprint.c (do_val_print): Call la_value_print_inner, if
14324 * rust-lang.c (rust_language_defn): Update.
14325 * p-lang.c (pascal_language_defn): Update.
14326 * opencl-lang.c (opencl_language_defn): Update.
14327 * objc-lang.c (objc_language_defn): Update.
14328 * m2-lang.c (m2_language_defn): Update.
14329 * language.h (struct language_defn) <la_value_print_inner>: New
14331 * language.c (unknown_language_defn, auto_language_defn): Update.
14332 * go-lang.c (go_language_defn): Update.
14333 * f-lang.c (f_language_defn): Update.
14334 * d-lang.c (d_language_defn): Update.
14335 * c-lang.c (c_language_defn, cplus_language_defn)
14336 (asm_language_defn, minimal_language_defn): Update.
14337 * ada-lang.c (ada_language_defn): Update.
14339 2020-03-13 Tom Tromey <tom@tromey.com>
14341 * c-valprint.c (c_value_print): Use common_val_print.
14343 2020-03-13 Tom Tromey <tom@tromey.com>
14345 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14347 2020-03-13 Tom Tromey <tom@tromey.com>
14349 * f-valprint.c (f77_print_array_1, f_val_print): Use
14352 2020-03-13 Tom Tromey <tom@tromey.com>
14354 * riscv-tdep.c (riscv_print_one_register_info): Use
14357 2020-03-13 Tom Tromey <tom@tromey.com>
14359 * mi/mi-main.c (output_register): Use common_val_print.
14361 2020-03-13 Tom Tromey <tom@tromey.com>
14363 * infcmd.c (default_print_one_register_info): Use
14366 2020-03-13 Tom Tromey <tom@tromey.com>
14368 * valprint.h (common_val_print_checked): Declare.
14369 * valprint.c (common_val_print_checked): New function.
14370 * stack.c (print_frame_arg): Use common_val_print_checked.
14372 2020-03-13 Tom Tromey <tom@tromey.com>
14374 * valprint.c (do_val_print): New function, from val_print.
14375 (val_print): Use do_val_print.
14376 (common_val_print): Use do_val_print.
14378 2020-03-13 Tom Tromey <tom@tromey.com>
14380 * valprint.c (value_print): Use scoped_value_mark.
14382 2020-03-13 Tom de Vries <tdevries@suse.de>
14385 * psymtab.c (partial_symtab::partial_symtab): Don't set
14386 globals_offset and statics_offset. Push element onto
14387 current_global_psymbols and current_static_psymbols stacks.
14388 (concat): New function.
14389 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14390 element from current_global_psymbols and current_static_psymbols
14391 stacks. Concat popped elements to global_psymbols and
14393 (add_psymbol_to_list): Use current_global_psymbols and
14394 current_static_psymbols stacks.
14395 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14396 current_static_psymbols fields.
14398 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14400 * corelow.c (sniff_core_bfd): Remove.
14401 (class core_target) <m_core_vec>: Remove.
14402 (core_target::core_target): Update.
14403 (core_file_fns): Remove.
14404 (deprecated_add_core_fns): Remove.
14405 (default_core_sniffer): Remove.
14406 (sniff_core_bfd): Remove.
14407 (default_check_format): Remove.
14408 (gdb_check_format): Remove.
14409 (core_target_open): Update.
14410 (core_target::get_core_register_section): Update.
14411 (get_core_registers_cb): Update.
14412 (core_target::fetch_registers): Update.
14413 * gdbcore.h (struct core_fns): Remove.
14414 (deprecated_add_core_fns): Remove.
14415 (default_core_sniffer): Remove.
14416 (default_check_format): Remove.
14418 2020-03-12 Tom Tromey <tom@tromey.com>
14420 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14422 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14424 2020-03-12 Tom Tromey <tom@tromey.com>
14426 * remote.c (remote_target::download_tracepoint)
14427 (remote_target::enable_tracepoint)
14428 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14429 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14432 2020-03-12 Tom Tromey <tom@tromey.com>
14434 * symfile-mem.c: Update CORE_ADDR size assert.
14436 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14438 * selftest.m4: Move to gdbsupport/.
14439 * acinclude.m4: Update path to selftest.m4.
14441 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14443 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14444 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14445 gdbarch-selfselftests.c and selftest-arch.c.
14446 (SUBDIR_UNITTESTS_OBS): Rename to...
14447 (SELFTESTS_OBS): ... this.
14448 (COMMON_SFILES): Remove disasm-selftests.c and
14449 gdbarch-selftests.c.
14450 * configure.ac: Don't add selftest-arch.{c,o} to
14452 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14453 preprocessor conditions.
14455 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14457 * configure.ac: Don't source bfd/development.sh.
14458 * selftest.m4: Modify comment.
14459 * configure: Re-generate.
14461 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14463 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14464 not "true" or "false".
14465 * configure: Re-generate.
14467 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14469 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14470 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14471 renamed to arm_nbsd_supply_gregset.
14472 (fetch_register): Update to call arm_nbsd_supply_gregset.
14473 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14474 (arm_netbsd_nat_target::fetch_registers): Update.
14475 (fetch_elfcore_registers): Removed.
14476 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14477 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14478 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14479 not require NetBSD system headers.
14480 (arm_nbsd_regset): New struct.
14481 (arm_nbsd_iterate_over_regset_sections): New function.
14482 (arm_netbsd_init_abi_common): Updated to call
14483 set_gdbarch_iterate_over_regset_sections.
14484 * arm-nbsd-tdep.h: New file.
14486 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14488 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14491 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14493 * configure: Re-generate.
14495 2020-03-11 Tom Tromey <tromey@adacore.com>
14497 * ada-typeprint.c (print_choices): Fix comment.
14499 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14501 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14502 previous item in the list, when the list has no items.
14504 2020-03-11 Tom de Vries <tdevries@suse.de>
14506 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14507 PROP_LOCLIST handling code.
14509 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14511 * buildsym-legacy.c (record_line): Pass extra parameter to
14513 * buildsym.c (buildsym_compunit::record_line): Take an extra
14514 parameter, reduce duplication in the line table, and record the
14515 is_stmt flag in the line table.
14516 * buildsym.h (buildsym_compunit::record_line): Add extra
14518 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14519 non-statement lines.
14520 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14521 this to the symtab builder.
14522 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14523 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14524 through to dwarf_record_line_1.
14525 * infrun.c (process_event_stop_test): When stepping, don't stop at
14526 a non-statement instruction, and only refresh the step info when
14527 we land in the middle of a line's range. Also add an extra
14529 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14531 * record-btrace.c (btrace_find_line_range): Only record lines
14532 marked as is-statement.
14533 * stack.c (frame_show_address): Show the frame address if we are
14534 in a non-statement sal.
14535 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14536 (maintenance_print_one_line_table): Print a header for the is_stmt
14537 column, and include is_stmt information in the output.
14538 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14539 preference to non-statements.
14540 (find_pcs_for_symtab_line): Prefer is-statement entries.
14541 (find_line_common): Likewise.
14542 * symtab.h (struct linetable_entry): Add is_stmt field.
14543 (struct symtab_and_line): Likewise.
14544 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14545 arranging the line table.
14547 2020-03-07 Tom de Vries <tdevries@suse.de>
14549 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14552 2020-03-07 Tom Tromey <tom@tromey.com>
14554 * valops.c (value_literal_complex): Remove obsolete comment.
14555 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14558 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14560 * infrun.h: Forward-declare thread_info.
14561 (set_step_info): Add thread_info parameter, add doc.
14562 * infrun.c (set_step_info): Add thread_info parameter, move doc
14564 * infrun.c (process_event_stop_test): Pass thread to
14565 set_step_info call.
14566 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14568 (prepare_one_step): Add thread_info parameter, pass it to
14569 set_step_frame and prepare_one_step (recursive) call.
14570 (step_1): Pass thread to prepare_one_step call.
14571 (step_command_fsm::should_stop): Pass thread to
14573 (until_next_fsm): Pass thread to set_step_frame call.
14574 (finish_command): Pass thread to set_step_info call.
14576 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14578 * windows-tdep.c (windows_solib_create_inferior_hook):
14579 Check if inferior is running.
14581 2020-03-06 Tom de Vries <tdevries@suse.de>
14583 * NEWS: Fix "the the".
14586 2020-03-06 Tom de Vries <tdevries@suse.de>
14588 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14590 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14592 * .dir-locals.el: Add a comment referencing the other copies of
14595 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14597 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14600 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14602 * .gitattributes: New file.
14604 2020-03-04 Tom Tromey <tom@tromey.com>
14606 * symmisc.c (print_symbol_bcache_statistics)
14607 (print_objfile_statistics): Update.
14608 * symfile.c (allocate_symtab): Use intern.
14609 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14610 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14611 macro_cache>: Remove.
14612 <string_cache>: New member.
14613 (struct objfile) <intern>: New methods.
14614 * elfread.c (elf_symtab_read): Use intern.
14615 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14616 (dwarf2_compute_name, dwarf2_physname)
14617 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14619 (guess_partial_die_structure_name): Update.
14620 (partial_die_info::fixup): Intern name.
14621 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14623 (dwarf2_name): Intern name. Update.
14624 * buildsym.c (buildsym_compunit::get_macro_table): Use
14627 2020-03-04 Tom Tromey <tom@tromey.com>
14629 * jit.c (bfd_open_from_target_memory): Make "target" const.
14630 * corefile.c (gnutarget): Now const.
14631 * gdbcore.h (gnutarget): Now const.
14633 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14635 * NEWS: Mention support for WOW64 processes.
14636 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14637 (amd64_windows_segment_register_p): Remove static.
14638 (_initialize_amd64_windows_nat): Update.
14639 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14640 * i386-windows-nat.c (context_offset): Update.
14641 (i386_mappings): Rename and remove static.
14642 (i386_windows_segment_register_p): Remove static.
14643 (_initialize_i386_windows_nat): Update.
14644 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14645 (STATUS_WX86_SINGLE_STEP): New macro.
14646 (EnumProcessModulesEx): New macro.
14647 (Wow64SuspendThread): New macro.
14648 (Wow64GetThreadContext): New macro.
14649 (Wow64SetThreadContext): New macro.
14650 (Wow64GetThreadSelectorEntry): New macro.
14651 (windows_set_context_register_offsets): Add static.
14652 (windows_set_segment_register_p): Likewise.
14653 (windows_add_thread): Adapt for WOW64 processes.
14654 (windows_fetch_one_register): Likewise.
14655 (windows_nat_target::fetch_registers): Likewise.
14656 (windows_store_one_register): Likewise.
14657 (display_selector): Likewise.
14658 (display_selectors): Likewise.
14659 (handle_exception): Likewise.
14660 (windows_continue): Likewise.
14661 (windows_nat_target::resume): Likewise.
14662 (windows_add_all_dlls): Likewise.
14663 (do_initial_windows_stuff): Likewise.
14664 (windows_nat_target::attach): Likewise.
14665 (windows_get_exec_module_filename): Likewise.
14666 (windows_nat_target::create_inferior): Likewise.
14667 (windows_xfer_siginfo): Likewise.
14668 (_initialize_loadable): Initialize Wow64SuspendThread,
14669 Wow64GetThreadContext, Wow64SetThreadContext,
14670 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14671 * windows-nat.h (windows_set_context_register_offsets):
14672 Remove declaration.
14673 (windows_set_segment_register_p): Likewise.
14674 (i386_windows_segment_register_p): Add declaration.
14675 (amd64_windows_segment_register_p): Likewise.
14677 2020-03-04 Luis Machado <luis.machado@linaro.org>
14679 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14680 in "info registers" for AArch64/ARM.
14682 The change caused "info registers" to not print GPR's.
14686 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14688 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14689 when reg->group is empty and reggroup is not.
14691 2020-03-03 Tom Tromey <tromey@adacore.com>
14693 * dwarf2/frame.c (struct dwarf2_frame_cache)
14694 <checked_tailcall_bottom, entry_cfa_sp_offset,
14695 entry_cfa_sp_offset_p>: Remove members.
14696 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14697 (dwarf2_frame_prev_register): Don't call
14698 dwarf2_tailcall_sniffer_first.
14699 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14700 * frame-unwind.c (add_unwinder): New fuction.
14701 (frame_unwind_init): Use it. Add tailcall unwinder.
14703 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14704 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14706 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14707 value should be printed as true.
14709 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14711 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14712 (windows_init_abi): Set and use windows_so_ops.
14714 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14716 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14717 when verifying if dealing with a convenience variable.
14719 2020-03-03 Luis Machado <luis.machado@linaro.org>
14721 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14723 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14725 * infrun.c (gdbarch_supports_displaced_stepping): New.
14726 (use_displaced_stepping): Break up conditions in smaller pieces.
14727 Use gdbarch_supports_displaced_stepping.
14728 (displaced_step_prepare_throw): Use
14729 gdbarch_supports_displaced_stepping.
14731 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14733 * NEWS: Mention new behaviour of the history filename.
14734 * top.c (write_history_p): Add comment.
14735 (show_write_history_p): Add header comment, give a different
14736 message when history writing is on, but the history filename is
14738 (history_filename): Add comment.
14739 (history_filename_empty): New function.
14740 (show_history_filename): Add header comment, give a different
14741 message when the filename is empty.
14742 (init_history): Compare history_filename against nullptr, and only
14743 read history if the filename is not empty.
14744 (set_history_filename): Add header comment, and only make
14745 non-empty filenames absolute.
14746 (init_main): Make the filename argument to 'set history filename'
14749 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14751 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14752 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14753 (fetch_fp_register): Update.
14754 (fetch_fp_regs): Update.
14755 (store_fp_register): Update.
14756 (store_fp_regs): Update.
14757 (arm_netbsd_nat_target::read_description): New function.
14758 (fetch_elfcore_registers): Update.
14760 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14762 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14763 general_thread if the stop reply is missing a thread-id.
14764 (remote_target::process_stop_reply): Use the first non-exited
14765 thread if the target didn't pass a thread-id.
14766 * infrun.c (do_target_wait): Move call to
14767 switch_to_inferior_no_thread to ....
14768 (do_target_wait_1): ... here.
14770 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14772 * debuginfod-support.c: Include defs.h first.
14774 2020-02-28 Tom de Vries <tdevries@suse.de>
14776 * symfile.c (set_initial_language): Use default language for lookup.
14778 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14780 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14781 reader variable, pass `this` to read_cutu_die_from_dwo.
14783 2020-02-27 Aaron Merey <amerey@redhat.com>
14785 * source.c (open_source_file): Check for nullptr when computing
14788 2020-02-27 Tom Tromey <tromey@adacore.com>
14790 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14792 (dwarf2_add_field): Don't update nfields.
14793 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14795 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14797 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14800 2020-02-26 Tom Tromey <tom@tromey.com>
14802 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14803 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14804 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14805 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14808 2020-02-26 Tom Tromey <tom@tromey.com>
14810 * dwarf2/index-write.c (psym_index_map): Change type.
14811 (add_address_entry_worker, write_one_signatured_type)
14812 (recursively_count_psymbols, recursively_write_psymbols)
14813 (class debug_names, psyms_seen_size, write_gdbindex)
14814 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14816 2020-02-26 Aaron Merey <amerey@redhat.com>
14818 * Makefile.in: Handle optional debuginfod support.
14820 * README: Add --with-debuginfod summary.
14821 * config.in: Regenerate.
14822 * configure: Regenerate.
14823 * configure.ac: Handle optional debuginfod support.
14824 * debuginfod-support.c: debuginfod helper functions.
14825 * debuginfod-support.h: Ditto.
14826 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14828 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14829 when a dwz file cannot be found.
14830 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14831 debuginfo file cannot be found.
14832 * source.c (open_source_file): Query debuginfod servers when a
14833 source file cannot be found.
14834 * top.c (print_gdb_configuration): Include
14835 --{with,without}-debuginfod in the output.
14837 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14839 * thread.c (thr_try_catch_cmd): Print thread name.
14841 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14843 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14844 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14845 dwarf2_fetch_die_type_sect_off): Move to...
14846 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14847 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14848 dwarf2_fetch_die_type_sect_off): ... here.
14849 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14850 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14851 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14853 2020-02-26 Tom de Vries <tdevries@suse.de>
14856 * symfile.c (set_initial_language): Exit-early if
14857 language_mode == language_mode_manual.
14859 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14861 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14862 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14863 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14865 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14867 * gdbtypes.c (create_array_type_with_stride): Handle negative
14869 * valarith.c (value_subscripted_rvalue): Likewise.
14871 2020-02-25 Luis Machado <luis.machado@linaro.org>
14873 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14875 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14877 * loc.h (dwarf2_get_die_type): Move to...
14878 * read.h (dwarf2_get_die_type): ... here.
14879 * read.c (dwarf2_get_die_type): Move doc to header.
14881 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14883 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14884 'gnulib/Makefile.in' to the list.
14886 2020-02-24 Tom Tromey <tom@tromey.com>
14888 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14890 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14893 2020-02-24 Tom Tromey <tom@tromey.com>
14895 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14897 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14898 (dw2_do_instantiate_symtab, dw2_get_file_names)
14899 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14901 2020-02-24 Tom Tromey <tom@tromey.com>
14903 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14904 make_scoped_restore.
14905 (dwarf2_psymtab::read_symtab): Don't clear
14906 reading_partial_symbols.
14908 2020-02-24 Tom de Vries <tdevries@suse.de>
14911 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14913 2020-02-24 Tom de Vries <tdevries@suse.de>
14915 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14916 commands layout next/prev/regs.
14918 2020-02-22 Tom Tromey <tom@tromey.com>
14920 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14921 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14923 2020-02-22 Tom Tromey <tom@tromey.com>
14925 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14927 2020-02-22 Tom Tromey <tom@tromey.com>
14929 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14930 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14931 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14932 * tui/tui.c (_initialize_tui): Add usage text.
14934 2020-02-22 Tom Tromey <tom@tromey.com>
14936 * tui/tui-win.c (tui_set_focus_command)
14937 (tui_set_win_height_command): Use error_no_arg.
14938 (_initialize_tui_win): Update help text.
14939 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14941 2020-02-22 Tom Tromey <tom@tromey.com>
14943 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14944 * tui/tui-disasm.h (struct tui_disasm_window)
14945 <display_start_addr>: Declare.
14946 * tui/tui-source.h (struct tui_source_window)
14947 <display_start_addr>: Declare.
14948 * tui/tui-winsource.h (struct tui_source_window_base)
14949 <show_source_line, display_start_addr>: New methods.
14950 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14951 Rename and move to protected section.
14952 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14953 (tui_source_window_base::do_erase_source_content): Update.
14954 (tui_source_window_base::show_source_line): Now a method.
14955 (tui_source_window_base::show_source_content)
14956 (tui_source_window_base::tui_source_window_base)
14957 (tui_source_window_base::rerender)
14958 (tui_source_window_base::refill)
14959 (tui_source_window_base::do_scroll_horizontal)
14960 (tui_source_window_base::set_is_exec_point_at)
14961 (tui_source_window_base::update_breakpoint_info)
14962 (tui_source_window_base::update_exec_info): Update.
14963 * tui/tui-source.c (tui_source_window::set_contents)
14964 (tui_source_window::showing_source_p)
14965 (tui_source_window::do_scroll_vertical)
14966 (tui_source_window::location_matches_p)
14967 (tui_source_window::line_is_displayed): Update.
14968 (tui_source_window::display_start_addr): New method.
14969 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14970 (tui_disasm_window::do_scroll_vertical)
14971 (tui_disasm_window::location_matches_p): Update.
14972 (tui_disasm_window::display_start_addr): New method.
14974 2020-02-22 Tom Tromey <tom@tromey.com>
14976 * NEWS: Add entry for gdb.register_window_type.
14977 * tui/tui-layout.h (window_factory): New typedef.
14978 (tui_register_window): Declare.
14979 * tui/tui-layout.c (saved_tui_windows): New global.
14980 (tui_apply_current_layout): Use it.
14981 (tui_register_window): New function.
14982 * python/python.c (do_start_initialization): Call
14983 gdbpy_initialize_tui.
14984 (python_GdbMethods): Add "register_window_type" function.
14985 * python/python-internal.h (gdbpy_register_tui_window)
14986 (gdbpy_initialize_tui): Declare.
14987 * python/py-tui.c: New file.
14988 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14990 2020-02-22 Tom Tromey <tom@tromey.com>
14992 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14994 2020-02-22 Tom Tromey <tom@tromey.com>
14996 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14997 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14998 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14999 (tui_set_win_focus_to): Move from tui-win.c.
15001 2020-02-22 Tom Tromey <tom@tromey.com>
15003 * tui/tui-layout.c (make_standard_window, get_locator_window): New
15005 (known_window_types): New global.
15006 (tui_get_window_by_name): Reimplement.
15007 (initialize_known_windows): New function.
15008 (validate_window_name): Rewrite.
15009 (_initialize_tui_layout): Call initialize_known_windows.
15011 2020-02-22 Tom Tromey <tom@tromey.com>
15013 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
15015 * tui/tui-winsource.h (struct tui_source_window_base)
15016 <tui_source_window_base>: Remove parameter.
15017 * tui/tui-winsource.c
15018 (tui_source_window_base::tui_source_window_base): Remove
15020 (tui_source_window_base::refill): Update.
15021 * tui/tui-stack.h (struct tui_locator_window)
15022 <tui_locator_window>: Update.
15023 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
15024 Default the constructor.
15025 * tui/tui-regs.h (struct tui_data_item_window)
15026 <tui_data_item_window>: Default the constructor.
15027 (struct tui_data_window) <tui_data_window>: Likewise.
15028 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
15029 Default the constructor.
15030 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
15031 Default the constructor.
15033 (struct tui_win_info) <tui_win_info>: Default the constructor.
15034 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
15035 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
15036 Default the constructor.
15038 2020-02-22 Tom Tromey <tom@tromey.com>
15040 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
15041 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
15042 * tui/tui-win.c (tui_resize_all): Don't call
15043 tui_delete_invisible_windows.
15044 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
15046 (tui_set_layout): Update.
15047 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
15048 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
15049 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
15051 2020-02-22 Tom Tromey <tom@tromey.com>
15053 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
15056 2020-02-22 Tom Tromey <tom@tromey.com>
15058 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
15060 2020-02-22 Tom Tromey <tom@tromey.com>
15062 * tui/tui-winsource.h (struct tui_source_window_iterator)
15063 <inner_iterator>: New etytypedef.
15064 <tui_source_window_iterator>: Take "end" parameter.
15065 <tui_source_window_iterator>: Take iterator.
15066 <operator*, advance>: Update.
15067 <m_iter>: Change type.
15068 <m_end>: New field.
15069 (struct tui_source_windows) <begin, end>: Update.
15070 * tui/tui-layout.c (tui_windows): New global.
15071 (tui_apply_current_layout): Clear tui_windows.
15072 (tui_layout_window::apply): Update tui_windows.
15073 * tui/tui-data.h (tui_windows): Declare.
15074 (all_tui_windows): Now inline function.
15075 (class tui_window_iterator, struct all_tui_windows): Remove.
15077 2020-02-22 Tom Tromey <tom@tromey.com>
15080 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
15081 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
15083 (class tui_layout_window) <get_sizes>: Likewise.
15084 (class tui_layout_split) <tui_layout_split>: Add "vertical"
15086 <get_sizes>: Add "height" argument.
15087 <m_vertical>: New field.
15088 * tui/tui-layout.c (tui_layout_split::clone): Update.
15089 (tui_layout_split::get_sizes): Add "height" argument.
15090 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
15091 (tui_new_layout_command): Parse "-horizontal".
15092 (_initialize_tui_layout): Update help string.
15093 (tui_layout_split::specification): Add "-horizontal" when needed.
15094 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
15096 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
15099 2020-02-22 Tom Tromey <tom@tromey.com>
15101 * tui/tui-layout.h (enum tui_adjust_result): New.
15102 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
15103 (class tui_layout_window) <adjust_size>: Return
15104 tui_adjust_result. Rewrite.
15105 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15106 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15108 2020-02-22 Tom Tromey <tom@tromey.com>
15110 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15111 parameter and return types.
15112 (class tui_layout_base) <specification>: Add "depth".
15113 (class tui_layout_window) <specification>: Add "depth".
15114 (class tui_layout_split) <specification>: Add "depth".
15115 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15117 (tui_new_layout_command): Parse sub-layouts.
15118 (_initialize_tui_layout): Update help string.
15119 (tui_layout_window::specification): Add "depth".
15120 (add_layout_command): Update.
15122 2020-02-22 Tom Tromey <tom@tromey.com>
15124 * NEWS: Add "tui new-layout" item.
15125 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15126 Add new-layout command to help text.
15127 (validate_window_name): New function.
15128 (tui_new_layout_command): New function.
15129 (_initialize_tui_layout): Register "new-layout".
15130 (tui_layout_window::specification): New method.
15131 (tui_layout_window::specification): New method.
15132 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15134 (class tui_layout_window) <specification>: New method.
15135 (class tui_layout_split) <specification>: New method.
15137 2020-02-22 Tom Tromey <tom@tromey.com>
15139 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15140 * tui/tui-win.c (window_name_completer): Update comment.
15141 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15143 (class tui_layout_window) <replace_window>: Likewise.
15144 (class tui_layout_split) <replace_window>: Likewise.
15145 (tui_set_layout): Don't declare.
15146 (tui_set_initial_layout): Declare function.
15147 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15148 (asm_regs_layout): New globals.
15149 (tui_current_layout, show_layout): Remove.
15150 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15151 (find_layout, tui_apply_layout): New function.
15152 (layout_completer): Remove.
15153 (tui_next_layout): Reimplement.
15154 (tui_next_layout_command): New function.
15155 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15156 (tui_regs_layout): Reimplement.
15157 (tui_regs_layout_command): New function.
15158 (extract_display_start_addr): Rewrite.
15159 (next_layout, prev_layout): Remove.
15160 (tui_layout_window::replace_window): New method.
15161 (tui_layout_split::replace_window): New method.
15162 (destroy_layout): New function.
15163 (layout_list): New global.
15164 (add_layout_command): New function.
15165 (initialize_layouts): Update.
15166 (tui_layout_command): New function.
15167 (_initialize_tui_layout): Install "layout" commands.
15168 * tui/tui-data.h (enum tui_layout_type): Remove.
15169 (tui_current_layout): Don't declare.
15171 2020-02-22 Tom Tromey <tom@tromey.com>
15173 * tui/tui-regs.c (tui_reg_layout): Remove.
15174 (tui_reg_command): Use tui_regs_layout.
15175 * tui/tui-layout.h (tui_reg_command): Declare.
15176 * tui/tui-layout.c (tui_reg_command): New function.
15178 2020-02-22 Tom Tromey <tom@tromey.com>
15180 * tui/tui.c (tui_rl_delete_other_windows): Call
15181 tui_remove_some_windows.
15182 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15184 (class tui_layout_window) <remove_windows>: New method.
15185 (class tui_layout_split) <remove_windows>: Declare.
15186 (tui_remove_some_windows): Declare.
15187 * tui/tui-layout.c (tui_remove_some_windows): New function.
15188 (tui_layout_split::remove_windows): New method.
15190 2020-02-22 Tom Tromey <tom@tromey.com>
15192 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15193 * tui/tui-layout.h (tui_next_layout): Declare.
15194 * tui/tui-layout.c (tui_next_layout): New function.
15196 2020-02-22 Tom Tromey <tom@tromey.com>
15198 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15199 correct coordinates.
15201 2020-02-22 Tom Tromey <tom@tromey.com>
15203 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15204 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15207 2020-02-22 Tom Tromey <tom@tromey.com>
15209 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15210 TUI_DISASM_WIN, not tui_win_list.
15212 2020-02-22 Tom Tromey <tom@tromey.com>
15214 * valprint.c (generic_val_print_enum_1)
15215 (val_print_type_code_flags): Style member names.
15216 * rust-lang.c (val_print_struct, rust_print_enum)
15217 (rust_print_struct_def, rust_internal_print_type): Style member
15219 * p-valprint.c (pascal_object_print_value_fields): Style member
15220 names. Only call fprintf_symbol_filtered for static members.
15221 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15222 * f-valprint.c (f_val_print): Style member names.
15223 * f-typeprint.c (f_type_print_base): Style member names.
15224 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15225 call fprintf_symbol_filtered for static members.
15226 (cp_print_class_member): Style member names.
15227 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15229 * ada-valprint.c (ada_print_scalar): Style enum names.
15230 (ada_val_print_enum): Likewise.
15231 * ada-typeprint.c (print_enum_type): Style enum names.
15233 2020-02-21 Tom Tromey <tom@tromey.com>
15235 * psympriv.h (struct partial_symtab): Update comment.
15237 2020-02-21 Tom Tromey <tromey@adacore.com>
15239 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15242 2020-02-21 Tom de Vries <tdevries@suse.de>
15245 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15246 if dependencies[i]->user != NULL.
15248 2020-02-21 Ali Tamur <tamur@google.com>
15250 * dwarf2/read.c (dwarf2_name): Add null check.
15252 2020-02-20 Tom Tromey <tom@tromey.com>
15254 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15255 ">=", in binary search.
15256 (dwarf2_find_containing_comp_unit): New overload.
15257 (run_test): New self-test.
15258 (_initialize_dwarf2_read): Register new test.
15260 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15262 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15263 * riscv-tdep.h: Likewise.
15264 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15266 * features/riscv/64bit-csr.xml: Regenerated.
15268 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15269 Tom Tromey <tom@tromey.com>
15271 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15272 of 'fputc_unfiltered'.
15273 (putchar_unfiltered): Call 'fputc_unfiltered'.
15274 (fputc_unfiltered): Call 'fputs_unfiltered'.
15276 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15278 * config.in: Regenerate.
15279 * configure: Regenerate.
15280 * configure.ac: Add --with-python-libdir option.
15281 * main.c: Use WITH_PYTHON_LIBDIR.
15283 2020-02-19 Tom Tromey <tom@tromey.com>
15285 * symtab.c (general_symbol_info::compute_and_set_names): Use
15286 obstack_strndup. Simplify call to symbol_set_demangled_name.
15288 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15290 * dwarf2/read.c (allocate_signatured_type_table,
15291 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15292 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15293 Remove objfile parameter, update all callers.
15295 2020-02-19 Doug Evans <dje@google.com>
15298 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15299 rust_enum_variant calculation.
15301 2020-02-19 Tom Tromey <tromey@adacore.com>
15303 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15305 2020-02-19 Tom Tromey <tromey@adacore.com>
15307 * ada-lang.c (cache_symbol): Use obstack_strdup.
15309 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15311 * configure: Regenerate.
15313 2020-02-19 Tom Tromey <tromey@adacore.com>
15315 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15318 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15320 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15322 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15324 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15325 if GDBSERVER is not defined.
15326 (riscv_tdesc_cache): Likewise, also store const target_desc.
15327 (STATIC_IN_GDB): Define.
15328 (riscv_create_target_description): Update declaration with
15330 (riscv_lookup_target_description): New function, only define if
15331 GDBSERVER is not defined.
15332 * arch/riscv.h (riscv_create_target_description): Declare only
15333 when GDBSERVER is defined.
15334 (riscv_lookup_target_description): New declaration when GDBSERVER
15336 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15337 (riscv_linux_read_features): ...this, and return
15338 riscv_gdbarch_features instead of target_desc.
15339 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15340 (riscv_linux_read_description): Rename to...
15341 (riscv_linux_read_features): ...this.
15342 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15343 Update to use riscv_gdbarch_features and
15344 riscv_lookup_target_description.
15345 * riscv-tdep.c (riscv_find_default_target_description): Use
15346 riscv_lookup_target_description instead of
15347 riscv_create_target_description.
15349 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15351 * valprint.c (generic_val_print_enum_1): When printing a flag
15352 enum with value 0 and there is no enumerator with value 0, print
15353 just "0" instead of "(unknown: 0x0)".
15355 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15357 * valprint.c (generic_val_print_enum_1): Print unknown part of
15360 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15362 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15363 flag enums to contain duplicate enumerators.
15364 * valprint.c (generic_val_print_enum_1): Update comment.
15366 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15368 * dwarf2/read.c: Include "count-one-bits.h".
15369 (update_enumeration_type_from_children): If an enumerator has
15370 multiple bits set, don't treat the enumeration as a "flag enum".
15371 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15372 of flag enums have 0 or 1 bit set.
15374 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15376 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15378 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15379 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15380 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15381 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15382 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15384 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15386 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15388 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15390 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15391 displaced_step_closure_up.
15392 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15393 (struct displaced_step_closure_up):
15394 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15395 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15396 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15398 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15399 * gdbarch.c, gdbarch.h: Re-generate.
15400 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15401 displaced_step_closure_up.
15402 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15403 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15404 * infrun.h (displaced_step_closure_up): New type alias.
15405 (struct displaced_step_inferior_state) <step_closure>: Change
15406 type to displaced_step_closure_up.
15407 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15408 displaced_step_closure_up.
15409 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15411 2020-02-14 Tom Tromey <tom@tromey.com>
15413 * minidebug.c (gnu_debug_key): New global.
15414 (find_separate_debug_file_in_section): Use it.
15416 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15418 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15420 * gdbarch.c: Re-generate.
15421 * gdbarch.h: Re-generate.
15422 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15424 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15425 type to std::unique_ptr.
15426 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15427 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15428 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15429 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15430 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15431 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15432 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15433 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15434 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15436 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15438 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15440 (displaced_step_clear): Rename to...
15441 (displaced_step_reset): ... this. Just call displaced->reset ().
15442 (displaced_step_clear_cleanup): Rename to...
15443 (displaced_step_reset_cleanup): ... this.
15444 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15445 (displaced_step_fixup): Likewise.
15446 (resume_1): Likewise.
15447 (handle_inferior_event): Restore child's memory before calling
15448 displaced_step_fixup on the parent.
15449 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15450 to std::unique_ptr.
15451 <step_closure>: Change type to std::unique_ptr.
15453 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15455 * arm-tdep.c: Include count-one-bits.h.
15456 (cleanup_block_store_pc): Use count_one_bits.
15457 (cleanup_block_load_pc): Use count_one_bits.
15458 (arm_copy_block_xfer): Use count_one_bits.
15459 (thumb2_copy_block_xfer): Use count_one_bits.
15460 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15461 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15462 (thumb_get_next_pcs_raw): Use count_one_bits.
15463 (arm_get_next_pcs_raw): Use count_one_bits_l.
15464 * arch/arm.c (bitcount): Remove.
15465 * arch/arm.h (bitcount): Remove.
15467 2020-02-14 Tom Tromey <tromey@adacore.com>
15469 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15471 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15472 * dwarf2/loc.c (call_site_find_chain_1): Return
15473 unique_xmalloc_ptr.
15474 (call_site_find_chain): Likewise.
15476 2020-02-14 Richard Biener <rguenther@suse.de>
15478 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15479 on expression with division operators.
15481 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15483 * MAINTAINERS (Write After Approval): Adding myself.
15485 2020-02-12 Tom Tromey <tom@tromey.com>
15487 * event-loop.c (event_data, gdb_event, event_handler_func):
15490 2020-02-12 Tom Tromey <tom@tromey.com>
15492 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15493 (dwarf2_frame_objfile_data): Add comment.
15494 (find_comp_unit, set_comp_unit): New functions.
15495 (dwarf2_frame_find_fde): Use find_comp_unit.
15496 (dwarf2_build_frame_info): Use set_comp_unit.
15498 2020-02-12 Tom Tromey <tom@tromey.com>
15500 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15501 (comp_unit): Don't initialize objfile.
15502 (execute_cfa_program): Add text_offset parameter.
15503 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15504 (dwarf2_frame_cache): Update.
15505 (dwarf2_build_frame_info): Don't set "objfile" member.
15507 2020-02-12 Tom Tromey <tom@tromey.com>
15509 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15510 (decode_frame_entry): Likewise.
15511 (dwarf2_build_frame_info): Update.
15513 2020-02-12 Tom Tromey <tom@tromey.com>
15515 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15516 (decode_frame_entry_1): Use the comp_unit obstack.
15518 2020-02-12 Tom Tromey <tom@tromey.com>
15520 * dwarf2/frame.c (struct comp_unit): Add initializers and
15522 (dwarf2_frame_objfile_data): Store a comp_unit.
15523 (dwarf2_frame_find_fde): Update.
15524 (dwarf2_build_frame_info): Use "new".
15526 2020-02-12 Tom Tromey <tom@tromey.com>
15528 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15529 (dwarf2_fde_table): Typedef for std::vector.
15530 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15531 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15532 (decode_frame_entry): Update.
15533 (dwarf2_build_frame_info): Use "new".
15535 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15537 * arm-tdep.c (arm_gdbarch_init): Update.
15538 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15539 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15540 have_neon, is_m>: Change to bool.
15542 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15544 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15546 2020-02-12 Tom Tromey <tom@tromey.com>
15548 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15550 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15552 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15553 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15555 2020-02-11 Tom Tromey <tom@tromey.com>
15557 * psymtab.h: Update comment.
15559 2020-02-11 Tom Tromey <tom@tromey.com>
15561 * gdb_obstack.h (struct auto_obstack): Use
15562 DISABLE_COPY_AND_ASSIGN.
15564 2020-02-11 Tom Tromey <tom@tromey.com>
15566 * dwarf2/frame.h (struct objfile): Don't forward declare.
15568 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15570 * cris-tdep.c (cris_supply_gregset): Change signature to match
15571 what struct regset expects.
15572 (cris_regset): New struct.
15573 (fetch_core_registers): Remove.
15574 (cris_iterate_over_regset_sections): New function.
15575 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15576 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15578 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15580 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15583 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15585 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15587 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15589 * configure: Re-generate.
15591 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15593 * configure: Re-generate.
15595 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15597 * acinclude: Update warning.m4 path.
15598 * warning.m4: Move to gdbsupport.
15600 2020-02-11 Tom Tromey <tromey@adacore.com>
15602 * remote.c (remote_console_output): Update.
15603 * printcmd.c (printf_command): Update.
15604 * event-loop.c (gdb_wait_for_event): Update.
15605 * linux-nat.c (sigchld_handler): Update.
15606 * remote-sim.c (gdb_os_write_stdout): Update.
15607 (gdb_os_flush_stdout): Update.
15608 (gdb_os_flush_stderr): Update.
15609 (gdb_os_write_stderr): Update.
15610 * exceptions.c (print_exception): Update.
15611 * remote-fileio.c (remote_fileio_func_read): Update.
15612 (remote_fileio_func_write): Update.
15613 * tui/tui.c (tui_enable): Update.
15614 * tui/tui-interp.c (tui_interp::init): Update.
15615 * utils.c (init_page_info): Update.
15616 (putchar_unfiltered, fputc_unfiltered): Update.
15617 (gdb_flush): Update.
15618 (emit_style_escape): Update.
15619 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15620 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15621 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15622 (stderr_file::write): Update.
15623 (stderr_file::puts): Update.
15624 * ui-file.h (ui_file_isatty, ui_file_write)
15625 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15626 (ui_file_puts): Don't declare.
15628 2020-02-10 Tom de Vries <tdevries@suse.de>
15630 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15631 sentinel to char *.
15633 2020-02-09 Tom de Vries <tdevries@suse.de>
15635 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15636 filename if it matches "<artificial>".
15638 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15640 * windows-tdep.c (struct enum_value_name): New struct.
15641 (create_enum): New function.
15642 (windows_get_siginfo_type): Create and use enum types.
15644 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15646 * NEWS: Mention $_siginfo support for Windows.
15647 * windows-nat.c (handle_exception): Set siginfo_er.
15648 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15649 (windows_xfer_siginfo): New function.
15650 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15651 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15652 (init_windows_gdbarch_data): New function.
15653 (get_windows_gdbarch_data): New function.
15654 (windows_get_siginfo_type): New function.
15655 (windows_init_abi): Register windows_get_siginfo_type.
15656 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15658 2020-02-08 Tom Tromey <tom@tromey.com>
15660 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15661 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15662 <keep>: Declare method.
15663 <m_keep>: Remove member.
15664 <~cutu_reader>: Remove.
15665 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15666 (cutu_reader::cutu_reader): Update.
15667 (cutu_reader::keep): Rename from ~cutu_reader.
15668 (process_psymtab_comp_unit, build_type_psymtabs_1)
15669 (process_skeletonless_type_unit, load_partial_comp_unit)
15670 (load_full_comp_unit, dwarf2_read_addr_index)
15671 (read_signatured_type): Update.
15673 2020-02-08 Tom Tromey <tom@tromey.com>
15675 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15676 "want_partial_unit" parameter.
15677 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15678 Inline check for DW_TAG_partial_unit.
15679 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15681 2020-02-08 Tom Tromey <tom@tromey.com>
15683 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15685 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15688 2020-02-08 Tom Tromey <tom@tromey.com>
15690 * dwarf2/read.c (read_address): Move to comp-unit.c.
15691 (dwarf2_rnglists_process, dwarf2_ranges_process)
15692 (read_attribute_value, dwarf_decode_lines_1)
15693 (var_decode_location, decode_locdesc): Update.
15694 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15695 read.c. Remove "cu" parameter.
15696 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15699 2020-02-08 Tom Tromey <tom@tromey.com>
15701 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15702 (read_indirect_line_string): Update.
15703 * dwarf2/comp-unit.c (read_offset): Remove.
15704 (read_comp_unit_head): Update.
15705 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15707 (read_offset): Don't declare.
15709 2020-02-08 Tom Tromey <tom@tromey.com>
15711 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15712 * dwarf2/read.c (struct comp_unit_head): Move to
15713 dwarf2/comp-unit.h.
15714 (enum class rcuh_kind): Move to comp-unit.h.
15715 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15716 (read_comp_unit_head, error_check_comp_unit_head)
15717 (read_and_check_comp_unit_head): Move to comp-unit.c.
15718 (read_offset, dwarf_unit_type_name): Likewise.
15719 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15720 (cutu_reader::cutu_reader, read_call_site_scope)
15721 (find_partial_die, follow_die_offset): Update.
15722 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15724 2020-02-08 Tom Tromey <tom@tromey.com>
15726 * dwarf2/read.c (read_offset_1): Move to leb.c.
15727 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15728 (dwarf_decode_macro_bytes): Update.
15729 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15730 * dwarf2/leb.h (read_offset): Declare.
15732 2020-02-08 Tom Tromey <tom@tromey.com>
15734 * dwarf2/read.c (dwarf2_section_size): Remove.
15735 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15737 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15739 2020-02-08 Tom Tromey <tom@tromey.com>
15741 * dwarf2/read.c (read_initial_length): Move to leb.c.
15742 * dwarf2/leb.h (read_initial_length): Declare.
15743 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15744 handle_nonstd parameter.
15745 * dwarf2/frame.c (read_initial_length): Remove.
15746 (decode_frame_entry_1): Update.
15748 2020-02-08 Tom Tromey <tom@tromey.com>
15750 * dwarf2/loc.c (dwarf2_find_location_expression)
15751 (dwarf_evaluate_loc_desc::get_tls_address)
15752 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15753 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15754 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15755 (dwarf2_compile_property_to_c)
15756 (dwarf2_loc_desc_get_symbol_read_needs)
15757 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15758 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15759 (loclist_describe_location, loclist_tracepoint_var_ref)
15760 (loclist_generate_c_location): Update.
15761 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15762 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15763 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15764 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15765 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15766 (dwarf2_per_cu_data::addr_size)
15767 (dwarf2_per_cu_data::ref_addr_size)
15768 (dwarf2_per_cu_data::text_offset)
15769 (dwarf2_per_cu_data::addr_type): Now methods.
15770 (per_cu_header_read_in): Make per_cu "const".
15771 (dwarf2_version): Remove.
15772 (dwarf2_per_cu_data::int_type): Now a method.
15773 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15774 (set_die_type, read_array_type, read_subrange_index_type)
15775 (read_tag_string_type, read_subrange_type): Update.
15776 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15777 offset_size, ref_addr_size, text_offset, addr_type, version,
15778 objfile, int_type, addr_sized_int_type>: Declare methods.
15780 2020-02-08 Tom Tromey <tom@tromey.com>
15782 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15785 2020-02-08 Tom Tromey <tom@tromey.com>
15787 * dwarf2/read.h (dwarf_line_debug): Declare.
15788 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15789 * dwarf2/read.c: Move line_header code to new files.
15790 (dwarf_line_debug): No longer static.
15791 * dwarf2/line-header.c: New file.
15792 * dwarf2/line-header.h: New file.
15794 2020-02-08 Tom Tromey <tom@tromey.com>
15796 * dwarf2/read.c (struct line_header) <file_full_name,
15797 file_file_name>: Return unique_xmalloc_ptr.
15798 (line_header::file_file_name): Update.
15799 (line_header::file_full_name): Update.
15800 (dw2_get_file_names_reader): Update.
15801 (macro_start_file): Update.
15803 2020-02-08 Tom Tromey <tom@tromey.com>
15805 * dwarf2/read.c (struct line_header) <file_full_name,
15806 file_file_name>: Declare methods.
15807 (dw2_get_file_names_reader): Update.
15808 (file_file_name): Now a method.
15809 (file_full_name): Likewise.
15810 (macro_start_file): Update.
15812 2020-02-08 Tom Tromey <tom@tromey.com>
15814 * dwarf2/read.c (dwarf_always_disassemble)
15815 (show_dwarf_always_disassemble): Move to loc.c.
15816 (_initialize_dwarf2_read): Move "always-disassemble" registration
15818 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15819 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15821 (show_dwarf_always_disassemble): Move from read.c.
15822 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15824 2020-02-08 Tom Tromey <tom@tromey.com>
15826 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15827 (create_quick_file_names_table): Return htab_up.
15828 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15830 * dwarf2/read.h (struct dwarf2_per_objfile)
15831 <quick_file_names_table>: Now htab_up.
15833 2020-02-08 Tom Tromey <tom@tromey.com>
15835 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15837 2020-02-08 Tom Tromey <tom@tromey.com>
15839 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15841 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15842 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15843 (abbrev_table::abbrev_table): No longer inline.
15844 (ABBREV_HASH_SIZE): Remove.
15845 (abbrev_table::m_abbrevs): Now an htab_up.
15847 2020-02-08 Tom Tromey <tom@tromey.com>
15849 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15850 (cutu_reader): Update.
15851 (build_type_psymtabs_1): Update.
15852 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15853 (abbrev_table::alloc_abbrev): Update.
15854 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15855 (abbrev_table::read): New static method, renamed from
15856 abbrev_table_read_table.
15857 (abbrev_table::alloc_abbrev)
15858 (abbrev_table::add_abbrev): Now private.
15859 (abbrev_table::abbrev_table): Now private.
15860 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15862 2020-02-08 Tom Tromey <tom@tromey.com>
15864 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15865 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15868 2020-02-08 Tom Tromey <tom@tromey.com>
15870 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15872 (lookup_dwo_unit_in_dwp): Update.
15873 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15876 2020-02-08 Tom Tromey <tom@tromey.com>
15878 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15881 2020-02-08 Tom Tromey <tom@tromey.com>
15883 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15885 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15886 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15887 Change type to htab_up.
15889 2020-02-08 Tom Tromey <tom@tromey.com>
15891 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15892 htab_up. Don't allocate on obstack.
15893 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15894 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15895 Change type to htab_up.
15897 2020-02-08 Tom Tromey <tom@tromey.com>
15899 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15900 Change type to htab_up.
15901 * dwarf2/read.c (create_signatured_type_table_from_index)
15902 (create_signatured_type_table_from_debug_names)
15903 (create_all_type_units, add_type_unit)
15904 (lookup_dwo_signatured_type, lookup_signatured_type)
15905 (process_skeletonless_type_unit): Update.
15906 (create_debug_type_hash_table, create_debug_types_hash_table):
15907 Change type of types_htab.
15908 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15909 htab_up. Don't allocate on obstack.
15910 (create_cus_hash_table): Change type of cus_htab parameter.
15911 (struct dwo_file) <cus, tus>: Now htab_up.
15912 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15913 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15914 (queue_and_load_all_dwo_tus): Update.
15915 * dwarf2/index-write.c (write_gdbindex): Update.
15916 (write_debug_names): Update.
15918 2020-02-08 Tom Tromey <tom@tromey.com>
15920 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15921 dwarf2/read.c. Remove "next" member. Add constructor ntad
15923 (struct dwarf2_per_objfile) <queue>: New member.
15924 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15926 (dwarf2_queue, dwarf2_queue_tail): Remove.
15927 (class dwarf2_queue_guard): Add parameter to constructor. Use
15928 DISABLE_COPY_AND_ASSIGN.
15929 <m_per_objfile>: New member.
15930 <~dwarf2_queue_guard>: Rewrite.
15931 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15933 (~dwarf2_queue_item): New.
15935 2020-02-08 Tom Tromey <tom@tromey.com>
15937 * dwarf2/read.c (struct die_info) <has_children>: New member.
15938 (dw2_get_file_names_reader): Remove has_children.
15939 (dw2_get_file_names): Update.
15940 (read_cutu_die_from_dwo): Remove has_children.
15941 (cutu_reader::init_tu_and_read_dwo_dies)
15942 (cutu_reader::cutu_reader): Update.
15943 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15944 Remove has_children.
15945 (build_type_psymtabs_1, process_skeletonless_type_unit)
15946 (load_partial_comp_unit, load_full_comp_unit): Update.
15947 (create_dwo_cu_reader): Remove has_children.
15948 (create_cus_hash_table, read_die_and_children): Update.
15949 (read_full_die_1,read_full_die): Remove has_children.
15950 (read_signatured_type): Update.
15951 (class cutu_reader) <has_children>: Remove.
15953 2020-02-08 Tom Tromey <tom@tromey.com>
15955 * dwarf2/expr.c: Rename from dwarf2expr.c.
15956 * dwarf2/expr.h: Rename from dwarf2expr.h.
15957 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15958 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15959 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15960 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15961 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15962 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15963 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15964 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15965 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15966 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15967 * dwarf2/loc.c: Rename from dwarf2loc.c.
15968 * dwarf2/loc.h: Rename from dwarf2loc.h.
15969 * dwarf2/read.c: Rename from dwarf2read.c.
15970 * dwarf2/read.h: Rename from dwarf2read.h.
15971 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15972 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15973 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15974 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15975 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15976 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15977 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15978 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15979 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15980 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15981 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15982 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15983 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15985 * Makefile.in (COMMON_SFILES): Update.
15986 (HFILES_NO_SRCDIR): Update.
15988 2020-02-08 Tom Tromey <tom@tromey.com>
15990 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15991 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15993 2020-02-08 Tom Tromey <tom@tromey.com>
15995 * dwarf2read.h (struct die_info): Don't declare.
15997 2020-02-08 Tom Tromey <tom@tromey.com>
15999 * dwarf2read.h (die_info_ptr): Remove typedef.
16001 2020-02-08 Tom Tromey <tom@tromey.com>
16003 * dwarf2read.c (read_call_site_scope)
16004 (handle_data_member_location, dwarf2_add_member_fn)
16005 (mark_common_block_symbol_computed, read_common_block)
16006 (attr_to_dynamic_prop, partial_die_info::read)
16007 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
16008 (dwarf2_symbol_mark_computed, set_die_type): Update.
16009 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
16011 (attr_form_is_block): Don't declare.
16012 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
16014 2020-02-08 Tom Tromey <tom@tromey.com>
16016 * dwarf2read.c (dwarf2_find_base_address, )
16017 (read_call_site_scope, rust_containing_type)
16018 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
16019 (handle_data_member_location, dwarf2_add_member_fn)
16020 (get_alignment, read_structure_type, process_structure_scope)
16021 (mark_common_block_symbol_computed, read_common_block)
16022 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
16023 (partial_die_info::read, read_attribute_value, new_symbol)
16024 (lookup_die_type, dwarf2_get_ref_die_offset)
16025 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
16026 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
16027 (dwarf2_symbol_mark_computed): Update.
16028 * dwarf2/attribute.h (struct attribute) <value_as_address,
16029 form_is_section_offset, form_is_constant, form_is_ref>: Declare
16031 (value_as_address, attr_form_is_section_offset)
16032 (attr_form_is_constant, attr_form_is_ref): Don't declare.
16033 * dwarf2/attribute.c (attribute::value_as_address)
16034 (attribute::form_is_section_offset, attribute::form_is_constant)
16035 (attribute::form_is_ref): Now methods.
16037 2020-02-08 Tom Tromey <tom@tromey.com>
16039 * dwarf2read.c (struct attribute, DW_STRING)
16040 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
16041 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
16042 (attr_form_is_block, attr_form_is_section_offset)
16043 (attr_form_is_constant, attr_form_is_ref): Move.
16044 * dwarf2/attribute.h: New file.
16045 * dwarf2/attribute.c: New file, from dwarf2read.c.
16046 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
16048 2020-02-08 Tom Tromey <tom@tromey.com>
16050 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
16051 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
16053 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
16054 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
16055 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
16057 * dwarf2/abbrev.h: New file.
16058 * dwarf2/abbrev.c: New file, from dwarf2read.c.
16059 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
16061 2020-02-08 Tom Tromey <tom@tromey.com>
16063 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
16064 (dwarf2_section_size, dwarf2_get_section_info)
16065 (create_signatured_type_table_from_debug_names)
16066 (create_addrmap_from_aranges, read_debug_names_from_section)
16067 (get_gdb_index_contents_from_section, read_comp_unit_head)
16068 (error_check_comp_unit_head, read_abbrev_offset)
16069 (create_debug_type_hash_table, init_cu_die_reader)
16070 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
16071 (read_comp_units_from_section, create_cus_hash_table)
16072 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
16073 (create_dwp_v2_section, dwarf2_rnglists_process)
16074 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
16075 (abbrev_table_read_table, read_indirect_string_at_offset_from)
16076 (read_indirect_string_from_dwz, read_addr_index_1)
16077 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
16078 (dwarf_decode_macro_bytes, dwarf_decode_macros)
16079 (fill_in_loclist_baton): Update.
16080 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
16081 get_containing_section, get_bfd_owner, get_bfd_section,
16082 get_file_name, get_id, get_flags, empty, read>: Declare methods.
16083 (dwarf2_read_section, get_section_name, get_section_file_name)
16084 (get_containing_section, get_section_bfd_owner)
16085 (get_section_bfd_section, get_section_name, get_section_file_name)
16086 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
16088 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
16089 (dwarf2_section_info::get_bfd_owner)
16090 (dwarf2_section_info::get_bfd_section)
16091 (dwarf2_section_info::get_name)
16092 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
16093 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
16094 (dwarf2_section_info::read): Now methods.
16095 * dwarf-index-write.c (class debug_names): Update.
16097 2020-02-08 Tom Tromey <tom@tromey.com>
16099 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
16100 Move to dwarf2/section.h.
16101 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
16102 (get_section_bfd_section, get_section_name)
16103 (get_section_file_name, get_section_id, get_section_flags)
16104 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
16106 * dwarf2/section.h: New file.
16107 * dwarf2/section.c: New file, from dwarf2read.c.
16108 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16110 2020-02-08 Tom Tromey <tom@tromey.com>
16112 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16113 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16114 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16115 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16116 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16117 * dwarf2/leb.h: New file, from dwarf2read.c.
16118 * dwarf2/leb.c: New file, from dwarf2read.c.
16119 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16121 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16122 (COMMON_SFILES): Add dwarf2/leb.c.
16124 2020-02-08 Joel Brobecker <brobecker@adacore.com>
16128 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16131 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16132 * gdb/remote.c (remote_console_output): Update.
16133 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16134 (ui_file_puts): ...this.
16135 * gdb/ui-file.h (ui_file_puts): Add declaration.
16136 * gdb/utils.c (emit_style_escape): Update.
16137 (flush_wrap_buffer): Update.
16138 (fputs_maybe_filtered): Update.
16139 (fputs_unfiltered): Add function.
16141 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16143 * gdb/event-loop.c (gdb_wait_for_event): Update.
16144 * gdb/printcmd.c (printf_command): Update.
16145 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16146 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16147 (gdb_os_flush_stderr): Update.
16148 * gdb/remote.c (remote_console_output): Update.
16149 * gdb/ui-file.c (gdb_flush): Rename to...
16150 (ui_file_flush): ...this.
16151 (stderr_file::write): Update.
16152 (stderr_file::puts): Update.
16153 * gdb/ui-file.h (gdb_flush): Rename to...
16154 (ui_file_flush): ...this.
16155 * gdb/utils.c (gdb_flush): Add function.
16156 * gdb/utils.h (gdb_flush): Add declaration.
16158 2020-02-07 Tom Tromey <tromey@adacore.com>
16160 PR breakpoints/24915:
16161 * source.c (find_and_open_source): Do not check basenames_may_differ.
16163 2020-02-07 Tom Tromey <tom@tromey.com>
16165 * README: Update gdbserver documentation.
16166 * gdbserver: Move to top level.
16167 * configure.tgt (build_gdbserver): Remove.
16168 * configure.ac: Remove --enable-gdbserver.
16169 * configure: Rebuild.
16170 * Makefile.in (distclean): Don't mention gdbserver.
16172 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16174 * source-cache.c (source_cache::ensure): Surround
16175 get_plain_source_lines with a try/catch.
16176 (source_cache::get_line_charpos): Get rid of try/catch
16177 and only check for the return value of "ensure".
16178 * tui/tui-source.c (tui_source_window::set_contents):
16179 Simplify "nlines" calculation.
16181 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16183 * MAINTAINERS (Write After Approval): Add myself.
16185 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16187 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16190 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16192 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16194 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
16196 * nat/riscv-linux-tdesc.h: New file.
16197 * nat/riscv-linux-tdesc.c: New file, taking code from...
16198 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16200 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16203 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16205 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16206 we don't set the fake simulator ptid to the null_ptid.
16208 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
16210 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16211 * gdbthread.h (class thread_info) <resumed>: Likewise.
16212 * infrun.c (resume_1): Likewise.
16213 (proceed): Likewise.
16214 (infrun_thread_stop_requested): Likewise.
16215 (stop_all_threads): Likewise.
16216 (handle_inferior_event): Likewise.
16217 (restart_threads): Likewise.
16218 (finish_step_over): Likewise.
16219 (keep_going_stepped_thread): Likewise.
16220 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16221 (linux_handle_extended_wait): Likewise.
16222 * record-btrace.c (get_thread_current_frame_id): Likewise.
16223 * record-full.c (record_full_wait_1): Likewise.
16224 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16225 * target.c (target_resume): Likewise.
16226 * thread.c (set_running_thread): Likewise.
16228 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16230 * f-valprint.c (f77_print_array_1): Changed datatype of index
16231 variable to LONGEST from int to enable it to contain bound
16234 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
16236 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16237 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16238 offsets according to FLEN determined.
16239 (riscv_linux_nat_target::read_description): Determine FLEN
16241 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16242 according to FLEN determined.
16243 (riscv_linux_nat_target::store_registers): Likewise.
16245 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16247 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16248 when reg->group is empty and reggroup is not.
16250 2020-01-31 Tom Tromey <tromey@adacore.com>
16252 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16253 Call beneath target's mourn_inferior after unpushing.
16255 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16258 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16259 have enough lines to fill the screen, still return the lowest
16262 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16264 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16265 '-', '<', and '>' commands.
16267 2020-01-29 Pedro Alves <palves@redhat.com>
16268 Sergio Durigan Junior <sergiodj@redhat.com>
16270 * infcmd.c (construct_inferior_arguments): Assert that
16271 'argc' is greater than 0.
16273 2020-01-29 Luis Machado <luis.machado@linaro.org>
16275 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16276 (BRK_INSN_MASK): Define to 0xd4200000.
16277 (aarch64_program_breakpoint_here_p): New function.
16278 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16279 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16281 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16283 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16284 call gdbarch_program_breakpoint_here_p.
16285 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16286 default_program_breakpoint_here_p, changed return type to bool and
16288 * breakpoint.h (program_breakpoint_here): Moved prototype to
16289 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16290 return type to bool.
16291 * gdbarch.c: Regenerate.
16292 * gdbarch.h: Regenerate.
16293 * gdbarch.sh (program_breakpoint_here_p): New method.
16294 * infrun.c (handle_signal_stop): Call
16295 gdbarch_program_breakpoint_here_p.
16297 2020-01-26 Tom Tromey <tom@tromey.com>
16299 * ctfread.c (struct ctf_fp_info): Reindent.
16300 (_initialize_ctfread): Remove.
16302 2020-01-26 Tom Tromey <tom@tromey.com>
16304 * psymtab.c (partial_map_expand_apply)
16305 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16306 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16307 (psym_print_stats, psym_expand_symtabs_for_function)
16308 (psym_map_symbol_filenames, psym_map_matching_symbols)
16309 (psym_expand_symtabs_matching)
16310 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16311 (maintenance_check_psymtabs): Use new methods.
16312 * psympriv.h (struct partial_symtab) <readin_p,
16313 get_compunit_symtab>: New methods.
16314 <readin, compunit_symtab>: Remove members.
16315 (struct standard_psymtab): New.
16316 (struct legacy_psymtab): Derive from standard_psymtab.
16317 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16319 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16321 2020-01-26 Tom Tromey <tom@tromey.com>
16323 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16324 read_dependencies. Add assert.
16325 * psymtab.c (partial_symtab::read_dependencies): New method.
16326 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16328 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16329 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16331 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16334 2020-01-26 Tom Tromey <tom@tromey.com>
16336 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16337 Call expand_psymtab.
16338 (xcoff_read_symtab): Call expand_psymtab.
16339 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16340 legacy_expand_psymtab.
16341 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16343 (struct legacy_psymtab) <expand_psymtab>: Implement.
16344 <legacy_expand_psymtab>: New member.
16345 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16346 (parse_partial_symbols): Set legacy_expand_psymtab.
16347 (psymtab_to_symtab_1): Change argument order. Call
16349 (new_psymtab): Set legacy_expand_psymtab.
16350 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16351 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16353 (dwarf2_psymtab::expand_psymtab): Rename from
16354 psymtab_to_symtab_1. Call expand_psymtab.
16355 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16356 (dbx_end_psymtab): Likewise.
16357 (dbx_psymtab_to_symtab_1): Change argument order. Call
16359 (dbx_read_symtab): Call expand_psymtab.
16360 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16361 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16362 (ctf_psymtab::read_symtab): Call expand_psymtab.
16364 2020-01-26 Tom Tromey <tom@tromey.com>
16366 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16367 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16369 * mdebugread.c (mdebug_read_symtab): Remove prints.
16370 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16372 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16374 2020-01-26 Tom Tromey <tom@tromey.com>
16376 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16377 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16378 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16380 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16381 * psymtab.c (psymtab_to_symtab): Call method.
16382 (dump_psymtab): Update.
16383 * psympriv.h (struct partial_symtab): Add virtual destructor.
16384 <read_symtab>: New method.
16385 (struct legacy_symtab): New.
16386 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16387 (struct pst_map) <pst>: Now a legacy_psymtab.
16388 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16389 (new_psymtab): Use legacy_psymtab.
16390 * dwarf2read.h (struct dwarf2_psymtab): New.
16391 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16392 * dwarf2read.c (dwarf2_create_include_psymtab)
16393 (dwarf2_build_include_psymtabs, create_type_unit_group)
16394 (create_partial_symtab, process_psymtab_comp_unit_reader)
16395 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16396 (set_partial_user): Use dwarf2_psymtab.
16397 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16398 (psymtab_to_symtab_1, process_full_comp_unit)
16399 (process_full_type_unit, dwarf2_ranges_read)
16400 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16401 (dwarf_decode_lines): Use dwarf2_psymtab.
16402 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16403 (add_address_entry_worker, write_one_signatured_type)
16404 (recursively_count_psymbols, recursively_write_psymbols)
16405 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16406 (write_debug_names): Likewise.
16407 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16408 <pst>: Now a legacy_psymtab.
16409 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16410 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16411 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16412 * ctfread.c (struct ctf_psymtab): New.
16413 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16415 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16416 (create_partial_symtab): Return a ctf_psymtab.
16417 (scan_partial_symbols): Update.
16419 2020-01-26 Tom Tromey <tom@tromey.com>
16421 * xcoffread.c (xcoff_start_psymtab): Use new.
16422 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16423 renamed from start_psymtab_common.
16424 * psympriv.h (struct partial_symtab): Add new constructor.
16425 (start_psymtab_common): Don't declare.
16426 * mdebugread.c (parse_partial_symbols): Use new.
16427 * dwarf2read.c (create_partial_symtab): Use new.
16428 * dbxread.c (start_psymtab): Use new.
16429 * ctfread.c (create_partial_symtab): Use new.
16431 2020-01-26 Tom Tromey <tom@tromey.com>
16433 * xcoffread.c (xcoff_end_psymtab): Use new.
16434 * psymtab.c (start_psymtab_common): Use new.
16435 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16437 * psympriv.h (struct partial_symtab): Add parameters to
16438 constructor. Don't inline.
16439 (allocate_psymtab): Don't declare.
16440 * mdebugread.c (new_psymtab): Use new.
16441 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16442 * dbxread.c (dbx_end_psymtab): Use new.
16444 2020-01-26 Tom Tromey <tom@tromey.com>
16446 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16447 allocate_psymtab. Update documentation.
16448 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16449 allocate_psymtab. Do not use new.
16450 (allocate_psymtab): Use new. Update.
16452 2020-01-26 Tom Tromey <tom@tromey.com>
16454 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16455 * psymtab.c (psym_print_stats): Update.
16456 * psympriv.h (struct partial_symtab) <readin,
16457 psymtabs_addrmap_supported, anonymous>: Now bool.
16458 * mdebugread.c (psymtab_to_symtab_1): Update.
16459 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16460 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16461 (process_full_comp_unit, process_full_type_unit): Update.
16462 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16463 * ctfread.c (psymtab_to_symtab): Update.
16465 2020-01-26 Tom Tromey <tom@tromey.com>
16467 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16468 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16469 * psymtab.c (psymtab_storage): Delete psymtabs.
16470 (psymtab_storage::allocate_psymtab): Use new.
16471 (psymtab_storage::discard_psymtab): Use delete.
16472 * psympriv.h (struct partial_symtab): Add constructor and
16475 2020-01-26 Tom Tromey <tom@tromey.com>
16477 * machoread.c: Do not include psympriv.h.
16479 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16481 * NEWS: Mention the new option and the set/show commands.
16483 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16485 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16486 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16487 (validate_exec_file): New variables, enums, functions.
16488 (exec_file_locate_attach, print_section_info): Style the filenames.
16489 (_initialize_exec): Install show_exec_file_mismatch_command and
16490 set_exec_file_mismatch_command.
16491 * gdbcore.h (validate_exec_file): Declare.
16492 * infcmd.c (attach_command): Call validate_exec_file.
16493 * remote.c ( remote_target::remote_add_inferior): Likewise.
16495 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16497 * frame.c (find_frame_sal): Move call to get_next_frame into more
16499 * inline-frame.c (inilne_state) <inline_state>: Update argument
16501 (inilne_state) <skipped_symbol>: Rename to...
16502 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16503 (skip_inline_frames): Build vector of skipped symbols and use this
16504 to reate the inline_state.
16505 (inline_skipped_symbol): Add a comment and some assertions, fetch
16506 skipped symbol from the list.
16508 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16510 * buildsym.c (lte_is_less_than): Delete.
16511 (buildsym_compunit::end_symtab_with_blockvector): Create local
16512 lambda function to sort line table entries, and use
16513 std::stable_sort instead of std::sort.
16514 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16515 markers when looking for a previous line.
16517 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16519 * dwarf2read.c (lnp_state_machine::record_line): Include
16520 end_sequence parameter in debug print out. Record the line if we
16521 are at an end_sequence marker even if it's not the start of a
16523 * symmisc.c (maintenance_print_one_line_table): Print end of
16524 sequence markers with 'END' not '0'.
16526 2020-01-24 Pedro Alves <palves@redhat.com>
16529 * thread.c (scoped_restore_current_thread::restore): Use
16530 switch_to_inferior_no_thread.
16531 * exec.c: Include "progspace-and-thread.h".
16532 (add_target_sections, remove_target_sections):
16533 scoped_restore_current_pspace_and_thread instead of
16534 scoped_restore_current_thread.
16535 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16536 and aspace to the inferior before calling clone_program_space.
16537 Remove stale comment.
16539 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16541 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16542 (arm_netbsd_nat_target::fetch_registers): ...this.
16543 (arm_nbsd_nat_target::store_registers): Rename to...
16544 (arm_netbsd_nat_target::store_registers): ...this.
16546 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16548 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16551 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16553 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16555 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16557 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16558 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16559 the correct replacement (iterate_over_regset_sections).
16560 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16563 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16566 * gdb/python/python.c (execute_gdb_command): Call
16567 async_enable_stdin in catch block.
16569 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16571 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16572 SWITCH_THRU_ALL_UIS.
16574 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16577 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16578 comment, add extra parameter, and update to store previous symbol
16580 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16581 add extra parameter.
16582 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16583 remove unneeded parameter, add try/catch around gdb_print_insn,
16584 rewrite to add items to asm_lines vector.
16585 (tui_find_backward_disassembly_start_address): New function.
16586 (tui_find_disassembly_address): Updated throughout.
16587 (tui_disasm_window::set_contents): Update for changes to
16589 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16590 number of lines to scroll.
16592 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16594 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16595 (SECT_OFF_DATA): Likewise.
16596 (SECT_OFF_RODATA): Likewise.
16597 (SECT_OFF_TEXT): Likewise.
16598 (SECT_OFF_BSS): Likewise.
16599 (struct objfile) <text_section_offset, data_section_offset>: New
16601 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16602 objfile::text_section_offset.
16603 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16604 * coffread.c (coff_symtab_read): Likewise.
16605 (enter_linenos): Likewise.
16606 (process_coff_symbol): Likewise.
16607 * ctfread.c (get_objfile_text_range): Likewise.
16608 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16609 Use objfile::data_section_offset.
16610 * dwarf2-frame.c (execute_cfa_program): Use
16611 objfile::text_section_offset.
16612 (dwarf2_frame_find_fde): Likewise.
16613 * dwarf2read.c (create_addrmap_from_index): Likewise.
16614 (create_addrmap_from_aranges): Likewise.
16615 (dw2_find_pc_sect_compunit_symtab): Likewise.
16616 (process_psymtab_comp_unit_reader): Likewise.
16617 (add_partial_symbol): Likewise.
16618 (add_partial_subprogram): Likewise.
16619 (process_full_comp_unit): Likewise.
16620 (read_file_scope): Likewise.
16621 (read_func_scope): Likewise.
16622 (read_lexical_block_scope): Likewise.
16623 (read_call_site_scope): Likewise.
16624 (dwarf2_rnglists_process): Likewise.
16625 (dwarf2_ranges_process): Likewise.
16626 (dwarf2_ranges_read): Likewise.
16627 (dwarf_decode_lines_1): Likewise.
16628 (new_symbol): Likewise.
16629 (dwarf2_fetch_die_loc_sect_off): Likewise.
16630 (dwarf2_per_cu_text_offset): Likewise.
16631 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16632 * hppa-tdep.c (read_unwind_info): Likewise.
16633 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16634 * psympriv.h (struct partial_symtab): Likewise.
16635 * psymtab.c (find_pc_sect_psymtab): Likewise.
16636 * solib-svr4.c (enable_break): Likewise.
16637 * stap-probe.c (relocate_address): Use
16638 objfile::data_section_offset.
16639 * xcoffread.c (enter_line_range): Use
16640 objfile::text_section_offset.
16641 (read_xcoff_symtab): Likewise.
16643 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16645 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16646 declaration to narrower scopes.
16648 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16650 * darwin-nat.h (struct darwin_exception_msg, enum
16651 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16653 (class darwin_nat_target) <wait_1, check_new_threads,
16654 decode_exception_message, decode_message, stop_inferior,
16655 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16656 * darwin-nat.c (darwin_check_new_threads): Rename to...
16657 (darwin_nat_target::check_new_threads): ... this.
16658 (darwin_suspend_inferior_it): Remove.
16659 (darwin_decode_exception_message): Rename to...
16660 (darwin_nat_target::decode_exception_message): ... this.
16661 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16662 (darwin_decode_message): Rename to...
16663 (darwin_nat_target::decode_message): ... this.
16664 (cancel_breakpoint): Rename to...
16665 (darwin_nat_target::cancel_breakpoint): ... this.
16666 (darwin_wait): Rename to...
16667 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16668 instead of iterate_over_inferiors.
16669 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16670 (darwin_stop_inferior): Rename to...
16671 (darwin_nat_target::stop_inferior): ... this.
16672 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16673 (darwin_init_thread_list): Rename to...
16674 (darwin_nat_target::init_thread_list): ... this.
16675 (darwin_ptrace_him): Rename to...
16676 (darwin_nat_target::ptrace_him): ... this.
16677 (darwin_nat_target::create_inferior): Pass lambda function to
16679 (darwin_nat_target::detach): Call stop_inferior instead of
16680 darwin_stop_inferior.
16681 * fork-inferior.h (fork_inferior): Change init_trace_fun
16682 parameter to gdb::function_view.
16683 * fork-inferior.c (fork_inferior): Likewise.
16685 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16687 * i386-cygwin-tdep.c (core_process_module_section): Update.
16688 * windows-nat.c (struct lm_info_windows): Add text_offset.
16689 (windows_xfer_shared_libraries): Update.
16690 * windows-tdep.c (windows_xfer_shared_library):
16691 Add text_offset_cached argument.
16692 * windows-tdep.h (windows_xfer_shared_library): Update.
16694 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16696 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16698 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16700 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16701 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16702 replace with range-based for.
16703 (gdbsim_interrupt_inferior): Remove.
16704 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16705 with a range-based for. Inline code from
16706 gdbsim_interrupt_inferior.
16708 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16710 * infrun.c (proceed): Fix indentation.
16712 2020-01-21 Tom Tromey <tromey@adacore.com>
16714 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16715 * python/python.c (python_extension_ops): Update.
16716 (gdbpy_colorize): New function.
16717 * python/lib/gdb/__init__.py (colorize): New function.
16718 * extension.h (ext_lang_colorize): Declare.
16719 * extension.c (ext_lang_colorize): New function.
16720 * extension-priv.h (struct extension_language_ops) <colorize>: New
16722 * cli/cli-style.c (_initialize_cli_style): Update help text.
16724 2020-01-21 Luis Machado <luis.machado@linaro.org>
16726 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16727 <cond>: Change type to bool.
16728 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16729 (aarch64_displaced_step_cb): Likewise.
16730 (aarch64_displaced_step_tb): Likewise.
16732 2020-01-21 Luis Machado <luis.machado@linaro.org>
16734 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16737 2020-01-21 Luis Machado <luis.machado@linaro.org>
16739 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16740 <pc_adjust>: Adjust the documentation.
16741 (aarch64_displaced_step_fixup): Check if PC really moved before
16744 2020-01-19 Tom Tromey <tom@tromey.com>
16746 * disasm.c (~gdb_disassembler): New destructor.
16747 (gdb_buffered_insn_length): Call disassemble_free_target.
16748 * disasm.h (class gdb_disassembler): Declare destructor. Use
16749 DISABLE_COPY_AND_ASSIGN.
16751 2020-01-19 Tom Tromey <tom@tromey.com>
16753 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16754 (die_reader_func_ftype): Remove.
16755 (cutu_reader): New class.
16756 (dw2_get_file_names_reader): Remove "data" parameter.
16757 (dw2_get_file_names): Use cutu_reader.
16758 (create_debug_type_hash_table): Update.
16759 (read_cutu_die_from_dwo): Update comment.
16760 (lookup_dwo_unit): Add dwo_name parameter.
16761 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16762 die_reader_func_ftype and data parameters.
16763 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16764 Remove die_reader_func_ftype and data parameters.
16765 (~cutu_reader): New; from init_cutu_and_read_dies.
16766 (cutu_reader::cutu_reader): Rename from
16767 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16768 and data parameters.
16769 (init_cutu_and_read_dies_simple): Remove.
16770 (struct process_psymtab_comp_unit_data): Remove.
16771 (process_psymtab_comp_unit_reader): Remove data parameter; add
16772 want_partial_unit and pretend_language parameters.
16773 (process_psymtab_comp_unit): Use cutu_reader.
16774 (build_type_psymtabs_reader): Remove data parameter.
16775 (build_type_psymtabs_1): Use cutu_reader.
16776 (process_skeletonless_type_unit): Likewise.
16777 (load_partial_comp_unit_reader): Remove.
16778 (load_partial_comp_unit): Use cutu_reader.
16779 (load_full_comp_unit_reader): Remove.
16780 (load_full_comp_unit): Use cutu_reader.
16781 (struct create_dwo_cu_data): Remove.
16782 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16783 dwo_unit parameters.
16784 (create_cus_hash_table): Use cutu_reader.
16785 (struct dwarf2_read_addr_index_data): Remove.
16786 (dwarf2_read_addr_index_reader): Remove.
16787 (dwarf2_read_addr_index): Use cutu_reader.
16788 (read_signatured_type_reader): Remove.
16789 (read_signatured_type): Use cutu_reader.
16791 2020-01-19 Tom Tromey <tom@tromey.com>
16793 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16794 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16795 (tui_wrefresh): Declare.
16796 * tui/tui-wingeneral.c (suppress_output): New global.
16797 (tui_suppress_output, ~tui_suppress_output): New constructor and
16799 (tui_wrefresh): New function.
16800 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16801 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16802 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16804 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16806 (tui_data_window::no_refresh): New method.
16807 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16808 (tui_reg_command): Use tui_suppress_output
16809 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16810 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16812 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16814 2020-01-19 Tom Tromey <tom@tromey.com>
16816 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16817 Handle case where symtab is null.
16819 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16821 * linux-fork.c (one_fork_p): Simplify.
16823 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16825 * top.c (struct qt_args): Remove.
16826 (kill_or_detach): Change return type to void, replace `void *`
16827 parameter with a proper one.
16828 (print_inferior_quit_action): Likewise.
16829 (quit_confirm): Use range-based for loop to iterate over inferiors.
16830 (quit_force): Likewise.
16832 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16834 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16835 `void *` parameter with proper parameters.
16836 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16837 (print_one_inferior): Change return type to void, replace `void *`
16838 parameter with proper parameters.
16839 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16841 (get_other_inferior): Remove.
16842 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16845 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16847 * mi/mi-interp.c (report_initial_inferior): Remove.
16848 (mi_interp::init): Use range-based for to iterate over inferiors.
16850 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16852 * python/py-inferior.c (build_inferior_list): Remove.
16853 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16855 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16857 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16858 (btrace_stitch_trace): Likewise.
16859 * charset.c (intermediate_encoding): Likewise (vaild).
16860 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16861 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16862 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16864 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16866 * windows-tdep.c (windows_get_tlb_type):
16867 Add rtl_user_process_parameters type.
16869 2020-01-16 Pedro Alves <palves@redhat.com>
16870 Norbert Lange <nolange79@gmail.com>
16873 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16874 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16875 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16876 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16877 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16878 (ps_plog): Redeclare exported functions with default visibility.
16880 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16882 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16883 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16885 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16887 * infcmd.c (post_create_inferior): Use get_thread_regcache
16888 instead of get_current_regcache.
16890 2020-01-14 Tom Tromey <tom@tromey.com>
16893 * python/python.c (gdbpy_decode_line): Treat empty string the same
16896 2020-01-14 Tom Tromey <tom@tromey.com>
16898 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16900 2020-01-14 Tom Tromey <tom@tromey.com>
16902 * nat/linux-btrace.c: Don't include <config.h>.
16903 * nat/linux-ptrace.c: Don't include <config.h>.
16904 * nat/x86-linux-dregs.c: Don't include <config.h>.
16906 2020-01-14 Tom Tromey <tom@tromey.com>
16908 * configure: Rebuild.
16909 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16911 2020-01-14 Tom Tromey <tom@tromey.com>
16913 * nat/x86-linux-dregs.c: Include configh.h.
16914 * nat/linux-ptrace.c: Include configh.h.
16915 * nat/linux-btrace.c: Include configh.h.
16916 * defs.h: Include config.h, bfd.h.
16917 * configure.ac: Don't source common.host.
16918 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16919 * configure: Rebuild.
16920 * acinclude.m4: Update path.
16921 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16922 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16923 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16924 (CLIBS): Add LIBSUPPORT.
16926 (COMMON_SFILES): Remove gdbsupport files.
16927 (HFILES_NO_SRCDIR): Likewise.
16928 (stamp-version): Update path to create-version.sh.
16929 (ALLDEPFILES): Remove gdbsupport files.
16931 2020-01-14 Tom Tromey <tom@tromey.com>
16933 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16934 USE_WIN32API when needed.
16935 * configure.ac (USE_WIN32API): Don't define.
16936 (WIN32LIBS): Use WIN32APILIBS.
16937 * configure: Rebuild.
16939 2020-01-14 Tom Tromey <tom@tromey.com>
16941 * configure: Rebuild.
16942 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16944 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16946 * skip.c (skip_function_command): Make skip w/o arguments use the
16947 name of the inlined function if pc is inside any inlined function.
16949 2020-01-14 Luis Machado <luis.machado@linaro.org>
16951 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16952 * infrun.c (resume_1): Likewise.
16953 (handle_inferior_event): Remove stale comment.
16954 * linux-nat.c (linux_nat_target::resume): Update comments.
16955 (save_stop_reason): Likewise.
16956 (linux_nat_filter_event): Likewise.
16957 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16959 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16961 * elfread.c (record_minimal_symbol): Set section index to 0 for
16962 non-allocatable sections.
16965 2020-01-13 Ali Tamur <tamur@google.com>
16967 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16968 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16969 to gdb::optional. Update comments.
16970 (dwo_file): Update comments.
16971 (read_attribute): Update API to take an additional out parameter,
16972 need_reprocess. This is used to mark attributes that need other
16973 attributes (e.g. str_offsets_base) for correct computation which may not
16974 have been read yet.
16975 (read_attribute_reprocess): New function declaration.
16976 (read_addr_index): Likewise.
16977 (read_dwo_str_index): Likewise.
16978 (read_stub_str_index): Likewise.
16979 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16980 (lookup_addr_base): New function definition.
16981 (lookup_ranges_base): Likewise.
16982 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16983 lookup_ranges_base.
16984 (init_cutu_and_read_dies): Update comments.
16985 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16986 unit. This is used to inherit parent's str_offsets_base and addr_base.
16988 (init_cutu_and_read_dies_simple): Reflect API changes.
16989 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16990 (create_cus_hash_table): Change API to take parent compile unit.
16991 Reflect API changes.
16992 (open_and_init_dwo_file): Reflect API changes.
16993 (dwarf2_get_pc_bounds): Update comments.
16994 (dwarf2_record_block_ranges): Likewise.
16995 (read_full_die_1): Change implementation to reprocess attributes that
16996 need str_offsets_base and addr_base.
16997 (partial_die_info::read): Likewise.
16998 (read_attribute_reprocess): New function definition.
16999 (read_attribute_value): Change API to take an additional out parameter,
17000 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
17001 when a non-dwo compile unit has index based attributes.
17002 (read_attribute): Reflect API changes.
17003 (read_addr_index_1): Reflect API changes. Update comments.
17004 (dwarf2_read_addr_index_data): Reflect API changes.
17005 (dwarf2_read_addr_index): Likewise.
17006 (read_str_index): Change API and implementation. This becomes a helper
17007 to be used by the new string index related methods. Update error
17008 message and comments.
17009 (read_dwo_str_index): New function definition.
17010 (read_stub_str_index): Likewise.
17011 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
17012 * symfile.h (dwarf2_debug_sections): Likewise.
17013 * xcoffread.c (dwarf2_debug_sections): Likewise.
17015 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17017 * gdbcore.h (struct core_fns) <core_read_registers>: Change
17018 core_reg_sect type to gdb_byte *.
17019 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
17020 * cris-tdep.c (fetch_core_registers): Likewise.
17021 * corelow.c (core_target::get_core_register_section): Change
17022 type of `contents` to gdb::byte_vector.
17024 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17026 * tui/tui-wingeneral.c (box_win): Position the title in the center
17029 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17031 * corelow.c (core_target::get_core_register_section): Use
17032 std::vector instead of alloca.
17034 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17036 * warning.m4: Add -Wmissing-declarations to build_warnings.
17037 * configure: Re-generate.
17039 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17041 * python/python.c (init__gdb_module): Add declaration.
17043 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17045 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
17046 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
17047 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
17048 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
17049 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
17050 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
17051 * ada-exp.y (_initialize_ada_exp): Add declaration.
17052 * ada-lang.c (_initialize_ada_language): Add declaration.
17053 * ada-tasks.c (_initialize_tasks): Add declaration.
17054 * agent.c (_initialize_agent): Add declaration.
17055 * aix-thread.c (_initialize_aix_thread): Add declaration.
17056 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
17057 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
17058 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
17059 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
17060 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
17061 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
17062 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
17063 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
17064 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
17065 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
17066 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
17067 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
17068 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
17069 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
17070 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
17071 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
17072 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
17073 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
17074 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
17075 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
17076 * annotate.c (_initialize_annotate): Add declaration.
17077 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
17078 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
17079 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
17080 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
17081 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
17082 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
17083 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
17084 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
17085 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
17086 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
17087 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
17088 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
17089 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
17090 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
17091 * auto-load.c (_initialize_auto_load): Add declaration.
17092 * auxv.c (_initialize_auxv): Add declaration.
17093 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
17094 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
17095 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
17096 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
17097 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
17098 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
17099 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
17100 * breakpoint.c (_initialize_breakpoint): Add declaration.
17101 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
17102 * btrace.c (_initialize_btrace): Add declaration.
17103 * charset.c (_initialize_charset): Add declaration.
17104 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
17105 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17106 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17107 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17108 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17109 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17110 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17111 * coffread.c (_initialize_coffread): Add declaration.
17112 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17113 * compile/compile.c (_initialize_compile): Add declaration.
17114 * complaints.c (_initialize_complaints): Add declaration.
17115 * completer.c (_initialize_completer): Add declaration.
17116 * copying.c (_initialize_copying): Add declaration.
17117 * corefile.c (_initialize_core): Add declaration.
17118 * corelow.c (_initialize_corelow): Add declaration.
17119 * cp-abi.c (_initialize_cp_abi): Add declaration.
17120 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17121 * cp-support.c (_initialize_cp_support): Add declaration.
17122 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17123 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17124 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17125 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17126 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17127 * ctfread.c (_initialize_ctfread): Add declaration.
17128 * d-lang.c (_initialize_d_language): Add declaration.
17129 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17130 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17131 * dbxread.c (_initialize_dbxread): Add declaration.
17132 * dcache.c (_initialize_dcache): Add declaration.
17133 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17134 * disasm.c (_initialize_disasm): Add declaration.
17135 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17136 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17137 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17138 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17139 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17140 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17141 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17142 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17143 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17144 * elfread.c (_initialize_elfread): Add declaration.
17145 * exec.c (_initialize_exec): Add declaration.
17146 * extension.c (_initialize_extension): Add declaration.
17147 * f-lang.c (_initialize_f_language): Add declaration.
17148 * f-valprint.c (_initialize_f_valprint): Add declaration.
17149 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17150 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17151 * filesystem.c (_initialize_filesystem): Add declaration.
17152 * findcmd.c (_initialize_mem_search): Add declaration.
17153 * findvar.c (_initialize_findvar): Add declaration.
17154 * fork-child.c (_initialize_fork_child): Add declaration.
17155 * frame-base.c (_initialize_frame_base): Add declaration.
17156 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17157 * frame.c (_initialize_frame): Add declaration.
17158 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17159 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17160 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17161 * gcore.c (_initialize_gcore): Add declaration.
17162 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17163 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17164 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17165 * gdbarch.c (_initialize_gdbarch): Add declaration.
17166 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17167 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17168 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17169 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17170 * go-lang.c (_initialize_go_language): Add declaration.
17171 * go32-nat.c (_initialize_go32_nat): Add declaration.
17172 * guile/guile.c (_initialize_guile): Add declaration.
17173 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17174 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17175 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17176 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17177 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17178 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17179 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17180 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17181 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17182 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17183 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17184 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17185 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17186 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17187 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17188 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17189 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17190 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17191 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17192 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17193 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17194 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17195 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17196 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17197 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17198 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17199 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17200 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17201 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17202 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17203 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17204 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17205 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17206 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17207 * infcall.c (_initialize_infcall): Add declaration.
17208 * infcmd.c (_initialize_infcmd): Add declaration.
17209 * inflow.c (_initialize_inflow): Add declaration.
17210 * infrun.c (_initialize_infrun): Add declaration.
17211 * interps.c (_initialize_interpreter): Add declaration.
17212 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17213 * jit.c (_initialize_jit): Add declaration.
17214 * language.c (_initialize_language): Add declaration.
17215 * linux-fork.c (_initialize_linux_fork): Add declaration.
17216 * linux-nat.c (_initialize_linux_nat): Add declaration.
17217 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17218 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17219 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17220 * m2-lang.c (_initialize_m2_language): Add declaration.
17221 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17222 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17223 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17224 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17225 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17226 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17227 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17228 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17229 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17230 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17231 * machoread.c (_initialize_machoread): Add declaration.
17232 * macrocmd.c (_initialize_macrocmd): Add declaration.
17233 * macroscope.c (_initialize_macroscope): Add declaration.
17234 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17235 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17236 * maint.c (_initialize_maint_cmds): Add declaration.
17237 * mdebugread.c (_initialize_mdebugread): Add declaration.
17238 * memattr.c (_initialize_mem): Add declaration.
17239 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17240 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17241 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17242 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17243 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17244 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17245 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17246 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17247 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17248 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17249 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17250 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17251 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17252 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17253 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17254 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17255 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17256 * mipsread.c (_initialize_mipsread): Add declaration.
17257 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17258 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17259 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17260 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17261 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17262 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17263 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17264 * nto-procfs.c (_initialize_procfs): Add declaration.
17265 * objc-lang.c (_initialize_objc_language): Add declaration.
17266 * observable.c (_initialize_observer): Add declaration.
17267 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17268 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17269 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17270 * osabi.c (_initialize_gdb_osabi): Add declaration.
17271 * osdata.c (_initialize_osdata): Add declaration.
17272 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17273 * parse.c (_initialize_parse): Add declaration.
17274 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17275 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17276 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17277 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17278 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17279 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17280 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17281 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17282 * printcmd.c (_initialize_printcmd): Add declaration.
17283 * probe.c (_initialize_probe): Add declaration.
17284 * proc-api.c (_initialize_proc_api): Add declaration.
17285 * proc-events.c (_initialize_proc_events): Add declaration.
17286 * proc-service.c (_initialize_proc_service): Add declaration.
17287 * procfs.c (_initialize_procfs): Add declaration.
17288 * producer.c (_initialize_producer): Add declaration.
17289 * psymtab.c (_initialize_psymtab): Add declaration.
17290 * python/python.c (_initialize_python): Add declaration.
17291 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17292 * record-btrace.c (_initialize_record_btrace): Add declaration.
17293 * record-full.c (_initialize_record_full): Add declaration.
17294 * record.c (_initialize_record): Add declaration.
17295 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17296 * regcache.c (_initialize_regcache): Add declaration.
17297 * reggroups.c (_initialize_reggroup): Add declaration.
17298 * remote-notif.c (_initialize_notif): Add declaration.
17299 * remote-sim.c (_initialize_remote_sim): Add declaration.
17300 * remote.c (_initialize_remote): Add declaration.
17301 * reverse.c (_initialize_reverse): Add declaration.
17302 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17303 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17304 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17305 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17306 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17307 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17308 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17309 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17311 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17312 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17313 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17314 * rust-exp.y (_initialize_rust_exp): Add declaration.
17315 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17316 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17317 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17318 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17319 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17320 * score-tdep.c (_initialize_score_tdep): Add declaration.
17321 * ser-go32.c (_initialize_ser_dos): Add declaration.
17322 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17323 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17324 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17325 * ser-uds.c (_initialize_ser_socket): Add declaration.
17326 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17327 * serial.c (_initialize_serial): Add declaration.
17328 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17329 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17330 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17331 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17332 * skip.c (_initialize_step_skip): Add declaration.
17333 * sol-thread.c (_initialize_sol_thread): Add declaration.
17334 * solib-aix.c (_initialize_solib_aix): Add declaration.
17335 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17336 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17337 * solib-frv.c (_initialize_frv_solib): Add declaration.
17338 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17339 * solib-target.c (_initialize_solib_target): Add declaration.
17340 * solib.c (_initialize_solib): Add declaration.
17341 * source-cache.c (_initialize_source_cache): Add declaration.
17342 * source.c (_initialize_source): Add declaration.
17343 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17344 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17345 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17346 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17347 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17348 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17349 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17350 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17351 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17352 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17353 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17354 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17355 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17356 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17357 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17358 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17359 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17360 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17361 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17362 * stabsread.c (_initialize_stabsread): Add declaration.
17363 * stack.c (_initialize_stack): Add declaration.
17364 * stap-probe.c (_initialize_stap_probe): Add declaration.
17365 * std-regs.c (_initialize_frame_reg): Add declaration.
17366 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17367 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17368 * symfile.c (_initialize_symfile): Add declaration.
17369 * symmisc.c (_initialize_symmisc): Add declaration.
17370 * symtab.c (_initialize_symtab): Add declaration.
17371 * target.c (_initialize_target): Add declaration.
17372 * target-connection.c (_initialize_target_connection): Add
17374 * target-dcache.c (_initialize_target_dcache): Add declaration.
17375 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17376 * thread.c (_initialize_thread): Add declaration.
17377 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17378 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17379 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17380 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17381 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17382 * tracectf.c (_initialize_ctf): Add declaration.
17383 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17384 * tracefile.c (_initialize_tracefile): Add declaration.
17385 * tracepoint.c (_initialize_tracepoint): Add declaration.
17386 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17387 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17388 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17389 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17390 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17391 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17392 * tui/tui.c (_initialize_tui): Add declaration.
17393 * typeprint.c (_initialize_typeprint): Add declaration.
17394 * ui-style.c (_initialize_ui_style): Add declaration.
17395 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17396 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17397 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17398 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17399 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17400 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17401 * unittests/filtered_iterator-selftests.c
17402 (_initialize_filtered_iterator_selftests): Add declaration.
17403 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17404 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17405 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17406 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17407 * unittests/main-thread-selftests.c
17408 (_initialize_main_thread_selftests): Add declaration.
17409 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17410 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17411 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17412 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17413 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17414 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17415 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17416 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17417 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17418 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17419 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17420 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17421 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17422 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17423 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17425 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17426 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17427 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17428 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17429 * user-regs.c (_initialize_user_regs): Add declaration.
17430 * utils.c (_initialize_utils): Add declaration.
17431 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17432 * valops.c (_initialize_valops): Add declaration.
17433 * valprint.c (_initialize_valprint): Add declaration.
17434 * value.c (_initialize_values): Add declaration.
17435 * varobj.c (_initialize_varobj): Add declaration.
17436 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17437 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17438 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17439 * windows-nat.c (_initialize_windows_nat): Add declaration.
17440 (_initialize_check_for_gdb_ini): Add declaration.
17441 (_initialize_loadable): Add declaration.
17442 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17443 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17444 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17445 * xcoffread.c (_initialize_xcoffread): Add declaration.
17446 * xml-support.c (_initialize_xml_support): Add declaration.
17447 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17448 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17449 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17450 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17452 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17454 * regformats/regdat.sh: Generate declaration for init function.
17456 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17458 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17460 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17461 close_one_inferior>: New methods.
17462 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17463 pass down target to find_inferior_pid.
17464 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17465 Pass down target to find_inferior_ptid.
17466 (gdbsim_target::create_inferior): Pass down target to
17468 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17469 target down to find_inferior_ptid and switch_to_thread.
17470 (gdbsim_target::close): Update to call close_one_inferior.
17471 (struct resume_data): Remove.
17472 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17473 directly, rather than through a void pointer.
17474 (gdbsim_target::resume): Update to call resume_one_inferior.
17476 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17478 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17480 2020-01-12 Pedro Alves <palves@redhat.com>
17482 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17483 directly for the current inferior instead of
17484 discard_all_inferiors.
17485 (discard_all_inferiors): Delete.
17487 2020-01-11 Tom Tromey <tom@tromey.com>
17489 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17490 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17491 deprecated_safe_get_selected_frame.
17493 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17495 * inferior.c (print_inferior): Switch inferior before printing it.
17497 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17498 Pedro Alves <palves@redhat.com>
17500 * progspace-and-thread.c (switch_to_program_space_and_thread):
17501 Assert there's an inferior for PSPACE. Use
17502 switch_to_inferior_no_thread to switch the inferior too.
17503 * progspace.c (program_space::~program_space): Call
17504 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17505 (program_space::free_all_objfiles): Don't call clear_symtab_users
17507 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17509 2020-01-10 Pedro Alves <palves@redhat.com>
17511 * NEWS: Mention multi-target debugging, "info connections", and
17512 "add-inferior -no-connection".
17514 2020-01-10 Pedro Alves <palves@redhat.com>
17516 * infrun.c: Include "target-connection.h".
17517 (check_multi_target_resumption): New.
17518 (proceed): Call it.
17519 * target-connection.c (make_target_connection_string): Make
17521 * target-connection.h (make_target_connection_string): Declare.
17523 2020-01-10 Pedro Alves <palves@redhat.com>
17525 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17526 * inferior.c (uiout_field_connection): New function.
17527 (print_inferior): Add new "connection-id" column.
17528 (add_inferior_command): Show connection number/string of added
17530 * process-stratum-target.h
17531 (process_stratum_target::connection_string): New virtual method.
17532 (process_stratum_target::connection_number): New field.
17533 * remote.c (remote_target::connection_string): New override.
17534 * target-connection.c: New file.
17535 * target-connection.h: New file.
17536 * target.c (decref_target): Remove process_stratum targets from
17537 the connection list.
17538 (target_stack::push): Add process_stratum targets to the
17541 2020-01-10 Pedro Alves <palves@redhat.com>
17544 2016-04-12 Pedro Alves <palves@redhat.com>
17545 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17546 Remove references to name.
17547 * serial.h (struct serial) <name>: Delete.
17549 2020-01-10 Pedro Alves <palves@redhat.com>
17551 * gdbarch-selftests.c (register_to_value_test): Remove "target
17552 already pushed" check.
17554 2020-01-10 Pedro Alves <palves@redhat.com>
17555 John Baldwin <jhb@FreeBSD.org>
17557 * aarch64-linux-nat.c
17558 (aarch64_linux_nat_target::thread_architecture): Adjust.
17559 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17560 (task_command_1): Likewise.
17561 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17562 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17563 (aix_thread_target::store_registers)
17564 (aix_thread_target::thread_alive): Adjust.
17565 * amd64-fbsd-tdep.c: Include "inferior.h".
17566 (amd64fbsd_get_thread_local_address): Pass down target.
17567 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17568 thread's gdbarch instead of target_gdbarch.
17569 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17570 get_last_target_status.
17571 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17572 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17574 (update_inserted_breakpoint_locations): Skip if inferiors with no
17576 (update_global_location_list): When handling moribund locations,
17577 find representative inferior for location's pspace, and use thread
17578 count of its process_stratum target.
17579 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17580 * bsd-uthread.c (bsd_uthread_target::wait): Use
17581 as_process_stratum_target and adjust thread_change_ptid and
17583 (bsd_uthread_target::update_thread_list): Use
17584 as_process_stratum_target and adjust find_thread_ptid,
17585 thread_change_ptid and add_thread calls.
17586 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17587 find_thread_ptid call.
17588 * corelow.c (add_to_thread_list): Adjust add_thread call.
17589 (core_target_open): Adjust add_thread_silent and thread_count
17591 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17592 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17593 * event-top.c (async_disconnect): Pop targets from all inferiors.
17594 * exec.c (add_target_sections): Push exec target on all inferiors
17595 sharing the program space.
17596 (remove_target_sections): Remove the exec target from all
17597 inferiors sharing the program space.
17598 (exec_on_vfork): New.
17599 * exec.h (exec_on_vfork): Declare.
17600 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17602 (fbsd_nat_target::update_thread_list): Adjust.
17603 (fbsd_nat_target::resume): Adjust.
17604 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17606 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17607 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17608 get_thread_arch_regcache call.
17609 * fork-child.c (gdb_startup_inferior): Pass target down to
17610 startup_inferior and set_executing.
17611 * gdbthread.h (struct process_stratum_target): Forward declare.
17612 (add_thread, add_thread_silent, add_thread_with_info)
17613 (in_thread_list): Add process_stratum_target parameter.
17614 (find_thread_ptid(inferior*, ptid_t)): New overload.
17615 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17617 (all_threads()): Delete overload.
17618 (all_threads, all_non_exited_threads): Add process_stratum_target
17620 (all_threads_safe): Use brace initialization.
17621 (thread_count): Add process_stratum_target parameter.
17622 (set_resumed, set_running, set_stop_requested, set_executing)
17623 (threads_are_executing, finish_thread_state): Add
17624 process_stratum_target parameter.
17625 (switch_to_thread): Use is_current_thread.
17626 * i386-fbsd-tdep.c: Include "inferior.h".
17627 (i386fbsd_get_thread_local_address): Pass down target.
17628 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17629 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17630 have_inferiors check.
17631 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17632 (inf_ptrace_target::attach): Adjust.
17633 * infcall.c (run_inferior_call): Adjust.
17634 * infcmd.c (run_command_1): Pass target to
17635 scoped_finish_thread_state.
17636 (proceed_thread_callback): Skip inferiors with no execution.
17637 (continue_command): Rename 'all_threads' local to avoid hiding
17638 'all_threads' function. Adjust get_last_target_status call.
17639 (prepare_one_step): Adjust set_running call.
17640 (signal_command): Use user_visible_resume_target. Compare thread
17641 pointers instead of inferior_ptid.
17642 (info_program_command): Adjust to pass down target.
17643 (attach_command): Mark target's 'thread_executing' flag.
17644 (stop_current_target_threads_ns): New, factored out from ...
17645 (interrupt_target_1): ... this. Switch inferior before making
17648 (struct all_inferiors_iterator, struct all_inferiors_range)
17649 (struct all_inferiors_safe_range)
17650 (struct all_non_exited_inferiors_range): Filter on
17651 process_stratum_target too. Remove explicit.
17652 * inferior.c (inferior::inferior): Push dummy target on target
17654 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17655 Add process_stratum_target parameter, and pass it down.
17656 (have_live_inferiors): Adjust.
17657 (switch_to_inferior_and_push_target): New.
17658 (add_inferior_command, clone_inferior_command): Handle
17659 "-no-connection" parameter. Use
17660 switch_to_inferior_and_push_target.
17661 (_initialize_inferior): Mention "-no-connection" option in
17662 the help of "add-inferior" and "clone-inferior" commands.
17663 * inferior.h: Include "process-stratum-target.h".
17664 (interrupt_target_1): Use bool.
17665 (struct inferior) <push_target, unpush_target, target_is_pushed,
17666 find_target_beneath, top_target, process_target, target_at,
17668 (discard_all_inferiors): Delete.
17669 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17670 (all_inferiors, all_non_exited_inferiors): Add
17671 process_stratum_target parameter.
17672 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17673 (target_last_proc_target): New global.
17674 (follow_fork_inferior): Push target on new inferior. Pass target
17675 to add_thread_silent. Call exec_on_vfork. Handle target's
17677 (follow_fork): Adjust get_last_target_status call. Also consider
17679 (follow_exec): Push target on new inferior.
17680 (struct execution_control_state) <target>: New field.
17681 (user_visible_resume_target): New.
17682 (do_target_resume): Call target_async.
17683 (resume_1): Set target's threads_executing flag. Consider resume
17685 (commit_resume_all_targets): New.
17686 (proceed): Also consider resume target. Skip threads of inferiors
17687 with no execution. Commit resumtion in all targets.
17688 (start_remote): Pass current inferior to wait_for_inferior.
17689 (infrun_thread_stop_requested): Consider target as well. Pass
17690 thread_info pointer to clear_inline_frame_state instead of ptid.
17691 (infrun_thread_thread_exit): Consider target as well.
17692 (random_pending_event_thread): New inferior parameter. Use it.
17693 (do_target_wait): Rename to ...
17694 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17696 (threads_are_resumed_pending_p, do_target_wait): New.
17697 (prepare_for_detach): Adjust calls.
17698 (wait_for_inferior): New inferior parameter. Handle it. Use
17699 do_target_wait_1 instead of do_target_wait.
17700 (fetch_inferior_event): Adjust. Switch to representative
17701 inferior. Pass target down.
17702 (set_last_target_status): Add process_stratum_target parameter.
17703 Save target in global.
17704 (get_last_target_status): Add process_stratum_target parameter and
17706 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17707 (context_switch): Check inferior_ptid == null_ptid before calling
17709 (get_inferior_stop_soon): Pass down target.
17710 (wait_one): Rename to ...
17711 (poll_one_curr_target): ... this.
17712 (struct wait_one_event): New.
17714 (stop_all_threads): Adjust.
17715 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17717 (switch_back_to_stepped_thread): Also consider target.
17718 (print_stop_event): Update.
17719 (normal_stop): Update. Also consider the resume target.
17720 * infrun.h (wait_for_inferior): Remove declaration.
17721 (user_visible_resume_target): New declaration.
17722 (get_last_target_status, set_last_target_status): New
17723 process_stratum_target parameter.
17724 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17725 process_stratum_target parameter, and use it.
17726 (clear_inline_frame_state (thread_info*)): New.
17727 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17728 process_stratum_target parameter.
17729 (clear_inline_frame_state (thread_info*)): Declare.
17730 * linux-fork.c (delete_checkpoint_command): Pass target down to
17732 (checkpoint_command): Adjust.
17733 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17734 instead of just tweaking inferior_ptid.
17735 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17736 (exit_lwp): Pass target down to find_thread_ptid.
17737 (attach_proc_task_lwp_callback): Pass target down to
17738 add_thread/set_running/set_executing.
17739 (linux_nat_target::attach): Pass target down to
17740 thread_change_ptid.
17741 (get_detach_signal): Pass target down to find_thread_ptid.
17742 Consider last target status's target.
17743 (linux_resume_one_lwp_throw, resume_lwp)
17744 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17745 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17746 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17747 (linux_nat_target::async_wait_fd): New.
17748 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17750 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17751 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17752 * linux-thread-db.c (struct thread_db_info::process_target): New
17754 (add_thread_db_info): Save target.
17755 (get_thread_db_info): New process_stratum_target parameter. Also
17757 (delete_thread_db_info): New process_stratum_target parameter.
17759 (thread_from_lwp): Adjust to pass down target.
17760 (thread_db_notice_clone): Pass down target.
17761 (check_thread_db_callback): Pass down target.
17762 (try_thread_db_load_1): Always push the thread_db target.
17763 (try_thread_db_load, record_thread): Pass target down.
17764 (thread_db_target::detach): Pass target down. Always unpush the
17766 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17767 target down. Always unpush the thread_db target.
17768 (find_new_threads_callback, thread_db_find_new_threads_2)
17769 (thread_db_target::update_thread_list): Pass target down.
17770 (thread_db_target::pid_to_str): Pass current inferior down.
17771 (thread_db_target::get_thread_local_address): Pass target down.
17772 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17774 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17775 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17776 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17777 (procfs_init_inferior): Rename to ...
17778 (procfs_target::procfs_init_inferior): ... this and adjust.
17779 (procfs_target::create_inferior, procfs_notice_thread)
17780 (procfs_do_thread_registers): Adjust.
17781 * ppc-fbsd-tdep.c: Include "inferior.h".
17782 (ppcfbsd_get_thread_local_address): Pass down target.
17783 * proc-service.c (ps_xfer_memory): Switch current inferior and
17784 program space as well.
17785 (get_ps_regcache): Pass target down.
17786 * process-stratum-target.c
17787 (process_stratum_target::thread_address_space)
17788 (process_stratum_target::thread_architecture): Pass target down.
17789 * process-stratum-target.h
17790 (process_stratum_target::threads_executing): New field.
17791 (as_process_stratum_target): New.
17792 * ravenscar-thread.c
17793 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17794 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17796 * record-btrace.c (record_btrace_target::info_record): Adjust.
17797 (record_btrace_target::record_method)
17798 (record_btrace_target::record_is_replaying)
17799 (record_btrace_target::fetch_registers)
17800 (get_thread_current_frame_id, record_btrace_target::resume)
17801 (record_btrace_target::wait, record_btrace_target::stop): Pass
17803 * record-full.c (record_full_wait_1): Switch to event thread.
17805 * regcache.c (regcache::regcache)
17806 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17807 process_stratum_target parameter and handle it.
17808 (current_thread_target): New global.
17809 (get_thread_regcache): Add process_stratum_target parameter and
17810 handle it. Switch inferior before calling target method.
17811 (get_thread_regcache): Pass target down.
17812 (get_thread_regcache_for_ptid): Pass target down.
17813 (registers_changed_ptid): Add process_stratum_target parameter and
17815 (registers_changed_thread, registers_changed): Pass target down.
17816 (test_get_thread_arch_aspace_regcache): New.
17817 (current_regcache_test): Define a couple local test_target_ops
17818 instances and use them for testing.
17819 (readwrite_regcache): Pass process_stratum_target parameter.
17820 (cooked_read_test, cooked_write_test): Pass mock_target down.
17821 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17822 (get_thread_arch_aspace_regcache): Add process_stratum_target
17824 (regcache::target): New method.
17825 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17826 (regcache::registers_changed_ptid): Add process_stratum_target
17828 (regcache::m_target): New field.
17829 (registers_changed_ptid): Add process_stratum_target parameter.
17830 * remote.c (remote_state::supports_vCont_probed): New field.
17831 (remote_target::async_wait_fd): New method.
17832 (remote_unpush_and_throw): Add remote_target parameter.
17833 (get_current_remote_target): Adjust.
17834 (remote_target::remote_add_inferior): Push target.
17835 (remote_target::remote_add_thread)
17836 (remote_target::remote_notice_new_inferior)
17837 (get_remote_thread_info): Pass target down.
17838 (remote_target::update_thread_list): Skip threads of inferiors
17839 bound to other targets. (remote_target::close): Don't discard
17840 inferiors. (remote_target::add_current_inferior_and_thread)
17841 (remote_target::process_initial_stop_replies)
17842 (remote_target::start_remote)
17843 (remote_target::remote_serial_quit_handler): Pass down target.
17844 (remote_target::remote_unpush_target): New remote_target
17845 parameter. Unpush the target from all inferiors.
17846 (remote_target::remote_unpush_and_throw): New remote_target
17847 parameter. Pass it down.
17848 (remote_target::open_1): Check whether the current inferior has
17849 execution instead of checking whether any inferior is live. Pass
17851 (remote_target::remote_detach_1): Pass down target. Use
17852 remote_unpush_target.
17853 (extended_remote_target::attach): Pass down target.
17854 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17855 (remote_target::append_resumption): Pass down target.
17856 (remote_target::append_pending_thread_resumptions)
17857 (remote_target::remote_resume_with_hc, remote_target::resume)
17858 (remote_target::commit_resume): Pass down target.
17859 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17860 (remote_target::interrupt_query)
17861 (remote_target::remove_new_fork_children)
17862 (remote_target::check_pending_events_prevent_wildcard_vcont)
17863 (remote_target::remote_parse_stop_reply)
17864 (remote_target::process_stop_reply): Pass down target.
17865 (first_remote_resumed_thread): New remote_target parameter. Pass
17867 (remote_target::wait_as): Pass down target.
17868 (unpush_and_perror): New remote_target parameter. Pass it down.
17869 (remote_target::readchar, remote_target::remote_serial_write)
17870 (remote_target::getpkt_or_notif_sane_1)
17871 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17873 (remote_target::mourn_inferior): Pass down target. Use
17874 remote_unpush_target.
17875 (remote_target::core_of_thread)
17876 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17877 (remote_target::pid_to_exec_file)
17878 (remote_target::thread_handle_to_thread_info): Pass down target.
17879 (remote_target::async_wait_fd): New.
17880 * riscv-fbsd-tdep.c: Include "inferior.h".
17881 (riscv_fbsd_get_thread_local_address): Pass down target.
17882 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17883 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17884 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17886 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17887 * solib-svr4.c (enable_break): Pass down target.
17888 * spu-multiarch.c (parse_spufs_run): Pass down target.
17889 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17890 * target-delegates.c: Regenerate.
17891 * target.c (g_target_stack): Delete.
17892 (current_top_target): Return the current inferior's top target.
17893 (target_has_execution_1): Refer to the passed-in inferior's top
17895 (target_supports_terminal_ours): Check whether the initial
17896 inferior was already created.
17897 (decref_target): New.
17898 (target_stack::push): Incref/decref the target.
17899 (push_target, push_target, unpush_target): Adjust.
17900 (target_stack::unpush): Defref target.
17901 (target_is_pushed): Return bool. Adjust to refer to the current
17902 inferior's target stack.
17903 (dispose_inferior): Delete, and inline parts ...
17904 (target_preopen): ... here. Only dispose of the current inferior.
17905 (target_detach): Hold strong target reference while detaching.
17907 (target_thread_name): Add assertion.
17908 (target_resume): Pass down target.
17909 (target_ops::beneath, find_target_at): Adjust to refer to the
17910 current inferior's target stack.
17911 (get_dummy_target): New.
17912 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17913 has a thread running.
17914 (initialize_targets): Rename to ...
17915 (_initialize_target): ... this.
17916 * target.h: Include "gdbsupport/refcounted-object.h".
17917 (struct target_ops): Inherit refcounted_object.
17918 (target_ops::shortname, target_ops::longname): Make const.
17919 (target_ops::async_wait_fd): New method.
17920 (decref_target): Declare.
17921 (struct target_ops_ref_policy): New.
17922 (target_ops_ref): New typedef.
17923 (get_dummy_target): Declare function.
17924 (target_is_pushed): Return bool.
17925 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17926 (all_matching_threads_iterator::all_matching_threads_iterator):
17927 Handle filter target.
17928 * thread-iter.h (struct all_matching_threads_iterator, struct
17929 all_matching_threads_range, class all_non_exited_threads_range):
17930 Filter by target too. Remove explicit.
17931 * thread.c (threads_executing): Delete.
17932 (inferior_thread): Pass down current inferior.
17933 (clear_thread_inferior_resources): Pass down thread pointer
17935 (add_thread_silent, add_thread_with_info, add_thread): Add
17936 process_stratum_target parameter. Use it for thread and inferior
17938 (is_current_thread): New.
17939 (thread_info::deletable): Use it.
17940 (find_thread_ptid, thread_count, in_thread_list)
17941 (thread_change_ptid, set_resumed, set_running): New
17942 process_stratum_target parameter. Pass it down.
17943 (set_executing): New process_stratum_target parameter. Pass it
17944 down. Adjust reference to 'threads_executing'.
17945 (threads_are_executing): New process_stratum_target parameter.
17946 Adjust reference to 'threads_executing'.
17947 (set_stop_requested, finish_thread_state): New
17948 process_stratum_target parameter. Pass it down.
17949 (switch_to_thread): Also match inferior.
17950 (switch_to_thread): New process_stratum_target parameter. Pass it
17952 (update_threads_executing): Reimplement.
17953 * top.c (quit_force): Pop targets from all inferior.
17954 (gdb_init): Don't call initialize_targets.
17955 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17957 (windows_add_thread, windows_delete_thread): Adjust.
17958 (get_windows_debug_event): Rename to ...
17959 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17960 * tracefile-tfile.c (tfile_target_open): Pass down target.
17961 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17963 (switch_to_thread): Add process_stratum_target parameter.
17964 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17966 (mi_on_resume): Pass target down.
17967 * nat/fork-inferior.c (startup_inferior): Add
17968 process_stratum_target parameter. Pass it down.
17969 * nat/fork-inferior.h (startup_inferior): Add
17970 process_stratum_target parameter.
17971 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17973 2020-01-10 Pedro Alves <palves@redhat.com>
17975 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17976 directly. Instead find the first thread in the thread list and
17977 use switch_to_thread.
17979 2020-01-10 Pedro Alves <palves@redhat.com>
17981 * remote.c (remote_target::remote_add_inferior): Don't bind a
17982 process to the current inferior if the current inferior is already
17983 bound to a process.
17985 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17986 Pedro Alves <palves@redhat.com>
17988 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17989 If no process is specified, return null_ptid instead of
17991 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17992 TARGET_WAITKIND_SIGNALLED with no pid.
17994 2020-01-10 Pedro Alves <palves@redhat.com>
17996 * remote.c (first_remote_resumed_thread): New.
17997 (remote_target::wait_as): Use it as default event_ptid instead of
18000 2020-01-10 Pedro Alves <palves@redhat.com>
18002 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
18004 2020-01-10 Pedro Alves <palves@redhat.com>
18006 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
18009 2020-01-10 Pedro Alves <palves@redhat.com>
18011 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
18012 ptid to get_last_target_status.
18013 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
18014 ptid to get_last_target_status.
18015 * infcmd.c (continue_command): Don't pass a target_waitstatus to
18016 get_last_target_status.
18017 (info_program_command): Don't pass a target_waitstatus to
18018 get_last_target_status.
18019 * infrun.c (init_wait_for_inferior): Use
18020 nullify_last_target_wait_ptid.
18021 (get_last_target_status): Handle nullptr arguments.
18022 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
18023 (print_stop_event): Don't pass a ptid to get_last_target_status.
18024 (normal_stop): Don't pass a ptid to get_last_target_status.
18025 * infrun.h (get_last_target_status, set_last_target_status): Move
18026 comments here and update.
18027 (nullify_last_target_wait_ptid): Declare.
18028 * linux-fork.c (fork_load_infrun_state): Remove local extern
18029 declaration of nullify_last_target_wait_ptid.
18030 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
18031 to get_last_target_status.
18033 2020-01-10 Pedro Alves <palves@redhat.com>
18035 * gdbthread.h (scoped_restore_current_thread)
18036 <dont_restore, restore, m_dont_restore>: Declare.
18037 * thread.c (thread_alive): Add assertion. Return bool.
18038 (switch_to_thread_if_alive): New.
18039 (prune_threads): Switch inferior/thread.
18040 (print_thread_info_1): Switch thread before calling target methods.
18041 (scoped_restore_current_thread::restore): New, factored out from
18043 (scoped_restore_current_thread::~scoped_restore_current_thread):
18045 (scoped_restore_current_thread::scoped_restore_current_thread):
18047 (thread_apply_all_command, thread_select): Use
18048 switch_to_thread_if_alive.
18049 * infrun.c (proceed, restart_threads, handle_signal_stop)
18050 (switch_back_to_stepped_thread): Switch current thread before
18051 calling target methods.
18053 2020-01-10 Pedro Alves <palves@redhat.com>
18055 * inferior.c (switch_to_inferior_no_thread): New function,
18056 factored out from ...
18057 (inferior_command): ... here.
18058 * inferior.h (switch_to_inferior_no_thread): Declare.
18059 * mi/mi-main.c (run_one_inferior): Use
18060 switch_to_inferior_no_thread.
18062 2020-01-10 Pedro Alves <palves@redhat.com>
18064 * infcmd.c (kill_command): Remove dead code.
18066 2020-01-10 Pedro Alves <palves@redhat.com>
18068 * remote.c (remote_target::mourn_inferior): No longer check
18069 whether the target is running.
18071 2020-01-10 Pedro Alves <palves@redhat.com>
18073 * corelow.c (core_target::has_execution): Change parameter type to
18075 * inferior.c (number_of_live_inferiors): Use
18076 inferior::has_execution instead of target_has_execution_1.
18077 * inferior.h (inferior::has_execution): New.
18078 * linux-thread-db.c (thread_db_target::update_thread_list): Use
18079 inferior::has_execution instead of target_has_execution_1.
18080 * process-stratum-target.c
18081 (process_stratum_target::has_execution): Change parameter type to
18082 inferior pointer. Check the inferior's PID instead of
18084 * process-stratum-target.h
18085 (process_stratum_target::has_execution): Change parameter type to
18087 * record-full.c (record_full_core_target::has_execution): Change
18088 parameter type to inferior pointer.
18089 * target.c (target_has_execution_1): Change parameter type to
18091 (target_has_execution_current): Adjust.
18092 * target.h (target_ops::has_execution): Change parameter type to
18094 (target_has_execution_1): Change parameter type to inferior
18095 pointer. Change return type to bool.
18096 * tracefile.h (tracefile_target::has_execution): Change parameter
18097 type to inferior pointer.
18099 2020-01-10 Pedro Alves <palves@redhat.com>
18101 * exceptions.c (print_flush): Remove current_top_target() check.
18103 2020-01-10 Pedro Alves <palves@redhat.com>
18105 * remote.c (show_remote_exec_file): Show the current inferior's
18106 exec-file instead of the command variable's value.
18108 2020-01-10 Pedro Alves <palves@redhat.com>
18110 * record-full.c (record_full_resume_ptid): New global.
18111 (record_full_target::resume): Set it.
18112 (record_full_wait_1): Use record_full_resume_ptid instead of
18115 2020-01-10 Pedro Alves <palves@redhat.com>
18117 * gdbthread.h (scoped_restore_current_thread)
18118 <dont_restore, restore, m_dont_restore>: Declare.
18119 * thread.c (thread_alive): Add assertion. Return bool.
18120 (switch_to_thread_if_alive): New.
18121 (prune_threads): Switch inferior/thread.
18122 (print_thread_info_1): Switch thread before calling target methods.
18123 (scoped_restore_current_thread::restore): New, factored out from
18125 (scoped_restore_current_thread::~scoped_restore_current_thread):
18127 (scoped_restore_current_thread::scoped_restore_current_thread):
18129 (thread_apply_all_command, thread_select): Use
18130 switch_to_thread_if_alive.
18132 2020-01-10 George Barrett <bob@bob131.so>
18134 * stap-probe.c (stap_modify_semaphore): Don't check for null
18136 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18137 for null semaphores.
18139 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18141 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18142 all source windows, and maintain horizontal scroll status while
18145 2020-01-09 Tom Tromey <tom@tromey.com>
18148 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18149 update_source_window, not print_source_lines.
18151 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18153 * tui/tui.c (tui_enable): Register tui hooks after calling
18156 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18158 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18160 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
18162 * thread.c (print_thread_info_1): Fix indentation.
18164 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18166 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18167 unique_xmalloc_ptr outside the if to always free the demangled name.
18169 2020-01-08 Tom Tromey <tromey@adacore.com>
18171 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18172 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18173 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18174 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18176 (section_offsets): New typedef.
18177 * symtab.c (fixup_section, get_msymbol_address): Update.
18178 * symmisc.c (dump_msymbols): Update.
18179 * symfile.h (relative_addr_info_to_section_offsets)
18180 (symfile_map_offsets_to_segments): Update.
18181 * symfile.c (build_section_addr_info_from_objfile)
18182 (init_objfile_sect_indices): Update.
18183 (struct place_section_arg): Change type of "offsets".
18184 (place_section): Update.
18185 (relative_addr_info_to_section_offsets): Change type of
18186 "section_offsets". Remove "num_sections" parameter.
18187 (default_symfile_offsets, syms_from_objfile_1)
18188 (set_objfile_default_section_offset): Update.
18189 (reread_symbols): No need to preserve section offsets by hand.
18190 (symfile_map_offsets_to_segments): Change type of "offsets".
18191 * stap-probe.c (relocate_address): Update.
18192 * stabsread.h (process_one_symbol): Update.
18193 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18194 (solib_target_relocate_section_addresses): Update.
18195 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18197 * solib-frv.c (frv_relocate_main_executable): Update.
18198 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18199 * solib-aix.c (solib_aix_get_section_offsets): Change return
18201 (solib_aix_solib_create_inferior_hook): Update.
18202 * remote.c (remote_target::get_offsets): Update.
18203 * psymtab.c (find_pc_sect_psymtab): Update.
18204 * psympriv.h (struct partial_symbol) <address, text_low,
18205 text_high>: Update.
18206 * objfiles.h (obj_section_offset): Update.
18207 (struct objfile) <section_offsets>: Change type.
18208 <num_sections>: Remove.
18209 (objfile_relocate): Update.
18210 * objfiles.c (entry_point_address_query): Update
18211 (relocate_one_symbol): Change type of "section_offsets".
18212 (objfile_relocate1, objfile_relocate1): Change type of
18214 (objfile_rebase1): Update.
18215 * mipsread.c (mipscoff_symfile_read): Update.
18216 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18218 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18219 (parse_external, psymtab_to_symtab_1): Update.
18220 * machoread.c (macho_symfile_offsets): Update.
18221 * ia64-tdep.c (ia64_find_unwind_table): Update.
18222 * hppa-tdep.c (read_unwind_info): Update.
18223 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18224 * dwarf2read.c (create_addrmap_from_index)
18225 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18226 (process_psymtab_comp_unit_reader, add_partial_symbol)
18227 (add_partial_subprogram, process_full_comp_unit)
18228 (read_file_scope, read_func_scope, read_lexical_block_scope)
18229 (read_call_site_scope, dwarf2_rnglists_process)
18230 (dwarf2_ranges_process, dwarf2_ranges_read)
18231 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18232 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18234 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18236 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18237 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18238 (process_one_symbol): Change type of "section_offsets".
18239 * ctfread.c (get_objfile_text_range): Update.
18240 * coffread.c (coff_symtab_read, enter_linenos)
18241 (process_coff_symbol): Update.
18242 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18243 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18245 2020-01-08 Tom Tromey <tromey@adacore.com>
18247 * dwarf2read.c (parse_macro_definition): Use std::string.
18248 (parse_macro_definition): Likewise.
18250 2020-01-08 Tom Tromey <tromey@adacore.com>
18252 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18253 (ATTR_ALLOC_CHUNK): Remove.
18255 2020-01-08 Tom Tromey <tromey@adacore.com>
18257 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18259 2020-01-08 Tom Tromey <tromey@adacore.com>
18261 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18262 (dwarf2_compute_name, open_dwo_file): Likewise.
18263 (process_enumeration_scope): Use std::vector.
18264 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18265 (partial_die_info::fixup, dwarf2_start_subfile)
18266 (guess_full_die_structure_name, dwarf2_name): Likewise.
18267 (determine_prefix): Update.
18268 (guess_full_die_structure_name): Make return type const.
18269 (partial_die_full_name): Return unique_xmalloc_ptr.
18270 (DW_FIELD_ALLOC_CHUNK): Remove.
18272 2020-01-07 Tom Tromey <tromey@adacore.com>
18275 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18277 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18279 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18281 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18283 * stack.c (print_frame_info): Move disassemble_next_line code
18284 inside source_print block.
18286 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18288 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18289 gdb/signals.h, as we are now using native signal symbols.
18291 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18293 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18294 overflow by an early check of content vs threshold.
18295 * tui/tui-source.c (tui_source_window::line_is_displayed):
18298 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18300 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18302 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18304 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18305 export table if no section contains it's RVA.
18307 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18309 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18311 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18313 * source.c (print_source_lines_base): Set last_line_listed.
18315 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18317 * tui/tui-disasm.c: Remove trailing spaces.
18319 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18320 Pedro Alves <palves@redhat.com>
18322 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18323 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18324 (windows_gdb_signal_to_target): New function, uses the above
18325 enumeration to convert GDB internal signal codes to equivalent
18327 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18328 * windows-nat.c: Include "gdb_wait.h".
18329 (get_windows_debug_event): Extract the fatal exception from the
18330 exit status and convert to the equivalent Posix signal number.
18331 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18332 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18333 * gdbsupport/gdb_wait.c: New file, implements
18334 windows_status_to_termsig.
18335 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18336 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18338 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18340 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18343 2020-01-05 Luis Machado <luis.machado@linaro.org>
18345 * aarch64-linux-nat.c
18346 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18347 and bfd_mach_aarch64.
18349 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18351 * ui-file.c (stdio_file::can_emit_style_escape)
18352 (tee_file::can_emit_style_escape): Ensure style is used also on
18353 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18355 * main.c (set_gdb_data_directory): Use file style to output the
18356 warning that the given pathname is not a directory.
18357 * top.c (show_history_filename, gdb_safe_append_history)
18358 (show_gdb_datadir): Use file style.
18360 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18362 * solib-target.c (struct lm_info_target):
18363 Change offsets to be a unique_xmalloc_ptr.
18364 (solib_target_relocate_section_addresses): Update.
18366 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18368 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18370 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18372 * MAINTAINERS (Write After Approval): Add myself.
18374 2020-01-02 Luis Machado <luis.machado@linaro.org>
18376 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18377 Cell BE architecture.
18378 * target.h (struct target_ops) <thread_architecture>: Likewise.
18380 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18382 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18384 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18386 * MAINTAINERS (Write After Approval): Add myself.
18388 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18390 * gdbarch.sh: Update copyright year range of generated files.
18392 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18394 Update copyright year range in all GDB files.
18396 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18398 * copyright.py: Convert to Python 3.
18400 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18402 * copyright.py: Adapt after move of gnulib directory from gdb
18403 directory to toplevel directory.
18405 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18407 * copyright.py (main): Exit if run from the wrong directory.
18409 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18411 * top.c (print_gdb_version): Change copyright year to 2020.
18413 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18415 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18417 For older changes see ChangeLog-2019.
18423 version-control: never