1 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
4 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
5 deprecated_cmd_warning.
6 (deprecated_cmd_warning): Take extra parameter, call
7 lookup_cmd_composition_1 and pass new parameter through.
8 (lookup_cmd_composition_1): New function, takes implementation of
9 lookup_cmd_composition but with extra parameter.
10 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
12 * command.h (deprecated_cmd_warning): Add extra parameter to
14 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
16 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
18 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
19 command.h, add extra parameter, and use this to guard giving a
21 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
22 include argument names in declaration, add new argument.
23 * completer.c (complete_line_internal_1): Remove unneeded
24 brackets, pass extra argument to lookup_cmd_1.
26 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
28 * infrun.h (debug_infrun): Make a bool.
29 * infrun.c (debug_infrun): Make a bool.
30 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
33 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
35 * displaced-stepping.h (displaced_debug_printf): Use
36 debug_prefixed_printf_cond.
37 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
38 (dwarf_read_debug_printf_v): Likewise.
39 * infrun.h (infrun_debug_printf): Likewise.
40 * linux-nat.c (linux_nat_debug_printf): Likewise.
42 2020-12-11 Tom Tromey <tom@tromey.com>
44 * p-exp.y (intvar): Remove global.
45 (DOLLAR_VARIABLE): Change type.
47 (exp): Call write_dollar_variable here...
48 (yylex): ... not here.
49 * m2-exp.y (DOLLAR_VARIABLE): Change type.
50 (variable): Call write_dollar_variable here...
51 (yylex): ... not here.
52 * f-exp.y (DOLLAR_VARIABLE): Change type.
53 (exp): Call write_dollar_variable here...
54 (yylex): ... not here.
56 2020-12-11 Tom Tromey <tom@tromey.com>
58 * varobj.c (varobj_create): Update.
59 (install_variable): Return void.
61 2020-12-11 Tom Tromey <tom@tromey.com>
63 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
65 2020-12-11 Tom Tromey <tom@tromey.com>
67 * varobj.c (varobj_clear_saved_item): Remove.
68 (update_dynamic_varobj_children): Update.
69 (varobj::~varobj): Don't call varobj_clear_saved_item.
71 2020-12-11 Tom Tromey <tom@tromey.com>
73 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
74 (update_dynamic_varobj_children, create_child)
75 (create_child_with_value): Update.
76 * varobj-iter.h (struct varobj_item) <value>: Now a
78 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
80 2020-12-11 Tom Tromey <tom@tromey.com>
82 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
83 (varobj_get_iterator): Return unique_ptr.
84 (update_dynamic_varobj_children, install_visualizer)
85 (varobj::~varobj): Update.
86 * python/python-internal.h (py_varobj_get_iterator): Return
88 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
90 2020-12-11 Tom Tromey <tom@tromey.com>
92 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
93 (varobj_clear_saved_item, update_dynamic_varobj_children):
96 2020-12-11 Tom Tromey <tom@tromey.com>
98 * varobj.c (update_dynamic_varobj_children): Update.
99 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
100 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
102 (py_varobj_iter::next): Likewise.
104 2020-12-11 Tom Tromey <tom@tromey.com>
106 * varobj.c (update_dynamic_varobj_children, install_visualizer)
107 (varobj::~varobj): Update.
108 * varobj-iter.h (struct varobj_iter): Change to interface class.
109 (struct varobj_iter_ops): Remove.
110 (varobj_iter_next, varobj_iter_delete): Remove.
111 * python/py-varobj.c (struct py_varobj_iter): Derive from
112 varobj_iter. Add constructor, destructor. Rename members.
113 (py_varobj_iter::~py_varobj_iter): Rename from
115 (py_varobj_iter::next): Rename from py_varobj_iter_next.
116 (py_varobj_iter_ops): Remove.
117 (py_varobj_iter): Rename from py_varobj_iter_ctor.
118 (py_varobj_iter_new): Remove.
119 (py_varobj_get_iterator): Update.
121 2020-12-11 Tom Tromey <tom@tromey.com>
123 * varobj.h (all_root_varobjs): Take a function_view.
124 * varobj.c (all_root_varobjs): Take a function_view.
125 (varobj_invalidate_iter): Remove unused parameter.
126 (varobj_invalidate): Update.
127 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
128 (mi_cmd_var_update_iter): Change parameters.
130 2020-12-11 Tom Tromey <tom@tromey.com>
132 * varobj.c (struct varobj_root) <next>: Remove.
133 (struct vlist): Remove.
134 (rootlist): Now a std::list.
135 (install_variable, uninstall_variable, all_root_varobjs): Update.
137 2020-12-11 Tom Tromey <tom@tromey.com>
139 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
140 (varobj_table): Now htab_t.
141 (varobj_get_handle, install_variable, uninstall_variable):
143 (hash_varobj, eq_varobj_and_string): New functions.
144 (hash_varobj): Update.
146 2020-12-11 Tom Tromey <tom@tromey.com>
148 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
149 * ada-lang.c (check_status_exception): Update.
150 * breakpoint.c (free_bp_location): Remove.
151 (decref_bp_location): Use bp_location_ref_policy.
152 (bpstats::bpstats): Don't call incref_bp_location.
153 (bpstats::~bpstats): Remove.
154 (bpstats::bpstats): Update.
155 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
156 (bp_location::bp_location): Update.
157 (incref_bp_location): Remove.
158 (bkpt_print_it): Update.
159 * breakpoint.h (class bp_location): Derive from
161 (struct bpstats): Remove destructor.
162 <bp_location_at>: Now a bp_location_ref_ptr.
164 (bp_location_ref_ptr): New typedef.
165 (struct bp_location_ref_policy): New.
167 2020-12-11 Tom Tromey <tom@tromey.com>
169 * thread.c (class scoped_inc_dec_ref): Remove.
170 (tp_array_compar_ascending, tp_array_compar_descending): Change
172 (thread_apply_all_command): Use thread_info_ref.
174 2020-12-11 Tom Tromey <tom@tromey.com>
176 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
177 (stop_context::stop_context): Update.
178 (stop_context::~stop_context): Remove.
180 2020-12-11 Tom Tromey <tom@tromey.com>
182 * inferior.c (current_inferior_): Change type.
183 (current_inferior, set_current_inferior, initialize_inferiors):
186 2020-12-11 Tom Tromey <tom@tromey.com>
188 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
191 2020-12-11 Tom Tromey <tromey@adacore.com>
193 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
195 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
196 (read_atcb): Use cpu_id_offset.
198 2020-12-10 Kevin Buettner <kevinb@redhat.com>
200 * ada-lang.c (ada_fold_name): Fix off-by-one error.
202 2020-12-10 Luis Machado <luis.machado@linaro.org>
204 * breakpoint.c (should_be_inserted): Don't output newline.
206 2020-12-10 Luis Machado <luis.machado@linaro.org>
208 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
209 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
210 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
211 * arch/aarch64.h: ... here.
212 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
213 (aarch64_maybe_swab128): New function.
214 (aarch64_sve_regs_copy_to_reg_buf)
215 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
216 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
218 (TF_REG_VALUE_BYTES): New enum value.
219 (trad_frame_value_bytes_p): New function.
220 (trad_frame_set_value_bytes): New function.
221 (trad_frame_set_reg_value_bytes): New function.
222 (trad_frame_get_prev_register): Handle register values saved as bytes.
223 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
224 (struct trad_frame_saved_reg) <data>: New field.
225 (trad_frame_set_value_bytes): New prototype.
226 (trad_frame_value_bytes_p): New prototype.
228 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
230 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
231 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
232 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
234 2020-12-09 Tom Tromey <tromey@adacore.com>
236 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
238 2020-12-09 Tom Tromey <tromey@adacore.com>
240 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
241 and "denominator" to gdb_mpz. Handle block forms.
242 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
243 "denominator" to gdb_mpz.
244 (finish_fixed_point_type): Update.
245 (has_zero_over_zero_small_attribute): Update.
247 2020-12-09 Tom Tromey <tromey@adacore.com>
249 * expprint.c (op_name): Update.
250 * expression.h (enum exp_opcode): Update.
251 * std-operator.def: Add more opcodes.
252 * ada-operator.def, fortran-operator.def: Remove, moving contents
253 into std-operator.def.
255 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
257 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
258 Return {} instead of false.
259 (get_discrete_bounds): Compute high bound only if low bound is
262 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
265 * gdbtypes.c (get_discrete_low_bound): Make non-static.
266 (get_discrete_high_bound): Make non-static.
267 * gdbtypes.h (get_discrete_low_bound): New declaration.
268 (get_discrete_high_bound): New declaration.
269 * valarith.c (value_subscript): Only fetch high bound if
272 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
274 * gdbtypes.c (get_discrete_bounds): Implement with
275 get_discrete_low_bound and get_discrete_high_bound.
276 (get_discrete_low_bound): New.
277 (get_discrete_high_bound): New.
279 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
281 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
283 * gdbtypes.c (get_discrete_bounds): Return bool.
285 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
287 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
288 (ada_value_slice): Adjust.
290 * gdbtypes.c (get_discrete_bounds): Adjust.
291 (discrete_position): Return optional.
292 * gdbtypes.h (discrete_position): Return optional.
294 2020-12-07 Tom Tromey <tromey@adacore.com>
296 * maint.c (_initialize_maint_cmds): Use expression command
297 completer for "maint print type".
299 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
301 * completer.c (complete_explicit_location): Also add keywords
302 that start with '-' to the completion list.
304 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
306 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
307 keyword may be followed by any keyword.
308 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
309 'toklen' in the case for "-force-condition".
311 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
313 * main.c (catch_command_errors): Add a flag parameter; invoke
314 `bpstat_do_actions` if the flag is set.
315 (execute_cmdargs): Update a call to `catch_command_errors`.
317 2020-12-07 Tom de Vries <tdevries@suse.de>
319 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
321 2020-12-06 Tom Tromey <tom@tromey.com>
324 * ada-lang.c (replace_operator_with_call): Rewrite.
326 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
329 * s390-tdep.h (op_bc): Correct BC opcode value.
331 2020-12-06 Joel Brobecker <brobecker@adacore.com>
333 * gmp-utils.h (gdb_mpz::safe_export): New private method.
334 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
335 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
336 (gdb_mpz::safe_export): New method.
337 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
338 Update function description.
339 (check_as_integer_raises_out_of_range_error): New function.
340 (gdb_mpz_as_integer_out_of_range): New function.
341 (_initialize_gmp_utils_selftests): Register
342 gdb_mpz_as_integer_out_of_range as a selftest.
344 2020-12-05 Joel Brobecker <brobecker@adacore.com>
346 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
348 (gdb_mpz::write): Likewise.
350 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
352 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
353 number of displaced step buffers.
355 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
357 * displaced-stepping.h (struct displaced_step_buffer): Rename
359 (struct displaced_step_buffers): ... this.
360 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
361 <struct displaced_step_buffer>: New inner class.
363 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
365 (displaced_step_buffers::prepare): ... this, adjust for multiple
367 (displaced_step_buffer::finish): Rename to...
368 (displaced_step_buffers::finish): ... this, adjust for multiple
370 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
371 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
372 adjust for multiple buffers.
373 (displaced_step_buffer::restore_in_ptid): Rename to...
374 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
376 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
377 for num_disp_step_buffers.
378 * linux-tdep.c (struct linux_gdbarch_data)
379 <num_disp_step_buffers>: New field.
380 (struct linux_info) <disp_step_buf>: Rename to...
381 <disp_step_bufs>: ... this, change type to
382 displaced_step_buffers.
383 (linux_displaced_step_prepare): Use
384 linux_gdbarch_data::num_disp_step_buffers to create that number
386 (linux_displaced_step_finish): Adjust.
387 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
388 (linux_displaced_step_restore_all_in_ptid): Adjust.
389 (linux_init_abi): Change supports_displaced_step parameter for
390 num_disp_step_buffers, save it in linux_gdbarch_data.
391 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
392 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
393 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
394 supports_displaced_step parameter for num_disp_step_buffers.
395 (amd64_linux_init_abi): Adjust.
396 (amd64_x32_linux_init_abi): Adjust.
397 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
398 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
399 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
400 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
401 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
402 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
403 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
404 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
405 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
406 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
407 * m68k-linux-tdep.c (m68k_linux_init_abi):
408 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
409 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
410 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
411 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
412 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
413 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
414 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
415 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
416 Change type to displaced_step_buffers.
417 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
418 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
419 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
420 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
421 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
422 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
423 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
425 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
427 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
429 (_initialize_linux_tdep): Register pre-init gdb data instead of
432 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
434 * displaced-stepping.h (struct
435 displaced_step_copy_insn_closure): Adjust comments.
436 (struct displaced_step_inferior_state) <step_thread,
437 step_gdbarch, step_closure, step_original, step_copy,
438 step_saved_copy>: Remove fields.
439 (struct displaced_step_thread_state): New.
440 (struct displaced_step_buffer): New.
441 * displaced-stepping.c (displaced_step_buffer::prepare): New.
442 (write_memory_ptid): Move from infrun.c.
443 (displaced_step_instruction_executed_successfully): New,
444 factored out of displaced_step_finish.
445 (displaced_step_buffer::finish): New.
446 (displaced_step_buffer::copy_insn_closure_by_addr): New.
447 (displaced_step_buffer::restore_in_ptid): New.
448 * gdbarch.sh (displaced_step_location): Remove.
449 (displaced_step_prepare, displaced_step_finish,
450 displaced_step_copy_insn_closure_by_addr,
451 displaced_step_restore_all_in_ptid): New.
452 * gdbarch.c: Re-generate.
453 * gdbarch.h: Re-generate.
454 * gdbthread.h (class thread_info) <displaced_step_state>: New
456 (thread_step_over_chain_remove): New declaration.
457 (thread_step_over_chain_next): New declaration.
458 (thread_step_over_chain_length): New declaration.
459 * thread.c (thread_step_over_chain_remove): Make non-static.
460 (thread_step_over_chain_next): New.
461 (global_thread_step_over_chain_next): Use
462 thread_step_over_chain_next.
463 (thread_step_over_chain_length): New.
464 (global_thread_step_over_chain_enqueue): Add debug print.
465 (global_thread_step_over_chain_remove): Add debug print.
466 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
468 * infrun.c (get_displaced_stepping_state): New.
469 (displaced_step_in_progress_any_inferior): Remove.
470 (displaced_step_in_progress_thread): Adjust.
471 (displaced_step_in_progress): Adjust.
472 (displaced_step_in_progress_any_thread): New.
473 (get_displaced_step_copy_insn_closure_by_addr): Remove.
474 (gdbarch_supports_displaced_stepping): Use
475 gdbarch_displaced_step_prepare_p.
476 (displaced_step_reset): Change parameter from inferior to
478 (displaced_step_prepare_throw): Implement using
479 gdbarch_displaced_step_prepare.
480 (write_memory_ptid): Move to displaced-step.c.
481 (displaced_step_restore): Remove.
482 (displaced_step_finish): Implement using
483 gdbarch_displaced_step_finish.
484 (start_step_over): Allow starting more than one displaced step.
485 (prepare_for_detach): Handle possibly multiple threads doing
487 (handle_inferior_event): Handle possibility that fork event
488 happens while another thread displaced steps.
489 * linux-tdep.h (linux_displaced_step_prepare): New.
490 (linux_displaced_step_finish): New.
491 (linux_displaced_step_copy_insn_closure_by_addr): New.
492 (linux_displaced_step_restore_all_in_ptid): New.
493 (linux_init_abi): Add supports_displaced_step parameter.
494 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
495 (linux_displaced_step_prepare): New.
496 (linux_displaced_step_finish): New.
497 (linux_displaced_step_copy_insn_closure_by_addr): New.
498 (linux_displaced_step_restore_all_in_ptid): New.
499 (linux_init_abi): Add supports_displaced_step parameter,
500 register displaced step methods if true.
501 (_initialize_linux_tdep): Register inferior_execd observer.
502 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
503 supports_displaced_step parameter, adjust call to
504 linux_init_abi. Remove call to
505 set_gdbarch_displaced_step_location.
506 (amd64_linux_init_abi): Adjust call to
507 amd64_linux_init_abi_common.
508 (amd64_x32_linux_init_abi): Likewise.
509 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
510 linux_init_abi. Remove call to
511 set_gdbarch_displaced_step_location.
512 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
513 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
514 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
516 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
517 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
518 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
519 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
520 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
521 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
522 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
523 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
524 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
525 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
526 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
527 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
528 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
529 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
530 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
531 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
532 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
533 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
534 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
535 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
536 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
537 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
538 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
539 linux_init_abi. Remove call to
540 set_gdbarch_displaced_step_location.
541 * arm-tdep.c (arm_pc_is_thumb): Call
542 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
543 get_displaced_step_copy_insn_closure_by_addr.
544 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
545 clear gdbarch methods.
546 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
547 (get_ppc_per_inferior): New function.
548 (ppc_displaced_step_prepare): New function.
549 (ppc_displaced_step_finish): New function.
550 (ppc_displaced_step_restore_all_in_ptid): New function.
551 (rs6000_gdbarch_init): Register new gdbarch methods.
552 * s390-tdep.c (s390_gdbarch_init): Don't call
553 set_gdbarch_displaced_step_location, set new gdbarch methods.
555 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
557 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
558 * aarch64-tdep.h: Include displaced-stepping.h.
559 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
561 (displaced_step_copy_insn_closure_up): Move here.
562 (struct buf_displaced_step_copy_insn_closure): Move here.
563 (struct displaced_step_inferior_state): Move here.
564 (debug_displaced): Move here.
565 (displaced_debug_printf_1): Move here.
566 (displaced_debug_printf): Move here.
567 * displaced-stepping.c: New file.
568 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
569 * gdbarch.h: Re-generate.
570 * inferior.h: Include displaced-stepping.h.
571 * infrun.h (debug_displaced): Move to displaced-stepping.h.
572 (displaced_debug_printf_1): Likewise.
573 (displaced_debug_printf): Likewise.
574 (struct displaced_step_copy_insn_closure): Likewise.
575 (displaced_step_copy_insn_closure_up): Likewise.
576 (struct buf_displaced_step_copy_insn_closure): Likewise.
577 (struct displaced_step_inferior_state): Likewise.
578 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
579 (displaced_debug_printf_1): Likewise.
580 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
582 (_initialize_infrun): Don't register "set/show debug displaced".
584 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
586 * linux-tdep.c (get_linux_inferior_data): Add inferior
588 (linux_vsyscall_range): Pass current inferior.
590 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
592 * infrun.c (displaced_step_prepare_throw): Change return type to
593 displaced_step_prepare_status.
594 (displaced_step_prepare): Likewise.
595 (displaced_step_finish): Change return type to
596 displaced_step_finish_status.
598 (stop_all_threads): Adjust.
599 * displaced-stepping.h: New file.
601 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
603 * infrun.c (displaced_step_fixup): Rename to...
604 (displaced_step_finish): ... this, update all callers.
606 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
608 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
609 (get_displaced_step_copy_insn_closure_by_addr): ... this.
611 (displaced_step_closure): Rename to...
612 (displaced_step_copy_insn_closure): ... this. Update all users.
613 (displaced_step_closure_up): Rename to...
614 (displaced_step_copy_insn_closure_up). ... this. Update all
616 (buf_displaced_step_closure): Rename to...
617 (buf_displaced_step_copy_insn_closure): ... this. Update all
619 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
620 (get_displaced_step_copy_insn_closure_by_addr): ... this.
622 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
623 (aarch64_displaced_step_copy_insn_closure): ... this. Update
625 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
626 (amd64_displaced_step_copy_insn_closure): ... this. Update all
628 * arm-tdep.h (arm_displaced_step_closure): Rename to...
629 (arm_displaced_step_copy_insn_closure): ... this. Update all
631 * i386-tdep.h (i386_displaced_step_closure): Rename to...
632 (i386_displaced_step_copy_insn_closure): ... this. Update all
634 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
635 (ppc_displaced_step_copy_insn_closure): ... this. Update all
637 * s390-tdep.c (s390_displaced_step_closure): Rename to...
638 (s390_displaced_step_copy_insn_closure): ... this. Update all
640 * gdbarch.h: Re-generate.
641 * gdbarch.c: Re-generate.
643 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
645 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
646 (global_thread_step_over_chain_enqueue): ... this. Update all
648 (thread_step_over_chain_remove): Rename to...
649 (global_thread_step_over_chain_remove): ... this. Update all
651 (thread_step_over_chain_next): Rename to...
652 (global_thread_step_over_chain_next): ... this. Update all
654 * infrun.h (step_over_queue_head): Rename to...
655 (global_thread_step_over_chain_head): ... this. Update all
657 * infrun.c (step_over_queue_head): Rename to...
658 (global_thread_step_over_chain_head): ... this. Update all
660 * thread.c (step_over_chain_remove): Rename to...
661 (thread_step_over_chain_remove): ... this. Update all users.
662 (thread_step_over_chain_next): Rename to...
663 (global_thread_step_over_chain_next): ... this. Update all
665 (thread_step_over_chain_enqueue): Rename to...
666 (global_thread_step_over_chain_enqueue): ... this. Update all
668 (thread_step_over_chain_remove): Rename to...
669 (global_thread_step_over_chain_remove): ... this. Update all
672 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
674 * infrun.c (get_displaced_stepping_state): Remove, change
675 callers to access the field directly.
677 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
679 * infrun.c (handle_inferior_event): Restore displaced step
680 buffer bytes in child process when handling fork, even if fork
681 happened in another thread than the displaced-stepping one.
683 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
685 * infrun.c (infrun_inferior_execd): New function.
686 (_initialize_infrun): Attach inferior_execd observer.
688 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
690 * observable.h (inferior_execd): Declare new observable.
691 * observable.c (inferior_execd): Declare new observable.
692 * infrun.c (follow_exec): Notify inferior_execd observer.
693 * jit.c (jit_inferior_created_hook): Make static.
694 (_initialize_jit): Register inferior_execd observer.
695 * jit.h (jit_inferior_created_hook): Remove declaration.
696 * solib.c (_initialize_solib): Register inferior_execd observer.
698 2020-12-04 Tom de Vries <tdevries@suse.de>
701 * completer.c (completion_tracker::build_completion_result): Don't
702 access match_list[0][-1].
704 2020-12-04 Tom Tromey <tromey@adacore.com>
706 * linespec.c (struct linespec_token): Rename; remove typedef.
707 * guile/scm-block.c (struct block_smob): Remove typedef.
708 (struct block_syms_progress_smob): Likewise.
709 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
710 * guile/scm-symtab.c (symtab_smob): Remove typedef.
711 (struct sal_smob): Remove typedef.
712 * guile/scm-param.c (struct param_smob): Remove typedef.
713 * guile/scm-progspace.c (struct pspace_smob): Rename.
714 * guile/scm-objfile.c (struct objfile_smob): Rename.
715 * guile/scm-iterator.c (struct iterator_smob): Rename.
716 * guile/scm-frame.c (struct frame_smob): Rename.
717 * guile/scm-arch.c (struct arch_smob): Rename.
718 * guile/scm-type.c (struct field_smob): Remove typedef.
719 (struct type_smob): Rename.
720 * guile/scm-cmd.c (struct command_smob): Remove typedef.
721 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
722 * guile/scm-value.c (struct value_smob): Remove typedef.
723 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
724 * guile/guile-internal.h (struct scheme_variable)
725 (struct scheme_function, struct scheme_integer_constant)
726 (struct gdb_smob, struct chained_gdb_smob)
727 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
728 (objfile_smob, pspace_smob, type_smob): Remove typedef.
729 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
730 (struct pretty_printer_worker_smob): Remove typedef.
731 * guile/scm-exception.c (struct exception_smob): Remove typedef.
732 * python/py-block.c (struct block_object): Remove typedef.
733 (block_syms_iterator_object): Update.
735 (block_syms_iterator_object): Remove typedef.
736 * python/py-inferior.c (struct membuf_object): Remove typedef.
737 * python/py-symtab.c (struct symtab_object): Remove typedef.
738 (set_symtab): Update.
739 (sal_object): Remove typedef.
741 * python/py-frame.c (frame_object): Remove typedef.
742 * python/py-record-btrace.c (struct btpy_list_object): Remove
744 * python/py-arch.c (struct arch_object): Remove typedef.
745 * python/py-linetable.c (struct linetable_entry_object)
746 (linetable_object, struct ltpy_iterator_object): Remove typedef.
747 * python/py-events.h (eventregistry_object): Remove typedef.
748 (struct events_object): Remove typedef.
749 * python/python-internal.h (gdbpy_breakpoint_object): Remove
751 (thread_object): Remove typedef.
752 * python/py-progspace.c (pspace_object): Remove typedef.
753 * python/py-value.c (struct value_object): Remove typedef.
754 * python/py-record.h (recpy_record_object): Remove typedef.
755 (struct recpy_element_object): Remove typedef.
756 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
757 * python/py-objfile.c (objfile_object): Remove typedef.
758 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
759 * python/py-type.c (type_object): Remove typedef.
760 (typy_iterator_object): Update.
762 (field_object): Remove typedef.
763 (typy_iterator_object): Remove typedef.
764 * python/py-registers.c (register_descriptor_iterator_object):
766 (struct register_descriptor_object)
767 (struct reggroup_iterator_object, struct reggroup_object): Remove
769 * python/py-record.c (recpy_gap_object): Remove typedef.
770 * python/py-symbol.c (symbol_object): Remove typedef.
771 (set_symbol): Update.
772 * python/py-event.h (event_object): Remove typedef.
773 * python/py-param.c (parmpy_object): Remove typedef.
774 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
775 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
776 (unwind_info_object, struct cached_frame_info): Likewise.
778 2020-12-04 Tom Tromey <tromey@adacore.com>
780 * value.c (value_internal_function_name): Make return type const.
781 * value.h (value_internal_function_name): Make return type const.
783 2020-12-04 Luis Machado <luis.machado@linaro.org>
785 * aarch64-tdep.c (submask, bit, bits): Remove.
786 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
787 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
788 (aarch64_decode_cb, aarch64_decode_tb)
789 (aarch64_decode_ldr_literal): Use sbits to extract a signed
791 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
793 2020-12-04 Tom de Vries <tdevries@suse.de>
796 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
798 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
801 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
802 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
804 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
806 * arch/riscv.c: Include 'rv32e-xregs.c'.
807 (riscv_create_target_description): Update to handle rv32e.
808 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
810 <operator==>: Update to account for new field.
812 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
813 * features/riscv/rv32e-xregs.c: Generated.
814 * features/riscv/rv32e-xregs.xml: New file.
815 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
817 (riscv_debug_infcall): Likewise.
818 (riscv_debug_unwinder): Likewise.
819 (riscv_debug_gdbarch): Likewise.
820 (enum riscv_register_required_status): Delete.
821 (struct riscv_register_feature): Add constructor, delete default
822 constructor, copy, and assign constructors.
823 (struct riscv_register_feature::register_info) <required>: Delete.
824 <check>: Update comment and arguments.
825 (struct riscv_register_feature) <name>: Change to member function.
826 <prefer_first_name>: Delete.
827 <tdesc_feature>: New member function.
828 <registers>: Rename to...
829 <m_registers>: ...this.
830 <m_feature_name>: New member variable.
831 (riscv_register_feature::register_info::check): Update arguments.
832 (riscv_xreg_feature): Rewrite as class, create a single static
833 instance of the class.
834 (riscv_freg_feature): Likewise.
835 (riscv_virtual_feature): Likewise.
836 (riscv_csr_feature): Likewise.
837 (riscv_create_csr_aliases): Has become a member function inside
838 riscv_csr_feature class.
839 (riscv_abi_embedded): New function definition.
840 (riscv_register_name): Adjust to use new feature objects.
841 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
842 and adjust available argument registers.
843 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
844 (riscv_check_tdesc_feature): Delete.
845 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
846 (riscv_gdbarch_init): Delete target description checking code, and
847 instead call to the new feature objects to perform the checks.
848 Reorder handling of no abi information case, allows small code
850 (_initialize_riscv_tdep): Remove call, this is now done in the
851 riscv_csr_feature constructor.
852 * riscv-tdep.h (riscv_abi_embedded): Declare.
854 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
856 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
859 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
861 * riscv-tdep.c (riscv_is_unknown_csr): New function,
862 implementation moved from riscv_register_reggroup_p.
863 (riscv_register_reggroup_p): Update group handling for unknown
866 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
868 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
869 (dwarf2_get_dwz_file): Convert 'filename' to a
870 std::string. Use dwz_search_other_debugdirs to search for DWZ
871 files in the debug-file-directories provided by the user as well.
873 2020-12-01 Tom Tromey <tom@tromey.com>
875 * parse.c (expr_builder::expr_builder): Initialize expout.
876 (expr_builder::release): Use expression::resize.
877 (expression::expression, expression::~expression)
878 (expression::resize): New methods.
879 (write_exp_elt): Use expression::resize.
880 (prefixify_expression): Update.
881 (increase_expout_size): Use expression::resize.
882 * expression.h (struct expression): Add constructor, destructor.
883 <resize>: New method.
884 (expression_up): Change type.
886 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
887 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
888 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
891 2020-11-30 Tom de Vries <tdevries@suse.de>
894 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
895 is_reference parameter.
896 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
898 2020-11-30 Tom Tromey <tom@tromey.com>
900 * rust-lang.c (rust_op_name): Remove.
901 (exp_descriptor_rust): Update.
902 * parser-defs.h (op_name_standard): Don't declare.
903 (struct exp_descriptor) <op_name>: Remove.
904 * parse.c (exp_descriptor_standard): Update.
905 * opencl-lang.c (exp_descriptor_opencl): Update.
906 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
907 * f-lang.c (op_name_f): Remove.
908 (f_language::exp_descriptor_tab): Update.
909 * expression.h (op_name): Update.
910 * expprint.c (op_name): Rewrite.
911 (op_name_standard): Remove.
912 (dump_raw_expression, dump_subexp): Update.
913 * c-lang.c (exp_descriptor_c): Update.
914 * ax-gdb.c (gen_expr): Update.
915 * ada-lang.c (ada_op_name): Remove.
916 (ada_exp_descriptor): Update.
918 2020-11-30 Tom Tromey <tom@tromey.com>
920 * eval.c (init_array_element): Remove.
921 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
923 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
926 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
927 static locator win info.
929 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
931 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
934 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
936 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
937 is always initialized.
939 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
940 * MAINTAINERS (Write After Approval): Add myself.
942 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
944 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
945 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
947 2020-11-25 Tom Tromey <tom@tromey.com>
949 * eval.c (evaluate_subexp_standard): Remove unnecessary
952 2020-11-25 Tom Tromey <tom@tromey.com>
954 * d-lang.c: Include parser-defs.h.
955 * rust-lang.c: Include parser-defs.h.
956 * c-lang.h: Do not include parser-defs.h.
958 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
960 * regcache.h (struct cached_reg): Remove typedef.
962 2020-11-24 Joel Brobecker <brobecker@adacore.com>
964 * README: Fix the URL of the MPFR library.
966 2020-11-24 Joel Brobecker <brobecker@adacore.com>
968 * README: Document the --with-libgmp-prefix configure option.
970 2020-11-24 Joel Brobecker <brobecker@adacore.com>
972 * NEWS: Add entry documenting support for DWARF-based fixed
975 2020-11-24 Joel Brobecker <brobecker@adacore.com>
977 * NEWS: Document that building GDB now requires GMP.
979 2020-11-24 Joel Brobecker <brobecker@adacore.com>
981 * typeprint.c (print_type_scalar): Add handling of
982 TYPE_CODE_FIXED_POINT.
984 2020-11-24 Joel Brobecker <brobecker@adacore.com>
986 * valarith.c (fixed_point_binop): Replace the
987 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
990 2020-11-24 Joel Brobecker <brobecker@adacore.com>
992 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
993 replacing fixed_point_scaling_factor. All callers updated
994 throughout this project.
995 (fixed_point_scaling_factor): Delete declaration.
996 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
997 fixed_point_scaling_factor. Adjust implementation accordingly.
999 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1001 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1002 replacing the fixed_point_type_base_type function. All callers
1003 updated throughout this project.
1004 (fixed_point_type_base_type): Remove declaration.
1005 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1006 fixed_point_type_base_type. Adjust implementation accordingly.
1008 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1010 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1012 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1013 (TYPE_FIXED_POINT_INFO): Delete macro.
1014 (allocate_fixed_point_type_info): Change return type to void.
1015 * gdbtypes.c (copy_type_recursive): Replace the use of
1016 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1017 (fixed_point_scaling_factor): Likewise.
1018 (allocate_fixed_point_type_info): Change return type to void.
1019 Adjust implementation accordingly.
1020 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1021 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1023 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1025 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1026 into one single gdb::array_view parameter.
1027 (gdb_mpz::write): Likewise.
1028 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1029 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1030 into one single gdb::array_view parameter.
1031 Adjust implementation accordingly.
1032 (gdb_mpz::write): Likewise.
1033 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1034 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1035 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1037 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1039 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1040 Change return type to std::string. Update all callers.
1041 * gmp-utils.c (gmp_string_printf): Likewise.
1043 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1045 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1046 instead of mpq_set_ui to initialize our GMP rational.
1048 2020-11-23 Tom de Vries <tdevries@suse.de>
1050 * debuginfod-support.c (debuginfod_source_query)
1051 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1053 2020-11-21 Tom Tromey <tom@tromey.com>
1055 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1057 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1059 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1061 (gdb_mpz_write_all_from_small): Likewise.
1063 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1065 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1068 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1070 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1071 ctf_arc_open_by_name.
1073 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1075 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1076 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1078 2020-11-20 Pedro Alves <pedro@palves.net>
1080 * language.c (language_arch_info::lookup_primitive_type): Use
1081 gdb::function_view instead of gdb::function.
1082 (template language_lookup_primitive_type): Rename to ...
1083 (language_lookup_primitive_type_1): ... this, and make static.
1084 (language_lookup_primitive_type(const struct language_defn *,
1085 struct gdbarch *, const char *): Make non-template.
1086 (language_lookup_primitive_type(const struct language_defn *,
1087 struct gdbarch *, std::function<bool (struct type *)>): Make
1088 non-template and use gdb::function_view.
1089 * language.h (language_arch_info::lookup_primitive_type): Use
1090 gdb::function_view instead of std::function.
1091 (language_lookup_primitive_type): No longer template.
1092 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1093 lambda instead of a std::function.
1095 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1098 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1101 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1103 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1105 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1107 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1108 in `loop_cb` parameter.
1109 * gdbarch.c: Re-generate.
1110 * gdbarch.h: Re-generate.
1111 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1113 * arch-utils.h (default_read_core_file_mappings): Likewise.
1114 * corelow.c (core_target::build_file_mappings): Likewise.
1115 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1116 (linux_core_info_proc_mappings): Likewise.
1118 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1120 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1121 * NEWS: Mention new options.
1122 * f-array-walker.h: New file.
1123 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1124 (repack_array_slices): New static global.
1125 (show_repack_array_slices): New function.
1126 (fortran_array_slicing_debug): New static global.
1127 (show_fortran_array_slicing_debug): New function.
1128 (value_f90_subarray): Delete.
1129 (skip_undetermined_arglist): Delete.
1130 (class fortran_array_repacker_base_impl): New class.
1131 (class fortran_lazy_array_repacker_impl): New class.
1132 (class fortran_array_repacker_impl): New class.
1133 (fortran_value_subarray): Complete rewrite.
1134 (set_fortran_list): New static global.
1135 (show_fortran_list): Likewise.
1136 (_initialize_f_language): Register new commands.
1137 (fortran_adjust_dynamic_array_base_address_hack): New function.
1138 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1140 * f-valprint.c: Include 'f-array-walker.h'.
1141 (class fortran_array_printer_impl): New class.
1142 (f77_print_array_1): Delete.
1143 (f77_print_array): Delete.
1144 (fortran_print_array): New.
1145 (f_value_print_inner): Update to call fortran_print_array.
1146 * gdbtypes.c: Include 'f-lang.h'.
1147 (resolve_dynamic_type_internal): Call
1148 fortran_adjust_dynamic_array_base_address_hack.
1150 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1152 * breakpoint.c (struct watch_options): New struct.
1153 (watch_option_defs): New static global.
1154 (make_watch_options_def_group): New function.
1155 (watch_maybe_just_location): Convert option parsing.
1156 (watch_command_completer): New function.
1157 (_initialize_breakpoint): Build help text using options mechanism.
1159 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1161 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1162 (watch_command_1): Update parameter types. Convert locals to
1164 (watch_command_wrapper): Change parameter type.
1165 (watch_maybe_just_location): Change locals to bool.
1166 (rwatch_command_wrapper): Update parameter type.
1167 (awatch_command_wrapper): Update parameter type.
1168 * breakpoint.h (watch_command_wrapper): Change parameter type.
1169 (rwatch_command_wrapper): Update parameter type.
1170 (awatch_command_wrapper): Update parameter type.
1171 * eval.c (fetch_subexp_value): Change parameter type.
1172 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1174 * value.h (fetch_subexp_value): Change parameter type in
1177 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1179 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1182 2020-11-18 Keith Seitz <keiths@redhat.com>
1184 * linux-tdep.c (dump_note_entry_p): Return true instead of
1185 checking `filename'.
1187 2020-11-18 Tom de Vries <tdevries@suse.de>
1189 * debuginfod-support.c (debuginfod_source_query)
1190 (debuginfod_debuginfo_query): Also do early exit if
1191 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1193 2020-11-18 Tom de Vries <tdevries@suse.de>
1195 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1198 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1200 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1201 callers. Move doc here.
1202 * gdbtypes.c (get_array_bounds): Return bool
1204 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1206 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1208 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1209 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1210 case to the default.
1212 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1214 * printcmd.c: Include 'safe-ctype.c'.
1215 (skip_over_slash_fmt): New function.
1216 (print_command_completer): Call skip_over_slash_fmt.
1217 (display_and_x_command_completer): New function.
1218 (_initialize_printcmd): Add command completion for 'x' and
1221 2020-11-16 Pedro Alves <pedro@palves.net>
1223 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1224 (get_prev_frame_always_1): ... to here.
1225 * inline-frame.c (inline_frame_this_id): Mention
1226 get_prev_frame_always_1 in comment.
1228 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1230 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1232 (value_less): Add fixed-point handling.
1234 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1236 * eval.c (binop_promote): Add fixed-point type handling.
1237 * valarith.c (fixed_point_binop): New function.
1238 (scalar_binop): Add fixed-point type handling.
1239 (value_neg): Add fixed-point type handling.
1240 * valops.c (value_cast_to_fixed_point): New function.
1241 (value_cast): Add fixed-point type handling.
1243 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1245 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1247 * c-typeprint.c (c_type_print_varspec_prefix)
1248 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1249 TYPE_CODE_FIXED_POINT handling.
1250 * p-typeprint.c (pascal_type_print_varspec_prefix)
1251 (pascal_type_print_varspec_suffix): Likewise.
1252 * typeprint.c (print_type_fixed_point): New function.
1253 * typeprint.h (print_type_fixed_point): Add declaration.
1255 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1257 * printcmd.c (print_scalar_formatted): Add fixed-point type
1258 handling when options->format is set.
1260 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1262 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1263 * dwarf2/read.c (get_dwarf2_rational_constant)
1264 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1265 (has_zero_over_zero_small_attribute): New functions.
1266 read_base_type, set_die_type): Add fixed-point type handling.
1267 * gdb-gdb.py.in: Add fixed-point type handling.
1268 * gdbtypes.c: #include "gmp-utils.h".
1269 (create_range_type, set_type_code): Add fixed-point type handling.
1270 (init_fixed_point_type): New function.
1271 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1272 (print_fixed_point_type_info): New function.
1273 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1275 (fixed_point_type_storage): New typedef.
1276 (fixed_point_objfile_key): New static global.
1277 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1278 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1280 * gdbtypes.h: #include "gmp-utils.h".
1281 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1282 (union type_specific) <fixed_point_info>: New field.
1283 (struct fixed_point_type_info): New struct.
1284 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1285 (init_fixed_point_type, is_fixed_point_type)
1286 (fixed_point_type_base_type, fixed_point_scaling_factor)
1287 (allocate_fixed_point_type_info): Add declarations.
1288 * valprint.c (generic_val_print_fixed_point): New function.
1289 (generic_value_print): Add fixed-point type handling.
1290 * value.c (value_as_address, unpack_long): Add fixed-point type
1293 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1295 * utils.h (uinteger_pow): Add declaration.
1296 * utils.c (uinteger_pow): Moved here (without changes)...
1297 * valarith.c (uinteger_pow): ... from here.
1299 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1301 * gmp-utils.h, gmp-utils.c: New file.
1302 * unittests/gmp-utils-selftests.c: New file.
1303 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1304 unittests/gmp-utils-selftests.c.
1305 (COMMON_SFILES) Add gmp-utils.c.
1306 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1308 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1310 * configure.ac: Generate an error if a usable GMP library
1312 * configure: Regenerate.
1314 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1316 * configure.ac: Add support for --with-libgmp-prefix.
1317 * Makefile.in (LIBGMP): New variable.
1318 (CLIBS): Include $(LIBGMP).
1319 * configure, config.in: Regenerate
1321 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1324 * f-exp.y (COMPLETE): New token.
1325 (exp): Two new rules for tab-completion.
1326 (saw_name_at_eof): New static global.
1327 (last_was_structop): Likewise.
1328 (yylex): Set new variables, and return COMPLETE token at the end
1329 of the input stream in some cases.
1331 2020-11-14 Tom Tromey <tom@tromey.com>
1333 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1335 2020-11-14 Tom Tromey <tom@tromey.com>
1337 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1339 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1341 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1343 2020-11-13 Tom Tromey <tom@tromey.com>
1345 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1346 (convert_escape, parse_one_string): Constify.
1348 2020-11-13 Keith Seitz <keiths@redhat.com>
1350 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1351 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1352 outside of ELF segments" warning for debugin
1354 2020-11-13 Keith Seitz <keiths@redhat.com>
1357 * elfread.c (elf_symfile_segments): Output a BFD file name
1358 for the "Loadable section ... outside of ELF segments" warning.
1360 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1363 * arm-tdep.c (class arm_instruction_reader): New.
1364 (target_arm_instruction_reader): New.
1365 (arm_analyze_prologue): Add instruction reader parameter and use
1366 it. Use arm_expand_immediate.
1367 (class target_arm_instruction_reader): Adjust.
1368 (arm_skip_prologue): Adjust.
1369 (arm_expand_immediate): New.
1370 (arm_scan_prologue): Adjust.
1371 (arm_analyze_prologue_test): New.
1372 (class test_arm_instruction_reader): New.
1374 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1376 * f-lang.c (fortran_argument_convert): Add declaration. Add
1377 header comment, taken from f-lang.h. Make static.
1378 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1379 (fortran_argument_convert): Delete declaration.
1381 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1383 * ada-exp.y (find_primitive_type): Make parameter const.
1384 * ada-lang.c (enum ada_primitive_types): Delete.
1385 (ada_language::language_arch_info): Update.
1386 * c-lang.c (enum c_primitive_types): Delete.
1387 (c_language_arch_info): Update.
1388 (enum cplus_primitive_types): Delete.
1389 (cplus_language::language_arch_info): Update.
1390 * d-lang.c (enum d_primitive_types): Delete.
1391 (d_language::language_arch_info): Update.
1392 * f-lang.c (enum f_primitive_types): Delete.
1393 (f_language::language_arch_info): Update.
1394 * go-lang.c (enum go_primitive_types): Delete.
1395 (go_language::language_arch_info): Update.
1396 * language.c (auto_or_unknown_language::language_arch_info):
1398 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1399 (language_string_char_type): Add header comment, call function in
1401 (language_bool_type): Likewise
1402 (language_arch_info::bool_type): Define.
1403 (language_lookup_primitive_type_1): Delete.
1404 (language_lookup_primitive_type): Rewrite as a templated function
1405 to call function in language_arch_info, then instantiate twice.
1406 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1407 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1408 (language_arch_info::lookup_primitive_type): Define twice with
1409 different signatures.
1410 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1411 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1412 member function in language_arch_info.
1413 * language.h (language_arch_info): Complete rewrite.
1414 (language_lookup_primitive_type): Make templated.
1415 * m2-lang.c (enum m2_primitive_types): Delete.
1416 (m2_language::language_arch_info): Update.
1417 * opencl-lang.c (OCL_P_TYPE): Delete.
1418 (enum opencl_primitive_types): Delete.
1419 (opencl_type_data): Delete.
1420 (builtin_opencl_type): Delete.
1421 (lookup_opencl_vector_type): Update.
1422 (opencl_language::language_arch_info): Update, lots of content
1424 (build_opencl_types): ...here. This function is now deleted.
1425 (_initialize_opencl_language): Delete.
1426 * p-lang.c (enum pascal_primitive_types): Delete.
1427 (pascal_language::language_arch_info): Update.
1428 * rust-lang.c (enum rust_primitive_types): Delete.
1429 (rust_language::language_arch_info): Update.
1431 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1433 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1436 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1438 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1441 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1443 * dwarf2/read.c (dwarf_read_debug_printf,
1444 dwarf_read_debug_printf_v): New macros, use throughout the file.
1446 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1449 * arc-linux-tdep.c (collect_register): Populate "eret" by
1450 "pc" value from the regcache when asked for "pc" value.
1452 2020-11-12 Tom Tromey <tom@tromey.com>
1455 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1458 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1460 * features/Makefile (XMLTOC): Add rx.xml.
1461 (FEATURE_XMLFILES): Remove rx.xml.
1462 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1463 * features/rx.c: Regenerate.
1464 * features/rx.xml: Wrap in `target` tags, and reindent.
1465 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1467 (maint_print_c_tdesc_opt_def): New typedef.
1468 (maint_print_c_tdesc_opt_defs): New static global.
1469 (make_maint_print_c_tdesc_options_def_group): New function.
1470 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1471 print single feature C file for target descriptions containing a
1473 (maint_print_c_tdesc_cmd_completer): New function.
1474 (_initialize_target_descriptions): Update call to register command
1475 completer, and include command line flag in help text.
1477 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1479 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1481 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1484 2020-11-10 Tom Tromey <tom@tromey.com>
1486 * value.h (internalvar_name): Update.
1487 * value.c (internalvar_name): Make return type const.
1489 2020-11-10 Tom Tromey <tom@tromey.com>
1491 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1492 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1495 2020-11-10 Tom Tromey <tom@tromey.com>
1497 * objc-lang.h (value_nsstring): Update.
1498 * objc-lang.c (value_nsstring): Make "ptr" const.
1500 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1502 * expprint.c (print_subexp_funcall): Increment expression position
1503 after reading argument count.
1504 * f-lang.c (print_subexp_f): Skip over opcode before calling
1506 (dump_subexp_body_f): Likewise.
1508 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1511 * configure: Regenerate.
1512 * configure.ac: Check for python modules ctypes instead of
1515 2020-11-06 Pedro Alves <pedro@palves.net>
1517 * macroexp.c (struct macro_buffer): Split in two classes. Add
1519 (struct shared_macro_buffer): New, factored out from struct
1521 (struct growable_macro_buffer): New, factored out from struct
1523 (set_token, get_comment, get_identifier, get_pp_number)
1524 (get_character_constant, get_string_literal, get_punctuator)
1525 (get_next_token_for_substitution): Constify parameters.
1526 (substitute_args): Constify locals.
1528 2020-11-05 Tom Tromey <tom@tromey.com>
1530 * dwarf2/read.c (read_cutu_die_from_dwo)
1531 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1532 (build_type_psymtabs_1): Update.
1533 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1535 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1536 Don't read section. Add assert.
1538 2020-11-04 Tom Tromey <tromey@adacore.com>
1540 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1542 2020-11-04 Tom Tromey <tromey@adacore.com>
1544 * ada-typeprint.c (ada_print_type): Handle __T types.
1546 2020-11-04 Tom Tromey <tromey@adacore.com>
1548 * dwarf2/read.c (add_partial_symbol, process_die):
1549 Handle DW_TAG_array_type.
1550 (is_type_tag_for_partial): Add "lang" parameter.
1551 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1553 2020-11-04 Tom Tromey <tromey@adacore.com>
1555 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1557 2020-11-04 Tom Tromey <tromey@adacore.com>
1559 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1562 2020-11-04 Tom Tromey <tromey@adacore.com>
1564 * gdbtypes.c (update_static_array_size): Handle bit stride.
1566 2020-11-04 Tom Tromey <tromey@adacore.com>
1568 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1570 2020-11-04 Tom Tromey <tromey@adacore.com>
1572 * ada-lang.c (ada_is_any_packed_array_type): New function.
1573 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1575 2020-11-04 Tom Tromey <tromey@adacore.com>
1577 * dwarf2/read.c (recognize_bound_expression)
1578 (quirk_ada_thick_pointer): New functions.
1579 (read_array_type): Call quirk_ada_thick_pointer.
1580 (set_die_type): Add "skip_data_location" parameter.
1581 (quirk_ada_thick_pointer): New function.
1582 (process_structure_scope): Call quirk_ada_thick_pointer.
1583 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1584 (decode_packed_array_bitsize): Handle thick pointers without
1586 (ada_is_gnat_encoded_packed_array_type): Rename from
1587 ada_is_packed_array_type.
1588 (ada_is_constrained_packed_array_type): Update.
1589 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1590 (ada_value_print_1): Use ada_get_decoded_value.
1592 2020-11-04 Tom Tromey <tromey@adacore.com>
1594 * ada-lang.c (recursively_update_array_bitsize): New function.
1595 (decode_constrained_packed_array_type): Call it.
1597 2020-11-04 Tom Tromey <tromey@adacore.com>
1599 * ada-lang.c (to_fixed_array_type): Error if
1600 decode_constrained_packed_array_type returns NULL.
1602 2020-11-04 Tom Tromey <tromey@adacore.com>
1604 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1606 2020-11-02 Tom Tromey <tromey@adacore.com>
1608 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1609 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1610 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1611 * amd64-ravenscar-thread.c: New file.
1612 * amd64-ravenscar-thread.h: New file.
1613 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1614 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1616 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1618 * main.c (execute_cmdargs): New function.
1619 (captured_main_1): Make use of execute_cmdargs.
1621 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1623 * NEWS: Mention changes to config file search path.
1626 2020-11-02 Tom Tromey <tromey@adacore.com>
1628 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1629 (python_GdbModuleDef): Move earlier. Now static.
1630 (do_start_initialization): Consolidate some IS_PY3K blocks.
1632 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1634 * aarch64-linux-tdep.c: Fix indentation.
1635 * aarch64-ravenscar-thread.c: Fix indentation.
1636 * aarch64-tdep.c: Fix indentation.
1637 * aarch64-tdep.h: Fix indentation.
1638 * ada-lang.c: Fix indentation.
1639 * ada-lang.h: Fix indentation.
1640 * ada-tasks.c: Fix indentation.
1641 * ada-typeprint.c: Fix indentation.
1642 * ada-valprint.c: Fix indentation.
1643 * ada-varobj.c: Fix indentation.
1644 * addrmap.c: Fix indentation.
1645 * addrmap.h: Fix indentation.
1646 * agent.c: Fix indentation.
1647 * aix-thread.c: Fix indentation.
1648 * alpha-bsd-nat.c: Fix indentation.
1649 * alpha-linux-tdep.c: Fix indentation.
1650 * alpha-mdebug-tdep.c: Fix indentation.
1651 * alpha-nbsd-tdep.c: Fix indentation.
1652 * alpha-obsd-tdep.c: Fix indentation.
1653 * alpha-tdep.c: Fix indentation.
1654 * amd64-bsd-nat.c: Fix indentation.
1655 * amd64-darwin-tdep.c: Fix indentation.
1656 * amd64-linux-nat.c: Fix indentation.
1657 * amd64-linux-tdep.c: Fix indentation.
1658 * amd64-nat.c: Fix indentation.
1659 * amd64-obsd-tdep.c: Fix indentation.
1660 * amd64-tdep.c: Fix indentation.
1661 * amd64-windows-tdep.c: Fix indentation.
1662 * annotate.c: Fix indentation.
1663 * arc-tdep.c: Fix indentation.
1664 * arch-utils.c: Fix indentation.
1665 * arch/arm-get-next-pcs.c: Fix indentation.
1666 * arch/arm.c: Fix indentation.
1667 * arm-linux-nat.c: Fix indentation.
1668 * arm-linux-tdep.c: Fix indentation.
1669 * arm-nbsd-tdep.c: Fix indentation.
1670 * arm-pikeos-tdep.c: Fix indentation.
1671 * arm-tdep.c: Fix indentation.
1672 * arm-tdep.h: Fix indentation.
1673 * arm-wince-tdep.c: Fix indentation.
1674 * auto-load.c: Fix indentation.
1675 * auxv.c: Fix indentation.
1676 * avr-tdep.c: Fix indentation.
1677 * ax-gdb.c: Fix indentation.
1678 * ax-general.c: Fix indentation.
1679 * bfin-linux-tdep.c: Fix indentation.
1680 * block.c: Fix indentation.
1681 * block.h: Fix indentation.
1682 * blockframe.c: Fix indentation.
1683 * bpf-tdep.c: Fix indentation.
1684 * break-catch-sig.c: Fix indentation.
1685 * break-catch-syscall.c: Fix indentation.
1686 * break-catch-throw.c: Fix indentation.
1687 * breakpoint.c: Fix indentation.
1688 * breakpoint.h: Fix indentation.
1689 * bsd-uthread.c: Fix indentation.
1690 * btrace.c: Fix indentation.
1691 * build-id.c: Fix indentation.
1692 * buildsym-legacy.h: Fix indentation.
1693 * buildsym.c: Fix indentation.
1694 * c-typeprint.c: Fix indentation.
1695 * c-valprint.c: Fix indentation.
1696 * c-varobj.c: Fix indentation.
1697 * charset.c: Fix indentation.
1698 * cli/cli-cmds.c: Fix indentation.
1699 * cli/cli-decode.c: Fix indentation.
1700 * cli/cli-decode.h: Fix indentation.
1701 * cli/cli-script.c: Fix indentation.
1702 * cli/cli-setshow.c: Fix indentation.
1703 * coff-pe-read.c: Fix indentation.
1704 * coffread.c: Fix indentation.
1705 * compile/compile-cplus-types.c: Fix indentation.
1706 * compile/compile-object-load.c: Fix indentation.
1707 * compile/compile-object-run.c: Fix indentation.
1708 * completer.c: Fix indentation.
1709 * corefile.c: Fix indentation.
1710 * corelow.c: Fix indentation.
1711 * cp-abi.h: Fix indentation.
1712 * cp-namespace.c: Fix indentation.
1713 * cp-support.c: Fix indentation.
1714 * cp-valprint.c: Fix indentation.
1715 * cris-linux-tdep.c: Fix indentation.
1716 * cris-tdep.c: Fix indentation.
1717 * darwin-nat-info.c: Fix indentation.
1718 * darwin-nat.c: Fix indentation.
1719 * darwin-nat.h: Fix indentation.
1720 * dbxread.c: Fix indentation.
1721 * dcache.c: Fix indentation.
1722 * disasm.c: Fix indentation.
1723 * dtrace-probe.c: Fix indentation.
1724 * dwarf2/abbrev.c: Fix indentation.
1725 * dwarf2/attribute.c: Fix indentation.
1726 * dwarf2/expr.c: Fix indentation.
1727 * dwarf2/frame.c: Fix indentation.
1728 * dwarf2/index-cache.c: Fix indentation.
1729 * dwarf2/index-write.c: Fix indentation.
1730 * dwarf2/line-header.c: Fix indentation.
1731 * dwarf2/loc.c: Fix indentation.
1732 * dwarf2/macro.c: Fix indentation.
1733 * dwarf2/read.c: Fix indentation.
1734 * dwarf2/read.h: Fix indentation.
1735 * elfread.c: Fix indentation.
1736 * eval.c: Fix indentation.
1737 * event-top.c: Fix indentation.
1738 * exec.c: Fix indentation.
1739 * exec.h: Fix indentation.
1740 * expprint.c: Fix indentation.
1741 * f-lang.c: Fix indentation.
1742 * f-typeprint.c: Fix indentation.
1743 * f-valprint.c: Fix indentation.
1744 * fbsd-nat.c: Fix indentation.
1745 * fbsd-tdep.c: Fix indentation.
1746 * findvar.c: Fix indentation.
1747 * fork-child.c: Fix indentation.
1748 * frame-unwind.c: Fix indentation.
1749 * frame-unwind.h: Fix indentation.
1750 * frame.c: Fix indentation.
1751 * frv-linux-tdep.c: Fix indentation.
1752 * frv-tdep.c: Fix indentation.
1753 * frv-tdep.h: Fix indentation.
1754 * ft32-tdep.c: Fix indentation.
1755 * gcore.c: Fix indentation.
1756 * gdb_bfd.c: Fix indentation.
1757 * gdbarch.sh: Fix indentation.
1758 * gdbarch.c: Re-generate
1759 * gdbarch.h: Re-generate.
1760 * gdbcore.h: Fix indentation.
1761 * gdbthread.h: Fix indentation.
1762 * gdbtypes.c: Fix indentation.
1763 * gdbtypes.h: Fix indentation.
1764 * glibc-tdep.c: Fix indentation.
1765 * gnu-nat.c: Fix indentation.
1766 * gnu-nat.h: Fix indentation.
1767 * gnu-v2-abi.c: Fix indentation.
1768 * gnu-v3-abi.c: Fix indentation.
1769 * go32-nat.c: Fix indentation.
1770 * guile/guile-internal.h: Fix indentation.
1771 * guile/scm-cmd.c: Fix indentation.
1772 * guile/scm-frame.c: Fix indentation.
1773 * guile/scm-iterator.c: Fix indentation.
1774 * guile/scm-math.c: Fix indentation.
1775 * guile/scm-ports.c: Fix indentation.
1776 * guile/scm-pretty-print.c: Fix indentation.
1777 * guile/scm-value.c: Fix indentation.
1778 * h8300-tdep.c: Fix indentation.
1779 * hppa-linux-nat.c: Fix indentation.
1780 * hppa-linux-tdep.c: Fix indentation.
1781 * hppa-nbsd-nat.c: Fix indentation.
1782 * hppa-nbsd-tdep.c: Fix indentation.
1783 * hppa-obsd-nat.c: Fix indentation.
1784 * hppa-tdep.c: Fix indentation.
1785 * hppa-tdep.h: Fix indentation.
1786 * i386-bsd-nat.c: Fix indentation.
1787 * i386-darwin-nat.c: Fix indentation.
1788 * i386-darwin-tdep.c: Fix indentation.
1789 * i386-dicos-tdep.c: Fix indentation.
1790 * i386-gnu-nat.c: Fix indentation.
1791 * i386-linux-nat.c: Fix indentation.
1792 * i386-linux-tdep.c: Fix indentation.
1793 * i386-nto-tdep.c: Fix indentation.
1794 * i386-obsd-tdep.c: Fix indentation.
1795 * i386-sol2-nat.c: Fix indentation.
1796 * i386-tdep.c: Fix indentation.
1797 * i386-tdep.h: Fix indentation.
1798 * i386-windows-tdep.c: Fix indentation.
1799 * i387-tdep.c: Fix indentation.
1800 * i387-tdep.h: Fix indentation.
1801 * ia64-libunwind-tdep.c: Fix indentation.
1802 * ia64-libunwind-tdep.h: Fix indentation.
1803 * ia64-linux-nat.c: Fix indentation.
1804 * ia64-linux-tdep.c: Fix indentation.
1805 * ia64-tdep.c: Fix indentation.
1806 * ia64-tdep.h: Fix indentation.
1807 * ia64-vms-tdep.c: Fix indentation.
1808 * infcall.c: Fix indentation.
1809 * infcmd.c: Fix indentation.
1810 * inferior.c: Fix indentation.
1811 * infrun.c: Fix indentation.
1812 * iq2000-tdep.c: Fix indentation.
1813 * language.c: Fix indentation.
1814 * linespec.c: Fix indentation.
1815 * linux-fork.c: Fix indentation.
1816 * linux-nat.c: Fix indentation.
1817 * linux-tdep.c: Fix indentation.
1818 * linux-thread-db.c: Fix indentation.
1819 * lm32-tdep.c: Fix indentation.
1820 * m2-lang.c: Fix indentation.
1821 * m2-typeprint.c: Fix indentation.
1822 * m2-valprint.c: Fix indentation.
1823 * m32c-tdep.c: Fix indentation.
1824 * m32r-linux-tdep.c: Fix indentation.
1825 * m32r-tdep.c: Fix indentation.
1826 * m68hc11-tdep.c: Fix indentation.
1827 * m68k-bsd-nat.c: Fix indentation.
1828 * m68k-linux-nat.c: Fix indentation.
1829 * m68k-linux-tdep.c: Fix indentation.
1830 * m68k-tdep.c: Fix indentation.
1831 * machoread.c: Fix indentation.
1832 * macrocmd.c: Fix indentation.
1833 * macroexp.c: Fix indentation.
1834 * macroscope.c: Fix indentation.
1835 * macrotab.c: Fix indentation.
1836 * macrotab.h: Fix indentation.
1837 * main.c: Fix indentation.
1838 * mdebugread.c: Fix indentation.
1839 * mep-tdep.c: Fix indentation.
1840 * mi/mi-cmd-catch.c: Fix indentation.
1841 * mi/mi-cmd-disas.c: Fix indentation.
1842 * mi/mi-cmd-env.c: Fix indentation.
1843 * mi/mi-cmd-stack.c: Fix indentation.
1844 * mi/mi-cmd-var.c: Fix indentation.
1845 * mi/mi-cmds.c: Fix indentation.
1846 * mi/mi-main.c: Fix indentation.
1847 * mi/mi-parse.c: Fix indentation.
1848 * microblaze-tdep.c: Fix indentation.
1849 * minidebug.c: Fix indentation.
1850 * minsyms.c: Fix indentation.
1851 * mips-linux-nat.c: Fix indentation.
1852 * mips-linux-tdep.c: Fix indentation.
1853 * mips-nbsd-tdep.c: Fix indentation.
1854 * mips-tdep.c: Fix indentation.
1855 * mn10300-linux-tdep.c: Fix indentation.
1856 * mn10300-tdep.c: Fix indentation.
1857 * moxie-tdep.c: Fix indentation.
1858 * msp430-tdep.c: Fix indentation.
1859 * namespace.h: Fix indentation.
1860 * nat/fork-inferior.c: Fix indentation.
1861 * nat/gdb_ptrace.h: Fix indentation.
1862 * nat/linux-namespaces.c: Fix indentation.
1863 * nat/linux-osdata.c: Fix indentation.
1864 * nat/netbsd-nat.c: Fix indentation.
1865 * nat/x86-dregs.c: Fix indentation.
1866 * nbsd-nat.c: Fix indentation.
1867 * nbsd-tdep.c: Fix indentation.
1868 * nios2-linux-tdep.c: Fix indentation.
1869 * nios2-tdep.c: Fix indentation.
1870 * nto-procfs.c: Fix indentation.
1871 * nto-tdep.c: Fix indentation.
1872 * objfiles.c: Fix indentation.
1873 * objfiles.h: Fix indentation.
1874 * opencl-lang.c: Fix indentation.
1875 * or1k-tdep.c: Fix indentation.
1876 * osabi.c: Fix indentation.
1877 * osabi.h: Fix indentation.
1878 * osdata.c: Fix indentation.
1879 * p-lang.c: Fix indentation.
1880 * p-typeprint.c: Fix indentation.
1881 * p-valprint.c: Fix indentation.
1882 * parse.c: Fix indentation.
1883 * ppc-linux-nat.c: Fix indentation.
1884 * ppc-linux-tdep.c: Fix indentation.
1885 * ppc-nbsd-nat.c: Fix indentation.
1886 * ppc-nbsd-tdep.c: Fix indentation.
1887 * ppc-obsd-nat.c: Fix indentation.
1888 * ppc-ravenscar-thread.c: Fix indentation.
1889 * ppc-sysv-tdep.c: Fix indentation.
1890 * ppc64-tdep.c: Fix indentation.
1891 * printcmd.c: Fix indentation.
1892 * proc-api.c: Fix indentation.
1893 * producer.c: Fix indentation.
1894 * producer.h: Fix indentation.
1895 * prologue-value.c: Fix indentation.
1896 * prologue-value.h: Fix indentation.
1897 * psymtab.c: Fix indentation.
1898 * python/py-arch.c: Fix indentation.
1899 * python/py-bpevent.c: Fix indentation.
1900 * python/py-event.c: Fix indentation.
1901 * python/py-event.h: Fix indentation.
1902 * python/py-finishbreakpoint.c: Fix indentation.
1903 * python/py-frame.c: Fix indentation.
1904 * python/py-framefilter.c: Fix indentation.
1905 * python/py-inferior.c: Fix indentation.
1906 * python/py-infthread.c: Fix indentation.
1907 * python/py-objfile.c: Fix indentation.
1908 * python/py-prettyprint.c: Fix indentation.
1909 * python/py-registers.c: Fix indentation.
1910 * python/py-signalevent.c: Fix indentation.
1911 * python/py-stopevent.c: Fix indentation.
1912 * python/py-stopevent.h: Fix indentation.
1913 * python/py-threadevent.c: Fix indentation.
1914 * python/py-tui.c: Fix indentation.
1915 * python/py-unwind.c: Fix indentation.
1916 * python/py-value.c: Fix indentation.
1917 * python/py-xmethods.c: Fix indentation.
1918 * python/python-internal.h: Fix indentation.
1919 * python/python.c: Fix indentation.
1920 * ravenscar-thread.c: Fix indentation.
1921 * record-btrace.c: Fix indentation.
1922 * record-full.c: Fix indentation.
1923 * record.c: Fix indentation.
1924 * reggroups.c: Fix indentation.
1925 * regset.h: Fix indentation.
1926 * remote-fileio.c: Fix indentation.
1927 * remote.c: Fix indentation.
1928 * reverse.c: Fix indentation.
1929 * riscv-linux-tdep.c: Fix indentation.
1930 * riscv-ravenscar-thread.c: Fix indentation.
1931 * riscv-tdep.c: Fix indentation.
1932 * rl78-tdep.c: Fix indentation.
1933 * rs6000-aix-tdep.c: Fix indentation.
1934 * rs6000-lynx178-tdep.c: Fix indentation.
1935 * rs6000-nat.c: Fix indentation.
1936 * rs6000-tdep.c: Fix indentation.
1937 * rust-lang.c: Fix indentation.
1938 * rx-tdep.c: Fix indentation.
1939 * s12z-tdep.c: Fix indentation.
1940 * s390-linux-tdep.c: Fix indentation.
1941 * score-tdep.c: Fix indentation.
1942 * ser-base.c: Fix indentation.
1943 * ser-mingw.c: Fix indentation.
1944 * ser-uds.c: Fix indentation.
1945 * ser-unix.c: Fix indentation.
1946 * serial.c: Fix indentation.
1947 * sh-linux-tdep.c: Fix indentation.
1948 * sh-nbsd-tdep.c: Fix indentation.
1949 * sh-tdep.c: Fix indentation.
1950 * skip.c: Fix indentation.
1951 * sol-thread.c: Fix indentation.
1952 * solib-aix.c: Fix indentation.
1953 * solib-darwin.c: Fix indentation.
1954 * solib-frv.c: Fix indentation.
1955 * solib-svr4.c: Fix indentation.
1956 * solib.c: Fix indentation.
1957 * source.c: Fix indentation.
1958 * sparc-linux-tdep.c: Fix indentation.
1959 * sparc-nbsd-tdep.c: Fix indentation.
1960 * sparc-obsd-tdep.c: Fix indentation.
1961 * sparc-ravenscar-thread.c: Fix indentation.
1962 * sparc-tdep.c: Fix indentation.
1963 * sparc64-linux-tdep.c: Fix indentation.
1964 * sparc64-nbsd-tdep.c: Fix indentation.
1965 * sparc64-obsd-tdep.c: Fix indentation.
1966 * sparc64-tdep.c: Fix indentation.
1967 * stabsread.c: Fix indentation.
1968 * stack.c: Fix indentation.
1969 * stap-probe.c: Fix indentation.
1970 * stubs/ia64vms-stub.c: Fix indentation.
1971 * stubs/m32r-stub.c: Fix indentation.
1972 * stubs/m68k-stub.c: Fix indentation.
1973 * stubs/sh-stub.c: Fix indentation.
1974 * stubs/sparc-stub.c: Fix indentation.
1975 * symfile-mem.c: Fix indentation.
1976 * symfile.c: Fix indentation.
1977 * symfile.h: Fix indentation.
1978 * symmisc.c: Fix indentation.
1979 * symtab.c: Fix indentation.
1980 * symtab.h: Fix indentation.
1981 * target-float.c: Fix indentation.
1982 * target.c: Fix indentation.
1983 * target.h: Fix indentation.
1984 * tic6x-tdep.c: Fix indentation.
1985 * tilegx-linux-tdep.c: Fix indentation.
1986 * tilegx-tdep.c: Fix indentation.
1987 * top.c: Fix indentation.
1988 * tracefile-tfile.c: Fix indentation.
1989 * tracepoint.c: Fix indentation.
1990 * tui/tui-disasm.c: Fix indentation.
1991 * tui/tui-io.c: Fix indentation.
1992 * tui/tui-regs.c: Fix indentation.
1993 * tui/tui-stack.c: Fix indentation.
1994 * tui/tui-win.c: Fix indentation.
1995 * tui/tui-winsource.c: Fix indentation.
1996 * tui/tui.c: Fix indentation.
1997 * typeprint.c: Fix indentation.
1998 * ui-out.h: Fix indentation.
1999 * unittests/copy_bitwise-selftests.c: Fix indentation.
2000 * unittests/memory-map-selftests.c: Fix indentation.
2001 * utils.c: Fix indentation.
2002 * v850-tdep.c: Fix indentation.
2003 * valarith.c: Fix indentation.
2004 * valops.c: Fix indentation.
2005 * valprint.c: Fix indentation.
2006 * valprint.h: Fix indentation.
2007 * value.c: Fix indentation.
2008 * value.h: Fix indentation.
2009 * varobj.c: Fix indentation.
2010 * vax-tdep.c: Fix indentation.
2011 * windows-nat.c: Fix indentation.
2012 * windows-tdep.c: Fix indentation.
2013 * xcoffread.c: Fix indentation.
2014 * xml-syscall.c: Fix indentation.
2015 * xml-tdesc.c: Fix indentation.
2016 * xstormy16-tdep.c: Fix indentation.
2017 * xtensa-config.c: Fix indentation.
2018 * xtensa-linux-nat.c: Fix indentation.
2019 * xtensa-linux-tdep.c: Fix indentation.
2020 * xtensa-tdep.c: Fix indentation.
2022 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2023 Craig Blackmore <craig.blackmore@embecosm.com>
2025 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2026 as an unsigned value.
2028 2020-11-01 Tom Tromey <tom@tromey.com>
2030 * dbxread.c (dbx_end_psymtab): Update.
2031 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2032 (build_type_psymtabs_reader): Update.
2033 * xcoffread.c (xcoff_end_psymtab): Update.
2034 * ctfread.c (scan_partial_symbols): Update.
2035 * psymtab.c (sort_pst_symbols): Remove.
2036 (partial_symtab::end): Rename from end_psymtab_common. Inline
2038 * psympriv.h (struct partial_symtab) <end>: New method.
2039 (end_psymtab_common): Don't declare.
2041 2020-11-01 Tom Tromey <tom@tromey.com>
2043 * symmisc.c (count_psyms): New function.
2044 (print_objfile_statistics): Use it.
2045 * psymtab.c (append_psymbol_to_list): Remove.
2046 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2047 * objfiles.h (struct objstats) <n_psyms>: Remove.
2049 2020-11-01 Tom Tromey <tom@tromey.com>
2051 * dbxread.c (dbx_end_psymtab): Update.
2052 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2053 (build_type_psymtabs_reader): Update.
2054 * xcoffread.c (xcoff_end_psymtab): Update.
2055 * ctfread.c (scan_partial_symbols): Update.
2056 * psympriv.h (end_psymtab_common): Update.
2057 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2058 (sort_pst_symbols): Likewise.
2060 2020-11-01 Tom Tromey <tom@tromey.com>
2062 * dbxread.c (dbx_symfile_read): Update.
2063 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2064 * xcoffread.c (xcoff_initial_scan): Update.
2065 * psympriv.h (init_psymbol_list): Don't declare.
2066 * psymtab.c (init_psymbol_list): Remove.
2068 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2070 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2071 gnat_encoded_fixed_type_info. Update all callers.
2073 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2075 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2078 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2080 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2081 cast_from_fixed. Update all callers.
2082 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2084 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2086 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2088 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2089 to print_gnat_encoded_fixed_point_type.
2090 * ada-valprint.c: Likewise.
2092 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2094 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2095 (debug_prefixed_printf): Add check of debug_displaced flag.
2096 * linux-nat.c (linux_nat_debug_printf): Add check of
2097 debug_linux_nat flag.
2099 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2101 * infrun.c (infrun_debug_printf_1): Remove.
2102 (displaced_debug_printf_1): Remove.
2103 (stop_all_threads): Use debug_prefixed_printf.
2104 * infrun.h (infrun_debug_printf_1): Remove.
2105 (infrun_debug_printf): Use debug_prefixed_printf.
2106 (displaced_debug_printf_1): Remove.
2107 (displaced_debug_printf): Use debug_prefixed_printf.
2108 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2109 (linux_nat_debug_printf): Use debug_prefixed_printf.
2111 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2113 * configure: Re-generate.
2114 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2117 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2119 * configure: Re-generate.
2121 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2123 * configure: Re-generate.
2125 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2127 * configure: Re-generate.
2129 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2131 * configure: Re-generate.
2133 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2135 * acinclude.m4: Modernize.
2136 * configure: Re-generate.
2138 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2140 * configure.ac: Modernize.
2141 * configure: Re-generate.
2143 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2145 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2146 * configure: Re-generate.
2147 * configure.ac: Remove AM_PROG_CC_STDC.
2149 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2151 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2152 AC_CANONICAL_SYSTEM.
2153 * configure: Re-generate.
2155 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2157 * infrun.h (displaced_debug_printf): New macro. Replace
2158 displaced debug prints throughout to use it.
2159 (displaced_debug_printf_1): New declaration.
2160 (displaced_step_dump_bytes): Return string, remove ui_file
2161 parameter, update all callers.
2162 * infrun.c (displaced_debug_printf_1): New function.
2163 (displaced_step_dump_bytes): Return string, remove ui_file
2166 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2168 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2170 2020-10-30 Tom Tromey <tromey@adacore.com>
2172 * Makefile.in (stamp-init): Depend on config.status.
2174 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2176 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2178 2020-10-30 Pedro Alves <pedro@palves.net>
2180 * thread.c (lookup_selected_frame): Move ...
2181 * frame.c (lookup_selected_frame): ... here.
2183 2020-10-30 Pedro Alves <pedro@palves.net>
2185 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2187 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2188 Use save_selected_frame. Save language as well.
2189 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2190 Use restore_selected_frame, and restore language as well.
2191 (selected_frame_id, selected_frame_level): New.
2192 (selected_frame): Update comments.
2193 (save_selected_frame, restore_selected_frame): New.
2194 (get_selected_frame): Use lookup_selected_frame.
2195 (get_selected_frame_if_set): Delete.
2196 (select_frame): Record selected_frame_level and selected_frame_id.
2197 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2199 (get_selected_frame): Make 'message' parameter optional.
2200 (get_selected_frame_if_set): Delete declaration.
2201 (select_frame): Update comments.
2202 (save_selected_frame, restore_selected_frame)
2203 (lookup_selected_frame): Declare.
2204 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2205 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2207 (save_infcall_control_state): Use save_selected_frame.
2208 (restore_selected_frame): Delete.
2209 (restore_infcall_control_state): Use restore_selected_frame.
2210 * stack.c (select_frame_command_core, frame_command_core): Use
2212 * thread.c (restore_selected_frame): Rename to ...
2213 (lookup_selected_frame): ... this and make extern. Select the
2214 current frame if the frame level is -1.
2215 (scoped_restore_current_thread::restore): Also restore the
2217 (scoped_restore_current_thread::~scoped_restore_current_thread):
2219 (scoped_restore_current_thread::scoped_restore_current_thread):
2220 Save the language as well. Use save_selected_frame.
2222 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2224 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2226 * gdbarch.h: Re-generate.
2228 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2230 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2232 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2234 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2236 * arch-utils.c (default_displaced_step_hw_singlestep):
2238 * arch-utils.h (default_displaced_step_hw_singlestep):
2240 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2242 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2244 * gdbarch.c: Re-generate.
2245 * gdbarch.h: Re-generate.
2246 * infrun.c (resume_1): Adjust.
2248 2020-10-29 Tom Tromey <tom@tromey.com>
2250 * progspace.c (program_space::~program_space): Don't call
2253 2020-10-29 Tom Tromey <tom@tromey.com>
2255 * exec.c (exec_target::close): Don't change current program
2258 2020-10-29 Tom Tromey <tom@tromey.com>
2260 * symfile.c (add_symbol_file_command): Update.
2261 * exec.c (program_space::add_target_sections): Rename.
2262 * symfile-mem.c (symbol_file_add_from_memory): Update.
2263 * progspace.h (struct program_space) <add_target_sections>:
2264 Declare new overload.
2265 * exec.h (add_target_sections_of_objfile): Don't declare.
2267 2020-10-29 Tom Tromey <tom@tromey.com>
2269 * solib.c (solib_map_sections): Update.
2270 * exec.c (program_space::add_target_sections): Now a method.
2271 (exec_file_attach): Update.
2272 * exec.h (add_target_sections): Don't declare.
2273 * progspace.h (struct program_space) <add_target_sections>:
2276 2020-10-29 Tom Tromey <tom@tromey.com>
2278 * progspace.h (struct program_space) <remove_target_sections>:
2280 * exec.c (program_space::remove_target_sections): Now a method.
2281 * exec.h (remove_target_sections): Don't declare.
2283 2020-10-29 Tom Tromey <tom@tromey.com>
2285 * inferior.c (delete_inferior): Update.
2286 * progspace.c (program_space::empty): Rename from
2287 program_space_empty_p. Return bool.
2288 * progspace.h (struct program_space) <empty>: New method.
2289 (program_space_empty_p): Don't declare.
2291 2020-10-29 Tom Tromey <tom@tromey.com>
2293 * progspace.c (program_space::~program_space): Don't call
2294 clear_program_space_solib_cache.
2295 (program_space::clear_solib_cache): Rename from
2297 * solib.c (handle_solib_event): Update.
2298 * progspace.h (struct program_space) <clear_solib_cache>: New
2300 (clear_program_space_solib_cache): Don't declare.
2302 2020-10-29 Tom Tromey <tom@tromey.com>
2304 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2305 * target.c (info_target_command): Update.
2306 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2307 (symbol_file_clear, reread_symbols): Update.
2308 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2309 * stabsread.c (scan_file_globals): Update.
2310 * solib.c (update_solib_list): Update.
2311 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2312 (svr4_fetch_objfile_link_map, enable_break)
2313 (svr4_relocate_main_executable)
2314 (svr4_iterate_over_objfiles_in_search_order): Update.
2315 * solib-frv.c (lm_base, enable_break)
2316 (frv_relocate_main_executable): Update.
2317 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2318 (frv_fetch_objfile_link_map): Update.
2319 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2320 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2321 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2322 * remote.c (remote_target::get_offsets): Update.
2323 (remote_target::start_remote)
2324 (extended_remote_target::post_attach): Update.
2325 * objfiles.c (entry_point_address_query): Update.
2326 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2327 * minsyms.c (get_symbol_leading_char): Update.
2328 * frame.c (inside_main_func): Update.
2329 * progspace.h (symfile_objfile): Remove macro.
2331 2020-10-29 Tom Tromey <tom@tromey.com>
2333 * exec.c (exec_file_attach): Update.
2334 * progspace.c (program_space::exec_close): Update.
2335 * progspace.h (struct program_space) <ebfd>: Now a
2337 <set_exec_bfd>: Change argument type.
2340 2020-10-29 Tom Tromey <tom@tromey.com>
2342 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2343 * symfile.c (reread_symbols): Update.
2344 * symfile-mem.c (add_symbol_file_from_memory_command)
2345 (add_vsyscall_page): Update.
2346 * source-cache.c (source_cache::get_plain_source_lines): Update.
2347 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2348 (svr4_current_sos_direct, svr4_exec_displacement)
2349 (svr4_relocate_main_executable): Update.
2350 (svr4_iterate_over_objfiles_in_search_order): Update.
2351 * solib-frv.c (enable_break2, enable_break): Update.
2352 * solib-dsbt.c (lm_base, enable_break): Update.
2353 * solib-darwin.c (find_program_interpreter)
2354 (darwin_solib_create_inferior_hook): Update.
2355 * sol-thread.c (rw_common, ps_pdmodel): Update.
2356 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2357 * remote.c (compare_sections_command)
2358 (remote_target::trace_set_readonly_regions): Update.
2359 * remote-sim.c (get_sim_inferior_data)
2360 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2361 (gdbsim_target_open, gdbsim_target::files_info): Update.
2362 * exec.h (exec_bfd): Remove macro.
2363 * progspace.c (initialize_progspace): Update.
2364 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2366 * nto-procfs.c (nto_procfs_target::post_attach)
2367 (nto_procfs_target::create_inferior): Update.
2368 * maint.c (maintenance_info_sections): Update.
2369 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2371 * infcmd.c (post_create_inferior): Update.
2372 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2373 (objfile_find_memory_regions): Update.
2374 * exec.c (validate_exec_file, exec_file_attach)
2375 (exec_read_partial_read_only, print_section_info): Update.
2376 * corelow.c (core_target_open): Update.
2377 * corefile.c (reopen_exec_file, validate_files): Update.
2378 * arm-tdep.c (gdb_print_insn_arm): Update.
2379 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2380 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2383 2020-10-29 Tom Tromey <tom@tromey.com>
2385 * progspace.h (current_target_sections): Remove macro.
2386 * solib-svr4.c (scan_dyntag): Update.
2387 * solib-dsbt.c (scan_dyntag): Update.
2388 * exec.c (exec_target::close): Update.
2389 (add_target_sections, add_target_sections_of_objfile)
2390 (remove_target_sections, exec_target::get_section_table)
2391 (exec_target::files_info, set_section_command)
2392 (exec_set_section_address, exec_target::has_memory)
2393 (exec_target::has_memory): Update.
2395 2020-10-29 Tom Tromey <tom@tromey.com>
2397 * source-cache.c (source_cache::get_plain_source_lines): Use
2398 current_program_space.
2399 * corefile.c (reopen_exec_file): Use current_program_space.
2400 * exec.c (exec_file_attach): Use current_program_space.
2401 * exec.h (exec_bfd_mtime): Remove.
2403 2020-10-29 Tom Tromey <tom@tromey.com>
2405 * gcore.c (default_gcore_mach): Remove.
2406 (create_gcore_bfd): Update.
2408 2020-10-29 Tom Tromey <tom@tromey.com>
2410 * progspace.c (program_space::exec_close): New method, from
2411 exec_close in exec.c.
2412 * exec.c (exec_close): Move to progspace.c.
2413 (exec_target::close, exec_file_attach): Update.
2414 * progspace.h (struct program_space) <exec_close>: Declare
2417 2020-10-29 Tom Tromey <tom@tromey.com>
2419 * progspace.h (struct program_space) <exec_filename>: Rename from
2420 pspace_exec_filename. Now a unique_xmalloc_ptr.
2421 * inferior.c (print_selected_inferior): Update.
2422 (print_inferior): Update.
2423 * mi/mi-main.c (print_one_inferior): Update.
2424 * exec.h (exec_filename): Remove macro.
2425 * corefile.c (get_exec_file): Update.
2426 * exec.c (exec_close): Update.
2427 (exec_file_attach): Update.
2428 * progspace.c (clone_program_space): Update.
2429 (print_program_space): Update.
2431 2020-10-29 Tom Tromey <tom@tromey.com>
2433 * target-section.h (struct target_section): Add constructor.
2434 * exec.c (build_section_table, add_target_sections_of_objfile):
2436 * corelow.c (core_target::build_file_mappings): Update.
2438 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2441 * inferior.c (detach_inferior_command): Restore the current thread.
2442 (kill_inferior_command): Ditto.
2444 2020-10-28 Tom de Vries <tdevries@suse.de>
2447 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2448 map, check it in the "best match" loop.
2450 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2452 * m32c-tdep.c: Remove unused includes.
2454 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2456 * xtensa-tdep.c: Remove includes.
2458 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2460 * breakpoint.c (struct condition_command_opts): New struct.
2461 (condition_command_option_defs): New static global.
2462 (make_condition_command_options_def_group): New function.
2463 (condition_completer): Update to consider the '-force' flag.
2464 (condition_command): Use gdb::option for the '-force' flag.
2466 2020-10-27 Tom de Vries <tdevries@suse.de>
2468 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2469 symbols in section check.
2471 2020-10-27 Tom de Vries <tdevries@suse.de>
2473 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2475 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2477 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2478 * breakpoint.c: Update the help text of the 'condition' and 'break'
2480 (set_breakpoint_condition): Take a new bool parameter
2481 to control whether condition definition should be forced even when
2482 the condition expression is invalid in all of the current locations.
2483 (condition_command): Update the call to 'set_breakpoint_condition'.
2484 (find_condition_and_thread): Take the "-force-condition" flag into
2486 * linespec.c (linespec_keywords): Add "-force-condition" as an
2488 (FORCE_KEYWORD_INDEX): New #define.
2489 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2491 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2492 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2493 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2494 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2496 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2498 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2499 * breakpoint.c (set_breakpoint_location_condition): New function.
2500 (set_breakpoint_condition): Disable a breakpoint location if parsing
2501 the condition string gives an error.
2502 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2503 (build_target_condition_list): Ditto.
2504 (build_target_command_list): Ditto.
2505 (build_bpstat_chain): Ditto.
2506 (print_one_breakpoint_location): Ditto.
2507 (print_one_breakpoint): Ditto.
2508 (breakpoint_1): Ditto.
2509 (bp_location::bp_location): Ditto.
2510 (locations_are_equal): Ditto.
2511 (update_breakpoint_locations): Ditto.
2512 (enable_disable_bp_num_loc): Ditto.
2513 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2514 (find_condition_and_thread_for_sals): New static function.
2515 (create_breakpoint): Call find_condition_and_thread_for_sals.
2516 (location_to_sals): Call find_condition_and_thread_for_sals instead
2517 of find_condition_and_thread.
2519 2020-10-26 Tom de Vries <tdevries@suse.de>
2521 * dwarf2/read.c (process_full_comp_unit): Call
2522 dwarf2_find_base_address.
2524 2020-10-26 Tom Tromey <tromey@adacore.com>
2526 * gdbtypes.c (create_range_type): Revert previous patch. Add
2529 2020-10-26 Pedro Alves <pedro@palves.net>
2531 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2532 (my_waitpid): Use gdb::handle_eintr.
2534 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2536 * acinclude.m4: Update ptrace.m4 path.
2537 * ptrace.m4: Moved to gdbsupport.
2539 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2541 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2542 instead of target_gdbarch.
2544 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2546 * jit.c (jit_reader_load_command): Pass current inferior.
2547 (jit_inferior_init): Change parameter type to inferior, use it.
2548 (jit_inferior_created): Remove.
2549 (jit_inferior_created_hook): Pass inferior parameter down.
2550 (_initialize_jit): Use jit_inferior_created_hook instead of
2551 jit_inferior_created.
2552 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2553 * infrun.c (follow_exec): Pass inferior to
2554 jit_inferior_created_hook.
2556 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2558 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2559 parameter and use it.
2560 (thread_db_inferior_created): Pass inferior argument.
2562 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2564 * aix-thread.c (aix_thread_inferior_created): Add inferior
2566 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2567 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2568 * jit.c (jit_inferior_created): Likewise.
2569 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2570 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2571 * observable.h (inferior_created): Likewise.
2572 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2573 * symfile-mem.c (add_vsyscall_page): Likewise.
2574 * infcmd.c (post_create_inferior): Pass inferior argument.
2576 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2580 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2582 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2583 to ada_check_typedef.
2585 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2587 * f-exp.y (f_parse): Rename to...
2588 (f_language::parser): ...this.
2589 * f-lang.c (f_get_encoding): Rename to...
2590 (f_language::get_encoding): ...this.
2591 (f_op_print_tab): Rename to...
2592 (f_language::op_print_tab): ...this.
2593 (exp_descriptor_f): Rename to...
2594 (f_language::exp_descriptor_tab): ...this.
2595 (class f_language): Moved to f-lang.h.
2596 (f_language::language_arch_info): New function, moved out of class
2598 (f_language::search_name_hash): Likewise.
2599 (f_language::lookup_symbol_nonlocal): Likewise.
2600 (f_language::get_symbol_name_matcher_inner): Likewise.
2601 * f-lang.h: Add 'valprint.h' include.
2602 (class f_language): Moved here from f-lang.c.
2603 * f-typeprint.c (f_type_print_args): Delete commented out
2605 (f_print_typedef): Rename to...
2606 (f_language::print_typedef): ...this.
2607 (f_print_type): Rename to...
2608 (f_language::print_type): ...this.
2609 (f_type_print_varspec_prefix): Delete declaration and rename to...
2610 (f_language::f_type_print_varspec_prefix): ...this.
2611 (f_type_print_varspec_suffix): Delete declaration and rename to...
2612 (f_language::f_type_print_varspec_suffix): ...this.
2613 (f_type_print_base): Delete declaration and rename to...
2614 (f_language::f_type_print_base): ...this.
2615 * f-valprint.c (f_value_print_inner): Rename to...
2616 (f_language::value_print_inner): ...this.
2617 * parse.c: Delete 'f-lang.h' include.
2619 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2621 * language.h (language_defn::print_type): Add variable names in
2622 declaration, and update header comment.
2624 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2626 * ada-lang.c (ada_language::demangle): Rename to...
2627 (ada_language::demangle_symbol): ...this.
2628 * c-lang.c (cplus_language::demangle): Rename to...
2629 (cplus_language::demangle_symbol): ...this.
2630 * d-lang.c (d_language::demangle): Rename to...
2631 (d_language::demangle_symbol): ...this.
2632 * f-lang.c (f_language::demangle): Rename to...
2633 (f_language::demangle_symbol): ...this.
2634 * go-lang.c (go_language::demangle): Rename to...
2635 (go_language::demangle_symbol): ...this.
2636 * language.c (language_demangle): Update call to demangle_symbol.
2637 (auto_or_unknown_language::demangle): Rename to...
2638 (auto_or_unknown_language::demangle_symbol): ...this.
2639 * language.h (language_defn::demangle): Rename to...
2640 (language_defn::demangle_symbol): ...this.
2641 * objc-lang.c (objc_language::demangle): Rename to...
2642 (objc_language::demangle_symbol): ...this.
2643 * rust-lang.c (rust_language::demangle): Rename to...
2644 (rust_language::demangle_symbol): ...this.
2646 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2648 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2649 (iterate_over_file_blocks): Replace use of macro with the macros
2652 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2654 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2655 * valprint.c (maybe_print_array_index): Replace use of macro with
2656 the macros definition.
2658 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2660 * ada-lang.c (ada_language::print_array_index): Call value_print
2662 * language.c (language_defn::print_array_index): Likewise.
2663 * language.h (LA_VALUE_PRINT): Delete.
2664 * valprint.c (value_print): Call value_print on the
2665 current_language directly.
2667 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2669 * language.h (LA_PRINT_TYPEDEF): Delete.
2670 * typeprint.c (typedef_print): Call print_typedef directly on the
2671 current_language object.
2673 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2675 * m2-exp.y (m2_parse): Rename to...
2676 (m2_language::parser): ...this. Update function signature.
2677 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2678 (m2_op_print): Rename to...
2679 (m2_language::op_print_tab): ...this, and make const.
2680 (exp_descriptor_modula2): Rename to...
2681 (m2_language::exp_descriptor_modula2): ...this.
2682 (class m2_language): Move to m2-lang.h.
2683 (m2_language::language_arch_info): New function, moved out of
2685 (m2_language::printchar): New function, body from m2_printchar.
2686 (m2_language::printstr): New function, moved out of class
2688 (m2_language::emitchar): Likewise.
2689 * m2-lang.h (m2_parse): Delete declaration.
2690 (m2_print_typedef): Delete declaration.
2691 (m2_value_print_inner): Delete declaration.
2692 (class m2_language): Class declaration moved from m2-lang.c,
2693 larger functions are left in m2-lang.c.
2694 * m2-typeprint.c (m2_print_typedef): Rename to...
2695 (m2_language::print_typedef): ...this, and update function
2697 * m2-valprint.c (m2_value_print_inner): Rename to...
2698 (m2_language::value_print_inner): ...this, replace use of
2699 LA_PRINT_STRING with a direct call to printstr member function,
2700 and update recursive call.
2702 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2704 * language.c (default_is_string_type_p): Delete, implementation
2705 moved into auto_or_unknown_language::is_string_type_p.
2706 (unk_op_print_tab): Moved into
2707 auto_or_unknown_language::opcode_print_table.
2708 (unknown_language_arch_info): Delete, implementation moved into
2709 auto_or_unknown_language::language_arch_info.
2710 (class auto_or_unknown_language): New class, member functions
2711 copied from unknown_language class, with some updates.
2712 (class unknown_language): Most member functions moved into
2713 auto_or_unknown_language class. Inherit from
2714 auto_or_unknown_language class.
2715 (class auto_language): Inherit from auto_or_unknown_language.
2716 Delete most member functions.
2718 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2720 * stabsread.c (read_member_functions): Remove gdb_assert.
2722 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2724 * gdbtypes.c (init_complex_type): Check target type name.
2726 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2728 * target-debug.h (target_debug_print_struct_target_ops_p):
2730 (target_debug_print_async_callback_ftype_p): Remove.
2731 (target_debug_print_struct_trace_state_variable_p): Remove.
2732 (target_debug_print_struct_traceframe_info_p): Remove.
2733 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2734 (target_debug_print_enum_btrace_format): Remove.
2735 (target_debug_print_enum_info_proc_what): Remove.
2736 (target_debug_print_thread_info_pp): Remove.
2738 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2740 * target.h (struct target_ops) <make_corefile_notes>:
2741 Change return type to unique pointer.
2742 * target.c (dummy_make_corefile_notes): Likewise.
2743 * exec.c (struct exec_target) <make_corefile_notes>:
2745 (exec_target::make_corefile_notes): Likewise.
2746 * procfs.c (class procfs_target) <make_corefile_notes>:
2748 (procfs_do_thread_registers): Adjust to unique pointer.
2749 (struct procfs_corefile_thread_data): Add constructor.
2750 <note_data>: Change type to unique pointer.
2751 (procfs_corefile_thread_callback): Adjust to unique pointer.
2752 (procfs_target::make_corefile_notes): Change return type to
2754 * target-delegates.c: Re-generate.
2755 * gcore.c (write_gcore_file_1): Adjust.
2756 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2759 2020-10-22 Tom de Vries <tdevries@suse.de>
2761 * block.c (find_block_in_blockvector): Make sure the returned block
2764 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2767 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2769 (load_cu): Pass existing CU.
2770 (process_imported_unit_die): Likewise.
2771 (follow_die_offset): Likewise.
2773 2020-10-22 Luis Machado <luis.machado@linaro.org>
2775 * corelow.c (core_target::xfer_partial): Also check for an empty
2776 m_core_unavailable_mappings vector.
2778 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2780 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2781 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2782 * f-exp.y (arglist): Allow for a series of subranges.
2783 (subrange): Add cases for subranges with strides.
2784 * f-lang.c (value_f90_subarray): Catch use of array strides and
2786 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2788 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2790 * expprint.c (print_subexp_standard): Change enum range_type to
2791 range_flag and rename variables to match.
2792 (dump_subexp_body_standard): Likewise.
2793 * expression.h (enum range_type): Rename to...
2794 (enum range_flag): ...this.
2795 (range_types): Rename to...
2796 (range_flags): ...this.
2797 * f-lang.c (value_f90_subarray): Change enum range_type to
2798 range_flag and rename variables to match.
2799 * parse.c (operator_length_standard): Likewise.
2800 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2801 range_type to range_flag.
2802 * rust-lang.c (rust_evaluate_funcall): Likewise.
2803 (rust_range): Likewise.
2804 (rust_compute_range): Likewise.
2805 (rust_subscript): Likewise.
2807 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2809 * expprint.c (print_subexp_standard): Update to reflect changes to
2811 (dump_subexp_body_standard): Likewise.
2812 * expression.h (enum range_type): Convert to a bit field enum, and
2813 make the enum unsigned.
2814 * f-exp.y (subrange): Update to reflect changes to enum
2816 * f-lang.c (value_f90_subarray): Likewise.
2817 * parse.c (operator_length_standard): Likewise.
2818 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2819 * rust-lang.c (rust_range): Likewise.
2820 (rust_compute_range): Likewise.
2821 (rust_subscript): Likewise.
2823 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2825 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2826 (displaced_step_in_progress): Fix comment.
2828 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2830 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2831 * gdbarch.c: Re-generate.
2832 * gdbarch.h: Re-generate.
2833 * gcore.c (write_gcore_file_1): Adjust.
2834 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2836 <note_data>: Change type to unique pointer.
2837 <abort_iteration>: Change type to bool.
2838 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2839 (fbsd_collect_thread_registers): Return void, adjust.
2840 (struct fbsd_corefile_thread_data): Add construtor.
2841 <note_data>: Change type to unique pointer.
2842 (fbsd_corefile_thread): Adjust.
2843 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2844 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2845 to unique pointer, adjust.
2846 (struct linux_collect_regset_section_cb_data): Add constructor.
2847 <note_data>: Change type to unique pointer.
2848 <abort_iteration>: Change type to bool.
2849 (linux_collect_thread_registers): Return void, adjust.
2850 (struct linux_corefile_thread_data): Add constructor.
2851 <note_data>: Change type to unique pointer.
2852 (linux_corefile_thread): Adjust.
2853 (linux_make_corefile_notes): Return unique pointer, adjust.
2855 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2857 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2858 * gdbarch.c: Re-generate.
2859 * gdbarch.h: Re-generate.
2860 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2862 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2864 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2865 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2866 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2867 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2869 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2871 * gdbarch.sh: Make generated predicates return bool.
2872 * gdbarch.c: Re-generate.
2873 * gdbarch.h: Re-generate.
2875 2020-10-20 Tom Tromey <tom@tromey.com>
2877 * varobj-iter.h (struct varobj_item): Remove typedef.
2879 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2881 * infrun.c (currently_stepping): Change int to bool
2882 (maybe_software_singlestep): Likewise.
2883 (show_stop_on_solib_events): Likewise.
2884 (stepping_past_nonsteppable_watchpoint): Likewise.
2885 (displaced_step_in_progress_any_inferior): Likewise.
2886 (displaced_step_in_progress_thread): Likewise.
2887 (keep_going_stepped_thread): Likewise.
2888 (thread_still_needs_step_over): Likewise.
2889 (start_step_over): Likewise.
2890 (do_target_resume): Likewise.
2891 (resume_1): Likewise.
2892 (clear_proceed_status): Likewise.
2893 (thread_still_needs_step_over_bp): Likewise.
2894 (proceed): Likewise.
2895 (switch_back_to_stepped_thread): Likewise.
2896 (adjust_pc_after_break): Likewise.
2897 (stepped_in_from): Likewise.
2898 (handle_stop_requested): Likewise.
2899 (handle_syscall_event): Likewise.
2900 (handle_no_resumed): Likewise.
2901 (handle_inferior_event): Likewise.
2902 (finish_step_over): Likewise.
2903 (handle_signal_stop): Likewise.
2904 (process_event_stop_test): Likewise.
2906 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2908 * infrun.c (get_displaced_stepping_state): Fix comment.
2910 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2912 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2914 2020-10-19 Tom Tromey <tromey@adacore.com>
2917 * tui/tui-winsource.h (struct tui_source_window_base)
2918 <refresh_window>: Rename from refresh_pad.
2919 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2920 Rename from refresh_pad.
2921 (tui_source_window_base::show_source_content)
2922 (tui_source_window_base::do_scroll_horizontal): Update.
2924 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2926 * thread.c (_initialize_thread): Fine-tune the help text of
2929 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2931 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2933 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2935 * breakpoint.c (handle_jit_event): Add an argument, change how
2936 `jit_event_handler` is called.
2938 2020-10-17 Tom Tromey <tom@tromey.com>
2940 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2941 (scan_xcoff_symtab): Update.
2942 * psymtab.h (class psymtab_storage) <global_psymbols,
2943 static_psymbols, current_global_psymbols,
2944 current_static_psymbols>: Remove.
2945 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2946 (match_partial_symbol, lookup_partial_symbol): Update.
2947 (print_partial_symbols): Change parameters.
2948 (dump_psymtab, recursively_search_psymtabs)
2949 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2950 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2952 (end_psymtab_common): Simplify.
2953 (append_psymbol_to_list): Change parameters.
2954 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2955 (init_psymbol_list): Simplify.
2956 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2957 * psympriv.h (struct partial_symtab) <empty>: New method.
2958 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2960 <global_psymbols, static_psymbols>: New members.
2961 <add_psymbol>: New methods.
2962 (add_psymbol_to_list): Don't declare.
2963 (psymbol_placement): Move earlier.
2964 * mdebugread.c (parse_partial_symbols): Update.
2965 (handle_psymbol_enumerators): Change parameters.
2966 (mdebug_expand_psymtab): Update.
2967 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2968 (add_partial_symbol): Update.
2969 * dwarf2/index-write.c (write_psymbols): Change parameters.
2970 (write_one_signatured_type): Update.
2971 (recursively_count_psymbols): Update.
2972 (recursively_write_psymbols): Update.
2973 (class debug_names) <recursively_write_psymbols>: Update.
2974 <write_psymbols>: Change parameters.
2975 <write_one_signatured_type>: Update.
2976 * dbxread.c (read_dbx_symtab): Update.
2977 (dbx_end_psymtab): Use partial_symtab::empty.
2978 * ctfread.c (struct ctf_context) <pst>: New member.
2979 (create_partial_symtab): Set it.
2980 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2981 (scan_partial_symbols): Use the psymtab's context. Update.
2983 2020-10-17 Tom Tromey <tom@tromey.com>
2985 * valprint.c (generic_value_print): Remove comment.
2986 * m2-valprint.c (m2_value_print_inner): Remove comment.
2987 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2990 2020-10-17 Tom de Vries <tdevries@suse.de>
2993 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2996 2020-10-14 Tom de Vries <tdevries@suse.de>
2999 * solib.c (solib_contains_address_p): Handle
3000 'solib->sections == nullptr'.
3002 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3005 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3006 target can't do async.
3007 * target.c (target_wait): Assert that we don't pass
3008 TARGET_WNOHANG to a target that can't async.
3010 2020-10-13 Kamil Rytarowski <n54@gmx.com>
3012 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3013 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3014 * alpha-bsd-nat.c: Adjust include.
3015 * alpha-bsd-tdep.h: Adjust comment.
3016 * alpha-nbsd-tdep.c: Rename to ...
3017 * alpha-netbsd-tdep.c: ... this, adjust include.
3018 * amd64-nbsd-nat.c: Rename to ...
3019 * amd64-netbsd-nat.c: ... this, adjust include.
3020 * amd64-nbsd-tdep.c: Rename to ...
3021 * amd64-netbsd-tdep.c: ... this, adjust include.
3022 * amd64-tdep.h: Adjust include.
3023 * arm-nbsd-nat.c: Rename to ...
3024 * arm-netbsd-nat.c: ... this, adjust include.
3025 * arm-nbsd-tdep.c: Rename to ...
3026 * arm-netbsd-tdep.c: ... this, adjust include.
3027 * arm-nbsd-tdep.h: Rename to ...
3028 * arm-netbsd-tdep.h: ... this, adjust include.
3029 * configure.nat: Adjust file lists.
3030 * configure.tgt: Likewise.
3031 * hppa-nbsd-nat.c: Rename to ...
3032 * hppa-netbsd-nat.c: ... this, adjust include.
3033 * hppa-nbsd-tdep.c: Rename to ...
3034 * hppa-netbsd-tdep.c: ... this, adjust include.
3035 * i386-nbsd-nat.c: Rename to ...
3036 * i386-netbsd-nat.c: ... this, adjust include.
3037 * i386-nbsd-tdep.c: Rename to ...
3038 * i386-netbsd-tdep.c: ... this, adjust include.
3039 * m68k-bsd-nat.c: Adjust include.
3040 * mips-nbsd-nat.c: Rename to ...
3041 * mips-netbsd-nat.c: ... this, adjust include.
3042 * mips-nbsd-tdep.c: Rename to ...
3043 * mips-netbsd-tdep.c: ... this, adjust include.
3044 * mips-nbsd-tdep.h: Rename to ...
3045 * mips-netbsd-tdep.h: ... this.
3046 * nbsd-nat.c: Rename to ...
3047 * netbsd-nat.c: ... this, adjust include.
3048 * nbsd-nat.h: Rename to ...
3049 * netbsd-nat.h: ... this, adjust include.
3050 * nbsd-tdep.c: Rename to ...
3051 * netbsd-tdep.c: ... this, adjust include.
3052 * nbsd-tdep.h: Rename to ...
3053 * netbsd-tdep.h: ... this.
3054 * ppc-nbsd-nat.c: Rename to ...
3055 * ppc-netbsd-nat.c: ... this, adjust include.
3056 * ppc-nbsd-tdep.c: Rename to ...
3057 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3058 * ppc-nbsd-tdep.h: Rename to ...
3059 * ppc-netbsd-tdep.h: ... this.
3060 * sh-nbsd-nat.c: Rename to ...
3061 * sh-netbsd-nat.c: ... this, adjust include.
3062 * sh-nbsd-tdep.c: Rename to ...
3063 * sh-netbsd-tdep.c: ... this, adjust include.
3064 * sparc-nbsd-nat.c: Rename to ...
3065 * sparc-netbsd-nat.c: ... this.
3066 * sparc-nbsd-tdep.c: Rename to ...
3067 * sparc-netbsd-tdep.c: ... this, adjust include.
3068 * sparc64-nbsd-nat.c: Rename to ...
3069 * sparc64-netbsd-nat.c: ... this.
3070 * sparc64-nbsd-tdep.c: Rename to ...
3071 * sparc64-netbsd-tdep.c: ... this, adjust include.
3072 * sparc64-tdep.h: Adjust comment.
3073 * vax-bsd-nat.c: Adjust include.
3074 * vax-nbsd-tdep.c: Rename to ...
3075 * vax-netbsd-tdep.c: ... this, adjust include.
3077 2020-10-12 Tom Tromey <tom@tromey.com>
3079 * target.h (struct target_ops) <get_section_table>: Update.
3080 (target_get_section_table): Update.
3081 * target.c (target_get_section_table, target_section_by_addr)
3082 (memory_xfer_partial_1): Update.
3083 * target-section.h (target_section_table): Now an alias.
3084 * target-delegates.c: Rebuild.
3085 * target-debug.h (target_debug_print_target_section_table_p):
3086 Rename from target_debug_print_struct_target_section_table_p.
3087 * symfile.c (build_section_addr_info_from_section_table): Update.
3088 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3089 * solib-svr4.c (scan_dyntag): Update.
3090 * solib-dsbt.c (scan_dyntag): Update.
3091 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3093 * record-full.c (record_full_core_target::xfer_partial): Update.
3094 * progspace.h (struct program_space) <target_sections>: Update.
3095 * exec.h (print_section_info): Update.
3096 * exec.c (exec_target::close, build_section_table)
3097 (add_target_sections, add_target_sections_of_objfile)
3098 (remove_target_sections, exec_on_vfork)
3099 (section_table_available_memory)
3100 (section_table_xfer_memory_partial)
3101 (exec_target::get_section_table, exec_target::xfer_partial)
3102 (print_section_info, set_section_command)
3103 (exec_set_section_address, exec_target::has_memory): Update.
3104 * corelow.c (core_target::build_file_mappings)
3105 (core_target::xfer_partial, core_target::info_proc_mappings)
3106 (core_target::info_proc_mappings): Update.
3107 * bfd-target.c (class target_bfd): Update
3109 2020-10-12 Tom Tromey <tom@tromey.com>
3111 * progspace.c (program_space::~program_space): Don't call
3112 clear_section_table.
3113 * exec.h (clear_section_table): Don't declare.
3114 * exec.c (exec_target::close): Update.
3115 (clear_section_table): Remove.
3117 2020-10-12 Tom Tromey <tom@tromey.com>
3119 * exec.c (add_target_sections_of_objfile): Simplify.
3121 2020-10-12 Tom Tromey <tom@tromey.com>
3123 * solib.c (solib_map_sections): Update.
3124 * record-full.c (record_full_core_open_1): Update.
3125 * exec.h (build_section_table): Return a target_section_table.
3126 * exec.c (exec_file_attach): Update.
3127 (build_section_table): Return a target_section_table.
3128 * corelow.c (core_target::core_target): Update.
3129 * bfd-target.c (target_bfd::target_bfd): Update.
3131 2020-10-12 Tom Tromey <tom@tromey.com>
3133 * target.c (target_section_by_addr, memory_xfer_partial_1):
3135 * target-section.h (struct target_section_table): Use
3137 * symfile.h (build_section_addr_info_from_section_table): Take a
3138 target_section_table.
3139 * symfile.c (build_section_addr_info_from_section_table): Take a
3140 target_section_table.
3141 * solist.h (struct so_list) <sections>: Change type.
3142 <sections_end>: Remove.
3143 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3144 (solib_contains_address_p): Update.
3145 * solib-svr4.c (scan_dyntag): Update.
3146 * solib-dsbt.c (scan_dyntag): Update.
3147 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3149 * record-full.c (record_full_core_start, record_full_core_end):
3151 (record_full_core_sections): New global.
3152 (record_full_core_open_1, record_full_core_target::xfer_partial):
3154 * exec.h (build_section_table, section_table_xfer_memory_partial)
3155 (add_target_sections): Take a target_section_table.
3156 * exec.c (exec_file_attach, clear_section_table): Update.
3157 (resize_section_table): Remove.
3158 (build_section_table, add_target_sections): Take a
3159 target_section_table.
3160 (add_target_sections_of_objfile, remove_target_sections)
3161 (exec_on_vfork): Update.
3162 (section_table_available_memory): Take a target_section_table.
3163 (section_table_read_available_memory): Update.
3164 (section_table_xfer_memory_partial): Take a target_section_table.
3165 (print_section_info, set_section_command)
3166 (exec_set_section_address, exec_target::has_memory): Update.
3167 * corelow.c (class core_target) <m_core_section_table,
3168 m_core_file_mappings>: Remove braces.
3169 <~core_target>: Remove.
3170 (core_target::core_target): Update.
3171 (core_target::~core_target): Remove.
3172 (core_target::build_file_mappings)
3173 (core_target::xfer_memory_via_mappings)
3174 (core_target::xfer_partial, core_target::info_proc_mappings):
3176 * bfd-target.c (target_bfd::xfer_partial): Update.
3177 (target_bfd::target_bfd): Update.
3178 (target_bfd::~target_bfd): Remove.
3180 2020-10-12 Tom Tromey <tom@tromey.com>
3182 * target.h (struct target_section, struct target_section_table):
3183 Move to target-section.h.
3184 * target-section.h: New file.
3186 2020-10-12 Pedro Alves <pedro@palves.net>
3189 * valops.c (struct struct_field_searcher): New.
3190 (update_search_result): Rename to ...
3191 (struct_field_searcher::update_result): ... this. Simplify
3192 prototype. Record all found fields.
3193 (do_search_struct_field): Rename to ...
3194 (struct_field_searcher::search): ... this. Simplify prototype.
3195 Maintain stack of visited baseclass path. Call update_result for
3196 fields too. Keep searching fields in baseclasses instead of
3197 stopping at the first found field.
3198 (search_struct_field): Use struct_field_searcher. When looking
3199 for fields, report ambiguous access attempts.
3201 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3203 * frame.c (inside_main_func): Check full symbols as well as
3206 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3208 * ada-lang.c (advance_wild_match): Rewrite the function's
3209 description. Change the type of target0, t0 and t1 to char.
3211 2020-10-09 Tom Tromey <tromey@adacore.com>
3213 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3215 2020-10-09 Tom Tromey <tromey@adacore.com>
3217 * ada-lang.h (ada_encode): Return std::string.
3218 * ada-lang.c (ada_encode_1): Return std::string.
3219 (ada_encode): Likewise.
3220 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3222 * ada-exp.y (block_lookup, write_var_or_type): Update.
3224 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3227 * printcmd.c (print_formatted): Handle void results as
3230 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3232 * arch/aarch32.c (aarch32_create_target_description): Release the
3233 target_desc_up as late as possible.
3234 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3235 * arch/amd64.c (amd64_create_target_description): Likewise.
3236 * arch/arc.c (arc_create_target_description): Return a
3237 target_desc_up, don't release it.
3238 * arch/arc.h (arc_create_target_description): Update declaration.
3239 (arc_lookup_target_description): Move target_desc_up into the
3240 cache, and return a borrowed pointer.
3241 * arch/arm.c (arm_create_target_description): Release the
3242 target_desc_up as late as possible.
3243 * arch/i386.c (i386_create_target_description): Likewise.
3244 * arch/riscv.h (riscv_create_target_description): Update
3245 declaration to match definition.
3246 * arch/tic6x.c (tic6x_create_target_description): Release the
3247 target_desc_up as late as possible.
3249 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3251 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3252 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3254 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3256 * source.c (directory_command): Notify observers that "directories"
3257 parameter has changed.
3259 2020-10-08 Tom Tromey <tom@tromey.com>
3261 * cli/cli-cmds.c (print_disassembly): Style function name and
3262 addresses. Add _() wrappers.
3264 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3266 * NEWS: Mention ARC support in GDBserver.
3268 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3270 * arch/aarch32.c (aarch32_create_target_description): Release
3271 unique_ptr returned from allocate_target_description.
3272 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3273 * arch/amd64.c (amd64_create_target_description): Likewise.
3274 * arch/arc.c (arc_create_target_description): Likewise.
3275 * arch/arm.c (arm_create_target_description): Likewise.
3276 * arch/i386.c (i386_create_target_description): Likewise.
3277 * arch/riscv.c (riscv_create_target_description): Update return
3278 type. Handle allocate_target_description returning a unique_ptr.
3279 (riscv_lookup_target_description): Update to handle unique_ptr.
3280 * arch/tic6x.c (tic6x_create_target_description): Release
3281 unique_ptr returned from allocate_target_description.
3282 * features/microblaze-with-stack-protect.c: Regenerate.
3283 * features/microblaze.c: Regenerate.
3284 * features/mips-dsp-linux.c: Regenerate.
3285 * features/mips-linux.c: Regenerate.
3286 * features/mips64-dsp-linux.c: Regenerate.
3287 * features/mips64-linux.c: Regenerate.
3288 * features/nds32.c: Regenerate.
3289 * features/nios2.c: Regenerate.
3290 * features/or1k.c: Regenerate.
3291 * features/rs6000/powerpc-32.c: Regenerate.
3292 * features/rs6000/powerpc-32l.c: Regenerate.
3293 * features/rs6000/powerpc-403.c: Regenerate.
3294 * features/rs6000/powerpc-403gc.c: Regenerate.
3295 * features/rs6000/powerpc-405.c: Regenerate.
3296 * features/rs6000/powerpc-505.c: Regenerate.
3297 * features/rs6000/powerpc-601.c: Regenerate.
3298 * features/rs6000/powerpc-602.c: Regenerate.
3299 * features/rs6000/powerpc-603.c: Regenerate.
3300 * features/rs6000/powerpc-604.c: Regenerate.
3301 * features/rs6000/powerpc-64.c: Regenerate.
3302 * features/rs6000/powerpc-64l.c: Regenerate.
3303 * features/rs6000/powerpc-7400.c: Regenerate.
3304 * features/rs6000/powerpc-750.c: Regenerate.
3305 * features/rs6000/powerpc-860.c: Regenerate.
3306 * features/rs6000/powerpc-altivec32.c: Regenerate.
3307 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3308 * features/rs6000/powerpc-altivec64.c: Regenerate.
3309 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3310 * features/rs6000/powerpc-e500.c: Regenerate.
3311 * features/rs6000/powerpc-e500l.c: Regenerate.
3312 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3313 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3314 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3315 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3316 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3317 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3318 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3319 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3320 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3321 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3322 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3323 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3324 * features/rs6000/powerpc-vsx32.c: Regenerate.
3325 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3326 * features/rs6000/powerpc-vsx64.c: Regenerate.
3327 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3328 * features/rs6000/rs6000.c: Regenerate.
3329 * features/rx.c: Regenerate.
3330 * features/s390-gs-linux64.c: Regenerate.
3331 * features/s390-linux32.c: Regenerate.
3332 * features/s390-linux32v1.c: Regenerate.
3333 * features/s390-linux32v2.c: Regenerate.
3334 * features/s390-linux64.c: Regenerate.
3335 * features/s390-linux64v1.c: Regenerate.
3336 * features/s390-linux64v2.c: Regenerate.
3337 * features/s390-te-linux64.c: Regenerate.
3338 * features/s390-tevx-linux64.c: Regenerate.
3339 * features/s390-vx-linux64.c: Regenerate.
3340 * features/s390x-gs-linux64.c: Regenerate.
3341 * features/s390x-linux64.c: Regenerate.
3342 * features/s390x-linux64v1.c: Regenerate.
3343 * features/s390x-linux64v2.c: Regenerate.
3344 * features/s390x-te-linux64.c: Regenerate.
3345 * features/s390x-tevx-linux64.c: Regenerate.
3346 * features/s390x-vx-linux64.c: Regenerate.
3347 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3348 from allocate_target_description.
3349 * target-descriptions.c (allocate_target_description): Update
3351 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3352 allocate_target_description.
3354 2020-10-07 Tom Tromey <tromey@adacore.com>
3356 * unittests/search-memory-selftests.c: New file.
3357 * Makefile.in (SELFTESTS_SRCS): Add
3358 unittests/search-memory-selftests.c.
3360 2020-10-07 Tom Tromey <tromey@adacore.com>
3363 * findcmd.c (_initialize_mem_search): Mention that the range is
3366 2020-10-07 Tom Tromey <tromey@adacore.com>
3368 * target.h (simple_search_memory): Don't declare.
3369 * target.c (simple_search_memory): Move to gdbsupport.
3370 (default_search_memory): Update.
3371 * remote.c (remote_target::search_memory): Update.
3373 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3375 * Makefile.in (COMPILE): Add CXXFLAGS.
3376 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3377 (check-headers): Add CXXFLAGS.
3379 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3381 * arc-linux-tdep.h: New file.
3382 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3383 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3384 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3385 arc_linux_gregset, arc_linux_v2_regset,
3386 arc_linux_iterate_over_regset_sections,
3387 arc_linux_core_read_description): Implement.
3388 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3389 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3390 (arc_gdbarch_features_create): Add.
3391 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3393 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3395 * arch/arc.h: Rename "arc_gdbarch_features" to
3396 "arc_arch_features".
3397 * arc-tdep.h: Likewise.
3398 * arc-tdep.c: Likewise.
3400 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3402 * infcmd.c (attach_command): Remove the redundant call to
3403 `clear_proceed_status`.
3405 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3407 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3409 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3411 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3412 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3413 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3415 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3417 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3418 (_initialize_break_catch_sig): Don't allocate array.
3420 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3422 * symtab.c (find_pc_line): Return unmapped addresses when the
3423 requested address is also unmapped.
3425 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3427 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3430 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3432 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3433 type::is_vector instead of TYPE_VECTOR.
3435 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3437 * auto-load.c (auto_load_objfile_script_1): Don't use
3438 debugfile_holder as temporary variable when stripping drive
3441 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3443 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3444 Add TYPE_CODE_COMPLEX.
3445 (amd64_windows_return_value): Fix types returned via XMM0.
3447 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3449 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3450 AArch64/ARM maintainers.
3452 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3454 * NEWS: Mention set/show debug event-loop.
3456 2020-10-02 Tom Tromey <tromey@adacore.com>
3458 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3461 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3463 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3464 * procfs.c (procfs_inferior_created): Remove.
3465 (_initialize_procfs): Don't register procfs_inferior_created.
3467 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3469 * async-event.c (invoke_async_signal_handlers): Add debug
3471 (check_async_event_handlers): Likewise.
3472 * event-top.c (show_debug_event_loop): New function.
3473 (_initialize_event_top): Register "set debug event-loop"
3476 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3478 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3480 * infrun.c: Include gdbsupport/common-debug.h.
3481 * linux-nat.c: Likewise.
3483 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3485 * async-event.h (create_async_signal_handler): Add name
3487 (create_async_event_handler): Likewise.
3488 * async-event.c (struct async_signal_handler) <name>: New field.
3489 (struct async_event_handler) <name>: New field.
3490 (create_async_signal_handler): Assign name.
3491 (create_async_event_handler): Assign name.
3492 * event-top.c (async_init_signals): Pass name when creating
3494 * infrun.c (_initialize_infrun): Likewise.
3495 * record-btrace.c (record_btrace_push_target): Likewise.
3496 * record-full.c (record_full_open): Likewise.
3497 * remote-notif.c (remote_notif_state_allocate): Likewise.
3498 * remote.c (remote_target::open_1): Likewise.
3499 * tui/tui-win.c (tui_initialize_win): Likewise.
3501 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3503 * async-event.c (initialize_async_signal_handlers): Pass name to
3505 * event-top.c (ui_register_input_event_handler): Likewise.
3506 * linux-nat.c (linux_nat_target::async): Likewise.
3507 * run-on-main-thread.c (_initialize_run_on_main_thread):
3509 * ser-base.c (reschedule): Likewise.
3510 (ser_base_async): Likewise.
3511 * tui/tui-io.c: Likewise.
3512 * top.h (struct ui) <num>: New field.
3513 * top.c (highest_ui_num): New variable.
3514 (ui::ui): Initialize num.
3516 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3518 * observable.h <inferior_created>: Remove parameters. Update all
3520 * inferior.h (post_create_inferior): Remove target parameter.
3523 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3525 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3526 and DW_MACRO_undef_strx.
3527 (dwarf_decode_macros): Likewise
3528 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3529 which is the value of DW_AT_str_offsets_base.
3530 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3533 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3535 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3537 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3539 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3540 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3542 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3544 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3546 2020-09-30 Tom de Vries <tdevries@suse.de>
3549 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3551 2020-09-30 Tom Tromey <tromey@adacore.com>
3553 * dwarf2/read.c (handle_variant): Use constant_value.
3555 2020-09-29 Tom Tromey <tom@tromey.com>
3557 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3558 (read_file_scope, dwarf2_get_pc_bounds)
3559 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3560 (read_structure_type, handle_struct_member_die)
3561 (read_enumeration_type, read_array_type, read_set_type)
3562 (read_tag_pointer_type, read_tag_reference_type)
3563 (read_subroutine_type, read_base_type, read_subrange_type)
3564 (read_full_die_1, partial_die_info::read)
3565 (partial_die_info::read, by, new_symbol)
3566 (dwarf2_const_value_data, dwarf2_const_value_attr)
3567 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3568 (prepare_one_comp_unit): Update.
3569 * dwarf2/attribute.h (DW_UNSND): Remove.
3571 2020-09-29 Tom Tromey <tom@tromey.com>
3573 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3574 (read_subroutine_type, partial_die_info::read)
3575 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3576 (dwarf2_add_member_fn): Update.
3577 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3578 * dwarf2/attribute.c (attribute::as_boolean): New method.
3580 2020-09-29 Tom Tromey <tom@tromey.com>
3582 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3583 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3585 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3587 2020-09-29 Tom Tromey <tom@tromey.com>
3589 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3590 the attribute's form.
3592 2020-09-29 Tom Tromey <tom@tromey.com>
3594 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3595 (dwarf2_add_member_fn): Update.
3596 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3597 * dwarf2/attribute.c (attribute::defaulted): New method, from
3598 is_valid_DW_AT_defaulted.
3600 2020-09-29 Tom Tromey <tom@tromey.com>
3602 * dwarf2/read.c (dw2_get_file_names_reader)
3603 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3604 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3605 (dwarf2_symbol_mark_computed): Use as_unsigned.
3606 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3608 <form_is_section_offset>: Update comment.
3610 2020-09-29 Tom Tromey <tom@tromey.com>
3612 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3613 dwarf2_default_access_attribute. Look up attribute.
3614 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3617 2020-09-29 Tom Tromey <tom@tromey.com>
3619 * dwarf2/read.c (skip_one_die): Update.
3620 (read_full_die_1): Change how reprocessing is done.
3621 (partial_die_info::read): Update.
3622 (read_attribute_value): Remove need_reprocess parameter.
3623 (read_attribute): Likewise.
3624 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3627 2020-09-29 Tom Tromey <tom@tromey.com>
3629 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3630 (dwarf2_const_value_attr, dump_die_shallow)
3631 (dwarf2_fetch_constant_bytes): Update.
3632 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3634 <set_address>: New method.
3636 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3637 (attribute::as_string, attribute::as_address): Add assert.
3639 2020-09-29 Tom Tromey <tom@tromey.com>
3641 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3642 (read_attribute_reprocess, read_attribute_value): Update.
3643 (read_attribute): Clear requires_reprocessing.
3644 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3645 form_requires_reprocessing>: New methods.
3646 <string_init>: Clear requires_reprocessing.
3647 <set_unsigned_reprocess>: New method.
3648 <name>: Shrink by one bit.
3649 <requires_reprocessing>: New member.
3650 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3653 2020-09-29 Tom Tromey <tom@tromey.com>
3655 * dwarf2/read.c (read_attribute_value): Update.
3656 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3657 set_unsigned>: New methods.
3658 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3660 2020-09-29 Tom Tromey <tom@tromey.com>
3662 * dwarf2/read.c (get_alignment, read_array_order)
3663 (read_attribute_value, dwarf2_const_value_attr)
3664 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3665 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3669 2020-09-29 Tom Tromey <tom@tromey.com>
3671 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3672 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3674 * dwarf2/attribute.h (struct attribute) <as_signature,
3675 set_signature>: New methods.
3676 (DW_SIGNATURE): Remove.
3678 2020-09-29 Tom Tromey <tom@tromey.com>
3680 * dwarf2/read.c (read_call_site_scope)
3681 (handle_data_member_location, dwarf2_add_member_fn)
3682 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3683 (partial_die_info::read, read_attribute_value)
3684 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3685 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3686 (dwarf2_symbol_mark_computed): Update.
3687 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3690 * dwarf2/attribute.c (attribute::form_is_block): Add
3693 2020-09-29 Tom Tromey <tom@tromey.com>
3695 * dwarf2/read.c (read_cutu_die_from_dwo)
3696 (read_attribute_reprocess, read_attribute_value, read_attribute)
3697 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3698 (dwarf2_fetch_constant_bytes): Update.
3699 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3700 <set_string_noncanonical, set_string_canonical>: New methods.
3701 <string_is_canonical>: Update comment.
3702 <canonical_string_p>: Add assert.
3703 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3704 * dwarf2/attribute.c (attribute::form_is_string): New method.
3705 (attribute::string): Use it.
3707 2020-09-29 Tom Tromey <tom@tromey.com>
3709 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3710 (dump_die_shallow): Use canonical_string_p.
3711 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3714 2020-09-29 Tom Tromey <tom@tromey.com>
3716 * dwarf2/read.c (partial_die_info::read)
3717 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3718 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3719 attribute::as_string.
3721 2020-09-29 Tom Tromey <tom@tromey.com>
3723 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3725 (attribute::string): Don't use DW_STRING.
3726 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3727 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3729 2020-09-29 Tom Tromey <tom@tromey.com>
3731 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3732 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3733 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3734 * dwarf2/attribute.h (struct attribute): Rename methods.
3735 * dwarf2/attribute.c (attribute::as_address): Rename from
3737 (attribute::as_string): Rename from value_as_string.
3739 2020-09-29 Tom Tromey <tom@tromey.com>
3741 * dwarf2/read.c (partial_die_info::read) <case
3742 DW_AT_linkage_name>: Use value_as_string.
3743 (dwarf2_string_attr): Use value_as_string.
3744 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3746 * dwarf2/attribute.c (attribute::value_as_string): New method.
3748 2020-09-29 Pedro Alves <pedro@palves.net>
3750 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3751 defined before using '#pragma GCC diagnostic' instead of checking
3754 2020-09-28 Tom Tromey <tom@tromey.com>
3756 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3757 (handle_signal_stop): Update.
3758 * procfs.c (procfs_target::insert_watchpoint): Update.
3759 * target.h (target_have_steppable_watchpoint): Now a function.
3761 2020-09-28 Tom Tromey <tom@tromey.com>
3763 * infrun.c (set_schedlock_func): Update.
3764 * target.h (target_can_lock_scheduler): Now a function.
3766 2020-09-28 Tom Tromey <tom@tromey.com>
3768 * inferior.h (class inferior) <has_execution>: Update.
3769 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3770 * valops.c (find_function_in_inferior)
3771 (value_allocate_space_in_inferior): Update.
3772 * top.c (kill_or_detach): Update.
3773 * target.c (target_preopen, set_target_permissions): Update.
3774 (target_has_execution_current): Remove.
3775 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3777 * solib.c (update_solib_list, reload_shared_libraries): Update.
3778 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3779 * solib-dsbt.c (enable_break): Update.
3780 * score-tdep.c (score7_fetch_inst): Update.
3781 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3783 * remote.c (remote_target::start_remote)
3784 (remote_target::remote_check_symbols, remote_target::open_1)
3785 (remote_target::remote_detach_1, remote_target::verify_memory)
3786 (remote_target::xfer_partial, remote_target::read_description)
3787 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3788 * record-full.c (record_full_open_1): Update.
3789 * record-btrace.c (record_btrace_target_open): Update.
3790 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3791 (value_nsstring): Update.
3792 * linux-thread-db.c (add_thread_db_info)
3793 (thread_db_find_new_threads_silently, check_thread_db_callback)
3794 (try_thread_db_load_1, record_thread): Update.
3795 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3797 * linux-fork.c (checkpoint_command): Update.
3798 * infrun.c (set_non_stop, set_observer_mode)
3799 (check_multi_target_resumption, for_each_just_stopped_thread)
3800 (maybe_remove_breakpoints, normal_stop)
3801 (class infcall_suspend_state): Update.
3802 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3803 (info_program_command, attach_command): Update.
3804 * infcall.c (call_function_by_hand_dummy): Update.
3805 * inf-loop.c (inferior_event_handler): Update.
3806 * gcore.c (gcore_command, derive_heap_segment): Update.
3807 * exec.c (exec_file_command): Update.
3808 * eval.c (evaluate_subexp): Update.
3809 * compile/compile.c (compile_to_object): Update.
3810 * cli/cli-dump.c (restore_command): Update.
3811 * breakpoint.c (update_watchpoint)
3812 (update_inserted_breakpoint_locations)
3813 (insert_breakpoint_locations, get_bpstat_thread): Update.
3814 * target.h (target_has_execution): Remove macro.
3815 (target_has_execution_current): Don't declare.
3816 (target_has_execution): Rename from target_has_execution_1. Add
3819 2020-09-28 Tom Tromey <tom@tromey.com>
3821 * mi/mi-main.c (exec_reverse_continue)
3822 (mi_cmd_list_target_features): Update.
3823 * infrun.c (set_exec_direction_func): Update.
3824 * target.c (default_execution_direction): Update.
3825 * reverse.c (exec_reverse_once): Update.
3826 * target.h (target_can_execute_reverse): Now a function.
3828 2020-09-28 Tom Tromey <tom@tromey.com>
3830 * tui/tui-regs.c (tui_get_register)
3831 (tui_data_window::show_registers): Update.
3832 * thread.c (scoped_restore_current_thread::restore)
3833 (scoped_restore_current_thread::scoped_restore_current_thread):
3835 * regcache-dump.c (regcache_print): Update.
3836 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3838 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3839 * mep-tdep.c (current_me_module, current_options): Update.
3840 * linux-thread-db.c (thread_db_load): Update.
3841 * infcmd.c (registers_info, info_vector_command)
3842 (info_float_command): Update.
3843 * ia64-tdep.c (ia64_frame_prev_register)
3844 (ia64_sigtramp_frame_prev_register): Update.
3845 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3846 * gcore.c (derive_stack_segment): Update.
3847 * frame.c (get_current_frame, has_stack_frames): Update.
3848 * findvar.c (language_defn::read_var_value): Update.
3849 * arm-tdep.c (arm_pc_is_thumb): Update.
3850 * target.c (target_has_registers): Rename from
3851 target_has_registers_1.
3852 * target.h (target_has_registers): Remove macro.
3853 (target_has_registers): Rename from target_has_registers_1.
3855 2020-09-28 Tom Tromey <tom@tromey.com>
3857 * windows-tdep.c (tlb_make_value): Update.
3858 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3859 * thread.c (scoped_restore_current_thread::restore)
3860 (scoped_restore_current_thread::scoped_restore_current_thread)
3861 (thread_command): Update.
3862 * stack.c (backtrace_command_1, frame_apply_level_command)
3863 (frame_apply_all_command, frame_apply_command): Update.
3864 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3866 * gcore.c (derive_stack_segment): Update.
3867 * frame.c (get_current_frame, has_stack_frames): Update.
3868 * auxv.c (info_auxv_command): Update.
3869 * ada-tasks.c (ada_build_task_list): Update.
3870 * target.c (target_has_stack): Rename from target_has_stack_1.
3871 * target.h (target_has_stack): Remove macro.
3872 (target_has_stack): Rename from target_has_stack_1.
3874 2020-09-28 Tom Tromey <tom@tromey.com>
3876 * target.c (target_has_memory): Rename from target_has_memory_1.
3877 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3878 * thread.c (scoped_restore_current_thread::restore)
3879 (scoped_restore_current_thread::scoped_restore_current_thread):
3881 * frame.c (get_current_frame, has_stack_frames): Update.
3882 * target.h (target_has_memory): Remove macro.
3883 (target_has_memory): Rename from target_has_memory_1.
3885 2020-09-28 Tom Tromey <tom@tromey.com>
3887 * target.c (target_has_all_memory_1): Remove.
3888 * target.h (target_has_all_memory): Remove define.
3889 (target_has_all_memory_1): Don't declare.
3891 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3893 * ser-base.c: Adjust comments formatting.
3895 2020-09-27 Tom Tromey <tom@tromey.com>
3898 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3900 2020-09-27 Tom Tromey <tom@tromey.com>
3903 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3905 2020-09-27 Tom Tromey <tom@tromey.com>
3907 * unittests/tui-selftests.c: Update.
3908 * tui/tui-winsource.h (struct tui_source_window_base)
3909 <extra_margin, show_line_number, refresh_pad>: New methods.
3910 <m_max_length, m_pad>: New members.
3911 (tui_copy_source_line): Update.
3912 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3913 first_col, line_width, ndigits parameters. Add length.
3914 (tui_source_window_base::show_source_line): Write to pad. Line
3916 (tui_source_window_base::refresh_pad): New method.
3917 (tui_source_window_base::show_source_content): Write to pad. Call
3919 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3921 (tui_source_window_base::update_exec_info): Call
3923 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3925 <m_digits>: New member.
3926 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3928 (tui_source_window::show_line_number): New method.
3929 * tui/tui-io.h (tui_puts): Fix comment.
3930 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3933 2020-09-27 Tom Tromey <tom@tromey.com>
3935 * tui/tui-winsource.c
3936 (tui_source_window_base::set_is_exec_point_at): Don't call
3939 2020-09-27 Tom Tromey <tom@tromey.com>
3941 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3944 <cursor_x, cursor_y>: Remove.
3945 <m_inner_window>: New member.
3946 (tui_py_window::rerender): Create inner window.
3947 (tui_py_window::output): Write to inner window.
3949 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3952 * cli/cli-script.c (execute_control_commands): don't set
3953 instream to nullptr here as this breaks the from_tty argument
3954 to gdb.execute in Python.
3955 (execute_user_command): set instream to nullptr here instead.
3957 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3959 * infrun.h (infrun_debug_printf): Fix formatting.
3960 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3962 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3964 * compile/compile-object-load.h (struct munmap_list): Add
3965 explicitly-defined move constructor.
3967 2020-09-24 Tom Tromey <tromey@adacore.com>
3970 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3972 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3973 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3974 (tui_prev_win): Rewrite.
3976 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3978 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3979 in WOW64 processes as SIGINT.
3980 * nat/windows-nat.h: Make wow64_process a shared variable.
3981 * windows-nat.c: Remove static wow64_process variable.
3983 2020-09-23 Tom Tromey <tom@tromey.com>
3986 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3987 offset and bit size.
3988 * printcmd.c (print_scalar_formatted): Handle zero-length
3990 (print_scalar_formatted): Use bit_size_differs_p.
3991 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3993 (union type_specific): <int_stuff>: New member.
3994 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3996 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3997 TYPE_SPECIFIC_FIELD.
3998 (recursive_dump_type, copy_type_recursive): Update.
3999 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4000 DW_AT_data_bit_offset.
4002 2020-09-23 Tom Tromey <tom@tromey.com>
4004 * utils.h (class gdb_argv): Add move operators.
4005 <append>: New methods.
4006 * compile/compile.c (build_argc_argv): Remove.
4007 (compile_args_argc): Remove.
4008 (compile_args_argv): Change type.
4009 (set_compile_args): Simplify.
4010 (append_args): Remove.
4011 (filter_args): Remove argcp parameter.
4012 (get_args): Return gdb_argv. Simplify.
4013 (compile_to_object): Update.
4015 2020-09-23 Tom Tromey <tom@tromey.com>
4017 * compile/compile-object-run.c (do_module_cleanup)
4018 <~do_module_cleanup> :Remove.
4019 (do_module_cleanup): Update.
4020 * compile/compile-object-load.h (struct munmap_list): Add move
4021 assignment operator.
4022 <source_file>: Now a std::string.
4023 <munmap_list>: Rename. No longer a pointer.
4024 * compile/compile-object-load.c (struct setup_sections_data): Add
4026 <setup_one_section>: Declare.
4027 <munmap_list>: Move earlier.
4028 <m_bfd>: New member.
4029 <m_last_size, m_last_section_first, m_last_prot,
4030 m_last_max_alignment>: Rename, add initializers where needed.
4031 (setup_sections_data::setup_one_section): Rename from
4032 setup_sections. Update.
4033 (compile_object_load): Update. Don't use bfd_map_over_sections.
4035 2020-09-23 Tom Tromey <tom@tromey.com>
4037 * compile/compile-object-run.c (struct do_module_cleanup): Add
4038 parameters to constructor. Update destructor.
4039 <source_file, scope, scope_data, out_value_type, out_value_addr,
4040 munmap_list_head, objfile_name_string>: Remove.
4041 <module>: New member.
4042 (do_module_cleanup): Update.
4043 (compile_object_run): Update.
4045 2020-09-23 Tom Tromey <tom@tromey.com>
4047 * compile/compile.c (eval_compile_command): Update.
4048 * compile/compile-object-run.h (compile_object_run): Take a
4050 * compile/compile-object-run.c (compile_object_run): Take a
4052 * compile/compile-object-load.h (struct compile_module): Add
4053 constructor, destructor.
4054 (compile_module_up): New typedef.
4055 (compile_object_load): Return compile_object_up.
4056 * compile/compile-object-load.c (compile_object_load): Return
4059 2020-09-23 Tom Tromey <tom@tromey.com>
4061 * compile/compile-object-run.c (struct do_module_cleanup): Add
4062 constructor, destructor.
4063 <objfile_name_string>: Don't use struct hack.
4064 (do_module_cleanup): Use delete.
4065 (compile_object_run): Use new.
4067 2020-09-23 Tom Tromey <tom@tromey.com>
4069 * compile/compile-cplus-types.c
4070 (compile_cplus_convert_struct_or_union): Use std::vector.
4071 (compile_cplus_convert_func): Likewise.
4072 * compile/compile-c-types.c (convert_func): Use std::vector.
4074 2020-09-21 Tom Tromey <tromey@adacore.com>
4076 * sparc-tdep.c (sparc32_skip_prologue): Use
4077 skip_prologue_using_sal.
4079 2020-09-19 Tom Tromey <tom@tromey.com>
4081 * symfile.c (add_section_size_callback): Remove.
4082 (load_one_section): Rename from load_section_callback. Change
4084 (generic_load): Use foreach.
4086 2020-09-19 Tom Tromey <tom@tromey.com>
4088 * exec.c (add_to_section_table): Remove.
4089 (build_section_table): Use foreach.
4091 2020-09-19 Tom Tromey <tom@tromey.com>
4093 * elfread.c (elf_locate_sections): Change parameters.
4094 (elf_symfile_read): Use foreach.
4096 2020-09-19 Tom Tromey <tom@tromey.com>
4098 * cli/cli-dump.c (struct callback_data): Remove.
4099 (restore_one_section): Rename from restore_section_callback.
4101 (restore_binary_file): Change parameters.
4102 (restore_command): Use foreach.
4104 2020-09-19 Tom Tromey <tom@tromey.com>
4106 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4107 (gcore_copy_callback): Likewise.
4108 (gcore_memory_sections): Use foreach.
4110 2020-09-19 Tom Tromey <tom@tromey.com>
4112 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4113 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4115 (generic_elf_osabi_sniffer): Use foreach.
4116 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4117 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4119 2020-09-19 Tom Tromey <tom@tromey.com>
4121 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4122 (dwarf2_get_dwz_file): Use foreach.
4123 (dwarf2_locate_dwo_sections): Change parameters.
4124 (open_and_init_dwo_file): Use foreach.
4125 (dwarf2_locate_common_dwp_sections): Change parameters.
4126 (open_and_init_dwp_file): Use foreach.
4128 2020-09-19 Tom Tromey <tom@tromey.com>
4130 * symfile.h: (find_lowest_section): Don't declare.
4131 * symfile.c (find_lowest_section): Now static. Change
4133 (struct place_section_arg): Remove.
4134 (place_section): Change parameters.
4135 (addr_info_make_relative): Use foreach.
4136 (symfile_dummy_outputs): Remove.
4137 (default_symfile_relocate): Use foreach.
4139 2020-09-19 Tom Tromey <tom@tromey.com>
4141 * objfiles.c (add_to_objfile_sections): Rename from
4142 add_to_objfile_sections_full.
4143 (add_to_objfile_sections): Remove.
4144 (build_objfile_section_table): Use foreach.
4146 2020-09-19 Tom Tromey <tom@tromey.com>
4148 * stap-probe.c (get_stap_base_address_1): Remove.
4149 (get_stap_base_address): Use foreach.
4151 2020-09-19 Tom Tromey <tom@tromey.com>
4153 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4155 (gdb_bfd_close_or_warn): Use foreach.
4157 2020-09-19 Tom Tromey <tom@tromey.com>
4159 * corelow.c (add_to_thread_list): Change parameters.
4160 (core_target_open): Use foreach.
4162 2020-09-19 Tom Tromey <tom@tromey.com>
4164 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4167 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4169 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4172 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4174 * eval.c: Remove 'f-lang.h' include.
4175 (value_f90_subarray): Moved to f-lang.c.
4176 (eval_call): Renamed to...
4177 (evaluate_subexp_do_call): ...this, is no longer static, header
4178 comment moved into header file.
4179 (evaluate_funcall): Update call to eval_call.
4180 (skip_undetermined_arglist): Moved to f-lang.c.
4181 (fortran_value_subarray): Likewise.
4182 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4183 moved to evaluate_subexp_f.
4184 (calc_f77_array_dims): Moved to f-lang.c
4185 * expprint.c (print_subexp_funcall): New function.
4186 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4187 moved to print_subexp_f, OP_FUNCALL uses new function.
4188 (dump_subexp_body_funcall): New function.
4189 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4190 moved to dump_subexp_f, OP_FUNCALL uses new function.
4191 * expression.h (evaluate_subexp_do_call): Declare.
4192 * f-lang.c (value_f90_subarray): Moved from eval.c.
4193 (skip_undetermined_arglist): Likewise.
4194 (calc_f77_array_dims): Likewise.
4195 (fortran_value_subarray): Likewise.
4196 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4197 (operator_length_f): Likewise.
4198 (print_subexp_f): Likewise.
4199 (dump_subexp_body_f): Likewise.
4200 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4201 declaration of this operation to here.
4202 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4203 support moved to operator_length_f.
4204 * parser-defs.h (dump_subexp_body_funcall): Declare.
4205 (print_subexp_funcall): Declare.
4206 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4207 fortran-operator.def.
4209 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4211 * eval.c (fortran_value_subarray): New function, content is taken
4213 (evaluate_subexp_standard): ...here, in two places. Now arrays
4214 and strings both call the new function.
4215 (calc_f77_array_dims): Add header comment, handle strings.
4217 2020-09-18 Victor Collod <vcollod@nvidia.com>
4220 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4221 (i386_analyze_prologue): Call i386_skip_endbr.
4223 2020-09-18 Tom Tromey <tromey@adacore.com>
4225 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4226 (windows_nat_target::wait): Update.
4227 * target/wait.h (enum target_wait_flag): New. Use
4228 DEF_ENUM_FLAGS_TYPE.
4229 * target/target.h (target_wait): Change type of options.
4230 * target.h (target_options_to_string, default_target_wait):
4232 (struct target_ops) <wait>: Change type of options.
4233 * target.c (target_wait, default_target_wait, do_option): Change
4235 (target_options_to_string): Likewise.
4236 * target-delegates.c: Rebuild.
4237 * target-debug.h (target_debug_print_target_wait_flags): Rename
4238 from target_debug_print_options.
4239 * sol-thread.c (class sol_thread_target) <wait>: Update.
4240 (sol_thread_target::wait): Update.
4241 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4242 (rs6000_nat_target::wait): Update.
4243 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4245 (remote_target::wait_ns, remote_target::wait_as): Change type of
4247 (remote_target::wait): Update.
4248 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4249 (gdbsim_target::wait): Update.
4250 * record-full.c (class record_full_base_target) <wait>: Update.
4251 (record_full_wait_1): Change type of "options".
4252 (record_full_base_target::wait): Update.
4253 * record-btrace.c (class record_btrace_target) <wait>: Update.
4254 (record_btrace_target::wait): Update.
4255 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4257 (ravenscar_thread_target::wait): Update.
4258 * procfs.c (class procfs_target) <wait>: Update.
4259 (procfs_target::wait): Update.
4260 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4261 * obsd-nat.c (obsd_nat_target::wait): Update.
4262 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4263 (nto_procfs_target::wait): Update.
4264 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4265 * nbsd-nat.c (nbsd_wait): Change type of "options".
4266 (nbsd_nat_target::wait): Update.
4267 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4268 (thread_db_target::wait): Update.
4269 * linux-nat.h (class linux_nat_target) <wait>: Update.
4270 * linux-nat.c (linux_nat_target::wait): Update.
4271 (linux_nat_wait_1): Update.
4272 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4274 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4275 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4276 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4277 (go32_nat_target::wait): Update.
4278 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4279 * gnu-nat.c (gnu_nat_target::wait): Update.
4280 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4281 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4282 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4283 * darwin-nat.c (darwin_nat_target::wait): Update.
4284 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4285 (bsd_uthread_target::wait): Update.
4286 * aix-thread.c (class aix_thread_target) <wait>: Update.
4287 (aix_thread_target::wait): Update.
4289 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4291 * compile/compile-object-run.c (create_copied_type_recursive): New
4293 (compile_object_run): Use new function.
4295 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4297 * NEWS: Mention x86_64 Cygwin core file support.
4299 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4301 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4302 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4304 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4306 * windows-tdep.h: Add prototypes.
4307 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4308 (i386_windows_core_pid_to_str): Move and rename ...
4309 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4310 (windows_core_pid_to_str): ... and here.
4311 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4313 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4314 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4315 (amd64_windows_init_abi_common): ... and register.
4317 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4319 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4320 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4322 2020-09-18 Pedro Alves <pedro@palves.net>
4325 * thread.c (thread_find_command): Switch inferior before calling
4328 2020-09-17 Tom Tromey <tromey@adacore.com>
4330 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4331 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4332 (tdesc_arch_data_up): New typedef.
4333 (tdesc_use_registers, tdesc_data_alloc): Update.
4334 (tdesc_data_cleanup): Don't declare.
4335 * target-descriptions.c (tdesc_data_alloc): Return a
4337 (tdesc_arch_data_deleter::operator()): Rename from
4338 tdesc_data_cleanup. Change argument type.
4339 (tdesc_use_registers): Change early_data to an rvalue reference.
4340 (tdesc_use_registers): Don't use delete.
4341 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4342 * s390-tdep.c (s390_gdbarch_init): Update.
4343 * rx-tdep.c (rx_gdbarch_init): Update.
4344 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4345 * riscv-tdep.c (riscv_gdbarch_init): Update.
4346 * or1k-tdep.c (or1k_gdbarch_init): Update.
4347 * nios2-tdep.c (nios2_gdbarch_init): Update.
4348 * nds32-tdep.c (nds32_gdbarch_init): Update.
4349 * mips-tdep.c (mips_gdbarch_init): Update.
4350 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4351 * m68k-tdep.c (m68k_gdbarch_init): Update.
4352 * i386-tdep.c (i386_gdbarch_init): Update.
4353 * arm-tdep.c (arm_gdbarch_init): Update.
4354 * arc-tdep.c (arc_tdesc_init): Update.
4355 (arc_gdbarch_init): Update.
4356 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4358 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4360 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4361 for WOW64 processes.
4363 2020-09-17 Tom Tromey <tom@tromey.com>
4365 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4367 2020-09-17 Tom Tromey <tom@tromey.com>
4369 * value.c (preserve_values): Update.
4370 * python/py-type.c (save_objfile_types): Update.
4371 * guile/scm-type.c (save_objfile_types): Update.
4372 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4373 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4374 * compile/compile-object-run.c (compile_object_run): Update.
4376 2020-09-17 Tom Tromey <tom@tromey.com>
4378 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4380 <m_table>: Now htab_up.
4381 * typeprint.c (typedef_hash_table::recursively_update)
4382 (typedef_hash_table::add_template_parameters)
4383 (typedef_hash_table::typedef_hash_table): Update.
4384 (typedef_hash_table::~typedef_hash_table): Remove.
4385 (typedef_hash_table::typedef_hash_table)
4386 (typedef_hash_table::find_global_typedef)
4387 (typedef_hash_table::find_typedef): Update.
4389 2020-09-17 Tom Tromey <tom@tromey.com>
4391 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4393 2020-09-17 Tom Tromey <tom@tromey.com>
4395 * linespec.c (class decode_compound_collector)
4396 <~decode_compound_collector>: Remove.
4397 <m_unique_syms>: Now htab_up.
4398 (decode_compound_collector::operator ()): Update.
4399 (class symtab_collector) <~symtab_collector>: Remove.
4400 <m_symtab_table>: Now htab_up.
4401 (symtab_collector::operator ()): Update.
4403 2020-09-17 Tom Tromey <tom@tromey.com>
4405 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4406 (filename_seen_cache::clear): Update.
4407 (~filename_seen_cache): Remove.
4408 (filename_seen_cache::seen): Update.
4409 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4411 <~filename_seen_cache>: Remove.
4414 2020-09-17 Tom Tromey <tom@tromey.com>
4416 * completer.c (completion_tracker::discard_completions)
4417 (completion_tracker::~completion_tracker)
4418 (completion_tracker::maybe_add_completion)
4419 (completion_tracker::remove_completion)
4420 (completion_tracker::recompute_lowest_common_denominator)
4421 (completion_tracker::build_completion_result): Update.
4422 * completer.h (class completion_tracker) <have_completions>:
4424 <m_entries_hash>: Now htab_up.
4426 2020-09-17 Tom Tromey <tom@tromey.com>
4428 * breakpoint.c (ambiguous_names_p): Use htab_up.
4430 2020-09-17 Tom Tromey <tom@tromey.com>
4432 * auto-load.c (struct auto_load_pspace_info)
4433 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4434 <loaded_script_files, loaded_script_texts>: Change type to
4436 (~auto_load_pspace_info) Remove.
4437 (init_loaded_scripts_info, maybe_add_script_file)
4438 (maybe_add_script_text, auto_load_info_scripts): Update.
4440 2020-09-17 Tom Tromey <tromey@adacore.com>
4442 * c-exp.y (name_obstack): Now static.
4444 2020-09-17 Chungyi Chi <demonic@csie.io>
4446 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4448 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4450 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4451 (add_solib_catchpoint): Likewise.
4452 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4454 (add_solib_catchpoint): Change int parameter/variable to bool.
4455 (catch_load_or_unload): Likewise.
4456 (init_catchpoint): Likewise.
4457 (create_fork_vfork_event_catchpoint): Likewise.
4458 (catch_fork_command_1): Likewise.
4459 (catch_exec_command_1): Likewise.
4461 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4463 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4464 Change instance_flags to m_instance_flags.
4466 2020-09-16 Tom Tromey <tromey@adacore.com>
4469 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4471 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4473 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4475 (fbsd_nat_target::insert_exec_catchpoint)
4476 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4477 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4478 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4480 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4482 * configure.ac: Remove check for kinfo_getvmmap().
4483 * configure, config.in: Regenerate.
4484 * fbsd-nat.c (fbsd_read_mapping): Remove
4485 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4486 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4487 kinfo_get_vmmap() are always present.
4489 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4491 * fbsd-nat.c: Always include support for
4492 TARGET_OBJECT_SIGNAL_INFO.
4494 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4496 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4497 sysctl and remove procfs fallback.
4499 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4501 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4502 * fbsd-nat.h: Likewise.
4504 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4506 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4509 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4511 * ada-lang.c (ada_language_data): Delete.
4512 (ada_language): Remove references to ada_language_data.
4513 * c-lang.c (c_language_data): Delete.
4514 (c_language): Remove references to c_language_data.
4515 (cplus_language_data): Delete.
4516 (cplus_language): Remove references to cplus_language_data.
4517 (asm_language_data): Delete.
4518 (asm_language): Remove references to asm_language_data.
4519 (minimal_language_data): Delete.
4520 (minimal_language): Remove references to minimal_language_data.
4521 * d-lang.c (d_language_data): Delete.
4522 (d_language): Remove references to d_language_data.
4523 * f-lang.c (f_language_data): Delete.
4524 (f_language): Remove references to f_language_data.
4525 * go-lang.c (go_language_data): Delete.
4526 (go_language): Remove references to go_language_data.
4527 * language.c (unknown_language_data): Delete.
4528 (unknown_language): Remove references to unknown_language_data.
4529 (auto_language_data): Delete.
4530 (auto_language): Remove references to auto_language_data.
4531 * language.h (language_data): Delete struct.
4532 (language_defn): No longer inherit from language_data.
4533 * m2-lang.c (m2_language_data): Delete.
4534 (m2_language): Remove references to m2_language_data.
4535 * objc-lang.c (objc_language_data): Delete.
4536 (objc_language): Remove references to objc_language_data.
4537 * opencl-lang.c (opencl_language_data): Delete.
4538 (opencl_language): Remove references to opencl_language_data.
4539 * p-lang.c (pascal_language_data): Delete.
4540 (pascal_language): Remove references to pascal_language_data.
4541 * rust-lang.c (rust_language_data): Delete.
4542 (rust_language): Remove references to rust_language_data.
4544 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4546 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4548 (ada_language::opcode_print_table): New member function.
4549 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4550 (c_language::opcode_print_table): New member function.
4551 (cplus_language_data): Remove la_op_print_tab initializer.
4552 (cplus_language::opcode_print_table): New member function.
4553 (asm_language_data): Remove la_op_print_tab initializer.
4554 (asm_language::opcode_print_table): New member function.
4555 (minimal_language_data): Remove la_op_print_tab initializer.
4556 (minimal_language::opcode_print_table): New member function.
4557 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4558 (d_language::opcode_print_table): New member function.
4559 * expprint.c (print_subexp_standard): Update call to
4561 (op_string): Likewise.
4562 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4563 (f_language::opcode_print_table): New member function.
4564 * go-lang.c (go_language_data): Remove la_op_print_tab
4566 (go_language::opcode_print_table): New member function.
4567 * language.c (unknown_language_data): Remove la_op_print_tab
4569 (unknown_language::opcode_print_table): New member function.
4570 (auto_language_data): Remove la_op_print_tab initializer.
4571 (auto_language::opcode_print_table): New member function.
4572 * language.h (language_data): Remove la_op_print_tab field.
4573 (language_defn::opcode_print_table): Declare new member function.
4574 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4576 (m2_language::opcode_print_table): New member function.
4577 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4579 (objc_language::opcode_print_table): New member function.
4580 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4582 (opencl_language::opcode_print_table): New member function.
4583 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4585 (pascal_language::opcode_print_table): New member function.
4586 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4588 (rust_language::opcode_print_table): New member function.
4590 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4592 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4593 (ada_language::expression_ops): New member function.
4594 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4595 (c_language::expression_ops): New member function.
4596 (cplus_language_data): Remove la_exp_desc initializer.
4597 (cplus_language::expression_ops): New member function.
4598 (asm_language_data): Remove la_exp_desc initializer.
4599 (asm_language::expression_ops): New member function.
4600 (minimal_language_data): Remove la_exp_desc initializer.
4601 (minimal_language::expression_ops): New member function.
4602 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4603 (d_language::expression_ops): New member function.
4604 * eval.c (evaluate_subexp): Update call to expression_ops.
4605 * expprint.c (print_subexp): Likewise.
4606 (op_name): Likewise.
4607 (dump_subexp_body): Likewise.
4608 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4609 (f_language::expression_ops): New member function.
4610 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4611 (go_language::expression_ops): New member function.
4612 * language.c (language_defn::expression_ops): New function.
4613 (unknown_language_data): Remove la_exp_desc initializer.
4614 (auto_language_data): Likewise.
4615 * language.h (language_data): Remove la_exp_desc field.
4616 (language_defn::expression_ops): Declare new member function.
4617 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4618 (m2_language::expression_ops): New member function.
4619 * objc-lang.c (objc_language_data): Remove la_exp_desc
4621 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4623 (opencl_language::expression_ops): New member function.
4624 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4625 * parse.c (operator_length): Update call to expression_ops.
4626 (exp_iterate): Likewise.
4627 * rust-lang.c (rust_language_data): Remove la_exp_desc
4629 (ruse_language::expression_ops): New member function.
4631 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4633 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4635 (ada_language::varobj_ops): New member function.
4636 * c-lang.c (c_language_data): Remove la_varobj_ops
4638 (cplus_language_data): Likewise.
4639 (cplus_language::varobj_ops): New member function.
4640 (asm_language_data): Remove la_varobj_ops initializer.
4641 (minimal_language_data): Likewise.
4642 * d-lang.c (d_language_data): Likewise.
4643 * f-lang.c (f_language_data): Likewise.
4644 * go-lang.c (go_language_data): Likewise.
4645 * language.c (language_defn::varobj_ops): New function.
4646 (unknown_language_data): Remove la_varobj_ops
4648 (auto_language_data): Likewise.
4649 * language.h (language_data): Remove la_varobj_ops field.
4650 (language_defn::varobj_ops): Declare new member function.
4651 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4652 * objc-lang.c (objc_language_data): Likewise.
4653 * opencl-lang.c (opencl_language_data): Likewise.
4654 * p-lang.c (pascal_language_data): Likewise.
4655 * rust-lang.c (rust_language_data): Likewise.
4656 * varobj.c (varobj_create): Update call to varobj_ops.
4657 * varobj.h (default_varobj_ops): Delete define.
4659 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4661 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4663 * c-lang.c (c_language_data): Likewise.
4664 (c_language::macro_expansion): New member function.
4665 (cplus_language_data): Likewise.
4666 (cplus_language::macro_expansion): New member function.
4667 (asm_language_data): Likewise.
4668 (asm_language::macro_expansion): New member function.
4669 (minimal_language_data): Likewise.
4670 (minimal_language::macro_expansion): New member function.
4671 * d-lang.c (d_language_data): Remove la_macro_expansion
4673 * f-lang.c (f_language_data): Likewise.
4674 * go-lang.c (go_language_data): Likewise.
4675 * language.c (unknown_language_data): Likewise.
4676 (auto_language_data): Likewise.
4677 * language.h (language_data): Remove la_macro_expansion field.
4678 (language_defn::macro_expansion): New member function.
4679 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4681 * objc-lang.c (objc_language_data): Likewise.
4682 (objc_language::macro_expansion): New member function.
4683 * opencl-lang.c (opencl_language_data): Likewise.
4684 (opencl_language::macro_expansion): New member function.
4685 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4687 * rust-lang.c (rust_language_data): Likewise.
4688 * symtab.c (default_collect_symbol_completion_matches_break_on):
4689 Update call to macro_expansion.
4691 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4693 * ada-lang.c (ada_language_data): Remove la_array_ordering
4695 * c-lang.c (c_language_data): Likewise.
4696 (cplus_language_data): Likewise.
4697 (asm_language_data): Likewise.
4698 (minimal_language_data): Likewise.
4699 * d-lang.c (d_language_data): Likewise.
4700 * dwarf2/read.c (read_array_order): Update for call to
4702 * f-lang.c (f_language_data): Remove la_array_ordering
4704 (f_language::array_ordering): New member function.
4705 * go-lang.c (go_language_data): Remove la_array_ordering
4707 * language.c (unknown_language_data): Likewise.
4708 (auto_language_data): Likewise.
4709 * language.h (language_data): Delete la_array_ordering field.
4710 (language_defn::array_ordering): New member function.
4711 * m2-lang.c (m2_language_data): Remove la_array_ordering
4713 * objc-lang.c (objc_language_data): Likewise.
4714 * opencl-lang.c (opencl_language_data): Likewise.
4715 * p-lang.c (pascal_language_data): Likewise.
4716 * rust-lang.c (rust_language_data): Likewise.
4718 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4720 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4722 * c-lang.c (c_language_data): Likewise.
4723 (cplus_language_data): Likewise.
4724 (asm_language_data): Likewise.
4725 (minimal_language_data): Likewise.
4726 * d-lang.c (d_language_data): Likewise.
4727 * f-lang.c (f_language_data): Likewise.
4728 (f_language::case_sensitivity): New member function.
4729 * go-lang.c (go_language_data): Remove la_case_sensitivity
4731 * language.c (enum case_mode): Moved here from language.h.
4732 (case_mode): Make static.
4733 (show_case_command): Update for case_sensitivity being a method.
4734 (set_case_command): Likewise.
4735 (set_range_case): Likewise.
4736 (unknown_language_data): Remove la_case_sensitivity initializer.
4737 (auto_language_data): Likewise.
4738 * language.h (case_mode): Delete, move enum declaration to
4740 (language_data): Delete la_case_sensitivity field.
4741 (language_defn::case_sensitivity): New member function.
4742 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4744 * objc-lang.c (objc_language_data): Likewise.
4745 * opencl-lang.c (opencl_language_data): Likewise.
4746 * p-lang.c (pascal_language_data): Likewise.
4747 * rust-lang.c (rust_language_data): Likewise.
4749 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4751 * ada-lang.c (ada_language_data): Remove la_range_check
4753 * c-lang.c (c_language_data): Likewise.
4754 (cplus_language_data): Likewise.
4755 (asm_language_data): Likewise.
4756 (minimal_language_data): Likewise.
4757 * d-lang.c (d_language_data): Likewise.
4758 * f-lang.c (f_language_data): Likewise.
4759 (f_language::range_checking_on_by_default): New member function.
4760 * go-lang.c (go_language_data): Remove la_range_check initializer.
4761 * language.c (enum range_mode): Moved here from language.h.
4762 (range_mode): Made static.
4763 (show_range_command): Update to use
4764 range_checking_on_by_default.
4765 (set_range_command): Likewise.
4766 (set_range_case): Likewise.
4767 (unknown_language_data): Remove la_range_check initializer.
4768 (auto_language_data): Likewise.
4769 * language.h (range_mode): Delete. Enum definition moved to
4771 (language_data): Remove la_range_check field.
4772 (language_defn::range_checking_on_by_default): New member
4774 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4775 (m2_language::range_checking_on_by_default): New member function.
4776 * objc-lang.c (objc_language_data): Remove la_range_check
4778 * opencl-lang.c (opencl_language_data): Likewise.
4779 * p-lang.c (pascal_language_data): Likewise.
4780 (pascal_language::range_checking_on_by_default): New member
4782 * rust-lang.c (rust_language_data): Remove la_range_check
4784 (rust_language::range_checking_on_by_default): New member
4787 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4789 * dwarf2/read.c (dwarf2_physname): Remove special case for
4791 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4794 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4796 * ada-lang.c (ada_language_data): Remove
4797 la_store_sym_names_in_linkage_form_p initializer.
4798 (ada_language::store_sym_names_in_linkage_form_p): New member
4800 * c-lang.c (c_language_data): Remove
4801 la_store_sym_names_in_linkage_form_p initializer.
4802 (c_language::store_sym_names_in_linkage_form_p): New member
4804 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4806 (asm_language_data): Likewise.
4807 (asm_language::store_sym_names_in_linkage_form_p): New member
4809 (minimal_language_data): Remove
4810 la_store_sym_names_in_linkage_form_p initializer.
4811 (minimal_language::store_sym_names_in_linkage_form_p): New member
4813 * d-lang.c (d_language_data): Remove
4814 la_store_sym_names_in_linkage_form_p initializer.
4815 * dwarf2/read.c (dwarf2_physname): Update call to
4816 store_sym_names_in_linkage_form_p.
4817 * f-lang.c (f_language_data): Remove
4818 la_store_sym_names_in_linkage_form_p initializer.
4819 * go-lang.c (go_language_data): Remove
4820 la_store_sym_names_in_linkage_form_p initializer.
4821 * language.c (unknown_language_data): Remove
4822 la_store_sym_names_in_linkage_form_p initializer.
4823 (unknown_language::store_sym_names_in_linkage_form_p): New member
4825 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4827 (auto_language::store_sym_names_in_linkage_form_p): New member
4829 * language.h (language_data): Remove
4830 la_store_sym_names_in_linkage_form_p member variable.
4831 (language_defn::store_sym_names_in_linkage_form_p): New member
4833 * m2-lang.c (m2_language_data): Remove
4834 la_store_sym_names_in_linkage_form_p initializer.
4835 * objc-lang.c (objc_language_data): Likewise.
4836 * opencl-lang.c (opencl_language_data): Likewise.
4837 * p-lang.c (pascal_language_data): Likewise.
4838 * rust-lang.c (rust_language_data): Likewise.
4840 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4842 * ada-lang.c (ada_language_data): Remove string_lower_bound
4844 * c-lang.c (c_language_data): Likewise.
4845 (cplus_language_data): Likewise.
4846 (asm_language_data): Likewise.
4847 (minimal_language_data): Likewise.
4848 * d-lang.c (d_language_data): Likewise.
4849 * f-lang.c (f_language_data): Likewise.
4850 * go-lang.c (go_language_data): Likewise.
4851 * language.c (unknown_language_data): Likewise.
4852 (auto_language_data): Likewise.
4853 * language.h (language_data): Remove string_lower_bound field.
4854 (language_defn::string_lower_bound): New member function.
4855 * m2-lang.c (m2_language_data): Remove string_lower_bound
4857 (m2_language::string_lower_bound): New member function.
4858 * objc-lang.c (objc_language_data): Remove string_lower_bound
4860 * opencl-lang.c (opencl_language_data): Likewise.
4861 * p-lang.c (pascal_language_data): Likewise.
4862 * rust-lang.c (rust_language_data): Likewise.
4863 * valops.c (value_cstring): Update call to string_lower_bound.
4864 (value_string): Likewise.
4865 * value.c (allocate_repeated_value): Likewise.
4867 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4869 * valops.c (value_repeat): Fix incorrect argument name in comment.
4871 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4873 * ada-lang.c (ada_language_data): Remove c_style_arrays
4875 (ada_language::c_style_arrays_p): New member fuction.
4876 * c-lang.c (c_language_data): Remove c_style_arrays
4878 (cplus_language_data): Likewise.
4879 (asm_language_data): Likewise.
4880 (minimal_language_data): Likewise.
4881 * d-lang.c (d_language_data): Likewise.
4882 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4883 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4884 (f_language::c_style_arrays_p): New member function.
4885 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4886 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4887 * language.c (unknown_language_data): Remove c_style_arrays
4889 (auto_language_data): Likewise.
4890 * language.h (language_data): Remove c_style_arrays field.
4891 (language_defn::c_style_arrays_p): New member function.
4892 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4893 (m2_language::c_style_arrays_p): New member function.
4894 * objc-lang.c (objc_language_data): Remove c_style_arrays
4896 * opencl-lang.c (opencl_language_data): Likewise.
4897 * p-lang.c (pascal_language_data): Likewise.
4898 * rust-lang.c (rust_language_data): Likewise.
4899 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4900 and update local variable to a bool.
4901 * valops.c (value_cast): Update call to c_style_arrays_p.
4902 (value_array): Likewise.
4903 * value.c (coerce_array): Likewise.
4905 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4907 * ada-lang.c (ada_language_data): Remove la_language initializer.
4908 * c-lang.c (c_language_data): Likewise.
4909 (cplus_language_data): Likewise.
4910 (asm_language_data): Likewise.
4911 (minimal_language_data): Likewise.
4912 * d-lang.c (d_language_data): Likewise.
4913 * f-lang.c (f_language_data): Likewise.
4914 * go-lang.c (go_language_data): Likewise.
4915 * language.c (unknown_language_data): Likewise.
4916 (auto_language_data): Likewise.
4917 * language.h (language_data): Remove la_language field.
4918 (language_defn::language_defn): Initialise la_language field.
4919 (language_defn::la_language): New member variable.
4920 * m2-lang.c (m2_language_data): Remove la_language field.
4921 * objc-lang.c (objc_language_data): Likewise.
4922 * opencl-lang.c (opencl_language_data): Likewise.
4923 * p-lang.c (pascal_language_data): Likewise.
4924 * rust-lang.c (rust_language_data): Likewise.
4926 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4928 * ada-lang.c (ada_extensions): Delete, moved into
4929 ada_language::filename_extensions.
4930 (ada_language_data): Remove la_filename_extensions initializer.
4931 (ada_language::filename_extensions): New member function.
4932 * c-lang.c (c_extensions): Delete, moved into
4933 c_language::filename_extensions.
4934 (c_language_data): Remove la_filename_extensions initializer.
4935 (c_language::filename_extensions): New member function.
4936 (cplus_extensions): Delete, moved into
4937 cplus_language::filename_extensions.
4938 (cplus_language_data): Remove la_filename_extensions initializer.
4939 (cplus_language::filename_extensions): New member function.
4940 (asm_extensions): Delete, moved into
4941 asm_language::filename_extensions.
4942 (asm_language_data): Remove la_filename_extensions initializer.
4943 (asm_language::filename_extensions): New member function.
4944 (minimal_language_data): Remove la_filename_extensions
4946 * d-lang.c (d_extensions): Delete, moved into
4947 d_language::filename_extensions.
4948 (d_language_data): Remove la_filename_extensions initializer.
4949 (d_language::filename_extensions): New member function.
4950 * f-lang.c (f_extensions): Delete, moved into
4951 f_language::filename_extensions.
4952 (f_language_data): Remove la_filename_extensions initializer.
4953 (f_language::filename_extensions): New member function.
4954 * go-lang.c (go_language_data): Remove la_filename_extensions
4956 * language.c (add_set_language_command): Update now that
4957 filename_extensions returns a vector.
4958 (unknown_language_data): Remove la_filename_extensions
4960 (auto_language_data): Likewise.
4961 * language.h (language_data): Remove la_filename_extensions field.
4962 (language_defn::filename_extensions): New member function.
4963 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4965 * objc-lang.c (objc_extensions): Delete, moved into
4966 objc_language::filename_extensions.
4967 (objc_language_data): Remove la_filename_extensions initializer.
4968 (objc_language::filename_extensions): New member function.
4969 * opencl-lang.c (opencl_language_data): Remove
4970 la_filename_extensions initializer.
4971 * p-lang.c (pascal_extensions): Delete, moved into
4972 pascal_language::filename_extensions.
4973 (pascal_language_data): Remove la_filename_extensions initializer.
4974 (pascal_language::filename_extensions): New member function.
4975 * rust-lang.c (rust_extensions): Delete, moved into
4976 rust_language::filename_extensions.
4977 (rust_language_data): Remove la_filename_extensions initializer.
4978 (rust_language::filename_extensions): New member function.
4979 * symfile.c (add_filename_language): Add new assert.
4981 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4983 * ada-lang.c (ada_language_data): Remove la_name and
4984 la_natural_name initializers.
4985 (ada_language::name): New member function.
4986 (ada_language::natural_name): New member function.
4987 * c-lang.c (c_language_data): Remove la_name and
4988 la_natural_name initializers.
4989 (c_language::name): New member function.
4990 (c_language::natural_name): New member function.
4991 (cplus_language_data): Remove la_name and
4992 la_natural_name initializers.
4993 (cplus_language::name): New member function.
4994 (cplus_language::natural_name): New member function.
4995 (asm_language_data): Remove la_name and
4996 la_natural_name initializers.
4997 (asm_language::name): New member function.
4998 (asm_language::natural_name): New member function.
4999 (minimal_language_data): Remove la_name and
5000 la_natural_name initializers.
5001 (minimal_language::name): New member function.
5002 (minimal_language::natural_name): New member function.
5003 * compile/compile.c (compile_to_object): Update call to
5004 lanugage_defn::name.
5005 * d-lang.c (d_language_data): Remove la_name and
5006 la_natural_name initializers.
5007 (d_language::name): New member function.
5008 (d_language::natural_name): New member function.
5009 * expprint.c (print_subexp_standard): Update call to
5010 language_defn::name.
5011 (dump_raw_expression): Likewise
5012 (dump_prefix_expression): Likewise.
5013 * f-lang.c (f_language_data): Remove la_name and
5014 la_natural_name initializers.
5015 (f_language::name): New member function.
5016 (f_language::natural_name): New member function.
5017 * go-lang.c (go_language_data): Remove la_name and
5018 la_natural_name initializers.
5019 (go_language::name): New member function.
5020 (go_language::natural_name): New member function.
5021 * language.c (show_language_command): Update call to
5022 language_defn::name.
5023 (set_language_command): Likewise.
5024 (language_enum): Likewise.
5025 (language_str): Likewise.
5026 (add_set_language_command): Likewise, use
5027 language_defn::natural_name in the doc string.
5028 (unknown_language_data): Remove la_name and
5029 la_natural_name initializers.
5030 (unknown_language::name): New member function.
5031 (unknown_language::natural_name): New member function.
5032 (auto_language_data): Remove la_name and
5033 la_natural_name initializers.
5034 (auto_language::name): New member function.
5035 (auto_language::natural_name): New member function.
5036 (language_lookup_primitive_type_as_symbol): Update call to
5037 language_defn::name.
5038 * language.h (language_data): Remove la_name and la_natural_name
5040 (language_defn::name): New member function.
5041 (language_defn::natural_name): New member function.
5042 * m2-lang.c (m2_language_data): Remove la_name and
5043 la_natural_name initializers.
5044 (m2_language::name): New member function.
5045 (m2_language::natural_name): New member function.
5046 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5047 language_defn::natural_name.
5048 * objc-lang.c (objc_language_data): Remove la_name and
5049 la_natural_name initializers.
5050 (objc_language::name): New member function.
5051 (objc_language::natural_name): New member function.
5052 * opencl-lang.c (opencl_language_data): Remove la_name and
5053 la_natural_name initializers.
5054 (opencl_language::name): New member function.
5055 (opencl_language::natural_name): New member function.
5056 * p-lang.c (pascal_language_data): Remove la_name and
5057 la_natural_name initializers.
5058 (pascal_language::name): New member function.
5059 (pascal_language::natural_name): New member function.
5060 * rust-lang.c (rust_language_data): Remove la_name and
5061 la_natural_name initializers.
5062 (rust_language::name): New member function.
5063 (rust_language::natural_name): New member function.
5064 * symtab.c (lookup_language_this): Update call to
5065 language_defn::name.
5067 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5069 * ada-lang.c (ada_language_data): Remove la_name_of_this
5071 * ax-gdb.c (gen_expr): Update call to name_of_this.
5072 * c-exp.y (classify_name): Likewise.
5073 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5074 (cplus_language_data): Likewise.
5075 (cplus_language::name_of_this): New member function.
5076 (asm_language_data): Remove la_name_of_this initializer.
5077 (minimal_language_data): Likewise.
5078 * d-lang.c (d_language_data): Likewise.
5079 (d_language::name_of_this): New member function.
5080 * expprint.c (print_subexp_standard): Update call to name_of_this.
5081 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5082 * go-lang.c (go_language_data): Likewise.
5083 * language.c (unknown_language_data): Likewise.
5084 (unknown_language::name_of_this): New member function.
5085 (auto_language_data): Remove la_name_of_this initializer.
5086 (auto_language::name_of_this): New member function.
5087 * language.h (language_data): Delete la_name_of_this member
5089 (language_defn::name_of_this): New member function.
5090 * m2-lang.c (m2_language_data): Remove la_name_of_this
5092 * objc-lang.c (objc_language_data): Likewise.
5093 (objc_language::name_of_this): New member function.
5094 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5096 * p-lang.c (pascal_language_data): Likewise.
5097 (pascal_language::name_of_this): New member function.
5098 * rust-lang.c (rust_language_data): Remove la_name_of_this
5100 * symtab.c (lookup_language_this): Update call to name_of_this.
5101 (lookup_symbol_aux): Likewise.
5102 * valops.c (value_of_this): Likewise.
5104 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5106 * ada-lang.c (ada_language_data): Remove
5107 la_struct_too_deep_ellipsis initializer.
5108 (ada_language::struct_too_deep_ellipsis): New member function.
5109 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5111 (cplus_language_data): Likewise.
5112 (asm_language_data): Likewise.
5113 (minimal_language_data): Likewise.
5114 * cp-valprint.c (cp_print_value): Update call to
5115 struct_too_deep_ellipsis.
5116 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5118 * f-lang.c (f_language_data): Likewise.
5119 (f_language::struct_too_deep_ellipsis): New member function.
5120 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5122 * language.c (unknown_language_data): Likewise.
5123 (auto_language_data): Likewise.
5124 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5126 (language_defn::struct_too_deep_ellipsis): New member function.
5127 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5129 * objc-lang.c (objc_language_data): Likewise.
5130 * opencl-lang.c (opencl_language_data): Likewise.
5131 * p-lang.c (pascal_language_data): Likewise.
5132 * rust-lang.c (rust_language_data): Likewise.
5133 * valprint.c (val_print_check_max_depth): Update call to
5134 struct_too_deep_ellipsis.
5136 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5138 * MAINTAINERS (Write After Approval): Add myself.
5140 2020-09-15 Tom Tromey <tom@tromey.com>
5142 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5145 2020-09-15 Tom Tromey <tom@tromey.com>
5147 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5148 and TYPE_CODE_METHODPTR cases.
5149 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5150 (c_value_print_inner): Update.
5151 * valprint.c (generic_value_print_memberptr): New function, from
5152 c_value_print_memberptr.
5153 (generic_value_print): Use it. Call cplus_print_method_ptr.
5155 2020-09-15 Tom Tromey <tromey@adacore.com>
5157 * python/python-internal.h (PyInt_FromLong): Remove define.
5158 * python/py-value.c (convert_value_from_python): Use
5159 gdb_py_object_from_longest.
5160 * python/py-type.c (typy_get_code): Use
5161 gdb_py_object_from_longest.
5162 * python/py-symtab.c (salpy_get_line): Use
5163 gdb_py_object_from_longest.
5164 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5165 gdb_py_object_from_longest.
5166 * python/py-record.c (recpy_gap_reason_code): Use
5167 gdb_py_object_from_longest.
5168 * python/py-record-btrace.c (recpy_bt_insn_size)
5169 (recpy_bt_func_level, btpy_list_count): Use
5170 gdb_py_object_from_longest.
5171 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5172 gdb_py_object_from_longest. Fix error handling.
5173 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5174 gdb_py_object_from_longest.
5175 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5176 gdb_py_object_from_longest.
5177 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5178 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5179 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5181 2020-09-15 Tom Tromey <tromey@adacore.com>
5183 * python/python.c (gdbpy_parameter_value): Use
5184 gdb_py_object_from_ulongest.
5186 2020-09-15 Tom Tromey <tromey@adacore.com>
5188 * python/py-infevents.c (create_register_changed_event_object):
5189 Use gdb_py_object_from_longest.
5190 * python/py-exitedevent.c (create_exited_event_object): Use
5191 gdb_py_object_from_longest.
5193 2020-09-15 Tom Tromey <tromey@adacore.com>
5195 * python/python.c (gdbpy_parameter_value): Use
5196 gdb_py_object_from_longest.
5197 * python/py-type.c (convert_field, typy_range): Use
5198 gdb_py_object_from_longest.
5199 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5200 gdb_py_object_from_longest.
5201 * python/py-lazy-string.c (stpy_get_length): Use
5202 gdb_py_object_from_longest.
5203 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5204 gdb_py_object_from_longest.
5205 * python/py-infevents.c (create_memory_changed_event_object): Use
5206 gdb_py_object_from_longest.
5207 * python/py-inferior.c (infpy_get_num): Use
5208 gdb_py_object_from_longest.
5209 (infpy_get_pid): Likewise.
5211 2020-09-15 Tom Tromey <tromey@adacore.com>
5213 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5215 * python/py-value.c (valpy_long): Use
5216 gdb_py_object_from_ulongest.
5217 * python/py-symtab.c (salpy_get_pc): Use
5218 gdb_py_object_from_ulongest.
5219 (salpy_get_last): Likewise.
5220 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5221 gdb_py_object_from_ulongest.
5222 * python/py-lazy-string.c (stpy_get_address): Use
5223 gdb_py_object_from_ulongest.
5224 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5225 * python/py-arch.c (archpy_disassemble): Use
5226 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5229 2020-09-15 Tom Tromey <tromey@adacore.com>
5231 * python/python-internal.h (gdb_py_long_from_longest): Remove
5233 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5234 * python/py-type.c (convert_field, typy_get_sizeof): Use
5235 gdb_py_object_from_longest.
5236 * python/py-record-btrace.c (btpy_list_index): Use
5237 gdb_py_object_from_longest.
5239 2020-09-15 Tom Tromey <tromey@adacore.com>
5241 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5242 * python/py-record.c (recpy_element_number): Use
5243 gdb_py_object_from_longest.
5244 (recpy_gap_number): Likewise.
5246 2020-09-15 Tom Tromey <tromey@adacore.com>
5248 * top.c (ui::ui): Update.
5249 (highest_ui_num): Remove.
5250 * top.h (struct ui) <num>: Remove.
5252 2020-09-15 Tom Tromey <tromey@adacore.com>
5254 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5255 * ui-style.c (ansi_regex_text): Now array.
5256 * rust-exp.y (number_regex_text): Now array.
5257 * linespec.c (linespec_quote_characters): Now array.
5258 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5261 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5263 * debuginfod-support.c (debuginfod_client_deleter): New.
5264 (debuginfod_client_up): New.
5265 (debuginfod_init): Return debuginfod_client_up.
5266 (debuginfod_source_query): Adjust.
5267 (debuginfod_debuginfo_query): Adjust.
5269 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5271 * debuginfod-support.c (debuginfod_source_query): Use
5272 make_unique_xstrdup.
5274 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5276 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5277 with `type::instance_flags`.
5279 2020-09-14 Michael Mullin <masmullin@gmail.com>
5281 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5282 Remove baton parameter.
5284 2020-09-14 Pedro Alves <pedro@palves.net>
5286 * Makefile.in (SELFTESTS_SRCS): Add
5287 unittests/enum-flags-selftests.c.
5288 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5289 btrace_function_flags instead of enum btrace_function_flag.
5290 * compile/compile-c-types.c (convert_qualified): Use
5292 * compile/compile-cplus-symbols.c (convert_one_symbol)
5293 (convert_symbol_bmsym):
5294 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5295 (compile_cplus_convert_struct_or_union_methods)
5296 (compile_cplus_instance::convert_qualified_base):
5297 * go-exp.y (parse_string_or_char): Add cast to int.
5298 * unittests/enum-flags-selftests.c: New file.
5299 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5300 type to btrace_thread_flags from btrace_thread_flag.
5301 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5302 local's type to btrace_thread_flags from btrace_thread_flag. Add
5305 2020-09-14 Pedro Alves <pedro@palves.net>
5307 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5308 * gdbtypes.c (address_space_name_to_int): Rename to ...
5309 (address_space_name_to_type_instance_flags): ... this.
5310 (address_space_int_to_name): Rename to ...
5311 (address_space_type_instance_flags_to_name): ... this.
5312 * gdbtypes.h (address_space_name_to_int): Rename to ...
5313 (address_space_name_to_type_instance_flags): ... this.
5314 (address_space_int_to_name): Rename to ...
5315 (address_space_type_instance_flags_to_name): ... this.
5316 * type-stack.c (type_stack::insert): Adjust to rename.
5317 * type-stack.h (type_stack::insert): Likewise.
5319 2020-09-14 Pedro Alves <pedro@palves.net>
5320 Andrew Burgess <andrew.burgess@embecosm.com>
5322 * avr-tdep.c (avr_address_class_type_flags): Return
5323 type_instance_flags.
5324 (avr_address_class_type_flags_to_name): Take a
5325 type_instance_flags.
5326 (avr_address_class_name_to_type_flags): Return bool and take a
5327 type_instance_flags.
5328 * d-lang.c (build_d_types): Use type::set_instance_flags.
5329 * ft32-tdep.c (ft32_address_class_type_flags): Return
5330 type_instance_flags.
5331 (ft32_address_class_type_flags_to_name): Take a
5332 type_instance_flags.
5333 (ft32_address_class_name_to_type_flags): Return bool and take a
5334 type_instance_flags.
5335 (ft32_gdbarch_init): Use type::set_instance_flags.
5336 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5337 * gdbarch.h, gdbarch.c: Regenerate.
5338 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5339 (address_class_name_to_type_flags): Use type_instance_flags and
5341 * gdbtypes.c (address_space_name_to_int)
5342 (address_space_int_to_name, make_qualified_type): Use
5343 type_instance_flags.
5344 (make_qualified_type): Use type_instance_flags and
5345 type::set_instance_flags.
5346 (make_type_with_address_space, make_cv_type, make_vector_type)
5347 (check_typedef): Use type_instance_flags.
5348 (recursive_dump_type): Cast type_instance_flags to unsigned for
5350 (copy_type_recursive): Use type::set_instance_flags.
5351 (gdbtypes_post_init): Use type::set_instance_flags.
5352 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5353 <m_instance_flags>: ... this.
5354 <instance_flags, set_instance_flags>: New methods.
5355 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5356 (SET_TYPE_INSTANCE_FLAGS): New.
5357 (address_space_name_to_int, address_space_int_to_name)
5358 (make_type_with_address_space): Pass flags using
5359 type_instance_flags instead of int.
5360 * stabsread.c (cleanup_undefined_types_noname): Use
5361 type::set_instance_flags.
5362 * s390-tdep.c (s390_address_class_type_flags): Return
5363 type_instance_flags.
5364 (s390_address_class_type_flags_to_name): Take a
5365 type_instance_flags.
5366 (s390_address_class_name_to_type_flags): Return bool and take a
5367 type_instance_flags.
5368 * type-stack.c (type_stack::follow_types): Use
5369 type_instance_flags.
5370 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5372 2020-09-14 Tom Tromey <tromey@adacore.com>
5374 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5375 * x86-tdep.c (x86_is_thunk_register_name)
5376 (x86_in_indirect_branch_thunk): Update.
5377 * sparc64-tdep.c (sparc64_fpu_register_names)
5378 (sparc64_cp0_register_names, sparc64_register_names)
5379 (sparc64_pseudo_register_names): Now const.
5380 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5381 cp0_registers_num>: Now const.
5382 * sparc-tdep.c (sparc_core_register_names)
5383 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5384 (sparc32_pseudo_register_names): Now const.
5385 (validate_tdesc_registers): Update.
5386 * rust-lang.c (rust_extensions): Now const.
5387 * p-lang.c (p_extensions): Now const.
5388 * objc-lang.c (objc_extensions): Now const.
5389 * nto-tdep.c (nto_thread_state_str): Now const.
5390 * moxie-tdep.c (moxie_register_names): Now const.
5391 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5393 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5394 (mips_linux_reg_names): Now const.
5395 (mips_gdbarch_init): Update.
5396 * microblaze-tdep.c (microblaze_register_names): Now const.
5397 * m68k-tdep.c (m68k_register_names): Now const.
5398 * m32r-tdep.c (m32r_register_names): Now const.
5399 * ia64-tdep.c (ia64_register_names): Now const.
5400 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5401 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5402 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5403 ymm_avx512_register_names, pkeys_register_names>: Now const.
5404 * i386-tdep.c (i386_register_names, i386_zmm_names)
5405 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5406 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5407 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5408 * f-lang.c (f_extensions): Now const.
5409 * d-lang.c (d_extensions): Now const.
5410 * csky-tdep.c (csky_register_names): Now const.
5411 * charset.c (default_charset_names, charset_enum): Now const.
5412 (_initialize_charset): Update.
5413 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5415 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5416 (bsd_uthread_solib_loaded): Update.
5417 (bsd_uthread_state): Now const.
5418 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5419 (amd64_ymm_avx512_names, amd64_ymmh_names)
5420 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5421 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5422 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5423 (amd64_dword_names): Now const.
5424 * agent.c (can_use_agent_enum): Now const.
5425 * ada-tasks.c (task_states, long_task_states): Now const.
5426 * ada-lang.c (known_runtime_file_name_patterns)
5427 (known_auxiliary_function_name_patterns, attribute_names)
5428 (standard_exc, ada_extensions): Now const.
5430 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5432 * bcache.h (struct bcache) <bcache>: Remove constructor.
5433 <m_hash_function, m_compare_function>: Remove.
5434 <~bcache>: Make virtual.
5435 <compare>: Remove static method, introduce virtual method.
5436 <default_hash>: Remove.
5437 <hash>: New virtual method.
5438 * bcache.c (bcache::expand_hash_table): Update.
5439 (bcache::insert): Update.
5440 (bcache::hash): New.
5441 (bcache::compare): Update comment and parameter names.
5442 * gdbtypes.c (types_deeply_equal): Update.
5443 * psymtab.h (struct psymbol_bcache): New struct.
5444 (class psymtab_storage) <psymtab_storage>: Make default.
5445 <psymbol_cache>: Change type to psymbol_bcache.
5446 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5447 (psymbol_hash): Change to...
5448 (psymbol_bcache::hash): ... this.
5449 (psymbol_compare): Change to...
5450 (psymbol_bcache::compare): ... this.
5452 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5454 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5455 checking for initial lwp.
5457 2020-09-14 Tom Tromey <tromey@adacore.com>
5459 * m68k-tdep.c (m68k_extract_return_value): Use
5460 pointer_result_regnum.
5461 (m68k_store_return_value): Likewise.
5462 (m68k_reg_struct_return_p): Handle vectors and arrays.
5463 (m68k_return_value): Handle arrays.
5464 (m68k_svr4_return_value): Fix single-element aggregate handling.
5465 Handle long double. Adjust for embedded ABI.
5466 (m68k_svr4_init_abi): Set pointer_result_regnum.
5467 (m68k_embedded_init_abi): New function.
5468 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5469 (m68k_osabi_sniffer): New function.
5470 (_initialize_m68k_tdep): Register osabi sniffer.
5471 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5474 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5476 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5477 with gdb::unique_xmalloc_ptr<char>.
5479 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5481 * xml-support.h (xml_fetch_another): Change type to be a
5483 (xml_process_xincludes): Remove baton parameter.
5484 (xml_fetch_content_from_file): Change baton parameter to
5486 * xml-support.c (struct xinclude_parsing_data)
5487 <xinclude_parsing_data>: Remove baton parameter.
5488 <fetcher_baton>: Remove.
5489 (xinclude_start_include): Adjust.
5490 (xml_process_xincludes): Adjust.
5491 (xml_fetch_content_from_file): Replace baton parameter with
5493 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5494 (xml_init_syscalls_info): Use a lambda.
5495 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5496 (file_read_description_xml): Use a lambda.
5497 (fetch_available_features_from_target): Change baton parameter
5499 (target_read_description_xml): Use a lambda.
5500 (target_fetch_description_xml): Use a lambda.
5501 (string_read_description_xml): Update.
5503 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5505 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5506 uses with type::endianity_is_not_default.
5508 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5510 * gdbtypes.h (struct type) <endianity_is_not_default,
5511 set_endianity_is_not_default>: New methods.
5512 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5513 type::endianity_is_not_default, change all write call sites to
5514 use type::set_endianity_is_not_default.
5516 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5518 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5519 uses with type::is_fixed_instance.
5521 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5523 * gdbtypes.h (struct type) <is_fixed_instance,
5524 set_is_fixed_instance>: New methods.
5525 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5526 write call sites to use type::set_is_fixed_instance.
5528 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5530 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5531 uses with type::is_gnu_ifunc.
5533 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5535 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5536 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5537 use type::set_is_gnu_ifunc.
5539 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5541 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5542 uses with type::stub_is_supported.
5544 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5546 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5547 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5548 use type::set_stub_is_supported.
5550 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5552 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5553 uses with type::is_vector.
5555 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5557 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5558 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5559 use type::set_is_vector.
5561 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5563 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5564 uses with type::has_varargs.
5566 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5568 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5569 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5570 use type::set_has_varargs.
5572 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5574 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5575 uses with type::is_prototyped.
5577 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5579 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5581 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5582 call sites to use type::set_is_prototyped.
5584 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5586 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5587 uses with type::target_is_stub.
5589 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5591 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5593 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5594 sites to use type::set_target_is_stub.
5596 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5598 * gdbtypes.h (TYPE_STUB): Remove, replace all
5599 uses with type::is_stub.
5601 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5603 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5604 (TYPE_STUB): Use type::is_stub, change all write call sites to
5605 use type::set_is_stub.
5607 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5609 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5610 type::has_no_signedness.
5612 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5614 * gdbtypes.h (struct type) <has_no_signedness,
5615 set_has_no_signedness>: New methods.
5616 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5617 call sites to use type::set_has_no_signedness.
5619 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5621 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5624 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5626 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5628 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5629 sites to use type::set_is_unsigned.
5631 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5632 Adam Renquinha <arenquinha@cimeq.qc.ca>
5634 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5635 pointer and stack frame offset when unwinding.
5637 2020-09-13 Pedro Alves <pedro@palves.net>
5639 * NEWS: Document "-break-insert --qualified".
5640 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5642 2020-09-13 Pedro Alves <pedro@palves.net>
5644 * linespec.c (classify_mtype, compare_msyms): Delete.
5645 (search_minsyms_for_name): Remove classification logic. Instead
5646 filter out trampoline symbols if we also found an external
5647 function of the same name.
5649 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5651 * NEWS: Create a new section for the next release branch.
5652 Rename the section of the current branch, now that it has
5655 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5657 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5658 * version.in: Bump version to 11.0.50.DATE-git.
5660 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5662 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5664 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5665 Felix Willgerodt <Felix.Willgerodt@intel.com>
5667 * gdbarch.sh: Added bfloat16 type.
5668 * gdbarch.c: Regenerated.
5669 * gdbarch.h: Regenerated.
5670 * gdbtypes.c (floatformats_bfloat16): New struct.
5671 (gdbtypes_post_init): Add builtin_bfloat16.
5672 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5673 (floatformats_bfloat16): New struct.
5674 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5675 (i386_ymm_type): Add field "v16_bfloat16"
5676 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5677 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5678 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5679 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5680 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5681 * features/i386/64bit-avx512.c: Regenerated.
5682 * features/i386/64bit-sse.xml: Add bfloat16 type.
5683 * features/i386/64bit-sse.c: Regenerated.
5685 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5687 * i386-tdep.c (i386_zmm_type): Fix field names.
5688 (i386_ymm_type): Fix field names.
5690 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5692 * breakpoint.c: Fix typo in the help message of the
5693 "set breakpoint condition-evaluation" command.
5695 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5697 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5698 * (nbsd_nat_target::pid_to_exec_file)
5699 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5700 (nbsd_nat_target::post_startup_inferior)
5701 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5702 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5703 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5704 * (nbsd_thread_lister): Remove.
5706 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5708 * fork-inferior.c (startup_inferior): Avoid double free.
5710 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5712 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5713 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5715 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5717 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5718 * netbsd-nat.c: Include <sys/ptrace.h>.
5719 * (netbsd_nat::enable_proc_events): Add.
5721 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5723 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5724 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5725 (netbsd_nat::for_each_thread): Add.
5726 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5727 "gdbsupport/common-debug.h".
5728 * (netbsd_nat::netbsd_thread_lister)
5729 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5730 (netbsd_nat::for_each_thread): Add.
5732 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5734 * netbsd-nat.h: Include <unistd.h>.
5735 * (netbsd_nat::pid_to_exec_file): Add.
5736 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5737 * (netbsd_nat::pid_to_exec_file) Add.
5739 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5741 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5743 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5745 * netbsd-nat.h: New file.
5746 * netbsd-nat.c: Likewise.
5748 2020-09-09 Tom Tromey <tromey@adacore.com>
5750 * ada-lang.c (remove_extra_symbols): Do not increment when
5753 2020-09-08 Tom Tromey <tromey@adacore.com>
5755 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5757 2020-09-08 Tom Tromey <tromey@adacore.com>
5760 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5761 (gdb_bfd_init_data): New function.
5762 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5764 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5766 * infrun.c (fetch_inferior_event): Use
5767 `switch_to_target_no_thread` to switch the target.
5769 2020-09-06 Tom Tromey <tom@tromey.com>
5771 * symfile.h (dwarf2_free_objfile): Don't declare.
5773 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5775 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5776 to match 16 byte real/complex type generated by Flang compiler.
5778 2020-09-03 Tom de Vries <tdevries@suse.de>
5781 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5782 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5784 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5786 * maint.c (index_digits): New function.
5787 (struct maint_print_section_data): Remove.
5788 (print_bfd_section_info): Remove print_data parameter, add arg
5790 (print_objfile_section_info): Likewise.
5791 (print_bfd_section_info_maybe_relocated): Likewise (plus
5793 (maintenance_info_sections): Adjust calls.
5795 2020-09-02 Tom Tromey <tromey@adacore.com>
5797 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5799 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5801 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5803 * bcache.h (struct bcache) <insert>: Change type of `added` to
5805 * bcache.c (bcache::insert): Likewise.
5806 * gdbtypes.c (check_types_worklist): Adjust.
5807 * psymtab.c (add_psymbol_to_bcache): Adjust.
5809 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5811 * corelow.c (unordered_set): Include.
5812 (class core_target): Add field 'm_core_unavailable_mappings'.
5813 (core_target::build_file_mappings): Print only one warning
5814 per inaccessible file. Add unavailable/broken mappings
5815 to m_core_unavailable_mappings.
5816 (core_target::xfer_partial): Call...
5817 (core_target::xfer_memory_via_mappings): New method.
5819 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5821 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5824 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5826 * dwarf2/read.c (struct field_info): Fix indentation.
5828 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5830 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5831 ordering in comment.
5832 * frame.c (frame_id_eq): Fix indentation.
5834 2020-08-31 Scott Linder <scott@scottlinder.com>
5835 Simon Marchi <simon.marchi@efficios.com>
5837 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5838 inline frame ids in outer frame.
5840 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5842 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5843 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5844 (outer_frame_id): Use FID_STACK_OUTER instead of
5846 (frame_id_p): Don't check for outer_frame_id.
5848 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5850 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5851 regnum/frame in value. Call allocate_value_lazy.
5852 * frame.c (frame_unwind_register_value): Use
5853 val_print_not_saved.
5855 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5857 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5859 2020-08-29 Pedro Alves <pedro@palves.net>
5861 * progspace.c (print_program_space): Use all_inferiors. Switch to
5862 the inferior before calling target_pid_to_str.
5864 2020-08-28 Tom Tromey <tom@tromey.com>
5866 * xcoffread.c (xcoff_end_psymtab): Update comment.
5867 * dbxread.c (dbx_end_psymtab): Update comment.
5869 2020-08-28 Tom de Vries <tdevries@suse.de>
5872 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5874 (create_breakpoint): Same.
5875 (base_breakpoint_decode_location): Same.
5876 (bkpt_create_sals_from_location): Same.
5877 (bkpt_decode_location): Same.
5878 (bkpt_probe_create_sals_from_location): Same.
5879 (bkpt_probe_decode_location): Same.
5880 (tracepoint_create_sals_from_location): Same.
5881 (tracepoint_decode_location): Same.
5882 (tracepoint_probe_decode_location): Same.
5883 (strace_marker_create_sals_from_location): Same.
5884 (strace_marker_decode_location): Same.
5885 (create_sals_from_location_default): Same.
5886 (decode_location_default): Same.
5887 * breakpoint.h (struct breakpoint_ops): Same.
5888 (create_breakpoint): Same.
5889 * linespec.h (decode_line_full): Same.
5890 * linespec.c (decode_line_full): Same. Throw error if
5891 result.size () == 0.
5893 2020-08-27 Pedro Alves <pedro@palves.net>
5896 * breakpoint.c (until_break_fsm) <location_breakpoint,
5897 caller_breakpoint>: Delete fields.
5898 <breakpoints>: New field.
5899 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5900 two individual breakpoints.
5901 (until_break_fsm::should_stop): Loop over breakpoints in the
5903 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5905 (until_break_command): Handle location expanding into multiple
5908 2020-08-27 Pedro Alves <pedro@palves.net>
5911 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5912 bp_until breakpoints user-specified locations. Update intro
5915 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5917 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5918 gdb_bfd_sections): New.
5919 * maint.c (print_bfd_section_info): Change param type to
5920 maint_print_section_data.
5921 (print_objfile_section_info): Likewise.
5922 (print_bfd_section_info_maybe_relocated): Likewise.
5923 (maintenance_info_sections): Use gdb_bfd_sections.
5925 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5927 * MAINTAINERS: Add ARC target and maintainer.
5929 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5931 * configure.tgt: ARC support for GNU/Linux.
5932 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5933 * arc-linux-tdep.c: New file.
5934 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5935 * arc-tdep.c (arc_write_pc): Use it.
5937 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5939 * arc-tdep.c (arc_check_for_hardware_loop): New.
5940 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5942 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5944 * arc-tdep.h: Include "gdbarch.h".
5946 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5949 (arc_gdbarch_features): New class to stir the selection of target XML.
5950 (arc_create_target_description): Use FEATURES to choose XML target.
5951 (arc_lookup_target_description): Use arc_create_target_description
5952 to create _new_ target descriptions or return the already created
5953 ones if the FEATURES is the same.
5954 * arch/arc.c: Implementation of prototypes described above.
5955 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5956 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5957 * arc-tdep.c (*_feature_name): Make feature names consistent.
5958 (arc_register_feature): A new struct to hold information about
5959 registers of a particular target/feature.
5960 (arc_check_tdesc_feature): Check if XML provides registers in
5961 compliance with ARC_REGISTER_FEATURE structs.
5962 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5963 (determine_*_reg_feature_set): Which feature name to look for.
5964 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5965 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5966 to expected ISA enums to be used in arc_gdbarch_features structs.
5967 * features/Makefile (FEATURE_XMLFILES): Add new files.
5968 * gdb/features/arc/v1-aux.c: New file.
5969 * gdb/features/arc/v1-aux.xml: Likewise.
5970 * gdb/features/arc/v1-core.c: Likewise.
5971 * gdb/features/arc/v1-core.xml: Likewise.
5972 * gdb/features/arc/v2-aux.c: Likewise.
5973 * gdb/features/arc/v2-aux.xml: Likewise.
5974 * gdb/features/arc/v2-core.c: Likewise.
5975 * gdb/features/arc/v2-core.xml: Likewise.
5976 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5978 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5979 Andrew Burgess <andrew.burgess@embecosm.com>
5982 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5983 an assert. Remove single element array indexing pattern as the
5984 MULTI_SUBSCRIPT support will handle this case too.
5986 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5988 * value.h (valprint_check_validity): Move declaration from
5990 * valprint.h (valprint_check_validity): ... to here.
5992 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5994 * debug.h: New file.
5995 * debug.c (debug_prefixed_vprintf): New function.
5996 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5997 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5999 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6001 * infrun.h (infrun_debug_printf_1): New function declaration.
6002 (infrun_debug_printf): New macro.
6003 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6005 (infrun_debug_printf): New function.
6006 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6007 (handle_jit_event): Likewise.
6009 2020-08-21 Mark Wielaard <mark@klomp.org>
6011 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6013 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
6015 * frame.c (enum class frame_id_status): New.
6016 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6017 (fprintf_frame): Update.
6018 (compute_frame_id): Set frame id status to "computing" on entry.
6019 Set it back to "not_computed" on failure and to "computed" on
6021 (get_frame_id): Assert the frame id is not being computed.
6022 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6023 (create_new_frame): Likewise.
6024 (frame_cleanup_after_sniffer): Update assert.
6026 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6028 * regcache.c (pid_ptid_regcache_map): New type.
6029 (target_ptid_regcache_map): Remove.
6030 (target_pid_ptid_regcache_map): New type.
6031 (regcaches): Change type to target_pid_ptid_regcache_map.
6032 (get_thread_arch_aspace_regcache): Update.
6033 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6035 (regcaches_size): Update.
6036 (regcache_count): Update.
6037 (registers_changed_ptid_target_pid_test): New.
6038 (_initialize_regcache): Register new test.
6040 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6042 * regcache.c (regcache_count): New.
6043 (struct regcache_test_data): New.
6044 (regcache_test_data_up): New.
6045 (populate_regcaches_for_test): New.
6046 (regcaches_test): Remove.
6047 (get_thread_arch_aspace_regcache_test): New.
6048 (registers_changed_ptid_all_test): New.
6049 (registers_changed_ptid_target_test): New.
6050 (registers_changed_ptid_target_ptid_test): New.
6051 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6052 (_initialize_regcache): Register new tests.
6054 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6056 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6057 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6058 gdbarch and aspace parameter. Use current inferior's aspace.
6059 Validate regcache's arch value.
6060 (regcaches_test): Update.
6062 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6064 * regcache.c (regcaches_test): Call registers_changed.
6066 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6068 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6070 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6072 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6073 to find the end of prologue for flang compiled binaries.
6074 * arm-tdep.c (arm_skip_prologue): Likewise.
6075 * i386-tdep.c (i386_skip_prologue): Likewise.
6076 * producer.c (producer_is_llvm): New function.
6077 (producer_parsing_tests): Added new tests for clang/flang.
6078 * producer.h (producer_is_llvm): New declaration.
6080 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6082 * linux-nat.c (linux_nat_debug_printf): New function.
6083 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6085 2020-08-18 Aaron Merey <amerey@redhat.com>
6087 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6088 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6089 (CLIBS): Add DEBUGINFOD_LIBS.
6091 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6093 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6096 2020-08-17 Tom Tromey <tromey@adacore.com>
6098 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6099 ada_get_decoded_value returns NULL.
6101 2020-08-17 Tom Tromey <tromey@adacore.com>
6103 * python/py-inferior.c (infpy_search_memory): Use
6104 gdb_py_object_from_ulongest.
6105 * python/py-infevents.c (create_inferior_call_event_object)
6106 (create_memory_changed_event_object): Use
6107 gdb_py_object_from_ulongest.
6108 * python/py-linetable.c (ltpy_entry_get_pc): Use
6109 gdb_py_object_from_ulongest.
6111 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6113 * loc.c (class symbol_needs_eval_context): Fix indentation.
6115 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6117 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6120 2020-08-17 Tom de Vries <tdevries@suse.de>
6123 * gdbtypes.c (dump_dynamic_prop): New function.
6124 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6126 2020-08-15 Tom de Vries <tdevries@suse.de>
6129 * stack.c (print_frame_args): Temporarily set the selected
6130 frame to FRAME while printing the frame's arguments.
6132 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6134 PR breakpoints/26385
6135 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6136 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6138 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6140 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6141 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6142 and >= to check return value instead of == -1 and != -1.
6144 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6146 * utils.h (class gdb_argv) <as_array_view>: New method.
6147 * utils.c (gdb_argv_as_array_view_test): New.
6148 (_initialize_utils): Register selftest.
6149 * maint.c (maintenance_selftest): Use the new method.
6151 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6153 * target.h (supports_dumpcore, dumpcore): New
6154 function declarations.
6155 * target.c (supports_dumpcore, dumpcore): New
6157 * target-delegates.c: Rebuild.
6158 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6159 and target_dumpcore ().
6161 2020-08-13 Aaron Merey <amerey@redhat.com>
6163 * debuginfod-support.c: Replace global variables with user_data.
6165 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6167 * maint.c (maintenance_selftest): Split args and pass array_view
6170 2020-08-12 Luis Machado <luis.machado@linaro.org>
6172 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6174 Use %s and pulongest to print the length.
6176 2020-08-12 Pedro Alves <palves@redhat.com>
6178 * NEWS: Move "Multi-target debugging support" item to the
6179 "Changes since GDB 9" section.
6181 2020-08-12 Pedro Alves <palves@redhat.com>
6184 * progspace.c (program_space::remove_objfile): Invalidate the
6187 2020-08-11 Tom de Vries <tdevries@suse.de>
6189 * MAINTAINERS: Mark ms1 as deleted.
6191 2020-08-10 Luis Machado <luis.machado@linaro.org>
6195 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6197 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6198 movz/str/stur/stp skipping behavior.
6200 2020-08-10 Luis Machado <luis.machado@linaro.org>
6202 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6203 struct user_sve_header instead of struct sve_context.
6205 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6207 * read.h (dwarf2_fetch_die_loc_sect_off,
6208 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6209 `void *` parameter with function_view.
6210 * read.c (dwarf2_fetch_die_loc_sect_off,
6211 dwarf2_fetch_die_loc_cu_off): Likewise.
6212 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6213 (per_cu_dwarf_call): Adjust.
6214 (get_frame_address_in_block_wrapper): Remove.
6215 (indirect_synthetic_pointer): Adjust.
6216 (get_ax_pc): Remove.
6217 (dwarf2_compile_expr_to_ax): Adjust.
6219 2020-08-08 Tom de Vries <tdevries@suse.de>
6222 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6224 * regcache.c (get_thread_arch_aspace_regcache): Same.
6226 2020-08-07 Tom Tromey <tromey@adacore.com>
6228 * ravenscar-thread.c
6229 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6231 (ravenscar_thread_target::wait): Check
6232 runtime_initialized.
6233 (ravenscar_thread_target::prepare_to_store)
6234 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6235 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6236 (ravenscar_thread_target::stopped_by_watchpoint)
6237 (ravenscar_thread_target::stopped_data_address)
6238 (ravenscar_thread_target::core_of_thread): Use
6239 scoped_restore_current_thread and
6240 set_base_thread_from_ravenscar_task.
6242 2020-08-07 Tom Tromey <tromey@adacore.com>
6244 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6246 2020-08-07 Tom Tromey <tromey@adacore.com>
6248 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6249 update_inferior_ptid before update_thread_list.
6250 (temporarily_change_regcache_ptid): New class.
6251 (ravenscar_thread_target::fetch_registers)
6252 (ravenscar_thread_target::store_registers)
6253 (ravenscar_thread_target::prepare_to_store): Use base thread when
6254 forwarding operation.
6256 2020-08-07 Tom Tromey <tromey@adacore.com>
6258 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6261 2020-08-07 Tom Tromey <tromey@adacore.com>
6263 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6265 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6267 (ravenscar_thread_target::add_thread): Rename from
6268 ravenscar_add_thread.
6269 (ravenscar_thread_target::update_thread_list): Use a lambda.
6270 (ravenscar_thread_target::xfer_partial): New method.
6272 2020-08-07 Tom Tromey <tromey@adacore.com>
6274 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6276 (iterate_over_live_ada_tasks): Change type of argument.
6277 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6280 2020-08-07 Tom Tromey <tromey@adacore.com>
6282 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6284 (ravenscar_thread_target::extra_thread_info): Remove.
6285 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6286 defer to target beneath for non-Ravenscar threads.
6288 2020-08-07 Tom Tromey <tromey@adacore.com>
6290 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6291 get_base_thread_from_ravenscar_task>: Now methods.
6292 <m_cpu_map>: New member.
6293 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6294 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6295 (ravenscar_thread_target::task_is_currently_active): Update.
6296 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6298 (ravenscar_thread_target::add_active_thread): Put initial thread
6301 2020-08-07 Tom Tromey <tromey@adacore.com>
6303 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6306 2020-08-07 Tom Tromey <tromey@adacore.com>
6308 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6309 runtime_initialized.
6311 2020-08-07 Tom Tromey <tromey@adacore.com>
6313 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6315 (ravenscar_thread_target::add_active_thread): Now public.
6316 (ravenscar_inferior_created): Call add_active_thread after pushing
6319 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6321 * regcache.c (ptid_regcache_map): New type.
6322 (target_ptid_regcache_map): New type.
6323 (regcaches): Change type to target_ptid_regcache_map.
6324 (get_thread_arch_aspace_regcache): Update to regcaches' new
6326 (regcache_thread_ptid_changed): Likewise.
6327 (registers_changed_ptid): Likewise.
6328 (regcaches_size): Likewise.
6329 (regcaches_test): Update.
6330 (regcache_thread_ptid_changed): Update.
6331 * regcache.h (regcache_up): New type.
6332 * gdbsupport/ptid.h (hash_ptid): New struct.
6334 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6336 * observable.h (thread_ptid_changed): Add parameter
6337 `process_stratum_target *`.
6338 * infrun.c (infrun_thread_ptid_changed): Add parameter
6339 `process_stratum_target *` and use it.
6340 (selftests): New namespace.
6341 (infrun_thread_ptid_changed): New function.
6342 (_initialize_infrun): Register selftest.
6343 * regcache.c (regcache_thread_ptid_changed): Add parameter
6344 `process_stratum_target *` and use it.
6345 (regcache_thread_ptid_changed): New function.
6346 (_initialize_regcache): Register selftest.
6347 * thread.c (thread_change_ptid): Pass target to
6348 thread_ptid_changed observable.
6350 2020-08-06 Caroline Tice <cmtice@google.com>
6352 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6353 (struct dwp_sections): Update field comments. Add loclists and
6355 (struct virtual_v2_dwo_sections): Rename struct to
6356 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6357 size & offset fields for loclists and rnglists.
6358 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6359 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6360 skipping dummy type units.
6361 (create_dwp_hash_table): Update the large comment above the function to
6362 discuss Version 5 DWP files as well, with references. Update all the
6363 version checks in the function to check for version 5 as well. Add new
6364 section at the end to create dwp hash table for version 5.
6365 (create_dwp_v2_section): Rename function to
6366 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6367 Add V5 to error message text.
6368 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6369 into calls to create_dwp_v2_or_v5_section.
6370 (create_dwo_unit_in_dwp_v5): New function.
6371 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6372 check for version2; add else clause to handle version 5.
6373 (open_and_init_dwo_file): Add code to check dwarf version & only call
6374 create_debug_types_hash_table (with sections.types) if version is not 5;
6375 else call create_debug_type_hash_table, with sections.info.
6376 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6378 (dwarf2_locate_v5_dwp_sections): New function.
6379 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6380 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6382 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6384 * regcache.h (class regcache): Remove friend
6385 registers_changed_ptid.
6386 <regcache_thread_ptid_changed>: Remove.
6387 <regcaches>: Remove.
6388 * regcache.c (regcache::regcaches): Rename to...
6389 (regcaches): ... this. Make static.
6390 (get_thread_arch_aspace_regcache): Update.
6391 (regcache::regcache_thread_ptid_changed): Rename to...
6392 (regcache_thread_ptid_changed): ... this. Update.
6393 (class regcache_access): Remove.
6394 (regcaches_test): Update.
6395 (_initialize_regcache): Update.
6396 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6399 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6401 * regcache.h (class regcache) <current_regcache>: Rename to...
6402 <regcaches>: ... this. Move doc here.
6403 * regcache.c (regcache::current_regcache) Rename to...
6404 (regcache::regcaches): ... this. Move doc to header.
6405 (get_thread_arch_aspace_regcache): Update.
6406 (regcache::regcache_thread_ptid_changed): Update.
6407 (registers_changed_ptid): Update.
6408 (class regcache_access) <current_regcache_size>: Rename to...
6409 <regcaches_size>: ... this.
6410 (current_regcache_test): Rename to...
6411 (regcaches_test): ... this.
6412 (_initialize_regcache): Update.
6414 2020-08-06 Victor Collod <vcollod@nvidia.com>
6416 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6418 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6420 * corelow.c (core_target::build_file_mappings): Don't output
6421 null pathname in warning.
6423 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6425 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6426 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6427 gdb.dwarf2/dw2-single-line-discriminators.exp,
6428 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6430 2020-08-05 Tom Tromey <tromey@adacore.com>
6433 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6434 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6435 Fix off-by-one and type size errors in ordinary case.
6437 2020-08-05 Tom de Vries <tdevries@suse.de>
6439 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6440 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6442 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6444 * frame.h (frame_id_p): Return bool.
6445 (frame_id_artificial_p): Return bool.
6446 (frame_id_eq): Return bool.
6447 (has_stack_frames): Return bool.
6448 (get_selected_frame): Fix typo in comment.
6449 (get_frame_pc_if_available): Return bool.
6450 (get_frame_address_in_block_if_available): Return bool.
6451 (get_frame_func_if_available): Return bool.
6452 (read_frame_register_unsigned): Return bool.
6453 (get_frame_register_bytes): Return bool.
6454 (safe_frame_unwind_memory): Return bool.
6455 (deprecated_frame_register_read): Return bool.
6456 (frame_unwinder_is): Return bool.
6457 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6459 <this_id::p>: Likewise.
6461 (frame_stash_add): Return bool.
6462 (get_frame_id): Use bool.
6463 (frame_id_build_special) Use bool.
6464 (frame_id_build_unavailable_stack): Use bool.
6465 (frame_id_build): Use bool.
6466 (frame_id_p): Return bool, use true/false instead of 1/0.
6467 (frame_id_artificial_p): Likewise.
6468 (frame_id_eq): Likewise.
6469 (frame_id_inner): Likewise.
6470 (get_frame_func_if_available): Likewise.
6471 (read_frame_register_unsigned): Likewise.
6472 (deprecated_frame_register_read): Likewise.
6473 (get_frame_register_bytes): Likewise.
6474 (has_stack_frames): Likewise.
6475 (inside_main_func): Likewise.
6476 (inside_entry_func): Likewise.
6477 (get_frame_pc_if_available): Likewise.
6478 (get_frame_address_in_block_if_available): Likewise.
6479 (frame_unwinder_is): Likewise.
6480 (safe_frame_unwind_memory): Likewise.
6481 (frame_unwind_arch): Likewise.
6483 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6485 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6486 type to cached_copy_status.
6487 (fprintf_frame): Adjust.
6488 (get_frame_func_if_available): Adjust.
6489 (frame_cleanup_after_sniffer): Adjust.
6491 2020-08-04 Mark Wielaard <mark@klomp.org>
6493 * MAINTAINERS (Write After Approval): Update email address.
6495 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6497 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6498 dynamic_prop::const_val.
6500 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6502 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6505 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6507 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6509 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6511 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6513 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6514 Jose E. Marchesi <jose.marchesi@oracle.com>
6516 * configure.tgt: Add entry for bpf-*-*.
6517 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6518 (ALLDEPFILES): Add bpf-tdep.c.
6519 * bpf-tdep.c: New file.
6520 * MAINTAINERS: Add bpf target and maintainer.
6521 * NEWS: Mention the support for the new target.
6523 2020-08-04 Tom de Vries <tdevries@suse.de>
6526 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6529 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6531 * syscalls/freebsd.xml: Regenerate.
6533 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6535 * syscalls/update-freebsd.sh: Fix usage and year range.
6537 2020-08-03 Tom de Vries <tdevries@suse.de>
6540 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6541 DW_LNE_lo_user/DW_LNE_hi_user range.
6543 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6546 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6549 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6551 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6553 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6555 * breakpoint.c (set_breakpoint_condition): Update the condition
6556 expressions after checking that the input condition string parses
6557 successfully and does not contain junk at the end.
6559 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6561 * breakpoint.c (set_breakpoint_condition): Update the
6562 condition string after parsing the new condition successfully.
6564 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6566 * proc-api.c (_STRUCTURED_PROC): Don't define.
6567 * proc-events.c: Likewise.
6568 * proc-flags.c: Likewise.
6569 * proc-why.c: Likewise.
6570 * procfs.c: Likewise.
6572 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6573 * configure, config.in: Regenerate.
6575 2020-07-30 Tom de Vries <tdevries@suse.de>
6578 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6579 m_red/m_green/m_blue in a union.
6581 2020-07-29 Tom de Vries <tdevries@suse.de>
6584 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6586 2020-07-28 Tom Tromey <tromey@adacore.com>
6589 * symtab.h (find_pc_partial_function_sym): Declare.
6590 * cli/cli-cmds.c (disassemble_command): Use
6591 find_pc_partial_function_sym. Check asm_demangle.
6592 * blockframe.c (cache_pc_function_sym): New global.
6593 (cache_pc_function_name): Remove.
6594 (clear_pc_function_cache): Update.
6595 (find_pc_partial_function_sym): New function, from
6596 find_pc_partial_function.
6597 (find_pc_partial_function): Rewrite using
6598 find_pc_partial_function_sym.
6600 2020-07-28 Tom Tromey <tromey@adacore.com>
6602 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6605 2020-07-28 Tom Tromey <tromey@adacore.com>
6607 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6608 <DW_OP_GNU_variable_value>: Cast to address type.
6610 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6612 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6613 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6614 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6615 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6616 (nbsd_get_siginfo_type): New.
6617 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6618 (_initialize_nbsd_tdep): New.
6620 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6623 * configure: Regenerated.
6625 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6628 * configure: Regenerated.
6630 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6632 * python/py-frame.c: Remove 'user-regs.h' include.
6633 (frapy_read_register): Rewrite to make use of
6634 gdbpy_parse_register_id.
6635 * python/py-registers.c (gdbpy_parse_register_id): New function,
6636 moved here from python/py-unwind.c. Updated the return type, and
6637 also accepts register descriptor objects.
6638 * python/py-unwind.c: Remove 'user-regs.h' include.
6639 (pyuw_parse_register_id): Moved to python/py-registers.c.
6640 (unwind_infopy_add_saved_register): Update to use
6641 gdbpy_parse_register_id.
6642 (pending_framepy_read_register): Likewise.
6643 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6645 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6647 * python/py-registers.c: Add 'user-regs.h' include.
6648 (register_descriptor_iter_find): New function.
6649 (register_descriptor_iterator_object_methods): New static global
6651 (register_descriptor_iterator_object_type): Add pointer to methods
6654 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6656 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6657 for all architectures on FreeBSD 11.3 and later.
6659 2020-07-27 Tom Tromey <tromey@adacore.com>
6661 * gcore.h (load_corefile): Don't declare.
6663 2020-07-27 Tom de Vries <tdevries@suse.de>
6665 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6666 * config.in: Regenerate.
6667 * configure: Regenerate.
6669 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6671 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6672 ws2tcpip.h. When checking whether socklen_t type is defined, use
6673 ws2tcpip.h if it is available and sys/socket.h isn't.
6674 * configure: Regenerate.
6675 * config.in: Regenerate.
6677 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6681 * valops.c (value_ind): Pass address to
6682 readjust_indirect_value_type.
6683 * value.c (readjust_indirect_value_type): Make parameter
6684 non-const, and add extra address parameter. Resolve original type
6686 * value.h (readjust_indirect_value_type): Update function
6687 signature and comment.
6689 2020-07-25 Tom de Vries <tdevries@suse.de>
6692 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6695 2020-07-24 Aaron Merey <amerey@redhat.com>
6697 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6698 * configure: Rebuild.
6700 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6703 * corelow.c (_initialize_corelow): Add period to help text
6704 for "maintenance print core-file-backed-mappings".
6706 2020-07-23 Pedro Alves <pedro@palves.net>
6708 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6709 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6711 * frame.c (frame_cache_generation, get_frame_cache_generation):
6713 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6714 (get_prev_frame_if_no_cycle): On exception, don't touch
6715 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6716 * frame.h (get_frame_cache_generation): Declare.
6718 2020-07-23 Tom de Vries <tdevries@suse.de>
6721 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6722 New default constructor.
6724 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6726 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6727 exclude non-statement entries.
6729 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6731 * NEWS (New commands): Mention new command
6732 "maintenance print core-file-backed-mappings".
6734 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6736 * corelow.c (gdbcmd.h): Include.
6737 (core_target::info_proc_mappings): New method.
6738 (get_current_core_target): New function.
6739 (maintenance_print_core_file_backed_mappings): New function.
6740 (_initialize_corelow): Add core-file-backed-mappings to
6741 "maint print" commands.
6743 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6745 * linux-tdep.c (dump_note_entry_p): New function.
6746 (linux_dump_mapping_p_ftype): New typedef.
6747 (linux_find_memory_regions_full): Add new parameter,
6748 should_dump_mapping_p.
6749 (linux_find_memory_regions): Adjust call to
6750 linux_find_memory_regions_full.
6751 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6752 call to linux_find_memory_regions_full.
6754 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6756 * corelow.c (solist.h, unordered_map): Include.
6757 (class core_target): Add field m_core_file_mappings and
6758 method build_file_mappings.
6759 (core_target::core_target): Call build_file_mappings.
6760 (core_target::~core_target): Free memory associated with
6761 m_core_file_mappings.
6762 (core_target::build_file_mappings): New method.
6763 (core_target::xfer_partial): Use m_core_file_mappings
6764 for memory transfers.
6765 * linux-tdep.c (linux_read_core_file_mappings): New
6767 (linux_core_info_proc_mappings): Rewrite to use
6768 linux_read_core_file_mappings.
6769 (linux_init_abi): Register linux_read_core_file_mappings.
6771 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6773 * arch-utils.c (default_read_core_file_mappings): New function.
6774 * arch-utils.c (default_read_core_file_mappings): Declare.
6775 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6776 * gdbarch.h, gdbarch.c: Regenerate.
6778 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6781 * corelow.c (core_target:xfer_partial): Revise
6782 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6783 case after first checking the stratum beneath the core
6785 (has_all_memory): Return true.
6786 * target.c (raw_memory_xfer_partial): Revise comment
6787 regarding use of has_all_memory.
6789 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6791 * exec.h (section_table_xfer_memory): Revise declaration,
6792 replacing section name parameter with an optional callback
6794 * exec.c (section_table_xfer_memory): Likewise.
6795 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6796 of section_table_xfer_memory.
6798 2020-07-22 Tom Tromey <tromey@adacore.com>
6800 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6801 lookup_symbol_search_name.
6803 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6805 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6806 redundant local variable.
6807 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6808 reference, not pointer, update code accordingly.
6810 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6811 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6813 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6814 * jit.c (jit_breakpoint_re_set_internal): Use the
6815 `skip_jit_symbol_lookup` field.
6817 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6818 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6820 * jit.c (jit_read_descriptor): Define the descriptor address once,
6822 (jit_breakpoint_deleted): Move the declaration of the loop variable
6823 `iter` into the loop header.
6824 (jit_breakpoint_re_set_internal): Move the declaration of the local
6825 variable `objf_data` to the first point of definition.
6826 (jit_event_handler): Move the declaration of local variables
6827 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6828 Rename `objf` to `jited`.
6830 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6832 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6834 * jit.c (get_jiter_objfile_data): Update.
6836 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6837 Simon Marchi <simon.marchi@polymtl.ca>
6839 * jit.c (struct jit_program_space_data): Remove.
6840 (jit_program_space_key): Remove.
6841 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6843 (get_jit_program_space_data): Remove.
6844 (jit_breakpoint_deleted): Iterate on all of the program space's
6846 (jit_inferior_init): Likewise.
6847 (jit_breakpoint_re_set_internal): Likewise. Also change return
6849 (jit_breakpoint_re_set): Pass current_program_space to
6850 jit_breakpoint_re_set_internal.
6852 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6854 * jit.h (struct jiter_objfile_data) <cached_code_address,
6855 jit_breakpoint>: Move to here from ...
6856 * jit.c (jit_program_space_data): ... here.
6857 (jiter_objfile_data::~jiter_objfile_data): Update.
6858 (jit_breakpoint_deleted): Update.
6859 (jit_breakpoint_re_set_internal): Update.
6861 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6863 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6865 (jit_read_descriptor): Remove NULL check.
6866 (jit_event_handler): Add an assertion.
6868 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6870 * jit.h (struct jit_objfile_data): Split into...
6871 (struct jiter_objfile_data): ... this ...
6872 (struct jited_objfile_data): ... and this.
6873 * objfiles.h (struct objfile) <jit_data>: Remove.
6874 <jiter_data, jited_data>: New fields.
6875 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6876 (jiter_objfile_data::~jiter_objfile_data): ... this.
6877 (get_jit_objfile_data): Rename to ...
6878 (get_jiter_objfile_data): ... this.
6879 (add_objfile_entry): Update.
6880 (jit_read_descriptor): Use get_jiter_objfile_data.
6881 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6882 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6883 (jit_inferior_exit_hook): Use objfile's jited_data field.
6885 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6887 * jit.h: Forward-declare `struct minimal_symbol`.
6888 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6889 constructor, destructor, and an objfile* field.
6890 * jit.c (jit_objfile_data): Remove.
6891 (struct jit_objfile_data): Migrate from here to jit.h.
6892 (jit_objfile_data::~jit_objfile_data): New destructor
6893 implementation with code moved from free_objfile_data.
6894 (free_objfile_data): Delete.
6895 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6896 (jit_find_objf_with_entry_addr): Ditto.
6897 (jit_inferior_exit_hook): Ditto.
6898 (_initialize_jit): Remove the call to
6899 register_objfile_data_with_cleanup.
6900 * objfiles.h (struct objfile) <jit_data>: New field.
6902 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6904 * jit.h: Forward-declare `struct objfile`.
6905 (jit_event_handler): Add a second parameter, the JITer objfile.
6906 * jit.c (jit_read_descriptor): Change the signature to take the
6907 JITer objfile as an argument instead of the jit_program_space_data.
6908 (jit_inferior_init): Update the call to jit_read_descriptor.
6909 (jit_event_handler): Use the new JITer objfile argument when calling
6910 jit_read_descriptor.
6911 * breakpoint.c (handle_jit_event): Update the call to
6912 jit_event_handler to pass the JITer objfile.
6914 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6916 * gdbarch.c: Regenerate.
6917 * gdbarch.h: Regenerate.
6918 * gdbarch.sh (handle_segmentation_fault): Remove method.
6919 * infrun.c (handle_segmentation_fault): Remove.
6920 (print_signal_received_reason): Remove call to
6921 handle_segmentation_fault.
6923 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6925 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6926 Rename to sparc64_linux_report_signal_info and add siggnal
6928 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6929 instead of sparc64_linux_handle_segmentation_fault.
6931 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6933 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6934 i386_linux_report_signal_info instead of
6935 i386_linux_handle_segmentation_fault.
6936 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6937 to i386_linux_report_signal_info and add siggnal argument.
6938 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6939 of i386_linux_handle_segmentation_fault.
6940 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6941 to i386_linux_report_signal_info and add siggnal argument.
6943 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6945 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6948 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6950 * gdbarch.c: Regenerate.
6951 * gdbarch.h: Regenerate.
6952 * gdbarch.sh (report_signal_info): New method.
6953 * infrun.c (print_signal_received_reason): Invoke gdbarch
6954 report_signal_info hook if present.
6956 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6958 * python/py-registers.c : Add 'unordered_map' include.
6959 (gdbpy_new_reggroup): Renamed to...
6960 (gdbpy_get_reggroup): ...this. Update to only create register
6961 group descriptors when needed.
6962 (gdbpy_reggroup_iter_next): Update.
6964 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6966 * python/py-registers.c (gdbpy_register_object_data): New static
6968 (gdbpy_register_object_data_init): New function.
6969 (gdbpy_new_register_descriptor): Renamed to...
6970 (gdbpy_get_register_descriptor): ...this, and update to reuse
6971 existing register descriptors where possible.
6972 (gdbpy_register_descriptor_iter_next): Update.
6973 (gdbpy_initialize_registers): Register new gdbarch data.
6975 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6977 * linux-nat.c (stopped_pids): Make static.
6979 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6982 * gdbtypes.c (ada_discrete_type_low_bound,
6983 ada_discrete_type_high_bound): Handle undefined bounds.
6985 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6987 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6989 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6992 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6994 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6995 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6996 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6997 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6998 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7001 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7003 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7004 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7005 which are deprecated in Guile 3.0.
7006 * configure.ac (try_guile_versions): Add "guile-3.0".
7007 * configure (try_guile_versions): Regenerate.
7008 * NEWS: Update entry.
7010 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7011 Doug Evans <dje@google.com>
7014 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7015 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7016 USING_GUILE_BEFORE_2_2.
7017 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7018 Change type to 'scm_t_port_type *'.
7019 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7020 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7021 parameter and honor it. Update callers.
7022 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7023 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7025 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7026 USING_GUILE_BEFORE_2_2.
7027 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7028 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7029 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7030 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7031 and 'SCM_PORT_TYPE'.
7032 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7033 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7034 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7035 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7036 [!USING_GUILE_BEFORE_2_2]: New functions.
7037 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7038 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7039 'gdbscm_memory_port_read'.
7040 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7041 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7042 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7044 (ioscm_init_memory_port): Remove.
7045 (ioscm_init_memory_port_stream): New function
7046 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7048 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7049 Return scm_from_uint (0).
7050 (gdbscm_set_memory_port_read_buffer_size_x)
7051 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7052 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7053 Return scm_from_uint (0).
7054 (gdbscm_set_memory_port_write_buffer_size_x)
7055 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7056 * configure.ac (try_guile_versions): Add "guile-2.2".
7057 * configure: Regenerate.
7060 2020-07-18 Tom Tromey <tom@tromey.com>
7062 * linux-nat.c (linux_multi_process): Remove.
7063 (linux_nat_target::supports_multi_process): Return true.
7065 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7067 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7068 (riscv_lookup_target_description): Return pointer out of
7070 * target-descriptions.c (allocate_target_description): Add
7072 (target_desc_deleter::operator()): Likewise.
7073 * target-descriptions.h (struct target_desc_deleter): Moved to
7075 (target_desc_up): Likewise.
7077 2020-07-17 Tom Tromey <tromey@adacore.com>
7079 * linux-nat.c (linux_nat_target::supports_non_stop)
7080 (linux_nat_target::always_non_stop_p): Use "true".
7081 (linux_nat_target::supports_disable_randomization): Use "true" and
7084 2020-07-16 Caroline Tice <cmtice@google.com>
7086 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7087 (RNGLIST_HEADER_SIZE64): New constant definition.
7088 (struct dwop_section_names): Add rnglists_dwo.
7089 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7090 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7091 (struct dwo_sections): Add rnglists field.
7092 (read_attribut_reprocess): Add tag parameter.
7093 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7094 (cu_debug_rnglists_section): New function (decl & definition).
7095 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7096 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7097 die whose range is being checked; get rnglist section from
7098 cu_debug_rnglists_section, to get from either objfile or dwo file as
7099 appropriate. Add cases for DW_RLE_base_addressx,
7100 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7101 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7102 test inside if-condition and updating complaint message.
7103 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7104 dwarf2_rnglists_process.
7105 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7106 dwarf2_ranges_process.
7107 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7108 need_ranges_base and update comment appropriately. Also pass die tag
7109 to dwarf2_ranges_read.
7110 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7111 need_ranges_base and update comment appropriately. Also pass die tag
7112 to dwarf2_ranges_process.
7113 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7114 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7115 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7116 need_ranges_base and update comment appropriately. Also pass die tag
7117 to read_attribute_reprocess and dwarf2_ranges_read.
7118 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7119 and update function comment appropriately.
7120 (read_loclist_index): Call read_loclists_rnglists_header instead of
7121 read_loclist_header.
7122 (read_rnglist_index): New function.
7123 (read_attribute_reprocess): Add tag parameter. Add code for
7124 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7125 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7127 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7129 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7132 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7134 * arch-utils.c (show_architecture): Update formatting of messages.
7136 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7138 * gdbtypes.h (struct type) <bounds>: Handle array and string
7140 * ada-lang.c (assign_aggregate): Use type::bounds on
7142 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7143 * c-varobj.c (c_number_of_children): Likewise.
7144 (c_describe_child): Likewise.
7145 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7146 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7147 (f_type_print_base): Likewise.
7148 * f-valprint.c (f77_array_offset_tbl): Likewise.
7149 (f77_get_upperbound): Likewise.
7150 (f77_print_array_1): Likewise.
7151 * guile/scm-type.c (gdbscm_type_range): Likewise.
7152 * m2-typeprint.c (m2_array): Likewise.
7153 (m2_is_long_set_of_type): Likewise.
7154 * m2-valprint.c (get_long_set_bounds): Likewise.
7155 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7156 * python/py-type.c (typy_range): Likewise.
7157 * rust-lang.c (rust_internal_print_type): Likewise.
7158 * type-stack.c (type_stack::follow_types): Likewise.
7159 * valarith.c (value_subscripted_rvalue): Likewise.
7160 * valops.c (value_cast): Likewise.
7162 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7164 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7165 callers to use the equivalent accessor methods.
7167 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7169 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7170 (struct type) <bit_stride>: New method.
7171 (TYPE_BIT_STRIDE): Remove.
7172 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7174 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7176 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7177 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7178 callers to use the equivalent accessor methods instead.
7180 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7182 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7183 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7184 callers to use the equivalent accessor methods instead.
7186 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7188 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7189 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7190 to use dynamic_prop::kind.
7192 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7194 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7195 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7196 to get the bound property's kind and check against
7199 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7201 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7202 all callers to use type::range_bounds followed by
7203 dynamic_prop::{low,high}.
7205 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7207 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7208 const_val, set_const_val, baton, set_locexpr, set_loclist,
7209 set_addr_offset, variant_parts, set_variant_parts,
7210 original_type, set_original_type>: New methods.
7211 <kind>: Rename to...
7212 <m_kind>: ... this. Update all users to use the new methods
7214 <data>: Rename to...
7215 <m_data>: ... this. Update all users to use the new methods
7218 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7220 * gdbtypes.c (get_discrete_bounds): Return failure if
7221 the range type's bounds are not both defined and constant
7223 (get_array_bounds): Update comment. Remove undefined bound check.
7225 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7227 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7228 the type::bounds method directly.
7230 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7232 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7233 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7234 are used to set the range type's bounds to use set_bounds.
7236 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7238 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7240 2020-07-10 Pedro Alves <pedro@palves.net>
7242 * gdbthread.h (inferior_ref): Define.
7243 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7244 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7246 (scoped_restore_current_thread::restore):
7247 Adjust to gdb::ref_ptr.
7248 (scoped_restore_current_thread::~scoped_restore_current_thread):
7249 Remove manual decref handling.
7250 (scoped_restore_current_thread::scoped_restore_current_thread):
7252 inferior_ref::new_reference/thread_info_ref::new_reference.
7253 Incref the thread before calling get_frame_id instead of after.
7254 Let TARGET_CLOSE_ERROR propagate.
7256 2020-07-10 Pedro Alves <pedro@palves.net>
7258 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7259 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7260 NOT_AVAILABLE_ERROR.
7261 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7262 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7264 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7265 Pedro Alves <pedro@palves.net>
7268 * infrun.c (threads_are_resumed_pending_p): Delete.
7269 (do_target_wait): Remove threads_are_executing and
7270 threads_are_resumed_pending_p checks from the inferior_matches
7271 lambda. Update comments.
7273 2020-07-10 Pedro Alves <pedro@palves.net>
7276 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7279 2020-07-10 Pedro Alves <pedro@palves.net>
7282 * infrun.c (handle_no_resumed): Handle multiple targets.
7284 2020-07-10 Pedro Alves <pedro@palves.net>
7287 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7290 2020-07-10 Pedro Alves <pedro@palves.net>
7293 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7294 threads, not all threads.
7296 2020-07-10 Pedro Alves <pedro@palves.net>
7299 * remote.c (remote_target::open_1): Pass remote target pointer as
7300 data to create_async_event_handler.
7301 (remote_async_inferior_event_handler): Mark async event handler
7302 before returning if the remote target still has either pending
7303 events or unacknowledged notifications.
7305 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7307 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7309 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7312 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7314 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7317 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7319 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7320 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7321 AT_FREEBSD_PS_STRINGS.
7323 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7325 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7326 of debugfile path on Windows.
7328 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7330 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7333 2020-07-08 Tom Tromey <tromey@adacore.com>
7335 * ada-lang.c (ada_exception_message_1): Use read_memory.
7337 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7340 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7341 special handling for inline frames.
7342 * findvar.c (value_of_register_lazy): Skip inline frames when
7343 creating lazy register values.
7344 * frame.c (frame_id_computed_p): Delete definition.
7345 * frame.h (frame_id_computed_p): Delete declaration.
7347 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7349 * NEWS: Mention additions to Python API.
7350 * python/py-arch.c (archpy_register_groups): New function.
7351 (arch_object_methods): Add 'register_groups' method.
7352 * python/py-registers.c (reggroup_iterator_object): New struct.
7353 (reggroup_object): New struct.
7354 (gdbpy_new_reggroup): New function.
7355 (gdbpy_reggroup_to_string): New function.
7356 (gdbpy_reggroup_name): New function.
7357 (gdbpy_reggroup_iter): New function.
7358 (gdbpy_reggroup_iter_next): New function.
7359 (gdbpy_new_reggroup_iterator): New function
7360 (gdbpy_initialize_registers): Register new types.
7361 (reggroup_iterator_object_type): Define new Python type.
7362 (gdbpy_reggroup_getset): New static global.
7363 (reggroup_object_type): Define new Python type.
7364 * python/python-internal.h
7366 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7368 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7369 * python/py-arch.c (archpy_registers): New function.
7370 (arch_object_methods): Add 'registers' method.
7371 * python/py-registers.c: New file.
7372 * python/python-internal.h
7373 (gdbpy_new_register_descriptor_iterator): Declare.
7374 (gdbpy_initialize_registers): Declare.
7375 * python/python.c (do_start_initialization): Call
7376 gdbpy_initialize_registers.
7377 * NEWS: Mention additions to the Python API.
7379 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7381 * NEWS: Mention new Python API method.
7382 * python/py-unwind.c (pending_framepy_architecture): New function.
7383 (pending_frame_object_methods): Add architecture method.
7385 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7387 * gdbarch.c: Regenerate.
7388 * gdbarch.h: Regenerate.
7389 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7390 (gdbarch_data): Use internal_error for the case where
7391 deprecated_set_gdbarch_data was originally needed.
7392 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7393 and use passed in obstack.
7394 (libunwind_frame_set_descr): Should no longer get back NULL from
7396 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7398 * user-regs.c (user_regs_init): Update parameters, and use passed
7400 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7401 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7403 2020-07-06 Tom de Vries <tdevries@suse.de>
7405 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7406 End-Of-Sequence in lte_is_less_than.
7407 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7408 "gdb: Don't reorder line table entries too much when sorting".
7410 2020-07-06 Tom de Vries <tdevries@suse.de>
7413 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7415 2020-07-05 Tom de Vries <tdevries@suse.de>
7418 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7419 std::uncaught_exceptions instead of deprecated
7420 std::uncaught_exception.
7422 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7424 * macroexp.h (macro_stringify): Return
7425 gdb::unique_xmalloc_ptr<char>.
7426 * macroexp.c (macro_stringify): Likewise.
7427 * macrotab.c (fixup_definition): Update.
7429 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7431 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7432 (lex_one_token): Update.
7433 * macroexp.c (struct macro_buffer) <release>: Return
7434 gdb::unique_xmalloc_ptr<char>.
7435 (macro_stringify): Update.
7436 (macro_expand): Update.
7437 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7438 * macroexp.h (macro_expand_next): Likewise.
7440 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7442 * macroexp.h (macro_lookup_ftype): Remove.
7443 (macro_expand, macro_expand_once, macro_expand_next): Remove
7444 lookup function parameters, add scope parameter.
7445 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7446 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7447 * macroscope.h (standard_macro_lookup): Change parameter type
7449 * macroscope.c (standard_macro_lookup): Likewise.
7450 * c-exp.y (lex_one_token): Update.
7451 * macrocmd.c (macro_expand_command): Likewise.
7452 (macro_expand_once_command): Likewise.
7454 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7456 * inf-loop.c (inferior_event_handler): Remove client_data param.
7457 * inf-loop.h (inferior_event_handler): Likewise.
7458 * infcmd.c (step_1): Adjust.
7459 * infrun.c (proceed): Adjust.
7460 (fetch_inferior_event): Remove client_data param.
7461 (infrun_async_inferior_event_handler): Adjust.
7462 * infrun.h (fetch_inferior_event): Remove `void *` param.
7463 * linux-nat.c (handle_target_event): Adjust.
7464 * record-btrace.c (record_btrace_handle_async_inferior_event):
7466 * record-full.c (record_full_async_inferior_event_handler):
7468 * remote.c (remote_async_inferior_event_handler): Adjust.
7470 2020-07-01 Tom Tromey <tom@tromey.com>
7472 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7473 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7475 2020-07-01 Tom Tromey <tom@tromey.com>
7477 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7479 (tui_win_info::make_window): Merge with
7480 tui_gen_win_info::make_window.
7481 (tui_win_info::make_visible): Move from tui_gen_win_info.
7482 * tui/tui-win.c (tui_win_info::max_width): Move from
7484 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7486 <window_factory>: Likewise.
7487 * tui/tui-layout.c (tui_win_info::resize): Move from
7489 (make_standard_window): Change return type.
7490 (get_locator_window, tui_get_window_by_name): Likewise.
7491 (tui_layout_window::apply): Remove a cast.
7492 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7493 (struct tui_win_info): Merge with tui_gen_win_info.
7494 (struct tui_gen_win_info): Remove.
7496 2020-07-01 Tom Tromey <tom@tromey.com>
7498 * tui/tui-stack.h (struct tui_locator_window): Derive from
7500 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7501 <can_box>: New method.
7503 2020-07-01 Tom Tromey <tom@tromey.com>
7505 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7507 2020-07-01 Tom Tromey <tom@tromey.com>
7509 * tui/tui-regs.c (tui_data_window::display_registers_from)
7510 (tui_data_window::display_registers_from)
7511 (tui_data_window::first_data_item_displayed)
7512 (tui_data_window::delete_data_content_windows): Update.
7513 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7515 (tui_data_window::check_register_values): Update.
7516 (tui_data_item_window::rerender): Add parameters. Update.
7517 (tui_data_item_window::refresh_window): Remove.
7518 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7520 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7522 <refresh_window, max_height, min_height>: Remove.
7523 <rerender>: Add parameters.
7524 <x, y, visible>: New members.
7525 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7526 <m_item_width>: New member.
7528 2020-07-01 Tom Tromey <tom@tromey.com>
7530 * tui/tui-regs.c (tui_data_window::show_register_group)
7531 (tui_data_window::check_register_values): Update.
7532 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7535 2020-07-01 Tom Tromey <tom@tromey.com>
7537 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7540 2020-07-01 Tom Tromey <tom@tromey.com>
7542 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7543 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7545 2020-07-01 Tom Tromey <tom@tromey.com>
7547 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7548 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7549 (struct tui_line_or_address): Move from tui-data.h.
7550 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7551 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7552 (tui_cmd_window, tui_source_window_base, tui_source_window)
7553 (tui_disasm_window): Don't declare.
7554 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7556 (SINGLE_KEY): Move to tui-stack.c.
7558 2020-07-01 Tom Tromey <tom@tromey.com>
7560 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7562 * tui/tui-regs.c (class tab_expansion_file): New.
7563 (tab_expansion_file::write): New method.
7564 (tui_register_format): Change return type. Use
7566 (tui_get_register, tui_data_window::display_registers_from)
7567 (tui_data_item_window::rerender): Update.
7568 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7569 * tui/tui-io.c (tui_expand_tabs): Remove.
7571 2020-07-01 Tom Tromey <tom@tromey.com>
7573 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7575 2020-07-01 Fangrui Song <maskray@google.com>
7577 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7579 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7581 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7582 forms for DW_AT_associated and DW_AT_allocated attributes,
7583 which is already checked in function attr_to_dynamic_prop.
7585 2020-06-30 Tom Tromey <tromey@adacore.com>
7587 * dwarf2/read.c (quirk_rust_enum): Correctly call
7588 alloc_rust_variant for default-less enum.
7590 2020-06-30 Tom Tromey <tromey@adacore.com>
7593 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7596 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7598 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7599 * gdbarch.h: Re-generate.
7601 2020-06-28 Tom Tromey <tom@tromey.com>
7603 * command.h (cmd_types): Remove.
7604 (cmd_type): Don't declare.
7605 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7607 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7608 * cli/cli-decode.c (cmd_type): Remove.
7610 2020-06-27 Pedro Alves <palves@redhat.com>
7612 * fork-child.c (prefork_hook): Adjust.
7613 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7615 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7616 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7617 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7618 Remove declarations.
7619 (struct inferior) <set_tty, tty>: New methods.
7620 (struct inferior) <terminal>: Rename to ...
7621 (struct inferior) <m_terminal>: ... this and make private.
7622 * main.c (captured_main_1): Adjust.
7623 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7624 (mi_cmd_inferior_tty_show): Adjust.
7625 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7626 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7628 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7630 * configure.ac: Add --enable-libctf: handle --disable-static
7632 * acinclude.m4: sinclude ../config/enable.m4.
7633 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7634 (LIBCTF): Substitute in.
7635 (CTF_DEPS): New, likewise.
7636 (CLIBS): libctf needs symbols from libbfd: move earlier.
7637 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7639 * ctfread.c: Surround in ENABLE_LIBCTF.
7640 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7641 * configure: Regenerate.
7642 * config.in: Likewise.
7644 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7646 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7648 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7650 * inferior.h (struct inferior) <terminal>: Change type to
7651 gdb::unique_xmalloc_ptr<char>.
7652 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7653 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7654 field, adjust to unique pointer.
7655 (get_inferior_io_terminal): Adjust to unique pointer.
7657 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7659 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7660 registers, not just the known core set of registers.
7662 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7664 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7665 fflags, frm, and fcsr registers.
7666 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7668 (riscv_tdesc_unknown_reg): New function.
7669 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7670 tdesc_use_registers.
7671 * riscv-tdep.h (struct gdbarch_tdep): Add
7672 unknown_csrs_first_regnum, unknown_csrs_count,
7673 duplicate_fflags_regnum, duplicate_frm_regnum, and
7674 duplicate_fcsr_regnum fields.
7676 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7678 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7679 callback, use the callback (when not null) to help number unknown
7681 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7682 (tdesc_use_registers): Add extra parameter to declaration.
7684 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7686 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7688 (class riscv_pending_register_alias): Likewise.
7689 (riscv_register_feature::register_info): Change 'required_p' field
7690 to 'required', and change its type. Add 'check' member function.
7691 (riscv_register_feature::register_info::check): Define new member
7693 (riscv_xreg_feature): Change initialisation of 'required' field.
7694 (riscv_freg_feature): Likewise.
7695 (riscv_virtual_feature): Likewise.
7696 (riscv_csr_feature): Likewise.
7697 (riscv_check_tdesc_feature): Take extra parameter, the csr
7698 tdesc_feature, rewrite the function to use the new
7699 riscv_register_feature::register_info::check function.
7700 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7702 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7704 * features/Makefile: Remove all references to the deleted files
7706 * features/riscv/32bit-csr.c: Deleted.
7707 * features/riscv/32bit-csr.xml: Deleted.
7708 * features/riscv/64bit-csr.c: Deleted.
7709 * features/riscv/64bit-csr.xml: Deleted.
7710 * features/riscv/rebuild-csr-xml.sh: Deleted.
7712 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7714 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7715 whitespace error for declaration of names member variable.
7716 (struct riscv_register_feature): Add new prefer_first_name member
7717 variable, and fix whitespace error in declaration of registers.
7718 (riscv_xreg_feature): Initialize prefer_first_name field.
7719 (riscv_freg_feature): Likewise.
7720 (riscv_virtual_feature): Likewise.
7721 (riscv_csr_feature): Likewise.
7722 (riscv_register_name): Expand on comments. Remove register name
7723 modifications for CSR and virtual registers.
7725 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7727 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7730 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7732 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7734 (class riscv_pending_register_alias): New class.
7735 (riscv_check_tdesc_feature): Take vector of pending aliases and
7736 populate it as appropriate.
7737 (riscv_setup_register_aliases): Delete.
7738 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7739 to riscv_check_tdesc_feature in all cases. Use the vector to
7740 create the register aliases.
7742 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7744 * sol2-tdep.c (sol2_static_transform_name): Remove.
7745 (sol2_init_abi): Don't register it.
7746 * gdbarch.sh (static_transform_name): Remove.
7747 * gdbarch.c, gdbarch.h: Regenerate.
7749 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7750 gdbarch_static_transform_name.
7751 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7752 * stabsread.c (define_symbol) <'X'>: Remove.
7753 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7756 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7757 <'S'>: Remove call to gdbarch_static_transform_name.
7759 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7761 * procfs.c (procfs_pre_trace): New function.
7762 (procfs_target::create_inferior): Pass it to fork_inferior.
7764 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7766 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7767 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7768 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7769 sol2-tdep.o, sparc-sol2-tdep.o.
7770 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7771 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7772 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7773 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7775 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7777 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7778 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7780 Remove calls to set_gdbarch_skip_solib_resolver,
7781 set_gdbarch_core_pid_to_str.
7782 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7783 (i386_sol2_static_transform_name): Remove.
7784 (i386_sol2_init_abi): Call sol2_init_abi.
7785 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7786 set_gdbarch_static_transform_name,
7787 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7788 Use sol2_sigtramp_p.
7789 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7790 (sol2_sigtramp_p): New function.
7791 (sol2_static_transform_name): New function.
7792 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7793 (sol2_init_abi): New function.
7794 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7795 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7796 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7797 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7798 (sparc_sol2_static_transform_name): Remove.
7799 (sparc32_sol2_init_abi): Call sol2_init_abi.
7800 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7801 set_gdbarch_static_transform_name,
7802 set_gdbarch_skip_solib_resolver,
7803 set_gdbarch_core_pid_to_str.
7804 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7805 (sparc_sol2_static_transform_name): Remove
7806 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7807 call sol2_sigtramp_p.
7808 (sparc64_sol2_init_abi): Call sol2_init_abi.
7809 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7810 set_gdbarch_static_transform_name,
7811 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7813 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7815 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7816 * exec.c (validate_exec_file): If from_tty, set both
7817 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7818 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7819 and from_tty, unconditionally ask a confirmation.
7821 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7823 * target-descriptions.c (tdesc_architecture_name): Protect against
7824 NULL pointer dereference.
7825 (maint_print_xml_tdesc_cmd): New function.
7826 (_initialize_target_descriptions): Register new 'maint print
7827 xml-tdesc' command and give it the filename completer.
7828 * NEWS: Mention new 'maint print xml-tdesc' command.
7830 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7832 * target-descriptions.c (class tdesc_compatible_info): New class.
7833 (struct target_desc): Change type of compatible vector.
7834 (tdesc_compatible_p): Update for change in type of
7835 target_desc::compatible.
7836 (tdesc_compatible_info_list): New function.
7837 (tdesc_compatible_info_arch_name): New function.
7838 (tdesc_add_compatible): Update for change in type of
7839 target_desc::compatible.
7840 (print_c_tdesc::visit_pre): Likewise.
7842 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7844 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7845 whitespace to underscore.
7846 (maint_print_c_tdesc_cmd): Use fake filename for target
7847 descriptions that came from the target.
7848 (_initialize_target_descriptions): Add filename command completion
7849 for 'maint print c-tdesc'.
7851 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7853 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7856 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7858 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7860 (dwarf2_find_location_expression): Likewise.
7861 (call_site_parameter_matches): Likewise.
7862 (dwarf2_compile_expr_to_ax): Likewise.
7863 (disassemble_dwarf_expression): Likewise.
7864 (loclist_describe_location): Likewise.
7866 2020-06-23 Pedro Alves <palves@redhat.com>
7868 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7869 progspace-and-thread.h. Include scoped-mock-context.h instead.
7870 (register_to_value_test): Use scoped_mock_context.
7871 * regcache.c: Include "scoped-mock-context.h".
7872 (cooked_read_test): Don't error out if a target is already pushed.
7873 Use scoped_mock_context. Adjust.
7874 * scoped-mock-context.h: New file.
7876 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7878 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7880 (ada_language::is_string_type_p): New member function.
7881 * c-lang.c (c_language_data): Delete la_is_string_type_p
7883 (cplus_language_data): Likewise.
7884 (asm_language_data): Likewise.
7885 (minimal_language_data): Likewise.
7886 * d-lang.c (d_language_data): Likewise.
7887 * f-lang.c (f_is_string_type_p): Delete function, implementation
7888 moved to f_language::is_string_type_p.
7889 (f_language_data): Delete la_is_string_type_p initializer.
7890 (f_language::is_string_type_p): New member function,
7891 implementation from f_is_string_type_p.
7892 * go-lang.c (go_is_string_type_p): Delete function, implementation
7893 moved to go_language::is_string_type_p.
7894 (go_language_data): Delete la_is_string_type_p initializer.
7895 (go_language::is_string_type_p): New member function,
7896 implementation from go_is_string_type_p.
7897 * language.c (language_defn::is_string_type_p): Define new member
7899 (default_is_string_type_p): Make static, add comment copied from
7901 (unknown_language_data): Delete la_is_string_type_p initializer.
7902 (unknown_language::is_string_type_p): New member function.
7903 (auto_language_data): Delete la_is_string_type_p initializer.
7904 (auto_language::is_string_type_p): New member function.
7905 * language.h (language_data): Delete la_is_string_type_p field.
7906 (language_defn::is_string_type_p): Declare new function.
7907 (default_is_string_type_p): Delete desclaration, move comment to
7909 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7910 moved to m2_language::is_string_type_p.
7911 (m2_language_data): Delete la_is_string_type_p initializer.
7912 (m2_language::is_string_type_p): New member function,
7913 implementation from m2_is_string_type_p.
7914 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7916 * opencl-lang.c (opencl_language_data): Likewise.
7917 * p-lang.c (pascal_is_string_type_p): Delete function,
7918 implementation moved to pascal_language::is_string_type_p.
7919 (pascal_language_data): Delete la_is_string_type_p initializer.
7920 (pascal_language::is_string_type_p): New member function,
7921 implementation from pascal_is_string_type_p.
7922 * rust-lang.c (rust_is_string_type_p): Delete function,
7923 implementation moved to rust_language::is_string_type_p.
7924 (rust_language_data): Delete la_is_string_type_p initializer.
7925 (rust_language::is_string_type_p): New member function,
7926 implementation from rust_is_string_type_p.
7927 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7930 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7932 * ada-lang.c (ada_language_data): Delete la_print_typedef
7934 (ada_language::print_typedef): New member function.
7935 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7936 (cplus_language_data): Likewise.
7937 (asm_language_data): Likewise.
7938 (minimal_language_data): Likewise.
7939 * d-lang.c (d_language_data): Likewise.
7940 * f-lang.c (f_language_data): Likewise.
7941 (f_language::print_typedef): New member function.
7942 * go-lang.c (go_language_data): Delete la_print_typedef
7944 * language.c (language_defn::print_typedef): Define member
7946 (unknown_language_data): Delete la_print_typedef initializer.
7947 (unknown_language::print_typedef): New member function.
7948 (auto_language_data): Delete la_print_typedef initializer.
7949 (auto_language::print_typedef): New member function.
7950 * language.h (language_data): Delete la_print_typedef field.
7951 (language_defn::print_typedef): Declare new member function.
7952 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7953 (default_print_typedef): Delete declaration.
7954 * m2-lang.c (m2_language_data): Delete la_print_typedef
7956 (m2_language::print_typedef): New member function.
7957 * objc-lang.c (objc_language_data): Delete la_print_typedef
7959 * opencl-lang.c (opencl_language_data): Likewise.
7960 * p-lang.c (pascal_language_data): Likewise.
7961 (pascal_language::print_typedef): New member function.
7962 * rust-lang.c (rust_print_typedef): Delete function,
7963 implementation moved to rust_language::print_typedef.
7964 (rust_language): Delete la_print_typedef initializer.
7965 (rust_language::print_typedef): New member function,
7966 implementation from rust_print_typedef.
7967 * typeprint.c (default_print_typedef): Delete.
7969 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7971 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7972 (ada_language::printstr): New member function.
7973 * c-lang.c (c_language_data): Delete la_printstr initializer.
7974 (cplus_language_data): Likewise.
7975 (asm_language_data): Likewise.
7976 (minimal_language_data): Likewise.
7977 * d-lang.c (d_language_data): Likewise.
7978 * f-lang.c (f_printstr): Rename to f_language::printstr.
7979 (f_language_data): Delete la_printstr initializer.
7980 (f_language::printstr): New member function, implementation from
7982 * go-lang.c (go_language_data): Delete la_printstr initializer.
7983 * language.c (language_defn::printstr): Define new member
7985 (unk_lang_printstr): Delete.
7986 (unknown_language_data): Delete la_printstr initializer.
7987 (unknown_language::printstr): New member function.
7988 (auto_language_data): Delete la_printstr initializer.
7989 (auto_language::printstr): New member function.
7990 * language.h (language_data): Delete la_printstr field.
7991 (language_defn::printstr): Declare new member function.
7992 (LA_PRINT_STRING): Update call to printstr.
7993 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7994 (m2_language_data): Delete la_printstr initializer.
7995 (m2_language::printstr): New member function, implementation from
7997 * objc-lang.c (objc_language_data): Delete la_printstr
7999 * opencl-lang.c (opencl_language_data): Likewise.
8000 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8001 (pascal_language_data): Delete la_printstr initializer.
8002 (pascal_language::printstr): New member function, implementation
8003 from pascal_printstr.
8004 * p-lang.h (pascal_printstr): Delete declaration.
8005 * rust-lang.c (rust_printstr): Update header comment.
8006 (rust_language_data): Delete la_printstr initializer.
8007 (rust_language::printstr): New member function.
8009 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8011 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8012 (ada_language::printchar): New member function.
8013 * c-lang.c (c_language_data): Delete la_printchar initializer.
8014 (cplus_language_data): Likewise.
8015 (asm_language_data): Likewise.
8016 (minimal_language_data): Likewise.
8017 * d-lang.c (d_language_data): Likewise.
8018 * f-lang.c (f_printchar): Rename to f_language::printchar.
8019 (f_language_data): Delete la_printchar initializer.
8020 (f_language::printchar): New member function, implementation from
8022 * go-lang.c (go_language_data): Delete la_printchar initializer.
8023 * language.c (unk_lang_printchar): Delete.
8024 (language_defn::printchar): Define new member function.
8025 (unknown_language_data): Delete la_printchar initializer.
8026 (unknown_language::printchar): New member function.
8027 (auto_language_data): Delete la_printchar initializer.
8028 (auto_language::printchar): New member function.
8029 * language.h (language_data): Delete la_printchar field.
8030 (language_defn::printchar): Declare new member function.
8031 (LA_PRINT_CHAR): Update call to printchar.
8032 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8033 (m2_language::printchar): New member function.
8034 * objc-lang.c (objc_language_data): Delete la_printchar
8036 * opencl-lang.c (opencl_language_data): Likewise.
8037 * p-lang.c (pascal_language_data): Delete la_printchar
8039 (pascal_language::printchar): New member function.
8040 * rust-lang.c (rust_printchar): Rename to
8041 rust_language::printchar.
8042 (rust_language_data): Delete la_printchar initializer.
8043 (rust_language::printchar): New member function, implementation
8044 from rust_printchar.
8046 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8048 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8049 (ada_language_data): Delete la_emitchar initializer.
8050 (ada_language::emitchar): New member function, implementation from
8052 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8053 (cplus_language_data): Likewise.
8054 (asm_language_data): Likewise.
8055 (minimal_language_data): Likewise.
8056 * d-lang.c (d_language_data): Likewise.
8057 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8058 (f_language_data): Delete la_emitchar initializer.
8059 (f_language::emitchar): New member function, implementation from
8061 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8062 * language.c (unk_lang_emit_char): Delete.
8063 (language_defn::emitchar): New member function definition.
8064 (unknown_language_data): Delete la_emitchar initializer.
8065 (unknown_language::emitchar): New member function.
8066 (auto_language_data): Delete la_emitchar initializer.
8067 (auto_language::emitchar): New member function.
8068 * language.h (language_data): Delete la_emitchar field.
8069 (language_defn::emitchar): New member field declaration.
8070 (LA_EMIT_CHAR): Update call to emitchar.
8071 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8072 (m2_language_data): Delete la_emitchar initializer.
8073 (m2_language::emitchar): New member function, implementation from
8075 * objc-lang.c (objc_language_data): Delete la_emitchar
8077 * opencl-lang.c (opencl_language_data): Likewise.
8078 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8079 (pascal_language_data): Delete la_emitchar initializer.
8080 (pascal_language::emitchar): New member function, implementation
8081 from pascal_emit_char.
8082 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8083 (rust_language_data): Delete la_emitchar initializer.
8084 (rust_language::emitchar): New member function, implementation
8087 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8089 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8090 (ada_language_data): Delete la_post_parser initializer.
8091 (ada_language::post_parser): New member function.
8092 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8093 (cplus_language_data): Likewise.
8094 (asm_language_data): Likewise.
8095 (minimal_language_data): Likewise.
8096 * d-lang.c (d_language_data): Likewise.
8097 * f-lang.c (f_language_data): Likewise.
8098 * go-lang.c (go_language_data): Likewise.
8099 * language.c (unknown_language_data): Likewise.
8100 (auto_language_data): Likewise.
8101 * language.h (language_data): Delete la_post_parser field.
8102 (language_defn::post_parser): New member function.
8103 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8104 * objc-lang.c (objc_language_data): Likewise.
8105 * opencl-lang.c (opencl_language_data): Likewise.
8106 * p-lang.c (pascal_language_data): Likewise.
8107 * parse.c (parse_exp_in_context): Update call to post_parser.
8108 (null_post_parser): Delete definition.
8109 * parser-defs.h (null_post_parser): Delete declaration.
8110 * rust-lang.c (rust_language_data): Delete la_post_parser
8113 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8115 * ada-lang.c (parse): Rename to ada_language::parser.
8116 (ada_language_data): Delete la_parser initializer.
8117 (ada_language::parser): New member function, implementation from
8119 * c-lang.c (c_language_data): Delete la_parser initializer.
8120 (cplus_language_data): Likewise.
8121 (asm_language_data): Likewise.
8122 (minimal_language_data): Likewise.
8123 * d-lang.c (d_language_data): Likewise.
8124 (d_language::parser): New member function.
8125 * f-lang.c (f_language_data): Delete la_parser initializer.
8126 (f_language::parser): New member function.
8127 * go-lang.c (go_language_data): Delete la_parser initializer.
8128 (go_language::parser): New member function.
8129 * language.c (unk_lang_parser): Delete.
8130 (language_defn::parser): Define new member function.
8131 (unknown_language_data): Delete la_parser initializer.
8132 (unknown_language::parser): New member function.
8133 (auto_language_data): Delete la_parser initializer.
8134 (auto_language::parser): New member function.
8135 * language.h (language_data): Delete la_parser field.
8136 (language_defn::parser): Declare new member function.
8137 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8138 (m2_language::parser): New member function.
8139 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8140 * opencl-lang.c (opencl_language_data): Likewise.
8141 * p-lang.c (pascal_language_data): Likewise.
8142 (pascal_language::parser): New member function.
8143 * parse.c (parse_exp_in_context): Update call to parser.
8144 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8145 (rust_language::parser): New member function.
8147 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8149 * top.c (print_gdb_configuration): Print --with-python-libdir
8150 configuration value.
8152 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8154 * NEWS: Mention change to the alias command.
8156 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8158 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8159 (alias_command_completer)
8160 (make_alias_options_def_group): New functions.
8161 (alias_opts, alias_option_defs): New struct and array.
8162 (alias_usage_error): Update usage.
8163 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8164 Use option framework.
8165 (_initialize_cli_cmds): Update alias command help.
8166 Update aliases command help.
8168 Add NULL for new default_args lookup_cmd argument.
8169 (valid_command_p): Rename to validate_aliased_command.
8170 Add NULL for new default_args lookup_cmd argument. Verify that the
8171 aliased_command has no default args.
8172 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8173 (lookup_cmd_1, lookup_cmd): New argument default_args.
8175 Add NULL for new default_args lookup_cmd argument.
8176 (print_help_for_command): Show default args under the layout
8177 alias some_alias = some_aliased_cmd some_alias_default_arg.
8178 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8179 xfree default_args in destructor.
8180 * cli/cli-script.c (process_next_line, do_define_command):
8181 Add NULL for new default_args lookup_cmd argument.
8182 * command.h: Declare new default_args argument in lookup_cmd
8184 * completer.c (complete_line_internal_1):
8185 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8186 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8187 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8189 * infcmd.c (_initialize_infcmd): Likewise.
8190 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8191 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8192 * python/py-param.c (add_setshow_generic): Likewise.
8193 * remote.c (_initialize_remote): Likewise.
8194 * top.c (execute_command): Prepend default_args if command has some.
8196 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8197 * tracepoint.c (validate_actionline, encode_actions_1):
8198 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8200 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8202 * jit.c (jit_read_descriptor): Use bool as the return type.
8203 (jit_breakpoint_re_set_internal): Use bool as the return type.
8204 Invert the return value logic; return true if the jit breakpoint
8205 has been successfully initialized.
8206 (jit_inferior_init): Update the call to
8207 jit_breakpoint_re_set_internal.
8209 2020-06-22 Pedro Alves <palves@redhat.com>
8212 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8213 Use the current inferior instead. Don't return
8214 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8216 * sol-thread.c (sol_thread_target::wait): Don't reference
8218 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8219 (sol_update_thread_list_callback): Use the current inferior's pid
8220 instead of inferior_ptid.
8222 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8224 * procfs.c: Cleanup many comments.
8226 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8227 (AFTER_WATCHFLAG): Replace by value.
8229 (MAIN_PROC_NAME_FORMAT): Inline ...
8230 (create_procinfo): ... here.
8232 (procfs_debug_inferior): Remove SYS_exec handling.
8233 (syscall_is_exec): Likewise.
8234 (procfs_set_exec_trap): Likewise.
8236 (syscall_is_lwp_exit): Inline in callers.
8237 (syscall_is_exit): Likewise.
8238 (syscall_is_exec): Likewise.
8239 (syscall_is_lwp_create): Likewise.
8241 (invalidate_cache): Remove #if 0 code.
8243 (make_signal_thread_runnable): Remove.
8244 (procfs_target::resume): Remove #if 0 code.
8246 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8249 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8251 (procfs_target::create_inferior): ... here.
8253 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8255 * exec.c (validate_exec_file): Ensure the build-id is up to
8256 date by calling reopen_exec_file (that checks file timestamp
8257 to decide to re-read the file).
8259 2020-06-18 Pedro Alves <palves@redhat.com>
8262 * gdbthread.h (delete_thread, delete_thread_silent)
8263 (find_thread_ptid): Update comments.
8264 * thread.c (current_thread_): New global.
8265 (is_current_thread): Move higher, and reimplement.
8266 (inferior_thread): Reimplement.
8267 (set_thread_exited): Use bool. Add assertions.
8268 (add_thread_silent): Simplify thread-reuse handling by always
8269 calling delete_thread.
8270 (delete_thread): Remove intro comment.
8271 (find_thread_ptid): Skip exited threads.
8272 (switch_to_thread_no_regs): Write to current_thread_.
8273 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8274 INFERIOR_PTID. Clear current_thread_.
8276 2020-06-18 Pedro Alves <palves@redhat.com>
8278 * aix-thread.c (pd_update): Use switch_to_thread.
8280 2020-06-18 Pedro Alves <palves@redhat.com>
8282 * ravenscar-thread.c (ravenscar_thread_target): Update.
8283 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8284 (ravenscar_thread_target::add_active_thread): ... this. Don't
8285 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8286 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8288 2020-06-18 Pedro Alves <palves@redhat.com>
8290 * nat/windows-nat.c (current_windows_thread): Remove.
8291 * nat/windows-nat.h (current_windows_thread): Remove.
8292 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8294 (display_selectors): Adjust to fetch the current
8295 windows_thread_info based on inferior_ptid.
8296 (fake_create_process): No longer write to current_windows_thread.
8297 (windows_nat_target::get_windows_debug_event):
8298 Don't set inferior_ptid or current_windows_thread.
8299 (windows_nat_target::wait): Adjust to not rely on
8300 current_windows_thread.
8301 (do_initial_windows_stuff): Now a method of windows_nat_target.
8302 Switch to the last_ptid thread.
8303 (windows_nat_target::attach): Adjust.
8304 (windows_nat_target::detach): Use switch_to_no_thread instead of
8305 writing to inferior_ptid directly.
8306 (windows_nat_target::create_inferior): Adjust.
8308 2020-06-18 Pedro Alves <palves@redhat.com>
8310 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8312 2020-06-18 Pedro Alves <palves@redhat.com>
8314 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8315 after creating it, instead of writing to inferior_ptid. Don't
8316 write to inferior_ptid.
8318 2020-06-18 Pedro Alves <palves@redhat.com>
8320 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8322 2020-06-18 Pedro Alves <palves@redhat.com>
8324 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8325 it, instead of writing to inferior_ptid.
8327 2020-06-18 Pedro Alves <palves@redhat.com>
8329 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8332 2020-06-18 Pedro Alves <palves@redhat.com>
8334 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8335 instead of writing to inferior_ptid directly.
8337 2020-06-18 Pedro Alves <palves@redhat.com>
8339 * corelow.c (core_target::close): Use switch_to_no_thread instead
8340 of writing to inferior_ptid directly.
8341 (add_to_thread_list, core_target_open): Use switch_to_thread
8342 instead of writing to inferior_ptid directly.
8344 2020-06-18 Pedro Alves <palves@redhat.com>
8346 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8348 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8350 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8351 inferior_ptid directly.
8352 (darwin_nat_target::init_thread_list): Switch to thread, instead
8353 of writing to inferior_ptid.
8354 (darwin_nat_target::attach): Don't write to inferior_ptid.
8355 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8357 2020-06-18 Pedro Alves <palves@redhat.com>
8359 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8361 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8362 Instead use switch_to_thread.
8363 (gnu_nat_target::detach): Use switch_to_no_thread
8364 instead of writing to inferior_ptid directly. Used passed-in
8365 inferior instead of looking up the inferior by pid.
8367 2020-06-18 Pedro Alves <palves@redhat.com>
8369 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8372 2020-06-18 Pedro Alves <palves@redhat.com>
8374 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8376 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8378 (nto_procfs_target::detach): Avoid referencing
8379 inferior_ptid. Use switch_to_no_thread instead of writing to
8380 inferior_ptid directly.
8381 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8382 instead of writing to inferior_ptid directly.
8383 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8386 2020-06-18 Pedro Alves <palves@redhat.com>
8388 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8389 after creating it, instead of writing to inferior_ptid.
8390 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8391 to inferior_ptid directly.
8392 (gdbsim_target::wait): Don't write to inferior_ptid.
8394 2020-06-18 Pedro Alves <palves@redhat.com>
8396 * remote.c (remote_target::remote_notice_new_inferior): Use
8397 switch_to_thread instead of writing to inferior_ptid directly.
8398 (remote_target::add_current_inferior_and_thread): Use
8399 switch_to_no_thread instead of writing to inferior_ptid directly.
8400 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8401 and switch_to_thread instead of using set_current_inferior or
8402 writing to inferior_ptid directly.
8404 2020-06-18 Pedro Alves <palves@redhat.com>
8406 * tracectf.c (ctf_target_open): Switch to added thread instead of
8407 writing to inferior_ptid directly.
8408 (ctf_target::close): Use switch_to_no_thread instead of writing to
8409 inferior_ptid directly.
8411 2020-06-18 Pedro Alves <palves@redhat.com>
8413 * tracefile-tfile.c (tfile_target_open): Don't write to
8414 inferior_ptid directly, instead switch to added thread.
8415 (tfile_target::close): Use switch_to_no_thread instead of writing
8416 to inferior_ptid directly.
8418 2020-06-18 Pedro Alves <palves@redhat.com>
8420 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8421 (procfs_target::detach): Use switch_to_no_thread
8422 instead of writing to inferior_ptid directly.
8423 (do_attach): Change return type to void. Switch to the added
8425 (procfs_target::create_inferior): Switch to the added thread.
8426 (procfs_do_thread_registers): Don't write to inferior_ptid.
8428 2020-06-18 Pedro Alves <palves@redhat.com>
8430 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8431 of writing to inferior_ptid.
8432 (scoped_restore_exited_inferior): Delete.
8433 (handle_vfork_child_exec_or_exit): Simplify using
8434 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8435 instead of writing to inferior_ptid.
8436 (THREAD_STOPPED_BY): Delete.
8437 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8438 (thread_stopped_by_hw_breakpoint): Delete.
8439 (save_waitstatus): Use
8440 scoped_restore_current_thread+switch_to_thread, and call
8441 target_stopped_by_watchpoint instead of
8442 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8443 instead of thread_stopped_by_sw_breakpoint, and
8444 target_stopped_by_hw_breakpoint instead of
8445 thread_stopped_by_hw_breakpoint.
8446 (handle_inferior_event)
8447 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8448 inferior_ptid directly, nor
8449 set_current_inferior/set_current_program_space. Use
8450 switch_to_thread / switch_to_inferior_no_thread instead.
8452 2020-06-18 Pedro Alves <palves@redhat.com>
8454 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8455 instead of writing to inferior_ptid.
8457 2020-06-18 Pedro Alves <palves@redhat.com>
8459 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8461 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8462 to the added thread.
8463 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8464 instead of writing to inferior_ptid.
8466 2020-06-18 Pedro Alves <palves@redhat.com>
8468 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8469 (register_to_value_test): Mock a program_space too. Heap-allocate
8470 the address space. Don't write to inferior_ptid. Use
8471 switch_to_thread instead.
8473 2020-06-18 Pedro Alves <palves@redhat.com>
8475 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8477 (find_signalled_thread()): New, factored out from
8478 linux_make_corefile_notes and adjusted to handle exited threads.
8479 (linux_make_corefile_notes): Adjust to use the new
8480 find_signalled_thread.
8482 2020-06-18 Pedro Alves <palves@redhat.com>
8484 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8485 of saving/restoring inferior_ptid.
8487 2020-06-17 Tom Tromey <tom@tromey.com>
8489 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8490 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8492 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8494 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8496 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8499 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8501 * regformats/reg-arm.dat: Remove.
8502 * regformats/reg-bfin.dat: Remove.
8503 * regformats/reg-cris.dat: Remove.
8504 * regformats/reg-crisv32.dat: Remove.
8505 * regformats/reg-m32r.dat: Remove.
8506 * regformats/reg-tilegx.dat: Remove.
8507 * regformats/reg-tilegx32.dat: Remove.
8509 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8511 * features/Makefile (WHICH): Remove arm files.
8512 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8513 * regformats/arm/arm-with-neon.dat: Remove.
8514 * regformats/arm/arm-with-vfpv2.dat: Remove.
8515 * regformats/arm/arm-with-vfpv3.dat: Remove.
8517 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8519 * features/Makefile (XMLTOC): Remove rx.xml.
8521 2020-06-17 Pedro Alves <palves@redhat.com>
8523 * gdbthread.h (thread_control_state) <trap_expected> Update
8526 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8528 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8529 ada_language::lookup_symbol_nonlocal.
8530 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8531 (ada_language::lookup_symbol_nonlocal): New member function,
8532 implementation from ada_lookup_symbol_nonlocal.
8533 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8535 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8537 (cplus_language::lookup_symbol_nonlocal): New member function.
8538 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8539 (minimal_language_data) Likewise.
8540 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8541 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8543 (d_language::lookup_symbol_nonlocal): New member function.
8544 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8546 (f_language::lookup_symbol_nonlocal): New member function.
8547 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8549 * language.c (unknown_language_data): Likewise.
8550 (auto_language_data): Likewise.
8551 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8553 (language_defn::lookup_symbol_nonlocal): New member function.
8554 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8556 * objc-lang.c (objc_language_data): Likewise.
8557 * opencl-lang.c (opencl_language_data): Likewise.
8558 * p-lang.c (pascal_language_data): Likewise.
8559 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8560 rust_language::lookup_symbol_nonlocal.
8561 (rust_language_data): Delete la_lookup_symbol_nonlocal
8563 (rust_language::lookup_symbol_nonlocal): New member function,
8564 implementation from rust_lookup_symbol_nonlocal.
8565 * symtab.c (lookup_symbol_aux): Update call to
8566 lookup_symbol_nonlocal.
8567 (basic_lookup_symbol_nonlocal): Rename to...
8568 (language_defn::lookup_symbol_nonlocal): ...this, and update
8569 header comment. Remove language_defn parameter, and replace with
8571 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8573 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8575 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8577 (ada_language::value_print_inner): New member function.
8578 * c-lang.c (c_language_data): Delete la_value_print_inner
8580 (cplus_language_data): Likewise.
8581 (asm_language_data): Likewise.
8582 (minimal_language_data): Likewise.
8583 * d-lang.c (d_language_data): Likewise.
8584 (d_language::value_print_inner): New member function.
8585 * f-lang.c (f_language_data): Delete la_value_print_inner
8587 (f_language::value_print_inner): New member function.
8588 * f-lang.h (f_value_print_innner): Rename to...
8589 (f_value_print_inner): ...this (note spelling of 'inner').
8590 * f-valprint.c (f_value_print_innner): Rename to...
8591 (f_value_print_inner): ...this (note spelling of 'inner').
8592 * go-lang.c (go_language_data): Delete la_value_print_inner
8594 (go_language::value_print_inner): New member function.
8595 * language.c (language_defn::value_print_inner): Define new member
8597 (unk_lang_value_print_inner): Delete.
8598 (unknown_language_data): Delete la_value_print_inner initializer.
8599 (unknown_language::value_print_inner): New member function.
8600 (auto_language_data): Delete la_value_print_inner initializer.
8601 (auto_language::value_print_inner): New member function.
8602 * language.h (language_data): Delete la_value_print_inner field.
8603 (language_defn::value_print_inner): Delcare new member function.
8604 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8606 (m2_language::value_print_inner): New member function.
8607 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8609 * opencl-lang.c (opencl_language_data): Likewise.
8610 * p-lang.c (pascal_language_data): Likewise.
8611 (pascal_language::value_print_inner): New member function.
8612 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8614 (rust_language::value_print_inner): New member function.
8615 * valprint.c (do_val_print): Update call to value_print_inner.
8617 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8619 * ada-lang.c (ada_language_data): Delete la_value_print
8621 (ada_language::value_print): New member function.
8622 * c-lang.c (c_language_data): Delete la_value_print initializer.
8623 (cplus_language_data): Likewise.
8624 (asm_language_data): Likewise.
8625 (minimal_language_data): Likewise.
8626 * d-lang.c (d_language_data): Likewise.
8627 * f-lang.c (f_language_data): Likewise.
8628 * go-lang.c (go_language_data): Likewise.
8629 * language.c (unk_lang_value_print): Delete.
8630 (language_defn::value_print): Define new member function.
8631 (unknown_language_data): Delete la_value_print initializer.
8632 (unknown_language::value_print): New member function.
8633 (auto_language_data): Delete la_value_print initializer.
8634 (auto_language::value_print): New member function.
8635 * language.h (language_data): Delete la_value_print field.
8636 (language_defn::value_print): Declare new member function.
8637 (LA_VALUE_PRINT): Update call to value_print.
8638 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8639 * objc-lang.c (objc_language_data): Likewise.
8640 * opencl-lang.c (opencl_language_data): Likewise.
8641 * p-lang.c (pascal_language_data): Likewise.
8642 (pascal_language::value_print): New member function.
8643 * rust-lang.c (rust_language_data): Delete la_value_print
8646 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8648 * ada-lang.c (ada_watch_location_expression): Rename to
8649 ada_language::watch_location_expression.
8650 (ada_language_data): Delete la_watch_location_expression
8652 (ada_language::watch_location_expression): New member function,
8653 implementation from ada_watch_location_expression.
8654 * breakpoint.c (watch_command_1): Update call to
8655 watch_location_expression.
8656 * c-lang.c (c_watch_location_expression): Rename to
8657 language_defn::watch_location_expression.
8658 (c_language_data): Delete la_watch_location_expression
8660 (cplus_language_data): Likewise.
8661 (asm_language_data): Likewise.
8662 (minimal_language_data): Likewise.
8663 * c-lang.h (c_watch_location_expression): Delete declaration.
8664 * d-lang.c (d_language_data): Delete la_watch_location_expression
8666 * f-lang.c (f_language_data): Likewise.
8667 * go-lang.c (go_language_data): Likewise.
8668 * language.c (language_defn::watch_location_expression): Member
8669 function implementation from c_watch_location_expression.
8670 (unknown_language_data): Delete la_watch_location_expression
8672 (auto_language_data): Likewise.
8673 * language.h (language_data): Delete la_watch_location_expression
8675 (language_defn::watch_location_expression): Declare new member
8677 * m2-lang.c (m2_language_data): Delete
8678 la_watch_location_expression initializer.
8679 * objc-lang.c (objc_language_data): Likewise.
8680 * opencl-lang.c (opencl_language_data): Likewise.
8681 * p-lang.c (pascal_language_data): Likewise.
8682 * rust-lang.c (rust_watch_location_expression): Rename to
8683 rust_language::watch_location_expression.
8684 (rust_language_data): Delete la_watch_location_expression
8686 (rust_language::watch_location_expression): New member function,
8687 implementation from rust_watch_location_expression.
8689 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8691 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8692 ada_language::collect_symbol_completion_matches.
8693 (ada_language_data): Delete la_collect_symbol_completion_matches
8695 (ada_language::collect_symbol_completion_matches): New member
8696 function, implementation from
8697 ada_collect_symbol_completion_matches.
8698 * c-lang.c (c_language_data): Delete
8699 la_collect_symbol_completion_matches initializer.
8700 (cplus_language_data): Likewise.
8701 (asm_language_data): Likewise.
8702 (minimal_language_data): Likewise.
8703 * d-lang.c (d_language_data): Likewise.
8704 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8705 f_language::collect_symbol_completion_matches.
8706 (f_language_data): Delete la_collect_symbol_completion_matches
8708 (f_language::collect_symbol_completion_matches) New member
8709 function, implementation from f_collect_symbol_completion_matches.
8710 * go-lang.c (go_language_data): Delete
8711 la_collect_symbol_completion_matches initializer.
8712 * language.c (unknown_language_data): Likewise.
8713 (auto_language_data): Likewise.
8714 * language.h (language_data): Delete
8715 la_collect_symbol_completion_matches field.
8716 (language_defn::collect_symbol_completion_matches): New member
8718 * m2-lang.c (m2_language_data): Delete
8719 la_collect_symbol_completion_matches initializer.
8720 * objc-lang.c (objc_language_data): Likewise.
8721 * opencl-lang.c (opencl_language_data): Likewise.
8722 * p-lang.c (pascal_language_data): Likewise.
8723 * rust-lang.c (rust_language_data): Likewise.
8724 * symtab.c (default_collect_symbol_completion_matches): Delete.
8725 (collect_symbol_completion_matches): Update call to
8726 collect_symbol_completion_matches.
8727 (collect_symbol_completion_matches_type): Likewise.
8728 * symtab.h (default_collect_symbol_completion_matches): Delete
8731 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8733 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8734 (ada_language_data): Delete la_word_break_characters initializer.
8735 (ada_language::word_break_characters): New member function.
8736 * c-lang.c (c_language_data): Delete la_word_break_characters
8738 (cplus_language_data): Likewise.
8739 (asm_language_data): Likewise.
8740 (minimal_language_data): Likewise.
8741 * completer.c: Update global comment.
8742 (advance_to_expression_complete_word_point): Update call to
8743 word_break_characters.
8744 (complete_files_symbols): Likewise.
8745 (complete_line_internal_1): Likewise.
8746 (default_completer_handle_brkchars): Likewise.
8747 (skip_quoted_chars): Likewise.
8748 * d-lang.c (d_language_data): Delete la_word_break_characters
8750 * f-lang.c (f_word_break_characters): Delete.
8751 (f_language_data): Delete la_word_break_characters initializer.
8752 (f_language::word_break_characters): New member function.
8753 * go-lang.c (go_language_data): Delete la_word_break_characters
8755 * language.c (unknown_language_data): Likewise.
8756 (auto_language_data): Likewise.
8757 * language.h (default_word_break_characters): Move declaration to
8758 earlier in the file.
8759 (language_data): Delete la_word_break_characters field.
8760 (language_defn::word_break_characters): New member function.
8761 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8763 * objc-lang.c (objc_language_data): Likewise.
8764 * opencl-lang.c (opencl_language_data): Likewise.
8765 * p-lang.c (pascal_language_data): Likewise.
8766 * rust-lang.c (rust_language_data): Likewise.
8768 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8770 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8771 (ada_language_data): Delete la_get_symbol_name_matcher
8773 (language_defn::get_symbol_name_matcher_inner): New member
8775 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8777 (cplus_language_data): Likewise.
8778 (cplus_language::get_symbol_name_matcher_inner): New member
8780 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8781 (minimal_language_data): Likewise.
8782 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8783 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8785 * dictionary.c (iter_match_first_hashed): Update call to
8786 get_symbol_name_matcher.
8787 (iter_match_next_hashed): Likewise.
8788 (iter_match_next_linear): Likewise.
8789 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8790 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8792 (f_language::get_symbol_name_matcher_inner): New member function.
8793 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8795 * language.c (default_symbol_name_matcher): Update header comment,
8797 (language_defn::get_symbol_name_matcher): New definition.
8798 (language_defn::get_symbol_name_matcher_inner): Likewise.
8799 (get_symbol_name_matcher): Delete.
8800 (unknown_language_data): Delete la_get_symbol_name_matcher
8802 (auto_language_data): Likewise.
8803 * language.h (language_data): Delete la_get_symbol_name_matcher
8805 (language_defn::get_symbol_name_matcher): New member function.
8806 (language_defn::get_symbol_name_matcher_inner): Likewise.
8807 (default_symbol_name_matcher): Delete declaration.
8808 * linespec.c (find_methods): Update call to
8809 get_symbol_name_matcher.
8810 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8812 * minsyms.c (lookup_minimal_symbol): Update call to
8813 get_symbol_name_matcher.
8814 (iterate_over_minimal_symbols): Likewise.
8815 * objc-lang.c (objc_language_data): Delete
8816 la_get_symbol_name_matcher initializer.
8817 * opencl-lang.c (opencl_language_data): Likewise.
8818 * p-lang.c (pascal_language_data): Likewise.
8819 * psymtab.c (psymbol_name_matches): Update call to
8820 get_symbol_name_matcher.
8821 * rust-lang.c (rust_language_data): Delete
8822 la_get_symbol_name_matcher initializer.
8823 * symtab.c (symbol_matches_search_name): Update call to
8824 get_symbol_name_matcher.
8825 (compare_symbol_name): Likewise.
8827 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8829 * ada-lang.c (ada_language_data): Delete la_compute_program
8831 * c-lang.c (c_language_data): Likewise.
8832 (c_language::compute_program): New member function.
8833 (cplus_language_data): Delete la_compute_program initializer.
8834 (cplus_language::compute_program): New member function.
8835 (asm_language_data): Delete la_compute_program initializer.
8836 (minimal_language_data): Likewise.
8837 * c-lang.h (c_compute_program): Update comment.
8838 (cplus_compute_program): Likewise.
8839 * compile/compile-c-support.c (c_compute_program): Likewise.
8840 (cplus_compute_program): Likewise.
8841 * compile/compile.c (compile_to_object): Update call to
8843 * d-lang.c (d_language_data): Delete la_compute_program
8845 * f-lang.c (f_language_data): Likewise.
8846 * go-lang.c (go_language_data): Likewise.
8847 * language.c (unknown_language_data): Likewise.
8848 (auto_language_data): Likewise.
8849 * language.h (language_data): Delete la_compute_program field.
8850 (language_defn::compute_program): New member function.
8851 * m2-lang.c (m2_language_data): Delete la_compute_program
8853 * objc-lang.c (objc_language_data): Likewise.
8854 * opencl-lang.c (opencl_language_data): Likewise.
8855 * p-lang.c (pascal_language_data): Likewise.
8856 * rust-lang.c (rust_language_data): Likewise.
8858 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8860 * ada-lang.c (ada_language_data) Delete
8861 la_class_name_from_physname initializer.
8862 * c-lang.c (c_language_data): Likewise.
8863 (cplus_language_data): Likewise.
8864 (cplus_language::class_name_from_physname): New member function.
8865 (asm_language_data): Delete la_class_name_from_physname
8867 (minimal_language_data): Likewise.
8868 * d-lang.c (d_language_data): Likewise.
8869 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8870 method on language_defn class.
8871 (guess_full_die_structure_name): Likewise.
8872 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8874 * go-lang.c (go_language_data): Likewise.
8875 * language.c (language_class_name_from_physname): Delete.
8876 (unk_lang_class_name): Delete.
8877 (unknown_language_data): Delete la_class_name_from_physname
8879 (auto_language_data): Likewise.
8880 * language.h (language_data): Delete la_class_name_from_physname
8882 (language_defn::class_name_from_physname): New function.
8883 (language_class_name_from_physname): Delete declaration.
8884 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8886 * objc-lang.c (objc_language_data): Likewise.
8887 * opencl-lang.c (opencl_language_data): Likewise.
8888 * p-lang.c (pascal_language_data): Likewise.
8889 * rust-lang.c (rust_language_data): Likewise.
8891 2020-06-16 Tom Tromey <tom@tromey.com>
8893 * tui/tui-data.h (STATUS_NAME): New macro.
8894 * tui/tui-layout.c (tui_remove_some_windows)
8895 (initialize_known_windows, tui_register_window)
8896 (tui_layout_split::remove_windows, initialize_layouts)
8897 (tui_new_layout_command): Don't use hard-coded window names.
8899 2020-06-16 Tom Tromey <tom@tromey.com>
8902 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8903 tui_initialize_readline. Only run once. Call rl_initialize.
8904 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8905 tui_initialize_readline.
8906 * tui/tui-io.c (tui_setup_io): Call
8907 tui_ensure_readline_initialized.
8908 * tui/tui-interp.c (tui_interp::init): Update.
8910 2020-06-16 Tom Tromey <tom@tromey.com>
8912 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8913 Also preserve the status window.
8915 2020-06-16 Tom Tromey <tom@tromey.com>
8917 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8918 where m_window==nullptr.
8920 2020-06-15 Tom Tromey <tromey@adacore.com>
8922 * windows-nat.c (windows_nat::handle_output_debug_string):
8924 (windows_nat::handle_ms_vc_exception): Update.
8925 * target.h (target_read_string): Change API.
8926 * target.c (target_read_string): Change API.
8927 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8929 * solib-frv.c (frv_current_sos): Update.
8930 * solib-dsbt.c (dsbt_current_sos): Update.
8931 * solib-darwin.c (darwin_current_sos): Update.
8932 * linux-thread-db.c (inferior_has_bug): Update.
8933 * expprint.c (print_subexp_standard): Update.
8934 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8935 (ada_exception_message_1): Update.
8937 2020-06-15 Tom Tromey <tromey@adacore.com>
8939 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8941 2020-06-15 Tom Tromey <tromey@adacore.com>
8943 * valprint.c (read_string): Update comment.
8944 * target.c (MIN): Remove.
8945 (target_read_string): Rewrite.
8947 2020-06-15 Tom Tromey <tromey@adacore.com>
8949 * corefile.c (read_memory_string): Remove.
8950 * ada-valprint.c (ada_value_print_ptr): Update.
8951 * ada-lang.h (ada_tag_name): Change return type.
8952 * ada-lang.c (type_from_tag): Update.
8953 (ada_tag_name_from_tsd): Change return type. Use
8955 (ada_tag_name): Likewise.
8956 * gdbcore.h (read_memory_string): Don't declare.
8958 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8960 * symtab.c (rbreak_command): Ignore Windows drive colon.
8962 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8964 * NEWS: Mention removed GDBserver host support.
8966 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8968 * features/riscv/rebuild-csr-xml.sh: Updated.
8970 2020-06-11 Tom Tromey <tom@tromey.com>
8973 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8975 2020-06-09 Jonny Grant <jg@jguk.org>
8976 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8978 * main.c (captured_main_1): Don't print new line after help.
8979 (print_gdb_help): add mailing list and IRC channel information
8980 to --help. Add new lines between items in the footer. Remove
8981 quotes around bug url.
8983 2020-06-11 Keith Seitz <keiths@redhat.com>
8986 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8987 Resolve typedefs for type length calculations.
8989 2020-06-10 Tom de Vries <tdevries@suse.de>
8992 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8993 (write_psymbols): Enable .gdb_index for ada.
8994 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8997 2020-06-10 Tom de Vries <tdevries@suse.de>
8999 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9000 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9001 namei" instead of "const char *name" argument.
9002 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9003 dw2_symtab_iter_init.
9005 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9007 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9008 to use type::field and field::type instead.
9010 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9012 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9013 to use field::type instead.
9015 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9017 * gdbtypes.h (struct field) <type, set_type>: New methods.
9018 Rename `type` field to...
9019 <m_type>: ... this. Change references throughout to use type or
9021 (FIELD_TYPE): Use field::type. Change call sites that modify
9022 the field's type to use field::set_type instead.
9024 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9026 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9027 to use type::index_type instead.
9029 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9031 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9033 (TYPE_INDEX_TYPE): Use type::index_type.
9034 * gdbtypes.c (create_array_type_with_stride): Likewise.
9036 2020-06-07 Tom Tromey <tom@tromey.com>
9038 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9040 (generic_value_print): Update.
9042 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9044 Revert commit 982a38f60b0.
9045 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9047 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9049 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9050 avoid use after free.
9052 2020-06-05 Tom de Vries <tdevries@suse.de>
9056 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
9058 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9060 (dwarf2_read_debug_names): Likewise.
9061 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9062 object when re-using a per_bfd object with an index.
9064 2020-06-03 Tom de Vries <tdevries@suse.de>
9067 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9069 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9072 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9074 * ada-lang.c (ada_language_data): Delete skip_trampoline
9076 * c-lang.c (c_language_data): Likewise.
9077 (cplus_language_data): Likewise.
9078 (cplus_language::skip_trampoline): New member function.
9079 (asm_language_data): Delete skip_trampoline initializer.
9080 (minimal_language_data): Likewise.
9081 * d-lang.c (d_language_data): Likewise.
9082 * f-lang.c (f_language_data): Likewise.
9083 * go-lang.c (go_language_data): Likewise.
9084 * language.c (unk_lang_trampoline): Delete function.
9085 (skip_language_trampoline): Update.
9086 (unknown_language_data): Delete skip_trampoline initializer.
9087 (auto_language_data): Likewise.
9088 * language.h (language_data): Delete skip_trampoline field.
9089 (language_defn::skip_trampoline): New function.
9090 * m2-lang.c (m2_language_data): Delete skip_trampoline
9092 * objc-lang.c (objc_skip_trampoline): Delete function, move
9093 implementation to objc_language::skip_trampoline.
9094 (objc_language_data): Delete skip_trampoline initializer.
9095 (objc_language::skip_trampoline): New member function with
9096 implementation from objc_skip_trampoline.
9097 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9099 * p-lang.c (pascal_language_data): Likewise.
9100 * rust-lang.c (rust_language_data): Likewise.
9102 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9104 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9105 (ada_language::demangle): New member function.
9106 * c-lang.c (c_language_data): Delete la_demangle initializer.
9107 (cplus_language_data): Delete la_demangle initializer.
9108 (cplus_language::demangle): New member function.
9109 (asm_language_data): Delete la_demangle initializer.
9110 (minimal_language_data): Delete la_demangle initializer.
9111 * d-lang.c (d_language_data): Delete la_demangle initializer.
9112 (d_language::demangle): New member function.
9113 * f-lang.c (f_language_data): Delete la_demangle initializer.
9114 (f_language::demangle): New member function.
9115 * go-lang.c (go_language_data): Delete la_demangle initializer.
9116 (go_language::demangle): New member function.
9117 * language.c (language_demangle): Update.
9118 (unk_lang_demangle): Delete.
9119 (unknown_language_data): Delete la_demangle initializer.
9120 (unknown_language::demangle): New member function.
9121 (auto_language_data): Delete la_demangle initializer.
9122 (auto_language::demangle): New member function.
9123 * language.h (language_data): Delete la_demangle field.
9124 (language_defn::demangle): New function.
9125 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9126 * objc-lang.c (objc_language_data): Delete la_demangle
9128 (objc_language::demangle): New member function.
9129 * opencl-lang.c (opencl_language_data): Delete la_demangle
9131 * p-lang.c (pascal_language_data): Likewise.
9132 * rust-lang.c (rust_language_data): Likewise.
9133 (rust_language::demangle): New member function.
9135 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9137 * ada-lang.c (ada_language_data): Delete la_print_type
9139 (ada_language::print_type): New member function.
9140 * c-lang.c (c_language_data): Delete la_print_type initializer.
9141 (c_language::print_type): New member function.
9142 (cplus_language_data): Delete la_print_type initializer.
9143 (cplus_language::print_type): New member function.
9144 (asm_language_data): Delete la_print_type initializer.
9145 (asm_language::print_type): New member function.
9146 (minimal_language_data): Delete la_print_type initializer.
9147 (minimal_language::print_type): New member function.
9148 * d-lang.c (d_language_data): Delete la_print_type initializer.
9149 (d_language::print_type): New member function.
9150 * f-lang.c (f_language_data): Delete la_print_type initializer.
9151 (f_language::print_type): New member function.
9152 * go-lang.c (go_language_data): Delete la_print_type initializer.
9153 (go_language::print_type): New member function.
9154 * language.c (unk_lang_print_type): Delete.
9155 (unknown_language_data): Delete la_print_type initializer.
9156 (unknown_language::print_type): New member function.
9157 (auto_language_data): Delete la_print_type initializer.
9158 (auto_language::print_type): New member function.
9159 * language.h (language_data): Delete la_print_type field.
9160 (language_defn::print_type): New function.
9161 (LA_PRINT_TYPE): Update.
9162 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9163 (m2_language::print_type): New member function.
9164 * objc-lang.c (objc_language_data): Delete la_print_type
9166 (objc_language::print_type): New member function.
9167 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9168 to opencl_language::print_type.
9169 (opencl_language_data): Delete la_print_type initializer.
9170 (opencl_language::print_type): New member function, implementation
9171 from opencl_print_type.
9172 * p-lang.c (pascal_language_data): Delete la_print_type
9174 (pascal_language::print_type): New member function.
9175 * rust-lang.c (rust_print_type): Delete, implementation moved to
9176 rust_language::print_type.
9177 (rust_language_data): Delete la_print_type initializer.
9178 (rust_language::print_type): New member function, implementation
9179 from rust_print_type.
9181 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9183 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9184 implementation moves to...
9185 (ada_language::sniff_from_mangled_name): ...here. Update return
9187 (ada_language_data): Delete la_sniff_from_mangled_name
9189 * c-lang.c (c_language_data): Likewise.
9190 (cplus_language_data): Likewise.
9191 (cplus_language::sniff_from_mangled_name): New member function,
9192 implementation taken from gdb_sniff_from_mangled_name.
9193 (asm_language_data): Delete la_sniff_from_mangled_name
9195 (minimal_language_data): Likewise.
9196 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9197 implementation moves to cplus_language::sniff_from_mangled_name.
9198 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9199 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9201 (d_language::sniff_from_mangled_name): ...here.
9202 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9203 * f-lang.c (f_language_data): Likewise.
9204 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9206 (go_language::sniff_from_mangled_name): ...here.
9207 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9208 * language.c (language_sniff_from_mangled_name): Delete.
9209 (unknown_language_data): Delete la_sniff_from_mangled_name
9211 (auto_language_data): Likewise.
9212 * language.h (language_data): Delete la_sniff_from_mangled_name
9214 (language_defn::sniff_from_mangled_name): New function.
9215 (language_sniff_from_mangled_name): Delete declaration.
9216 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9218 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9219 implementation moves to...
9220 (objc_language::sniff_from_mangled_name): ...here.
9221 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9222 * opencl-lang.c (opencl_language_data): Likewise.
9223 * p-lang.c (pascal_language_data): Likewise.
9224 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9225 implementation moves to...
9226 (rust_language::sniff_from_mangled_name): ...here.
9227 (rust_language_data): Delete la_sniff_from_mangled_name
9229 * symtab.c (symbol_find_demangled_name): Call
9230 sniff_from_mangled_name member function.
9232 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9234 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9236 * c-lang.c (c_language_data): Likewise.
9237 (cplus_language_data): Likewise.
9238 (cplus_language::search_name_hash): New member function.
9239 (asm_language_data): Delete la_search_name_hash initializer.
9240 (minimal_language_data): Likewise.
9241 * d-lang.c (d_language_data): Likewise.
9242 * dictionary.c (default_search_name_hash): Rename to...
9243 (language_defn::search_name_hash): ...this.
9244 * f-lang.c (f_language_data): Likewise.
9245 (f_language::search_name_hash): New member function.
9246 * go-lang.c (go_language_data): Delete la_search_name_hash
9248 * language.c (unknown_language_data): Likewise.
9249 (auto_language_data): Likewise.
9250 * language.h (struct language_data): Delete la_search_name_hash
9252 (language_defn::search_name_hash): Declare new member function.
9253 (default_search_name_hash): Delete declaration.
9254 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9256 * objc-lang.c (objc_language_data): Likewise.
9257 * opencl-lang.c (opencl_language_data): Likewise.
9258 * p-lang.c (pascal_language_data): Likewise.
9259 * rust-lang.c (rust_language_data): Likewise.
9260 * symtab.c (search_name_hash): Update call.
9262 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9264 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9266 * c-lang.c (class compile_instance): Declare.
9267 (c_language_data): Delete la_get_compile_instance initializer.
9268 (c_language::get_compile_instance): New member function.
9269 (cplus_language_data): Delete la_get_compile_instance initializer.
9270 (cplus_language::get_compile_instance): New member function.
9271 (asm_language_data): Delete la_get_compile_instance initializer.
9272 (minimal_language_data): Likewise.
9273 * c-lang.h (c_get_compile_context): Update comment.
9274 (cplus_get_compile_context): Update comment.
9275 * compile/compile.c (compile_to_object): Update calls, don't rely
9276 on function pointer being NULL.
9277 * d-lang.c (d_language_data): Delete la_get_compile_instance
9279 * f-lang.c (f_language_data): Likewise.
9280 * go-lang.c (go_language_data): Likewise.
9281 * language.c (unknown_language_data): Likewise.
9282 (auto_language_data): Likewise.
9283 * language.h (language_data): Delete la_get_compile_instance field.
9284 (language_defn::get_compile_instance): New member function.
9285 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9287 * objc-lang.c (objc_language_data): Likewise.
9288 * opencl-lang.c (opencl_language_data): Likewise.
9289 * p-lang.c (pascal_language_data): Likewise.
9290 * rust-lang.c (rust_language_data): Likewise.
9292 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9294 * ada-lang.c (ada_add_all_symbols): Update comment.
9295 (ada_iterate_over_symbols): Delete, move implementation to...
9296 (ada_language::iterate_over_symbols): ...here, a new member
9297 function, rewrite to use range based for loop.
9298 (ada_language_data): Delete la_iterate_over_symbols initializer.
9299 * c-lang.c (c_language_data): Likewise.
9300 (cplus_language_data): Likewise.
9301 (asm_language_data): Likewise.
9302 (minimal_language_data): Likewise.
9303 * d-lang.c (d_language_data): Likewise.
9304 * f-lang.c (f_language_data): Likewise.
9305 * go-lang.c (go_language_data): Likewise.
9306 * language.c (unknown_language_data): Likewise.
9307 (auto_language_data): Likewise.
9308 * language.h (language_data): Delete la_iterate_over_symbols field.
9309 (language_defn::iterate_over_symbols): New member function.
9310 (LA_ITERATE_OVER_SYMBOLS): Update.
9311 * linespec.c (iterate_over_all_matching_symtabs): Update.
9312 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9314 * objc-lang.c (objc_language_data): Likewise.
9315 * opencl-lang.c (opencl_language_data): Likewise.
9316 * p-lang.c (pascal_language_data): Likewise.
9317 * rust-lang.c (rust_language_data): Likewise.
9319 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9321 * ada-lang.c (ada_language_data): Delete
9322 la_lookup_transparent_type initializer.
9323 * c-lang.c (c_language_data): Likewise.
9324 (cplus_language_data): Likewise.
9325 (cplus_language::lookup_transparent_type): New member function.
9326 (asm_language_data): Delete la_lookup_transparent_type
9328 (minimal_language_data): Likewise.
9329 * d-lang.c (d_language_data): Likewise.
9330 * f-lang.c (f_language_data): Likewise.
9331 * go-lang.c (go_language_data): Likewise.
9332 * language.c (unknown_language_data): Likewise.
9333 (auto_language_data): Likewise.
9334 * language.h (struct language_data): Delete
9335 la_lookup_transparent_type field.
9336 (language_defn::lookup_transparent_type): New member function.
9337 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9339 * objc-lang.c (objc_language_data): Likewise.
9340 * opencl-lang.c (opencl_language_data): Likewise.
9341 * p-lang.c (pascal_language_data): Likewise.
9342 * rust-lang.c (rust_language_data): Likewise.
9343 * symtab.c (symbol_matches_domain): Update call.
9345 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9347 * ada-lang.c (ada_language_arch_info): Delete function, move
9348 implementation to...
9349 (ada_language::language_arch_info): ...here, a new member
9351 (ada_language_data): Delete la_language_arch_info.
9352 * c-lang.c (c_language_data): Likewise.
9353 (c_language::language_arch_info): New member function.
9354 (cplus_language_arch_info): Delete function, move
9355 implementation to...
9356 (cplus_language::language_arch_info): ...here, a new member
9358 (cplus_language_data): Delete la_language_arch_info.
9359 (asm_language_data): Likewise.
9360 (asm_language::language_arch_info): New member function.
9361 (minimal_language_data): Delete la_language_arch_info.
9362 (minimal_language::language_arch_info): New member function.
9363 * d-lang.c (d_language_arch_info): Delete function, move
9364 implementation to...
9365 (d_language::language_arch_info): ...here, a new member
9367 (d_language_data): Delete la_language_arch_info.
9368 * f-lang.c (f_language_arch_info): Delete function, move
9369 implementation to...
9370 (f_language::language_arch_info): ...here, a new member
9372 (f_language_data): Delete la_language_arch_info.
9373 * go-lang.c (go_language_arch_info): Delete function, move
9374 implementation to...
9375 (go_language::language_arch_info): ...here, a new member
9377 (go_language_data): Delete la_language_arch_info.
9378 * language.c (unknown_language_data): Likewise.
9379 (unknown_language::language_arch_info): New member function.
9380 (auto_language_data): Delete la_language_arch_info.
9381 (auto_language::language_arch_info): New member function.
9382 (language_gdbarch_post_init): Update call to
9383 la_language_arch_info.
9384 * language.h (language_data): Delete la_language_arch_info
9386 (language_defn::language_arch_info): New function.
9387 * m2-lang.c (m2_language_arch_info): Delete function, move
9388 implementation to...
9389 (m2_language::language_arch_info): ...here, a new member
9391 (m2_language_data): Delete la_language_arch_info.
9392 * objc-lang.c (objc_language_arch_info): Delete function, move
9393 implementation to...
9394 (objc_language::language_arch_info): ...here, a new member
9396 (objc_language_data): Delete la_language_arch_info.
9397 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9398 implementation to...
9399 (opencl_language::language_arch_info): ...here, a new member
9401 (opencl_language_data): Delete la_language_arch_info.
9402 * p-lang.c (pascal_language_arch_info): Delete function, move
9403 implementation to...
9404 (pascal_language::language_arch_info): ...here, a new member
9406 (pascal_language_data): Delete la_language_arch_info.
9407 * rust-lang.c (rust_language_arch_info): Delete function, move
9408 implementation to...
9409 (rust_language::language_arch_info): ...here, a new member
9411 (rust_language_data): Delete la_language_arch_info.
9413 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9415 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9417 * c-lang.c (c_language_data): Likewise.
9418 (cplus_language_data): Likewise.
9419 (cplus_language::pass_by_reference_info): New method.
9420 (asm_language_data): Delete la_pass_by_reference initializer.
9421 (minimal_language_data): Likewise.
9422 * cp-abi.c (cp_pass_by_reference): Remove use of
9423 default_pass_by_reference.
9424 * d-lang.c (d_language_data): Likewise.
9425 * f-lang.c (f_language_data): Likewise.
9426 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9427 default_pass_by_reference.
9428 * go-lang.c (go_language_data): Likewise.
9429 * language.c (language_pass_by_reference): Update.
9430 (default_pass_by_reference): Delete.
9431 (unknown_language_data): Delete la_pass_by_reference
9433 (auto_language_data): Likewise.
9434 * language.h (struct language_data): Delete la_pass_by_reference
9436 (language_defn::pass_by_reference_info): New member function.
9437 (default_pass_by_reference): Delete declaration.
9438 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9440 * objc-lang.c (objc_language_data): Likewise.
9441 * opencl-lang.c (opencl_language_data): Likewise.
9442 * p-lang.c (pascal_language_data): Likewise.
9443 * rust-lang.c (rust_language_data): Likewise.
9445 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9447 * ada-lang.c (ada_read_var_value): Delete function, move
9448 implementation to...
9449 (ada_language::read_var_value): ...here.
9450 (ada_language_data): Delete la_read_var_value initializer.
9451 * c-lang.c (c_language_data): Likewise.
9452 (cplus_language_data): Likewise.
9453 (minimal_language_data): Likewise.
9454 * d-lang.c (d_language_data): Likewise.
9455 * f-lang.c (f_language_data): Likewise.
9456 * findvar.c (default_read_var_value): Rename to...
9457 (language_defn::read_var_value): ...this.
9458 * findvar.c (read_var_value): Update header comment, and change to
9459 call member function instead of function pointer.
9460 * go-lang.c (go_language_data): Likewise.
9461 * language.c (unknown_language_data): Delete la_read_var_value
9463 (auto_language_data): Likewise.
9464 * language.h (struct language_data): Delete la_read_var_value
9466 (language_defn::read_var_value): New member function.
9467 (default_read_var_value): Delete declaration.
9468 * m2-lang.c (m2_language_data): Delete la_read_var_value
9470 * objc-lang.c (objc_language_data): Likewise.
9471 * opencl-lang.c (opencl_language_data): Likewise.
9472 * p-lang.c (pascal_language_data): Likewise.
9473 * rust-lang.c (rust_language_data): Likewise.
9474 * value.h (default_read_var_value): Delete declaration.
9476 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9478 * ada-lang.c (ada_print_array_index): Delete function, move
9479 implementation to...
9480 (ada_language::print_array_index): ...here.
9481 (ada_language_data): Delete la_print_array_index initializer.
9482 * c-lang.c (c_language_data): Likewise.
9483 (cplus_language_data): Likewise.
9484 (minimal_language_data): Likewise.
9485 * d-lang.c (d_language_data): Likewise.
9486 * f-lang.c (f_language_data): Likewise.
9487 * go-lang.c (go_language_data): Likewise.
9488 * language.c (default_print_array_index): Delete function, move
9489 implementation to...
9490 (language_defn::print_array_index): ...here.
9491 (unknown_language_data): Delete la_print_array_index initializer.
9492 (auto_language_data): Likewise.
9493 * language.h (struct language_data): Delete la_print_array_index
9495 (language_defn::print_array_index): New member function.
9496 (LA_PRINT_ARRAY_INDEX): Update.
9497 (default_print_array_index): Delete declaration.
9498 * m2-lang.c (m2_language_data): Delete la_print_array_index
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.
9505 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9507 * gdb/ada-lang.c (ada_language_defn): Convert to...
9508 (ada_language_data): ...this.
9509 (class ada_language): New class.
9510 (ada_language_defn): New static global.
9511 * gdb/c-lang.c (c_language_defn): Convert to...
9512 (c_language_data): ...this.
9513 (class c_language): New class.
9514 (c_language_defn): New static global.
9515 (cplus_language_defn): Convert to...
9516 (cplus_language_data): ...this.
9517 (class cplus_language): New class.
9518 (cplus_language_defn): New static global.
9519 (asm_language_defn): Convert to...
9520 (asm_language_data): ...this.
9521 (class asm_language): New class.
9522 (asm_language_defn): New static global.
9523 (minimal_language_defn): Convert to...
9524 (minimal_language_data): ...this.
9525 (class minimal_language): New class.
9526 (minimal_language_defn): New static global.
9527 * gdb/d-lang.c (d_language_defn): Convert to...
9528 (d_language_data): ...this.
9529 (class d_language): New class.
9530 (d_language_defn): New static global.
9531 * gdb/f-lang.c (f_language_defn): Convert to...
9532 (f_language_data): ...this.
9533 (class f_language): New class.
9534 (f_language_defn): New static global.
9535 * gdb/go-lang.c (go_language_defn): Convert to...
9536 (go_language_data): ...this.
9537 (class go_language): New class.
9538 (go_language_defn): New static global.
9539 * gdb/language.c (unknown_language_defn): Remove declaration.
9540 (current_language): Initialize to nullptr, real initialization is
9541 moved to _initialize_language.
9542 (languages): Delete global.
9543 (language_defn::languages): Define.
9544 (set_language_command): Use language_defn::languages.
9545 (set_language): Likewise.
9546 (range_error): Likewise.
9547 (language_enum): Likewise.
9548 (language_def): Likewise.
9549 (add_set_language_command): Use language_def::languages for the
9550 language list, and language_def to lookup language pointers.
9551 (skip_language_trampoline): Use language_defn::languages.
9552 (unknown_language_defn): Convert to...
9553 (unknown_language_data): ...this.
9554 (class unknown_language): New class.
9555 (unknown_language_defn): New static global.
9556 (auto_language_defn): Convert to...
9557 (auto_language_data): ...this.
9558 (class auto_language): New class.
9559 (auto_language_defn): New static global.
9560 (language_gdbarch_post_init): Use language_defn::languages.
9561 (_initialize_language): Initialize current_language.
9562 * gdb/language.h (struct language_defn): Rename to...
9563 (struct language_data): ...this.
9564 (struct language_defn): New.
9565 (auto_language_defn): Delete.
9566 (unknown_language_defn): Delete.
9567 (minimal_language_defn): Delete.
9568 (ada_language_defn): Delete.
9569 (asm_language_defn): Delete.
9570 (c_language_defn): Delete.
9571 (cplus_language_defn): Delete.
9572 (d_language_defn): Delete.
9573 (f_language_defn): Delete.
9574 (go_language_defn): Delete.
9575 (m2_language_defn): Delete.
9576 (objc_language_defn): Delete.
9577 (opencl_language_defn): Delete.
9578 (pascal_language_defn): Delete.
9579 (rust_language_defn): Delete.
9580 * gdb/m2-lang.c (m2_language_defn): Convert to...
9581 (m2_language_data): ...this.
9582 (class m2_language): New class.
9583 (m2_language_defn): New static global.
9584 * gdb/objc-lang.c (objc_language_defn): Convert to...
9585 (objc_language_data): ...this.
9586 (class objc_language): New class.
9587 (objc_language_defn): New static global.
9588 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9589 (opencl_language_data): ...this.
9590 (class opencl_language): New class.
9591 (opencl_language_defn): New static global.
9592 * gdb/p-lang.c (pascal_language_defn): Convert to...
9593 (pascal_language_data): ...this.
9594 (class pascal_language): New class.
9595 (pascal_language_defn): New static global.
9596 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9597 language pointer, update comment format.
9598 * gdb/rust-lang.c (rust_language_defn): Convert to...
9599 (rust_language_data): ...this.
9600 (class rust_language): New class.
9601 (rust_language_defn): New static global.
9603 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9605 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9607 <m_stmt_at_address>: New member variable.
9608 (lnp_state_machine::record_line): Don't record some lines, update
9609 tracking of is_stmt at the same address.
9610 (lnp_state_machine::lnp_state_machine): Initialise new member
9613 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9615 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9616 "-include gnu-nat-mig.h".
9617 * gnu-nat-mig.h: New file.
9618 * gnu-nat.c: Include "gnu-nat-mig.h".
9619 (exc_server, msg_reply_server, notify_server,
9620 process_reply_server): Remove declarations.
9622 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9624 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9625 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9626 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9627 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9628 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9629 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9630 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9631 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9632 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9633 to gnu_nat_target class.
9634 * gnu-nat.c: Likewise.
9635 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9636 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9637 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9639 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9640 instead of `gnu_target'.
9642 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9644 * i386-gnu-tdep.c: Include "gdbcore.h"
9645 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9646 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9647 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9648 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9649 i386_gnu_sigcontext_addr): New functions
9650 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9651 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9654 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9656 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9657 before fork_inferior call. Avoid calling it if target_is_pushed returns
9660 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9662 * gnu-nat.h (gnu_target): New variable declaration.
9663 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9665 * gnu-nat.c (gnu_target): New variable.
9666 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9667 add_thread_silent, and add_thread calls.
9668 (gnu_nat_target::create_inferior): Pass gnu_target to
9669 add_thread_silent, thread_change_ptid call.
9670 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9673 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9675 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9676 (gnu_nat_target::find_memory_regions): Remove unused
9677 `old_address' variable.
9679 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9681 * gnu-nat.c: Include "gdbarch.h".
9683 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9685 * reply_mig_hack.awk (Error return): Cast function through
9686 void *, to bypass compiler function call check.
9688 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9690 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9691 $(srcdir)/reply_mig_hack.awk.
9693 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9695 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9697 2020-05-30 Jonny Grant <jg@jguk.org>
9699 * configure.ac (ACX_BUGURL): change bug URL to https.
9701 2020-05-30 Pedro Alves <palves@redhat.com>
9703 * cp-support.c (replace_typedefs_template): New.
9704 (replace_typedefs_qualified_name): Handle
9705 DEMANGLE_COMPONENT_TEMPLATE.
9707 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9709 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9710 dwarf2/index-cache.h, dwarf2/index-write.c,
9711 dwarf2/index-write.h, dwarf2/line-header.c,
9712 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9713 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9714 variables and fields from `dwarf2_per_objfile` to just
9715 `per_objfile` throughout.
9717 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9719 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9720 <push_dwarf_reg_entry_value>: Add comment.
9722 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9723 Keith Seitz <keiths@redhat.com>
9725 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9726 instead of PyEval_ReleaseLock.
9727 (class gdbpy_gil): Move to earlier in file.
9728 (finalize_python): Set gdb_python_initialized.
9729 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9730 when not initialized.
9732 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9734 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9735 <push_dwarf_reg_entry_value>: Remove assert. Override
9736 per_objfile with caller_per_objfile.
9738 2020-05-28 Tom de Vries <tdevries@suse.de>
9740 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9741 PR gold/15646 workaround to symbol kind "type".
9743 2020-05-27 Tom Tromey <tromey@adacore.com>
9745 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9747 2020-05-27 Tom Tromey <tromey@adacore.com>
9749 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9750 Use htab_find_with_hash.
9751 <add_abbrev>: Remove "abbrev_number" parameter.
9752 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9753 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9754 (hash_abbrev): Add comment.
9755 (abbrev_table::lookup_abbrev): Move to header file.
9756 (abbrev_table::read): Update.
9758 2020-05-27 Tom Tromey <tromey@adacore.com>
9760 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9762 <canonical_name>: New member.
9763 <raw_name>: Rename from "name".
9764 (partial_die_info): Initialize canonical_name.
9765 (scan_partial_symbols): Check raw_name.
9766 (partial_die_parent_scope, partial_die_full_name)
9767 (add_partial_symbol, add_partial_subprogram)
9768 (add_partial_enumeration, load_partial_dies): Use "name" method.
9769 (partial_die_info::name): New method.
9770 (partial_die_info::read, guess_partial_die_structure_name)
9771 (partial_die_info::fixup): Update.
9773 2020-05-27 Tom Tromey <tromey@adacore.com>
9775 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9776 <get_ref_die_offset>: Inline.
9777 <get_ref_die_offset_complaint>: New method.
9778 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9779 (attribute::get_ref_die_offset_complaint): Rename from
9780 get_ref_die_offset. Just issue complaint.
9782 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9784 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9786 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9788 * exec.c (exec_file_attach): Use errno value of first openp failure.
9790 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9792 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9793 Don't close thread handle.
9795 2020-05-27 Tom Tromey <tom@tromey.com>
9796 Simon Marchi <simon.marchi@efficios.com>
9798 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9800 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9802 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9803 dwarf2_per_bfd_objfile_data_key>: New globals.
9804 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9805 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9806 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9808 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9809 short-circuit when sharing.
9810 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9811 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9813 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9815 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9817 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9818 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9820 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9822 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9823 build_name_components, find_name_components_bounds>:
9824 Add per_objfile parameter.
9825 (struct mapped_index) <symbol_name_at>: Likewise.
9826 (struct mapped_debug_names): Remove constructor.
9827 <dwarf2_per_objfile>: Remove field.
9828 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9829 (mapped_index_base::find_name_components_bounds,
9830 mapped_index_base::build_name_components,
9831 dw2_expand_symtabs_matching_symbol): Likewise.
9832 (class mock_mapped_index) <symbol_name_at>: Likewise.
9833 (check_match): Likewise.
9834 (check_find_bounds_finds): Likewise.
9835 (test_mapped_index_find_name_component_bounds): Update.
9836 (CHECK_MATCH): Update.
9837 (dw2_expand_symtabs_matching): Update.
9838 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9839 per_objfile parameter.
9840 <find_vec_in_debug_names>: Likewise.
9841 <m_per_objfile>: New field.
9842 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9844 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9845 (dw2_debug_names_iterator::next): Update.
9846 (dw2_debug_names_lookup_symbol): Update.
9847 (dw2_debug_names_expand_symtabs_for_function): Update.
9848 (dw2_debug_names_map_matching_symbols): Update.
9849 (dw2_debug_names_expand_symtabs_matching): Update.
9850 (dwarf2_read_debug_names): Update.
9852 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9854 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9855 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9856 move to dwarf2_per_objfile.
9857 <read_in_chain>: Remove.
9858 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9859 remove_all_cus, age_comp_units>: New methods.
9860 <m_dwarf2_cus>: New member.
9861 (struct dwarf2_per_cu_data) <cu>: Remove.
9862 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9863 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9864 moved to methods of dwarf2_per_objfile.
9865 (dwarf2_clear_marks): Remove.
9866 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9867 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9868 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9869 (dwarf2_per_objfile::remove_all_cus): New.
9870 (class free_cached_comp_units) <~free_cached_comp_units>:
9873 (dw2_do_instantiate_symtab): Adjust.
9874 (fill_in_sig_entry_from_dwo_entry): Adjust.
9875 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9876 (cutu_reader::cutu_reader): Likewise.
9877 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9878 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9879 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9880 and dwarf2_per_objfile::age_comp_units.
9881 (load_partial_comp_unit): Update.
9882 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9883 (process_queue): Likewise.
9884 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9886 (dwarf2_read_addr_index): Likewise.
9887 (follow_die_offset): Likewise.
9888 (dwarf2_fetch_die_loc_sect_off): Likewise.
9889 (dwarf2_fetch_constant_bytes): Likewise.
9890 (dwarf2_fetch_die_type_sect_off): Likewise.
9891 (follow_die_sig_1): Likewise.
9892 (load_full_type_unit): Likewise.
9893 (read_signatured_type): Likewise.
9894 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9895 (dwarf2_cu::~dwarf2_cu): Remove.
9896 (dwarf2_per_objfile::get_cu): New.
9897 (dwarf2_per_objfile::set_cu): New.
9898 (age_cached_comp_units): Rename to...
9899 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9900 to std::unordered_map.
9901 (free_one_cached_comp_unit): Rename to...
9902 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9903 to std::unordered_map.
9904 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9905 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9906 a dwarf2_per_objfile in data.
9907 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9908 (dwarf2_clear_marks): Remove.
9910 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9912 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9913 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9914 (init_tu_and_read_dwo_dies): Likewise.
9915 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9916 (cutu_reader::cutu_reader): Likewise.
9917 (load_partial_comp_unit): Likewise.
9918 (process_psymtab_comp_unit): Update.
9919 (build_type_psymtabs_1): Update.
9920 (process_skeletonless_type_unit): Update.
9921 (load_full_comp_unit): Update.
9922 (find_partial_die): Update.
9923 (dwarf2_read_addr_index): Update.
9924 (read_signatured_type): Update.
9926 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9928 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9929 m_header_read_in>: New fields.
9930 <get_header>: New method.
9931 * dwarf2/read.c (per_cu_header_read_in): Remove.
9932 (dwarf2_per_cu_data::get_header): New.
9933 (dwarf2_per_cu_data::addr_size): Update.
9934 (dwarf2_per_cu_data::offset_size): Update.
9935 (dwarf2_per_cu_data::ref_addr_size): Update.
9937 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9939 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9940 (dw2_do_instantiate_symtab): Update.
9941 (queue_and_load_all_dwo_tus): Change parameter from
9942 dwarf2_per_cu_data to dwarf2_cu.
9943 (dwarf2_fetch_die_loc_sect_off): Update.
9944 (dwarf2_fetch_constant_bytes): Update.
9945 (dwarf2_fetch_die_type_sect_off): Update.
9947 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9949 * dwarf2/read.c (process_full_comp_unit,
9950 process_full_type_unit): Remove per_cu, per_objfile paramters.
9951 Add dwarf2_cu parameter.
9952 (process_queue): Update.
9954 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9956 * dwarf2/read.c (create_cu_from_index_list): Replace
9957 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9958 (create_cus_from_index_list): Likewise.
9959 (create_cus_from_index): Likewise.
9960 (create_signatured_type_table_from_index): Likewise.
9961 (create_cus_from_debug_names_list): Likewise.
9962 (create_cus_from_debug_names): Likewise.
9963 (dwarf2_read_gdb_index): Update.
9964 (dwarf2_read_debug_names): Update.
9966 2020-05-27 Tom Tromey <tom@tromey.com>
9967 Simon Marchi <simon.marchi@efficios.com>
9969 * dwarf2/read.h (struct dwarf2_per_objfile)
9970 <get_type_for_signatured_type, set_type_for_signatured_type>:
9972 <m_type_map>: New member.
9973 (struct signatured_type) <type>: Remove.
9975 (dwarf2_per_objfile::get_type_for_signatured_type,
9976 dwarf2_per_objfile::set_type_for_signatured_type): New.
9977 (get_signatured_type): Use new methods.
9979 2020-05-27 Tom Tromey <tom@tromey.com>
9980 Simon Marchi <simon.marchi@efficios.com>
9982 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9983 (struct dwarf2_per_objfile) <type_units>: New member.
9984 <get_type_unit_group_unshareable>: New method.
9985 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9986 num_symtabs, symtabs>: Remove; move to
9987 type_unit_group_unshareable.
9988 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9989 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9990 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9992 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9994 * dwarf2/read.h (struct dwarf2_per_cu_data):
9995 <dwarf2_per_objfile>: Remove.
9996 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9998 (create_signatured_type_table_from_index): Likewise.
9999 (create_signatured_type_table_from_debug_names): Likewise.
10000 (create_debug_type_hash_table): Likewise.
10001 (fill_in_sig_entry_from_dwo_entry): Likewise.
10002 (create_type_unit_group): Likewise.
10003 (read_comp_units_from_section): Likewise.
10004 (create_cus_hash_table): Likewise.
10006 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10008 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10009 dwarf2_per_cu_data::dwarf2_per_objfile.
10010 (compute_compunit_symtab_includes): Likewise.
10011 (dwarf2_cu::start_symtab): Likewise.
10013 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10015 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10017 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10018 (read_namespace_alias): Update.
10019 (lookup_die_type): Update.
10020 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10021 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10023 (disassemble_dwarf_expression): Update.
10025 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10027 * dwarf2/read.h (struct dwarf2_queue_item): Add
10028 dwarf2_per_objfile parameter, assign new parameter.
10029 <per_objfile>: New field.
10030 * dwarf2/read.c (free_one_cached_comp_unit): Add
10031 dwarf2_per_objfile parameter.
10032 (queue_comp_unit): Likewise.
10033 (dw2_do_instantiate_symtab): Update.
10034 (process_psymtab_comp_unit): Update.
10035 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10036 (process_imported_unit_die): Update.
10037 (queue_and_load_dwo_tu): Update.
10038 (follow_die_offset): Update.
10039 (follow_die_sig_1): Update.
10041 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10043 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10044 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10045 (read_call_site_scope): Assign per_objfile.
10046 (dwarf2_per_cu_data::objfile): Remove.
10047 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10048 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10049 dwarf2_per_objfile parameter.
10050 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10051 dwarf2_per_objfile parameter.
10052 (dwarf_expr_reg_to_entry_parameter): Add output
10053 dwarf2_per_objfile parameter.
10054 (locexpr_get_frame_base): Update.
10055 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10056 <push_dwarf_reg_entry_value>: Update.
10057 <call_site_to_target_addr>: Update.
10058 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10060 (value_of_dwarf_reg_entry): Update.
10061 (rw_pieced_value): Update.
10062 (indirect_synthetic_pointer): Update.
10063 (dwarf2_evaluate_property): Update.
10064 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10066 (locexpr_read_variable): Update.
10067 (locexpr_get_symbol_read_needs): Update.
10068 (loclist_read_variable): Update.
10070 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10072 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10073 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10074 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10076 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10077 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10078 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10080 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10081 sect_variable_value): Add dwarf2_per_objfile parameter.
10082 (class dwarf_evaluate_loc_desc) <dwarf_call,
10083 dwarf_variable_value>: Update.
10084 (fetch_const_value_from_synthetic_pointer): Add
10085 dwarf2_per_objfile parameter.
10086 (fetch_const_value_from_synthetic_pointer): Update.
10087 (coerced_pieced_ref): Update.
10088 (class symbol_needs_eval_context) <dwarf_call,
10089 dwarf_variable_value>: Update.
10090 (dwarf2_compile_expr_to_ax): Update.
10092 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10094 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10096 (dwarf2_evaluate_loc_desc_full): Update.
10098 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10100 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10102 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10103 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10104 dwarf2_per_objfile parameter.
10105 (decode_debug_loc_dwo_addresses): Likewise.
10106 (dwarf2_find_location_expression): Update.
10107 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10108 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10110 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10112 (locexpr_describe_location_1): Likewise.
10113 (locexpr_describe_location): Update.
10115 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10117 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10119 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10120 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10121 (dwarf2_compile_property_to_c): Update.
10122 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10123 use text offset from objfile.
10124 (locexpr_tracepoint_var_ref): Update.
10125 (locexpr_generate_c_location): Update.
10126 (loclist_describe_location): Update.
10127 (loclist_tracepoint_var_ref): Update.
10128 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10129 dwarf2_per_objfile parameter.
10130 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10131 use text offset from objfile.
10132 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10134 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10136 * dwarf2/expr.h (struct dwarf_expr_context)
10137 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10139 <per_objfile>: New member.
10140 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10141 dwarf2_per_objfile parameter. Don't set offset, set
10143 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10144 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10145 a dwarf2_per_objfile object instead of an offset.
10146 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10148 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10149 to dwarf2_expr_executor constructor. Don't set offset.
10150 (dwarf2_fetch_cfa_info): Update.
10151 (struct dwarf2_frame_cache) <text_offset>: Remove.
10152 <per_objfile>: New field.
10153 (dwarf2_frame_cache): Update.
10154 (dwarf2_frame_prev_register): Update.
10155 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10156 <dwarf_evaluate_loc_desc>: Add constructor.
10157 (dwarf2_evaluate_loc_desc_full): Update.
10158 (dwarf2_locexpr_baton_eval): Update.
10159 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10161 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10163 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10165 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10166 addr_sized_int_type>: Move to dwarf2_cu.
10167 <int_type>: Move to dwarf2_per_objfile.
10168 (struct dwarf2_per_objfile) <int_type>: Move here.
10169 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10170 addr_sized_int_type>: Move here.
10171 (read_func_scope): Update.
10172 (read_array_type): Update.
10173 (read_tag_string_type): Update.
10174 (attr_to_dynamic_prop): Update.
10175 (dwarf2_per_cu_data::int_type): Rename to...
10176 (dwarf2_per_objfile::int_type): ... this.
10177 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10178 (dwarf2_cu::addr_sized_int_type): ... this.
10179 (read_subrange_type): Update.
10180 (dwarf2_per_cu_data::addr_type): Rename to...
10181 (dwarf2_cu::addr_type): ... this.
10182 (set_die_type): Update.
10184 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10186 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10187 data through per_cu->cu.
10189 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10191 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10192 dwarf2_per_cu_data parameter fo dwarf2_cu.
10193 (lookup_dwo_type_unit): Likewise.
10194 (read_cutu_die_from_dwo): Likewise.
10195 (lookup_dwo_unit): Likewise.
10196 (open_and_init_dwo_file): Likewise.
10197 (lookup_dwo_cutu): Likewise.
10198 (lookup_dwo_comp_unit): Likewise.
10199 (lookup_dwo_type_unit): Likewise.
10200 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10201 (cutu_reader::cutu_reader): Update.
10203 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10205 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10207 (process_full_type_unit): Likewise.
10208 (process_queue): Update.
10210 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10212 * dwarf2/read.c (recursively_compute_inclusions): Add
10213 dwarf2_per_objfile parameter.
10214 (compute_compunit_symtab_includes): Likewise.
10215 (process_cu_includes): Update.
10217 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10219 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10221 (create_type_unit_group): Update.
10222 (process_psymtab_comp_unit_reader): Update.
10223 (build_type_psymtabs_reader): Update.
10225 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10227 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10228 object through m_this_cu->cu.
10230 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10232 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10233 the info parameter.
10234 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10236 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10238 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10239 per_objfile parameter.
10240 (load_full_type_unit): Add per_objfile parameter.
10241 (read_signatured_type): Likewise.
10242 (load_full_comp_unit): Likewise.
10243 (load_cu): Likewise.
10244 (dw2_do_instantiate_symtab): Likewise.
10245 (dw2_get_file_names): Likewise.
10246 (dw2_map_symtabs_matching_filename): Update.
10247 (dw_expand_symtabs_matching_file_matcher): Update.
10248 (dw2_map_symbol_filenames): Update.
10249 (process_psymtab_comp_unit): Add per_objfile parameter.
10250 (build_type_psymtabs_1): Update.
10251 (process_skeletonless_type_unit): Update.
10252 (dwarf2_build_psymtabs_hard): Update.
10253 (load_partial_comp_unit): Add per_objfile parameter.
10254 (scan_partial_symbols): Update.
10255 (load_full_comp_unit): Add per_objfile parameter.
10256 (process_imported_unit_die): Update.
10257 (create_cus_hash_table): Update.
10258 (find_partial_die): Update.
10259 (dwarf2_read_addr_index): Update.
10260 (follow_die_offset): Update.
10261 (dwarf2_fetch_die_loc_sect_off): Update.
10262 (dwarf2_fetch_constant_bytes): Update.
10263 (dwarf2_fetch_die_type_sect_off): Update.
10264 (follow_die_sig_1): Update.
10265 (load_full_type_unit): Add per_objfile parameter.
10266 (read_signatured_type): Likewise.
10268 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10270 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10273 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10275 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10276 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10277 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10279 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10280 (create_cus_from_index): Update.
10281 (dwarf2_read_gdb_index): Update.
10282 (create_cus_from_debug_names): Update.
10283 (dwarf2_read_debug_names): Update.
10284 (get_abbrev_section_for_cu): Update.
10285 (create_all_comp_units): Update.
10286 (read_attribute_value): Update.
10287 (get_debug_line_section): Update.
10288 * dwarf2/index-cache.c (index_cache::store): Update.
10289 * dwarf2/index-write.c (save_gdb_index_command): Update.
10290 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10292 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10294 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10296 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10297 dwarf2_per_cu_data::per_bfd.
10298 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10299 (create_type_unit_group): Likewise.
10300 (queue_comp_unit): Remove reference to
10301 per_cu->dwarf2_per_objfile.
10302 (maybe_queue_comp_unit): Likewise.
10303 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10304 (create_cus_hash_table): Assign new field.
10306 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10308 * dwarf2/read.c: Replace
10309 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10310 dwarf2_cu->per_objfile throughout.
10312 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10314 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10315 parameter, don't use per_cu->dwarf2_per_objfile.
10316 (dw2_instantiate_symtab): Likewise.
10317 (dw2_find_last_source_symtab): Update.
10318 (dw2_map_expand_apply): Update.
10319 (dw2_lookup_symbol): Update.
10320 (dw2_expand_symtabs_for_function): Update.
10321 (dw2_expand_all_symtabs): Update.
10322 (dw2_expand_symtabs_with_fullname): Update.
10323 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10324 don't use per_cu->dwarf2_per_objfile.
10325 (dw2_expand_marked_cus): Update.
10326 (dw2_find_pc_sect_compunit_symtab): Update.
10327 (dw2_debug_names_lookup_symbol): Update.
10328 (dw2_debug_names_expand_symtabs_for_function): Update.
10329 (dw2_debug_names_map_matching_symbols): Update.
10330 (dwarf2_psymtab::expand_psymtab): Update.
10332 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10334 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10335 <per_objfile>: New member.
10336 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10337 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10339 (cutu_reader::cutu_reader): Update.
10340 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10342 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10344 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10345 struct dwarf2_per_objfile.
10346 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10348 * dwarf2/read.c (set_die_type): Update.
10349 (get_die_type_at_offset): Update.
10351 2020-05-27 Tom Tromey <tom@tromey.com>
10352 Simon Marchi <simon.marchi@efficios.com>
10354 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10356 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10357 get_symtab, set_symtab>: New methods.
10358 <m_symtabs>: New field.
10359 (struct dwarf2_psymtab): Derive from partial_symtab.
10360 <readin_p, get_compunit_symtab>: Declare methods.
10361 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10362 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10364 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10365 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10366 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10367 (dw2_symtab_iter_next, dw2_print_stats)
10368 (dw2_expand_symtabs_with_fullname)
10369 (dw2_expand_symtabs_matching_one)
10370 (dw_expand_symtabs_matching_file_matcher)
10371 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10372 (dw2_debug_names_iterator::next)
10373 (dw2_debug_names_map_matching_symbols)
10374 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10375 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10376 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10378 (get_compunit_symtab, process_full_comp_unit)
10379 (process_full_type_unit): Update.
10380 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10382 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10384 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10385 then introduce a new dwarf2_per_objfile type.
10386 <read_line_string>: Move to the new dwarf2_per_objfile type.
10387 <objfile>: Likewise.
10388 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10389 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10390 dwarf2_per_objfile->per_bfd.
10391 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10392 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10393 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10394 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10395 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10396 (dwarf2_per_objfile::locate_sections): Rename to...
10397 (dwarf2_per_bfd::locate_sections): ... this.
10398 (dwarf2_per_objfile::get_cutu): Rename to...
10399 (dwarf2_per_bfd::get_cutu): ... this.
10400 (dwarf2_per_objfile::get_cu): Rename to...
10401 (dwarf2_per_bfd::get_cu): ... this.
10402 (dwarf2_per_objfile::get_tu): Rename to...
10403 (dwarf2_per_bfd::get_tu): ... this.
10404 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10405 (dwarf2_per_bfd::allocate_per_cu): ... this.
10406 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10407 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10408 (get_gdb_index_contents_ftype): Change parameter from
10409 dwarf2_per_objfile to dwarf2_per_bfd.
10410 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10411 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10413 2020-05-27 Tom Tromey <tom@tromey.com>
10414 Simon Marchi <simon.marchi@efficios.com>
10416 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10417 (allocate_piece_closure): Set "per_objfile" member.
10418 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10419 (locexpr_describe_location, loclist_describe_location): Use new
10421 * dwarf2/read.c (read_call_site_scope)
10422 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10423 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10424 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10425 handle_data_member_location): Set per_objfile member.
10426 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10428 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10430 2020-05-27 Tom Tromey <tom@tromey.com>
10432 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10433 allocate_signatured_type>: Declare new methods.
10434 <m_num_psymtabs>: New member.
10435 (struct dwarf2_per_cu_data) <index>: New member.
10436 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10437 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10438 (create_cu_from_index_list): Use allocate_per_cu.
10439 (create_signatured_type_table_from_index)
10440 (create_signatured_type_table_from_debug_names)
10441 (create_debug_type_hash_table, add_type_unit)
10442 (read_comp_units_from_section): Use allocate_signatured_type.
10444 2020-05-27 Tom Tromey <tom@tromey.com>
10446 * psymtab.c (partial_map_expand_apply)
10447 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10448 (psym_lookup_global_symbol_language)
10449 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10450 (psym_print_stats, psym_expand_symtabs_for_function)
10451 (psym_map_symbol_filenames, psym_map_matching_symbols)
10452 (psym_expand_symtabs_matching)
10453 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10454 (maintenance_check_psymtabs): Update.
10455 * psympriv.h (struct partial_symtab) <readin_p,
10456 get_compunit_symtab>: Add objfile parameter.
10457 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10459 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10460 get_compunit_symtab>: Likewise.
10461 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10463 2020-05-27 Tom Tromey <tom@tromey.com>
10465 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10467 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10468 (create_cu_from_index_list)
10469 (create_signatured_type_table_from_index)
10470 (create_signatured_type_table_from_debug_names)
10471 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10472 (dwarf2_create_include_psymtab)
10473 (create_debug_type_hash_table, add_type_unit)
10474 (create_type_unit_group, read_comp_units_from_section)
10475 (dwarf2_compute_name, create_cus_hash_table)
10476 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10477 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10479 (dw2_get_real_path): Likewise. Change argument to
10480 dwarf2_per_objfile.
10482 2020-05-27 Luis Machado <luis.machado@linaro.org>
10485 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10486 for ldrd (immediate).
10488 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10490 * command.h: Add comment giving the name of class_tui.
10491 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10492 create the fake command for the help for class_tui.
10494 2020-05-26 Tom Tromey <tromey@adacore.com>
10496 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10497 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10498 (val_atr): New function.
10499 (value_val_atr): Use it.
10500 * ada-valprint.c (print_optional_low_bound): Change low bound
10501 handling for enums.
10502 (val_print_packed_array_elements): Don't call discrete_position.
10503 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10504 discrete_position for enum types.
10505 * language.c (default_print_array_index): Change type.
10506 * language.h (struct language_defn) <la_print_array_index>: Add
10507 index_type parameter, change type of index_value.
10508 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10509 (default_print_array_index): Update.
10510 * valprint.c (maybe_print_array_index): Don't call
10511 value_from_longest. Update.
10512 (value_print_array_elements): Don't call discrete_position.
10514 2020-05-26 Tom Tromey <tromey@adacore.com>
10516 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10517 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10519 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10522 * avr-tdep.c (avr_integer_to_address): Return data or code
10523 address accordingly to the second 'type' argument of the
10526 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10528 * infcmd.c, inferior.h: (construct_inferior_arguments):
10529 Moved function from here to gdbsupport/common-inferior.{h,cc}
10531 2020-05-23 Tom Tromey <tom@tromey.com>
10533 Revert commit eca1f90c:
10534 * NEWS: Remove entry for completion styling.
10535 * completer.c (_rl_completion_prefix_display_length): Move
10537 (gdb_fnprint): Revert.
10538 (gdb_display_match_list_1): Likewise.
10539 * cli/cli-style.c (completion_prefix_style)
10540 (completion_difference_style, completion_suffix_style): Remove.
10541 (_initialize_cli_style): Revert.
10542 * cli/cli-style.h (completion_prefix_style)
10543 (completion_difference_style, completion_suffix_style): Don't
10546 2020-05-24 Pedro Alves <palves@redhat.com>
10548 * symtab.c (completion_list_add_name): Return boolean indication
10549 of whether the symbol matched.
10550 (completion_list_add_symbol): Don't try to remove C++ aliases if
10551 the symbol didn't match in the first place.
10552 * symtab.h (completion_list_add_name): Return bool.
10554 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10556 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10559 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10563 2020-05-23 Tom Tromey <tom@tromey.com>
10565 * NEWS: Add entry for completion styling.
10566 * completer.c (_rl_completion_prefix_display_length): Move
10567 declaration earlier.
10568 (gdb_fnprint): Use completion_style.
10569 (gdb_display_match_list_1): Likewise.
10570 * cli/cli-style.c (completion_prefix_style)
10571 (completion_difference_style, completion_suffix_style): New
10573 (_initialize_cli_style): Register new globals.
10574 * cli/cli-style.h (completion_prefix_style)
10575 (completion_difference_style, completion_suffix_style): Declare.
10577 2020-05-23 Pedro Alves <palves@redhat.com>
10579 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10580 (parse_escape): Use ISDIGIT instead of isdigit.
10581 (puts_debug): Use gdb_isprint instead of isprint.
10582 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10583 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10584 ISSPACE instead of isspace.
10585 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10586 instead of isspace.
10587 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10588 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10589 instead of isxdigit and ISDIGIT instead of isdigit.
10591 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10593 * gdbtypes.h (struct type) <field>: New method.
10594 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10597 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10599 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10600 (TYPE_FIELDS): Use type::fields. Change all call sites that
10601 modify the propery to use type::set_fields instead.
10603 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10605 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10606 type::num_fields instead.
10608 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10610 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10612 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10613 that modify the number of fields to use type::set_num_fields
10616 2020-05-22 Tom Tromey <tromey@adacore.com>
10618 * compile/compile-object-load.h (munmap_list_free): Don't
10621 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10623 * annotate.c (annotate_source_line): Update return type, add call
10624 to update current symtab and line.
10625 * annotate.h (annotate_source_line): Update return type, and
10626 extend header comment.
10627 * source.c (info_line_command): Check annotation_level before
10628 calling annotate_source_line.
10629 * stack.c (print_frame_info): If calling annotate_source_line
10630 returns true, then don't print any other source line information.
10632 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10634 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10636 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10638 * coffread.c (patch_type): Remove NULL check before xfree.
10639 * corefile.c (set_gnutarget): Likewise.
10640 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10641 * exec.c (build_section_table): Likewise.
10642 * remote.c (remote_target::pass_signals): Likewise.
10643 * utils.c (n_spaces): Likewise.
10644 * cli/cli-script.c (document_command): Likewise.
10645 * i386-windows-tdep.c (core_process_module_section): Likewise.
10646 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10648 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10650 * symfile.c (reread_symbols): Clear objfile's section_offsets
10651 vector and section indices, re-compute them by calling
10654 2020-05-20 Tom Tromey <tromey@adacore.com>
10656 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10657 (desc_one_bound, desc_index_type): Compute field name.
10659 2020-05-20 Tom de Vries <tdevries@suse.de>
10662 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10664 2020-05-20 Alan Modra <amodra@gmail.com>
10667 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10669 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10670 passed to bfd_set_filename.
10671 * symfile-mem.c (add_vsyscall_page): Likewise for string
10672 passed to symbol_file_add_from_memory.
10673 (symbol_file_add_from_memory): Make name param a const char* and
10676 2020-05-20 Alan Modra <amodra@gmail.com>
10678 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10679 rather than accessing bfd->filename directly.
10680 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10681 and use bfd_section_name.
10682 * dwarf2/frame.c (decode_frame_entry): Likewise.
10683 * exec.c (exec_set_section_address): Likewise.
10684 * solib-aix.c (solib_aix_bfd_open): Likewise.
10685 * stap-probe.c (get_stap_base_address): Likewise.
10686 * symfile.c (reread_symbols): Likewise.
10688 2020-05-19 Tom Tromey <tromey@adacore.com>
10690 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10692 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10694 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10696 2020-05-19 Pedro Alves <palves@redhat.com>
10698 * NEWS (set exec-file-mismatch): Adjust entry.
10699 * exec.c: Include "build-id.h".
10700 (validate_exec_file): Try to match build IDs instead of filenames.
10701 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10702 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10703 and pass down 'warn_if_slow'.
10704 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10705 gdb_bfd_open_closure to pass it down.
10706 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10708 2020-05-19 Pedro Alves <palves@redhat.com>
10710 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10711 * target.c (target_fileio_open_1): Rename to target_fileio_open
10712 and make extern. Use bool.
10713 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10714 (target_fileio_read_alloc_1): Adjust.
10715 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10716 (target_fileio_open_warn_if_slow): Delete declaration.
10718 2020-05-19 Pedro Alves <palves@redhat.com>
10720 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10721 Adjust all callers.
10723 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10725 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10726 whether disp is negative.
10728 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10730 * symfile.h (struct symfile_segment_data)
10731 <~symfile_segment_data>: Remove.
10732 <segment_info>: Change to std::vector.
10733 * symfile.c (default_symfile_segments): Update.
10734 * elfread.c (elf_symfile_segments): Update.
10736 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10738 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10740 <segment_bases, segment_sizes>: Remove.
10741 * symfile.c (default_symfile_segments): Update.
10742 * elfread.c (elf_symfile_segments): Update.
10743 * remote.c (remote_target::get_offsets): Update.
10744 * solib-target.c (solib_target_relocate_section_addresses):
10747 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10749 * symfile.h (struct symfile_segment_data): Initialize fields.
10750 <~symfile_segment_data>: Add.
10751 (symfile_segment_data_up): New.
10752 (struct sym_fns) <sym_segments>: Return a
10753 symfile_segment_data_up.
10754 (default_symfile_segments): Return a symfile_segment_data_up.
10755 (free_symfile_segment_data): Remove.
10756 (get_symfile_segment_data): Return a symfile_segment_data_up.
10757 * symfile.c (default_symfile_segments): Likewise.
10758 (get_symfile_segment_data): Likewise.
10759 (free_symfile_segment_data): Remove.
10760 (symfile_find_segment_sections): Update.
10761 * elfread.c (elf_symfile_segments): Return a
10762 symfile_segment_data_up.
10763 * remote.c (remote_target::get_offsets): Update.
10764 * solib-target.c (solib_target_relocate_section_addresses):
10766 * symfile-debug.c (debug_sym_segments): Return a
10767 symfile_segment_data_up.
10769 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10772 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10773 Hardcode register numbers.
10776 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10777 procfs_find_LDT_entry): Remove.
10778 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10779 procfs_find_LDT_entry): Remove.
10780 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10783 2020-05-17 Pedro Alves <palves@redhat.com>
10784 Andrew Burgess <andrew.burgess@embecosm.com>
10785 Keno Fischer <keno@juliacomputing.com>
10788 * breakpoint.c (build_target_condition_list): Update comments.
10789 (build_target_command_list): Update comments and skip matching
10791 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10792 a separate function. Simplify "set breakpoint auto-hw off"
10794 (insert_breakpoints): Update comment.
10795 (tracepoint_locations_match): New parameter. For breakpoints,
10796 compare location types too, if the caller wants to.
10797 (handle_automatic_hardware_breakpoints): New functions.
10798 (bp_location_is_less_than): Also sort by location type and
10799 hardware breakpoint length.
10800 (update_global_location_list): Handle "set breakpoint auto-hw on"
10802 (update_breakpoint_locations): Ask breakpoint_locations_match to
10803 ignore location types.
10805 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10807 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10808 type::name instead.
10810 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10812 * gdbtypes.h (struct type) <name, set_name>: New methods.
10813 (TYPE_CODE): Use type::name. Change all call sites used to set
10814 the name to use type::set_name instead.
10816 2020-05-16 Tom Tromey <tom@tromey.com>
10818 * top.c (quit_force): Update.
10819 * infrun.c (handle_no_resumed): Update.
10820 * top.h (all_uis): New function.
10823 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10825 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10827 2020-05-16 Pedro Alves <palves@redhat.com>
10830 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10832 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10834 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10836 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10837 (sparc64_adi_info): Likewise.
10839 2020-05-15 Tom Tromey <tom@tromey.com>
10841 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10843 (lookup_objfile_from_block): Remove.
10844 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10845 (lookup_global_symbol): Use block_objfile.
10846 * symtab.h (lookup_objfile_from_block): Don't declare.
10847 * printcmd.c (clear_dangling_display_expressions): Use
10849 * parse.c (operator_check_standard): Use block_objfile.
10851 2020-05-15 Tom Tromey <tom@tromey.com>
10853 * language.c (language_alloc_type_symbol): Set
10855 * symtab.c (initialize_objfile_symbol): Remove.
10856 (allocate_symbol): Remove.
10857 (allocate_template_symbol): Remove.
10858 * dwarf2/read.c (fixup_go_packaging): Use "new".
10859 (new_symbol): Use "new".
10860 (read_variable): Don't call initialize_objfile_symbol. Use
10862 (read_func_scope): Use "new".
10863 * xcoffread.c (process_xcoff_symbol): Don't call
10864 initialize_objfile_symbol.
10865 (SYMBOL_DUP): Remove.
10866 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10868 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10869 (allocate_template_symbol): Don't declare.
10870 (struct symbol): Add copy constructor. Change defaults.
10871 * jit.c (finalize_symtab): Use "new".
10872 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10874 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10875 (common_block_end): Use "new".
10876 * mdebugread.c (parse_symbol): Use "new".
10877 (new_symbol): Likewise.
10879 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10881 * NEWS: Mention changes to help and apropos.
10883 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10885 * command.h (enum command_class): Improve comments, document
10886 that class_alias is for user-defined aliases, give the class
10887 name for each class, remove unused class_xdb.
10888 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10889 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10890 by a precise class.
10891 * infcmd.c (_initialize_infcmd): Likewise.
10892 * reverse.c (_initialize_reverse): Likewise.
10893 * stack.c (_initialize_stack): Likewise.
10894 * symfile.c (_initialize_symfile): Likewise.
10895 * tracepoint.c (_initialize_tracepoint): Likewise.
10897 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10899 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10900 when their aliased command is traversed.
10901 (help_cmd): Add fput_command_names_styled call to
10902 output command name and aliases when command has an alias.
10904 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10906 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10907 * cli/cli-decode.c (help_cmd_list): Declare as static,
10908 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10909 a command together with the command.
10910 (fput_command_name_styled, fput_command_names_styled): New functions.
10911 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10912 fput_command_name_styled.
10913 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10914 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10916 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10918 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10919 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10920 * command.h (cmd_show_list): Likewise.
10921 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10922 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10924 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10926 * unittests/command-def-selftests.c (traverse_command_structure):
10927 Verify all commands of a list have the same prefix command and
10928 that only the top cmdlist commands have a null prefix.
10930 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10932 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10933 as prefix, not one of its aliases.
10934 (set_cmd_prefix): Remove.
10935 (do_add_cmd): Centralize the setting of the prefix of a command, when
10936 command is defined after its full chain of prefix commands.
10937 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10938 (add_setshow_cmd_full): Likewise.
10939 (update_prefix_field_of_prefixed_commands): New function.
10940 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10941 update_prefix_field_of_prefixed_commands.
10942 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10943 addresses of remote_set_cmdlist and remote_show_cmdlist given
10944 as argument, not the address of an argument.
10945 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10946 * gdb/remote.c (_initialize_remote): Likewise.
10948 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10950 * cli/cli-cmds.c (alias_command): Check for an existing alias
10951 using lookup_cmd_composition, as valid_command_p is too strict
10952 and forbids aliases that are the prefix of an existing alias
10954 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10955 command is properly recognised as a valid command.
10957 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10959 * unittests/help-doc-selftests.c: Rename to
10960 unittests/command-def-selftests.c
10961 * unittests/command-def-selftests.c (help_doc_tests): Update some
10963 (command_structure_tests, traverse_command_structure): New namespace
10965 (command_structure_invariants_tests): New function.
10966 (_initialize_command_def_selftests) Renamed from
10967 _initialize_help_doc_selftests, register command_structure_invariants
10970 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10972 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10973 an alias of 'show'.
10975 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10977 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10978 ada_is_fixed_point_type. Update all callers.
10979 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10981 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10982 Update all callers.
10983 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10984 print_fixed_point_type. Update all callers.
10985 * ada-valprint.c (ada_value_print_num): Replace call to
10986 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10988 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10990 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10992 (cpu_supports_bts): Add CV_AMD case.
10994 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10995 Simon Marchi <simon.marchi@efficios.com>
10997 * infrun.c (stop_all_threads): Collect multiple wait events at
11000 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11002 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11003 type::code instead.
11005 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11007 * gdbtypes.h (struct type) <code, set_code>: New methods.
11008 (TYPE_CODE): Use type::code. Change all call sites used to set
11009 the code to use type::set_code instead.
11011 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11012 Tom de Vries <tdevries@suse.de>
11013 Pedro Alves <palves@redhat.com>
11016 * infrun.c (stop_all_threads): Do NOT ignore
11017 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11018 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11020 (handle_no_resumed): Remove code handling a live inferior with no
11022 * remote.c (has_single_non_exited_thread): New.
11023 (remote_target::update_thread_list): Do not delete a thread if is
11024 the last thread of the process.
11025 * thread.c (thread_select): Call delete_exited_threads instead of
11028 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11030 * infrun.c (stop_all_threads): Enable/disable thread events of all
11031 targets. Move a debug message denoting the end of the function
11032 into the SCOPED_EXIT block.
11034 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11036 * process-stratum-target.h: Include <set>.
11037 (all_non_exited_process_targets, switch_to_target_no_thread): New
11038 function declarations.
11039 * process-stratum-target.c (all_non_exited_process_targets)
11040 (switch_to_target_no_thread): New function implementations.
11042 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11044 * infrun.c (handle_inferior_event): Extract out a piece of code
11046 (mark_non_executing_threads): ...this new function.
11048 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11050 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11053 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11055 * regcache.c (regcache_read_pc_protected): New function
11056 implementation that returns 0 if the PC cannot read via
11057 'regcache_read_pc'.
11058 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11059 instead of 'regcache_read_pc'.
11060 (keep_going_pass_signal): Ditto.
11062 2020-05-13 Tom Tromey <tromey@adacore.com>
11064 * ada-lang.c (align_value): Remove.
11065 (ada_template_to_fixed_record_type_1): Use align_up.
11067 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11069 * async-event.c: Update the copyright year.
11070 * async-event.h: Update the copyright year.
11072 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
11074 * objfiles.h (is_addr_in_objfile,
11075 shared_objfile_contains_address_p): Return bool.
11076 * objfile.c (is_addr_in_objfile,
11077 shared_objfile_contains_address_p): Return bool.
11079 2020-05-11 Tom Tromey <tromey@adacore.com>
11081 * cli/cli-cmds.c (info_command): Restore.
11082 (_initialize_cli_cmds): Use add_prefix_command for "info".
11083 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11085 2020-05-11 Tom Tromey <tromey@adacore.com>
11087 * ada-lang.c (ada_value_primitive_field): Now public.
11088 * ada-lang.h (ada_value_primitive_field): Declare.
11089 * ada-valprint.c (print_field_values): Use
11090 ada_value_primitive_field for wrapper fields.
11092 2020-05-11 Tom de Vries <tdevries@suse.de>
11094 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11097 2020-05-11 Tom de Vries <tdevries@suse.de>
11100 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11101 with length 0, if not gdb-produced.
11102 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11104 2020-05-09 Tom de Vries <tdevries@suse.de>
11107 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11110 2020-05-09 Tom Tromey <tom@tromey.com>
11112 * top.c (server_command): Now bool.
11113 * top.h (server_command): Now bool.
11115 2020-05-08 Tom Tromey <tromey@adacore.com>
11117 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11118 already being processed.
11120 2020-05-08 Tom Tromey <tom@tromey.com>
11122 * printcmd.c (struct display) <next>: Remove.
11123 <display>: New constructor.
11124 <exp_string>: Now a std::string.
11125 <enabled_p>: Now a bool.
11126 (display_number): Move definition earlier.
11127 (displays): Rename from display_chain. Now a std::vector.
11128 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11129 (display_command): Update.
11130 (do_one_display, disable_display)
11131 (enable_disable_display_command, do_enable_disable_display):
11133 (free_display): Remove.
11134 (clear_displays): Rewrite.
11135 (delete_display): Update.
11136 (map_display_numbers): Use function_view. Remove "data"
11138 (do_delete_display): Remove.
11139 (undisplay_command): Update.
11140 (do_one_display, do_displays, disable_display)
11141 (info_display_command): Update.
11142 (do_enable_disable_display): Remove.
11143 (enable_disable_display_command)
11144 (clear_dangling_display_expressions): Update.
11146 2020-05-08 Tom Tromey <tom@tromey.com>
11148 * symtab.c (set_symbol_cache_size)
11149 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11150 (maintenance_print_symbol_cache_statistics): Update.
11151 * symmisc.c (print_symbol_bcache_statistics)
11152 (print_objfile_statistics, maintenance_print_objfiles)
11153 (maintenance_info_symtabs, maintenance_check_symtabs)
11154 (maintenance_expand_symtabs, maintenance_info_line_tables):
11156 * symfile-debug.c (set_debug_symfile): Update.
11157 * source.c (forget_cached_source_info): Update.
11158 * python/python.c (gdbpy_progspaces): Update.
11159 * psymtab.c (maintenance_info_psymtabs): Update.
11160 * probe.c (parse_probes): Update.
11161 * linespec.c (iterate_over_all_matching_symtabs)
11162 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11163 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11164 * exec.c (exec_target::close): Update.
11165 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11166 * breakpoint.c (print_one_breakpoint_location)
11167 (create_longjmp_master_breakpoint)
11168 (create_std_terminate_master_breakpoint): Update.
11169 * progspace.c (program_spaces): Now a std::vector.
11170 (maybe_new_address_space): Update.
11171 (add_program_space): Remove.
11172 (program_space::program_space): Update.
11173 (remove_program_space): Update.
11174 (number_of_program_spaces): Remove.
11175 (print_program_space, update_address_spaces): Update.
11176 * progspace.h (program_spaces): Change type.
11177 (ALL_PSPACES): Remove.
11178 (number_of_program_spaces): Don't declare.
11179 (struct program_space) <next>: Remove.
11181 2020-05-08 Tom Tromey <tom@tromey.com>
11183 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11184 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11185 (enable_break): Update.
11186 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11187 (frv_fdpic_find_canonical_descriptor): Update.
11188 (frv_fetch_objfile_link_map): Update.
11189 * progspace.c (program_space::free_all_objfiles): Update.
11190 (program_space::solibs): New method.
11191 * progspace.h (struct program_space) <solibs>: New method.
11192 * solist.h (master_so_list): Don't declare.
11193 (ALL_SO_LIBS): Remove.
11194 * solib.h (so_list_head): Remove.
11195 (update_solib_list): Update comment.
11196 * solib.c (master_so_list): Remove.
11197 (solib_used, update_solib_list, solib_add)
11198 (info_sharedlibrary_command, clear_solib)
11199 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11201 2020-05-08 Tom Tromey <tom@tromey.com>
11203 * extension.c (extension_languages): Now a std::array.
11204 (ALL_EXTENSION_LANGUAGES): Remove.
11205 (get_ext_lang_defn, get_ext_lang_of_file)
11206 (eval_ext_lang_from_control_command): Update.
11207 (finish_ext_lang_initialization)
11208 (auto_load_ext_lang_scripts_for_objfile)
11209 (ext_lang_type_printers::ext_lang_type_printers)
11210 (apply_ext_lang_type_printers)
11211 (ext_lang_type_printers::~ext_lang_type_printers)
11212 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11213 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11214 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11215 (get_matching_xmethod_workers, ext_lang_colorize)
11216 (ext_lang_before_prompt): Update.
11217 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11219 2020-05-08 Tom Tromey <tom@tromey.com>
11221 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11223 <swap_string, m_string>: Remove.
11224 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11226 * stabsread.c (define_symbol, read_type): Update.
11227 * linespec.c (find_linespec_symbols): Update.
11228 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11229 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11230 * dbxread.c (read_dbx_symtab): Update.
11231 * cp-support.h (cp_canonicalize_string_full)
11232 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11233 Return unique_xmalloc_ptr.
11234 * cp-support.c (inspect_type): Update.
11235 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11236 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11238 * c-typeprint.c (print_name_maybe_canonical): Update.
11239 * break-catch-throw.c (check_status_exception_catchpoint):
11242 2020-05-08 Tom de Vries <tdevries@suse.de>
11244 * infrun.c (follow_fork): Copy current_line and current_symtab to
11247 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11249 * async-event.c (struct async_signal_handler, struct
11250 async_event_handler): Reformat, remove typedef.
11252 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11254 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11255 access thistype->main_type->dyn_prop_list directly.
11257 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11259 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11260 (remove_dyn_prop): Remove. Update all users to use
11261 type::remove_dyn_prop.
11262 * gdbtypes.c (remove_dyn_prop): Rename to...
11263 (type::remove_dyn_prop): ... this.
11265 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11267 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11268 (add_dyn_prop): Remove. Update all users to use
11269 type::add_dyn_prop.
11270 * gdbtypes.c (add_dyn_prop): Rename to...
11271 (type::add_dyn_prop): ... this.
11273 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11275 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11276 (get_dyn_prop): Remove. Update all users to use
11278 * gdbtypes.c (get_dyn_prop): Rename to...
11279 (type::dyn_prop): ... this.
11281 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11283 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11285 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11287 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11288 instruction, skip it if it's there.
11290 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11292 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11294 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11296 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11297 * gdbtypes.c (recursive_dump_type): Remove use of
11300 2020-05-03 Tom Tromey <tom@tromey.com>
11302 * breakpoint.c (catch_command, tcatch_command): Remove.
11303 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11304 add_show_prefix_cmd.
11305 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11306 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11308 (add_internal_problem_command): Use add_basic_prefix_cmd,
11309 add_show_prefix_cmd.
11310 * mips-tdep.c (set_mipsfpu_command): Remove.
11311 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11312 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11313 (_initialize_index_cache): Use add_basic_prefix_cmd.
11314 * memattr.c (dummy_cmd): Remove.
11315 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11316 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11317 (_initialize_tui_win): Use add_basic_prefix_cmd,
11318 add_show_prefix_cmd.
11319 * cli/cli-logging.c (set_logging_command): Remove.
11320 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11321 add_show_prefix_cmd.
11322 (show_logging_command): Remove.
11323 * target.c (target_command): Remove.
11324 (add_target): Use add_basic_prefix_cmd.
11326 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11328 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11330 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11332 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11335 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11337 * nbsd-nat.c (nbsd_enable_proc_events)
11338 (nbsd_nat_target::post_startup_inferior): Add.
11339 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11340 (nbsd_nat_target::update_thread_list): Rewrite.
11341 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11342 "PTRACE_LWP_CREATE".
11343 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11345 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11347 * stack.c (_initialize_stack): Remove duplicated creation
11348 of "frame" command and "f" alias.
11350 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11353 * gdbtypes.c (check_typedef): Calculate size of array of
11356 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11359 * i386-tdep.c (i386_push_dummy_call): Call
11360 i386_thiscall_push_dummy_call.
11361 (i386_thiscall_push_dummy_call): New function.
11362 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11363 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11364 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11366 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11368 * gdbarch.sh (do_read): Add shellcheck disable directive for
11371 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11373 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11374 "referenced but not assigned" warning.
11376 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11378 * gdbarch.sh: Remove code that sets fallbackdefault.
11380 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11382 * gdbarch.sh: Use shell operators && and || instead of
11385 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11387 * gdbarch.sh: Use $(...) instead of `...`.
11389 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11391 * gdbarch.sh: Use double quotes around variables.
11393 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11395 * gdbarch.sh: Use %s with printf, instead of variables in the
11398 2020-04-29 Tom Tromey <tromey@adacore.com>
11401 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11403 (read_enumeration_type): Call
11404 update_enumeration_type_from_children later. Update comments.
11405 (process_enumeration_scope): Don't create type fields.
11407 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11409 * nbsd-tdep.c: Include "xml-syscall.h".
11410 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11412 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11414 * nbsd-nat.c: Include "sys/wait.h".
11415 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11416 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11417 (nbsd_nat_target::remove_exec_catchpoint)
11418 (nbsd_nat_target::set_syscall_catchpoint): Add.
11419 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11420 (nbsd_nat_target::insert_exec_catchpoint)
11421 (nbsd_nat_target::remove_exec_catchpoint)
11422 (nbsd_nat_target::set_syscall_catchpoint): Add.
11423 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11424 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11425 `nbsd_get_syscall_number'.
11427 2020-04-29 Tom Tromey <tom@tromey.com>
11429 * stack.c (print_block_frame_labels): Remove.
11431 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11434 * ada-valprint.c (val_print_packed_array_elements): Move array
11435 end bracket to new line.
11436 (ada_val_print_string): Remove extra spaces before first array
11438 * c-valprint.c (c_value_print_array): Likewise.
11439 * m2-valprint.c (m2_print_array_contents): Likewise.
11440 (m2_value_print_inner): Likewise.
11441 * p-valprint.c (pascal_value_print_inner): Likewise.
11442 * valprint.c (generic_val_print_array): Likewise.
11443 (value_print_array_elements): Move first array element and array
11444 end bracket to new line.
11446 2020-04-29 Tom de Vries <tdevries@suse.de>
11449 * linespec.c (find_method): Fix ix calculation.
11451 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11453 * syscalls/update-netbsd.sh: New file.
11454 * syscalls/netbsd.xml: Regenerate.
11455 * data-directory/Makefile.in: Register `netbsd.xml' in
11458 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11460 * syscalls/update-freebsd.sh: Add double quotes.
11462 2020-04-28 Tom Tromey <tom@tromey.com>
11465 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11466 (cmdpy_init): Allow class_tui.
11468 2020-04-28 Mark Williams <mark@myosotissp.com>
11471 * dwarf2read.c: Add missing assingments to list_in_scope when
11472 start_symtab was already called.
11474 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11477 * dwarf2/read.c (offset_map_type): Use
11478 gdb:hash_enum<sect_offset> as hash function.
11480 2020-04-28 Tom de Vries <tdevries@suse.de>
11482 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11483 with DW_AT_signature.
11485 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11487 * configure.ac: Remove check for fs_base/gs_base in
11489 * configure: Re-generate.
11490 * config.in: Re-generate.
11491 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11492 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11493 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11495 2020-04-27 Luis Machado <luis.machado@linaro.org>
11497 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11498 problematic inline frame unwinding situation.
11499 * frame.c (frame_id_computed_p): New function.
11500 * frame.h (frame_id_computed_p): New prototype.
11502 2020-04-26 Tom Tromey <tom@tromey.com>
11504 * command.h (enum command_class) <class_pseudo>: Remove.
11506 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11508 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11511 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11513 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11514 `PT_GET_PROCESS_STATE' block.
11516 2020-04-24 Tom Tromey <tom@tromey.com>
11518 * symtab.h (symbol_get_demangled_name): Don't declare.
11519 * symtab.c (symbol_get_demangled_name): Remove.
11520 (general_symbol_info::natural_name)
11521 (general_symbol_info::demangled_name): Update.
11523 2020-04-24 Tom Tromey <tom@tromey.com>
11526 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11528 2020-04-24 Tom Tromey <tom@tromey.com>
11531 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11533 (new_symbol): Likewise.
11534 * compile/compile-object-load.c (get_out_value_type): Use
11535 symbol_matches_search_name.
11537 2020-04-24 Tom Tromey <tom@tromey.com>
11539 * dwarf2/read.c (add_partial_symbol): Do not call
11540 compute_and_set_names.
11542 2020-04-24 Tom Tromey <tom@tromey.com>
11544 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11547 2020-04-24 Tom Tromey <tom@tromey.com>
11549 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11550 (add_psymbol_to_list): New overload. Make old overload call new
11552 * psympriv.h (add_psymbol_to_list): New overload.
11554 2020-04-24 Tom Tromey <tom@tromey.com>
11556 * dwarf2/read.c (partial_die_info::read) <case
11557 DW_AT_linkage_name>: Use value_as_string.
11558 (dwarf2_string_attr): Use value_as_string.
11559 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11561 * dwarf2/attribute.c (attribute::value_as_string): New method.
11563 2020-04-24 Tom Tromey <tom@tromey.com>
11565 * symtab.c (general_symbol_info::natural_name)
11566 (general_symbol_info::demangled_name): Check for language_rust.
11568 2020-04-24 Tom Tromey <tom@tromey.com>
11570 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11571 (dwarf2_physname): ... from here.
11572 (partial_die_info::read): Add Rust "{" hack.
11574 2020-04-24 Tom Tromey <tom@tromey.com>
11576 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11578 (symbol_set_demangled_name): Don't declare.
11579 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11580 symbol_set_demangled_name.
11581 (general_symbol_info::set_language)
11582 (general_symbol_info::compute_and_set_names): Update.
11583 * minsyms.c (minimal_symbol_reader::install): Update.
11584 * dwarf2/read.c (new_symbol): Update.
11586 2020-04-24 Tom Tromey <tromey@adacore.com>
11589 * python/py-type.c (convert_field): Handle
11590 FIELD_LOC_KIND_DWARF_BLOCK.
11591 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11592 (typy_get_dynamic): Nw function.
11593 (type_object_getset): Add "dynamic".
11596 2020-04-24 Tom Tromey <tromey@adacore.com>
11598 * ada-typeprint.c (print_choices, print_variant_part)
11599 (print_record_field_types_dynamic): New functions.
11600 (print_record_field_types): Use print_record_field_types_dynamic.
11602 2020-04-24 Tom Tromey <tromey@adacore.com>
11604 * dwarf2/read.c (handle_data_member_location): New overload.
11605 (dwarf2_add_field): Use it.
11606 (decode_locdesc): Add "computed" parameter. Update comment.
11607 * gdbtypes.c (is_dynamic_type_internal): Also look for
11608 FIELD_LOC_KIND_DWARF_BLOCK.
11609 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11610 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11611 virtual base classes.
11612 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11613 FIELD_LOC_KIND_DWARF_BLOCK.
11615 2020-04-24 Tom Tromey <tromey@adacore.com>
11617 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11618 * gdbtypes.c (is_dynamic_type_internal): Check
11619 TYPE_HAS_DYNAMIC_LENGTH.
11620 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11621 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11623 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11626 2020-04-24 Tom Tromey <tromey@adacore.com>
11628 * dwarf2/read.c (struct variant_field): Rewrite.
11629 (struct variant_part_builder): New.
11630 (struct nextfield): Remove "variant" field. Add "offset".
11631 (struct field_info): Add "current_variant_part" and
11633 (alloc_discriminant_info): Remove.
11634 (alloc_rust_variant): New function.
11635 (quirk_rust_enum): Update.
11636 (dwarf2_add_field): Set "offset" member. Don't handle
11637 DW_TAG_variant_part.
11638 (offset_map_type): New typedef.
11639 (convert_variant_range, create_one_variant)
11640 (create_one_variant_part, create_variant_parts)
11641 (add_variant_property): New functions.
11642 (dwarf2_attach_fields_to_type): Call add_variant_property.
11643 (read_structure_type): Don't handle DW_TAG_variant_part.
11644 (handle_variant_part, handle_variant): New functions.
11645 (handle_struct_member_die): Use them.
11646 (process_structure_scope): Don't handle variant parts.
11647 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11648 (struct discriminant_info): Remove.
11649 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11650 (struct main_type) <flag_discriminated_union>: Remove.
11651 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11652 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11653 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11655 * valops.c (value_union_variant): Remove.
11656 * value.h (value_union_variant): Don't declare.
11658 2020-04-24 Tom Tromey <tromey@adacore.com>
11660 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11661 (ada_value_primitive_packed_val): Update.
11662 * ada-valprint.c (ada_value_print_1): Update.
11663 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11664 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11665 just an address. Use evaluate_for_locexpr_baton.
11666 (dwarf2_evaluate_property): Update.
11667 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11669 * findvar.c (default_read_var_value): Update.
11670 * gdbtypes.c (compute_variant_fields_inner)
11671 (resolve_dynamic_type_internal): Update.
11672 (resolve_dynamic_type): Change type of valaddr parameter.
11673 * gdbtypes.h (resolve_dynamic_type): Update.
11674 * valarith.c (value_subscripted_rvalue): Update.
11675 * value.c (value_from_contents_and_address): Update.
11677 2020-04-24 Tom Tromey <tromey@adacore.com>
11679 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11680 "push_initial_value" parameter.
11681 (dwarf2_evaluate_property): Likewise.
11682 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11684 2020-04-24 Tom Tromey <tromey@adacore.com>
11686 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11687 (variant::matches, compute_variant_fields_recurse)
11688 (compute_variant_fields_inner, compute_variant_fields): New
11690 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11691 Use resolved_type after type is made.
11692 (operator==): Add new cases.
11693 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11694 (struct discriminant_range, struct variant, struct variant_part):
11696 (union dynamic_prop_data) <variant_parts, original_type>: New
11698 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11699 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11701 * value.c (unpack_bits_as_long): Now public.
11702 * value.h (unpack_bits_as_long): Declare.
11704 2020-04-24 Tom Tromey <tromey@adacore.com>
11706 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11707 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11709 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11711 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11713 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11715 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11716 (remove_fork_catchpoint, post_startup_inferior)
11717 (post_attach): Move...
11718 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11719 (remove_fork_catchpoint, post_startup_inferior)
11720 (post_attach): ...here.
11721 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11722 (remove_fork_catchpoint, post_startup_inferior)
11723 (post_attach): Move...
11724 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11725 (remove_fork_catchpoint, post_startup_inferior)
11726 (post_attach): ...here.
11728 2020-04-24 Tom Tromey <tromey@adacore.com>
11730 * nat/windows-nat.h (struct windows_thread_info)
11731 <pc_adjusted>: New member.
11732 * windows-nat.c (windows_fetch_one_register): Check
11734 (windows_nat_target::get_windows_debug_event)
11735 (windows_nat_target::wait): Set pc_adjusted.
11737 2020-04-24 Tom de Vries <tdevries@suse.de>
11739 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11740 Run gdb-add-index inside temp dir.
11742 2020-04-23 Tom Tromey <tromey@adacore.com>
11744 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11747 2020-04-23 Luis Machado <luis.machado@linaro.org>
11749 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11750 get_frame_register instead of gdbarch_unwind_pc.
11752 2020-04-23 Tom de Vries <tdevries@suse.de>
11754 * symtab.c (lookup_global_symbol): Prefer def over decl.
11756 2020-04-23 Tom de Vries <tdevries@suse.de>
11759 * block.c (best_symbol, better_symbol): Promote to external.
11760 * block.h (best_symbol, better_symbol): Declare.
11761 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11764 2020-04-23 Tom Tromey <tromey@adacore.com>
11767 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11768 "const char *", not a "const std::string &".
11769 <name_and_matcher::operator==>: Update.
11770 * unittests/lookup_name_info-selftests.c: Change type of
11773 2020-04-23 Tom Tromey <tom@tromey.com>
11775 * inferior.h (iterate_over_inferiors): Don't declare.
11776 * inferior.c (iterate_over_inferiors): Remove.
11777 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11779 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11780 use iterate_over_inferiors.
11781 (darwin_resume_inferior_it)
11782 (struct resume_inferior_threads_param)
11783 (darwin_resume_inferior_threads_it): Remove.
11784 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11786 2020-04-23 Tom de Vries <tdevries@suse.de>
11788 * blockframe.c (find_pc_partial_function): Use
11789 find_pc_sect_compunit_symtab rather than
11790 objfile->sf->qf->find_pc_sect_compunit_symtab.
11792 2020-04-22 Tom de Vries <tdevries@suse.de>
11795 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11798 2020-04-22 Tom de Vries <tdevries@suse.de>
11801 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11804 2020-04-22 Tom de Vries <tdevries@suse.de>
11807 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11808 CU if already created.
11810 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11812 * infrun.c (displaced_step_fixup): Switch to the event_thread
11813 before calling displaced_step_restore, not after.
11815 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11817 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11818 its inferior is not recorded by us.
11819 (record_btrace_target_open): Replace call to
11820 all_non_exited_threads () with call to current_inferior
11821 ()->non_exited_threads ().
11822 (record_btrace_target::stop_recording): Likewise.
11823 (record_btrace_target::close): Likewise.
11824 (record_btrace_target::wait): Likewise.
11825 (record_btrace_target::record_stop_replaying): Likewise.
11827 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11829 * btrace.c (btrace_enable): Throw an error on double enables and
11830 when enabling recording fails.
11831 (btrace_disable): Throw an error if the thread is not recorded.
11833 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11835 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11836 request if we do not have a thread_info.
11838 2020-04-21 Tom de Vries <tdevries@suse.de>
11842 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11843 exception in get_frame_id.
11845 2020-04-20 Tom Tromey <tromey@adacore.com>
11847 * python/python.c (struct gdbpy_event): Mark move constructor as
11849 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11850 constructor as noexcept.
11851 * completer.h (struct completion_result): Mark move constructor as
11853 * completer.c (completion_result::completion_result): Use
11854 initialization style. Don't call reset_match_list.
11856 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11858 * MAINTAINERS (Write After Approval): Add myself.
11860 2020-04-18 Tom Tromey <tom@tromey.com>
11862 * windows-tdep.c (init_w32_command_list)
11863 (w32_prefix_command_valid): Restore.
11864 (_initialize_windows_tdep): Call init_w32_command_list.
11866 2020-04-18 Tom Tromey <tom@tromey.com>
11868 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11869 * value.c (value_fn_field): Update.
11870 * valops.c (find_function_in_inferior)
11871 (value_allocate_space_in_inferior): Update.
11872 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11874 * tui/tui-source.c (tui_source_window::set_contents): Update.
11875 * symtab.c (lookup_global_or_static_symbol)
11876 (find_function_start_sal_1, skip_prologue_sal)
11877 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11878 * symmisc.c (dump_msymbols, dump_symtab_1)
11879 (maintenance_print_one_line_table): Update.
11880 * symfile.c (init_entry_point_info, section_is_mapped)
11881 (list_overlays_command, simple_read_overlay_table)
11882 (simple_overlay_update_1): Update.
11883 * stap-probe.c (handle_stap_probe): Update.
11884 * stabsread.c (dbx_init_float_type, define_symbol)
11885 (read_one_struct_field, read_enum_type, read_range_type): Update.
11886 * source.c (info_line_command): Update.
11887 * python/python.c (gdbpy_source_objfile_script)
11888 (gdbpy_execute_objfile_script): Update.
11889 * python/py-type.c (save_objfile_types): Update.
11890 * python/py-objfile.c (py_free_objfile): Update.
11891 * python/py-inferior.c (python_new_objfile): Update.
11892 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11893 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11894 (maintenance_check_psymtabs): Update.
11895 * printcmd.c (info_address_command): Update.
11896 * objfiles.h (struct objfile) <arch>: New method, from
11898 (get_objfile_arch): Don't declare.
11899 * objfiles.c (get_objfile_arch): Remove.
11900 (filter_overlapping_sections): Update.
11901 * minsyms.c (msymbol_is_function): Update.
11902 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11903 (output_nondebug_symbol): Update.
11904 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11905 (mdebug_expand_psymtab): Update.
11906 * machoread.c (macho_add_oso_symfile): Update.
11907 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11909 * linux-fork.c (checkpoint_command): Update.
11910 * linespec.c (convert_linespec_to_sals): Update.
11911 * jit.c (finalize_symtab): Update.
11912 * infrun.c (insert_exception_resume_from_probe): Update.
11913 * ia64-tdep.c (ia64_find_unwind_table): Update.
11914 * hppa-tdep.c (internalize_unwinds): Update.
11915 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11917 * gcore.c (call_target_sbrk): Update.
11918 * elfread.c (record_minimal_symbol, elf_symtab_read)
11919 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11920 (elf_gnu_ifunc_resolve_by_got): Update.
11921 * dwarf2/read.c (create_addrmap_from_index)
11922 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11923 (read_debug_names_from_section)
11924 (process_psymtab_comp_unit_reader, add_partial_symbol)
11925 (add_partial_subprogram, process_full_comp_unit)
11926 (read_file_scope, read_func_scope, read_lexical_block_scope)
11927 (read_call_site_scope, dwarf2_ranges_read)
11928 (dwarf2_record_block_ranges, dwarf2_add_field)
11929 (mark_common_block_symbol_computed, read_tag_pointer_type)
11930 (read_tag_string_type, dwarf2_init_float_type)
11931 (dwarf2_init_complex_target_type, read_base_type)
11932 (partial_die_info::read, partial_die_info::read)
11933 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11934 (dwarf2_fetch_die_loc_sect_off): Update.
11935 * dwarf2/loc.c (dwarf2_find_location_expression)
11936 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11937 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11938 (dwarf2_loc_desc_get_symbol_read_needs)
11939 (locexpr_describe_location_piece, locexpr_describe_location_1)
11940 (loclist_describe_location): Update.
11941 * dwarf2/index-write.c (write_debug_names): Update.
11942 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11943 * dtrace-probe.c (dtrace_process_dof): Update.
11944 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11945 (process_one_symbol): Update.
11946 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11947 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11948 (coff_read_enum_type): Update.
11949 * cli/cli-cmds.c (edit_command, list_command): Update.
11950 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11951 * breakpoint.c (create_overlay_event_breakpoint)
11952 (create_longjmp_master_breakpoint)
11953 (create_std_terminate_master_breakpoint)
11954 (create_exception_master_breakpoint, get_sal_arch): Update.
11955 * block.c (block_gdbarch): Update.
11956 * annotate.c (annotate_source_line): Update.
11958 2020-04-17 Tom Tromey <tromey@adacore.com>
11960 * auto-load.c (show_auto_load_cmd): Remove.
11961 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11962 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11963 (maintenance_print_arc_command): Remove.
11964 * tui/tui-win.c (tui_command): Remove.
11965 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11966 * tui/tui-layout.c (tui_layout_command): Remove.
11967 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11968 * python/python.c (user_set_python, user_show_python): Remove.
11969 (_initialize_python): Use add_basic_prefix_cmd,
11970 add_show_prefix_cmd.
11971 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11972 (install_gdb_commands): Use add_basic_prefix_cmd,
11973 add_show_prefix_cmd.
11974 (info_guile_command): Remove.
11975 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11976 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11977 add_show_prefix_cmd.
11978 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11979 Remove do_set and do_show parameters.
11980 * cli/cli-style.c (set_style, show_style): Remove.
11981 (_initialize_cli_style): Use add_basic_prefix_cmd,
11982 add_show_prefix_cmd.
11983 (cli_style_option::add_setshow_commands): Remove do_set and
11984 do_show parameters.
11985 (cli_style_option::add_setshow_commands): Use
11986 add_basic_prefix_cmd, add_show_prefix_cmd.
11987 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11988 (set_style_name): Remove.
11989 * cli/cli-dump.c (dump_command, append_command): Remove.
11990 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11991 (tekhex_dump_command, binary_dump_command)
11992 (binary_append_command): Remove.
11993 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11994 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11995 (init_w32_command_list): Remove; move into ...
11996 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11997 * valprint.c (set_print, show_print, set_print_raw)
11998 (show_print_raw): Remove.
11999 (_initialize_valprint): Use add_basic_prefix_cmd,
12000 add_show_prefix_cmd.
12001 * typeprint.c (set_print_type, show_print_type): Remove.
12002 (_initialize_typeprint): Use add_basic_prefix_cmd,
12003 add_show_prefix_cmd.
12004 * record.c (set_record_command, show_record_command): Remove.
12005 (_initialize_record): Use add_basic_prefix_cmd,
12006 add_show_prefix_cmd.
12007 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12008 add_show_prefix_cmd.
12009 (info_command, show_command, set_debug, show_debug): Remove.
12010 * top.h (set_history, show_history): Don't declare.
12011 * top.c (set_history, show_history): Remove.
12012 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12013 (unset_tdesc_cmd): Remove.
12014 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12015 add_show_prefix_cmd.
12016 * symtab.c (info_module_command): Remove.
12017 (_initialize_symtab): Use add_basic_prefix_cmd.
12018 * symfile.c (overlay_command): Remove.
12019 (_initialize_symfile): Use add_basic_prefix_cmd.
12020 * sparc64-tdep.c (info_adi_command): Remove.
12021 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12022 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12023 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12024 add_show_prefix_cmd.
12025 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12026 (_initialize_serial): Use add_basic_prefix_cmd,
12027 add_show_prefix_cmd.
12028 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12029 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12030 add_show_prefix_cmd.
12031 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12032 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12033 add_show_prefix_cmd.
12034 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12035 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12036 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12037 add_show_prefix_cmd.
12038 * remote.c (remote_command, set_remote_cmd): Remove.
12039 (_initialize_remote): Use add_basic_prefix_cmd.
12040 * record-full.c (set_record_full_command)
12041 (show_record_full_command): Remove.
12042 (_initialize_record_full): Use add_basic_prefix_cmd,
12043 add_show_prefix_cmd.
12044 * record-btrace.c (cmd_set_record_btrace)
12045 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12046 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12047 (cmd_show_record_btrace_pt): Remove.
12048 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12049 add_show_prefix_cmd.
12050 * ravenscar-thread.c (set_ravenscar_command)
12051 (show_ravenscar_command): Remove.
12052 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12053 add_show_prefix_cmd.
12054 * mips-tdep.c (show_mips_command, set_mips_command)
12055 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12056 add_show_prefix_cmd.
12057 * maint.c (maintenance_command, maintenance_info_command)
12058 (maintenance_check_command, maintenance_print_command)
12059 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12060 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12061 add_show_prefix_cmd.
12062 (show_per_command_cmd): Remove.
12063 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12065 (maintenance_show_test_settings_cmd): Remove.
12066 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12067 add_show_prefix_cmd.
12068 * maint-test-options.c (maintenance_test_options_command):
12070 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12071 * macrocmd.c (macro_command): Remove
12072 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12073 * language.c (set_check, show_check): Remove.
12074 (_initialize_language): Use add_basic_prefix_cmd,
12075 add_show_prefix_cmd.
12076 * infcmd.c (unset_command): Remove.
12077 (_initialize_infcmd): Use add_basic_prefix_cmd.
12078 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12079 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12080 add_show_prefix_cmd.
12081 * go32-nat.c (go32_info_dos_command): Remove.
12082 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12083 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12084 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12085 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12086 (_initialize_frame): Use add_basic_prefix_cmd,
12087 add_show_prefix_cmd.
12088 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12089 (_initialize_dcache): Use add_basic_prefix_cmd,
12090 add_show_prefix_cmd.
12091 * cp-support.c (maint_cplus_command): Remove.
12092 (_initialize_cp_support): Use add_basic_prefix_cmd.
12093 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12094 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12095 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12096 add_basic_prefix_cmd, add_show_prefix_cmd.
12097 * breakpoint.c (save_command): Remove.
12098 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12099 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12100 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12101 add_show_prefix_cmd.
12102 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12103 (set_ada_command, show_ada_command): Remove.
12104 (_initialize_ada_language): Use add_basic_prefix_cmd,
12105 add_show_prefix_cmd.
12106 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12108 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12110 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12111 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12113 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12115 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12118 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12120 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12121 import table is not at beginning of .idata section.
12123 2020-04-16 Pedro Alves <palves@redhat.com>
12125 * inferior.c (delete_inferior): Use delete operator directly
12126 instead of delete_program_space.
12127 * progspace.c (add_program_space): New, factored out from
12128 program_space::program_space.
12129 (remove_program_space): New, factored out from
12130 delete_program_space.
12131 (program_space::program_space): Remove intro comment. Rewrite.
12132 (program_space::~program_space): Remove intro comment. Call
12133 remove_program_space.
12134 (delete_program_space): Delete.
12135 * progspace.h (program_space::program_space): Make explicit. Move
12136 intro comment here, adjusted.
12137 (program_space::~program_space): Move intro comment here,
12139 (delete_program_space): Remove.
12141 2020-04-16 Tom Tromey <tromey@adacore.com>
12143 * windows-nat.c (windows_nat::handle_access_violation): New
12145 * nat/windows-nat.h (handle_access_violation): Declare.
12146 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12147 windows-nat.c. Call handle_access_violation.
12149 2020-04-16 Tom de Vries <tdevries@suse.de>
12152 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12153 CUs without psymtab.
12155 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12157 * python/python.c (do_start_initialization): Don't call
12158 PyEval_InitThreads for Python 3.9 and beyond.
12160 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12162 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12164 (obsd_nat_target::wait): Likewise.
12166 2020-04-15 Tom Tromey <tromey@adacore.com>
12168 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12169 (DEBUG_EXCEPT): Use debug_printf.
12171 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12173 * completer.c (class completion_tracker::completion_hash_entry)
12174 <hash_name>: New member function.
12175 (completion_tracker::discard_completions): New callback to hash a
12176 completion_hash_entry, pass this to htab_create_alloc.
12178 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12180 * windows-nat.c (windows_make_so): Warn rather than stopping with
12181 an error if realpath() fails.
12183 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12185 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12186 (nbsd_nat_target::info_proc): Add do_status.
12188 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12189 Tom de Vries <tdevries@suse.de>
12192 * psympriv.h (struct partial_symtab::read_symtab)
12193 (struct partial_symtab::expand_psymtab)
12194 (struct partial_symtab::read_dependencies): Update comments.
12195 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12196 read_symtab for includer.
12197 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12198 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12199 (struct dwarf2_include_psymtab::m_readin): Remove.
12200 (struct dwarf2_include_psymtab::includer): New member function.
12201 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12203 2020-04-14 Tom de Vries <tdevries@suse.de>
12206 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12207 with NULL symbol_matcher and lookup_name.
12208 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12210 * dwarf2/read.c (dw2_expand_symtabs_matching)
12211 (dw2_debug_names_expand_symtabs_matching): Same.
12212 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12213 Make lookup_name a pointer. Update comment.
12214 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12215 lookup_name being a pointer.
12216 * symfile.c (expand_symtabs_matching): Same.
12217 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12218 * linespec.c (iterate_over_all_matching_symtabs): Same.
12220 2020-04-13 Tom Tromey <tom@tromey.com>
12222 * run-on-main-thread.c: Update include.
12223 * unittests/main-thread-selftests.c: Update include.
12224 * tui/tui-win.c: Update include.
12225 * tui/tui-io.c: Update include.
12226 * tui/tui-interp.c: Update include.
12227 * tui/tui-hooks.c: Update include.
12228 * top.h: Update include.
12229 * top.c: Update include.
12230 * ser-base.c: Update include.
12231 * remote.c: Update include.
12232 * remote-notif.c: Update include.
12233 * remote-fileio.c: Update include.
12234 * record-full.c: Update include.
12235 * record-btrace.c: Update include.
12236 * python/python.c: Update include.
12237 * posix-hdep.c: Update include.
12238 * mingw-hdep.c: Update include.
12239 * mi/mi-main.c: Update include.
12240 * mi/mi-interp.c: Update include.
12241 * main.c: Update include.
12242 * linux-nat.c: Update include.
12243 * interps.c: Update include.
12244 * infrun.c: Update include.
12245 * inf-loop.c: Update include.
12246 * event-top.c: Update include.
12247 * event-loop.c: Move to ../gdbsupport/.
12248 * event-loop.h: Move to ../gdbsupport/.
12249 * async-event.h: Update include.
12250 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12252 2020-04-13 Tom Tromey <tom@tromey.com>
12254 * tui/tui-win.c: Include async-event.h.
12255 * remote.c: Include async-event.h.
12256 * remote-notif.c: Include async-event.h.
12257 * record-full.c: Include async-event.h.
12258 * record-btrace.c: Include async-event.h.
12259 * infrun.c: Include async-event.h.
12260 * event-top.c: Include async-event.h.
12261 * event-loop.h: Move some declarations to async-event.h.
12262 * event-loop.c: Don't include ser-event.h or top.h. Move some
12263 code to async-event.c.
12264 * async-event.h: New file.
12265 * async-event.c: New file.
12266 * Makefile.in (COMMON_SFILES): Add async-event.c.
12267 (HFILES_NO_SRCDIR): Add async-event.h.
12269 2020-04-13 Tom Tromey <tom@tromey.com>
12271 * utils.c (flush_streams): New function.
12272 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12274 2020-04-13 Tom Tromey <tom@tromey.com>
12276 * event-loop.c (handle_file_event): Use warning, not
12279 2020-04-13 Tom Tromey <tom@tromey.com>
12281 * event-loop.c: Include <chrono>.
12283 2020-04-13 Tom Tromey <tom@tromey.com>
12285 * gdb_select.h: Move to ../gdbsupport/.
12286 * event-loop.c: Update include path.
12287 * top.c: Update include path.
12288 * ser-base.c: Update include path.
12289 * ui-file.c: Update include path.
12290 * ser-tcp.c: Update include path.
12291 * guile/scm-ports.c: Update include path.
12292 * posix-hdep.c: Update include path.
12293 * ser-unix.c: Update include path.
12294 * gdb_usleep.c: Update include path.
12295 * mingw-hdep.c: Update include path.
12296 * inflow.c: Update include path.
12297 * infrun.c: Update include path.
12298 * event-top.c: Update include path.
12300 2020-04-13 Tom Tromey <tom@tromey.com>
12302 * configure: Rebuild.
12303 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12305 2020-04-13 Tom Tromey <tom@tromey.com>
12307 * event-loop.h (start_event_loop): Don't declare.
12308 * event-loop.c (start_event_loop): Move...
12309 * main.c (start_event_loop): ...here. Now static.
12311 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12313 * MAINTAINERS: Update my email address.
12315 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12317 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12320 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12322 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12323 (nbsd_nat_target::info_proc): Add do_cmdline.
12325 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12327 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12328 (nbsd_nat_target::info_proc): Add do_cwd.
12330 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12332 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12334 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12336 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12337 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12338 (nbsd_nat_target::info_proc): New functions.
12339 * nbsd-nat.c (kinfo_get_vmmap): New function.
12340 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12341 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12342 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12343 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12345 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12346 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12347 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12348 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12349 (KINFO_VME_FLAG_GROWS_DOWN): New.
12351 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12353 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12356 2020-04-10 Tom Tromey <tromey@adacore.com>
12358 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12360 2020-04-10 Tom Tromey <tromey@adacore.com>
12362 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12363 separate debug files.
12365 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12367 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12369 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12371 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12372 Check for STATUS_WX86_BREAKPOINT.
12373 (windows_nat_target::wait): Same.
12375 2020-04-10 Tom de Vries <tdevries@suse.de>
12378 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12380 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12382 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12383 (Write After Approval): Remove Tom de Vries.
12385 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12388 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12390 * buildsym.c (record_line): Fix undefined behavior and preserve
12393 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12395 * auxv.h (svr4_auxv_parse): New.
12396 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12397 and generic_auxv_parse.
12398 (svr4_auxv_parse): Add.
12399 * obsd-tdep.c: Include "auxv.h".
12400 (obsd_auxv_parse): Remove.
12401 (obsd_init_abi): Remove comment.
12402 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12403 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12404 * nbsd-tdep.c: Include "auxv.h".
12405 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12407 2020-04-08 Tom Tromey <tromey@adacore.com>
12409 * nat/windows-nat.h (last_wait_event): Don't declare.
12410 (wait_for_debug_event): Update comment.
12411 * nat/windows-nat.c (last_wait_event): Now static.
12413 2020-04-08 Tom Tromey <tromey@adacore.com>
12415 * windows-nat.c (wait_for_debug_event): Move to
12417 * nat/windows-nat.h (wait_for_debug_event): Declare.
12418 * nat/windows-nat.c (wait_for_debug_event): Move from
12419 windows-nat.c. No longer static.
12421 2020-04-08 Tom Tromey <tromey@adacore.com>
12423 * windows-nat.c (get_windows_debug_event): Use
12424 fetch_pending_stop.
12425 * nat/windows-nat.h (fetch_pending_stop): Declare.
12426 * nat/windows-nat.c (fetch_pending_stop): New function.
12428 2020-04-08 Tom Tromey <tromey@adacore.com>
12430 * windows-nat.c (windows_continue): Use matching_pending_stop and
12431 continue_last_debug_event.
12432 * nat/windows-nat.h (matching_pending_stop)
12433 (continue_last_debug_event): Declare.
12434 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12435 (matching_pending_stop, continue_last_debug_event): New
12438 2020-04-08 Tom Tromey <tromey@adacore.com>
12440 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12441 (handle_exception_result): Move to nat/windows-nat.h.
12442 (DEBUG_EXCEPTION_SIMPLE): Remove.
12443 (windows_nat::handle_ms_vc_exception): New function.
12444 (handle_exception): Move to nat/windows-nat.c.
12445 (get_windows_debug_event): Update.
12446 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12448 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12449 (handle_exception_result): Move from windows-nat.c.
12450 (handle_exception): Declare.
12451 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12452 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12455 2020-04-08 Tom Tromey <tromey@adacore.com>
12457 * windows-nat.c (exception_count, event_count): Remove.
12458 (handle_exception, get_windows_debug_event)
12459 (do_initial_windows_stuff): Update.
12461 2020-04-08 Tom Tromey <tromey@adacore.com>
12463 * windows-nat.c (windows_nat::handle_load_dll)
12464 (windows_nat::handle_unload_dll): Rename. No longer static.
12465 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12468 2020-04-08 Tom Tromey <tromey@adacore.com>
12470 * complaints.h (stop_whining): Declare at top-level.
12471 (complaint): Don't declare stop_whining.
12473 2020-04-08 Tom Tromey <tromey@adacore.com>
12475 * windows-nat.c (windows_nat::handle_output_debug_string):
12476 Rename. No longer static.
12477 * nat/windows-nat.h (handle_output_debug_string): Declare.
12479 2020-04-08 Tom Tromey <tromey@adacore.com>
12481 * windows-nat.c (current_process_handle, current_process_id)
12482 (main_thread_id, last_sig, current_event, last_wait_event)
12483 (current_windows_thread, desired_stop_thread_id, pending_stops)
12484 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12485 (display_selectors, fake_create_process)
12486 (get_windows_debug_event): Update.
12487 * nat/windows-nat.h (current_process_handle, current_process_id)
12488 (main_thread_id, last_sig, current_event, last_wait_event)
12489 (current_windows_thread, desired_stop_thread_id, pending_stops)
12490 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12491 * nat/windows-nat.c (current_process_handle, current_process_id)
12492 (main_thread_id, last_sig, current_event, last_wait_event)
12493 (current_windows_thread, desired_stop_thread_id, pending_stops)
12494 (siginfo_er): New globals. Move from windows-nat.c.
12496 2020-04-08 Tom Tromey <tromey@adacore.com>
12498 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12499 (handle_load_dll): Update.
12500 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12502 2020-04-08 Tom Tromey <tromey@adacore.com>
12504 * windows-nat.c (enum thread_disposition_type): Move to
12506 (windows_nat::thread_rec): Rename from thread_rec. No longer
12508 (windows_add_thread, windows_nat_target::fetch_registers)
12509 (windows_nat_target::store_registers, handle_exception)
12510 (windows_nat_target::resume, get_windows_debug_event)
12511 (windows_nat_target::get_tib_address)
12512 (windows_nat_target::thread_name)
12513 (windows_nat_target::thread_alive): Update.
12514 * nat/windows-nat.h (enum thread_disposition_type): Move from
12516 (thread_rec): Declare.
12518 2020-04-08 Tom Tromey <tromey@adacore.com>
12520 * windows-nat.c: Add "using namespace".
12521 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12522 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12524 2020-04-08 Tom Tromey <tromey@adacore.com>
12526 * nat/windows-nat.h (struct windows_thread_info): Declare
12528 * nat/windows-nat.c (~windows_thread_info): New.
12530 2020-04-08 Tom Tromey <tromey@adacore.com>
12533 * windows-nat.c (current_event): Update comment.
12534 (last_wait_event, desired_stop_thread_id): New globals.
12535 (struct pending_stop): New.
12536 (pending_stops): New global.
12537 (windows_nat_target) <stopped_by_sw_breakpoint>
12538 <supports_stopped_by_sw_breakpoint>: New methods.
12539 (windows_fetch_one_register): Add assertions. Adjust PC.
12540 (windows_continue): Handle pending stops. Suspend other threads
12541 when stepping. Use last_wait_event
12542 (wait_for_debug_event): New function.
12543 (get_windows_debug_event): Use wait_for_debug_event. Handle
12544 pending stops. Queue spurious stops.
12545 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12546 (windows_nat_target::kill): Use wait_for_debug_event.
12547 * nat/windows-nat.h (struct windows_thread_info)
12548 <stopped_at_software_breakpoint>: New field.
12549 * nat/windows-nat.c (windows_thread_info::resume): Clear
12550 stopped_at_software_breakpoint.
12552 2020-04-08 Tom Tromey <tromey@adacore.com>
12554 * windows-nat.c (enum thread_disposition_type): New.
12555 (thread_rec): Replace "get_context" parameter with "disposition";
12557 (windows_add_thread, windows_nat_target::fetch_registers)
12558 (windows_nat_target::store_registers, handle_exception)
12559 (windows_nat_target::resume, get_windows_debug_event)
12560 (windows_nat_target::get_tib_address)
12561 (windows_nat_target::thread_name)
12562 (windows_nat_target::thread_alive): Update.
12564 2020-04-08 Tom Tromey <tromey@adacore.com>
12566 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12567 (windows_continue): Use windows_continue::resume.
12568 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12569 resume>: Declare new methods.
12570 * nat/windows-nat.c: New file.
12571 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12573 2020-04-08 Tom Tromey <tromey@adacore.com>
12575 * windows-nat.c (windows_add_thread, windows_delete_thread)
12576 (windows_nat_target::fetch_registers)
12577 (windows_nat_target::store_registers, fake_create_process)
12578 (windows_nat_target::resume, windows_nat_target::resume)
12579 (get_windows_debug_event, windows_nat_target::wait)
12580 (windows_nat_target::pid_to_str)
12581 (windows_nat_target::get_tib_address)
12582 (windows_nat_target::get_ada_task_ptid)
12583 (windows_nat_target::thread_name)
12584 (windows_nat_target::thread_alive): Use lwp, not tid.
12586 2020-04-08 Tom Tromey <tromey@adacore.com>
12588 * windows-nat.c (handle_exception)
12589 (windows_nat_target::thread_name): Update.
12590 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12591 <name>: Now unique_xmalloc_ptr.
12593 2020-04-08 Tom Tromey <tromey@adacore.com>
12595 * windows-nat.c (thread_rec)
12596 (windows_nat_target::fetch_registers): Update.
12597 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12599 <debug_registers_changed, reload_context>: Now bool.
12601 2020-04-08 Tom Tromey <tromey@adacore.com>
12603 * windows-nat.c (windows_add_thread): Use new.
12604 (windows_init_thread_list, windows_delete_thread): Use delete.
12605 (get_windows_debug_event): Update.
12606 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12607 destructor, and initializers.
12609 2020-04-08 Tom Tromey <tromey@adacore.com>
12611 * windows-nat.c (struct windows_thread_info): Remove.
12612 * nat/windows-nat.h: New file.
12614 2020-04-08 Tom Tromey <tromey@adacore.com>
12616 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12617 (thread_rec, windows_add_thread, windows_delete_thread)
12618 (windows_continue): Update.
12620 2020-04-08 Tom Tromey <tromey@adacore.com>
12622 * windows-nat.c (struct windows_thread_info): Remove typedef.
12623 (thread_head): Remove.
12624 (thread_list): New global.
12625 (thread_rec, windows_add_thread, windows_init_thread_list)
12626 (windows_delete_thread, windows_continue): Update.
12628 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12630 * windows-tdep.h (windows_init_abi): Add comment.
12631 (cygwin_init_abi): New declaration.
12632 * windows-tdep.c: Split signal enumeration in two, one for
12633 Windows and one for Cygwin.
12634 (windows_gdb_signal_to_target): Only deal with signal of the
12636 (cygwin_gdb_signal_to_target): New function.
12637 (windows_init_abi): Rename to windows_init_abi_common, don't set
12638 gdb_signal_to_target gdbarch method. Add new new function with
12640 (cygwin_init_abi): New function.
12641 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12642 comment. Don't call windows_init_abi.
12643 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12644 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12645 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12646 i386_windows_init_abi_common, don't call windows_init_abi. Add
12647 a new function of this name.
12648 (i386_cygwin_init_abi): New function.
12649 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12652 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12654 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12656 (dwarf2_read_gdb_index): Update.
12658 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12660 * nbsd-tdep.c: Include "objfiles.h".
12661 (nbsd_skip_solib_resolver): New.
12662 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12664 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12666 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12667 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12668 with DW_LLE_base_addressx are being emitted in DWARFv5.
12669 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12670 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12673 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12675 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12676 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12677 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12678 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12679 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12680 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12681 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12684 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12686 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12687 (read_loclist_index): New function definition.
12688 (lookup_loclist_base): New function definition.
12689 (read_loclist_header): New function definition.
12690 (dwarf2_cu): Add loclist_base and loclist_header field.
12691 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12692 (read_full_die_1): Read the value of DW_AT_loclists_base.
12693 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12694 (read_attribute_value): Handle DW_FORM_loclistx.
12695 (skip_one_die): Handle DW_FORM_loclistx.
12696 (loclist_header): New structure declaration.
12697 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12699 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12701 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12702 constructor. Remove `addr` parameter from other constructor and
12703 add `per_cu` parameter.
12704 * dwarf2/read.c (create_partial_symtab): Update.
12706 2020-04-07 Tom de Vries <tdevries@suse.de>
12709 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12710 (partial_die_info::fixup): Inherit has_const_value.
12712 2020-04-07 Tom de Vries <tdevries@suse.de>
12714 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12715 symbols without address.
12717 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12719 * nbsd-nat.h (struct thread_info): Add forward declaration.
12720 (nbsd_nat_target::thread_alive): Add.
12721 (nbsd_nat_target::thread_name): Likewise.
12722 (nbsd_nat_target::update_thread_list): Likewise.
12723 (update_thread_list::post_attach): Likewise.
12724 (post_attach::pid_to_str): Likewise.
12725 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12726 (nbsd_thread_lister): Add.
12727 (nbsd_nat_target::thread_alive): Likewise.
12728 (nbsd_nat_target::thread_name): Likewise.
12729 (nbsd_add_threads): Likewise.
12730 (update_thread_list::post_attach): Likewise.
12731 (nbsd_nat_target::update_thread_list): Likewise.
12732 (post_attach::pid_to_str): Likewise.
12734 2020-04-06 Tom Tromey <tromey@adacore.com>
12736 * ada-valprint.c (print_variant_part): Extract the variant field.
12737 (print_field_values): Use the field as the outer value when
12740 2020-04-06 Tom Tromey <tromey@adacore.com>
12742 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12743 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12744 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12745 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12746 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12748 2020-04-06 Tom Tromey <tromey@adacore.com>
12750 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12753 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12755 * nbsd-tdep.c: Include "gdbarch.h".
12756 Define enum with NetBSD signal numbers.
12757 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12758 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12759 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12760 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12761 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12762 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12763 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12764 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12765 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12766 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12767 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12768 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12770 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12773 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12775 2020-04-03 Tom Tromey <tromey@adacore.com>
12777 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12778 Read constant block.
12780 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12782 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12783 (gdb_bfd_get_full_section_contents): New declaration.
12784 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12785 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12786 gdb_bfd_get_full_section_contents.
12788 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12790 * exec.c (build_section_table): Replace internal_error with
12792 (section_table_xfer_memory_partial): Likewise.
12793 * mdebugread.c (parse_partial_symbols): Likewise.
12794 * psymtab.c (lookup_partial_symbol): Likewise.
12795 * utils.c (wrap_here): Likewise.
12797 2020-04-02 Tom Tromey <tromey@adacore.com>
12799 * f-lang.c (build_fortran_types): Use arch_type to initialize
12800 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12802 2020-04-02 Tom Tromey <tromey@adacore.com>
12804 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12807 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12808 Bernd Edlinger <bernd.edlinger@hotmail.de>
12809 Tom Tromey <tromey@adacore.com>
12811 * buildsym.c (buildsym_compunit::record_line): Remove
12812 deduplication code.
12814 2020-04-02 Tom de Vries <tdevries@suse.de>
12817 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12819 2020-04-02 Tom de Vries <tdevries@suse.de>
12821 * dwarf2/read.c (dwarf2_gdb_index_functions,
12822 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12824 * psymtab.c (psym_lookup_global_symbol_language): New function.
12825 (psym_functions): Init psym_lookup_global_symbol_language with
12826 psym_lookup_global_symbol_language.
12827 * symfile-debug.c (debug_sym_quick_functions): Init
12828 lookup_global_symbol_language with NULL.
12829 * symfile.c (set_initial_language): Remove fixme comment.
12830 * symfile.h (struct quick_symbol_functions): Add
12831 lookup_global_symbol_language.
12832 * symtab.c (find_quick_global_symbol_language): New function.
12833 (find_main_name): Use find_quick_global_symbol_language.
12835 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12837 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12839 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12841 * buildsym.c (record_line): Fix undefined behavior and preserve
12844 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12846 * buildsym.c (record_line): Fix the resizing condition.
12848 2020-04-01 Tom Tromey <tom@tromey.com>
12850 * value.h (value_literal_complex): Add comment.
12851 * valops.c (value_literal_complex): Refer to value.h.
12853 2020-04-01 Tom Tromey <tom@tromey.com>
12855 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12856 (scalar_type): New rule, from typebase.
12857 (typebase): Use scalar_type. Recognize complex types.
12858 (field_name): Handle FLOAT_KEYWORD.
12859 (ident_tokens): Add _Complex and __complex__.
12861 2020-04-01 Tom Tromey <tom@tromey.com>
12864 * valarith.c (promotion_type, complex_binop): New functions.
12865 (scalar_binop): Handle complex numbers. Use promotion_type.
12866 (value_pos, value_neg, value_complement): Handle complex numbers.
12868 2020-04-01 Tom Tromey <tom@tromey.com>
12870 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12871 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12872 (parse_number): Handle complex numbers.
12874 2020-04-01 Tom Tromey <tom@tromey.com>
12876 * c-valprint.c (c_decorations): Change complex suffix to "i".
12878 2020-04-01 Tom Tromey <tom@tromey.com>
12880 * valprint.c (generic_value_print_complex): Use accessors.
12881 * value.h (value_real_part, value_imaginary_part): Declare.
12882 * valops.c (value_real_part, value_imaginary_part): New
12884 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12886 2020-04-01 Tom Tromey <tom@tromey.com>
12888 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12889 (read_range_type): Update.
12890 * mdebugread.c (basic_type): Update.
12891 * go-lang.c (build_go_types): Use init_complex_type.
12892 * gdbtypes.h (struct main_type) <complex_type>: New member.
12893 (init_complex_type): Update.
12894 (arch_complex_type): Don't declare.
12895 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12896 Make name if none given. Use alloc_type_copy. Look for cached
12898 (arch_complex_type): Remove.
12899 (gdbtypes_post_init): Use init_complex_type.
12900 * f-lang.c (build_fortran_types): Use init_complex_type.
12901 * dwarf2/read.c (read_base_type): Update.
12902 * d-lang.c (build_d_types): Use init_complex_type.
12903 * ctfread.c (read_base_type): Update.
12905 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12907 * infrun.c (stop_all_threads): Update assertion, plus when
12908 stopping threads, take into account that we might be trying
12909 to stop an all-stop target.
12910 (stop_waiting): Call 'stop_all_threads' if there exists a
12913 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12915 * target.h (exists_non_stop_target): New function declaration.
12916 * target.c (exists_non_stop_target): New function.
12918 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12921 * eval.c (is_integral_or_integral_reference): New function.
12922 (evaluate_subexp_standard): Allow integer references in
12923 pointer arithmetic.
12925 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12927 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12928 check for no ptid in the stop reply when the target is non-stop.
12930 2020-04-01 Tom Tromey <tromey@adacore.com>
12932 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12933 "name" parameter to rvalue reference. Initialize m_name_holder.
12934 <lookup_name_info>: New overloads.
12935 <name>: Return gdb::string_view.
12936 <c_str>: New method.
12937 <make_ignore_params>: Update.
12938 <search_name_hash>: Update.
12939 <language_lookup_name>: Return const char *.
12940 <m_name>: Change type.
12941 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12942 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12943 (lookup_name_info::match_any): Update.
12944 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12946 * minsyms.c (linkage_name_str): Update.
12947 * language.c (default_symbol_name_matcher): Update.
12948 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12950 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12951 (ada_lookup_name_info::ada_lookup_name_info): Update.
12952 (literal_symbol_name_matcher): Update.
12954 2020-04-01 Tom Tromey <tromey@adacore.com>
12956 * psymtab.c (psymtab_search_name): Remove function.
12957 (psym_lookup_symbol): Create search name and lookup name here.
12958 (lookup_partial_symbol): Remove "name" parameter; add
12960 (psym_expand_symtabs_for_function): Update.
12962 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12965 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12967 2020-03-31 Tom Tromey <tromey@adacore.com>
12969 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12972 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12974 * features/riscv/32bit-csr.xml: Regenerated.
12975 * features/riscv/64bit-csr.xml: Regenerated.
12977 2020-03-30 Tom Tromey <tromey@adacore.com>
12979 * ada-valprint.c (print_variant_part): Update.
12980 * ada-lang.h (ada_which_variant_applies): Update.
12981 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12982 outer_valaddr parameters; replace with "outer" value parameter.
12983 (to_fixed_variant_branch_type): Update.
12985 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12987 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12988 <list>. Remove inclusion of observable.h.
12989 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12990 (struct arch_lwp_info): New struct.
12991 (class ppc_linux_dreg_interface): New class.
12992 (struct ppc_linux_process_info): New struct.
12993 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12994 <low_new_clone, low_forget_process, low_prepare_to_resume>
12995 <copy_thread_dreg_state, mark_thread_stale>
12996 <mark_debug_registers_changed, register_hw_breakpoint>
12997 <clear_hw_breakpoint, register_wp, clear_wp>
12998 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12999 <num_memory_accesses, get_trigger_type>
13000 <create_watchpoint_request, hwdebug_point_cmp>
13001 <init_arch_lwp_info, get_arch_lwp_info>
13002 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13004 <struct ptid_hash>: New inner struct.
13005 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13007 (saved_dabr_value, hwdebug_info, max_slots_number)
13008 (struct hw_break_tuple, struct thread_points, ppc_threads)
13009 (have_ptrace_hwdebug_interface)
13010 (hwdebug_find_thread_points_by_tid)
13011 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13012 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13013 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13014 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13015 use m_dreg_interface.
13016 (hwdebug_point_cmp): Change to...
13017 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13018 reference arguments instead of pointers.
13019 (ppc_linux_nat_target::ranged_break_num_registers): Use
13021 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13022 m_dreg_interface. Call register_hw_breakpoint.
13023 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13024 m_dreg_interface. Call clear_hw_breakpoint.
13025 (get_trigger_type): Change to...
13026 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13028 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13029 use m_dreg_interface. Call register_hw_breakpoint.
13030 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13031 use m_dreg_interface. Call clear_hw_breakpoint.
13032 (can_use_watchpoint_cond_accel): Change to...
13033 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13034 method. Update comment, use m_dreg_interface and
13036 (calculate_dvc): Change to...
13037 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13039 (num_memory_accesses): Change to...
13040 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13041 (check_condition): Change to...
13042 (ppc_linux_nat_target::check_condition): ...this method.
13043 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13044 comment, use m_dreg_interface.
13045 (create_watchpoint_request): Change to...
13046 (ppc_linux_nat_target::create_watchpoint_request): ...this
13047 method. Use m_dreg_interface.
13048 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13049 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13050 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13051 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13052 (ppc_linux_nat_target::low_forget_process)
13053 (ppc_linux_nat_target::low_new_fork)
13054 (ppc_linux_nat_target::low_new_clone)
13055 (ppc_linux_nat_target::low_delete_thread)
13056 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13057 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13058 only call mark_thread_stale.
13059 (ppc_linux_thread_exit): Remove.
13060 (ppc_linux_nat_target::stopped_data_address): Change to...
13061 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13062 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13063 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13064 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13065 comment. Call low_stopped_data_address.
13066 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13068 (ppc_linux_nat_target::masked_watch_num_registers): Use
13070 (ppc_linux_nat_target::copy_thread_dreg_state)
13071 (ppc_linux_nat_target::mark_thread_stale)
13072 (ppc_linux_nat_target::mark_debug_registers_changed)
13073 (ppc_linux_nat_target::register_hw_breakpoint)
13074 (ppc_linux_nat_target::clear_hw_breakpoint)
13075 (ppc_linux_nat_target::register_wp)
13076 (ppc_linux_nat_target::clear_wp)
13077 (ppc_linux_nat_target::init_arch_lwp_info)
13078 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13079 (_initialize_ppc_linux_nat): Remove observer callback.
13081 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13083 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13084 (ppc_linux_nat_target::auxv_parse)
13085 (ppc_linux_nat_target::read_description)
13086 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13089 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13091 * linux-nat.h (low_new_clone): New method.
13092 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13094 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13096 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13097 (dbx_expand_psymtab): ... this.
13098 (start_psymtab): Update.
13099 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13100 (mdebug_expand_psymtab): ... this.
13101 (parse_partial_symbols): Update.
13102 (new_psymtab): Update.
13103 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13104 (xcoff_expand_psymtab): ... this.
13105 (xcoff_start_psymtab): Update.
13107 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13109 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13110 <expand_dependencies>: ... this.
13111 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13112 (partial_symtab::expand_dependencies): ... this.
13113 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13115 (dwarf2_psymtab::expand_psymtab): Update.
13116 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13117 * mdebugread.c (psymtab_to_symtab_1): Update.
13118 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13120 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13122 * psympriv.h (discard_psymtab): Remove.
13123 * dbxread.c (dbx_end_psymtab): Update.
13124 * xcoffread.c (xcoff_end_psymtab): Update.
13126 2020-03-28 Tom Tromey <tom@tromey.com>
13128 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13131 2020-03-28 Tom Tromey <tom@tromey.com>
13133 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13135 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13137 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13139 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13141 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13143 2020-03-26 Tom Tromey <tom@tromey.com>
13145 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13146 (mark_common_block_symbol_computed, read_tag_string_type)
13147 (attr_to_dynamic_prop, read_subrange_type): Update.
13148 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13149 to be methods on struct attribute.
13150 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13151 (read_call_site_scope, partial_die_info::read)
13152 (partial_die_info::read, lookup_die_type, follow_die_ref):
13154 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13155 from dwarf2_get_ref_die_offset.
13156 (attribute::constant_value): New method, from
13157 dwarf2_get_attr_constant_value.
13158 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13160 <constant_value>: New method.
13162 2020-03-26 Tom Tromey <tom@tromey.com>
13164 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13165 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13166 (dwarf_type_encoding_name): Move to stringify.c.
13167 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13168 * dwarf2/stringify.c: New file.
13169 * dwarf2/stringify.h: New file.
13171 2020-03-26 Tom Tromey <tom@tromey.com>
13173 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13176 2020-03-26 Tom Tromey <tom@tromey.com>
13178 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13180 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13181 (lookup_ranges_base): Likewise.
13182 (read_cutu_die_from_dwo, read_full_die_1): Update.
13184 2020-03-26 Tom Tromey <tom@tromey.com>
13186 * dwarf2/read.c (read_import_statement, read_file_scope)
13187 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13188 (read_lexical_block_scope, read_call_site_scope)
13189 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13190 (handle_struct_member_die, process_structure_scope)
13191 (update_enumeration_type_from_children)
13192 (process_enumeration_scope, read_array_type, read_common_block)
13193 (read_namespace, read_module, read_subroutine_type): Update.
13194 (sibling_die): Remove.
13196 2020-03-26 Tom Tromey <tom@tromey.com>
13198 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13199 (build_type_psymtabs_reader, read_structure_type)
13200 (read_enumeration_type, read_full_die_1): Update.
13201 (dwarf2_attr_no_follow): Move to die.h.
13202 * dwarf2/die.h (struct die_info) <attr>: New method.
13204 2020-03-26 Tom Tromey <tom@tromey.com>
13206 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13207 <base_address>: Now an optional.
13208 (dwarf2_find_base_address, dwarf2_rnglists_process)
13209 (dwarf2_ranges_process, fill_in_loclist_baton)
13210 (dwarf2_symbol_mark_computed): Update.
13212 2020-03-26 Tom Tromey <tom@tromey.com>
13214 * dwarf2/read.c (struct die_info): Move to die.h.
13215 * dwarf2/die.h: New file.
13217 2020-03-26 Tom Tromey <tom@tromey.com>
13219 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13221 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13222 Move to line-header.c.
13223 (read_checked_initial_length_and_offset, read_formatted_entries):
13225 (dwarf_decode_line_header): Split into two.
13226 * dwarf2/line-header.c
13227 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13229 (read_checked_initial_length_and_offset, read_formatted_entries):
13231 (dwarf_decode_line_header): New function, split from read.c.
13233 2020-03-26 Tom Tromey <tom@tromey.com>
13235 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13237 * dwarf2/read.c (read_attribute_value): Update.
13238 (dwarf2_per_objfile::read_line_string): Rename from
13239 read_indirect_line_string.
13240 (read_formatted_entries): Update.
13242 2020-03-26 Tom Tromey <tom@tromey.com>
13244 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13247 2020-03-26 Tom Tromey <tom@tromey.com>
13249 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13251 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13252 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13255 2020-03-26 Tom Tromey <tom@tromey.com>
13257 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13258 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13259 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13260 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13262 2020-03-26 Tom Tromey <tom@tromey.com>
13264 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13265 file_names_size, file_full_name, file_file_name>: Use const.
13266 <file_name_at, file_names>: Add const overload.
13267 * dwarf2/line-header.c (line_header::file_file_name)
13268 (line_header::file_full_name): Update.
13270 2020-03-26 Tom Tromey <tom@tromey.com>
13272 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13273 (macro_start_file, consume_improper_spaces)
13274 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13275 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13276 (dwarf_decode_macros): Move to macro.c.
13277 * dwarf2/macro.c: New file.
13278 * dwarf2/macro.h: New file.
13279 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13281 2020-03-26 Tom Tromey <tom@tromey.com>
13283 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13285 * dwarf2/section.c: New method. From
13286 read_indirect_string_at_offset_from.
13287 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13288 (read_indirect_string_at_offset_from): Move to section.c.
13289 (read_indirect_string_at_offset): Rewrite.
13290 (read_indirect_line_string_at_offset): Remove.
13291 (read_indirect_string, read_indirect_line_string)
13292 (dwarf_decode_macro_bytes): Update.
13294 2020-03-26 Tom Tromey <tom@tromey.com>
13296 * dwarf2/section.h (struct dwarf2_section_info)
13297 <overload_complaint>: Declare.
13298 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13299 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13300 Rename from dwarf2_section_buffer_overflow_complaint.
13301 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13302 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13304 2020-03-26 Tom Tromey <tom@tromey.com>
13306 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13308 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13310 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13313 2020-03-26 Tom Tromey <tom@tromey.com>
13315 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13317 2020-03-26 Tom Tromey <tom@tromey.com>
13319 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13321 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13323 (dwarf_decode_macros): Update.
13325 2020-03-26 Tom Tromey <tom@tromey.com>
13327 * dwarf2/read.c (read_attribute_value): Update.
13328 (read_indirect_string_from_dwz): Move to dwz.c; change into
13330 (dwarf_decode_macro_bytes): Update.
13331 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13332 * dwarf2/dwz.c: New file.
13333 * Makefile.in (COMMON_SFILES): Add dwz.c.
13335 2020-03-26 Tom Tromey <tom@tromey.com>
13337 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13338 * dwarf2/read.c: Add include.
13339 * dwarf2/index-write.c: Add include.
13340 * dwarf2/index-cache.c: Add include.
13341 * dwarf2/dwz.h: New file.
13343 2020-03-25 Tom Tromey <tom@tromey.com>
13345 * compile/compile-object-load.c (get_out_value_type): Mention
13346 correct symbol name in error message.
13348 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13350 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13352 2020-03-25 Tom de Vries <tdevries@suse.de>
13354 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13355 * symmisc.c (dump_symtab_1): Print user and includes fields.
13356 (maintenance_info_symtabs): Same.
13358 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13361 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13362 (riscv_regcache_cooked_write): New function.
13363 (riscv_push_dummy_call): Use new function.
13364 (riscv_return_value): Likewise.
13366 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13368 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13369 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13370 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13371 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13372 * infrun.c (follow_fork): Likewise.
13373 (follow_fork_inferior): Likewise.
13374 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13375 * linux-nat.h (class linux_nat_target): Likewise.
13376 * remote.c (class remote_target) <follow_fork>: Likewise.
13377 (remote_target::follow_fork): Likewise.
13378 * target-delegates.c: Re-generate.
13379 * target.c (default_follow_fork): Likewise.
13380 (target_follow_fork): Likewise.
13381 * target.h (struct target_ops) <follow_fork>: Likewise.
13382 (target_follow_fork): Likewise.
13384 2020-03-24 Tom de Vries <tdevries@suse.de>
13386 * psymtab.c (maintenance_info_psymtabs): Print user field.
13388 2020-03-20 Tom Tromey <tromey@adacore.com>
13390 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13392 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13395 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13397 * ptrace.m4: Don't check for ptrace declaration.
13398 * config.in: Re-generate.
13399 * configure: Re-generate.
13400 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13403 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13405 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13407 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13408 * sparc-nat.c (gdb_ptrace): Likewise.
13409 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13411 2020-03-20 Tom Tromey <tromey@adacore.com>
13413 * c-exp.y (lex_one_token): Fix assert.
13415 2020-03-20 Tom Tromey <tromey@adacore.com>
13417 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13418 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13421 2020-03-20 Tom Tromey <tromey@adacore.com>
13423 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13425 2020-03-20 Tom Tromey <tromey@adacore.com>
13427 * ada-valprint.c (print_variant_part): Remove parameters; switch
13428 to value-based API.
13429 (print_field_values): Likewise.
13430 (ada_val_print_struct_union): Likewise.
13431 (ada_value_print_1): Update.
13433 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13435 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13436 nbsd_nat_target instead of inf_ptrace_target.
13437 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13440 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13442 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13443 it to the ptrace call.
13444 * (store_registers): Likewise.
13446 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13448 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13449 it to the ptrace call.
13450 * (store_registers): Likewise.
13452 2020-03-19 Luis Machado <luis.machado@linaro.org>
13454 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13455 valid, fetch vg value from ptrace.
13457 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13458 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13459 * inf-ptrace.c: Likewise.
13460 * (gdb_ptrace): Add.
13461 * (inf_ptrace_target::resume): Update.
13462 * (inf_ptrace_target::xfer_partial): Likewise.
13463 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13464 * (inf_ptrace_peek_poke): Update.
13466 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13468 * x86-bsd-nat.c (gdb_ptrace): New.
13469 * (x86bsd_dr_set): Add new argument `ptid'.
13470 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13471 x86bsd_dr_set_addr): Update.
13473 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13475 * remote.c (remote_target::process_stop_reply): Handle events for
13476 all threads differently.
13478 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13480 * completer.c (completion_tracker::remove_completion): Define new
13482 * completer.h (completion_tracker::remove_completion): Declare new
13484 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13485 when adding a C++ function symbol.
13487 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13489 * completer.c (completion_tracker::completion_hash_entry): Define
13491 (advance_to_filename_complete_word_point): Call
13492 recompute_lowest_common_denominator.
13493 (completion_tracker::completion_tracker): Call discard_completions
13494 to setup the hash table.
13495 (completion_tracker::discard_completions): Allow for being called
13496 from the constructor, pass new equal function, and element deleter
13497 when constructing the hash table. Initialise new class member
13499 (completion_tracker::maybe_add_completion): Remove use of
13500 m_entries_vec, and store more information into m_entries_hash.
13501 (completion_tracker::recompute_lcd_visitor): New function, most
13502 content taken from...
13503 (completion_tracker::recompute_lowest_common_denominator):
13504 ...here, this now just visits each item in the hash calling the
13506 (completion_tracker::build_completion_result): Remove use of
13507 m_entries_vec, call recompute_lowest_common_denominator.
13508 * completer.h (completion_tracker::have_completions): Remove use
13510 (completion_tracker::completion_hash_entry): Declare new class.
13511 (completion_tracker::recompute_lowest_common_denominator): Change
13512 function signature.
13513 (completion_tracker::recompute_lcd_visitor): Declare new function.
13514 (completion_tracker::m_entries_vec): Delete.
13515 (completion_tracker::m_entries_hash): Initialize to NULL.
13516 (completion_tracker::m_lowest_common_denominator_valid): New
13518 (completion_tracker::m_lowest_common_denominator_max_length): New
13521 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13523 * regformats/regdef.h: Put reg in gdb namespace.
13525 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13527 * i386-bsd-nat.c (gdb_ptrace): New.
13528 * (i386bsd_fetch_inferior_registers,
13529 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13530 * (i386bsd_fetch_inferior_registers,
13531 i386bsd_store_inferior_registers) Use gdb_ptrace.
13533 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13535 * amd64-bsd-nat.c (gdb_ptrace): New.
13536 * (amd64bsd_fetch_inferior_registers,
13537 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13538 * (amd64bsd_fetch_inferior_registers,
13539 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13541 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13543 * user-regs.c (user_reg::read): Rename to...
13544 (user_reg::xread): ...this.
13545 * (append_user_reg): Rename argument `read' to `xread'.
13546 * (user_reg_add_builtin): Likewise.
13547 * (user_reg_add): Likewise.
13548 * (value_of_user_reg): Likewise.
13550 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13552 * sparc-nat.c (gdb_ptrace): New.
13553 * sparc-nat.c (sparc_fetch_inferior_registers)
13554 (sparc_store_inferior_registers) Remove obsolete comment.
13555 * sparc-nat.c (sparc_fetch_inferior_registers)
13556 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13557 * sparc-nat.c (sparc_fetch_inferior_registers)
13558 (sparc_store_inferior_registers) Use gdb_ptrace.
13560 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13562 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13563 it to the ptrace call.
13564 * sh-nbsd-nat.c (store_registers): Likewise.
13566 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13568 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13569 nbsd_nat_target instead of inf_ptrace_target.
13570 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13573 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13575 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13577 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13579 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13581 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13583 2020-03-17 Tom de Vries <tdevries@suse.de>
13586 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13588 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13590 (process_imported_unit_die): Skip import of c++ CUs.
13592 2020-03-16 Tom Tromey <tom@tromey.com>
13594 * p-valprint.c (pascal_object_print_value): Initialize
13597 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13598 Shahab Vahedi <shahab@synopsys.com>
13600 * Makefile.in: Add arch/arc.o
13601 * configure.tgt: Likewise.
13602 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13603 (_initialize_arc_tdep): Don't initialize old target descriptions.
13604 (arc_read_description): New function to cache target descriptions.
13605 * arc-tdep.h (arc_read_description): Add proto type.
13606 * arch/arc.c: New file.
13607 * arch/arc.h: Likewise.
13608 * features/Makefile: Replace old target descriptions with new.
13609 * features/arc-arcompact.c: Remove.
13610 * features/arc-arcompact.xml: Likewise.
13611 * features/arc-v2.c: Likewise
13612 * features/arc-v2.xml: Likewise
13613 * features/arc/aux-arcompact.xml: New file.
13614 * features/arc/aux-v2.xml: Likewise.
13615 * features/arc/core-arcompact.xml: Likewise.
13616 * features/arc/core-v2.xml: Likewise.
13617 * features/arc/aux-arcompact.c: Generate.
13618 * features/arc/aux-v2.c: Likewise.
13619 * features/arc/core-arcompact.c: Likewise.
13620 * features/arc/core-v2.c: Likewise.
13621 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13623 2020-03-16 Tom Tromey <tromey@adacore.com>
13626 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13627 putting value into bcache.
13629 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13632 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13634 (amd64_windows_init_abi_common): ... this. Don't set size of
13636 (amd64_windows_init_abi): New function.
13637 (amd64_cygwin_init_abi): New function.
13638 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13640 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13643 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13645 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13646 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13647 (pe_import_directory_entry): New struct type.
13648 (is_linked_with_cygwin_dll): New function.
13649 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13650 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13651 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13653 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13655 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13656 i386_cygwin_core_osabi_sniffer.
13658 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13660 * i386-cygwin-tdep.c: Rename to...
13661 * i386-windows-tdep.c: ... this.
13662 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13663 i386-windows-tdep.c.
13664 * configure.tgt: Likewise.
13666 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13668 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13669 * osabi.c (gdb_osabi_names): Add "Windows".
13670 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13671 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13672 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13673 i386_cygwin_osabi_sniffer.
13674 (_initialize_i386_cygwin_tdep): Register OS ABI
13675 GDB_OSABI_WINDOWS for i386.
13676 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13677 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13678 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13680 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13681 when the target matches '*-*-mingw*'.
13683 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13685 * defs.h (enum gdb_osabi): Move to...
13686 * osabi.h (enum gdb_osabi): ... here.
13687 * gdbarch.sh: Include osabi.h in gdbarch.h.
13688 * gdbarch.h: Re-generate.
13690 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13692 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13694 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13696 2020-03-14 Tom Tromey <tom@tromey.com>
13698 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13700 (c_type_print_modifier): Likewise. Add "language" parameter.
13701 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13702 (c_type_print_base_1): Update.
13703 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13705 * type-stack.c (type_stack::insert): Handle tp_atomic and
13707 (type_stack::follow_type_instance_flags): Likewise.
13708 (type_stack::follow_types): Likewise. Merge type-following code.
13709 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13710 (space_identifier, cv_with_space_id)
13711 (const_or_volatile_or_space_identifier_noopt)
13712 (const_or_volatile_or_space_identifier): Remove.
13713 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13715 (ptr_operator, typebase): Update.
13716 (enum token_flag) <FLAG_C>: New constant.
13717 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13719 (lex_one_token): Handle FLAG_C.
13721 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13723 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13724 it to the ptrace call.
13725 * m68k-bsd-nat.c (store_registers): Likewise.
13727 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13729 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13731 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13732 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13733 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13735 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13737 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13738 nbsd_nat_target instead of inf_ptrace_target.
13739 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13742 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13744 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13747 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13749 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13750 it to the ptrace call.
13751 * alpha-bsd-nat.c (store_registers): Likewise.
13753 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13755 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13757 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13758 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13759 fill_fpregset): Likewise.
13761 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13763 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13764 nbsd_nat_target instead of inf_ptrace_target.
13765 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13768 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13770 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13773 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13775 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13776 it to the ptrace call.
13777 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13778 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13779 * arm-nbsd-nat.c (store_register): Likewise.
13780 * arm-nbsd-nat.c (store_regs): Likewise.
13781 * arm-nbsd-nat.c (store_fp_register): Likewise.
13782 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13784 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13786 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13787 nbsd_nat_target instead of inf_ptrace_target.
13788 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13791 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13793 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13794 it to the ptrace call.
13795 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13797 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13799 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13800 it to the ptrace call.
13801 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13803 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13805 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13807 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13809 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13811 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13812 instead of inf_ptrace_target.
13813 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13816 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13818 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13821 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13823 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13826 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13828 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13831 2020-03-13 Tom Tromey <tom@tromey.com>
13833 * value.h (val_print): Don't declare.
13834 * valprint.h (val_print_array_elements)
13835 (val_print_scalar_formatted, generic_val_print): Don't declare.
13836 * valprint.c (generic_val_print_array): Take a struct value.
13837 (generic_val_print_ptr, generic_val_print_memberptr)
13838 (generic_val_print_bool, generic_val_print_int)
13839 (generic_val_print_char, generic_val_print_complex)
13840 (generic_val_print): Remove.
13841 (generic_value_print): Update.
13842 (do_val_print): Remove unused parameters. Don't call
13844 (val_print): Remove.
13845 (common_val_print): Update. Don't call value_check_printable.
13846 (val_print_scalar_formatted, val_print_array_elements): Remove.
13847 * rust-lang.c (rust_val_print): Remove.
13848 (rust_language_defn): Update.
13849 * p-valprint.c (pascal_val_print): Remove.
13850 (pascal_value_print_inner): Update.
13851 (pascal_object_print_val_fields, pascal_object_print_val):
13853 (pascal_object_print_static_field): Update.
13854 * p-lang.h (pascal_val_print): Don't declare.
13855 * p-lang.c (pascal_language_defn): Update.
13856 * opencl-lang.c (opencl_language_defn): Update.
13857 * objc-lang.c (objc_language_defn): Update.
13858 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13859 * m2-lang.h (m2_val_print): Don't declare.
13860 * m2-lang.c (m2_language_defn): Update.
13861 * language.h (struct language_defn) <la_val_print>: Remove.
13862 * language.c (unk_lang_value_print_inner): Rename. Change
13864 (unknown_language_defn, auto_language_defn): Update.
13865 * go-valprint.c (go_val_print): Remove.
13866 * go-lang.h (go_val_print): Don't declare.
13867 * go-lang.c (go_language_defn): Update.
13868 * f-valprint.c (f_val_print): Remove.
13869 * f-lang.h (f_value_print): Don't declare.
13870 * f-lang.c (f_language_defn): Update.
13871 * d-valprint.c (d_val_print): Remove.
13872 * d-lang.h (d_value_print): Don't declare.
13873 * d-lang.c (d_language_defn): Update.
13874 * cp-valprint.c (cp_print_value_fields)
13875 (cp_print_value_fields_rtti, cp_print_value): Remove.
13876 (cp_print_static_field): Update.
13877 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13878 (c_val_print_struct, c_val_print_union, c_val_print_int)
13879 (c_val_print_memberptr, c_val_print): Remove.
13880 * c-lang.h (c_val_print_array, cp_print_value_fields)
13881 (cp_print_value_fields_rtti): Don't declare.
13882 * c-lang.c (c_language_defn, cplus_language_defn)
13883 (asm_language_defn, minimal_language_defn): Update.
13884 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13885 (ada_val_print_enum): Take a struct value.
13886 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13887 (ada_val_print): Remove.
13888 (ada_value_print_1): Update.
13889 (printable_val_type): Remove.
13890 * ada-lang.h (ada_val_print): Don't declare.
13891 * ada-lang.c (ada_language_defn): Update.
13893 2020-03-13 Tom Tromey <tom@tromey.com>
13895 * valprint.c (do_val_print): Update.
13896 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13898 (value_to_value_object_no_release): Declare.
13899 * python/py-value.c (value_to_value_object_no_release): New
13901 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13903 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13905 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13907 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13909 (gdbscm_apply_val_pretty_printer): Take a struct value.
13910 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13912 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13914 * extension-priv.h (struct extension_language_ops)
13915 <apply_val_pretty_printer>: Take a struct value.
13916 * cp-valprint.c (cp_print_value): Create a struct value.
13917 (cp_print_value): Update.
13919 2020-03-13 Tom Tromey <tom@tromey.com>
13921 * ada-valprint.c (print_field_values): Call common_val_print.
13923 2020-03-13 Tom Tromey <tom@tromey.com>
13925 * ada-valprint.c (val_print_packed_array_elements): Remove
13926 bitoffset and val parameters. Call common_val_print.
13927 (ada_val_print_string): Remove offset, address, and original_value
13929 (ada_val_print_array): Update.
13930 (ada_value_print_array): New function.
13931 (ada_value_print_1): Call it.
13933 2020-03-13 Tom Tromey <tom@tromey.com>
13935 * ada-valprint.c (ada_value_print): Use common_val_print.
13937 2020-03-13 Tom Tromey <tom@tromey.com>
13939 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13941 2020-03-13 Tom Tromey <tom@tromey.com>
13943 * ada-valprint.c (ada_value_print_num): New function.
13944 (ada_value_print_1): Use it.
13946 2020-03-13 Tom Tromey <tom@tromey.com>
13948 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13950 2020-03-13 Tom Tromey <tom@tromey.com>
13952 * ada-valprint.c (ada_value_print_ptr): New function.
13953 (ada_value_print_1): Use it.
13955 2020-03-13 Tom Tromey <tom@tromey.com>
13957 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13958 call common_val_print.
13959 (ada_val_print_1): Update.
13960 (ada_value_print_1): New function.
13961 (ada_value_print_inner): Rewrite.
13963 2020-03-13 Tom Tromey <tom@tromey.com>
13965 * cp-valprint.c (cp_print_value_fields): Update.
13966 (cp_print_value): New function.
13968 2020-03-13 Tom Tromey <tom@tromey.com>
13970 * m2-valprint.c (m2_value_print_inner): Use
13971 cp_print_value_fields.
13972 * cp-valprint.c (cp_print_value_fields): New function.
13973 * c-valprint.c (c_value_print_struct): New function.
13974 (c_value_print_inner): Use c_value_print_struct.
13975 * c-lang.h (cp_print_value_fields): Declare.
13977 2020-03-13 Tom Tromey <tom@tromey.com>
13979 * c-valprint.c (c_value_print_array): New function.
13980 (c_value_print_inner): Use it.
13982 2020-03-13 Tom Tromey <tom@tromey.com>
13984 * c-valprint.c (c_value_print_memberptr): New function.
13985 (c_value_print_inner): Use it.
13987 2020-03-13 Tom Tromey <tom@tromey.com>
13989 * c-valprint.c (c_value_print_int): New function.
13990 (c_value_print_inner): Use it.
13992 2020-03-13 Tom Tromey <tom@tromey.com>
13994 * c-valprint.c (c_value_print_ptr): New function.
13995 (c_value_print_inner): Use it.
13997 2020-03-13 Tom Tromey <tom@tromey.com>
13999 * c-valprint.c (c_value_print_inner): Rewrite.
14001 2020-03-13 Tom Tromey <tom@tromey.com>
14003 * valprint.c (generic_value_print_complex): New function.
14004 (generic_value_print): Use it.
14006 2020-03-13 Tom Tromey <tom@tromey.com>
14008 * valprint.c (generic_val_print_float): Don't call
14009 val_print_scalar_formatted.
14010 (generic_val_print, generic_value_print): Update.
14012 2020-03-13 Tom Tromey <tom@tromey.com>
14014 * valprint.c (generic_value_print_char): New function
14015 (generic_value_print): Use it.
14017 2020-03-13 Tom Tromey <tom@tromey.com>
14019 * valprint.c (generic_value_print_int): New function.
14020 (generic_value_print): Use it.
14022 2020-03-13 Tom Tromey <tom@tromey.com>
14024 * valprint.c (generic_value_print_bool): New function.
14025 (generic_value_print): Use it.
14027 2020-03-13 Tom Tromey <tom@tromey.com>
14029 * valprint.c (generic_val_print_func): Simplify.
14030 (generic_val_print, generic_value_print): Update.
14032 2020-03-13 Tom Tromey <tom@tromey.com>
14034 * valprint.c (generic_val_print_flags): Remove.
14035 (generic_val_print, generic_value_print): Update.
14036 (val_print_type_code_flags): Add original_value parameter.
14038 2020-03-13 Tom Tromey <tom@tromey.com>
14040 * valprint.c (generic_val_print): Update.
14041 (generic_value_print): Update.
14042 * valprint.c (generic_val_print_enum): Don't call
14043 val_print_scalar_formatted.
14045 2020-03-13 Tom Tromey <tom@tromey.com>
14047 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14048 * valprint.c (generic_value_print_ptr): New function.
14050 2020-03-13 Tom Tromey <tom@tromey.com>
14052 * valprint.c (generic_value_print): Rewrite.
14054 2020-03-13 Tom Tromey <tom@tromey.com>
14056 * p-valprint.c (pascal_object_print_value_fields)
14057 (pascal_object_print_value): New functions.
14059 2020-03-13 Tom Tromey <tom@tromey.com>
14061 * p-valprint.c (pascal_value_print_inner): Rewrite.
14063 2020-03-13 Tom Tromey <tom@tromey.com>
14065 * f-valprint.c (f_value_print_innner): Rewrite.
14067 2020-03-13 Tom Tromey <tom@tromey.com>
14069 * m2-valprint.c (m2_print_unbounded_array): New overload.
14070 (m2_print_unbounded_array): Update.
14071 (m2_print_array_contents): Take a struct value.
14072 (m2_value_print_inner): Rewrite.
14074 2020-03-13 Tom Tromey <tom@tromey.com>
14076 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14077 (d_value_print_inner): New function.
14078 * d-lang.h (d_value_print_inner): Declare.
14079 * d-lang.c (d_language_defn): Use d_value_print_inner.
14081 2020-03-13 Tom Tromey <tom@tromey.com>
14083 * go-valprint.c (go_value_print_inner): New function.
14084 * go-lang.h (go_value_print_inner): Declare.
14085 * go-lang.c (go_language_defn): Use go_value_print_inner.
14087 2020-03-13 Tom Tromey <tom@tromey.com>
14089 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14091 (rust_val_print): Rewrite.
14092 (rust_value_print_inner): New function, from rust_val_print.
14093 (rust_language_defn): Use rust_value_print_inner.
14095 2020-03-13 Tom Tromey <tom@tromey.com>
14097 * ada-valprint.c (ada_value_print_inner): New function.
14098 * ada-lang.h (ada_value_print_inner): Declare.
14099 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14101 2020-03-13 Tom Tromey <tom@tromey.com>
14103 * f-valprint.c (f_value_print_innner): New function.
14104 * f-lang.h (f_value_print_innner): Declare.
14105 * f-lang.c (f_language_defn): Use f_value_print_innner.
14107 2020-03-13 Tom Tromey <tom@tromey.com>
14109 * p-valprint.c (pascal_value_print_inner): New function.
14110 * p-lang.h (pascal_value_print_inner): Declare.
14111 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14113 2020-03-13 Tom Tromey <tom@tromey.com>
14115 * m2-valprint.c (m2_value_print_inner): New function.
14116 * m2-lang.h (m2_value_print_inner): Declare.
14117 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14119 2020-03-13 Tom Tromey <tom@tromey.com>
14121 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14122 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14123 * c-valprint.c (c_value_print_inner): New function.
14124 * c-lang.h (c_value_print_inner): Declare.
14125 * c-lang.c (c_language_defn, cplus_language_defn)
14126 (asm_language_defn, minimal_language_defn): Use
14127 c_value_print_inner.
14129 2020-03-13 Tom Tromey <tom@tromey.com>
14131 * p-valprint.c (pascal_object_print_value_fields): Now static.
14132 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14134 2020-03-13 Tom Tromey <tom@tromey.com>
14136 * c-valprint.c (c_val_print_array): Simplify.
14138 2020-03-13 Tom Tromey <tom@tromey.com>
14140 * valprint.c (value_print_array_elements): New function.
14141 * valprint.h (value_print_array_elements): Declare.
14143 2020-03-13 Tom Tromey <tom@tromey.com>
14145 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14146 * mips-tdep.c (mips_print_register): Use
14147 value_print_scalar_formatted.
14149 2020-03-13 Tom Tromey <tom@tromey.com>
14151 * valprint.h (value_print_scalar_formatted): Declare.
14152 * valprint.c (value_print_scalar_formatted): New function.
14154 2020-03-13 Tom Tromey <tom@tromey.com>
14156 * valprint.h (generic_value_print): Declare.
14157 * valprint.c (generic_value_print): New function.
14159 2020-03-13 Tom Tromey <tom@tromey.com>
14161 * valprint.c (do_val_print): Call la_value_print_inner, if
14163 * rust-lang.c (rust_language_defn): Update.
14164 * p-lang.c (pascal_language_defn): Update.
14165 * opencl-lang.c (opencl_language_defn): Update.
14166 * objc-lang.c (objc_language_defn): Update.
14167 * m2-lang.c (m2_language_defn): Update.
14168 * language.h (struct language_defn) <la_value_print_inner>: New
14170 * language.c (unknown_language_defn, auto_language_defn): Update.
14171 * go-lang.c (go_language_defn): Update.
14172 * f-lang.c (f_language_defn): Update.
14173 * d-lang.c (d_language_defn): Update.
14174 * c-lang.c (c_language_defn, cplus_language_defn)
14175 (asm_language_defn, minimal_language_defn): Update.
14176 * ada-lang.c (ada_language_defn): Update.
14178 2020-03-13 Tom Tromey <tom@tromey.com>
14180 * c-valprint.c (c_value_print): Use common_val_print.
14182 2020-03-13 Tom Tromey <tom@tromey.com>
14184 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14186 2020-03-13 Tom Tromey <tom@tromey.com>
14188 * f-valprint.c (f77_print_array_1, f_val_print): Use
14191 2020-03-13 Tom Tromey <tom@tromey.com>
14193 * riscv-tdep.c (riscv_print_one_register_info): Use
14196 2020-03-13 Tom Tromey <tom@tromey.com>
14198 * mi/mi-main.c (output_register): Use common_val_print.
14200 2020-03-13 Tom Tromey <tom@tromey.com>
14202 * infcmd.c (default_print_one_register_info): Use
14205 2020-03-13 Tom Tromey <tom@tromey.com>
14207 * valprint.h (common_val_print_checked): Declare.
14208 * valprint.c (common_val_print_checked): New function.
14209 * stack.c (print_frame_arg): Use common_val_print_checked.
14211 2020-03-13 Tom Tromey <tom@tromey.com>
14213 * valprint.c (do_val_print): New function, from val_print.
14214 (val_print): Use do_val_print.
14215 (common_val_print): Use do_val_print.
14217 2020-03-13 Tom Tromey <tom@tromey.com>
14219 * valprint.c (value_print): Use scoped_value_mark.
14221 2020-03-13 Tom de Vries <tdevries@suse.de>
14224 * psymtab.c (partial_symtab::partial_symtab): Don't set
14225 globals_offset and statics_offset. Push element onto
14226 current_global_psymbols and current_static_psymbols stacks.
14227 (concat): New function.
14228 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14229 element from current_global_psymbols and current_static_psymbols
14230 stacks. Concat popped elements to global_psymbols and
14232 (add_psymbol_to_list): Use current_global_psymbols and
14233 current_static_psymbols stacks.
14234 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14235 current_static_psymbols fields.
14237 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14239 * corelow.c (sniff_core_bfd): Remove.
14240 (class core_target) <m_core_vec>: Remove.
14241 (core_target::core_target): Update.
14242 (core_file_fns): Remove.
14243 (deprecated_add_core_fns): Remove.
14244 (default_core_sniffer): Remove.
14245 (sniff_core_bfd): Remove.
14246 (default_check_format): Remove.
14247 (gdb_check_format): Remove.
14248 (core_target_open): Update.
14249 (core_target::get_core_register_section): Update.
14250 (get_core_registers_cb): Update.
14251 (core_target::fetch_registers): Update.
14252 * gdbcore.h (struct core_fns): Remove.
14253 (deprecated_add_core_fns): Remove.
14254 (default_core_sniffer): Remove.
14255 (default_check_format): Remove.
14257 2020-03-12 Tom Tromey <tom@tromey.com>
14259 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14261 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14263 2020-03-12 Tom Tromey <tom@tromey.com>
14265 * remote.c (remote_target::download_tracepoint)
14266 (remote_target::enable_tracepoint)
14267 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14268 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14271 2020-03-12 Tom Tromey <tom@tromey.com>
14273 * symfile-mem.c: Update CORE_ADDR size assert.
14275 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14277 * selftest.m4: Move to gdbsupport/.
14278 * acinclude.m4: Update path to selftest.m4.
14280 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14282 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14283 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14284 gdbarch-selfselftests.c and selftest-arch.c.
14285 (SUBDIR_UNITTESTS_OBS): Rename to...
14286 (SELFTESTS_OBS): ... this.
14287 (COMMON_SFILES): Remove disasm-selftests.c and
14288 gdbarch-selftests.c.
14289 * configure.ac: Don't add selftest-arch.{c,o} to
14291 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14292 preprocessor conditions.
14294 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14296 * configure.ac: Don't source bfd/development.sh.
14297 * selftest.m4: Modify comment.
14298 * configure: Re-generate.
14300 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14302 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14303 not "true" or "false".
14304 * configure: Re-generate.
14306 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14308 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14309 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14310 renamed to arm_nbsd_supply_gregset.
14311 (fetch_register): Update to call arm_nbsd_supply_gregset.
14312 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14313 (arm_netbsd_nat_target::fetch_registers): Update.
14314 (fetch_elfcore_registers): Removed.
14315 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14316 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14317 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14318 not require NetBSD system headers.
14319 (arm_nbsd_regset): New struct.
14320 (arm_nbsd_iterate_over_regset_sections): New function.
14321 (arm_netbsd_init_abi_common): Updated to call
14322 set_gdbarch_iterate_over_regset_sections.
14323 * arm-nbsd-tdep.h: New file.
14325 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14327 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14330 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14332 * configure: Re-generate.
14334 2020-03-11 Tom Tromey <tromey@adacore.com>
14336 * ada-typeprint.c (print_choices): Fix comment.
14338 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14340 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14341 previous item in the list, when the list has no items.
14343 2020-03-11 Tom de Vries <tdevries@suse.de>
14345 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14346 PROP_LOCLIST handling code.
14348 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14350 * buildsym-legacy.c (record_line): Pass extra parameter to
14352 * buildsym.c (buildsym_compunit::record_line): Take an extra
14353 parameter, reduce duplication in the line table, and record the
14354 is_stmt flag in the line table.
14355 * buildsym.h (buildsym_compunit::record_line): Add extra
14357 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14358 non-statement lines.
14359 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14360 this to the symtab builder.
14361 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14362 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14363 through to dwarf_record_line_1.
14364 * infrun.c (process_event_stop_test): When stepping, don't stop at
14365 a non-statement instruction, and only refresh the step info when
14366 we land in the middle of a line's range. Also add an extra
14368 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14370 * record-btrace.c (btrace_find_line_range): Only record lines
14371 marked as is-statement.
14372 * stack.c (frame_show_address): Show the frame address if we are
14373 in a non-statement sal.
14374 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14375 (maintenance_print_one_line_table): Print a header for the is_stmt
14376 column, and include is_stmt information in the output.
14377 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14378 preference to non-statements.
14379 (find_pcs_for_symtab_line): Prefer is-statement entries.
14380 (find_line_common): Likewise.
14381 * symtab.h (struct linetable_entry): Add is_stmt field.
14382 (struct symtab_and_line): Likewise.
14383 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14384 arranging the line table.
14386 2020-03-07 Tom de Vries <tdevries@suse.de>
14388 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14391 2020-03-07 Tom Tromey <tom@tromey.com>
14393 * valops.c (value_literal_complex): Remove obsolete comment.
14394 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14397 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14399 * infrun.h: Forward-declare thread_info.
14400 (set_step_info): Add thread_info parameter, add doc.
14401 * infrun.c (set_step_info): Add thread_info parameter, move doc
14403 * infrun.c (process_event_stop_test): Pass thread to
14404 set_step_info call.
14405 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14407 (prepare_one_step): Add thread_info parameter, pass it to
14408 set_step_frame and prepare_one_step (recursive) call.
14409 (step_1): Pass thread to prepare_one_step call.
14410 (step_command_fsm::should_stop): Pass thread to
14412 (until_next_fsm): Pass thread to set_step_frame call.
14413 (finish_command): Pass thread to set_step_info call.
14415 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14417 * windows-tdep.c (windows_solib_create_inferior_hook):
14418 Check if inferior is running.
14420 2020-03-06 Tom de Vries <tdevries@suse.de>
14422 * NEWS: Fix "the the".
14425 2020-03-06 Tom de Vries <tdevries@suse.de>
14427 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14429 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14431 * .dir-locals.el: Add a comment referencing the other copies of
14434 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14436 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14439 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14441 * .gitattributes: New file.
14443 2020-03-04 Tom Tromey <tom@tromey.com>
14445 * symmisc.c (print_symbol_bcache_statistics)
14446 (print_objfile_statistics): Update.
14447 * symfile.c (allocate_symtab): Use intern.
14448 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14449 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14450 macro_cache>: Remove.
14451 <string_cache>: New member.
14452 (struct objfile) <intern>: New methods.
14453 * elfread.c (elf_symtab_read): Use intern.
14454 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14455 (dwarf2_compute_name, dwarf2_physname)
14456 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14458 (guess_partial_die_structure_name): Update.
14459 (partial_die_info::fixup): Intern name.
14460 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14462 (dwarf2_name): Intern name. Update.
14463 * buildsym.c (buildsym_compunit::get_macro_table): Use
14466 2020-03-04 Tom Tromey <tom@tromey.com>
14468 * jit.c (bfd_open_from_target_memory): Make "target" const.
14469 * corefile.c (gnutarget): Now const.
14470 * gdbcore.h (gnutarget): Now const.
14472 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14474 * NEWS: Mention support for WOW64 processes.
14475 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14476 (amd64_windows_segment_register_p): Remove static.
14477 (_initialize_amd64_windows_nat): Update.
14478 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14479 * i386-windows-nat.c (context_offset): Update.
14480 (i386_mappings): Rename and remove static.
14481 (i386_windows_segment_register_p): Remove static.
14482 (_initialize_i386_windows_nat): Update.
14483 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14484 (STATUS_WX86_SINGLE_STEP): New macro.
14485 (EnumProcessModulesEx): New macro.
14486 (Wow64SuspendThread): New macro.
14487 (Wow64GetThreadContext): New macro.
14488 (Wow64SetThreadContext): New macro.
14489 (Wow64GetThreadSelectorEntry): New macro.
14490 (windows_set_context_register_offsets): Add static.
14491 (windows_set_segment_register_p): Likewise.
14492 (windows_add_thread): Adapt for WOW64 processes.
14493 (windows_fetch_one_register): Likewise.
14494 (windows_nat_target::fetch_registers): Likewise.
14495 (windows_store_one_register): Likewise.
14496 (display_selector): Likewise.
14497 (display_selectors): Likewise.
14498 (handle_exception): Likewise.
14499 (windows_continue): Likewise.
14500 (windows_nat_target::resume): Likewise.
14501 (windows_add_all_dlls): Likewise.
14502 (do_initial_windows_stuff): Likewise.
14503 (windows_nat_target::attach): Likewise.
14504 (windows_get_exec_module_filename): Likewise.
14505 (windows_nat_target::create_inferior): Likewise.
14506 (windows_xfer_siginfo): Likewise.
14507 (_initialize_loadable): Initialize Wow64SuspendThread,
14508 Wow64GetThreadContext, Wow64SetThreadContext,
14509 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14510 * windows-nat.h (windows_set_context_register_offsets):
14511 Remove declaration.
14512 (windows_set_segment_register_p): Likewise.
14513 (i386_windows_segment_register_p): Add declaration.
14514 (amd64_windows_segment_register_p): Likewise.
14516 2020-03-04 Luis Machado <luis.machado@linaro.org>
14518 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14519 in "info registers" for AArch64/ARM.
14521 The change caused "info registers" to not print GPR's.
14525 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14527 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14528 when reg->group is empty and reggroup is not.
14530 2020-03-03 Tom Tromey <tromey@adacore.com>
14532 * dwarf2/frame.c (struct dwarf2_frame_cache)
14533 <checked_tailcall_bottom, entry_cfa_sp_offset,
14534 entry_cfa_sp_offset_p>: Remove members.
14535 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14536 (dwarf2_frame_prev_register): Don't call
14537 dwarf2_tailcall_sniffer_first.
14538 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14539 * frame-unwind.c (add_unwinder): New fuction.
14540 (frame_unwind_init): Use it. Add tailcall unwinder.
14542 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14543 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14545 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14546 value should be printed as true.
14548 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14550 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14551 (windows_init_abi): Set and use windows_so_ops.
14553 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14555 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14556 when verifying if dealing with a convenience variable.
14558 2020-03-03 Luis Machado <luis.machado@linaro.org>
14560 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14562 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14564 * infrun.c (gdbarch_supports_displaced_stepping): New.
14565 (use_displaced_stepping): Break up conditions in smaller pieces.
14566 Use gdbarch_supports_displaced_stepping.
14567 (displaced_step_prepare_throw): Use
14568 gdbarch_supports_displaced_stepping.
14570 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14572 * NEWS: Mention new behaviour of the history filename.
14573 * top.c (write_history_p): Add comment.
14574 (show_write_history_p): Add header comment, give a different
14575 message when history writing is on, but the history filename is
14577 (history_filename): Add comment.
14578 (history_filename_empty): New function.
14579 (show_history_filename): Add header comment, give a different
14580 message when the filename is empty.
14581 (init_history): Compare history_filename against nullptr, and only
14582 read history if the filename is not empty.
14583 (set_history_filename): Add header comment, and only make
14584 non-empty filenames absolute.
14585 (init_main): Make the filename argument to 'set history filename'
14588 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14590 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14591 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14592 (fetch_fp_register): Update.
14593 (fetch_fp_regs): Update.
14594 (store_fp_register): Update.
14595 (store_fp_regs): Update.
14596 (arm_netbsd_nat_target::read_description): New function.
14597 (fetch_elfcore_registers): Update.
14599 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14601 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14602 general_thread if the stop reply is missing a thread-id.
14603 (remote_target::process_stop_reply): Use the first non-exited
14604 thread if the target didn't pass a thread-id.
14605 * infrun.c (do_target_wait): Move call to
14606 switch_to_inferior_no_thread to ....
14607 (do_target_wait_1): ... here.
14609 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14611 * debuginfod-support.c: Include defs.h first.
14613 2020-02-28 Tom de Vries <tdevries@suse.de>
14615 * symfile.c (set_initial_language): Use default language for lookup.
14617 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14619 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14620 reader variable, pass `this` to read_cutu_die_from_dwo.
14622 2020-02-27 Aaron Merey <amerey@redhat.com>
14624 * source.c (open_source_file): Check for nullptr when computing
14627 2020-02-27 Tom Tromey <tromey@adacore.com>
14629 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14631 (dwarf2_add_field): Don't update nfields.
14632 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14634 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14636 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14639 2020-02-26 Tom Tromey <tom@tromey.com>
14641 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14642 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14643 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14644 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14647 2020-02-26 Tom Tromey <tom@tromey.com>
14649 * dwarf2/index-write.c (psym_index_map): Change type.
14650 (add_address_entry_worker, write_one_signatured_type)
14651 (recursively_count_psymbols, recursively_write_psymbols)
14652 (class debug_names, psyms_seen_size, write_gdbindex)
14653 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14655 2020-02-26 Aaron Merey <amerey@redhat.com>
14657 * Makefile.in: Handle optional debuginfod support.
14659 * README: Add --with-debuginfod summary.
14660 * config.in: Regenerate.
14661 * configure: Regenerate.
14662 * configure.ac: Handle optional debuginfod support.
14663 * debuginfod-support.c: debuginfod helper functions.
14664 * debuginfod-support.h: Ditto.
14665 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14667 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14668 when a dwz file cannot be found.
14669 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14670 debuginfo file cannot be found.
14671 * source.c (open_source_file): Query debuginfod servers when a
14672 source file cannot be found.
14673 * top.c (print_gdb_configuration): Include
14674 --{with,without}-debuginfod in the output.
14676 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14678 * thread.c (thr_try_catch_cmd): Print thread name.
14680 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14682 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14683 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14684 dwarf2_fetch_die_type_sect_off): Move to...
14685 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14686 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14687 dwarf2_fetch_die_type_sect_off): ... here.
14688 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14689 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14690 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14692 2020-02-26 Tom de Vries <tdevries@suse.de>
14695 * symfile.c (set_initial_language): Exit-early if
14696 language_mode == language_mode_manual.
14698 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14700 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14701 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14702 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14704 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14706 * gdbtypes.c (create_array_type_with_stride): Handle negative
14708 * valarith.c (value_subscripted_rvalue): Likewise.
14710 2020-02-25 Luis Machado <luis.machado@linaro.org>
14712 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14714 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14716 * loc.h (dwarf2_get_die_type): Move to...
14717 * read.h (dwarf2_get_die_type): ... here.
14718 * read.c (dwarf2_get_die_type): Move doc to header.
14720 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14722 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14723 'gnulib/Makefile.in' to the list.
14725 2020-02-24 Tom Tromey <tom@tromey.com>
14727 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14729 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14732 2020-02-24 Tom Tromey <tom@tromey.com>
14734 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14736 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14737 (dw2_do_instantiate_symtab, dw2_get_file_names)
14738 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14740 2020-02-24 Tom Tromey <tom@tromey.com>
14742 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14743 make_scoped_restore.
14744 (dwarf2_psymtab::read_symtab): Don't clear
14745 reading_partial_symbols.
14747 2020-02-24 Tom de Vries <tdevries@suse.de>
14750 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14752 2020-02-24 Tom de Vries <tdevries@suse.de>
14754 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14755 commands layout next/prev/regs.
14757 2020-02-22 Tom Tromey <tom@tromey.com>
14759 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14760 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14762 2020-02-22 Tom Tromey <tom@tromey.com>
14764 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14766 2020-02-22 Tom Tromey <tom@tromey.com>
14768 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14769 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14770 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14771 * tui/tui.c (_initialize_tui): Add usage text.
14773 2020-02-22 Tom Tromey <tom@tromey.com>
14775 * tui/tui-win.c (tui_set_focus_command)
14776 (tui_set_win_height_command): Use error_no_arg.
14777 (_initialize_tui_win): Update help text.
14778 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14780 2020-02-22 Tom Tromey <tom@tromey.com>
14782 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14783 * tui/tui-disasm.h (struct tui_disasm_window)
14784 <display_start_addr>: Declare.
14785 * tui/tui-source.h (struct tui_source_window)
14786 <display_start_addr>: Declare.
14787 * tui/tui-winsource.h (struct tui_source_window_base)
14788 <show_source_line, display_start_addr>: New methods.
14789 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14790 Rename and move to protected section.
14791 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14792 (tui_source_window_base::do_erase_source_content): Update.
14793 (tui_source_window_base::show_source_line): Now a method.
14794 (tui_source_window_base::show_source_content)
14795 (tui_source_window_base::tui_source_window_base)
14796 (tui_source_window_base::rerender)
14797 (tui_source_window_base::refill)
14798 (tui_source_window_base::do_scroll_horizontal)
14799 (tui_source_window_base::set_is_exec_point_at)
14800 (tui_source_window_base::update_breakpoint_info)
14801 (tui_source_window_base::update_exec_info): Update.
14802 * tui/tui-source.c (tui_source_window::set_contents)
14803 (tui_source_window::showing_source_p)
14804 (tui_source_window::do_scroll_vertical)
14805 (tui_source_window::location_matches_p)
14806 (tui_source_window::line_is_displayed): Update.
14807 (tui_source_window::display_start_addr): New method.
14808 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14809 (tui_disasm_window::do_scroll_vertical)
14810 (tui_disasm_window::location_matches_p): Update.
14811 (tui_disasm_window::display_start_addr): New method.
14813 2020-02-22 Tom Tromey <tom@tromey.com>
14815 * NEWS: Add entry for gdb.register_window_type.
14816 * tui/tui-layout.h (window_factory): New typedef.
14817 (tui_register_window): Declare.
14818 * tui/tui-layout.c (saved_tui_windows): New global.
14819 (tui_apply_current_layout): Use it.
14820 (tui_register_window): New function.
14821 * python/python.c (do_start_initialization): Call
14822 gdbpy_initialize_tui.
14823 (python_GdbMethods): Add "register_window_type" function.
14824 * python/python-internal.h (gdbpy_register_tui_window)
14825 (gdbpy_initialize_tui): Declare.
14826 * python/py-tui.c: New file.
14827 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14829 2020-02-22 Tom Tromey <tom@tromey.com>
14831 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14833 2020-02-22 Tom Tromey <tom@tromey.com>
14835 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14836 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14837 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14838 (tui_set_win_focus_to): Move from tui-win.c.
14840 2020-02-22 Tom Tromey <tom@tromey.com>
14842 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14844 (known_window_types): New global.
14845 (tui_get_window_by_name): Reimplement.
14846 (initialize_known_windows): New function.
14847 (validate_window_name): Rewrite.
14848 (_initialize_tui_layout): Call initialize_known_windows.
14850 2020-02-22 Tom Tromey <tom@tromey.com>
14852 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14854 * tui/tui-winsource.h (struct tui_source_window_base)
14855 <tui_source_window_base>: Remove parameter.
14856 * tui/tui-winsource.c
14857 (tui_source_window_base::tui_source_window_base): Remove
14859 (tui_source_window_base::refill): Update.
14860 * tui/tui-stack.h (struct tui_locator_window)
14861 <tui_locator_window>: Update.
14862 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14863 Default the constructor.
14864 * tui/tui-regs.h (struct tui_data_item_window)
14865 <tui_data_item_window>: Default the constructor.
14866 (struct tui_data_window) <tui_data_window>: Likewise.
14867 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14868 Default the constructor.
14869 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14870 Default the constructor.
14872 (struct tui_win_info) <tui_win_info>: Default the constructor.
14873 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14874 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14875 Default the constructor.
14877 2020-02-22 Tom Tromey <tom@tromey.com>
14879 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14880 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14881 * tui/tui-win.c (tui_resize_all): Don't call
14882 tui_delete_invisible_windows.
14883 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14885 (tui_set_layout): Update.
14886 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14887 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14888 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14890 2020-02-22 Tom Tromey <tom@tromey.com>
14892 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14895 2020-02-22 Tom Tromey <tom@tromey.com>
14897 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14899 2020-02-22 Tom Tromey <tom@tromey.com>
14901 * tui/tui-winsource.h (struct tui_source_window_iterator)
14902 <inner_iterator>: New etytypedef.
14903 <tui_source_window_iterator>: Take "end" parameter.
14904 <tui_source_window_iterator>: Take iterator.
14905 <operator*, advance>: Update.
14906 <m_iter>: Change type.
14907 <m_end>: New field.
14908 (struct tui_source_windows) <begin, end>: Update.
14909 * tui/tui-layout.c (tui_windows): New global.
14910 (tui_apply_current_layout): Clear tui_windows.
14911 (tui_layout_window::apply): Update tui_windows.
14912 * tui/tui-data.h (tui_windows): Declare.
14913 (all_tui_windows): Now inline function.
14914 (class tui_window_iterator, struct all_tui_windows): Remove.
14916 2020-02-22 Tom Tromey <tom@tromey.com>
14919 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14920 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14922 (class tui_layout_window) <get_sizes>: Likewise.
14923 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14925 <get_sizes>: Add "height" argument.
14926 <m_vertical>: New field.
14927 * tui/tui-layout.c (tui_layout_split::clone): Update.
14928 (tui_layout_split::get_sizes): Add "height" argument.
14929 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14930 (tui_new_layout_command): Parse "-horizontal".
14931 (_initialize_tui_layout): Update help string.
14932 (tui_layout_split::specification): Add "-horizontal" when needed.
14933 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14935 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14938 2020-02-22 Tom Tromey <tom@tromey.com>
14940 * tui/tui-layout.h (enum tui_adjust_result): New.
14941 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14942 (class tui_layout_window) <adjust_size>: Return
14943 tui_adjust_result. Rewrite.
14944 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14945 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14947 2020-02-22 Tom Tromey <tom@tromey.com>
14949 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14950 parameter and return types.
14951 (class tui_layout_base) <specification>: Add "depth".
14952 (class tui_layout_window) <specification>: Add "depth".
14953 (class tui_layout_split) <specification>: Add "depth".
14954 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14956 (tui_new_layout_command): Parse sub-layouts.
14957 (_initialize_tui_layout): Update help string.
14958 (tui_layout_window::specification): Add "depth".
14959 (add_layout_command): Update.
14961 2020-02-22 Tom Tromey <tom@tromey.com>
14963 * NEWS: Add "tui new-layout" item.
14964 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14965 Add new-layout command to help text.
14966 (validate_window_name): New function.
14967 (tui_new_layout_command): New function.
14968 (_initialize_tui_layout): Register "new-layout".
14969 (tui_layout_window::specification): New method.
14970 (tui_layout_window::specification): New method.
14971 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14973 (class tui_layout_window) <specification>: New method.
14974 (class tui_layout_split) <specification>: New method.
14976 2020-02-22 Tom Tromey <tom@tromey.com>
14978 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14979 * tui/tui-win.c (window_name_completer): Update comment.
14980 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14982 (class tui_layout_window) <replace_window>: Likewise.
14983 (class tui_layout_split) <replace_window>: Likewise.
14984 (tui_set_layout): Don't declare.
14985 (tui_set_initial_layout): Declare function.
14986 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14987 (asm_regs_layout): New globals.
14988 (tui_current_layout, show_layout): Remove.
14989 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14990 (find_layout, tui_apply_layout): New function.
14991 (layout_completer): Remove.
14992 (tui_next_layout): Reimplement.
14993 (tui_next_layout_command): New function.
14994 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14995 (tui_regs_layout): Reimplement.
14996 (tui_regs_layout_command): New function.
14997 (extract_display_start_addr): Rewrite.
14998 (next_layout, prev_layout): Remove.
14999 (tui_layout_window::replace_window): New method.
15000 (tui_layout_split::replace_window): New method.
15001 (destroy_layout): New function.
15002 (layout_list): New global.
15003 (add_layout_command): New function.
15004 (initialize_layouts): Update.
15005 (tui_layout_command): New function.
15006 (_initialize_tui_layout): Install "layout" commands.
15007 * tui/tui-data.h (enum tui_layout_type): Remove.
15008 (tui_current_layout): Don't declare.
15010 2020-02-22 Tom Tromey <tom@tromey.com>
15012 * tui/tui-regs.c (tui_reg_layout): Remove.
15013 (tui_reg_command): Use tui_regs_layout.
15014 * tui/tui-layout.h (tui_reg_command): Declare.
15015 * tui/tui-layout.c (tui_reg_command): New function.
15017 2020-02-22 Tom Tromey <tom@tromey.com>
15019 * tui/tui.c (tui_rl_delete_other_windows): Call
15020 tui_remove_some_windows.
15021 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15023 (class tui_layout_window) <remove_windows>: New method.
15024 (class tui_layout_split) <remove_windows>: Declare.
15025 (tui_remove_some_windows): Declare.
15026 * tui/tui-layout.c (tui_remove_some_windows): New function.
15027 (tui_layout_split::remove_windows): New method.
15029 2020-02-22 Tom Tromey <tom@tromey.com>
15031 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15032 * tui/tui-layout.h (tui_next_layout): Declare.
15033 * tui/tui-layout.c (tui_next_layout): New function.
15035 2020-02-22 Tom Tromey <tom@tromey.com>
15037 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15038 correct coordinates.
15040 2020-02-22 Tom Tromey <tom@tromey.com>
15042 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15043 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15046 2020-02-22 Tom Tromey <tom@tromey.com>
15048 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15049 TUI_DISASM_WIN, not tui_win_list.
15051 2020-02-22 Tom Tromey <tom@tromey.com>
15053 * valprint.c (generic_val_print_enum_1)
15054 (val_print_type_code_flags): Style member names.
15055 * rust-lang.c (val_print_struct, rust_print_enum)
15056 (rust_print_struct_def, rust_internal_print_type): Style member
15058 * p-valprint.c (pascal_object_print_value_fields): Style member
15059 names. Only call fprintf_symbol_filtered for static members.
15060 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15061 * f-valprint.c (f_val_print): Style member names.
15062 * f-typeprint.c (f_type_print_base): Style member names.
15063 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15064 call fprintf_symbol_filtered for static members.
15065 (cp_print_class_member): Style member names.
15066 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15068 * ada-valprint.c (ada_print_scalar): Style enum names.
15069 (ada_val_print_enum): Likewise.
15070 * ada-typeprint.c (print_enum_type): Style enum names.
15072 2020-02-21 Tom Tromey <tom@tromey.com>
15074 * psympriv.h (struct partial_symtab): Update comment.
15076 2020-02-21 Tom Tromey <tromey@adacore.com>
15078 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15081 2020-02-21 Tom de Vries <tdevries@suse.de>
15084 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15085 if dependencies[i]->user != NULL.
15087 2020-02-21 Ali Tamur <tamur@google.com>
15089 * dwarf2/read.c (dwarf2_name): Add null check.
15091 2020-02-20 Tom Tromey <tom@tromey.com>
15093 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15094 ">=", in binary search.
15095 (dwarf2_find_containing_comp_unit): New overload.
15096 (run_test): New self-test.
15097 (_initialize_dwarf2_read): Register new test.
15099 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15101 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15102 * riscv-tdep.h: Likewise.
15103 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15105 * features/riscv/64bit-csr.xml: Regenerated.
15107 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15108 Tom Tromey <tom@tromey.com>
15110 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15111 of 'fputc_unfiltered'.
15112 (putchar_unfiltered): Call 'fputc_unfiltered'.
15113 (fputc_unfiltered): Call 'fputs_unfiltered'.
15115 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15117 * config.in: Regenerate.
15118 * configure: Regenerate.
15119 * configure.ac: Add --with-python-libdir option.
15120 * main.c: Use WITH_PYTHON_LIBDIR.
15122 2020-02-19 Tom Tromey <tom@tromey.com>
15124 * symtab.c (general_symbol_info::compute_and_set_names): Use
15125 obstack_strndup. Simplify call to symbol_set_demangled_name.
15127 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15129 * dwarf2/read.c (allocate_signatured_type_table,
15130 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15131 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15132 Remove objfile parameter, update all callers.
15134 2020-02-19 Doug Evans <dje@google.com>
15137 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15138 rust_enum_variant calculation.
15140 2020-02-19 Tom Tromey <tromey@adacore.com>
15142 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15144 2020-02-19 Tom Tromey <tromey@adacore.com>
15146 * ada-lang.c (cache_symbol): Use obstack_strdup.
15148 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15150 * configure: Regenerate.
15152 2020-02-19 Tom Tromey <tromey@adacore.com>
15154 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15157 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15159 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15161 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15163 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15164 if GDBSERVER is not defined.
15165 (riscv_tdesc_cache): Likewise, also store const target_desc.
15166 (STATIC_IN_GDB): Define.
15167 (riscv_create_target_description): Update declaration with
15169 (riscv_lookup_target_description): New function, only define if
15170 GDBSERVER is not defined.
15171 * arch/riscv.h (riscv_create_target_description): Declare only
15172 when GDBSERVER is defined.
15173 (riscv_lookup_target_description): New declaration when GDBSERVER
15175 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15176 (riscv_linux_read_features): ...this, and return
15177 riscv_gdbarch_features instead of target_desc.
15178 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15179 (riscv_linux_read_description): Rename to...
15180 (riscv_linux_read_features): ...this.
15181 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15182 Update to use riscv_gdbarch_features and
15183 riscv_lookup_target_description.
15184 * riscv-tdep.c (riscv_find_default_target_description): Use
15185 riscv_lookup_target_description instead of
15186 riscv_create_target_description.
15188 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15190 * valprint.c (generic_val_print_enum_1): When printing a flag
15191 enum with value 0 and there is no enumerator with value 0, print
15192 just "0" instead of "(unknown: 0x0)".
15194 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15196 * valprint.c (generic_val_print_enum_1): Print unknown part of
15199 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15201 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15202 flag enums to contain duplicate enumerators.
15203 * valprint.c (generic_val_print_enum_1): Update comment.
15205 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15207 * dwarf2/read.c: Include "count-one-bits.h".
15208 (update_enumeration_type_from_children): If an enumerator has
15209 multiple bits set, don't treat the enumeration as a "flag enum".
15210 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15211 of flag enums have 0 or 1 bit set.
15213 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15215 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15217 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15218 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15219 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15220 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15221 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15223 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15225 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15227 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15229 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15230 displaced_step_closure_up.
15231 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15232 (struct displaced_step_closure_up):
15233 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15234 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15235 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15237 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15238 * gdbarch.c, gdbarch.h: Re-generate.
15239 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15240 displaced_step_closure_up.
15241 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15242 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15243 * infrun.h (displaced_step_closure_up): New type alias.
15244 (struct displaced_step_inferior_state) <step_closure>: Change
15245 type to displaced_step_closure_up.
15246 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15247 displaced_step_closure_up.
15248 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15250 2020-02-14 Tom Tromey <tom@tromey.com>
15252 * minidebug.c (gnu_debug_key): New global.
15253 (find_separate_debug_file_in_section): Use it.
15255 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15257 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15259 * gdbarch.c: Re-generate.
15260 * gdbarch.h: Re-generate.
15261 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15263 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15264 type to std::unique_ptr.
15265 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15266 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15267 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15268 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15269 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15270 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15271 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15272 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15273 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15275 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15277 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15279 (displaced_step_clear): Rename to...
15280 (displaced_step_reset): ... this. Just call displaced->reset ().
15281 (displaced_step_clear_cleanup): Rename to...
15282 (displaced_step_reset_cleanup): ... this.
15283 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15284 (displaced_step_fixup): Likewise.
15285 (resume_1): Likewise.
15286 (handle_inferior_event): Restore child's memory before calling
15287 displaced_step_fixup on the parent.
15288 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15289 to std::unique_ptr.
15290 <step_closure>: Change type to std::unique_ptr.
15292 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15294 * arm-tdep.c: Include count-one-bits.h.
15295 (cleanup_block_store_pc): Use count_one_bits.
15296 (cleanup_block_load_pc): Use count_one_bits.
15297 (arm_copy_block_xfer): Use count_one_bits.
15298 (thumb2_copy_block_xfer): Use count_one_bits.
15299 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15300 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15301 (thumb_get_next_pcs_raw): Use count_one_bits.
15302 (arm_get_next_pcs_raw): Use count_one_bits_l.
15303 * arch/arm.c (bitcount): Remove.
15304 * arch/arm.h (bitcount): Remove.
15306 2020-02-14 Tom Tromey <tromey@adacore.com>
15308 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15310 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15311 * dwarf2/loc.c (call_site_find_chain_1): Return
15312 unique_xmalloc_ptr.
15313 (call_site_find_chain): Likewise.
15315 2020-02-14 Richard Biener <rguenther@suse.de>
15317 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15318 on expression with division operators.
15320 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15322 * MAINTAINERS (Write After Approval): Adding myself.
15324 2020-02-12 Tom Tromey <tom@tromey.com>
15326 * event-loop.c (event_data, gdb_event, event_handler_func):
15329 2020-02-12 Tom Tromey <tom@tromey.com>
15331 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15332 (dwarf2_frame_objfile_data): Add comment.
15333 (find_comp_unit, set_comp_unit): New functions.
15334 (dwarf2_frame_find_fde): Use find_comp_unit.
15335 (dwarf2_build_frame_info): Use set_comp_unit.
15337 2020-02-12 Tom Tromey <tom@tromey.com>
15339 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15340 (comp_unit): Don't initialize objfile.
15341 (execute_cfa_program): Add text_offset parameter.
15342 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15343 (dwarf2_frame_cache): Update.
15344 (dwarf2_build_frame_info): Don't set "objfile" member.
15346 2020-02-12 Tom Tromey <tom@tromey.com>
15348 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15349 (decode_frame_entry): Likewise.
15350 (dwarf2_build_frame_info): Update.
15352 2020-02-12 Tom Tromey <tom@tromey.com>
15354 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15355 (decode_frame_entry_1): Use the comp_unit obstack.
15357 2020-02-12 Tom Tromey <tom@tromey.com>
15359 * dwarf2/frame.c (struct comp_unit): Add initializers and
15361 (dwarf2_frame_objfile_data): Store a comp_unit.
15362 (dwarf2_frame_find_fde): Update.
15363 (dwarf2_build_frame_info): Use "new".
15365 2020-02-12 Tom Tromey <tom@tromey.com>
15367 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15368 (dwarf2_fde_table): Typedef for std::vector.
15369 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15370 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15371 (decode_frame_entry): Update.
15372 (dwarf2_build_frame_info): Use "new".
15374 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15376 * arm-tdep.c (arm_gdbarch_init): Update.
15377 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15378 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15379 have_neon, is_m>: Change to bool.
15381 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15383 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15385 2020-02-12 Tom Tromey <tom@tromey.com>
15387 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15389 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15391 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15392 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15394 2020-02-11 Tom Tromey <tom@tromey.com>
15396 * psymtab.h: Update comment.
15398 2020-02-11 Tom Tromey <tom@tromey.com>
15400 * gdb_obstack.h (struct auto_obstack): Use
15401 DISABLE_COPY_AND_ASSIGN.
15403 2020-02-11 Tom Tromey <tom@tromey.com>
15405 * dwarf2/frame.h (struct objfile): Don't forward declare.
15407 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15409 * cris-tdep.c (cris_supply_gregset): Change signature to match
15410 what struct regset expects.
15411 (cris_regset): New struct.
15412 (fetch_core_registers): Remove.
15413 (cris_iterate_over_regset_sections): New function.
15414 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15415 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15417 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15419 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15422 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15424 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15426 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15428 * configure: Re-generate.
15430 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15432 * configure: Re-generate.
15434 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15436 * acinclude: Update warning.m4 path.
15437 * warning.m4: Move to gdbsupport.
15439 2020-02-11 Tom Tromey <tromey@adacore.com>
15441 * remote.c (remote_console_output): Update.
15442 * printcmd.c (printf_command): Update.
15443 * event-loop.c (gdb_wait_for_event): Update.
15444 * linux-nat.c (sigchld_handler): Update.
15445 * remote-sim.c (gdb_os_write_stdout): Update.
15446 (gdb_os_flush_stdout): Update.
15447 (gdb_os_flush_stderr): Update.
15448 (gdb_os_write_stderr): Update.
15449 * exceptions.c (print_exception): Update.
15450 * remote-fileio.c (remote_fileio_func_read): Update.
15451 (remote_fileio_func_write): Update.
15452 * tui/tui.c (tui_enable): Update.
15453 * tui/tui-interp.c (tui_interp::init): Update.
15454 * utils.c (init_page_info): Update.
15455 (putchar_unfiltered, fputc_unfiltered): Update.
15456 (gdb_flush): Update.
15457 (emit_style_escape): Update.
15458 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15459 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15460 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15461 (stderr_file::write): Update.
15462 (stderr_file::puts): Update.
15463 * ui-file.h (ui_file_isatty, ui_file_write)
15464 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15465 (ui_file_puts): Don't declare.
15467 2020-02-10 Tom de Vries <tdevries@suse.de>
15469 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15470 sentinel to char *.
15472 2020-02-09 Tom de Vries <tdevries@suse.de>
15474 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15475 filename if it matches "<artificial>".
15477 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15479 * windows-tdep.c (struct enum_value_name): New struct.
15480 (create_enum): New function.
15481 (windows_get_siginfo_type): Create and use enum types.
15483 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15485 * NEWS: Mention $_siginfo support for Windows.
15486 * windows-nat.c (handle_exception): Set siginfo_er.
15487 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15488 (windows_xfer_siginfo): New function.
15489 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15490 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15491 (init_windows_gdbarch_data): New function.
15492 (get_windows_gdbarch_data): New function.
15493 (windows_get_siginfo_type): New function.
15494 (windows_init_abi): Register windows_get_siginfo_type.
15495 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15497 2020-02-08 Tom Tromey <tom@tromey.com>
15499 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15500 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15501 <keep>: Declare method.
15502 <m_keep>: Remove member.
15503 <~cutu_reader>: Remove.
15504 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15505 (cutu_reader::cutu_reader): Update.
15506 (cutu_reader::keep): Rename from ~cutu_reader.
15507 (process_psymtab_comp_unit, build_type_psymtabs_1)
15508 (process_skeletonless_type_unit, load_partial_comp_unit)
15509 (load_full_comp_unit, dwarf2_read_addr_index)
15510 (read_signatured_type): Update.
15512 2020-02-08 Tom Tromey <tom@tromey.com>
15514 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15515 "want_partial_unit" parameter.
15516 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15517 Inline check for DW_TAG_partial_unit.
15518 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15520 2020-02-08 Tom Tromey <tom@tromey.com>
15522 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15524 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15527 2020-02-08 Tom Tromey <tom@tromey.com>
15529 * dwarf2/read.c (read_address): Move to comp-unit.c.
15530 (dwarf2_rnglists_process, dwarf2_ranges_process)
15531 (read_attribute_value, dwarf_decode_lines_1)
15532 (var_decode_location, decode_locdesc): Update.
15533 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15534 read.c. Remove "cu" parameter.
15535 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15538 2020-02-08 Tom Tromey <tom@tromey.com>
15540 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15541 (read_indirect_line_string): Update.
15542 * dwarf2/comp-unit.c (read_offset): Remove.
15543 (read_comp_unit_head): Update.
15544 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15546 (read_offset): Don't declare.
15548 2020-02-08 Tom Tromey <tom@tromey.com>
15550 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15551 * dwarf2/read.c (struct comp_unit_head): Move to
15552 dwarf2/comp-unit.h.
15553 (enum class rcuh_kind): Move to comp-unit.h.
15554 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15555 (read_comp_unit_head, error_check_comp_unit_head)
15556 (read_and_check_comp_unit_head): Move to comp-unit.c.
15557 (read_offset, dwarf_unit_type_name): Likewise.
15558 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15559 (cutu_reader::cutu_reader, read_call_site_scope)
15560 (find_partial_die, follow_die_offset): Update.
15561 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15563 2020-02-08 Tom Tromey <tom@tromey.com>
15565 * dwarf2/read.c (read_offset_1): Move to leb.c.
15566 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15567 (dwarf_decode_macro_bytes): Update.
15568 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15569 * dwarf2/leb.h (read_offset): Declare.
15571 2020-02-08 Tom Tromey <tom@tromey.com>
15573 * dwarf2/read.c (dwarf2_section_size): Remove.
15574 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15576 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15578 2020-02-08 Tom Tromey <tom@tromey.com>
15580 * dwarf2/read.c (read_initial_length): Move to leb.c.
15581 * dwarf2/leb.h (read_initial_length): Declare.
15582 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15583 handle_nonstd parameter.
15584 * dwarf2/frame.c (read_initial_length): Remove.
15585 (decode_frame_entry_1): Update.
15587 2020-02-08 Tom Tromey <tom@tromey.com>
15589 * dwarf2/loc.c (dwarf2_find_location_expression)
15590 (dwarf_evaluate_loc_desc::get_tls_address)
15591 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15592 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15593 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15594 (dwarf2_compile_property_to_c)
15595 (dwarf2_loc_desc_get_symbol_read_needs)
15596 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15597 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15598 (loclist_describe_location, loclist_tracepoint_var_ref)
15599 (loclist_generate_c_location): Update.
15600 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15601 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15602 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15603 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15604 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15605 (dwarf2_per_cu_data::addr_size)
15606 (dwarf2_per_cu_data::ref_addr_size)
15607 (dwarf2_per_cu_data::text_offset)
15608 (dwarf2_per_cu_data::addr_type): Now methods.
15609 (per_cu_header_read_in): Make per_cu "const".
15610 (dwarf2_version): Remove.
15611 (dwarf2_per_cu_data::int_type): Now a method.
15612 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15613 (set_die_type, read_array_type, read_subrange_index_type)
15614 (read_tag_string_type, read_subrange_type): Update.
15615 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15616 offset_size, ref_addr_size, text_offset, addr_type, version,
15617 objfile, int_type, addr_sized_int_type>: Declare methods.
15619 2020-02-08 Tom Tromey <tom@tromey.com>
15621 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15624 2020-02-08 Tom Tromey <tom@tromey.com>
15626 * dwarf2/read.h (dwarf_line_debug): Declare.
15627 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15628 * dwarf2/read.c: Move line_header code to new files.
15629 (dwarf_line_debug): No longer static.
15630 * dwarf2/line-header.c: New file.
15631 * dwarf2/line-header.h: New file.
15633 2020-02-08 Tom Tromey <tom@tromey.com>
15635 * dwarf2/read.c (struct line_header) <file_full_name,
15636 file_file_name>: Return unique_xmalloc_ptr.
15637 (line_header::file_file_name): Update.
15638 (line_header::file_full_name): Update.
15639 (dw2_get_file_names_reader): Update.
15640 (macro_start_file): Update.
15642 2020-02-08 Tom Tromey <tom@tromey.com>
15644 * dwarf2/read.c (struct line_header) <file_full_name,
15645 file_file_name>: Declare methods.
15646 (dw2_get_file_names_reader): Update.
15647 (file_file_name): Now a method.
15648 (file_full_name): Likewise.
15649 (macro_start_file): Update.
15651 2020-02-08 Tom Tromey <tom@tromey.com>
15653 * dwarf2/read.c (dwarf_always_disassemble)
15654 (show_dwarf_always_disassemble): Move to loc.c.
15655 (_initialize_dwarf2_read): Move "always-disassemble" registration
15657 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15658 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15660 (show_dwarf_always_disassemble): Move from read.c.
15661 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15663 2020-02-08 Tom Tromey <tom@tromey.com>
15665 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15666 (create_quick_file_names_table): Return htab_up.
15667 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15669 * dwarf2/read.h (struct dwarf2_per_objfile)
15670 <quick_file_names_table>: Now htab_up.
15672 2020-02-08 Tom Tromey <tom@tromey.com>
15674 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15676 2020-02-08 Tom Tromey <tom@tromey.com>
15678 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15680 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15681 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15682 (abbrev_table::abbrev_table): No longer inline.
15683 (ABBREV_HASH_SIZE): Remove.
15684 (abbrev_table::m_abbrevs): Now an htab_up.
15686 2020-02-08 Tom Tromey <tom@tromey.com>
15688 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15689 (cutu_reader): Update.
15690 (build_type_psymtabs_1): Update.
15691 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15692 (abbrev_table::alloc_abbrev): Update.
15693 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15694 (abbrev_table::read): New static method, renamed from
15695 abbrev_table_read_table.
15696 (abbrev_table::alloc_abbrev)
15697 (abbrev_table::add_abbrev): Now private.
15698 (abbrev_table::abbrev_table): Now private.
15699 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15701 2020-02-08 Tom Tromey <tom@tromey.com>
15703 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15704 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15707 2020-02-08 Tom Tromey <tom@tromey.com>
15709 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15711 (lookup_dwo_unit_in_dwp): Update.
15712 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15715 2020-02-08 Tom Tromey <tom@tromey.com>
15717 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15720 2020-02-08 Tom Tromey <tom@tromey.com>
15722 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15724 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15725 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15726 Change type to htab_up.
15728 2020-02-08 Tom Tromey <tom@tromey.com>
15730 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15731 htab_up. Don't allocate on obstack.
15732 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15733 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15734 Change type to htab_up.
15736 2020-02-08 Tom Tromey <tom@tromey.com>
15738 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15739 Change type to htab_up.
15740 * dwarf2/read.c (create_signatured_type_table_from_index)
15741 (create_signatured_type_table_from_debug_names)
15742 (create_all_type_units, add_type_unit)
15743 (lookup_dwo_signatured_type, lookup_signatured_type)
15744 (process_skeletonless_type_unit): Update.
15745 (create_debug_type_hash_table, create_debug_types_hash_table):
15746 Change type of types_htab.
15747 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15748 htab_up. Don't allocate on obstack.
15749 (create_cus_hash_table): Change type of cus_htab parameter.
15750 (struct dwo_file) <cus, tus>: Now htab_up.
15751 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15752 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15753 (queue_and_load_all_dwo_tus): Update.
15754 * dwarf2/index-write.c (write_gdbindex): Update.
15755 (write_debug_names): Update.
15757 2020-02-08 Tom Tromey <tom@tromey.com>
15759 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15760 dwarf2/read.c. Remove "next" member. Add constructor ntad
15762 (struct dwarf2_per_objfile) <queue>: New member.
15763 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15765 (dwarf2_queue, dwarf2_queue_tail): Remove.
15766 (class dwarf2_queue_guard): Add parameter to constructor. Use
15767 DISABLE_COPY_AND_ASSIGN.
15768 <m_per_objfile>: New member.
15769 <~dwarf2_queue_guard>: Rewrite.
15770 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15772 (~dwarf2_queue_item): New.
15774 2020-02-08 Tom Tromey <tom@tromey.com>
15776 * dwarf2/read.c (struct die_info) <has_children>: New member.
15777 (dw2_get_file_names_reader): Remove has_children.
15778 (dw2_get_file_names): Update.
15779 (read_cutu_die_from_dwo): Remove has_children.
15780 (cutu_reader::init_tu_and_read_dwo_dies)
15781 (cutu_reader::cutu_reader): Update.
15782 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15783 Remove has_children.
15784 (build_type_psymtabs_1, process_skeletonless_type_unit)
15785 (load_partial_comp_unit, load_full_comp_unit): Update.
15786 (create_dwo_cu_reader): Remove has_children.
15787 (create_cus_hash_table, read_die_and_children): Update.
15788 (read_full_die_1,read_full_die): Remove has_children.
15789 (read_signatured_type): Update.
15790 (class cutu_reader) <has_children>: Remove.
15792 2020-02-08 Tom Tromey <tom@tromey.com>
15794 * dwarf2/expr.c: Rename from dwarf2expr.c.
15795 * dwarf2/expr.h: Rename from dwarf2expr.h.
15796 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15797 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15798 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15799 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15800 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15801 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15802 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15803 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15804 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15805 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15806 * dwarf2/loc.c: Rename from dwarf2loc.c.
15807 * dwarf2/loc.h: Rename from dwarf2loc.h.
15808 * dwarf2/read.c: Rename from dwarf2read.c.
15809 * dwarf2/read.h: Rename from dwarf2read.h.
15810 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15811 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15812 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15813 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15814 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15815 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15816 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15817 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15818 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15819 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15820 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15821 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15822 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15824 * Makefile.in (COMMON_SFILES): Update.
15825 (HFILES_NO_SRCDIR): Update.
15827 2020-02-08 Tom Tromey <tom@tromey.com>
15829 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15830 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15832 2020-02-08 Tom Tromey <tom@tromey.com>
15834 * dwarf2read.h (struct die_info): Don't declare.
15836 2020-02-08 Tom Tromey <tom@tromey.com>
15838 * dwarf2read.h (die_info_ptr): Remove typedef.
15840 2020-02-08 Tom Tromey <tom@tromey.com>
15842 * dwarf2read.c (read_call_site_scope)
15843 (handle_data_member_location, dwarf2_add_member_fn)
15844 (mark_common_block_symbol_computed, read_common_block)
15845 (attr_to_dynamic_prop, partial_die_info::read)
15846 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15847 (dwarf2_symbol_mark_computed, set_die_type): Update.
15848 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15850 (attr_form_is_block): Don't declare.
15851 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15853 2020-02-08 Tom Tromey <tom@tromey.com>
15855 * dwarf2read.c (dwarf2_find_base_address, )
15856 (read_call_site_scope, rust_containing_type)
15857 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15858 (handle_data_member_location, dwarf2_add_member_fn)
15859 (get_alignment, read_structure_type, process_structure_scope)
15860 (mark_common_block_symbol_computed, read_common_block)
15861 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15862 (partial_die_info::read, read_attribute_value, new_symbol)
15863 (lookup_die_type, dwarf2_get_ref_die_offset)
15864 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15865 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15866 (dwarf2_symbol_mark_computed): Update.
15867 * dwarf2/attribute.h (struct attribute) <value_as_address,
15868 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15870 (value_as_address, attr_form_is_section_offset)
15871 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15872 * dwarf2/attribute.c (attribute::value_as_address)
15873 (attribute::form_is_section_offset, attribute::form_is_constant)
15874 (attribute::form_is_ref): Now methods.
15876 2020-02-08 Tom Tromey <tom@tromey.com>
15878 * dwarf2read.c (struct attribute, DW_STRING)
15879 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15880 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15881 (attr_form_is_block, attr_form_is_section_offset)
15882 (attr_form_is_constant, attr_form_is_ref): Move.
15883 * dwarf2/attribute.h: New file.
15884 * dwarf2/attribute.c: New file, from dwarf2read.c.
15885 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15887 2020-02-08 Tom Tromey <tom@tromey.com>
15889 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15890 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15892 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15893 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15894 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15896 * dwarf2/abbrev.h: New file.
15897 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15898 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15900 2020-02-08 Tom Tromey <tom@tromey.com>
15902 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15903 (dwarf2_section_size, dwarf2_get_section_info)
15904 (create_signatured_type_table_from_debug_names)
15905 (create_addrmap_from_aranges, read_debug_names_from_section)
15906 (get_gdb_index_contents_from_section, read_comp_unit_head)
15907 (error_check_comp_unit_head, read_abbrev_offset)
15908 (create_debug_type_hash_table, init_cu_die_reader)
15909 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15910 (read_comp_units_from_section, create_cus_hash_table)
15911 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15912 (create_dwp_v2_section, dwarf2_rnglists_process)
15913 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15914 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15915 (read_indirect_string_from_dwz, read_addr_index_1)
15916 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15917 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15918 (fill_in_loclist_baton): Update.
15919 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15920 get_containing_section, get_bfd_owner, get_bfd_section,
15921 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15922 (dwarf2_read_section, get_section_name, get_section_file_name)
15923 (get_containing_section, get_section_bfd_owner)
15924 (get_section_bfd_section, get_section_name, get_section_file_name)
15925 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15927 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15928 (dwarf2_section_info::get_bfd_owner)
15929 (dwarf2_section_info::get_bfd_section)
15930 (dwarf2_section_info::get_name)
15931 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15932 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15933 (dwarf2_section_info::read): Now methods.
15934 * dwarf-index-write.c (class debug_names): Update.
15936 2020-02-08 Tom Tromey <tom@tromey.com>
15938 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15939 Move to dwarf2/section.h.
15940 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15941 (get_section_bfd_section, get_section_name)
15942 (get_section_file_name, get_section_id, get_section_flags)
15943 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15945 * dwarf2/section.h: New file.
15946 * dwarf2/section.c: New file, from dwarf2read.c.
15947 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15949 2020-02-08 Tom Tromey <tom@tromey.com>
15951 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15952 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15953 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15954 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15955 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15956 * dwarf2/leb.h: New file, from dwarf2read.c.
15957 * dwarf2/leb.c: New file, from dwarf2read.c.
15958 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15960 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15961 (COMMON_SFILES): Add dwarf2/leb.c.
15963 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15967 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15970 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15971 * gdb/remote.c (remote_console_output): Update.
15972 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15973 (ui_file_puts): ...this.
15974 * gdb/ui-file.h (ui_file_puts): Add declaration.
15975 * gdb/utils.c (emit_style_escape): Update.
15976 (flush_wrap_buffer): Update.
15977 (fputs_maybe_filtered): Update.
15978 (fputs_unfiltered): Add function.
15980 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15982 * gdb/event-loop.c (gdb_wait_for_event): Update.
15983 * gdb/printcmd.c (printf_command): Update.
15984 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15985 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15986 (gdb_os_flush_stderr): Update.
15987 * gdb/remote.c (remote_console_output): Update.
15988 * gdb/ui-file.c (gdb_flush): Rename to...
15989 (ui_file_flush): ...this.
15990 (stderr_file::write): Update.
15991 (stderr_file::puts): Update.
15992 * gdb/ui-file.h (gdb_flush): Rename to...
15993 (ui_file_flush): ...this.
15994 * gdb/utils.c (gdb_flush): Add function.
15995 * gdb/utils.h (gdb_flush): Add declaration.
15997 2020-02-07 Tom Tromey <tromey@adacore.com>
15999 PR breakpoints/24915:
16000 * source.c (find_and_open_source): Do not check basenames_may_differ.
16002 2020-02-07 Tom Tromey <tom@tromey.com>
16004 * README: Update gdbserver documentation.
16005 * gdbserver: Move to top level.
16006 * configure.tgt (build_gdbserver): Remove.
16007 * configure.ac: Remove --enable-gdbserver.
16008 * configure: Rebuild.
16009 * Makefile.in (distclean): Don't mention gdbserver.
16011 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16013 * source-cache.c (source_cache::ensure): Surround
16014 get_plain_source_lines with a try/catch.
16015 (source_cache::get_line_charpos): Get rid of try/catch
16016 and only check for the return value of "ensure".
16017 * tui/tui-source.c (tui_source_window::set_contents):
16018 Simplify "nlines" calculation.
16020 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16022 * MAINTAINERS (Write After Approval): Add myself.
16024 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16026 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16029 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16031 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16033 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
16035 * nat/riscv-linux-tdesc.h: New file.
16036 * nat/riscv-linux-tdesc.c: New file, taking code from...
16037 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16039 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16042 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16044 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16045 we don't set the fake simulator ptid to the null_ptid.
16047 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
16049 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16050 * gdbthread.h (class thread_info) <resumed>: Likewise.
16051 * infrun.c (resume_1): Likewise.
16052 (proceed): Likewise.
16053 (infrun_thread_stop_requested): Likewise.
16054 (stop_all_threads): Likewise.
16055 (handle_inferior_event): Likewise.
16056 (restart_threads): Likewise.
16057 (finish_step_over): Likewise.
16058 (keep_going_stepped_thread): Likewise.
16059 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16060 (linux_handle_extended_wait): Likewise.
16061 * record-btrace.c (get_thread_current_frame_id): Likewise.
16062 * record-full.c (record_full_wait_1): Likewise.
16063 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16064 * target.c (target_resume): Likewise.
16065 * thread.c (set_running_thread): Likewise.
16067 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16069 * f-valprint.c (f77_print_array_1): Changed datatype of index
16070 variable to LONGEST from int to enable it to contain bound
16073 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
16075 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16076 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16077 offsets according to FLEN determined.
16078 (riscv_linux_nat_target::read_description): Determine FLEN
16080 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16081 according to FLEN determined.
16082 (riscv_linux_nat_target::store_registers): Likewise.
16084 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16086 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16087 when reg->group is empty and reggroup is not.
16089 2020-01-31 Tom Tromey <tromey@adacore.com>
16091 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16092 Call beneath target's mourn_inferior after unpushing.
16094 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16097 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16098 have enough lines to fill the screen, still return the lowest
16101 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16103 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16104 '-', '<', and '>' commands.
16106 2020-01-29 Pedro Alves <palves@redhat.com>
16107 Sergio Durigan Junior <sergiodj@redhat.com>
16109 * infcmd.c (construct_inferior_arguments): Assert that
16110 'argc' is greater than 0.
16112 2020-01-29 Luis Machado <luis.machado@linaro.org>
16114 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16115 (BRK_INSN_MASK): Define to 0xd4200000.
16116 (aarch64_program_breakpoint_here_p): New function.
16117 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16118 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16120 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16122 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16123 call gdbarch_program_breakpoint_here_p.
16124 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16125 default_program_breakpoint_here_p, changed return type to bool and
16127 * breakpoint.h (program_breakpoint_here): Moved prototype to
16128 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16129 return type to bool.
16130 * gdbarch.c: Regenerate.
16131 * gdbarch.h: Regenerate.
16132 * gdbarch.sh (program_breakpoint_here_p): New method.
16133 * infrun.c (handle_signal_stop): Call
16134 gdbarch_program_breakpoint_here_p.
16136 2020-01-26 Tom Tromey <tom@tromey.com>
16138 * ctfread.c (struct ctf_fp_info): Reindent.
16139 (_initialize_ctfread): Remove.
16141 2020-01-26 Tom Tromey <tom@tromey.com>
16143 * psymtab.c (partial_map_expand_apply)
16144 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16145 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16146 (psym_print_stats, psym_expand_symtabs_for_function)
16147 (psym_map_symbol_filenames, psym_map_matching_symbols)
16148 (psym_expand_symtabs_matching)
16149 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16150 (maintenance_check_psymtabs): Use new methods.
16151 * psympriv.h (struct partial_symtab) <readin_p,
16152 get_compunit_symtab>: New methods.
16153 <readin, compunit_symtab>: Remove members.
16154 (struct standard_psymtab): New.
16155 (struct legacy_psymtab): Derive from standard_psymtab.
16156 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16158 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16160 2020-01-26 Tom Tromey <tom@tromey.com>
16162 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16163 read_dependencies. Add assert.
16164 * psymtab.c (partial_symtab::read_dependencies): New method.
16165 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16167 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16168 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16170 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16173 2020-01-26 Tom Tromey <tom@tromey.com>
16175 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16176 Call expand_psymtab.
16177 (xcoff_read_symtab): Call expand_psymtab.
16178 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16179 legacy_expand_psymtab.
16180 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16182 (struct legacy_psymtab) <expand_psymtab>: Implement.
16183 <legacy_expand_psymtab>: New member.
16184 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16185 (parse_partial_symbols): Set legacy_expand_psymtab.
16186 (psymtab_to_symtab_1): Change argument order. Call
16188 (new_psymtab): Set legacy_expand_psymtab.
16189 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16190 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16192 (dwarf2_psymtab::expand_psymtab): Rename from
16193 psymtab_to_symtab_1. Call expand_psymtab.
16194 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16195 (dbx_end_psymtab): Likewise.
16196 (dbx_psymtab_to_symtab_1): Change argument order. Call
16198 (dbx_read_symtab): Call expand_psymtab.
16199 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16200 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16201 (ctf_psymtab::read_symtab): Call expand_psymtab.
16203 2020-01-26 Tom Tromey <tom@tromey.com>
16205 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16206 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16208 * mdebugread.c (mdebug_read_symtab): Remove prints.
16209 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16211 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16213 2020-01-26 Tom Tromey <tom@tromey.com>
16215 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16216 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16217 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16219 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16220 * psymtab.c (psymtab_to_symtab): Call method.
16221 (dump_psymtab): Update.
16222 * psympriv.h (struct partial_symtab): Add virtual destructor.
16223 <read_symtab>: New method.
16224 (struct legacy_symtab): New.
16225 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16226 (struct pst_map) <pst>: Now a legacy_psymtab.
16227 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16228 (new_psymtab): Use legacy_psymtab.
16229 * dwarf2read.h (struct dwarf2_psymtab): New.
16230 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16231 * dwarf2read.c (dwarf2_create_include_psymtab)
16232 (dwarf2_build_include_psymtabs, create_type_unit_group)
16233 (create_partial_symtab, process_psymtab_comp_unit_reader)
16234 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16235 (set_partial_user): Use dwarf2_psymtab.
16236 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16237 (psymtab_to_symtab_1, process_full_comp_unit)
16238 (process_full_type_unit, dwarf2_ranges_read)
16239 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16240 (dwarf_decode_lines): Use dwarf2_psymtab.
16241 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16242 (add_address_entry_worker, write_one_signatured_type)
16243 (recursively_count_psymbols, recursively_write_psymbols)
16244 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16245 (write_debug_names): Likewise.
16246 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16247 <pst>: Now a legacy_psymtab.
16248 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16249 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16250 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16251 * ctfread.c (struct ctf_psymtab): New.
16252 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16254 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16255 (create_partial_symtab): Return a ctf_psymtab.
16256 (scan_partial_symbols): Update.
16258 2020-01-26 Tom Tromey <tom@tromey.com>
16260 * xcoffread.c (xcoff_start_psymtab): Use new.
16261 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16262 renamed from start_psymtab_common.
16263 * psympriv.h (struct partial_symtab): Add new constructor.
16264 (start_psymtab_common): Don't declare.
16265 * mdebugread.c (parse_partial_symbols): Use new.
16266 * dwarf2read.c (create_partial_symtab): Use new.
16267 * dbxread.c (start_psymtab): Use new.
16268 * ctfread.c (create_partial_symtab): Use new.
16270 2020-01-26 Tom Tromey <tom@tromey.com>
16272 * xcoffread.c (xcoff_end_psymtab): Use new.
16273 * psymtab.c (start_psymtab_common): Use new.
16274 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16276 * psympriv.h (struct partial_symtab): Add parameters to
16277 constructor. Don't inline.
16278 (allocate_psymtab): Don't declare.
16279 * mdebugread.c (new_psymtab): Use new.
16280 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16281 * dbxread.c (dbx_end_psymtab): Use new.
16283 2020-01-26 Tom Tromey <tom@tromey.com>
16285 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16286 allocate_psymtab. Update documentation.
16287 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16288 allocate_psymtab. Do not use new.
16289 (allocate_psymtab): Use new. Update.
16291 2020-01-26 Tom Tromey <tom@tromey.com>
16293 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16294 * psymtab.c (psym_print_stats): Update.
16295 * psympriv.h (struct partial_symtab) <readin,
16296 psymtabs_addrmap_supported, anonymous>: Now bool.
16297 * mdebugread.c (psymtab_to_symtab_1): Update.
16298 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16299 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16300 (process_full_comp_unit, process_full_type_unit): Update.
16301 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16302 * ctfread.c (psymtab_to_symtab): Update.
16304 2020-01-26 Tom Tromey <tom@tromey.com>
16306 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16307 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16308 * psymtab.c (psymtab_storage): Delete psymtabs.
16309 (psymtab_storage::allocate_psymtab): Use new.
16310 (psymtab_storage::discard_psymtab): Use delete.
16311 * psympriv.h (struct partial_symtab): Add constructor and
16314 2020-01-26 Tom Tromey <tom@tromey.com>
16316 * machoread.c: Do not include psympriv.h.
16318 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16320 * NEWS: Mention the new option and the set/show commands.
16322 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16324 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16325 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16326 (validate_exec_file): New variables, enums, functions.
16327 (exec_file_locate_attach, print_section_info): Style the filenames.
16328 (_initialize_exec): Install show_exec_file_mismatch_command and
16329 set_exec_file_mismatch_command.
16330 * gdbcore.h (validate_exec_file): Declare.
16331 * infcmd.c (attach_command): Call validate_exec_file.
16332 * remote.c ( remote_target::remote_add_inferior): Likewise.
16334 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16336 * frame.c (find_frame_sal): Move call to get_next_frame into more
16338 * inline-frame.c (inilne_state) <inline_state>: Update argument
16340 (inilne_state) <skipped_symbol>: Rename to...
16341 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16342 (skip_inline_frames): Build vector of skipped symbols and use this
16343 to reate the inline_state.
16344 (inline_skipped_symbol): Add a comment and some assertions, fetch
16345 skipped symbol from the list.
16347 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16349 * buildsym.c (lte_is_less_than): Delete.
16350 (buildsym_compunit::end_symtab_with_blockvector): Create local
16351 lambda function to sort line table entries, and use
16352 std::stable_sort instead of std::sort.
16353 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16354 markers when looking for a previous line.
16356 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16358 * dwarf2read.c (lnp_state_machine::record_line): Include
16359 end_sequence parameter in debug print out. Record the line if we
16360 are at an end_sequence marker even if it's not the start of a
16362 * symmisc.c (maintenance_print_one_line_table): Print end of
16363 sequence markers with 'END' not '0'.
16365 2020-01-24 Pedro Alves <palves@redhat.com>
16368 * thread.c (scoped_restore_current_thread::restore): Use
16369 switch_to_inferior_no_thread.
16370 * exec.c: Include "progspace-and-thread.h".
16371 (add_target_sections, remove_target_sections):
16372 scoped_restore_current_pspace_and_thread instead of
16373 scoped_restore_current_thread.
16374 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16375 and aspace to the inferior before calling clone_program_space.
16376 Remove stale comment.
16378 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16380 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16381 (arm_netbsd_nat_target::fetch_registers): ...this.
16382 (arm_nbsd_nat_target::store_registers): Rename to...
16383 (arm_netbsd_nat_target::store_registers): ...this.
16385 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16387 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16390 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16392 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16394 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16396 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16397 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16398 the correct replacement (iterate_over_regset_sections).
16399 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16402 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16405 * gdb/python/python.c (execute_gdb_command): Call
16406 async_enable_stdin in catch block.
16408 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16410 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16411 SWITCH_THRU_ALL_UIS.
16413 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16416 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16417 comment, add extra parameter, and update to store previous symbol
16419 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16420 add extra parameter.
16421 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16422 remove unneeded parameter, add try/catch around gdb_print_insn,
16423 rewrite to add items to asm_lines vector.
16424 (tui_find_backward_disassembly_start_address): New function.
16425 (tui_find_disassembly_address): Updated throughout.
16426 (tui_disasm_window::set_contents): Update for changes to
16428 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16429 number of lines to scroll.
16431 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16433 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16434 (SECT_OFF_DATA): Likewise.
16435 (SECT_OFF_RODATA): Likewise.
16436 (SECT_OFF_TEXT): Likewise.
16437 (SECT_OFF_BSS): Likewise.
16438 (struct objfile) <text_section_offset, data_section_offset>: New
16440 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16441 objfile::text_section_offset.
16442 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16443 * coffread.c (coff_symtab_read): Likewise.
16444 (enter_linenos): Likewise.
16445 (process_coff_symbol): Likewise.
16446 * ctfread.c (get_objfile_text_range): Likewise.
16447 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16448 Use objfile::data_section_offset.
16449 * dwarf2-frame.c (execute_cfa_program): Use
16450 objfile::text_section_offset.
16451 (dwarf2_frame_find_fde): Likewise.
16452 * dwarf2read.c (create_addrmap_from_index): Likewise.
16453 (create_addrmap_from_aranges): Likewise.
16454 (dw2_find_pc_sect_compunit_symtab): Likewise.
16455 (process_psymtab_comp_unit_reader): Likewise.
16456 (add_partial_symbol): Likewise.
16457 (add_partial_subprogram): Likewise.
16458 (process_full_comp_unit): Likewise.
16459 (read_file_scope): Likewise.
16460 (read_func_scope): Likewise.
16461 (read_lexical_block_scope): Likewise.
16462 (read_call_site_scope): Likewise.
16463 (dwarf2_rnglists_process): Likewise.
16464 (dwarf2_ranges_process): Likewise.
16465 (dwarf2_ranges_read): Likewise.
16466 (dwarf_decode_lines_1): Likewise.
16467 (new_symbol): Likewise.
16468 (dwarf2_fetch_die_loc_sect_off): Likewise.
16469 (dwarf2_per_cu_text_offset): Likewise.
16470 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16471 * hppa-tdep.c (read_unwind_info): Likewise.
16472 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16473 * psympriv.h (struct partial_symtab): Likewise.
16474 * psymtab.c (find_pc_sect_psymtab): Likewise.
16475 * solib-svr4.c (enable_break): Likewise.
16476 * stap-probe.c (relocate_address): Use
16477 objfile::data_section_offset.
16478 * xcoffread.c (enter_line_range): Use
16479 objfile::text_section_offset.
16480 (read_xcoff_symtab): Likewise.
16482 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16484 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16485 declaration to narrower scopes.
16487 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16489 * darwin-nat.h (struct darwin_exception_msg, enum
16490 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16492 (class darwin_nat_target) <wait_1, check_new_threads,
16493 decode_exception_message, decode_message, stop_inferior,
16494 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16495 * darwin-nat.c (darwin_check_new_threads): Rename to...
16496 (darwin_nat_target::check_new_threads): ... this.
16497 (darwin_suspend_inferior_it): Remove.
16498 (darwin_decode_exception_message): Rename to...
16499 (darwin_nat_target::decode_exception_message): ... this.
16500 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16501 (darwin_decode_message): Rename to...
16502 (darwin_nat_target::decode_message): ... this.
16503 (cancel_breakpoint): Rename to...
16504 (darwin_nat_target::cancel_breakpoint): ... this.
16505 (darwin_wait): Rename to...
16506 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16507 instead of iterate_over_inferiors.
16508 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16509 (darwin_stop_inferior): Rename to...
16510 (darwin_nat_target::stop_inferior): ... this.
16511 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16512 (darwin_init_thread_list): Rename to...
16513 (darwin_nat_target::init_thread_list): ... this.
16514 (darwin_ptrace_him): Rename to...
16515 (darwin_nat_target::ptrace_him): ... this.
16516 (darwin_nat_target::create_inferior): Pass lambda function to
16518 (darwin_nat_target::detach): Call stop_inferior instead of
16519 darwin_stop_inferior.
16520 * fork-inferior.h (fork_inferior): Change init_trace_fun
16521 parameter to gdb::function_view.
16522 * fork-inferior.c (fork_inferior): Likewise.
16524 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16526 * i386-cygwin-tdep.c (core_process_module_section): Update.
16527 * windows-nat.c (struct lm_info_windows): Add text_offset.
16528 (windows_xfer_shared_libraries): Update.
16529 * windows-tdep.c (windows_xfer_shared_library):
16530 Add text_offset_cached argument.
16531 * windows-tdep.h (windows_xfer_shared_library): Update.
16533 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16535 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16537 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16539 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16540 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16541 replace with range-based for.
16542 (gdbsim_interrupt_inferior): Remove.
16543 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16544 with a range-based for. Inline code from
16545 gdbsim_interrupt_inferior.
16547 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16549 * infrun.c (proceed): Fix indentation.
16551 2020-01-21 Tom Tromey <tromey@adacore.com>
16553 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16554 * python/python.c (python_extension_ops): Update.
16555 (gdbpy_colorize): New function.
16556 * python/lib/gdb/__init__.py (colorize): New function.
16557 * extension.h (ext_lang_colorize): Declare.
16558 * extension.c (ext_lang_colorize): New function.
16559 * extension-priv.h (struct extension_language_ops) <colorize>: New
16561 * cli/cli-style.c (_initialize_cli_style): Update help text.
16563 2020-01-21 Luis Machado <luis.machado@linaro.org>
16565 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16566 <cond>: Change type to bool.
16567 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16568 (aarch64_displaced_step_cb): Likewise.
16569 (aarch64_displaced_step_tb): Likewise.
16571 2020-01-21 Luis Machado <luis.machado@linaro.org>
16573 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16576 2020-01-21 Luis Machado <luis.machado@linaro.org>
16578 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16579 <pc_adjust>: Adjust the documentation.
16580 (aarch64_displaced_step_fixup): Check if PC really moved before
16583 2020-01-19 Tom Tromey <tom@tromey.com>
16585 * disasm.c (~gdb_disassembler): New destructor.
16586 (gdb_buffered_insn_length): Call disassemble_free_target.
16587 * disasm.h (class gdb_disassembler): Declare destructor. Use
16588 DISABLE_COPY_AND_ASSIGN.
16590 2020-01-19 Tom Tromey <tom@tromey.com>
16592 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16593 (die_reader_func_ftype): Remove.
16594 (cutu_reader): New class.
16595 (dw2_get_file_names_reader): Remove "data" parameter.
16596 (dw2_get_file_names): Use cutu_reader.
16597 (create_debug_type_hash_table): Update.
16598 (read_cutu_die_from_dwo): Update comment.
16599 (lookup_dwo_unit): Add dwo_name parameter.
16600 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16601 die_reader_func_ftype and data parameters.
16602 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16603 Remove die_reader_func_ftype and data parameters.
16604 (~cutu_reader): New; from init_cutu_and_read_dies.
16605 (cutu_reader::cutu_reader): Rename from
16606 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16607 and data parameters.
16608 (init_cutu_and_read_dies_simple): Remove.
16609 (struct process_psymtab_comp_unit_data): Remove.
16610 (process_psymtab_comp_unit_reader): Remove data parameter; add
16611 want_partial_unit and pretend_language parameters.
16612 (process_psymtab_comp_unit): Use cutu_reader.
16613 (build_type_psymtabs_reader): Remove data parameter.
16614 (build_type_psymtabs_1): Use cutu_reader.
16615 (process_skeletonless_type_unit): Likewise.
16616 (load_partial_comp_unit_reader): Remove.
16617 (load_partial_comp_unit): Use cutu_reader.
16618 (load_full_comp_unit_reader): Remove.
16619 (load_full_comp_unit): Use cutu_reader.
16620 (struct create_dwo_cu_data): Remove.
16621 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16622 dwo_unit parameters.
16623 (create_cus_hash_table): Use cutu_reader.
16624 (struct dwarf2_read_addr_index_data): Remove.
16625 (dwarf2_read_addr_index_reader): Remove.
16626 (dwarf2_read_addr_index): Use cutu_reader.
16627 (read_signatured_type_reader): Remove.
16628 (read_signatured_type): Use cutu_reader.
16630 2020-01-19 Tom Tromey <tom@tromey.com>
16632 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16633 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16634 (tui_wrefresh): Declare.
16635 * tui/tui-wingeneral.c (suppress_output): New global.
16636 (tui_suppress_output, ~tui_suppress_output): New constructor and
16638 (tui_wrefresh): New function.
16639 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16640 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16641 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16643 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16645 (tui_data_window::no_refresh): New method.
16646 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16647 (tui_reg_command): Use tui_suppress_output
16648 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16649 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16651 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16653 2020-01-19 Tom Tromey <tom@tromey.com>
16655 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16656 Handle case where symtab is null.
16658 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16660 * linux-fork.c (one_fork_p): Simplify.
16662 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16664 * top.c (struct qt_args): Remove.
16665 (kill_or_detach): Change return type to void, replace `void *`
16666 parameter with a proper one.
16667 (print_inferior_quit_action): Likewise.
16668 (quit_confirm): Use range-based for loop to iterate over inferiors.
16669 (quit_force): Likewise.
16671 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16673 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16674 `void *` parameter with proper parameters.
16675 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16676 (print_one_inferior): Change return type to void, replace `void *`
16677 parameter with proper parameters.
16678 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16680 (get_other_inferior): Remove.
16681 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16684 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16686 * mi/mi-interp.c (report_initial_inferior): Remove.
16687 (mi_interp::init): Use range-based for to iterate over inferiors.
16689 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16691 * python/py-inferior.c (build_inferior_list): Remove.
16692 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16694 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16696 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16697 (btrace_stitch_trace): Likewise.
16698 * charset.c (intermediate_encoding): Likewise (vaild).
16699 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16700 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16701 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16703 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16705 * windows-tdep.c (windows_get_tlb_type):
16706 Add rtl_user_process_parameters type.
16708 2020-01-16 Pedro Alves <palves@redhat.com>
16709 Norbert Lange <nolange79@gmail.com>
16712 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16713 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16714 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16715 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16716 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16717 (ps_plog): Redeclare exported functions with default visibility.
16719 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16721 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16722 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16724 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16726 * infcmd.c (post_create_inferior): Use get_thread_regcache
16727 instead of get_current_regcache.
16729 2020-01-14 Tom Tromey <tom@tromey.com>
16732 * python/python.c (gdbpy_decode_line): Treat empty string the same
16735 2020-01-14 Tom Tromey <tom@tromey.com>
16737 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16739 2020-01-14 Tom Tromey <tom@tromey.com>
16741 * nat/linux-btrace.c: Don't include <config.h>.
16742 * nat/linux-ptrace.c: Don't include <config.h>.
16743 * nat/x86-linux-dregs.c: Don't include <config.h>.
16745 2020-01-14 Tom Tromey <tom@tromey.com>
16747 * configure: Rebuild.
16748 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16750 2020-01-14 Tom Tromey <tom@tromey.com>
16752 * nat/x86-linux-dregs.c: Include configh.h.
16753 * nat/linux-ptrace.c: Include configh.h.
16754 * nat/linux-btrace.c: Include configh.h.
16755 * defs.h: Include config.h, bfd.h.
16756 * configure.ac: Don't source common.host.
16757 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16758 * configure: Rebuild.
16759 * acinclude.m4: Update path.
16760 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16761 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16762 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16763 (CLIBS): Add LIBSUPPORT.
16765 (COMMON_SFILES): Remove gdbsupport files.
16766 (HFILES_NO_SRCDIR): Likewise.
16767 (stamp-version): Update path to create-version.sh.
16768 (ALLDEPFILES): Remove gdbsupport files.
16770 2020-01-14 Tom Tromey <tom@tromey.com>
16772 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16773 USE_WIN32API when needed.
16774 * configure.ac (USE_WIN32API): Don't define.
16775 (WIN32LIBS): Use WIN32APILIBS.
16776 * configure: Rebuild.
16778 2020-01-14 Tom Tromey <tom@tromey.com>
16780 * configure: Rebuild.
16781 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16783 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16785 * skip.c (skip_function_command): Make skip w/o arguments use the
16786 name of the inlined function if pc is inside any inlined function.
16788 2020-01-14 Luis Machado <luis.machado@linaro.org>
16790 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16791 * infrun.c (resume_1): Likewise.
16792 (handle_inferior_event): Remove stale comment.
16793 * linux-nat.c (linux_nat_target::resume): Update comments.
16794 (save_stop_reason): Likewise.
16795 (linux_nat_filter_event): Likewise.
16796 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16798 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16800 * elfread.c (record_minimal_symbol): Set section index to 0 for
16801 non-allocatable sections.
16804 2020-01-13 Ali Tamur <tamur@google.com>
16806 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16807 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16808 to gdb::optional. Update comments.
16809 (dwo_file): Update comments.
16810 (read_attribute): Update API to take an additional out parameter,
16811 need_reprocess. This is used to mark attributes that need other
16812 attributes (e.g. str_offsets_base) for correct computation which may not
16813 have been read yet.
16814 (read_attribute_reprocess): New function declaration.
16815 (read_addr_index): Likewise.
16816 (read_dwo_str_index): Likewise.
16817 (read_stub_str_index): Likewise.
16818 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16819 (lookup_addr_base): New function definition.
16820 (lookup_ranges_base): Likewise.
16821 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16822 lookup_ranges_base.
16823 (init_cutu_and_read_dies): Update comments.
16824 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16825 unit. This is used to inherit parent's str_offsets_base and addr_base.
16827 (init_cutu_and_read_dies_simple): Reflect API changes.
16828 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16829 (create_cus_hash_table): Change API to take parent compile unit.
16830 Reflect API changes.
16831 (open_and_init_dwo_file): Reflect API changes.
16832 (dwarf2_get_pc_bounds): Update comments.
16833 (dwarf2_record_block_ranges): Likewise.
16834 (read_full_die_1): Change implementation to reprocess attributes that
16835 need str_offsets_base and addr_base.
16836 (partial_die_info::read): Likewise.
16837 (read_attribute_reprocess): New function definition.
16838 (read_attribute_value): Change API to take an additional out parameter,
16839 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16840 when a non-dwo compile unit has index based attributes.
16841 (read_attribute): Reflect API changes.
16842 (read_addr_index_1): Reflect API changes. Update comments.
16843 (dwarf2_read_addr_index_data): Reflect API changes.
16844 (dwarf2_read_addr_index): Likewise.
16845 (read_str_index): Change API and implementation. This becomes a helper
16846 to be used by the new string index related methods. Update error
16847 message and comments.
16848 (read_dwo_str_index): New function definition.
16849 (read_stub_str_index): Likewise.
16850 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16851 * symfile.h (dwarf2_debug_sections): Likewise.
16852 * xcoffread.c (dwarf2_debug_sections): Likewise.
16854 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16856 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16857 core_reg_sect type to gdb_byte *.
16858 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16859 * cris-tdep.c (fetch_core_registers): Likewise.
16860 * corelow.c (core_target::get_core_register_section): Change
16861 type of `contents` to gdb::byte_vector.
16863 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16865 * tui/tui-wingeneral.c (box_win): Position the title in the center
16868 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16870 * corelow.c (core_target::get_core_register_section): Use
16871 std::vector instead of alloca.
16873 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16875 * warning.m4: Add -Wmissing-declarations to build_warnings.
16876 * configure: Re-generate.
16878 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16880 * python/python.c (init__gdb_module): Add declaration.
16882 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16884 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16885 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16886 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16887 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16888 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16889 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16890 * ada-exp.y (_initialize_ada_exp): Add declaration.
16891 * ada-lang.c (_initialize_ada_language): Add declaration.
16892 * ada-tasks.c (_initialize_tasks): Add declaration.
16893 * agent.c (_initialize_agent): Add declaration.
16894 * aix-thread.c (_initialize_aix_thread): Add declaration.
16895 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16896 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16897 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16898 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16899 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16900 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16901 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16902 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16903 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16904 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16905 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16906 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16907 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16908 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16909 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16910 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16911 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16912 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16913 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16914 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16915 * annotate.c (_initialize_annotate): Add declaration.
16916 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16917 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16918 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16919 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16920 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16921 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16922 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16923 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16924 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16925 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16926 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16927 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16928 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16929 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16930 * auto-load.c (_initialize_auto_load): Add declaration.
16931 * auxv.c (_initialize_auxv): Add declaration.
16932 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16933 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16934 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16935 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16936 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16937 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16938 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16939 * breakpoint.c (_initialize_breakpoint): Add declaration.
16940 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16941 * btrace.c (_initialize_btrace): Add declaration.
16942 * charset.c (_initialize_charset): Add declaration.
16943 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16944 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16945 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16946 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16947 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16948 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16949 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16950 * coffread.c (_initialize_coffread): Add declaration.
16951 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16952 * compile/compile.c (_initialize_compile): Add declaration.
16953 * complaints.c (_initialize_complaints): Add declaration.
16954 * completer.c (_initialize_completer): Add declaration.
16955 * copying.c (_initialize_copying): Add declaration.
16956 * corefile.c (_initialize_core): Add declaration.
16957 * corelow.c (_initialize_corelow): Add declaration.
16958 * cp-abi.c (_initialize_cp_abi): Add declaration.
16959 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16960 * cp-support.c (_initialize_cp_support): Add declaration.
16961 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16962 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16963 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16964 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16965 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16966 * ctfread.c (_initialize_ctfread): Add declaration.
16967 * d-lang.c (_initialize_d_language): Add declaration.
16968 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16969 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16970 * dbxread.c (_initialize_dbxread): Add declaration.
16971 * dcache.c (_initialize_dcache): Add declaration.
16972 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16973 * disasm.c (_initialize_disasm): Add declaration.
16974 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16975 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16976 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16977 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16978 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16979 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16980 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16981 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16982 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16983 * elfread.c (_initialize_elfread): Add declaration.
16984 * exec.c (_initialize_exec): Add declaration.
16985 * extension.c (_initialize_extension): Add declaration.
16986 * f-lang.c (_initialize_f_language): Add declaration.
16987 * f-valprint.c (_initialize_f_valprint): Add declaration.
16988 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16989 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16990 * filesystem.c (_initialize_filesystem): Add declaration.
16991 * findcmd.c (_initialize_mem_search): Add declaration.
16992 * findvar.c (_initialize_findvar): Add declaration.
16993 * fork-child.c (_initialize_fork_child): Add declaration.
16994 * frame-base.c (_initialize_frame_base): Add declaration.
16995 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16996 * frame.c (_initialize_frame): Add declaration.
16997 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16998 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16999 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17000 * gcore.c (_initialize_gcore): Add declaration.
17001 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17002 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17003 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17004 * gdbarch.c (_initialize_gdbarch): Add declaration.
17005 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17006 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17007 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17008 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17009 * go-lang.c (_initialize_go_language): Add declaration.
17010 * go32-nat.c (_initialize_go32_nat): Add declaration.
17011 * guile/guile.c (_initialize_guile): Add declaration.
17012 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17013 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17014 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17015 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17016 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17017 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17018 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17019 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17020 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17021 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17022 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17023 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17024 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17025 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17026 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17027 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17028 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17029 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17030 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17031 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17032 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17033 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17034 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17035 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17036 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17037 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17038 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17039 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17040 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17041 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17042 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17043 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17044 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17045 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17046 * infcall.c (_initialize_infcall): Add declaration.
17047 * infcmd.c (_initialize_infcmd): Add declaration.
17048 * inflow.c (_initialize_inflow): Add declaration.
17049 * infrun.c (_initialize_infrun): Add declaration.
17050 * interps.c (_initialize_interpreter): Add declaration.
17051 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17052 * jit.c (_initialize_jit): Add declaration.
17053 * language.c (_initialize_language): Add declaration.
17054 * linux-fork.c (_initialize_linux_fork): Add declaration.
17055 * linux-nat.c (_initialize_linux_nat): Add declaration.
17056 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17057 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17058 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17059 * m2-lang.c (_initialize_m2_language): Add declaration.
17060 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17061 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17062 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17063 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17064 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17065 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17066 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17067 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17068 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17069 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17070 * machoread.c (_initialize_machoread): Add declaration.
17071 * macrocmd.c (_initialize_macrocmd): Add declaration.
17072 * macroscope.c (_initialize_macroscope): Add declaration.
17073 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17074 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17075 * maint.c (_initialize_maint_cmds): Add declaration.
17076 * mdebugread.c (_initialize_mdebugread): Add declaration.
17077 * memattr.c (_initialize_mem): Add declaration.
17078 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17079 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17080 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17081 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17082 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17083 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17084 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17085 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17086 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17087 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17088 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17089 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17090 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17091 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17092 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17093 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17094 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17095 * mipsread.c (_initialize_mipsread): Add declaration.
17096 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17097 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17098 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17099 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17100 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17101 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17102 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17103 * nto-procfs.c (_initialize_procfs): Add declaration.
17104 * objc-lang.c (_initialize_objc_language): Add declaration.
17105 * observable.c (_initialize_observer): Add declaration.
17106 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17107 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17108 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17109 * osabi.c (_initialize_gdb_osabi): Add declaration.
17110 * osdata.c (_initialize_osdata): Add declaration.
17111 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17112 * parse.c (_initialize_parse): Add declaration.
17113 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17114 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17115 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17116 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17117 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17118 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17119 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17120 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17121 * printcmd.c (_initialize_printcmd): Add declaration.
17122 * probe.c (_initialize_probe): Add declaration.
17123 * proc-api.c (_initialize_proc_api): Add declaration.
17124 * proc-events.c (_initialize_proc_events): Add declaration.
17125 * proc-service.c (_initialize_proc_service): Add declaration.
17126 * procfs.c (_initialize_procfs): Add declaration.
17127 * producer.c (_initialize_producer): Add declaration.
17128 * psymtab.c (_initialize_psymtab): Add declaration.
17129 * python/python.c (_initialize_python): Add declaration.
17130 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17131 * record-btrace.c (_initialize_record_btrace): Add declaration.
17132 * record-full.c (_initialize_record_full): Add declaration.
17133 * record.c (_initialize_record): Add declaration.
17134 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17135 * regcache.c (_initialize_regcache): Add declaration.
17136 * reggroups.c (_initialize_reggroup): Add declaration.
17137 * remote-notif.c (_initialize_notif): Add declaration.
17138 * remote-sim.c (_initialize_remote_sim): Add declaration.
17139 * remote.c (_initialize_remote): Add declaration.
17140 * reverse.c (_initialize_reverse): Add declaration.
17141 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17142 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17143 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17144 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17145 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17146 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17147 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17148 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17150 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17151 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17152 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17153 * rust-exp.y (_initialize_rust_exp): Add declaration.
17154 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17155 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17156 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17157 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17158 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17159 * score-tdep.c (_initialize_score_tdep): Add declaration.
17160 * ser-go32.c (_initialize_ser_dos): Add declaration.
17161 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17162 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17163 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17164 * ser-uds.c (_initialize_ser_socket): Add declaration.
17165 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17166 * serial.c (_initialize_serial): Add declaration.
17167 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17168 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17169 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17170 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17171 * skip.c (_initialize_step_skip): Add declaration.
17172 * sol-thread.c (_initialize_sol_thread): Add declaration.
17173 * solib-aix.c (_initialize_solib_aix): Add declaration.
17174 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17175 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17176 * solib-frv.c (_initialize_frv_solib): Add declaration.
17177 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17178 * solib-target.c (_initialize_solib_target): Add declaration.
17179 * solib.c (_initialize_solib): Add declaration.
17180 * source-cache.c (_initialize_source_cache): Add declaration.
17181 * source.c (_initialize_source): Add declaration.
17182 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17183 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17184 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17185 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17186 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17187 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17188 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17189 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17190 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17191 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17192 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17193 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17194 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17195 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17196 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17197 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17198 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17199 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17200 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17201 * stabsread.c (_initialize_stabsread): Add declaration.
17202 * stack.c (_initialize_stack): Add declaration.
17203 * stap-probe.c (_initialize_stap_probe): Add declaration.
17204 * std-regs.c (_initialize_frame_reg): Add declaration.
17205 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17206 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17207 * symfile.c (_initialize_symfile): Add declaration.
17208 * symmisc.c (_initialize_symmisc): Add declaration.
17209 * symtab.c (_initialize_symtab): Add declaration.
17210 * target.c (_initialize_target): Add declaration.
17211 * target-connection.c (_initialize_target_connection): Add
17213 * target-dcache.c (_initialize_target_dcache): Add declaration.
17214 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17215 * thread.c (_initialize_thread): Add declaration.
17216 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17217 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17218 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17219 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17220 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17221 * tracectf.c (_initialize_ctf): Add declaration.
17222 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17223 * tracefile.c (_initialize_tracefile): Add declaration.
17224 * tracepoint.c (_initialize_tracepoint): Add declaration.
17225 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17226 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17227 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17228 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17229 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17230 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17231 * tui/tui.c (_initialize_tui): Add declaration.
17232 * typeprint.c (_initialize_typeprint): Add declaration.
17233 * ui-style.c (_initialize_ui_style): Add declaration.
17234 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17235 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17236 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17237 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17238 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17239 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17240 * unittests/filtered_iterator-selftests.c
17241 (_initialize_filtered_iterator_selftests): Add declaration.
17242 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17243 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17244 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17245 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17246 * unittests/main-thread-selftests.c
17247 (_initialize_main_thread_selftests): Add declaration.
17248 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17249 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17250 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17251 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17252 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17253 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17254 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17255 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17256 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17257 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17258 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17259 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17260 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17261 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17262 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17264 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17265 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17266 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17267 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17268 * user-regs.c (_initialize_user_regs): Add declaration.
17269 * utils.c (_initialize_utils): Add declaration.
17270 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17271 * valops.c (_initialize_valops): Add declaration.
17272 * valprint.c (_initialize_valprint): Add declaration.
17273 * value.c (_initialize_values): Add declaration.
17274 * varobj.c (_initialize_varobj): Add declaration.
17275 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17276 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17277 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17278 * windows-nat.c (_initialize_windows_nat): Add declaration.
17279 (_initialize_check_for_gdb_ini): Add declaration.
17280 (_initialize_loadable): Add declaration.
17281 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17282 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17283 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17284 * xcoffread.c (_initialize_xcoffread): Add declaration.
17285 * xml-support.c (_initialize_xml_support): Add declaration.
17286 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17287 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17288 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17289 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17291 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17293 * regformats/regdat.sh: Generate declaration for init function.
17295 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17297 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17299 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17300 close_one_inferior>: New methods.
17301 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17302 pass down target to find_inferior_pid.
17303 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17304 Pass down target to find_inferior_ptid.
17305 (gdbsim_target::create_inferior): Pass down target to
17307 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17308 target down to find_inferior_ptid and switch_to_thread.
17309 (gdbsim_target::close): Update to call close_one_inferior.
17310 (struct resume_data): Remove.
17311 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17312 directly, rather than through a void pointer.
17313 (gdbsim_target::resume): Update to call resume_one_inferior.
17315 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17317 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17319 2020-01-12 Pedro Alves <palves@redhat.com>
17321 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17322 directly for the current inferior instead of
17323 discard_all_inferiors.
17324 (discard_all_inferiors): Delete.
17326 2020-01-11 Tom Tromey <tom@tromey.com>
17328 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17329 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17330 deprecated_safe_get_selected_frame.
17332 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17334 * inferior.c (print_inferior): Switch inferior before printing it.
17336 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17337 Pedro Alves <palves@redhat.com>
17339 * progspace-and-thread.c (switch_to_program_space_and_thread):
17340 Assert there's an inferior for PSPACE. Use
17341 switch_to_inferior_no_thread to switch the inferior too.
17342 * progspace.c (program_space::~program_space): Call
17343 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17344 (program_space::free_all_objfiles): Don't call clear_symtab_users
17346 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17348 2020-01-10 Pedro Alves <palves@redhat.com>
17350 * NEWS: Mention multi-target debugging, "info connections", and
17351 "add-inferior -no-connection".
17353 2020-01-10 Pedro Alves <palves@redhat.com>
17355 * infrun.c: Include "target-connection.h".
17356 (check_multi_target_resumption): New.
17357 (proceed): Call it.
17358 * target-connection.c (make_target_connection_string): Make
17360 * target-connection.h (make_target_connection_string): Declare.
17362 2020-01-10 Pedro Alves <palves@redhat.com>
17364 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17365 * inferior.c (uiout_field_connection): New function.
17366 (print_inferior): Add new "connection-id" column.
17367 (add_inferior_command): Show connection number/string of added
17369 * process-stratum-target.h
17370 (process_stratum_target::connection_string): New virtual method.
17371 (process_stratum_target::connection_number): New field.
17372 * remote.c (remote_target::connection_string): New override.
17373 * target-connection.c: New file.
17374 * target-connection.h: New file.
17375 * target.c (decref_target): Remove process_stratum targets from
17376 the connection list.
17377 (target_stack::push): Add process_stratum targets to the
17380 2020-01-10 Pedro Alves <palves@redhat.com>
17383 2016-04-12 Pedro Alves <palves@redhat.com>
17384 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17385 Remove references to name.
17386 * serial.h (struct serial) <name>: Delete.
17388 2020-01-10 Pedro Alves <palves@redhat.com>
17390 * gdbarch-selftests.c (register_to_value_test): Remove "target
17391 already pushed" check.
17393 2020-01-10 Pedro Alves <palves@redhat.com>
17394 John Baldwin <jhb@FreeBSD.org>
17396 * aarch64-linux-nat.c
17397 (aarch64_linux_nat_target::thread_architecture): Adjust.
17398 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17399 (task_command_1): Likewise.
17400 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17401 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17402 (aix_thread_target::store_registers)
17403 (aix_thread_target::thread_alive): Adjust.
17404 * amd64-fbsd-tdep.c: Include "inferior.h".
17405 (amd64fbsd_get_thread_local_address): Pass down target.
17406 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17407 thread's gdbarch instead of target_gdbarch.
17408 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17409 get_last_target_status.
17410 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17411 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17413 (update_inserted_breakpoint_locations): Skip if inferiors with no
17415 (update_global_location_list): When handling moribund locations,
17416 find representative inferior for location's pspace, and use thread
17417 count of its process_stratum target.
17418 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17419 * bsd-uthread.c (bsd_uthread_target::wait): Use
17420 as_process_stratum_target and adjust thread_change_ptid and
17422 (bsd_uthread_target::update_thread_list): Use
17423 as_process_stratum_target and adjust find_thread_ptid,
17424 thread_change_ptid and add_thread calls.
17425 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17426 find_thread_ptid call.
17427 * corelow.c (add_to_thread_list): Adjust add_thread call.
17428 (core_target_open): Adjust add_thread_silent and thread_count
17430 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17431 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17432 * event-top.c (async_disconnect): Pop targets from all inferiors.
17433 * exec.c (add_target_sections): Push exec target on all inferiors
17434 sharing the program space.
17435 (remove_target_sections): Remove the exec target from all
17436 inferiors sharing the program space.
17437 (exec_on_vfork): New.
17438 * exec.h (exec_on_vfork): Declare.
17439 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17441 (fbsd_nat_target::update_thread_list): Adjust.
17442 (fbsd_nat_target::resume): Adjust.
17443 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17445 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17446 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17447 get_thread_arch_regcache call.
17448 * fork-child.c (gdb_startup_inferior): Pass target down to
17449 startup_inferior and set_executing.
17450 * gdbthread.h (struct process_stratum_target): Forward declare.
17451 (add_thread, add_thread_silent, add_thread_with_info)
17452 (in_thread_list): Add process_stratum_target parameter.
17453 (find_thread_ptid(inferior*, ptid_t)): New overload.
17454 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17456 (all_threads()): Delete overload.
17457 (all_threads, all_non_exited_threads): Add process_stratum_target
17459 (all_threads_safe): Use brace initialization.
17460 (thread_count): Add process_stratum_target parameter.
17461 (set_resumed, set_running, set_stop_requested, set_executing)
17462 (threads_are_executing, finish_thread_state): Add
17463 process_stratum_target parameter.
17464 (switch_to_thread): Use is_current_thread.
17465 * i386-fbsd-tdep.c: Include "inferior.h".
17466 (i386fbsd_get_thread_local_address): Pass down target.
17467 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17468 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17469 have_inferiors check.
17470 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17471 (inf_ptrace_target::attach): Adjust.
17472 * infcall.c (run_inferior_call): Adjust.
17473 * infcmd.c (run_command_1): Pass target to
17474 scoped_finish_thread_state.
17475 (proceed_thread_callback): Skip inferiors with no execution.
17476 (continue_command): Rename 'all_threads' local to avoid hiding
17477 'all_threads' function. Adjust get_last_target_status call.
17478 (prepare_one_step): Adjust set_running call.
17479 (signal_command): Use user_visible_resume_target. Compare thread
17480 pointers instead of inferior_ptid.
17481 (info_program_command): Adjust to pass down target.
17482 (attach_command): Mark target's 'thread_executing' flag.
17483 (stop_current_target_threads_ns): New, factored out from ...
17484 (interrupt_target_1): ... this. Switch inferior before making
17487 (struct all_inferiors_iterator, struct all_inferiors_range)
17488 (struct all_inferiors_safe_range)
17489 (struct all_non_exited_inferiors_range): Filter on
17490 process_stratum_target too. Remove explicit.
17491 * inferior.c (inferior::inferior): Push dummy target on target
17493 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17494 Add process_stratum_target parameter, and pass it down.
17495 (have_live_inferiors): Adjust.
17496 (switch_to_inferior_and_push_target): New.
17497 (add_inferior_command, clone_inferior_command): Handle
17498 "-no-connection" parameter. Use
17499 switch_to_inferior_and_push_target.
17500 (_initialize_inferior): Mention "-no-connection" option in
17501 the help of "add-inferior" and "clone-inferior" commands.
17502 * inferior.h: Include "process-stratum-target.h".
17503 (interrupt_target_1): Use bool.
17504 (struct inferior) <push_target, unpush_target, target_is_pushed,
17505 find_target_beneath, top_target, process_target, target_at,
17507 (discard_all_inferiors): Delete.
17508 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17509 (all_inferiors, all_non_exited_inferiors): Add
17510 process_stratum_target parameter.
17511 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17512 (target_last_proc_target): New global.
17513 (follow_fork_inferior): Push target on new inferior. Pass target
17514 to add_thread_silent. Call exec_on_vfork. Handle target's
17516 (follow_fork): Adjust get_last_target_status call. Also consider
17518 (follow_exec): Push target on new inferior.
17519 (struct execution_control_state) <target>: New field.
17520 (user_visible_resume_target): New.
17521 (do_target_resume): Call target_async.
17522 (resume_1): Set target's threads_executing flag. Consider resume
17524 (commit_resume_all_targets): New.
17525 (proceed): Also consider resume target. Skip threads of inferiors
17526 with no execution. Commit resumtion in all targets.
17527 (start_remote): Pass current inferior to wait_for_inferior.
17528 (infrun_thread_stop_requested): Consider target as well. Pass
17529 thread_info pointer to clear_inline_frame_state instead of ptid.
17530 (infrun_thread_thread_exit): Consider target as well.
17531 (random_pending_event_thread): New inferior parameter. Use it.
17532 (do_target_wait): Rename to ...
17533 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17535 (threads_are_resumed_pending_p, do_target_wait): New.
17536 (prepare_for_detach): Adjust calls.
17537 (wait_for_inferior): New inferior parameter. Handle it. Use
17538 do_target_wait_1 instead of do_target_wait.
17539 (fetch_inferior_event): Adjust. Switch to representative
17540 inferior. Pass target down.
17541 (set_last_target_status): Add process_stratum_target parameter.
17542 Save target in global.
17543 (get_last_target_status): Add process_stratum_target parameter and
17545 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17546 (context_switch): Check inferior_ptid == null_ptid before calling
17548 (get_inferior_stop_soon): Pass down target.
17549 (wait_one): Rename to ...
17550 (poll_one_curr_target): ... this.
17551 (struct wait_one_event): New.
17553 (stop_all_threads): Adjust.
17554 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17556 (switch_back_to_stepped_thread): Also consider target.
17557 (print_stop_event): Update.
17558 (normal_stop): Update. Also consider the resume target.
17559 * infrun.h (wait_for_inferior): Remove declaration.
17560 (user_visible_resume_target): New declaration.
17561 (get_last_target_status, set_last_target_status): New
17562 process_stratum_target parameter.
17563 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17564 process_stratum_target parameter, and use it.
17565 (clear_inline_frame_state (thread_info*)): New.
17566 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17567 process_stratum_target parameter.
17568 (clear_inline_frame_state (thread_info*)): Declare.
17569 * linux-fork.c (delete_checkpoint_command): Pass target down to
17571 (checkpoint_command): Adjust.
17572 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17573 instead of just tweaking inferior_ptid.
17574 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17575 (exit_lwp): Pass target down to find_thread_ptid.
17576 (attach_proc_task_lwp_callback): Pass target down to
17577 add_thread/set_running/set_executing.
17578 (linux_nat_target::attach): Pass target down to
17579 thread_change_ptid.
17580 (get_detach_signal): Pass target down to find_thread_ptid.
17581 Consider last target status's target.
17582 (linux_resume_one_lwp_throw, resume_lwp)
17583 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17584 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17585 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17586 (linux_nat_target::async_wait_fd): New.
17587 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17589 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17590 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17591 * linux-thread-db.c (struct thread_db_info::process_target): New
17593 (add_thread_db_info): Save target.
17594 (get_thread_db_info): New process_stratum_target parameter. Also
17596 (delete_thread_db_info): New process_stratum_target parameter.
17598 (thread_from_lwp): Adjust to pass down target.
17599 (thread_db_notice_clone): Pass down target.
17600 (check_thread_db_callback): Pass down target.
17601 (try_thread_db_load_1): Always push the thread_db target.
17602 (try_thread_db_load, record_thread): Pass target down.
17603 (thread_db_target::detach): Pass target down. Always unpush the
17605 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17606 target down. Always unpush the thread_db target.
17607 (find_new_threads_callback, thread_db_find_new_threads_2)
17608 (thread_db_target::update_thread_list): Pass target down.
17609 (thread_db_target::pid_to_str): Pass current inferior down.
17610 (thread_db_target::get_thread_local_address): Pass target down.
17611 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17613 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17614 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17615 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17616 (procfs_init_inferior): Rename to ...
17617 (procfs_target::procfs_init_inferior): ... this and adjust.
17618 (procfs_target::create_inferior, procfs_notice_thread)
17619 (procfs_do_thread_registers): Adjust.
17620 * ppc-fbsd-tdep.c: Include "inferior.h".
17621 (ppcfbsd_get_thread_local_address): Pass down target.
17622 * proc-service.c (ps_xfer_memory): Switch current inferior and
17623 program space as well.
17624 (get_ps_regcache): Pass target down.
17625 * process-stratum-target.c
17626 (process_stratum_target::thread_address_space)
17627 (process_stratum_target::thread_architecture): Pass target down.
17628 * process-stratum-target.h
17629 (process_stratum_target::threads_executing): New field.
17630 (as_process_stratum_target): New.
17631 * ravenscar-thread.c
17632 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17633 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17635 * record-btrace.c (record_btrace_target::info_record): Adjust.
17636 (record_btrace_target::record_method)
17637 (record_btrace_target::record_is_replaying)
17638 (record_btrace_target::fetch_registers)
17639 (get_thread_current_frame_id, record_btrace_target::resume)
17640 (record_btrace_target::wait, record_btrace_target::stop): Pass
17642 * record-full.c (record_full_wait_1): Switch to event thread.
17644 * regcache.c (regcache::regcache)
17645 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17646 process_stratum_target parameter and handle it.
17647 (current_thread_target): New global.
17648 (get_thread_regcache): Add process_stratum_target parameter and
17649 handle it. Switch inferior before calling target method.
17650 (get_thread_regcache): Pass target down.
17651 (get_thread_regcache_for_ptid): Pass target down.
17652 (registers_changed_ptid): Add process_stratum_target parameter and
17654 (registers_changed_thread, registers_changed): Pass target down.
17655 (test_get_thread_arch_aspace_regcache): New.
17656 (current_regcache_test): Define a couple local test_target_ops
17657 instances and use them for testing.
17658 (readwrite_regcache): Pass process_stratum_target parameter.
17659 (cooked_read_test, cooked_write_test): Pass mock_target down.
17660 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17661 (get_thread_arch_aspace_regcache): Add process_stratum_target
17663 (regcache::target): New method.
17664 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17665 (regcache::registers_changed_ptid): Add process_stratum_target
17667 (regcache::m_target): New field.
17668 (registers_changed_ptid): Add process_stratum_target parameter.
17669 * remote.c (remote_state::supports_vCont_probed): New field.
17670 (remote_target::async_wait_fd): New method.
17671 (remote_unpush_and_throw): Add remote_target parameter.
17672 (get_current_remote_target): Adjust.
17673 (remote_target::remote_add_inferior): Push target.
17674 (remote_target::remote_add_thread)
17675 (remote_target::remote_notice_new_inferior)
17676 (get_remote_thread_info): Pass target down.
17677 (remote_target::update_thread_list): Skip threads of inferiors
17678 bound to other targets. (remote_target::close): Don't discard
17679 inferiors. (remote_target::add_current_inferior_and_thread)
17680 (remote_target::process_initial_stop_replies)
17681 (remote_target::start_remote)
17682 (remote_target::remote_serial_quit_handler): Pass down target.
17683 (remote_target::remote_unpush_target): New remote_target
17684 parameter. Unpush the target from all inferiors.
17685 (remote_target::remote_unpush_and_throw): New remote_target
17686 parameter. Pass it down.
17687 (remote_target::open_1): Check whether the current inferior has
17688 execution instead of checking whether any inferior is live. Pass
17690 (remote_target::remote_detach_1): Pass down target. Use
17691 remote_unpush_target.
17692 (extended_remote_target::attach): Pass down target.
17693 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17694 (remote_target::append_resumption): Pass down target.
17695 (remote_target::append_pending_thread_resumptions)
17696 (remote_target::remote_resume_with_hc, remote_target::resume)
17697 (remote_target::commit_resume): Pass down target.
17698 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17699 (remote_target::interrupt_query)
17700 (remote_target::remove_new_fork_children)
17701 (remote_target::check_pending_events_prevent_wildcard_vcont)
17702 (remote_target::remote_parse_stop_reply)
17703 (remote_target::process_stop_reply): Pass down target.
17704 (first_remote_resumed_thread): New remote_target parameter. Pass
17706 (remote_target::wait_as): Pass down target.
17707 (unpush_and_perror): New remote_target parameter. Pass it down.
17708 (remote_target::readchar, remote_target::remote_serial_write)
17709 (remote_target::getpkt_or_notif_sane_1)
17710 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17712 (remote_target::mourn_inferior): Pass down target. Use
17713 remote_unpush_target.
17714 (remote_target::core_of_thread)
17715 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17716 (remote_target::pid_to_exec_file)
17717 (remote_target::thread_handle_to_thread_info): Pass down target.
17718 (remote_target::async_wait_fd): New.
17719 * riscv-fbsd-tdep.c: Include "inferior.h".
17720 (riscv_fbsd_get_thread_local_address): Pass down target.
17721 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17722 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17723 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17725 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17726 * solib-svr4.c (enable_break): Pass down target.
17727 * spu-multiarch.c (parse_spufs_run): Pass down target.
17728 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17729 * target-delegates.c: Regenerate.
17730 * target.c (g_target_stack): Delete.
17731 (current_top_target): Return the current inferior's top target.
17732 (target_has_execution_1): Refer to the passed-in inferior's top
17734 (target_supports_terminal_ours): Check whether the initial
17735 inferior was already created.
17736 (decref_target): New.
17737 (target_stack::push): Incref/decref the target.
17738 (push_target, push_target, unpush_target): Adjust.
17739 (target_stack::unpush): Defref target.
17740 (target_is_pushed): Return bool. Adjust to refer to the current
17741 inferior's target stack.
17742 (dispose_inferior): Delete, and inline parts ...
17743 (target_preopen): ... here. Only dispose of the current inferior.
17744 (target_detach): Hold strong target reference while detaching.
17746 (target_thread_name): Add assertion.
17747 (target_resume): Pass down target.
17748 (target_ops::beneath, find_target_at): Adjust to refer to the
17749 current inferior's target stack.
17750 (get_dummy_target): New.
17751 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17752 has a thread running.
17753 (initialize_targets): Rename to ...
17754 (_initialize_target): ... this.
17755 * target.h: Include "gdbsupport/refcounted-object.h".
17756 (struct target_ops): Inherit refcounted_object.
17757 (target_ops::shortname, target_ops::longname): Make const.
17758 (target_ops::async_wait_fd): New method.
17759 (decref_target): Declare.
17760 (struct target_ops_ref_policy): New.
17761 (target_ops_ref): New typedef.
17762 (get_dummy_target): Declare function.
17763 (target_is_pushed): Return bool.
17764 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17765 (all_matching_threads_iterator::all_matching_threads_iterator):
17766 Handle filter target.
17767 * thread-iter.h (struct all_matching_threads_iterator, struct
17768 all_matching_threads_range, class all_non_exited_threads_range):
17769 Filter by target too. Remove explicit.
17770 * thread.c (threads_executing): Delete.
17771 (inferior_thread): Pass down current inferior.
17772 (clear_thread_inferior_resources): Pass down thread pointer
17774 (add_thread_silent, add_thread_with_info, add_thread): Add
17775 process_stratum_target parameter. Use it for thread and inferior
17777 (is_current_thread): New.
17778 (thread_info::deletable): Use it.
17779 (find_thread_ptid, thread_count, in_thread_list)
17780 (thread_change_ptid, set_resumed, set_running): New
17781 process_stratum_target parameter. Pass it down.
17782 (set_executing): New process_stratum_target parameter. Pass it
17783 down. Adjust reference to 'threads_executing'.
17784 (threads_are_executing): New process_stratum_target parameter.
17785 Adjust reference to 'threads_executing'.
17786 (set_stop_requested, finish_thread_state): New
17787 process_stratum_target parameter. Pass it down.
17788 (switch_to_thread): Also match inferior.
17789 (switch_to_thread): New process_stratum_target parameter. Pass it
17791 (update_threads_executing): Reimplement.
17792 * top.c (quit_force): Pop targets from all inferior.
17793 (gdb_init): Don't call initialize_targets.
17794 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17796 (windows_add_thread, windows_delete_thread): Adjust.
17797 (get_windows_debug_event): Rename to ...
17798 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17799 * tracefile-tfile.c (tfile_target_open): Pass down target.
17800 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17802 (switch_to_thread): Add process_stratum_target parameter.
17803 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17805 (mi_on_resume): Pass target down.
17806 * nat/fork-inferior.c (startup_inferior): Add
17807 process_stratum_target parameter. Pass it down.
17808 * nat/fork-inferior.h (startup_inferior): Add
17809 process_stratum_target parameter.
17810 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17812 2020-01-10 Pedro Alves <palves@redhat.com>
17814 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17815 directly. Instead find the first thread in the thread list and
17816 use switch_to_thread.
17818 2020-01-10 Pedro Alves <palves@redhat.com>
17820 * remote.c (remote_target::remote_add_inferior): Don't bind a
17821 process to the current inferior if the current inferior is already
17822 bound to a process.
17824 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17825 Pedro Alves <palves@redhat.com>
17827 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17828 If no process is specified, return null_ptid instead of
17830 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17831 TARGET_WAITKIND_SIGNALLED with no pid.
17833 2020-01-10 Pedro Alves <palves@redhat.com>
17835 * remote.c (first_remote_resumed_thread): New.
17836 (remote_target::wait_as): Use it as default event_ptid instead of
17839 2020-01-10 Pedro Alves <palves@redhat.com>
17841 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17843 2020-01-10 Pedro Alves <palves@redhat.com>
17845 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17848 2020-01-10 Pedro Alves <palves@redhat.com>
17850 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17851 ptid to get_last_target_status.
17852 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17853 ptid to get_last_target_status.
17854 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17855 get_last_target_status.
17856 (info_program_command): Don't pass a target_waitstatus to
17857 get_last_target_status.
17858 * infrun.c (init_wait_for_inferior): Use
17859 nullify_last_target_wait_ptid.
17860 (get_last_target_status): Handle nullptr arguments.
17861 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17862 (print_stop_event): Don't pass a ptid to get_last_target_status.
17863 (normal_stop): Don't pass a ptid to get_last_target_status.
17864 * infrun.h (get_last_target_status, set_last_target_status): Move
17865 comments here and update.
17866 (nullify_last_target_wait_ptid): Declare.
17867 * linux-fork.c (fork_load_infrun_state): Remove local extern
17868 declaration of nullify_last_target_wait_ptid.
17869 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17870 to get_last_target_status.
17872 2020-01-10 Pedro Alves <palves@redhat.com>
17874 * gdbthread.h (scoped_restore_current_thread)
17875 <dont_restore, restore, m_dont_restore>: Declare.
17876 * thread.c (thread_alive): Add assertion. Return bool.
17877 (switch_to_thread_if_alive): New.
17878 (prune_threads): Switch inferior/thread.
17879 (print_thread_info_1): Switch thread before calling target methods.
17880 (scoped_restore_current_thread::restore): New, factored out from
17882 (scoped_restore_current_thread::~scoped_restore_current_thread):
17884 (scoped_restore_current_thread::scoped_restore_current_thread):
17886 (thread_apply_all_command, thread_select): Use
17887 switch_to_thread_if_alive.
17888 * infrun.c (proceed, restart_threads, handle_signal_stop)
17889 (switch_back_to_stepped_thread): Switch current thread before
17890 calling target methods.
17892 2020-01-10 Pedro Alves <palves@redhat.com>
17894 * inferior.c (switch_to_inferior_no_thread): New function,
17895 factored out from ...
17896 (inferior_command): ... here.
17897 * inferior.h (switch_to_inferior_no_thread): Declare.
17898 * mi/mi-main.c (run_one_inferior): Use
17899 switch_to_inferior_no_thread.
17901 2020-01-10 Pedro Alves <palves@redhat.com>
17903 * infcmd.c (kill_command): Remove dead code.
17905 2020-01-10 Pedro Alves <palves@redhat.com>
17907 * remote.c (remote_target::mourn_inferior): No longer check
17908 whether the target is running.
17910 2020-01-10 Pedro Alves <palves@redhat.com>
17912 * corelow.c (core_target::has_execution): Change parameter type to
17914 * inferior.c (number_of_live_inferiors): Use
17915 inferior::has_execution instead of target_has_execution_1.
17916 * inferior.h (inferior::has_execution): New.
17917 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17918 inferior::has_execution instead of target_has_execution_1.
17919 * process-stratum-target.c
17920 (process_stratum_target::has_execution): Change parameter type to
17921 inferior pointer. Check the inferior's PID instead of
17923 * process-stratum-target.h
17924 (process_stratum_target::has_execution): Change parameter type to
17926 * record-full.c (record_full_core_target::has_execution): Change
17927 parameter type to inferior pointer.
17928 * target.c (target_has_execution_1): Change parameter type to
17930 (target_has_execution_current): Adjust.
17931 * target.h (target_ops::has_execution): Change parameter type to
17933 (target_has_execution_1): Change parameter type to inferior
17934 pointer. Change return type to bool.
17935 * tracefile.h (tracefile_target::has_execution): Change parameter
17936 type to inferior pointer.
17938 2020-01-10 Pedro Alves <palves@redhat.com>
17940 * exceptions.c (print_flush): Remove current_top_target() check.
17942 2020-01-10 Pedro Alves <palves@redhat.com>
17944 * remote.c (show_remote_exec_file): Show the current inferior's
17945 exec-file instead of the command variable's value.
17947 2020-01-10 Pedro Alves <palves@redhat.com>
17949 * record-full.c (record_full_resume_ptid): New global.
17950 (record_full_target::resume): Set it.
17951 (record_full_wait_1): Use record_full_resume_ptid instead of
17954 2020-01-10 Pedro Alves <palves@redhat.com>
17956 * gdbthread.h (scoped_restore_current_thread)
17957 <dont_restore, restore, m_dont_restore>: Declare.
17958 * thread.c (thread_alive): Add assertion. Return bool.
17959 (switch_to_thread_if_alive): New.
17960 (prune_threads): Switch inferior/thread.
17961 (print_thread_info_1): Switch thread before calling target methods.
17962 (scoped_restore_current_thread::restore): New, factored out from
17964 (scoped_restore_current_thread::~scoped_restore_current_thread):
17966 (scoped_restore_current_thread::scoped_restore_current_thread):
17968 (thread_apply_all_command, thread_select): Use
17969 switch_to_thread_if_alive.
17971 2020-01-10 George Barrett <bob@bob131.so>
17973 * stap-probe.c (stap_modify_semaphore): Don't check for null
17975 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17976 for null semaphores.
17978 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17980 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17981 all source windows, and maintain horizontal scroll status while
17984 2020-01-09 Tom Tromey <tom@tromey.com>
17987 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17988 update_source_window, not print_source_lines.
17990 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17992 * tui/tui.c (tui_enable): Register tui hooks after calling
17995 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17997 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17999 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
18001 * thread.c (print_thread_info_1): Fix indentation.
18003 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18005 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18006 unique_xmalloc_ptr outside the if to always free the demangled name.
18008 2020-01-08 Tom Tromey <tromey@adacore.com>
18010 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18011 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18012 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18013 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18015 (section_offsets): New typedef.
18016 * symtab.c (fixup_section, get_msymbol_address): Update.
18017 * symmisc.c (dump_msymbols): Update.
18018 * symfile.h (relative_addr_info_to_section_offsets)
18019 (symfile_map_offsets_to_segments): Update.
18020 * symfile.c (build_section_addr_info_from_objfile)
18021 (init_objfile_sect_indices): Update.
18022 (struct place_section_arg): Change type of "offsets".
18023 (place_section): Update.
18024 (relative_addr_info_to_section_offsets): Change type of
18025 "section_offsets". Remove "num_sections" parameter.
18026 (default_symfile_offsets, syms_from_objfile_1)
18027 (set_objfile_default_section_offset): Update.
18028 (reread_symbols): No need to preserve section offsets by hand.
18029 (symfile_map_offsets_to_segments): Change type of "offsets".
18030 * stap-probe.c (relocate_address): Update.
18031 * stabsread.h (process_one_symbol): Update.
18032 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18033 (solib_target_relocate_section_addresses): Update.
18034 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18036 * solib-frv.c (frv_relocate_main_executable): Update.
18037 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18038 * solib-aix.c (solib_aix_get_section_offsets): Change return
18040 (solib_aix_solib_create_inferior_hook): Update.
18041 * remote.c (remote_target::get_offsets): Update.
18042 * psymtab.c (find_pc_sect_psymtab): Update.
18043 * psympriv.h (struct partial_symbol) <address, text_low,
18044 text_high>: Update.
18045 * objfiles.h (obj_section_offset): Update.
18046 (struct objfile) <section_offsets>: Change type.
18047 <num_sections>: Remove.
18048 (objfile_relocate): Update.
18049 * objfiles.c (entry_point_address_query): Update
18050 (relocate_one_symbol): Change type of "section_offsets".
18051 (objfile_relocate1, objfile_relocate1): Change type of
18053 (objfile_rebase1): Update.
18054 * mipsread.c (mipscoff_symfile_read): Update.
18055 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18057 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18058 (parse_external, psymtab_to_symtab_1): Update.
18059 * machoread.c (macho_symfile_offsets): Update.
18060 * ia64-tdep.c (ia64_find_unwind_table): Update.
18061 * hppa-tdep.c (read_unwind_info): Update.
18062 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18063 * dwarf2read.c (create_addrmap_from_index)
18064 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18065 (process_psymtab_comp_unit_reader, add_partial_symbol)
18066 (add_partial_subprogram, process_full_comp_unit)
18067 (read_file_scope, read_func_scope, read_lexical_block_scope)
18068 (read_call_site_scope, dwarf2_rnglists_process)
18069 (dwarf2_ranges_process, dwarf2_ranges_read)
18070 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18071 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18073 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18075 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18076 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18077 (process_one_symbol): Change type of "section_offsets".
18078 * ctfread.c (get_objfile_text_range): Update.
18079 * coffread.c (coff_symtab_read, enter_linenos)
18080 (process_coff_symbol): Update.
18081 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18082 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18084 2020-01-08 Tom Tromey <tromey@adacore.com>
18086 * dwarf2read.c (parse_macro_definition): Use std::string.
18087 (parse_macro_definition): Likewise.
18089 2020-01-08 Tom Tromey <tromey@adacore.com>
18091 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18092 (ATTR_ALLOC_CHUNK): Remove.
18094 2020-01-08 Tom Tromey <tromey@adacore.com>
18096 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18098 2020-01-08 Tom Tromey <tromey@adacore.com>
18100 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18101 (dwarf2_compute_name, open_dwo_file): Likewise.
18102 (process_enumeration_scope): Use std::vector.
18103 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18104 (partial_die_info::fixup, dwarf2_start_subfile)
18105 (guess_full_die_structure_name, dwarf2_name): Likewise.
18106 (determine_prefix): Update.
18107 (guess_full_die_structure_name): Make return type const.
18108 (partial_die_full_name): Return unique_xmalloc_ptr.
18109 (DW_FIELD_ALLOC_CHUNK): Remove.
18111 2020-01-07 Tom Tromey <tromey@adacore.com>
18114 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18116 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18118 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18120 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18122 * stack.c (print_frame_info): Move disassemble_next_line code
18123 inside source_print block.
18125 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18127 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18128 gdb/signals.h, as we are now using native signal symbols.
18130 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18132 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18133 overflow by an early check of content vs threshold.
18134 * tui/tui-source.c (tui_source_window::line_is_displayed):
18137 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18139 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18141 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18143 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18144 export table if no section contains it's RVA.
18146 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18148 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18150 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18152 * source.c (print_source_lines_base): Set last_line_listed.
18154 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18156 * tui/tui-disasm.c: Remove trailing spaces.
18158 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18159 Pedro Alves <palves@redhat.com>
18161 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18162 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18163 (windows_gdb_signal_to_target): New function, uses the above
18164 enumeration to convert GDB internal signal codes to equivalent
18166 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18167 * windows-nat.c: Include "gdb_wait.h".
18168 (get_windows_debug_event): Extract the fatal exception from the
18169 exit status and convert to the equivalent Posix signal number.
18170 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18171 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18172 * gdbsupport/gdb_wait.c: New file, implements
18173 windows_status_to_termsig.
18174 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18175 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18177 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18179 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18182 2020-01-05 Luis Machado <luis.machado@linaro.org>
18184 * aarch64-linux-nat.c
18185 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18186 and bfd_mach_aarch64.
18188 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18190 * ui-file.c (stdio_file::can_emit_style_escape)
18191 (tee_file::can_emit_style_escape): Ensure style is used also on
18192 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18194 * main.c (set_gdb_data_directory): Use file style to output the
18195 warning that the given pathname is not a directory.
18196 * top.c (show_history_filename, gdb_safe_append_history)
18197 (show_gdb_datadir): Use file style.
18199 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18201 * solib-target.c (struct lm_info_target):
18202 Change offsets to be a unique_xmalloc_ptr.
18203 (solib_target_relocate_section_addresses): Update.
18205 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18207 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18209 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18211 * MAINTAINERS (Write After Approval): Add myself.
18213 2020-01-02 Luis Machado <luis.machado@linaro.org>
18215 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18216 Cell BE architecture.
18217 * target.h (struct target_ops) <thread_architecture>: Likewise.
18219 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18221 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18223 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18225 * MAINTAINERS (Write After Approval): Add myself.
18227 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18229 * gdbarch.sh: Update copyright year range of generated files.
18231 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18233 Update copyright year range in all GDB files.
18235 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18237 * copyright.py: Convert to Python 3.
18239 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18241 * copyright.py: Adapt after move of gnulib directory from gdb
18242 directory to toplevel directory.
18244 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18246 * copyright.py (main): Exit if run from the wrong directory.
18248 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18250 * top.c (print_gdb_version): Change copyright year to 2020.
18252 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18254 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18256 For older changes see ChangeLog-2019.
18262 version-control: never