1 2020-12-11 Tom Tromey <tom@tromey.com>
3 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
4 (varobj_get_iterator): Return unique_ptr.
5 (update_dynamic_varobj_children, install_visualizer)
6 (varobj::~varobj): Update.
7 * python/python-internal.h (py_varobj_get_iterator): Return
9 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
11 2020-12-11 Tom Tromey <tom@tromey.com>
13 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
14 (varobj_clear_saved_item, update_dynamic_varobj_children):
17 2020-12-11 Tom Tromey <tom@tromey.com>
19 * varobj.c (update_dynamic_varobj_children): Update.
20 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
21 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
23 (py_varobj_iter::next): Likewise.
25 2020-12-11 Tom Tromey <tom@tromey.com>
27 * varobj.c (update_dynamic_varobj_children, install_visualizer)
28 (varobj::~varobj): Update.
29 * varobj-iter.h (struct varobj_iter): Change to interface class.
30 (struct varobj_iter_ops): Remove.
31 (varobj_iter_next, varobj_iter_delete): Remove.
32 * python/py-varobj.c (struct py_varobj_iter): Derive from
33 varobj_iter. Add constructor, destructor. Rename members.
34 (py_varobj_iter::~py_varobj_iter): Rename from
36 (py_varobj_iter::next): Rename from py_varobj_iter_next.
37 (py_varobj_iter_ops): Remove.
38 (py_varobj_iter): Rename from py_varobj_iter_ctor.
39 (py_varobj_iter_new): Remove.
40 (py_varobj_get_iterator): Update.
42 2020-12-11 Tom Tromey <tom@tromey.com>
44 * varobj.h (all_root_varobjs): Take a function_view.
45 * varobj.c (all_root_varobjs): Take a function_view.
46 (varobj_invalidate_iter): Remove unused parameter.
47 (varobj_invalidate): Update.
48 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
49 (mi_cmd_var_update_iter): Change parameters.
51 2020-12-11 Tom Tromey <tom@tromey.com>
53 * varobj.c (struct varobj_root) <next>: Remove.
54 (struct vlist): Remove.
55 (rootlist): Now a std::list.
56 (install_variable, uninstall_variable, all_root_varobjs): Update.
58 2020-12-11 Tom Tromey <tom@tromey.com>
60 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
61 (varobj_table): Now htab_t.
62 (varobj_get_handle, install_variable, uninstall_variable):
64 (hash_varobj, eq_varobj_and_string): New functions.
65 (hash_varobj): Update.
67 2020-12-11 Tom Tromey <tom@tromey.com>
69 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
70 * ada-lang.c (check_status_exception): Update.
71 * breakpoint.c (free_bp_location): Remove.
72 (decref_bp_location): Use bp_location_ref_policy.
73 (bpstats::bpstats): Don't call incref_bp_location.
74 (bpstats::~bpstats): Remove.
75 (bpstats::bpstats): Update.
76 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
77 (bp_location::bp_location): Update.
78 (incref_bp_location): Remove.
79 (bkpt_print_it): Update.
80 * breakpoint.h (class bp_location): Derive from
82 (struct bpstats): Remove destructor.
83 <bp_location_at>: Now a bp_location_ref_ptr.
85 (bp_location_ref_ptr): New typedef.
86 (struct bp_location_ref_policy): New.
88 2020-12-11 Tom Tromey <tom@tromey.com>
90 * thread.c (class scoped_inc_dec_ref): Remove.
91 (tp_array_compar_ascending, tp_array_compar_descending): Change
93 (thread_apply_all_command): Use thread_info_ref.
95 2020-12-11 Tom Tromey <tom@tromey.com>
97 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
98 (stop_context::stop_context): Update.
99 (stop_context::~stop_context): Remove.
101 2020-12-11 Tom Tromey <tom@tromey.com>
103 * inferior.c (current_inferior_): Change type.
104 (current_inferior, set_current_inferior, initialize_inferiors):
107 2020-12-11 Tom Tromey <tom@tromey.com>
109 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
112 2020-12-11 Tom Tromey <tromey@adacore.com>
114 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
116 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
117 (read_atcb): Use cpu_id_offset.
119 2020-12-10 Kevin Buettner <kevinb@redhat.com>
121 * ada-lang.c (ada_fold_name): Fix off-by-one error.
123 2020-12-10 Luis Machado <luis.machado@linaro.org>
125 * breakpoint.c (should_be_inserted): Don't output newline.
127 2020-12-10 Luis Machado <luis.machado@linaro.org>
129 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
130 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
131 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
132 * arch/aarch64.h: ... here.
133 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
134 (aarch64_maybe_swab128): New function.
135 (aarch64_sve_regs_copy_to_reg_buf)
136 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
137 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
139 (TF_REG_VALUE_BYTES): New enum value.
140 (trad_frame_value_bytes_p): New function.
141 (trad_frame_set_value_bytes): New function.
142 (trad_frame_set_reg_value_bytes): New function.
143 (trad_frame_get_prev_register): Handle register values saved as bytes.
144 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
145 (struct trad_frame_saved_reg) <data>: New field.
146 (trad_frame_set_value_bytes): New prototype.
147 (trad_frame_value_bytes_p): New prototype.
149 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
151 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
152 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
153 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
155 2020-12-09 Tom Tromey <tromey@adacore.com>
157 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
159 2020-12-09 Tom Tromey <tromey@adacore.com>
161 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
162 and "denominator" to gdb_mpz. Handle block forms.
163 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
164 "denominator" to gdb_mpz.
165 (finish_fixed_point_type): Update.
166 (has_zero_over_zero_small_attribute): Update.
168 2020-12-09 Tom Tromey <tromey@adacore.com>
170 * expprint.c (op_name): Update.
171 * expression.h (enum exp_opcode): Update.
172 * std-operator.def: Add more opcodes.
173 * ada-operator.def, fortran-operator.def: Remove, moving contents
174 into std-operator.def.
176 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
178 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
179 Return {} instead of false.
180 (get_discrete_bounds): Compute high bound only if low bound is
183 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
186 * gdbtypes.c (get_discrete_low_bound): Make non-static.
187 (get_discrete_high_bound): Make non-static.
188 * gdbtypes.h (get_discrete_low_bound): New declaration.
189 (get_discrete_high_bound): New declaration.
190 * valarith.c (value_subscript): Only fetch high bound if
193 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
195 * gdbtypes.c (get_discrete_bounds): Implement with
196 get_discrete_low_bound and get_discrete_high_bound.
197 (get_discrete_low_bound): New.
198 (get_discrete_high_bound): New.
200 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
202 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
204 * gdbtypes.c (get_discrete_bounds): Return bool.
206 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
208 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
209 (ada_value_slice): Adjust.
211 * gdbtypes.c (get_discrete_bounds): Adjust.
212 (discrete_position): Return optional.
213 * gdbtypes.h (discrete_position): Return optional.
215 2020-12-07 Tom Tromey <tromey@adacore.com>
217 * maint.c (_initialize_maint_cmds): Use expression command
218 completer for "maint print type".
220 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
222 * completer.c (complete_explicit_location): Also add keywords
223 that start with '-' to the completion list.
225 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
227 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
228 keyword may be followed by any keyword.
229 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
230 'toklen' in the case for "-force-condition".
232 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
234 * main.c (catch_command_errors): Add a flag parameter; invoke
235 `bpstat_do_actions` if the flag is set.
236 (execute_cmdargs): Update a call to `catch_command_errors`.
238 2020-12-07 Tom de Vries <tdevries@suse.de>
240 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
242 2020-12-06 Tom Tromey <tom@tromey.com>
245 * ada-lang.c (replace_operator_with_call): Rewrite.
247 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
250 * s390-tdep.h (op_bc): Correct BC opcode value.
252 2020-12-06 Joel Brobecker <brobecker@adacore.com>
254 * gmp-utils.h (gdb_mpz::safe_export): New private method.
255 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
256 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
257 (gdb_mpz::safe_export): New method.
258 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
259 Update function description.
260 (check_as_integer_raises_out_of_range_error): New function.
261 (gdb_mpz_as_integer_out_of_range): New function.
262 (_initialize_gmp_utils_selftests): Register
263 gdb_mpz_as_integer_out_of_range as a selftest.
265 2020-12-05 Joel Brobecker <brobecker@adacore.com>
267 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
269 (gdb_mpz::write): Likewise.
271 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
273 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
274 number of displaced step buffers.
276 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
278 * displaced-stepping.h (struct displaced_step_buffer): Rename
280 (struct displaced_step_buffers): ... this.
281 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
282 <struct displaced_step_buffer>: New inner class.
284 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
286 (displaced_step_buffers::prepare): ... this, adjust for multiple
288 (displaced_step_buffer::finish): Rename to...
289 (displaced_step_buffers::finish): ... this, adjust for multiple
291 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
292 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
293 adjust for multiple buffers.
294 (displaced_step_buffer::restore_in_ptid): Rename to...
295 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
297 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
298 for num_disp_step_buffers.
299 * linux-tdep.c (struct linux_gdbarch_data)
300 <num_disp_step_buffers>: New field.
301 (struct linux_info) <disp_step_buf>: Rename to...
302 <disp_step_bufs>: ... this, change type to
303 displaced_step_buffers.
304 (linux_displaced_step_prepare): Use
305 linux_gdbarch_data::num_disp_step_buffers to create that number
307 (linux_displaced_step_finish): Adjust.
308 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
309 (linux_displaced_step_restore_all_in_ptid): Adjust.
310 (linux_init_abi): Change supports_displaced_step parameter for
311 num_disp_step_buffers, save it in linux_gdbarch_data.
312 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
313 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
314 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
315 supports_displaced_step parameter for num_disp_step_buffers.
316 (amd64_linux_init_abi): Adjust.
317 (amd64_x32_linux_init_abi): Adjust.
318 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
319 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
320 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
321 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
322 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
323 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
324 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
325 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
326 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
327 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
328 * m68k-linux-tdep.c (m68k_linux_init_abi):
329 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
330 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
331 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
332 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
333 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
334 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
335 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
336 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
337 Change type to displaced_step_buffers.
338 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
339 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
340 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
341 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
342 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
343 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
344 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
346 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
348 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
350 (_initialize_linux_tdep): Register pre-init gdb data instead of
353 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
355 * displaced-stepping.h (struct
356 displaced_step_copy_insn_closure): Adjust comments.
357 (struct displaced_step_inferior_state) <step_thread,
358 step_gdbarch, step_closure, step_original, step_copy,
359 step_saved_copy>: Remove fields.
360 (struct displaced_step_thread_state): New.
361 (struct displaced_step_buffer): New.
362 * displaced-stepping.c (displaced_step_buffer::prepare): New.
363 (write_memory_ptid): Move from infrun.c.
364 (displaced_step_instruction_executed_successfully): New,
365 factored out of displaced_step_finish.
366 (displaced_step_buffer::finish): New.
367 (displaced_step_buffer::copy_insn_closure_by_addr): New.
368 (displaced_step_buffer::restore_in_ptid): New.
369 * gdbarch.sh (displaced_step_location): Remove.
370 (displaced_step_prepare, displaced_step_finish,
371 displaced_step_copy_insn_closure_by_addr,
372 displaced_step_restore_all_in_ptid): New.
373 * gdbarch.c: Re-generate.
374 * gdbarch.h: Re-generate.
375 * gdbthread.h (class thread_info) <displaced_step_state>: New
377 (thread_step_over_chain_remove): New declaration.
378 (thread_step_over_chain_next): New declaration.
379 (thread_step_over_chain_length): New declaration.
380 * thread.c (thread_step_over_chain_remove): Make non-static.
381 (thread_step_over_chain_next): New.
382 (global_thread_step_over_chain_next): Use
383 thread_step_over_chain_next.
384 (thread_step_over_chain_length): New.
385 (global_thread_step_over_chain_enqueue): Add debug print.
386 (global_thread_step_over_chain_remove): Add debug print.
387 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
389 * infrun.c (get_displaced_stepping_state): New.
390 (displaced_step_in_progress_any_inferior): Remove.
391 (displaced_step_in_progress_thread): Adjust.
392 (displaced_step_in_progress): Adjust.
393 (displaced_step_in_progress_any_thread): New.
394 (get_displaced_step_copy_insn_closure_by_addr): Remove.
395 (gdbarch_supports_displaced_stepping): Use
396 gdbarch_displaced_step_prepare_p.
397 (displaced_step_reset): Change parameter from inferior to
399 (displaced_step_prepare_throw): Implement using
400 gdbarch_displaced_step_prepare.
401 (write_memory_ptid): Move to displaced-step.c.
402 (displaced_step_restore): Remove.
403 (displaced_step_finish): Implement using
404 gdbarch_displaced_step_finish.
405 (start_step_over): Allow starting more than one displaced step.
406 (prepare_for_detach): Handle possibly multiple threads doing
408 (handle_inferior_event): Handle possibility that fork event
409 happens while another thread displaced steps.
410 * linux-tdep.h (linux_displaced_step_prepare): New.
411 (linux_displaced_step_finish): New.
412 (linux_displaced_step_copy_insn_closure_by_addr): New.
413 (linux_displaced_step_restore_all_in_ptid): New.
414 (linux_init_abi): Add supports_displaced_step parameter.
415 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
416 (linux_displaced_step_prepare): New.
417 (linux_displaced_step_finish): New.
418 (linux_displaced_step_copy_insn_closure_by_addr): New.
419 (linux_displaced_step_restore_all_in_ptid): New.
420 (linux_init_abi): Add supports_displaced_step parameter,
421 register displaced step methods if true.
422 (_initialize_linux_tdep): Register inferior_execd observer.
423 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
424 supports_displaced_step parameter, adjust call to
425 linux_init_abi. Remove call to
426 set_gdbarch_displaced_step_location.
427 (amd64_linux_init_abi): Adjust call to
428 amd64_linux_init_abi_common.
429 (amd64_x32_linux_init_abi): Likewise.
430 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
431 linux_init_abi. Remove call to
432 set_gdbarch_displaced_step_location.
433 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
434 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
435 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
437 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
438 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
439 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
440 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
441 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
442 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
443 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
444 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
445 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
446 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
447 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
448 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
449 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
450 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
451 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
452 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
453 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
454 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
455 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
456 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
457 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
458 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
459 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
460 linux_init_abi. Remove call to
461 set_gdbarch_displaced_step_location.
462 * arm-tdep.c (arm_pc_is_thumb): Call
463 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
464 get_displaced_step_copy_insn_closure_by_addr.
465 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
466 clear gdbarch methods.
467 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
468 (get_ppc_per_inferior): New function.
469 (ppc_displaced_step_prepare): New function.
470 (ppc_displaced_step_finish): New function.
471 (ppc_displaced_step_restore_all_in_ptid): New function.
472 (rs6000_gdbarch_init): Register new gdbarch methods.
473 * s390-tdep.c (s390_gdbarch_init): Don't call
474 set_gdbarch_displaced_step_location, set new gdbarch methods.
476 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
478 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
479 * aarch64-tdep.h: Include displaced-stepping.h.
480 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
482 (displaced_step_copy_insn_closure_up): Move here.
483 (struct buf_displaced_step_copy_insn_closure): Move here.
484 (struct displaced_step_inferior_state): Move here.
485 (debug_displaced): Move here.
486 (displaced_debug_printf_1): Move here.
487 (displaced_debug_printf): Move here.
488 * displaced-stepping.c: New file.
489 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
490 * gdbarch.h: Re-generate.
491 * inferior.h: Include displaced-stepping.h.
492 * infrun.h (debug_displaced): Move to displaced-stepping.h.
493 (displaced_debug_printf_1): Likewise.
494 (displaced_debug_printf): Likewise.
495 (struct displaced_step_copy_insn_closure): Likewise.
496 (displaced_step_copy_insn_closure_up): Likewise.
497 (struct buf_displaced_step_copy_insn_closure): Likewise.
498 (struct displaced_step_inferior_state): Likewise.
499 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
500 (displaced_debug_printf_1): Likewise.
501 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
503 (_initialize_infrun): Don't register "set/show debug displaced".
505 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
507 * linux-tdep.c (get_linux_inferior_data): Add inferior
509 (linux_vsyscall_range): Pass current inferior.
511 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
513 * infrun.c (displaced_step_prepare_throw): Change return type to
514 displaced_step_prepare_status.
515 (displaced_step_prepare): Likewise.
516 (displaced_step_finish): Change return type to
517 displaced_step_finish_status.
519 (stop_all_threads): Adjust.
520 * displaced-stepping.h: New file.
522 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
524 * infrun.c (displaced_step_fixup): Rename to...
525 (displaced_step_finish): ... this, update all callers.
527 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
529 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
530 (get_displaced_step_copy_insn_closure_by_addr): ... this.
532 (displaced_step_closure): Rename to...
533 (displaced_step_copy_insn_closure): ... this. Update all users.
534 (displaced_step_closure_up): Rename to...
535 (displaced_step_copy_insn_closure_up). ... this. Update all
537 (buf_displaced_step_closure): Rename to...
538 (buf_displaced_step_copy_insn_closure): ... this. Update all
540 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
541 (get_displaced_step_copy_insn_closure_by_addr): ... this.
543 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
544 (aarch64_displaced_step_copy_insn_closure): ... this. Update
546 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
547 (amd64_displaced_step_copy_insn_closure): ... this. Update all
549 * arm-tdep.h (arm_displaced_step_closure): Rename to...
550 (arm_displaced_step_copy_insn_closure): ... this. Update all
552 * i386-tdep.h (i386_displaced_step_closure): Rename to...
553 (i386_displaced_step_copy_insn_closure): ... this. Update all
555 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
556 (ppc_displaced_step_copy_insn_closure): ... this. Update all
558 * s390-tdep.c (s390_displaced_step_closure): Rename to...
559 (s390_displaced_step_copy_insn_closure): ... this. Update all
561 * gdbarch.h: Re-generate.
562 * gdbarch.c: Re-generate.
564 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
566 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
567 (global_thread_step_over_chain_enqueue): ... this. Update all
569 (thread_step_over_chain_remove): Rename to...
570 (global_thread_step_over_chain_remove): ... this. Update all
572 (thread_step_over_chain_next): Rename to...
573 (global_thread_step_over_chain_next): ... this. Update all
575 * infrun.h (step_over_queue_head): Rename to...
576 (global_thread_step_over_chain_head): ... this. Update all
578 * infrun.c (step_over_queue_head): Rename to...
579 (global_thread_step_over_chain_head): ... this. Update all
581 * thread.c (step_over_chain_remove): Rename to...
582 (thread_step_over_chain_remove): ... this. Update all users.
583 (thread_step_over_chain_next): Rename to...
584 (global_thread_step_over_chain_next): ... this. Update all
586 (thread_step_over_chain_enqueue): Rename to...
587 (global_thread_step_over_chain_enqueue): ... this. Update all
589 (thread_step_over_chain_remove): Rename to...
590 (global_thread_step_over_chain_remove): ... this. Update all
593 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
595 * infrun.c (get_displaced_stepping_state): Remove, change
596 callers to access the field directly.
598 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
600 * infrun.c (handle_inferior_event): Restore displaced step
601 buffer bytes in child process when handling fork, even if fork
602 happened in another thread than the displaced-stepping one.
604 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
606 * infrun.c (infrun_inferior_execd): New function.
607 (_initialize_infrun): Attach inferior_execd observer.
609 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
611 * observable.h (inferior_execd): Declare new observable.
612 * observable.c (inferior_execd): Declare new observable.
613 * infrun.c (follow_exec): Notify inferior_execd observer.
614 * jit.c (jit_inferior_created_hook): Make static.
615 (_initialize_jit): Register inferior_execd observer.
616 * jit.h (jit_inferior_created_hook): Remove declaration.
617 * solib.c (_initialize_solib): Register inferior_execd observer.
619 2020-12-04 Tom de Vries <tdevries@suse.de>
622 * completer.c (completion_tracker::build_completion_result): Don't
623 access match_list[0][-1].
625 2020-12-04 Tom Tromey <tromey@adacore.com>
627 * linespec.c (struct linespec_token): Rename; remove typedef.
628 * guile/scm-block.c (struct block_smob): Remove typedef.
629 (struct block_syms_progress_smob): Likewise.
630 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
631 * guile/scm-symtab.c (symtab_smob): Remove typedef.
632 (struct sal_smob): Remove typedef.
633 * guile/scm-param.c (struct param_smob): Remove typedef.
634 * guile/scm-progspace.c (struct pspace_smob): Rename.
635 * guile/scm-objfile.c (struct objfile_smob): Rename.
636 * guile/scm-iterator.c (struct iterator_smob): Rename.
637 * guile/scm-frame.c (struct frame_smob): Rename.
638 * guile/scm-arch.c (struct arch_smob): Rename.
639 * guile/scm-type.c (struct field_smob): Remove typedef.
640 (struct type_smob): Rename.
641 * guile/scm-cmd.c (struct command_smob): Remove typedef.
642 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
643 * guile/scm-value.c (struct value_smob): Remove typedef.
644 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
645 * guile/guile-internal.h (struct scheme_variable)
646 (struct scheme_function, struct scheme_integer_constant)
647 (struct gdb_smob, struct chained_gdb_smob)
648 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
649 (objfile_smob, pspace_smob, type_smob): Remove typedef.
650 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
651 (struct pretty_printer_worker_smob): Remove typedef.
652 * guile/scm-exception.c (struct exception_smob): Remove typedef.
653 * python/py-block.c (struct block_object): Remove typedef.
654 (block_syms_iterator_object): Update.
656 (block_syms_iterator_object): Remove typedef.
657 * python/py-inferior.c (struct membuf_object): Remove typedef.
658 * python/py-symtab.c (struct symtab_object): Remove typedef.
659 (set_symtab): Update.
660 (sal_object): Remove typedef.
662 * python/py-frame.c (frame_object): Remove typedef.
663 * python/py-record-btrace.c (struct btpy_list_object): Remove
665 * python/py-arch.c (struct arch_object): Remove typedef.
666 * python/py-linetable.c (struct linetable_entry_object)
667 (linetable_object, struct ltpy_iterator_object): Remove typedef.
668 * python/py-events.h (eventregistry_object): Remove typedef.
669 (struct events_object): Remove typedef.
670 * python/python-internal.h (gdbpy_breakpoint_object): Remove
672 (thread_object): Remove typedef.
673 * python/py-progspace.c (pspace_object): Remove typedef.
674 * python/py-value.c (struct value_object): Remove typedef.
675 * python/py-record.h (recpy_record_object): Remove typedef.
676 (struct recpy_element_object): Remove typedef.
677 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
678 * python/py-objfile.c (objfile_object): Remove typedef.
679 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
680 * python/py-type.c (type_object): Remove typedef.
681 (typy_iterator_object): Update.
683 (field_object): Remove typedef.
684 (typy_iterator_object): Remove typedef.
685 * python/py-registers.c (register_descriptor_iterator_object):
687 (struct register_descriptor_object)
688 (struct reggroup_iterator_object, struct reggroup_object): Remove
690 * python/py-record.c (recpy_gap_object): Remove typedef.
691 * python/py-symbol.c (symbol_object): Remove typedef.
692 (set_symbol): Update.
693 * python/py-event.h (event_object): Remove typedef.
694 * python/py-param.c (parmpy_object): Remove typedef.
695 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
696 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
697 (unwind_info_object, struct cached_frame_info): Likewise.
699 2020-12-04 Tom Tromey <tromey@adacore.com>
701 * value.c (value_internal_function_name): Make return type const.
702 * value.h (value_internal_function_name): Make return type const.
704 2020-12-04 Luis Machado <luis.machado@linaro.org>
706 * aarch64-tdep.c (submask, bit, bits): Remove.
707 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
708 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
709 (aarch64_decode_cb, aarch64_decode_tb)
710 (aarch64_decode_ldr_literal): Use sbits to extract a signed
712 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
714 2020-12-04 Tom de Vries <tdevries@suse.de>
717 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
719 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
722 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
723 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
725 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
727 * arch/riscv.c: Include 'rv32e-xregs.c'.
728 (riscv_create_target_description): Update to handle rv32e.
729 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
731 <operator==>: Update to account for new field.
733 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
734 * features/riscv/rv32e-xregs.c: Generated.
735 * features/riscv/rv32e-xregs.xml: New file.
736 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
738 (riscv_debug_infcall): Likewise.
739 (riscv_debug_unwinder): Likewise.
740 (riscv_debug_gdbarch): Likewise.
741 (enum riscv_register_required_status): Delete.
742 (struct riscv_register_feature): Add constructor, delete default
743 constructor, copy, and assign constructors.
744 (struct riscv_register_feature::register_info) <required>: Delete.
745 <check>: Update comment and arguments.
746 (struct riscv_register_feature) <name>: Change to member function.
747 <prefer_first_name>: Delete.
748 <tdesc_feature>: New member function.
749 <registers>: Rename to...
750 <m_registers>: ...this.
751 <m_feature_name>: New member variable.
752 (riscv_register_feature::register_info::check): Update arguments.
753 (riscv_xreg_feature): Rewrite as class, create a single static
754 instance of the class.
755 (riscv_freg_feature): Likewise.
756 (riscv_virtual_feature): Likewise.
757 (riscv_csr_feature): Likewise.
758 (riscv_create_csr_aliases): Has become a member function inside
759 riscv_csr_feature class.
760 (riscv_abi_embedded): New function definition.
761 (riscv_register_name): Adjust to use new feature objects.
762 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
763 and adjust available argument registers.
764 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
765 (riscv_check_tdesc_feature): Delete.
766 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
767 (riscv_gdbarch_init): Delete target description checking code, and
768 instead call to the new feature objects to perform the checks.
769 Reorder handling of no abi information case, allows small code
771 (_initialize_riscv_tdep): Remove call, this is now done in the
772 riscv_csr_feature constructor.
773 * riscv-tdep.h (riscv_abi_embedded): Declare.
775 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
777 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
780 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
782 * riscv-tdep.c (riscv_is_unknown_csr): New function,
783 implementation moved from riscv_register_reggroup_p.
784 (riscv_register_reggroup_p): Update group handling for unknown
787 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
789 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
790 (dwarf2_get_dwz_file): Convert 'filename' to a
791 std::string. Use dwz_search_other_debugdirs to search for DWZ
792 files in the debug-file-directories provided by the user as well.
794 2020-12-01 Tom Tromey <tom@tromey.com>
796 * parse.c (expr_builder::expr_builder): Initialize expout.
797 (expr_builder::release): Use expression::resize.
798 (expression::expression, expression::~expression)
799 (expression::resize): New methods.
800 (write_exp_elt): Use expression::resize.
801 (prefixify_expression): Update.
802 (increase_expout_size): Use expression::resize.
803 * expression.h (struct expression): Add constructor, destructor.
804 <resize>: New method.
805 (expression_up): Change type.
807 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
808 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
809 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
812 2020-11-30 Tom de Vries <tdevries@suse.de>
815 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
816 is_reference parameter.
817 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
819 2020-11-30 Tom Tromey <tom@tromey.com>
821 * rust-lang.c (rust_op_name): Remove.
822 (exp_descriptor_rust): Update.
823 * parser-defs.h (op_name_standard): Don't declare.
824 (struct exp_descriptor) <op_name>: Remove.
825 * parse.c (exp_descriptor_standard): Update.
826 * opencl-lang.c (exp_descriptor_opencl): Update.
827 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
828 * f-lang.c (op_name_f): Remove.
829 (f_language::exp_descriptor_tab): Update.
830 * expression.h (op_name): Update.
831 * expprint.c (op_name): Rewrite.
832 (op_name_standard): Remove.
833 (dump_raw_expression, dump_subexp): Update.
834 * c-lang.c (exp_descriptor_c): Update.
835 * ax-gdb.c (gen_expr): Update.
836 * ada-lang.c (ada_op_name): Remove.
837 (ada_exp_descriptor): Update.
839 2020-11-30 Tom Tromey <tom@tromey.com>
841 * eval.c (init_array_element): Remove.
842 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
844 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
847 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
848 static locator win info.
850 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
852 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
855 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
857 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
858 is always initialized.
860 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
861 * MAINTAINERS (Write After Approval): Add myself.
863 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
865 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
866 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
868 2020-11-25 Tom Tromey <tom@tromey.com>
870 * eval.c (evaluate_subexp_standard): Remove unnecessary
873 2020-11-25 Tom Tromey <tom@tromey.com>
875 * d-lang.c: Include parser-defs.h.
876 * rust-lang.c: Include parser-defs.h.
877 * c-lang.h: Do not include parser-defs.h.
879 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
881 * regcache.h (struct cached_reg): Remove typedef.
883 2020-11-24 Joel Brobecker <brobecker@adacore.com>
885 * README: Fix the URL of the MPFR library.
887 2020-11-24 Joel Brobecker <brobecker@adacore.com>
889 * README: Document the --with-libgmp-prefix configure option.
891 2020-11-24 Joel Brobecker <brobecker@adacore.com>
893 * NEWS: Add entry documenting support for DWARF-based fixed
896 2020-11-24 Joel Brobecker <brobecker@adacore.com>
898 * NEWS: Document that building GDB now requires GMP.
900 2020-11-24 Joel Brobecker <brobecker@adacore.com>
902 * typeprint.c (print_type_scalar): Add handling of
903 TYPE_CODE_FIXED_POINT.
905 2020-11-24 Joel Brobecker <brobecker@adacore.com>
907 * valarith.c (fixed_point_binop): Replace the
908 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
911 2020-11-24 Joel Brobecker <brobecker@adacore.com>
913 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
914 replacing fixed_point_scaling_factor. All callers updated
915 throughout this project.
916 (fixed_point_scaling_factor): Delete declaration.
917 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
918 fixed_point_scaling_factor. Adjust implementation accordingly.
920 2020-11-24 Joel Brobecker <brobecker@adacore.com>
922 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
923 replacing the fixed_point_type_base_type function. All callers
924 updated throughout this project.
925 (fixed_point_type_base_type): Remove declaration.
926 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
927 fixed_point_type_base_type. Adjust implementation accordingly.
929 2020-11-24 Joel Brobecker <brobecker@adacore.com>
931 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
933 (INIT_FIXED_POINT_SPECIFIC): Adjust.
934 (TYPE_FIXED_POINT_INFO): Delete macro.
935 (allocate_fixed_point_type_info): Change return type to void.
936 * gdbtypes.c (copy_type_recursive): Replace the use of
937 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
938 (fixed_point_scaling_factor): Likewise.
939 (allocate_fixed_point_type_info): Change return type to void.
940 Adjust implementation accordingly.
941 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
942 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
944 2020-11-24 Joel Brobecker <brobecker@adacore.com>
946 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
947 into one single gdb::array_view parameter.
948 (gdb_mpz::write): Likewise.
949 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
950 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
951 into one single gdb::array_view parameter.
952 Adjust implementation accordingly.
953 (gdb_mpz::write): Likewise.
954 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
955 * unittests/gmp-utils-selftests.c: Adapt following changes above.
956 * valarith.c, valops.c, valprint.c, value.c: Likewise.
958 2020-11-24 Joel Brobecker <brobecker@adacore.com>
960 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
961 Change return type to std::string. Update all callers.
962 * gmp-utils.c (gmp_string_printf): Likewise.
964 2020-11-24 Joel Brobecker <brobecker@adacore.com>
966 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
967 instead of mpq_set_ui to initialize our GMP rational.
969 2020-11-23 Tom de Vries <tdevries@suse.de>
971 * debuginfod-support.c (debuginfod_source_query)
972 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
974 2020-11-21 Tom Tromey <tom@tromey.com>
976 * breakpoint.c (watchpoint_exp_is_const): Return bool.
978 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
980 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
982 (gdb_mpz_write_all_from_small): Likewise.
984 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
986 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
989 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
991 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
992 ctf_arc_open_by_name.
994 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
996 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
997 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
999 2020-11-20 Pedro Alves <pedro@palves.net>
1001 * language.c (language_arch_info::lookup_primitive_type): Use
1002 gdb::function_view instead of gdb::function.
1003 (template language_lookup_primitive_type): Rename to ...
1004 (language_lookup_primitive_type_1): ... this, and make static.
1005 (language_lookup_primitive_type(const struct language_defn *,
1006 struct gdbarch *, const char *): Make non-template.
1007 (language_lookup_primitive_type(const struct language_defn *,
1008 struct gdbarch *, std::function<bool (struct type *)>): Make
1009 non-template and use gdb::function_view.
1010 * language.h (language_arch_info::lookup_primitive_type): Use
1011 gdb::function_view instead of std::function.
1012 (language_lookup_primitive_type): No longer template.
1013 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1014 lambda instead of a std::function.
1016 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1019 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1022 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1024 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1026 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1028 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1029 in `loop_cb` parameter.
1030 * gdbarch.c: Re-generate.
1031 * gdbarch.h: Re-generate.
1032 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1034 * arch-utils.h (default_read_core_file_mappings): Likewise.
1035 * corelow.c (core_target::build_file_mappings): Likewise.
1036 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1037 (linux_core_info_proc_mappings): Likewise.
1039 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1041 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1042 * NEWS: Mention new options.
1043 * f-array-walker.h: New file.
1044 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1045 (repack_array_slices): New static global.
1046 (show_repack_array_slices): New function.
1047 (fortran_array_slicing_debug): New static global.
1048 (show_fortran_array_slicing_debug): New function.
1049 (value_f90_subarray): Delete.
1050 (skip_undetermined_arglist): Delete.
1051 (class fortran_array_repacker_base_impl): New class.
1052 (class fortran_lazy_array_repacker_impl): New class.
1053 (class fortran_array_repacker_impl): New class.
1054 (fortran_value_subarray): Complete rewrite.
1055 (set_fortran_list): New static global.
1056 (show_fortran_list): Likewise.
1057 (_initialize_f_language): Register new commands.
1058 (fortran_adjust_dynamic_array_base_address_hack): New function.
1059 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1061 * f-valprint.c: Include 'f-array-walker.h'.
1062 (class fortran_array_printer_impl): New class.
1063 (f77_print_array_1): Delete.
1064 (f77_print_array): Delete.
1065 (fortran_print_array): New.
1066 (f_value_print_inner): Update to call fortran_print_array.
1067 * gdbtypes.c: Include 'f-lang.h'.
1068 (resolve_dynamic_type_internal): Call
1069 fortran_adjust_dynamic_array_base_address_hack.
1071 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1073 * breakpoint.c (struct watch_options): New struct.
1074 (watch_option_defs): New static global.
1075 (make_watch_options_def_group): New function.
1076 (watch_maybe_just_location): Convert option parsing.
1077 (watch_command_completer): New function.
1078 (_initialize_breakpoint): Build help text using options mechanism.
1080 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1082 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1083 (watch_command_1): Update parameter types. Convert locals to
1085 (watch_command_wrapper): Change parameter type.
1086 (watch_maybe_just_location): Change locals to bool.
1087 (rwatch_command_wrapper): Update parameter type.
1088 (awatch_command_wrapper): Update parameter type.
1089 * breakpoint.h (watch_command_wrapper): Change parameter type.
1090 (rwatch_command_wrapper): Update parameter type.
1091 (awatch_command_wrapper): Update parameter type.
1092 * eval.c (fetch_subexp_value): Change parameter type.
1093 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1095 * value.h (fetch_subexp_value): Change parameter type in
1098 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1100 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1103 2020-11-18 Keith Seitz <keiths@redhat.com>
1105 * linux-tdep.c (dump_note_entry_p): Return true instead of
1106 checking `filename'.
1108 2020-11-18 Tom de Vries <tdevries@suse.de>
1110 * debuginfod-support.c (debuginfod_source_query)
1111 (debuginfod_debuginfo_query): Also do early exit if
1112 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1114 2020-11-18 Tom de Vries <tdevries@suse.de>
1116 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1119 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1121 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1122 callers. Move doc here.
1123 * gdbtypes.c (get_array_bounds): Return bool
1125 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1127 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1129 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1130 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1131 case to the default.
1133 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1135 * printcmd.c: Include 'safe-ctype.c'.
1136 (skip_over_slash_fmt): New function.
1137 (print_command_completer): Call skip_over_slash_fmt.
1138 (display_and_x_command_completer): New function.
1139 (_initialize_printcmd): Add command completion for 'x' and
1142 2020-11-16 Pedro Alves <pedro@palves.net>
1144 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1145 (get_prev_frame_always_1): ... to here.
1146 * inline-frame.c (inline_frame_this_id): Mention
1147 get_prev_frame_always_1 in comment.
1149 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1151 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1153 (value_less): Add fixed-point handling.
1155 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1157 * eval.c (binop_promote): Add fixed-point type handling.
1158 * valarith.c (fixed_point_binop): New function.
1159 (scalar_binop): Add fixed-point type handling.
1160 (value_neg): Add fixed-point type handling.
1161 * valops.c (value_cast_to_fixed_point): New function.
1162 (value_cast): Add fixed-point type handling.
1164 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1166 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1168 * c-typeprint.c (c_type_print_varspec_prefix)
1169 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1170 TYPE_CODE_FIXED_POINT handling.
1171 * p-typeprint.c (pascal_type_print_varspec_prefix)
1172 (pascal_type_print_varspec_suffix): Likewise.
1173 * typeprint.c (print_type_fixed_point): New function.
1174 * typeprint.h (print_type_fixed_point): Add declaration.
1176 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1178 * printcmd.c (print_scalar_formatted): Add fixed-point type
1179 handling when options->format is set.
1181 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1183 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1184 * dwarf2/read.c (get_dwarf2_rational_constant)
1185 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1186 (has_zero_over_zero_small_attribute): New functions.
1187 read_base_type, set_die_type): Add fixed-point type handling.
1188 * gdb-gdb.py.in: Add fixed-point type handling.
1189 * gdbtypes.c: #include "gmp-utils.h".
1190 (create_range_type, set_type_code): Add fixed-point type handling.
1191 (init_fixed_point_type): New function.
1192 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1193 (print_fixed_point_type_info): New function.
1194 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1196 (fixed_point_type_storage): New typedef.
1197 (fixed_point_objfile_key): New static global.
1198 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1199 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1201 * gdbtypes.h: #include "gmp-utils.h".
1202 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1203 (union type_specific) <fixed_point_info>: New field.
1204 (struct fixed_point_type_info): New struct.
1205 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1206 (init_fixed_point_type, is_fixed_point_type)
1207 (fixed_point_type_base_type, fixed_point_scaling_factor)
1208 (allocate_fixed_point_type_info): Add declarations.
1209 * valprint.c (generic_val_print_fixed_point): New function.
1210 (generic_value_print): Add fixed-point type handling.
1211 * value.c (value_as_address, unpack_long): Add fixed-point type
1214 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1216 * utils.h (uinteger_pow): Add declaration.
1217 * utils.c (uinteger_pow): Moved here (without changes)...
1218 * valarith.c (uinteger_pow): ... from here.
1220 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1222 * gmp-utils.h, gmp-utils.c: New file.
1223 * unittests/gmp-utils-selftests.c: New file.
1224 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1225 unittests/gmp-utils-selftests.c.
1226 (COMMON_SFILES) Add gmp-utils.c.
1227 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1229 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1231 * configure.ac: Generate an error if a usable GMP library
1233 * configure: Regenerate.
1235 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1237 * configure.ac: Add support for --with-libgmp-prefix.
1238 * Makefile.in (LIBGMP): New variable.
1239 (CLIBS): Include $(LIBGMP).
1240 * configure, config.in: Regenerate
1242 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1245 * f-exp.y (COMPLETE): New token.
1246 (exp): Two new rules for tab-completion.
1247 (saw_name_at_eof): New static global.
1248 (last_was_structop): Likewise.
1249 (yylex): Set new variables, and return COMPLETE token at the end
1250 of the input stream in some cases.
1252 2020-11-14 Tom Tromey <tom@tromey.com>
1254 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1256 2020-11-14 Tom Tromey <tom@tromey.com>
1258 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1260 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1262 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1264 2020-11-13 Tom Tromey <tom@tromey.com>
1266 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1267 (convert_escape, parse_one_string): Constify.
1269 2020-11-13 Keith Seitz <keiths@redhat.com>
1271 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1272 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1273 outside of ELF segments" warning for debugin
1275 2020-11-13 Keith Seitz <keiths@redhat.com>
1278 * elfread.c (elf_symfile_segments): Output a BFD file name
1279 for the "Loadable section ... outside of ELF segments" warning.
1281 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1284 * arm-tdep.c (class arm_instruction_reader): New.
1285 (target_arm_instruction_reader): New.
1286 (arm_analyze_prologue): Add instruction reader parameter and use
1287 it. Use arm_expand_immediate.
1288 (class target_arm_instruction_reader): Adjust.
1289 (arm_skip_prologue): Adjust.
1290 (arm_expand_immediate): New.
1291 (arm_scan_prologue): Adjust.
1292 (arm_analyze_prologue_test): New.
1293 (class test_arm_instruction_reader): New.
1295 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1297 * f-lang.c (fortran_argument_convert): Add declaration. Add
1298 header comment, taken from f-lang.h. Make static.
1299 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1300 (fortran_argument_convert): Delete declaration.
1302 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1304 * ada-exp.y (find_primitive_type): Make parameter const.
1305 * ada-lang.c (enum ada_primitive_types): Delete.
1306 (ada_language::language_arch_info): Update.
1307 * c-lang.c (enum c_primitive_types): Delete.
1308 (c_language_arch_info): Update.
1309 (enum cplus_primitive_types): Delete.
1310 (cplus_language::language_arch_info): Update.
1311 * d-lang.c (enum d_primitive_types): Delete.
1312 (d_language::language_arch_info): Update.
1313 * f-lang.c (enum f_primitive_types): Delete.
1314 (f_language::language_arch_info): Update.
1315 * go-lang.c (enum go_primitive_types): Delete.
1316 (go_language::language_arch_info): Update.
1317 * language.c (auto_or_unknown_language::language_arch_info):
1319 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1320 (language_string_char_type): Add header comment, call function in
1322 (language_bool_type): Likewise
1323 (language_arch_info::bool_type): Define.
1324 (language_lookup_primitive_type_1): Delete.
1325 (language_lookup_primitive_type): Rewrite as a templated function
1326 to call function in language_arch_info, then instantiate twice.
1327 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1328 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1329 (language_arch_info::lookup_primitive_type): Define twice with
1330 different signatures.
1331 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1332 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1333 member function in language_arch_info.
1334 * language.h (language_arch_info): Complete rewrite.
1335 (language_lookup_primitive_type): Make templated.
1336 * m2-lang.c (enum m2_primitive_types): Delete.
1337 (m2_language::language_arch_info): Update.
1338 * opencl-lang.c (OCL_P_TYPE): Delete.
1339 (enum opencl_primitive_types): Delete.
1340 (opencl_type_data): Delete.
1341 (builtin_opencl_type): Delete.
1342 (lookup_opencl_vector_type): Update.
1343 (opencl_language::language_arch_info): Update, lots of content
1345 (build_opencl_types): ...here. This function is now deleted.
1346 (_initialize_opencl_language): Delete.
1347 * p-lang.c (enum pascal_primitive_types): Delete.
1348 (pascal_language::language_arch_info): Update.
1349 * rust-lang.c (enum rust_primitive_types): Delete.
1350 (rust_language::language_arch_info): Update.
1352 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1354 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1357 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1359 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1362 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1364 * dwarf2/read.c (dwarf_read_debug_printf,
1365 dwarf_read_debug_printf_v): New macros, use throughout the file.
1367 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1370 * arc-linux-tdep.c (collect_register): Populate "eret" by
1371 "pc" value from the regcache when asked for "pc" value.
1373 2020-11-12 Tom Tromey <tom@tromey.com>
1376 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1379 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1381 * features/Makefile (XMLTOC): Add rx.xml.
1382 (FEATURE_XMLFILES): Remove rx.xml.
1383 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1384 * features/rx.c: Regenerate.
1385 * features/rx.xml: Wrap in `target` tags, and reindent.
1386 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1388 (maint_print_c_tdesc_opt_def): New typedef.
1389 (maint_print_c_tdesc_opt_defs): New static global.
1390 (make_maint_print_c_tdesc_options_def_group): New function.
1391 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1392 print single feature C file for target descriptions containing a
1394 (maint_print_c_tdesc_cmd_completer): New function.
1395 (_initialize_target_descriptions): Update call to register command
1396 completer, and include command line flag in help text.
1398 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1400 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1402 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1405 2020-11-10 Tom Tromey <tom@tromey.com>
1407 * value.h (internalvar_name): Update.
1408 * value.c (internalvar_name): Make return type const.
1410 2020-11-10 Tom Tromey <tom@tromey.com>
1412 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1413 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1416 2020-11-10 Tom Tromey <tom@tromey.com>
1418 * objc-lang.h (value_nsstring): Update.
1419 * objc-lang.c (value_nsstring): Make "ptr" const.
1421 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1423 * expprint.c (print_subexp_funcall): Increment expression position
1424 after reading argument count.
1425 * f-lang.c (print_subexp_f): Skip over opcode before calling
1427 (dump_subexp_body_f): Likewise.
1429 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1432 * configure: Regenerate.
1433 * configure.ac: Check for python modules ctypes instead of
1436 2020-11-06 Pedro Alves <pedro@palves.net>
1438 * macroexp.c (struct macro_buffer): Split in two classes. Add
1440 (struct shared_macro_buffer): New, factored out from struct
1442 (struct growable_macro_buffer): New, factored out from struct
1444 (set_token, get_comment, get_identifier, get_pp_number)
1445 (get_character_constant, get_string_literal, get_punctuator)
1446 (get_next_token_for_substitution): Constify parameters.
1447 (substitute_args): Constify locals.
1449 2020-11-05 Tom Tromey <tom@tromey.com>
1451 * dwarf2/read.c (read_cutu_die_from_dwo)
1452 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1453 (build_type_psymtabs_1): Update.
1454 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1456 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1457 Don't read section. Add assert.
1459 2020-11-04 Tom Tromey <tromey@adacore.com>
1461 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1463 2020-11-04 Tom Tromey <tromey@adacore.com>
1465 * ada-typeprint.c (ada_print_type): Handle __T types.
1467 2020-11-04 Tom Tromey <tromey@adacore.com>
1469 * dwarf2/read.c (add_partial_symbol, process_die):
1470 Handle DW_TAG_array_type.
1471 (is_type_tag_for_partial): Add "lang" parameter.
1472 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1474 2020-11-04 Tom Tromey <tromey@adacore.com>
1476 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1478 2020-11-04 Tom Tromey <tromey@adacore.com>
1480 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1483 2020-11-04 Tom Tromey <tromey@adacore.com>
1485 * gdbtypes.c (update_static_array_size): Handle bit stride.
1487 2020-11-04 Tom Tromey <tromey@adacore.com>
1489 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1491 2020-11-04 Tom Tromey <tromey@adacore.com>
1493 * ada-lang.c (ada_is_any_packed_array_type): New function.
1494 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1496 2020-11-04 Tom Tromey <tromey@adacore.com>
1498 * dwarf2/read.c (recognize_bound_expression)
1499 (quirk_ada_thick_pointer): New functions.
1500 (read_array_type): Call quirk_ada_thick_pointer.
1501 (set_die_type): Add "skip_data_location" parameter.
1502 (quirk_ada_thick_pointer): New function.
1503 (process_structure_scope): Call quirk_ada_thick_pointer.
1504 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1505 (decode_packed_array_bitsize): Handle thick pointers without
1507 (ada_is_gnat_encoded_packed_array_type): Rename from
1508 ada_is_packed_array_type.
1509 (ada_is_constrained_packed_array_type): Update.
1510 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1511 (ada_value_print_1): Use ada_get_decoded_value.
1513 2020-11-04 Tom Tromey <tromey@adacore.com>
1515 * ada-lang.c (recursively_update_array_bitsize): New function.
1516 (decode_constrained_packed_array_type): Call it.
1518 2020-11-04 Tom Tromey <tromey@adacore.com>
1520 * ada-lang.c (to_fixed_array_type): Error if
1521 decode_constrained_packed_array_type returns NULL.
1523 2020-11-04 Tom Tromey <tromey@adacore.com>
1525 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1527 2020-11-02 Tom Tromey <tromey@adacore.com>
1529 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1530 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1531 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1532 * amd64-ravenscar-thread.c: New file.
1533 * amd64-ravenscar-thread.h: New file.
1534 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1535 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1537 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1539 * main.c (execute_cmdargs): New function.
1540 (captured_main_1): Make use of execute_cmdargs.
1542 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1544 * NEWS: Mention changes to config file search path.
1547 2020-11-02 Tom Tromey <tromey@adacore.com>
1549 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1550 (python_GdbModuleDef): Move earlier. Now static.
1551 (do_start_initialization): Consolidate some IS_PY3K blocks.
1553 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1555 * aarch64-linux-tdep.c: Fix indentation.
1556 * aarch64-ravenscar-thread.c: Fix indentation.
1557 * aarch64-tdep.c: Fix indentation.
1558 * aarch64-tdep.h: Fix indentation.
1559 * ada-lang.c: Fix indentation.
1560 * ada-lang.h: Fix indentation.
1561 * ada-tasks.c: Fix indentation.
1562 * ada-typeprint.c: Fix indentation.
1563 * ada-valprint.c: Fix indentation.
1564 * ada-varobj.c: Fix indentation.
1565 * addrmap.c: Fix indentation.
1566 * addrmap.h: Fix indentation.
1567 * agent.c: Fix indentation.
1568 * aix-thread.c: Fix indentation.
1569 * alpha-bsd-nat.c: Fix indentation.
1570 * alpha-linux-tdep.c: Fix indentation.
1571 * alpha-mdebug-tdep.c: Fix indentation.
1572 * alpha-nbsd-tdep.c: Fix indentation.
1573 * alpha-obsd-tdep.c: Fix indentation.
1574 * alpha-tdep.c: Fix indentation.
1575 * amd64-bsd-nat.c: Fix indentation.
1576 * amd64-darwin-tdep.c: Fix indentation.
1577 * amd64-linux-nat.c: Fix indentation.
1578 * amd64-linux-tdep.c: Fix indentation.
1579 * amd64-nat.c: Fix indentation.
1580 * amd64-obsd-tdep.c: Fix indentation.
1581 * amd64-tdep.c: Fix indentation.
1582 * amd64-windows-tdep.c: Fix indentation.
1583 * annotate.c: Fix indentation.
1584 * arc-tdep.c: Fix indentation.
1585 * arch-utils.c: Fix indentation.
1586 * arch/arm-get-next-pcs.c: Fix indentation.
1587 * arch/arm.c: Fix indentation.
1588 * arm-linux-nat.c: Fix indentation.
1589 * arm-linux-tdep.c: Fix indentation.
1590 * arm-nbsd-tdep.c: Fix indentation.
1591 * arm-pikeos-tdep.c: Fix indentation.
1592 * arm-tdep.c: Fix indentation.
1593 * arm-tdep.h: Fix indentation.
1594 * arm-wince-tdep.c: Fix indentation.
1595 * auto-load.c: Fix indentation.
1596 * auxv.c: Fix indentation.
1597 * avr-tdep.c: Fix indentation.
1598 * ax-gdb.c: Fix indentation.
1599 * ax-general.c: Fix indentation.
1600 * bfin-linux-tdep.c: Fix indentation.
1601 * block.c: Fix indentation.
1602 * block.h: Fix indentation.
1603 * blockframe.c: Fix indentation.
1604 * bpf-tdep.c: Fix indentation.
1605 * break-catch-sig.c: Fix indentation.
1606 * break-catch-syscall.c: Fix indentation.
1607 * break-catch-throw.c: Fix indentation.
1608 * breakpoint.c: Fix indentation.
1609 * breakpoint.h: Fix indentation.
1610 * bsd-uthread.c: Fix indentation.
1611 * btrace.c: Fix indentation.
1612 * build-id.c: Fix indentation.
1613 * buildsym-legacy.h: Fix indentation.
1614 * buildsym.c: Fix indentation.
1615 * c-typeprint.c: Fix indentation.
1616 * c-valprint.c: Fix indentation.
1617 * c-varobj.c: Fix indentation.
1618 * charset.c: Fix indentation.
1619 * cli/cli-cmds.c: Fix indentation.
1620 * cli/cli-decode.c: Fix indentation.
1621 * cli/cli-decode.h: Fix indentation.
1622 * cli/cli-script.c: Fix indentation.
1623 * cli/cli-setshow.c: Fix indentation.
1624 * coff-pe-read.c: Fix indentation.
1625 * coffread.c: Fix indentation.
1626 * compile/compile-cplus-types.c: Fix indentation.
1627 * compile/compile-object-load.c: Fix indentation.
1628 * compile/compile-object-run.c: Fix indentation.
1629 * completer.c: Fix indentation.
1630 * corefile.c: Fix indentation.
1631 * corelow.c: Fix indentation.
1632 * cp-abi.h: Fix indentation.
1633 * cp-namespace.c: Fix indentation.
1634 * cp-support.c: Fix indentation.
1635 * cp-valprint.c: Fix indentation.
1636 * cris-linux-tdep.c: Fix indentation.
1637 * cris-tdep.c: Fix indentation.
1638 * darwin-nat-info.c: Fix indentation.
1639 * darwin-nat.c: Fix indentation.
1640 * darwin-nat.h: Fix indentation.
1641 * dbxread.c: Fix indentation.
1642 * dcache.c: Fix indentation.
1643 * disasm.c: Fix indentation.
1644 * dtrace-probe.c: Fix indentation.
1645 * dwarf2/abbrev.c: Fix indentation.
1646 * dwarf2/attribute.c: Fix indentation.
1647 * dwarf2/expr.c: Fix indentation.
1648 * dwarf2/frame.c: Fix indentation.
1649 * dwarf2/index-cache.c: Fix indentation.
1650 * dwarf2/index-write.c: Fix indentation.
1651 * dwarf2/line-header.c: Fix indentation.
1652 * dwarf2/loc.c: Fix indentation.
1653 * dwarf2/macro.c: Fix indentation.
1654 * dwarf2/read.c: Fix indentation.
1655 * dwarf2/read.h: Fix indentation.
1656 * elfread.c: Fix indentation.
1657 * eval.c: Fix indentation.
1658 * event-top.c: Fix indentation.
1659 * exec.c: Fix indentation.
1660 * exec.h: Fix indentation.
1661 * expprint.c: Fix indentation.
1662 * f-lang.c: Fix indentation.
1663 * f-typeprint.c: Fix indentation.
1664 * f-valprint.c: Fix indentation.
1665 * fbsd-nat.c: Fix indentation.
1666 * fbsd-tdep.c: Fix indentation.
1667 * findvar.c: Fix indentation.
1668 * fork-child.c: Fix indentation.
1669 * frame-unwind.c: Fix indentation.
1670 * frame-unwind.h: Fix indentation.
1671 * frame.c: Fix indentation.
1672 * frv-linux-tdep.c: Fix indentation.
1673 * frv-tdep.c: Fix indentation.
1674 * frv-tdep.h: Fix indentation.
1675 * ft32-tdep.c: Fix indentation.
1676 * gcore.c: Fix indentation.
1677 * gdb_bfd.c: Fix indentation.
1678 * gdbarch.sh: Fix indentation.
1679 * gdbarch.c: Re-generate
1680 * gdbarch.h: Re-generate.
1681 * gdbcore.h: Fix indentation.
1682 * gdbthread.h: Fix indentation.
1683 * gdbtypes.c: Fix indentation.
1684 * gdbtypes.h: Fix indentation.
1685 * glibc-tdep.c: Fix indentation.
1686 * gnu-nat.c: Fix indentation.
1687 * gnu-nat.h: Fix indentation.
1688 * gnu-v2-abi.c: Fix indentation.
1689 * gnu-v3-abi.c: Fix indentation.
1690 * go32-nat.c: Fix indentation.
1691 * guile/guile-internal.h: Fix indentation.
1692 * guile/scm-cmd.c: Fix indentation.
1693 * guile/scm-frame.c: Fix indentation.
1694 * guile/scm-iterator.c: Fix indentation.
1695 * guile/scm-math.c: Fix indentation.
1696 * guile/scm-ports.c: Fix indentation.
1697 * guile/scm-pretty-print.c: Fix indentation.
1698 * guile/scm-value.c: Fix indentation.
1699 * h8300-tdep.c: Fix indentation.
1700 * hppa-linux-nat.c: Fix indentation.
1701 * hppa-linux-tdep.c: Fix indentation.
1702 * hppa-nbsd-nat.c: Fix indentation.
1703 * hppa-nbsd-tdep.c: Fix indentation.
1704 * hppa-obsd-nat.c: Fix indentation.
1705 * hppa-tdep.c: Fix indentation.
1706 * hppa-tdep.h: Fix indentation.
1707 * i386-bsd-nat.c: Fix indentation.
1708 * i386-darwin-nat.c: Fix indentation.
1709 * i386-darwin-tdep.c: Fix indentation.
1710 * i386-dicos-tdep.c: Fix indentation.
1711 * i386-gnu-nat.c: Fix indentation.
1712 * i386-linux-nat.c: Fix indentation.
1713 * i386-linux-tdep.c: Fix indentation.
1714 * i386-nto-tdep.c: Fix indentation.
1715 * i386-obsd-tdep.c: Fix indentation.
1716 * i386-sol2-nat.c: Fix indentation.
1717 * i386-tdep.c: Fix indentation.
1718 * i386-tdep.h: Fix indentation.
1719 * i386-windows-tdep.c: Fix indentation.
1720 * i387-tdep.c: Fix indentation.
1721 * i387-tdep.h: Fix indentation.
1722 * ia64-libunwind-tdep.c: Fix indentation.
1723 * ia64-libunwind-tdep.h: Fix indentation.
1724 * ia64-linux-nat.c: Fix indentation.
1725 * ia64-linux-tdep.c: Fix indentation.
1726 * ia64-tdep.c: Fix indentation.
1727 * ia64-tdep.h: Fix indentation.
1728 * ia64-vms-tdep.c: Fix indentation.
1729 * infcall.c: Fix indentation.
1730 * infcmd.c: Fix indentation.
1731 * inferior.c: Fix indentation.
1732 * infrun.c: Fix indentation.
1733 * iq2000-tdep.c: Fix indentation.
1734 * language.c: Fix indentation.
1735 * linespec.c: Fix indentation.
1736 * linux-fork.c: Fix indentation.
1737 * linux-nat.c: Fix indentation.
1738 * linux-tdep.c: Fix indentation.
1739 * linux-thread-db.c: Fix indentation.
1740 * lm32-tdep.c: Fix indentation.
1741 * m2-lang.c: Fix indentation.
1742 * m2-typeprint.c: Fix indentation.
1743 * m2-valprint.c: Fix indentation.
1744 * m32c-tdep.c: Fix indentation.
1745 * m32r-linux-tdep.c: Fix indentation.
1746 * m32r-tdep.c: Fix indentation.
1747 * m68hc11-tdep.c: Fix indentation.
1748 * m68k-bsd-nat.c: Fix indentation.
1749 * m68k-linux-nat.c: Fix indentation.
1750 * m68k-linux-tdep.c: Fix indentation.
1751 * m68k-tdep.c: Fix indentation.
1752 * machoread.c: Fix indentation.
1753 * macrocmd.c: Fix indentation.
1754 * macroexp.c: Fix indentation.
1755 * macroscope.c: Fix indentation.
1756 * macrotab.c: Fix indentation.
1757 * macrotab.h: Fix indentation.
1758 * main.c: Fix indentation.
1759 * mdebugread.c: Fix indentation.
1760 * mep-tdep.c: Fix indentation.
1761 * mi/mi-cmd-catch.c: Fix indentation.
1762 * mi/mi-cmd-disas.c: Fix indentation.
1763 * mi/mi-cmd-env.c: Fix indentation.
1764 * mi/mi-cmd-stack.c: Fix indentation.
1765 * mi/mi-cmd-var.c: Fix indentation.
1766 * mi/mi-cmds.c: Fix indentation.
1767 * mi/mi-main.c: Fix indentation.
1768 * mi/mi-parse.c: Fix indentation.
1769 * microblaze-tdep.c: Fix indentation.
1770 * minidebug.c: Fix indentation.
1771 * minsyms.c: Fix indentation.
1772 * mips-linux-nat.c: Fix indentation.
1773 * mips-linux-tdep.c: Fix indentation.
1774 * mips-nbsd-tdep.c: Fix indentation.
1775 * mips-tdep.c: Fix indentation.
1776 * mn10300-linux-tdep.c: Fix indentation.
1777 * mn10300-tdep.c: Fix indentation.
1778 * moxie-tdep.c: Fix indentation.
1779 * msp430-tdep.c: Fix indentation.
1780 * namespace.h: Fix indentation.
1781 * nat/fork-inferior.c: Fix indentation.
1782 * nat/gdb_ptrace.h: Fix indentation.
1783 * nat/linux-namespaces.c: Fix indentation.
1784 * nat/linux-osdata.c: Fix indentation.
1785 * nat/netbsd-nat.c: Fix indentation.
1786 * nat/x86-dregs.c: Fix indentation.
1787 * nbsd-nat.c: Fix indentation.
1788 * nbsd-tdep.c: Fix indentation.
1789 * nios2-linux-tdep.c: Fix indentation.
1790 * nios2-tdep.c: Fix indentation.
1791 * nto-procfs.c: Fix indentation.
1792 * nto-tdep.c: Fix indentation.
1793 * objfiles.c: Fix indentation.
1794 * objfiles.h: Fix indentation.
1795 * opencl-lang.c: Fix indentation.
1796 * or1k-tdep.c: Fix indentation.
1797 * osabi.c: Fix indentation.
1798 * osabi.h: Fix indentation.
1799 * osdata.c: Fix indentation.
1800 * p-lang.c: Fix indentation.
1801 * p-typeprint.c: Fix indentation.
1802 * p-valprint.c: Fix indentation.
1803 * parse.c: Fix indentation.
1804 * ppc-linux-nat.c: Fix indentation.
1805 * ppc-linux-tdep.c: Fix indentation.
1806 * ppc-nbsd-nat.c: Fix indentation.
1807 * ppc-nbsd-tdep.c: Fix indentation.
1808 * ppc-obsd-nat.c: Fix indentation.
1809 * ppc-ravenscar-thread.c: Fix indentation.
1810 * ppc-sysv-tdep.c: Fix indentation.
1811 * ppc64-tdep.c: Fix indentation.
1812 * printcmd.c: Fix indentation.
1813 * proc-api.c: Fix indentation.
1814 * producer.c: Fix indentation.
1815 * producer.h: Fix indentation.
1816 * prologue-value.c: Fix indentation.
1817 * prologue-value.h: Fix indentation.
1818 * psymtab.c: Fix indentation.
1819 * python/py-arch.c: Fix indentation.
1820 * python/py-bpevent.c: Fix indentation.
1821 * python/py-event.c: Fix indentation.
1822 * python/py-event.h: Fix indentation.
1823 * python/py-finishbreakpoint.c: Fix indentation.
1824 * python/py-frame.c: Fix indentation.
1825 * python/py-framefilter.c: Fix indentation.
1826 * python/py-inferior.c: Fix indentation.
1827 * python/py-infthread.c: Fix indentation.
1828 * python/py-objfile.c: Fix indentation.
1829 * python/py-prettyprint.c: Fix indentation.
1830 * python/py-registers.c: Fix indentation.
1831 * python/py-signalevent.c: Fix indentation.
1832 * python/py-stopevent.c: Fix indentation.
1833 * python/py-stopevent.h: Fix indentation.
1834 * python/py-threadevent.c: Fix indentation.
1835 * python/py-tui.c: Fix indentation.
1836 * python/py-unwind.c: Fix indentation.
1837 * python/py-value.c: Fix indentation.
1838 * python/py-xmethods.c: Fix indentation.
1839 * python/python-internal.h: Fix indentation.
1840 * python/python.c: Fix indentation.
1841 * ravenscar-thread.c: Fix indentation.
1842 * record-btrace.c: Fix indentation.
1843 * record-full.c: Fix indentation.
1844 * record.c: Fix indentation.
1845 * reggroups.c: Fix indentation.
1846 * regset.h: Fix indentation.
1847 * remote-fileio.c: Fix indentation.
1848 * remote.c: Fix indentation.
1849 * reverse.c: Fix indentation.
1850 * riscv-linux-tdep.c: Fix indentation.
1851 * riscv-ravenscar-thread.c: Fix indentation.
1852 * riscv-tdep.c: Fix indentation.
1853 * rl78-tdep.c: Fix indentation.
1854 * rs6000-aix-tdep.c: Fix indentation.
1855 * rs6000-lynx178-tdep.c: Fix indentation.
1856 * rs6000-nat.c: Fix indentation.
1857 * rs6000-tdep.c: Fix indentation.
1858 * rust-lang.c: Fix indentation.
1859 * rx-tdep.c: Fix indentation.
1860 * s12z-tdep.c: Fix indentation.
1861 * s390-linux-tdep.c: Fix indentation.
1862 * score-tdep.c: Fix indentation.
1863 * ser-base.c: Fix indentation.
1864 * ser-mingw.c: Fix indentation.
1865 * ser-uds.c: Fix indentation.
1866 * ser-unix.c: Fix indentation.
1867 * serial.c: Fix indentation.
1868 * sh-linux-tdep.c: Fix indentation.
1869 * sh-nbsd-tdep.c: Fix indentation.
1870 * sh-tdep.c: Fix indentation.
1871 * skip.c: Fix indentation.
1872 * sol-thread.c: Fix indentation.
1873 * solib-aix.c: Fix indentation.
1874 * solib-darwin.c: Fix indentation.
1875 * solib-frv.c: Fix indentation.
1876 * solib-svr4.c: Fix indentation.
1877 * solib.c: Fix indentation.
1878 * source.c: Fix indentation.
1879 * sparc-linux-tdep.c: Fix indentation.
1880 * sparc-nbsd-tdep.c: Fix indentation.
1881 * sparc-obsd-tdep.c: Fix indentation.
1882 * sparc-ravenscar-thread.c: Fix indentation.
1883 * sparc-tdep.c: Fix indentation.
1884 * sparc64-linux-tdep.c: Fix indentation.
1885 * sparc64-nbsd-tdep.c: Fix indentation.
1886 * sparc64-obsd-tdep.c: Fix indentation.
1887 * sparc64-tdep.c: Fix indentation.
1888 * stabsread.c: Fix indentation.
1889 * stack.c: Fix indentation.
1890 * stap-probe.c: Fix indentation.
1891 * stubs/ia64vms-stub.c: Fix indentation.
1892 * stubs/m32r-stub.c: Fix indentation.
1893 * stubs/m68k-stub.c: Fix indentation.
1894 * stubs/sh-stub.c: Fix indentation.
1895 * stubs/sparc-stub.c: Fix indentation.
1896 * symfile-mem.c: Fix indentation.
1897 * symfile.c: Fix indentation.
1898 * symfile.h: Fix indentation.
1899 * symmisc.c: Fix indentation.
1900 * symtab.c: Fix indentation.
1901 * symtab.h: Fix indentation.
1902 * target-float.c: Fix indentation.
1903 * target.c: Fix indentation.
1904 * target.h: Fix indentation.
1905 * tic6x-tdep.c: Fix indentation.
1906 * tilegx-linux-tdep.c: Fix indentation.
1907 * tilegx-tdep.c: Fix indentation.
1908 * top.c: Fix indentation.
1909 * tracefile-tfile.c: Fix indentation.
1910 * tracepoint.c: Fix indentation.
1911 * tui/tui-disasm.c: Fix indentation.
1912 * tui/tui-io.c: Fix indentation.
1913 * tui/tui-regs.c: Fix indentation.
1914 * tui/tui-stack.c: Fix indentation.
1915 * tui/tui-win.c: Fix indentation.
1916 * tui/tui-winsource.c: Fix indentation.
1917 * tui/tui.c: Fix indentation.
1918 * typeprint.c: Fix indentation.
1919 * ui-out.h: Fix indentation.
1920 * unittests/copy_bitwise-selftests.c: Fix indentation.
1921 * unittests/memory-map-selftests.c: Fix indentation.
1922 * utils.c: Fix indentation.
1923 * v850-tdep.c: Fix indentation.
1924 * valarith.c: Fix indentation.
1925 * valops.c: Fix indentation.
1926 * valprint.c: Fix indentation.
1927 * valprint.h: Fix indentation.
1928 * value.c: Fix indentation.
1929 * value.h: Fix indentation.
1930 * varobj.c: Fix indentation.
1931 * vax-tdep.c: Fix indentation.
1932 * windows-nat.c: Fix indentation.
1933 * windows-tdep.c: Fix indentation.
1934 * xcoffread.c: Fix indentation.
1935 * xml-syscall.c: Fix indentation.
1936 * xml-tdesc.c: Fix indentation.
1937 * xstormy16-tdep.c: Fix indentation.
1938 * xtensa-config.c: Fix indentation.
1939 * xtensa-linux-nat.c: Fix indentation.
1940 * xtensa-linux-tdep.c: Fix indentation.
1941 * xtensa-tdep.c: Fix indentation.
1943 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1944 Craig Blackmore <craig.blackmore@embecosm.com>
1946 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1947 as an unsigned value.
1949 2020-11-01 Tom Tromey <tom@tromey.com>
1951 * dbxread.c (dbx_end_psymtab): Update.
1952 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1953 (build_type_psymtabs_reader): Update.
1954 * xcoffread.c (xcoff_end_psymtab): Update.
1955 * ctfread.c (scan_partial_symbols): Update.
1956 * psymtab.c (sort_pst_symbols): Remove.
1957 (partial_symtab::end): Rename from end_psymtab_common. Inline
1959 * psympriv.h (struct partial_symtab) <end>: New method.
1960 (end_psymtab_common): Don't declare.
1962 2020-11-01 Tom Tromey <tom@tromey.com>
1964 * symmisc.c (count_psyms): New function.
1965 (print_objfile_statistics): Use it.
1966 * psymtab.c (append_psymbol_to_list): Remove.
1967 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1968 * objfiles.h (struct objstats) <n_psyms>: Remove.
1970 2020-11-01 Tom Tromey <tom@tromey.com>
1972 * dbxread.c (dbx_end_psymtab): Update.
1973 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1974 (build_type_psymtabs_reader): Update.
1975 * xcoffread.c (xcoff_end_psymtab): Update.
1976 * ctfread.c (scan_partial_symbols): Update.
1977 * psympriv.h (end_psymtab_common): Update.
1978 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1979 (sort_pst_symbols): Likewise.
1981 2020-11-01 Tom Tromey <tom@tromey.com>
1983 * dbxread.c (dbx_symfile_read): Update.
1984 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1985 * xcoffread.c (xcoff_initial_scan): Update.
1986 * psympriv.h (init_psymbol_list): Don't declare.
1987 * psymtab.c (init_psymbol_list): Remove.
1989 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1991 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1992 gnat_encoded_fixed_type_info. Update all callers.
1994 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1996 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1999 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2001 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2002 cast_from_fixed. Update all callers.
2003 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2005 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2007 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2009 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2010 to print_gnat_encoded_fixed_point_type.
2011 * ada-valprint.c: Likewise.
2013 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2015 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2016 (debug_prefixed_printf): Add check of debug_displaced flag.
2017 * linux-nat.c (linux_nat_debug_printf): Add check of
2018 debug_linux_nat flag.
2020 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2022 * infrun.c (infrun_debug_printf_1): Remove.
2023 (displaced_debug_printf_1): Remove.
2024 (stop_all_threads): Use debug_prefixed_printf.
2025 * infrun.h (infrun_debug_printf_1): Remove.
2026 (infrun_debug_printf): Use debug_prefixed_printf.
2027 (displaced_debug_printf_1): Remove.
2028 (displaced_debug_printf): Use debug_prefixed_printf.
2029 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2030 (linux_nat_debug_printf): Use debug_prefixed_printf.
2032 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2034 * configure: Re-generate.
2035 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2038 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2040 * configure: Re-generate.
2042 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2044 * configure: Re-generate.
2046 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2048 * configure: Re-generate.
2050 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2052 * configure: Re-generate.
2054 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2056 * acinclude.m4: Modernize.
2057 * configure: Re-generate.
2059 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2061 * configure.ac: Modernize.
2062 * configure: Re-generate.
2064 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2066 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2067 * configure: Re-generate.
2068 * configure.ac: Remove AM_PROG_CC_STDC.
2070 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2072 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2073 AC_CANONICAL_SYSTEM.
2074 * configure: Re-generate.
2076 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2078 * infrun.h (displaced_debug_printf): New macro. Replace
2079 displaced debug prints throughout to use it.
2080 (displaced_debug_printf_1): New declaration.
2081 (displaced_step_dump_bytes): Return string, remove ui_file
2082 parameter, update all callers.
2083 * infrun.c (displaced_debug_printf_1): New function.
2084 (displaced_step_dump_bytes): Return string, remove ui_file
2087 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2089 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2091 2020-10-30 Tom Tromey <tromey@adacore.com>
2093 * Makefile.in (stamp-init): Depend on config.status.
2095 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2097 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2099 2020-10-30 Pedro Alves <pedro@palves.net>
2101 * thread.c (lookup_selected_frame): Move ...
2102 * frame.c (lookup_selected_frame): ... here.
2104 2020-10-30 Pedro Alves <pedro@palves.net>
2106 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2108 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2109 Use save_selected_frame. Save language as well.
2110 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2111 Use restore_selected_frame, and restore language as well.
2112 (selected_frame_id, selected_frame_level): New.
2113 (selected_frame): Update comments.
2114 (save_selected_frame, restore_selected_frame): New.
2115 (get_selected_frame): Use lookup_selected_frame.
2116 (get_selected_frame_if_set): Delete.
2117 (select_frame): Record selected_frame_level and selected_frame_id.
2118 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2120 (get_selected_frame): Make 'message' parameter optional.
2121 (get_selected_frame_if_set): Delete declaration.
2122 (select_frame): Update comments.
2123 (save_selected_frame, restore_selected_frame)
2124 (lookup_selected_frame): Declare.
2125 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2126 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2128 (save_infcall_control_state): Use save_selected_frame.
2129 (restore_selected_frame): Delete.
2130 (restore_infcall_control_state): Use restore_selected_frame.
2131 * stack.c (select_frame_command_core, frame_command_core): Use
2133 * thread.c (restore_selected_frame): Rename to ...
2134 (lookup_selected_frame): ... this and make extern. Select the
2135 current frame if the frame level is -1.
2136 (scoped_restore_current_thread::restore): Also restore the
2138 (scoped_restore_current_thread::~scoped_restore_current_thread):
2140 (scoped_restore_current_thread::scoped_restore_current_thread):
2141 Save the language as well. Use save_selected_frame.
2143 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2145 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2147 * gdbarch.h: Re-generate.
2149 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2151 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2153 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2155 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2157 * arch-utils.c (default_displaced_step_hw_singlestep):
2159 * arch-utils.h (default_displaced_step_hw_singlestep):
2161 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2163 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2165 * gdbarch.c: Re-generate.
2166 * gdbarch.h: Re-generate.
2167 * infrun.c (resume_1): Adjust.
2169 2020-10-29 Tom Tromey <tom@tromey.com>
2171 * progspace.c (program_space::~program_space): Don't call
2174 2020-10-29 Tom Tromey <tom@tromey.com>
2176 * exec.c (exec_target::close): Don't change current program
2179 2020-10-29 Tom Tromey <tom@tromey.com>
2181 * symfile.c (add_symbol_file_command): Update.
2182 * exec.c (program_space::add_target_sections): Rename.
2183 * symfile-mem.c (symbol_file_add_from_memory): Update.
2184 * progspace.h (struct program_space) <add_target_sections>:
2185 Declare new overload.
2186 * exec.h (add_target_sections_of_objfile): Don't declare.
2188 2020-10-29 Tom Tromey <tom@tromey.com>
2190 * solib.c (solib_map_sections): Update.
2191 * exec.c (program_space::add_target_sections): Now a method.
2192 (exec_file_attach): Update.
2193 * exec.h (add_target_sections): Don't declare.
2194 * progspace.h (struct program_space) <add_target_sections>:
2197 2020-10-29 Tom Tromey <tom@tromey.com>
2199 * progspace.h (struct program_space) <remove_target_sections>:
2201 * exec.c (program_space::remove_target_sections): Now a method.
2202 * exec.h (remove_target_sections): Don't declare.
2204 2020-10-29 Tom Tromey <tom@tromey.com>
2206 * inferior.c (delete_inferior): Update.
2207 * progspace.c (program_space::empty): Rename from
2208 program_space_empty_p. Return bool.
2209 * progspace.h (struct program_space) <empty>: New method.
2210 (program_space_empty_p): Don't declare.
2212 2020-10-29 Tom Tromey <tom@tromey.com>
2214 * progspace.c (program_space::~program_space): Don't call
2215 clear_program_space_solib_cache.
2216 (program_space::clear_solib_cache): Rename from
2218 * solib.c (handle_solib_event): Update.
2219 * progspace.h (struct program_space) <clear_solib_cache>: New
2221 (clear_program_space_solib_cache): Don't declare.
2223 2020-10-29 Tom Tromey <tom@tromey.com>
2225 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2226 * target.c (info_target_command): Update.
2227 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2228 (symbol_file_clear, reread_symbols): Update.
2229 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2230 * stabsread.c (scan_file_globals): Update.
2231 * solib.c (update_solib_list): Update.
2232 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2233 (svr4_fetch_objfile_link_map, enable_break)
2234 (svr4_relocate_main_executable)
2235 (svr4_iterate_over_objfiles_in_search_order): Update.
2236 * solib-frv.c (lm_base, enable_break)
2237 (frv_relocate_main_executable): Update.
2238 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2239 (frv_fetch_objfile_link_map): Update.
2240 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2241 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2242 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2243 * remote.c (remote_target::get_offsets): Update.
2244 (remote_target::start_remote)
2245 (extended_remote_target::post_attach): Update.
2246 * objfiles.c (entry_point_address_query): Update.
2247 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2248 * minsyms.c (get_symbol_leading_char): Update.
2249 * frame.c (inside_main_func): Update.
2250 * progspace.h (symfile_objfile): Remove macro.
2252 2020-10-29 Tom Tromey <tom@tromey.com>
2254 * exec.c (exec_file_attach): Update.
2255 * progspace.c (program_space::exec_close): Update.
2256 * progspace.h (struct program_space) <ebfd>: Now a
2258 <set_exec_bfd>: Change argument type.
2261 2020-10-29 Tom Tromey <tom@tromey.com>
2263 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2264 * symfile.c (reread_symbols): Update.
2265 * symfile-mem.c (add_symbol_file_from_memory_command)
2266 (add_vsyscall_page): Update.
2267 * source-cache.c (source_cache::get_plain_source_lines): Update.
2268 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2269 (svr4_current_sos_direct, svr4_exec_displacement)
2270 (svr4_relocate_main_executable): Update.
2271 (svr4_iterate_over_objfiles_in_search_order): Update.
2272 * solib-frv.c (enable_break2, enable_break): Update.
2273 * solib-dsbt.c (lm_base, enable_break): Update.
2274 * solib-darwin.c (find_program_interpreter)
2275 (darwin_solib_create_inferior_hook): Update.
2276 * sol-thread.c (rw_common, ps_pdmodel): Update.
2277 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2278 * remote.c (compare_sections_command)
2279 (remote_target::trace_set_readonly_regions): Update.
2280 * remote-sim.c (get_sim_inferior_data)
2281 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2282 (gdbsim_target_open, gdbsim_target::files_info): Update.
2283 * exec.h (exec_bfd): Remove macro.
2284 * progspace.c (initialize_progspace): Update.
2285 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2287 * nto-procfs.c (nto_procfs_target::post_attach)
2288 (nto_procfs_target::create_inferior): Update.
2289 * maint.c (maintenance_info_sections): Update.
2290 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2292 * infcmd.c (post_create_inferior): Update.
2293 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2294 (objfile_find_memory_regions): Update.
2295 * exec.c (validate_exec_file, exec_file_attach)
2296 (exec_read_partial_read_only, print_section_info): Update.
2297 * corelow.c (core_target_open): Update.
2298 * corefile.c (reopen_exec_file, validate_files): Update.
2299 * arm-tdep.c (gdb_print_insn_arm): Update.
2300 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2301 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2304 2020-10-29 Tom Tromey <tom@tromey.com>
2306 * progspace.h (current_target_sections): Remove macro.
2307 * solib-svr4.c (scan_dyntag): Update.
2308 * solib-dsbt.c (scan_dyntag): Update.
2309 * exec.c (exec_target::close): Update.
2310 (add_target_sections, add_target_sections_of_objfile)
2311 (remove_target_sections, exec_target::get_section_table)
2312 (exec_target::files_info, set_section_command)
2313 (exec_set_section_address, exec_target::has_memory)
2314 (exec_target::has_memory): Update.
2316 2020-10-29 Tom Tromey <tom@tromey.com>
2318 * source-cache.c (source_cache::get_plain_source_lines): Use
2319 current_program_space.
2320 * corefile.c (reopen_exec_file): Use current_program_space.
2321 * exec.c (exec_file_attach): Use current_program_space.
2322 * exec.h (exec_bfd_mtime): Remove.
2324 2020-10-29 Tom Tromey <tom@tromey.com>
2326 * gcore.c (default_gcore_mach): Remove.
2327 (create_gcore_bfd): Update.
2329 2020-10-29 Tom Tromey <tom@tromey.com>
2331 * progspace.c (program_space::exec_close): New method, from
2332 exec_close in exec.c.
2333 * exec.c (exec_close): Move to progspace.c.
2334 (exec_target::close, exec_file_attach): Update.
2335 * progspace.h (struct program_space) <exec_close>: Declare
2338 2020-10-29 Tom Tromey <tom@tromey.com>
2340 * progspace.h (struct program_space) <exec_filename>: Rename from
2341 pspace_exec_filename. Now a unique_xmalloc_ptr.
2342 * inferior.c (print_selected_inferior): Update.
2343 (print_inferior): Update.
2344 * mi/mi-main.c (print_one_inferior): Update.
2345 * exec.h (exec_filename): Remove macro.
2346 * corefile.c (get_exec_file): Update.
2347 * exec.c (exec_close): Update.
2348 (exec_file_attach): Update.
2349 * progspace.c (clone_program_space): Update.
2350 (print_program_space): Update.
2352 2020-10-29 Tom Tromey <tom@tromey.com>
2354 * target-section.h (struct target_section): Add constructor.
2355 * exec.c (build_section_table, add_target_sections_of_objfile):
2357 * corelow.c (core_target::build_file_mappings): Update.
2359 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2362 * inferior.c (detach_inferior_command): Restore the current thread.
2363 (kill_inferior_command): Ditto.
2365 2020-10-28 Tom de Vries <tdevries@suse.de>
2368 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2369 map, check it in the "best match" loop.
2371 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2373 * m32c-tdep.c: Remove unused includes.
2375 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2377 * xtensa-tdep.c: Remove includes.
2379 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2381 * breakpoint.c (struct condition_command_opts): New struct.
2382 (condition_command_option_defs): New static global.
2383 (make_condition_command_options_def_group): New function.
2384 (condition_completer): Update to consider the '-force' flag.
2385 (condition_command): Use gdb::option for the '-force' flag.
2387 2020-10-27 Tom de Vries <tdevries@suse.de>
2389 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2390 symbols in section check.
2392 2020-10-27 Tom de Vries <tdevries@suse.de>
2394 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2396 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2398 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2399 * breakpoint.c: Update the help text of the 'condition' and 'break'
2401 (set_breakpoint_condition): Take a new bool parameter
2402 to control whether condition definition should be forced even when
2403 the condition expression is invalid in all of the current locations.
2404 (condition_command): Update the call to 'set_breakpoint_condition'.
2405 (find_condition_and_thread): Take the "-force-condition" flag into
2407 * linespec.c (linespec_keywords): Add "-force-condition" as an
2409 (FORCE_KEYWORD_INDEX): New #define.
2410 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2412 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2413 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2414 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2415 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2417 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2419 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2420 * breakpoint.c (set_breakpoint_location_condition): New function.
2421 (set_breakpoint_condition): Disable a breakpoint location if parsing
2422 the condition string gives an error.
2423 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2424 (build_target_condition_list): Ditto.
2425 (build_target_command_list): Ditto.
2426 (build_bpstat_chain): Ditto.
2427 (print_one_breakpoint_location): Ditto.
2428 (print_one_breakpoint): Ditto.
2429 (breakpoint_1): Ditto.
2430 (bp_location::bp_location): Ditto.
2431 (locations_are_equal): Ditto.
2432 (update_breakpoint_locations): Ditto.
2433 (enable_disable_bp_num_loc): Ditto.
2434 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2435 (find_condition_and_thread_for_sals): New static function.
2436 (create_breakpoint): Call find_condition_and_thread_for_sals.
2437 (location_to_sals): Call find_condition_and_thread_for_sals instead
2438 of find_condition_and_thread.
2440 2020-10-26 Tom de Vries <tdevries@suse.de>
2442 * dwarf2/read.c (process_full_comp_unit): Call
2443 dwarf2_find_base_address.
2445 2020-10-26 Tom Tromey <tromey@adacore.com>
2447 * gdbtypes.c (create_range_type): Revert previous patch. Add
2450 2020-10-26 Pedro Alves <pedro@palves.net>
2452 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2453 (my_waitpid): Use gdb::handle_eintr.
2455 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2457 * acinclude.m4: Update ptrace.m4 path.
2458 * ptrace.m4: Moved to gdbsupport.
2460 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2462 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2463 instead of target_gdbarch.
2465 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2467 * jit.c (jit_reader_load_command): Pass current inferior.
2468 (jit_inferior_init): Change parameter type to inferior, use it.
2469 (jit_inferior_created): Remove.
2470 (jit_inferior_created_hook): Pass inferior parameter down.
2471 (_initialize_jit): Use jit_inferior_created_hook instead of
2472 jit_inferior_created.
2473 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2474 * infrun.c (follow_exec): Pass inferior to
2475 jit_inferior_created_hook.
2477 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2479 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2480 parameter and use it.
2481 (thread_db_inferior_created): Pass inferior argument.
2483 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2485 * aix-thread.c (aix_thread_inferior_created): Add inferior
2487 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2488 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2489 * jit.c (jit_inferior_created): Likewise.
2490 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2491 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2492 * observable.h (inferior_created): Likewise.
2493 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2494 * symfile-mem.c (add_vsyscall_page): Likewise.
2495 * infcmd.c (post_create_inferior): Pass inferior argument.
2497 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2501 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2503 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2504 to ada_check_typedef.
2506 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2508 * f-exp.y (f_parse): Rename to...
2509 (f_language::parser): ...this.
2510 * f-lang.c (f_get_encoding): Rename to...
2511 (f_language::get_encoding): ...this.
2512 (f_op_print_tab): Rename to...
2513 (f_language::op_print_tab): ...this.
2514 (exp_descriptor_f): Rename to...
2515 (f_language::exp_descriptor_tab): ...this.
2516 (class f_language): Moved to f-lang.h.
2517 (f_language::language_arch_info): New function, moved out of class
2519 (f_language::search_name_hash): Likewise.
2520 (f_language::lookup_symbol_nonlocal): Likewise.
2521 (f_language::get_symbol_name_matcher_inner): Likewise.
2522 * f-lang.h: Add 'valprint.h' include.
2523 (class f_language): Moved here from f-lang.c.
2524 * f-typeprint.c (f_type_print_args): Delete commented out
2526 (f_print_typedef): Rename to...
2527 (f_language::print_typedef): ...this.
2528 (f_print_type): Rename to...
2529 (f_language::print_type): ...this.
2530 (f_type_print_varspec_prefix): Delete declaration and rename to...
2531 (f_language::f_type_print_varspec_prefix): ...this.
2532 (f_type_print_varspec_suffix): Delete declaration and rename to...
2533 (f_language::f_type_print_varspec_suffix): ...this.
2534 (f_type_print_base): Delete declaration and rename to...
2535 (f_language::f_type_print_base): ...this.
2536 * f-valprint.c (f_value_print_inner): Rename to...
2537 (f_language::value_print_inner): ...this.
2538 * parse.c: Delete 'f-lang.h' include.
2540 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2542 * language.h (language_defn::print_type): Add variable names in
2543 declaration, and update header comment.
2545 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2547 * ada-lang.c (ada_language::demangle): Rename to...
2548 (ada_language::demangle_symbol): ...this.
2549 * c-lang.c (cplus_language::demangle): Rename to...
2550 (cplus_language::demangle_symbol): ...this.
2551 * d-lang.c (d_language::demangle): Rename to...
2552 (d_language::demangle_symbol): ...this.
2553 * f-lang.c (f_language::demangle): Rename to...
2554 (f_language::demangle_symbol): ...this.
2555 * go-lang.c (go_language::demangle): Rename to...
2556 (go_language::demangle_symbol): ...this.
2557 * language.c (language_demangle): Update call to demangle_symbol.
2558 (auto_or_unknown_language::demangle): Rename to...
2559 (auto_or_unknown_language::demangle_symbol): ...this.
2560 * language.h (language_defn::demangle): Rename to...
2561 (language_defn::demangle_symbol): ...this.
2562 * objc-lang.c (objc_language::demangle): Rename to...
2563 (objc_language::demangle_symbol): ...this.
2564 * rust-lang.c (rust_language::demangle): Rename to...
2565 (rust_language::demangle_symbol): ...this.
2567 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2569 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2570 (iterate_over_file_blocks): Replace use of macro with the macros
2573 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2575 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2576 * valprint.c (maybe_print_array_index): Replace use of macro with
2577 the macros definition.
2579 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2581 * ada-lang.c (ada_language::print_array_index): Call value_print
2583 * language.c (language_defn::print_array_index): Likewise.
2584 * language.h (LA_VALUE_PRINT): Delete.
2585 * valprint.c (value_print): Call value_print on the
2586 current_language directly.
2588 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2590 * language.h (LA_PRINT_TYPEDEF): Delete.
2591 * typeprint.c (typedef_print): Call print_typedef directly on the
2592 current_language object.
2594 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2596 * m2-exp.y (m2_parse): Rename to...
2597 (m2_language::parser): ...this. Update function signature.
2598 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2599 (m2_op_print): Rename to...
2600 (m2_language::op_print_tab): ...this, and make const.
2601 (exp_descriptor_modula2): Rename to...
2602 (m2_language::exp_descriptor_modula2): ...this.
2603 (class m2_language): Move to m2-lang.h.
2604 (m2_language::language_arch_info): New function, moved out of
2606 (m2_language::printchar): New function, body from m2_printchar.
2607 (m2_language::printstr): New function, moved out of class
2609 (m2_language::emitchar): Likewise.
2610 * m2-lang.h (m2_parse): Delete declaration.
2611 (m2_print_typedef): Delete declaration.
2612 (m2_value_print_inner): Delete declaration.
2613 (class m2_language): Class declaration moved from m2-lang.c,
2614 larger functions are left in m2-lang.c.
2615 * m2-typeprint.c (m2_print_typedef): Rename to...
2616 (m2_language::print_typedef): ...this, and update function
2618 * m2-valprint.c (m2_value_print_inner): Rename to...
2619 (m2_language::value_print_inner): ...this, replace use of
2620 LA_PRINT_STRING with a direct call to printstr member function,
2621 and update recursive call.
2623 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2625 * language.c (default_is_string_type_p): Delete, implementation
2626 moved into auto_or_unknown_language::is_string_type_p.
2627 (unk_op_print_tab): Moved into
2628 auto_or_unknown_language::opcode_print_table.
2629 (unknown_language_arch_info): Delete, implementation moved into
2630 auto_or_unknown_language::language_arch_info.
2631 (class auto_or_unknown_language): New class, member functions
2632 copied from unknown_language class, with some updates.
2633 (class unknown_language): Most member functions moved into
2634 auto_or_unknown_language class. Inherit from
2635 auto_or_unknown_language class.
2636 (class auto_language): Inherit from auto_or_unknown_language.
2637 Delete most member functions.
2639 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2641 * stabsread.c (read_member_functions): Remove gdb_assert.
2643 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2645 * gdbtypes.c (init_complex_type): Check target type name.
2647 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2649 * target-debug.h (target_debug_print_struct_target_ops_p):
2651 (target_debug_print_async_callback_ftype_p): Remove.
2652 (target_debug_print_struct_trace_state_variable_p): Remove.
2653 (target_debug_print_struct_traceframe_info_p): Remove.
2654 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2655 (target_debug_print_enum_btrace_format): Remove.
2656 (target_debug_print_enum_info_proc_what): Remove.
2657 (target_debug_print_thread_info_pp): Remove.
2659 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2661 * target.h (struct target_ops) <make_corefile_notes>:
2662 Change return type to unique pointer.
2663 * target.c (dummy_make_corefile_notes): Likewise.
2664 * exec.c (struct exec_target) <make_corefile_notes>:
2666 (exec_target::make_corefile_notes): Likewise.
2667 * procfs.c (class procfs_target) <make_corefile_notes>:
2669 (procfs_do_thread_registers): Adjust to unique pointer.
2670 (struct procfs_corefile_thread_data): Add constructor.
2671 <note_data>: Change type to unique pointer.
2672 (procfs_corefile_thread_callback): Adjust to unique pointer.
2673 (procfs_target::make_corefile_notes): Change return type to
2675 * target-delegates.c: Re-generate.
2676 * gcore.c (write_gcore_file_1): Adjust.
2677 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2680 2020-10-22 Tom de Vries <tdevries@suse.de>
2682 * block.c (find_block_in_blockvector): Make sure the returned block
2685 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2688 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2690 (load_cu): Pass existing CU.
2691 (process_imported_unit_die): Likewise.
2692 (follow_die_offset): Likewise.
2694 2020-10-22 Luis Machado <luis.machado@linaro.org>
2696 * corelow.c (core_target::xfer_partial): Also check for an empty
2697 m_core_unavailable_mappings vector.
2699 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2701 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2702 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2703 * f-exp.y (arglist): Allow for a series of subranges.
2704 (subrange): Add cases for subranges with strides.
2705 * f-lang.c (value_f90_subarray): Catch use of array strides and
2707 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2709 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2711 * expprint.c (print_subexp_standard): Change enum range_type to
2712 range_flag and rename variables to match.
2713 (dump_subexp_body_standard): Likewise.
2714 * expression.h (enum range_type): Rename to...
2715 (enum range_flag): ...this.
2716 (range_types): Rename to...
2717 (range_flags): ...this.
2718 * f-lang.c (value_f90_subarray): Change enum range_type to
2719 range_flag and rename variables to match.
2720 * parse.c (operator_length_standard): Likewise.
2721 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2722 range_type to range_flag.
2723 * rust-lang.c (rust_evaluate_funcall): Likewise.
2724 (rust_range): Likewise.
2725 (rust_compute_range): Likewise.
2726 (rust_subscript): Likewise.
2728 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2730 * expprint.c (print_subexp_standard): Update to reflect changes to
2732 (dump_subexp_body_standard): Likewise.
2733 * expression.h (enum range_type): Convert to a bit field enum, and
2734 make the enum unsigned.
2735 * f-exp.y (subrange): Update to reflect changes to enum
2737 * f-lang.c (value_f90_subarray): Likewise.
2738 * parse.c (operator_length_standard): Likewise.
2739 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2740 * rust-lang.c (rust_range): Likewise.
2741 (rust_compute_range): Likewise.
2742 (rust_subscript): Likewise.
2744 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2746 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2747 (displaced_step_in_progress): Fix comment.
2749 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2751 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2752 * gdbarch.c: Re-generate.
2753 * gdbarch.h: Re-generate.
2754 * gcore.c (write_gcore_file_1): Adjust.
2755 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2757 <note_data>: Change type to unique pointer.
2758 <abort_iteration>: Change type to bool.
2759 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2760 (fbsd_collect_thread_registers): Return void, adjust.
2761 (struct fbsd_corefile_thread_data): Add construtor.
2762 <note_data>: Change type to unique pointer.
2763 (fbsd_corefile_thread): Adjust.
2764 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2765 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2766 to unique pointer, adjust.
2767 (struct linux_collect_regset_section_cb_data): Add constructor.
2768 <note_data>: Change type to unique pointer.
2769 <abort_iteration>: Change type to bool.
2770 (linux_collect_thread_registers): Return void, adjust.
2771 (struct linux_corefile_thread_data): Add constructor.
2772 <note_data>: Change type to unique pointer.
2773 (linux_corefile_thread): Adjust.
2774 (linux_make_corefile_notes): Return unique pointer, adjust.
2776 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2778 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2779 * gdbarch.c: Re-generate.
2780 * gdbarch.h: Re-generate.
2781 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2783 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2785 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2786 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2787 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2788 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2790 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2792 * gdbarch.sh: Make generated predicates return bool.
2793 * gdbarch.c: Re-generate.
2794 * gdbarch.h: Re-generate.
2796 2020-10-20 Tom Tromey <tom@tromey.com>
2798 * varobj-iter.h (struct varobj_item): Remove typedef.
2800 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2802 * infrun.c (currently_stepping): Change int to bool
2803 (maybe_software_singlestep): Likewise.
2804 (show_stop_on_solib_events): Likewise.
2805 (stepping_past_nonsteppable_watchpoint): Likewise.
2806 (displaced_step_in_progress_any_inferior): Likewise.
2807 (displaced_step_in_progress_thread): Likewise.
2808 (keep_going_stepped_thread): Likewise.
2809 (thread_still_needs_step_over): Likewise.
2810 (start_step_over): Likewise.
2811 (do_target_resume): Likewise.
2812 (resume_1): Likewise.
2813 (clear_proceed_status): Likewise.
2814 (thread_still_needs_step_over_bp): Likewise.
2815 (proceed): Likewise.
2816 (switch_back_to_stepped_thread): Likewise.
2817 (adjust_pc_after_break): Likewise.
2818 (stepped_in_from): Likewise.
2819 (handle_stop_requested): Likewise.
2820 (handle_syscall_event): Likewise.
2821 (handle_no_resumed): Likewise.
2822 (handle_inferior_event): Likewise.
2823 (finish_step_over): Likewise.
2824 (handle_signal_stop): Likewise.
2825 (process_event_stop_test): Likewise.
2827 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2829 * infrun.c (get_displaced_stepping_state): Fix comment.
2831 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2833 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2835 2020-10-19 Tom Tromey <tromey@adacore.com>
2838 * tui/tui-winsource.h (struct tui_source_window_base)
2839 <refresh_window>: Rename from refresh_pad.
2840 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2841 Rename from refresh_pad.
2842 (tui_source_window_base::show_source_content)
2843 (tui_source_window_base::do_scroll_horizontal): Update.
2845 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2847 * thread.c (_initialize_thread): Fine-tune the help text of
2850 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2852 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2854 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2856 * breakpoint.c (handle_jit_event): Add an argument, change how
2857 `jit_event_handler` is called.
2859 2020-10-17 Tom Tromey <tom@tromey.com>
2861 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2862 (scan_xcoff_symtab): Update.
2863 * psymtab.h (class psymtab_storage) <global_psymbols,
2864 static_psymbols, current_global_psymbols,
2865 current_static_psymbols>: Remove.
2866 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2867 (match_partial_symbol, lookup_partial_symbol): Update.
2868 (print_partial_symbols): Change parameters.
2869 (dump_psymtab, recursively_search_psymtabs)
2870 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2871 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2873 (end_psymtab_common): Simplify.
2874 (append_psymbol_to_list): Change parameters.
2875 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2876 (init_psymbol_list): Simplify.
2877 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2878 * psympriv.h (struct partial_symtab) <empty>: New method.
2879 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2881 <global_psymbols, static_psymbols>: New members.
2882 <add_psymbol>: New methods.
2883 (add_psymbol_to_list): Don't declare.
2884 (psymbol_placement): Move earlier.
2885 * mdebugread.c (parse_partial_symbols): Update.
2886 (handle_psymbol_enumerators): Change parameters.
2887 (mdebug_expand_psymtab): Update.
2888 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2889 (add_partial_symbol): Update.
2890 * dwarf2/index-write.c (write_psymbols): Change parameters.
2891 (write_one_signatured_type): Update.
2892 (recursively_count_psymbols): Update.
2893 (recursively_write_psymbols): Update.
2894 (class debug_names) <recursively_write_psymbols>: Update.
2895 <write_psymbols>: Change parameters.
2896 <write_one_signatured_type>: Update.
2897 * dbxread.c (read_dbx_symtab): Update.
2898 (dbx_end_psymtab): Use partial_symtab::empty.
2899 * ctfread.c (struct ctf_context) <pst>: New member.
2900 (create_partial_symtab): Set it.
2901 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2902 (scan_partial_symbols): Use the psymtab's context. Update.
2904 2020-10-17 Tom Tromey <tom@tromey.com>
2906 * valprint.c (generic_value_print): Remove comment.
2907 * m2-valprint.c (m2_value_print_inner): Remove comment.
2908 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2911 2020-10-17 Tom de Vries <tdevries@suse.de>
2914 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2917 2020-10-14 Tom de Vries <tdevries@suse.de>
2920 * solib.c (solib_contains_address_p): Handle
2921 'solib->sections == nullptr'.
2923 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2926 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2927 target can't do async.
2928 * target.c (target_wait): Assert that we don't pass
2929 TARGET_WNOHANG to a target that can't async.
2931 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2933 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2934 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2935 * alpha-bsd-nat.c: Adjust include.
2936 * alpha-bsd-tdep.h: Adjust comment.
2937 * alpha-nbsd-tdep.c: Rename to ...
2938 * alpha-netbsd-tdep.c: ... this, adjust include.
2939 * amd64-nbsd-nat.c: Rename to ...
2940 * amd64-netbsd-nat.c: ... this, adjust include.
2941 * amd64-nbsd-tdep.c: Rename to ...
2942 * amd64-netbsd-tdep.c: ... this, adjust include.
2943 * amd64-tdep.h: Adjust include.
2944 * arm-nbsd-nat.c: Rename to ...
2945 * arm-netbsd-nat.c: ... this, adjust include.
2946 * arm-nbsd-tdep.c: Rename to ...
2947 * arm-netbsd-tdep.c: ... this, adjust include.
2948 * arm-nbsd-tdep.h: Rename to ...
2949 * arm-netbsd-tdep.h: ... this, adjust include.
2950 * configure.nat: Adjust file lists.
2951 * configure.tgt: Likewise.
2952 * hppa-nbsd-nat.c: Rename to ...
2953 * hppa-netbsd-nat.c: ... this, adjust include.
2954 * hppa-nbsd-tdep.c: Rename to ...
2955 * hppa-netbsd-tdep.c: ... this, adjust include.
2956 * i386-nbsd-nat.c: Rename to ...
2957 * i386-netbsd-nat.c: ... this, adjust include.
2958 * i386-nbsd-tdep.c: Rename to ...
2959 * i386-netbsd-tdep.c: ... this, adjust include.
2960 * m68k-bsd-nat.c: Adjust include.
2961 * mips-nbsd-nat.c: Rename to ...
2962 * mips-netbsd-nat.c: ... this, adjust include.
2963 * mips-nbsd-tdep.c: Rename to ...
2964 * mips-netbsd-tdep.c: ... this, adjust include.
2965 * mips-nbsd-tdep.h: Rename to ...
2966 * mips-netbsd-tdep.h: ... this.
2967 * nbsd-nat.c: Rename to ...
2968 * netbsd-nat.c: ... this, adjust include.
2969 * nbsd-nat.h: Rename to ...
2970 * netbsd-nat.h: ... this, adjust include.
2971 * nbsd-tdep.c: Rename to ...
2972 * netbsd-tdep.c: ... this, adjust include.
2973 * nbsd-tdep.h: Rename to ...
2974 * netbsd-tdep.h: ... this.
2975 * ppc-nbsd-nat.c: Rename to ...
2976 * ppc-netbsd-nat.c: ... this, adjust include.
2977 * ppc-nbsd-tdep.c: Rename to ...
2978 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2979 * ppc-nbsd-tdep.h: Rename to ...
2980 * ppc-netbsd-tdep.h: ... this.
2981 * sh-nbsd-nat.c: Rename to ...
2982 * sh-netbsd-nat.c: ... this, adjust include.
2983 * sh-nbsd-tdep.c: Rename to ...
2984 * sh-netbsd-tdep.c: ... this, adjust include.
2985 * sparc-nbsd-nat.c: Rename to ...
2986 * sparc-netbsd-nat.c: ... this.
2987 * sparc-nbsd-tdep.c: Rename to ...
2988 * sparc-netbsd-tdep.c: ... this, adjust include.
2989 * sparc64-nbsd-nat.c: Rename to ...
2990 * sparc64-netbsd-nat.c: ... this.
2991 * sparc64-nbsd-tdep.c: Rename to ...
2992 * sparc64-netbsd-tdep.c: ... this, adjust include.
2993 * sparc64-tdep.h: Adjust comment.
2994 * vax-bsd-nat.c: Adjust include.
2995 * vax-nbsd-tdep.c: Rename to ...
2996 * vax-netbsd-tdep.c: ... this, adjust include.
2998 2020-10-12 Tom Tromey <tom@tromey.com>
3000 * target.h (struct target_ops) <get_section_table>: Update.
3001 (target_get_section_table): Update.
3002 * target.c (target_get_section_table, target_section_by_addr)
3003 (memory_xfer_partial_1): Update.
3004 * target-section.h (target_section_table): Now an alias.
3005 * target-delegates.c: Rebuild.
3006 * target-debug.h (target_debug_print_target_section_table_p):
3007 Rename from target_debug_print_struct_target_section_table_p.
3008 * symfile.c (build_section_addr_info_from_section_table): Update.
3009 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3010 * solib-svr4.c (scan_dyntag): Update.
3011 * solib-dsbt.c (scan_dyntag): Update.
3012 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3014 * record-full.c (record_full_core_target::xfer_partial): Update.
3015 * progspace.h (struct program_space) <target_sections>: Update.
3016 * exec.h (print_section_info): Update.
3017 * exec.c (exec_target::close, build_section_table)
3018 (add_target_sections, add_target_sections_of_objfile)
3019 (remove_target_sections, exec_on_vfork)
3020 (section_table_available_memory)
3021 (section_table_xfer_memory_partial)
3022 (exec_target::get_section_table, exec_target::xfer_partial)
3023 (print_section_info, set_section_command)
3024 (exec_set_section_address, exec_target::has_memory): Update.
3025 * corelow.c (core_target::build_file_mappings)
3026 (core_target::xfer_partial, core_target::info_proc_mappings)
3027 (core_target::info_proc_mappings): Update.
3028 * bfd-target.c (class target_bfd): Update
3030 2020-10-12 Tom Tromey <tom@tromey.com>
3032 * progspace.c (program_space::~program_space): Don't call
3033 clear_section_table.
3034 * exec.h (clear_section_table): Don't declare.
3035 * exec.c (exec_target::close): Update.
3036 (clear_section_table): Remove.
3038 2020-10-12 Tom Tromey <tom@tromey.com>
3040 * exec.c (add_target_sections_of_objfile): Simplify.
3042 2020-10-12 Tom Tromey <tom@tromey.com>
3044 * solib.c (solib_map_sections): Update.
3045 * record-full.c (record_full_core_open_1): Update.
3046 * exec.h (build_section_table): Return a target_section_table.
3047 * exec.c (exec_file_attach): Update.
3048 (build_section_table): Return a target_section_table.
3049 * corelow.c (core_target::core_target): Update.
3050 * bfd-target.c (target_bfd::target_bfd): Update.
3052 2020-10-12 Tom Tromey <tom@tromey.com>
3054 * target.c (target_section_by_addr, memory_xfer_partial_1):
3056 * target-section.h (struct target_section_table): Use
3058 * symfile.h (build_section_addr_info_from_section_table): Take a
3059 target_section_table.
3060 * symfile.c (build_section_addr_info_from_section_table): Take a
3061 target_section_table.
3062 * solist.h (struct so_list) <sections>: Change type.
3063 <sections_end>: Remove.
3064 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3065 (solib_contains_address_p): Update.
3066 * solib-svr4.c (scan_dyntag): Update.
3067 * solib-dsbt.c (scan_dyntag): Update.
3068 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3070 * record-full.c (record_full_core_start, record_full_core_end):
3072 (record_full_core_sections): New global.
3073 (record_full_core_open_1, record_full_core_target::xfer_partial):
3075 * exec.h (build_section_table, section_table_xfer_memory_partial)
3076 (add_target_sections): Take a target_section_table.
3077 * exec.c (exec_file_attach, clear_section_table): Update.
3078 (resize_section_table): Remove.
3079 (build_section_table, add_target_sections): Take a
3080 target_section_table.
3081 (add_target_sections_of_objfile, remove_target_sections)
3082 (exec_on_vfork): Update.
3083 (section_table_available_memory): Take a target_section_table.
3084 (section_table_read_available_memory): Update.
3085 (section_table_xfer_memory_partial): Take a target_section_table.
3086 (print_section_info, set_section_command)
3087 (exec_set_section_address, exec_target::has_memory): Update.
3088 * corelow.c (class core_target) <m_core_section_table,
3089 m_core_file_mappings>: Remove braces.
3090 <~core_target>: Remove.
3091 (core_target::core_target): Update.
3092 (core_target::~core_target): Remove.
3093 (core_target::build_file_mappings)
3094 (core_target::xfer_memory_via_mappings)
3095 (core_target::xfer_partial, core_target::info_proc_mappings):
3097 * bfd-target.c (target_bfd::xfer_partial): Update.
3098 (target_bfd::target_bfd): Update.
3099 (target_bfd::~target_bfd): Remove.
3101 2020-10-12 Tom Tromey <tom@tromey.com>
3103 * target.h (struct target_section, struct target_section_table):
3104 Move to target-section.h.
3105 * target-section.h: New file.
3107 2020-10-12 Pedro Alves <pedro@palves.net>
3110 * valops.c (struct struct_field_searcher): New.
3111 (update_search_result): Rename to ...
3112 (struct_field_searcher::update_result): ... this. Simplify
3113 prototype. Record all found fields.
3114 (do_search_struct_field): Rename to ...
3115 (struct_field_searcher::search): ... this. Simplify prototype.
3116 Maintain stack of visited baseclass path. Call update_result for
3117 fields too. Keep searching fields in baseclasses instead of
3118 stopping at the first found field.
3119 (search_struct_field): Use struct_field_searcher. When looking
3120 for fields, report ambiguous access attempts.
3122 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3124 * frame.c (inside_main_func): Check full symbols as well as
3127 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3129 * ada-lang.c (advance_wild_match): Rewrite the function's
3130 description. Change the type of target0, t0 and t1 to char.
3132 2020-10-09 Tom Tromey <tromey@adacore.com>
3134 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3136 2020-10-09 Tom Tromey <tromey@adacore.com>
3138 * ada-lang.h (ada_encode): Return std::string.
3139 * ada-lang.c (ada_encode_1): Return std::string.
3140 (ada_encode): Likewise.
3141 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3143 * ada-exp.y (block_lookup, write_var_or_type): Update.
3145 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3148 * printcmd.c (print_formatted): Handle void results as
3151 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3153 * arch/aarch32.c (aarch32_create_target_description): Release the
3154 target_desc_up as late as possible.
3155 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3156 * arch/amd64.c (amd64_create_target_description): Likewise.
3157 * arch/arc.c (arc_create_target_description): Return a
3158 target_desc_up, don't release it.
3159 * arch/arc.h (arc_create_target_description): Update declaration.
3160 (arc_lookup_target_description): Move target_desc_up into the
3161 cache, and return a borrowed pointer.
3162 * arch/arm.c (arm_create_target_description): Release the
3163 target_desc_up as late as possible.
3164 * arch/i386.c (i386_create_target_description): Likewise.
3165 * arch/riscv.h (riscv_create_target_description): Update
3166 declaration to match definition.
3167 * arch/tic6x.c (tic6x_create_target_description): Release the
3168 target_desc_up as late as possible.
3170 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3172 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3173 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3175 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3177 * source.c (directory_command): Notify observers that "directories"
3178 parameter has changed.
3180 2020-10-08 Tom Tromey <tom@tromey.com>
3182 * cli/cli-cmds.c (print_disassembly): Style function name and
3183 addresses. Add _() wrappers.
3185 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3187 * NEWS: Mention ARC support in GDBserver.
3189 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3191 * arch/aarch32.c (aarch32_create_target_description): Release
3192 unique_ptr returned from allocate_target_description.
3193 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3194 * arch/amd64.c (amd64_create_target_description): Likewise.
3195 * arch/arc.c (arc_create_target_description): Likewise.
3196 * arch/arm.c (arm_create_target_description): Likewise.
3197 * arch/i386.c (i386_create_target_description): Likewise.
3198 * arch/riscv.c (riscv_create_target_description): Update return
3199 type. Handle allocate_target_description returning a unique_ptr.
3200 (riscv_lookup_target_description): Update to handle unique_ptr.
3201 * arch/tic6x.c (tic6x_create_target_description): Release
3202 unique_ptr returned from allocate_target_description.
3203 * features/microblaze-with-stack-protect.c: Regenerate.
3204 * features/microblaze.c: Regenerate.
3205 * features/mips-dsp-linux.c: Regenerate.
3206 * features/mips-linux.c: Regenerate.
3207 * features/mips64-dsp-linux.c: Regenerate.
3208 * features/mips64-linux.c: Regenerate.
3209 * features/nds32.c: Regenerate.
3210 * features/nios2.c: Regenerate.
3211 * features/or1k.c: Regenerate.
3212 * features/rs6000/powerpc-32.c: Regenerate.
3213 * features/rs6000/powerpc-32l.c: Regenerate.
3214 * features/rs6000/powerpc-403.c: Regenerate.
3215 * features/rs6000/powerpc-403gc.c: Regenerate.
3216 * features/rs6000/powerpc-405.c: Regenerate.
3217 * features/rs6000/powerpc-505.c: Regenerate.
3218 * features/rs6000/powerpc-601.c: Regenerate.
3219 * features/rs6000/powerpc-602.c: Regenerate.
3220 * features/rs6000/powerpc-603.c: Regenerate.
3221 * features/rs6000/powerpc-604.c: Regenerate.
3222 * features/rs6000/powerpc-64.c: Regenerate.
3223 * features/rs6000/powerpc-64l.c: Regenerate.
3224 * features/rs6000/powerpc-7400.c: Regenerate.
3225 * features/rs6000/powerpc-750.c: Regenerate.
3226 * features/rs6000/powerpc-860.c: Regenerate.
3227 * features/rs6000/powerpc-altivec32.c: Regenerate.
3228 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3229 * features/rs6000/powerpc-altivec64.c: Regenerate.
3230 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3231 * features/rs6000/powerpc-e500.c: Regenerate.
3232 * features/rs6000/powerpc-e500l.c: Regenerate.
3233 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3234 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3235 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3236 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3237 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3238 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3239 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3240 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3241 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3242 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3243 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3244 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3245 * features/rs6000/powerpc-vsx32.c: Regenerate.
3246 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3247 * features/rs6000/powerpc-vsx64.c: Regenerate.
3248 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3249 * features/rs6000/rs6000.c: Regenerate.
3250 * features/rx.c: Regenerate.
3251 * features/s390-gs-linux64.c: Regenerate.
3252 * features/s390-linux32.c: Regenerate.
3253 * features/s390-linux32v1.c: Regenerate.
3254 * features/s390-linux32v2.c: Regenerate.
3255 * features/s390-linux64.c: Regenerate.
3256 * features/s390-linux64v1.c: Regenerate.
3257 * features/s390-linux64v2.c: Regenerate.
3258 * features/s390-te-linux64.c: Regenerate.
3259 * features/s390-tevx-linux64.c: Regenerate.
3260 * features/s390-vx-linux64.c: Regenerate.
3261 * features/s390x-gs-linux64.c: Regenerate.
3262 * features/s390x-linux64.c: Regenerate.
3263 * features/s390x-linux64v1.c: Regenerate.
3264 * features/s390x-linux64v2.c: Regenerate.
3265 * features/s390x-te-linux64.c: Regenerate.
3266 * features/s390x-tevx-linux64.c: Regenerate.
3267 * features/s390x-vx-linux64.c: Regenerate.
3268 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3269 from allocate_target_description.
3270 * target-descriptions.c (allocate_target_description): Update
3272 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3273 allocate_target_description.
3275 2020-10-07 Tom Tromey <tromey@adacore.com>
3277 * unittests/search-memory-selftests.c: New file.
3278 * Makefile.in (SELFTESTS_SRCS): Add
3279 unittests/search-memory-selftests.c.
3281 2020-10-07 Tom Tromey <tromey@adacore.com>
3284 * findcmd.c (_initialize_mem_search): Mention that the range is
3287 2020-10-07 Tom Tromey <tromey@adacore.com>
3289 * target.h (simple_search_memory): Don't declare.
3290 * target.c (simple_search_memory): Move to gdbsupport.
3291 (default_search_memory): Update.
3292 * remote.c (remote_target::search_memory): Update.
3294 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3296 * Makefile.in (COMPILE): Add CXXFLAGS.
3297 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3298 (check-headers): Add CXXFLAGS.
3300 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3302 * arc-linux-tdep.h: New file.
3303 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3304 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3305 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3306 arc_linux_gregset, arc_linux_v2_regset,
3307 arc_linux_iterate_over_regset_sections,
3308 arc_linux_core_read_description): Implement.
3309 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3310 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3311 (arc_gdbarch_features_create): Add.
3312 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3314 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3316 * arch/arc.h: Rename "arc_gdbarch_features" to
3317 "arc_arch_features".
3318 * arc-tdep.h: Likewise.
3319 * arc-tdep.c: Likewise.
3321 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3323 * infcmd.c (attach_command): Remove the redundant call to
3324 `clear_proceed_status`.
3326 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3328 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3330 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3332 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3333 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3334 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3336 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3338 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3339 (_initialize_break_catch_sig): Don't allocate array.
3341 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3343 * symtab.c (find_pc_line): Return unmapped addresses when the
3344 requested address is also unmapped.
3346 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3348 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3351 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3353 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3354 type::is_vector instead of TYPE_VECTOR.
3356 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3358 * auto-load.c (auto_load_objfile_script_1): Don't use
3359 debugfile_holder as temporary variable when stripping drive
3362 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3364 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3365 Add TYPE_CODE_COMPLEX.
3366 (amd64_windows_return_value): Fix types returned via XMM0.
3368 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3370 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3371 AArch64/ARM maintainers.
3373 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3375 * NEWS: Mention set/show debug event-loop.
3377 2020-10-02 Tom Tromey <tromey@adacore.com>
3379 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3382 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3384 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3385 * procfs.c (procfs_inferior_created): Remove.
3386 (_initialize_procfs): Don't register procfs_inferior_created.
3388 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3390 * async-event.c (invoke_async_signal_handlers): Add debug
3392 (check_async_event_handlers): Likewise.
3393 * event-top.c (show_debug_event_loop): New function.
3394 (_initialize_event_top): Register "set debug event-loop"
3397 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3399 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3401 * infrun.c: Include gdbsupport/common-debug.h.
3402 * linux-nat.c: Likewise.
3404 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3406 * async-event.h (create_async_signal_handler): Add name
3408 (create_async_event_handler): Likewise.
3409 * async-event.c (struct async_signal_handler) <name>: New field.
3410 (struct async_event_handler) <name>: New field.
3411 (create_async_signal_handler): Assign name.
3412 (create_async_event_handler): Assign name.
3413 * event-top.c (async_init_signals): Pass name when creating
3415 * infrun.c (_initialize_infrun): Likewise.
3416 * record-btrace.c (record_btrace_push_target): Likewise.
3417 * record-full.c (record_full_open): Likewise.
3418 * remote-notif.c (remote_notif_state_allocate): Likewise.
3419 * remote.c (remote_target::open_1): Likewise.
3420 * tui/tui-win.c (tui_initialize_win): Likewise.
3422 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3424 * async-event.c (initialize_async_signal_handlers): Pass name to
3426 * event-top.c (ui_register_input_event_handler): Likewise.
3427 * linux-nat.c (linux_nat_target::async): Likewise.
3428 * run-on-main-thread.c (_initialize_run_on_main_thread):
3430 * ser-base.c (reschedule): Likewise.
3431 (ser_base_async): Likewise.
3432 * tui/tui-io.c: Likewise.
3433 * top.h (struct ui) <num>: New field.
3434 * top.c (highest_ui_num): New variable.
3435 (ui::ui): Initialize num.
3437 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3439 * observable.h <inferior_created>: Remove parameters. Update all
3441 * inferior.h (post_create_inferior): Remove target parameter.
3444 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3446 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3447 and DW_MACRO_undef_strx.
3448 (dwarf_decode_macros): Likewise
3449 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3450 which is the value of DW_AT_str_offsets_base.
3451 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3454 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3456 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3458 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3460 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3461 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3463 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3465 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3467 2020-09-30 Tom de Vries <tdevries@suse.de>
3470 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3472 2020-09-30 Tom Tromey <tromey@adacore.com>
3474 * dwarf2/read.c (handle_variant): Use constant_value.
3476 2020-09-29 Tom Tromey <tom@tromey.com>
3478 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3479 (read_file_scope, dwarf2_get_pc_bounds)
3480 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3481 (read_structure_type, handle_struct_member_die)
3482 (read_enumeration_type, read_array_type, read_set_type)
3483 (read_tag_pointer_type, read_tag_reference_type)
3484 (read_subroutine_type, read_base_type, read_subrange_type)
3485 (read_full_die_1, partial_die_info::read)
3486 (partial_die_info::read, by, new_symbol)
3487 (dwarf2_const_value_data, dwarf2_const_value_attr)
3488 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3489 (prepare_one_comp_unit): Update.
3490 * dwarf2/attribute.h (DW_UNSND): Remove.
3492 2020-09-29 Tom Tromey <tom@tromey.com>
3494 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3495 (read_subroutine_type, partial_die_info::read)
3496 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3497 (dwarf2_add_member_fn): Update.
3498 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3499 * dwarf2/attribute.c (attribute::as_boolean): New method.
3501 2020-09-29 Tom Tromey <tom@tromey.com>
3503 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3504 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3506 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3508 2020-09-29 Tom Tromey <tom@tromey.com>
3510 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3511 the attribute's form.
3513 2020-09-29 Tom Tromey <tom@tromey.com>
3515 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3516 (dwarf2_add_member_fn): Update.
3517 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3518 * dwarf2/attribute.c (attribute::defaulted): New method, from
3519 is_valid_DW_AT_defaulted.
3521 2020-09-29 Tom Tromey <tom@tromey.com>
3523 * dwarf2/read.c (dw2_get_file_names_reader)
3524 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3525 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3526 (dwarf2_symbol_mark_computed): Use as_unsigned.
3527 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3529 <form_is_section_offset>: Update comment.
3531 2020-09-29 Tom Tromey <tom@tromey.com>
3533 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3534 dwarf2_default_access_attribute. Look up attribute.
3535 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3538 2020-09-29 Tom Tromey <tom@tromey.com>
3540 * dwarf2/read.c (skip_one_die): Update.
3541 (read_full_die_1): Change how reprocessing is done.
3542 (partial_die_info::read): Update.
3543 (read_attribute_value): Remove need_reprocess parameter.
3544 (read_attribute): Likewise.
3545 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3548 2020-09-29 Tom Tromey <tom@tromey.com>
3550 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3551 (dwarf2_const_value_attr, dump_die_shallow)
3552 (dwarf2_fetch_constant_bytes): Update.
3553 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3555 <set_address>: New method.
3557 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3558 (attribute::as_string, attribute::as_address): Add assert.
3560 2020-09-29 Tom Tromey <tom@tromey.com>
3562 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3563 (read_attribute_reprocess, read_attribute_value): Update.
3564 (read_attribute): Clear requires_reprocessing.
3565 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3566 form_requires_reprocessing>: New methods.
3567 <string_init>: Clear requires_reprocessing.
3568 <set_unsigned_reprocess>: New method.
3569 <name>: Shrink by one bit.
3570 <requires_reprocessing>: New member.
3571 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3574 2020-09-29 Tom Tromey <tom@tromey.com>
3576 * dwarf2/read.c (read_attribute_value): Update.
3577 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3578 set_unsigned>: New methods.
3579 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3581 2020-09-29 Tom Tromey <tom@tromey.com>
3583 * dwarf2/read.c (get_alignment, read_array_order)
3584 (read_attribute_value, dwarf2_const_value_attr)
3585 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3586 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3590 2020-09-29 Tom Tromey <tom@tromey.com>
3592 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3593 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3595 * dwarf2/attribute.h (struct attribute) <as_signature,
3596 set_signature>: New methods.
3597 (DW_SIGNATURE): Remove.
3599 2020-09-29 Tom Tromey <tom@tromey.com>
3601 * dwarf2/read.c (read_call_site_scope)
3602 (handle_data_member_location, dwarf2_add_member_fn)
3603 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3604 (partial_die_info::read, read_attribute_value)
3605 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3606 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3607 (dwarf2_symbol_mark_computed): Update.
3608 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3611 * dwarf2/attribute.c (attribute::form_is_block): Add
3614 2020-09-29 Tom Tromey <tom@tromey.com>
3616 * dwarf2/read.c (read_cutu_die_from_dwo)
3617 (read_attribute_reprocess, read_attribute_value, read_attribute)
3618 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3619 (dwarf2_fetch_constant_bytes): Update.
3620 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3621 <set_string_noncanonical, set_string_canonical>: New methods.
3622 <string_is_canonical>: Update comment.
3623 <canonical_string_p>: Add assert.
3624 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3625 * dwarf2/attribute.c (attribute::form_is_string): New method.
3626 (attribute::string): Use it.
3628 2020-09-29 Tom Tromey <tom@tromey.com>
3630 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3631 (dump_die_shallow): Use canonical_string_p.
3632 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3635 2020-09-29 Tom Tromey <tom@tromey.com>
3637 * dwarf2/read.c (partial_die_info::read)
3638 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3639 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3640 attribute::as_string.
3642 2020-09-29 Tom Tromey <tom@tromey.com>
3644 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3646 (attribute::string): Don't use DW_STRING.
3647 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3648 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3650 2020-09-29 Tom Tromey <tom@tromey.com>
3652 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3653 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3654 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3655 * dwarf2/attribute.h (struct attribute): Rename methods.
3656 * dwarf2/attribute.c (attribute::as_address): Rename from
3658 (attribute::as_string): Rename from value_as_string.
3660 2020-09-29 Tom Tromey <tom@tromey.com>
3662 * dwarf2/read.c (partial_die_info::read) <case
3663 DW_AT_linkage_name>: Use value_as_string.
3664 (dwarf2_string_attr): Use value_as_string.
3665 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3667 * dwarf2/attribute.c (attribute::value_as_string): New method.
3669 2020-09-29 Pedro Alves <pedro@palves.net>
3671 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3672 defined before using '#pragma GCC diagnostic' instead of checking
3675 2020-09-28 Tom Tromey <tom@tromey.com>
3677 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3678 (handle_signal_stop): Update.
3679 * procfs.c (procfs_target::insert_watchpoint): Update.
3680 * target.h (target_have_steppable_watchpoint): Now a function.
3682 2020-09-28 Tom Tromey <tom@tromey.com>
3684 * infrun.c (set_schedlock_func): Update.
3685 * target.h (target_can_lock_scheduler): Now a function.
3687 2020-09-28 Tom Tromey <tom@tromey.com>
3689 * inferior.h (class inferior) <has_execution>: Update.
3690 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3691 * valops.c (find_function_in_inferior)
3692 (value_allocate_space_in_inferior): Update.
3693 * top.c (kill_or_detach): Update.
3694 * target.c (target_preopen, set_target_permissions): Update.
3695 (target_has_execution_current): Remove.
3696 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3698 * solib.c (update_solib_list, reload_shared_libraries): Update.
3699 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3700 * solib-dsbt.c (enable_break): Update.
3701 * score-tdep.c (score7_fetch_inst): Update.
3702 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3704 * remote.c (remote_target::start_remote)
3705 (remote_target::remote_check_symbols, remote_target::open_1)
3706 (remote_target::remote_detach_1, remote_target::verify_memory)
3707 (remote_target::xfer_partial, remote_target::read_description)
3708 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3709 * record-full.c (record_full_open_1): Update.
3710 * record-btrace.c (record_btrace_target_open): Update.
3711 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3712 (value_nsstring): Update.
3713 * linux-thread-db.c (add_thread_db_info)
3714 (thread_db_find_new_threads_silently, check_thread_db_callback)
3715 (try_thread_db_load_1, record_thread): Update.
3716 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3718 * linux-fork.c (checkpoint_command): Update.
3719 * infrun.c (set_non_stop, set_observer_mode)
3720 (check_multi_target_resumption, for_each_just_stopped_thread)
3721 (maybe_remove_breakpoints, normal_stop)
3722 (class infcall_suspend_state): Update.
3723 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3724 (info_program_command, attach_command): Update.
3725 * infcall.c (call_function_by_hand_dummy): Update.
3726 * inf-loop.c (inferior_event_handler): Update.
3727 * gcore.c (gcore_command, derive_heap_segment): Update.
3728 * exec.c (exec_file_command): Update.
3729 * eval.c (evaluate_subexp): Update.
3730 * compile/compile.c (compile_to_object): Update.
3731 * cli/cli-dump.c (restore_command): Update.
3732 * breakpoint.c (update_watchpoint)
3733 (update_inserted_breakpoint_locations)
3734 (insert_breakpoint_locations, get_bpstat_thread): Update.
3735 * target.h (target_has_execution): Remove macro.
3736 (target_has_execution_current): Don't declare.
3737 (target_has_execution): Rename from target_has_execution_1. Add
3740 2020-09-28 Tom Tromey <tom@tromey.com>
3742 * mi/mi-main.c (exec_reverse_continue)
3743 (mi_cmd_list_target_features): Update.
3744 * infrun.c (set_exec_direction_func): Update.
3745 * target.c (default_execution_direction): Update.
3746 * reverse.c (exec_reverse_once): Update.
3747 * target.h (target_can_execute_reverse): Now a function.
3749 2020-09-28 Tom Tromey <tom@tromey.com>
3751 * tui/tui-regs.c (tui_get_register)
3752 (tui_data_window::show_registers): Update.
3753 * thread.c (scoped_restore_current_thread::restore)
3754 (scoped_restore_current_thread::scoped_restore_current_thread):
3756 * regcache-dump.c (regcache_print): Update.
3757 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3759 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3760 * mep-tdep.c (current_me_module, current_options): Update.
3761 * linux-thread-db.c (thread_db_load): Update.
3762 * infcmd.c (registers_info, info_vector_command)
3763 (info_float_command): Update.
3764 * ia64-tdep.c (ia64_frame_prev_register)
3765 (ia64_sigtramp_frame_prev_register): Update.
3766 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3767 * gcore.c (derive_stack_segment): Update.
3768 * frame.c (get_current_frame, has_stack_frames): Update.
3769 * findvar.c (language_defn::read_var_value): Update.
3770 * arm-tdep.c (arm_pc_is_thumb): Update.
3771 * target.c (target_has_registers): Rename from
3772 target_has_registers_1.
3773 * target.h (target_has_registers): Remove macro.
3774 (target_has_registers): Rename from target_has_registers_1.
3776 2020-09-28 Tom Tromey <tom@tromey.com>
3778 * windows-tdep.c (tlb_make_value): Update.
3779 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3780 * thread.c (scoped_restore_current_thread::restore)
3781 (scoped_restore_current_thread::scoped_restore_current_thread)
3782 (thread_command): Update.
3783 * stack.c (backtrace_command_1, frame_apply_level_command)
3784 (frame_apply_all_command, frame_apply_command): Update.
3785 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3787 * gcore.c (derive_stack_segment): Update.
3788 * frame.c (get_current_frame, has_stack_frames): Update.
3789 * auxv.c (info_auxv_command): Update.
3790 * ada-tasks.c (ada_build_task_list): Update.
3791 * target.c (target_has_stack): Rename from target_has_stack_1.
3792 * target.h (target_has_stack): Remove macro.
3793 (target_has_stack): Rename from target_has_stack_1.
3795 2020-09-28 Tom Tromey <tom@tromey.com>
3797 * target.c (target_has_memory): Rename from target_has_memory_1.
3798 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3799 * thread.c (scoped_restore_current_thread::restore)
3800 (scoped_restore_current_thread::scoped_restore_current_thread):
3802 * frame.c (get_current_frame, has_stack_frames): Update.
3803 * target.h (target_has_memory): Remove macro.
3804 (target_has_memory): Rename from target_has_memory_1.
3806 2020-09-28 Tom Tromey <tom@tromey.com>
3808 * target.c (target_has_all_memory_1): Remove.
3809 * target.h (target_has_all_memory): Remove define.
3810 (target_has_all_memory_1): Don't declare.
3812 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3814 * ser-base.c: Adjust comments formatting.
3816 2020-09-27 Tom Tromey <tom@tromey.com>
3819 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3821 2020-09-27 Tom Tromey <tom@tromey.com>
3824 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3826 2020-09-27 Tom Tromey <tom@tromey.com>
3828 * unittests/tui-selftests.c: Update.
3829 * tui/tui-winsource.h (struct tui_source_window_base)
3830 <extra_margin, show_line_number, refresh_pad>: New methods.
3831 <m_max_length, m_pad>: New members.
3832 (tui_copy_source_line): Update.
3833 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3834 first_col, line_width, ndigits parameters. Add length.
3835 (tui_source_window_base::show_source_line): Write to pad. Line
3837 (tui_source_window_base::refresh_pad): New method.
3838 (tui_source_window_base::show_source_content): Write to pad. Call
3840 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3842 (tui_source_window_base::update_exec_info): Call
3844 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3846 <m_digits>: New member.
3847 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3849 (tui_source_window::show_line_number): New method.
3850 * tui/tui-io.h (tui_puts): Fix comment.
3851 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3854 2020-09-27 Tom Tromey <tom@tromey.com>
3856 * tui/tui-winsource.c
3857 (tui_source_window_base::set_is_exec_point_at): Don't call
3860 2020-09-27 Tom Tromey <tom@tromey.com>
3862 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3865 <cursor_x, cursor_y>: Remove.
3866 <m_inner_window>: New member.
3867 (tui_py_window::rerender): Create inner window.
3868 (tui_py_window::output): Write to inner window.
3870 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3873 * cli/cli-script.c (execute_control_commands): don't set
3874 instream to nullptr here as this breaks the from_tty argument
3875 to gdb.execute in Python.
3876 (execute_user_command): set instream to nullptr here instead.
3878 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3880 * infrun.h (infrun_debug_printf): Fix formatting.
3881 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3883 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3885 * compile/compile-object-load.h (struct munmap_list): Add
3886 explicitly-defined move constructor.
3888 2020-09-24 Tom Tromey <tromey@adacore.com>
3891 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3893 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3894 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3895 (tui_prev_win): Rewrite.
3897 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3899 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3900 in WOW64 processes as SIGINT.
3901 * nat/windows-nat.h: Make wow64_process a shared variable.
3902 * windows-nat.c: Remove static wow64_process variable.
3904 2020-09-23 Tom Tromey <tom@tromey.com>
3907 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3908 offset and bit size.
3909 * printcmd.c (print_scalar_formatted): Handle zero-length
3911 (print_scalar_formatted): Use bit_size_differs_p.
3912 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3914 (union type_specific): <int_stuff>: New member.
3915 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3917 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3918 TYPE_SPECIFIC_FIELD.
3919 (recursive_dump_type, copy_type_recursive): Update.
3920 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3921 DW_AT_data_bit_offset.
3923 2020-09-23 Tom Tromey <tom@tromey.com>
3925 * utils.h (class gdb_argv): Add move operators.
3926 <append>: New methods.
3927 * compile/compile.c (build_argc_argv): Remove.
3928 (compile_args_argc): Remove.
3929 (compile_args_argv): Change type.
3930 (set_compile_args): Simplify.
3931 (append_args): Remove.
3932 (filter_args): Remove argcp parameter.
3933 (get_args): Return gdb_argv. Simplify.
3934 (compile_to_object): Update.
3936 2020-09-23 Tom Tromey <tom@tromey.com>
3938 * compile/compile-object-run.c (do_module_cleanup)
3939 <~do_module_cleanup> :Remove.
3940 (do_module_cleanup): Update.
3941 * compile/compile-object-load.h (struct munmap_list): Add move
3942 assignment operator.
3943 <source_file>: Now a std::string.
3944 <munmap_list>: Rename. No longer a pointer.
3945 * compile/compile-object-load.c (struct setup_sections_data): Add
3947 <setup_one_section>: Declare.
3948 <munmap_list>: Move earlier.
3949 <m_bfd>: New member.
3950 <m_last_size, m_last_section_first, m_last_prot,
3951 m_last_max_alignment>: Rename, add initializers where needed.
3952 (setup_sections_data::setup_one_section): Rename from
3953 setup_sections. Update.
3954 (compile_object_load): Update. Don't use bfd_map_over_sections.
3956 2020-09-23 Tom Tromey <tom@tromey.com>
3958 * compile/compile-object-run.c (struct do_module_cleanup): Add
3959 parameters to constructor. Update destructor.
3960 <source_file, scope, scope_data, out_value_type, out_value_addr,
3961 munmap_list_head, objfile_name_string>: Remove.
3962 <module>: New member.
3963 (do_module_cleanup): Update.
3964 (compile_object_run): Update.
3966 2020-09-23 Tom Tromey <tom@tromey.com>
3968 * compile/compile.c (eval_compile_command): Update.
3969 * compile/compile-object-run.h (compile_object_run): Take a
3971 * compile/compile-object-run.c (compile_object_run): Take a
3973 * compile/compile-object-load.h (struct compile_module): Add
3974 constructor, destructor.
3975 (compile_module_up): New typedef.
3976 (compile_object_load): Return compile_object_up.
3977 * compile/compile-object-load.c (compile_object_load): Return
3980 2020-09-23 Tom Tromey <tom@tromey.com>
3982 * compile/compile-object-run.c (struct do_module_cleanup): Add
3983 constructor, destructor.
3984 <objfile_name_string>: Don't use struct hack.
3985 (do_module_cleanup): Use delete.
3986 (compile_object_run): Use new.
3988 2020-09-23 Tom Tromey <tom@tromey.com>
3990 * compile/compile-cplus-types.c
3991 (compile_cplus_convert_struct_or_union): Use std::vector.
3992 (compile_cplus_convert_func): Likewise.
3993 * compile/compile-c-types.c (convert_func): Use std::vector.
3995 2020-09-21 Tom Tromey <tromey@adacore.com>
3997 * sparc-tdep.c (sparc32_skip_prologue): Use
3998 skip_prologue_using_sal.
4000 2020-09-19 Tom Tromey <tom@tromey.com>
4002 * symfile.c (add_section_size_callback): Remove.
4003 (load_one_section): Rename from load_section_callback. Change
4005 (generic_load): Use foreach.
4007 2020-09-19 Tom Tromey <tom@tromey.com>
4009 * exec.c (add_to_section_table): Remove.
4010 (build_section_table): Use foreach.
4012 2020-09-19 Tom Tromey <tom@tromey.com>
4014 * elfread.c (elf_locate_sections): Change parameters.
4015 (elf_symfile_read): Use foreach.
4017 2020-09-19 Tom Tromey <tom@tromey.com>
4019 * cli/cli-dump.c (struct callback_data): Remove.
4020 (restore_one_section): Rename from restore_section_callback.
4022 (restore_binary_file): Change parameters.
4023 (restore_command): Use foreach.
4025 2020-09-19 Tom Tromey <tom@tromey.com>
4027 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4028 (gcore_copy_callback): Likewise.
4029 (gcore_memory_sections): Use foreach.
4031 2020-09-19 Tom Tromey <tom@tromey.com>
4033 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4034 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4036 (generic_elf_osabi_sniffer): Use foreach.
4037 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4038 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4040 2020-09-19 Tom Tromey <tom@tromey.com>
4042 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4043 (dwarf2_get_dwz_file): Use foreach.
4044 (dwarf2_locate_dwo_sections): Change parameters.
4045 (open_and_init_dwo_file): Use foreach.
4046 (dwarf2_locate_common_dwp_sections): Change parameters.
4047 (open_and_init_dwp_file): Use foreach.
4049 2020-09-19 Tom Tromey <tom@tromey.com>
4051 * symfile.h: (find_lowest_section): Don't declare.
4052 * symfile.c (find_lowest_section): Now static. Change
4054 (struct place_section_arg): Remove.
4055 (place_section): Change parameters.
4056 (addr_info_make_relative): Use foreach.
4057 (symfile_dummy_outputs): Remove.
4058 (default_symfile_relocate): Use foreach.
4060 2020-09-19 Tom Tromey <tom@tromey.com>
4062 * objfiles.c (add_to_objfile_sections): Rename from
4063 add_to_objfile_sections_full.
4064 (add_to_objfile_sections): Remove.
4065 (build_objfile_section_table): Use foreach.
4067 2020-09-19 Tom Tromey <tom@tromey.com>
4069 * stap-probe.c (get_stap_base_address_1): Remove.
4070 (get_stap_base_address): Use foreach.
4072 2020-09-19 Tom Tromey <tom@tromey.com>
4074 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4076 (gdb_bfd_close_or_warn): Use foreach.
4078 2020-09-19 Tom Tromey <tom@tromey.com>
4080 * corelow.c (add_to_thread_list): Change parameters.
4081 (core_target_open): Use foreach.
4083 2020-09-19 Tom Tromey <tom@tromey.com>
4085 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4088 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4090 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4093 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4095 * eval.c: Remove 'f-lang.h' include.
4096 (value_f90_subarray): Moved to f-lang.c.
4097 (eval_call): Renamed to...
4098 (evaluate_subexp_do_call): ...this, is no longer static, header
4099 comment moved into header file.
4100 (evaluate_funcall): Update call to eval_call.
4101 (skip_undetermined_arglist): Moved to f-lang.c.
4102 (fortran_value_subarray): Likewise.
4103 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4104 moved to evaluate_subexp_f.
4105 (calc_f77_array_dims): Moved to f-lang.c
4106 * expprint.c (print_subexp_funcall): New function.
4107 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4108 moved to print_subexp_f, OP_FUNCALL uses new function.
4109 (dump_subexp_body_funcall): New function.
4110 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4111 moved to dump_subexp_f, OP_FUNCALL uses new function.
4112 * expression.h (evaluate_subexp_do_call): Declare.
4113 * f-lang.c (value_f90_subarray): Moved from eval.c.
4114 (skip_undetermined_arglist): Likewise.
4115 (calc_f77_array_dims): Likewise.
4116 (fortran_value_subarray): Likewise.
4117 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4118 (operator_length_f): Likewise.
4119 (print_subexp_f): Likewise.
4120 (dump_subexp_body_f): Likewise.
4121 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4122 declaration of this operation to here.
4123 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4124 support moved to operator_length_f.
4125 * parser-defs.h (dump_subexp_body_funcall): Declare.
4126 (print_subexp_funcall): Declare.
4127 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4128 fortran-operator.def.
4130 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4132 * eval.c (fortran_value_subarray): New function, content is taken
4134 (evaluate_subexp_standard): ...here, in two places. Now arrays
4135 and strings both call the new function.
4136 (calc_f77_array_dims): Add header comment, handle strings.
4138 2020-09-18 Victor Collod <vcollod@nvidia.com>
4141 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4142 (i386_analyze_prologue): Call i386_skip_endbr.
4144 2020-09-18 Tom Tromey <tromey@adacore.com>
4146 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4147 (windows_nat_target::wait): Update.
4148 * target/wait.h (enum target_wait_flag): New. Use
4149 DEF_ENUM_FLAGS_TYPE.
4150 * target/target.h (target_wait): Change type of options.
4151 * target.h (target_options_to_string, default_target_wait):
4153 (struct target_ops) <wait>: Change type of options.
4154 * target.c (target_wait, default_target_wait, do_option): Change
4156 (target_options_to_string): Likewise.
4157 * target-delegates.c: Rebuild.
4158 * target-debug.h (target_debug_print_target_wait_flags): Rename
4159 from target_debug_print_options.
4160 * sol-thread.c (class sol_thread_target) <wait>: Update.
4161 (sol_thread_target::wait): Update.
4162 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4163 (rs6000_nat_target::wait): Update.
4164 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4166 (remote_target::wait_ns, remote_target::wait_as): Change type of
4168 (remote_target::wait): Update.
4169 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4170 (gdbsim_target::wait): Update.
4171 * record-full.c (class record_full_base_target) <wait>: Update.
4172 (record_full_wait_1): Change type of "options".
4173 (record_full_base_target::wait): Update.
4174 * record-btrace.c (class record_btrace_target) <wait>: Update.
4175 (record_btrace_target::wait): Update.
4176 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4178 (ravenscar_thread_target::wait): Update.
4179 * procfs.c (class procfs_target) <wait>: Update.
4180 (procfs_target::wait): Update.
4181 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4182 * obsd-nat.c (obsd_nat_target::wait): Update.
4183 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4184 (nto_procfs_target::wait): Update.
4185 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4186 * nbsd-nat.c (nbsd_wait): Change type of "options".
4187 (nbsd_nat_target::wait): Update.
4188 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4189 (thread_db_target::wait): Update.
4190 * linux-nat.h (class linux_nat_target) <wait>: Update.
4191 * linux-nat.c (linux_nat_target::wait): Update.
4192 (linux_nat_wait_1): Update.
4193 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4195 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4196 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4197 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4198 (go32_nat_target::wait): Update.
4199 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4200 * gnu-nat.c (gnu_nat_target::wait): Update.
4201 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4202 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4203 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4204 * darwin-nat.c (darwin_nat_target::wait): Update.
4205 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4206 (bsd_uthread_target::wait): Update.
4207 * aix-thread.c (class aix_thread_target) <wait>: Update.
4208 (aix_thread_target::wait): Update.
4210 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4212 * compile/compile-object-run.c (create_copied_type_recursive): New
4214 (compile_object_run): Use new function.
4216 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4218 * NEWS: Mention x86_64 Cygwin core file support.
4220 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4222 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4223 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4225 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4227 * windows-tdep.h: Add prototypes.
4228 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4229 (i386_windows_core_pid_to_str): Move and rename ...
4230 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4231 (windows_core_pid_to_str): ... and here.
4232 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4234 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4235 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4236 (amd64_windows_init_abi_common): ... and register.
4238 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4240 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4241 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4243 2020-09-18 Pedro Alves <pedro@palves.net>
4246 * thread.c (thread_find_command): Switch inferior before calling
4249 2020-09-17 Tom Tromey <tromey@adacore.com>
4251 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4252 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4253 (tdesc_arch_data_up): New typedef.
4254 (tdesc_use_registers, tdesc_data_alloc): Update.
4255 (tdesc_data_cleanup): Don't declare.
4256 * target-descriptions.c (tdesc_data_alloc): Return a
4258 (tdesc_arch_data_deleter::operator()): Rename from
4259 tdesc_data_cleanup. Change argument type.
4260 (tdesc_use_registers): Change early_data to an rvalue reference.
4261 (tdesc_use_registers): Don't use delete.
4262 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4263 * s390-tdep.c (s390_gdbarch_init): Update.
4264 * rx-tdep.c (rx_gdbarch_init): Update.
4265 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4266 * riscv-tdep.c (riscv_gdbarch_init): Update.
4267 * or1k-tdep.c (or1k_gdbarch_init): Update.
4268 * nios2-tdep.c (nios2_gdbarch_init): Update.
4269 * nds32-tdep.c (nds32_gdbarch_init): Update.
4270 * mips-tdep.c (mips_gdbarch_init): Update.
4271 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4272 * m68k-tdep.c (m68k_gdbarch_init): Update.
4273 * i386-tdep.c (i386_gdbarch_init): Update.
4274 * arm-tdep.c (arm_gdbarch_init): Update.
4275 * arc-tdep.c (arc_tdesc_init): Update.
4276 (arc_gdbarch_init): Update.
4277 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4279 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4281 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4282 for WOW64 processes.
4284 2020-09-17 Tom Tromey <tom@tromey.com>
4286 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4288 2020-09-17 Tom Tromey <tom@tromey.com>
4290 * value.c (preserve_values): Update.
4291 * python/py-type.c (save_objfile_types): Update.
4292 * guile/scm-type.c (save_objfile_types): Update.
4293 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4294 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4295 * compile/compile-object-run.c (compile_object_run): Update.
4297 2020-09-17 Tom Tromey <tom@tromey.com>
4299 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4301 <m_table>: Now htab_up.
4302 * typeprint.c (typedef_hash_table::recursively_update)
4303 (typedef_hash_table::add_template_parameters)
4304 (typedef_hash_table::typedef_hash_table): Update.
4305 (typedef_hash_table::~typedef_hash_table): Remove.
4306 (typedef_hash_table::typedef_hash_table)
4307 (typedef_hash_table::find_global_typedef)
4308 (typedef_hash_table::find_typedef): Update.
4310 2020-09-17 Tom Tromey <tom@tromey.com>
4312 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4314 2020-09-17 Tom Tromey <tom@tromey.com>
4316 * linespec.c (class decode_compound_collector)
4317 <~decode_compound_collector>: Remove.
4318 <m_unique_syms>: Now htab_up.
4319 (decode_compound_collector::operator ()): Update.
4320 (class symtab_collector) <~symtab_collector>: Remove.
4321 <m_symtab_table>: Now htab_up.
4322 (symtab_collector::operator ()): Update.
4324 2020-09-17 Tom Tromey <tom@tromey.com>
4326 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4327 (filename_seen_cache::clear): Update.
4328 (~filename_seen_cache): Remove.
4329 (filename_seen_cache::seen): Update.
4330 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4332 <~filename_seen_cache>: Remove.
4335 2020-09-17 Tom Tromey <tom@tromey.com>
4337 * completer.c (completion_tracker::discard_completions)
4338 (completion_tracker::~completion_tracker)
4339 (completion_tracker::maybe_add_completion)
4340 (completion_tracker::remove_completion)
4341 (completion_tracker::recompute_lowest_common_denominator)
4342 (completion_tracker::build_completion_result): Update.
4343 * completer.h (class completion_tracker) <have_completions>:
4345 <m_entries_hash>: Now htab_up.
4347 2020-09-17 Tom Tromey <tom@tromey.com>
4349 * breakpoint.c (ambiguous_names_p): Use htab_up.
4351 2020-09-17 Tom Tromey <tom@tromey.com>
4353 * auto-load.c (struct auto_load_pspace_info)
4354 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4355 <loaded_script_files, loaded_script_texts>: Change type to
4357 (~auto_load_pspace_info) Remove.
4358 (init_loaded_scripts_info, maybe_add_script_file)
4359 (maybe_add_script_text, auto_load_info_scripts): Update.
4361 2020-09-17 Tom Tromey <tromey@adacore.com>
4363 * c-exp.y (name_obstack): Now static.
4365 2020-09-17 Chungyi Chi <demonic@csie.io>
4367 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4369 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4371 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4372 (add_solib_catchpoint): Likewise.
4373 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4375 (add_solib_catchpoint): Change int parameter/variable to bool.
4376 (catch_load_or_unload): Likewise.
4377 (init_catchpoint): Likewise.
4378 (create_fork_vfork_event_catchpoint): Likewise.
4379 (catch_fork_command_1): Likewise.
4380 (catch_exec_command_1): Likewise.
4382 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4384 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4385 Change instance_flags to m_instance_flags.
4387 2020-09-16 Tom Tromey <tromey@adacore.com>
4390 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4392 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4394 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4396 (fbsd_nat_target::insert_exec_catchpoint)
4397 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4398 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4399 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4401 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4403 * configure.ac: Remove check for kinfo_getvmmap().
4404 * configure, config.in: Regenerate.
4405 * fbsd-nat.c (fbsd_read_mapping): Remove
4406 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4407 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4408 kinfo_get_vmmap() are always present.
4410 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4412 * fbsd-nat.c: Always include support for
4413 TARGET_OBJECT_SIGNAL_INFO.
4415 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4417 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4418 sysctl and remove procfs fallback.
4420 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4422 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4423 * fbsd-nat.h: Likewise.
4425 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4427 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4430 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4432 * ada-lang.c (ada_language_data): Delete.
4433 (ada_language): Remove references to ada_language_data.
4434 * c-lang.c (c_language_data): Delete.
4435 (c_language): Remove references to c_language_data.
4436 (cplus_language_data): Delete.
4437 (cplus_language): Remove references to cplus_language_data.
4438 (asm_language_data): Delete.
4439 (asm_language): Remove references to asm_language_data.
4440 (minimal_language_data): Delete.
4441 (minimal_language): Remove references to minimal_language_data.
4442 * d-lang.c (d_language_data): Delete.
4443 (d_language): Remove references to d_language_data.
4444 * f-lang.c (f_language_data): Delete.
4445 (f_language): Remove references to f_language_data.
4446 * go-lang.c (go_language_data): Delete.
4447 (go_language): Remove references to go_language_data.
4448 * language.c (unknown_language_data): Delete.
4449 (unknown_language): Remove references to unknown_language_data.
4450 (auto_language_data): Delete.
4451 (auto_language): Remove references to auto_language_data.
4452 * language.h (language_data): Delete struct.
4453 (language_defn): No longer inherit from language_data.
4454 * m2-lang.c (m2_language_data): Delete.
4455 (m2_language): Remove references to m2_language_data.
4456 * objc-lang.c (objc_language_data): Delete.
4457 (objc_language): Remove references to objc_language_data.
4458 * opencl-lang.c (opencl_language_data): Delete.
4459 (opencl_language): Remove references to opencl_language_data.
4460 * p-lang.c (pascal_language_data): Delete.
4461 (pascal_language): Remove references to pascal_language_data.
4462 * rust-lang.c (rust_language_data): Delete.
4463 (rust_language): Remove references to rust_language_data.
4465 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4467 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4469 (ada_language::opcode_print_table): New member function.
4470 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4471 (c_language::opcode_print_table): New member function.
4472 (cplus_language_data): Remove la_op_print_tab initializer.
4473 (cplus_language::opcode_print_table): New member function.
4474 (asm_language_data): Remove la_op_print_tab initializer.
4475 (asm_language::opcode_print_table): New member function.
4476 (minimal_language_data): Remove la_op_print_tab initializer.
4477 (minimal_language::opcode_print_table): New member function.
4478 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4479 (d_language::opcode_print_table): New member function.
4480 * expprint.c (print_subexp_standard): Update call to
4482 (op_string): Likewise.
4483 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4484 (f_language::opcode_print_table): New member function.
4485 * go-lang.c (go_language_data): Remove la_op_print_tab
4487 (go_language::opcode_print_table): New member function.
4488 * language.c (unknown_language_data): Remove la_op_print_tab
4490 (unknown_language::opcode_print_table): New member function.
4491 (auto_language_data): Remove la_op_print_tab initializer.
4492 (auto_language::opcode_print_table): New member function.
4493 * language.h (language_data): Remove la_op_print_tab field.
4494 (language_defn::opcode_print_table): Declare new member function.
4495 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4497 (m2_language::opcode_print_table): New member function.
4498 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4500 (objc_language::opcode_print_table): New member function.
4501 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4503 (opencl_language::opcode_print_table): New member function.
4504 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4506 (pascal_language::opcode_print_table): New member function.
4507 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4509 (rust_language::opcode_print_table): New member function.
4511 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4513 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4514 (ada_language::expression_ops): New member function.
4515 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4516 (c_language::expression_ops): New member function.
4517 (cplus_language_data): Remove la_exp_desc initializer.
4518 (cplus_language::expression_ops): New member function.
4519 (asm_language_data): Remove la_exp_desc initializer.
4520 (asm_language::expression_ops): New member function.
4521 (minimal_language_data): Remove la_exp_desc initializer.
4522 (minimal_language::expression_ops): New member function.
4523 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4524 (d_language::expression_ops): New member function.
4525 * eval.c (evaluate_subexp): Update call to expression_ops.
4526 * expprint.c (print_subexp): Likewise.
4527 (op_name): Likewise.
4528 (dump_subexp_body): Likewise.
4529 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4530 (f_language::expression_ops): New member function.
4531 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4532 (go_language::expression_ops): New member function.
4533 * language.c (language_defn::expression_ops): New function.
4534 (unknown_language_data): Remove la_exp_desc initializer.
4535 (auto_language_data): Likewise.
4536 * language.h (language_data): Remove la_exp_desc field.
4537 (language_defn::expression_ops): Declare new member function.
4538 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4539 (m2_language::expression_ops): New member function.
4540 * objc-lang.c (objc_language_data): Remove la_exp_desc
4542 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4544 (opencl_language::expression_ops): New member function.
4545 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4546 * parse.c (operator_length): Update call to expression_ops.
4547 (exp_iterate): Likewise.
4548 * rust-lang.c (rust_language_data): Remove la_exp_desc
4550 (ruse_language::expression_ops): New member function.
4552 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4554 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4556 (ada_language::varobj_ops): New member function.
4557 * c-lang.c (c_language_data): Remove la_varobj_ops
4559 (cplus_language_data): Likewise.
4560 (cplus_language::varobj_ops): New member function.
4561 (asm_language_data): Remove la_varobj_ops initializer.
4562 (minimal_language_data): Likewise.
4563 * d-lang.c (d_language_data): Likewise.
4564 * f-lang.c (f_language_data): Likewise.
4565 * go-lang.c (go_language_data): Likewise.
4566 * language.c (language_defn::varobj_ops): New function.
4567 (unknown_language_data): Remove la_varobj_ops
4569 (auto_language_data): Likewise.
4570 * language.h (language_data): Remove la_varobj_ops field.
4571 (language_defn::varobj_ops): Declare new member function.
4572 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4573 * objc-lang.c (objc_language_data): Likewise.
4574 * opencl-lang.c (opencl_language_data): Likewise.
4575 * p-lang.c (pascal_language_data): Likewise.
4576 * rust-lang.c (rust_language_data): Likewise.
4577 * varobj.c (varobj_create): Update call to varobj_ops.
4578 * varobj.h (default_varobj_ops): Delete define.
4580 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4582 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4584 * c-lang.c (c_language_data): Likewise.
4585 (c_language::macro_expansion): New member function.
4586 (cplus_language_data): Likewise.
4587 (cplus_language::macro_expansion): New member function.
4588 (asm_language_data): Likewise.
4589 (asm_language::macro_expansion): New member function.
4590 (minimal_language_data): Likewise.
4591 (minimal_language::macro_expansion): New member function.
4592 * d-lang.c (d_language_data): Remove la_macro_expansion
4594 * f-lang.c (f_language_data): Likewise.
4595 * go-lang.c (go_language_data): Likewise.
4596 * language.c (unknown_language_data): Likewise.
4597 (auto_language_data): Likewise.
4598 * language.h (language_data): Remove la_macro_expansion field.
4599 (language_defn::macro_expansion): New member function.
4600 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4602 * objc-lang.c (objc_language_data): Likewise.
4603 (objc_language::macro_expansion): New member function.
4604 * opencl-lang.c (opencl_language_data): Likewise.
4605 (opencl_language::macro_expansion): New member function.
4606 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4608 * rust-lang.c (rust_language_data): Likewise.
4609 * symtab.c (default_collect_symbol_completion_matches_break_on):
4610 Update call to macro_expansion.
4612 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4614 * ada-lang.c (ada_language_data): Remove la_array_ordering
4616 * c-lang.c (c_language_data): Likewise.
4617 (cplus_language_data): Likewise.
4618 (asm_language_data): Likewise.
4619 (minimal_language_data): Likewise.
4620 * d-lang.c (d_language_data): Likewise.
4621 * dwarf2/read.c (read_array_order): Update for call to
4623 * f-lang.c (f_language_data): Remove la_array_ordering
4625 (f_language::array_ordering): New member function.
4626 * go-lang.c (go_language_data): Remove la_array_ordering
4628 * language.c (unknown_language_data): Likewise.
4629 (auto_language_data): Likewise.
4630 * language.h (language_data): Delete la_array_ordering field.
4631 (language_defn::array_ordering): New member function.
4632 * m2-lang.c (m2_language_data): Remove la_array_ordering
4634 * objc-lang.c (objc_language_data): Likewise.
4635 * opencl-lang.c (opencl_language_data): Likewise.
4636 * p-lang.c (pascal_language_data): Likewise.
4637 * rust-lang.c (rust_language_data): Likewise.
4639 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4641 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4643 * c-lang.c (c_language_data): Likewise.
4644 (cplus_language_data): Likewise.
4645 (asm_language_data): Likewise.
4646 (minimal_language_data): Likewise.
4647 * d-lang.c (d_language_data): Likewise.
4648 * f-lang.c (f_language_data): Likewise.
4649 (f_language::case_sensitivity): New member function.
4650 * go-lang.c (go_language_data): Remove la_case_sensitivity
4652 * language.c (enum case_mode): Moved here from language.h.
4653 (case_mode): Make static.
4654 (show_case_command): Update for case_sensitivity being a method.
4655 (set_case_command): Likewise.
4656 (set_range_case): Likewise.
4657 (unknown_language_data): Remove la_case_sensitivity initializer.
4658 (auto_language_data): Likewise.
4659 * language.h (case_mode): Delete, move enum declaration to
4661 (language_data): Delete la_case_sensitivity field.
4662 (language_defn::case_sensitivity): New member function.
4663 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4665 * objc-lang.c (objc_language_data): Likewise.
4666 * opencl-lang.c (opencl_language_data): Likewise.
4667 * p-lang.c (pascal_language_data): Likewise.
4668 * rust-lang.c (rust_language_data): Likewise.
4670 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4672 * ada-lang.c (ada_language_data): Remove la_range_check
4674 * c-lang.c (c_language_data): Likewise.
4675 (cplus_language_data): Likewise.
4676 (asm_language_data): Likewise.
4677 (minimal_language_data): Likewise.
4678 * d-lang.c (d_language_data): Likewise.
4679 * f-lang.c (f_language_data): Likewise.
4680 (f_language::range_checking_on_by_default): New member function.
4681 * go-lang.c (go_language_data): Remove la_range_check initializer.
4682 * language.c (enum range_mode): Moved here from language.h.
4683 (range_mode): Made static.
4684 (show_range_command): Update to use
4685 range_checking_on_by_default.
4686 (set_range_command): Likewise.
4687 (set_range_case): Likewise.
4688 (unknown_language_data): Remove la_range_check initializer.
4689 (auto_language_data): Likewise.
4690 * language.h (range_mode): Delete. Enum definition moved to
4692 (language_data): Remove la_range_check field.
4693 (language_defn::range_checking_on_by_default): New member
4695 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4696 (m2_language::range_checking_on_by_default): New member function.
4697 * objc-lang.c (objc_language_data): Remove la_range_check
4699 * opencl-lang.c (opencl_language_data): Likewise.
4700 * p-lang.c (pascal_language_data): Likewise.
4701 (pascal_language::range_checking_on_by_default): New member
4703 * rust-lang.c (rust_language_data): Remove la_range_check
4705 (rust_language::range_checking_on_by_default): New member
4708 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4710 * dwarf2/read.c (dwarf2_physname): Remove special case for
4712 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4715 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4717 * ada-lang.c (ada_language_data): Remove
4718 la_store_sym_names_in_linkage_form_p initializer.
4719 (ada_language::store_sym_names_in_linkage_form_p): New member
4721 * c-lang.c (c_language_data): Remove
4722 la_store_sym_names_in_linkage_form_p initializer.
4723 (c_language::store_sym_names_in_linkage_form_p): New member
4725 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4727 (asm_language_data): Likewise.
4728 (asm_language::store_sym_names_in_linkage_form_p): New member
4730 (minimal_language_data): Remove
4731 la_store_sym_names_in_linkage_form_p initializer.
4732 (minimal_language::store_sym_names_in_linkage_form_p): New member
4734 * d-lang.c (d_language_data): Remove
4735 la_store_sym_names_in_linkage_form_p initializer.
4736 * dwarf2/read.c (dwarf2_physname): Update call to
4737 store_sym_names_in_linkage_form_p.
4738 * f-lang.c (f_language_data): Remove
4739 la_store_sym_names_in_linkage_form_p initializer.
4740 * go-lang.c (go_language_data): Remove
4741 la_store_sym_names_in_linkage_form_p initializer.
4742 * language.c (unknown_language_data): Remove
4743 la_store_sym_names_in_linkage_form_p initializer.
4744 (unknown_language::store_sym_names_in_linkage_form_p): New member
4746 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4748 (auto_language::store_sym_names_in_linkage_form_p): New member
4750 * language.h (language_data): Remove
4751 la_store_sym_names_in_linkage_form_p member variable.
4752 (language_defn::store_sym_names_in_linkage_form_p): New member
4754 * m2-lang.c (m2_language_data): Remove
4755 la_store_sym_names_in_linkage_form_p initializer.
4756 * objc-lang.c (objc_language_data): Likewise.
4757 * opencl-lang.c (opencl_language_data): Likewise.
4758 * p-lang.c (pascal_language_data): Likewise.
4759 * rust-lang.c (rust_language_data): Likewise.
4761 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4763 * ada-lang.c (ada_language_data): Remove string_lower_bound
4765 * c-lang.c (c_language_data): Likewise.
4766 (cplus_language_data): Likewise.
4767 (asm_language_data): Likewise.
4768 (minimal_language_data): Likewise.
4769 * d-lang.c (d_language_data): Likewise.
4770 * f-lang.c (f_language_data): Likewise.
4771 * go-lang.c (go_language_data): Likewise.
4772 * language.c (unknown_language_data): Likewise.
4773 (auto_language_data): Likewise.
4774 * language.h (language_data): Remove string_lower_bound field.
4775 (language_defn::string_lower_bound): New member function.
4776 * m2-lang.c (m2_language_data): Remove string_lower_bound
4778 (m2_language::string_lower_bound): New member function.
4779 * objc-lang.c (objc_language_data): Remove string_lower_bound
4781 * opencl-lang.c (opencl_language_data): Likewise.
4782 * p-lang.c (pascal_language_data): Likewise.
4783 * rust-lang.c (rust_language_data): Likewise.
4784 * valops.c (value_cstring): Update call to string_lower_bound.
4785 (value_string): Likewise.
4786 * value.c (allocate_repeated_value): Likewise.
4788 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4790 * valops.c (value_repeat): Fix incorrect argument name in comment.
4792 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4794 * ada-lang.c (ada_language_data): Remove c_style_arrays
4796 (ada_language::c_style_arrays_p): New member fuction.
4797 * c-lang.c (c_language_data): Remove c_style_arrays
4799 (cplus_language_data): Likewise.
4800 (asm_language_data): Likewise.
4801 (minimal_language_data): Likewise.
4802 * d-lang.c (d_language_data): Likewise.
4803 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4804 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4805 (f_language::c_style_arrays_p): New member function.
4806 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4807 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4808 * language.c (unknown_language_data): Remove c_style_arrays
4810 (auto_language_data): Likewise.
4811 * language.h (language_data): Remove c_style_arrays field.
4812 (language_defn::c_style_arrays_p): New member function.
4813 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4814 (m2_language::c_style_arrays_p): New member function.
4815 * objc-lang.c (objc_language_data): Remove c_style_arrays
4817 * opencl-lang.c (opencl_language_data): Likewise.
4818 * p-lang.c (pascal_language_data): Likewise.
4819 * rust-lang.c (rust_language_data): Likewise.
4820 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4821 and update local variable to a bool.
4822 * valops.c (value_cast): Update call to c_style_arrays_p.
4823 (value_array): Likewise.
4824 * value.c (coerce_array): Likewise.
4826 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4828 * ada-lang.c (ada_language_data): Remove la_language initializer.
4829 * c-lang.c (c_language_data): Likewise.
4830 (cplus_language_data): Likewise.
4831 (asm_language_data): Likewise.
4832 (minimal_language_data): Likewise.
4833 * d-lang.c (d_language_data): Likewise.
4834 * f-lang.c (f_language_data): Likewise.
4835 * go-lang.c (go_language_data): Likewise.
4836 * language.c (unknown_language_data): Likewise.
4837 (auto_language_data): Likewise.
4838 * language.h (language_data): Remove la_language field.
4839 (language_defn::language_defn): Initialise la_language field.
4840 (language_defn::la_language): New member variable.
4841 * m2-lang.c (m2_language_data): Remove la_language field.
4842 * objc-lang.c (objc_language_data): Likewise.
4843 * opencl-lang.c (opencl_language_data): Likewise.
4844 * p-lang.c (pascal_language_data): Likewise.
4845 * rust-lang.c (rust_language_data): Likewise.
4847 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4849 * ada-lang.c (ada_extensions): Delete, moved into
4850 ada_language::filename_extensions.
4851 (ada_language_data): Remove la_filename_extensions initializer.
4852 (ada_language::filename_extensions): New member function.
4853 * c-lang.c (c_extensions): Delete, moved into
4854 c_language::filename_extensions.
4855 (c_language_data): Remove la_filename_extensions initializer.
4856 (c_language::filename_extensions): New member function.
4857 (cplus_extensions): Delete, moved into
4858 cplus_language::filename_extensions.
4859 (cplus_language_data): Remove la_filename_extensions initializer.
4860 (cplus_language::filename_extensions): New member function.
4861 (asm_extensions): Delete, moved into
4862 asm_language::filename_extensions.
4863 (asm_language_data): Remove la_filename_extensions initializer.
4864 (asm_language::filename_extensions): New member function.
4865 (minimal_language_data): Remove la_filename_extensions
4867 * d-lang.c (d_extensions): Delete, moved into
4868 d_language::filename_extensions.
4869 (d_language_data): Remove la_filename_extensions initializer.
4870 (d_language::filename_extensions): New member function.
4871 * f-lang.c (f_extensions): Delete, moved into
4872 f_language::filename_extensions.
4873 (f_language_data): Remove la_filename_extensions initializer.
4874 (f_language::filename_extensions): New member function.
4875 * go-lang.c (go_language_data): Remove la_filename_extensions
4877 * language.c (add_set_language_command): Update now that
4878 filename_extensions returns a vector.
4879 (unknown_language_data): Remove la_filename_extensions
4881 (auto_language_data): Likewise.
4882 * language.h (language_data): Remove la_filename_extensions field.
4883 (language_defn::filename_extensions): New member function.
4884 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4886 * objc-lang.c (objc_extensions): Delete, moved into
4887 objc_language::filename_extensions.
4888 (objc_language_data): Remove la_filename_extensions initializer.
4889 (objc_language::filename_extensions): New member function.
4890 * opencl-lang.c (opencl_language_data): Remove
4891 la_filename_extensions initializer.
4892 * p-lang.c (pascal_extensions): Delete, moved into
4893 pascal_language::filename_extensions.
4894 (pascal_language_data): Remove la_filename_extensions initializer.
4895 (pascal_language::filename_extensions): New member function.
4896 * rust-lang.c (rust_extensions): Delete, moved into
4897 rust_language::filename_extensions.
4898 (rust_language_data): Remove la_filename_extensions initializer.
4899 (rust_language::filename_extensions): New member function.
4900 * symfile.c (add_filename_language): Add new assert.
4902 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4904 * ada-lang.c (ada_language_data): Remove la_name and
4905 la_natural_name initializers.
4906 (ada_language::name): New member function.
4907 (ada_language::natural_name): New member function.
4908 * c-lang.c (c_language_data): Remove la_name and
4909 la_natural_name initializers.
4910 (c_language::name): New member function.
4911 (c_language::natural_name): New member function.
4912 (cplus_language_data): Remove la_name and
4913 la_natural_name initializers.
4914 (cplus_language::name): New member function.
4915 (cplus_language::natural_name): New member function.
4916 (asm_language_data): Remove la_name and
4917 la_natural_name initializers.
4918 (asm_language::name): New member function.
4919 (asm_language::natural_name): New member function.
4920 (minimal_language_data): Remove la_name and
4921 la_natural_name initializers.
4922 (minimal_language::name): New member function.
4923 (minimal_language::natural_name): New member function.
4924 * compile/compile.c (compile_to_object): Update call to
4925 lanugage_defn::name.
4926 * d-lang.c (d_language_data): Remove la_name and
4927 la_natural_name initializers.
4928 (d_language::name): New member function.
4929 (d_language::natural_name): New member function.
4930 * expprint.c (print_subexp_standard): Update call to
4931 language_defn::name.
4932 (dump_raw_expression): Likewise
4933 (dump_prefix_expression): Likewise.
4934 * f-lang.c (f_language_data): Remove la_name and
4935 la_natural_name initializers.
4936 (f_language::name): New member function.
4937 (f_language::natural_name): New member function.
4938 * go-lang.c (go_language_data): Remove la_name and
4939 la_natural_name initializers.
4940 (go_language::name): New member function.
4941 (go_language::natural_name): New member function.
4942 * language.c (show_language_command): Update call to
4943 language_defn::name.
4944 (set_language_command): Likewise.
4945 (language_enum): Likewise.
4946 (language_str): Likewise.
4947 (add_set_language_command): Likewise, use
4948 language_defn::natural_name in the doc string.
4949 (unknown_language_data): Remove la_name and
4950 la_natural_name initializers.
4951 (unknown_language::name): New member function.
4952 (unknown_language::natural_name): New member function.
4953 (auto_language_data): Remove la_name and
4954 la_natural_name initializers.
4955 (auto_language::name): New member function.
4956 (auto_language::natural_name): New member function.
4957 (language_lookup_primitive_type_as_symbol): Update call to
4958 language_defn::name.
4959 * language.h (language_data): Remove la_name and la_natural_name
4961 (language_defn::name): New member function.
4962 (language_defn::natural_name): New member function.
4963 * m2-lang.c (m2_language_data): Remove la_name and
4964 la_natural_name initializers.
4965 (m2_language::name): New member function.
4966 (m2_language::natural_name): New member function.
4967 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4968 language_defn::natural_name.
4969 * objc-lang.c (objc_language_data): Remove la_name and
4970 la_natural_name initializers.
4971 (objc_language::name): New member function.
4972 (objc_language::natural_name): New member function.
4973 * opencl-lang.c (opencl_language_data): Remove la_name and
4974 la_natural_name initializers.
4975 (opencl_language::name): New member function.
4976 (opencl_language::natural_name): New member function.
4977 * p-lang.c (pascal_language_data): Remove la_name and
4978 la_natural_name initializers.
4979 (pascal_language::name): New member function.
4980 (pascal_language::natural_name): New member function.
4981 * rust-lang.c (rust_language_data): Remove la_name and
4982 la_natural_name initializers.
4983 (rust_language::name): New member function.
4984 (rust_language::natural_name): New member function.
4985 * symtab.c (lookup_language_this): Update call to
4986 language_defn::name.
4988 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4990 * ada-lang.c (ada_language_data): Remove la_name_of_this
4992 * ax-gdb.c (gen_expr): Update call to name_of_this.
4993 * c-exp.y (classify_name): Likewise.
4994 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4995 (cplus_language_data): Likewise.
4996 (cplus_language::name_of_this): New member function.
4997 (asm_language_data): Remove la_name_of_this initializer.
4998 (minimal_language_data): Likewise.
4999 * d-lang.c (d_language_data): Likewise.
5000 (d_language::name_of_this): New member function.
5001 * expprint.c (print_subexp_standard): Update call to name_of_this.
5002 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5003 * go-lang.c (go_language_data): Likewise.
5004 * language.c (unknown_language_data): Likewise.
5005 (unknown_language::name_of_this): New member function.
5006 (auto_language_data): Remove la_name_of_this initializer.
5007 (auto_language::name_of_this): New member function.
5008 * language.h (language_data): Delete la_name_of_this member
5010 (language_defn::name_of_this): New member function.
5011 * m2-lang.c (m2_language_data): Remove la_name_of_this
5013 * objc-lang.c (objc_language_data): Likewise.
5014 (objc_language::name_of_this): New member function.
5015 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5017 * p-lang.c (pascal_language_data): Likewise.
5018 (pascal_language::name_of_this): New member function.
5019 * rust-lang.c (rust_language_data): Remove la_name_of_this
5021 * symtab.c (lookup_language_this): Update call to name_of_this.
5022 (lookup_symbol_aux): Likewise.
5023 * valops.c (value_of_this): Likewise.
5025 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5027 * ada-lang.c (ada_language_data): Remove
5028 la_struct_too_deep_ellipsis initializer.
5029 (ada_language::struct_too_deep_ellipsis): New member function.
5030 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5032 (cplus_language_data): Likewise.
5033 (asm_language_data): Likewise.
5034 (minimal_language_data): Likewise.
5035 * cp-valprint.c (cp_print_value): Update call to
5036 struct_too_deep_ellipsis.
5037 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5039 * f-lang.c (f_language_data): Likewise.
5040 (f_language::struct_too_deep_ellipsis): New member function.
5041 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5043 * language.c (unknown_language_data): Likewise.
5044 (auto_language_data): Likewise.
5045 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5047 (language_defn::struct_too_deep_ellipsis): New member function.
5048 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5050 * objc-lang.c (objc_language_data): Likewise.
5051 * opencl-lang.c (opencl_language_data): Likewise.
5052 * p-lang.c (pascal_language_data): Likewise.
5053 * rust-lang.c (rust_language_data): Likewise.
5054 * valprint.c (val_print_check_max_depth): Update call to
5055 struct_too_deep_ellipsis.
5057 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5059 * MAINTAINERS (Write After Approval): Add myself.
5061 2020-09-15 Tom Tromey <tom@tromey.com>
5063 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5066 2020-09-15 Tom Tromey <tom@tromey.com>
5068 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5069 and TYPE_CODE_METHODPTR cases.
5070 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5071 (c_value_print_inner): Update.
5072 * valprint.c (generic_value_print_memberptr): New function, from
5073 c_value_print_memberptr.
5074 (generic_value_print): Use it. Call cplus_print_method_ptr.
5076 2020-09-15 Tom Tromey <tromey@adacore.com>
5078 * python/python-internal.h (PyInt_FromLong): Remove define.
5079 * python/py-value.c (convert_value_from_python): Use
5080 gdb_py_object_from_longest.
5081 * python/py-type.c (typy_get_code): Use
5082 gdb_py_object_from_longest.
5083 * python/py-symtab.c (salpy_get_line): Use
5084 gdb_py_object_from_longest.
5085 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5086 gdb_py_object_from_longest.
5087 * python/py-record.c (recpy_gap_reason_code): Use
5088 gdb_py_object_from_longest.
5089 * python/py-record-btrace.c (recpy_bt_insn_size)
5090 (recpy_bt_func_level, btpy_list_count): Use
5091 gdb_py_object_from_longest.
5092 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5093 gdb_py_object_from_longest. Fix error handling.
5094 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5095 gdb_py_object_from_longest.
5096 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5097 gdb_py_object_from_longest.
5098 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5099 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5100 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5102 2020-09-15 Tom Tromey <tromey@adacore.com>
5104 * python/python.c (gdbpy_parameter_value): Use
5105 gdb_py_object_from_ulongest.
5107 2020-09-15 Tom Tromey <tromey@adacore.com>
5109 * python/py-infevents.c (create_register_changed_event_object):
5110 Use gdb_py_object_from_longest.
5111 * python/py-exitedevent.c (create_exited_event_object): Use
5112 gdb_py_object_from_longest.
5114 2020-09-15 Tom Tromey <tromey@adacore.com>
5116 * python/python.c (gdbpy_parameter_value): Use
5117 gdb_py_object_from_longest.
5118 * python/py-type.c (convert_field, typy_range): Use
5119 gdb_py_object_from_longest.
5120 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5121 gdb_py_object_from_longest.
5122 * python/py-lazy-string.c (stpy_get_length): Use
5123 gdb_py_object_from_longest.
5124 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5125 gdb_py_object_from_longest.
5126 * python/py-infevents.c (create_memory_changed_event_object): Use
5127 gdb_py_object_from_longest.
5128 * python/py-inferior.c (infpy_get_num): Use
5129 gdb_py_object_from_longest.
5130 (infpy_get_pid): Likewise.
5132 2020-09-15 Tom Tromey <tromey@adacore.com>
5134 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5136 * python/py-value.c (valpy_long): Use
5137 gdb_py_object_from_ulongest.
5138 * python/py-symtab.c (salpy_get_pc): Use
5139 gdb_py_object_from_ulongest.
5140 (salpy_get_last): Likewise.
5141 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5142 gdb_py_object_from_ulongest.
5143 * python/py-lazy-string.c (stpy_get_address): Use
5144 gdb_py_object_from_ulongest.
5145 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5146 * python/py-arch.c (archpy_disassemble): Use
5147 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5150 2020-09-15 Tom Tromey <tromey@adacore.com>
5152 * python/python-internal.h (gdb_py_long_from_longest): Remove
5154 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5155 * python/py-type.c (convert_field, typy_get_sizeof): Use
5156 gdb_py_object_from_longest.
5157 * python/py-record-btrace.c (btpy_list_index): Use
5158 gdb_py_object_from_longest.
5160 2020-09-15 Tom Tromey <tromey@adacore.com>
5162 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5163 * python/py-record.c (recpy_element_number): Use
5164 gdb_py_object_from_longest.
5165 (recpy_gap_number): Likewise.
5167 2020-09-15 Tom Tromey <tromey@adacore.com>
5169 * top.c (ui::ui): Update.
5170 (highest_ui_num): Remove.
5171 * top.h (struct ui) <num>: Remove.
5173 2020-09-15 Tom Tromey <tromey@adacore.com>
5175 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5176 * ui-style.c (ansi_regex_text): Now array.
5177 * rust-exp.y (number_regex_text): Now array.
5178 * linespec.c (linespec_quote_characters): Now array.
5179 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5182 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5184 * debuginfod-support.c (debuginfod_client_deleter): New.
5185 (debuginfod_client_up): New.
5186 (debuginfod_init): Return debuginfod_client_up.
5187 (debuginfod_source_query): Adjust.
5188 (debuginfod_debuginfo_query): Adjust.
5190 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5192 * debuginfod-support.c (debuginfod_source_query): Use
5193 make_unique_xstrdup.
5195 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5197 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5198 with `type::instance_flags`.
5200 2020-09-14 Michael Mullin <masmullin@gmail.com>
5202 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5203 Remove baton parameter.
5205 2020-09-14 Pedro Alves <pedro@palves.net>
5207 * Makefile.in (SELFTESTS_SRCS): Add
5208 unittests/enum-flags-selftests.c.
5209 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5210 btrace_function_flags instead of enum btrace_function_flag.
5211 * compile/compile-c-types.c (convert_qualified): Use
5213 * compile/compile-cplus-symbols.c (convert_one_symbol)
5214 (convert_symbol_bmsym):
5215 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5216 (compile_cplus_convert_struct_or_union_methods)
5217 (compile_cplus_instance::convert_qualified_base):
5218 * go-exp.y (parse_string_or_char): Add cast to int.
5219 * unittests/enum-flags-selftests.c: New file.
5220 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5221 type to btrace_thread_flags from btrace_thread_flag.
5222 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5223 local's type to btrace_thread_flags from btrace_thread_flag. Add
5226 2020-09-14 Pedro Alves <pedro@palves.net>
5228 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5229 * gdbtypes.c (address_space_name_to_int): Rename to ...
5230 (address_space_name_to_type_instance_flags): ... this.
5231 (address_space_int_to_name): Rename to ...
5232 (address_space_type_instance_flags_to_name): ... this.
5233 * gdbtypes.h (address_space_name_to_int): Rename to ...
5234 (address_space_name_to_type_instance_flags): ... this.
5235 (address_space_int_to_name): Rename to ...
5236 (address_space_type_instance_flags_to_name): ... this.
5237 * type-stack.c (type_stack::insert): Adjust to rename.
5238 * type-stack.h (type_stack::insert): Likewise.
5240 2020-09-14 Pedro Alves <pedro@palves.net>
5241 Andrew Burgess <andrew.burgess@embecosm.com>
5243 * avr-tdep.c (avr_address_class_type_flags): Return
5244 type_instance_flags.
5245 (avr_address_class_type_flags_to_name): Take a
5246 type_instance_flags.
5247 (avr_address_class_name_to_type_flags): Return bool and take a
5248 type_instance_flags.
5249 * d-lang.c (build_d_types): Use type::set_instance_flags.
5250 * ft32-tdep.c (ft32_address_class_type_flags): Return
5251 type_instance_flags.
5252 (ft32_address_class_type_flags_to_name): Take a
5253 type_instance_flags.
5254 (ft32_address_class_name_to_type_flags): Return bool and take a
5255 type_instance_flags.
5256 (ft32_gdbarch_init): Use type::set_instance_flags.
5257 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5258 * gdbarch.h, gdbarch.c: Regenerate.
5259 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5260 (address_class_name_to_type_flags): Use type_instance_flags and
5262 * gdbtypes.c (address_space_name_to_int)
5263 (address_space_int_to_name, make_qualified_type): Use
5264 type_instance_flags.
5265 (make_qualified_type): Use type_instance_flags and
5266 type::set_instance_flags.
5267 (make_type_with_address_space, make_cv_type, make_vector_type)
5268 (check_typedef): Use type_instance_flags.
5269 (recursive_dump_type): Cast type_instance_flags to unsigned for
5271 (copy_type_recursive): Use type::set_instance_flags.
5272 (gdbtypes_post_init): Use type::set_instance_flags.
5273 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5274 <m_instance_flags>: ... this.
5275 <instance_flags, set_instance_flags>: New methods.
5276 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5277 (SET_TYPE_INSTANCE_FLAGS): New.
5278 (address_space_name_to_int, address_space_int_to_name)
5279 (make_type_with_address_space): Pass flags using
5280 type_instance_flags instead of int.
5281 * stabsread.c (cleanup_undefined_types_noname): Use
5282 type::set_instance_flags.
5283 * s390-tdep.c (s390_address_class_type_flags): Return
5284 type_instance_flags.
5285 (s390_address_class_type_flags_to_name): Take a
5286 type_instance_flags.
5287 (s390_address_class_name_to_type_flags): Return bool and take a
5288 type_instance_flags.
5289 * type-stack.c (type_stack::follow_types): Use
5290 type_instance_flags.
5291 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5293 2020-09-14 Tom Tromey <tromey@adacore.com>
5295 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5296 * x86-tdep.c (x86_is_thunk_register_name)
5297 (x86_in_indirect_branch_thunk): Update.
5298 * sparc64-tdep.c (sparc64_fpu_register_names)
5299 (sparc64_cp0_register_names, sparc64_register_names)
5300 (sparc64_pseudo_register_names): Now const.
5301 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5302 cp0_registers_num>: Now const.
5303 * sparc-tdep.c (sparc_core_register_names)
5304 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5305 (sparc32_pseudo_register_names): Now const.
5306 (validate_tdesc_registers): Update.
5307 * rust-lang.c (rust_extensions): Now const.
5308 * p-lang.c (p_extensions): Now const.
5309 * objc-lang.c (objc_extensions): Now const.
5310 * nto-tdep.c (nto_thread_state_str): Now const.
5311 * moxie-tdep.c (moxie_register_names): Now const.
5312 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5314 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5315 (mips_linux_reg_names): Now const.
5316 (mips_gdbarch_init): Update.
5317 * microblaze-tdep.c (microblaze_register_names): Now const.
5318 * m68k-tdep.c (m68k_register_names): Now const.
5319 * m32r-tdep.c (m32r_register_names): Now const.
5320 * ia64-tdep.c (ia64_register_names): Now const.
5321 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5322 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5323 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5324 ymm_avx512_register_names, pkeys_register_names>: Now const.
5325 * i386-tdep.c (i386_register_names, i386_zmm_names)
5326 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5327 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5328 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5329 * f-lang.c (f_extensions): Now const.
5330 * d-lang.c (d_extensions): Now const.
5331 * csky-tdep.c (csky_register_names): Now const.
5332 * charset.c (default_charset_names, charset_enum): Now const.
5333 (_initialize_charset): Update.
5334 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5336 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5337 (bsd_uthread_solib_loaded): Update.
5338 (bsd_uthread_state): Now const.
5339 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5340 (amd64_ymm_avx512_names, amd64_ymmh_names)
5341 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5342 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5343 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5344 (amd64_dword_names): Now const.
5345 * agent.c (can_use_agent_enum): Now const.
5346 * ada-tasks.c (task_states, long_task_states): Now const.
5347 * ada-lang.c (known_runtime_file_name_patterns)
5348 (known_auxiliary_function_name_patterns, attribute_names)
5349 (standard_exc, ada_extensions): Now const.
5351 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5353 * bcache.h (struct bcache) <bcache>: Remove constructor.
5354 <m_hash_function, m_compare_function>: Remove.
5355 <~bcache>: Make virtual.
5356 <compare>: Remove static method, introduce virtual method.
5357 <default_hash>: Remove.
5358 <hash>: New virtual method.
5359 * bcache.c (bcache::expand_hash_table): Update.
5360 (bcache::insert): Update.
5361 (bcache::hash): New.
5362 (bcache::compare): Update comment and parameter names.
5363 * gdbtypes.c (types_deeply_equal): Update.
5364 * psymtab.h (struct psymbol_bcache): New struct.
5365 (class psymtab_storage) <psymtab_storage>: Make default.
5366 <psymbol_cache>: Change type to psymbol_bcache.
5367 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5368 (psymbol_hash): Change to...
5369 (psymbol_bcache::hash): ... this.
5370 (psymbol_compare): Change to...
5371 (psymbol_bcache::compare): ... this.
5373 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5375 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5376 checking for initial lwp.
5378 2020-09-14 Tom Tromey <tromey@adacore.com>
5380 * m68k-tdep.c (m68k_extract_return_value): Use
5381 pointer_result_regnum.
5382 (m68k_store_return_value): Likewise.
5383 (m68k_reg_struct_return_p): Handle vectors and arrays.
5384 (m68k_return_value): Handle arrays.
5385 (m68k_svr4_return_value): Fix single-element aggregate handling.
5386 Handle long double. Adjust for embedded ABI.
5387 (m68k_svr4_init_abi): Set pointer_result_regnum.
5388 (m68k_embedded_init_abi): New function.
5389 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5390 (m68k_osabi_sniffer): New function.
5391 (_initialize_m68k_tdep): Register osabi sniffer.
5392 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5395 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5397 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5398 with gdb::unique_xmalloc_ptr<char>.
5400 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5402 * xml-support.h (xml_fetch_another): Change type to be a
5404 (xml_process_xincludes): Remove baton parameter.
5405 (xml_fetch_content_from_file): Change baton parameter to
5407 * xml-support.c (struct xinclude_parsing_data)
5408 <xinclude_parsing_data>: Remove baton parameter.
5409 <fetcher_baton>: Remove.
5410 (xinclude_start_include): Adjust.
5411 (xml_process_xincludes): Adjust.
5412 (xml_fetch_content_from_file): Replace baton parameter with
5414 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5415 (xml_init_syscalls_info): Use a lambda.
5416 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5417 (file_read_description_xml): Use a lambda.
5418 (fetch_available_features_from_target): Change baton parameter
5420 (target_read_description_xml): Use a lambda.
5421 (target_fetch_description_xml): Use a lambda.
5422 (string_read_description_xml): Update.
5424 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5426 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5427 uses with type::endianity_is_not_default.
5429 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5431 * gdbtypes.h (struct type) <endianity_is_not_default,
5432 set_endianity_is_not_default>: New methods.
5433 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5434 type::endianity_is_not_default, change all write call sites to
5435 use type::set_endianity_is_not_default.
5437 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5439 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5440 uses with type::is_fixed_instance.
5442 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5444 * gdbtypes.h (struct type) <is_fixed_instance,
5445 set_is_fixed_instance>: New methods.
5446 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5447 write call sites to use type::set_is_fixed_instance.
5449 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5451 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5452 uses with type::is_gnu_ifunc.
5454 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5456 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5457 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5458 use type::set_is_gnu_ifunc.
5460 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5462 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5463 uses with type::stub_is_supported.
5465 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5467 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5468 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5469 use type::set_stub_is_supported.
5471 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5473 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5474 uses with type::is_vector.
5476 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5478 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5479 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5480 use type::set_is_vector.
5482 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5484 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5485 uses with type::has_varargs.
5487 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5489 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5490 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5491 use type::set_has_varargs.
5493 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5495 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5496 uses with type::is_prototyped.
5498 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5500 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5502 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5503 call sites to use type::set_is_prototyped.
5505 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5507 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5508 uses with type::target_is_stub.
5510 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5512 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5514 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5515 sites to use type::set_target_is_stub.
5517 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5519 * gdbtypes.h (TYPE_STUB): Remove, replace all
5520 uses with type::is_stub.
5522 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5524 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5525 (TYPE_STUB): Use type::is_stub, change all write call sites to
5526 use type::set_is_stub.
5528 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5530 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5531 type::has_no_signedness.
5533 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5535 * gdbtypes.h (struct type) <has_no_signedness,
5536 set_has_no_signedness>: New methods.
5537 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5538 call sites to use type::set_has_no_signedness.
5540 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5542 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5545 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5547 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5549 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5550 sites to use type::set_is_unsigned.
5552 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5553 Adam Renquinha <arenquinha@cimeq.qc.ca>
5555 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5556 pointer and stack frame offset when unwinding.
5558 2020-09-13 Pedro Alves <pedro@palves.net>
5560 * NEWS: Document "-break-insert --qualified".
5561 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5563 2020-09-13 Pedro Alves <pedro@palves.net>
5565 * linespec.c (classify_mtype, compare_msyms): Delete.
5566 (search_minsyms_for_name): Remove classification logic. Instead
5567 filter out trampoline symbols if we also found an external
5568 function of the same name.
5570 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5572 * NEWS: Create a new section for the next release branch.
5573 Rename the section of the current branch, now that it has
5576 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5578 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5579 * version.in: Bump version to 11.0.50.DATE-git.
5581 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5583 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5585 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5586 Felix Willgerodt <Felix.Willgerodt@intel.com>
5588 * gdbarch.sh: Added bfloat16 type.
5589 * gdbarch.c: Regenerated.
5590 * gdbarch.h: Regenerated.
5591 * gdbtypes.c (floatformats_bfloat16): New struct.
5592 (gdbtypes_post_init): Add builtin_bfloat16.
5593 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5594 (floatformats_bfloat16): New struct.
5595 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5596 (i386_ymm_type): Add field "v16_bfloat16"
5597 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5598 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5599 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5600 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5601 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5602 * features/i386/64bit-avx512.c: Regenerated.
5603 * features/i386/64bit-sse.xml: Add bfloat16 type.
5604 * features/i386/64bit-sse.c: Regenerated.
5606 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5608 * i386-tdep.c (i386_zmm_type): Fix field names.
5609 (i386_ymm_type): Fix field names.
5611 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5613 * breakpoint.c: Fix typo in the help message of the
5614 "set breakpoint condition-evaluation" command.
5616 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5618 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5619 * (nbsd_nat_target::pid_to_exec_file)
5620 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5621 (nbsd_nat_target::post_startup_inferior)
5622 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5623 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5624 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5625 * (nbsd_thread_lister): Remove.
5627 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5629 * fork-inferior.c (startup_inferior): Avoid double free.
5631 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5633 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5634 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5636 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5638 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5639 * netbsd-nat.c: Include <sys/ptrace.h>.
5640 * (netbsd_nat::enable_proc_events): Add.
5642 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5644 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5645 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5646 (netbsd_nat::for_each_thread): Add.
5647 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5648 "gdbsupport/common-debug.h".
5649 * (netbsd_nat::netbsd_thread_lister)
5650 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5651 (netbsd_nat::for_each_thread): Add.
5653 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5655 * netbsd-nat.h: Include <unistd.h>.
5656 * (netbsd_nat::pid_to_exec_file): Add.
5657 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5658 * (netbsd_nat::pid_to_exec_file) Add.
5660 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5662 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5664 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5666 * netbsd-nat.h: New file.
5667 * netbsd-nat.c: Likewise.
5669 2020-09-09 Tom Tromey <tromey@adacore.com>
5671 * ada-lang.c (remove_extra_symbols): Do not increment when
5674 2020-09-08 Tom Tromey <tromey@adacore.com>
5676 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5678 2020-09-08 Tom Tromey <tromey@adacore.com>
5681 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5682 (gdb_bfd_init_data): New function.
5683 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5685 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5687 * infrun.c (fetch_inferior_event): Use
5688 `switch_to_target_no_thread` to switch the target.
5690 2020-09-06 Tom Tromey <tom@tromey.com>
5692 * symfile.h (dwarf2_free_objfile): Don't declare.
5694 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5696 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5697 to match 16 byte real/complex type generated by Flang compiler.
5699 2020-09-03 Tom de Vries <tdevries@suse.de>
5702 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5703 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5705 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5707 * maint.c (index_digits): New function.
5708 (struct maint_print_section_data): Remove.
5709 (print_bfd_section_info): Remove print_data parameter, add arg
5711 (print_objfile_section_info): Likewise.
5712 (print_bfd_section_info_maybe_relocated): Likewise (plus
5714 (maintenance_info_sections): Adjust calls.
5716 2020-09-02 Tom Tromey <tromey@adacore.com>
5718 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5720 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5722 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5724 * bcache.h (struct bcache) <insert>: Change type of `added` to
5726 * bcache.c (bcache::insert): Likewise.
5727 * gdbtypes.c (check_types_worklist): Adjust.
5728 * psymtab.c (add_psymbol_to_bcache): Adjust.
5730 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5732 * corelow.c (unordered_set): Include.
5733 (class core_target): Add field 'm_core_unavailable_mappings'.
5734 (core_target::build_file_mappings): Print only one warning
5735 per inaccessible file. Add unavailable/broken mappings
5736 to m_core_unavailable_mappings.
5737 (core_target::xfer_partial): Call...
5738 (core_target::xfer_memory_via_mappings): New method.
5740 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5742 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5745 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5747 * dwarf2/read.c (struct field_info): Fix indentation.
5749 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5751 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5752 ordering in comment.
5753 * frame.c (frame_id_eq): Fix indentation.
5755 2020-08-31 Scott Linder <scott@scottlinder.com>
5756 Simon Marchi <simon.marchi@efficios.com>
5758 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5759 inline frame ids in outer frame.
5761 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5763 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5764 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5765 (outer_frame_id): Use FID_STACK_OUTER instead of
5767 (frame_id_p): Don't check for outer_frame_id.
5769 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5771 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5772 regnum/frame in value. Call allocate_value_lazy.
5773 * frame.c (frame_unwind_register_value): Use
5774 val_print_not_saved.
5776 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5778 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5780 2020-08-29 Pedro Alves <pedro@palves.net>
5782 * progspace.c (print_program_space): Use all_inferiors. Switch to
5783 the inferior before calling target_pid_to_str.
5785 2020-08-28 Tom Tromey <tom@tromey.com>
5787 * xcoffread.c (xcoff_end_psymtab): Update comment.
5788 * dbxread.c (dbx_end_psymtab): Update comment.
5790 2020-08-28 Tom de Vries <tdevries@suse.de>
5793 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5795 (create_breakpoint): Same.
5796 (base_breakpoint_decode_location): Same.
5797 (bkpt_create_sals_from_location): Same.
5798 (bkpt_decode_location): Same.
5799 (bkpt_probe_create_sals_from_location): Same.
5800 (bkpt_probe_decode_location): Same.
5801 (tracepoint_create_sals_from_location): Same.
5802 (tracepoint_decode_location): Same.
5803 (tracepoint_probe_decode_location): Same.
5804 (strace_marker_create_sals_from_location): Same.
5805 (strace_marker_decode_location): Same.
5806 (create_sals_from_location_default): Same.
5807 (decode_location_default): Same.
5808 * breakpoint.h (struct breakpoint_ops): Same.
5809 (create_breakpoint): Same.
5810 * linespec.h (decode_line_full): Same.
5811 * linespec.c (decode_line_full): Same. Throw error if
5812 result.size () == 0.
5814 2020-08-27 Pedro Alves <pedro@palves.net>
5817 * breakpoint.c (until_break_fsm) <location_breakpoint,
5818 caller_breakpoint>: Delete fields.
5819 <breakpoints>: New field.
5820 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5821 two individual breakpoints.
5822 (until_break_fsm::should_stop): Loop over breakpoints in the
5824 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5826 (until_break_command): Handle location expanding into multiple
5829 2020-08-27 Pedro Alves <pedro@palves.net>
5832 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5833 bp_until breakpoints user-specified locations. Update intro
5836 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5838 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5839 gdb_bfd_sections): New.
5840 * maint.c (print_bfd_section_info): Change param type to
5841 maint_print_section_data.
5842 (print_objfile_section_info): Likewise.
5843 (print_bfd_section_info_maybe_relocated): Likewise.
5844 (maintenance_info_sections): Use gdb_bfd_sections.
5846 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5848 * MAINTAINERS: Add ARC target and maintainer.
5850 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5852 * configure.tgt: ARC support for GNU/Linux.
5853 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5854 * arc-linux-tdep.c: New file.
5855 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5856 * arc-tdep.c (arc_write_pc): Use it.
5858 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5860 * arc-tdep.c (arc_check_for_hardware_loop): New.
5861 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5863 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5865 * arc-tdep.h: Include "gdbarch.h".
5867 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5870 (arc_gdbarch_features): New class to stir the selection of target XML.
5871 (arc_create_target_description): Use FEATURES to choose XML target.
5872 (arc_lookup_target_description): Use arc_create_target_description
5873 to create _new_ target descriptions or return the already created
5874 ones if the FEATURES is the same.
5875 * arch/arc.c: Implementation of prototypes described above.
5876 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5877 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5878 * arc-tdep.c (*_feature_name): Make feature names consistent.
5879 (arc_register_feature): A new struct to hold information about
5880 registers of a particular target/feature.
5881 (arc_check_tdesc_feature): Check if XML provides registers in
5882 compliance with ARC_REGISTER_FEATURE structs.
5883 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5884 (determine_*_reg_feature_set): Which feature name to look for.
5885 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5886 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5887 to expected ISA enums to be used in arc_gdbarch_features structs.
5888 * features/Makefile (FEATURE_XMLFILES): Add new files.
5889 * gdb/features/arc/v1-aux.c: New file.
5890 * gdb/features/arc/v1-aux.xml: Likewise.
5891 * gdb/features/arc/v1-core.c: Likewise.
5892 * gdb/features/arc/v1-core.xml: Likewise.
5893 * gdb/features/arc/v2-aux.c: Likewise.
5894 * gdb/features/arc/v2-aux.xml: Likewise.
5895 * gdb/features/arc/v2-core.c: Likewise.
5896 * gdb/features/arc/v2-core.xml: Likewise.
5897 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5899 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5900 Andrew Burgess <andrew.burgess@embecosm.com>
5903 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5904 an assert. Remove single element array indexing pattern as the
5905 MULTI_SUBSCRIPT support will handle this case too.
5907 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5909 * value.h (valprint_check_validity): Move declaration from
5911 * valprint.h (valprint_check_validity): ... to here.
5913 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5915 * debug.h: New file.
5916 * debug.c (debug_prefixed_vprintf): New function.
5917 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5918 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5920 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5922 * infrun.h (infrun_debug_printf_1): New function declaration.
5923 (infrun_debug_printf): New macro.
5924 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5926 (infrun_debug_printf): New function.
5927 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5928 (handle_jit_event): Likewise.
5930 2020-08-21 Mark Wielaard <mark@klomp.org>
5932 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5934 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5936 * frame.c (enum class frame_id_status): New.
5937 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5938 (fprintf_frame): Update.
5939 (compute_frame_id): Set frame id status to "computing" on entry.
5940 Set it back to "not_computed" on failure and to "computed" on
5942 (get_frame_id): Assert the frame id is not being computed.
5943 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5944 (create_new_frame): Likewise.
5945 (frame_cleanup_after_sniffer): Update assert.
5947 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5949 * regcache.c (pid_ptid_regcache_map): New type.
5950 (target_ptid_regcache_map): Remove.
5951 (target_pid_ptid_regcache_map): New type.
5952 (regcaches): Change type to target_pid_ptid_regcache_map.
5953 (get_thread_arch_aspace_regcache): Update.
5954 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5956 (regcaches_size): Update.
5957 (regcache_count): Update.
5958 (registers_changed_ptid_target_pid_test): New.
5959 (_initialize_regcache): Register new test.
5961 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5963 * regcache.c (regcache_count): New.
5964 (struct regcache_test_data): New.
5965 (regcache_test_data_up): New.
5966 (populate_regcaches_for_test): New.
5967 (regcaches_test): Remove.
5968 (get_thread_arch_aspace_regcache_test): New.
5969 (registers_changed_ptid_all_test): New.
5970 (registers_changed_ptid_target_test): New.
5971 (registers_changed_ptid_target_ptid_test): New.
5972 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5973 (_initialize_regcache): Register new tests.
5975 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5977 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5978 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5979 gdbarch and aspace parameter. Use current inferior's aspace.
5980 Validate regcache's arch value.
5981 (regcaches_test): Update.
5983 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5985 * regcache.c (regcaches_test): Call registers_changed.
5987 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5989 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5991 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5993 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5994 to find the end of prologue for flang compiled binaries.
5995 * arm-tdep.c (arm_skip_prologue): Likewise.
5996 * i386-tdep.c (i386_skip_prologue): Likewise.
5997 * producer.c (producer_is_llvm): New function.
5998 (producer_parsing_tests): Added new tests for clang/flang.
5999 * producer.h (producer_is_llvm): New declaration.
6001 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6003 * linux-nat.c (linux_nat_debug_printf): New function.
6004 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6006 2020-08-18 Aaron Merey <amerey@redhat.com>
6008 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6009 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6010 (CLIBS): Add DEBUGINFOD_LIBS.
6012 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6014 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6017 2020-08-17 Tom Tromey <tromey@adacore.com>
6019 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6020 ada_get_decoded_value returns NULL.
6022 2020-08-17 Tom Tromey <tromey@adacore.com>
6024 * python/py-inferior.c (infpy_search_memory): Use
6025 gdb_py_object_from_ulongest.
6026 * python/py-infevents.c (create_inferior_call_event_object)
6027 (create_memory_changed_event_object): Use
6028 gdb_py_object_from_ulongest.
6029 * python/py-linetable.c (ltpy_entry_get_pc): Use
6030 gdb_py_object_from_ulongest.
6032 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6034 * loc.c (class symbol_needs_eval_context): Fix indentation.
6036 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6038 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6041 2020-08-17 Tom de Vries <tdevries@suse.de>
6044 * gdbtypes.c (dump_dynamic_prop): New function.
6045 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6047 2020-08-15 Tom de Vries <tdevries@suse.de>
6050 * stack.c (print_frame_args): Temporarily set the selected
6051 frame to FRAME while printing the frame's arguments.
6053 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6055 PR breakpoints/26385
6056 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6057 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6059 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6061 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6062 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6063 and >= to check return value instead of == -1 and != -1.
6065 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6067 * utils.h (class gdb_argv) <as_array_view>: New method.
6068 * utils.c (gdb_argv_as_array_view_test): New.
6069 (_initialize_utils): Register selftest.
6070 * maint.c (maintenance_selftest): Use the new method.
6072 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6074 * target.h (supports_dumpcore, dumpcore): New
6075 function declarations.
6076 * target.c (supports_dumpcore, dumpcore): New
6078 * target-delegates.c: Rebuild.
6079 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6080 and target_dumpcore ().
6082 2020-08-13 Aaron Merey <amerey@redhat.com>
6084 * debuginfod-support.c: Replace global variables with user_data.
6086 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6088 * maint.c (maintenance_selftest): Split args and pass array_view
6091 2020-08-12 Luis Machado <luis.machado@linaro.org>
6093 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6095 Use %s and pulongest to print the length.
6097 2020-08-12 Pedro Alves <palves@redhat.com>
6099 * NEWS: Move "Multi-target debugging support" item to the
6100 "Changes since GDB 9" section.
6102 2020-08-12 Pedro Alves <palves@redhat.com>
6105 * progspace.c (program_space::remove_objfile): Invalidate the
6108 2020-08-11 Tom de Vries <tdevries@suse.de>
6110 * MAINTAINERS: Mark ms1 as deleted.
6112 2020-08-10 Luis Machado <luis.machado@linaro.org>
6116 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6118 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6119 movz/str/stur/stp skipping behavior.
6121 2020-08-10 Luis Machado <luis.machado@linaro.org>
6123 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6124 struct user_sve_header instead of struct sve_context.
6126 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6128 * read.h (dwarf2_fetch_die_loc_sect_off,
6129 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6130 `void *` parameter with function_view.
6131 * read.c (dwarf2_fetch_die_loc_sect_off,
6132 dwarf2_fetch_die_loc_cu_off): Likewise.
6133 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6134 (per_cu_dwarf_call): Adjust.
6135 (get_frame_address_in_block_wrapper): Remove.
6136 (indirect_synthetic_pointer): Adjust.
6137 (get_ax_pc): Remove.
6138 (dwarf2_compile_expr_to_ax): Adjust.
6140 2020-08-08 Tom de Vries <tdevries@suse.de>
6143 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6145 * regcache.c (get_thread_arch_aspace_regcache): Same.
6147 2020-08-07 Tom Tromey <tromey@adacore.com>
6149 * ravenscar-thread.c
6150 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6152 (ravenscar_thread_target::wait): Check
6153 runtime_initialized.
6154 (ravenscar_thread_target::prepare_to_store)
6155 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6156 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6157 (ravenscar_thread_target::stopped_by_watchpoint)
6158 (ravenscar_thread_target::stopped_data_address)
6159 (ravenscar_thread_target::core_of_thread): Use
6160 scoped_restore_current_thread and
6161 set_base_thread_from_ravenscar_task.
6163 2020-08-07 Tom Tromey <tromey@adacore.com>
6165 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6167 2020-08-07 Tom Tromey <tromey@adacore.com>
6169 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6170 update_inferior_ptid before update_thread_list.
6171 (temporarily_change_regcache_ptid): New class.
6172 (ravenscar_thread_target::fetch_registers)
6173 (ravenscar_thread_target::store_registers)
6174 (ravenscar_thread_target::prepare_to_store): Use base thread when
6175 forwarding operation.
6177 2020-08-07 Tom Tromey <tromey@adacore.com>
6179 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6182 2020-08-07 Tom Tromey <tromey@adacore.com>
6184 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6186 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6188 (ravenscar_thread_target::add_thread): Rename from
6189 ravenscar_add_thread.
6190 (ravenscar_thread_target::update_thread_list): Use a lambda.
6191 (ravenscar_thread_target::xfer_partial): New method.
6193 2020-08-07 Tom Tromey <tromey@adacore.com>
6195 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6197 (iterate_over_live_ada_tasks): Change type of argument.
6198 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6201 2020-08-07 Tom Tromey <tromey@adacore.com>
6203 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6205 (ravenscar_thread_target::extra_thread_info): Remove.
6206 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6207 defer to target beneath for non-Ravenscar threads.
6209 2020-08-07 Tom Tromey <tromey@adacore.com>
6211 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6212 get_base_thread_from_ravenscar_task>: Now methods.
6213 <m_cpu_map>: New member.
6214 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6215 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6216 (ravenscar_thread_target::task_is_currently_active): Update.
6217 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6219 (ravenscar_thread_target::add_active_thread): Put initial thread
6222 2020-08-07 Tom Tromey <tromey@adacore.com>
6224 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6227 2020-08-07 Tom Tromey <tromey@adacore.com>
6229 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6230 runtime_initialized.
6232 2020-08-07 Tom Tromey <tromey@adacore.com>
6234 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6236 (ravenscar_thread_target::add_active_thread): Now public.
6237 (ravenscar_inferior_created): Call add_active_thread after pushing
6240 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6242 * regcache.c (ptid_regcache_map): New type.
6243 (target_ptid_regcache_map): New type.
6244 (regcaches): Change type to target_ptid_regcache_map.
6245 (get_thread_arch_aspace_regcache): Update to regcaches' new
6247 (regcache_thread_ptid_changed): Likewise.
6248 (registers_changed_ptid): Likewise.
6249 (regcaches_size): Likewise.
6250 (regcaches_test): Update.
6251 (regcache_thread_ptid_changed): Update.
6252 * regcache.h (regcache_up): New type.
6253 * gdbsupport/ptid.h (hash_ptid): New struct.
6255 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6257 * observable.h (thread_ptid_changed): Add parameter
6258 `process_stratum_target *`.
6259 * infrun.c (infrun_thread_ptid_changed): Add parameter
6260 `process_stratum_target *` and use it.
6261 (selftests): New namespace.
6262 (infrun_thread_ptid_changed): New function.
6263 (_initialize_infrun): Register selftest.
6264 * regcache.c (regcache_thread_ptid_changed): Add parameter
6265 `process_stratum_target *` and use it.
6266 (regcache_thread_ptid_changed): New function.
6267 (_initialize_regcache): Register selftest.
6268 * thread.c (thread_change_ptid): Pass target to
6269 thread_ptid_changed observable.
6271 2020-08-06 Caroline Tice <cmtice@google.com>
6273 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6274 (struct dwp_sections): Update field comments. Add loclists and
6276 (struct virtual_v2_dwo_sections): Rename struct to
6277 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6278 size & offset fields for loclists and rnglists.
6279 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6280 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6281 skipping dummy type units.
6282 (create_dwp_hash_table): Update the large comment above the function to
6283 discuss Version 5 DWP files as well, with references. Update all the
6284 version checks in the function to check for version 5 as well. Add new
6285 section at the end to create dwp hash table for version 5.
6286 (create_dwp_v2_section): Rename function to
6287 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6288 Add V5 to error message text.
6289 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6290 into calls to create_dwp_v2_or_v5_section.
6291 (create_dwo_unit_in_dwp_v5): New function.
6292 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6293 check for version2; add else clause to handle version 5.
6294 (open_and_init_dwo_file): Add code to check dwarf version & only call
6295 create_debug_types_hash_table (with sections.types) if version is not 5;
6296 else call create_debug_type_hash_table, with sections.info.
6297 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6299 (dwarf2_locate_v5_dwp_sections): New function.
6300 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6301 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6303 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6305 * regcache.h (class regcache): Remove friend
6306 registers_changed_ptid.
6307 <regcache_thread_ptid_changed>: Remove.
6308 <regcaches>: Remove.
6309 * regcache.c (regcache::regcaches): Rename to...
6310 (regcaches): ... this. Make static.
6311 (get_thread_arch_aspace_regcache): Update.
6312 (regcache::regcache_thread_ptid_changed): Rename to...
6313 (regcache_thread_ptid_changed): ... this. Update.
6314 (class regcache_access): Remove.
6315 (regcaches_test): Update.
6316 (_initialize_regcache): Update.
6317 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6320 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6322 * regcache.h (class regcache) <current_regcache>: Rename to...
6323 <regcaches>: ... this. Move doc here.
6324 * regcache.c (regcache::current_regcache) Rename to...
6325 (regcache::regcaches): ... this. Move doc to header.
6326 (get_thread_arch_aspace_regcache): Update.
6327 (regcache::regcache_thread_ptid_changed): Update.
6328 (registers_changed_ptid): Update.
6329 (class regcache_access) <current_regcache_size>: Rename to...
6330 <regcaches_size>: ... this.
6331 (current_regcache_test): Rename to...
6332 (regcaches_test): ... this.
6333 (_initialize_regcache): Update.
6335 2020-08-06 Victor Collod <vcollod@nvidia.com>
6337 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6339 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6341 * corelow.c (core_target::build_file_mappings): Don't output
6342 null pathname in warning.
6344 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6346 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6347 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6348 gdb.dwarf2/dw2-single-line-discriminators.exp,
6349 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6351 2020-08-05 Tom Tromey <tromey@adacore.com>
6354 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6355 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6356 Fix off-by-one and type size errors in ordinary case.
6358 2020-08-05 Tom de Vries <tdevries@suse.de>
6360 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6361 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6363 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6365 * frame.h (frame_id_p): Return bool.
6366 (frame_id_artificial_p): Return bool.
6367 (frame_id_eq): Return bool.
6368 (has_stack_frames): Return bool.
6369 (get_selected_frame): Fix typo in comment.
6370 (get_frame_pc_if_available): Return bool.
6371 (get_frame_address_in_block_if_available): Return bool.
6372 (get_frame_func_if_available): Return bool.
6373 (read_frame_register_unsigned): Return bool.
6374 (get_frame_register_bytes): Return bool.
6375 (safe_frame_unwind_memory): Return bool.
6376 (deprecated_frame_register_read): Return bool.
6377 (frame_unwinder_is): Return bool.
6378 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6380 <this_id::p>: Likewise.
6382 (frame_stash_add): Return bool.
6383 (get_frame_id): Use bool.
6384 (frame_id_build_special) Use bool.
6385 (frame_id_build_unavailable_stack): Use bool.
6386 (frame_id_build): Use bool.
6387 (frame_id_p): Return bool, use true/false instead of 1/0.
6388 (frame_id_artificial_p): Likewise.
6389 (frame_id_eq): Likewise.
6390 (frame_id_inner): Likewise.
6391 (get_frame_func_if_available): Likewise.
6392 (read_frame_register_unsigned): Likewise.
6393 (deprecated_frame_register_read): Likewise.
6394 (get_frame_register_bytes): Likewise.
6395 (has_stack_frames): Likewise.
6396 (inside_main_func): Likewise.
6397 (inside_entry_func): Likewise.
6398 (get_frame_pc_if_available): Likewise.
6399 (get_frame_address_in_block_if_available): Likewise.
6400 (frame_unwinder_is): Likewise.
6401 (safe_frame_unwind_memory): Likewise.
6402 (frame_unwind_arch): Likewise.
6404 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6406 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6407 type to cached_copy_status.
6408 (fprintf_frame): Adjust.
6409 (get_frame_func_if_available): Adjust.
6410 (frame_cleanup_after_sniffer): Adjust.
6412 2020-08-04 Mark Wielaard <mark@klomp.org>
6414 * MAINTAINERS (Write After Approval): Update email address.
6416 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6418 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6419 dynamic_prop::const_val.
6421 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6423 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6426 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6428 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6430 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6432 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6434 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6435 Jose E. Marchesi <jose.marchesi@oracle.com>
6437 * configure.tgt: Add entry for bpf-*-*.
6438 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6439 (ALLDEPFILES): Add bpf-tdep.c.
6440 * bpf-tdep.c: New file.
6441 * MAINTAINERS: Add bpf target and maintainer.
6442 * NEWS: Mention the support for the new target.
6444 2020-08-04 Tom de Vries <tdevries@suse.de>
6447 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6450 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6452 * syscalls/freebsd.xml: Regenerate.
6454 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6456 * syscalls/update-freebsd.sh: Fix usage and year range.
6458 2020-08-03 Tom de Vries <tdevries@suse.de>
6461 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6462 DW_LNE_lo_user/DW_LNE_hi_user range.
6464 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6467 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6470 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6472 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6474 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6476 * breakpoint.c (set_breakpoint_condition): Update the condition
6477 expressions after checking that the input condition string parses
6478 successfully and does not contain junk at the end.
6480 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6482 * breakpoint.c (set_breakpoint_condition): Update the
6483 condition string after parsing the new condition successfully.
6485 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6487 * proc-api.c (_STRUCTURED_PROC): Don't define.
6488 * proc-events.c: Likewise.
6489 * proc-flags.c: Likewise.
6490 * proc-why.c: Likewise.
6491 * procfs.c: Likewise.
6493 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6494 * configure, config.in: Regenerate.
6496 2020-07-30 Tom de Vries <tdevries@suse.de>
6499 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6500 m_red/m_green/m_blue in a union.
6502 2020-07-29 Tom de Vries <tdevries@suse.de>
6505 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6507 2020-07-28 Tom Tromey <tromey@adacore.com>
6510 * symtab.h (find_pc_partial_function_sym): Declare.
6511 * cli/cli-cmds.c (disassemble_command): Use
6512 find_pc_partial_function_sym. Check asm_demangle.
6513 * blockframe.c (cache_pc_function_sym): New global.
6514 (cache_pc_function_name): Remove.
6515 (clear_pc_function_cache): Update.
6516 (find_pc_partial_function_sym): New function, from
6517 find_pc_partial_function.
6518 (find_pc_partial_function): Rewrite using
6519 find_pc_partial_function_sym.
6521 2020-07-28 Tom Tromey <tromey@adacore.com>
6523 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6526 2020-07-28 Tom Tromey <tromey@adacore.com>
6528 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6529 <DW_OP_GNU_variable_value>: Cast to address type.
6531 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6533 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6534 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6535 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6536 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6537 (nbsd_get_siginfo_type): New.
6538 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6539 (_initialize_nbsd_tdep): New.
6541 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6544 * configure: Regenerated.
6546 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6549 * configure: Regenerated.
6551 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6553 * python/py-frame.c: Remove 'user-regs.h' include.
6554 (frapy_read_register): Rewrite to make use of
6555 gdbpy_parse_register_id.
6556 * python/py-registers.c (gdbpy_parse_register_id): New function,
6557 moved here from python/py-unwind.c. Updated the return type, and
6558 also accepts register descriptor objects.
6559 * python/py-unwind.c: Remove 'user-regs.h' include.
6560 (pyuw_parse_register_id): Moved to python/py-registers.c.
6561 (unwind_infopy_add_saved_register): Update to use
6562 gdbpy_parse_register_id.
6563 (pending_framepy_read_register): Likewise.
6564 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6566 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6568 * python/py-registers.c: Add 'user-regs.h' include.
6569 (register_descriptor_iter_find): New function.
6570 (register_descriptor_iterator_object_methods): New static global
6572 (register_descriptor_iterator_object_type): Add pointer to methods
6575 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6577 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6578 for all architectures on FreeBSD 11.3 and later.
6580 2020-07-27 Tom Tromey <tromey@adacore.com>
6582 * gcore.h (load_corefile): Don't declare.
6584 2020-07-27 Tom de Vries <tdevries@suse.de>
6586 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6587 * config.in: Regenerate.
6588 * configure: Regenerate.
6590 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6592 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6593 ws2tcpip.h. When checking whether socklen_t type is defined, use
6594 ws2tcpip.h if it is available and sys/socket.h isn't.
6595 * configure: Regenerate.
6596 * config.in: Regenerate.
6598 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6602 * valops.c (value_ind): Pass address to
6603 readjust_indirect_value_type.
6604 * value.c (readjust_indirect_value_type): Make parameter
6605 non-const, and add extra address parameter. Resolve original type
6607 * value.h (readjust_indirect_value_type): Update function
6608 signature and comment.
6610 2020-07-25 Tom de Vries <tdevries@suse.de>
6613 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6616 2020-07-24 Aaron Merey <amerey@redhat.com>
6618 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6619 * configure: Rebuild.
6621 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6624 * corelow.c (_initialize_corelow): Add period to help text
6625 for "maintenance print core-file-backed-mappings".
6627 2020-07-23 Pedro Alves <pedro@palves.net>
6629 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6630 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6632 * frame.c (frame_cache_generation, get_frame_cache_generation):
6634 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6635 (get_prev_frame_if_no_cycle): On exception, don't touch
6636 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6637 * frame.h (get_frame_cache_generation): Declare.
6639 2020-07-23 Tom de Vries <tdevries@suse.de>
6642 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6643 New default constructor.
6645 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6647 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6648 exclude non-statement entries.
6650 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6652 * NEWS (New commands): Mention new command
6653 "maintenance print core-file-backed-mappings".
6655 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6657 * corelow.c (gdbcmd.h): Include.
6658 (core_target::info_proc_mappings): New method.
6659 (get_current_core_target): New function.
6660 (maintenance_print_core_file_backed_mappings): New function.
6661 (_initialize_corelow): Add core-file-backed-mappings to
6662 "maint print" commands.
6664 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6666 * linux-tdep.c (dump_note_entry_p): New function.
6667 (linux_dump_mapping_p_ftype): New typedef.
6668 (linux_find_memory_regions_full): Add new parameter,
6669 should_dump_mapping_p.
6670 (linux_find_memory_regions): Adjust call to
6671 linux_find_memory_regions_full.
6672 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6673 call to linux_find_memory_regions_full.
6675 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6677 * corelow.c (solist.h, unordered_map): Include.
6678 (class core_target): Add field m_core_file_mappings and
6679 method build_file_mappings.
6680 (core_target::core_target): Call build_file_mappings.
6681 (core_target::~core_target): Free memory associated with
6682 m_core_file_mappings.
6683 (core_target::build_file_mappings): New method.
6684 (core_target::xfer_partial): Use m_core_file_mappings
6685 for memory transfers.
6686 * linux-tdep.c (linux_read_core_file_mappings): New
6688 (linux_core_info_proc_mappings): Rewrite to use
6689 linux_read_core_file_mappings.
6690 (linux_init_abi): Register linux_read_core_file_mappings.
6692 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6694 * arch-utils.c (default_read_core_file_mappings): New function.
6695 * arch-utils.c (default_read_core_file_mappings): Declare.
6696 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6697 * gdbarch.h, gdbarch.c: Regenerate.
6699 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6702 * corelow.c (core_target:xfer_partial): Revise
6703 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6704 case after first checking the stratum beneath the core
6706 (has_all_memory): Return true.
6707 * target.c (raw_memory_xfer_partial): Revise comment
6708 regarding use of has_all_memory.
6710 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6712 * exec.h (section_table_xfer_memory): Revise declaration,
6713 replacing section name parameter with an optional callback
6715 * exec.c (section_table_xfer_memory): Likewise.
6716 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6717 of section_table_xfer_memory.
6719 2020-07-22 Tom Tromey <tromey@adacore.com>
6721 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6722 lookup_symbol_search_name.
6724 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6726 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6727 redundant local variable.
6728 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6729 reference, not pointer, update code accordingly.
6731 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6732 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6734 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6735 * jit.c (jit_breakpoint_re_set_internal): Use the
6736 `skip_jit_symbol_lookup` field.
6738 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6739 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6741 * jit.c (jit_read_descriptor): Define the descriptor address once,
6743 (jit_breakpoint_deleted): Move the declaration of the loop variable
6744 `iter` into the loop header.
6745 (jit_breakpoint_re_set_internal): Move the declaration of the local
6746 variable `objf_data` to the first point of definition.
6747 (jit_event_handler): Move the declaration of local variables
6748 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6749 Rename `objf` to `jited`.
6751 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6753 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6755 * jit.c (get_jiter_objfile_data): Update.
6757 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6758 Simon Marchi <simon.marchi@polymtl.ca>
6760 * jit.c (struct jit_program_space_data): Remove.
6761 (jit_program_space_key): Remove.
6762 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6764 (get_jit_program_space_data): Remove.
6765 (jit_breakpoint_deleted): Iterate on all of the program space's
6767 (jit_inferior_init): Likewise.
6768 (jit_breakpoint_re_set_internal): Likewise. Also change return
6770 (jit_breakpoint_re_set): Pass current_program_space to
6771 jit_breakpoint_re_set_internal.
6773 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6775 * jit.h (struct jiter_objfile_data) <cached_code_address,
6776 jit_breakpoint>: Move to here from ...
6777 * jit.c (jit_program_space_data): ... here.
6778 (jiter_objfile_data::~jiter_objfile_data): Update.
6779 (jit_breakpoint_deleted): Update.
6780 (jit_breakpoint_re_set_internal): Update.
6782 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6784 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6786 (jit_read_descriptor): Remove NULL check.
6787 (jit_event_handler): Add an assertion.
6789 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6791 * jit.h (struct jit_objfile_data): Split into...
6792 (struct jiter_objfile_data): ... this ...
6793 (struct jited_objfile_data): ... and this.
6794 * objfiles.h (struct objfile) <jit_data>: Remove.
6795 <jiter_data, jited_data>: New fields.
6796 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6797 (jiter_objfile_data::~jiter_objfile_data): ... this.
6798 (get_jit_objfile_data): Rename to ...
6799 (get_jiter_objfile_data): ... this.
6800 (add_objfile_entry): Update.
6801 (jit_read_descriptor): Use get_jiter_objfile_data.
6802 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6803 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6804 (jit_inferior_exit_hook): Use objfile's jited_data field.
6806 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6808 * jit.h: Forward-declare `struct minimal_symbol`.
6809 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6810 constructor, destructor, and an objfile* field.
6811 * jit.c (jit_objfile_data): Remove.
6812 (struct jit_objfile_data): Migrate from here to jit.h.
6813 (jit_objfile_data::~jit_objfile_data): New destructor
6814 implementation with code moved from free_objfile_data.
6815 (free_objfile_data): Delete.
6816 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6817 (jit_find_objf_with_entry_addr): Ditto.
6818 (jit_inferior_exit_hook): Ditto.
6819 (_initialize_jit): Remove the call to
6820 register_objfile_data_with_cleanup.
6821 * objfiles.h (struct objfile) <jit_data>: New field.
6823 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6825 * jit.h: Forward-declare `struct objfile`.
6826 (jit_event_handler): Add a second parameter, the JITer objfile.
6827 * jit.c (jit_read_descriptor): Change the signature to take the
6828 JITer objfile as an argument instead of the jit_program_space_data.
6829 (jit_inferior_init): Update the call to jit_read_descriptor.
6830 (jit_event_handler): Use the new JITer objfile argument when calling
6831 jit_read_descriptor.
6832 * breakpoint.c (handle_jit_event): Update the call to
6833 jit_event_handler to pass the JITer objfile.
6835 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6837 * gdbarch.c: Regenerate.
6838 * gdbarch.h: Regenerate.
6839 * gdbarch.sh (handle_segmentation_fault): Remove method.
6840 * infrun.c (handle_segmentation_fault): Remove.
6841 (print_signal_received_reason): Remove call to
6842 handle_segmentation_fault.
6844 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6846 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6847 Rename to sparc64_linux_report_signal_info and add siggnal
6849 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6850 instead of sparc64_linux_handle_segmentation_fault.
6852 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6854 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6855 i386_linux_report_signal_info instead of
6856 i386_linux_handle_segmentation_fault.
6857 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6858 to i386_linux_report_signal_info and add siggnal argument.
6859 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6860 of i386_linux_handle_segmentation_fault.
6861 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6862 to i386_linux_report_signal_info and add siggnal argument.
6864 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6866 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6869 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6871 * gdbarch.c: Regenerate.
6872 * gdbarch.h: Regenerate.
6873 * gdbarch.sh (report_signal_info): New method.
6874 * infrun.c (print_signal_received_reason): Invoke gdbarch
6875 report_signal_info hook if present.
6877 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6879 * python/py-registers.c : Add 'unordered_map' include.
6880 (gdbpy_new_reggroup): Renamed to...
6881 (gdbpy_get_reggroup): ...this. Update to only create register
6882 group descriptors when needed.
6883 (gdbpy_reggroup_iter_next): Update.
6885 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6887 * python/py-registers.c (gdbpy_register_object_data): New static
6889 (gdbpy_register_object_data_init): New function.
6890 (gdbpy_new_register_descriptor): Renamed to...
6891 (gdbpy_get_register_descriptor): ...this, and update to reuse
6892 existing register descriptors where possible.
6893 (gdbpy_register_descriptor_iter_next): Update.
6894 (gdbpy_initialize_registers): Register new gdbarch data.
6896 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6898 * linux-nat.c (stopped_pids): Make static.
6900 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6903 * gdbtypes.c (ada_discrete_type_low_bound,
6904 ada_discrete_type_high_bound): Handle undefined bounds.
6906 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6908 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6910 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6913 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6915 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6916 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6917 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6918 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6919 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6922 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6924 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6925 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6926 which are deprecated in Guile 3.0.
6927 * configure.ac (try_guile_versions): Add "guile-3.0".
6928 * configure (try_guile_versions): Regenerate.
6929 * NEWS: Update entry.
6931 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6932 Doug Evans <dje@google.com>
6935 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6936 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6937 USING_GUILE_BEFORE_2_2.
6938 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6939 Change type to 'scm_t_port_type *'.
6940 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6941 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6942 parameter and honor it. Update callers.
6943 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6944 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6946 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6947 USING_GUILE_BEFORE_2_2.
6948 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6949 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6950 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6951 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6952 and 'SCM_PORT_TYPE'.
6953 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6954 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6955 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6956 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6957 [!USING_GUILE_BEFORE_2_2]: New functions.
6958 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6959 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6960 'gdbscm_memory_port_read'.
6961 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6962 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6963 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6965 (ioscm_init_memory_port): Remove.
6966 (ioscm_init_memory_port_stream): New function
6967 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6969 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6970 Return scm_from_uint (0).
6971 (gdbscm_set_memory_port_read_buffer_size_x)
6972 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6973 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6974 Return scm_from_uint (0).
6975 (gdbscm_set_memory_port_write_buffer_size_x)
6976 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6977 * configure.ac (try_guile_versions): Add "guile-2.2".
6978 * configure: Regenerate.
6981 2020-07-18 Tom Tromey <tom@tromey.com>
6983 * linux-nat.c (linux_multi_process): Remove.
6984 (linux_nat_target::supports_multi_process): Return true.
6986 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6988 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6989 (riscv_lookup_target_description): Return pointer out of
6991 * target-descriptions.c (allocate_target_description): Add
6993 (target_desc_deleter::operator()): Likewise.
6994 * target-descriptions.h (struct target_desc_deleter): Moved to
6996 (target_desc_up): Likewise.
6998 2020-07-17 Tom Tromey <tromey@adacore.com>
7000 * linux-nat.c (linux_nat_target::supports_non_stop)
7001 (linux_nat_target::always_non_stop_p): Use "true".
7002 (linux_nat_target::supports_disable_randomization): Use "true" and
7005 2020-07-16 Caroline Tice <cmtice@google.com>
7007 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7008 (RNGLIST_HEADER_SIZE64): New constant definition.
7009 (struct dwop_section_names): Add rnglists_dwo.
7010 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7011 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7012 (struct dwo_sections): Add rnglists field.
7013 (read_attribut_reprocess): Add tag parameter.
7014 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7015 (cu_debug_rnglists_section): New function (decl & definition).
7016 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7017 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7018 die whose range is being checked; get rnglist section from
7019 cu_debug_rnglists_section, to get from either objfile or dwo file as
7020 appropriate. Add cases for DW_RLE_base_addressx,
7021 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7022 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7023 test inside if-condition and updating complaint message.
7024 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7025 dwarf2_rnglists_process.
7026 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7027 dwarf2_ranges_process.
7028 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7029 need_ranges_base and update comment appropriately. Also pass die tag
7030 to dwarf2_ranges_read.
7031 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7032 need_ranges_base and update comment appropriately. Also pass die tag
7033 to dwarf2_ranges_process.
7034 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7035 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7036 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7037 need_ranges_base and update comment appropriately. Also pass die tag
7038 to read_attribute_reprocess and dwarf2_ranges_read.
7039 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7040 and update function comment appropriately.
7041 (read_loclist_index): Call read_loclists_rnglists_header instead of
7042 read_loclist_header.
7043 (read_rnglist_index): New function.
7044 (read_attribute_reprocess): Add tag parameter. Add code for
7045 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7046 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7048 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7050 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7053 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7055 * arch-utils.c (show_architecture): Update formatting of messages.
7057 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7059 * gdbtypes.h (struct type) <bounds>: Handle array and string
7061 * ada-lang.c (assign_aggregate): Use type::bounds on
7063 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7064 * c-varobj.c (c_number_of_children): Likewise.
7065 (c_describe_child): Likewise.
7066 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7067 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7068 (f_type_print_base): Likewise.
7069 * f-valprint.c (f77_array_offset_tbl): Likewise.
7070 (f77_get_upperbound): Likewise.
7071 (f77_print_array_1): Likewise.
7072 * guile/scm-type.c (gdbscm_type_range): Likewise.
7073 * m2-typeprint.c (m2_array): Likewise.
7074 (m2_is_long_set_of_type): Likewise.
7075 * m2-valprint.c (get_long_set_bounds): Likewise.
7076 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7077 * python/py-type.c (typy_range): Likewise.
7078 * rust-lang.c (rust_internal_print_type): Likewise.
7079 * type-stack.c (type_stack::follow_types): Likewise.
7080 * valarith.c (value_subscripted_rvalue): Likewise.
7081 * valops.c (value_cast): Likewise.
7083 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7085 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7086 callers to use the equivalent accessor methods.
7088 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7090 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7091 (struct type) <bit_stride>: New method.
7092 (TYPE_BIT_STRIDE): Remove.
7093 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7095 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7097 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7098 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7099 callers to use the equivalent accessor methods instead.
7101 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7103 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7104 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7105 callers to use the equivalent accessor methods instead.
7107 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7109 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7110 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7111 to use dynamic_prop::kind.
7113 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7115 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7116 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7117 to get the bound property's kind and check against
7120 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7122 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7123 all callers to use type::range_bounds followed by
7124 dynamic_prop::{low,high}.
7126 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7128 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7129 const_val, set_const_val, baton, set_locexpr, set_loclist,
7130 set_addr_offset, variant_parts, set_variant_parts,
7131 original_type, set_original_type>: New methods.
7132 <kind>: Rename to...
7133 <m_kind>: ... this. Update all users to use the new methods
7135 <data>: Rename to...
7136 <m_data>: ... this. Update all users to use the new methods
7139 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7141 * gdbtypes.c (get_discrete_bounds): Return failure if
7142 the range type's bounds are not both defined and constant
7144 (get_array_bounds): Update comment. Remove undefined bound check.
7146 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7148 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7149 the type::bounds method directly.
7151 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7153 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7154 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7155 are used to set the range type's bounds to use set_bounds.
7157 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7159 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7161 2020-07-10 Pedro Alves <pedro@palves.net>
7163 * gdbthread.h (inferior_ref): Define.
7164 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7165 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7167 (scoped_restore_current_thread::restore):
7168 Adjust to gdb::ref_ptr.
7169 (scoped_restore_current_thread::~scoped_restore_current_thread):
7170 Remove manual decref handling.
7171 (scoped_restore_current_thread::scoped_restore_current_thread):
7173 inferior_ref::new_reference/thread_info_ref::new_reference.
7174 Incref the thread before calling get_frame_id instead of after.
7175 Let TARGET_CLOSE_ERROR propagate.
7177 2020-07-10 Pedro Alves <pedro@palves.net>
7179 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7180 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7181 NOT_AVAILABLE_ERROR.
7182 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7183 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7185 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7186 Pedro Alves <pedro@palves.net>
7189 * infrun.c (threads_are_resumed_pending_p): Delete.
7190 (do_target_wait): Remove threads_are_executing and
7191 threads_are_resumed_pending_p checks from the inferior_matches
7192 lambda. Update comments.
7194 2020-07-10 Pedro Alves <pedro@palves.net>
7197 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7200 2020-07-10 Pedro Alves <pedro@palves.net>
7203 * infrun.c (handle_no_resumed): Handle multiple targets.
7205 2020-07-10 Pedro Alves <pedro@palves.net>
7208 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7211 2020-07-10 Pedro Alves <pedro@palves.net>
7214 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7215 threads, not all threads.
7217 2020-07-10 Pedro Alves <pedro@palves.net>
7220 * remote.c (remote_target::open_1): Pass remote target pointer as
7221 data to create_async_event_handler.
7222 (remote_async_inferior_event_handler): Mark async event handler
7223 before returning if the remote target still has either pending
7224 events or unacknowledged notifications.
7226 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7228 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7230 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7233 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7235 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7238 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7240 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7241 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7242 AT_FREEBSD_PS_STRINGS.
7244 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7246 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7247 of debugfile path on Windows.
7249 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7251 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7254 2020-07-08 Tom Tromey <tromey@adacore.com>
7256 * ada-lang.c (ada_exception_message_1): Use read_memory.
7258 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7261 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7262 special handling for inline frames.
7263 * findvar.c (value_of_register_lazy): Skip inline frames when
7264 creating lazy register values.
7265 * frame.c (frame_id_computed_p): Delete definition.
7266 * frame.h (frame_id_computed_p): Delete declaration.
7268 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7270 * NEWS: Mention additions to Python API.
7271 * python/py-arch.c (archpy_register_groups): New function.
7272 (arch_object_methods): Add 'register_groups' method.
7273 * python/py-registers.c (reggroup_iterator_object): New struct.
7274 (reggroup_object): New struct.
7275 (gdbpy_new_reggroup): New function.
7276 (gdbpy_reggroup_to_string): New function.
7277 (gdbpy_reggroup_name): New function.
7278 (gdbpy_reggroup_iter): New function.
7279 (gdbpy_reggroup_iter_next): New function.
7280 (gdbpy_new_reggroup_iterator): New function
7281 (gdbpy_initialize_registers): Register new types.
7282 (reggroup_iterator_object_type): Define new Python type.
7283 (gdbpy_reggroup_getset): New static global.
7284 (reggroup_object_type): Define new Python type.
7285 * python/python-internal.h
7287 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7289 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7290 * python/py-arch.c (archpy_registers): New function.
7291 (arch_object_methods): Add 'registers' method.
7292 * python/py-registers.c: New file.
7293 * python/python-internal.h
7294 (gdbpy_new_register_descriptor_iterator): Declare.
7295 (gdbpy_initialize_registers): Declare.
7296 * python/python.c (do_start_initialization): Call
7297 gdbpy_initialize_registers.
7298 * NEWS: Mention additions to the Python API.
7300 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7302 * NEWS: Mention new Python API method.
7303 * python/py-unwind.c (pending_framepy_architecture): New function.
7304 (pending_frame_object_methods): Add architecture method.
7306 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7308 * gdbarch.c: Regenerate.
7309 * gdbarch.h: Regenerate.
7310 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7311 (gdbarch_data): Use internal_error for the case where
7312 deprecated_set_gdbarch_data was originally needed.
7313 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7314 and use passed in obstack.
7315 (libunwind_frame_set_descr): Should no longer get back NULL from
7317 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7319 * user-regs.c (user_regs_init): Update parameters, and use passed
7321 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7322 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7324 2020-07-06 Tom de Vries <tdevries@suse.de>
7326 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7327 End-Of-Sequence in lte_is_less_than.
7328 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7329 "gdb: Don't reorder line table entries too much when sorting".
7331 2020-07-06 Tom de Vries <tdevries@suse.de>
7334 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7336 2020-07-05 Tom de Vries <tdevries@suse.de>
7339 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7340 std::uncaught_exceptions instead of deprecated
7341 std::uncaught_exception.
7343 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7345 * macroexp.h (macro_stringify): Return
7346 gdb::unique_xmalloc_ptr<char>.
7347 * macroexp.c (macro_stringify): Likewise.
7348 * macrotab.c (fixup_definition): Update.
7350 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7352 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7353 (lex_one_token): Update.
7354 * macroexp.c (struct macro_buffer) <release>: Return
7355 gdb::unique_xmalloc_ptr<char>.
7356 (macro_stringify): Update.
7357 (macro_expand): Update.
7358 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7359 * macroexp.h (macro_expand_next): Likewise.
7361 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7363 * macroexp.h (macro_lookup_ftype): Remove.
7364 (macro_expand, macro_expand_once, macro_expand_next): Remove
7365 lookup function parameters, add scope parameter.
7366 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7367 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7368 * macroscope.h (standard_macro_lookup): Change parameter type
7370 * macroscope.c (standard_macro_lookup): Likewise.
7371 * c-exp.y (lex_one_token): Update.
7372 * macrocmd.c (macro_expand_command): Likewise.
7373 (macro_expand_once_command): Likewise.
7375 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7377 * inf-loop.c (inferior_event_handler): Remove client_data param.
7378 * inf-loop.h (inferior_event_handler): Likewise.
7379 * infcmd.c (step_1): Adjust.
7380 * infrun.c (proceed): Adjust.
7381 (fetch_inferior_event): Remove client_data param.
7382 (infrun_async_inferior_event_handler): Adjust.
7383 * infrun.h (fetch_inferior_event): Remove `void *` param.
7384 * linux-nat.c (handle_target_event): Adjust.
7385 * record-btrace.c (record_btrace_handle_async_inferior_event):
7387 * record-full.c (record_full_async_inferior_event_handler):
7389 * remote.c (remote_async_inferior_event_handler): Adjust.
7391 2020-07-01 Tom Tromey <tom@tromey.com>
7393 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7394 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7396 2020-07-01 Tom Tromey <tom@tromey.com>
7398 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7400 (tui_win_info::make_window): Merge with
7401 tui_gen_win_info::make_window.
7402 (tui_win_info::make_visible): Move from tui_gen_win_info.
7403 * tui/tui-win.c (tui_win_info::max_width): Move from
7405 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7407 <window_factory>: Likewise.
7408 * tui/tui-layout.c (tui_win_info::resize): Move from
7410 (make_standard_window): Change return type.
7411 (get_locator_window, tui_get_window_by_name): Likewise.
7412 (tui_layout_window::apply): Remove a cast.
7413 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7414 (struct tui_win_info): Merge with tui_gen_win_info.
7415 (struct tui_gen_win_info): Remove.
7417 2020-07-01 Tom Tromey <tom@tromey.com>
7419 * tui/tui-stack.h (struct tui_locator_window): Derive from
7421 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7422 <can_box>: New method.
7424 2020-07-01 Tom Tromey <tom@tromey.com>
7426 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7428 2020-07-01 Tom Tromey <tom@tromey.com>
7430 * tui/tui-regs.c (tui_data_window::display_registers_from)
7431 (tui_data_window::display_registers_from)
7432 (tui_data_window::first_data_item_displayed)
7433 (tui_data_window::delete_data_content_windows): Update.
7434 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7436 (tui_data_window::check_register_values): Update.
7437 (tui_data_item_window::rerender): Add parameters. Update.
7438 (tui_data_item_window::refresh_window): Remove.
7439 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7441 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7443 <refresh_window, max_height, min_height>: Remove.
7444 <rerender>: Add parameters.
7445 <x, y, visible>: New members.
7446 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7447 <m_item_width>: New member.
7449 2020-07-01 Tom Tromey <tom@tromey.com>
7451 * tui/tui-regs.c (tui_data_window::show_register_group)
7452 (tui_data_window::check_register_values): Update.
7453 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7456 2020-07-01 Tom Tromey <tom@tromey.com>
7458 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7461 2020-07-01 Tom Tromey <tom@tromey.com>
7463 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7464 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7466 2020-07-01 Tom Tromey <tom@tromey.com>
7468 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7469 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7470 (struct tui_line_or_address): Move from tui-data.h.
7471 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7472 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7473 (tui_cmd_window, tui_source_window_base, tui_source_window)
7474 (tui_disasm_window): Don't declare.
7475 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7477 (SINGLE_KEY): Move to tui-stack.c.
7479 2020-07-01 Tom Tromey <tom@tromey.com>
7481 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7483 * tui/tui-regs.c (class tab_expansion_file): New.
7484 (tab_expansion_file::write): New method.
7485 (tui_register_format): Change return type. Use
7487 (tui_get_register, tui_data_window::display_registers_from)
7488 (tui_data_item_window::rerender): Update.
7489 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7490 * tui/tui-io.c (tui_expand_tabs): Remove.
7492 2020-07-01 Tom Tromey <tom@tromey.com>
7494 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7496 2020-07-01 Fangrui Song <maskray@google.com>
7498 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7500 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7502 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7503 forms for DW_AT_associated and DW_AT_allocated attributes,
7504 which is already checked in function attr_to_dynamic_prop.
7506 2020-06-30 Tom Tromey <tromey@adacore.com>
7508 * dwarf2/read.c (quirk_rust_enum): Correctly call
7509 alloc_rust_variant for default-less enum.
7511 2020-06-30 Tom Tromey <tromey@adacore.com>
7514 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7517 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7519 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7520 * gdbarch.h: Re-generate.
7522 2020-06-28 Tom Tromey <tom@tromey.com>
7524 * command.h (cmd_types): Remove.
7525 (cmd_type): Don't declare.
7526 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7528 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7529 * cli/cli-decode.c (cmd_type): Remove.
7531 2020-06-27 Pedro Alves <palves@redhat.com>
7533 * fork-child.c (prefork_hook): Adjust.
7534 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7536 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7537 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7538 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7539 Remove declarations.
7540 (struct inferior) <set_tty, tty>: New methods.
7541 (struct inferior) <terminal>: Rename to ...
7542 (struct inferior) <m_terminal>: ... this and make private.
7543 * main.c (captured_main_1): Adjust.
7544 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7545 (mi_cmd_inferior_tty_show): Adjust.
7546 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7547 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7549 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7551 * configure.ac: Add --enable-libctf: handle --disable-static
7553 * acinclude.m4: sinclude ../config/enable.m4.
7554 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7555 (LIBCTF): Substitute in.
7556 (CTF_DEPS): New, likewise.
7557 (CLIBS): libctf needs symbols from libbfd: move earlier.
7558 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7560 * ctfread.c: Surround in ENABLE_LIBCTF.
7561 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7562 * configure: Regenerate.
7563 * config.in: Likewise.
7565 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7567 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7569 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7571 * inferior.h (struct inferior) <terminal>: Change type to
7572 gdb::unique_xmalloc_ptr<char>.
7573 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7574 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7575 field, adjust to unique pointer.
7576 (get_inferior_io_terminal): Adjust to unique pointer.
7578 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7580 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7581 registers, not just the known core set of registers.
7583 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7585 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7586 fflags, frm, and fcsr registers.
7587 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7589 (riscv_tdesc_unknown_reg): New function.
7590 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7591 tdesc_use_registers.
7592 * riscv-tdep.h (struct gdbarch_tdep): Add
7593 unknown_csrs_first_regnum, unknown_csrs_count,
7594 duplicate_fflags_regnum, duplicate_frm_regnum, and
7595 duplicate_fcsr_regnum fields.
7597 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7599 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7600 callback, use the callback (when not null) to help number unknown
7602 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7603 (tdesc_use_registers): Add extra parameter to declaration.
7605 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7607 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7609 (class riscv_pending_register_alias): Likewise.
7610 (riscv_register_feature::register_info): Change 'required_p' field
7611 to 'required', and change its type. Add 'check' member function.
7612 (riscv_register_feature::register_info::check): Define new member
7614 (riscv_xreg_feature): Change initialisation of 'required' field.
7615 (riscv_freg_feature): Likewise.
7616 (riscv_virtual_feature): Likewise.
7617 (riscv_csr_feature): Likewise.
7618 (riscv_check_tdesc_feature): Take extra parameter, the csr
7619 tdesc_feature, rewrite the function to use the new
7620 riscv_register_feature::register_info::check function.
7621 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7623 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7625 * features/Makefile: Remove all references to the deleted files
7627 * features/riscv/32bit-csr.c: Deleted.
7628 * features/riscv/32bit-csr.xml: Deleted.
7629 * features/riscv/64bit-csr.c: Deleted.
7630 * features/riscv/64bit-csr.xml: Deleted.
7631 * features/riscv/rebuild-csr-xml.sh: Deleted.
7633 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7635 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7636 whitespace error for declaration of names member variable.
7637 (struct riscv_register_feature): Add new prefer_first_name member
7638 variable, and fix whitespace error in declaration of registers.
7639 (riscv_xreg_feature): Initialize prefer_first_name field.
7640 (riscv_freg_feature): Likewise.
7641 (riscv_virtual_feature): Likewise.
7642 (riscv_csr_feature): Likewise.
7643 (riscv_register_name): Expand on comments. Remove register name
7644 modifications for CSR and virtual registers.
7646 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7648 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7651 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7653 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7655 (class riscv_pending_register_alias): New class.
7656 (riscv_check_tdesc_feature): Take vector of pending aliases and
7657 populate it as appropriate.
7658 (riscv_setup_register_aliases): Delete.
7659 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7660 to riscv_check_tdesc_feature in all cases. Use the vector to
7661 create the register aliases.
7663 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7665 * sol2-tdep.c (sol2_static_transform_name): Remove.
7666 (sol2_init_abi): Don't register it.
7667 * gdbarch.sh (static_transform_name): Remove.
7668 * gdbarch.c, gdbarch.h: Regenerate.
7670 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7671 gdbarch_static_transform_name.
7672 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7673 * stabsread.c (define_symbol) <'X'>: Remove.
7674 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7677 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7678 <'S'>: Remove call to gdbarch_static_transform_name.
7680 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7682 * procfs.c (procfs_pre_trace): New function.
7683 (procfs_target::create_inferior): Pass it to fork_inferior.
7685 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7687 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7688 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7689 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7690 sol2-tdep.o, sparc-sol2-tdep.o.
7691 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7692 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7693 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7694 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7696 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7698 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7699 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7701 Remove calls to set_gdbarch_skip_solib_resolver,
7702 set_gdbarch_core_pid_to_str.
7703 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7704 (i386_sol2_static_transform_name): Remove.
7705 (i386_sol2_init_abi): Call sol2_init_abi.
7706 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7707 set_gdbarch_static_transform_name,
7708 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7709 Use sol2_sigtramp_p.
7710 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7711 (sol2_sigtramp_p): New function.
7712 (sol2_static_transform_name): New function.
7713 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7714 (sol2_init_abi): New function.
7715 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7716 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7717 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7718 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7719 (sparc_sol2_static_transform_name): Remove.
7720 (sparc32_sol2_init_abi): Call sol2_init_abi.
7721 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7722 set_gdbarch_static_transform_name,
7723 set_gdbarch_skip_solib_resolver,
7724 set_gdbarch_core_pid_to_str.
7725 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7726 (sparc_sol2_static_transform_name): Remove
7727 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7728 call sol2_sigtramp_p.
7729 (sparc64_sol2_init_abi): Call sol2_init_abi.
7730 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7731 set_gdbarch_static_transform_name,
7732 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7734 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7736 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7737 * exec.c (validate_exec_file): If from_tty, set both
7738 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7739 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7740 and from_tty, unconditionally ask a confirmation.
7742 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7744 * target-descriptions.c (tdesc_architecture_name): Protect against
7745 NULL pointer dereference.
7746 (maint_print_xml_tdesc_cmd): New function.
7747 (_initialize_target_descriptions): Register new 'maint print
7748 xml-tdesc' command and give it the filename completer.
7749 * NEWS: Mention new 'maint print xml-tdesc' command.
7751 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7753 * target-descriptions.c (class tdesc_compatible_info): New class.
7754 (struct target_desc): Change type of compatible vector.
7755 (tdesc_compatible_p): Update for change in type of
7756 target_desc::compatible.
7757 (tdesc_compatible_info_list): New function.
7758 (tdesc_compatible_info_arch_name): New function.
7759 (tdesc_add_compatible): Update for change in type of
7760 target_desc::compatible.
7761 (print_c_tdesc::visit_pre): Likewise.
7763 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7765 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7766 whitespace to underscore.
7767 (maint_print_c_tdesc_cmd): Use fake filename for target
7768 descriptions that came from the target.
7769 (_initialize_target_descriptions): Add filename command completion
7770 for 'maint print c-tdesc'.
7772 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7774 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7777 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7779 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7781 (dwarf2_find_location_expression): Likewise.
7782 (call_site_parameter_matches): Likewise.
7783 (dwarf2_compile_expr_to_ax): Likewise.
7784 (disassemble_dwarf_expression): Likewise.
7785 (loclist_describe_location): Likewise.
7787 2020-06-23 Pedro Alves <palves@redhat.com>
7789 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7790 progspace-and-thread.h. Include scoped-mock-context.h instead.
7791 (register_to_value_test): Use scoped_mock_context.
7792 * regcache.c: Include "scoped-mock-context.h".
7793 (cooked_read_test): Don't error out if a target is already pushed.
7794 Use scoped_mock_context. Adjust.
7795 * scoped-mock-context.h: New file.
7797 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7799 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7801 (ada_language::is_string_type_p): New member function.
7802 * c-lang.c (c_language_data): Delete la_is_string_type_p
7804 (cplus_language_data): Likewise.
7805 (asm_language_data): Likewise.
7806 (minimal_language_data): Likewise.
7807 * d-lang.c (d_language_data): Likewise.
7808 * f-lang.c (f_is_string_type_p): Delete function, implementation
7809 moved to f_language::is_string_type_p.
7810 (f_language_data): Delete la_is_string_type_p initializer.
7811 (f_language::is_string_type_p): New member function,
7812 implementation from f_is_string_type_p.
7813 * go-lang.c (go_is_string_type_p): Delete function, implementation
7814 moved to go_language::is_string_type_p.
7815 (go_language_data): Delete la_is_string_type_p initializer.
7816 (go_language::is_string_type_p): New member function,
7817 implementation from go_is_string_type_p.
7818 * language.c (language_defn::is_string_type_p): Define new member
7820 (default_is_string_type_p): Make static, add comment copied from
7822 (unknown_language_data): Delete la_is_string_type_p initializer.
7823 (unknown_language::is_string_type_p): New member function.
7824 (auto_language_data): Delete la_is_string_type_p initializer.
7825 (auto_language::is_string_type_p): New member function.
7826 * language.h (language_data): Delete la_is_string_type_p field.
7827 (language_defn::is_string_type_p): Declare new function.
7828 (default_is_string_type_p): Delete desclaration, move comment to
7830 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7831 moved to m2_language::is_string_type_p.
7832 (m2_language_data): Delete la_is_string_type_p initializer.
7833 (m2_language::is_string_type_p): New member function,
7834 implementation from m2_is_string_type_p.
7835 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7837 * opencl-lang.c (opencl_language_data): Likewise.
7838 * p-lang.c (pascal_is_string_type_p): Delete function,
7839 implementation moved to pascal_language::is_string_type_p.
7840 (pascal_language_data): Delete la_is_string_type_p initializer.
7841 (pascal_language::is_string_type_p): New member function,
7842 implementation from pascal_is_string_type_p.
7843 * rust-lang.c (rust_is_string_type_p): Delete function,
7844 implementation moved to rust_language::is_string_type_p.
7845 (rust_language_data): Delete la_is_string_type_p initializer.
7846 (rust_language::is_string_type_p): New member function,
7847 implementation from rust_is_string_type_p.
7848 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7851 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7853 * ada-lang.c (ada_language_data): Delete la_print_typedef
7855 (ada_language::print_typedef): New member function.
7856 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7857 (cplus_language_data): Likewise.
7858 (asm_language_data): Likewise.
7859 (minimal_language_data): Likewise.
7860 * d-lang.c (d_language_data): Likewise.
7861 * f-lang.c (f_language_data): Likewise.
7862 (f_language::print_typedef): New member function.
7863 * go-lang.c (go_language_data): Delete la_print_typedef
7865 * language.c (language_defn::print_typedef): Define member
7867 (unknown_language_data): Delete la_print_typedef initializer.
7868 (unknown_language::print_typedef): New member function.
7869 (auto_language_data): Delete la_print_typedef initializer.
7870 (auto_language::print_typedef): New member function.
7871 * language.h (language_data): Delete la_print_typedef field.
7872 (language_defn::print_typedef): Declare new member function.
7873 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7874 (default_print_typedef): Delete declaration.
7875 * m2-lang.c (m2_language_data): Delete la_print_typedef
7877 (m2_language::print_typedef): New member function.
7878 * objc-lang.c (objc_language_data): Delete la_print_typedef
7880 * opencl-lang.c (opencl_language_data): Likewise.
7881 * p-lang.c (pascal_language_data): Likewise.
7882 (pascal_language::print_typedef): New member function.
7883 * rust-lang.c (rust_print_typedef): Delete function,
7884 implementation moved to rust_language::print_typedef.
7885 (rust_language): Delete la_print_typedef initializer.
7886 (rust_language::print_typedef): New member function,
7887 implementation from rust_print_typedef.
7888 * typeprint.c (default_print_typedef): Delete.
7890 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7892 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7893 (ada_language::printstr): New member function.
7894 * c-lang.c (c_language_data): Delete la_printstr initializer.
7895 (cplus_language_data): Likewise.
7896 (asm_language_data): Likewise.
7897 (minimal_language_data): Likewise.
7898 * d-lang.c (d_language_data): Likewise.
7899 * f-lang.c (f_printstr): Rename to f_language::printstr.
7900 (f_language_data): Delete la_printstr initializer.
7901 (f_language::printstr): New member function, implementation from
7903 * go-lang.c (go_language_data): Delete la_printstr initializer.
7904 * language.c (language_defn::printstr): Define new member
7906 (unk_lang_printstr): Delete.
7907 (unknown_language_data): Delete la_printstr initializer.
7908 (unknown_language::printstr): New member function.
7909 (auto_language_data): Delete la_printstr initializer.
7910 (auto_language::printstr): New member function.
7911 * language.h (language_data): Delete la_printstr field.
7912 (language_defn::printstr): Declare new member function.
7913 (LA_PRINT_STRING): Update call to printstr.
7914 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7915 (m2_language_data): Delete la_printstr initializer.
7916 (m2_language::printstr): New member function, implementation from
7918 * objc-lang.c (objc_language_data): Delete la_printstr
7920 * opencl-lang.c (opencl_language_data): Likewise.
7921 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7922 (pascal_language_data): Delete la_printstr initializer.
7923 (pascal_language::printstr): New member function, implementation
7924 from pascal_printstr.
7925 * p-lang.h (pascal_printstr): Delete declaration.
7926 * rust-lang.c (rust_printstr): Update header comment.
7927 (rust_language_data): Delete la_printstr initializer.
7928 (rust_language::printstr): New member function.
7930 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7932 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7933 (ada_language::printchar): New member function.
7934 * c-lang.c (c_language_data): Delete la_printchar initializer.
7935 (cplus_language_data): Likewise.
7936 (asm_language_data): Likewise.
7937 (minimal_language_data): Likewise.
7938 * d-lang.c (d_language_data): Likewise.
7939 * f-lang.c (f_printchar): Rename to f_language::printchar.
7940 (f_language_data): Delete la_printchar initializer.
7941 (f_language::printchar): New member function, implementation from
7943 * go-lang.c (go_language_data): Delete la_printchar initializer.
7944 * language.c (unk_lang_printchar): Delete.
7945 (language_defn::printchar): Define new member function.
7946 (unknown_language_data): Delete la_printchar initializer.
7947 (unknown_language::printchar): New member function.
7948 (auto_language_data): Delete la_printchar initializer.
7949 (auto_language::printchar): New member function.
7950 * language.h (language_data): Delete la_printchar field.
7951 (language_defn::printchar): Declare new member function.
7952 (LA_PRINT_CHAR): Update call to printchar.
7953 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7954 (m2_language::printchar): New member function.
7955 * objc-lang.c (objc_language_data): Delete la_printchar
7957 * opencl-lang.c (opencl_language_data): Likewise.
7958 * p-lang.c (pascal_language_data): Delete la_printchar
7960 (pascal_language::printchar): New member function.
7961 * rust-lang.c (rust_printchar): Rename to
7962 rust_language::printchar.
7963 (rust_language_data): Delete la_printchar initializer.
7964 (rust_language::printchar): New member function, implementation
7965 from rust_printchar.
7967 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7969 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7970 (ada_language_data): Delete la_emitchar initializer.
7971 (ada_language::emitchar): New member function, implementation from
7973 * c-lang.c (c_language_data): Delete la_emitchar 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_emit_char): Rename to f_language::emitchar.
7979 (f_language_data): Delete la_emitchar initializer.
7980 (f_language::emitchar): New member function, implementation from
7982 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7983 * language.c (unk_lang_emit_char): Delete.
7984 (language_defn::emitchar): New member function definition.
7985 (unknown_language_data): Delete la_emitchar initializer.
7986 (unknown_language::emitchar): New member function.
7987 (auto_language_data): Delete la_emitchar initializer.
7988 (auto_language::emitchar): New member function.
7989 * language.h (language_data): Delete la_emitchar field.
7990 (language_defn::emitchar): New member field declaration.
7991 (LA_EMIT_CHAR): Update call to emitchar.
7992 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7993 (m2_language_data): Delete la_emitchar initializer.
7994 (m2_language::emitchar): New member function, implementation from
7996 * objc-lang.c (objc_language_data): Delete la_emitchar
7998 * opencl-lang.c (opencl_language_data): Likewise.
7999 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8000 (pascal_language_data): Delete la_emitchar initializer.
8001 (pascal_language::emitchar): New member function, implementation
8002 from pascal_emit_char.
8003 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8004 (rust_language_data): Delete la_emitchar initializer.
8005 (rust_language::emitchar): New member function, implementation
8008 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8010 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8011 (ada_language_data): Delete la_post_parser initializer.
8012 (ada_language::post_parser): New member function.
8013 * c-lang.c (c_language_data): Delete la_post_parser 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_language_data): Likewise.
8019 * go-lang.c (go_language_data): Likewise.
8020 * language.c (unknown_language_data): Likewise.
8021 (auto_language_data): Likewise.
8022 * language.h (language_data): Delete la_post_parser field.
8023 (language_defn::post_parser): New member function.
8024 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8025 * objc-lang.c (objc_language_data): Likewise.
8026 * opencl-lang.c (opencl_language_data): Likewise.
8027 * p-lang.c (pascal_language_data): Likewise.
8028 * parse.c (parse_exp_in_context): Update call to post_parser.
8029 (null_post_parser): Delete definition.
8030 * parser-defs.h (null_post_parser): Delete declaration.
8031 * rust-lang.c (rust_language_data): Delete la_post_parser
8034 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8036 * ada-lang.c (parse): Rename to ada_language::parser.
8037 (ada_language_data): Delete la_parser initializer.
8038 (ada_language::parser): New member function, implementation from
8040 * c-lang.c (c_language_data): Delete la_parser initializer.
8041 (cplus_language_data): Likewise.
8042 (asm_language_data): Likewise.
8043 (minimal_language_data): Likewise.
8044 * d-lang.c (d_language_data): Likewise.
8045 (d_language::parser): New member function.
8046 * f-lang.c (f_language_data): Delete la_parser initializer.
8047 (f_language::parser): New member function.
8048 * go-lang.c (go_language_data): Delete la_parser initializer.
8049 (go_language::parser): New member function.
8050 * language.c (unk_lang_parser): Delete.
8051 (language_defn::parser): Define new member function.
8052 (unknown_language_data): Delete la_parser initializer.
8053 (unknown_language::parser): New member function.
8054 (auto_language_data): Delete la_parser initializer.
8055 (auto_language::parser): New member function.
8056 * language.h (language_data): Delete la_parser field.
8057 (language_defn::parser): Declare new member function.
8058 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8059 (m2_language::parser): New member function.
8060 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8061 * opencl-lang.c (opencl_language_data): Likewise.
8062 * p-lang.c (pascal_language_data): Likewise.
8063 (pascal_language::parser): New member function.
8064 * parse.c (parse_exp_in_context): Update call to parser.
8065 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8066 (rust_language::parser): New member function.
8068 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8070 * top.c (print_gdb_configuration): Print --with-python-libdir
8071 configuration value.
8073 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8075 * NEWS: Mention change to the alias command.
8077 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8079 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8080 (alias_command_completer)
8081 (make_alias_options_def_group): New functions.
8082 (alias_opts, alias_option_defs): New struct and array.
8083 (alias_usage_error): Update usage.
8084 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8085 Use option framework.
8086 (_initialize_cli_cmds): Update alias command help.
8087 Update aliases command help.
8089 Add NULL for new default_args lookup_cmd argument.
8090 (valid_command_p): Rename to validate_aliased_command.
8091 Add NULL for new default_args lookup_cmd argument. Verify that the
8092 aliased_command has no default args.
8093 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8094 (lookup_cmd_1, lookup_cmd): New argument default_args.
8096 Add NULL for new default_args lookup_cmd argument.
8097 (print_help_for_command): Show default args under the layout
8098 alias some_alias = some_aliased_cmd some_alias_default_arg.
8099 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8100 xfree default_args in destructor.
8101 * cli/cli-script.c (process_next_line, do_define_command):
8102 Add NULL for new default_args lookup_cmd argument.
8103 * command.h: Declare new default_args argument in lookup_cmd
8105 * completer.c (complete_line_internal_1):
8106 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8107 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8108 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8110 * infcmd.c (_initialize_infcmd): Likewise.
8111 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8112 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8113 * python/py-param.c (add_setshow_generic): Likewise.
8114 * remote.c (_initialize_remote): Likewise.
8115 * top.c (execute_command): Prepend default_args if command has some.
8117 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8118 * tracepoint.c (validate_actionline, encode_actions_1):
8119 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8121 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8123 * jit.c (jit_read_descriptor): Use bool as the return type.
8124 (jit_breakpoint_re_set_internal): Use bool as the return type.
8125 Invert the return value logic; return true if the jit breakpoint
8126 has been successfully initialized.
8127 (jit_inferior_init): Update the call to
8128 jit_breakpoint_re_set_internal.
8130 2020-06-22 Pedro Alves <palves@redhat.com>
8133 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8134 Use the current inferior instead. Don't return
8135 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8137 * sol-thread.c (sol_thread_target::wait): Don't reference
8139 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8140 (sol_update_thread_list_callback): Use the current inferior's pid
8141 instead of inferior_ptid.
8143 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8145 * procfs.c: Cleanup many comments.
8147 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8148 (AFTER_WATCHFLAG): Replace by value.
8150 (MAIN_PROC_NAME_FORMAT): Inline ...
8151 (create_procinfo): ... here.
8153 (procfs_debug_inferior): Remove SYS_exec handling.
8154 (syscall_is_exec): Likewise.
8155 (procfs_set_exec_trap): Likewise.
8157 (syscall_is_lwp_exit): Inline in callers.
8158 (syscall_is_exit): Likewise.
8159 (syscall_is_exec): Likewise.
8160 (syscall_is_lwp_create): Likewise.
8162 (invalidate_cache): Remove #if 0 code.
8164 (make_signal_thread_runnable): Remove.
8165 (procfs_target::resume): Remove #if 0 code.
8167 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8170 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8172 (procfs_target::create_inferior): ... here.
8174 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8176 * exec.c (validate_exec_file): Ensure the build-id is up to
8177 date by calling reopen_exec_file (that checks file timestamp
8178 to decide to re-read the file).
8180 2020-06-18 Pedro Alves <palves@redhat.com>
8183 * gdbthread.h (delete_thread, delete_thread_silent)
8184 (find_thread_ptid): Update comments.
8185 * thread.c (current_thread_): New global.
8186 (is_current_thread): Move higher, and reimplement.
8187 (inferior_thread): Reimplement.
8188 (set_thread_exited): Use bool. Add assertions.
8189 (add_thread_silent): Simplify thread-reuse handling by always
8190 calling delete_thread.
8191 (delete_thread): Remove intro comment.
8192 (find_thread_ptid): Skip exited threads.
8193 (switch_to_thread_no_regs): Write to current_thread_.
8194 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8195 INFERIOR_PTID. Clear current_thread_.
8197 2020-06-18 Pedro Alves <palves@redhat.com>
8199 * aix-thread.c (pd_update): Use switch_to_thread.
8201 2020-06-18 Pedro Alves <palves@redhat.com>
8203 * ravenscar-thread.c (ravenscar_thread_target): Update.
8204 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8205 (ravenscar_thread_target::add_active_thread): ... this. Don't
8206 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8207 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8209 2020-06-18 Pedro Alves <palves@redhat.com>
8211 * nat/windows-nat.c (current_windows_thread): Remove.
8212 * nat/windows-nat.h (current_windows_thread): Remove.
8213 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8215 (display_selectors): Adjust to fetch the current
8216 windows_thread_info based on inferior_ptid.
8217 (fake_create_process): No longer write to current_windows_thread.
8218 (windows_nat_target::get_windows_debug_event):
8219 Don't set inferior_ptid or current_windows_thread.
8220 (windows_nat_target::wait): Adjust to not rely on
8221 current_windows_thread.
8222 (do_initial_windows_stuff): Now a method of windows_nat_target.
8223 Switch to the last_ptid thread.
8224 (windows_nat_target::attach): Adjust.
8225 (windows_nat_target::detach): Use switch_to_no_thread instead of
8226 writing to inferior_ptid directly.
8227 (windows_nat_target::create_inferior): Adjust.
8229 2020-06-18 Pedro Alves <palves@redhat.com>
8231 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8233 2020-06-18 Pedro Alves <palves@redhat.com>
8235 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8236 after creating it, instead of writing to inferior_ptid. Don't
8237 write to inferior_ptid.
8239 2020-06-18 Pedro Alves <palves@redhat.com>
8241 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8243 2020-06-18 Pedro Alves <palves@redhat.com>
8245 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8246 it, instead of writing to inferior_ptid.
8248 2020-06-18 Pedro Alves <palves@redhat.com>
8250 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8253 2020-06-18 Pedro Alves <palves@redhat.com>
8255 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8256 instead of writing to inferior_ptid directly.
8258 2020-06-18 Pedro Alves <palves@redhat.com>
8260 * corelow.c (core_target::close): Use switch_to_no_thread instead
8261 of writing to inferior_ptid directly.
8262 (add_to_thread_list, core_target_open): Use switch_to_thread
8263 instead of writing to inferior_ptid directly.
8265 2020-06-18 Pedro Alves <palves@redhat.com>
8267 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8269 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8271 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8272 inferior_ptid directly.
8273 (darwin_nat_target::init_thread_list): Switch to thread, instead
8274 of writing to inferior_ptid.
8275 (darwin_nat_target::attach): Don't write to inferior_ptid.
8276 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8278 2020-06-18 Pedro Alves <palves@redhat.com>
8280 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8282 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8283 Instead use switch_to_thread.
8284 (gnu_nat_target::detach): Use switch_to_no_thread
8285 instead of writing to inferior_ptid directly. Used passed-in
8286 inferior instead of looking up the inferior by pid.
8288 2020-06-18 Pedro Alves <palves@redhat.com>
8290 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8293 2020-06-18 Pedro Alves <palves@redhat.com>
8295 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8297 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8299 (nto_procfs_target::detach): Avoid referencing
8300 inferior_ptid. Use switch_to_no_thread instead of writing to
8301 inferior_ptid directly.
8302 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8303 instead of writing to inferior_ptid directly.
8304 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8307 2020-06-18 Pedro Alves <palves@redhat.com>
8309 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8310 after creating it, instead of writing to inferior_ptid.
8311 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8312 to inferior_ptid directly.
8313 (gdbsim_target::wait): Don't write to inferior_ptid.
8315 2020-06-18 Pedro Alves <palves@redhat.com>
8317 * remote.c (remote_target::remote_notice_new_inferior): Use
8318 switch_to_thread instead of writing to inferior_ptid directly.
8319 (remote_target::add_current_inferior_and_thread): Use
8320 switch_to_no_thread instead of writing to inferior_ptid directly.
8321 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8322 and switch_to_thread instead of using set_current_inferior or
8323 writing to inferior_ptid directly.
8325 2020-06-18 Pedro Alves <palves@redhat.com>
8327 * tracectf.c (ctf_target_open): Switch to added thread instead of
8328 writing to inferior_ptid directly.
8329 (ctf_target::close): Use switch_to_no_thread instead of writing to
8330 inferior_ptid directly.
8332 2020-06-18 Pedro Alves <palves@redhat.com>
8334 * tracefile-tfile.c (tfile_target_open): Don't write to
8335 inferior_ptid directly, instead switch to added thread.
8336 (tfile_target::close): Use switch_to_no_thread instead of writing
8337 to inferior_ptid directly.
8339 2020-06-18 Pedro Alves <palves@redhat.com>
8341 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8342 (procfs_target::detach): Use switch_to_no_thread
8343 instead of writing to inferior_ptid directly.
8344 (do_attach): Change return type to void. Switch to the added
8346 (procfs_target::create_inferior): Switch to the added thread.
8347 (procfs_do_thread_registers): Don't write to inferior_ptid.
8349 2020-06-18 Pedro Alves <palves@redhat.com>
8351 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8352 of writing to inferior_ptid.
8353 (scoped_restore_exited_inferior): Delete.
8354 (handle_vfork_child_exec_or_exit): Simplify using
8355 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8356 instead of writing to inferior_ptid.
8357 (THREAD_STOPPED_BY): Delete.
8358 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8359 (thread_stopped_by_hw_breakpoint): Delete.
8360 (save_waitstatus): Use
8361 scoped_restore_current_thread+switch_to_thread, and call
8362 target_stopped_by_watchpoint instead of
8363 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8364 instead of thread_stopped_by_sw_breakpoint, and
8365 target_stopped_by_hw_breakpoint instead of
8366 thread_stopped_by_hw_breakpoint.
8367 (handle_inferior_event)
8368 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8369 inferior_ptid directly, nor
8370 set_current_inferior/set_current_program_space. Use
8371 switch_to_thread / switch_to_inferior_no_thread instead.
8373 2020-06-18 Pedro Alves <palves@redhat.com>
8375 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8376 instead of writing to inferior_ptid.
8378 2020-06-18 Pedro Alves <palves@redhat.com>
8380 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8382 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8383 to the added thread.
8384 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8385 instead of writing to inferior_ptid.
8387 2020-06-18 Pedro Alves <palves@redhat.com>
8389 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8390 (register_to_value_test): Mock a program_space too. Heap-allocate
8391 the address space. Don't write to inferior_ptid. Use
8392 switch_to_thread instead.
8394 2020-06-18 Pedro Alves <palves@redhat.com>
8396 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8398 (find_signalled_thread()): New, factored out from
8399 linux_make_corefile_notes and adjusted to handle exited threads.
8400 (linux_make_corefile_notes): Adjust to use the new
8401 find_signalled_thread.
8403 2020-06-18 Pedro Alves <palves@redhat.com>
8405 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8406 of saving/restoring inferior_ptid.
8408 2020-06-17 Tom Tromey <tom@tromey.com>
8410 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8411 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8413 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8415 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8417 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8420 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8422 * regformats/reg-arm.dat: Remove.
8423 * regformats/reg-bfin.dat: Remove.
8424 * regformats/reg-cris.dat: Remove.
8425 * regformats/reg-crisv32.dat: Remove.
8426 * regformats/reg-m32r.dat: Remove.
8427 * regformats/reg-tilegx.dat: Remove.
8428 * regformats/reg-tilegx32.dat: Remove.
8430 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8432 * features/Makefile (WHICH): Remove arm files.
8433 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8434 * regformats/arm/arm-with-neon.dat: Remove.
8435 * regformats/arm/arm-with-vfpv2.dat: Remove.
8436 * regformats/arm/arm-with-vfpv3.dat: Remove.
8438 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8440 * features/Makefile (XMLTOC): Remove rx.xml.
8442 2020-06-17 Pedro Alves <palves@redhat.com>
8444 * gdbthread.h (thread_control_state) <trap_expected> Update
8447 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8449 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8450 ada_language::lookup_symbol_nonlocal.
8451 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8452 (ada_language::lookup_symbol_nonlocal): New member function,
8453 implementation from ada_lookup_symbol_nonlocal.
8454 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8456 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8458 (cplus_language::lookup_symbol_nonlocal): New member function.
8459 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8460 (minimal_language_data) Likewise.
8461 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8462 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8464 (d_language::lookup_symbol_nonlocal): New member function.
8465 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8467 (f_language::lookup_symbol_nonlocal): New member function.
8468 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8470 * language.c (unknown_language_data): Likewise.
8471 (auto_language_data): Likewise.
8472 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8474 (language_defn::lookup_symbol_nonlocal): New member function.
8475 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8477 * objc-lang.c (objc_language_data): Likewise.
8478 * opencl-lang.c (opencl_language_data): Likewise.
8479 * p-lang.c (pascal_language_data): Likewise.
8480 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8481 rust_language::lookup_symbol_nonlocal.
8482 (rust_language_data): Delete la_lookup_symbol_nonlocal
8484 (rust_language::lookup_symbol_nonlocal): New member function,
8485 implementation from rust_lookup_symbol_nonlocal.
8486 * symtab.c (lookup_symbol_aux): Update call to
8487 lookup_symbol_nonlocal.
8488 (basic_lookup_symbol_nonlocal): Rename to...
8489 (language_defn::lookup_symbol_nonlocal): ...this, and update
8490 header comment. Remove language_defn parameter, and replace with
8492 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8494 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8496 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8498 (ada_language::value_print_inner): New member function.
8499 * c-lang.c (c_language_data): Delete la_value_print_inner
8501 (cplus_language_data): Likewise.
8502 (asm_language_data): Likewise.
8503 (minimal_language_data): Likewise.
8504 * d-lang.c (d_language_data): Likewise.
8505 (d_language::value_print_inner): New member function.
8506 * f-lang.c (f_language_data): Delete la_value_print_inner
8508 (f_language::value_print_inner): New member function.
8509 * f-lang.h (f_value_print_innner): Rename to...
8510 (f_value_print_inner): ...this (note spelling of 'inner').
8511 * f-valprint.c (f_value_print_innner): Rename to...
8512 (f_value_print_inner): ...this (note spelling of 'inner').
8513 * go-lang.c (go_language_data): Delete la_value_print_inner
8515 (go_language::value_print_inner): New member function.
8516 * language.c (language_defn::value_print_inner): Define new member
8518 (unk_lang_value_print_inner): Delete.
8519 (unknown_language_data): Delete la_value_print_inner initializer.
8520 (unknown_language::value_print_inner): New member function.
8521 (auto_language_data): Delete la_value_print_inner initializer.
8522 (auto_language::value_print_inner): New member function.
8523 * language.h (language_data): Delete la_value_print_inner field.
8524 (language_defn::value_print_inner): Delcare new member function.
8525 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8527 (m2_language::value_print_inner): New member function.
8528 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8530 * opencl-lang.c (opencl_language_data): Likewise.
8531 * p-lang.c (pascal_language_data): Likewise.
8532 (pascal_language::value_print_inner): New member function.
8533 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8535 (rust_language::value_print_inner): New member function.
8536 * valprint.c (do_val_print): Update call to value_print_inner.
8538 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8540 * ada-lang.c (ada_language_data): Delete la_value_print
8542 (ada_language::value_print): New member function.
8543 * c-lang.c (c_language_data): Delete la_value_print initializer.
8544 (cplus_language_data): Likewise.
8545 (asm_language_data): Likewise.
8546 (minimal_language_data): Likewise.
8547 * d-lang.c (d_language_data): Likewise.
8548 * f-lang.c (f_language_data): Likewise.
8549 * go-lang.c (go_language_data): Likewise.
8550 * language.c (unk_lang_value_print): Delete.
8551 (language_defn::value_print): Define new member function.
8552 (unknown_language_data): Delete la_value_print initializer.
8553 (unknown_language::value_print): New member function.
8554 (auto_language_data): Delete la_value_print initializer.
8555 (auto_language::value_print): New member function.
8556 * language.h (language_data): Delete la_value_print field.
8557 (language_defn::value_print): Declare new member function.
8558 (LA_VALUE_PRINT): Update call to value_print.
8559 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8560 * objc-lang.c (objc_language_data): Likewise.
8561 * opencl-lang.c (opencl_language_data): Likewise.
8562 * p-lang.c (pascal_language_data): Likewise.
8563 (pascal_language::value_print): New member function.
8564 * rust-lang.c (rust_language_data): Delete la_value_print
8567 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8569 * ada-lang.c (ada_watch_location_expression): Rename to
8570 ada_language::watch_location_expression.
8571 (ada_language_data): Delete la_watch_location_expression
8573 (ada_language::watch_location_expression): New member function,
8574 implementation from ada_watch_location_expression.
8575 * breakpoint.c (watch_command_1): Update call to
8576 watch_location_expression.
8577 * c-lang.c (c_watch_location_expression): Rename to
8578 language_defn::watch_location_expression.
8579 (c_language_data): Delete la_watch_location_expression
8581 (cplus_language_data): Likewise.
8582 (asm_language_data): Likewise.
8583 (minimal_language_data): Likewise.
8584 * c-lang.h (c_watch_location_expression): Delete declaration.
8585 * d-lang.c (d_language_data): Delete la_watch_location_expression
8587 * f-lang.c (f_language_data): Likewise.
8588 * go-lang.c (go_language_data): Likewise.
8589 * language.c (language_defn::watch_location_expression): Member
8590 function implementation from c_watch_location_expression.
8591 (unknown_language_data): Delete la_watch_location_expression
8593 (auto_language_data): Likewise.
8594 * language.h (language_data): Delete la_watch_location_expression
8596 (language_defn::watch_location_expression): Declare new member
8598 * m2-lang.c (m2_language_data): Delete
8599 la_watch_location_expression initializer.
8600 * objc-lang.c (objc_language_data): Likewise.
8601 * opencl-lang.c (opencl_language_data): Likewise.
8602 * p-lang.c (pascal_language_data): Likewise.
8603 * rust-lang.c (rust_watch_location_expression): Rename to
8604 rust_language::watch_location_expression.
8605 (rust_language_data): Delete la_watch_location_expression
8607 (rust_language::watch_location_expression): New member function,
8608 implementation from rust_watch_location_expression.
8610 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8612 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8613 ada_language::collect_symbol_completion_matches.
8614 (ada_language_data): Delete la_collect_symbol_completion_matches
8616 (ada_language::collect_symbol_completion_matches): New member
8617 function, implementation from
8618 ada_collect_symbol_completion_matches.
8619 * c-lang.c (c_language_data): Delete
8620 la_collect_symbol_completion_matches initializer.
8621 (cplus_language_data): Likewise.
8622 (asm_language_data): Likewise.
8623 (minimal_language_data): Likewise.
8624 * d-lang.c (d_language_data): Likewise.
8625 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8626 f_language::collect_symbol_completion_matches.
8627 (f_language_data): Delete la_collect_symbol_completion_matches
8629 (f_language::collect_symbol_completion_matches) New member
8630 function, implementation from f_collect_symbol_completion_matches.
8631 * go-lang.c (go_language_data): Delete
8632 la_collect_symbol_completion_matches initializer.
8633 * language.c (unknown_language_data): Likewise.
8634 (auto_language_data): Likewise.
8635 * language.h (language_data): Delete
8636 la_collect_symbol_completion_matches field.
8637 (language_defn::collect_symbol_completion_matches): New member
8639 * m2-lang.c (m2_language_data): Delete
8640 la_collect_symbol_completion_matches initializer.
8641 * objc-lang.c (objc_language_data): Likewise.
8642 * opencl-lang.c (opencl_language_data): Likewise.
8643 * p-lang.c (pascal_language_data): Likewise.
8644 * rust-lang.c (rust_language_data): Likewise.
8645 * symtab.c (default_collect_symbol_completion_matches): Delete.
8646 (collect_symbol_completion_matches): Update call to
8647 collect_symbol_completion_matches.
8648 (collect_symbol_completion_matches_type): Likewise.
8649 * symtab.h (default_collect_symbol_completion_matches): Delete
8652 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8654 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8655 (ada_language_data): Delete la_word_break_characters initializer.
8656 (ada_language::word_break_characters): New member function.
8657 * c-lang.c (c_language_data): Delete la_word_break_characters
8659 (cplus_language_data): Likewise.
8660 (asm_language_data): Likewise.
8661 (minimal_language_data): Likewise.
8662 * completer.c: Update global comment.
8663 (advance_to_expression_complete_word_point): Update call to
8664 word_break_characters.
8665 (complete_files_symbols): Likewise.
8666 (complete_line_internal_1): Likewise.
8667 (default_completer_handle_brkchars): Likewise.
8668 (skip_quoted_chars): Likewise.
8669 * d-lang.c (d_language_data): Delete la_word_break_characters
8671 * f-lang.c (f_word_break_characters): Delete.
8672 (f_language_data): Delete la_word_break_characters initializer.
8673 (f_language::word_break_characters): New member function.
8674 * go-lang.c (go_language_data): Delete la_word_break_characters
8676 * language.c (unknown_language_data): Likewise.
8677 (auto_language_data): Likewise.
8678 * language.h (default_word_break_characters): Move declaration to
8679 earlier in the file.
8680 (language_data): Delete la_word_break_characters field.
8681 (language_defn::word_break_characters): New member function.
8682 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8684 * objc-lang.c (objc_language_data): Likewise.
8685 * opencl-lang.c (opencl_language_data): Likewise.
8686 * p-lang.c (pascal_language_data): Likewise.
8687 * rust-lang.c (rust_language_data): Likewise.
8689 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8691 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8692 (ada_language_data): Delete la_get_symbol_name_matcher
8694 (language_defn::get_symbol_name_matcher_inner): New member
8696 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8698 (cplus_language_data): Likewise.
8699 (cplus_language::get_symbol_name_matcher_inner): New member
8701 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8702 (minimal_language_data): Likewise.
8703 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8704 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8706 * dictionary.c (iter_match_first_hashed): Update call to
8707 get_symbol_name_matcher.
8708 (iter_match_next_hashed): Likewise.
8709 (iter_match_next_linear): Likewise.
8710 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8711 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8713 (f_language::get_symbol_name_matcher_inner): New member function.
8714 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8716 * language.c (default_symbol_name_matcher): Update header comment,
8718 (language_defn::get_symbol_name_matcher): New definition.
8719 (language_defn::get_symbol_name_matcher_inner): Likewise.
8720 (get_symbol_name_matcher): Delete.
8721 (unknown_language_data): Delete la_get_symbol_name_matcher
8723 (auto_language_data): Likewise.
8724 * language.h (language_data): Delete la_get_symbol_name_matcher
8726 (language_defn::get_symbol_name_matcher): New member function.
8727 (language_defn::get_symbol_name_matcher_inner): Likewise.
8728 (default_symbol_name_matcher): Delete declaration.
8729 * linespec.c (find_methods): Update call to
8730 get_symbol_name_matcher.
8731 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8733 * minsyms.c (lookup_minimal_symbol): Update call to
8734 get_symbol_name_matcher.
8735 (iterate_over_minimal_symbols): Likewise.
8736 * objc-lang.c (objc_language_data): Delete
8737 la_get_symbol_name_matcher initializer.
8738 * opencl-lang.c (opencl_language_data): Likewise.
8739 * p-lang.c (pascal_language_data): Likewise.
8740 * psymtab.c (psymbol_name_matches): Update call to
8741 get_symbol_name_matcher.
8742 * rust-lang.c (rust_language_data): Delete
8743 la_get_symbol_name_matcher initializer.
8744 * symtab.c (symbol_matches_search_name): Update call to
8745 get_symbol_name_matcher.
8746 (compare_symbol_name): Likewise.
8748 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8750 * ada-lang.c (ada_language_data): Delete la_compute_program
8752 * c-lang.c (c_language_data): Likewise.
8753 (c_language::compute_program): New member function.
8754 (cplus_language_data): Delete la_compute_program initializer.
8755 (cplus_language::compute_program): New member function.
8756 (asm_language_data): Delete la_compute_program initializer.
8757 (minimal_language_data): Likewise.
8758 * c-lang.h (c_compute_program): Update comment.
8759 (cplus_compute_program): Likewise.
8760 * compile/compile-c-support.c (c_compute_program): Likewise.
8761 (cplus_compute_program): Likewise.
8762 * compile/compile.c (compile_to_object): Update call to
8764 * d-lang.c (d_language_data): Delete la_compute_program
8766 * f-lang.c (f_language_data): Likewise.
8767 * go-lang.c (go_language_data): Likewise.
8768 * language.c (unknown_language_data): Likewise.
8769 (auto_language_data): Likewise.
8770 * language.h (language_data): Delete la_compute_program field.
8771 (language_defn::compute_program): New member function.
8772 * m2-lang.c (m2_language_data): Delete la_compute_program
8774 * objc-lang.c (objc_language_data): Likewise.
8775 * opencl-lang.c (opencl_language_data): Likewise.
8776 * p-lang.c (pascal_language_data): Likewise.
8777 * rust-lang.c (rust_language_data): Likewise.
8779 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8781 * ada-lang.c (ada_language_data) Delete
8782 la_class_name_from_physname initializer.
8783 * c-lang.c (c_language_data): Likewise.
8784 (cplus_language_data): Likewise.
8785 (cplus_language::class_name_from_physname): New member function.
8786 (asm_language_data): Delete la_class_name_from_physname
8788 (minimal_language_data): Likewise.
8789 * d-lang.c (d_language_data): Likewise.
8790 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8791 method on language_defn class.
8792 (guess_full_die_structure_name): Likewise.
8793 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8795 * go-lang.c (go_language_data): Likewise.
8796 * language.c (language_class_name_from_physname): Delete.
8797 (unk_lang_class_name): Delete.
8798 (unknown_language_data): Delete la_class_name_from_physname
8800 (auto_language_data): Likewise.
8801 * language.h (language_data): Delete la_class_name_from_physname
8803 (language_defn::class_name_from_physname): New function.
8804 (language_class_name_from_physname): Delete declaration.
8805 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8807 * objc-lang.c (objc_language_data): Likewise.
8808 * opencl-lang.c (opencl_language_data): Likewise.
8809 * p-lang.c (pascal_language_data): Likewise.
8810 * rust-lang.c (rust_language_data): Likewise.
8812 2020-06-16 Tom Tromey <tom@tromey.com>
8814 * tui/tui-data.h (STATUS_NAME): New macro.
8815 * tui/tui-layout.c (tui_remove_some_windows)
8816 (initialize_known_windows, tui_register_window)
8817 (tui_layout_split::remove_windows, initialize_layouts)
8818 (tui_new_layout_command): Don't use hard-coded window names.
8820 2020-06-16 Tom Tromey <tom@tromey.com>
8823 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8824 tui_initialize_readline. Only run once. Call rl_initialize.
8825 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8826 tui_initialize_readline.
8827 * tui/tui-io.c (tui_setup_io): Call
8828 tui_ensure_readline_initialized.
8829 * tui/tui-interp.c (tui_interp::init): Update.
8831 2020-06-16 Tom Tromey <tom@tromey.com>
8833 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8834 Also preserve the status window.
8836 2020-06-16 Tom Tromey <tom@tromey.com>
8838 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8839 where m_window==nullptr.
8841 2020-06-15 Tom Tromey <tromey@adacore.com>
8843 * windows-nat.c (windows_nat::handle_output_debug_string):
8845 (windows_nat::handle_ms_vc_exception): Update.
8846 * target.h (target_read_string): Change API.
8847 * target.c (target_read_string): Change API.
8848 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8850 * solib-frv.c (frv_current_sos): Update.
8851 * solib-dsbt.c (dsbt_current_sos): Update.
8852 * solib-darwin.c (darwin_current_sos): Update.
8853 * linux-thread-db.c (inferior_has_bug): Update.
8854 * expprint.c (print_subexp_standard): Update.
8855 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8856 (ada_exception_message_1): Update.
8858 2020-06-15 Tom Tromey <tromey@adacore.com>
8860 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8862 2020-06-15 Tom Tromey <tromey@adacore.com>
8864 * valprint.c (read_string): Update comment.
8865 * target.c (MIN): Remove.
8866 (target_read_string): Rewrite.
8868 2020-06-15 Tom Tromey <tromey@adacore.com>
8870 * corefile.c (read_memory_string): Remove.
8871 * ada-valprint.c (ada_value_print_ptr): Update.
8872 * ada-lang.h (ada_tag_name): Change return type.
8873 * ada-lang.c (type_from_tag): Update.
8874 (ada_tag_name_from_tsd): Change return type. Use
8876 (ada_tag_name): Likewise.
8877 * gdbcore.h (read_memory_string): Don't declare.
8879 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8881 * symtab.c (rbreak_command): Ignore Windows drive colon.
8883 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8885 * NEWS: Mention removed GDBserver host support.
8887 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8889 * features/riscv/rebuild-csr-xml.sh: Updated.
8891 2020-06-11 Tom Tromey <tom@tromey.com>
8894 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8896 2020-06-09 Jonny Grant <jg@jguk.org>
8897 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8899 * main.c (captured_main_1): Don't print new line after help.
8900 (print_gdb_help): add mailing list and IRC channel information
8901 to --help. Add new lines between items in the footer. Remove
8902 quotes around bug url.
8904 2020-06-11 Keith Seitz <keiths@redhat.com>
8907 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8908 Resolve typedefs for type length calculations.
8910 2020-06-10 Tom de Vries <tdevries@suse.de>
8913 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8914 (write_psymbols): Enable .gdb_index for ada.
8915 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8918 2020-06-10 Tom de Vries <tdevries@suse.de>
8920 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8921 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8922 namei" instead of "const char *name" argument.
8923 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8924 dw2_symtab_iter_init.
8926 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8928 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8929 to use type::field and field::type instead.
8931 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8933 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8934 to use field::type instead.
8936 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8938 * gdbtypes.h (struct field) <type, set_type>: New methods.
8939 Rename `type` field to...
8940 <m_type>: ... this. Change references throughout to use type or
8942 (FIELD_TYPE): Use field::type. Change call sites that modify
8943 the field's type to use field::set_type instead.
8945 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8947 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8948 to use type::index_type instead.
8950 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8952 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8954 (TYPE_INDEX_TYPE): Use type::index_type.
8955 * gdbtypes.c (create_array_type_with_stride): Likewise.
8957 2020-06-07 Tom Tromey <tom@tromey.com>
8959 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8961 (generic_value_print): Update.
8963 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8965 Revert commit 982a38f60b0.
8966 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8968 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8970 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8971 avoid use after free.
8973 2020-06-05 Tom de Vries <tdevries@suse.de>
8977 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8979 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8981 (dwarf2_read_debug_names): Likewise.
8982 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8983 object when re-using a per_bfd object with an index.
8985 2020-06-03 Tom de Vries <tdevries@suse.de>
8988 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8990 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8993 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8995 * ada-lang.c (ada_language_data): Delete skip_trampoline
8997 * c-lang.c (c_language_data): Likewise.
8998 (cplus_language_data): Likewise.
8999 (cplus_language::skip_trampoline): New member function.
9000 (asm_language_data): Delete skip_trampoline initializer.
9001 (minimal_language_data): Likewise.
9002 * d-lang.c (d_language_data): Likewise.
9003 * f-lang.c (f_language_data): Likewise.
9004 * go-lang.c (go_language_data): Likewise.
9005 * language.c (unk_lang_trampoline): Delete function.
9006 (skip_language_trampoline): Update.
9007 (unknown_language_data): Delete skip_trampoline initializer.
9008 (auto_language_data): Likewise.
9009 * language.h (language_data): Delete skip_trampoline field.
9010 (language_defn::skip_trampoline): New function.
9011 * m2-lang.c (m2_language_data): Delete skip_trampoline
9013 * objc-lang.c (objc_skip_trampoline): Delete function, move
9014 implementation to objc_language::skip_trampoline.
9015 (objc_language_data): Delete skip_trampoline initializer.
9016 (objc_language::skip_trampoline): New member function with
9017 implementation from objc_skip_trampoline.
9018 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9020 * p-lang.c (pascal_language_data): Likewise.
9021 * rust-lang.c (rust_language_data): Likewise.
9023 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9025 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9026 (ada_language::demangle): New member function.
9027 * c-lang.c (c_language_data): Delete la_demangle initializer.
9028 (cplus_language_data): Delete la_demangle initializer.
9029 (cplus_language::demangle): New member function.
9030 (asm_language_data): Delete la_demangle initializer.
9031 (minimal_language_data): Delete la_demangle initializer.
9032 * d-lang.c (d_language_data): Delete la_demangle initializer.
9033 (d_language::demangle): New member function.
9034 * f-lang.c (f_language_data): Delete la_demangle initializer.
9035 (f_language::demangle): New member function.
9036 * go-lang.c (go_language_data): Delete la_demangle initializer.
9037 (go_language::demangle): New member function.
9038 * language.c (language_demangle): Update.
9039 (unk_lang_demangle): Delete.
9040 (unknown_language_data): Delete la_demangle initializer.
9041 (unknown_language::demangle): New member function.
9042 (auto_language_data): Delete la_demangle initializer.
9043 (auto_language::demangle): New member function.
9044 * language.h (language_data): Delete la_demangle field.
9045 (language_defn::demangle): New function.
9046 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9047 * objc-lang.c (objc_language_data): Delete la_demangle
9049 (objc_language::demangle): New member function.
9050 * opencl-lang.c (opencl_language_data): Delete la_demangle
9052 * p-lang.c (pascal_language_data): Likewise.
9053 * rust-lang.c (rust_language_data): Likewise.
9054 (rust_language::demangle): New member function.
9056 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9058 * ada-lang.c (ada_language_data): Delete la_print_type
9060 (ada_language::print_type): New member function.
9061 * c-lang.c (c_language_data): Delete la_print_type initializer.
9062 (c_language::print_type): New member function.
9063 (cplus_language_data): Delete la_print_type initializer.
9064 (cplus_language::print_type): New member function.
9065 (asm_language_data): Delete la_print_type initializer.
9066 (asm_language::print_type): New member function.
9067 (minimal_language_data): Delete la_print_type initializer.
9068 (minimal_language::print_type): New member function.
9069 * d-lang.c (d_language_data): Delete la_print_type initializer.
9070 (d_language::print_type): New member function.
9071 * f-lang.c (f_language_data): Delete la_print_type initializer.
9072 (f_language::print_type): New member function.
9073 * go-lang.c (go_language_data): Delete la_print_type initializer.
9074 (go_language::print_type): New member function.
9075 * language.c (unk_lang_print_type): Delete.
9076 (unknown_language_data): Delete la_print_type initializer.
9077 (unknown_language::print_type): New member function.
9078 (auto_language_data): Delete la_print_type initializer.
9079 (auto_language::print_type): New member function.
9080 * language.h (language_data): Delete la_print_type field.
9081 (language_defn::print_type): New function.
9082 (LA_PRINT_TYPE): Update.
9083 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9084 (m2_language::print_type): New member function.
9085 * objc-lang.c (objc_language_data): Delete la_print_type
9087 (objc_language::print_type): New member function.
9088 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9089 to opencl_language::print_type.
9090 (opencl_language_data): Delete la_print_type initializer.
9091 (opencl_language::print_type): New member function, implementation
9092 from opencl_print_type.
9093 * p-lang.c (pascal_language_data): Delete la_print_type
9095 (pascal_language::print_type): New member function.
9096 * rust-lang.c (rust_print_type): Delete, implementation moved to
9097 rust_language::print_type.
9098 (rust_language_data): Delete la_print_type initializer.
9099 (rust_language::print_type): New member function, implementation
9100 from rust_print_type.
9102 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9104 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9105 implementation moves to...
9106 (ada_language::sniff_from_mangled_name): ...here. Update return
9108 (ada_language_data): Delete la_sniff_from_mangled_name
9110 * c-lang.c (c_language_data): Likewise.
9111 (cplus_language_data): Likewise.
9112 (cplus_language::sniff_from_mangled_name): New member function,
9113 implementation taken from gdb_sniff_from_mangled_name.
9114 (asm_language_data): Delete la_sniff_from_mangled_name
9116 (minimal_language_data): Likewise.
9117 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9118 implementation moves to cplus_language::sniff_from_mangled_name.
9119 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9120 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9122 (d_language::sniff_from_mangled_name): ...here.
9123 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9124 * f-lang.c (f_language_data): Likewise.
9125 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9127 (go_language::sniff_from_mangled_name): ...here.
9128 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9129 * language.c (language_sniff_from_mangled_name): Delete.
9130 (unknown_language_data): Delete la_sniff_from_mangled_name
9132 (auto_language_data): Likewise.
9133 * language.h (language_data): Delete la_sniff_from_mangled_name
9135 (language_defn::sniff_from_mangled_name): New function.
9136 (language_sniff_from_mangled_name): Delete declaration.
9137 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9139 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9140 implementation moves to...
9141 (objc_language::sniff_from_mangled_name): ...here.
9142 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9143 * opencl-lang.c (opencl_language_data): Likewise.
9144 * p-lang.c (pascal_language_data): Likewise.
9145 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9146 implementation moves to...
9147 (rust_language::sniff_from_mangled_name): ...here.
9148 (rust_language_data): Delete la_sniff_from_mangled_name
9150 * symtab.c (symbol_find_demangled_name): Call
9151 sniff_from_mangled_name member function.
9153 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9155 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9157 * c-lang.c (c_language_data): Likewise.
9158 (cplus_language_data): Likewise.
9159 (cplus_language::search_name_hash): New member function.
9160 (asm_language_data): Delete la_search_name_hash initializer.
9161 (minimal_language_data): Likewise.
9162 * d-lang.c (d_language_data): Likewise.
9163 * dictionary.c (default_search_name_hash): Rename to...
9164 (language_defn::search_name_hash): ...this.
9165 * f-lang.c (f_language_data): Likewise.
9166 (f_language::search_name_hash): New member function.
9167 * go-lang.c (go_language_data): Delete la_search_name_hash
9169 * language.c (unknown_language_data): Likewise.
9170 (auto_language_data): Likewise.
9171 * language.h (struct language_data): Delete la_search_name_hash
9173 (language_defn::search_name_hash): Declare new member function.
9174 (default_search_name_hash): Delete declaration.
9175 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9177 * objc-lang.c (objc_language_data): Likewise.
9178 * opencl-lang.c (opencl_language_data): Likewise.
9179 * p-lang.c (pascal_language_data): Likewise.
9180 * rust-lang.c (rust_language_data): Likewise.
9181 * symtab.c (search_name_hash): Update call.
9183 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9185 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9187 * c-lang.c (class compile_instance): Declare.
9188 (c_language_data): Delete la_get_compile_instance initializer.
9189 (c_language::get_compile_instance): New member function.
9190 (cplus_language_data): Delete la_get_compile_instance initializer.
9191 (cplus_language::get_compile_instance): New member function.
9192 (asm_language_data): Delete la_get_compile_instance initializer.
9193 (minimal_language_data): Likewise.
9194 * c-lang.h (c_get_compile_context): Update comment.
9195 (cplus_get_compile_context): Update comment.
9196 * compile/compile.c (compile_to_object): Update calls, don't rely
9197 on function pointer being NULL.
9198 * d-lang.c (d_language_data): Delete la_get_compile_instance
9200 * f-lang.c (f_language_data): Likewise.
9201 * go-lang.c (go_language_data): Likewise.
9202 * language.c (unknown_language_data): Likewise.
9203 (auto_language_data): Likewise.
9204 * language.h (language_data): Delete la_get_compile_instance field.
9205 (language_defn::get_compile_instance): New member function.
9206 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9208 * objc-lang.c (objc_language_data): Likewise.
9209 * opencl-lang.c (opencl_language_data): Likewise.
9210 * p-lang.c (pascal_language_data): Likewise.
9211 * rust-lang.c (rust_language_data): Likewise.
9213 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9215 * ada-lang.c (ada_add_all_symbols): Update comment.
9216 (ada_iterate_over_symbols): Delete, move implementation to...
9217 (ada_language::iterate_over_symbols): ...here, a new member
9218 function, rewrite to use range based for loop.
9219 (ada_language_data): Delete la_iterate_over_symbols initializer.
9220 * c-lang.c (c_language_data): Likewise.
9221 (cplus_language_data): Likewise.
9222 (asm_language_data): Likewise.
9223 (minimal_language_data): Likewise.
9224 * d-lang.c (d_language_data): Likewise.
9225 * f-lang.c (f_language_data): Likewise.
9226 * go-lang.c (go_language_data): Likewise.
9227 * language.c (unknown_language_data): Likewise.
9228 (auto_language_data): Likewise.
9229 * language.h (language_data): Delete la_iterate_over_symbols field.
9230 (language_defn::iterate_over_symbols): New member function.
9231 (LA_ITERATE_OVER_SYMBOLS): Update.
9232 * linespec.c (iterate_over_all_matching_symtabs): Update.
9233 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9235 * objc-lang.c (objc_language_data): Likewise.
9236 * opencl-lang.c (opencl_language_data): Likewise.
9237 * p-lang.c (pascal_language_data): Likewise.
9238 * rust-lang.c (rust_language_data): Likewise.
9240 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9242 * ada-lang.c (ada_language_data): Delete
9243 la_lookup_transparent_type initializer.
9244 * c-lang.c (c_language_data): Likewise.
9245 (cplus_language_data): Likewise.
9246 (cplus_language::lookup_transparent_type): New member function.
9247 (asm_language_data): Delete la_lookup_transparent_type
9249 (minimal_language_data): Likewise.
9250 * d-lang.c (d_language_data): Likewise.
9251 * f-lang.c (f_language_data): Likewise.
9252 * go-lang.c (go_language_data): Likewise.
9253 * language.c (unknown_language_data): Likewise.
9254 (auto_language_data): Likewise.
9255 * language.h (struct language_data): Delete
9256 la_lookup_transparent_type field.
9257 (language_defn::lookup_transparent_type): New member function.
9258 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9260 * objc-lang.c (objc_language_data): Likewise.
9261 * opencl-lang.c (opencl_language_data): Likewise.
9262 * p-lang.c (pascal_language_data): Likewise.
9263 * rust-lang.c (rust_language_data): Likewise.
9264 * symtab.c (symbol_matches_domain): Update call.
9266 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9268 * ada-lang.c (ada_language_arch_info): Delete function, move
9269 implementation to...
9270 (ada_language::language_arch_info): ...here, a new member
9272 (ada_language_data): Delete la_language_arch_info.
9273 * c-lang.c (c_language_data): Likewise.
9274 (c_language::language_arch_info): New member function.
9275 (cplus_language_arch_info): Delete function, move
9276 implementation to...
9277 (cplus_language::language_arch_info): ...here, a new member
9279 (cplus_language_data): Delete la_language_arch_info.
9280 (asm_language_data): Likewise.
9281 (asm_language::language_arch_info): New member function.
9282 (minimal_language_data): Delete la_language_arch_info.
9283 (minimal_language::language_arch_info): New member function.
9284 * d-lang.c (d_language_arch_info): Delete function, move
9285 implementation to...
9286 (d_language::language_arch_info): ...here, a new member
9288 (d_language_data): Delete la_language_arch_info.
9289 * f-lang.c (f_language_arch_info): Delete function, move
9290 implementation to...
9291 (f_language::language_arch_info): ...here, a new member
9293 (f_language_data): Delete la_language_arch_info.
9294 * go-lang.c (go_language_arch_info): Delete function, move
9295 implementation to...
9296 (go_language::language_arch_info): ...here, a new member
9298 (go_language_data): Delete la_language_arch_info.
9299 * language.c (unknown_language_data): Likewise.
9300 (unknown_language::language_arch_info): New member function.
9301 (auto_language_data): Delete la_language_arch_info.
9302 (auto_language::language_arch_info): New member function.
9303 (language_gdbarch_post_init): Update call to
9304 la_language_arch_info.
9305 * language.h (language_data): Delete la_language_arch_info
9307 (language_defn::language_arch_info): New function.
9308 * m2-lang.c (m2_language_arch_info): Delete function, move
9309 implementation to...
9310 (m2_language::language_arch_info): ...here, a new member
9312 (m2_language_data): Delete la_language_arch_info.
9313 * objc-lang.c (objc_language_arch_info): Delete function, move
9314 implementation to...
9315 (objc_language::language_arch_info): ...here, a new member
9317 (objc_language_data): Delete la_language_arch_info.
9318 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9319 implementation to...
9320 (opencl_language::language_arch_info): ...here, a new member
9322 (opencl_language_data): Delete la_language_arch_info.
9323 * p-lang.c (pascal_language_arch_info): Delete function, move
9324 implementation to...
9325 (pascal_language::language_arch_info): ...here, a new member
9327 (pascal_language_data): Delete la_language_arch_info.
9328 * rust-lang.c (rust_language_arch_info): Delete function, move
9329 implementation to...
9330 (rust_language::language_arch_info): ...here, a new member
9332 (rust_language_data): Delete la_language_arch_info.
9334 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9336 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9338 * c-lang.c (c_language_data): Likewise.
9339 (cplus_language_data): Likewise.
9340 (cplus_language::pass_by_reference_info): New method.
9341 (asm_language_data): Delete la_pass_by_reference initializer.
9342 (minimal_language_data): Likewise.
9343 * cp-abi.c (cp_pass_by_reference): Remove use of
9344 default_pass_by_reference.
9345 * d-lang.c (d_language_data): Likewise.
9346 * f-lang.c (f_language_data): Likewise.
9347 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9348 default_pass_by_reference.
9349 * go-lang.c (go_language_data): Likewise.
9350 * language.c (language_pass_by_reference): Update.
9351 (default_pass_by_reference): Delete.
9352 (unknown_language_data): Delete la_pass_by_reference
9354 (auto_language_data): Likewise.
9355 * language.h (struct language_data): Delete la_pass_by_reference
9357 (language_defn::pass_by_reference_info): New member function.
9358 (default_pass_by_reference): Delete declaration.
9359 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9361 * objc-lang.c (objc_language_data): Likewise.
9362 * opencl-lang.c (opencl_language_data): Likewise.
9363 * p-lang.c (pascal_language_data): Likewise.
9364 * rust-lang.c (rust_language_data): Likewise.
9366 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9368 * ada-lang.c (ada_read_var_value): Delete function, move
9369 implementation to...
9370 (ada_language::read_var_value): ...here.
9371 (ada_language_data): Delete la_read_var_value initializer.
9372 * c-lang.c (c_language_data): Likewise.
9373 (cplus_language_data): Likewise.
9374 (minimal_language_data): Likewise.
9375 * d-lang.c (d_language_data): Likewise.
9376 * f-lang.c (f_language_data): Likewise.
9377 * findvar.c (default_read_var_value): Rename to...
9378 (language_defn::read_var_value): ...this.
9379 * findvar.c (read_var_value): Update header comment, and change to
9380 call member function instead of function pointer.
9381 * go-lang.c (go_language_data): Likewise.
9382 * language.c (unknown_language_data): Delete la_read_var_value
9384 (auto_language_data): Likewise.
9385 * language.h (struct language_data): Delete la_read_var_value
9387 (language_defn::read_var_value): New member function.
9388 (default_read_var_value): Delete declaration.
9389 * m2-lang.c (m2_language_data): Delete la_read_var_value
9391 * objc-lang.c (objc_language_data): Likewise.
9392 * opencl-lang.c (opencl_language_data): Likewise.
9393 * p-lang.c (pascal_language_data): Likewise.
9394 * rust-lang.c (rust_language_data): Likewise.
9395 * value.h (default_read_var_value): Delete declaration.
9397 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9399 * ada-lang.c (ada_print_array_index): Delete function, move
9400 implementation to...
9401 (ada_language::print_array_index): ...here.
9402 (ada_language_data): Delete la_print_array_index initializer.
9403 * c-lang.c (c_language_data): Likewise.
9404 (cplus_language_data): Likewise.
9405 (minimal_language_data): Likewise.
9406 * d-lang.c (d_language_data): Likewise.
9407 * f-lang.c (f_language_data): Likewise.
9408 * go-lang.c (go_language_data): Likewise.
9409 * language.c (default_print_array_index): Delete function, move
9410 implementation to...
9411 (language_defn::print_array_index): ...here.
9412 (unknown_language_data): Delete la_print_array_index initializer.
9413 (auto_language_data): Likewise.
9414 * language.h (struct language_data): Delete la_print_array_index
9416 (language_defn::print_array_index): New member function.
9417 (LA_PRINT_ARRAY_INDEX): Update.
9418 (default_print_array_index): Delete declaration.
9419 * m2-lang.c (m2_language_data): Delete la_print_array_index
9421 * objc-lang.c (objc_language_data): Likewise.
9422 * opencl-lang.c (opencl_language_data): Likewise.
9423 * p-lang.c (pascal_language_data): Likewise.
9424 * rust-lang.c (rust_language_data): Likewise.
9426 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9428 * gdb/ada-lang.c (ada_language_defn): Convert to...
9429 (ada_language_data): ...this.
9430 (class ada_language): New class.
9431 (ada_language_defn): New static global.
9432 * gdb/c-lang.c (c_language_defn): Convert to...
9433 (c_language_data): ...this.
9434 (class c_language): New class.
9435 (c_language_defn): New static global.
9436 (cplus_language_defn): Convert to...
9437 (cplus_language_data): ...this.
9438 (class cplus_language): New class.
9439 (cplus_language_defn): New static global.
9440 (asm_language_defn): Convert to...
9441 (asm_language_data): ...this.
9442 (class asm_language): New class.
9443 (asm_language_defn): New static global.
9444 (minimal_language_defn): Convert to...
9445 (minimal_language_data): ...this.
9446 (class minimal_language): New class.
9447 (minimal_language_defn): New static global.
9448 * gdb/d-lang.c (d_language_defn): Convert to...
9449 (d_language_data): ...this.
9450 (class d_language): New class.
9451 (d_language_defn): New static global.
9452 * gdb/f-lang.c (f_language_defn): Convert to...
9453 (f_language_data): ...this.
9454 (class f_language): New class.
9455 (f_language_defn): New static global.
9456 * gdb/go-lang.c (go_language_defn): Convert to...
9457 (go_language_data): ...this.
9458 (class go_language): New class.
9459 (go_language_defn): New static global.
9460 * gdb/language.c (unknown_language_defn): Remove declaration.
9461 (current_language): Initialize to nullptr, real initialization is
9462 moved to _initialize_language.
9463 (languages): Delete global.
9464 (language_defn::languages): Define.
9465 (set_language_command): Use language_defn::languages.
9466 (set_language): Likewise.
9467 (range_error): Likewise.
9468 (language_enum): Likewise.
9469 (language_def): Likewise.
9470 (add_set_language_command): Use language_def::languages for the
9471 language list, and language_def to lookup language pointers.
9472 (skip_language_trampoline): Use language_defn::languages.
9473 (unknown_language_defn): Convert to...
9474 (unknown_language_data): ...this.
9475 (class unknown_language): New class.
9476 (unknown_language_defn): New static global.
9477 (auto_language_defn): Convert to...
9478 (auto_language_data): ...this.
9479 (class auto_language): New class.
9480 (auto_language_defn): New static global.
9481 (language_gdbarch_post_init): Use language_defn::languages.
9482 (_initialize_language): Initialize current_language.
9483 * gdb/language.h (struct language_defn): Rename to...
9484 (struct language_data): ...this.
9485 (struct language_defn): New.
9486 (auto_language_defn): Delete.
9487 (unknown_language_defn): Delete.
9488 (minimal_language_defn): Delete.
9489 (ada_language_defn): Delete.
9490 (asm_language_defn): Delete.
9491 (c_language_defn): Delete.
9492 (cplus_language_defn): Delete.
9493 (d_language_defn): Delete.
9494 (f_language_defn): Delete.
9495 (go_language_defn): Delete.
9496 (m2_language_defn): Delete.
9497 (objc_language_defn): Delete.
9498 (opencl_language_defn): Delete.
9499 (pascal_language_defn): Delete.
9500 (rust_language_defn): Delete.
9501 * gdb/m2-lang.c (m2_language_defn): Convert to...
9502 (m2_language_data): ...this.
9503 (class m2_language): New class.
9504 (m2_language_defn): New static global.
9505 * gdb/objc-lang.c (objc_language_defn): Convert to...
9506 (objc_language_data): ...this.
9507 (class objc_language): New class.
9508 (objc_language_defn): New static global.
9509 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9510 (opencl_language_data): ...this.
9511 (class opencl_language): New class.
9512 (opencl_language_defn): New static global.
9513 * gdb/p-lang.c (pascal_language_defn): Convert to...
9514 (pascal_language_data): ...this.
9515 (class pascal_language): New class.
9516 (pascal_language_defn): New static global.
9517 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9518 language pointer, update comment format.
9519 * gdb/rust-lang.c (rust_language_defn): Convert to...
9520 (rust_language_data): ...this.
9521 (class rust_language): New class.
9522 (rust_language_defn): New static global.
9524 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9526 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9528 <m_stmt_at_address>: New member variable.
9529 (lnp_state_machine::record_line): Don't record some lines, update
9530 tracking of is_stmt at the same address.
9531 (lnp_state_machine::lnp_state_machine): Initialise new member
9534 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9536 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9537 "-include gnu-nat-mig.h".
9538 * gnu-nat-mig.h: New file.
9539 * gnu-nat.c: Include "gnu-nat-mig.h".
9540 (exc_server, msg_reply_server, notify_server,
9541 process_reply_server): Remove declarations.
9543 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9545 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9546 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9547 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9548 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9549 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9550 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9551 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9552 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9553 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9554 to gnu_nat_target class.
9555 * gnu-nat.c: Likewise.
9556 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9557 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9558 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9560 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9561 instead of `gnu_target'.
9563 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9565 * i386-gnu-tdep.c: Include "gdbcore.h"
9566 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9567 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9568 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9569 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9570 i386_gnu_sigcontext_addr): New functions
9571 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9572 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9575 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9577 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9578 before fork_inferior call. Avoid calling it if target_is_pushed returns
9581 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9583 * gnu-nat.h (gnu_target): New variable declaration.
9584 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9586 * gnu-nat.c (gnu_target): New variable.
9587 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9588 add_thread_silent, and add_thread calls.
9589 (gnu_nat_target::create_inferior): Pass gnu_target to
9590 add_thread_silent, thread_change_ptid call.
9591 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9594 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9596 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9597 (gnu_nat_target::find_memory_regions): Remove unused
9598 `old_address' variable.
9600 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9602 * gnu-nat.c: Include "gdbarch.h".
9604 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9606 * reply_mig_hack.awk (Error return): Cast function through
9607 void *, to bypass compiler function call check.
9609 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9611 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9612 $(srcdir)/reply_mig_hack.awk.
9614 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9616 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9618 2020-05-30 Jonny Grant <jg@jguk.org>
9620 * configure.ac (ACX_BUGURL): change bug URL to https.
9622 2020-05-30 Pedro Alves <palves@redhat.com>
9624 * cp-support.c (replace_typedefs_template): New.
9625 (replace_typedefs_qualified_name): Handle
9626 DEMANGLE_COMPONENT_TEMPLATE.
9628 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9630 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9631 dwarf2/index-cache.h, dwarf2/index-write.c,
9632 dwarf2/index-write.h, dwarf2/line-header.c,
9633 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9634 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9635 variables and fields from `dwarf2_per_objfile` to just
9636 `per_objfile` throughout.
9638 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9640 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9641 <push_dwarf_reg_entry_value>: Add comment.
9643 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9644 Keith Seitz <keiths@redhat.com>
9646 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9647 instead of PyEval_ReleaseLock.
9648 (class gdbpy_gil): Move to earlier in file.
9649 (finalize_python): Set gdb_python_initialized.
9650 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9651 when not initialized.
9653 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9655 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9656 <push_dwarf_reg_entry_value>: Remove assert. Override
9657 per_objfile with caller_per_objfile.
9659 2020-05-28 Tom de Vries <tdevries@suse.de>
9661 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9662 PR gold/15646 workaround to symbol kind "type".
9664 2020-05-27 Tom Tromey <tromey@adacore.com>
9666 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9668 2020-05-27 Tom Tromey <tromey@adacore.com>
9670 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9671 Use htab_find_with_hash.
9672 <add_abbrev>: Remove "abbrev_number" parameter.
9673 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9674 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9675 (hash_abbrev): Add comment.
9676 (abbrev_table::lookup_abbrev): Move to header file.
9677 (abbrev_table::read): Update.
9679 2020-05-27 Tom Tromey <tromey@adacore.com>
9681 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9683 <canonical_name>: New member.
9684 <raw_name>: Rename from "name".
9685 (partial_die_info): Initialize canonical_name.
9686 (scan_partial_symbols): Check raw_name.
9687 (partial_die_parent_scope, partial_die_full_name)
9688 (add_partial_symbol, add_partial_subprogram)
9689 (add_partial_enumeration, load_partial_dies): Use "name" method.
9690 (partial_die_info::name): New method.
9691 (partial_die_info::read, guess_partial_die_structure_name)
9692 (partial_die_info::fixup): Update.
9694 2020-05-27 Tom Tromey <tromey@adacore.com>
9696 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9697 <get_ref_die_offset>: Inline.
9698 <get_ref_die_offset_complaint>: New method.
9699 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9700 (attribute::get_ref_die_offset_complaint): Rename from
9701 get_ref_die_offset. Just issue complaint.
9703 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9705 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9707 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9709 * exec.c (exec_file_attach): Use errno value of first openp failure.
9711 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9713 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9714 Don't close thread handle.
9716 2020-05-27 Tom Tromey <tom@tromey.com>
9717 Simon Marchi <simon.marchi@efficios.com>
9719 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9721 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9723 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9724 dwarf2_per_bfd_objfile_data_key>: New globals.
9725 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9726 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9727 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9729 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9730 short-circuit when sharing.
9731 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9732 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9734 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9736 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9738 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9739 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9741 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9743 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9744 build_name_components, find_name_components_bounds>:
9745 Add per_objfile parameter.
9746 (struct mapped_index) <symbol_name_at>: Likewise.
9747 (struct mapped_debug_names): Remove constructor.
9748 <dwarf2_per_objfile>: Remove field.
9749 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9750 (mapped_index_base::find_name_components_bounds,
9751 mapped_index_base::build_name_components,
9752 dw2_expand_symtabs_matching_symbol): Likewise.
9753 (class mock_mapped_index) <symbol_name_at>: Likewise.
9754 (check_match): Likewise.
9755 (check_find_bounds_finds): Likewise.
9756 (test_mapped_index_find_name_component_bounds): Update.
9757 (CHECK_MATCH): Update.
9758 (dw2_expand_symtabs_matching): Update.
9759 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9760 per_objfile parameter.
9761 <find_vec_in_debug_names>: Likewise.
9762 <m_per_objfile>: New field.
9763 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9765 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9766 (dw2_debug_names_iterator::next): Update.
9767 (dw2_debug_names_lookup_symbol): Update.
9768 (dw2_debug_names_expand_symtabs_for_function): Update.
9769 (dw2_debug_names_map_matching_symbols): Update.
9770 (dw2_debug_names_expand_symtabs_matching): Update.
9771 (dwarf2_read_debug_names): Update.
9773 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9775 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9776 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9777 move to dwarf2_per_objfile.
9778 <read_in_chain>: Remove.
9779 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9780 remove_all_cus, age_comp_units>: New methods.
9781 <m_dwarf2_cus>: New member.
9782 (struct dwarf2_per_cu_data) <cu>: Remove.
9783 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9784 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9785 moved to methods of dwarf2_per_objfile.
9786 (dwarf2_clear_marks): Remove.
9787 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9788 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9789 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9790 (dwarf2_per_objfile::remove_all_cus): New.
9791 (class free_cached_comp_units) <~free_cached_comp_units>:
9794 (dw2_do_instantiate_symtab): Adjust.
9795 (fill_in_sig_entry_from_dwo_entry): Adjust.
9796 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9797 (cutu_reader::cutu_reader): Likewise.
9798 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9799 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9800 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9801 and dwarf2_per_objfile::age_comp_units.
9802 (load_partial_comp_unit): Update.
9803 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9804 (process_queue): Likewise.
9805 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9807 (dwarf2_read_addr_index): Likewise.
9808 (follow_die_offset): Likewise.
9809 (dwarf2_fetch_die_loc_sect_off): Likewise.
9810 (dwarf2_fetch_constant_bytes): Likewise.
9811 (dwarf2_fetch_die_type_sect_off): Likewise.
9812 (follow_die_sig_1): Likewise.
9813 (load_full_type_unit): Likewise.
9814 (read_signatured_type): Likewise.
9815 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9816 (dwarf2_cu::~dwarf2_cu): Remove.
9817 (dwarf2_per_objfile::get_cu): New.
9818 (dwarf2_per_objfile::set_cu): New.
9819 (age_cached_comp_units): Rename to...
9820 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9821 to std::unordered_map.
9822 (free_one_cached_comp_unit): Rename to...
9823 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9824 to std::unordered_map.
9825 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9826 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9827 a dwarf2_per_objfile in data.
9828 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9829 (dwarf2_clear_marks): Remove.
9831 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9833 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9834 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9835 (init_tu_and_read_dwo_dies): Likewise.
9836 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9837 (cutu_reader::cutu_reader): Likewise.
9838 (load_partial_comp_unit): Likewise.
9839 (process_psymtab_comp_unit): Update.
9840 (build_type_psymtabs_1): Update.
9841 (process_skeletonless_type_unit): Update.
9842 (load_full_comp_unit): Update.
9843 (find_partial_die): Update.
9844 (dwarf2_read_addr_index): Update.
9845 (read_signatured_type): Update.
9847 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9849 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9850 m_header_read_in>: New fields.
9851 <get_header>: New method.
9852 * dwarf2/read.c (per_cu_header_read_in): Remove.
9853 (dwarf2_per_cu_data::get_header): New.
9854 (dwarf2_per_cu_data::addr_size): Update.
9855 (dwarf2_per_cu_data::offset_size): Update.
9856 (dwarf2_per_cu_data::ref_addr_size): Update.
9858 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9860 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9861 (dw2_do_instantiate_symtab): Update.
9862 (queue_and_load_all_dwo_tus): Change parameter from
9863 dwarf2_per_cu_data to dwarf2_cu.
9864 (dwarf2_fetch_die_loc_sect_off): Update.
9865 (dwarf2_fetch_constant_bytes): Update.
9866 (dwarf2_fetch_die_type_sect_off): Update.
9868 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9870 * dwarf2/read.c (process_full_comp_unit,
9871 process_full_type_unit): Remove per_cu, per_objfile paramters.
9872 Add dwarf2_cu parameter.
9873 (process_queue): Update.
9875 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9877 * dwarf2/read.c (create_cu_from_index_list): Replace
9878 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9879 (create_cus_from_index_list): Likewise.
9880 (create_cus_from_index): Likewise.
9881 (create_signatured_type_table_from_index): Likewise.
9882 (create_cus_from_debug_names_list): Likewise.
9883 (create_cus_from_debug_names): Likewise.
9884 (dwarf2_read_gdb_index): Update.
9885 (dwarf2_read_debug_names): Update.
9887 2020-05-27 Tom Tromey <tom@tromey.com>
9888 Simon Marchi <simon.marchi@efficios.com>
9890 * dwarf2/read.h (struct dwarf2_per_objfile)
9891 <get_type_for_signatured_type, set_type_for_signatured_type>:
9893 <m_type_map>: New member.
9894 (struct signatured_type) <type>: Remove.
9896 (dwarf2_per_objfile::get_type_for_signatured_type,
9897 dwarf2_per_objfile::set_type_for_signatured_type): New.
9898 (get_signatured_type): Use new methods.
9900 2020-05-27 Tom Tromey <tom@tromey.com>
9901 Simon Marchi <simon.marchi@efficios.com>
9903 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9904 (struct dwarf2_per_objfile) <type_units>: New member.
9905 <get_type_unit_group_unshareable>: New method.
9906 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9907 num_symtabs, symtabs>: Remove; move to
9908 type_unit_group_unshareable.
9909 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9910 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9911 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9913 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9915 * dwarf2/read.h (struct dwarf2_per_cu_data):
9916 <dwarf2_per_objfile>: Remove.
9917 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9919 (create_signatured_type_table_from_index): Likewise.
9920 (create_signatured_type_table_from_debug_names): Likewise.
9921 (create_debug_type_hash_table): Likewise.
9922 (fill_in_sig_entry_from_dwo_entry): Likewise.
9923 (create_type_unit_group): Likewise.
9924 (read_comp_units_from_section): Likewise.
9925 (create_cus_hash_table): Likewise.
9927 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9929 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9930 dwarf2_per_cu_data::dwarf2_per_objfile.
9931 (compute_compunit_symtab_includes): Likewise.
9932 (dwarf2_cu::start_symtab): Likewise.
9934 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9936 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9938 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9939 (read_namespace_alias): Update.
9940 (lookup_die_type): Update.
9941 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9942 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9944 (disassemble_dwarf_expression): Update.
9946 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9948 * dwarf2/read.h (struct dwarf2_queue_item): Add
9949 dwarf2_per_objfile parameter, assign new parameter.
9950 <per_objfile>: New field.
9951 * dwarf2/read.c (free_one_cached_comp_unit): Add
9952 dwarf2_per_objfile parameter.
9953 (queue_comp_unit): Likewise.
9954 (dw2_do_instantiate_symtab): Update.
9955 (process_psymtab_comp_unit): Update.
9956 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9957 (process_imported_unit_die): Update.
9958 (queue_and_load_dwo_tu): Update.
9959 (follow_die_offset): Update.
9960 (follow_die_sig_1): Update.
9962 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9964 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9965 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9966 (read_call_site_scope): Assign per_objfile.
9967 (dwarf2_per_cu_data::objfile): Remove.
9968 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9969 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9970 dwarf2_per_objfile parameter.
9971 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9972 dwarf2_per_objfile parameter.
9973 (dwarf_expr_reg_to_entry_parameter): Add output
9974 dwarf2_per_objfile parameter.
9975 (locexpr_get_frame_base): Update.
9976 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9977 <push_dwarf_reg_entry_value>: Update.
9978 <call_site_to_target_addr>: Update.
9979 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9981 (value_of_dwarf_reg_entry): Update.
9982 (rw_pieced_value): Update.
9983 (indirect_synthetic_pointer): Update.
9984 (dwarf2_evaluate_property): Update.
9985 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9987 (locexpr_read_variable): Update.
9988 (locexpr_get_symbol_read_needs): Update.
9989 (loclist_read_variable): Update.
9991 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9993 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9994 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9995 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9997 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9998 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9999 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10001 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10002 sect_variable_value): Add dwarf2_per_objfile parameter.
10003 (class dwarf_evaluate_loc_desc) <dwarf_call,
10004 dwarf_variable_value>: Update.
10005 (fetch_const_value_from_synthetic_pointer): Add
10006 dwarf2_per_objfile parameter.
10007 (fetch_const_value_from_synthetic_pointer): Update.
10008 (coerced_pieced_ref): Update.
10009 (class symbol_needs_eval_context) <dwarf_call,
10010 dwarf_variable_value>: Update.
10011 (dwarf2_compile_expr_to_ax): Update.
10013 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10015 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10017 (dwarf2_evaluate_loc_desc_full): Update.
10019 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10021 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10023 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10024 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10025 dwarf2_per_objfile parameter.
10026 (decode_debug_loc_dwo_addresses): Likewise.
10027 (dwarf2_find_location_expression): Update.
10028 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10029 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10031 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10033 (locexpr_describe_location_1): Likewise.
10034 (locexpr_describe_location): Update.
10036 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10038 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10040 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10041 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10042 (dwarf2_compile_property_to_c): Update.
10043 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10044 use text offset from objfile.
10045 (locexpr_tracepoint_var_ref): Update.
10046 (locexpr_generate_c_location): Update.
10047 (loclist_describe_location): Update.
10048 (loclist_tracepoint_var_ref): Update.
10049 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10050 dwarf2_per_objfile parameter.
10051 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10052 use text offset from objfile.
10053 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10055 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10057 * dwarf2/expr.h (struct dwarf_expr_context)
10058 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10060 <per_objfile>: New member.
10061 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10062 dwarf2_per_objfile parameter. Don't set offset, set
10064 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10065 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10066 a dwarf2_per_objfile object instead of an offset.
10067 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10069 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10070 to dwarf2_expr_executor constructor. Don't set offset.
10071 (dwarf2_fetch_cfa_info): Update.
10072 (struct dwarf2_frame_cache) <text_offset>: Remove.
10073 <per_objfile>: New field.
10074 (dwarf2_frame_cache): Update.
10075 (dwarf2_frame_prev_register): Update.
10076 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10077 <dwarf_evaluate_loc_desc>: Add constructor.
10078 (dwarf2_evaluate_loc_desc_full): Update.
10079 (dwarf2_locexpr_baton_eval): Update.
10080 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10082 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10084 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10086 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10087 addr_sized_int_type>: Move to dwarf2_cu.
10088 <int_type>: Move to dwarf2_per_objfile.
10089 (struct dwarf2_per_objfile) <int_type>: Move here.
10090 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10091 addr_sized_int_type>: Move here.
10092 (read_func_scope): Update.
10093 (read_array_type): Update.
10094 (read_tag_string_type): Update.
10095 (attr_to_dynamic_prop): Update.
10096 (dwarf2_per_cu_data::int_type): Rename to...
10097 (dwarf2_per_objfile::int_type): ... this.
10098 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10099 (dwarf2_cu::addr_sized_int_type): ... this.
10100 (read_subrange_type): Update.
10101 (dwarf2_per_cu_data::addr_type): Rename to...
10102 (dwarf2_cu::addr_type): ... this.
10103 (set_die_type): Update.
10105 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10107 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10108 data through per_cu->cu.
10110 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10112 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10113 dwarf2_per_cu_data parameter fo dwarf2_cu.
10114 (lookup_dwo_type_unit): Likewise.
10115 (read_cutu_die_from_dwo): Likewise.
10116 (lookup_dwo_unit): Likewise.
10117 (open_and_init_dwo_file): Likewise.
10118 (lookup_dwo_cutu): Likewise.
10119 (lookup_dwo_comp_unit): Likewise.
10120 (lookup_dwo_type_unit): Likewise.
10121 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10122 (cutu_reader::cutu_reader): Update.
10124 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10126 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10128 (process_full_type_unit): Likewise.
10129 (process_queue): Update.
10131 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10133 * dwarf2/read.c (recursively_compute_inclusions): Add
10134 dwarf2_per_objfile parameter.
10135 (compute_compunit_symtab_includes): Likewise.
10136 (process_cu_includes): Update.
10138 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10140 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10142 (create_type_unit_group): Update.
10143 (process_psymtab_comp_unit_reader): Update.
10144 (build_type_psymtabs_reader): Update.
10146 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10148 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10149 object through m_this_cu->cu.
10151 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10153 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10154 the info parameter.
10155 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10157 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10159 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10160 per_objfile parameter.
10161 (load_full_type_unit): Add per_objfile parameter.
10162 (read_signatured_type): Likewise.
10163 (load_full_comp_unit): Likewise.
10164 (load_cu): Likewise.
10165 (dw2_do_instantiate_symtab): Likewise.
10166 (dw2_get_file_names): Likewise.
10167 (dw2_map_symtabs_matching_filename): Update.
10168 (dw_expand_symtabs_matching_file_matcher): Update.
10169 (dw2_map_symbol_filenames): Update.
10170 (process_psymtab_comp_unit): Add per_objfile parameter.
10171 (build_type_psymtabs_1): Update.
10172 (process_skeletonless_type_unit): Update.
10173 (dwarf2_build_psymtabs_hard): Update.
10174 (load_partial_comp_unit): Add per_objfile parameter.
10175 (scan_partial_symbols): Update.
10176 (load_full_comp_unit): Add per_objfile parameter.
10177 (process_imported_unit_die): Update.
10178 (create_cus_hash_table): Update.
10179 (find_partial_die): Update.
10180 (dwarf2_read_addr_index): Update.
10181 (follow_die_offset): Update.
10182 (dwarf2_fetch_die_loc_sect_off): Update.
10183 (dwarf2_fetch_constant_bytes): Update.
10184 (dwarf2_fetch_die_type_sect_off): Update.
10185 (follow_die_sig_1): Update.
10186 (load_full_type_unit): Add per_objfile parameter.
10187 (read_signatured_type): Likewise.
10189 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10191 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10194 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10196 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10197 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10198 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10200 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10201 (create_cus_from_index): Update.
10202 (dwarf2_read_gdb_index): Update.
10203 (create_cus_from_debug_names): Update.
10204 (dwarf2_read_debug_names): Update.
10205 (get_abbrev_section_for_cu): Update.
10206 (create_all_comp_units): Update.
10207 (read_attribute_value): Update.
10208 (get_debug_line_section): Update.
10209 * dwarf2/index-cache.c (index_cache::store): Update.
10210 * dwarf2/index-write.c (save_gdb_index_command): Update.
10211 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10213 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10215 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10217 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10218 dwarf2_per_cu_data::per_bfd.
10219 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10220 (create_type_unit_group): Likewise.
10221 (queue_comp_unit): Remove reference to
10222 per_cu->dwarf2_per_objfile.
10223 (maybe_queue_comp_unit): Likewise.
10224 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10225 (create_cus_hash_table): Assign new field.
10227 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10229 * dwarf2/read.c: Replace
10230 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10231 dwarf2_cu->per_objfile throughout.
10233 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10235 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10236 parameter, don't use per_cu->dwarf2_per_objfile.
10237 (dw2_instantiate_symtab): Likewise.
10238 (dw2_find_last_source_symtab): Update.
10239 (dw2_map_expand_apply): Update.
10240 (dw2_lookup_symbol): Update.
10241 (dw2_expand_symtabs_for_function): Update.
10242 (dw2_expand_all_symtabs): Update.
10243 (dw2_expand_symtabs_with_fullname): Update.
10244 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10245 don't use per_cu->dwarf2_per_objfile.
10246 (dw2_expand_marked_cus): Update.
10247 (dw2_find_pc_sect_compunit_symtab): Update.
10248 (dw2_debug_names_lookup_symbol): Update.
10249 (dw2_debug_names_expand_symtabs_for_function): Update.
10250 (dw2_debug_names_map_matching_symbols): Update.
10251 (dwarf2_psymtab::expand_psymtab): Update.
10253 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10255 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10256 <per_objfile>: New member.
10257 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10258 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10260 (cutu_reader::cutu_reader): Update.
10261 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10263 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10265 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10266 struct dwarf2_per_objfile.
10267 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10269 * dwarf2/read.c (set_die_type): Update.
10270 (get_die_type_at_offset): Update.
10272 2020-05-27 Tom Tromey <tom@tromey.com>
10273 Simon Marchi <simon.marchi@efficios.com>
10275 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10277 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10278 get_symtab, set_symtab>: New methods.
10279 <m_symtabs>: New field.
10280 (struct dwarf2_psymtab): Derive from partial_symtab.
10281 <readin_p, get_compunit_symtab>: Declare methods.
10282 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10283 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10285 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10286 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10287 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10288 (dw2_symtab_iter_next, dw2_print_stats)
10289 (dw2_expand_symtabs_with_fullname)
10290 (dw2_expand_symtabs_matching_one)
10291 (dw_expand_symtabs_matching_file_matcher)
10292 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10293 (dw2_debug_names_iterator::next)
10294 (dw2_debug_names_map_matching_symbols)
10295 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10296 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10297 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10299 (get_compunit_symtab, process_full_comp_unit)
10300 (process_full_type_unit): Update.
10301 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10303 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10305 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10306 then introduce a new dwarf2_per_objfile type.
10307 <read_line_string>: Move to the new dwarf2_per_objfile type.
10308 <objfile>: Likewise.
10309 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10310 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10311 dwarf2_per_objfile->per_bfd.
10312 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10313 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10314 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10315 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10316 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10317 (dwarf2_per_objfile::locate_sections): Rename to...
10318 (dwarf2_per_bfd::locate_sections): ... this.
10319 (dwarf2_per_objfile::get_cutu): Rename to...
10320 (dwarf2_per_bfd::get_cutu): ... this.
10321 (dwarf2_per_objfile::get_cu): Rename to...
10322 (dwarf2_per_bfd::get_cu): ... this.
10323 (dwarf2_per_objfile::get_tu): Rename to...
10324 (dwarf2_per_bfd::get_tu): ... this.
10325 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10326 (dwarf2_per_bfd::allocate_per_cu): ... this.
10327 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10328 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10329 (get_gdb_index_contents_ftype): Change parameter from
10330 dwarf2_per_objfile to dwarf2_per_bfd.
10331 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10332 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10334 2020-05-27 Tom Tromey <tom@tromey.com>
10335 Simon Marchi <simon.marchi@efficios.com>
10337 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10338 (allocate_piece_closure): Set "per_objfile" member.
10339 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10340 (locexpr_describe_location, loclist_describe_location): Use new
10342 * dwarf2/read.c (read_call_site_scope)
10343 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10344 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10345 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10346 handle_data_member_location): Set per_objfile member.
10347 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10349 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10351 2020-05-27 Tom Tromey <tom@tromey.com>
10353 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10354 allocate_signatured_type>: Declare new methods.
10355 <m_num_psymtabs>: New member.
10356 (struct dwarf2_per_cu_data) <index>: New member.
10357 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10358 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10359 (create_cu_from_index_list): Use allocate_per_cu.
10360 (create_signatured_type_table_from_index)
10361 (create_signatured_type_table_from_debug_names)
10362 (create_debug_type_hash_table, add_type_unit)
10363 (read_comp_units_from_section): Use allocate_signatured_type.
10365 2020-05-27 Tom Tromey <tom@tromey.com>
10367 * psymtab.c (partial_map_expand_apply)
10368 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10369 (psym_lookup_global_symbol_language)
10370 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10371 (psym_print_stats, psym_expand_symtabs_for_function)
10372 (psym_map_symbol_filenames, psym_map_matching_symbols)
10373 (psym_expand_symtabs_matching)
10374 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10375 (maintenance_check_psymtabs): Update.
10376 * psympriv.h (struct partial_symtab) <readin_p,
10377 get_compunit_symtab>: Add objfile parameter.
10378 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10380 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10381 get_compunit_symtab>: Likewise.
10382 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10384 2020-05-27 Tom Tromey <tom@tromey.com>
10386 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10388 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10389 (create_cu_from_index_list)
10390 (create_signatured_type_table_from_index)
10391 (create_signatured_type_table_from_debug_names)
10392 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10393 (dwarf2_create_include_psymtab)
10394 (create_debug_type_hash_table, add_type_unit)
10395 (create_type_unit_group, read_comp_units_from_section)
10396 (dwarf2_compute_name, create_cus_hash_table)
10397 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10398 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10400 (dw2_get_real_path): Likewise. Change argument to
10401 dwarf2_per_objfile.
10403 2020-05-27 Luis Machado <luis.machado@linaro.org>
10406 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10407 for ldrd (immediate).
10409 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10411 * command.h: Add comment giving the name of class_tui.
10412 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10413 create the fake command for the help for class_tui.
10415 2020-05-26 Tom Tromey <tromey@adacore.com>
10417 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10418 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10419 (val_atr): New function.
10420 (value_val_atr): Use it.
10421 * ada-valprint.c (print_optional_low_bound): Change low bound
10422 handling for enums.
10423 (val_print_packed_array_elements): Don't call discrete_position.
10424 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10425 discrete_position for enum types.
10426 * language.c (default_print_array_index): Change type.
10427 * language.h (struct language_defn) <la_print_array_index>: Add
10428 index_type parameter, change type of index_value.
10429 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10430 (default_print_array_index): Update.
10431 * valprint.c (maybe_print_array_index): Don't call
10432 value_from_longest. Update.
10433 (value_print_array_elements): Don't call discrete_position.
10435 2020-05-26 Tom Tromey <tromey@adacore.com>
10437 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10438 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10440 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10443 * avr-tdep.c (avr_integer_to_address): Return data or code
10444 address accordingly to the second 'type' argument of the
10447 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10449 * infcmd.c, inferior.h: (construct_inferior_arguments):
10450 Moved function from here to gdbsupport/common-inferior.{h,cc}
10452 2020-05-23 Tom Tromey <tom@tromey.com>
10454 Revert commit eca1f90c:
10455 * NEWS: Remove entry for completion styling.
10456 * completer.c (_rl_completion_prefix_display_length): Move
10458 (gdb_fnprint): Revert.
10459 (gdb_display_match_list_1): Likewise.
10460 * cli/cli-style.c (completion_prefix_style)
10461 (completion_difference_style, completion_suffix_style): Remove.
10462 (_initialize_cli_style): Revert.
10463 * cli/cli-style.h (completion_prefix_style)
10464 (completion_difference_style, completion_suffix_style): Don't
10467 2020-05-24 Pedro Alves <palves@redhat.com>
10469 * symtab.c (completion_list_add_name): Return boolean indication
10470 of whether the symbol matched.
10471 (completion_list_add_symbol): Don't try to remove C++ aliases if
10472 the symbol didn't match in the first place.
10473 * symtab.h (completion_list_add_name): Return bool.
10475 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10477 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10480 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10484 2020-05-23 Tom Tromey <tom@tromey.com>
10486 * NEWS: Add entry for completion styling.
10487 * completer.c (_rl_completion_prefix_display_length): Move
10488 declaration earlier.
10489 (gdb_fnprint): Use completion_style.
10490 (gdb_display_match_list_1): Likewise.
10491 * cli/cli-style.c (completion_prefix_style)
10492 (completion_difference_style, completion_suffix_style): New
10494 (_initialize_cli_style): Register new globals.
10495 * cli/cli-style.h (completion_prefix_style)
10496 (completion_difference_style, completion_suffix_style): Declare.
10498 2020-05-23 Pedro Alves <palves@redhat.com>
10500 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10501 (parse_escape): Use ISDIGIT instead of isdigit.
10502 (puts_debug): Use gdb_isprint instead of isprint.
10503 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10504 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10505 ISSPACE instead of isspace.
10506 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10507 instead of isspace.
10508 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10509 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10510 instead of isxdigit and ISDIGIT instead of isdigit.
10512 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10514 * gdbtypes.h (struct type) <field>: New method.
10515 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10518 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10520 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10521 (TYPE_FIELDS): Use type::fields. Change all call sites that
10522 modify the propery to use type::set_fields instead.
10524 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10526 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10527 type::num_fields instead.
10529 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10531 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10533 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10534 that modify the number of fields to use type::set_num_fields
10537 2020-05-22 Tom Tromey <tromey@adacore.com>
10539 * compile/compile-object-load.h (munmap_list_free): Don't
10542 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10544 * annotate.c (annotate_source_line): Update return type, add call
10545 to update current symtab and line.
10546 * annotate.h (annotate_source_line): Update return type, and
10547 extend header comment.
10548 * source.c (info_line_command): Check annotation_level before
10549 calling annotate_source_line.
10550 * stack.c (print_frame_info): If calling annotate_source_line
10551 returns true, then don't print any other source line information.
10553 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10555 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10557 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10559 * coffread.c (patch_type): Remove NULL check before xfree.
10560 * corefile.c (set_gnutarget): Likewise.
10561 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10562 * exec.c (build_section_table): Likewise.
10563 * remote.c (remote_target::pass_signals): Likewise.
10564 * utils.c (n_spaces): Likewise.
10565 * cli/cli-script.c (document_command): Likewise.
10566 * i386-windows-tdep.c (core_process_module_section): Likewise.
10567 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10569 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10571 * symfile.c (reread_symbols): Clear objfile's section_offsets
10572 vector and section indices, re-compute them by calling
10575 2020-05-20 Tom Tromey <tromey@adacore.com>
10577 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10578 (desc_one_bound, desc_index_type): Compute field name.
10580 2020-05-20 Tom de Vries <tdevries@suse.de>
10583 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10585 2020-05-20 Alan Modra <amodra@gmail.com>
10588 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10590 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10591 passed to bfd_set_filename.
10592 * symfile-mem.c (add_vsyscall_page): Likewise for string
10593 passed to symbol_file_add_from_memory.
10594 (symbol_file_add_from_memory): Make name param a const char* and
10597 2020-05-20 Alan Modra <amodra@gmail.com>
10599 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10600 rather than accessing bfd->filename directly.
10601 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10602 and use bfd_section_name.
10603 * dwarf2/frame.c (decode_frame_entry): Likewise.
10604 * exec.c (exec_set_section_address): Likewise.
10605 * solib-aix.c (solib_aix_bfd_open): Likewise.
10606 * stap-probe.c (get_stap_base_address): Likewise.
10607 * symfile.c (reread_symbols): Likewise.
10609 2020-05-19 Tom Tromey <tromey@adacore.com>
10611 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10613 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10615 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10617 2020-05-19 Pedro Alves <palves@redhat.com>
10619 * NEWS (set exec-file-mismatch): Adjust entry.
10620 * exec.c: Include "build-id.h".
10621 (validate_exec_file): Try to match build IDs instead of filenames.
10622 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10623 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10624 and pass down 'warn_if_slow'.
10625 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10626 gdb_bfd_open_closure to pass it down.
10627 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10629 2020-05-19 Pedro Alves <palves@redhat.com>
10631 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10632 * target.c (target_fileio_open_1): Rename to target_fileio_open
10633 and make extern. Use bool.
10634 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10635 (target_fileio_read_alloc_1): Adjust.
10636 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10637 (target_fileio_open_warn_if_slow): Delete declaration.
10639 2020-05-19 Pedro Alves <palves@redhat.com>
10641 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10642 Adjust all callers.
10644 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10646 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10647 whether disp is negative.
10649 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10651 * symfile.h (struct symfile_segment_data)
10652 <~symfile_segment_data>: Remove.
10653 <segment_info>: Change to std::vector.
10654 * symfile.c (default_symfile_segments): Update.
10655 * elfread.c (elf_symfile_segments): Update.
10657 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10659 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10661 <segment_bases, segment_sizes>: Remove.
10662 * symfile.c (default_symfile_segments): Update.
10663 * elfread.c (elf_symfile_segments): Update.
10664 * remote.c (remote_target::get_offsets): Update.
10665 * solib-target.c (solib_target_relocate_section_addresses):
10668 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10670 * symfile.h (struct symfile_segment_data): Initialize fields.
10671 <~symfile_segment_data>: Add.
10672 (symfile_segment_data_up): New.
10673 (struct sym_fns) <sym_segments>: Return a
10674 symfile_segment_data_up.
10675 (default_symfile_segments): Return a symfile_segment_data_up.
10676 (free_symfile_segment_data): Remove.
10677 (get_symfile_segment_data): Return a symfile_segment_data_up.
10678 * symfile.c (default_symfile_segments): Likewise.
10679 (get_symfile_segment_data): Likewise.
10680 (free_symfile_segment_data): Remove.
10681 (symfile_find_segment_sections): Update.
10682 * elfread.c (elf_symfile_segments): Return a
10683 symfile_segment_data_up.
10684 * remote.c (remote_target::get_offsets): Update.
10685 * solib-target.c (solib_target_relocate_section_addresses):
10687 * symfile-debug.c (debug_sym_segments): Return a
10688 symfile_segment_data_up.
10690 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10693 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10694 Hardcode register numbers.
10697 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10698 procfs_find_LDT_entry): Remove.
10699 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10700 procfs_find_LDT_entry): Remove.
10701 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10704 2020-05-17 Pedro Alves <palves@redhat.com>
10705 Andrew Burgess <andrew.burgess@embecosm.com>
10706 Keno Fischer <keno@juliacomputing.com>
10709 * breakpoint.c (build_target_condition_list): Update comments.
10710 (build_target_command_list): Update comments and skip matching
10712 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10713 a separate function. Simplify "set breakpoint auto-hw off"
10715 (insert_breakpoints): Update comment.
10716 (tracepoint_locations_match): New parameter. For breakpoints,
10717 compare location types too, if the caller wants to.
10718 (handle_automatic_hardware_breakpoints): New functions.
10719 (bp_location_is_less_than): Also sort by location type and
10720 hardware breakpoint length.
10721 (update_global_location_list): Handle "set breakpoint auto-hw on"
10723 (update_breakpoint_locations): Ask breakpoint_locations_match to
10724 ignore location types.
10726 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10728 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10729 type::name instead.
10731 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10733 * gdbtypes.h (struct type) <name, set_name>: New methods.
10734 (TYPE_CODE): Use type::name. Change all call sites used to set
10735 the name to use type::set_name instead.
10737 2020-05-16 Tom Tromey <tom@tromey.com>
10739 * top.c (quit_force): Update.
10740 * infrun.c (handle_no_resumed): Update.
10741 * top.h (all_uis): New function.
10744 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10746 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10748 2020-05-16 Pedro Alves <palves@redhat.com>
10751 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10753 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10755 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10757 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10758 (sparc64_adi_info): Likewise.
10760 2020-05-15 Tom Tromey <tom@tromey.com>
10762 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10764 (lookup_objfile_from_block): Remove.
10765 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10766 (lookup_global_symbol): Use block_objfile.
10767 * symtab.h (lookup_objfile_from_block): Don't declare.
10768 * printcmd.c (clear_dangling_display_expressions): Use
10770 * parse.c (operator_check_standard): Use block_objfile.
10772 2020-05-15 Tom Tromey <tom@tromey.com>
10774 * language.c (language_alloc_type_symbol): Set
10776 * symtab.c (initialize_objfile_symbol): Remove.
10777 (allocate_symbol): Remove.
10778 (allocate_template_symbol): Remove.
10779 * dwarf2/read.c (fixup_go_packaging): Use "new".
10780 (new_symbol): Use "new".
10781 (read_variable): Don't call initialize_objfile_symbol. Use
10783 (read_func_scope): Use "new".
10784 * xcoffread.c (process_xcoff_symbol): Don't call
10785 initialize_objfile_symbol.
10786 (SYMBOL_DUP): Remove.
10787 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10789 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10790 (allocate_template_symbol): Don't declare.
10791 (struct symbol): Add copy constructor. Change defaults.
10792 * jit.c (finalize_symtab): Use "new".
10793 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10795 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10796 (common_block_end): Use "new".
10797 * mdebugread.c (parse_symbol): Use "new".
10798 (new_symbol): Likewise.
10800 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10802 * NEWS: Mention changes to help and apropos.
10804 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10806 * command.h (enum command_class): Improve comments, document
10807 that class_alias is for user-defined aliases, give the class
10808 name for each class, remove unused class_xdb.
10809 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10810 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10811 by a precise class.
10812 * infcmd.c (_initialize_infcmd): Likewise.
10813 * reverse.c (_initialize_reverse): Likewise.
10814 * stack.c (_initialize_stack): Likewise.
10815 * symfile.c (_initialize_symfile): Likewise.
10816 * tracepoint.c (_initialize_tracepoint): Likewise.
10818 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10820 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10821 when their aliased command is traversed.
10822 (help_cmd): Add fput_command_names_styled call to
10823 output command name and aliases when command has an alias.
10825 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10827 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10828 * cli/cli-decode.c (help_cmd_list): Declare as static,
10829 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10830 a command together with the command.
10831 (fput_command_name_styled, fput_command_names_styled): New functions.
10832 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10833 fput_command_name_styled.
10834 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10835 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10837 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10839 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10840 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10841 * command.h (cmd_show_list): Likewise.
10842 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10843 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10845 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10847 * unittests/command-def-selftests.c (traverse_command_structure):
10848 Verify all commands of a list have the same prefix command and
10849 that only the top cmdlist commands have a null prefix.
10851 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10853 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10854 as prefix, not one of its aliases.
10855 (set_cmd_prefix): Remove.
10856 (do_add_cmd): Centralize the setting of the prefix of a command, when
10857 command is defined after its full chain of prefix commands.
10858 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10859 (add_setshow_cmd_full): Likewise.
10860 (update_prefix_field_of_prefixed_commands): New function.
10861 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10862 update_prefix_field_of_prefixed_commands.
10863 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10864 addresses of remote_set_cmdlist and remote_show_cmdlist given
10865 as argument, not the address of an argument.
10866 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10867 * gdb/remote.c (_initialize_remote): Likewise.
10869 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10871 * cli/cli-cmds.c (alias_command): Check for an existing alias
10872 using lookup_cmd_composition, as valid_command_p is too strict
10873 and forbids aliases that are the prefix of an existing alias
10875 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10876 command is properly recognised as a valid command.
10878 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10880 * unittests/help-doc-selftests.c: Rename to
10881 unittests/command-def-selftests.c
10882 * unittests/command-def-selftests.c (help_doc_tests): Update some
10884 (command_structure_tests, traverse_command_structure): New namespace
10886 (command_structure_invariants_tests): New function.
10887 (_initialize_command_def_selftests) Renamed from
10888 _initialize_help_doc_selftests, register command_structure_invariants
10891 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10893 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10894 an alias of 'show'.
10896 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10898 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10899 ada_is_fixed_point_type. Update all callers.
10900 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10902 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10903 Update all callers.
10904 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10905 print_fixed_point_type. Update all callers.
10906 * ada-valprint.c (ada_value_print_num): Replace call to
10907 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10909 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10911 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10913 (cpu_supports_bts): Add CV_AMD case.
10915 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10916 Simon Marchi <simon.marchi@efficios.com>
10918 * infrun.c (stop_all_threads): Collect multiple wait events at
10921 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10923 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10924 type::code instead.
10926 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10928 * gdbtypes.h (struct type) <code, set_code>: New methods.
10929 (TYPE_CODE): Use type::code. Change all call sites used to set
10930 the code to use type::set_code instead.
10932 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10933 Tom de Vries <tdevries@suse.de>
10934 Pedro Alves <palves@redhat.com>
10937 * infrun.c (stop_all_threads): Do NOT ignore
10938 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10939 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10941 (handle_no_resumed): Remove code handling a live inferior with no
10943 * remote.c (has_single_non_exited_thread): New.
10944 (remote_target::update_thread_list): Do not delete a thread if is
10945 the last thread of the process.
10946 * thread.c (thread_select): Call delete_exited_threads instead of
10949 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10951 * infrun.c (stop_all_threads): Enable/disable thread events of all
10952 targets. Move a debug message denoting the end of the function
10953 into the SCOPED_EXIT block.
10955 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10957 * process-stratum-target.h: Include <set>.
10958 (all_non_exited_process_targets, switch_to_target_no_thread): New
10959 function declarations.
10960 * process-stratum-target.c (all_non_exited_process_targets)
10961 (switch_to_target_no_thread): New function implementations.
10963 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10965 * infrun.c (handle_inferior_event): Extract out a piece of code
10967 (mark_non_executing_threads): ...this new function.
10969 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10971 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10974 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10976 * regcache.c (regcache_read_pc_protected): New function
10977 implementation that returns 0 if the PC cannot read via
10978 'regcache_read_pc'.
10979 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10980 instead of 'regcache_read_pc'.
10981 (keep_going_pass_signal): Ditto.
10983 2020-05-13 Tom Tromey <tromey@adacore.com>
10985 * ada-lang.c (align_value): Remove.
10986 (ada_template_to_fixed_record_type_1): Use align_up.
10988 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10990 * async-event.c: Update the copyright year.
10991 * async-event.h: Update the copyright year.
10993 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10995 * objfiles.h (is_addr_in_objfile,
10996 shared_objfile_contains_address_p): Return bool.
10997 * objfile.c (is_addr_in_objfile,
10998 shared_objfile_contains_address_p): Return bool.
11000 2020-05-11 Tom Tromey <tromey@adacore.com>
11002 * cli/cli-cmds.c (info_command): Restore.
11003 (_initialize_cli_cmds): Use add_prefix_command for "info".
11004 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11006 2020-05-11 Tom Tromey <tromey@adacore.com>
11008 * ada-lang.c (ada_value_primitive_field): Now public.
11009 * ada-lang.h (ada_value_primitive_field): Declare.
11010 * ada-valprint.c (print_field_values): Use
11011 ada_value_primitive_field for wrapper fields.
11013 2020-05-11 Tom de Vries <tdevries@suse.de>
11015 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11018 2020-05-11 Tom de Vries <tdevries@suse.de>
11021 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11022 with length 0, if not gdb-produced.
11023 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11025 2020-05-09 Tom de Vries <tdevries@suse.de>
11028 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11031 2020-05-09 Tom Tromey <tom@tromey.com>
11033 * top.c (server_command): Now bool.
11034 * top.h (server_command): Now bool.
11036 2020-05-08 Tom Tromey <tromey@adacore.com>
11038 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11039 already being processed.
11041 2020-05-08 Tom Tromey <tom@tromey.com>
11043 * printcmd.c (struct display) <next>: Remove.
11044 <display>: New constructor.
11045 <exp_string>: Now a std::string.
11046 <enabled_p>: Now a bool.
11047 (display_number): Move definition earlier.
11048 (displays): Rename from display_chain. Now a std::vector.
11049 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11050 (display_command): Update.
11051 (do_one_display, disable_display)
11052 (enable_disable_display_command, do_enable_disable_display):
11054 (free_display): Remove.
11055 (clear_displays): Rewrite.
11056 (delete_display): Update.
11057 (map_display_numbers): Use function_view. Remove "data"
11059 (do_delete_display): Remove.
11060 (undisplay_command): Update.
11061 (do_one_display, do_displays, disable_display)
11062 (info_display_command): Update.
11063 (do_enable_disable_display): Remove.
11064 (enable_disable_display_command)
11065 (clear_dangling_display_expressions): Update.
11067 2020-05-08 Tom Tromey <tom@tromey.com>
11069 * symtab.c (set_symbol_cache_size)
11070 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11071 (maintenance_print_symbol_cache_statistics): Update.
11072 * symmisc.c (print_symbol_bcache_statistics)
11073 (print_objfile_statistics, maintenance_print_objfiles)
11074 (maintenance_info_symtabs, maintenance_check_symtabs)
11075 (maintenance_expand_symtabs, maintenance_info_line_tables):
11077 * symfile-debug.c (set_debug_symfile): Update.
11078 * source.c (forget_cached_source_info): Update.
11079 * python/python.c (gdbpy_progspaces): Update.
11080 * psymtab.c (maintenance_info_psymtabs): Update.
11081 * probe.c (parse_probes): Update.
11082 * linespec.c (iterate_over_all_matching_symtabs)
11083 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11084 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11085 * exec.c (exec_target::close): Update.
11086 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11087 * breakpoint.c (print_one_breakpoint_location)
11088 (create_longjmp_master_breakpoint)
11089 (create_std_terminate_master_breakpoint): Update.
11090 * progspace.c (program_spaces): Now a std::vector.
11091 (maybe_new_address_space): Update.
11092 (add_program_space): Remove.
11093 (program_space::program_space): Update.
11094 (remove_program_space): Update.
11095 (number_of_program_spaces): Remove.
11096 (print_program_space, update_address_spaces): Update.
11097 * progspace.h (program_spaces): Change type.
11098 (ALL_PSPACES): Remove.
11099 (number_of_program_spaces): Don't declare.
11100 (struct program_space) <next>: Remove.
11102 2020-05-08 Tom Tromey <tom@tromey.com>
11104 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11105 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11106 (enable_break): Update.
11107 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11108 (frv_fdpic_find_canonical_descriptor): Update.
11109 (frv_fetch_objfile_link_map): Update.
11110 * progspace.c (program_space::free_all_objfiles): Update.
11111 (program_space::solibs): New method.
11112 * progspace.h (struct program_space) <solibs>: New method.
11113 * solist.h (master_so_list): Don't declare.
11114 (ALL_SO_LIBS): Remove.
11115 * solib.h (so_list_head): Remove.
11116 (update_solib_list): Update comment.
11117 * solib.c (master_so_list): Remove.
11118 (solib_used, update_solib_list, solib_add)
11119 (info_sharedlibrary_command, clear_solib)
11120 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11122 2020-05-08 Tom Tromey <tom@tromey.com>
11124 * extension.c (extension_languages): Now a std::array.
11125 (ALL_EXTENSION_LANGUAGES): Remove.
11126 (get_ext_lang_defn, get_ext_lang_of_file)
11127 (eval_ext_lang_from_control_command): Update.
11128 (finish_ext_lang_initialization)
11129 (auto_load_ext_lang_scripts_for_objfile)
11130 (ext_lang_type_printers::ext_lang_type_printers)
11131 (apply_ext_lang_type_printers)
11132 (ext_lang_type_printers::~ext_lang_type_printers)
11133 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11134 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11135 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11136 (get_matching_xmethod_workers, ext_lang_colorize)
11137 (ext_lang_before_prompt): Update.
11138 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11140 2020-05-08 Tom Tromey <tom@tromey.com>
11142 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11144 <swap_string, m_string>: Remove.
11145 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11147 * stabsread.c (define_symbol, read_type): Update.
11148 * linespec.c (find_linespec_symbols): Update.
11149 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11150 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11151 * dbxread.c (read_dbx_symtab): Update.
11152 * cp-support.h (cp_canonicalize_string_full)
11153 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11154 Return unique_xmalloc_ptr.
11155 * cp-support.c (inspect_type): Update.
11156 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11157 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11159 * c-typeprint.c (print_name_maybe_canonical): Update.
11160 * break-catch-throw.c (check_status_exception_catchpoint):
11163 2020-05-08 Tom de Vries <tdevries@suse.de>
11165 * infrun.c (follow_fork): Copy current_line and current_symtab to
11168 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11170 * async-event.c (struct async_signal_handler, struct
11171 async_event_handler): Reformat, remove typedef.
11173 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11175 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11176 access thistype->main_type->dyn_prop_list directly.
11178 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11180 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11181 (remove_dyn_prop): Remove. Update all users to use
11182 type::remove_dyn_prop.
11183 * gdbtypes.c (remove_dyn_prop): Rename to...
11184 (type::remove_dyn_prop): ... this.
11186 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11188 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11189 (add_dyn_prop): Remove. Update all users to use
11190 type::add_dyn_prop.
11191 * gdbtypes.c (add_dyn_prop): Rename to...
11192 (type::add_dyn_prop): ... this.
11194 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11196 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11197 (get_dyn_prop): Remove. Update all users to use
11199 * gdbtypes.c (get_dyn_prop): Rename to...
11200 (type::dyn_prop): ... this.
11202 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11204 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11206 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11208 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11209 instruction, skip it if it's there.
11211 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11213 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11215 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11217 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11218 * gdbtypes.c (recursive_dump_type): Remove use of
11221 2020-05-03 Tom Tromey <tom@tromey.com>
11223 * breakpoint.c (catch_command, tcatch_command): Remove.
11224 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11225 add_show_prefix_cmd.
11226 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11227 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11229 (add_internal_problem_command): Use add_basic_prefix_cmd,
11230 add_show_prefix_cmd.
11231 * mips-tdep.c (set_mipsfpu_command): Remove.
11232 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11233 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11234 (_initialize_index_cache): Use add_basic_prefix_cmd.
11235 * memattr.c (dummy_cmd): Remove.
11236 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11237 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11238 (_initialize_tui_win): Use add_basic_prefix_cmd,
11239 add_show_prefix_cmd.
11240 * cli/cli-logging.c (set_logging_command): Remove.
11241 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11242 add_show_prefix_cmd.
11243 (show_logging_command): Remove.
11244 * target.c (target_command): Remove.
11245 (add_target): Use add_basic_prefix_cmd.
11247 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11249 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11251 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11253 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11256 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11258 * nbsd-nat.c (nbsd_enable_proc_events)
11259 (nbsd_nat_target::post_startup_inferior): Add.
11260 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11261 (nbsd_nat_target::update_thread_list): Rewrite.
11262 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11263 "PTRACE_LWP_CREATE".
11264 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11266 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11268 * stack.c (_initialize_stack): Remove duplicated creation
11269 of "frame" command and "f" alias.
11271 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11274 * gdbtypes.c (check_typedef): Calculate size of array of
11277 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11280 * i386-tdep.c (i386_push_dummy_call): Call
11281 i386_thiscall_push_dummy_call.
11282 (i386_thiscall_push_dummy_call): New function.
11283 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11284 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11285 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11287 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11289 * gdbarch.sh (do_read): Add shellcheck disable directive for
11292 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11294 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11295 "referenced but not assigned" warning.
11297 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11299 * gdbarch.sh: Remove code that sets fallbackdefault.
11301 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11303 * gdbarch.sh: Use shell operators && and || instead of
11306 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11308 * gdbarch.sh: Use $(...) instead of `...`.
11310 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11312 * gdbarch.sh: Use double quotes around variables.
11314 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11316 * gdbarch.sh: Use %s with printf, instead of variables in the
11319 2020-04-29 Tom Tromey <tromey@adacore.com>
11322 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11324 (read_enumeration_type): Call
11325 update_enumeration_type_from_children later. Update comments.
11326 (process_enumeration_scope): Don't create type fields.
11328 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11330 * nbsd-tdep.c: Include "xml-syscall.h".
11331 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11333 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11335 * nbsd-nat.c: Include "sys/wait.h".
11336 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11337 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11338 (nbsd_nat_target::remove_exec_catchpoint)
11339 (nbsd_nat_target::set_syscall_catchpoint): Add.
11340 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11341 (nbsd_nat_target::insert_exec_catchpoint)
11342 (nbsd_nat_target::remove_exec_catchpoint)
11343 (nbsd_nat_target::set_syscall_catchpoint): Add.
11344 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11345 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11346 `nbsd_get_syscall_number'.
11348 2020-04-29 Tom Tromey <tom@tromey.com>
11350 * stack.c (print_block_frame_labels): Remove.
11352 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11355 * ada-valprint.c (val_print_packed_array_elements): Move array
11356 end bracket to new line.
11357 (ada_val_print_string): Remove extra spaces before first array
11359 * c-valprint.c (c_value_print_array): Likewise.
11360 * m2-valprint.c (m2_print_array_contents): Likewise.
11361 (m2_value_print_inner): Likewise.
11362 * p-valprint.c (pascal_value_print_inner): Likewise.
11363 * valprint.c (generic_val_print_array): Likewise.
11364 (value_print_array_elements): Move first array element and array
11365 end bracket to new line.
11367 2020-04-29 Tom de Vries <tdevries@suse.de>
11370 * linespec.c (find_method): Fix ix calculation.
11372 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11374 * syscalls/update-netbsd.sh: New file.
11375 * syscalls/netbsd.xml: Regenerate.
11376 * data-directory/Makefile.in: Register `netbsd.xml' in
11379 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11381 * syscalls/update-freebsd.sh: Add double quotes.
11383 2020-04-28 Tom Tromey <tom@tromey.com>
11386 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11387 (cmdpy_init): Allow class_tui.
11389 2020-04-28 Mark Williams <mark@myosotissp.com>
11392 * dwarf2read.c: Add missing assingments to list_in_scope when
11393 start_symtab was already called.
11395 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11398 * dwarf2/read.c (offset_map_type): Use
11399 gdb:hash_enum<sect_offset> as hash function.
11401 2020-04-28 Tom de Vries <tdevries@suse.de>
11403 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11404 with DW_AT_signature.
11406 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11408 * configure.ac: Remove check for fs_base/gs_base in
11410 * configure: Re-generate.
11411 * config.in: Re-generate.
11412 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11413 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11414 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11416 2020-04-27 Luis Machado <luis.machado@linaro.org>
11418 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11419 problematic inline frame unwinding situation.
11420 * frame.c (frame_id_computed_p): New function.
11421 * frame.h (frame_id_computed_p): New prototype.
11423 2020-04-26 Tom Tromey <tom@tromey.com>
11425 * command.h (enum command_class) <class_pseudo>: Remove.
11427 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11429 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11432 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11434 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11435 `PT_GET_PROCESS_STATE' block.
11437 2020-04-24 Tom Tromey <tom@tromey.com>
11439 * symtab.h (symbol_get_demangled_name): Don't declare.
11440 * symtab.c (symbol_get_demangled_name): Remove.
11441 (general_symbol_info::natural_name)
11442 (general_symbol_info::demangled_name): Update.
11444 2020-04-24 Tom Tromey <tom@tromey.com>
11447 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11449 2020-04-24 Tom Tromey <tom@tromey.com>
11452 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11454 (new_symbol): Likewise.
11455 * compile/compile-object-load.c (get_out_value_type): Use
11456 symbol_matches_search_name.
11458 2020-04-24 Tom Tromey <tom@tromey.com>
11460 * dwarf2/read.c (add_partial_symbol): Do not call
11461 compute_and_set_names.
11463 2020-04-24 Tom Tromey <tom@tromey.com>
11465 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11468 2020-04-24 Tom Tromey <tom@tromey.com>
11470 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11471 (add_psymbol_to_list): New overload. Make old overload call new
11473 * psympriv.h (add_psymbol_to_list): New overload.
11475 2020-04-24 Tom Tromey <tom@tromey.com>
11477 * dwarf2/read.c (partial_die_info::read) <case
11478 DW_AT_linkage_name>: Use value_as_string.
11479 (dwarf2_string_attr): Use value_as_string.
11480 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11482 * dwarf2/attribute.c (attribute::value_as_string): New method.
11484 2020-04-24 Tom Tromey <tom@tromey.com>
11486 * symtab.c (general_symbol_info::natural_name)
11487 (general_symbol_info::demangled_name): Check for language_rust.
11489 2020-04-24 Tom Tromey <tom@tromey.com>
11491 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11492 (dwarf2_physname): ... from here.
11493 (partial_die_info::read): Add Rust "{" hack.
11495 2020-04-24 Tom Tromey <tom@tromey.com>
11497 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11499 (symbol_set_demangled_name): Don't declare.
11500 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11501 symbol_set_demangled_name.
11502 (general_symbol_info::set_language)
11503 (general_symbol_info::compute_and_set_names): Update.
11504 * minsyms.c (minimal_symbol_reader::install): Update.
11505 * dwarf2/read.c (new_symbol): Update.
11507 2020-04-24 Tom Tromey <tromey@adacore.com>
11510 * python/py-type.c (convert_field): Handle
11511 FIELD_LOC_KIND_DWARF_BLOCK.
11512 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11513 (typy_get_dynamic): Nw function.
11514 (type_object_getset): Add "dynamic".
11517 2020-04-24 Tom Tromey <tromey@adacore.com>
11519 * ada-typeprint.c (print_choices, print_variant_part)
11520 (print_record_field_types_dynamic): New functions.
11521 (print_record_field_types): Use print_record_field_types_dynamic.
11523 2020-04-24 Tom Tromey <tromey@adacore.com>
11525 * dwarf2/read.c (handle_data_member_location): New overload.
11526 (dwarf2_add_field): Use it.
11527 (decode_locdesc): Add "computed" parameter. Update comment.
11528 * gdbtypes.c (is_dynamic_type_internal): Also look for
11529 FIELD_LOC_KIND_DWARF_BLOCK.
11530 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11531 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11532 virtual base classes.
11533 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11534 FIELD_LOC_KIND_DWARF_BLOCK.
11536 2020-04-24 Tom Tromey <tromey@adacore.com>
11538 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11539 * gdbtypes.c (is_dynamic_type_internal): Check
11540 TYPE_HAS_DYNAMIC_LENGTH.
11541 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11542 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11544 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11547 2020-04-24 Tom Tromey <tromey@adacore.com>
11549 * dwarf2/read.c (struct variant_field): Rewrite.
11550 (struct variant_part_builder): New.
11551 (struct nextfield): Remove "variant" field. Add "offset".
11552 (struct field_info): Add "current_variant_part" and
11554 (alloc_discriminant_info): Remove.
11555 (alloc_rust_variant): New function.
11556 (quirk_rust_enum): Update.
11557 (dwarf2_add_field): Set "offset" member. Don't handle
11558 DW_TAG_variant_part.
11559 (offset_map_type): New typedef.
11560 (convert_variant_range, create_one_variant)
11561 (create_one_variant_part, create_variant_parts)
11562 (add_variant_property): New functions.
11563 (dwarf2_attach_fields_to_type): Call add_variant_property.
11564 (read_structure_type): Don't handle DW_TAG_variant_part.
11565 (handle_variant_part, handle_variant): New functions.
11566 (handle_struct_member_die): Use them.
11567 (process_structure_scope): Don't handle variant parts.
11568 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11569 (struct discriminant_info): Remove.
11570 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11571 (struct main_type) <flag_discriminated_union>: Remove.
11572 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11573 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11574 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11576 * valops.c (value_union_variant): Remove.
11577 * value.h (value_union_variant): Don't declare.
11579 2020-04-24 Tom Tromey <tromey@adacore.com>
11581 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11582 (ada_value_primitive_packed_val): Update.
11583 * ada-valprint.c (ada_value_print_1): Update.
11584 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11585 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11586 just an address. Use evaluate_for_locexpr_baton.
11587 (dwarf2_evaluate_property): Update.
11588 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11590 * findvar.c (default_read_var_value): Update.
11591 * gdbtypes.c (compute_variant_fields_inner)
11592 (resolve_dynamic_type_internal): Update.
11593 (resolve_dynamic_type): Change type of valaddr parameter.
11594 * gdbtypes.h (resolve_dynamic_type): Update.
11595 * valarith.c (value_subscripted_rvalue): Update.
11596 * value.c (value_from_contents_and_address): Update.
11598 2020-04-24 Tom Tromey <tromey@adacore.com>
11600 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11601 "push_initial_value" parameter.
11602 (dwarf2_evaluate_property): Likewise.
11603 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11605 2020-04-24 Tom Tromey <tromey@adacore.com>
11607 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11608 (variant::matches, compute_variant_fields_recurse)
11609 (compute_variant_fields_inner, compute_variant_fields): New
11611 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11612 Use resolved_type after type is made.
11613 (operator==): Add new cases.
11614 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11615 (struct discriminant_range, struct variant, struct variant_part):
11617 (union dynamic_prop_data) <variant_parts, original_type>: New
11619 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11620 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11622 * value.c (unpack_bits_as_long): Now public.
11623 * value.h (unpack_bits_as_long): Declare.
11625 2020-04-24 Tom Tromey <tromey@adacore.com>
11627 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11628 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11630 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11632 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11634 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11636 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11637 (remove_fork_catchpoint, post_startup_inferior)
11638 (post_attach): Move...
11639 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11640 (remove_fork_catchpoint, post_startup_inferior)
11641 (post_attach): ...here.
11642 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11643 (remove_fork_catchpoint, post_startup_inferior)
11644 (post_attach): Move...
11645 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11646 (remove_fork_catchpoint, post_startup_inferior)
11647 (post_attach): ...here.
11649 2020-04-24 Tom Tromey <tromey@adacore.com>
11651 * nat/windows-nat.h (struct windows_thread_info)
11652 <pc_adjusted>: New member.
11653 * windows-nat.c (windows_fetch_one_register): Check
11655 (windows_nat_target::get_windows_debug_event)
11656 (windows_nat_target::wait): Set pc_adjusted.
11658 2020-04-24 Tom de Vries <tdevries@suse.de>
11660 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11661 Run gdb-add-index inside temp dir.
11663 2020-04-23 Tom Tromey <tromey@adacore.com>
11665 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11668 2020-04-23 Luis Machado <luis.machado@linaro.org>
11670 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11671 get_frame_register instead of gdbarch_unwind_pc.
11673 2020-04-23 Tom de Vries <tdevries@suse.de>
11675 * symtab.c (lookup_global_symbol): Prefer def over decl.
11677 2020-04-23 Tom de Vries <tdevries@suse.de>
11680 * block.c (best_symbol, better_symbol): Promote to external.
11681 * block.h (best_symbol, better_symbol): Declare.
11682 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11685 2020-04-23 Tom Tromey <tromey@adacore.com>
11688 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11689 "const char *", not a "const std::string &".
11690 <name_and_matcher::operator==>: Update.
11691 * unittests/lookup_name_info-selftests.c: Change type of
11694 2020-04-23 Tom Tromey <tom@tromey.com>
11696 * inferior.h (iterate_over_inferiors): Don't declare.
11697 * inferior.c (iterate_over_inferiors): Remove.
11698 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11700 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11701 use iterate_over_inferiors.
11702 (darwin_resume_inferior_it)
11703 (struct resume_inferior_threads_param)
11704 (darwin_resume_inferior_threads_it): Remove.
11705 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11707 2020-04-23 Tom de Vries <tdevries@suse.de>
11709 * blockframe.c (find_pc_partial_function): Use
11710 find_pc_sect_compunit_symtab rather than
11711 objfile->sf->qf->find_pc_sect_compunit_symtab.
11713 2020-04-22 Tom de Vries <tdevries@suse.de>
11716 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11719 2020-04-22 Tom de Vries <tdevries@suse.de>
11722 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11725 2020-04-22 Tom de Vries <tdevries@suse.de>
11728 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11729 CU if already created.
11731 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11733 * infrun.c (displaced_step_fixup): Switch to the event_thread
11734 before calling displaced_step_restore, not after.
11736 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11738 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11739 its inferior is not recorded by us.
11740 (record_btrace_target_open): Replace call to
11741 all_non_exited_threads () with call to current_inferior
11742 ()->non_exited_threads ().
11743 (record_btrace_target::stop_recording): Likewise.
11744 (record_btrace_target::close): Likewise.
11745 (record_btrace_target::wait): Likewise.
11746 (record_btrace_target::record_stop_replaying): Likewise.
11748 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11750 * btrace.c (btrace_enable): Throw an error on double enables and
11751 when enabling recording fails.
11752 (btrace_disable): Throw an error if the thread is not recorded.
11754 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11756 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11757 request if we do not have a thread_info.
11759 2020-04-21 Tom de Vries <tdevries@suse.de>
11763 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11764 exception in get_frame_id.
11766 2020-04-20 Tom Tromey <tromey@adacore.com>
11768 * python/python.c (struct gdbpy_event): Mark move constructor as
11770 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11771 constructor as noexcept.
11772 * completer.h (struct completion_result): Mark move constructor as
11774 * completer.c (completion_result::completion_result): Use
11775 initialization style. Don't call reset_match_list.
11777 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11779 * MAINTAINERS (Write After Approval): Add myself.
11781 2020-04-18 Tom Tromey <tom@tromey.com>
11783 * windows-tdep.c (init_w32_command_list)
11784 (w32_prefix_command_valid): Restore.
11785 (_initialize_windows_tdep): Call init_w32_command_list.
11787 2020-04-18 Tom Tromey <tom@tromey.com>
11789 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11790 * value.c (value_fn_field): Update.
11791 * valops.c (find_function_in_inferior)
11792 (value_allocate_space_in_inferior): Update.
11793 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11795 * tui/tui-source.c (tui_source_window::set_contents): Update.
11796 * symtab.c (lookup_global_or_static_symbol)
11797 (find_function_start_sal_1, skip_prologue_sal)
11798 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11799 * symmisc.c (dump_msymbols, dump_symtab_1)
11800 (maintenance_print_one_line_table): Update.
11801 * symfile.c (init_entry_point_info, section_is_mapped)
11802 (list_overlays_command, simple_read_overlay_table)
11803 (simple_overlay_update_1): Update.
11804 * stap-probe.c (handle_stap_probe): Update.
11805 * stabsread.c (dbx_init_float_type, define_symbol)
11806 (read_one_struct_field, read_enum_type, read_range_type): Update.
11807 * source.c (info_line_command): Update.
11808 * python/python.c (gdbpy_source_objfile_script)
11809 (gdbpy_execute_objfile_script): Update.
11810 * python/py-type.c (save_objfile_types): Update.
11811 * python/py-objfile.c (py_free_objfile): Update.
11812 * python/py-inferior.c (python_new_objfile): Update.
11813 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11814 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11815 (maintenance_check_psymtabs): Update.
11816 * printcmd.c (info_address_command): Update.
11817 * objfiles.h (struct objfile) <arch>: New method, from
11819 (get_objfile_arch): Don't declare.
11820 * objfiles.c (get_objfile_arch): Remove.
11821 (filter_overlapping_sections): Update.
11822 * minsyms.c (msymbol_is_function): Update.
11823 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11824 (output_nondebug_symbol): Update.
11825 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11826 (mdebug_expand_psymtab): Update.
11827 * machoread.c (macho_add_oso_symfile): Update.
11828 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11830 * linux-fork.c (checkpoint_command): Update.
11831 * linespec.c (convert_linespec_to_sals): Update.
11832 * jit.c (finalize_symtab): Update.
11833 * infrun.c (insert_exception_resume_from_probe): Update.
11834 * ia64-tdep.c (ia64_find_unwind_table): Update.
11835 * hppa-tdep.c (internalize_unwinds): Update.
11836 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11838 * gcore.c (call_target_sbrk): Update.
11839 * elfread.c (record_minimal_symbol, elf_symtab_read)
11840 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11841 (elf_gnu_ifunc_resolve_by_got): Update.
11842 * dwarf2/read.c (create_addrmap_from_index)
11843 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11844 (read_debug_names_from_section)
11845 (process_psymtab_comp_unit_reader, add_partial_symbol)
11846 (add_partial_subprogram, process_full_comp_unit)
11847 (read_file_scope, read_func_scope, read_lexical_block_scope)
11848 (read_call_site_scope, dwarf2_ranges_read)
11849 (dwarf2_record_block_ranges, dwarf2_add_field)
11850 (mark_common_block_symbol_computed, read_tag_pointer_type)
11851 (read_tag_string_type, dwarf2_init_float_type)
11852 (dwarf2_init_complex_target_type, read_base_type)
11853 (partial_die_info::read, partial_die_info::read)
11854 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11855 (dwarf2_fetch_die_loc_sect_off): Update.
11856 * dwarf2/loc.c (dwarf2_find_location_expression)
11857 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11858 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11859 (dwarf2_loc_desc_get_symbol_read_needs)
11860 (locexpr_describe_location_piece, locexpr_describe_location_1)
11861 (loclist_describe_location): Update.
11862 * dwarf2/index-write.c (write_debug_names): Update.
11863 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11864 * dtrace-probe.c (dtrace_process_dof): Update.
11865 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11866 (process_one_symbol): Update.
11867 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11868 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11869 (coff_read_enum_type): Update.
11870 * cli/cli-cmds.c (edit_command, list_command): Update.
11871 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11872 * breakpoint.c (create_overlay_event_breakpoint)
11873 (create_longjmp_master_breakpoint)
11874 (create_std_terminate_master_breakpoint)
11875 (create_exception_master_breakpoint, get_sal_arch): Update.
11876 * block.c (block_gdbarch): Update.
11877 * annotate.c (annotate_source_line): Update.
11879 2020-04-17 Tom Tromey <tromey@adacore.com>
11881 * auto-load.c (show_auto_load_cmd): Remove.
11882 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11883 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11884 (maintenance_print_arc_command): Remove.
11885 * tui/tui-win.c (tui_command): Remove.
11886 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11887 * tui/tui-layout.c (tui_layout_command): Remove.
11888 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11889 * python/python.c (user_set_python, user_show_python): Remove.
11890 (_initialize_python): Use add_basic_prefix_cmd,
11891 add_show_prefix_cmd.
11892 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11893 (install_gdb_commands): Use add_basic_prefix_cmd,
11894 add_show_prefix_cmd.
11895 (info_guile_command): Remove.
11896 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11897 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11898 add_show_prefix_cmd.
11899 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11900 Remove do_set and do_show parameters.
11901 * cli/cli-style.c (set_style, show_style): Remove.
11902 (_initialize_cli_style): Use add_basic_prefix_cmd,
11903 add_show_prefix_cmd.
11904 (cli_style_option::add_setshow_commands): Remove do_set and
11905 do_show parameters.
11906 (cli_style_option::add_setshow_commands): Use
11907 add_basic_prefix_cmd, add_show_prefix_cmd.
11908 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11909 (set_style_name): Remove.
11910 * cli/cli-dump.c (dump_command, append_command): Remove.
11911 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11912 (tekhex_dump_command, binary_dump_command)
11913 (binary_append_command): Remove.
11914 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11915 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11916 (init_w32_command_list): Remove; move into ...
11917 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11918 * valprint.c (set_print, show_print, set_print_raw)
11919 (show_print_raw): Remove.
11920 (_initialize_valprint): Use add_basic_prefix_cmd,
11921 add_show_prefix_cmd.
11922 * typeprint.c (set_print_type, show_print_type): Remove.
11923 (_initialize_typeprint): Use add_basic_prefix_cmd,
11924 add_show_prefix_cmd.
11925 * record.c (set_record_command, show_record_command): Remove.
11926 (_initialize_record): Use add_basic_prefix_cmd,
11927 add_show_prefix_cmd.
11928 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11929 add_show_prefix_cmd.
11930 (info_command, show_command, set_debug, show_debug): Remove.
11931 * top.h (set_history, show_history): Don't declare.
11932 * top.c (set_history, show_history): Remove.
11933 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11934 (unset_tdesc_cmd): Remove.
11935 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11936 add_show_prefix_cmd.
11937 * symtab.c (info_module_command): Remove.
11938 (_initialize_symtab): Use add_basic_prefix_cmd.
11939 * symfile.c (overlay_command): Remove.
11940 (_initialize_symfile): Use add_basic_prefix_cmd.
11941 * sparc64-tdep.c (info_adi_command): Remove.
11942 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11943 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11944 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11945 add_show_prefix_cmd.
11946 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11947 (_initialize_serial): Use add_basic_prefix_cmd,
11948 add_show_prefix_cmd.
11949 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11950 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11951 add_show_prefix_cmd.
11952 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11953 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11954 add_show_prefix_cmd.
11955 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11956 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11957 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11958 add_show_prefix_cmd.
11959 * remote.c (remote_command, set_remote_cmd): Remove.
11960 (_initialize_remote): Use add_basic_prefix_cmd.
11961 * record-full.c (set_record_full_command)
11962 (show_record_full_command): Remove.
11963 (_initialize_record_full): Use add_basic_prefix_cmd,
11964 add_show_prefix_cmd.
11965 * record-btrace.c (cmd_set_record_btrace)
11966 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11967 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11968 (cmd_show_record_btrace_pt): Remove.
11969 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11970 add_show_prefix_cmd.
11971 * ravenscar-thread.c (set_ravenscar_command)
11972 (show_ravenscar_command): Remove.
11973 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11974 add_show_prefix_cmd.
11975 * mips-tdep.c (show_mips_command, set_mips_command)
11976 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11977 add_show_prefix_cmd.
11978 * maint.c (maintenance_command, maintenance_info_command)
11979 (maintenance_check_command, maintenance_print_command)
11980 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11981 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11982 add_show_prefix_cmd.
11983 (show_per_command_cmd): Remove.
11984 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11986 (maintenance_show_test_settings_cmd): Remove.
11987 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11988 add_show_prefix_cmd.
11989 * maint-test-options.c (maintenance_test_options_command):
11991 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11992 * macrocmd.c (macro_command): Remove
11993 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11994 * language.c (set_check, show_check): Remove.
11995 (_initialize_language): Use add_basic_prefix_cmd,
11996 add_show_prefix_cmd.
11997 * infcmd.c (unset_command): Remove.
11998 (_initialize_infcmd): Use add_basic_prefix_cmd.
11999 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12000 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12001 add_show_prefix_cmd.
12002 * go32-nat.c (go32_info_dos_command): Remove.
12003 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12004 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12005 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12006 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12007 (_initialize_frame): Use add_basic_prefix_cmd,
12008 add_show_prefix_cmd.
12009 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12010 (_initialize_dcache): Use add_basic_prefix_cmd,
12011 add_show_prefix_cmd.
12012 * cp-support.c (maint_cplus_command): Remove.
12013 (_initialize_cp_support): Use add_basic_prefix_cmd.
12014 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12015 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12016 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12017 add_basic_prefix_cmd, add_show_prefix_cmd.
12018 * breakpoint.c (save_command): Remove.
12019 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12020 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12021 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12022 add_show_prefix_cmd.
12023 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12024 (set_ada_command, show_ada_command): Remove.
12025 (_initialize_ada_language): Use add_basic_prefix_cmd,
12026 add_show_prefix_cmd.
12027 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12029 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12031 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12032 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12034 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12036 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12039 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12041 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12042 import table is not at beginning of .idata section.
12044 2020-04-16 Pedro Alves <palves@redhat.com>
12046 * inferior.c (delete_inferior): Use delete operator directly
12047 instead of delete_program_space.
12048 * progspace.c (add_program_space): New, factored out from
12049 program_space::program_space.
12050 (remove_program_space): New, factored out from
12051 delete_program_space.
12052 (program_space::program_space): Remove intro comment. Rewrite.
12053 (program_space::~program_space): Remove intro comment. Call
12054 remove_program_space.
12055 (delete_program_space): Delete.
12056 * progspace.h (program_space::program_space): Make explicit. Move
12057 intro comment here, adjusted.
12058 (program_space::~program_space): Move intro comment here,
12060 (delete_program_space): Remove.
12062 2020-04-16 Tom Tromey <tromey@adacore.com>
12064 * windows-nat.c (windows_nat::handle_access_violation): New
12066 * nat/windows-nat.h (handle_access_violation): Declare.
12067 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12068 windows-nat.c. Call handle_access_violation.
12070 2020-04-16 Tom de Vries <tdevries@suse.de>
12073 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12074 CUs without psymtab.
12076 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12078 * python/python.c (do_start_initialization): Don't call
12079 PyEval_InitThreads for Python 3.9 and beyond.
12081 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12083 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12085 (obsd_nat_target::wait): Likewise.
12087 2020-04-15 Tom Tromey <tromey@adacore.com>
12089 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12090 (DEBUG_EXCEPT): Use debug_printf.
12092 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12094 * completer.c (class completion_tracker::completion_hash_entry)
12095 <hash_name>: New member function.
12096 (completion_tracker::discard_completions): New callback to hash a
12097 completion_hash_entry, pass this to htab_create_alloc.
12099 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12101 * windows-nat.c (windows_make_so): Warn rather than stopping with
12102 an error if realpath() fails.
12104 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12106 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12107 (nbsd_nat_target::info_proc): Add do_status.
12109 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12110 Tom de Vries <tdevries@suse.de>
12113 * psympriv.h (struct partial_symtab::read_symtab)
12114 (struct partial_symtab::expand_psymtab)
12115 (struct partial_symtab::read_dependencies): Update comments.
12116 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12117 read_symtab for includer.
12118 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12119 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12120 (struct dwarf2_include_psymtab::m_readin): Remove.
12121 (struct dwarf2_include_psymtab::includer): New member function.
12122 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12124 2020-04-14 Tom de Vries <tdevries@suse.de>
12127 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12128 with NULL symbol_matcher and lookup_name.
12129 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12131 * dwarf2/read.c (dw2_expand_symtabs_matching)
12132 (dw2_debug_names_expand_symtabs_matching): Same.
12133 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12134 Make lookup_name a pointer. Update comment.
12135 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12136 lookup_name being a pointer.
12137 * symfile.c (expand_symtabs_matching): Same.
12138 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12139 * linespec.c (iterate_over_all_matching_symtabs): Same.
12141 2020-04-13 Tom Tromey <tom@tromey.com>
12143 * run-on-main-thread.c: Update include.
12144 * unittests/main-thread-selftests.c: Update include.
12145 * tui/tui-win.c: Update include.
12146 * tui/tui-io.c: Update include.
12147 * tui/tui-interp.c: Update include.
12148 * tui/tui-hooks.c: Update include.
12149 * top.h: Update include.
12150 * top.c: Update include.
12151 * ser-base.c: Update include.
12152 * remote.c: Update include.
12153 * remote-notif.c: Update include.
12154 * remote-fileio.c: Update include.
12155 * record-full.c: Update include.
12156 * record-btrace.c: Update include.
12157 * python/python.c: Update include.
12158 * posix-hdep.c: Update include.
12159 * mingw-hdep.c: Update include.
12160 * mi/mi-main.c: Update include.
12161 * mi/mi-interp.c: Update include.
12162 * main.c: Update include.
12163 * linux-nat.c: Update include.
12164 * interps.c: Update include.
12165 * infrun.c: Update include.
12166 * inf-loop.c: Update include.
12167 * event-top.c: Update include.
12168 * event-loop.c: Move to ../gdbsupport/.
12169 * event-loop.h: Move to ../gdbsupport/.
12170 * async-event.h: Update include.
12171 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12173 2020-04-13 Tom Tromey <tom@tromey.com>
12175 * tui/tui-win.c: Include async-event.h.
12176 * remote.c: Include async-event.h.
12177 * remote-notif.c: Include async-event.h.
12178 * record-full.c: Include async-event.h.
12179 * record-btrace.c: Include async-event.h.
12180 * infrun.c: Include async-event.h.
12181 * event-top.c: Include async-event.h.
12182 * event-loop.h: Move some declarations to async-event.h.
12183 * event-loop.c: Don't include ser-event.h or top.h. Move some
12184 code to async-event.c.
12185 * async-event.h: New file.
12186 * async-event.c: New file.
12187 * Makefile.in (COMMON_SFILES): Add async-event.c.
12188 (HFILES_NO_SRCDIR): Add async-event.h.
12190 2020-04-13 Tom Tromey <tom@tromey.com>
12192 * utils.c (flush_streams): New function.
12193 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12195 2020-04-13 Tom Tromey <tom@tromey.com>
12197 * event-loop.c (handle_file_event): Use warning, not
12200 2020-04-13 Tom Tromey <tom@tromey.com>
12202 * event-loop.c: Include <chrono>.
12204 2020-04-13 Tom Tromey <tom@tromey.com>
12206 * gdb_select.h: Move to ../gdbsupport/.
12207 * event-loop.c: Update include path.
12208 * top.c: Update include path.
12209 * ser-base.c: Update include path.
12210 * ui-file.c: Update include path.
12211 * ser-tcp.c: Update include path.
12212 * guile/scm-ports.c: Update include path.
12213 * posix-hdep.c: Update include path.
12214 * ser-unix.c: Update include path.
12215 * gdb_usleep.c: Update include path.
12216 * mingw-hdep.c: Update include path.
12217 * inflow.c: Update include path.
12218 * infrun.c: Update include path.
12219 * event-top.c: Update include path.
12221 2020-04-13 Tom Tromey <tom@tromey.com>
12223 * configure: Rebuild.
12224 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12226 2020-04-13 Tom Tromey <tom@tromey.com>
12228 * event-loop.h (start_event_loop): Don't declare.
12229 * event-loop.c (start_event_loop): Move...
12230 * main.c (start_event_loop): ...here. Now static.
12232 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12234 * MAINTAINERS: Update my email address.
12236 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12238 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12241 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12243 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12244 (nbsd_nat_target::info_proc): Add do_cmdline.
12246 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12248 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12249 (nbsd_nat_target::info_proc): Add do_cwd.
12251 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12253 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12255 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12257 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12258 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12259 (nbsd_nat_target::info_proc): New functions.
12260 * nbsd-nat.c (kinfo_get_vmmap): New function.
12261 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12262 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12263 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12264 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12266 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12267 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12268 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12269 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12270 (KINFO_VME_FLAG_GROWS_DOWN): New.
12272 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12274 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12277 2020-04-10 Tom Tromey <tromey@adacore.com>
12279 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12281 2020-04-10 Tom Tromey <tromey@adacore.com>
12283 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12284 separate debug files.
12286 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12288 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12290 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12292 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12293 Check for STATUS_WX86_BREAKPOINT.
12294 (windows_nat_target::wait): Same.
12296 2020-04-10 Tom de Vries <tdevries@suse.de>
12299 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12301 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12303 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12304 (Write After Approval): Remove Tom de Vries.
12306 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12309 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12311 * buildsym.c (record_line): Fix undefined behavior and preserve
12314 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12316 * auxv.h (svr4_auxv_parse): New.
12317 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12318 and generic_auxv_parse.
12319 (svr4_auxv_parse): Add.
12320 * obsd-tdep.c: Include "auxv.h".
12321 (obsd_auxv_parse): Remove.
12322 (obsd_init_abi): Remove comment.
12323 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12324 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12325 * nbsd-tdep.c: Include "auxv.h".
12326 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12328 2020-04-08 Tom Tromey <tromey@adacore.com>
12330 * nat/windows-nat.h (last_wait_event): Don't declare.
12331 (wait_for_debug_event): Update comment.
12332 * nat/windows-nat.c (last_wait_event): Now static.
12334 2020-04-08 Tom Tromey <tromey@adacore.com>
12336 * windows-nat.c (wait_for_debug_event): Move to
12338 * nat/windows-nat.h (wait_for_debug_event): Declare.
12339 * nat/windows-nat.c (wait_for_debug_event): Move from
12340 windows-nat.c. No longer static.
12342 2020-04-08 Tom Tromey <tromey@adacore.com>
12344 * windows-nat.c (get_windows_debug_event): Use
12345 fetch_pending_stop.
12346 * nat/windows-nat.h (fetch_pending_stop): Declare.
12347 * nat/windows-nat.c (fetch_pending_stop): New function.
12349 2020-04-08 Tom Tromey <tromey@adacore.com>
12351 * windows-nat.c (windows_continue): Use matching_pending_stop and
12352 continue_last_debug_event.
12353 * nat/windows-nat.h (matching_pending_stop)
12354 (continue_last_debug_event): Declare.
12355 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12356 (matching_pending_stop, continue_last_debug_event): New
12359 2020-04-08 Tom Tromey <tromey@adacore.com>
12361 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12362 (handle_exception_result): Move to nat/windows-nat.h.
12363 (DEBUG_EXCEPTION_SIMPLE): Remove.
12364 (windows_nat::handle_ms_vc_exception): New function.
12365 (handle_exception): Move to nat/windows-nat.c.
12366 (get_windows_debug_event): Update.
12367 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12369 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12370 (handle_exception_result): Move from windows-nat.c.
12371 (handle_exception): Declare.
12372 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12373 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12376 2020-04-08 Tom Tromey <tromey@adacore.com>
12378 * windows-nat.c (exception_count, event_count): Remove.
12379 (handle_exception, get_windows_debug_event)
12380 (do_initial_windows_stuff): Update.
12382 2020-04-08 Tom Tromey <tromey@adacore.com>
12384 * windows-nat.c (windows_nat::handle_load_dll)
12385 (windows_nat::handle_unload_dll): Rename. No longer static.
12386 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12389 2020-04-08 Tom Tromey <tromey@adacore.com>
12391 * complaints.h (stop_whining): Declare at top-level.
12392 (complaint): Don't declare stop_whining.
12394 2020-04-08 Tom Tromey <tromey@adacore.com>
12396 * windows-nat.c (windows_nat::handle_output_debug_string):
12397 Rename. No longer static.
12398 * nat/windows-nat.h (handle_output_debug_string): Declare.
12400 2020-04-08 Tom Tromey <tromey@adacore.com>
12402 * windows-nat.c (current_process_handle, current_process_id)
12403 (main_thread_id, last_sig, current_event, last_wait_event)
12404 (current_windows_thread, desired_stop_thread_id, pending_stops)
12405 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12406 (display_selectors, fake_create_process)
12407 (get_windows_debug_event): Update.
12408 * nat/windows-nat.h (current_process_handle, current_process_id)
12409 (main_thread_id, last_sig, current_event, last_wait_event)
12410 (current_windows_thread, desired_stop_thread_id, pending_stops)
12411 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12412 * nat/windows-nat.c (current_process_handle, current_process_id)
12413 (main_thread_id, last_sig, current_event, last_wait_event)
12414 (current_windows_thread, desired_stop_thread_id, pending_stops)
12415 (siginfo_er): New globals. Move from windows-nat.c.
12417 2020-04-08 Tom Tromey <tromey@adacore.com>
12419 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12420 (handle_load_dll): Update.
12421 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12423 2020-04-08 Tom Tromey <tromey@adacore.com>
12425 * windows-nat.c (enum thread_disposition_type): Move to
12427 (windows_nat::thread_rec): Rename from thread_rec. No longer
12429 (windows_add_thread, windows_nat_target::fetch_registers)
12430 (windows_nat_target::store_registers, handle_exception)
12431 (windows_nat_target::resume, get_windows_debug_event)
12432 (windows_nat_target::get_tib_address)
12433 (windows_nat_target::thread_name)
12434 (windows_nat_target::thread_alive): Update.
12435 * nat/windows-nat.h (enum thread_disposition_type): Move from
12437 (thread_rec): Declare.
12439 2020-04-08 Tom Tromey <tromey@adacore.com>
12441 * windows-nat.c: Add "using namespace".
12442 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12443 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12445 2020-04-08 Tom Tromey <tromey@adacore.com>
12447 * nat/windows-nat.h (struct windows_thread_info): Declare
12449 * nat/windows-nat.c (~windows_thread_info): New.
12451 2020-04-08 Tom Tromey <tromey@adacore.com>
12454 * windows-nat.c (current_event): Update comment.
12455 (last_wait_event, desired_stop_thread_id): New globals.
12456 (struct pending_stop): New.
12457 (pending_stops): New global.
12458 (windows_nat_target) <stopped_by_sw_breakpoint>
12459 <supports_stopped_by_sw_breakpoint>: New methods.
12460 (windows_fetch_one_register): Add assertions. Adjust PC.
12461 (windows_continue): Handle pending stops. Suspend other threads
12462 when stepping. Use last_wait_event
12463 (wait_for_debug_event): New function.
12464 (get_windows_debug_event): Use wait_for_debug_event. Handle
12465 pending stops. Queue spurious stops.
12466 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12467 (windows_nat_target::kill): Use wait_for_debug_event.
12468 * nat/windows-nat.h (struct windows_thread_info)
12469 <stopped_at_software_breakpoint>: New field.
12470 * nat/windows-nat.c (windows_thread_info::resume): Clear
12471 stopped_at_software_breakpoint.
12473 2020-04-08 Tom Tromey <tromey@adacore.com>
12475 * windows-nat.c (enum thread_disposition_type): New.
12476 (thread_rec): Replace "get_context" parameter with "disposition";
12478 (windows_add_thread, windows_nat_target::fetch_registers)
12479 (windows_nat_target::store_registers, handle_exception)
12480 (windows_nat_target::resume, get_windows_debug_event)
12481 (windows_nat_target::get_tib_address)
12482 (windows_nat_target::thread_name)
12483 (windows_nat_target::thread_alive): Update.
12485 2020-04-08 Tom Tromey <tromey@adacore.com>
12487 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12488 (windows_continue): Use windows_continue::resume.
12489 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12490 resume>: Declare new methods.
12491 * nat/windows-nat.c: New file.
12492 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12494 2020-04-08 Tom Tromey <tromey@adacore.com>
12496 * windows-nat.c (windows_add_thread, windows_delete_thread)
12497 (windows_nat_target::fetch_registers)
12498 (windows_nat_target::store_registers, fake_create_process)
12499 (windows_nat_target::resume, windows_nat_target::resume)
12500 (get_windows_debug_event, windows_nat_target::wait)
12501 (windows_nat_target::pid_to_str)
12502 (windows_nat_target::get_tib_address)
12503 (windows_nat_target::get_ada_task_ptid)
12504 (windows_nat_target::thread_name)
12505 (windows_nat_target::thread_alive): Use lwp, not tid.
12507 2020-04-08 Tom Tromey <tromey@adacore.com>
12509 * windows-nat.c (handle_exception)
12510 (windows_nat_target::thread_name): Update.
12511 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12512 <name>: Now unique_xmalloc_ptr.
12514 2020-04-08 Tom Tromey <tromey@adacore.com>
12516 * windows-nat.c (thread_rec)
12517 (windows_nat_target::fetch_registers): Update.
12518 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12520 <debug_registers_changed, reload_context>: Now bool.
12522 2020-04-08 Tom Tromey <tromey@adacore.com>
12524 * windows-nat.c (windows_add_thread): Use new.
12525 (windows_init_thread_list, windows_delete_thread): Use delete.
12526 (get_windows_debug_event): Update.
12527 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12528 destructor, and initializers.
12530 2020-04-08 Tom Tromey <tromey@adacore.com>
12532 * windows-nat.c (struct windows_thread_info): Remove.
12533 * nat/windows-nat.h: New file.
12535 2020-04-08 Tom Tromey <tromey@adacore.com>
12537 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12538 (thread_rec, windows_add_thread, windows_delete_thread)
12539 (windows_continue): Update.
12541 2020-04-08 Tom Tromey <tromey@adacore.com>
12543 * windows-nat.c (struct windows_thread_info): Remove typedef.
12544 (thread_head): Remove.
12545 (thread_list): New global.
12546 (thread_rec, windows_add_thread, windows_init_thread_list)
12547 (windows_delete_thread, windows_continue): Update.
12549 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12551 * windows-tdep.h (windows_init_abi): Add comment.
12552 (cygwin_init_abi): New declaration.
12553 * windows-tdep.c: Split signal enumeration in two, one for
12554 Windows and one for Cygwin.
12555 (windows_gdb_signal_to_target): Only deal with signal of the
12557 (cygwin_gdb_signal_to_target): New function.
12558 (windows_init_abi): Rename to windows_init_abi_common, don't set
12559 gdb_signal_to_target gdbarch method. Add new new function with
12561 (cygwin_init_abi): New function.
12562 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12563 comment. Don't call windows_init_abi.
12564 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12565 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12566 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12567 i386_windows_init_abi_common, don't call windows_init_abi. Add
12568 a new function of this name.
12569 (i386_cygwin_init_abi): New function.
12570 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12573 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12575 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12577 (dwarf2_read_gdb_index): Update.
12579 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12581 * nbsd-tdep.c: Include "objfiles.h".
12582 (nbsd_skip_solib_resolver): New.
12583 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12585 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12587 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12588 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12589 with DW_LLE_base_addressx are being emitted in DWARFv5.
12590 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12591 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12594 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12596 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12597 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12598 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12599 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12600 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12601 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12602 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12605 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12607 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12608 (read_loclist_index): New function definition.
12609 (lookup_loclist_base): New function definition.
12610 (read_loclist_header): New function definition.
12611 (dwarf2_cu): Add loclist_base and loclist_header field.
12612 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12613 (read_full_die_1): Read the value of DW_AT_loclists_base.
12614 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12615 (read_attribute_value): Handle DW_FORM_loclistx.
12616 (skip_one_die): Handle DW_FORM_loclistx.
12617 (loclist_header): New structure declaration.
12618 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12620 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12622 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12623 constructor. Remove `addr` parameter from other constructor and
12624 add `per_cu` parameter.
12625 * dwarf2/read.c (create_partial_symtab): Update.
12627 2020-04-07 Tom de Vries <tdevries@suse.de>
12630 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12631 (partial_die_info::fixup): Inherit has_const_value.
12633 2020-04-07 Tom de Vries <tdevries@suse.de>
12635 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12636 symbols without address.
12638 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12640 * nbsd-nat.h (struct thread_info): Add forward declaration.
12641 (nbsd_nat_target::thread_alive): Add.
12642 (nbsd_nat_target::thread_name): Likewise.
12643 (nbsd_nat_target::update_thread_list): Likewise.
12644 (update_thread_list::post_attach): Likewise.
12645 (post_attach::pid_to_str): Likewise.
12646 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12647 (nbsd_thread_lister): Add.
12648 (nbsd_nat_target::thread_alive): Likewise.
12649 (nbsd_nat_target::thread_name): Likewise.
12650 (nbsd_add_threads): Likewise.
12651 (update_thread_list::post_attach): Likewise.
12652 (nbsd_nat_target::update_thread_list): Likewise.
12653 (post_attach::pid_to_str): Likewise.
12655 2020-04-06 Tom Tromey <tromey@adacore.com>
12657 * ada-valprint.c (print_variant_part): Extract the variant field.
12658 (print_field_values): Use the field as the outer value when
12661 2020-04-06 Tom Tromey <tromey@adacore.com>
12663 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12664 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12665 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12666 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12667 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12669 2020-04-06 Tom Tromey <tromey@adacore.com>
12671 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12674 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12676 * nbsd-tdep.c: Include "gdbarch.h".
12677 Define enum with NetBSD signal numbers.
12678 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12679 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12680 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12681 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12682 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12683 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12684 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12685 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12686 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12687 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12688 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12689 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12691 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12694 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12696 2020-04-03 Tom Tromey <tromey@adacore.com>
12698 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12699 Read constant block.
12701 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12703 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12704 (gdb_bfd_get_full_section_contents): New declaration.
12705 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12706 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12707 gdb_bfd_get_full_section_contents.
12709 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12711 * exec.c (build_section_table): Replace internal_error with
12713 (section_table_xfer_memory_partial): Likewise.
12714 * mdebugread.c (parse_partial_symbols): Likewise.
12715 * psymtab.c (lookup_partial_symbol): Likewise.
12716 * utils.c (wrap_here): Likewise.
12718 2020-04-02 Tom Tromey <tromey@adacore.com>
12720 * f-lang.c (build_fortran_types): Use arch_type to initialize
12721 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12723 2020-04-02 Tom Tromey <tromey@adacore.com>
12725 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12728 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12729 Bernd Edlinger <bernd.edlinger@hotmail.de>
12730 Tom Tromey <tromey@adacore.com>
12732 * buildsym.c (buildsym_compunit::record_line): Remove
12733 deduplication code.
12735 2020-04-02 Tom de Vries <tdevries@suse.de>
12738 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12740 2020-04-02 Tom de Vries <tdevries@suse.de>
12742 * dwarf2/read.c (dwarf2_gdb_index_functions,
12743 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12745 * psymtab.c (psym_lookup_global_symbol_language): New function.
12746 (psym_functions): Init psym_lookup_global_symbol_language with
12747 psym_lookup_global_symbol_language.
12748 * symfile-debug.c (debug_sym_quick_functions): Init
12749 lookup_global_symbol_language with NULL.
12750 * symfile.c (set_initial_language): Remove fixme comment.
12751 * symfile.h (struct quick_symbol_functions): Add
12752 lookup_global_symbol_language.
12753 * symtab.c (find_quick_global_symbol_language): New function.
12754 (find_main_name): Use find_quick_global_symbol_language.
12756 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12758 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12760 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12762 * buildsym.c (record_line): Fix undefined behavior and preserve
12765 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12767 * buildsym.c (record_line): Fix the resizing condition.
12769 2020-04-01 Tom Tromey <tom@tromey.com>
12771 * value.h (value_literal_complex): Add comment.
12772 * valops.c (value_literal_complex): Refer to value.h.
12774 2020-04-01 Tom Tromey <tom@tromey.com>
12776 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12777 (scalar_type): New rule, from typebase.
12778 (typebase): Use scalar_type. Recognize complex types.
12779 (field_name): Handle FLOAT_KEYWORD.
12780 (ident_tokens): Add _Complex and __complex__.
12782 2020-04-01 Tom Tromey <tom@tromey.com>
12785 * valarith.c (promotion_type, complex_binop): New functions.
12786 (scalar_binop): Handle complex numbers. Use promotion_type.
12787 (value_pos, value_neg, value_complement): Handle complex numbers.
12789 2020-04-01 Tom Tromey <tom@tromey.com>
12791 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12792 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12793 (parse_number): Handle complex numbers.
12795 2020-04-01 Tom Tromey <tom@tromey.com>
12797 * c-valprint.c (c_decorations): Change complex suffix to "i".
12799 2020-04-01 Tom Tromey <tom@tromey.com>
12801 * valprint.c (generic_value_print_complex): Use accessors.
12802 * value.h (value_real_part, value_imaginary_part): Declare.
12803 * valops.c (value_real_part, value_imaginary_part): New
12805 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12807 2020-04-01 Tom Tromey <tom@tromey.com>
12809 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12810 (read_range_type): Update.
12811 * mdebugread.c (basic_type): Update.
12812 * go-lang.c (build_go_types): Use init_complex_type.
12813 * gdbtypes.h (struct main_type) <complex_type>: New member.
12814 (init_complex_type): Update.
12815 (arch_complex_type): Don't declare.
12816 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12817 Make name if none given. Use alloc_type_copy. Look for cached
12819 (arch_complex_type): Remove.
12820 (gdbtypes_post_init): Use init_complex_type.
12821 * f-lang.c (build_fortran_types): Use init_complex_type.
12822 * dwarf2/read.c (read_base_type): Update.
12823 * d-lang.c (build_d_types): Use init_complex_type.
12824 * ctfread.c (read_base_type): Update.
12826 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12828 * infrun.c (stop_all_threads): Update assertion, plus when
12829 stopping threads, take into account that we might be trying
12830 to stop an all-stop target.
12831 (stop_waiting): Call 'stop_all_threads' if there exists a
12834 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12836 * target.h (exists_non_stop_target): New function declaration.
12837 * target.c (exists_non_stop_target): New function.
12839 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12842 * eval.c (is_integral_or_integral_reference): New function.
12843 (evaluate_subexp_standard): Allow integer references in
12844 pointer arithmetic.
12846 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12848 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12849 check for no ptid in the stop reply when the target is non-stop.
12851 2020-04-01 Tom Tromey <tromey@adacore.com>
12853 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12854 "name" parameter to rvalue reference. Initialize m_name_holder.
12855 <lookup_name_info>: New overloads.
12856 <name>: Return gdb::string_view.
12857 <c_str>: New method.
12858 <make_ignore_params>: Update.
12859 <search_name_hash>: Update.
12860 <language_lookup_name>: Return const char *.
12861 <m_name>: Change type.
12862 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12863 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12864 (lookup_name_info::match_any): Update.
12865 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12867 * minsyms.c (linkage_name_str): Update.
12868 * language.c (default_symbol_name_matcher): Update.
12869 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12871 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12872 (ada_lookup_name_info::ada_lookup_name_info): Update.
12873 (literal_symbol_name_matcher): Update.
12875 2020-04-01 Tom Tromey <tromey@adacore.com>
12877 * psymtab.c (psymtab_search_name): Remove function.
12878 (psym_lookup_symbol): Create search name and lookup name here.
12879 (lookup_partial_symbol): Remove "name" parameter; add
12881 (psym_expand_symtabs_for_function): Update.
12883 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12886 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12888 2020-03-31 Tom Tromey <tromey@adacore.com>
12890 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12893 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12895 * features/riscv/32bit-csr.xml: Regenerated.
12896 * features/riscv/64bit-csr.xml: Regenerated.
12898 2020-03-30 Tom Tromey <tromey@adacore.com>
12900 * ada-valprint.c (print_variant_part): Update.
12901 * ada-lang.h (ada_which_variant_applies): Update.
12902 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12903 outer_valaddr parameters; replace with "outer" value parameter.
12904 (to_fixed_variant_branch_type): Update.
12906 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12908 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12909 <list>. Remove inclusion of observable.h.
12910 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12911 (struct arch_lwp_info): New struct.
12912 (class ppc_linux_dreg_interface): New class.
12913 (struct ppc_linux_process_info): New struct.
12914 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12915 <low_new_clone, low_forget_process, low_prepare_to_resume>
12916 <copy_thread_dreg_state, mark_thread_stale>
12917 <mark_debug_registers_changed, register_hw_breakpoint>
12918 <clear_hw_breakpoint, register_wp, clear_wp>
12919 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12920 <num_memory_accesses, get_trigger_type>
12921 <create_watchpoint_request, hwdebug_point_cmp>
12922 <init_arch_lwp_info, get_arch_lwp_info>
12923 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12925 <struct ptid_hash>: New inner struct.
12926 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12928 (saved_dabr_value, hwdebug_info, max_slots_number)
12929 (struct hw_break_tuple, struct thread_points, ppc_threads)
12930 (have_ptrace_hwdebug_interface)
12931 (hwdebug_find_thread_points_by_tid)
12932 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12933 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12934 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12935 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12936 use m_dreg_interface.
12937 (hwdebug_point_cmp): Change to...
12938 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12939 reference arguments instead of pointers.
12940 (ppc_linux_nat_target::ranged_break_num_registers): Use
12942 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12943 m_dreg_interface. Call register_hw_breakpoint.
12944 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12945 m_dreg_interface. Call clear_hw_breakpoint.
12946 (get_trigger_type): Change to...
12947 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12949 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12950 use m_dreg_interface. Call register_hw_breakpoint.
12951 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12952 use m_dreg_interface. Call clear_hw_breakpoint.
12953 (can_use_watchpoint_cond_accel): Change to...
12954 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12955 method. Update comment, use m_dreg_interface and
12957 (calculate_dvc): Change to...
12958 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12960 (num_memory_accesses): Change to...
12961 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12962 (check_condition): Change to...
12963 (ppc_linux_nat_target::check_condition): ...this method.
12964 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12965 comment, use m_dreg_interface.
12966 (create_watchpoint_request): Change to...
12967 (ppc_linux_nat_target::create_watchpoint_request): ...this
12968 method. Use m_dreg_interface.
12969 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12970 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12971 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12972 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12973 (ppc_linux_nat_target::low_forget_process)
12974 (ppc_linux_nat_target::low_new_fork)
12975 (ppc_linux_nat_target::low_new_clone)
12976 (ppc_linux_nat_target::low_delete_thread)
12977 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12978 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12979 only call mark_thread_stale.
12980 (ppc_linux_thread_exit): Remove.
12981 (ppc_linux_nat_target::stopped_data_address): Change to...
12982 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12983 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12984 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12985 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12986 comment. Call low_stopped_data_address.
12987 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12989 (ppc_linux_nat_target::masked_watch_num_registers): Use
12991 (ppc_linux_nat_target::copy_thread_dreg_state)
12992 (ppc_linux_nat_target::mark_thread_stale)
12993 (ppc_linux_nat_target::mark_debug_registers_changed)
12994 (ppc_linux_nat_target::register_hw_breakpoint)
12995 (ppc_linux_nat_target::clear_hw_breakpoint)
12996 (ppc_linux_nat_target::register_wp)
12997 (ppc_linux_nat_target::clear_wp)
12998 (ppc_linux_nat_target::init_arch_lwp_info)
12999 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13000 (_initialize_ppc_linux_nat): Remove observer callback.
13002 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13004 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13005 (ppc_linux_nat_target::auxv_parse)
13006 (ppc_linux_nat_target::read_description)
13007 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13010 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13012 * linux-nat.h (low_new_clone): New method.
13013 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13015 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13017 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13018 (dbx_expand_psymtab): ... this.
13019 (start_psymtab): Update.
13020 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13021 (mdebug_expand_psymtab): ... this.
13022 (parse_partial_symbols): Update.
13023 (new_psymtab): Update.
13024 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13025 (xcoff_expand_psymtab): ... this.
13026 (xcoff_start_psymtab): Update.
13028 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13030 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13031 <expand_dependencies>: ... this.
13032 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13033 (partial_symtab::expand_dependencies): ... this.
13034 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13036 (dwarf2_psymtab::expand_psymtab): Update.
13037 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13038 * mdebugread.c (psymtab_to_symtab_1): Update.
13039 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13041 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13043 * psympriv.h (discard_psymtab): Remove.
13044 * dbxread.c (dbx_end_psymtab): Update.
13045 * xcoffread.c (xcoff_end_psymtab): Update.
13047 2020-03-28 Tom Tromey <tom@tromey.com>
13049 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13052 2020-03-28 Tom Tromey <tom@tromey.com>
13054 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13056 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13058 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13060 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13062 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13064 2020-03-26 Tom Tromey <tom@tromey.com>
13066 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13067 (mark_common_block_symbol_computed, read_tag_string_type)
13068 (attr_to_dynamic_prop, read_subrange_type): Update.
13069 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13070 to be methods on struct attribute.
13071 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13072 (read_call_site_scope, partial_die_info::read)
13073 (partial_die_info::read, lookup_die_type, follow_die_ref):
13075 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13076 from dwarf2_get_ref_die_offset.
13077 (attribute::constant_value): New method, from
13078 dwarf2_get_attr_constant_value.
13079 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13081 <constant_value>: New method.
13083 2020-03-26 Tom Tromey <tom@tromey.com>
13085 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13086 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13087 (dwarf_type_encoding_name): Move to stringify.c.
13088 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13089 * dwarf2/stringify.c: New file.
13090 * dwarf2/stringify.h: New file.
13092 2020-03-26 Tom Tromey <tom@tromey.com>
13094 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13097 2020-03-26 Tom Tromey <tom@tromey.com>
13099 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13101 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13102 (lookup_ranges_base): Likewise.
13103 (read_cutu_die_from_dwo, read_full_die_1): Update.
13105 2020-03-26 Tom Tromey <tom@tromey.com>
13107 * dwarf2/read.c (read_import_statement, read_file_scope)
13108 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13109 (read_lexical_block_scope, read_call_site_scope)
13110 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13111 (handle_struct_member_die, process_structure_scope)
13112 (update_enumeration_type_from_children)
13113 (process_enumeration_scope, read_array_type, read_common_block)
13114 (read_namespace, read_module, read_subroutine_type): Update.
13115 (sibling_die): Remove.
13117 2020-03-26 Tom Tromey <tom@tromey.com>
13119 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13120 (build_type_psymtabs_reader, read_structure_type)
13121 (read_enumeration_type, read_full_die_1): Update.
13122 (dwarf2_attr_no_follow): Move to die.h.
13123 * dwarf2/die.h (struct die_info) <attr>: New method.
13125 2020-03-26 Tom Tromey <tom@tromey.com>
13127 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13128 <base_address>: Now an optional.
13129 (dwarf2_find_base_address, dwarf2_rnglists_process)
13130 (dwarf2_ranges_process, fill_in_loclist_baton)
13131 (dwarf2_symbol_mark_computed): Update.
13133 2020-03-26 Tom Tromey <tom@tromey.com>
13135 * dwarf2/read.c (struct die_info): Move to die.h.
13136 * dwarf2/die.h: New file.
13138 2020-03-26 Tom Tromey <tom@tromey.com>
13140 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13142 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13143 Move to line-header.c.
13144 (read_checked_initial_length_and_offset, read_formatted_entries):
13146 (dwarf_decode_line_header): Split into two.
13147 * dwarf2/line-header.c
13148 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13150 (read_checked_initial_length_and_offset, read_formatted_entries):
13152 (dwarf_decode_line_header): New function, split from read.c.
13154 2020-03-26 Tom Tromey <tom@tromey.com>
13156 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13158 * dwarf2/read.c (read_attribute_value): Update.
13159 (dwarf2_per_objfile::read_line_string): Rename from
13160 read_indirect_line_string.
13161 (read_formatted_entries): Update.
13163 2020-03-26 Tom Tromey <tom@tromey.com>
13165 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13168 2020-03-26 Tom Tromey <tom@tromey.com>
13170 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13172 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13173 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13176 2020-03-26 Tom Tromey <tom@tromey.com>
13178 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13179 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13180 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13181 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13183 2020-03-26 Tom Tromey <tom@tromey.com>
13185 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13186 file_names_size, file_full_name, file_file_name>: Use const.
13187 <file_name_at, file_names>: Add const overload.
13188 * dwarf2/line-header.c (line_header::file_file_name)
13189 (line_header::file_full_name): Update.
13191 2020-03-26 Tom Tromey <tom@tromey.com>
13193 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13194 (macro_start_file, consume_improper_spaces)
13195 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13196 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13197 (dwarf_decode_macros): Move to macro.c.
13198 * dwarf2/macro.c: New file.
13199 * dwarf2/macro.h: New file.
13200 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13202 2020-03-26 Tom Tromey <tom@tromey.com>
13204 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13206 * dwarf2/section.c: New method. From
13207 read_indirect_string_at_offset_from.
13208 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13209 (read_indirect_string_at_offset_from): Move to section.c.
13210 (read_indirect_string_at_offset): Rewrite.
13211 (read_indirect_line_string_at_offset): Remove.
13212 (read_indirect_string, read_indirect_line_string)
13213 (dwarf_decode_macro_bytes): Update.
13215 2020-03-26 Tom Tromey <tom@tromey.com>
13217 * dwarf2/section.h (struct dwarf2_section_info)
13218 <overload_complaint>: Declare.
13219 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13220 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13221 Rename from dwarf2_section_buffer_overflow_complaint.
13222 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13223 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13225 2020-03-26 Tom Tromey <tom@tromey.com>
13227 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13229 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13231 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13234 2020-03-26 Tom Tromey <tom@tromey.com>
13236 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13238 2020-03-26 Tom Tromey <tom@tromey.com>
13240 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13242 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13244 (dwarf_decode_macros): Update.
13246 2020-03-26 Tom Tromey <tom@tromey.com>
13248 * dwarf2/read.c (read_attribute_value): Update.
13249 (read_indirect_string_from_dwz): Move to dwz.c; change into
13251 (dwarf_decode_macro_bytes): Update.
13252 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13253 * dwarf2/dwz.c: New file.
13254 * Makefile.in (COMMON_SFILES): Add dwz.c.
13256 2020-03-26 Tom Tromey <tom@tromey.com>
13258 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13259 * dwarf2/read.c: Add include.
13260 * dwarf2/index-write.c: Add include.
13261 * dwarf2/index-cache.c: Add include.
13262 * dwarf2/dwz.h: New file.
13264 2020-03-25 Tom Tromey <tom@tromey.com>
13266 * compile/compile-object-load.c (get_out_value_type): Mention
13267 correct symbol name in error message.
13269 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13271 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13273 2020-03-25 Tom de Vries <tdevries@suse.de>
13275 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13276 * symmisc.c (dump_symtab_1): Print user and includes fields.
13277 (maintenance_info_symtabs): Same.
13279 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13282 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13283 (riscv_regcache_cooked_write): New function.
13284 (riscv_push_dummy_call): Use new function.
13285 (riscv_return_value): Likewise.
13287 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13289 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13290 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13291 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13292 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13293 * infrun.c (follow_fork): Likewise.
13294 (follow_fork_inferior): Likewise.
13295 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13296 * linux-nat.h (class linux_nat_target): Likewise.
13297 * remote.c (class remote_target) <follow_fork>: Likewise.
13298 (remote_target::follow_fork): Likewise.
13299 * target-delegates.c: Re-generate.
13300 * target.c (default_follow_fork): Likewise.
13301 (target_follow_fork): Likewise.
13302 * target.h (struct target_ops) <follow_fork>: Likewise.
13303 (target_follow_fork): Likewise.
13305 2020-03-24 Tom de Vries <tdevries@suse.de>
13307 * psymtab.c (maintenance_info_psymtabs): Print user field.
13309 2020-03-20 Tom Tromey <tromey@adacore.com>
13311 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13313 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13316 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13318 * ptrace.m4: Don't check for ptrace declaration.
13319 * config.in: Re-generate.
13320 * configure: Re-generate.
13321 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13324 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13326 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13328 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13329 * sparc-nat.c (gdb_ptrace): Likewise.
13330 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13332 2020-03-20 Tom Tromey <tromey@adacore.com>
13334 * c-exp.y (lex_one_token): Fix assert.
13336 2020-03-20 Tom Tromey <tromey@adacore.com>
13338 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13339 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13342 2020-03-20 Tom Tromey <tromey@adacore.com>
13344 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13346 2020-03-20 Tom Tromey <tromey@adacore.com>
13348 * ada-valprint.c (print_variant_part): Remove parameters; switch
13349 to value-based API.
13350 (print_field_values): Likewise.
13351 (ada_val_print_struct_union): Likewise.
13352 (ada_value_print_1): Update.
13354 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13356 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13357 nbsd_nat_target instead of inf_ptrace_target.
13358 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13361 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13363 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13364 it to the ptrace call.
13365 * (store_registers): Likewise.
13367 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13369 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13370 it to the ptrace call.
13371 * (store_registers): Likewise.
13373 2020-03-19 Luis Machado <luis.machado@linaro.org>
13375 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13376 valid, fetch vg value from ptrace.
13378 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13379 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13380 * inf-ptrace.c: Likewise.
13381 * (gdb_ptrace): Add.
13382 * (inf_ptrace_target::resume): Update.
13383 * (inf_ptrace_target::xfer_partial): Likewise.
13384 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13385 * (inf_ptrace_peek_poke): Update.
13387 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13389 * x86-bsd-nat.c (gdb_ptrace): New.
13390 * (x86bsd_dr_set): Add new argument `ptid'.
13391 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13392 x86bsd_dr_set_addr): Update.
13394 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13396 * remote.c (remote_target::process_stop_reply): Handle events for
13397 all threads differently.
13399 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13401 * completer.c (completion_tracker::remove_completion): Define new
13403 * completer.h (completion_tracker::remove_completion): Declare new
13405 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13406 when adding a C++ function symbol.
13408 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13410 * completer.c (completion_tracker::completion_hash_entry): Define
13412 (advance_to_filename_complete_word_point): Call
13413 recompute_lowest_common_denominator.
13414 (completion_tracker::completion_tracker): Call discard_completions
13415 to setup the hash table.
13416 (completion_tracker::discard_completions): Allow for being called
13417 from the constructor, pass new equal function, and element deleter
13418 when constructing the hash table. Initialise new class member
13420 (completion_tracker::maybe_add_completion): Remove use of
13421 m_entries_vec, and store more information into m_entries_hash.
13422 (completion_tracker::recompute_lcd_visitor): New function, most
13423 content taken from...
13424 (completion_tracker::recompute_lowest_common_denominator):
13425 ...here, this now just visits each item in the hash calling the
13427 (completion_tracker::build_completion_result): Remove use of
13428 m_entries_vec, call recompute_lowest_common_denominator.
13429 * completer.h (completion_tracker::have_completions): Remove use
13431 (completion_tracker::completion_hash_entry): Declare new class.
13432 (completion_tracker::recompute_lowest_common_denominator): Change
13433 function signature.
13434 (completion_tracker::recompute_lcd_visitor): Declare new function.
13435 (completion_tracker::m_entries_vec): Delete.
13436 (completion_tracker::m_entries_hash): Initialize to NULL.
13437 (completion_tracker::m_lowest_common_denominator_valid): New
13439 (completion_tracker::m_lowest_common_denominator_max_length): New
13442 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13444 * regformats/regdef.h: Put reg in gdb namespace.
13446 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13448 * i386-bsd-nat.c (gdb_ptrace): New.
13449 * (i386bsd_fetch_inferior_registers,
13450 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13451 * (i386bsd_fetch_inferior_registers,
13452 i386bsd_store_inferior_registers) Use gdb_ptrace.
13454 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13456 * amd64-bsd-nat.c (gdb_ptrace): New.
13457 * (amd64bsd_fetch_inferior_registers,
13458 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13459 * (amd64bsd_fetch_inferior_registers,
13460 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13462 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13464 * user-regs.c (user_reg::read): Rename to...
13465 (user_reg::xread): ...this.
13466 * (append_user_reg): Rename argument `read' to `xread'.
13467 * (user_reg_add_builtin): Likewise.
13468 * (user_reg_add): Likewise.
13469 * (value_of_user_reg): Likewise.
13471 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13473 * sparc-nat.c (gdb_ptrace): New.
13474 * sparc-nat.c (sparc_fetch_inferior_registers)
13475 (sparc_store_inferior_registers) Remove obsolete comment.
13476 * sparc-nat.c (sparc_fetch_inferior_registers)
13477 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13478 * sparc-nat.c (sparc_fetch_inferior_registers)
13479 (sparc_store_inferior_registers) Use gdb_ptrace.
13481 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13483 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13484 it to the ptrace call.
13485 * sh-nbsd-nat.c (store_registers): Likewise.
13487 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13489 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13490 nbsd_nat_target instead of inf_ptrace_target.
13491 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13494 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13496 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13498 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13500 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13502 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13504 2020-03-17 Tom de Vries <tdevries@suse.de>
13507 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13509 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13511 (process_imported_unit_die): Skip import of c++ CUs.
13513 2020-03-16 Tom Tromey <tom@tromey.com>
13515 * p-valprint.c (pascal_object_print_value): Initialize
13518 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13519 Shahab Vahedi <shahab@synopsys.com>
13521 * Makefile.in: Add arch/arc.o
13522 * configure.tgt: Likewise.
13523 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13524 (_initialize_arc_tdep): Don't initialize old target descriptions.
13525 (arc_read_description): New function to cache target descriptions.
13526 * arc-tdep.h (arc_read_description): Add proto type.
13527 * arch/arc.c: New file.
13528 * arch/arc.h: Likewise.
13529 * features/Makefile: Replace old target descriptions with new.
13530 * features/arc-arcompact.c: Remove.
13531 * features/arc-arcompact.xml: Likewise.
13532 * features/arc-v2.c: Likewise
13533 * features/arc-v2.xml: Likewise
13534 * features/arc/aux-arcompact.xml: New file.
13535 * features/arc/aux-v2.xml: Likewise.
13536 * features/arc/core-arcompact.xml: Likewise.
13537 * features/arc/core-v2.xml: Likewise.
13538 * features/arc/aux-arcompact.c: Generate.
13539 * features/arc/aux-v2.c: Likewise.
13540 * features/arc/core-arcompact.c: Likewise.
13541 * features/arc/core-v2.c: Likewise.
13542 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13544 2020-03-16 Tom Tromey <tromey@adacore.com>
13547 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13548 putting value into bcache.
13550 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13553 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13555 (amd64_windows_init_abi_common): ... this. Don't set size of
13557 (amd64_windows_init_abi): New function.
13558 (amd64_cygwin_init_abi): New function.
13559 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13561 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13564 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13566 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13567 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13568 (pe_import_directory_entry): New struct type.
13569 (is_linked_with_cygwin_dll): New function.
13570 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13571 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13572 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13574 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13576 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13577 i386_cygwin_core_osabi_sniffer.
13579 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13581 * i386-cygwin-tdep.c: Rename to...
13582 * i386-windows-tdep.c: ... this.
13583 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13584 i386-windows-tdep.c.
13585 * configure.tgt: Likewise.
13587 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13589 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13590 * osabi.c (gdb_osabi_names): Add "Windows".
13591 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13592 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13593 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13594 i386_cygwin_osabi_sniffer.
13595 (_initialize_i386_cygwin_tdep): Register OS ABI
13596 GDB_OSABI_WINDOWS for i386.
13597 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13598 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13599 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13601 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13602 when the target matches '*-*-mingw*'.
13604 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13606 * defs.h (enum gdb_osabi): Move to...
13607 * osabi.h (enum gdb_osabi): ... here.
13608 * gdbarch.sh: Include osabi.h in gdbarch.h.
13609 * gdbarch.h: Re-generate.
13611 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13613 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13615 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13617 2020-03-14 Tom Tromey <tom@tromey.com>
13619 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13621 (c_type_print_modifier): Likewise. Add "language" parameter.
13622 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13623 (c_type_print_base_1): Update.
13624 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13626 * type-stack.c (type_stack::insert): Handle tp_atomic and
13628 (type_stack::follow_type_instance_flags): Likewise.
13629 (type_stack::follow_types): Likewise. Merge type-following code.
13630 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13631 (space_identifier, cv_with_space_id)
13632 (const_or_volatile_or_space_identifier_noopt)
13633 (const_or_volatile_or_space_identifier): Remove.
13634 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13636 (ptr_operator, typebase): Update.
13637 (enum token_flag) <FLAG_C>: New constant.
13638 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13640 (lex_one_token): Handle FLAG_C.
13642 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13644 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13645 it to the ptrace call.
13646 * m68k-bsd-nat.c (store_registers): Likewise.
13648 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13650 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13652 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13653 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13654 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13656 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13658 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13659 nbsd_nat_target instead of inf_ptrace_target.
13660 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13663 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13665 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13668 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13670 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13671 it to the ptrace call.
13672 * alpha-bsd-nat.c (store_registers): Likewise.
13674 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13676 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13678 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13679 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13680 fill_fpregset): Likewise.
13682 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13684 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13685 nbsd_nat_target instead of inf_ptrace_target.
13686 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13689 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13691 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13694 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13696 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13697 it to the ptrace call.
13698 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13699 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13700 * arm-nbsd-nat.c (store_register): Likewise.
13701 * arm-nbsd-nat.c (store_regs): Likewise.
13702 * arm-nbsd-nat.c (store_fp_register): Likewise.
13703 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13705 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13707 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13708 nbsd_nat_target instead of inf_ptrace_target.
13709 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13712 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13714 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13715 it to the ptrace call.
13716 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13718 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13720 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13721 it to the ptrace call.
13722 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13724 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13726 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13728 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13730 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13732 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13733 instead of inf_ptrace_target.
13734 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13737 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13739 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13742 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13744 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13747 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13749 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13752 2020-03-13 Tom Tromey <tom@tromey.com>
13754 * value.h (val_print): Don't declare.
13755 * valprint.h (val_print_array_elements)
13756 (val_print_scalar_formatted, generic_val_print): Don't declare.
13757 * valprint.c (generic_val_print_array): Take a struct value.
13758 (generic_val_print_ptr, generic_val_print_memberptr)
13759 (generic_val_print_bool, generic_val_print_int)
13760 (generic_val_print_char, generic_val_print_complex)
13761 (generic_val_print): Remove.
13762 (generic_value_print): Update.
13763 (do_val_print): Remove unused parameters. Don't call
13765 (val_print): Remove.
13766 (common_val_print): Update. Don't call value_check_printable.
13767 (val_print_scalar_formatted, val_print_array_elements): Remove.
13768 * rust-lang.c (rust_val_print): Remove.
13769 (rust_language_defn): Update.
13770 * p-valprint.c (pascal_val_print): Remove.
13771 (pascal_value_print_inner): Update.
13772 (pascal_object_print_val_fields, pascal_object_print_val):
13774 (pascal_object_print_static_field): Update.
13775 * p-lang.h (pascal_val_print): Don't declare.
13776 * p-lang.c (pascal_language_defn): Update.
13777 * opencl-lang.c (opencl_language_defn): Update.
13778 * objc-lang.c (objc_language_defn): Update.
13779 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13780 * m2-lang.h (m2_val_print): Don't declare.
13781 * m2-lang.c (m2_language_defn): Update.
13782 * language.h (struct language_defn) <la_val_print>: Remove.
13783 * language.c (unk_lang_value_print_inner): Rename. Change
13785 (unknown_language_defn, auto_language_defn): Update.
13786 * go-valprint.c (go_val_print): Remove.
13787 * go-lang.h (go_val_print): Don't declare.
13788 * go-lang.c (go_language_defn): Update.
13789 * f-valprint.c (f_val_print): Remove.
13790 * f-lang.h (f_value_print): Don't declare.
13791 * f-lang.c (f_language_defn): Update.
13792 * d-valprint.c (d_val_print): Remove.
13793 * d-lang.h (d_value_print): Don't declare.
13794 * d-lang.c (d_language_defn): Update.
13795 * cp-valprint.c (cp_print_value_fields)
13796 (cp_print_value_fields_rtti, cp_print_value): Remove.
13797 (cp_print_static_field): Update.
13798 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13799 (c_val_print_struct, c_val_print_union, c_val_print_int)
13800 (c_val_print_memberptr, c_val_print): Remove.
13801 * c-lang.h (c_val_print_array, cp_print_value_fields)
13802 (cp_print_value_fields_rtti): Don't declare.
13803 * c-lang.c (c_language_defn, cplus_language_defn)
13804 (asm_language_defn, minimal_language_defn): Update.
13805 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13806 (ada_val_print_enum): Take a struct value.
13807 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13808 (ada_val_print): Remove.
13809 (ada_value_print_1): Update.
13810 (printable_val_type): Remove.
13811 * ada-lang.h (ada_val_print): Don't declare.
13812 * ada-lang.c (ada_language_defn): Update.
13814 2020-03-13 Tom Tromey <tom@tromey.com>
13816 * valprint.c (do_val_print): Update.
13817 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13819 (value_to_value_object_no_release): Declare.
13820 * python/py-value.c (value_to_value_object_no_release): New
13822 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13824 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13826 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13828 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13830 (gdbscm_apply_val_pretty_printer): Take a struct value.
13831 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13833 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13835 * extension-priv.h (struct extension_language_ops)
13836 <apply_val_pretty_printer>: Take a struct value.
13837 * cp-valprint.c (cp_print_value): Create a struct value.
13838 (cp_print_value): Update.
13840 2020-03-13 Tom Tromey <tom@tromey.com>
13842 * ada-valprint.c (print_field_values): Call common_val_print.
13844 2020-03-13 Tom Tromey <tom@tromey.com>
13846 * ada-valprint.c (val_print_packed_array_elements): Remove
13847 bitoffset and val parameters. Call common_val_print.
13848 (ada_val_print_string): Remove offset, address, and original_value
13850 (ada_val_print_array): Update.
13851 (ada_value_print_array): New function.
13852 (ada_value_print_1): Call it.
13854 2020-03-13 Tom Tromey <tom@tromey.com>
13856 * ada-valprint.c (ada_value_print): Use common_val_print.
13858 2020-03-13 Tom Tromey <tom@tromey.com>
13860 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13862 2020-03-13 Tom Tromey <tom@tromey.com>
13864 * ada-valprint.c (ada_value_print_num): New function.
13865 (ada_value_print_1): Use it.
13867 2020-03-13 Tom Tromey <tom@tromey.com>
13869 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13871 2020-03-13 Tom Tromey <tom@tromey.com>
13873 * ada-valprint.c (ada_value_print_ptr): New function.
13874 (ada_value_print_1): Use it.
13876 2020-03-13 Tom Tromey <tom@tromey.com>
13878 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13879 call common_val_print.
13880 (ada_val_print_1): Update.
13881 (ada_value_print_1): New function.
13882 (ada_value_print_inner): Rewrite.
13884 2020-03-13 Tom Tromey <tom@tromey.com>
13886 * cp-valprint.c (cp_print_value_fields): Update.
13887 (cp_print_value): New function.
13889 2020-03-13 Tom Tromey <tom@tromey.com>
13891 * m2-valprint.c (m2_value_print_inner): Use
13892 cp_print_value_fields.
13893 * cp-valprint.c (cp_print_value_fields): New function.
13894 * c-valprint.c (c_value_print_struct): New function.
13895 (c_value_print_inner): Use c_value_print_struct.
13896 * c-lang.h (cp_print_value_fields): Declare.
13898 2020-03-13 Tom Tromey <tom@tromey.com>
13900 * c-valprint.c (c_value_print_array): New function.
13901 (c_value_print_inner): Use it.
13903 2020-03-13 Tom Tromey <tom@tromey.com>
13905 * c-valprint.c (c_value_print_memberptr): New function.
13906 (c_value_print_inner): Use it.
13908 2020-03-13 Tom Tromey <tom@tromey.com>
13910 * c-valprint.c (c_value_print_int): New function.
13911 (c_value_print_inner): Use it.
13913 2020-03-13 Tom Tromey <tom@tromey.com>
13915 * c-valprint.c (c_value_print_ptr): New function.
13916 (c_value_print_inner): Use it.
13918 2020-03-13 Tom Tromey <tom@tromey.com>
13920 * c-valprint.c (c_value_print_inner): Rewrite.
13922 2020-03-13 Tom Tromey <tom@tromey.com>
13924 * valprint.c (generic_value_print_complex): New function.
13925 (generic_value_print): Use it.
13927 2020-03-13 Tom Tromey <tom@tromey.com>
13929 * valprint.c (generic_val_print_float): Don't call
13930 val_print_scalar_formatted.
13931 (generic_val_print, generic_value_print): Update.
13933 2020-03-13 Tom Tromey <tom@tromey.com>
13935 * valprint.c (generic_value_print_char): New function
13936 (generic_value_print): Use it.
13938 2020-03-13 Tom Tromey <tom@tromey.com>
13940 * valprint.c (generic_value_print_int): New function.
13941 (generic_value_print): Use it.
13943 2020-03-13 Tom Tromey <tom@tromey.com>
13945 * valprint.c (generic_value_print_bool): New function.
13946 (generic_value_print): Use it.
13948 2020-03-13 Tom Tromey <tom@tromey.com>
13950 * valprint.c (generic_val_print_func): Simplify.
13951 (generic_val_print, generic_value_print): Update.
13953 2020-03-13 Tom Tromey <tom@tromey.com>
13955 * valprint.c (generic_val_print_flags): Remove.
13956 (generic_val_print, generic_value_print): Update.
13957 (val_print_type_code_flags): Add original_value parameter.
13959 2020-03-13 Tom Tromey <tom@tromey.com>
13961 * valprint.c (generic_val_print): Update.
13962 (generic_value_print): Update.
13963 * valprint.c (generic_val_print_enum): Don't call
13964 val_print_scalar_formatted.
13966 2020-03-13 Tom Tromey <tom@tromey.com>
13968 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13969 * valprint.c (generic_value_print_ptr): New function.
13971 2020-03-13 Tom Tromey <tom@tromey.com>
13973 * valprint.c (generic_value_print): Rewrite.
13975 2020-03-13 Tom Tromey <tom@tromey.com>
13977 * p-valprint.c (pascal_object_print_value_fields)
13978 (pascal_object_print_value): New functions.
13980 2020-03-13 Tom Tromey <tom@tromey.com>
13982 * p-valprint.c (pascal_value_print_inner): Rewrite.
13984 2020-03-13 Tom Tromey <tom@tromey.com>
13986 * f-valprint.c (f_value_print_innner): Rewrite.
13988 2020-03-13 Tom Tromey <tom@tromey.com>
13990 * m2-valprint.c (m2_print_unbounded_array): New overload.
13991 (m2_print_unbounded_array): Update.
13992 (m2_print_array_contents): Take a struct value.
13993 (m2_value_print_inner): Rewrite.
13995 2020-03-13 Tom Tromey <tom@tromey.com>
13997 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13998 (d_value_print_inner): New function.
13999 * d-lang.h (d_value_print_inner): Declare.
14000 * d-lang.c (d_language_defn): Use d_value_print_inner.
14002 2020-03-13 Tom Tromey <tom@tromey.com>
14004 * go-valprint.c (go_value_print_inner): New function.
14005 * go-lang.h (go_value_print_inner): Declare.
14006 * go-lang.c (go_language_defn): Use go_value_print_inner.
14008 2020-03-13 Tom Tromey <tom@tromey.com>
14010 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14012 (rust_val_print): Rewrite.
14013 (rust_value_print_inner): New function, from rust_val_print.
14014 (rust_language_defn): Use rust_value_print_inner.
14016 2020-03-13 Tom Tromey <tom@tromey.com>
14018 * ada-valprint.c (ada_value_print_inner): New function.
14019 * ada-lang.h (ada_value_print_inner): Declare.
14020 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14022 2020-03-13 Tom Tromey <tom@tromey.com>
14024 * f-valprint.c (f_value_print_innner): New function.
14025 * f-lang.h (f_value_print_innner): Declare.
14026 * f-lang.c (f_language_defn): Use f_value_print_innner.
14028 2020-03-13 Tom Tromey <tom@tromey.com>
14030 * p-valprint.c (pascal_value_print_inner): New function.
14031 * p-lang.h (pascal_value_print_inner): Declare.
14032 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14034 2020-03-13 Tom Tromey <tom@tromey.com>
14036 * m2-valprint.c (m2_value_print_inner): New function.
14037 * m2-lang.h (m2_value_print_inner): Declare.
14038 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14040 2020-03-13 Tom Tromey <tom@tromey.com>
14042 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14043 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14044 * c-valprint.c (c_value_print_inner): New function.
14045 * c-lang.h (c_value_print_inner): Declare.
14046 * c-lang.c (c_language_defn, cplus_language_defn)
14047 (asm_language_defn, minimal_language_defn): Use
14048 c_value_print_inner.
14050 2020-03-13 Tom Tromey <tom@tromey.com>
14052 * p-valprint.c (pascal_object_print_value_fields): Now static.
14053 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14055 2020-03-13 Tom Tromey <tom@tromey.com>
14057 * c-valprint.c (c_val_print_array): Simplify.
14059 2020-03-13 Tom Tromey <tom@tromey.com>
14061 * valprint.c (value_print_array_elements): New function.
14062 * valprint.h (value_print_array_elements): Declare.
14064 2020-03-13 Tom Tromey <tom@tromey.com>
14066 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14067 * mips-tdep.c (mips_print_register): Use
14068 value_print_scalar_formatted.
14070 2020-03-13 Tom Tromey <tom@tromey.com>
14072 * valprint.h (value_print_scalar_formatted): Declare.
14073 * valprint.c (value_print_scalar_formatted): New function.
14075 2020-03-13 Tom Tromey <tom@tromey.com>
14077 * valprint.h (generic_value_print): Declare.
14078 * valprint.c (generic_value_print): New function.
14080 2020-03-13 Tom Tromey <tom@tromey.com>
14082 * valprint.c (do_val_print): Call la_value_print_inner, if
14084 * rust-lang.c (rust_language_defn): Update.
14085 * p-lang.c (pascal_language_defn): Update.
14086 * opencl-lang.c (opencl_language_defn): Update.
14087 * objc-lang.c (objc_language_defn): Update.
14088 * m2-lang.c (m2_language_defn): Update.
14089 * language.h (struct language_defn) <la_value_print_inner>: New
14091 * language.c (unknown_language_defn, auto_language_defn): Update.
14092 * go-lang.c (go_language_defn): Update.
14093 * f-lang.c (f_language_defn): Update.
14094 * d-lang.c (d_language_defn): Update.
14095 * c-lang.c (c_language_defn, cplus_language_defn)
14096 (asm_language_defn, minimal_language_defn): Update.
14097 * ada-lang.c (ada_language_defn): Update.
14099 2020-03-13 Tom Tromey <tom@tromey.com>
14101 * c-valprint.c (c_value_print): Use common_val_print.
14103 2020-03-13 Tom Tromey <tom@tromey.com>
14105 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14107 2020-03-13 Tom Tromey <tom@tromey.com>
14109 * f-valprint.c (f77_print_array_1, f_val_print): Use
14112 2020-03-13 Tom Tromey <tom@tromey.com>
14114 * riscv-tdep.c (riscv_print_one_register_info): Use
14117 2020-03-13 Tom Tromey <tom@tromey.com>
14119 * mi/mi-main.c (output_register): Use common_val_print.
14121 2020-03-13 Tom Tromey <tom@tromey.com>
14123 * infcmd.c (default_print_one_register_info): Use
14126 2020-03-13 Tom Tromey <tom@tromey.com>
14128 * valprint.h (common_val_print_checked): Declare.
14129 * valprint.c (common_val_print_checked): New function.
14130 * stack.c (print_frame_arg): Use common_val_print_checked.
14132 2020-03-13 Tom Tromey <tom@tromey.com>
14134 * valprint.c (do_val_print): New function, from val_print.
14135 (val_print): Use do_val_print.
14136 (common_val_print): Use do_val_print.
14138 2020-03-13 Tom Tromey <tom@tromey.com>
14140 * valprint.c (value_print): Use scoped_value_mark.
14142 2020-03-13 Tom de Vries <tdevries@suse.de>
14145 * psymtab.c (partial_symtab::partial_symtab): Don't set
14146 globals_offset and statics_offset. Push element onto
14147 current_global_psymbols and current_static_psymbols stacks.
14148 (concat): New function.
14149 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14150 element from current_global_psymbols and current_static_psymbols
14151 stacks. Concat popped elements to global_psymbols and
14153 (add_psymbol_to_list): Use current_global_psymbols and
14154 current_static_psymbols stacks.
14155 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14156 current_static_psymbols fields.
14158 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14160 * corelow.c (sniff_core_bfd): Remove.
14161 (class core_target) <m_core_vec>: Remove.
14162 (core_target::core_target): Update.
14163 (core_file_fns): Remove.
14164 (deprecated_add_core_fns): Remove.
14165 (default_core_sniffer): Remove.
14166 (sniff_core_bfd): Remove.
14167 (default_check_format): Remove.
14168 (gdb_check_format): Remove.
14169 (core_target_open): Update.
14170 (core_target::get_core_register_section): Update.
14171 (get_core_registers_cb): Update.
14172 (core_target::fetch_registers): Update.
14173 * gdbcore.h (struct core_fns): Remove.
14174 (deprecated_add_core_fns): Remove.
14175 (default_core_sniffer): Remove.
14176 (default_check_format): Remove.
14178 2020-03-12 Tom Tromey <tom@tromey.com>
14180 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14182 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14184 2020-03-12 Tom Tromey <tom@tromey.com>
14186 * remote.c (remote_target::download_tracepoint)
14187 (remote_target::enable_tracepoint)
14188 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14189 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14192 2020-03-12 Tom Tromey <tom@tromey.com>
14194 * symfile-mem.c: Update CORE_ADDR size assert.
14196 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14198 * selftest.m4: Move to gdbsupport/.
14199 * acinclude.m4: Update path to selftest.m4.
14201 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14203 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14204 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14205 gdbarch-selfselftests.c and selftest-arch.c.
14206 (SUBDIR_UNITTESTS_OBS): Rename to...
14207 (SELFTESTS_OBS): ... this.
14208 (COMMON_SFILES): Remove disasm-selftests.c and
14209 gdbarch-selftests.c.
14210 * configure.ac: Don't add selftest-arch.{c,o} to
14212 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14213 preprocessor conditions.
14215 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14217 * configure.ac: Don't source bfd/development.sh.
14218 * selftest.m4: Modify comment.
14219 * configure: Re-generate.
14221 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14223 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14224 not "true" or "false".
14225 * configure: Re-generate.
14227 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14229 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14230 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14231 renamed to arm_nbsd_supply_gregset.
14232 (fetch_register): Update to call arm_nbsd_supply_gregset.
14233 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14234 (arm_netbsd_nat_target::fetch_registers): Update.
14235 (fetch_elfcore_registers): Removed.
14236 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14237 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14238 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14239 not require NetBSD system headers.
14240 (arm_nbsd_regset): New struct.
14241 (arm_nbsd_iterate_over_regset_sections): New function.
14242 (arm_netbsd_init_abi_common): Updated to call
14243 set_gdbarch_iterate_over_regset_sections.
14244 * arm-nbsd-tdep.h: New file.
14246 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14248 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14251 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14253 * configure: Re-generate.
14255 2020-03-11 Tom Tromey <tromey@adacore.com>
14257 * ada-typeprint.c (print_choices): Fix comment.
14259 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14261 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14262 previous item in the list, when the list has no items.
14264 2020-03-11 Tom de Vries <tdevries@suse.de>
14266 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14267 PROP_LOCLIST handling code.
14269 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14271 * buildsym-legacy.c (record_line): Pass extra parameter to
14273 * buildsym.c (buildsym_compunit::record_line): Take an extra
14274 parameter, reduce duplication in the line table, and record the
14275 is_stmt flag in the line table.
14276 * buildsym.h (buildsym_compunit::record_line): Add extra
14278 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14279 non-statement lines.
14280 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14281 this to the symtab builder.
14282 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14283 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14284 through to dwarf_record_line_1.
14285 * infrun.c (process_event_stop_test): When stepping, don't stop at
14286 a non-statement instruction, and only refresh the step info when
14287 we land in the middle of a line's range. Also add an extra
14289 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14291 * record-btrace.c (btrace_find_line_range): Only record lines
14292 marked as is-statement.
14293 * stack.c (frame_show_address): Show the frame address if we are
14294 in a non-statement sal.
14295 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14296 (maintenance_print_one_line_table): Print a header for the is_stmt
14297 column, and include is_stmt information in the output.
14298 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14299 preference to non-statements.
14300 (find_pcs_for_symtab_line): Prefer is-statement entries.
14301 (find_line_common): Likewise.
14302 * symtab.h (struct linetable_entry): Add is_stmt field.
14303 (struct symtab_and_line): Likewise.
14304 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14305 arranging the line table.
14307 2020-03-07 Tom de Vries <tdevries@suse.de>
14309 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14312 2020-03-07 Tom Tromey <tom@tromey.com>
14314 * valops.c (value_literal_complex): Remove obsolete comment.
14315 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14318 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14320 * infrun.h: Forward-declare thread_info.
14321 (set_step_info): Add thread_info parameter, add doc.
14322 * infrun.c (set_step_info): Add thread_info parameter, move doc
14324 * infrun.c (process_event_stop_test): Pass thread to
14325 set_step_info call.
14326 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14328 (prepare_one_step): Add thread_info parameter, pass it to
14329 set_step_frame and prepare_one_step (recursive) call.
14330 (step_1): Pass thread to prepare_one_step call.
14331 (step_command_fsm::should_stop): Pass thread to
14333 (until_next_fsm): Pass thread to set_step_frame call.
14334 (finish_command): Pass thread to set_step_info call.
14336 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14338 * windows-tdep.c (windows_solib_create_inferior_hook):
14339 Check if inferior is running.
14341 2020-03-06 Tom de Vries <tdevries@suse.de>
14343 * NEWS: Fix "the the".
14346 2020-03-06 Tom de Vries <tdevries@suse.de>
14348 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14350 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14352 * .dir-locals.el: Add a comment referencing the other copies of
14355 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14357 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14360 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14362 * .gitattributes: New file.
14364 2020-03-04 Tom Tromey <tom@tromey.com>
14366 * symmisc.c (print_symbol_bcache_statistics)
14367 (print_objfile_statistics): Update.
14368 * symfile.c (allocate_symtab): Use intern.
14369 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14370 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14371 macro_cache>: Remove.
14372 <string_cache>: New member.
14373 (struct objfile) <intern>: New methods.
14374 * elfread.c (elf_symtab_read): Use intern.
14375 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14376 (dwarf2_compute_name, dwarf2_physname)
14377 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14379 (guess_partial_die_structure_name): Update.
14380 (partial_die_info::fixup): Intern name.
14381 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14383 (dwarf2_name): Intern name. Update.
14384 * buildsym.c (buildsym_compunit::get_macro_table): Use
14387 2020-03-04 Tom Tromey <tom@tromey.com>
14389 * jit.c (bfd_open_from_target_memory): Make "target" const.
14390 * corefile.c (gnutarget): Now const.
14391 * gdbcore.h (gnutarget): Now const.
14393 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14395 * NEWS: Mention support for WOW64 processes.
14396 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14397 (amd64_windows_segment_register_p): Remove static.
14398 (_initialize_amd64_windows_nat): Update.
14399 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14400 * i386-windows-nat.c (context_offset): Update.
14401 (i386_mappings): Rename and remove static.
14402 (i386_windows_segment_register_p): Remove static.
14403 (_initialize_i386_windows_nat): Update.
14404 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14405 (STATUS_WX86_SINGLE_STEP): New macro.
14406 (EnumProcessModulesEx): New macro.
14407 (Wow64SuspendThread): New macro.
14408 (Wow64GetThreadContext): New macro.
14409 (Wow64SetThreadContext): New macro.
14410 (Wow64GetThreadSelectorEntry): New macro.
14411 (windows_set_context_register_offsets): Add static.
14412 (windows_set_segment_register_p): Likewise.
14413 (windows_add_thread): Adapt for WOW64 processes.
14414 (windows_fetch_one_register): Likewise.
14415 (windows_nat_target::fetch_registers): Likewise.
14416 (windows_store_one_register): Likewise.
14417 (display_selector): Likewise.
14418 (display_selectors): Likewise.
14419 (handle_exception): Likewise.
14420 (windows_continue): Likewise.
14421 (windows_nat_target::resume): Likewise.
14422 (windows_add_all_dlls): Likewise.
14423 (do_initial_windows_stuff): Likewise.
14424 (windows_nat_target::attach): Likewise.
14425 (windows_get_exec_module_filename): Likewise.
14426 (windows_nat_target::create_inferior): Likewise.
14427 (windows_xfer_siginfo): Likewise.
14428 (_initialize_loadable): Initialize Wow64SuspendThread,
14429 Wow64GetThreadContext, Wow64SetThreadContext,
14430 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14431 * windows-nat.h (windows_set_context_register_offsets):
14432 Remove declaration.
14433 (windows_set_segment_register_p): Likewise.
14434 (i386_windows_segment_register_p): Add declaration.
14435 (amd64_windows_segment_register_p): Likewise.
14437 2020-03-04 Luis Machado <luis.machado@linaro.org>
14439 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14440 in "info registers" for AArch64/ARM.
14442 The change caused "info registers" to not print GPR's.
14446 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14448 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14449 when reg->group is empty and reggroup is not.
14451 2020-03-03 Tom Tromey <tromey@adacore.com>
14453 * dwarf2/frame.c (struct dwarf2_frame_cache)
14454 <checked_tailcall_bottom, entry_cfa_sp_offset,
14455 entry_cfa_sp_offset_p>: Remove members.
14456 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14457 (dwarf2_frame_prev_register): Don't call
14458 dwarf2_tailcall_sniffer_first.
14459 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14460 * frame-unwind.c (add_unwinder): New fuction.
14461 (frame_unwind_init): Use it. Add tailcall unwinder.
14463 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14464 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14466 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14467 value should be printed as true.
14469 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14471 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14472 (windows_init_abi): Set and use windows_so_ops.
14474 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14476 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14477 when verifying if dealing with a convenience variable.
14479 2020-03-03 Luis Machado <luis.machado@linaro.org>
14481 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14483 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14485 * infrun.c (gdbarch_supports_displaced_stepping): New.
14486 (use_displaced_stepping): Break up conditions in smaller pieces.
14487 Use gdbarch_supports_displaced_stepping.
14488 (displaced_step_prepare_throw): Use
14489 gdbarch_supports_displaced_stepping.
14491 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14493 * NEWS: Mention new behaviour of the history filename.
14494 * top.c (write_history_p): Add comment.
14495 (show_write_history_p): Add header comment, give a different
14496 message when history writing is on, but the history filename is
14498 (history_filename): Add comment.
14499 (history_filename_empty): New function.
14500 (show_history_filename): Add header comment, give a different
14501 message when the filename is empty.
14502 (init_history): Compare history_filename against nullptr, and only
14503 read history if the filename is not empty.
14504 (set_history_filename): Add header comment, and only make
14505 non-empty filenames absolute.
14506 (init_main): Make the filename argument to 'set history filename'
14509 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14511 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14512 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14513 (fetch_fp_register): Update.
14514 (fetch_fp_regs): Update.
14515 (store_fp_register): Update.
14516 (store_fp_regs): Update.
14517 (arm_netbsd_nat_target::read_description): New function.
14518 (fetch_elfcore_registers): Update.
14520 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14522 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14523 general_thread if the stop reply is missing a thread-id.
14524 (remote_target::process_stop_reply): Use the first non-exited
14525 thread if the target didn't pass a thread-id.
14526 * infrun.c (do_target_wait): Move call to
14527 switch_to_inferior_no_thread to ....
14528 (do_target_wait_1): ... here.
14530 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14532 * debuginfod-support.c: Include defs.h first.
14534 2020-02-28 Tom de Vries <tdevries@suse.de>
14536 * symfile.c (set_initial_language): Use default language for lookup.
14538 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14540 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14541 reader variable, pass `this` to read_cutu_die_from_dwo.
14543 2020-02-27 Aaron Merey <amerey@redhat.com>
14545 * source.c (open_source_file): Check for nullptr when computing
14548 2020-02-27 Tom Tromey <tromey@adacore.com>
14550 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14552 (dwarf2_add_field): Don't update nfields.
14553 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14555 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14557 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14560 2020-02-26 Tom Tromey <tom@tromey.com>
14562 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14563 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14564 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14565 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14568 2020-02-26 Tom Tromey <tom@tromey.com>
14570 * dwarf2/index-write.c (psym_index_map): Change type.
14571 (add_address_entry_worker, write_one_signatured_type)
14572 (recursively_count_psymbols, recursively_write_psymbols)
14573 (class debug_names, psyms_seen_size, write_gdbindex)
14574 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14576 2020-02-26 Aaron Merey <amerey@redhat.com>
14578 * Makefile.in: Handle optional debuginfod support.
14580 * README: Add --with-debuginfod summary.
14581 * config.in: Regenerate.
14582 * configure: Regenerate.
14583 * configure.ac: Handle optional debuginfod support.
14584 * debuginfod-support.c: debuginfod helper functions.
14585 * debuginfod-support.h: Ditto.
14586 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14588 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14589 when a dwz file cannot be found.
14590 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14591 debuginfo file cannot be found.
14592 * source.c (open_source_file): Query debuginfod servers when a
14593 source file cannot be found.
14594 * top.c (print_gdb_configuration): Include
14595 --{with,without}-debuginfod in the output.
14597 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14599 * thread.c (thr_try_catch_cmd): Print thread name.
14601 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14603 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14604 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14605 dwarf2_fetch_die_type_sect_off): Move to...
14606 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14607 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14608 dwarf2_fetch_die_type_sect_off): ... here.
14609 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14610 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14611 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14613 2020-02-26 Tom de Vries <tdevries@suse.de>
14616 * symfile.c (set_initial_language): Exit-early if
14617 language_mode == language_mode_manual.
14619 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14621 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14622 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14623 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14625 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14627 * gdbtypes.c (create_array_type_with_stride): Handle negative
14629 * valarith.c (value_subscripted_rvalue): Likewise.
14631 2020-02-25 Luis Machado <luis.machado@linaro.org>
14633 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14635 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14637 * loc.h (dwarf2_get_die_type): Move to...
14638 * read.h (dwarf2_get_die_type): ... here.
14639 * read.c (dwarf2_get_die_type): Move doc to header.
14641 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14643 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14644 'gnulib/Makefile.in' to the list.
14646 2020-02-24 Tom Tromey <tom@tromey.com>
14648 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14650 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14653 2020-02-24 Tom Tromey <tom@tromey.com>
14655 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14657 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14658 (dw2_do_instantiate_symtab, dw2_get_file_names)
14659 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14661 2020-02-24 Tom Tromey <tom@tromey.com>
14663 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14664 make_scoped_restore.
14665 (dwarf2_psymtab::read_symtab): Don't clear
14666 reading_partial_symbols.
14668 2020-02-24 Tom de Vries <tdevries@suse.de>
14671 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14673 2020-02-24 Tom de Vries <tdevries@suse.de>
14675 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14676 commands layout next/prev/regs.
14678 2020-02-22 Tom Tromey <tom@tromey.com>
14680 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14681 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14683 2020-02-22 Tom Tromey <tom@tromey.com>
14685 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14687 2020-02-22 Tom Tromey <tom@tromey.com>
14689 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14690 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14691 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14692 * tui/tui.c (_initialize_tui): Add usage text.
14694 2020-02-22 Tom Tromey <tom@tromey.com>
14696 * tui/tui-win.c (tui_set_focus_command)
14697 (tui_set_win_height_command): Use error_no_arg.
14698 (_initialize_tui_win): Update help text.
14699 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14701 2020-02-22 Tom Tromey <tom@tromey.com>
14703 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14704 * tui/tui-disasm.h (struct tui_disasm_window)
14705 <display_start_addr>: Declare.
14706 * tui/tui-source.h (struct tui_source_window)
14707 <display_start_addr>: Declare.
14708 * tui/tui-winsource.h (struct tui_source_window_base)
14709 <show_source_line, display_start_addr>: New methods.
14710 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14711 Rename and move to protected section.
14712 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14713 (tui_source_window_base::do_erase_source_content): Update.
14714 (tui_source_window_base::show_source_line): Now a method.
14715 (tui_source_window_base::show_source_content)
14716 (tui_source_window_base::tui_source_window_base)
14717 (tui_source_window_base::rerender)
14718 (tui_source_window_base::refill)
14719 (tui_source_window_base::do_scroll_horizontal)
14720 (tui_source_window_base::set_is_exec_point_at)
14721 (tui_source_window_base::update_breakpoint_info)
14722 (tui_source_window_base::update_exec_info): Update.
14723 * tui/tui-source.c (tui_source_window::set_contents)
14724 (tui_source_window::showing_source_p)
14725 (tui_source_window::do_scroll_vertical)
14726 (tui_source_window::location_matches_p)
14727 (tui_source_window::line_is_displayed): Update.
14728 (tui_source_window::display_start_addr): New method.
14729 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14730 (tui_disasm_window::do_scroll_vertical)
14731 (tui_disasm_window::location_matches_p): Update.
14732 (tui_disasm_window::display_start_addr): New method.
14734 2020-02-22 Tom Tromey <tom@tromey.com>
14736 * NEWS: Add entry for gdb.register_window_type.
14737 * tui/tui-layout.h (window_factory): New typedef.
14738 (tui_register_window): Declare.
14739 * tui/tui-layout.c (saved_tui_windows): New global.
14740 (tui_apply_current_layout): Use it.
14741 (tui_register_window): New function.
14742 * python/python.c (do_start_initialization): Call
14743 gdbpy_initialize_tui.
14744 (python_GdbMethods): Add "register_window_type" function.
14745 * python/python-internal.h (gdbpy_register_tui_window)
14746 (gdbpy_initialize_tui): Declare.
14747 * python/py-tui.c: New file.
14748 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14750 2020-02-22 Tom Tromey <tom@tromey.com>
14752 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14754 2020-02-22 Tom Tromey <tom@tromey.com>
14756 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14757 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14758 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14759 (tui_set_win_focus_to): Move from tui-win.c.
14761 2020-02-22 Tom Tromey <tom@tromey.com>
14763 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14765 (known_window_types): New global.
14766 (tui_get_window_by_name): Reimplement.
14767 (initialize_known_windows): New function.
14768 (validate_window_name): Rewrite.
14769 (_initialize_tui_layout): Call initialize_known_windows.
14771 2020-02-22 Tom Tromey <tom@tromey.com>
14773 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14775 * tui/tui-winsource.h (struct tui_source_window_base)
14776 <tui_source_window_base>: Remove parameter.
14777 * tui/tui-winsource.c
14778 (tui_source_window_base::tui_source_window_base): Remove
14780 (tui_source_window_base::refill): Update.
14781 * tui/tui-stack.h (struct tui_locator_window)
14782 <tui_locator_window>: Update.
14783 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14784 Default the constructor.
14785 * tui/tui-regs.h (struct tui_data_item_window)
14786 <tui_data_item_window>: Default the constructor.
14787 (struct tui_data_window) <tui_data_window>: Likewise.
14788 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14789 Default the constructor.
14790 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14791 Default the constructor.
14793 (struct tui_win_info) <tui_win_info>: Default the constructor.
14794 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14795 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14796 Default the constructor.
14798 2020-02-22 Tom Tromey <tom@tromey.com>
14800 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14801 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14802 * tui/tui-win.c (tui_resize_all): Don't call
14803 tui_delete_invisible_windows.
14804 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14806 (tui_set_layout): Update.
14807 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14808 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14809 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14811 2020-02-22 Tom Tromey <tom@tromey.com>
14813 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14816 2020-02-22 Tom Tromey <tom@tromey.com>
14818 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14820 2020-02-22 Tom Tromey <tom@tromey.com>
14822 * tui/tui-winsource.h (struct tui_source_window_iterator)
14823 <inner_iterator>: New etytypedef.
14824 <tui_source_window_iterator>: Take "end" parameter.
14825 <tui_source_window_iterator>: Take iterator.
14826 <operator*, advance>: Update.
14827 <m_iter>: Change type.
14828 <m_end>: New field.
14829 (struct tui_source_windows) <begin, end>: Update.
14830 * tui/tui-layout.c (tui_windows): New global.
14831 (tui_apply_current_layout): Clear tui_windows.
14832 (tui_layout_window::apply): Update tui_windows.
14833 * tui/tui-data.h (tui_windows): Declare.
14834 (all_tui_windows): Now inline function.
14835 (class tui_window_iterator, struct all_tui_windows): Remove.
14837 2020-02-22 Tom Tromey <tom@tromey.com>
14840 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14841 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14843 (class tui_layout_window) <get_sizes>: Likewise.
14844 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14846 <get_sizes>: Add "height" argument.
14847 <m_vertical>: New field.
14848 * tui/tui-layout.c (tui_layout_split::clone): Update.
14849 (tui_layout_split::get_sizes): Add "height" argument.
14850 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14851 (tui_new_layout_command): Parse "-horizontal".
14852 (_initialize_tui_layout): Update help string.
14853 (tui_layout_split::specification): Add "-horizontal" when needed.
14854 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14856 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14859 2020-02-22 Tom Tromey <tom@tromey.com>
14861 * tui/tui-layout.h (enum tui_adjust_result): New.
14862 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14863 (class tui_layout_window) <adjust_size>: Return
14864 tui_adjust_result. Rewrite.
14865 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14866 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14868 2020-02-22 Tom Tromey <tom@tromey.com>
14870 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14871 parameter and return types.
14872 (class tui_layout_base) <specification>: Add "depth".
14873 (class tui_layout_window) <specification>: Add "depth".
14874 (class tui_layout_split) <specification>: Add "depth".
14875 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14877 (tui_new_layout_command): Parse sub-layouts.
14878 (_initialize_tui_layout): Update help string.
14879 (tui_layout_window::specification): Add "depth".
14880 (add_layout_command): Update.
14882 2020-02-22 Tom Tromey <tom@tromey.com>
14884 * NEWS: Add "tui new-layout" item.
14885 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14886 Add new-layout command to help text.
14887 (validate_window_name): New function.
14888 (tui_new_layout_command): New function.
14889 (_initialize_tui_layout): Register "new-layout".
14890 (tui_layout_window::specification): New method.
14891 (tui_layout_window::specification): New method.
14892 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14894 (class tui_layout_window) <specification>: New method.
14895 (class tui_layout_split) <specification>: New method.
14897 2020-02-22 Tom Tromey <tom@tromey.com>
14899 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14900 * tui/tui-win.c (window_name_completer): Update comment.
14901 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14903 (class tui_layout_window) <replace_window>: Likewise.
14904 (class tui_layout_split) <replace_window>: Likewise.
14905 (tui_set_layout): Don't declare.
14906 (tui_set_initial_layout): Declare function.
14907 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14908 (asm_regs_layout): New globals.
14909 (tui_current_layout, show_layout): Remove.
14910 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14911 (find_layout, tui_apply_layout): New function.
14912 (layout_completer): Remove.
14913 (tui_next_layout): Reimplement.
14914 (tui_next_layout_command): New function.
14915 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14916 (tui_regs_layout): Reimplement.
14917 (tui_regs_layout_command): New function.
14918 (extract_display_start_addr): Rewrite.
14919 (next_layout, prev_layout): Remove.
14920 (tui_layout_window::replace_window): New method.
14921 (tui_layout_split::replace_window): New method.
14922 (destroy_layout): New function.
14923 (layout_list): New global.
14924 (add_layout_command): New function.
14925 (initialize_layouts): Update.
14926 (tui_layout_command): New function.
14927 (_initialize_tui_layout): Install "layout" commands.
14928 * tui/tui-data.h (enum tui_layout_type): Remove.
14929 (tui_current_layout): Don't declare.
14931 2020-02-22 Tom Tromey <tom@tromey.com>
14933 * tui/tui-regs.c (tui_reg_layout): Remove.
14934 (tui_reg_command): Use tui_regs_layout.
14935 * tui/tui-layout.h (tui_reg_command): Declare.
14936 * tui/tui-layout.c (tui_reg_command): New function.
14938 2020-02-22 Tom Tromey <tom@tromey.com>
14940 * tui/tui.c (tui_rl_delete_other_windows): Call
14941 tui_remove_some_windows.
14942 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14944 (class tui_layout_window) <remove_windows>: New method.
14945 (class tui_layout_split) <remove_windows>: Declare.
14946 (tui_remove_some_windows): Declare.
14947 * tui/tui-layout.c (tui_remove_some_windows): New function.
14948 (tui_layout_split::remove_windows): New method.
14950 2020-02-22 Tom Tromey <tom@tromey.com>
14952 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14953 * tui/tui-layout.h (tui_next_layout): Declare.
14954 * tui/tui-layout.c (tui_next_layout): New function.
14956 2020-02-22 Tom Tromey <tom@tromey.com>
14958 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14959 correct coordinates.
14961 2020-02-22 Tom Tromey <tom@tromey.com>
14963 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14964 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14967 2020-02-22 Tom Tromey <tom@tromey.com>
14969 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14970 TUI_DISASM_WIN, not tui_win_list.
14972 2020-02-22 Tom Tromey <tom@tromey.com>
14974 * valprint.c (generic_val_print_enum_1)
14975 (val_print_type_code_flags): Style member names.
14976 * rust-lang.c (val_print_struct, rust_print_enum)
14977 (rust_print_struct_def, rust_internal_print_type): Style member
14979 * p-valprint.c (pascal_object_print_value_fields): Style member
14980 names. Only call fprintf_symbol_filtered for static members.
14981 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14982 * f-valprint.c (f_val_print): Style member names.
14983 * f-typeprint.c (f_type_print_base): Style member names.
14984 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14985 call fprintf_symbol_filtered for static members.
14986 (cp_print_class_member): Style member names.
14987 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14989 * ada-valprint.c (ada_print_scalar): Style enum names.
14990 (ada_val_print_enum): Likewise.
14991 * ada-typeprint.c (print_enum_type): Style enum names.
14993 2020-02-21 Tom Tromey <tom@tromey.com>
14995 * psympriv.h (struct partial_symtab): Update comment.
14997 2020-02-21 Tom Tromey <tromey@adacore.com>
14999 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15002 2020-02-21 Tom de Vries <tdevries@suse.de>
15005 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15006 if dependencies[i]->user != NULL.
15008 2020-02-21 Ali Tamur <tamur@google.com>
15010 * dwarf2/read.c (dwarf2_name): Add null check.
15012 2020-02-20 Tom Tromey <tom@tromey.com>
15014 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15015 ">=", in binary search.
15016 (dwarf2_find_containing_comp_unit): New overload.
15017 (run_test): New self-test.
15018 (_initialize_dwarf2_read): Register new test.
15020 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15022 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15023 * riscv-tdep.h: Likewise.
15024 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15026 * features/riscv/64bit-csr.xml: Regenerated.
15028 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15029 Tom Tromey <tom@tromey.com>
15031 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15032 of 'fputc_unfiltered'.
15033 (putchar_unfiltered): Call 'fputc_unfiltered'.
15034 (fputc_unfiltered): Call 'fputs_unfiltered'.
15036 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15038 * config.in: Regenerate.
15039 * configure: Regenerate.
15040 * configure.ac: Add --with-python-libdir option.
15041 * main.c: Use WITH_PYTHON_LIBDIR.
15043 2020-02-19 Tom Tromey <tom@tromey.com>
15045 * symtab.c (general_symbol_info::compute_and_set_names): Use
15046 obstack_strndup. Simplify call to symbol_set_demangled_name.
15048 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15050 * dwarf2/read.c (allocate_signatured_type_table,
15051 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15052 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15053 Remove objfile parameter, update all callers.
15055 2020-02-19 Doug Evans <dje@google.com>
15058 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15059 rust_enum_variant calculation.
15061 2020-02-19 Tom Tromey <tromey@adacore.com>
15063 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15065 2020-02-19 Tom Tromey <tromey@adacore.com>
15067 * ada-lang.c (cache_symbol): Use obstack_strdup.
15069 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15071 * configure: Regenerate.
15073 2020-02-19 Tom Tromey <tromey@adacore.com>
15075 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15078 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15080 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15082 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15084 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15085 if GDBSERVER is not defined.
15086 (riscv_tdesc_cache): Likewise, also store const target_desc.
15087 (STATIC_IN_GDB): Define.
15088 (riscv_create_target_description): Update declaration with
15090 (riscv_lookup_target_description): New function, only define if
15091 GDBSERVER is not defined.
15092 * arch/riscv.h (riscv_create_target_description): Declare only
15093 when GDBSERVER is defined.
15094 (riscv_lookup_target_description): New declaration when GDBSERVER
15096 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15097 (riscv_linux_read_features): ...this, and return
15098 riscv_gdbarch_features instead of target_desc.
15099 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15100 (riscv_linux_read_description): Rename to...
15101 (riscv_linux_read_features): ...this.
15102 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15103 Update to use riscv_gdbarch_features and
15104 riscv_lookup_target_description.
15105 * riscv-tdep.c (riscv_find_default_target_description): Use
15106 riscv_lookup_target_description instead of
15107 riscv_create_target_description.
15109 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15111 * valprint.c (generic_val_print_enum_1): When printing a flag
15112 enum with value 0 and there is no enumerator with value 0, print
15113 just "0" instead of "(unknown: 0x0)".
15115 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15117 * valprint.c (generic_val_print_enum_1): Print unknown part of
15120 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15122 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15123 flag enums to contain duplicate enumerators.
15124 * valprint.c (generic_val_print_enum_1): Update comment.
15126 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15128 * dwarf2/read.c: Include "count-one-bits.h".
15129 (update_enumeration_type_from_children): If an enumerator has
15130 multiple bits set, don't treat the enumeration as a "flag enum".
15131 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15132 of flag enums have 0 or 1 bit set.
15134 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15136 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15138 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15139 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15140 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15141 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15142 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15144 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15146 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15148 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15150 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15151 displaced_step_closure_up.
15152 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15153 (struct displaced_step_closure_up):
15154 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15155 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15156 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15158 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15159 * gdbarch.c, gdbarch.h: Re-generate.
15160 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15161 displaced_step_closure_up.
15162 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15163 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15164 * infrun.h (displaced_step_closure_up): New type alias.
15165 (struct displaced_step_inferior_state) <step_closure>: Change
15166 type to displaced_step_closure_up.
15167 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15168 displaced_step_closure_up.
15169 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15171 2020-02-14 Tom Tromey <tom@tromey.com>
15173 * minidebug.c (gnu_debug_key): New global.
15174 (find_separate_debug_file_in_section): Use it.
15176 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15178 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15180 * gdbarch.c: Re-generate.
15181 * gdbarch.h: Re-generate.
15182 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15184 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15185 type to std::unique_ptr.
15186 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15187 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15188 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15189 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15190 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15191 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15192 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15193 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15194 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15196 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15198 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15200 (displaced_step_clear): Rename to...
15201 (displaced_step_reset): ... this. Just call displaced->reset ().
15202 (displaced_step_clear_cleanup): Rename to...
15203 (displaced_step_reset_cleanup): ... this.
15204 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15205 (displaced_step_fixup): Likewise.
15206 (resume_1): Likewise.
15207 (handle_inferior_event): Restore child's memory before calling
15208 displaced_step_fixup on the parent.
15209 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15210 to std::unique_ptr.
15211 <step_closure>: Change type to std::unique_ptr.
15213 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15215 * arm-tdep.c: Include count-one-bits.h.
15216 (cleanup_block_store_pc): Use count_one_bits.
15217 (cleanup_block_load_pc): Use count_one_bits.
15218 (arm_copy_block_xfer): Use count_one_bits.
15219 (thumb2_copy_block_xfer): Use count_one_bits.
15220 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15221 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15222 (thumb_get_next_pcs_raw): Use count_one_bits.
15223 (arm_get_next_pcs_raw): Use count_one_bits_l.
15224 * arch/arm.c (bitcount): Remove.
15225 * arch/arm.h (bitcount): Remove.
15227 2020-02-14 Tom Tromey <tromey@adacore.com>
15229 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15231 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15232 * dwarf2/loc.c (call_site_find_chain_1): Return
15233 unique_xmalloc_ptr.
15234 (call_site_find_chain): Likewise.
15236 2020-02-14 Richard Biener <rguenther@suse.de>
15238 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15239 on expression with division operators.
15241 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15243 * MAINTAINERS (Write After Approval): Adding myself.
15245 2020-02-12 Tom Tromey <tom@tromey.com>
15247 * event-loop.c (event_data, gdb_event, event_handler_func):
15250 2020-02-12 Tom Tromey <tom@tromey.com>
15252 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15253 (dwarf2_frame_objfile_data): Add comment.
15254 (find_comp_unit, set_comp_unit): New functions.
15255 (dwarf2_frame_find_fde): Use find_comp_unit.
15256 (dwarf2_build_frame_info): Use set_comp_unit.
15258 2020-02-12 Tom Tromey <tom@tromey.com>
15260 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15261 (comp_unit): Don't initialize objfile.
15262 (execute_cfa_program): Add text_offset parameter.
15263 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15264 (dwarf2_frame_cache): Update.
15265 (dwarf2_build_frame_info): Don't set "objfile" member.
15267 2020-02-12 Tom Tromey <tom@tromey.com>
15269 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15270 (decode_frame_entry): Likewise.
15271 (dwarf2_build_frame_info): Update.
15273 2020-02-12 Tom Tromey <tom@tromey.com>
15275 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15276 (decode_frame_entry_1): Use the comp_unit obstack.
15278 2020-02-12 Tom Tromey <tom@tromey.com>
15280 * dwarf2/frame.c (struct comp_unit): Add initializers and
15282 (dwarf2_frame_objfile_data): Store a comp_unit.
15283 (dwarf2_frame_find_fde): Update.
15284 (dwarf2_build_frame_info): Use "new".
15286 2020-02-12 Tom Tromey <tom@tromey.com>
15288 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15289 (dwarf2_fde_table): Typedef for std::vector.
15290 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15291 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15292 (decode_frame_entry): Update.
15293 (dwarf2_build_frame_info): Use "new".
15295 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15297 * arm-tdep.c (arm_gdbarch_init): Update.
15298 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15299 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15300 have_neon, is_m>: Change to bool.
15302 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15304 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15306 2020-02-12 Tom Tromey <tom@tromey.com>
15308 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15310 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15312 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15313 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15315 2020-02-11 Tom Tromey <tom@tromey.com>
15317 * psymtab.h: Update comment.
15319 2020-02-11 Tom Tromey <tom@tromey.com>
15321 * gdb_obstack.h (struct auto_obstack): Use
15322 DISABLE_COPY_AND_ASSIGN.
15324 2020-02-11 Tom Tromey <tom@tromey.com>
15326 * dwarf2/frame.h (struct objfile): Don't forward declare.
15328 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15330 * cris-tdep.c (cris_supply_gregset): Change signature to match
15331 what struct regset expects.
15332 (cris_regset): New struct.
15333 (fetch_core_registers): Remove.
15334 (cris_iterate_over_regset_sections): New function.
15335 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15336 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15338 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15340 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15343 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15345 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15347 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15349 * configure: Re-generate.
15351 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15353 * configure: Re-generate.
15355 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15357 * acinclude: Update warning.m4 path.
15358 * warning.m4: Move to gdbsupport.
15360 2020-02-11 Tom Tromey <tromey@adacore.com>
15362 * remote.c (remote_console_output): Update.
15363 * printcmd.c (printf_command): Update.
15364 * event-loop.c (gdb_wait_for_event): Update.
15365 * linux-nat.c (sigchld_handler): Update.
15366 * remote-sim.c (gdb_os_write_stdout): Update.
15367 (gdb_os_flush_stdout): Update.
15368 (gdb_os_flush_stderr): Update.
15369 (gdb_os_write_stderr): Update.
15370 * exceptions.c (print_exception): Update.
15371 * remote-fileio.c (remote_fileio_func_read): Update.
15372 (remote_fileio_func_write): Update.
15373 * tui/tui.c (tui_enable): Update.
15374 * tui/tui-interp.c (tui_interp::init): Update.
15375 * utils.c (init_page_info): Update.
15376 (putchar_unfiltered, fputc_unfiltered): Update.
15377 (gdb_flush): Update.
15378 (emit_style_escape): Update.
15379 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15380 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15381 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15382 (stderr_file::write): Update.
15383 (stderr_file::puts): Update.
15384 * ui-file.h (ui_file_isatty, ui_file_write)
15385 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15386 (ui_file_puts): Don't declare.
15388 2020-02-10 Tom de Vries <tdevries@suse.de>
15390 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15391 sentinel to char *.
15393 2020-02-09 Tom de Vries <tdevries@suse.de>
15395 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15396 filename if it matches "<artificial>".
15398 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15400 * windows-tdep.c (struct enum_value_name): New struct.
15401 (create_enum): New function.
15402 (windows_get_siginfo_type): Create and use enum types.
15404 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15406 * NEWS: Mention $_siginfo support for Windows.
15407 * windows-nat.c (handle_exception): Set siginfo_er.
15408 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15409 (windows_xfer_siginfo): New function.
15410 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15411 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15412 (init_windows_gdbarch_data): New function.
15413 (get_windows_gdbarch_data): New function.
15414 (windows_get_siginfo_type): New function.
15415 (windows_init_abi): Register windows_get_siginfo_type.
15416 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15418 2020-02-08 Tom Tromey <tom@tromey.com>
15420 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15421 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15422 <keep>: Declare method.
15423 <m_keep>: Remove member.
15424 <~cutu_reader>: Remove.
15425 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15426 (cutu_reader::cutu_reader): Update.
15427 (cutu_reader::keep): Rename from ~cutu_reader.
15428 (process_psymtab_comp_unit, build_type_psymtabs_1)
15429 (process_skeletonless_type_unit, load_partial_comp_unit)
15430 (load_full_comp_unit, dwarf2_read_addr_index)
15431 (read_signatured_type): Update.
15433 2020-02-08 Tom Tromey <tom@tromey.com>
15435 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15436 "want_partial_unit" parameter.
15437 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15438 Inline check for DW_TAG_partial_unit.
15439 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15441 2020-02-08 Tom Tromey <tom@tromey.com>
15443 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15445 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15448 2020-02-08 Tom Tromey <tom@tromey.com>
15450 * dwarf2/read.c (read_address): Move to comp-unit.c.
15451 (dwarf2_rnglists_process, dwarf2_ranges_process)
15452 (read_attribute_value, dwarf_decode_lines_1)
15453 (var_decode_location, decode_locdesc): Update.
15454 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15455 read.c. Remove "cu" parameter.
15456 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15459 2020-02-08 Tom Tromey <tom@tromey.com>
15461 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15462 (read_indirect_line_string): Update.
15463 * dwarf2/comp-unit.c (read_offset): Remove.
15464 (read_comp_unit_head): Update.
15465 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15467 (read_offset): Don't declare.
15469 2020-02-08 Tom Tromey <tom@tromey.com>
15471 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15472 * dwarf2/read.c (struct comp_unit_head): Move to
15473 dwarf2/comp-unit.h.
15474 (enum class rcuh_kind): Move to comp-unit.h.
15475 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15476 (read_comp_unit_head, error_check_comp_unit_head)
15477 (read_and_check_comp_unit_head): Move to comp-unit.c.
15478 (read_offset, dwarf_unit_type_name): Likewise.
15479 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15480 (cutu_reader::cutu_reader, read_call_site_scope)
15481 (find_partial_die, follow_die_offset): Update.
15482 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15484 2020-02-08 Tom Tromey <tom@tromey.com>
15486 * dwarf2/read.c (read_offset_1): Move to leb.c.
15487 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15488 (dwarf_decode_macro_bytes): Update.
15489 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15490 * dwarf2/leb.h (read_offset): Declare.
15492 2020-02-08 Tom Tromey <tom@tromey.com>
15494 * dwarf2/read.c (dwarf2_section_size): Remove.
15495 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15497 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15499 2020-02-08 Tom Tromey <tom@tromey.com>
15501 * dwarf2/read.c (read_initial_length): Move to leb.c.
15502 * dwarf2/leb.h (read_initial_length): Declare.
15503 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15504 handle_nonstd parameter.
15505 * dwarf2/frame.c (read_initial_length): Remove.
15506 (decode_frame_entry_1): Update.
15508 2020-02-08 Tom Tromey <tom@tromey.com>
15510 * dwarf2/loc.c (dwarf2_find_location_expression)
15511 (dwarf_evaluate_loc_desc::get_tls_address)
15512 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15513 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15514 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15515 (dwarf2_compile_property_to_c)
15516 (dwarf2_loc_desc_get_symbol_read_needs)
15517 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15518 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15519 (loclist_describe_location, loclist_tracepoint_var_ref)
15520 (loclist_generate_c_location): Update.
15521 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15522 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15523 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15524 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15525 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15526 (dwarf2_per_cu_data::addr_size)
15527 (dwarf2_per_cu_data::ref_addr_size)
15528 (dwarf2_per_cu_data::text_offset)
15529 (dwarf2_per_cu_data::addr_type): Now methods.
15530 (per_cu_header_read_in): Make per_cu "const".
15531 (dwarf2_version): Remove.
15532 (dwarf2_per_cu_data::int_type): Now a method.
15533 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15534 (set_die_type, read_array_type, read_subrange_index_type)
15535 (read_tag_string_type, read_subrange_type): Update.
15536 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15537 offset_size, ref_addr_size, text_offset, addr_type, version,
15538 objfile, int_type, addr_sized_int_type>: Declare methods.
15540 2020-02-08 Tom Tromey <tom@tromey.com>
15542 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15545 2020-02-08 Tom Tromey <tom@tromey.com>
15547 * dwarf2/read.h (dwarf_line_debug): Declare.
15548 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15549 * dwarf2/read.c: Move line_header code to new files.
15550 (dwarf_line_debug): No longer static.
15551 * dwarf2/line-header.c: New file.
15552 * dwarf2/line-header.h: New file.
15554 2020-02-08 Tom Tromey <tom@tromey.com>
15556 * dwarf2/read.c (struct line_header) <file_full_name,
15557 file_file_name>: Return unique_xmalloc_ptr.
15558 (line_header::file_file_name): Update.
15559 (line_header::file_full_name): Update.
15560 (dw2_get_file_names_reader): Update.
15561 (macro_start_file): Update.
15563 2020-02-08 Tom Tromey <tom@tromey.com>
15565 * dwarf2/read.c (struct line_header) <file_full_name,
15566 file_file_name>: Declare methods.
15567 (dw2_get_file_names_reader): Update.
15568 (file_file_name): Now a method.
15569 (file_full_name): Likewise.
15570 (macro_start_file): Update.
15572 2020-02-08 Tom Tromey <tom@tromey.com>
15574 * dwarf2/read.c (dwarf_always_disassemble)
15575 (show_dwarf_always_disassemble): Move to loc.c.
15576 (_initialize_dwarf2_read): Move "always-disassemble" registration
15578 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15579 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15581 (show_dwarf_always_disassemble): Move from read.c.
15582 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15584 2020-02-08 Tom Tromey <tom@tromey.com>
15586 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15587 (create_quick_file_names_table): Return htab_up.
15588 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15590 * dwarf2/read.h (struct dwarf2_per_objfile)
15591 <quick_file_names_table>: Now htab_up.
15593 2020-02-08 Tom Tromey <tom@tromey.com>
15595 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15597 2020-02-08 Tom Tromey <tom@tromey.com>
15599 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15601 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15602 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15603 (abbrev_table::abbrev_table): No longer inline.
15604 (ABBREV_HASH_SIZE): Remove.
15605 (abbrev_table::m_abbrevs): Now an htab_up.
15607 2020-02-08 Tom Tromey <tom@tromey.com>
15609 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15610 (cutu_reader): Update.
15611 (build_type_psymtabs_1): Update.
15612 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15613 (abbrev_table::alloc_abbrev): Update.
15614 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15615 (abbrev_table::read): New static method, renamed from
15616 abbrev_table_read_table.
15617 (abbrev_table::alloc_abbrev)
15618 (abbrev_table::add_abbrev): Now private.
15619 (abbrev_table::abbrev_table): Now private.
15620 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15622 2020-02-08 Tom Tromey <tom@tromey.com>
15624 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15625 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15628 2020-02-08 Tom Tromey <tom@tromey.com>
15630 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15632 (lookup_dwo_unit_in_dwp): Update.
15633 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15636 2020-02-08 Tom Tromey <tom@tromey.com>
15638 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15641 2020-02-08 Tom Tromey <tom@tromey.com>
15643 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15645 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15646 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15647 Change type to htab_up.
15649 2020-02-08 Tom Tromey <tom@tromey.com>
15651 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15652 htab_up. Don't allocate on obstack.
15653 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15654 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15655 Change type to htab_up.
15657 2020-02-08 Tom Tromey <tom@tromey.com>
15659 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15660 Change type to htab_up.
15661 * dwarf2/read.c (create_signatured_type_table_from_index)
15662 (create_signatured_type_table_from_debug_names)
15663 (create_all_type_units, add_type_unit)
15664 (lookup_dwo_signatured_type, lookup_signatured_type)
15665 (process_skeletonless_type_unit): Update.
15666 (create_debug_type_hash_table, create_debug_types_hash_table):
15667 Change type of types_htab.
15668 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15669 htab_up. Don't allocate on obstack.
15670 (create_cus_hash_table): Change type of cus_htab parameter.
15671 (struct dwo_file) <cus, tus>: Now htab_up.
15672 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15673 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15674 (queue_and_load_all_dwo_tus): Update.
15675 * dwarf2/index-write.c (write_gdbindex): Update.
15676 (write_debug_names): Update.
15678 2020-02-08 Tom Tromey <tom@tromey.com>
15680 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15681 dwarf2/read.c. Remove "next" member. Add constructor ntad
15683 (struct dwarf2_per_objfile) <queue>: New member.
15684 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15686 (dwarf2_queue, dwarf2_queue_tail): Remove.
15687 (class dwarf2_queue_guard): Add parameter to constructor. Use
15688 DISABLE_COPY_AND_ASSIGN.
15689 <m_per_objfile>: New member.
15690 <~dwarf2_queue_guard>: Rewrite.
15691 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15693 (~dwarf2_queue_item): New.
15695 2020-02-08 Tom Tromey <tom@tromey.com>
15697 * dwarf2/read.c (struct die_info) <has_children>: New member.
15698 (dw2_get_file_names_reader): Remove has_children.
15699 (dw2_get_file_names): Update.
15700 (read_cutu_die_from_dwo): Remove has_children.
15701 (cutu_reader::init_tu_and_read_dwo_dies)
15702 (cutu_reader::cutu_reader): Update.
15703 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15704 Remove has_children.
15705 (build_type_psymtabs_1, process_skeletonless_type_unit)
15706 (load_partial_comp_unit, load_full_comp_unit): Update.
15707 (create_dwo_cu_reader): Remove has_children.
15708 (create_cus_hash_table, read_die_and_children): Update.
15709 (read_full_die_1,read_full_die): Remove has_children.
15710 (read_signatured_type): Update.
15711 (class cutu_reader) <has_children>: Remove.
15713 2020-02-08 Tom Tromey <tom@tromey.com>
15715 * dwarf2/expr.c: Rename from dwarf2expr.c.
15716 * dwarf2/expr.h: Rename from dwarf2expr.h.
15717 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15718 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15719 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15720 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15721 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15722 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15723 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15724 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15725 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15726 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15727 * dwarf2/loc.c: Rename from dwarf2loc.c.
15728 * dwarf2/loc.h: Rename from dwarf2loc.h.
15729 * dwarf2/read.c: Rename from dwarf2read.c.
15730 * dwarf2/read.h: Rename from dwarf2read.h.
15731 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15732 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15733 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15734 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15735 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15736 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15737 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15738 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15739 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15740 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15741 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15742 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15743 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15745 * Makefile.in (COMMON_SFILES): Update.
15746 (HFILES_NO_SRCDIR): Update.
15748 2020-02-08 Tom Tromey <tom@tromey.com>
15750 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15751 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15753 2020-02-08 Tom Tromey <tom@tromey.com>
15755 * dwarf2read.h (struct die_info): Don't declare.
15757 2020-02-08 Tom Tromey <tom@tromey.com>
15759 * dwarf2read.h (die_info_ptr): Remove typedef.
15761 2020-02-08 Tom Tromey <tom@tromey.com>
15763 * dwarf2read.c (read_call_site_scope)
15764 (handle_data_member_location, dwarf2_add_member_fn)
15765 (mark_common_block_symbol_computed, read_common_block)
15766 (attr_to_dynamic_prop, partial_die_info::read)
15767 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15768 (dwarf2_symbol_mark_computed, set_die_type): Update.
15769 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15771 (attr_form_is_block): Don't declare.
15772 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15774 2020-02-08 Tom Tromey <tom@tromey.com>
15776 * dwarf2read.c (dwarf2_find_base_address, )
15777 (read_call_site_scope, rust_containing_type)
15778 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15779 (handle_data_member_location, dwarf2_add_member_fn)
15780 (get_alignment, read_structure_type, process_structure_scope)
15781 (mark_common_block_symbol_computed, read_common_block)
15782 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15783 (partial_die_info::read, read_attribute_value, new_symbol)
15784 (lookup_die_type, dwarf2_get_ref_die_offset)
15785 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15786 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15787 (dwarf2_symbol_mark_computed): Update.
15788 * dwarf2/attribute.h (struct attribute) <value_as_address,
15789 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15791 (value_as_address, attr_form_is_section_offset)
15792 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15793 * dwarf2/attribute.c (attribute::value_as_address)
15794 (attribute::form_is_section_offset, attribute::form_is_constant)
15795 (attribute::form_is_ref): Now methods.
15797 2020-02-08 Tom Tromey <tom@tromey.com>
15799 * dwarf2read.c (struct attribute, DW_STRING)
15800 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15801 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15802 (attr_form_is_block, attr_form_is_section_offset)
15803 (attr_form_is_constant, attr_form_is_ref): Move.
15804 * dwarf2/attribute.h: New file.
15805 * dwarf2/attribute.c: New file, from dwarf2read.c.
15806 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15808 2020-02-08 Tom Tromey <tom@tromey.com>
15810 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15811 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15813 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15814 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15815 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15817 * dwarf2/abbrev.h: New file.
15818 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15819 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15821 2020-02-08 Tom Tromey <tom@tromey.com>
15823 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15824 (dwarf2_section_size, dwarf2_get_section_info)
15825 (create_signatured_type_table_from_debug_names)
15826 (create_addrmap_from_aranges, read_debug_names_from_section)
15827 (get_gdb_index_contents_from_section, read_comp_unit_head)
15828 (error_check_comp_unit_head, read_abbrev_offset)
15829 (create_debug_type_hash_table, init_cu_die_reader)
15830 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15831 (read_comp_units_from_section, create_cus_hash_table)
15832 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15833 (create_dwp_v2_section, dwarf2_rnglists_process)
15834 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15835 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15836 (read_indirect_string_from_dwz, read_addr_index_1)
15837 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15838 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15839 (fill_in_loclist_baton): Update.
15840 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15841 get_containing_section, get_bfd_owner, get_bfd_section,
15842 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15843 (dwarf2_read_section, get_section_name, get_section_file_name)
15844 (get_containing_section, get_section_bfd_owner)
15845 (get_section_bfd_section, get_section_name, get_section_file_name)
15846 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15848 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15849 (dwarf2_section_info::get_bfd_owner)
15850 (dwarf2_section_info::get_bfd_section)
15851 (dwarf2_section_info::get_name)
15852 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15853 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15854 (dwarf2_section_info::read): Now methods.
15855 * dwarf-index-write.c (class debug_names): Update.
15857 2020-02-08 Tom Tromey <tom@tromey.com>
15859 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15860 Move to dwarf2/section.h.
15861 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15862 (get_section_bfd_section, get_section_name)
15863 (get_section_file_name, get_section_id, get_section_flags)
15864 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15866 * dwarf2/section.h: New file.
15867 * dwarf2/section.c: New file, from dwarf2read.c.
15868 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15870 2020-02-08 Tom Tromey <tom@tromey.com>
15872 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15873 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15874 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15875 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15876 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15877 * dwarf2/leb.h: New file, from dwarf2read.c.
15878 * dwarf2/leb.c: New file, from dwarf2read.c.
15879 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15881 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15882 (COMMON_SFILES): Add dwarf2/leb.c.
15884 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15888 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15891 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15892 * gdb/remote.c (remote_console_output): Update.
15893 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15894 (ui_file_puts): ...this.
15895 * gdb/ui-file.h (ui_file_puts): Add declaration.
15896 * gdb/utils.c (emit_style_escape): Update.
15897 (flush_wrap_buffer): Update.
15898 (fputs_maybe_filtered): Update.
15899 (fputs_unfiltered): Add function.
15901 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15903 * gdb/event-loop.c (gdb_wait_for_event): Update.
15904 * gdb/printcmd.c (printf_command): Update.
15905 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15906 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15907 (gdb_os_flush_stderr): Update.
15908 * gdb/remote.c (remote_console_output): Update.
15909 * gdb/ui-file.c (gdb_flush): Rename to...
15910 (ui_file_flush): ...this.
15911 (stderr_file::write): Update.
15912 (stderr_file::puts): Update.
15913 * gdb/ui-file.h (gdb_flush): Rename to...
15914 (ui_file_flush): ...this.
15915 * gdb/utils.c (gdb_flush): Add function.
15916 * gdb/utils.h (gdb_flush): Add declaration.
15918 2020-02-07 Tom Tromey <tromey@adacore.com>
15920 PR breakpoints/24915:
15921 * source.c (find_and_open_source): Do not check basenames_may_differ.
15923 2020-02-07 Tom Tromey <tom@tromey.com>
15925 * README: Update gdbserver documentation.
15926 * gdbserver: Move to top level.
15927 * configure.tgt (build_gdbserver): Remove.
15928 * configure.ac: Remove --enable-gdbserver.
15929 * configure: Rebuild.
15930 * Makefile.in (distclean): Don't mention gdbserver.
15932 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15934 * source-cache.c (source_cache::ensure): Surround
15935 get_plain_source_lines with a try/catch.
15936 (source_cache::get_line_charpos): Get rid of try/catch
15937 and only check for the return value of "ensure".
15938 * tui/tui-source.c (tui_source_window::set_contents):
15939 Simplify "nlines" calculation.
15941 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15943 * MAINTAINERS (Write After Approval): Add myself.
15945 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15947 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15950 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15952 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15954 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15956 * nat/riscv-linux-tdesc.h: New file.
15957 * nat/riscv-linux-tdesc.c: New file, taking code from...
15958 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15960 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15963 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15965 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15966 we don't set the fake simulator ptid to the null_ptid.
15968 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15970 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15971 * gdbthread.h (class thread_info) <resumed>: Likewise.
15972 * infrun.c (resume_1): Likewise.
15973 (proceed): Likewise.
15974 (infrun_thread_stop_requested): Likewise.
15975 (stop_all_threads): Likewise.
15976 (handle_inferior_event): Likewise.
15977 (restart_threads): Likewise.
15978 (finish_step_over): Likewise.
15979 (keep_going_stepped_thread): Likewise.
15980 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15981 (linux_handle_extended_wait): Likewise.
15982 * record-btrace.c (get_thread_current_frame_id): Likewise.
15983 * record-full.c (record_full_wait_1): Likewise.
15984 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15985 * target.c (target_resume): Likewise.
15986 * thread.c (set_running_thread): Likewise.
15988 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15990 * f-valprint.c (f77_print_array_1): Changed datatype of index
15991 variable to LONGEST from int to enable it to contain bound
15994 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15996 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15997 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15998 offsets according to FLEN determined.
15999 (riscv_linux_nat_target::read_description): Determine FLEN
16001 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16002 according to FLEN determined.
16003 (riscv_linux_nat_target::store_registers): Likewise.
16005 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16007 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16008 when reg->group is empty and reggroup is not.
16010 2020-01-31 Tom Tromey <tromey@adacore.com>
16012 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16013 Call beneath target's mourn_inferior after unpushing.
16015 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16018 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16019 have enough lines to fill the screen, still return the lowest
16022 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16024 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16025 '-', '<', and '>' commands.
16027 2020-01-29 Pedro Alves <palves@redhat.com>
16028 Sergio Durigan Junior <sergiodj@redhat.com>
16030 * infcmd.c (construct_inferior_arguments): Assert that
16031 'argc' is greater than 0.
16033 2020-01-29 Luis Machado <luis.machado@linaro.org>
16035 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16036 (BRK_INSN_MASK): Define to 0xd4200000.
16037 (aarch64_program_breakpoint_here_p): New function.
16038 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16039 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16041 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16043 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16044 call gdbarch_program_breakpoint_here_p.
16045 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16046 default_program_breakpoint_here_p, changed return type to bool and
16048 * breakpoint.h (program_breakpoint_here): Moved prototype to
16049 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16050 return type to bool.
16051 * gdbarch.c: Regenerate.
16052 * gdbarch.h: Regenerate.
16053 * gdbarch.sh (program_breakpoint_here_p): New method.
16054 * infrun.c (handle_signal_stop): Call
16055 gdbarch_program_breakpoint_here_p.
16057 2020-01-26 Tom Tromey <tom@tromey.com>
16059 * ctfread.c (struct ctf_fp_info): Reindent.
16060 (_initialize_ctfread): Remove.
16062 2020-01-26 Tom Tromey <tom@tromey.com>
16064 * psymtab.c (partial_map_expand_apply)
16065 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16066 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16067 (psym_print_stats, psym_expand_symtabs_for_function)
16068 (psym_map_symbol_filenames, psym_map_matching_symbols)
16069 (psym_expand_symtabs_matching)
16070 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16071 (maintenance_check_psymtabs): Use new methods.
16072 * psympriv.h (struct partial_symtab) <readin_p,
16073 get_compunit_symtab>: New methods.
16074 <readin, compunit_symtab>: Remove members.
16075 (struct standard_psymtab): New.
16076 (struct legacy_psymtab): Derive from standard_psymtab.
16077 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16079 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16081 2020-01-26 Tom Tromey <tom@tromey.com>
16083 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16084 read_dependencies. Add assert.
16085 * psymtab.c (partial_symtab::read_dependencies): New method.
16086 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16088 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16089 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16091 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16094 2020-01-26 Tom Tromey <tom@tromey.com>
16096 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16097 Call expand_psymtab.
16098 (xcoff_read_symtab): Call expand_psymtab.
16099 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16100 legacy_expand_psymtab.
16101 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16103 (struct legacy_psymtab) <expand_psymtab>: Implement.
16104 <legacy_expand_psymtab>: New member.
16105 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16106 (parse_partial_symbols): Set legacy_expand_psymtab.
16107 (psymtab_to_symtab_1): Change argument order. Call
16109 (new_psymtab): Set legacy_expand_psymtab.
16110 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16111 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16113 (dwarf2_psymtab::expand_psymtab): Rename from
16114 psymtab_to_symtab_1. Call expand_psymtab.
16115 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16116 (dbx_end_psymtab): Likewise.
16117 (dbx_psymtab_to_symtab_1): Change argument order. Call
16119 (dbx_read_symtab): Call expand_psymtab.
16120 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16121 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16122 (ctf_psymtab::read_symtab): Call expand_psymtab.
16124 2020-01-26 Tom Tromey <tom@tromey.com>
16126 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16127 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16129 * mdebugread.c (mdebug_read_symtab): Remove prints.
16130 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16132 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16134 2020-01-26 Tom Tromey <tom@tromey.com>
16136 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16137 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16138 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16140 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16141 * psymtab.c (psymtab_to_symtab): Call method.
16142 (dump_psymtab): Update.
16143 * psympriv.h (struct partial_symtab): Add virtual destructor.
16144 <read_symtab>: New method.
16145 (struct legacy_symtab): New.
16146 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16147 (struct pst_map) <pst>: Now a legacy_psymtab.
16148 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16149 (new_psymtab): Use legacy_psymtab.
16150 * dwarf2read.h (struct dwarf2_psymtab): New.
16151 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16152 * dwarf2read.c (dwarf2_create_include_psymtab)
16153 (dwarf2_build_include_psymtabs, create_type_unit_group)
16154 (create_partial_symtab, process_psymtab_comp_unit_reader)
16155 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16156 (set_partial_user): Use dwarf2_psymtab.
16157 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16158 (psymtab_to_symtab_1, process_full_comp_unit)
16159 (process_full_type_unit, dwarf2_ranges_read)
16160 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16161 (dwarf_decode_lines): Use dwarf2_psymtab.
16162 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16163 (add_address_entry_worker, write_one_signatured_type)
16164 (recursively_count_psymbols, recursively_write_psymbols)
16165 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16166 (write_debug_names): Likewise.
16167 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16168 <pst>: Now a legacy_psymtab.
16169 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16170 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16171 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16172 * ctfread.c (struct ctf_psymtab): New.
16173 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16175 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16176 (create_partial_symtab): Return a ctf_psymtab.
16177 (scan_partial_symbols): Update.
16179 2020-01-26 Tom Tromey <tom@tromey.com>
16181 * xcoffread.c (xcoff_start_psymtab): Use new.
16182 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16183 renamed from start_psymtab_common.
16184 * psympriv.h (struct partial_symtab): Add new constructor.
16185 (start_psymtab_common): Don't declare.
16186 * mdebugread.c (parse_partial_symbols): Use new.
16187 * dwarf2read.c (create_partial_symtab): Use new.
16188 * dbxread.c (start_psymtab): Use new.
16189 * ctfread.c (create_partial_symtab): Use new.
16191 2020-01-26 Tom Tromey <tom@tromey.com>
16193 * xcoffread.c (xcoff_end_psymtab): Use new.
16194 * psymtab.c (start_psymtab_common): Use new.
16195 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16197 * psympriv.h (struct partial_symtab): Add parameters to
16198 constructor. Don't inline.
16199 (allocate_psymtab): Don't declare.
16200 * mdebugread.c (new_psymtab): Use new.
16201 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16202 * dbxread.c (dbx_end_psymtab): Use new.
16204 2020-01-26 Tom Tromey <tom@tromey.com>
16206 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16207 allocate_psymtab. Update documentation.
16208 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16209 allocate_psymtab. Do not use new.
16210 (allocate_psymtab): Use new. Update.
16212 2020-01-26 Tom Tromey <tom@tromey.com>
16214 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16215 * psymtab.c (psym_print_stats): Update.
16216 * psympriv.h (struct partial_symtab) <readin,
16217 psymtabs_addrmap_supported, anonymous>: Now bool.
16218 * mdebugread.c (psymtab_to_symtab_1): Update.
16219 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16220 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16221 (process_full_comp_unit, process_full_type_unit): Update.
16222 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16223 * ctfread.c (psymtab_to_symtab): Update.
16225 2020-01-26 Tom Tromey <tom@tromey.com>
16227 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16228 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16229 * psymtab.c (psymtab_storage): Delete psymtabs.
16230 (psymtab_storage::allocate_psymtab): Use new.
16231 (psymtab_storage::discard_psymtab): Use delete.
16232 * psympriv.h (struct partial_symtab): Add constructor and
16235 2020-01-26 Tom Tromey <tom@tromey.com>
16237 * machoread.c: Do not include psympriv.h.
16239 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16241 * NEWS: Mention the new option and the set/show commands.
16243 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16245 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16246 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16247 (validate_exec_file): New variables, enums, functions.
16248 (exec_file_locate_attach, print_section_info): Style the filenames.
16249 (_initialize_exec): Install show_exec_file_mismatch_command and
16250 set_exec_file_mismatch_command.
16251 * gdbcore.h (validate_exec_file): Declare.
16252 * infcmd.c (attach_command): Call validate_exec_file.
16253 * remote.c ( remote_target::remote_add_inferior): Likewise.
16255 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16257 * frame.c (find_frame_sal): Move call to get_next_frame into more
16259 * inline-frame.c (inilne_state) <inline_state>: Update argument
16261 (inilne_state) <skipped_symbol>: Rename to...
16262 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16263 (skip_inline_frames): Build vector of skipped symbols and use this
16264 to reate the inline_state.
16265 (inline_skipped_symbol): Add a comment and some assertions, fetch
16266 skipped symbol from the list.
16268 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16270 * buildsym.c (lte_is_less_than): Delete.
16271 (buildsym_compunit::end_symtab_with_blockvector): Create local
16272 lambda function to sort line table entries, and use
16273 std::stable_sort instead of std::sort.
16274 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16275 markers when looking for a previous line.
16277 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16279 * dwarf2read.c (lnp_state_machine::record_line): Include
16280 end_sequence parameter in debug print out. Record the line if we
16281 are at an end_sequence marker even if it's not the start of a
16283 * symmisc.c (maintenance_print_one_line_table): Print end of
16284 sequence markers with 'END' not '0'.
16286 2020-01-24 Pedro Alves <palves@redhat.com>
16289 * thread.c (scoped_restore_current_thread::restore): Use
16290 switch_to_inferior_no_thread.
16291 * exec.c: Include "progspace-and-thread.h".
16292 (add_target_sections, remove_target_sections):
16293 scoped_restore_current_pspace_and_thread instead of
16294 scoped_restore_current_thread.
16295 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16296 and aspace to the inferior before calling clone_program_space.
16297 Remove stale comment.
16299 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16301 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16302 (arm_netbsd_nat_target::fetch_registers): ...this.
16303 (arm_nbsd_nat_target::store_registers): Rename to...
16304 (arm_netbsd_nat_target::store_registers): ...this.
16306 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16308 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16311 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16313 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16315 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16317 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16318 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16319 the correct replacement (iterate_over_regset_sections).
16320 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16323 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16326 * gdb/python/python.c (execute_gdb_command): Call
16327 async_enable_stdin in catch block.
16329 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16331 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16332 SWITCH_THRU_ALL_UIS.
16334 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16337 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16338 comment, add extra parameter, and update to store previous symbol
16340 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16341 add extra parameter.
16342 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16343 remove unneeded parameter, add try/catch around gdb_print_insn,
16344 rewrite to add items to asm_lines vector.
16345 (tui_find_backward_disassembly_start_address): New function.
16346 (tui_find_disassembly_address): Updated throughout.
16347 (tui_disasm_window::set_contents): Update for changes to
16349 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16350 number of lines to scroll.
16352 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16354 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16355 (SECT_OFF_DATA): Likewise.
16356 (SECT_OFF_RODATA): Likewise.
16357 (SECT_OFF_TEXT): Likewise.
16358 (SECT_OFF_BSS): Likewise.
16359 (struct objfile) <text_section_offset, data_section_offset>: New
16361 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16362 objfile::text_section_offset.
16363 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16364 * coffread.c (coff_symtab_read): Likewise.
16365 (enter_linenos): Likewise.
16366 (process_coff_symbol): Likewise.
16367 * ctfread.c (get_objfile_text_range): Likewise.
16368 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16369 Use objfile::data_section_offset.
16370 * dwarf2-frame.c (execute_cfa_program): Use
16371 objfile::text_section_offset.
16372 (dwarf2_frame_find_fde): Likewise.
16373 * dwarf2read.c (create_addrmap_from_index): Likewise.
16374 (create_addrmap_from_aranges): Likewise.
16375 (dw2_find_pc_sect_compunit_symtab): Likewise.
16376 (process_psymtab_comp_unit_reader): Likewise.
16377 (add_partial_symbol): Likewise.
16378 (add_partial_subprogram): Likewise.
16379 (process_full_comp_unit): Likewise.
16380 (read_file_scope): Likewise.
16381 (read_func_scope): Likewise.
16382 (read_lexical_block_scope): Likewise.
16383 (read_call_site_scope): Likewise.
16384 (dwarf2_rnglists_process): Likewise.
16385 (dwarf2_ranges_process): Likewise.
16386 (dwarf2_ranges_read): Likewise.
16387 (dwarf_decode_lines_1): Likewise.
16388 (new_symbol): Likewise.
16389 (dwarf2_fetch_die_loc_sect_off): Likewise.
16390 (dwarf2_per_cu_text_offset): Likewise.
16391 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16392 * hppa-tdep.c (read_unwind_info): Likewise.
16393 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16394 * psympriv.h (struct partial_symtab): Likewise.
16395 * psymtab.c (find_pc_sect_psymtab): Likewise.
16396 * solib-svr4.c (enable_break): Likewise.
16397 * stap-probe.c (relocate_address): Use
16398 objfile::data_section_offset.
16399 * xcoffread.c (enter_line_range): Use
16400 objfile::text_section_offset.
16401 (read_xcoff_symtab): Likewise.
16403 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16405 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16406 declaration to narrower scopes.
16408 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16410 * darwin-nat.h (struct darwin_exception_msg, enum
16411 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16413 (class darwin_nat_target) <wait_1, check_new_threads,
16414 decode_exception_message, decode_message, stop_inferior,
16415 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16416 * darwin-nat.c (darwin_check_new_threads): Rename to...
16417 (darwin_nat_target::check_new_threads): ... this.
16418 (darwin_suspend_inferior_it): Remove.
16419 (darwin_decode_exception_message): Rename to...
16420 (darwin_nat_target::decode_exception_message): ... this.
16421 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16422 (darwin_decode_message): Rename to...
16423 (darwin_nat_target::decode_message): ... this.
16424 (cancel_breakpoint): Rename to...
16425 (darwin_nat_target::cancel_breakpoint): ... this.
16426 (darwin_wait): Rename to...
16427 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16428 instead of iterate_over_inferiors.
16429 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16430 (darwin_stop_inferior): Rename to...
16431 (darwin_nat_target::stop_inferior): ... this.
16432 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16433 (darwin_init_thread_list): Rename to...
16434 (darwin_nat_target::init_thread_list): ... this.
16435 (darwin_ptrace_him): Rename to...
16436 (darwin_nat_target::ptrace_him): ... this.
16437 (darwin_nat_target::create_inferior): Pass lambda function to
16439 (darwin_nat_target::detach): Call stop_inferior instead of
16440 darwin_stop_inferior.
16441 * fork-inferior.h (fork_inferior): Change init_trace_fun
16442 parameter to gdb::function_view.
16443 * fork-inferior.c (fork_inferior): Likewise.
16445 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16447 * i386-cygwin-tdep.c (core_process_module_section): Update.
16448 * windows-nat.c (struct lm_info_windows): Add text_offset.
16449 (windows_xfer_shared_libraries): Update.
16450 * windows-tdep.c (windows_xfer_shared_library):
16451 Add text_offset_cached argument.
16452 * windows-tdep.h (windows_xfer_shared_library): Update.
16454 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16456 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16458 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16460 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16461 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16462 replace with range-based for.
16463 (gdbsim_interrupt_inferior): Remove.
16464 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16465 with a range-based for. Inline code from
16466 gdbsim_interrupt_inferior.
16468 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16470 * infrun.c (proceed): Fix indentation.
16472 2020-01-21 Tom Tromey <tromey@adacore.com>
16474 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16475 * python/python.c (python_extension_ops): Update.
16476 (gdbpy_colorize): New function.
16477 * python/lib/gdb/__init__.py (colorize): New function.
16478 * extension.h (ext_lang_colorize): Declare.
16479 * extension.c (ext_lang_colorize): New function.
16480 * extension-priv.h (struct extension_language_ops) <colorize>: New
16482 * cli/cli-style.c (_initialize_cli_style): Update help text.
16484 2020-01-21 Luis Machado <luis.machado@linaro.org>
16486 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16487 <cond>: Change type to bool.
16488 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16489 (aarch64_displaced_step_cb): Likewise.
16490 (aarch64_displaced_step_tb): Likewise.
16492 2020-01-21 Luis Machado <luis.machado@linaro.org>
16494 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16497 2020-01-21 Luis Machado <luis.machado@linaro.org>
16499 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16500 <pc_adjust>: Adjust the documentation.
16501 (aarch64_displaced_step_fixup): Check if PC really moved before
16504 2020-01-19 Tom Tromey <tom@tromey.com>
16506 * disasm.c (~gdb_disassembler): New destructor.
16507 (gdb_buffered_insn_length): Call disassemble_free_target.
16508 * disasm.h (class gdb_disassembler): Declare destructor. Use
16509 DISABLE_COPY_AND_ASSIGN.
16511 2020-01-19 Tom Tromey <tom@tromey.com>
16513 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16514 (die_reader_func_ftype): Remove.
16515 (cutu_reader): New class.
16516 (dw2_get_file_names_reader): Remove "data" parameter.
16517 (dw2_get_file_names): Use cutu_reader.
16518 (create_debug_type_hash_table): Update.
16519 (read_cutu_die_from_dwo): Update comment.
16520 (lookup_dwo_unit): Add dwo_name parameter.
16521 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16522 die_reader_func_ftype and data parameters.
16523 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16524 Remove die_reader_func_ftype and data parameters.
16525 (~cutu_reader): New; from init_cutu_and_read_dies.
16526 (cutu_reader::cutu_reader): Rename from
16527 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16528 and data parameters.
16529 (init_cutu_and_read_dies_simple): Remove.
16530 (struct process_psymtab_comp_unit_data): Remove.
16531 (process_psymtab_comp_unit_reader): Remove data parameter; add
16532 want_partial_unit and pretend_language parameters.
16533 (process_psymtab_comp_unit): Use cutu_reader.
16534 (build_type_psymtabs_reader): Remove data parameter.
16535 (build_type_psymtabs_1): Use cutu_reader.
16536 (process_skeletonless_type_unit): Likewise.
16537 (load_partial_comp_unit_reader): Remove.
16538 (load_partial_comp_unit): Use cutu_reader.
16539 (load_full_comp_unit_reader): Remove.
16540 (load_full_comp_unit): Use cutu_reader.
16541 (struct create_dwo_cu_data): Remove.
16542 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16543 dwo_unit parameters.
16544 (create_cus_hash_table): Use cutu_reader.
16545 (struct dwarf2_read_addr_index_data): Remove.
16546 (dwarf2_read_addr_index_reader): Remove.
16547 (dwarf2_read_addr_index): Use cutu_reader.
16548 (read_signatured_type_reader): Remove.
16549 (read_signatured_type): Use cutu_reader.
16551 2020-01-19 Tom Tromey <tom@tromey.com>
16553 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16554 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16555 (tui_wrefresh): Declare.
16556 * tui/tui-wingeneral.c (suppress_output): New global.
16557 (tui_suppress_output, ~tui_suppress_output): New constructor and
16559 (tui_wrefresh): New function.
16560 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16561 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16562 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16564 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16566 (tui_data_window::no_refresh): New method.
16567 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16568 (tui_reg_command): Use tui_suppress_output
16569 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16570 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16572 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16574 2020-01-19 Tom Tromey <tom@tromey.com>
16576 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16577 Handle case where symtab is null.
16579 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16581 * linux-fork.c (one_fork_p): Simplify.
16583 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16585 * top.c (struct qt_args): Remove.
16586 (kill_or_detach): Change return type to void, replace `void *`
16587 parameter with a proper one.
16588 (print_inferior_quit_action): Likewise.
16589 (quit_confirm): Use range-based for loop to iterate over inferiors.
16590 (quit_force): Likewise.
16592 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16594 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16595 `void *` parameter with proper parameters.
16596 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16597 (print_one_inferior): Change return type to void, replace `void *`
16598 parameter with proper parameters.
16599 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16601 (get_other_inferior): Remove.
16602 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16605 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16607 * mi/mi-interp.c (report_initial_inferior): Remove.
16608 (mi_interp::init): Use range-based for to iterate over inferiors.
16610 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16612 * python/py-inferior.c (build_inferior_list): Remove.
16613 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16615 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16617 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16618 (btrace_stitch_trace): Likewise.
16619 * charset.c (intermediate_encoding): Likewise (vaild).
16620 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16621 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16622 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16624 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16626 * windows-tdep.c (windows_get_tlb_type):
16627 Add rtl_user_process_parameters type.
16629 2020-01-16 Pedro Alves <palves@redhat.com>
16630 Norbert Lange <nolange79@gmail.com>
16633 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16634 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16635 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16636 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16637 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16638 (ps_plog): Redeclare exported functions with default visibility.
16640 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16642 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16643 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16645 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16647 * infcmd.c (post_create_inferior): Use get_thread_regcache
16648 instead of get_current_regcache.
16650 2020-01-14 Tom Tromey <tom@tromey.com>
16653 * python/python.c (gdbpy_decode_line): Treat empty string the same
16656 2020-01-14 Tom Tromey <tom@tromey.com>
16658 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16660 2020-01-14 Tom Tromey <tom@tromey.com>
16662 * nat/linux-btrace.c: Don't include <config.h>.
16663 * nat/linux-ptrace.c: Don't include <config.h>.
16664 * nat/x86-linux-dregs.c: Don't include <config.h>.
16666 2020-01-14 Tom Tromey <tom@tromey.com>
16668 * configure: Rebuild.
16669 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16671 2020-01-14 Tom Tromey <tom@tromey.com>
16673 * nat/x86-linux-dregs.c: Include configh.h.
16674 * nat/linux-ptrace.c: Include configh.h.
16675 * nat/linux-btrace.c: Include configh.h.
16676 * defs.h: Include config.h, bfd.h.
16677 * configure.ac: Don't source common.host.
16678 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16679 * configure: Rebuild.
16680 * acinclude.m4: Update path.
16681 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16682 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16683 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16684 (CLIBS): Add LIBSUPPORT.
16686 (COMMON_SFILES): Remove gdbsupport files.
16687 (HFILES_NO_SRCDIR): Likewise.
16688 (stamp-version): Update path to create-version.sh.
16689 (ALLDEPFILES): Remove gdbsupport files.
16691 2020-01-14 Tom Tromey <tom@tromey.com>
16693 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16694 USE_WIN32API when needed.
16695 * configure.ac (USE_WIN32API): Don't define.
16696 (WIN32LIBS): Use WIN32APILIBS.
16697 * configure: Rebuild.
16699 2020-01-14 Tom Tromey <tom@tromey.com>
16701 * configure: Rebuild.
16702 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16704 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16706 * skip.c (skip_function_command): Make skip w/o arguments use the
16707 name of the inlined function if pc is inside any inlined function.
16709 2020-01-14 Luis Machado <luis.machado@linaro.org>
16711 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16712 * infrun.c (resume_1): Likewise.
16713 (handle_inferior_event): Remove stale comment.
16714 * linux-nat.c (linux_nat_target::resume): Update comments.
16715 (save_stop_reason): Likewise.
16716 (linux_nat_filter_event): Likewise.
16717 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16719 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16721 * elfread.c (record_minimal_symbol): Set section index to 0 for
16722 non-allocatable sections.
16725 2020-01-13 Ali Tamur <tamur@google.com>
16727 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16728 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16729 to gdb::optional. Update comments.
16730 (dwo_file): Update comments.
16731 (read_attribute): Update API to take an additional out parameter,
16732 need_reprocess. This is used to mark attributes that need other
16733 attributes (e.g. str_offsets_base) for correct computation which may not
16734 have been read yet.
16735 (read_attribute_reprocess): New function declaration.
16736 (read_addr_index): Likewise.
16737 (read_dwo_str_index): Likewise.
16738 (read_stub_str_index): Likewise.
16739 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16740 (lookup_addr_base): New function definition.
16741 (lookup_ranges_base): Likewise.
16742 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16743 lookup_ranges_base.
16744 (init_cutu_and_read_dies): Update comments.
16745 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16746 unit. This is used to inherit parent's str_offsets_base and addr_base.
16748 (init_cutu_and_read_dies_simple): Reflect API changes.
16749 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16750 (create_cus_hash_table): Change API to take parent compile unit.
16751 Reflect API changes.
16752 (open_and_init_dwo_file): Reflect API changes.
16753 (dwarf2_get_pc_bounds): Update comments.
16754 (dwarf2_record_block_ranges): Likewise.
16755 (read_full_die_1): Change implementation to reprocess attributes that
16756 need str_offsets_base and addr_base.
16757 (partial_die_info::read): Likewise.
16758 (read_attribute_reprocess): New function definition.
16759 (read_attribute_value): Change API to take an additional out parameter,
16760 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16761 when a non-dwo compile unit has index based attributes.
16762 (read_attribute): Reflect API changes.
16763 (read_addr_index_1): Reflect API changes. Update comments.
16764 (dwarf2_read_addr_index_data): Reflect API changes.
16765 (dwarf2_read_addr_index): Likewise.
16766 (read_str_index): Change API and implementation. This becomes a helper
16767 to be used by the new string index related methods. Update error
16768 message and comments.
16769 (read_dwo_str_index): New function definition.
16770 (read_stub_str_index): Likewise.
16771 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16772 * symfile.h (dwarf2_debug_sections): Likewise.
16773 * xcoffread.c (dwarf2_debug_sections): Likewise.
16775 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16777 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16778 core_reg_sect type to gdb_byte *.
16779 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16780 * cris-tdep.c (fetch_core_registers): Likewise.
16781 * corelow.c (core_target::get_core_register_section): Change
16782 type of `contents` to gdb::byte_vector.
16784 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16786 * tui/tui-wingeneral.c (box_win): Position the title in the center
16789 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16791 * corelow.c (core_target::get_core_register_section): Use
16792 std::vector instead of alloca.
16794 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16796 * warning.m4: Add -Wmissing-declarations to build_warnings.
16797 * configure: Re-generate.
16799 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16801 * python/python.c (init__gdb_module): Add declaration.
16803 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16805 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16806 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16807 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16808 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16809 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16810 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16811 * ada-exp.y (_initialize_ada_exp): Add declaration.
16812 * ada-lang.c (_initialize_ada_language): Add declaration.
16813 * ada-tasks.c (_initialize_tasks): Add declaration.
16814 * agent.c (_initialize_agent): Add declaration.
16815 * aix-thread.c (_initialize_aix_thread): Add declaration.
16816 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16817 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16818 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16819 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16820 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16821 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16822 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16823 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16824 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16825 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16826 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16827 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16828 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16829 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16830 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16831 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16832 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16833 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16834 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16835 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16836 * annotate.c (_initialize_annotate): Add declaration.
16837 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16838 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16839 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16840 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16841 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16842 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16843 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16844 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16845 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16846 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16847 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16848 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16849 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16850 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16851 * auto-load.c (_initialize_auto_load): Add declaration.
16852 * auxv.c (_initialize_auxv): Add declaration.
16853 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16854 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16855 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16856 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16857 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16858 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16859 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16860 * breakpoint.c (_initialize_breakpoint): Add declaration.
16861 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16862 * btrace.c (_initialize_btrace): Add declaration.
16863 * charset.c (_initialize_charset): Add declaration.
16864 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16865 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16866 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16867 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16868 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16869 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16870 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16871 * coffread.c (_initialize_coffread): Add declaration.
16872 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16873 * compile/compile.c (_initialize_compile): Add declaration.
16874 * complaints.c (_initialize_complaints): Add declaration.
16875 * completer.c (_initialize_completer): Add declaration.
16876 * copying.c (_initialize_copying): Add declaration.
16877 * corefile.c (_initialize_core): Add declaration.
16878 * corelow.c (_initialize_corelow): Add declaration.
16879 * cp-abi.c (_initialize_cp_abi): Add declaration.
16880 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16881 * cp-support.c (_initialize_cp_support): Add declaration.
16882 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16883 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16884 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16885 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16886 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16887 * ctfread.c (_initialize_ctfread): Add declaration.
16888 * d-lang.c (_initialize_d_language): Add declaration.
16889 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16890 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16891 * dbxread.c (_initialize_dbxread): Add declaration.
16892 * dcache.c (_initialize_dcache): Add declaration.
16893 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16894 * disasm.c (_initialize_disasm): Add declaration.
16895 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16896 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16897 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16898 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16899 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16900 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16901 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16902 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16903 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16904 * elfread.c (_initialize_elfread): Add declaration.
16905 * exec.c (_initialize_exec): Add declaration.
16906 * extension.c (_initialize_extension): Add declaration.
16907 * f-lang.c (_initialize_f_language): Add declaration.
16908 * f-valprint.c (_initialize_f_valprint): Add declaration.
16909 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16910 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16911 * filesystem.c (_initialize_filesystem): Add declaration.
16912 * findcmd.c (_initialize_mem_search): Add declaration.
16913 * findvar.c (_initialize_findvar): Add declaration.
16914 * fork-child.c (_initialize_fork_child): Add declaration.
16915 * frame-base.c (_initialize_frame_base): Add declaration.
16916 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16917 * frame.c (_initialize_frame): Add declaration.
16918 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16919 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16920 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16921 * gcore.c (_initialize_gcore): Add declaration.
16922 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16923 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16924 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16925 * gdbarch.c (_initialize_gdbarch): Add declaration.
16926 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16927 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16928 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16929 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16930 * go-lang.c (_initialize_go_language): Add declaration.
16931 * go32-nat.c (_initialize_go32_nat): Add declaration.
16932 * guile/guile.c (_initialize_guile): Add declaration.
16933 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16934 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16935 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16936 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16937 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16938 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16939 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16940 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16941 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16942 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16943 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16944 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16945 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16946 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16947 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16948 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16949 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16950 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16951 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16952 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16953 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16954 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16955 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16956 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16957 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16958 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16959 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16960 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16961 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16962 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16963 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16964 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16965 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16966 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16967 * infcall.c (_initialize_infcall): Add declaration.
16968 * infcmd.c (_initialize_infcmd): Add declaration.
16969 * inflow.c (_initialize_inflow): Add declaration.
16970 * infrun.c (_initialize_infrun): Add declaration.
16971 * interps.c (_initialize_interpreter): Add declaration.
16972 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16973 * jit.c (_initialize_jit): Add declaration.
16974 * language.c (_initialize_language): Add declaration.
16975 * linux-fork.c (_initialize_linux_fork): Add declaration.
16976 * linux-nat.c (_initialize_linux_nat): Add declaration.
16977 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16978 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16979 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16980 * m2-lang.c (_initialize_m2_language): Add declaration.
16981 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16982 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16983 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16984 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16985 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16986 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16987 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16988 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16989 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16990 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16991 * machoread.c (_initialize_machoread): Add declaration.
16992 * macrocmd.c (_initialize_macrocmd): Add declaration.
16993 * macroscope.c (_initialize_macroscope): Add declaration.
16994 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16995 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16996 * maint.c (_initialize_maint_cmds): Add declaration.
16997 * mdebugread.c (_initialize_mdebugread): Add declaration.
16998 * memattr.c (_initialize_mem): Add declaration.
16999 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17000 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17001 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17002 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17003 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17004 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17005 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17006 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17007 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17008 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17009 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17010 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17011 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17012 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17013 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17014 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17015 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17016 * mipsread.c (_initialize_mipsread): Add declaration.
17017 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17018 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17019 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17020 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17021 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17022 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17023 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17024 * nto-procfs.c (_initialize_procfs): Add declaration.
17025 * objc-lang.c (_initialize_objc_language): Add declaration.
17026 * observable.c (_initialize_observer): Add declaration.
17027 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17028 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17029 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17030 * osabi.c (_initialize_gdb_osabi): Add declaration.
17031 * osdata.c (_initialize_osdata): Add declaration.
17032 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17033 * parse.c (_initialize_parse): Add declaration.
17034 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17035 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17036 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17037 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17038 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17039 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17040 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17041 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17042 * printcmd.c (_initialize_printcmd): Add declaration.
17043 * probe.c (_initialize_probe): Add declaration.
17044 * proc-api.c (_initialize_proc_api): Add declaration.
17045 * proc-events.c (_initialize_proc_events): Add declaration.
17046 * proc-service.c (_initialize_proc_service): Add declaration.
17047 * procfs.c (_initialize_procfs): Add declaration.
17048 * producer.c (_initialize_producer): Add declaration.
17049 * psymtab.c (_initialize_psymtab): Add declaration.
17050 * python/python.c (_initialize_python): Add declaration.
17051 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17052 * record-btrace.c (_initialize_record_btrace): Add declaration.
17053 * record-full.c (_initialize_record_full): Add declaration.
17054 * record.c (_initialize_record): Add declaration.
17055 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17056 * regcache.c (_initialize_regcache): Add declaration.
17057 * reggroups.c (_initialize_reggroup): Add declaration.
17058 * remote-notif.c (_initialize_notif): Add declaration.
17059 * remote-sim.c (_initialize_remote_sim): Add declaration.
17060 * remote.c (_initialize_remote): Add declaration.
17061 * reverse.c (_initialize_reverse): Add declaration.
17062 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17063 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17064 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17065 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17066 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17067 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17068 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17069 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17071 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17072 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17073 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17074 * rust-exp.y (_initialize_rust_exp): Add declaration.
17075 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17076 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17077 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17078 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17079 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17080 * score-tdep.c (_initialize_score_tdep): Add declaration.
17081 * ser-go32.c (_initialize_ser_dos): Add declaration.
17082 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17083 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17084 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17085 * ser-uds.c (_initialize_ser_socket): Add declaration.
17086 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17087 * serial.c (_initialize_serial): Add declaration.
17088 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17089 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17090 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17091 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17092 * skip.c (_initialize_step_skip): Add declaration.
17093 * sol-thread.c (_initialize_sol_thread): Add declaration.
17094 * solib-aix.c (_initialize_solib_aix): Add declaration.
17095 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17096 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17097 * solib-frv.c (_initialize_frv_solib): Add declaration.
17098 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17099 * solib-target.c (_initialize_solib_target): Add declaration.
17100 * solib.c (_initialize_solib): Add declaration.
17101 * source-cache.c (_initialize_source_cache): Add declaration.
17102 * source.c (_initialize_source): Add declaration.
17103 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17104 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17105 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17106 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17107 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17108 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17109 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17110 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17111 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17112 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17113 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17114 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17115 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17116 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17117 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17118 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17119 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17120 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17121 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17122 * stabsread.c (_initialize_stabsread): Add declaration.
17123 * stack.c (_initialize_stack): Add declaration.
17124 * stap-probe.c (_initialize_stap_probe): Add declaration.
17125 * std-regs.c (_initialize_frame_reg): Add declaration.
17126 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17127 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17128 * symfile.c (_initialize_symfile): Add declaration.
17129 * symmisc.c (_initialize_symmisc): Add declaration.
17130 * symtab.c (_initialize_symtab): Add declaration.
17131 * target.c (_initialize_target): Add declaration.
17132 * target-connection.c (_initialize_target_connection): Add
17134 * target-dcache.c (_initialize_target_dcache): Add declaration.
17135 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17136 * thread.c (_initialize_thread): Add declaration.
17137 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17138 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17139 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17140 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17141 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17142 * tracectf.c (_initialize_ctf): Add declaration.
17143 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17144 * tracefile.c (_initialize_tracefile): Add declaration.
17145 * tracepoint.c (_initialize_tracepoint): Add declaration.
17146 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17147 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17148 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17149 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17150 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17151 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17152 * tui/tui.c (_initialize_tui): Add declaration.
17153 * typeprint.c (_initialize_typeprint): Add declaration.
17154 * ui-style.c (_initialize_ui_style): Add declaration.
17155 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17156 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17157 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17158 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17159 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17160 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17161 * unittests/filtered_iterator-selftests.c
17162 (_initialize_filtered_iterator_selftests): Add declaration.
17163 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17164 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17165 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17166 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17167 * unittests/main-thread-selftests.c
17168 (_initialize_main_thread_selftests): Add declaration.
17169 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17170 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17171 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17172 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17173 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17174 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17175 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17176 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17177 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17178 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17179 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17180 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17181 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17182 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17183 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17185 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17186 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17187 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17188 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17189 * user-regs.c (_initialize_user_regs): Add declaration.
17190 * utils.c (_initialize_utils): Add declaration.
17191 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17192 * valops.c (_initialize_valops): Add declaration.
17193 * valprint.c (_initialize_valprint): Add declaration.
17194 * value.c (_initialize_values): Add declaration.
17195 * varobj.c (_initialize_varobj): Add declaration.
17196 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17197 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17198 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17199 * windows-nat.c (_initialize_windows_nat): Add declaration.
17200 (_initialize_check_for_gdb_ini): Add declaration.
17201 (_initialize_loadable): Add declaration.
17202 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17203 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17204 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17205 * xcoffread.c (_initialize_xcoffread): Add declaration.
17206 * xml-support.c (_initialize_xml_support): Add declaration.
17207 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17208 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17209 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17210 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17212 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17214 * regformats/regdat.sh: Generate declaration for init function.
17216 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17218 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17220 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17221 close_one_inferior>: New methods.
17222 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17223 pass down target to find_inferior_pid.
17224 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17225 Pass down target to find_inferior_ptid.
17226 (gdbsim_target::create_inferior): Pass down target to
17228 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17229 target down to find_inferior_ptid and switch_to_thread.
17230 (gdbsim_target::close): Update to call close_one_inferior.
17231 (struct resume_data): Remove.
17232 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17233 directly, rather than through a void pointer.
17234 (gdbsim_target::resume): Update to call resume_one_inferior.
17236 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17238 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17240 2020-01-12 Pedro Alves <palves@redhat.com>
17242 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17243 directly for the current inferior instead of
17244 discard_all_inferiors.
17245 (discard_all_inferiors): Delete.
17247 2020-01-11 Tom Tromey <tom@tromey.com>
17249 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17250 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17251 deprecated_safe_get_selected_frame.
17253 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17255 * inferior.c (print_inferior): Switch inferior before printing it.
17257 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17258 Pedro Alves <palves@redhat.com>
17260 * progspace-and-thread.c (switch_to_program_space_and_thread):
17261 Assert there's an inferior for PSPACE. Use
17262 switch_to_inferior_no_thread to switch the inferior too.
17263 * progspace.c (program_space::~program_space): Call
17264 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17265 (program_space::free_all_objfiles): Don't call clear_symtab_users
17267 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17269 2020-01-10 Pedro Alves <palves@redhat.com>
17271 * NEWS: Mention multi-target debugging, "info connections", and
17272 "add-inferior -no-connection".
17274 2020-01-10 Pedro Alves <palves@redhat.com>
17276 * infrun.c: Include "target-connection.h".
17277 (check_multi_target_resumption): New.
17278 (proceed): Call it.
17279 * target-connection.c (make_target_connection_string): Make
17281 * target-connection.h (make_target_connection_string): Declare.
17283 2020-01-10 Pedro Alves <palves@redhat.com>
17285 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17286 * inferior.c (uiout_field_connection): New function.
17287 (print_inferior): Add new "connection-id" column.
17288 (add_inferior_command): Show connection number/string of added
17290 * process-stratum-target.h
17291 (process_stratum_target::connection_string): New virtual method.
17292 (process_stratum_target::connection_number): New field.
17293 * remote.c (remote_target::connection_string): New override.
17294 * target-connection.c: New file.
17295 * target-connection.h: New file.
17296 * target.c (decref_target): Remove process_stratum targets from
17297 the connection list.
17298 (target_stack::push): Add process_stratum targets to the
17301 2020-01-10 Pedro Alves <palves@redhat.com>
17304 2016-04-12 Pedro Alves <palves@redhat.com>
17305 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17306 Remove references to name.
17307 * serial.h (struct serial) <name>: Delete.
17309 2020-01-10 Pedro Alves <palves@redhat.com>
17311 * gdbarch-selftests.c (register_to_value_test): Remove "target
17312 already pushed" check.
17314 2020-01-10 Pedro Alves <palves@redhat.com>
17315 John Baldwin <jhb@FreeBSD.org>
17317 * aarch64-linux-nat.c
17318 (aarch64_linux_nat_target::thread_architecture): Adjust.
17319 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17320 (task_command_1): Likewise.
17321 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17322 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17323 (aix_thread_target::store_registers)
17324 (aix_thread_target::thread_alive): Adjust.
17325 * amd64-fbsd-tdep.c: Include "inferior.h".
17326 (amd64fbsd_get_thread_local_address): Pass down target.
17327 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17328 thread's gdbarch instead of target_gdbarch.
17329 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17330 get_last_target_status.
17331 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17332 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17334 (update_inserted_breakpoint_locations): Skip if inferiors with no
17336 (update_global_location_list): When handling moribund locations,
17337 find representative inferior for location's pspace, and use thread
17338 count of its process_stratum target.
17339 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17340 * bsd-uthread.c (bsd_uthread_target::wait): Use
17341 as_process_stratum_target and adjust thread_change_ptid and
17343 (bsd_uthread_target::update_thread_list): Use
17344 as_process_stratum_target and adjust find_thread_ptid,
17345 thread_change_ptid and add_thread calls.
17346 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17347 find_thread_ptid call.
17348 * corelow.c (add_to_thread_list): Adjust add_thread call.
17349 (core_target_open): Adjust add_thread_silent and thread_count
17351 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17352 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17353 * event-top.c (async_disconnect): Pop targets from all inferiors.
17354 * exec.c (add_target_sections): Push exec target on all inferiors
17355 sharing the program space.
17356 (remove_target_sections): Remove the exec target from all
17357 inferiors sharing the program space.
17358 (exec_on_vfork): New.
17359 * exec.h (exec_on_vfork): Declare.
17360 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17362 (fbsd_nat_target::update_thread_list): Adjust.
17363 (fbsd_nat_target::resume): Adjust.
17364 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17366 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17367 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17368 get_thread_arch_regcache call.
17369 * fork-child.c (gdb_startup_inferior): Pass target down to
17370 startup_inferior and set_executing.
17371 * gdbthread.h (struct process_stratum_target): Forward declare.
17372 (add_thread, add_thread_silent, add_thread_with_info)
17373 (in_thread_list): Add process_stratum_target parameter.
17374 (find_thread_ptid(inferior*, ptid_t)): New overload.
17375 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17377 (all_threads()): Delete overload.
17378 (all_threads, all_non_exited_threads): Add process_stratum_target
17380 (all_threads_safe): Use brace initialization.
17381 (thread_count): Add process_stratum_target parameter.
17382 (set_resumed, set_running, set_stop_requested, set_executing)
17383 (threads_are_executing, finish_thread_state): Add
17384 process_stratum_target parameter.
17385 (switch_to_thread): Use is_current_thread.
17386 * i386-fbsd-tdep.c: Include "inferior.h".
17387 (i386fbsd_get_thread_local_address): Pass down target.
17388 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17389 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17390 have_inferiors check.
17391 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17392 (inf_ptrace_target::attach): Adjust.
17393 * infcall.c (run_inferior_call): Adjust.
17394 * infcmd.c (run_command_1): Pass target to
17395 scoped_finish_thread_state.
17396 (proceed_thread_callback): Skip inferiors with no execution.
17397 (continue_command): Rename 'all_threads' local to avoid hiding
17398 'all_threads' function. Adjust get_last_target_status call.
17399 (prepare_one_step): Adjust set_running call.
17400 (signal_command): Use user_visible_resume_target. Compare thread
17401 pointers instead of inferior_ptid.
17402 (info_program_command): Adjust to pass down target.
17403 (attach_command): Mark target's 'thread_executing' flag.
17404 (stop_current_target_threads_ns): New, factored out from ...
17405 (interrupt_target_1): ... this. Switch inferior before making
17408 (struct all_inferiors_iterator, struct all_inferiors_range)
17409 (struct all_inferiors_safe_range)
17410 (struct all_non_exited_inferiors_range): Filter on
17411 process_stratum_target too. Remove explicit.
17412 * inferior.c (inferior::inferior): Push dummy target on target
17414 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17415 Add process_stratum_target parameter, and pass it down.
17416 (have_live_inferiors): Adjust.
17417 (switch_to_inferior_and_push_target): New.
17418 (add_inferior_command, clone_inferior_command): Handle
17419 "-no-connection" parameter. Use
17420 switch_to_inferior_and_push_target.
17421 (_initialize_inferior): Mention "-no-connection" option in
17422 the help of "add-inferior" and "clone-inferior" commands.
17423 * inferior.h: Include "process-stratum-target.h".
17424 (interrupt_target_1): Use bool.
17425 (struct inferior) <push_target, unpush_target, target_is_pushed,
17426 find_target_beneath, top_target, process_target, target_at,
17428 (discard_all_inferiors): Delete.
17429 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17430 (all_inferiors, all_non_exited_inferiors): Add
17431 process_stratum_target parameter.
17432 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17433 (target_last_proc_target): New global.
17434 (follow_fork_inferior): Push target on new inferior. Pass target
17435 to add_thread_silent. Call exec_on_vfork. Handle target's
17437 (follow_fork): Adjust get_last_target_status call. Also consider
17439 (follow_exec): Push target on new inferior.
17440 (struct execution_control_state) <target>: New field.
17441 (user_visible_resume_target): New.
17442 (do_target_resume): Call target_async.
17443 (resume_1): Set target's threads_executing flag. Consider resume
17445 (commit_resume_all_targets): New.
17446 (proceed): Also consider resume target. Skip threads of inferiors
17447 with no execution. Commit resumtion in all targets.
17448 (start_remote): Pass current inferior to wait_for_inferior.
17449 (infrun_thread_stop_requested): Consider target as well. Pass
17450 thread_info pointer to clear_inline_frame_state instead of ptid.
17451 (infrun_thread_thread_exit): Consider target as well.
17452 (random_pending_event_thread): New inferior parameter. Use it.
17453 (do_target_wait): Rename to ...
17454 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17456 (threads_are_resumed_pending_p, do_target_wait): New.
17457 (prepare_for_detach): Adjust calls.
17458 (wait_for_inferior): New inferior parameter. Handle it. Use
17459 do_target_wait_1 instead of do_target_wait.
17460 (fetch_inferior_event): Adjust. Switch to representative
17461 inferior. Pass target down.
17462 (set_last_target_status): Add process_stratum_target parameter.
17463 Save target in global.
17464 (get_last_target_status): Add process_stratum_target parameter and
17466 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17467 (context_switch): Check inferior_ptid == null_ptid before calling
17469 (get_inferior_stop_soon): Pass down target.
17470 (wait_one): Rename to ...
17471 (poll_one_curr_target): ... this.
17472 (struct wait_one_event): New.
17474 (stop_all_threads): Adjust.
17475 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17477 (switch_back_to_stepped_thread): Also consider target.
17478 (print_stop_event): Update.
17479 (normal_stop): Update. Also consider the resume target.
17480 * infrun.h (wait_for_inferior): Remove declaration.
17481 (user_visible_resume_target): New declaration.
17482 (get_last_target_status, set_last_target_status): New
17483 process_stratum_target parameter.
17484 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17485 process_stratum_target parameter, and use it.
17486 (clear_inline_frame_state (thread_info*)): New.
17487 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17488 process_stratum_target parameter.
17489 (clear_inline_frame_state (thread_info*)): Declare.
17490 * linux-fork.c (delete_checkpoint_command): Pass target down to
17492 (checkpoint_command): Adjust.
17493 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17494 instead of just tweaking inferior_ptid.
17495 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17496 (exit_lwp): Pass target down to find_thread_ptid.
17497 (attach_proc_task_lwp_callback): Pass target down to
17498 add_thread/set_running/set_executing.
17499 (linux_nat_target::attach): Pass target down to
17500 thread_change_ptid.
17501 (get_detach_signal): Pass target down to find_thread_ptid.
17502 Consider last target status's target.
17503 (linux_resume_one_lwp_throw, resume_lwp)
17504 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17505 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17506 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17507 (linux_nat_target::async_wait_fd): New.
17508 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17510 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17511 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17512 * linux-thread-db.c (struct thread_db_info::process_target): New
17514 (add_thread_db_info): Save target.
17515 (get_thread_db_info): New process_stratum_target parameter. Also
17517 (delete_thread_db_info): New process_stratum_target parameter.
17519 (thread_from_lwp): Adjust to pass down target.
17520 (thread_db_notice_clone): Pass down target.
17521 (check_thread_db_callback): Pass down target.
17522 (try_thread_db_load_1): Always push the thread_db target.
17523 (try_thread_db_load, record_thread): Pass target down.
17524 (thread_db_target::detach): Pass target down. Always unpush the
17526 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17527 target down. Always unpush the thread_db target.
17528 (find_new_threads_callback, thread_db_find_new_threads_2)
17529 (thread_db_target::update_thread_list): Pass target down.
17530 (thread_db_target::pid_to_str): Pass current inferior down.
17531 (thread_db_target::get_thread_local_address): Pass target down.
17532 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17534 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17535 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17536 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17537 (procfs_init_inferior): Rename to ...
17538 (procfs_target::procfs_init_inferior): ... this and adjust.
17539 (procfs_target::create_inferior, procfs_notice_thread)
17540 (procfs_do_thread_registers): Adjust.
17541 * ppc-fbsd-tdep.c: Include "inferior.h".
17542 (ppcfbsd_get_thread_local_address): Pass down target.
17543 * proc-service.c (ps_xfer_memory): Switch current inferior and
17544 program space as well.
17545 (get_ps_regcache): Pass target down.
17546 * process-stratum-target.c
17547 (process_stratum_target::thread_address_space)
17548 (process_stratum_target::thread_architecture): Pass target down.
17549 * process-stratum-target.h
17550 (process_stratum_target::threads_executing): New field.
17551 (as_process_stratum_target): New.
17552 * ravenscar-thread.c
17553 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17554 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17556 * record-btrace.c (record_btrace_target::info_record): Adjust.
17557 (record_btrace_target::record_method)
17558 (record_btrace_target::record_is_replaying)
17559 (record_btrace_target::fetch_registers)
17560 (get_thread_current_frame_id, record_btrace_target::resume)
17561 (record_btrace_target::wait, record_btrace_target::stop): Pass
17563 * record-full.c (record_full_wait_1): Switch to event thread.
17565 * regcache.c (regcache::regcache)
17566 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17567 process_stratum_target parameter and handle it.
17568 (current_thread_target): New global.
17569 (get_thread_regcache): Add process_stratum_target parameter and
17570 handle it. Switch inferior before calling target method.
17571 (get_thread_regcache): Pass target down.
17572 (get_thread_regcache_for_ptid): Pass target down.
17573 (registers_changed_ptid): Add process_stratum_target parameter and
17575 (registers_changed_thread, registers_changed): Pass target down.
17576 (test_get_thread_arch_aspace_regcache): New.
17577 (current_regcache_test): Define a couple local test_target_ops
17578 instances and use them for testing.
17579 (readwrite_regcache): Pass process_stratum_target parameter.
17580 (cooked_read_test, cooked_write_test): Pass mock_target down.
17581 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17582 (get_thread_arch_aspace_regcache): Add process_stratum_target
17584 (regcache::target): New method.
17585 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17586 (regcache::registers_changed_ptid): Add process_stratum_target
17588 (regcache::m_target): New field.
17589 (registers_changed_ptid): Add process_stratum_target parameter.
17590 * remote.c (remote_state::supports_vCont_probed): New field.
17591 (remote_target::async_wait_fd): New method.
17592 (remote_unpush_and_throw): Add remote_target parameter.
17593 (get_current_remote_target): Adjust.
17594 (remote_target::remote_add_inferior): Push target.
17595 (remote_target::remote_add_thread)
17596 (remote_target::remote_notice_new_inferior)
17597 (get_remote_thread_info): Pass target down.
17598 (remote_target::update_thread_list): Skip threads of inferiors
17599 bound to other targets. (remote_target::close): Don't discard
17600 inferiors. (remote_target::add_current_inferior_and_thread)
17601 (remote_target::process_initial_stop_replies)
17602 (remote_target::start_remote)
17603 (remote_target::remote_serial_quit_handler): Pass down target.
17604 (remote_target::remote_unpush_target): New remote_target
17605 parameter. Unpush the target from all inferiors.
17606 (remote_target::remote_unpush_and_throw): New remote_target
17607 parameter. Pass it down.
17608 (remote_target::open_1): Check whether the current inferior has
17609 execution instead of checking whether any inferior is live. Pass
17611 (remote_target::remote_detach_1): Pass down target. Use
17612 remote_unpush_target.
17613 (extended_remote_target::attach): Pass down target.
17614 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17615 (remote_target::append_resumption): Pass down target.
17616 (remote_target::append_pending_thread_resumptions)
17617 (remote_target::remote_resume_with_hc, remote_target::resume)
17618 (remote_target::commit_resume): Pass down target.
17619 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17620 (remote_target::interrupt_query)
17621 (remote_target::remove_new_fork_children)
17622 (remote_target::check_pending_events_prevent_wildcard_vcont)
17623 (remote_target::remote_parse_stop_reply)
17624 (remote_target::process_stop_reply): Pass down target.
17625 (first_remote_resumed_thread): New remote_target parameter. Pass
17627 (remote_target::wait_as): Pass down target.
17628 (unpush_and_perror): New remote_target parameter. Pass it down.
17629 (remote_target::readchar, remote_target::remote_serial_write)
17630 (remote_target::getpkt_or_notif_sane_1)
17631 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17633 (remote_target::mourn_inferior): Pass down target. Use
17634 remote_unpush_target.
17635 (remote_target::core_of_thread)
17636 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17637 (remote_target::pid_to_exec_file)
17638 (remote_target::thread_handle_to_thread_info): Pass down target.
17639 (remote_target::async_wait_fd): New.
17640 * riscv-fbsd-tdep.c: Include "inferior.h".
17641 (riscv_fbsd_get_thread_local_address): Pass down target.
17642 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17643 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17644 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17646 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17647 * solib-svr4.c (enable_break): Pass down target.
17648 * spu-multiarch.c (parse_spufs_run): Pass down target.
17649 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17650 * target-delegates.c: Regenerate.
17651 * target.c (g_target_stack): Delete.
17652 (current_top_target): Return the current inferior's top target.
17653 (target_has_execution_1): Refer to the passed-in inferior's top
17655 (target_supports_terminal_ours): Check whether the initial
17656 inferior was already created.
17657 (decref_target): New.
17658 (target_stack::push): Incref/decref the target.
17659 (push_target, push_target, unpush_target): Adjust.
17660 (target_stack::unpush): Defref target.
17661 (target_is_pushed): Return bool. Adjust to refer to the current
17662 inferior's target stack.
17663 (dispose_inferior): Delete, and inline parts ...
17664 (target_preopen): ... here. Only dispose of the current inferior.
17665 (target_detach): Hold strong target reference while detaching.
17667 (target_thread_name): Add assertion.
17668 (target_resume): Pass down target.
17669 (target_ops::beneath, find_target_at): Adjust to refer to the
17670 current inferior's target stack.
17671 (get_dummy_target): New.
17672 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17673 has a thread running.
17674 (initialize_targets): Rename to ...
17675 (_initialize_target): ... this.
17676 * target.h: Include "gdbsupport/refcounted-object.h".
17677 (struct target_ops): Inherit refcounted_object.
17678 (target_ops::shortname, target_ops::longname): Make const.
17679 (target_ops::async_wait_fd): New method.
17680 (decref_target): Declare.
17681 (struct target_ops_ref_policy): New.
17682 (target_ops_ref): New typedef.
17683 (get_dummy_target): Declare function.
17684 (target_is_pushed): Return bool.
17685 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17686 (all_matching_threads_iterator::all_matching_threads_iterator):
17687 Handle filter target.
17688 * thread-iter.h (struct all_matching_threads_iterator, struct
17689 all_matching_threads_range, class all_non_exited_threads_range):
17690 Filter by target too. Remove explicit.
17691 * thread.c (threads_executing): Delete.
17692 (inferior_thread): Pass down current inferior.
17693 (clear_thread_inferior_resources): Pass down thread pointer
17695 (add_thread_silent, add_thread_with_info, add_thread): Add
17696 process_stratum_target parameter. Use it for thread and inferior
17698 (is_current_thread): New.
17699 (thread_info::deletable): Use it.
17700 (find_thread_ptid, thread_count, in_thread_list)
17701 (thread_change_ptid, set_resumed, set_running): New
17702 process_stratum_target parameter. Pass it down.
17703 (set_executing): New process_stratum_target parameter. Pass it
17704 down. Adjust reference to 'threads_executing'.
17705 (threads_are_executing): New process_stratum_target parameter.
17706 Adjust reference to 'threads_executing'.
17707 (set_stop_requested, finish_thread_state): New
17708 process_stratum_target parameter. Pass it down.
17709 (switch_to_thread): Also match inferior.
17710 (switch_to_thread): New process_stratum_target parameter. Pass it
17712 (update_threads_executing): Reimplement.
17713 * top.c (quit_force): Pop targets from all inferior.
17714 (gdb_init): Don't call initialize_targets.
17715 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17717 (windows_add_thread, windows_delete_thread): Adjust.
17718 (get_windows_debug_event): Rename to ...
17719 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17720 * tracefile-tfile.c (tfile_target_open): Pass down target.
17721 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17723 (switch_to_thread): Add process_stratum_target parameter.
17724 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17726 (mi_on_resume): Pass target down.
17727 * nat/fork-inferior.c (startup_inferior): Add
17728 process_stratum_target parameter. Pass it down.
17729 * nat/fork-inferior.h (startup_inferior): Add
17730 process_stratum_target parameter.
17731 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17733 2020-01-10 Pedro Alves <palves@redhat.com>
17735 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17736 directly. Instead find the first thread in the thread list and
17737 use switch_to_thread.
17739 2020-01-10 Pedro Alves <palves@redhat.com>
17741 * remote.c (remote_target::remote_add_inferior): Don't bind a
17742 process to the current inferior if the current inferior is already
17743 bound to a process.
17745 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17746 Pedro Alves <palves@redhat.com>
17748 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17749 If no process is specified, return null_ptid instead of
17751 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17752 TARGET_WAITKIND_SIGNALLED with no pid.
17754 2020-01-10 Pedro Alves <palves@redhat.com>
17756 * remote.c (first_remote_resumed_thread): New.
17757 (remote_target::wait_as): Use it as default event_ptid instead of
17760 2020-01-10 Pedro Alves <palves@redhat.com>
17762 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17764 2020-01-10 Pedro Alves <palves@redhat.com>
17766 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17769 2020-01-10 Pedro Alves <palves@redhat.com>
17771 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17772 ptid to get_last_target_status.
17773 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17774 ptid to get_last_target_status.
17775 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17776 get_last_target_status.
17777 (info_program_command): Don't pass a target_waitstatus to
17778 get_last_target_status.
17779 * infrun.c (init_wait_for_inferior): Use
17780 nullify_last_target_wait_ptid.
17781 (get_last_target_status): Handle nullptr arguments.
17782 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17783 (print_stop_event): Don't pass a ptid to get_last_target_status.
17784 (normal_stop): Don't pass a ptid to get_last_target_status.
17785 * infrun.h (get_last_target_status, set_last_target_status): Move
17786 comments here and update.
17787 (nullify_last_target_wait_ptid): Declare.
17788 * linux-fork.c (fork_load_infrun_state): Remove local extern
17789 declaration of nullify_last_target_wait_ptid.
17790 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17791 to get_last_target_status.
17793 2020-01-10 Pedro Alves <palves@redhat.com>
17795 * gdbthread.h (scoped_restore_current_thread)
17796 <dont_restore, restore, m_dont_restore>: Declare.
17797 * thread.c (thread_alive): Add assertion. Return bool.
17798 (switch_to_thread_if_alive): New.
17799 (prune_threads): Switch inferior/thread.
17800 (print_thread_info_1): Switch thread before calling target methods.
17801 (scoped_restore_current_thread::restore): New, factored out from
17803 (scoped_restore_current_thread::~scoped_restore_current_thread):
17805 (scoped_restore_current_thread::scoped_restore_current_thread):
17807 (thread_apply_all_command, thread_select): Use
17808 switch_to_thread_if_alive.
17809 * infrun.c (proceed, restart_threads, handle_signal_stop)
17810 (switch_back_to_stepped_thread): Switch current thread before
17811 calling target methods.
17813 2020-01-10 Pedro Alves <palves@redhat.com>
17815 * inferior.c (switch_to_inferior_no_thread): New function,
17816 factored out from ...
17817 (inferior_command): ... here.
17818 * inferior.h (switch_to_inferior_no_thread): Declare.
17819 * mi/mi-main.c (run_one_inferior): Use
17820 switch_to_inferior_no_thread.
17822 2020-01-10 Pedro Alves <palves@redhat.com>
17824 * infcmd.c (kill_command): Remove dead code.
17826 2020-01-10 Pedro Alves <palves@redhat.com>
17828 * remote.c (remote_target::mourn_inferior): No longer check
17829 whether the target is running.
17831 2020-01-10 Pedro Alves <palves@redhat.com>
17833 * corelow.c (core_target::has_execution): Change parameter type to
17835 * inferior.c (number_of_live_inferiors): Use
17836 inferior::has_execution instead of target_has_execution_1.
17837 * inferior.h (inferior::has_execution): New.
17838 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17839 inferior::has_execution instead of target_has_execution_1.
17840 * process-stratum-target.c
17841 (process_stratum_target::has_execution): Change parameter type to
17842 inferior pointer. Check the inferior's PID instead of
17844 * process-stratum-target.h
17845 (process_stratum_target::has_execution): Change parameter type to
17847 * record-full.c (record_full_core_target::has_execution): Change
17848 parameter type to inferior pointer.
17849 * target.c (target_has_execution_1): Change parameter type to
17851 (target_has_execution_current): Adjust.
17852 * target.h (target_ops::has_execution): Change parameter type to
17854 (target_has_execution_1): Change parameter type to inferior
17855 pointer. Change return type to bool.
17856 * tracefile.h (tracefile_target::has_execution): Change parameter
17857 type to inferior pointer.
17859 2020-01-10 Pedro Alves <palves@redhat.com>
17861 * exceptions.c (print_flush): Remove current_top_target() check.
17863 2020-01-10 Pedro Alves <palves@redhat.com>
17865 * remote.c (show_remote_exec_file): Show the current inferior's
17866 exec-file instead of the command variable's value.
17868 2020-01-10 Pedro Alves <palves@redhat.com>
17870 * record-full.c (record_full_resume_ptid): New global.
17871 (record_full_target::resume): Set it.
17872 (record_full_wait_1): Use record_full_resume_ptid instead of
17875 2020-01-10 Pedro Alves <palves@redhat.com>
17877 * gdbthread.h (scoped_restore_current_thread)
17878 <dont_restore, restore, m_dont_restore>: Declare.
17879 * thread.c (thread_alive): Add assertion. Return bool.
17880 (switch_to_thread_if_alive): New.
17881 (prune_threads): Switch inferior/thread.
17882 (print_thread_info_1): Switch thread before calling target methods.
17883 (scoped_restore_current_thread::restore): New, factored out from
17885 (scoped_restore_current_thread::~scoped_restore_current_thread):
17887 (scoped_restore_current_thread::scoped_restore_current_thread):
17889 (thread_apply_all_command, thread_select): Use
17890 switch_to_thread_if_alive.
17892 2020-01-10 George Barrett <bob@bob131.so>
17894 * stap-probe.c (stap_modify_semaphore): Don't check for null
17896 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17897 for null semaphores.
17899 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17901 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17902 all source windows, and maintain horizontal scroll status while
17905 2020-01-09 Tom Tromey <tom@tromey.com>
17908 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17909 update_source_window, not print_source_lines.
17911 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17913 * tui/tui.c (tui_enable): Register tui hooks after calling
17916 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17918 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17920 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17922 * thread.c (print_thread_info_1): Fix indentation.
17924 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17926 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17927 unique_xmalloc_ptr outside the if to always free the demangled name.
17929 2020-01-08 Tom Tromey <tromey@adacore.com>
17931 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17932 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17933 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17934 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17936 (section_offsets): New typedef.
17937 * symtab.c (fixup_section, get_msymbol_address): Update.
17938 * symmisc.c (dump_msymbols): Update.
17939 * symfile.h (relative_addr_info_to_section_offsets)
17940 (symfile_map_offsets_to_segments): Update.
17941 * symfile.c (build_section_addr_info_from_objfile)
17942 (init_objfile_sect_indices): Update.
17943 (struct place_section_arg): Change type of "offsets".
17944 (place_section): Update.
17945 (relative_addr_info_to_section_offsets): Change type of
17946 "section_offsets". Remove "num_sections" parameter.
17947 (default_symfile_offsets, syms_from_objfile_1)
17948 (set_objfile_default_section_offset): Update.
17949 (reread_symbols): No need to preserve section offsets by hand.
17950 (symfile_map_offsets_to_segments): Change type of "offsets".
17951 * stap-probe.c (relocate_address): Update.
17952 * stabsread.h (process_one_symbol): Update.
17953 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17954 (solib_target_relocate_section_addresses): Update.
17955 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17957 * solib-frv.c (frv_relocate_main_executable): Update.
17958 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17959 * solib-aix.c (solib_aix_get_section_offsets): Change return
17961 (solib_aix_solib_create_inferior_hook): Update.
17962 * remote.c (remote_target::get_offsets): Update.
17963 * psymtab.c (find_pc_sect_psymtab): Update.
17964 * psympriv.h (struct partial_symbol) <address, text_low,
17965 text_high>: Update.
17966 * objfiles.h (obj_section_offset): Update.
17967 (struct objfile) <section_offsets>: Change type.
17968 <num_sections>: Remove.
17969 (objfile_relocate): Update.
17970 * objfiles.c (entry_point_address_query): Update
17971 (relocate_one_symbol): Change type of "section_offsets".
17972 (objfile_relocate1, objfile_relocate1): Change type of
17974 (objfile_rebase1): Update.
17975 * mipsread.c (mipscoff_symfile_read): Update.
17976 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17978 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17979 (parse_external, psymtab_to_symtab_1): Update.
17980 * machoread.c (macho_symfile_offsets): Update.
17981 * ia64-tdep.c (ia64_find_unwind_table): Update.
17982 * hppa-tdep.c (read_unwind_info): Update.
17983 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17984 * dwarf2read.c (create_addrmap_from_index)
17985 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17986 (process_psymtab_comp_unit_reader, add_partial_symbol)
17987 (add_partial_subprogram, process_full_comp_unit)
17988 (read_file_scope, read_func_scope, read_lexical_block_scope)
17989 (read_call_site_scope, dwarf2_rnglists_process)
17990 (dwarf2_ranges_process, dwarf2_ranges_read)
17991 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17992 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17994 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17996 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17997 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17998 (process_one_symbol): Change type of "section_offsets".
17999 * ctfread.c (get_objfile_text_range): Update.
18000 * coffread.c (coff_symtab_read, enter_linenos)
18001 (process_coff_symbol): Update.
18002 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18003 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18005 2020-01-08 Tom Tromey <tromey@adacore.com>
18007 * dwarf2read.c (parse_macro_definition): Use std::string.
18008 (parse_macro_definition): Likewise.
18010 2020-01-08 Tom Tromey <tromey@adacore.com>
18012 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18013 (ATTR_ALLOC_CHUNK): Remove.
18015 2020-01-08 Tom Tromey <tromey@adacore.com>
18017 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18019 2020-01-08 Tom Tromey <tromey@adacore.com>
18021 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18022 (dwarf2_compute_name, open_dwo_file): Likewise.
18023 (process_enumeration_scope): Use std::vector.
18024 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18025 (partial_die_info::fixup, dwarf2_start_subfile)
18026 (guess_full_die_structure_name, dwarf2_name): Likewise.
18027 (determine_prefix): Update.
18028 (guess_full_die_structure_name): Make return type const.
18029 (partial_die_full_name): Return unique_xmalloc_ptr.
18030 (DW_FIELD_ALLOC_CHUNK): Remove.
18032 2020-01-07 Tom Tromey <tromey@adacore.com>
18035 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18037 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18039 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18041 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18043 * stack.c (print_frame_info): Move disassemble_next_line code
18044 inside source_print block.
18046 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18048 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18049 gdb/signals.h, as we are now using native signal symbols.
18051 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18053 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18054 overflow by an early check of content vs threshold.
18055 * tui/tui-source.c (tui_source_window::line_is_displayed):
18058 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18060 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18062 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18064 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18065 export table if no section contains it's RVA.
18067 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18069 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18071 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18073 * source.c (print_source_lines_base): Set last_line_listed.
18075 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18077 * tui/tui-disasm.c: Remove trailing spaces.
18079 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18080 Pedro Alves <palves@redhat.com>
18082 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18083 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18084 (windows_gdb_signal_to_target): New function, uses the above
18085 enumeration to convert GDB internal signal codes to equivalent
18087 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18088 * windows-nat.c: Include "gdb_wait.h".
18089 (get_windows_debug_event): Extract the fatal exception from the
18090 exit status and convert to the equivalent Posix signal number.
18091 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18092 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18093 * gdbsupport/gdb_wait.c: New file, implements
18094 windows_status_to_termsig.
18095 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18096 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18098 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18100 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18103 2020-01-05 Luis Machado <luis.machado@linaro.org>
18105 * aarch64-linux-nat.c
18106 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18107 and bfd_mach_aarch64.
18109 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18111 * ui-file.c (stdio_file::can_emit_style_escape)
18112 (tee_file::can_emit_style_escape): Ensure style is used also on
18113 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18115 * main.c (set_gdb_data_directory): Use file style to output the
18116 warning that the given pathname is not a directory.
18117 * top.c (show_history_filename, gdb_safe_append_history)
18118 (show_gdb_datadir): Use file style.
18120 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18122 * solib-target.c (struct lm_info_target):
18123 Change offsets to be a unique_xmalloc_ptr.
18124 (solib_target_relocate_section_addresses): Update.
18126 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18128 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18130 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18132 * MAINTAINERS (Write After Approval): Add myself.
18134 2020-01-02 Luis Machado <luis.machado@linaro.org>
18136 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18137 Cell BE architecture.
18138 * target.h (struct target_ops) <thread_architecture>: Likewise.
18140 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18142 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18144 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18146 * MAINTAINERS (Write After Approval): Add myself.
18148 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18150 * gdbarch.sh: Update copyright year range of generated files.
18152 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18154 Update copyright year range in all GDB files.
18156 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18158 * copyright.py: Convert to Python 3.
18160 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18162 * copyright.py: Adapt after move of gnulib directory from gdb
18163 directory to toplevel directory.
18165 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18167 * copyright.py (main): Exit if run from the wrong directory.
18169 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18171 * top.c (print_gdb_version): Change copyright year to 2020.
18173 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18175 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18177 For older changes see ChangeLog-2019.
18183 version-control: never