1 2020-12-11 Tom Tromey <tom@tromey.com>
3 * varobj.c (varobj_create): Update.
4 (install_variable): Return void.
6 2020-12-11 Tom Tromey <tom@tromey.com>
8 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
10 2020-12-11 Tom Tromey <tom@tromey.com>
12 * varobj.c (varobj_clear_saved_item): Remove.
13 (update_dynamic_varobj_children): Update.
14 (varobj::~varobj): Don't call varobj_clear_saved_item.
16 2020-12-11 Tom Tromey <tom@tromey.com>
18 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
19 (update_dynamic_varobj_children, create_child)
20 (create_child_with_value): Update.
21 * varobj-iter.h (struct varobj_item) <value>: Now a
23 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
25 2020-12-11 Tom Tromey <tom@tromey.com>
27 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
28 (varobj_get_iterator): Return unique_ptr.
29 (update_dynamic_varobj_children, install_visualizer)
30 (varobj::~varobj): Update.
31 * python/python-internal.h (py_varobj_get_iterator): Return
33 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
35 2020-12-11 Tom Tromey <tom@tromey.com>
37 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
38 (varobj_clear_saved_item, update_dynamic_varobj_children):
41 2020-12-11 Tom Tromey <tom@tromey.com>
43 * varobj.c (update_dynamic_varobj_children): Update.
44 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
45 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
47 (py_varobj_iter::next): Likewise.
49 2020-12-11 Tom Tromey <tom@tromey.com>
51 * varobj.c (update_dynamic_varobj_children, install_visualizer)
52 (varobj::~varobj): Update.
53 * varobj-iter.h (struct varobj_iter): Change to interface class.
54 (struct varobj_iter_ops): Remove.
55 (varobj_iter_next, varobj_iter_delete): Remove.
56 * python/py-varobj.c (struct py_varobj_iter): Derive from
57 varobj_iter. Add constructor, destructor. Rename members.
58 (py_varobj_iter::~py_varobj_iter): Rename from
60 (py_varobj_iter::next): Rename from py_varobj_iter_next.
61 (py_varobj_iter_ops): Remove.
62 (py_varobj_iter): Rename from py_varobj_iter_ctor.
63 (py_varobj_iter_new): Remove.
64 (py_varobj_get_iterator): Update.
66 2020-12-11 Tom Tromey <tom@tromey.com>
68 * varobj.h (all_root_varobjs): Take a function_view.
69 * varobj.c (all_root_varobjs): Take a function_view.
70 (varobj_invalidate_iter): Remove unused parameter.
71 (varobj_invalidate): Update.
72 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
73 (mi_cmd_var_update_iter): Change parameters.
75 2020-12-11 Tom Tromey <tom@tromey.com>
77 * varobj.c (struct varobj_root) <next>: Remove.
78 (struct vlist): Remove.
79 (rootlist): Now a std::list.
80 (install_variable, uninstall_variable, all_root_varobjs): Update.
82 2020-12-11 Tom Tromey <tom@tromey.com>
84 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
85 (varobj_table): Now htab_t.
86 (varobj_get_handle, install_variable, uninstall_variable):
88 (hash_varobj, eq_varobj_and_string): New functions.
89 (hash_varobj): Update.
91 2020-12-11 Tom Tromey <tom@tromey.com>
93 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
94 * ada-lang.c (check_status_exception): Update.
95 * breakpoint.c (free_bp_location): Remove.
96 (decref_bp_location): Use bp_location_ref_policy.
97 (bpstats::bpstats): Don't call incref_bp_location.
98 (bpstats::~bpstats): Remove.
99 (bpstats::bpstats): Update.
100 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
101 (bp_location::bp_location): Update.
102 (incref_bp_location): Remove.
103 (bkpt_print_it): Update.
104 * breakpoint.h (class bp_location): Derive from
106 (struct bpstats): Remove destructor.
107 <bp_location_at>: Now a bp_location_ref_ptr.
109 (bp_location_ref_ptr): New typedef.
110 (struct bp_location_ref_policy): New.
112 2020-12-11 Tom Tromey <tom@tromey.com>
114 * thread.c (class scoped_inc_dec_ref): Remove.
115 (tp_array_compar_ascending, tp_array_compar_descending): Change
117 (thread_apply_all_command): Use thread_info_ref.
119 2020-12-11 Tom Tromey <tom@tromey.com>
121 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
122 (stop_context::stop_context): Update.
123 (stop_context::~stop_context): Remove.
125 2020-12-11 Tom Tromey <tom@tromey.com>
127 * inferior.c (current_inferior_): Change type.
128 (current_inferior, set_current_inferior, initialize_inferiors):
131 2020-12-11 Tom Tromey <tom@tromey.com>
133 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
136 2020-12-11 Tom Tromey <tromey@adacore.com>
138 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
140 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
141 (read_atcb): Use cpu_id_offset.
143 2020-12-10 Kevin Buettner <kevinb@redhat.com>
145 * ada-lang.c (ada_fold_name): Fix off-by-one error.
147 2020-12-10 Luis Machado <luis.machado@linaro.org>
149 * breakpoint.c (should_be_inserted): Don't output newline.
151 2020-12-10 Luis Machado <luis.machado@linaro.org>
153 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
154 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
155 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
156 * arch/aarch64.h: ... here.
157 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
158 (aarch64_maybe_swab128): New function.
159 (aarch64_sve_regs_copy_to_reg_buf)
160 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
161 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
163 (TF_REG_VALUE_BYTES): New enum value.
164 (trad_frame_value_bytes_p): New function.
165 (trad_frame_set_value_bytes): New function.
166 (trad_frame_set_reg_value_bytes): New function.
167 (trad_frame_get_prev_register): Handle register values saved as bytes.
168 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
169 (struct trad_frame_saved_reg) <data>: New field.
170 (trad_frame_set_value_bytes): New prototype.
171 (trad_frame_value_bytes_p): New prototype.
173 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
175 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
176 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
177 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
179 2020-12-09 Tom Tromey <tromey@adacore.com>
181 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
183 2020-12-09 Tom Tromey <tromey@adacore.com>
185 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
186 and "denominator" to gdb_mpz. Handle block forms.
187 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
188 "denominator" to gdb_mpz.
189 (finish_fixed_point_type): Update.
190 (has_zero_over_zero_small_attribute): Update.
192 2020-12-09 Tom Tromey <tromey@adacore.com>
194 * expprint.c (op_name): Update.
195 * expression.h (enum exp_opcode): Update.
196 * std-operator.def: Add more opcodes.
197 * ada-operator.def, fortran-operator.def: Remove, moving contents
198 into std-operator.def.
200 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
202 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
203 Return {} instead of false.
204 (get_discrete_bounds): Compute high bound only if low bound is
207 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
210 * gdbtypes.c (get_discrete_low_bound): Make non-static.
211 (get_discrete_high_bound): Make non-static.
212 * gdbtypes.h (get_discrete_low_bound): New declaration.
213 (get_discrete_high_bound): New declaration.
214 * valarith.c (value_subscript): Only fetch high bound if
217 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
219 * gdbtypes.c (get_discrete_bounds): Implement with
220 get_discrete_low_bound and get_discrete_high_bound.
221 (get_discrete_low_bound): New.
222 (get_discrete_high_bound): New.
224 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
226 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
228 * gdbtypes.c (get_discrete_bounds): Return bool.
230 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
232 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
233 (ada_value_slice): Adjust.
235 * gdbtypes.c (get_discrete_bounds): Adjust.
236 (discrete_position): Return optional.
237 * gdbtypes.h (discrete_position): Return optional.
239 2020-12-07 Tom Tromey <tromey@adacore.com>
241 * maint.c (_initialize_maint_cmds): Use expression command
242 completer for "maint print type".
244 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
246 * completer.c (complete_explicit_location): Also add keywords
247 that start with '-' to the completion list.
249 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
251 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
252 keyword may be followed by any keyword.
253 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
254 'toklen' in the case for "-force-condition".
256 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
258 * main.c (catch_command_errors): Add a flag parameter; invoke
259 `bpstat_do_actions` if the flag is set.
260 (execute_cmdargs): Update a call to `catch_command_errors`.
262 2020-12-07 Tom de Vries <tdevries@suse.de>
264 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
266 2020-12-06 Tom Tromey <tom@tromey.com>
269 * ada-lang.c (replace_operator_with_call): Rewrite.
271 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
274 * s390-tdep.h (op_bc): Correct BC opcode value.
276 2020-12-06 Joel Brobecker <brobecker@adacore.com>
278 * gmp-utils.h (gdb_mpz::safe_export): New private method.
279 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
280 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
281 (gdb_mpz::safe_export): New method.
282 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
283 Update function description.
284 (check_as_integer_raises_out_of_range_error): New function.
285 (gdb_mpz_as_integer_out_of_range): New function.
286 (_initialize_gmp_utils_selftests): Register
287 gdb_mpz_as_integer_out_of_range as a selftest.
289 2020-12-05 Joel Brobecker <brobecker@adacore.com>
291 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
293 (gdb_mpz::write): Likewise.
295 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
297 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
298 number of displaced step buffers.
300 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
302 * displaced-stepping.h (struct displaced_step_buffer): Rename
304 (struct displaced_step_buffers): ... this.
305 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
306 <struct displaced_step_buffer>: New inner class.
308 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
310 (displaced_step_buffers::prepare): ... this, adjust for multiple
312 (displaced_step_buffer::finish): Rename to...
313 (displaced_step_buffers::finish): ... this, adjust for multiple
315 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
316 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
317 adjust for multiple buffers.
318 (displaced_step_buffer::restore_in_ptid): Rename to...
319 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
321 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
322 for num_disp_step_buffers.
323 * linux-tdep.c (struct linux_gdbarch_data)
324 <num_disp_step_buffers>: New field.
325 (struct linux_info) <disp_step_buf>: Rename to...
326 <disp_step_bufs>: ... this, change type to
327 displaced_step_buffers.
328 (linux_displaced_step_prepare): Use
329 linux_gdbarch_data::num_disp_step_buffers to create that number
331 (linux_displaced_step_finish): Adjust.
332 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
333 (linux_displaced_step_restore_all_in_ptid): Adjust.
334 (linux_init_abi): Change supports_displaced_step parameter for
335 num_disp_step_buffers, save it in linux_gdbarch_data.
336 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
337 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
338 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
339 supports_displaced_step parameter for num_disp_step_buffers.
340 (amd64_linux_init_abi): Adjust.
341 (amd64_x32_linux_init_abi): Adjust.
342 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
343 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
344 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
345 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
346 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
347 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
348 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
349 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
350 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
351 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
352 * m68k-linux-tdep.c (m68k_linux_init_abi):
353 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
354 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
355 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
356 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
357 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
358 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
359 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
360 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
361 Change type to displaced_step_buffers.
362 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
363 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
364 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
365 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
366 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
367 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
368 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
370 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
372 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
374 (_initialize_linux_tdep): Register pre-init gdb data instead of
377 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
379 * displaced-stepping.h (struct
380 displaced_step_copy_insn_closure): Adjust comments.
381 (struct displaced_step_inferior_state) <step_thread,
382 step_gdbarch, step_closure, step_original, step_copy,
383 step_saved_copy>: Remove fields.
384 (struct displaced_step_thread_state): New.
385 (struct displaced_step_buffer): New.
386 * displaced-stepping.c (displaced_step_buffer::prepare): New.
387 (write_memory_ptid): Move from infrun.c.
388 (displaced_step_instruction_executed_successfully): New,
389 factored out of displaced_step_finish.
390 (displaced_step_buffer::finish): New.
391 (displaced_step_buffer::copy_insn_closure_by_addr): New.
392 (displaced_step_buffer::restore_in_ptid): New.
393 * gdbarch.sh (displaced_step_location): Remove.
394 (displaced_step_prepare, displaced_step_finish,
395 displaced_step_copy_insn_closure_by_addr,
396 displaced_step_restore_all_in_ptid): New.
397 * gdbarch.c: Re-generate.
398 * gdbarch.h: Re-generate.
399 * gdbthread.h (class thread_info) <displaced_step_state>: New
401 (thread_step_over_chain_remove): New declaration.
402 (thread_step_over_chain_next): New declaration.
403 (thread_step_over_chain_length): New declaration.
404 * thread.c (thread_step_over_chain_remove): Make non-static.
405 (thread_step_over_chain_next): New.
406 (global_thread_step_over_chain_next): Use
407 thread_step_over_chain_next.
408 (thread_step_over_chain_length): New.
409 (global_thread_step_over_chain_enqueue): Add debug print.
410 (global_thread_step_over_chain_remove): Add debug print.
411 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
413 * infrun.c (get_displaced_stepping_state): New.
414 (displaced_step_in_progress_any_inferior): Remove.
415 (displaced_step_in_progress_thread): Adjust.
416 (displaced_step_in_progress): Adjust.
417 (displaced_step_in_progress_any_thread): New.
418 (get_displaced_step_copy_insn_closure_by_addr): Remove.
419 (gdbarch_supports_displaced_stepping): Use
420 gdbarch_displaced_step_prepare_p.
421 (displaced_step_reset): Change parameter from inferior to
423 (displaced_step_prepare_throw): Implement using
424 gdbarch_displaced_step_prepare.
425 (write_memory_ptid): Move to displaced-step.c.
426 (displaced_step_restore): Remove.
427 (displaced_step_finish): Implement using
428 gdbarch_displaced_step_finish.
429 (start_step_over): Allow starting more than one displaced step.
430 (prepare_for_detach): Handle possibly multiple threads doing
432 (handle_inferior_event): Handle possibility that fork event
433 happens while another thread displaced steps.
434 * linux-tdep.h (linux_displaced_step_prepare): New.
435 (linux_displaced_step_finish): New.
436 (linux_displaced_step_copy_insn_closure_by_addr): New.
437 (linux_displaced_step_restore_all_in_ptid): New.
438 (linux_init_abi): Add supports_displaced_step parameter.
439 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
440 (linux_displaced_step_prepare): New.
441 (linux_displaced_step_finish): New.
442 (linux_displaced_step_copy_insn_closure_by_addr): New.
443 (linux_displaced_step_restore_all_in_ptid): New.
444 (linux_init_abi): Add supports_displaced_step parameter,
445 register displaced step methods if true.
446 (_initialize_linux_tdep): Register inferior_execd observer.
447 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
448 supports_displaced_step parameter, adjust call to
449 linux_init_abi. Remove call to
450 set_gdbarch_displaced_step_location.
451 (amd64_linux_init_abi): Adjust call to
452 amd64_linux_init_abi_common.
453 (amd64_x32_linux_init_abi): Likewise.
454 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
455 linux_init_abi. Remove call to
456 set_gdbarch_displaced_step_location.
457 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
458 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
459 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
461 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
462 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
463 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
464 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
465 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
466 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
467 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
468 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
469 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
470 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
471 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
472 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
473 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
474 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
475 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
476 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
477 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
478 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
479 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
480 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
481 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
482 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
483 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
484 linux_init_abi. Remove call to
485 set_gdbarch_displaced_step_location.
486 * arm-tdep.c (arm_pc_is_thumb): Call
487 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
488 get_displaced_step_copy_insn_closure_by_addr.
489 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
490 clear gdbarch methods.
491 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
492 (get_ppc_per_inferior): New function.
493 (ppc_displaced_step_prepare): New function.
494 (ppc_displaced_step_finish): New function.
495 (ppc_displaced_step_restore_all_in_ptid): New function.
496 (rs6000_gdbarch_init): Register new gdbarch methods.
497 * s390-tdep.c (s390_gdbarch_init): Don't call
498 set_gdbarch_displaced_step_location, set new gdbarch methods.
500 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
502 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
503 * aarch64-tdep.h: Include displaced-stepping.h.
504 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
506 (displaced_step_copy_insn_closure_up): Move here.
507 (struct buf_displaced_step_copy_insn_closure): Move here.
508 (struct displaced_step_inferior_state): Move here.
509 (debug_displaced): Move here.
510 (displaced_debug_printf_1): Move here.
511 (displaced_debug_printf): Move here.
512 * displaced-stepping.c: New file.
513 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
514 * gdbarch.h: Re-generate.
515 * inferior.h: Include displaced-stepping.h.
516 * infrun.h (debug_displaced): Move to displaced-stepping.h.
517 (displaced_debug_printf_1): Likewise.
518 (displaced_debug_printf): Likewise.
519 (struct displaced_step_copy_insn_closure): Likewise.
520 (displaced_step_copy_insn_closure_up): Likewise.
521 (struct buf_displaced_step_copy_insn_closure): Likewise.
522 (struct displaced_step_inferior_state): Likewise.
523 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
524 (displaced_debug_printf_1): Likewise.
525 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
527 (_initialize_infrun): Don't register "set/show debug displaced".
529 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
531 * linux-tdep.c (get_linux_inferior_data): Add inferior
533 (linux_vsyscall_range): Pass current inferior.
535 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
537 * infrun.c (displaced_step_prepare_throw): Change return type to
538 displaced_step_prepare_status.
539 (displaced_step_prepare): Likewise.
540 (displaced_step_finish): Change return type to
541 displaced_step_finish_status.
543 (stop_all_threads): Adjust.
544 * displaced-stepping.h: New file.
546 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
548 * infrun.c (displaced_step_fixup): Rename to...
549 (displaced_step_finish): ... this, update all callers.
551 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
553 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
554 (get_displaced_step_copy_insn_closure_by_addr): ... this.
556 (displaced_step_closure): Rename to...
557 (displaced_step_copy_insn_closure): ... this. Update all users.
558 (displaced_step_closure_up): Rename to...
559 (displaced_step_copy_insn_closure_up). ... this. Update all
561 (buf_displaced_step_closure): Rename to...
562 (buf_displaced_step_copy_insn_closure): ... this. Update all
564 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
565 (get_displaced_step_copy_insn_closure_by_addr): ... this.
567 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
568 (aarch64_displaced_step_copy_insn_closure): ... this. Update
570 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
571 (amd64_displaced_step_copy_insn_closure): ... this. Update all
573 * arm-tdep.h (arm_displaced_step_closure): Rename to...
574 (arm_displaced_step_copy_insn_closure): ... this. Update all
576 * i386-tdep.h (i386_displaced_step_closure): Rename to...
577 (i386_displaced_step_copy_insn_closure): ... this. Update all
579 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
580 (ppc_displaced_step_copy_insn_closure): ... this. Update all
582 * s390-tdep.c (s390_displaced_step_closure): Rename to...
583 (s390_displaced_step_copy_insn_closure): ... this. Update all
585 * gdbarch.h: Re-generate.
586 * gdbarch.c: Re-generate.
588 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
590 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
591 (global_thread_step_over_chain_enqueue): ... this. Update all
593 (thread_step_over_chain_remove): Rename to...
594 (global_thread_step_over_chain_remove): ... this. Update all
596 (thread_step_over_chain_next): Rename to...
597 (global_thread_step_over_chain_next): ... this. Update all
599 * infrun.h (step_over_queue_head): Rename to...
600 (global_thread_step_over_chain_head): ... this. Update all
602 * infrun.c (step_over_queue_head): Rename to...
603 (global_thread_step_over_chain_head): ... this. Update all
605 * thread.c (step_over_chain_remove): Rename to...
606 (thread_step_over_chain_remove): ... this. Update all users.
607 (thread_step_over_chain_next): Rename to...
608 (global_thread_step_over_chain_next): ... this. Update all
610 (thread_step_over_chain_enqueue): Rename to...
611 (global_thread_step_over_chain_enqueue): ... this. Update all
613 (thread_step_over_chain_remove): Rename to...
614 (global_thread_step_over_chain_remove): ... this. Update all
617 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
619 * infrun.c (get_displaced_stepping_state): Remove, change
620 callers to access the field directly.
622 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
624 * infrun.c (handle_inferior_event): Restore displaced step
625 buffer bytes in child process when handling fork, even if fork
626 happened in another thread than the displaced-stepping one.
628 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
630 * infrun.c (infrun_inferior_execd): New function.
631 (_initialize_infrun): Attach inferior_execd observer.
633 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
635 * observable.h (inferior_execd): Declare new observable.
636 * observable.c (inferior_execd): Declare new observable.
637 * infrun.c (follow_exec): Notify inferior_execd observer.
638 * jit.c (jit_inferior_created_hook): Make static.
639 (_initialize_jit): Register inferior_execd observer.
640 * jit.h (jit_inferior_created_hook): Remove declaration.
641 * solib.c (_initialize_solib): Register inferior_execd observer.
643 2020-12-04 Tom de Vries <tdevries@suse.de>
646 * completer.c (completion_tracker::build_completion_result): Don't
647 access match_list[0][-1].
649 2020-12-04 Tom Tromey <tromey@adacore.com>
651 * linespec.c (struct linespec_token): Rename; remove typedef.
652 * guile/scm-block.c (struct block_smob): Remove typedef.
653 (struct block_syms_progress_smob): Likewise.
654 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
655 * guile/scm-symtab.c (symtab_smob): Remove typedef.
656 (struct sal_smob): Remove typedef.
657 * guile/scm-param.c (struct param_smob): Remove typedef.
658 * guile/scm-progspace.c (struct pspace_smob): Rename.
659 * guile/scm-objfile.c (struct objfile_smob): Rename.
660 * guile/scm-iterator.c (struct iterator_smob): Rename.
661 * guile/scm-frame.c (struct frame_smob): Rename.
662 * guile/scm-arch.c (struct arch_smob): Rename.
663 * guile/scm-type.c (struct field_smob): Remove typedef.
664 (struct type_smob): Rename.
665 * guile/scm-cmd.c (struct command_smob): Remove typedef.
666 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
667 * guile/scm-value.c (struct value_smob): Remove typedef.
668 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
669 * guile/guile-internal.h (struct scheme_variable)
670 (struct scheme_function, struct scheme_integer_constant)
671 (struct gdb_smob, struct chained_gdb_smob)
672 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
673 (objfile_smob, pspace_smob, type_smob): Remove typedef.
674 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
675 (struct pretty_printer_worker_smob): Remove typedef.
676 * guile/scm-exception.c (struct exception_smob): Remove typedef.
677 * python/py-block.c (struct block_object): Remove typedef.
678 (block_syms_iterator_object): Update.
680 (block_syms_iterator_object): Remove typedef.
681 * python/py-inferior.c (struct membuf_object): Remove typedef.
682 * python/py-symtab.c (struct symtab_object): Remove typedef.
683 (set_symtab): Update.
684 (sal_object): Remove typedef.
686 * python/py-frame.c (frame_object): Remove typedef.
687 * python/py-record-btrace.c (struct btpy_list_object): Remove
689 * python/py-arch.c (struct arch_object): Remove typedef.
690 * python/py-linetable.c (struct linetable_entry_object)
691 (linetable_object, struct ltpy_iterator_object): Remove typedef.
692 * python/py-events.h (eventregistry_object): Remove typedef.
693 (struct events_object): Remove typedef.
694 * python/python-internal.h (gdbpy_breakpoint_object): Remove
696 (thread_object): Remove typedef.
697 * python/py-progspace.c (pspace_object): Remove typedef.
698 * python/py-value.c (struct value_object): Remove typedef.
699 * python/py-record.h (recpy_record_object): Remove typedef.
700 (struct recpy_element_object): Remove typedef.
701 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
702 * python/py-objfile.c (objfile_object): Remove typedef.
703 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
704 * python/py-type.c (type_object): Remove typedef.
705 (typy_iterator_object): Update.
707 (field_object): Remove typedef.
708 (typy_iterator_object): Remove typedef.
709 * python/py-registers.c (register_descriptor_iterator_object):
711 (struct register_descriptor_object)
712 (struct reggroup_iterator_object, struct reggroup_object): Remove
714 * python/py-record.c (recpy_gap_object): Remove typedef.
715 * python/py-symbol.c (symbol_object): Remove typedef.
716 (set_symbol): Update.
717 * python/py-event.h (event_object): Remove typedef.
718 * python/py-param.c (parmpy_object): Remove typedef.
719 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
720 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
721 (unwind_info_object, struct cached_frame_info): Likewise.
723 2020-12-04 Tom Tromey <tromey@adacore.com>
725 * value.c (value_internal_function_name): Make return type const.
726 * value.h (value_internal_function_name): Make return type const.
728 2020-12-04 Luis Machado <luis.machado@linaro.org>
730 * aarch64-tdep.c (submask, bit, bits): Remove.
731 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
732 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
733 (aarch64_decode_cb, aarch64_decode_tb)
734 (aarch64_decode_ldr_literal): Use sbits to extract a signed
736 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
738 2020-12-04 Tom de Vries <tdevries@suse.de>
741 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
743 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
746 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
747 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
749 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
751 * arch/riscv.c: Include 'rv32e-xregs.c'.
752 (riscv_create_target_description): Update to handle rv32e.
753 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
755 <operator==>: Update to account for new field.
757 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
758 * features/riscv/rv32e-xregs.c: Generated.
759 * features/riscv/rv32e-xregs.xml: New file.
760 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
762 (riscv_debug_infcall): Likewise.
763 (riscv_debug_unwinder): Likewise.
764 (riscv_debug_gdbarch): Likewise.
765 (enum riscv_register_required_status): Delete.
766 (struct riscv_register_feature): Add constructor, delete default
767 constructor, copy, and assign constructors.
768 (struct riscv_register_feature::register_info) <required>: Delete.
769 <check>: Update comment and arguments.
770 (struct riscv_register_feature) <name>: Change to member function.
771 <prefer_first_name>: Delete.
772 <tdesc_feature>: New member function.
773 <registers>: Rename to...
774 <m_registers>: ...this.
775 <m_feature_name>: New member variable.
776 (riscv_register_feature::register_info::check): Update arguments.
777 (riscv_xreg_feature): Rewrite as class, create a single static
778 instance of the class.
779 (riscv_freg_feature): Likewise.
780 (riscv_virtual_feature): Likewise.
781 (riscv_csr_feature): Likewise.
782 (riscv_create_csr_aliases): Has become a member function inside
783 riscv_csr_feature class.
784 (riscv_abi_embedded): New function definition.
785 (riscv_register_name): Adjust to use new feature objects.
786 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
787 and adjust available argument registers.
788 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
789 (riscv_check_tdesc_feature): Delete.
790 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
791 (riscv_gdbarch_init): Delete target description checking code, and
792 instead call to the new feature objects to perform the checks.
793 Reorder handling of no abi information case, allows small code
795 (_initialize_riscv_tdep): Remove call, this is now done in the
796 riscv_csr_feature constructor.
797 * riscv-tdep.h (riscv_abi_embedded): Declare.
799 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
801 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
804 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
806 * riscv-tdep.c (riscv_is_unknown_csr): New function,
807 implementation moved from riscv_register_reggroup_p.
808 (riscv_register_reggroup_p): Update group handling for unknown
811 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
813 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
814 (dwarf2_get_dwz_file): Convert 'filename' to a
815 std::string. Use dwz_search_other_debugdirs to search for DWZ
816 files in the debug-file-directories provided by the user as well.
818 2020-12-01 Tom Tromey <tom@tromey.com>
820 * parse.c (expr_builder::expr_builder): Initialize expout.
821 (expr_builder::release): Use expression::resize.
822 (expression::expression, expression::~expression)
823 (expression::resize): New methods.
824 (write_exp_elt): Use expression::resize.
825 (prefixify_expression): Update.
826 (increase_expout_size): Use expression::resize.
827 * expression.h (struct expression): Add constructor, destructor.
828 <resize>: New method.
829 (expression_up): Change type.
831 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
832 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
833 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
836 2020-11-30 Tom de Vries <tdevries@suse.de>
839 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
840 is_reference parameter.
841 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
843 2020-11-30 Tom Tromey <tom@tromey.com>
845 * rust-lang.c (rust_op_name): Remove.
846 (exp_descriptor_rust): Update.
847 * parser-defs.h (op_name_standard): Don't declare.
848 (struct exp_descriptor) <op_name>: Remove.
849 * parse.c (exp_descriptor_standard): Update.
850 * opencl-lang.c (exp_descriptor_opencl): Update.
851 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
852 * f-lang.c (op_name_f): Remove.
853 (f_language::exp_descriptor_tab): Update.
854 * expression.h (op_name): Update.
855 * expprint.c (op_name): Rewrite.
856 (op_name_standard): Remove.
857 (dump_raw_expression, dump_subexp): Update.
858 * c-lang.c (exp_descriptor_c): Update.
859 * ax-gdb.c (gen_expr): Update.
860 * ada-lang.c (ada_op_name): Remove.
861 (ada_exp_descriptor): Update.
863 2020-11-30 Tom Tromey <tom@tromey.com>
865 * eval.c (init_array_element): Remove.
866 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
868 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
871 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
872 static locator win info.
874 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
876 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
879 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
881 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
882 is always initialized.
884 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
885 * MAINTAINERS (Write After Approval): Add myself.
887 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
889 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
890 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
892 2020-11-25 Tom Tromey <tom@tromey.com>
894 * eval.c (evaluate_subexp_standard): Remove unnecessary
897 2020-11-25 Tom Tromey <tom@tromey.com>
899 * d-lang.c: Include parser-defs.h.
900 * rust-lang.c: Include parser-defs.h.
901 * c-lang.h: Do not include parser-defs.h.
903 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
905 * regcache.h (struct cached_reg): Remove typedef.
907 2020-11-24 Joel Brobecker <brobecker@adacore.com>
909 * README: Fix the URL of the MPFR library.
911 2020-11-24 Joel Brobecker <brobecker@adacore.com>
913 * README: Document the --with-libgmp-prefix configure option.
915 2020-11-24 Joel Brobecker <brobecker@adacore.com>
917 * NEWS: Add entry documenting support for DWARF-based fixed
920 2020-11-24 Joel Brobecker <brobecker@adacore.com>
922 * NEWS: Document that building GDB now requires GMP.
924 2020-11-24 Joel Brobecker <brobecker@adacore.com>
926 * typeprint.c (print_type_scalar): Add handling of
927 TYPE_CODE_FIXED_POINT.
929 2020-11-24 Joel Brobecker <brobecker@adacore.com>
931 * valarith.c (fixed_point_binop): Replace the
932 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
935 2020-11-24 Joel Brobecker <brobecker@adacore.com>
937 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
938 replacing fixed_point_scaling_factor. All callers updated
939 throughout this project.
940 (fixed_point_scaling_factor): Delete declaration.
941 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
942 fixed_point_scaling_factor. Adjust implementation accordingly.
944 2020-11-24 Joel Brobecker <brobecker@adacore.com>
946 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
947 replacing the fixed_point_type_base_type function. All callers
948 updated throughout this project.
949 (fixed_point_type_base_type): Remove declaration.
950 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
951 fixed_point_type_base_type. Adjust implementation accordingly.
953 2020-11-24 Joel Brobecker <brobecker@adacore.com>
955 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
957 (INIT_FIXED_POINT_SPECIFIC): Adjust.
958 (TYPE_FIXED_POINT_INFO): Delete macro.
959 (allocate_fixed_point_type_info): Change return type to void.
960 * gdbtypes.c (copy_type_recursive): Replace the use of
961 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
962 (fixed_point_scaling_factor): Likewise.
963 (allocate_fixed_point_type_info): Change return type to void.
964 Adjust implementation accordingly.
965 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
966 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
968 2020-11-24 Joel Brobecker <brobecker@adacore.com>
970 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
971 into one single gdb::array_view parameter.
972 (gdb_mpz::write): Likewise.
973 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
974 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
975 into one single gdb::array_view parameter.
976 Adjust implementation accordingly.
977 (gdb_mpz::write): Likewise.
978 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
979 * unittests/gmp-utils-selftests.c: Adapt following changes above.
980 * valarith.c, valops.c, valprint.c, value.c: Likewise.
982 2020-11-24 Joel Brobecker <brobecker@adacore.com>
984 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
985 Change return type to std::string. Update all callers.
986 * gmp-utils.c (gmp_string_printf): Likewise.
988 2020-11-24 Joel Brobecker <brobecker@adacore.com>
990 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
991 instead of mpq_set_ui to initialize our GMP rational.
993 2020-11-23 Tom de Vries <tdevries@suse.de>
995 * debuginfod-support.c (debuginfod_source_query)
996 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
998 2020-11-21 Tom Tromey <tom@tromey.com>
1000 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1002 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1004 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1006 (gdb_mpz_write_all_from_small): Likewise.
1008 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1010 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1013 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1015 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1016 ctf_arc_open_by_name.
1018 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1020 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1021 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1023 2020-11-20 Pedro Alves <pedro@palves.net>
1025 * language.c (language_arch_info::lookup_primitive_type): Use
1026 gdb::function_view instead of gdb::function.
1027 (template language_lookup_primitive_type): Rename to ...
1028 (language_lookup_primitive_type_1): ... this, and make static.
1029 (language_lookup_primitive_type(const struct language_defn *,
1030 struct gdbarch *, const char *): Make non-template.
1031 (language_lookup_primitive_type(const struct language_defn *,
1032 struct gdbarch *, std::function<bool (struct type *)>): Make
1033 non-template and use gdb::function_view.
1034 * language.h (language_arch_info::lookup_primitive_type): Use
1035 gdb::function_view instead of std::function.
1036 (language_lookup_primitive_type): No longer template.
1037 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1038 lambda instead of a std::function.
1040 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1043 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1046 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1048 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1050 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1052 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1053 in `loop_cb` parameter.
1054 * gdbarch.c: Re-generate.
1055 * gdbarch.h: Re-generate.
1056 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1058 * arch-utils.h (default_read_core_file_mappings): Likewise.
1059 * corelow.c (core_target::build_file_mappings): Likewise.
1060 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1061 (linux_core_info_proc_mappings): Likewise.
1063 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1065 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1066 * NEWS: Mention new options.
1067 * f-array-walker.h: New file.
1068 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1069 (repack_array_slices): New static global.
1070 (show_repack_array_slices): New function.
1071 (fortran_array_slicing_debug): New static global.
1072 (show_fortran_array_slicing_debug): New function.
1073 (value_f90_subarray): Delete.
1074 (skip_undetermined_arglist): Delete.
1075 (class fortran_array_repacker_base_impl): New class.
1076 (class fortran_lazy_array_repacker_impl): New class.
1077 (class fortran_array_repacker_impl): New class.
1078 (fortran_value_subarray): Complete rewrite.
1079 (set_fortran_list): New static global.
1080 (show_fortran_list): Likewise.
1081 (_initialize_f_language): Register new commands.
1082 (fortran_adjust_dynamic_array_base_address_hack): New function.
1083 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1085 * f-valprint.c: Include 'f-array-walker.h'.
1086 (class fortran_array_printer_impl): New class.
1087 (f77_print_array_1): Delete.
1088 (f77_print_array): Delete.
1089 (fortran_print_array): New.
1090 (f_value_print_inner): Update to call fortran_print_array.
1091 * gdbtypes.c: Include 'f-lang.h'.
1092 (resolve_dynamic_type_internal): Call
1093 fortran_adjust_dynamic_array_base_address_hack.
1095 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1097 * breakpoint.c (struct watch_options): New struct.
1098 (watch_option_defs): New static global.
1099 (make_watch_options_def_group): New function.
1100 (watch_maybe_just_location): Convert option parsing.
1101 (watch_command_completer): New function.
1102 (_initialize_breakpoint): Build help text using options mechanism.
1104 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1106 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1107 (watch_command_1): Update parameter types. Convert locals to
1109 (watch_command_wrapper): Change parameter type.
1110 (watch_maybe_just_location): Change locals to bool.
1111 (rwatch_command_wrapper): Update parameter type.
1112 (awatch_command_wrapper): Update parameter type.
1113 * breakpoint.h (watch_command_wrapper): Change parameter type.
1114 (rwatch_command_wrapper): Update parameter type.
1115 (awatch_command_wrapper): Update parameter type.
1116 * eval.c (fetch_subexp_value): Change parameter type.
1117 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1119 * value.h (fetch_subexp_value): Change parameter type in
1122 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1124 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1127 2020-11-18 Keith Seitz <keiths@redhat.com>
1129 * linux-tdep.c (dump_note_entry_p): Return true instead of
1130 checking `filename'.
1132 2020-11-18 Tom de Vries <tdevries@suse.de>
1134 * debuginfod-support.c (debuginfod_source_query)
1135 (debuginfod_debuginfo_query): Also do early exit if
1136 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1138 2020-11-18 Tom de Vries <tdevries@suse.de>
1140 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1143 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1145 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1146 callers. Move doc here.
1147 * gdbtypes.c (get_array_bounds): Return bool
1149 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1151 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1153 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1154 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1155 case to the default.
1157 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1159 * printcmd.c: Include 'safe-ctype.c'.
1160 (skip_over_slash_fmt): New function.
1161 (print_command_completer): Call skip_over_slash_fmt.
1162 (display_and_x_command_completer): New function.
1163 (_initialize_printcmd): Add command completion for 'x' and
1166 2020-11-16 Pedro Alves <pedro@palves.net>
1168 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1169 (get_prev_frame_always_1): ... to here.
1170 * inline-frame.c (inline_frame_this_id): Mention
1171 get_prev_frame_always_1 in comment.
1173 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1175 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1177 (value_less): Add fixed-point handling.
1179 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1181 * eval.c (binop_promote): Add fixed-point type handling.
1182 * valarith.c (fixed_point_binop): New function.
1183 (scalar_binop): Add fixed-point type handling.
1184 (value_neg): Add fixed-point type handling.
1185 * valops.c (value_cast_to_fixed_point): New function.
1186 (value_cast): Add fixed-point type handling.
1188 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1190 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1192 * c-typeprint.c (c_type_print_varspec_prefix)
1193 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1194 TYPE_CODE_FIXED_POINT handling.
1195 * p-typeprint.c (pascal_type_print_varspec_prefix)
1196 (pascal_type_print_varspec_suffix): Likewise.
1197 * typeprint.c (print_type_fixed_point): New function.
1198 * typeprint.h (print_type_fixed_point): Add declaration.
1200 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1202 * printcmd.c (print_scalar_formatted): Add fixed-point type
1203 handling when options->format is set.
1205 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1207 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1208 * dwarf2/read.c (get_dwarf2_rational_constant)
1209 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1210 (has_zero_over_zero_small_attribute): New functions.
1211 read_base_type, set_die_type): Add fixed-point type handling.
1212 * gdb-gdb.py.in: Add fixed-point type handling.
1213 * gdbtypes.c: #include "gmp-utils.h".
1214 (create_range_type, set_type_code): Add fixed-point type handling.
1215 (init_fixed_point_type): New function.
1216 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1217 (print_fixed_point_type_info): New function.
1218 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1220 (fixed_point_type_storage): New typedef.
1221 (fixed_point_objfile_key): New static global.
1222 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1223 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1225 * gdbtypes.h: #include "gmp-utils.h".
1226 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1227 (union type_specific) <fixed_point_info>: New field.
1228 (struct fixed_point_type_info): New struct.
1229 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1230 (init_fixed_point_type, is_fixed_point_type)
1231 (fixed_point_type_base_type, fixed_point_scaling_factor)
1232 (allocate_fixed_point_type_info): Add declarations.
1233 * valprint.c (generic_val_print_fixed_point): New function.
1234 (generic_value_print): Add fixed-point type handling.
1235 * value.c (value_as_address, unpack_long): Add fixed-point type
1238 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1240 * utils.h (uinteger_pow): Add declaration.
1241 * utils.c (uinteger_pow): Moved here (without changes)...
1242 * valarith.c (uinteger_pow): ... from here.
1244 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1246 * gmp-utils.h, gmp-utils.c: New file.
1247 * unittests/gmp-utils-selftests.c: New file.
1248 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1249 unittests/gmp-utils-selftests.c.
1250 (COMMON_SFILES) Add gmp-utils.c.
1251 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1253 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1255 * configure.ac: Generate an error if a usable GMP library
1257 * configure: Regenerate.
1259 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1261 * configure.ac: Add support for --with-libgmp-prefix.
1262 * Makefile.in (LIBGMP): New variable.
1263 (CLIBS): Include $(LIBGMP).
1264 * configure, config.in: Regenerate
1266 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1269 * f-exp.y (COMPLETE): New token.
1270 (exp): Two new rules for tab-completion.
1271 (saw_name_at_eof): New static global.
1272 (last_was_structop): Likewise.
1273 (yylex): Set new variables, and return COMPLETE token at the end
1274 of the input stream in some cases.
1276 2020-11-14 Tom Tromey <tom@tromey.com>
1278 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1280 2020-11-14 Tom Tromey <tom@tromey.com>
1282 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1284 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1286 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1288 2020-11-13 Tom Tromey <tom@tromey.com>
1290 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1291 (convert_escape, parse_one_string): Constify.
1293 2020-11-13 Keith Seitz <keiths@redhat.com>
1295 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1296 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1297 outside of ELF segments" warning for debugin
1299 2020-11-13 Keith Seitz <keiths@redhat.com>
1302 * elfread.c (elf_symfile_segments): Output a BFD file name
1303 for the "Loadable section ... outside of ELF segments" warning.
1305 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1308 * arm-tdep.c (class arm_instruction_reader): New.
1309 (target_arm_instruction_reader): New.
1310 (arm_analyze_prologue): Add instruction reader parameter and use
1311 it. Use arm_expand_immediate.
1312 (class target_arm_instruction_reader): Adjust.
1313 (arm_skip_prologue): Adjust.
1314 (arm_expand_immediate): New.
1315 (arm_scan_prologue): Adjust.
1316 (arm_analyze_prologue_test): New.
1317 (class test_arm_instruction_reader): New.
1319 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1321 * f-lang.c (fortran_argument_convert): Add declaration. Add
1322 header comment, taken from f-lang.h. Make static.
1323 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1324 (fortran_argument_convert): Delete declaration.
1326 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1328 * ada-exp.y (find_primitive_type): Make parameter const.
1329 * ada-lang.c (enum ada_primitive_types): Delete.
1330 (ada_language::language_arch_info): Update.
1331 * c-lang.c (enum c_primitive_types): Delete.
1332 (c_language_arch_info): Update.
1333 (enum cplus_primitive_types): Delete.
1334 (cplus_language::language_arch_info): Update.
1335 * d-lang.c (enum d_primitive_types): Delete.
1336 (d_language::language_arch_info): Update.
1337 * f-lang.c (enum f_primitive_types): Delete.
1338 (f_language::language_arch_info): Update.
1339 * go-lang.c (enum go_primitive_types): Delete.
1340 (go_language::language_arch_info): Update.
1341 * language.c (auto_or_unknown_language::language_arch_info):
1343 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1344 (language_string_char_type): Add header comment, call function in
1346 (language_bool_type): Likewise
1347 (language_arch_info::bool_type): Define.
1348 (language_lookup_primitive_type_1): Delete.
1349 (language_lookup_primitive_type): Rewrite as a templated function
1350 to call function in language_arch_info, then instantiate twice.
1351 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1352 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1353 (language_arch_info::lookup_primitive_type): Define twice with
1354 different signatures.
1355 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1356 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1357 member function in language_arch_info.
1358 * language.h (language_arch_info): Complete rewrite.
1359 (language_lookup_primitive_type): Make templated.
1360 * m2-lang.c (enum m2_primitive_types): Delete.
1361 (m2_language::language_arch_info): Update.
1362 * opencl-lang.c (OCL_P_TYPE): Delete.
1363 (enum opencl_primitive_types): Delete.
1364 (opencl_type_data): Delete.
1365 (builtin_opencl_type): Delete.
1366 (lookup_opencl_vector_type): Update.
1367 (opencl_language::language_arch_info): Update, lots of content
1369 (build_opencl_types): ...here. This function is now deleted.
1370 (_initialize_opencl_language): Delete.
1371 * p-lang.c (enum pascal_primitive_types): Delete.
1372 (pascal_language::language_arch_info): Update.
1373 * rust-lang.c (enum rust_primitive_types): Delete.
1374 (rust_language::language_arch_info): Update.
1376 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1378 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1381 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1383 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1386 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1388 * dwarf2/read.c (dwarf_read_debug_printf,
1389 dwarf_read_debug_printf_v): New macros, use throughout the file.
1391 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1394 * arc-linux-tdep.c (collect_register): Populate "eret" by
1395 "pc" value from the regcache when asked for "pc" value.
1397 2020-11-12 Tom Tromey <tom@tromey.com>
1400 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1403 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1405 * features/Makefile (XMLTOC): Add rx.xml.
1406 (FEATURE_XMLFILES): Remove rx.xml.
1407 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1408 * features/rx.c: Regenerate.
1409 * features/rx.xml: Wrap in `target` tags, and reindent.
1410 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1412 (maint_print_c_tdesc_opt_def): New typedef.
1413 (maint_print_c_tdesc_opt_defs): New static global.
1414 (make_maint_print_c_tdesc_options_def_group): New function.
1415 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1416 print single feature C file for target descriptions containing a
1418 (maint_print_c_tdesc_cmd_completer): New function.
1419 (_initialize_target_descriptions): Update call to register command
1420 completer, and include command line flag in help text.
1422 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1424 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1426 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1429 2020-11-10 Tom Tromey <tom@tromey.com>
1431 * value.h (internalvar_name): Update.
1432 * value.c (internalvar_name): Make return type const.
1434 2020-11-10 Tom Tromey <tom@tromey.com>
1436 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1437 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1440 2020-11-10 Tom Tromey <tom@tromey.com>
1442 * objc-lang.h (value_nsstring): Update.
1443 * objc-lang.c (value_nsstring): Make "ptr" const.
1445 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1447 * expprint.c (print_subexp_funcall): Increment expression position
1448 after reading argument count.
1449 * f-lang.c (print_subexp_f): Skip over opcode before calling
1451 (dump_subexp_body_f): Likewise.
1453 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1456 * configure: Regenerate.
1457 * configure.ac: Check for python modules ctypes instead of
1460 2020-11-06 Pedro Alves <pedro@palves.net>
1462 * macroexp.c (struct macro_buffer): Split in two classes. Add
1464 (struct shared_macro_buffer): New, factored out from struct
1466 (struct growable_macro_buffer): New, factored out from struct
1468 (set_token, get_comment, get_identifier, get_pp_number)
1469 (get_character_constant, get_string_literal, get_punctuator)
1470 (get_next_token_for_substitution): Constify parameters.
1471 (substitute_args): Constify locals.
1473 2020-11-05 Tom Tromey <tom@tromey.com>
1475 * dwarf2/read.c (read_cutu_die_from_dwo)
1476 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1477 (build_type_psymtabs_1): Update.
1478 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1480 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1481 Don't read section. Add assert.
1483 2020-11-04 Tom Tromey <tromey@adacore.com>
1485 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1487 2020-11-04 Tom Tromey <tromey@adacore.com>
1489 * ada-typeprint.c (ada_print_type): Handle __T types.
1491 2020-11-04 Tom Tromey <tromey@adacore.com>
1493 * dwarf2/read.c (add_partial_symbol, process_die):
1494 Handle DW_TAG_array_type.
1495 (is_type_tag_for_partial): Add "lang" parameter.
1496 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1498 2020-11-04 Tom Tromey <tromey@adacore.com>
1500 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1502 2020-11-04 Tom Tromey <tromey@adacore.com>
1504 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1507 2020-11-04 Tom Tromey <tromey@adacore.com>
1509 * gdbtypes.c (update_static_array_size): Handle bit stride.
1511 2020-11-04 Tom Tromey <tromey@adacore.com>
1513 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1515 2020-11-04 Tom Tromey <tromey@adacore.com>
1517 * ada-lang.c (ada_is_any_packed_array_type): New function.
1518 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1520 2020-11-04 Tom Tromey <tromey@adacore.com>
1522 * dwarf2/read.c (recognize_bound_expression)
1523 (quirk_ada_thick_pointer): New functions.
1524 (read_array_type): Call quirk_ada_thick_pointer.
1525 (set_die_type): Add "skip_data_location" parameter.
1526 (quirk_ada_thick_pointer): New function.
1527 (process_structure_scope): Call quirk_ada_thick_pointer.
1528 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1529 (decode_packed_array_bitsize): Handle thick pointers without
1531 (ada_is_gnat_encoded_packed_array_type): Rename from
1532 ada_is_packed_array_type.
1533 (ada_is_constrained_packed_array_type): Update.
1534 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1535 (ada_value_print_1): Use ada_get_decoded_value.
1537 2020-11-04 Tom Tromey <tromey@adacore.com>
1539 * ada-lang.c (recursively_update_array_bitsize): New function.
1540 (decode_constrained_packed_array_type): Call it.
1542 2020-11-04 Tom Tromey <tromey@adacore.com>
1544 * ada-lang.c (to_fixed_array_type): Error if
1545 decode_constrained_packed_array_type returns NULL.
1547 2020-11-04 Tom Tromey <tromey@adacore.com>
1549 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1551 2020-11-02 Tom Tromey <tromey@adacore.com>
1553 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1554 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1555 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1556 * amd64-ravenscar-thread.c: New file.
1557 * amd64-ravenscar-thread.h: New file.
1558 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1559 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1561 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1563 * main.c (execute_cmdargs): New function.
1564 (captured_main_1): Make use of execute_cmdargs.
1566 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1568 * NEWS: Mention changes to config file search path.
1571 2020-11-02 Tom Tromey <tromey@adacore.com>
1573 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1574 (python_GdbModuleDef): Move earlier. Now static.
1575 (do_start_initialization): Consolidate some IS_PY3K blocks.
1577 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1579 * aarch64-linux-tdep.c: Fix indentation.
1580 * aarch64-ravenscar-thread.c: Fix indentation.
1581 * aarch64-tdep.c: Fix indentation.
1582 * aarch64-tdep.h: Fix indentation.
1583 * ada-lang.c: Fix indentation.
1584 * ada-lang.h: Fix indentation.
1585 * ada-tasks.c: Fix indentation.
1586 * ada-typeprint.c: Fix indentation.
1587 * ada-valprint.c: Fix indentation.
1588 * ada-varobj.c: Fix indentation.
1589 * addrmap.c: Fix indentation.
1590 * addrmap.h: Fix indentation.
1591 * agent.c: Fix indentation.
1592 * aix-thread.c: Fix indentation.
1593 * alpha-bsd-nat.c: Fix indentation.
1594 * alpha-linux-tdep.c: Fix indentation.
1595 * alpha-mdebug-tdep.c: Fix indentation.
1596 * alpha-nbsd-tdep.c: Fix indentation.
1597 * alpha-obsd-tdep.c: Fix indentation.
1598 * alpha-tdep.c: Fix indentation.
1599 * amd64-bsd-nat.c: Fix indentation.
1600 * amd64-darwin-tdep.c: Fix indentation.
1601 * amd64-linux-nat.c: Fix indentation.
1602 * amd64-linux-tdep.c: Fix indentation.
1603 * amd64-nat.c: Fix indentation.
1604 * amd64-obsd-tdep.c: Fix indentation.
1605 * amd64-tdep.c: Fix indentation.
1606 * amd64-windows-tdep.c: Fix indentation.
1607 * annotate.c: Fix indentation.
1608 * arc-tdep.c: Fix indentation.
1609 * arch-utils.c: Fix indentation.
1610 * arch/arm-get-next-pcs.c: Fix indentation.
1611 * arch/arm.c: Fix indentation.
1612 * arm-linux-nat.c: Fix indentation.
1613 * arm-linux-tdep.c: Fix indentation.
1614 * arm-nbsd-tdep.c: Fix indentation.
1615 * arm-pikeos-tdep.c: Fix indentation.
1616 * arm-tdep.c: Fix indentation.
1617 * arm-tdep.h: Fix indentation.
1618 * arm-wince-tdep.c: Fix indentation.
1619 * auto-load.c: Fix indentation.
1620 * auxv.c: Fix indentation.
1621 * avr-tdep.c: Fix indentation.
1622 * ax-gdb.c: Fix indentation.
1623 * ax-general.c: Fix indentation.
1624 * bfin-linux-tdep.c: Fix indentation.
1625 * block.c: Fix indentation.
1626 * block.h: Fix indentation.
1627 * blockframe.c: Fix indentation.
1628 * bpf-tdep.c: Fix indentation.
1629 * break-catch-sig.c: Fix indentation.
1630 * break-catch-syscall.c: Fix indentation.
1631 * break-catch-throw.c: Fix indentation.
1632 * breakpoint.c: Fix indentation.
1633 * breakpoint.h: Fix indentation.
1634 * bsd-uthread.c: Fix indentation.
1635 * btrace.c: Fix indentation.
1636 * build-id.c: Fix indentation.
1637 * buildsym-legacy.h: Fix indentation.
1638 * buildsym.c: Fix indentation.
1639 * c-typeprint.c: Fix indentation.
1640 * c-valprint.c: Fix indentation.
1641 * c-varobj.c: Fix indentation.
1642 * charset.c: Fix indentation.
1643 * cli/cli-cmds.c: Fix indentation.
1644 * cli/cli-decode.c: Fix indentation.
1645 * cli/cli-decode.h: Fix indentation.
1646 * cli/cli-script.c: Fix indentation.
1647 * cli/cli-setshow.c: Fix indentation.
1648 * coff-pe-read.c: Fix indentation.
1649 * coffread.c: Fix indentation.
1650 * compile/compile-cplus-types.c: Fix indentation.
1651 * compile/compile-object-load.c: Fix indentation.
1652 * compile/compile-object-run.c: Fix indentation.
1653 * completer.c: Fix indentation.
1654 * corefile.c: Fix indentation.
1655 * corelow.c: Fix indentation.
1656 * cp-abi.h: Fix indentation.
1657 * cp-namespace.c: Fix indentation.
1658 * cp-support.c: Fix indentation.
1659 * cp-valprint.c: Fix indentation.
1660 * cris-linux-tdep.c: Fix indentation.
1661 * cris-tdep.c: Fix indentation.
1662 * darwin-nat-info.c: Fix indentation.
1663 * darwin-nat.c: Fix indentation.
1664 * darwin-nat.h: Fix indentation.
1665 * dbxread.c: Fix indentation.
1666 * dcache.c: Fix indentation.
1667 * disasm.c: Fix indentation.
1668 * dtrace-probe.c: Fix indentation.
1669 * dwarf2/abbrev.c: Fix indentation.
1670 * dwarf2/attribute.c: Fix indentation.
1671 * dwarf2/expr.c: Fix indentation.
1672 * dwarf2/frame.c: Fix indentation.
1673 * dwarf2/index-cache.c: Fix indentation.
1674 * dwarf2/index-write.c: Fix indentation.
1675 * dwarf2/line-header.c: Fix indentation.
1676 * dwarf2/loc.c: Fix indentation.
1677 * dwarf2/macro.c: Fix indentation.
1678 * dwarf2/read.c: Fix indentation.
1679 * dwarf2/read.h: Fix indentation.
1680 * elfread.c: Fix indentation.
1681 * eval.c: Fix indentation.
1682 * event-top.c: Fix indentation.
1683 * exec.c: Fix indentation.
1684 * exec.h: Fix indentation.
1685 * expprint.c: Fix indentation.
1686 * f-lang.c: Fix indentation.
1687 * f-typeprint.c: Fix indentation.
1688 * f-valprint.c: Fix indentation.
1689 * fbsd-nat.c: Fix indentation.
1690 * fbsd-tdep.c: Fix indentation.
1691 * findvar.c: Fix indentation.
1692 * fork-child.c: Fix indentation.
1693 * frame-unwind.c: Fix indentation.
1694 * frame-unwind.h: Fix indentation.
1695 * frame.c: Fix indentation.
1696 * frv-linux-tdep.c: Fix indentation.
1697 * frv-tdep.c: Fix indentation.
1698 * frv-tdep.h: Fix indentation.
1699 * ft32-tdep.c: Fix indentation.
1700 * gcore.c: Fix indentation.
1701 * gdb_bfd.c: Fix indentation.
1702 * gdbarch.sh: Fix indentation.
1703 * gdbarch.c: Re-generate
1704 * gdbarch.h: Re-generate.
1705 * gdbcore.h: Fix indentation.
1706 * gdbthread.h: Fix indentation.
1707 * gdbtypes.c: Fix indentation.
1708 * gdbtypes.h: Fix indentation.
1709 * glibc-tdep.c: Fix indentation.
1710 * gnu-nat.c: Fix indentation.
1711 * gnu-nat.h: Fix indentation.
1712 * gnu-v2-abi.c: Fix indentation.
1713 * gnu-v3-abi.c: Fix indentation.
1714 * go32-nat.c: Fix indentation.
1715 * guile/guile-internal.h: Fix indentation.
1716 * guile/scm-cmd.c: Fix indentation.
1717 * guile/scm-frame.c: Fix indentation.
1718 * guile/scm-iterator.c: Fix indentation.
1719 * guile/scm-math.c: Fix indentation.
1720 * guile/scm-ports.c: Fix indentation.
1721 * guile/scm-pretty-print.c: Fix indentation.
1722 * guile/scm-value.c: Fix indentation.
1723 * h8300-tdep.c: Fix indentation.
1724 * hppa-linux-nat.c: Fix indentation.
1725 * hppa-linux-tdep.c: Fix indentation.
1726 * hppa-nbsd-nat.c: Fix indentation.
1727 * hppa-nbsd-tdep.c: Fix indentation.
1728 * hppa-obsd-nat.c: Fix indentation.
1729 * hppa-tdep.c: Fix indentation.
1730 * hppa-tdep.h: Fix indentation.
1731 * i386-bsd-nat.c: Fix indentation.
1732 * i386-darwin-nat.c: Fix indentation.
1733 * i386-darwin-tdep.c: Fix indentation.
1734 * i386-dicos-tdep.c: Fix indentation.
1735 * i386-gnu-nat.c: Fix indentation.
1736 * i386-linux-nat.c: Fix indentation.
1737 * i386-linux-tdep.c: Fix indentation.
1738 * i386-nto-tdep.c: Fix indentation.
1739 * i386-obsd-tdep.c: Fix indentation.
1740 * i386-sol2-nat.c: Fix indentation.
1741 * i386-tdep.c: Fix indentation.
1742 * i386-tdep.h: Fix indentation.
1743 * i386-windows-tdep.c: Fix indentation.
1744 * i387-tdep.c: Fix indentation.
1745 * i387-tdep.h: Fix indentation.
1746 * ia64-libunwind-tdep.c: Fix indentation.
1747 * ia64-libunwind-tdep.h: Fix indentation.
1748 * ia64-linux-nat.c: Fix indentation.
1749 * ia64-linux-tdep.c: Fix indentation.
1750 * ia64-tdep.c: Fix indentation.
1751 * ia64-tdep.h: Fix indentation.
1752 * ia64-vms-tdep.c: Fix indentation.
1753 * infcall.c: Fix indentation.
1754 * infcmd.c: Fix indentation.
1755 * inferior.c: Fix indentation.
1756 * infrun.c: Fix indentation.
1757 * iq2000-tdep.c: Fix indentation.
1758 * language.c: Fix indentation.
1759 * linespec.c: Fix indentation.
1760 * linux-fork.c: Fix indentation.
1761 * linux-nat.c: Fix indentation.
1762 * linux-tdep.c: Fix indentation.
1763 * linux-thread-db.c: Fix indentation.
1764 * lm32-tdep.c: Fix indentation.
1765 * m2-lang.c: Fix indentation.
1766 * m2-typeprint.c: Fix indentation.
1767 * m2-valprint.c: Fix indentation.
1768 * m32c-tdep.c: Fix indentation.
1769 * m32r-linux-tdep.c: Fix indentation.
1770 * m32r-tdep.c: Fix indentation.
1771 * m68hc11-tdep.c: Fix indentation.
1772 * m68k-bsd-nat.c: Fix indentation.
1773 * m68k-linux-nat.c: Fix indentation.
1774 * m68k-linux-tdep.c: Fix indentation.
1775 * m68k-tdep.c: Fix indentation.
1776 * machoread.c: Fix indentation.
1777 * macrocmd.c: Fix indentation.
1778 * macroexp.c: Fix indentation.
1779 * macroscope.c: Fix indentation.
1780 * macrotab.c: Fix indentation.
1781 * macrotab.h: Fix indentation.
1782 * main.c: Fix indentation.
1783 * mdebugread.c: Fix indentation.
1784 * mep-tdep.c: Fix indentation.
1785 * mi/mi-cmd-catch.c: Fix indentation.
1786 * mi/mi-cmd-disas.c: Fix indentation.
1787 * mi/mi-cmd-env.c: Fix indentation.
1788 * mi/mi-cmd-stack.c: Fix indentation.
1789 * mi/mi-cmd-var.c: Fix indentation.
1790 * mi/mi-cmds.c: Fix indentation.
1791 * mi/mi-main.c: Fix indentation.
1792 * mi/mi-parse.c: Fix indentation.
1793 * microblaze-tdep.c: Fix indentation.
1794 * minidebug.c: Fix indentation.
1795 * minsyms.c: Fix indentation.
1796 * mips-linux-nat.c: Fix indentation.
1797 * mips-linux-tdep.c: Fix indentation.
1798 * mips-nbsd-tdep.c: Fix indentation.
1799 * mips-tdep.c: Fix indentation.
1800 * mn10300-linux-tdep.c: Fix indentation.
1801 * mn10300-tdep.c: Fix indentation.
1802 * moxie-tdep.c: Fix indentation.
1803 * msp430-tdep.c: Fix indentation.
1804 * namespace.h: Fix indentation.
1805 * nat/fork-inferior.c: Fix indentation.
1806 * nat/gdb_ptrace.h: Fix indentation.
1807 * nat/linux-namespaces.c: Fix indentation.
1808 * nat/linux-osdata.c: Fix indentation.
1809 * nat/netbsd-nat.c: Fix indentation.
1810 * nat/x86-dregs.c: Fix indentation.
1811 * nbsd-nat.c: Fix indentation.
1812 * nbsd-tdep.c: Fix indentation.
1813 * nios2-linux-tdep.c: Fix indentation.
1814 * nios2-tdep.c: Fix indentation.
1815 * nto-procfs.c: Fix indentation.
1816 * nto-tdep.c: Fix indentation.
1817 * objfiles.c: Fix indentation.
1818 * objfiles.h: Fix indentation.
1819 * opencl-lang.c: Fix indentation.
1820 * or1k-tdep.c: Fix indentation.
1821 * osabi.c: Fix indentation.
1822 * osabi.h: Fix indentation.
1823 * osdata.c: Fix indentation.
1824 * p-lang.c: Fix indentation.
1825 * p-typeprint.c: Fix indentation.
1826 * p-valprint.c: Fix indentation.
1827 * parse.c: Fix indentation.
1828 * ppc-linux-nat.c: Fix indentation.
1829 * ppc-linux-tdep.c: Fix indentation.
1830 * ppc-nbsd-nat.c: Fix indentation.
1831 * ppc-nbsd-tdep.c: Fix indentation.
1832 * ppc-obsd-nat.c: Fix indentation.
1833 * ppc-ravenscar-thread.c: Fix indentation.
1834 * ppc-sysv-tdep.c: Fix indentation.
1835 * ppc64-tdep.c: Fix indentation.
1836 * printcmd.c: Fix indentation.
1837 * proc-api.c: Fix indentation.
1838 * producer.c: Fix indentation.
1839 * producer.h: Fix indentation.
1840 * prologue-value.c: Fix indentation.
1841 * prologue-value.h: Fix indentation.
1842 * psymtab.c: Fix indentation.
1843 * python/py-arch.c: Fix indentation.
1844 * python/py-bpevent.c: Fix indentation.
1845 * python/py-event.c: Fix indentation.
1846 * python/py-event.h: Fix indentation.
1847 * python/py-finishbreakpoint.c: Fix indentation.
1848 * python/py-frame.c: Fix indentation.
1849 * python/py-framefilter.c: Fix indentation.
1850 * python/py-inferior.c: Fix indentation.
1851 * python/py-infthread.c: Fix indentation.
1852 * python/py-objfile.c: Fix indentation.
1853 * python/py-prettyprint.c: Fix indentation.
1854 * python/py-registers.c: Fix indentation.
1855 * python/py-signalevent.c: Fix indentation.
1856 * python/py-stopevent.c: Fix indentation.
1857 * python/py-stopevent.h: Fix indentation.
1858 * python/py-threadevent.c: Fix indentation.
1859 * python/py-tui.c: Fix indentation.
1860 * python/py-unwind.c: Fix indentation.
1861 * python/py-value.c: Fix indentation.
1862 * python/py-xmethods.c: Fix indentation.
1863 * python/python-internal.h: Fix indentation.
1864 * python/python.c: Fix indentation.
1865 * ravenscar-thread.c: Fix indentation.
1866 * record-btrace.c: Fix indentation.
1867 * record-full.c: Fix indentation.
1868 * record.c: Fix indentation.
1869 * reggroups.c: Fix indentation.
1870 * regset.h: Fix indentation.
1871 * remote-fileio.c: Fix indentation.
1872 * remote.c: Fix indentation.
1873 * reverse.c: Fix indentation.
1874 * riscv-linux-tdep.c: Fix indentation.
1875 * riscv-ravenscar-thread.c: Fix indentation.
1876 * riscv-tdep.c: Fix indentation.
1877 * rl78-tdep.c: Fix indentation.
1878 * rs6000-aix-tdep.c: Fix indentation.
1879 * rs6000-lynx178-tdep.c: Fix indentation.
1880 * rs6000-nat.c: Fix indentation.
1881 * rs6000-tdep.c: Fix indentation.
1882 * rust-lang.c: Fix indentation.
1883 * rx-tdep.c: Fix indentation.
1884 * s12z-tdep.c: Fix indentation.
1885 * s390-linux-tdep.c: Fix indentation.
1886 * score-tdep.c: Fix indentation.
1887 * ser-base.c: Fix indentation.
1888 * ser-mingw.c: Fix indentation.
1889 * ser-uds.c: Fix indentation.
1890 * ser-unix.c: Fix indentation.
1891 * serial.c: Fix indentation.
1892 * sh-linux-tdep.c: Fix indentation.
1893 * sh-nbsd-tdep.c: Fix indentation.
1894 * sh-tdep.c: Fix indentation.
1895 * skip.c: Fix indentation.
1896 * sol-thread.c: Fix indentation.
1897 * solib-aix.c: Fix indentation.
1898 * solib-darwin.c: Fix indentation.
1899 * solib-frv.c: Fix indentation.
1900 * solib-svr4.c: Fix indentation.
1901 * solib.c: Fix indentation.
1902 * source.c: Fix indentation.
1903 * sparc-linux-tdep.c: Fix indentation.
1904 * sparc-nbsd-tdep.c: Fix indentation.
1905 * sparc-obsd-tdep.c: Fix indentation.
1906 * sparc-ravenscar-thread.c: Fix indentation.
1907 * sparc-tdep.c: Fix indentation.
1908 * sparc64-linux-tdep.c: Fix indentation.
1909 * sparc64-nbsd-tdep.c: Fix indentation.
1910 * sparc64-obsd-tdep.c: Fix indentation.
1911 * sparc64-tdep.c: Fix indentation.
1912 * stabsread.c: Fix indentation.
1913 * stack.c: Fix indentation.
1914 * stap-probe.c: Fix indentation.
1915 * stubs/ia64vms-stub.c: Fix indentation.
1916 * stubs/m32r-stub.c: Fix indentation.
1917 * stubs/m68k-stub.c: Fix indentation.
1918 * stubs/sh-stub.c: Fix indentation.
1919 * stubs/sparc-stub.c: Fix indentation.
1920 * symfile-mem.c: Fix indentation.
1921 * symfile.c: Fix indentation.
1922 * symfile.h: Fix indentation.
1923 * symmisc.c: Fix indentation.
1924 * symtab.c: Fix indentation.
1925 * symtab.h: Fix indentation.
1926 * target-float.c: Fix indentation.
1927 * target.c: Fix indentation.
1928 * target.h: Fix indentation.
1929 * tic6x-tdep.c: Fix indentation.
1930 * tilegx-linux-tdep.c: Fix indentation.
1931 * tilegx-tdep.c: Fix indentation.
1932 * top.c: Fix indentation.
1933 * tracefile-tfile.c: Fix indentation.
1934 * tracepoint.c: Fix indentation.
1935 * tui/tui-disasm.c: Fix indentation.
1936 * tui/tui-io.c: Fix indentation.
1937 * tui/tui-regs.c: Fix indentation.
1938 * tui/tui-stack.c: Fix indentation.
1939 * tui/tui-win.c: Fix indentation.
1940 * tui/tui-winsource.c: Fix indentation.
1941 * tui/tui.c: Fix indentation.
1942 * typeprint.c: Fix indentation.
1943 * ui-out.h: Fix indentation.
1944 * unittests/copy_bitwise-selftests.c: Fix indentation.
1945 * unittests/memory-map-selftests.c: Fix indentation.
1946 * utils.c: Fix indentation.
1947 * v850-tdep.c: Fix indentation.
1948 * valarith.c: Fix indentation.
1949 * valops.c: Fix indentation.
1950 * valprint.c: Fix indentation.
1951 * valprint.h: Fix indentation.
1952 * value.c: Fix indentation.
1953 * value.h: Fix indentation.
1954 * varobj.c: Fix indentation.
1955 * vax-tdep.c: Fix indentation.
1956 * windows-nat.c: Fix indentation.
1957 * windows-tdep.c: Fix indentation.
1958 * xcoffread.c: Fix indentation.
1959 * xml-syscall.c: Fix indentation.
1960 * xml-tdesc.c: Fix indentation.
1961 * xstormy16-tdep.c: Fix indentation.
1962 * xtensa-config.c: Fix indentation.
1963 * xtensa-linux-nat.c: Fix indentation.
1964 * xtensa-linux-tdep.c: Fix indentation.
1965 * xtensa-tdep.c: Fix indentation.
1967 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1968 Craig Blackmore <craig.blackmore@embecosm.com>
1970 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1971 as an unsigned value.
1973 2020-11-01 Tom Tromey <tom@tromey.com>
1975 * dbxread.c (dbx_end_psymtab): Update.
1976 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1977 (build_type_psymtabs_reader): Update.
1978 * xcoffread.c (xcoff_end_psymtab): Update.
1979 * ctfread.c (scan_partial_symbols): Update.
1980 * psymtab.c (sort_pst_symbols): Remove.
1981 (partial_symtab::end): Rename from end_psymtab_common. Inline
1983 * psympriv.h (struct partial_symtab) <end>: New method.
1984 (end_psymtab_common): Don't declare.
1986 2020-11-01 Tom Tromey <tom@tromey.com>
1988 * symmisc.c (count_psyms): New function.
1989 (print_objfile_statistics): Use it.
1990 * psymtab.c (append_psymbol_to_list): Remove.
1991 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1992 * objfiles.h (struct objstats) <n_psyms>: Remove.
1994 2020-11-01 Tom Tromey <tom@tromey.com>
1996 * dbxread.c (dbx_end_psymtab): Update.
1997 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1998 (build_type_psymtabs_reader): Update.
1999 * xcoffread.c (xcoff_end_psymtab): Update.
2000 * ctfread.c (scan_partial_symbols): Update.
2001 * psympriv.h (end_psymtab_common): Update.
2002 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2003 (sort_pst_symbols): Likewise.
2005 2020-11-01 Tom Tromey <tom@tromey.com>
2007 * dbxread.c (dbx_symfile_read): Update.
2008 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2009 * xcoffread.c (xcoff_initial_scan): Update.
2010 * psympriv.h (init_psymbol_list): Don't declare.
2011 * psymtab.c (init_psymbol_list): Remove.
2013 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2015 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2016 gnat_encoded_fixed_type_info. Update all callers.
2018 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2020 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2023 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2025 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2026 cast_from_fixed. Update all callers.
2027 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2029 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2031 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2033 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2034 to print_gnat_encoded_fixed_point_type.
2035 * ada-valprint.c: Likewise.
2037 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2039 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2040 (debug_prefixed_printf): Add check of debug_displaced flag.
2041 * linux-nat.c (linux_nat_debug_printf): Add check of
2042 debug_linux_nat flag.
2044 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2046 * infrun.c (infrun_debug_printf_1): Remove.
2047 (displaced_debug_printf_1): Remove.
2048 (stop_all_threads): Use debug_prefixed_printf.
2049 * infrun.h (infrun_debug_printf_1): Remove.
2050 (infrun_debug_printf): Use debug_prefixed_printf.
2051 (displaced_debug_printf_1): Remove.
2052 (displaced_debug_printf): Use debug_prefixed_printf.
2053 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2054 (linux_nat_debug_printf): Use debug_prefixed_printf.
2056 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2058 * configure: Re-generate.
2059 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2062 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2064 * configure: Re-generate.
2066 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2068 * configure: Re-generate.
2070 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2072 * configure: Re-generate.
2074 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2076 * configure: Re-generate.
2078 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2080 * acinclude.m4: Modernize.
2081 * configure: Re-generate.
2083 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2085 * configure.ac: Modernize.
2086 * configure: Re-generate.
2088 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2090 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2091 * configure: Re-generate.
2092 * configure.ac: Remove AM_PROG_CC_STDC.
2094 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2096 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2097 AC_CANONICAL_SYSTEM.
2098 * configure: Re-generate.
2100 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2102 * infrun.h (displaced_debug_printf): New macro. Replace
2103 displaced debug prints throughout to use it.
2104 (displaced_debug_printf_1): New declaration.
2105 (displaced_step_dump_bytes): Return string, remove ui_file
2106 parameter, update all callers.
2107 * infrun.c (displaced_debug_printf_1): New function.
2108 (displaced_step_dump_bytes): Return string, remove ui_file
2111 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2113 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2115 2020-10-30 Tom Tromey <tromey@adacore.com>
2117 * Makefile.in (stamp-init): Depend on config.status.
2119 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2121 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2123 2020-10-30 Pedro Alves <pedro@palves.net>
2125 * thread.c (lookup_selected_frame): Move ...
2126 * frame.c (lookup_selected_frame): ... here.
2128 2020-10-30 Pedro Alves <pedro@palves.net>
2130 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2132 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2133 Use save_selected_frame. Save language as well.
2134 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2135 Use restore_selected_frame, and restore language as well.
2136 (selected_frame_id, selected_frame_level): New.
2137 (selected_frame): Update comments.
2138 (save_selected_frame, restore_selected_frame): New.
2139 (get_selected_frame): Use lookup_selected_frame.
2140 (get_selected_frame_if_set): Delete.
2141 (select_frame): Record selected_frame_level and selected_frame_id.
2142 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2144 (get_selected_frame): Make 'message' parameter optional.
2145 (get_selected_frame_if_set): Delete declaration.
2146 (select_frame): Update comments.
2147 (save_selected_frame, restore_selected_frame)
2148 (lookup_selected_frame): Declare.
2149 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2150 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2152 (save_infcall_control_state): Use save_selected_frame.
2153 (restore_selected_frame): Delete.
2154 (restore_infcall_control_state): Use restore_selected_frame.
2155 * stack.c (select_frame_command_core, frame_command_core): Use
2157 * thread.c (restore_selected_frame): Rename to ...
2158 (lookup_selected_frame): ... this and make extern. Select the
2159 current frame if the frame level is -1.
2160 (scoped_restore_current_thread::restore): Also restore the
2162 (scoped_restore_current_thread::~scoped_restore_current_thread):
2164 (scoped_restore_current_thread::scoped_restore_current_thread):
2165 Save the language as well. Use save_selected_frame.
2167 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2169 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2171 * gdbarch.h: Re-generate.
2173 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2175 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2177 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2179 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2181 * arch-utils.c (default_displaced_step_hw_singlestep):
2183 * arch-utils.h (default_displaced_step_hw_singlestep):
2185 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2187 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2189 * gdbarch.c: Re-generate.
2190 * gdbarch.h: Re-generate.
2191 * infrun.c (resume_1): Adjust.
2193 2020-10-29 Tom Tromey <tom@tromey.com>
2195 * progspace.c (program_space::~program_space): Don't call
2198 2020-10-29 Tom Tromey <tom@tromey.com>
2200 * exec.c (exec_target::close): Don't change current program
2203 2020-10-29 Tom Tromey <tom@tromey.com>
2205 * symfile.c (add_symbol_file_command): Update.
2206 * exec.c (program_space::add_target_sections): Rename.
2207 * symfile-mem.c (symbol_file_add_from_memory): Update.
2208 * progspace.h (struct program_space) <add_target_sections>:
2209 Declare new overload.
2210 * exec.h (add_target_sections_of_objfile): Don't declare.
2212 2020-10-29 Tom Tromey <tom@tromey.com>
2214 * solib.c (solib_map_sections): Update.
2215 * exec.c (program_space::add_target_sections): Now a method.
2216 (exec_file_attach): Update.
2217 * exec.h (add_target_sections): Don't declare.
2218 * progspace.h (struct program_space) <add_target_sections>:
2221 2020-10-29 Tom Tromey <tom@tromey.com>
2223 * progspace.h (struct program_space) <remove_target_sections>:
2225 * exec.c (program_space::remove_target_sections): Now a method.
2226 * exec.h (remove_target_sections): Don't declare.
2228 2020-10-29 Tom Tromey <tom@tromey.com>
2230 * inferior.c (delete_inferior): Update.
2231 * progspace.c (program_space::empty): Rename from
2232 program_space_empty_p. Return bool.
2233 * progspace.h (struct program_space) <empty>: New method.
2234 (program_space_empty_p): Don't declare.
2236 2020-10-29 Tom Tromey <tom@tromey.com>
2238 * progspace.c (program_space::~program_space): Don't call
2239 clear_program_space_solib_cache.
2240 (program_space::clear_solib_cache): Rename from
2242 * solib.c (handle_solib_event): Update.
2243 * progspace.h (struct program_space) <clear_solib_cache>: New
2245 (clear_program_space_solib_cache): Don't declare.
2247 2020-10-29 Tom Tromey <tom@tromey.com>
2249 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2250 * target.c (info_target_command): Update.
2251 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2252 (symbol_file_clear, reread_symbols): Update.
2253 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2254 * stabsread.c (scan_file_globals): Update.
2255 * solib.c (update_solib_list): Update.
2256 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2257 (svr4_fetch_objfile_link_map, enable_break)
2258 (svr4_relocate_main_executable)
2259 (svr4_iterate_over_objfiles_in_search_order): Update.
2260 * solib-frv.c (lm_base, enable_break)
2261 (frv_relocate_main_executable): Update.
2262 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2263 (frv_fetch_objfile_link_map): Update.
2264 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2265 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2266 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2267 * remote.c (remote_target::get_offsets): Update.
2268 (remote_target::start_remote)
2269 (extended_remote_target::post_attach): Update.
2270 * objfiles.c (entry_point_address_query): Update.
2271 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2272 * minsyms.c (get_symbol_leading_char): Update.
2273 * frame.c (inside_main_func): Update.
2274 * progspace.h (symfile_objfile): Remove macro.
2276 2020-10-29 Tom Tromey <tom@tromey.com>
2278 * exec.c (exec_file_attach): Update.
2279 * progspace.c (program_space::exec_close): Update.
2280 * progspace.h (struct program_space) <ebfd>: Now a
2282 <set_exec_bfd>: Change argument type.
2285 2020-10-29 Tom Tromey <tom@tromey.com>
2287 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2288 * symfile.c (reread_symbols): Update.
2289 * symfile-mem.c (add_symbol_file_from_memory_command)
2290 (add_vsyscall_page): Update.
2291 * source-cache.c (source_cache::get_plain_source_lines): Update.
2292 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2293 (svr4_current_sos_direct, svr4_exec_displacement)
2294 (svr4_relocate_main_executable): Update.
2295 (svr4_iterate_over_objfiles_in_search_order): Update.
2296 * solib-frv.c (enable_break2, enable_break): Update.
2297 * solib-dsbt.c (lm_base, enable_break): Update.
2298 * solib-darwin.c (find_program_interpreter)
2299 (darwin_solib_create_inferior_hook): Update.
2300 * sol-thread.c (rw_common, ps_pdmodel): Update.
2301 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2302 * remote.c (compare_sections_command)
2303 (remote_target::trace_set_readonly_regions): Update.
2304 * remote-sim.c (get_sim_inferior_data)
2305 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2306 (gdbsim_target_open, gdbsim_target::files_info): Update.
2307 * exec.h (exec_bfd): Remove macro.
2308 * progspace.c (initialize_progspace): Update.
2309 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2311 * nto-procfs.c (nto_procfs_target::post_attach)
2312 (nto_procfs_target::create_inferior): Update.
2313 * maint.c (maintenance_info_sections): Update.
2314 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2316 * infcmd.c (post_create_inferior): Update.
2317 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2318 (objfile_find_memory_regions): Update.
2319 * exec.c (validate_exec_file, exec_file_attach)
2320 (exec_read_partial_read_only, print_section_info): Update.
2321 * corelow.c (core_target_open): Update.
2322 * corefile.c (reopen_exec_file, validate_files): Update.
2323 * arm-tdep.c (gdb_print_insn_arm): Update.
2324 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2325 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2328 2020-10-29 Tom Tromey <tom@tromey.com>
2330 * progspace.h (current_target_sections): Remove macro.
2331 * solib-svr4.c (scan_dyntag): Update.
2332 * solib-dsbt.c (scan_dyntag): Update.
2333 * exec.c (exec_target::close): Update.
2334 (add_target_sections, add_target_sections_of_objfile)
2335 (remove_target_sections, exec_target::get_section_table)
2336 (exec_target::files_info, set_section_command)
2337 (exec_set_section_address, exec_target::has_memory)
2338 (exec_target::has_memory): Update.
2340 2020-10-29 Tom Tromey <tom@tromey.com>
2342 * source-cache.c (source_cache::get_plain_source_lines): Use
2343 current_program_space.
2344 * corefile.c (reopen_exec_file): Use current_program_space.
2345 * exec.c (exec_file_attach): Use current_program_space.
2346 * exec.h (exec_bfd_mtime): Remove.
2348 2020-10-29 Tom Tromey <tom@tromey.com>
2350 * gcore.c (default_gcore_mach): Remove.
2351 (create_gcore_bfd): Update.
2353 2020-10-29 Tom Tromey <tom@tromey.com>
2355 * progspace.c (program_space::exec_close): New method, from
2356 exec_close in exec.c.
2357 * exec.c (exec_close): Move to progspace.c.
2358 (exec_target::close, exec_file_attach): Update.
2359 * progspace.h (struct program_space) <exec_close>: Declare
2362 2020-10-29 Tom Tromey <tom@tromey.com>
2364 * progspace.h (struct program_space) <exec_filename>: Rename from
2365 pspace_exec_filename. Now a unique_xmalloc_ptr.
2366 * inferior.c (print_selected_inferior): Update.
2367 (print_inferior): Update.
2368 * mi/mi-main.c (print_one_inferior): Update.
2369 * exec.h (exec_filename): Remove macro.
2370 * corefile.c (get_exec_file): Update.
2371 * exec.c (exec_close): Update.
2372 (exec_file_attach): Update.
2373 * progspace.c (clone_program_space): Update.
2374 (print_program_space): Update.
2376 2020-10-29 Tom Tromey <tom@tromey.com>
2378 * target-section.h (struct target_section): Add constructor.
2379 * exec.c (build_section_table, add_target_sections_of_objfile):
2381 * corelow.c (core_target::build_file_mappings): Update.
2383 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2386 * inferior.c (detach_inferior_command): Restore the current thread.
2387 (kill_inferior_command): Ditto.
2389 2020-10-28 Tom de Vries <tdevries@suse.de>
2392 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2393 map, check it in the "best match" loop.
2395 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2397 * m32c-tdep.c: Remove unused includes.
2399 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2401 * xtensa-tdep.c: Remove includes.
2403 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2405 * breakpoint.c (struct condition_command_opts): New struct.
2406 (condition_command_option_defs): New static global.
2407 (make_condition_command_options_def_group): New function.
2408 (condition_completer): Update to consider the '-force' flag.
2409 (condition_command): Use gdb::option for the '-force' flag.
2411 2020-10-27 Tom de Vries <tdevries@suse.de>
2413 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2414 symbols in section check.
2416 2020-10-27 Tom de Vries <tdevries@suse.de>
2418 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2420 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2422 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2423 * breakpoint.c: Update the help text of the 'condition' and 'break'
2425 (set_breakpoint_condition): Take a new bool parameter
2426 to control whether condition definition should be forced even when
2427 the condition expression is invalid in all of the current locations.
2428 (condition_command): Update the call to 'set_breakpoint_condition'.
2429 (find_condition_and_thread): Take the "-force-condition" flag into
2431 * linespec.c (linespec_keywords): Add "-force-condition" as an
2433 (FORCE_KEYWORD_INDEX): New #define.
2434 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2436 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2437 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2438 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2439 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2441 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2443 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2444 * breakpoint.c (set_breakpoint_location_condition): New function.
2445 (set_breakpoint_condition): Disable a breakpoint location if parsing
2446 the condition string gives an error.
2447 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2448 (build_target_condition_list): Ditto.
2449 (build_target_command_list): Ditto.
2450 (build_bpstat_chain): Ditto.
2451 (print_one_breakpoint_location): Ditto.
2452 (print_one_breakpoint): Ditto.
2453 (breakpoint_1): Ditto.
2454 (bp_location::bp_location): Ditto.
2455 (locations_are_equal): Ditto.
2456 (update_breakpoint_locations): Ditto.
2457 (enable_disable_bp_num_loc): Ditto.
2458 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2459 (find_condition_and_thread_for_sals): New static function.
2460 (create_breakpoint): Call find_condition_and_thread_for_sals.
2461 (location_to_sals): Call find_condition_and_thread_for_sals instead
2462 of find_condition_and_thread.
2464 2020-10-26 Tom de Vries <tdevries@suse.de>
2466 * dwarf2/read.c (process_full_comp_unit): Call
2467 dwarf2_find_base_address.
2469 2020-10-26 Tom Tromey <tromey@adacore.com>
2471 * gdbtypes.c (create_range_type): Revert previous patch. Add
2474 2020-10-26 Pedro Alves <pedro@palves.net>
2476 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2477 (my_waitpid): Use gdb::handle_eintr.
2479 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2481 * acinclude.m4: Update ptrace.m4 path.
2482 * ptrace.m4: Moved to gdbsupport.
2484 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2486 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2487 instead of target_gdbarch.
2489 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2491 * jit.c (jit_reader_load_command): Pass current inferior.
2492 (jit_inferior_init): Change parameter type to inferior, use it.
2493 (jit_inferior_created): Remove.
2494 (jit_inferior_created_hook): Pass inferior parameter down.
2495 (_initialize_jit): Use jit_inferior_created_hook instead of
2496 jit_inferior_created.
2497 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2498 * infrun.c (follow_exec): Pass inferior to
2499 jit_inferior_created_hook.
2501 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2503 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2504 parameter and use it.
2505 (thread_db_inferior_created): Pass inferior argument.
2507 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2509 * aix-thread.c (aix_thread_inferior_created): Add inferior
2511 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2512 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2513 * jit.c (jit_inferior_created): Likewise.
2514 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2515 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2516 * observable.h (inferior_created): Likewise.
2517 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2518 * symfile-mem.c (add_vsyscall_page): Likewise.
2519 * infcmd.c (post_create_inferior): Pass inferior argument.
2521 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2525 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2527 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2528 to ada_check_typedef.
2530 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2532 * f-exp.y (f_parse): Rename to...
2533 (f_language::parser): ...this.
2534 * f-lang.c (f_get_encoding): Rename to...
2535 (f_language::get_encoding): ...this.
2536 (f_op_print_tab): Rename to...
2537 (f_language::op_print_tab): ...this.
2538 (exp_descriptor_f): Rename to...
2539 (f_language::exp_descriptor_tab): ...this.
2540 (class f_language): Moved to f-lang.h.
2541 (f_language::language_arch_info): New function, moved out of class
2543 (f_language::search_name_hash): Likewise.
2544 (f_language::lookup_symbol_nonlocal): Likewise.
2545 (f_language::get_symbol_name_matcher_inner): Likewise.
2546 * f-lang.h: Add 'valprint.h' include.
2547 (class f_language): Moved here from f-lang.c.
2548 * f-typeprint.c (f_type_print_args): Delete commented out
2550 (f_print_typedef): Rename to...
2551 (f_language::print_typedef): ...this.
2552 (f_print_type): Rename to...
2553 (f_language::print_type): ...this.
2554 (f_type_print_varspec_prefix): Delete declaration and rename to...
2555 (f_language::f_type_print_varspec_prefix): ...this.
2556 (f_type_print_varspec_suffix): Delete declaration and rename to...
2557 (f_language::f_type_print_varspec_suffix): ...this.
2558 (f_type_print_base): Delete declaration and rename to...
2559 (f_language::f_type_print_base): ...this.
2560 * f-valprint.c (f_value_print_inner): Rename to...
2561 (f_language::value_print_inner): ...this.
2562 * parse.c: Delete 'f-lang.h' include.
2564 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2566 * language.h (language_defn::print_type): Add variable names in
2567 declaration, and update header comment.
2569 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2571 * ada-lang.c (ada_language::demangle): Rename to...
2572 (ada_language::demangle_symbol): ...this.
2573 * c-lang.c (cplus_language::demangle): Rename to...
2574 (cplus_language::demangle_symbol): ...this.
2575 * d-lang.c (d_language::demangle): Rename to...
2576 (d_language::demangle_symbol): ...this.
2577 * f-lang.c (f_language::demangle): Rename to...
2578 (f_language::demangle_symbol): ...this.
2579 * go-lang.c (go_language::demangle): Rename to...
2580 (go_language::demangle_symbol): ...this.
2581 * language.c (language_demangle): Update call to demangle_symbol.
2582 (auto_or_unknown_language::demangle): Rename to...
2583 (auto_or_unknown_language::demangle_symbol): ...this.
2584 * language.h (language_defn::demangle): Rename to...
2585 (language_defn::demangle_symbol): ...this.
2586 * objc-lang.c (objc_language::demangle): Rename to...
2587 (objc_language::demangle_symbol): ...this.
2588 * rust-lang.c (rust_language::demangle): Rename to...
2589 (rust_language::demangle_symbol): ...this.
2591 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2593 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2594 (iterate_over_file_blocks): Replace use of macro with the macros
2597 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2599 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2600 * valprint.c (maybe_print_array_index): Replace use of macro with
2601 the macros definition.
2603 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2605 * ada-lang.c (ada_language::print_array_index): Call value_print
2607 * language.c (language_defn::print_array_index): Likewise.
2608 * language.h (LA_VALUE_PRINT): Delete.
2609 * valprint.c (value_print): Call value_print on the
2610 current_language directly.
2612 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2614 * language.h (LA_PRINT_TYPEDEF): Delete.
2615 * typeprint.c (typedef_print): Call print_typedef directly on the
2616 current_language object.
2618 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2620 * m2-exp.y (m2_parse): Rename to...
2621 (m2_language::parser): ...this. Update function signature.
2622 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2623 (m2_op_print): Rename to...
2624 (m2_language::op_print_tab): ...this, and make const.
2625 (exp_descriptor_modula2): Rename to...
2626 (m2_language::exp_descriptor_modula2): ...this.
2627 (class m2_language): Move to m2-lang.h.
2628 (m2_language::language_arch_info): New function, moved out of
2630 (m2_language::printchar): New function, body from m2_printchar.
2631 (m2_language::printstr): New function, moved out of class
2633 (m2_language::emitchar): Likewise.
2634 * m2-lang.h (m2_parse): Delete declaration.
2635 (m2_print_typedef): Delete declaration.
2636 (m2_value_print_inner): Delete declaration.
2637 (class m2_language): Class declaration moved from m2-lang.c,
2638 larger functions are left in m2-lang.c.
2639 * m2-typeprint.c (m2_print_typedef): Rename to...
2640 (m2_language::print_typedef): ...this, and update function
2642 * m2-valprint.c (m2_value_print_inner): Rename to...
2643 (m2_language::value_print_inner): ...this, replace use of
2644 LA_PRINT_STRING with a direct call to printstr member function,
2645 and update recursive call.
2647 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2649 * language.c (default_is_string_type_p): Delete, implementation
2650 moved into auto_or_unknown_language::is_string_type_p.
2651 (unk_op_print_tab): Moved into
2652 auto_or_unknown_language::opcode_print_table.
2653 (unknown_language_arch_info): Delete, implementation moved into
2654 auto_or_unknown_language::language_arch_info.
2655 (class auto_or_unknown_language): New class, member functions
2656 copied from unknown_language class, with some updates.
2657 (class unknown_language): Most member functions moved into
2658 auto_or_unknown_language class. Inherit from
2659 auto_or_unknown_language class.
2660 (class auto_language): Inherit from auto_or_unknown_language.
2661 Delete most member functions.
2663 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2665 * stabsread.c (read_member_functions): Remove gdb_assert.
2667 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2669 * gdbtypes.c (init_complex_type): Check target type name.
2671 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2673 * target-debug.h (target_debug_print_struct_target_ops_p):
2675 (target_debug_print_async_callback_ftype_p): Remove.
2676 (target_debug_print_struct_trace_state_variable_p): Remove.
2677 (target_debug_print_struct_traceframe_info_p): Remove.
2678 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2679 (target_debug_print_enum_btrace_format): Remove.
2680 (target_debug_print_enum_info_proc_what): Remove.
2681 (target_debug_print_thread_info_pp): Remove.
2683 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2685 * target.h (struct target_ops) <make_corefile_notes>:
2686 Change return type to unique pointer.
2687 * target.c (dummy_make_corefile_notes): Likewise.
2688 * exec.c (struct exec_target) <make_corefile_notes>:
2690 (exec_target::make_corefile_notes): Likewise.
2691 * procfs.c (class procfs_target) <make_corefile_notes>:
2693 (procfs_do_thread_registers): Adjust to unique pointer.
2694 (struct procfs_corefile_thread_data): Add constructor.
2695 <note_data>: Change type to unique pointer.
2696 (procfs_corefile_thread_callback): Adjust to unique pointer.
2697 (procfs_target::make_corefile_notes): Change return type to
2699 * target-delegates.c: Re-generate.
2700 * gcore.c (write_gcore_file_1): Adjust.
2701 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2704 2020-10-22 Tom de Vries <tdevries@suse.de>
2706 * block.c (find_block_in_blockvector): Make sure the returned block
2709 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2712 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2714 (load_cu): Pass existing CU.
2715 (process_imported_unit_die): Likewise.
2716 (follow_die_offset): Likewise.
2718 2020-10-22 Luis Machado <luis.machado@linaro.org>
2720 * corelow.c (core_target::xfer_partial): Also check for an empty
2721 m_core_unavailable_mappings vector.
2723 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2725 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2726 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2727 * f-exp.y (arglist): Allow for a series of subranges.
2728 (subrange): Add cases for subranges with strides.
2729 * f-lang.c (value_f90_subarray): Catch use of array strides and
2731 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2733 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2735 * expprint.c (print_subexp_standard): Change enum range_type to
2736 range_flag and rename variables to match.
2737 (dump_subexp_body_standard): Likewise.
2738 * expression.h (enum range_type): Rename to...
2739 (enum range_flag): ...this.
2740 (range_types): Rename to...
2741 (range_flags): ...this.
2742 * f-lang.c (value_f90_subarray): Change enum range_type to
2743 range_flag and rename variables to match.
2744 * parse.c (operator_length_standard): Likewise.
2745 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2746 range_type to range_flag.
2747 * rust-lang.c (rust_evaluate_funcall): Likewise.
2748 (rust_range): Likewise.
2749 (rust_compute_range): Likewise.
2750 (rust_subscript): Likewise.
2752 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2754 * expprint.c (print_subexp_standard): Update to reflect changes to
2756 (dump_subexp_body_standard): Likewise.
2757 * expression.h (enum range_type): Convert to a bit field enum, and
2758 make the enum unsigned.
2759 * f-exp.y (subrange): Update to reflect changes to enum
2761 * f-lang.c (value_f90_subarray): Likewise.
2762 * parse.c (operator_length_standard): Likewise.
2763 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2764 * rust-lang.c (rust_range): Likewise.
2765 (rust_compute_range): Likewise.
2766 (rust_subscript): Likewise.
2768 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2770 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2771 (displaced_step_in_progress): Fix comment.
2773 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2775 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2776 * gdbarch.c: Re-generate.
2777 * gdbarch.h: Re-generate.
2778 * gcore.c (write_gcore_file_1): Adjust.
2779 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2781 <note_data>: Change type to unique pointer.
2782 <abort_iteration>: Change type to bool.
2783 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2784 (fbsd_collect_thread_registers): Return void, adjust.
2785 (struct fbsd_corefile_thread_data): Add construtor.
2786 <note_data>: Change type to unique pointer.
2787 (fbsd_corefile_thread): Adjust.
2788 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2789 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2790 to unique pointer, adjust.
2791 (struct linux_collect_regset_section_cb_data): Add constructor.
2792 <note_data>: Change type to unique pointer.
2793 <abort_iteration>: Change type to bool.
2794 (linux_collect_thread_registers): Return void, adjust.
2795 (struct linux_corefile_thread_data): Add constructor.
2796 <note_data>: Change type to unique pointer.
2797 (linux_corefile_thread): Adjust.
2798 (linux_make_corefile_notes): Return unique pointer, adjust.
2800 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2802 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2803 * gdbarch.c: Re-generate.
2804 * gdbarch.h: Re-generate.
2805 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2807 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2809 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2810 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2811 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2812 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2814 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2816 * gdbarch.sh: Make generated predicates return bool.
2817 * gdbarch.c: Re-generate.
2818 * gdbarch.h: Re-generate.
2820 2020-10-20 Tom Tromey <tom@tromey.com>
2822 * varobj-iter.h (struct varobj_item): Remove typedef.
2824 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2826 * infrun.c (currently_stepping): Change int to bool
2827 (maybe_software_singlestep): Likewise.
2828 (show_stop_on_solib_events): Likewise.
2829 (stepping_past_nonsteppable_watchpoint): Likewise.
2830 (displaced_step_in_progress_any_inferior): Likewise.
2831 (displaced_step_in_progress_thread): Likewise.
2832 (keep_going_stepped_thread): Likewise.
2833 (thread_still_needs_step_over): Likewise.
2834 (start_step_over): Likewise.
2835 (do_target_resume): Likewise.
2836 (resume_1): Likewise.
2837 (clear_proceed_status): Likewise.
2838 (thread_still_needs_step_over_bp): Likewise.
2839 (proceed): Likewise.
2840 (switch_back_to_stepped_thread): Likewise.
2841 (adjust_pc_after_break): Likewise.
2842 (stepped_in_from): Likewise.
2843 (handle_stop_requested): Likewise.
2844 (handle_syscall_event): Likewise.
2845 (handle_no_resumed): Likewise.
2846 (handle_inferior_event): Likewise.
2847 (finish_step_over): Likewise.
2848 (handle_signal_stop): Likewise.
2849 (process_event_stop_test): Likewise.
2851 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2853 * infrun.c (get_displaced_stepping_state): Fix comment.
2855 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2857 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2859 2020-10-19 Tom Tromey <tromey@adacore.com>
2862 * tui/tui-winsource.h (struct tui_source_window_base)
2863 <refresh_window>: Rename from refresh_pad.
2864 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2865 Rename from refresh_pad.
2866 (tui_source_window_base::show_source_content)
2867 (tui_source_window_base::do_scroll_horizontal): Update.
2869 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2871 * thread.c (_initialize_thread): Fine-tune the help text of
2874 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2876 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2878 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2880 * breakpoint.c (handle_jit_event): Add an argument, change how
2881 `jit_event_handler` is called.
2883 2020-10-17 Tom Tromey <tom@tromey.com>
2885 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2886 (scan_xcoff_symtab): Update.
2887 * psymtab.h (class psymtab_storage) <global_psymbols,
2888 static_psymbols, current_global_psymbols,
2889 current_static_psymbols>: Remove.
2890 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2891 (match_partial_symbol, lookup_partial_symbol): Update.
2892 (print_partial_symbols): Change parameters.
2893 (dump_psymtab, recursively_search_psymtabs)
2894 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2895 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2897 (end_psymtab_common): Simplify.
2898 (append_psymbol_to_list): Change parameters.
2899 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2900 (init_psymbol_list): Simplify.
2901 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2902 * psympriv.h (struct partial_symtab) <empty>: New method.
2903 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2905 <global_psymbols, static_psymbols>: New members.
2906 <add_psymbol>: New methods.
2907 (add_psymbol_to_list): Don't declare.
2908 (psymbol_placement): Move earlier.
2909 * mdebugread.c (parse_partial_symbols): Update.
2910 (handle_psymbol_enumerators): Change parameters.
2911 (mdebug_expand_psymtab): Update.
2912 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2913 (add_partial_symbol): Update.
2914 * dwarf2/index-write.c (write_psymbols): Change parameters.
2915 (write_one_signatured_type): Update.
2916 (recursively_count_psymbols): Update.
2917 (recursively_write_psymbols): Update.
2918 (class debug_names) <recursively_write_psymbols>: Update.
2919 <write_psymbols>: Change parameters.
2920 <write_one_signatured_type>: Update.
2921 * dbxread.c (read_dbx_symtab): Update.
2922 (dbx_end_psymtab): Use partial_symtab::empty.
2923 * ctfread.c (struct ctf_context) <pst>: New member.
2924 (create_partial_symtab): Set it.
2925 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2926 (scan_partial_symbols): Use the psymtab's context. Update.
2928 2020-10-17 Tom Tromey <tom@tromey.com>
2930 * valprint.c (generic_value_print): Remove comment.
2931 * m2-valprint.c (m2_value_print_inner): Remove comment.
2932 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2935 2020-10-17 Tom de Vries <tdevries@suse.de>
2938 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2941 2020-10-14 Tom de Vries <tdevries@suse.de>
2944 * solib.c (solib_contains_address_p): Handle
2945 'solib->sections == nullptr'.
2947 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2950 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2951 target can't do async.
2952 * target.c (target_wait): Assert that we don't pass
2953 TARGET_WNOHANG to a target that can't async.
2955 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2957 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2958 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2959 * alpha-bsd-nat.c: Adjust include.
2960 * alpha-bsd-tdep.h: Adjust comment.
2961 * alpha-nbsd-tdep.c: Rename to ...
2962 * alpha-netbsd-tdep.c: ... this, adjust include.
2963 * amd64-nbsd-nat.c: Rename to ...
2964 * amd64-netbsd-nat.c: ... this, adjust include.
2965 * amd64-nbsd-tdep.c: Rename to ...
2966 * amd64-netbsd-tdep.c: ... this, adjust include.
2967 * amd64-tdep.h: Adjust include.
2968 * arm-nbsd-nat.c: Rename to ...
2969 * arm-netbsd-nat.c: ... this, adjust include.
2970 * arm-nbsd-tdep.c: Rename to ...
2971 * arm-netbsd-tdep.c: ... this, adjust include.
2972 * arm-nbsd-tdep.h: Rename to ...
2973 * arm-netbsd-tdep.h: ... this, adjust include.
2974 * configure.nat: Adjust file lists.
2975 * configure.tgt: Likewise.
2976 * hppa-nbsd-nat.c: Rename to ...
2977 * hppa-netbsd-nat.c: ... this, adjust include.
2978 * hppa-nbsd-tdep.c: Rename to ...
2979 * hppa-netbsd-tdep.c: ... this, adjust include.
2980 * i386-nbsd-nat.c: Rename to ...
2981 * i386-netbsd-nat.c: ... this, adjust include.
2982 * i386-nbsd-tdep.c: Rename to ...
2983 * i386-netbsd-tdep.c: ... this, adjust include.
2984 * m68k-bsd-nat.c: Adjust include.
2985 * mips-nbsd-nat.c: Rename to ...
2986 * mips-netbsd-nat.c: ... this, adjust include.
2987 * mips-nbsd-tdep.c: Rename to ...
2988 * mips-netbsd-tdep.c: ... this, adjust include.
2989 * mips-nbsd-tdep.h: Rename to ...
2990 * mips-netbsd-tdep.h: ... this.
2991 * nbsd-nat.c: Rename to ...
2992 * netbsd-nat.c: ... this, adjust include.
2993 * nbsd-nat.h: Rename to ...
2994 * netbsd-nat.h: ... this, adjust include.
2995 * nbsd-tdep.c: Rename to ...
2996 * netbsd-tdep.c: ... this, adjust include.
2997 * nbsd-tdep.h: Rename to ...
2998 * netbsd-tdep.h: ... this.
2999 * ppc-nbsd-nat.c: Rename to ...
3000 * ppc-netbsd-nat.c: ... this, adjust include.
3001 * ppc-nbsd-tdep.c: Rename to ...
3002 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3003 * ppc-nbsd-tdep.h: Rename to ...
3004 * ppc-netbsd-tdep.h: ... this.
3005 * sh-nbsd-nat.c: Rename to ...
3006 * sh-netbsd-nat.c: ... this, adjust include.
3007 * sh-nbsd-tdep.c: Rename to ...
3008 * sh-netbsd-tdep.c: ... this, adjust include.
3009 * sparc-nbsd-nat.c: Rename to ...
3010 * sparc-netbsd-nat.c: ... this.
3011 * sparc-nbsd-tdep.c: Rename to ...
3012 * sparc-netbsd-tdep.c: ... this, adjust include.
3013 * sparc64-nbsd-nat.c: Rename to ...
3014 * sparc64-netbsd-nat.c: ... this.
3015 * sparc64-nbsd-tdep.c: Rename to ...
3016 * sparc64-netbsd-tdep.c: ... this, adjust include.
3017 * sparc64-tdep.h: Adjust comment.
3018 * vax-bsd-nat.c: Adjust include.
3019 * vax-nbsd-tdep.c: Rename to ...
3020 * vax-netbsd-tdep.c: ... this, adjust include.
3022 2020-10-12 Tom Tromey <tom@tromey.com>
3024 * target.h (struct target_ops) <get_section_table>: Update.
3025 (target_get_section_table): Update.
3026 * target.c (target_get_section_table, target_section_by_addr)
3027 (memory_xfer_partial_1): Update.
3028 * target-section.h (target_section_table): Now an alias.
3029 * target-delegates.c: Rebuild.
3030 * target-debug.h (target_debug_print_target_section_table_p):
3031 Rename from target_debug_print_struct_target_section_table_p.
3032 * symfile.c (build_section_addr_info_from_section_table): Update.
3033 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3034 * solib-svr4.c (scan_dyntag): Update.
3035 * solib-dsbt.c (scan_dyntag): Update.
3036 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3038 * record-full.c (record_full_core_target::xfer_partial): Update.
3039 * progspace.h (struct program_space) <target_sections>: Update.
3040 * exec.h (print_section_info): Update.
3041 * exec.c (exec_target::close, build_section_table)
3042 (add_target_sections, add_target_sections_of_objfile)
3043 (remove_target_sections, exec_on_vfork)
3044 (section_table_available_memory)
3045 (section_table_xfer_memory_partial)
3046 (exec_target::get_section_table, exec_target::xfer_partial)
3047 (print_section_info, set_section_command)
3048 (exec_set_section_address, exec_target::has_memory): Update.
3049 * corelow.c (core_target::build_file_mappings)
3050 (core_target::xfer_partial, core_target::info_proc_mappings)
3051 (core_target::info_proc_mappings): Update.
3052 * bfd-target.c (class target_bfd): Update
3054 2020-10-12 Tom Tromey <tom@tromey.com>
3056 * progspace.c (program_space::~program_space): Don't call
3057 clear_section_table.
3058 * exec.h (clear_section_table): Don't declare.
3059 * exec.c (exec_target::close): Update.
3060 (clear_section_table): Remove.
3062 2020-10-12 Tom Tromey <tom@tromey.com>
3064 * exec.c (add_target_sections_of_objfile): Simplify.
3066 2020-10-12 Tom Tromey <tom@tromey.com>
3068 * solib.c (solib_map_sections): Update.
3069 * record-full.c (record_full_core_open_1): Update.
3070 * exec.h (build_section_table): Return a target_section_table.
3071 * exec.c (exec_file_attach): Update.
3072 (build_section_table): Return a target_section_table.
3073 * corelow.c (core_target::core_target): Update.
3074 * bfd-target.c (target_bfd::target_bfd): Update.
3076 2020-10-12 Tom Tromey <tom@tromey.com>
3078 * target.c (target_section_by_addr, memory_xfer_partial_1):
3080 * target-section.h (struct target_section_table): Use
3082 * symfile.h (build_section_addr_info_from_section_table): Take a
3083 target_section_table.
3084 * symfile.c (build_section_addr_info_from_section_table): Take a
3085 target_section_table.
3086 * solist.h (struct so_list) <sections>: Change type.
3087 <sections_end>: Remove.
3088 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3089 (solib_contains_address_p): Update.
3090 * solib-svr4.c (scan_dyntag): Update.
3091 * solib-dsbt.c (scan_dyntag): Update.
3092 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3094 * record-full.c (record_full_core_start, record_full_core_end):
3096 (record_full_core_sections): New global.
3097 (record_full_core_open_1, record_full_core_target::xfer_partial):
3099 * exec.h (build_section_table, section_table_xfer_memory_partial)
3100 (add_target_sections): Take a target_section_table.
3101 * exec.c (exec_file_attach, clear_section_table): Update.
3102 (resize_section_table): Remove.
3103 (build_section_table, add_target_sections): Take a
3104 target_section_table.
3105 (add_target_sections_of_objfile, remove_target_sections)
3106 (exec_on_vfork): Update.
3107 (section_table_available_memory): Take a target_section_table.
3108 (section_table_read_available_memory): Update.
3109 (section_table_xfer_memory_partial): Take a target_section_table.
3110 (print_section_info, set_section_command)
3111 (exec_set_section_address, exec_target::has_memory): Update.
3112 * corelow.c (class core_target) <m_core_section_table,
3113 m_core_file_mappings>: Remove braces.
3114 <~core_target>: Remove.
3115 (core_target::core_target): Update.
3116 (core_target::~core_target): Remove.
3117 (core_target::build_file_mappings)
3118 (core_target::xfer_memory_via_mappings)
3119 (core_target::xfer_partial, core_target::info_proc_mappings):
3121 * bfd-target.c (target_bfd::xfer_partial): Update.
3122 (target_bfd::target_bfd): Update.
3123 (target_bfd::~target_bfd): Remove.
3125 2020-10-12 Tom Tromey <tom@tromey.com>
3127 * target.h (struct target_section, struct target_section_table):
3128 Move to target-section.h.
3129 * target-section.h: New file.
3131 2020-10-12 Pedro Alves <pedro@palves.net>
3134 * valops.c (struct struct_field_searcher): New.
3135 (update_search_result): Rename to ...
3136 (struct_field_searcher::update_result): ... this. Simplify
3137 prototype. Record all found fields.
3138 (do_search_struct_field): Rename to ...
3139 (struct_field_searcher::search): ... this. Simplify prototype.
3140 Maintain stack of visited baseclass path. Call update_result for
3141 fields too. Keep searching fields in baseclasses instead of
3142 stopping at the first found field.
3143 (search_struct_field): Use struct_field_searcher. When looking
3144 for fields, report ambiguous access attempts.
3146 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3148 * frame.c (inside_main_func): Check full symbols as well as
3151 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3153 * ada-lang.c (advance_wild_match): Rewrite the function's
3154 description. Change the type of target0, t0 and t1 to char.
3156 2020-10-09 Tom Tromey <tromey@adacore.com>
3158 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3160 2020-10-09 Tom Tromey <tromey@adacore.com>
3162 * ada-lang.h (ada_encode): Return std::string.
3163 * ada-lang.c (ada_encode_1): Return std::string.
3164 (ada_encode): Likewise.
3165 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3167 * ada-exp.y (block_lookup, write_var_or_type): Update.
3169 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3172 * printcmd.c (print_formatted): Handle void results as
3175 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3177 * arch/aarch32.c (aarch32_create_target_description): Release the
3178 target_desc_up as late as possible.
3179 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3180 * arch/amd64.c (amd64_create_target_description): Likewise.
3181 * arch/arc.c (arc_create_target_description): Return a
3182 target_desc_up, don't release it.
3183 * arch/arc.h (arc_create_target_description): Update declaration.
3184 (arc_lookup_target_description): Move target_desc_up into the
3185 cache, and return a borrowed pointer.
3186 * arch/arm.c (arm_create_target_description): Release the
3187 target_desc_up as late as possible.
3188 * arch/i386.c (i386_create_target_description): Likewise.
3189 * arch/riscv.h (riscv_create_target_description): Update
3190 declaration to match definition.
3191 * arch/tic6x.c (tic6x_create_target_description): Release the
3192 target_desc_up as late as possible.
3194 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3196 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3197 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3199 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3201 * source.c (directory_command): Notify observers that "directories"
3202 parameter has changed.
3204 2020-10-08 Tom Tromey <tom@tromey.com>
3206 * cli/cli-cmds.c (print_disassembly): Style function name and
3207 addresses. Add _() wrappers.
3209 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3211 * NEWS: Mention ARC support in GDBserver.
3213 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3215 * arch/aarch32.c (aarch32_create_target_description): Release
3216 unique_ptr returned from allocate_target_description.
3217 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3218 * arch/amd64.c (amd64_create_target_description): Likewise.
3219 * arch/arc.c (arc_create_target_description): Likewise.
3220 * arch/arm.c (arm_create_target_description): Likewise.
3221 * arch/i386.c (i386_create_target_description): Likewise.
3222 * arch/riscv.c (riscv_create_target_description): Update return
3223 type. Handle allocate_target_description returning a unique_ptr.
3224 (riscv_lookup_target_description): Update to handle unique_ptr.
3225 * arch/tic6x.c (tic6x_create_target_description): Release
3226 unique_ptr returned from allocate_target_description.
3227 * features/microblaze-with-stack-protect.c: Regenerate.
3228 * features/microblaze.c: Regenerate.
3229 * features/mips-dsp-linux.c: Regenerate.
3230 * features/mips-linux.c: Regenerate.
3231 * features/mips64-dsp-linux.c: Regenerate.
3232 * features/mips64-linux.c: Regenerate.
3233 * features/nds32.c: Regenerate.
3234 * features/nios2.c: Regenerate.
3235 * features/or1k.c: Regenerate.
3236 * features/rs6000/powerpc-32.c: Regenerate.
3237 * features/rs6000/powerpc-32l.c: Regenerate.
3238 * features/rs6000/powerpc-403.c: Regenerate.
3239 * features/rs6000/powerpc-403gc.c: Regenerate.
3240 * features/rs6000/powerpc-405.c: Regenerate.
3241 * features/rs6000/powerpc-505.c: Regenerate.
3242 * features/rs6000/powerpc-601.c: Regenerate.
3243 * features/rs6000/powerpc-602.c: Regenerate.
3244 * features/rs6000/powerpc-603.c: Regenerate.
3245 * features/rs6000/powerpc-604.c: Regenerate.
3246 * features/rs6000/powerpc-64.c: Regenerate.
3247 * features/rs6000/powerpc-64l.c: Regenerate.
3248 * features/rs6000/powerpc-7400.c: Regenerate.
3249 * features/rs6000/powerpc-750.c: Regenerate.
3250 * features/rs6000/powerpc-860.c: Regenerate.
3251 * features/rs6000/powerpc-altivec32.c: Regenerate.
3252 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3253 * features/rs6000/powerpc-altivec64.c: Regenerate.
3254 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3255 * features/rs6000/powerpc-e500.c: Regenerate.
3256 * features/rs6000/powerpc-e500l.c: Regenerate.
3257 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3258 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3259 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3260 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3261 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3262 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3263 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3264 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3265 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3266 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3267 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3268 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3269 * features/rs6000/powerpc-vsx32.c: Regenerate.
3270 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3271 * features/rs6000/powerpc-vsx64.c: Regenerate.
3272 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3273 * features/rs6000/rs6000.c: Regenerate.
3274 * features/rx.c: Regenerate.
3275 * features/s390-gs-linux64.c: Regenerate.
3276 * features/s390-linux32.c: Regenerate.
3277 * features/s390-linux32v1.c: Regenerate.
3278 * features/s390-linux32v2.c: Regenerate.
3279 * features/s390-linux64.c: Regenerate.
3280 * features/s390-linux64v1.c: Regenerate.
3281 * features/s390-linux64v2.c: Regenerate.
3282 * features/s390-te-linux64.c: Regenerate.
3283 * features/s390-tevx-linux64.c: Regenerate.
3284 * features/s390-vx-linux64.c: Regenerate.
3285 * features/s390x-gs-linux64.c: Regenerate.
3286 * features/s390x-linux64.c: Regenerate.
3287 * features/s390x-linux64v1.c: Regenerate.
3288 * features/s390x-linux64v2.c: Regenerate.
3289 * features/s390x-te-linux64.c: Regenerate.
3290 * features/s390x-tevx-linux64.c: Regenerate.
3291 * features/s390x-vx-linux64.c: Regenerate.
3292 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3293 from allocate_target_description.
3294 * target-descriptions.c (allocate_target_description): Update
3296 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3297 allocate_target_description.
3299 2020-10-07 Tom Tromey <tromey@adacore.com>
3301 * unittests/search-memory-selftests.c: New file.
3302 * Makefile.in (SELFTESTS_SRCS): Add
3303 unittests/search-memory-selftests.c.
3305 2020-10-07 Tom Tromey <tromey@adacore.com>
3308 * findcmd.c (_initialize_mem_search): Mention that the range is
3311 2020-10-07 Tom Tromey <tromey@adacore.com>
3313 * target.h (simple_search_memory): Don't declare.
3314 * target.c (simple_search_memory): Move to gdbsupport.
3315 (default_search_memory): Update.
3316 * remote.c (remote_target::search_memory): Update.
3318 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3320 * Makefile.in (COMPILE): Add CXXFLAGS.
3321 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3322 (check-headers): Add CXXFLAGS.
3324 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3326 * arc-linux-tdep.h: New file.
3327 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3328 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3329 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3330 arc_linux_gregset, arc_linux_v2_regset,
3331 arc_linux_iterate_over_regset_sections,
3332 arc_linux_core_read_description): Implement.
3333 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3334 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3335 (arc_gdbarch_features_create): Add.
3336 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3338 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3340 * arch/arc.h: Rename "arc_gdbarch_features" to
3341 "arc_arch_features".
3342 * arc-tdep.h: Likewise.
3343 * arc-tdep.c: Likewise.
3345 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3347 * infcmd.c (attach_command): Remove the redundant call to
3348 `clear_proceed_status`.
3350 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3352 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3354 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3356 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3357 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3358 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3360 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3362 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3363 (_initialize_break_catch_sig): Don't allocate array.
3365 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3367 * symtab.c (find_pc_line): Return unmapped addresses when the
3368 requested address is also unmapped.
3370 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3372 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3375 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3377 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3378 type::is_vector instead of TYPE_VECTOR.
3380 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3382 * auto-load.c (auto_load_objfile_script_1): Don't use
3383 debugfile_holder as temporary variable when stripping drive
3386 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3388 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3389 Add TYPE_CODE_COMPLEX.
3390 (amd64_windows_return_value): Fix types returned via XMM0.
3392 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3394 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3395 AArch64/ARM maintainers.
3397 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3399 * NEWS: Mention set/show debug event-loop.
3401 2020-10-02 Tom Tromey <tromey@adacore.com>
3403 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3406 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3408 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3409 * procfs.c (procfs_inferior_created): Remove.
3410 (_initialize_procfs): Don't register procfs_inferior_created.
3412 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3414 * async-event.c (invoke_async_signal_handlers): Add debug
3416 (check_async_event_handlers): Likewise.
3417 * event-top.c (show_debug_event_loop): New function.
3418 (_initialize_event_top): Register "set debug event-loop"
3421 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3423 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3425 * infrun.c: Include gdbsupport/common-debug.h.
3426 * linux-nat.c: Likewise.
3428 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3430 * async-event.h (create_async_signal_handler): Add name
3432 (create_async_event_handler): Likewise.
3433 * async-event.c (struct async_signal_handler) <name>: New field.
3434 (struct async_event_handler) <name>: New field.
3435 (create_async_signal_handler): Assign name.
3436 (create_async_event_handler): Assign name.
3437 * event-top.c (async_init_signals): Pass name when creating
3439 * infrun.c (_initialize_infrun): Likewise.
3440 * record-btrace.c (record_btrace_push_target): Likewise.
3441 * record-full.c (record_full_open): Likewise.
3442 * remote-notif.c (remote_notif_state_allocate): Likewise.
3443 * remote.c (remote_target::open_1): Likewise.
3444 * tui/tui-win.c (tui_initialize_win): Likewise.
3446 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3448 * async-event.c (initialize_async_signal_handlers): Pass name to
3450 * event-top.c (ui_register_input_event_handler): Likewise.
3451 * linux-nat.c (linux_nat_target::async): Likewise.
3452 * run-on-main-thread.c (_initialize_run_on_main_thread):
3454 * ser-base.c (reschedule): Likewise.
3455 (ser_base_async): Likewise.
3456 * tui/tui-io.c: Likewise.
3457 * top.h (struct ui) <num>: New field.
3458 * top.c (highest_ui_num): New variable.
3459 (ui::ui): Initialize num.
3461 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3463 * observable.h <inferior_created>: Remove parameters. Update all
3465 * inferior.h (post_create_inferior): Remove target parameter.
3468 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3470 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3471 and DW_MACRO_undef_strx.
3472 (dwarf_decode_macros): Likewise
3473 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3474 which is the value of DW_AT_str_offsets_base.
3475 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3478 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3480 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3482 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3484 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3485 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3487 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3489 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3491 2020-09-30 Tom de Vries <tdevries@suse.de>
3494 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3496 2020-09-30 Tom Tromey <tromey@adacore.com>
3498 * dwarf2/read.c (handle_variant): Use constant_value.
3500 2020-09-29 Tom Tromey <tom@tromey.com>
3502 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3503 (read_file_scope, dwarf2_get_pc_bounds)
3504 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3505 (read_structure_type, handle_struct_member_die)
3506 (read_enumeration_type, read_array_type, read_set_type)
3507 (read_tag_pointer_type, read_tag_reference_type)
3508 (read_subroutine_type, read_base_type, read_subrange_type)
3509 (read_full_die_1, partial_die_info::read)
3510 (partial_die_info::read, by, new_symbol)
3511 (dwarf2_const_value_data, dwarf2_const_value_attr)
3512 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3513 (prepare_one_comp_unit): Update.
3514 * dwarf2/attribute.h (DW_UNSND): Remove.
3516 2020-09-29 Tom Tromey <tom@tromey.com>
3518 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3519 (read_subroutine_type, partial_die_info::read)
3520 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3521 (dwarf2_add_member_fn): Update.
3522 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3523 * dwarf2/attribute.c (attribute::as_boolean): New method.
3525 2020-09-29 Tom Tromey <tom@tromey.com>
3527 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3528 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3530 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3532 2020-09-29 Tom Tromey <tom@tromey.com>
3534 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3535 the attribute's form.
3537 2020-09-29 Tom Tromey <tom@tromey.com>
3539 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3540 (dwarf2_add_member_fn): Update.
3541 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3542 * dwarf2/attribute.c (attribute::defaulted): New method, from
3543 is_valid_DW_AT_defaulted.
3545 2020-09-29 Tom Tromey <tom@tromey.com>
3547 * dwarf2/read.c (dw2_get_file_names_reader)
3548 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3549 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3550 (dwarf2_symbol_mark_computed): Use as_unsigned.
3551 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3553 <form_is_section_offset>: Update comment.
3555 2020-09-29 Tom Tromey <tom@tromey.com>
3557 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3558 dwarf2_default_access_attribute. Look up attribute.
3559 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3562 2020-09-29 Tom Tromey <tom@tromey.com>
3564 * dwarf2/read.c (skip_one_die): Update.
3565 (read_full_die_1): Change how reprocessing is done.
3566 (partial_die_info::read): Update.
3567 (read_attribute_value): Remove need_reprocess parameter.
3568 (read_attribute): Likewise.
3569 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3572 2020-09-29 Tom Tromey <tom@tromey.com>
3574 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3575 (dwarf2_const_value_attr, dump_die_shallow)
3576 (dwarf2_fetch_constant_bytes): Update.
3577 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3579 <set_address>: New method.
3581 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3582 (attribute::as_string, attribute::as_address): Add assert.
3584 2020-09-29 Tom Tromey <tom@tromey.com>
3586 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3587 (read_attribute_reprocess, read_attribute_value): Update.
3588 (read_attribute): Clear requires_reprocessing.
3589 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3590 form_requires_reprocessing>: New methods.
3591 <string_init>: Clear requires_reprocessing.
3592 <set_unsigned_reprocess>: New method.
3593 <name>: Shrink by one bit.
3594 <requires_reprocessing>: New member.
3595 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3598 2020-09-29 Tom Tromey <tom@tromey.com>
3600 * dwarf2/read.c (read_attribute_value): Update.
3601 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3602 set_unsigned>: New methods.
3603 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3605 2020-09-29 Tom Tromey <tom@tromey.com>
3607 * dwarf2/read.c (get_alignment, read_array_order)
3608 (read_attribute_value, dwarf2_const_value_attr)
3609 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3610 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3614 2020-09-29 Tom Tromey <tom@tromey.com>
3616 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3617 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3619 * dwarf2/attribute.h (struct attribute) <as_signature,
3620 set_signature>: New methods.
3621 (DW_SIGNATURE): Remove.
3623 2020-09-29 Tom Tromey <tom@tromey.com>
3625 * dwarf2/read.c (read_call_site_scope)
3626 (handle_data_member_location, dwarf2_add_member_fn)
3627 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3628 (partial_die_info::read, read_attribute_value)
3629 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3630 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3631 (dwarf2_symbol_mark_computed): Update.
3632 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3635 * dwarf2/attribute.c (attribute::form_is_block): Add
3638 2020-09-29 Tom Tromey <tom@tromey.com>
3640 * dwarf2/read.c (read_cutu_die_from_dwo)
3641 (read_attribute_reprocess, read_attribute_value, read_attribute)
3642 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3643 (dwarf2_fetch_constant_bytes): Update.
3644 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3645 <set_string_noncanonical, set_string_canonical>: New methods.
3646 <string_is_canonical>: Update comment.
3647 <canonical_string_p>: Add assert.
3648 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3649 * dwarf2/attribute.c (attribute::form_is_string): New method.
3650 (attribute::string): Use it.
3652 2020-09-29 Tom Tromey <tom@tromey.com>
3654 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3655 (dump_die_shallow): Use canonical_string_p.
3656 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3659 2020-09-29 Tom Tromey <tom@tromey.com>
3661 * dwarf2/read.c (partial_die_info::read)
3662 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3663 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3664 attribute::as_string.
3666 2020-09-29 Tom Tromey <tom@tromey.com>
3668 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3670 (attribute::string): Don't use DW_STRING.
3671 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3672 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3674 2020-09-29 Tom Tromey <tom@tromey.com>
3676 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3677 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3678 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3679 * dwarf2/attribute.h (struct attribute): Rename methods.
3680 * dwarf2/attribute.c (attribute::as_address): Rename from
3682 (attribute::as_string): Rename from value_as_string.
3684 2020-09-29 Tom Tromey <tom@tromey.com>
3686 * dwarf2/read.c (partial_die_info::read) <case
3687 DW_AT_linkage_name>: Use value_as_string.
3688 (dwarf2_string_attr): Use value_as_string.
3689 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3691 * dwarf2/attribute.c (attribute::value_as_string): New method.
3693 2020-09-29 Pedro Alves <pedro@palves.net>
3695 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3696 defined before using '#pragma GCC diagnostic' instead of checking
3699 2020-09-28 Tom Tromey <tom@tromey.com>
3701 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3702 (handle_signal_stop): Update.
3703 * procfs.c (procfs_target::insert_watchpoint): Update.
3704 * target.h (target_have_steppable_watchpoint): Now a function.
3706 2020-09-28 Tom Tromey <tom@tromey.com>
3708 * infrun.c (set_schedlock_func): Update.
3709 * target.h (target_can_lock_scheduler): Now a function.
3711 2020-09-28 Tom Tromey <tom@tromey.com>
3713 * inferior.h (class inferior) <has_execution>: Update.
3714 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3715 * valops.c (find_function_in_inferior)
3716 (value_allocate_space_in_inferior): Update.
3717 * top.c (kill_or_detach): Update.
3718 * target.c (target_preopen, set_target_permissions): Update.
3719 (target_has_execution_current): Remove.
3720 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3722 * solib.c (update_solib_list, reload_shared_libraries): Update.
3723 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3724 * solib-dsbt.c (enable_break): Update.
3725 * score-tdep.c (score7_fetch_inst): Update.
3726 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3728 * remote.c (remote_target::start_remote)
3729 (remote_target::remote_check_symbols, remote_target::open_1)
3730 (remote_target::remote_detach_1, remote_target::verify_memory)
3731 (remote_target::xfer_partial, remote_target::read_description)
3732 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3733 * record-full.c (record_full_open_1): Update.
3734 * record-btrace.c (record_btrace_target_open): Update.
3735 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3736 (value_nsstring): Update.
3737 * linux-thread-db.c (add_thread_db_info)
3738 (thread_db_find_new_threads_silently, check_thread_db_callback)
3739 (try_thread_db_load_1, record_thread): Update.
3740 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3742 * linux-fork.c (checkpoint_command): Update.
3743 * infrun.c (set_non_stop, set_observer_mode)
3744 (check_multi_target_resumption, for_each_just_stopped_thread)
3745 (maybe_remove_breakpoints, normal_stop)
3746 (class infcall_suspend_state): Update.
3747 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3748 (info_program_command, attach_command): Update.
3749 * infcall.c (call_function_by_hand_dummy): Update.
3750 * inf-loop.c (inferior_event_handler): Update.
3751 * gcore.c (gcore_command, derive_heap_segment): Update.
3752 * exec.c (exec_file_command): Update.
3753 * eval.c (evaluate_subexp): Update.
3754 * compile/compile.c (compile_to_object): Update.
3755 * cli/cli-dump.c (restore_command): Update.
3756 * breakpoint.c (update_watchpoint)
3757 (update_inserted_breakpoint_locations)
3758 (insert_breakpoint_locations, get_bpstat_thread): Update.
3759 * target.h (target_has_execution): Remove macro.
3760 (target_has_execution_current): Don't declare.
3761 (target_has_execution): Rename from target_has_execution_1. Add
3764 2020-09-28 Tom Tromey <tom@tromey.com>
3766 * mi/mi-main.c (exec_reverse_continue)
3767 (mi_cmd_list_target_features): Update.
3768 * infrun.c (set_exec_direction_func): Update.
3769 * target.c (default_execution_direction): Update.
3770 * reverse.c (exec_reverse_once): Update.
3771 * target.h (target_can_execute_reverse): Now a function.
3773 2020-09-28 Tom Tromey <tom@tromey.com>
3775 * tui/tui-regs.c (tui_get_register)
3776 (tui_data_window::show_registers): Update.
3777 * thread.c (scoped_restore_current_thread::restore)
3778 (scoped_restore_current_thread::scoped_restore_current_thread):
3780 * regcache-dump.c (regcache_print): Update.
3781 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3783 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3784 * mep-tdep.c (current_me_module, current_options): Update.
3785 * linux-thread-db.c (thread_db_load): Update.
3786 * infcmd.c (registers_info, info_vector_command)
3787 (info_float_command): Update.
3788 * ia64-tdep.c (ia64_frame_prev_register)
3789 (ia64_sigtramp_frame_prev_register): Update.
3790 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3791 * gcore.c (derive_stack_segment): Update.
3792 * frame.c (get_current_frame, has_stack_frames): Update.
3793 * findvar.c (language_defn::read_var_value): Update.
3794 * arm-tdep.c (arm_pc_is_thumb): Update.
3795 * target.c (target_has_registers): Rename from
3796 target_has_registers_1.
3797 * target.h (target_has_registers): Remove macro.
3798 (target_has_registers): Rename from target_has_registers_1.
3800 2020-09-28 Tom Tromey <tom@tromey.com>
3802 * windows-tdep.c (tlb_make_value): Update.
3803 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3804 * thread.c (scoped_restore_current_thread::restore)
3805 (scoped_restore_current_thread::scoped_restore_current_thread)
3806 (thread_command): Update.
3807 * stack.c (backtrace_command_1, frame_apply_level_command)
3808 (frame_apply_all_command, frame_apply_command): Update.
3809 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3811 * gcore.c (derive_stack_segment): Update.
3812 * frame.c (get_current_frame, has_stack_frames): Update.
3813 * auxv.c (info_auxv_command): Update.
3814 * ada-tasks.c (ada_build_task_list): Update.
3815 * target.c (target_has_stack): Rename from target_has_stack_1.
3816 * target.h (target_has_stack): Remove macro.
3817 (target_has_stack): Rename from target_has_stack_1.
3819 2020-09-28 Tom Tromey <tom@tromey.com>
3821 * target.c (target_has_memory): Rename from target_has_memory_1.
3822 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3823 * thread.c (scoped_restore_current_thread::restore)
3824 (scoped_restore_current_thread::scoped_restore_current_thread):
3826 * frame.c (get_current_frame, has_stack_frames): Update.
3827 * target.h (target_has_memory): Remove macro.
3828 (target_has_memory): Rename from target_has_memory_1.
3830 2020-09-28 Tom Tromey <tom@tromey.com>
3832 * target.c (target_has_all_memory_1): Remove.
3833 * target.h (target_has_all_memory): Remove define.
3834 (target_has_all_memory_1): Don't declare.
3836 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3838 * ser-base.c: Adjust comments formatting.
3840 2020-09-27 Tom Tromey <tom@tromey.com>
3843 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3845 2020-09-27 Tom Tromey <tom@tromey.com>
3848 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3850 2020-09-27 Tom Tromey <tom@tromey.com>
3852 * unittests/tui-selftests.c: Update.
3853 * tui/tui-winsource.h (struct tui_source_window_base)
3854 <extra_margin, show_line_number, refresh_pad>: New methods.
3855 <m_max_length, m_pad>: New members.
3856 (tui_copy_source_line): Update.
3857 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3858 first_col, line_width, ndigits parameters. Add length.
3859 (tui_source_window_base::show_source_line): Write to pad. Line
3861 (tui_source_window_base::refresh_pad): New method.
3862 (tui_source_window_base::show_source_content): Write to pad. Call
3864 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3866 (tui_source_window_base::update_exec_info): Call
3868 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3870 <m_digits>: New member.
3871 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3873 (tui_source_window::show_line_number): New method.
3874 * tui/tui-io.h (tui_puts): Fix comment.
3875 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3878 2020-09-27 Tom Tromey <tom@tromey.com>
3880 * tui/tui-winsource.c
3881 (tui_source_window_base::set_is_exec_point_at): Don't call
3884 2020-09-27 Tom Tromey <tom@tromey.com>
3886 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3889 <cursor_x, cursor_y>: Remove.
3890 <m_inner_window>: New member.
3891 (tui_py_window::rerender): Create inner window.
3892 (tui_py_window::output): Write to inner window.
3894 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3897 * cli/cli-script.c (execute_control_commands): don't set
3898 instream to nullptr here as this breaks the from_tty argument
3899 to gdb.execute in Python.
3900 (execute_user_command): set instream to nullptr here instead.
3902 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3904 * infrun.h (infrun_debug_printf): Fix formatting.
3905 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3907 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3909 * compile/compile-object-load.h (struct munmap_list): Add
3910 explicitly-defined move constructor.
3912 2020-09-24 Tom Tromey <tromey@adacore.com>
3915 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3917 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3918 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3919 (tui_prev_win): Rewrite.
3921 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3923 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3924 in WOW64 processes as SIGINT.
3925 * nat/windows-nat.h: Make wow64_process a shared variable.
3926 * windows-nat.c: Remove static wow64_process variable.
3928 2020-09-23 Tom Tromey <tom@tromey.com>
3931 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3932 offset and bit size.
3933 * printcmd.c (print_scalar_formatted): Handle zero-length
3935 (print_scalar_formatted): Use bit_size_differs_p.
3936 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3938 (union type_specific): <int_stuff>: New member.
3939 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3941 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3942 TYPE_SPECIFIC_FIELD.
3943 (recursive_dump_type, copy_type_recursive): Update.
3944 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3945 DW_AT_data_bit_offset.
3947 2020-09-23 Tom Tromey <tom@tromey.com>
3949 * utils.h (class gdb_argv): Add move operators.
3950 <append>: New methods.
3951 * compile/compile.c (build_argc_argv): Remove.
3952 (compile_args_argc): Remove.
3953 (compile_args_argv): Change type.
3954 (set_compile_args): Simplify.
3955 (append_args): Remove.
3956 (filter_args): Remove argcp parameter.
3957 (get_args): Return gdb_argv. Simplify.
3958 (compile_to_object): Update.
3960 2020-09-23 Tom Tromey <tom@tromey.com>
3962 * compile/compile-object-run.c (do_module_cleanup)
3963 <~do_module_cleanup> :Remove.
3964 (do_module_cleanup): Update.
3965 * compile/compile-object-load.h (struct munmap_list): Add move
3966 assignment operator.
3967 <source_file>: Now a std::string.
3968 <munmap_list>: Rename. No longer a pointer.
3969 * compile/compile-object-load.c (struct setup_sections_data): Add
3971 <setup_one_section>: Declare.
3972 <munmap_list>: Move earlier.
3973 <m_bfd>: New member.
3974 <m_last_size, m_last_section_first, m_last_prot,
3975 m_last_max_alignment>: Rename, add initializers where needed.
3976 (setup_sections_data::setup_one_section): Rename from
3977 setup_sections. Update.
3978 (compile_object_load): Update. Don't use bfd_map_over_sections.
3980 2020-09-23 Tom Tromey <tom@tromey.com>
3982 * compile/compile-object-run.c (struct do_module_cleanup): Add
3983 parameters to constructor. Update destructor.
3984 <source_file, scope, scope_data, out_value_type, out_value_addr,
3985 munmap_list_head, objfile_name_string>: Remove.
3986 <module>: New member.
3987 (do_module_cleanup): Update.
3988 (compile_object_run): Update.
3990 2020-09-23 Tom Tromey <tom@tromey.com>
3992 * compile/compile.c (eval_compile_command): Update.
3993 * compile/compile-object-run.h (compile_object_run): Take a
3995 * compile/compile-object-run.c (compile_object_run): Take a
3997 * compile/compile-object-load.h (struct compile_module): Add
3998 constructor, destructor.
3999 (compile_module_up): New typedef.
4000 (compile_object_load): Return compile_object_up.
4001 * compile/compile-object-load.c (compile_object_load): Return
4004 2020-09-23 Tom Tromey <tom@tromey.com>
4006 * compile/compile-object-run.c (struct do_module_cleanup): Add
4007 constructor, destructor.
4008 <objfile_name_string>: Don't use struct hack.
4009 (do_module_cleanup): Use delete.
4010 (compile_object_run): Use new.
4012 2020-09-23 Tom Tromey <tom@tromey.com>
4014 * compile/compile-cplus-types.c
4015 (compile_cplus_convert_struct_or_union): Use std::vector.
4016 (compile_cplus_convert_func): Likewise.
4017 * compile/compile-c-types.c (convert_func): Use std::vector.
4019 2020-09-21 Tom Tromey <tromey@adacore.com>
4021 * sparc-tdep.c (sparc32_skip_prologue): Use
4022 skip_prologue_using_sal.
4024 2020-09-19 Tom Tromey <tom@tromey.com>
4026 * symfile.c (add_section_size_callback): Remove.
4027 (load_one_section): Rename from load_section_callback. Change
4029 (generic_load): Use foreach.
4031 2020-09-19 Tom Tromey <tom@tromey.com>
4033 * exec.c (add_to_section_table): Remove.
4034 (build_section_table): Use foreach.
4036 2020-09-19 Tom Tromey <tom@tromey.com>
4038 * elfread.c (elf_locate_sections): Change parameters.
4039 (elf_symfile_read): Use foreach.
4041 2020-09-19 Tom Tromey <tom@tromey.com>
4043 * cli/cli-dump.c (struct callback_data): Remove.
4044 (restore_one_section): Rename from restore_section_callback.
4046 (restore_binary_file): Change parameters.
4047 (restore_command): Use foreach.
4049 2020-09-19 Tom Tromey <tom@tromey.com>
4051 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4052 (gcore_copy_callback): Likewise.
4053 (gcore_memory_sections): Use foreach.
4055 2020-09-19 Tom Tromey <tom@tromey.com>
4057 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4058 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4060 (generic_elf_osabi_sniffer): Use foreach.
4061 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4062 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4064 2020-09-19 Tom Tromey <tom@tromey.com>
4066 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4067 (dwarf2_get_dwz_file): Use foreach.
4068 (dwarf2_locate_dwo_sections): Change parameters.
4069 (open_and_init_dwo_file): Use foreach.
4070 (dwarf2_locate_common_dwp_sections): Change parameters.
4071 (open_and_init_dwp_file): Use foreach.
4073 2020-09-19 Tom Tromey <tom@tromey.com>
4075 * symfile.h: (find_lowest_section): Don't declare.
4076 * symfile.c (find_lowest_section): Now static. Change
4078 (struct place_section_arg): Remove.
4079 (place_section): Change parameters.
4080 (addr_info_make_relative): Use foreach.
4081 (symfile_dummy_outputs): Remove.
4082 (default_symfile_relocate): Use foreach.
4084 2020-09-19 Tom Tromey <tom@tromey.com>
4086 * objfiles.c (add_to_objfile_sections): Rename from
4087 add_to_objfile_sections_full.
4088 (add_to_objfile_sections): Remove.
4089 (build_objfile_section_table): Use foreach.
4091 2020-09-19 Tom Tromey <tom@tromey.com>
4093 * stap-probe.c (get_stap_base_address_1): Remove.
4094 (get_stap_base_address): Use foreach.
4096 2020-09-19 Tom Tromey <tom@tromey.com>
4098 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4100 (gdb_bfd_close_or_warn): Use foreach.
4102 2020-09-19 Tom Tromey <tom@tromey.com>
4104 * corelow.c (add_to_thread_list): Change parameters.
4105 (core_target_open): Use foreach.
4107 2020-09-19 Tom Tromey <tom@tromey.com>
4109 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4112 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4114 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4117 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4119 * eval.c: Remove 'f-lang.h' include.
4120 (value_f90_subarray): Moved to f-lang.c.
4121 (eval_call): Renamed to...
4122 (evaluate_subexp_do_call): ...this, is no longer static, header
4123 comment moved into header file.
4124 (evaluate_funcall): Update call to eval_call.
4125 (skip_undetermined_arglist): Moved to f-lang.c.
4126 (fortran_value_subarray): Likewise.
4127 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4128 moved to evaluate_subexp_f.
4129 (calc_f77_array_dims): Moved to f-lang.c
4130 * expprint.c (print_subexp_funcall): New function.
4131 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4132 moved to print_subexp_f, OP_FUNCALL uses new function.
4133 (dump_subexp_body_funcall): New function.
4134 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4135 moved to dump_subexp_f, OP_FUNCALL uses new function.
4136 * expression.h (evaluate_subexp_do_call): Declare.
4137 * f-lang.c (value_f90_subarray): Moved from eval.c.
4138 (skip_undetermined_arglist): Likewise.
4139 (calc_f77_array_dims): Likewise.
4140 (fortran_value_subarray): Likewise.
4141 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4142 (operator_length_f): Likewise.
4143 (print_subexp_f): Likewise.
4144 (dump_subexp_body_f): Likewise.
4145 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4146 declaration of this operation to here.
4147 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4148 support moved to operator_length_f.
4149 * parser-defs.h (dump_subexp_body_funcall): Declare.
4150 (print_subexp_funcall): Declare.
4151 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4152 fortran-operator.def.
4154 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4156 * eval.c (fortran_value_subarray): New function, content is taken
4158 (evaluate_subexp_standard): ...here, in two places. Now arrays
4159 and strings both call the new function.
4160 (calc_f77_array_dims): Add header comment, handle strings.
4162 2020-09-18 Victor Collod <vcollod@nvidia.com>
4165 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4166 (i386_analyze_prologue): Call i386_skip_endbr.
4168 2020-09-18 Tom Tromey <tromey@adacore.com>
4170 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4171 (windows_nat_target::wait): Update.
4172 * target/wait.h (enum target_wait_flag): New. Use
4173 DEF_ENUM_FLAGS_TYPE.
4174 * target/target.h (target_wait): Change type of options.
4175 * target.h (target_options_to_string, default_target_wait):
4177 (struct target_ops) <wait>: Change type of options.
4178 * target.c (target_wait, default_target_wait, do_option): Change
4180 (target_options_to_string): Likewise.
4181 * target-delegates.c: Rebuild.
4182 * target-debug.h (target_debug_print_target_wait_flags): Rename
4183 from target_debug_print_options.
4184 * sol-thread.c (class sol_thread_target) <wait>: Update.
4185 (sol_thread_target::wait): Update.
4186 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4187 (rs6000_nat_target::wait): Update.
4188 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4190 (remote_target::wait_ns, remote_target::wait_as): Change type of
4192 (remote_target::wait): Update.
4193 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4194 (gdbsim_target::wait): Update.
4195 * record-full.c (class record_full_base_target) <wait>: Update.
4196 (record_full_wait_1): Change type of "options".
4197 (record_full_base_target::wait): Update.
4198 * record-btrace.c (class record_btrace_target) <wait>: Update.
4199 (record_btrace_target::wait): Update.
4200 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4202 (ravenscar_thread_target::wait): Update.
4203 * procfs.c (class procfs_target) <wait>: Update.
4204 (procfs_target::wait): Update.
4205 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4206 * obsd-nat.c (obsd_nat_target::wait): Update.
4207 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4208 (nto_procfs_target::wait): Update.
4209 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4210 * nbsd-nat.c (nbsd_wait): Change type of "options".
4211 (nbsd_nat_target::wait): Update.
4212 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4213 (thread_db_target::wait): Update.
4214 * linux-nat.h (class linux_nat_target) <wait>: Update.
4215 * linux-nat.c (linux_nat_target::wait): Update.
4216 (linux_nat_wait_1): Update.
4217 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4219 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4220 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4221 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4222 (go32_nat_target::wait): Update.
4223 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4224 * gnu-nat.c (gnu_nat_target::wait): Update.
4225 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4226 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4227 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4228 * darwin-nat.c (darwin_nat_target::wait): Update.
4229 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4230 (bsd_uthread_target::wait): Update.
4231 * aix-thread.c (class aix_thread_target) <wait>: Update.
4232 (aix_thread_target::wait): Update.
4234 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4236 * compile/compile-object-run.c (create_copied_type_recursive): New
4238 (compile_object_run): Use new function.
4240 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4242 * NEWS: Mention x86_64 Cygwin core file support.
4244 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4246 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4247 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4249 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4251 * windows-tdep.h: Add prototypes.
4252 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4253 (i386_windows_core_pid_to_str): Move and rename ...
4254 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4255 (windows_core_pid_to_str): ... and here.
4256 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4258 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4259 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4260 (amd64_windows_init_abi_common): ... and register.
4262 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4264 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4265 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4267 2020-09-18 Pedro Alves <pedro@palves.net>
4270 * thread.c (thread_find_command): Switch inferior before calling
4273 2020-09-17 Tom Tromey <tromey@adacore.com>
4275 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4276 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4277 (tdesc_arch_data_up): New typedef.
4278 (tdesc_use_registers, tdesc_data_alloc): Update.
4279 (tdesc_data_cleanup): Don't declare.
4280 * target-descriptions.c (tdesc_data_alloc): Return a
4282 (tdesc_arch_data_deleter::operator()): Rename from
4283 tdesc_data_cleanup. Change argument type.
4284 (tdesc_use_registers): Change early_data to an rvalue reference.
4285 (tdesc_use_registers): Don't use delete.
4286 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4287 * s390-tdep.c (s390_gdbarch_init): Update.
4288 * rx-tdep.c (rx_gdbarch_init): Update.
4289 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4290 * riscv-tdep.c (riscv_gdbarch_init): Update.
4291 * or1k-tdep.c (or1k_gdbarch_init): Update.
4292 * nios2-tdep.c (nios2_gdbarch_init): Update.
4293 * nds32-tdep.c (nds32_gdbarch_init): Update.
4294 * mips-tdep.c (mips_gdbarch_init): Update.
4295 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4296 * m68k-tdep.c (m68k_gdbarch_init): Update.
4297 * i386-tdep.c (i386_gdbarch_init): Update.
4298 * arm-tdep.c (arm_gdbarch_init): Update.
4299 * arc-tdep.c (arc_tdesc_init): Update.
4300 (arc_gdbarch_init): Update.
4301 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4303 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4305 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4306 for WOW64 processes.
4308 2020-09-17 Tom Tromey <tom@tromey.com>
4310 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4312 2020-09-17 Tom Tromey <tom@tromey.com>
4314 * value.c (preserve_values): Update.
4315 * python/py-type.c (save_objfile_types): Update.
4316 * guile/scm-type.c (save_objfile_types): Update.
4317 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4318 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4319 * compile/compile-object-run.c (compile_object_run): Update.
4321 2020-09-17 Tom Tromey <tom@tromey.com>
4323 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4325 <m_table>: Now htab_up.
4326 * typeprint.c (typedef_hash_table::recursively_update)
4327 (typedef_hash_table::add_template_parameters)
4328 (typedef_hash_table::typedef_hash_table): Update.
4329 (typedef_hash_table::~typedef_hash_table): Remove.
4330 (typedef_hash_table::typedef_hash_table)
4331 (typedef_hash_table::find_global_typedef)
4332 (typedef_hash_table::find_typedef): Update.
4334 2020-09-17 Tom Tromey <tom@tromey.com>
4336 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4338 2020-09-17 Tom Tromey <tom@tromey.com>
4340 * linespec.c (class decode_compound_collector)
4341 <~decode_compound_collector>: Remove.
4342 <m_unique_syms>: Now htab_up.
4343 (decode_compound_collector::operator ()): Update.
4344 (class symtab_collector) <~symtab_collector>: Remove.
4345 <m_symtab_table>: Now htab_up.
4346 (symtab_collector::operator ()): Update.
4348 2020-09-17 Tom Tromey <tom@tromey.com>
4350 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4351 (filename_seen_cache::clear): Update.
4352 (~filename_seen_cache): Remove.
4353 (filename_seen_cache::seen): Update.
4354 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4356 <~filename_seen_cache>: Remove.
4359 2020-09-17 Tom Tromey <tom@tromey.com>
4361 * completer.c (completion_tracker::discard_completions)
4362 (completion_tracker::~completion_tracker)
4363 (completion_tracker::maybe_add_completion)
4364 (completion_tracker::remove_completion)
4365 (completion_tracker::recompute_lowest_common_denominator)
4366 (completion_tracker::build_completion_result): Update.
4367 * completer.h (class completion_tracker) <have_completions>:
4369 <m_entries_hash>: Now htab_up.
4371 2020-09-17 Tom Tromey <tom@tromey.com>
4373 * breakpoint.c (ambiguous_names_p): Use htab_up.
4375 2020-09-17 Tom Tromey <tom@tromey.com>
4377 * auto-load.c (struct auto_load_pspace_info)
4378 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4379 <loaded_script_files, loaded_script_texts>: Change type to
4381 (~auto_load_pspace_info) Remove.
4382 (init_loaded_scripts_info, maybe_add_script_file)
4383 (maybe_add_script_text, auto_load_info_scripts): Update.
4385 2020-09-17 Tom Tromey <tromey@adacore.com>
4387 * c-exp.y (name_obstack): Now static.
4389 2020-09-17 Chungyi Chi <demonic@csie.io>
4391 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4393 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4395 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4396 (add_solib_catchpoint): Likewise.
4397 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4399 (add_solib_catchpoint): Change int parameter/variable to bool.
4400 (catch_load_or_unload): Likewise.
4401 (init_catchpoint): Likewise.
4402 (create_fork_vfork_event_catchpoint): Likewise.
4403 (catch_fork_command_1): Likewise.
4404 (catch_exec_command_1): Likewise.
4406 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4408 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4409 Change instance_flags to m_instance_flags.
4411 2020-09-16 Tom Tromey <tromey@adacore.com>
4414 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4416 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4418 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4420 (fbsd_nat_target::insert_exec_catchpoint)
4421 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4422 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4423 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4425 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4427 * configure.ac: Remove check for kinfo_getvmmap().
4428 * configure, config.in: Regenerate.
4429 * fbsd-nat.c (fbsd_read_mapping): Remove
4430 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4431 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4432 kinfo_get_vmmap() are always present.
4434 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4436 * fbsd-nat.c: Always include support for
4437 TARGET_OBJECT_SIGNAL_INFO.
4439 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4441 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4442 sysctl and remove procfs fallback.
4444 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4446 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4447 * fbsd-nat.h: Likewise.
4449 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4451 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4454 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4456 * ada-lang.c (ada_language_data): Delete.
4457 (ada_language): Remove references to ada_language_data.
4458 * c-lang.c (c_language_data): Delete.
4459 (c_language): Remove references to c_language_data.
4460 (cplus_language_data): Delete.
4461 (cplus_language): Remove references to cplus_language_data.
4462 (asm_language_data): Delete.
4463 (asm_language): Remove references to asm_language_data.
4464 (minimal_language_data): Delete.
4465 (minimal_language): Remove references to minimal_language_data.
4466 * d-lang.c (d_language_data): Delete.
4467 (d_language): Remove references to d_language_data.
4468 * f-lang.c (f_language_data): Delete.
4469 (f_language): Remove references to f_language_data.
4470 * go-lang.c (go_language_data): Delete.
4471 (go_language): Remove references to go_language_data.
4472 * language.c (unknown_language_data): Delete.
4473 (unknown_language): Remove references to unknown_language_data.
4474 (auto_language_data): Delete.
4475 (auto_language): Remove references to auto_language_data.
4476 * language.h (language_data): Delete struct.
4477 (language_defn): No longer inherit from language_data.
4478 * m2-lang.c (m2_language_data): Delete.
4479 (m2_language): Remove references to m2_language_data.
4480 * objc-lang.c (objc_language_data): Delete.
4481 (objc_language): Remove references to objc_language_data.
4482 * opencl-lang.c (opencl_language_data): Delete.
4483 (opencl_language): Remove references to opencl_language_data.
4484 * p-lang.c (pascal_language_data): Delete.
4485 (pascal_language): Remove references to pascal_language_data.
4486 * rust-lang.c (rust_language_data): Delete.
4487 (rust_language): Remove references to rust_language_data.
4489 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4491 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4493 (ada_language::opcode_print_table): New member function.
4494 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4495 (c_language::opcode_print_table): New member function.
4496 (cplus_language_data): Remove la_op_print_tab initializer.
4497 (cplus_language::opcode_print_table): New member function.
4498 (asm_language_data): Remove la_op_print_tab initializer.
4499 (asm_language::opcode_print_table): New member function.
4500 (minimal_language_data): Remove la_op_print_tab initializer.
4501 (minimal_language::opcode_print_table): New member function.
4502 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4503 (d_language::opcode_print_table): New member function.
4504 * expprint.c (print_subexp_standard): Update call to
4506 (op_string): Likewise.
4507 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4508 (f_language::opcode_print_table): New member function.
4509 * go-lang.c (go_language_data): Remove la_op_print_tab
4511 (go_language::opcode_print_table): New member function.
4512 * language.c (unknown_language_data): Remove la_op_print_tab
4514 (unknown_language::opcode_print_table): New member function.
4515 (auto_language_data): Remove la_op_print_tab initializer.
4516 (auto_language::opcode_print_table): New member function.
4517 * language.h (language_data): Remove la_op_print_tab field.
4518 (language_defn::opcode_print_table): Declare new member function.
4519 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4521 (m2_language::opcode_print_table): New member function.
4522 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4524 (objc_language::opcode_print_table): New member function.
4525 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4527 (opencl_language::opcode_print_table): New member function.
4528 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4530 (pascal_language::opcode_print_table): New member function.
4531 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4533 (rust_language::opcode_print_table): New member function.
4535 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4537 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4538 (ada_language::expression_ops): New member function.
4539 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4540 (c_language::expression_ops): New member function.
4541 (cplus_language_data): Remove la_exp_desc initializer.
4542 (cplus_language::expression_ops): New member function.
4543 (asm_language_data): Remove la_exp_desc initializer.
4544 (asm_language::expression_ops): New member function.
4545 (minimal_language_data): Remove la_exp_desc initializer.
4546 (minimal_language::expression_ops): New member function.
4547 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4548 (d_language::expression_ops): New member function.
4549 * eval.c (evaluate_subexp): Update call to expression_ops.
4550 * expprint.c (print_subexp): Likewise.
4551 (op_name): Likewise.
4552 (dump_subexp_body): Likewise.
4553 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4554 (f_language::expression_ops): New member function.
4555 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4556 (go_language::expression_ops): New member function.
4557 * language.c (language_defn::expression_ops): New function.
4558 (unknown_language_data): Remove la_exp_desc initializer.
4559 (auto_language_data): Likewise.
4560 * language.h (language_data): Remove la_exp_desc field.
4561 (language_defn::expression_ops): Declare new member function.
4562 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4563 (m2_language::expression_ops): New member function.
4564 * objc-lang.c (objc_language_data): Remove la_exp_desc
4566 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4568 (opencl_language::expression_ops): New member function.
4569 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4570 * parse.c (operator_length): Update call to expression_ops.
4571 (exp_iterate): Likewise.
4572 * rust-lang.c (rust_language_data): Remove la_exp_desc
4574 (ruse_language::expression_ops): New member function.
4576 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4578 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4580 (ada_language::varobj_ops): New member function.
4581 * c-lang.c (c_language_data): Remove la_varobj_ops
4583 (cplus_language_data): Likewise.
4584 (cplus_language::varobj_ops): New member function.
4585 (asm_language_data): Remove la_varobj_ops initializer.
4586 (minimal_language_data): Likewise.
4587 * d-lang.c (d_language_data): Likewise.
4588 * f-lang.c (f_language_data): Likewise.
4589 * go-lang.c (go_language_data): Likewise.
4590 * language.c (language_defn::varobj_ops): New function.
4591 (unknown_language_data): Remove la_varobj_ops
4593 (auto_language_data): Likewise.
4594 * language.h (language_data): Remove la_varobj_ops field.
4595 (language_defn::varobj_ops): Declare new member function.
4596 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4597 * objc-lang.c (objc_language_data): Likewise.
4598 * opencl-lang.c (opencl_language_data): Likewise.
4599 * p-lang.c (pascal_language_data): Likewise.
4600 * rust-lang.c (rust_language_data): Likewise.
4601 * varobj.c (varobj_create): Update call to varobj_ops.
4602 * varobj.h (default_varobj_ops): Delete define.
4604 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4606 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4608 * c-lang.c (c_language_data): Likewise.
4609 (c_language::macro_expansion): New member function.
4610 (cplus_language_data): Likewise.
4611 (cplus_language::macro_expansion): New member function.
4612 (asm_language_data): Likewise.
4613 (asm_language::macro_expansion): New member function.
4614 (minimal_language_data): Likewise.
4615 (minimal_language::macro_expansion): New member function.
4616 * d-lang.c (d_language_data): Remove la_macro_expansion
4618 * f-lang.c (f_language_data): Likewise.
4619 * go-lang.c (go_language_data): Likewise.
4620 * language.c (unknown_language_data): Likewise.
4621 (auto_language_data): Likewise.
4622 * language.h (language_data): Remove la_macro_expansion field.
4623 (language_defn::macro_expansion): New member function.
4624 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4626 * objc-lang.c (objc_language_data): Likewise.
4627 (objc_language::macro_expansion): New member function.
4628 * opencl-lang.c (opencl_language_data): Likewise.
4629 (opencl_language::macro_expansion): New member function.
4630 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4632 * rust-lang.c (rust_language_data): Likewise.
4633 * symtab.c (default_collect_symbol_completion_matches_break_on):
4634 Update call to macro_expansion.
4636 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4638 * ada-lang.c (ada_language_data): Remove la_array_ordering
4640 * c-lang.c (c_language_data): Likewise.
4641 (cplus_language_data): Likewise.
4642 (asm_language_data): Likewise.
4643 (minimal_language_data): Likewise.
4644 * d-lang.c (d_language_data): Likewise.
4645 * dwarf2/read.c (read_array_order): Update for call to
4647 * f-lang.c (f_language_data): Remove la_array_ordering
4649 (f_language::array_ordering): New member function.
4650 * go-lang.c (go_language_data): Remove la_array_ordering
4652 * language.c (unknown_language_data): Likewise.
4653 (auto_language_data): Likewise.
4654 * language.h (language_data): Delete la_array_ordering field.
4655 (language_defn::array_ordering): New member function.
4656 * m2-lang.c (m2_language_data): Remove la_array_ordering
4658 * objc-lang.c (objc_language_data): Likewise.
4659 * opencl-lang.c (opencl_language_data): Likewise.
4660 * p-lang.c (pascal_language_data): Likewise.
4661 * rust-lang.c (rust_language_data): Likewise.
4663 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4665 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4667 * c-lang.c (c_language_data): Likewise.
4668 (cplus_language_data): Likewise.
4669 (asm_language_data): Likewise.
4670 (minimal_language_data): Likewise.
4671 * d-lang.c (d_language_data): Likewise.
4672 * f-lang.c (f_language_data): Likewise.
4673 (f_language::case_sensitivity): New member function.
4674 * go-lang.c (go_language_data): Remove la_case_sensitivity
4676 * language.c (enum case_mode): Moved here from language.h.
4677 (case_mode): Make static.
4678 (show_case_command): Update for case_sensitivity being a method.
4679 (set_case_command): Likewise.
4680 (set_range_case): Likewise.
4681 (unknown_language_data): Remove la_case_sensitivity initializer.
4682 (auto_language_data): Likewise.
4683 * language.h (case_mode): Delete, move enum declaration to
4685 (language_data): Delete la_case_sensitivity field.
4686 (language_defn::case_sensitivity): New member function.
4687 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4689 * objc-lang.c (objc_language_data): Likewise.
4690 * opencl-lang.c (opencl_language_data): Likewise.
4691 * p-lang.c (pascal_language_data): Likewise.
4692 * rust-lang.c (rust_language_data): Likewise.
4694 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4696 * ada-lang.c (ada_language_data): Remove la_range_check
4698 * c-lang.c (c_language_data): Likewise.
4699 (cplus_language_data): Likewise.
4700 (asm_language_data): Likewise.
4701 (minimal_language_data): Likewise.
4702 * d-lang.c (d_language_data): Likewise.
4703 * f-lang.c (f_language_data): Likewise.
4704 (f_language::range_checking_on_by_default): New member function.
4705 * go-lang.c (go_language_data): Remove la_range_check initializer.
4706 * language.c (enum range_mode): Moved here from language.h.
4707 (range_mode): Made static.
4708 (show_range_command): Update to use
4709 range_checking_on_by_default.
4710 (set_range_command): Likewise.
4711 (set_range_case): Likewise.
4712 (unknown_language_data): Remove la_range_check initializer.
4713 (auto_language_data): Likewise.
4714 * language.h (range_mode): Delete. Enum definition moved to
4716 (language_data): Remove la_range_check field.
4717 (language_defn::range_checking_on_by_default): New member
4719 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4720 (m2_language::range_checking_on_by_default): New member function.
4721 * objc-lang.c (objc_language_data): Remove la_range_check
4723 * opencl-lang.c (opencl_language_data): Likewise.
4724 * p-lang.c (pascal_language_data): Likewise.
4725 (pascal_language::range_checking_on_by_default): New member
4727 * rust-lang.c (rust_language_data): Remove la_range_check
4729 (rust_language::range_checking_on_by_default): New member
4732 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4734 * dwarf2/read.c (dwarf2_physname): Remove special case for
4736 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4739 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4741 * ada-lang.c (ada_language_data): Remove
4742 la_store_sym_names_in_linkage_form_p initializer.
4743 (ada_language::store_sym_names_in_linkage_form_p): New member
4745 * c-lang.c (c_language_data): Remove
4746 la_store_sym_names_in_linkage_form_p initializer.
4747 (c_language::store_sym_names_in_linkage_form_p): New member
4749 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4751 (asm_language_data): Likewise.
4752 (asm_language::store_sym_names_in_linkage_form_p): New member
4754 (minimal_language_data): Remove
4755 la_store_sym_names_in_linkage_form_p initializer.
4756 (minimal_language::store_sym_names_in_linkage_form_p): New member
4758 * d-lang.c (d_language_data): Remove
4759 la_store_sym_names_in_linkage_form_p initializer.
4760 * dwarf2/read.c (dwarf2_physname): Update call to
4761 store_sym_names_in_linkage_form_p.
4762 * f-lang.c (f_language_data): Remove
4763 la_store_sym_names_in_linkage_form_p initializer.
4764 * go-lang.c (go_language_data): Remove
4765 la_store_sym_names_in_linkage_form_p initializer.
4766 * language.c (unknown_language_data): Remove
4767 la_store_sym_names_in_linkage_form_p initializer.
4768 (unknown_language::store_sym_names_in_linkage_form_p): New member
4770 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4772 (auto_language::store_sym_names_in_linkage_form_p): New member
4774 * language.h (language_data): Remove
4775 la_store_sym_names_in_linkage_form_p member variable.
4776 (language_defn::store_sym_names_in_linkage_form_p): New member
4778 * m2-lang.c (m2_language_data): Remove
4779 la_store_sym_names_in_linkage_form_p initializer.
4780 * objc-lang.c (objc_language_data): Likewise.
4781 * opencl-lang.c (opencl_language_data): Likewise.
4782 * p-lang.c (pascal_language_data): Likewise.
4783 * rust-lang.c (rust_language_data): Likewise.
4785 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4787 * ada-lang.c (ada_language_data): Remove string_lower_bound
4789 * c-lang.c (c_language_data): Likewise.
4790 (cplus_language_data): Likewise.
4791 (asm_language_data): Likewise.
4792 (minimal_language_data): Likewise.
4793 * d-lang.c (d_language_data): Likewise.
4794 * f-lang.c (f_language_data): Likewise.
4795 * go-lang.c (go_language_data): Likewise.
4796 * language.c (unknown_language_data): Likewise.
4797 (auto_language_data): Likewise.
4798 * language.h (language_data): Remove string_lower_bound field.
4799 (language_defn::string_lower_bound): New member function.
4800 * m2-lang.c (m2_language_data): Remove string_lower_bound
4802 (m2_language::string_lower_bound): New member function.
4803 * objc-lang.c (objc_language_data): Remove string_lower_bound
4805 * opencl-lang.c (opencl_language_data): Likewise.
4806 * p-lang.c (pascal_language_data): Likewise.
4807 * rust-lang.c (rust_language_data): Likewise.
4808 * valops.c (value_cstring): Update call to string_lower_bound.
4809 (value_string): Likewise.
4810 * value.c (allocate_repeated_value): Likewise.
4812 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4814 * valops.c (value_repeat): Fix incorrect argument name in comment.
4816 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4818 * ada-lang.c (ada_language_data): Remove c_style_arrays
4820 (ada_language::c_style_arrays_p): New member fuction.
4821 * c-lang.c (c_language_data): Remove c_style_arrays
4823 (cplus_language_data): Likewise.
4824 (asm_language_data): Likewise.
4825 (minimal_language_data): Likewise.
4826 * d-lang.c (d_language_data): Likewise.
4827 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4828 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4829 (f_language::c_style_arrays_p): New member function.
4830 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4831 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4832 * language.c (unknown_language_data): Remove c_style_arrays
4834 (auto_language_data): Likewise.
4835 * language.h (language_data): Remove c_style_arrays field.
4836 (language_defn::c_style_arrays_p): New member function.
4837 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4838 (m2_language::c_style_arrays_p): New member function.
4839 * objc-lang.c (objc_language_data): Remove c_style_arrays
4841 * opencl-lang.c (opencl_language_data): Likewise.
4842 * p-lang.c (pascal_language_data): Likewise.
4843 * rust-lang.c (rust_language_data): Likewise.
4844 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4845 and update local variable to a bool.
4846 * valops.c (value_cast): Update call to c_style_arrays_p.
4847 (value_array): Likewise.
4848 * value.c (coerce_array): Likewise.
4850 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4852 * ada-lang.c (ada_language_data): Remove la_language initializer.
4853 * c-lang.c (c_language_data): Likewise.
4854 (cplus_language_data): Likewise.
4855 (asm_language_data): Likewise.
4856 (minimal_language_data): Likewise.
4857 * d-lang.c (d_language_data): Likewise.
4858 * f-lang.c (f_language_data): Likewise.
4859 * go-lang.c (go_language_data): Likewise.
4860 * language.c (unknown_language_data): Likewise.
4861 (auto_language_data): Likewise.
4862 * language.h (language_data): Remove la_language field.
4863 (language_defn::language_defn): Initialise la_language field.
4864 (language_defn::la_language): New member variable.
4865 * m2-lang.c (m2_language_data): Remove la_language field.
4866 * objc-lang.c (objc_language_data): Likewise.
4867 * opencl-lang.c (opencl_language_data): Likewise.
4868 * p-lang.c (pascal_language_data): Likewise.
4869 * rust-lang.c (rust_language_data): Likewise.
4871 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4873 * ada-lang.c (ada_extensions): Delete, moved into
4874 ada_language::filename_extensions.
4875 (ada_language_data): Remove la_filename_extensions initializer.
4876 (ada_language::filename_extensions): New member function.
4877 * c-lang.c (c_extensions): Delete, moved into
4878 c_language::filename_extensions.
4879 (c_language_data): Remove la_filename_extensions initializer.
4880 (c_language::filename_extensions): New member function.
4881 (cplus_extensions): Delete, moved into
4882 cplus_language::filename_extensions.
4883 (cplus_language_data): Remove la_filename_extensions initializer.
4884 (cplus_language::filename_extensions): New member function.
4885 (asm_extensions): Delete, moved into
4886 asm_language::filename_extensions.
4887 (asm_language_data): Remove la_filename_extensions initializer.
4888 (asm_language::filename_extensions): New member function.
4889 (minimal_language_data): Remove la_filename_extensions
4891 * d-lang.c (d_extensions): Delete, moved into
4892 d_language::filename_extensions.
4893 (d_language_data): Remove la_filename_extensions initializer.
4894 (d_language::filename_extensions): New member function.
4895 * f-lang.c (f_extensions): Delete, moved into
4896 f_language::filename_extensions.
4897 (f_language_data): Remove la_filename_extensions initializer.
4898 (f_language::filename_extensions): New member function.
4899 * go-lang.c (go_language_data): Remove la_filename_extensions
4901 * language.c (add_set_language_command): Update now that
4902 filename_extensions returns a vector.
4903 (unknown_language_data): Remove la_filename_extensions
4905 (auto_language_data): Likewise.
4906 * language.h (language_data): Remove la_filename_extensions field.
4907 (language_defn::filename_extensions): New member function.
4908 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4910 * objc-lang.c (objc_extensions): Delete, moved into
4911 objc_language::filename_extensions.
4912 (objc_language_data): Remove la_filename_extensions initializer.
4913 (objc_language::filename_extensions): New member function.
4914 * opencl-lang.c (opencl_language_data): Remove
4915 la_filename_extensions initializer.
4916 * p-lang.c (pascal_extensions): Delete, moved into
4917 pascal_language::filename_extensions.
4918 (pascal_language_data): Remove la_filename_extensions initializer.
4919 (pascal_language::filename_extensions): New member function.
4920 * rust-lang.c (rust_extensions): Delete, moved into
4921 rust_language::filename_extensions.
4922 (rust_language_data): Remove la_filename_extensions initializer.
4923 (rust_language::filename_extensions): New member function.
4924 * symfile.c (add_filename_language): Add new assert.
4926 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4928 * ada-lang.c (ada_language_data): Remove la_name and
4929 la_natural_name initializers.
4930 (ada_language::name): New member function.
4931 (ada_language::natural_name): New member function.
4932 * c-lang.c (c_language_data): Remove la_name and
4933 la_natural_name initializers.
4934 (c_language::name): New member function.
4935 (c_language::natural_name): New member function.
4936 (cplus_language_data): Remove la_name and
4937 la_natural_name initializers.
4938 (cplus_language::name): New member function.
4939 (cplus_language::natural_name): New member function.
4940 (asm_language_data): Remove la_name and
4941 la_natural_name initializers.
4942 (asm_language::name): New member function.
4943 (asm_language::natural_name): New member function.
4944 (minimal_language_data): Remove la_name and
4945 la_natural_name initializers.
4946 (minimal_language::name): New member function.
4947 (minimal_language::natural_name): New member function.
4948 * compile/compile.c (compile_to_object): Update call to
4949 lanugage_defn::name.
4950 * d-lang.c (d_language_data): Remove la_name and
4951 la_natural_name initializers.
4952 (d_language::name): New member function.
4953 (d_language::natural_name): New member function.
4954 * expprint.c (print_subexp_standard): Update call to
4955 language_defn::name.
4956 (dump_raw_expression): Likewise
4957 (dump_prefix_expression): Likewise.
4958 * f-lang.c (f_language_data): Remove la_name and
4959 la_natural_name initializers.
4960 (f_language::name): New member function.
4961 (f_language::natural_name): New member function.
4962 * go-lang.c (go_language_data): Remove la_name and
4963 la_natural_name initializers.
4964 (go_language::name): New member function.
4965 (go_language::natural_name): New member function.
4966 * language.c (show_language_command): Update call to
4967 language_defn::name.
4968 (set_language_command): Likewise.
4969 (language_enum): Likewise.
4970 (language_str): Likewise.
4971 (add_set_language_command): Likewise, use
4972 language_defn::natural_name in the doc string.
4973 (unknown_language_data): Remove la_name and
4974 la_natural_name initializers.
4975 (unknown_language::name): New member function.
4976 (unknown_language::natural_name): New member function.
4977 (auto_language_data): Remove la_name and
4978 la_natural_name initializers.
4979 (auto_language::name): New member function.
4980 (auto_language::natural_name): New member function.
4981 (language_lookup_primitive_type_as_symbol): Update call to
4982 language_defn::name.
4983 * language.h (language_data): Remove la_name and la_natural_name
4985 (language_defn::name): New member function.
4986 (language_defn::natural_name): New member function.
4987 * m2-lang.c (m2_language_data): Remove la_name and
4988 la_natural_name initializers.
4989 (m2_language::name): New member function.
4990 (m2_language::natural_name): New member function.
4991 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4992 language_defn::natural_name.
4993 * objc-lang.c (objc_language_data): Remove la_name and
4994 la_natural_name initializers.
4995 (objc_language::name): New member function.
4996 (objc_language::natural_name): New member function.
4997 * opencl-lang.c (opencl_language_data): Remove la_name and
4998 la_natural_name initializers.
4999 (opencl_language::name): New member function.
5000 (opencl_language::natural_name): New member function.
5001 * p-lang.c (pascal_language_data): Remove la_name and
5002 la_natural_name initializers.
5003 (pascal_language::name): New member function.
5004 (pascal_language::natural_name): New member function.
5005 * rust-lang.c (rust_language_data): Remove la_name and
5006 la_natural_name initializers.
5007 (rust_language::name): New member function.
5008 (rust_language::natural_name): New member function.
5009 * symtab.c (lookup_language_this): Update call to
5010 language_defn::name.
5012 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5014 * ada-lang.c (ada_language_data): Remove la_name_of_this
5016 * ax-gdb.c (gen_expr): Update call to name_of_this.
5017 * c-exp.y (classify_name): Likewise.
5018 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5019 (cplus_language_data): Likewise.
5020 (cplus_language::name_of_this): New member function.
5021 (asm_language_data): Remove la_name_of_this initializer.
5022 (minimal_language_data): Likewise.
5023 * d-lang.c (d_language_data): Likewise.
5024 (d_language::name_of_this): New member function.
5025 * expprint.c (print_subexp_standard): Update call to name_of_this.
5026 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5027 * go-lang.c (go_language_data): Likewise.
5028 * language.c (unknown_language_data): Likewise.
5029 (unknown_language::name_of_this): New member function.
5030 (auto_language_data): Remove la_name_of_this initializer.
5031 (auto_language::name_of_this): New member function.
5032 * language.h (language_data): Delete la_name_of_this member
5034 (language_defn::name_of_this): New member function.
5035 * m2-lang.c (m2_language_data): Remove la_name_of_this
5037 * objc-lang.c (objc_language_data): Likewise.
5038 (objc_language::name_of_this): New member function.
5039 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5041 * p-lang.c (pascal_language_data): Likewise.
5042 (pascal_language::name_of_this): New member function.
5043 * rust-lang.c (rust_language_data): Remove la_name_of_this
5045 * symtab.c (lookup_language_this): Update call to name_of_this.
5046 (lookup_symbol_aux): Likewise.
5047 * valops.c (value_of_this): Likewise.
5049 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5051 * ada-lang.c (ada_language_data): Remove
5052 la_struct_too_deep_ellipsis initializer.
5053 (ada_language::struct_too_deep_ellipsis): New member function.
5054 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5056 (cplus_language_data): Likewise.
5057 (asm_language_data): Likewise.
5058 (minimal_language_data): Likewise.
5059 * cp-valprint.c (cp_print_value): Update call to
5060 struct_too_deep_ellipsis.
5061 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5063 * f-lang.c (f_language_data): Likewise.
5064 (f_language::struct_too_deep_ellipsis): New member function.
5065 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5067 * language.c (unknown_language_data): Likewise.
5068 (auto_language_data): Likewise.
5069 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5071 (language_defn::struct_too_deep_ellipsis): New member function.
5072 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5074 * objc-lang.c (objc_language_data): Likewise.
5075 * opencl-lang.c (opencl_language_data): Likewise.
5076 * p-lang.c (pascal_language_data): Likewise.
5077 * rust-lang.c (rust_language_data): Likewise.
5078 * valprint.c (val_print_check_max_depth): Update call to
5079 struct_too_deep_ellipsis.
5081 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5083 * MAINTAINERS (Write After Approval): Add myself.
5085 2020-09-15 Tom Tromey <tom@tromey.com>
5087 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5090 2020-09-15 Tom Tromey <tom@tromey.com>
5092 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5093 and TYPE_CODE_METHODPTR cases.
5094 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5095 (c_value_print_inner): Update.
5096 * valprint.c (generic_value_print_memberptr): New function, from
5097 c_value_print_memberptr.
5098 (generic_value_print): Use it. Call cplus_print_method_ptr.
5100 2020-09-15 Tom Tromey <tromey@adacore.com>
5102 * python/python-internal.h (PyInt_FromLong): Remove define.
5103 * python/py-value.c (convert_value_from_python): Use
5104 gdb_py_object_from_longest.
5105 * python/py-type.c (typy_get_code): Use
5106 gdb_py_object_from_longest.
5107 * python/py-symtab.c (salpy_get_line): Use
5108 gdb_py_object_from_longest.
5109 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5110 gdb_py_object_from_longest.
5111 * python/py-record.c (recpy_gap_reason_code): Use
5112 gdb_py_object_from_longest.
5113 * python/py-record-btrace.c (recpy_bt_insn_size)
5114 (recpy_bt_func_level, btpy_list_count): Use
5115 gdb_py_object_from_longest.
5116 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5117 gdb_py_object_from_longest. Fix error handling.
5118 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5119 gdb_py_object_from_longest.
5120 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5121 gdb_py_object_from_longest.
5122 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5123 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5124 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5126 2020-09-15 Tom Tromey <tromey@adacore.com>
5128 * python/python.c (gdbpy_parameter_value): Use
5129 gdb_py_object_from_ulongest.
5131 2020-09-15 Tom Tromey <tromey@adacore.com>
5133 * python/py-infevents.c (create_register_changed_event_object):
5134 Use gdb_py_object_from_longest.
5135 * python/py-exitedevent.c (create_exited_event_object): Use
5136 gdb_py_object_from_longest.
5138 2020-09-15 Tom Tromey <tromey@adacore.com>
5140 * python/python.c (gdbpy_parameter_value): Use
5141 gdb_py_object_from_longest.
5142 * python/py-type.c (convert_field, typy_range): Use
5143 gdb_py_object_from_longest.
5144 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5145 gdb_py_object_from_longest.
5146 * python/py-lazy-string.c (stpy_get_length): Use
5147 gdb_py_object_from_longest.
5148 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5149 gdb_py_object_from_longest.
5150 * python/py-infevents.c (create_memory_changed_event_object): Use
5151 gdb_py_object_from_longest.
5152 * python/py-inferior.c (infpy_get_num): Use
5153 gdb_py_object_from_longest.
5154 (infpy_get_pid): Likewise.
5156 2020-09-15 Tom Tromey <tromey@adacore.com>
5158 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5160 * python/py-value.c (valpy_long): Use
5161 gdb_py_object_from_ulongest.
5162 * python/py-symtab.c (salpy_get_pc): Use
5163 gdb_py_object_from_ulongest.
5164 (salpy_get_last): Likewise.
5165 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5166 gdb_py_object_from_ulongest.
5167 * python/py-lazy-string.c (stpy_get_address): Use
5168 gdb_py_object_from_ulongest.
5169 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5170 * python/py-arch.c (archpy_disassemble): Use
5171 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5174 2020-09-15 Tom Tromey <tromey@adacore.com>
5176 * python/python-internal.h (gdb_py_long_from_longest): Remove
5178 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5179 * python/py-type.c (convert_field, typy_get_sizeof): Use
5180 gdb_py_object_from_longest.
5181 * python/py-record-btrace.c (btpy_list_index): Use
5182 gdb_py_object_from_longest.
5184 2020-09-15 Tom Tromey <tromey@adacore.com>
5186 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5187 * python/py-record.c (recpy_element_number): Use
5188 gdb_py_object_from_longest.
5189 (recpy_gap_number): Likewise.
5191 2020-09-15 Tom Tromey <tromey@adacore.com>
5193 * top.c (ui::ui): Update.
5194 (highest_ui_num): Remove.
5195 * top.h (struct ui) <num>: Remove.
5197 2020-09-15 Tom Tromey <tromey@adacore.com>
5199 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5200 * ui-style.c (ansi_regex_text): Now array.
5201 * rust-exp.y (number_regex_text): Now array.
5202 * linespec.c (linespec_quote_characters): Now array.
5203 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5206 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5208 * debuginfod-support.c (debuginfod_client_deleter): New.
5209 (debuginfod_client_up): New.
5210 (debuginfod_init): Return debuginfod_client_up.
5211 (debuginfod_source_query): Adjust.
5212 (debuginfod_debuginfo_query): Adjust.
5214 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5216 * debuginfod-support.c (debuginfod_source_query): Use
5217 make_unique_xstrdup.
5219 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5221 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5222 with `type::instance_flags`.
5224 2020-09-14 Michael Mullin <masmullin@gmail.com>
5226 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5227 Remove baton parameter.
5229 2020-09-14 Pedro Alves <pedro@palves.net>
5231 * Makefile.in (SELFTESTS_SRCS): Add
5232 unittests/enum-flags-selftests.c.
5233 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5234 btrace_function_flags instead of enum btrace_function_flag.
5235 * compile/compile-c-types.c (convert_qualified): Use
5237 * compile/compile-cplus-symbols.c (convert_one_symbol)
5238 (convert_symbol_bmsym):
5239 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5240 (compile_cplus_convert_struct_or_union_methods)
5241 (compile_cplus_instance::convert_qualified_base):
5242 * go-exp.y (parse_string_or_char): Add cast to int.
5243 * unittests/enum-flags-selftests.c: New file.
5244 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5245 type to btrace_thread_flags from btrace_thread_flag.
5246 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5247 local's type to btrace_thread_flags from btrace_thread_flag. Add
5250 2020-09-14 Pedro Alves <pedro@palves.net>
5252 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5253 * gdbtypes.c (address_space_name_to_int): Rename to ...
5254 (address_space_name_to_type_instance_flags): ... this.
5255 (address_space_int_to_name): Rename to ...
5256 (address_space_type_instance_flags_to_name): ... this.
5257 * gdbtypes.h (address_space_name_to_int): Rename to ...
5258 (address_space_name_to_type_instance_flags): ... this.
5259 (address_space_int_to_name): Rename to ...
5260 (address_space_type_instance_flags_to_name): ... this.
5261 * type-stack.c (type_stack::insert): Adjust to rename.
5262 * type-stack.h (type_stack::insert): Likewise.
5264 2020-09-14 Pedro Alves <pedro@palves.net>
5265 Andrew Burgess <andrew.burgess@embecosm.com>
5267 * avr-tdep.c (avr_address_class_type_flags): Return
5268 type_instance_flags.
5269 (avr_address_class_type_flags_to_name): Take a
5270 type_instance_flags.
5271 (avr_address_class_name_to_type_flags): Return bool and take a
5272 type_instance_flags.
5273 * d-lang.c (build_d_types): Use type::set_instance_flags.
5274 * ft32-tdep.c (ft32_address_class_type_flags): Return
5275 type_instance_flags.
5276 (ft32_address_class_type_flags_to_name): Take a
5277 type_instance_flags.
5278 (ft32_address_class_name_to_type_flags): Return bool and take a
5279 type_instance_flags.
5280 (ft32_gdbarch_init): Use type::set_instance_flags.
5281 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5282 * gdbarch.h, gdbarch.c: Regenerate.
5283 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5284 (address_class_name_to_type_flags): Use type_instance_flags and
5286 * gdbtypes.c (address_space_name_to_int)
5287 (address_space_int_to_name, make_qualified_type): Use
5288 type_instance_flags.
5289 (make_qualified_type): Use type_instance_flags and
5290 type::set_instance_flags.
5291 (make_type_with_address_space, make_cv_type, make_vector_type)
5292 (check_typedef): Use type_instance_flags.
5293 (recursive_dump_type): Cast type_instance_flags to unsigned for
5295 (copy_type_recursive): Use type::set_instance_flags.
5296 (gdbtypes_post_init): Use type::set_instance_flags.
5297 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5298 <m_instance_flags>: ... this.
5299 <instance_flags, set_instance_flags>: New methods.
5300 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5301 (SET_TYPE_INSTANCE_FLAGS): New.
5302 (address_space_name_to_int, address_space_int_to_name)
5303 (make_type_with_address_space): Pass flags using
5304 type_instance_flags instead of int.
5305 * stabsread.c (cleanup_undefined_types_noname): Use
5306 type::set_instance_flags.
5307 * s390-tdep.c (s390_address_class_type_flags): Return
5308 type_instance_flags.
5309 (s390_address_class_type_flags_to_name): Take a
5310 type_instance_flags.
5311 (s390_address_class_name_to_type_flags): Return bool and take a
5312 type_instance_flags.
5313 * type-stack.c (type_stack::follow_types): Use
5314 type_instance_flags.
5315 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5317 2020-09-14 Tom Tromey <tromey@adacore.com>
5319 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5320 * x86-tdep.c (x86_is_thunk_register_name)
5321 (x86_in_indirect_branch_thunk): Update.
5322 * sparc64-tdep.c (sparc64_fpu_register_names)
5323 (sparc64_cp0_register_names, sparc64_register_names)
5324 (sparc64_pseudo_register_names): Now const.
5325 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5326 cp0_registers_num>: Now const.
5327 * sparc-tdep.c (sparc_core_register_names)
5328 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5329 (sparc32_pseudo_register_names): Now const.
5330 (validate_tdesc_registers): Update.
5331 * rust-lang.c (rust_extensions): Now const.
5332 * p-lang.c (p_extensions): Now const.
5333 * objc-lang.c (objc_extensions): Now const.
5334 * nto-tdep.c (nto_thread_state_str): Now const.
5335 * moxie-tdep.c (moxie_register_names): Now const.
5336 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5338 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5339 (mips_linux_reg_names): Now const.
5340 (mips_gdbarch_init): Update.
5341 * microblaze-tdep.c (microblaze_register_names): Now const.
5342 * m68k-tdep.c (m68k_register_names): Now const.
5343 * m32r-tdep.c (m32r_register_names): Now const.
5344 * ia64-tdep.c (ia64_register_names): Now const.
5345 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5346 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5347 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5348 ymm_avx512_register_names, pkeys_register_names>: Now const.
5349 * i386-tdep.c (i386_register_names, i386_zmm_names)
5350 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5351 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5352 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5353 * f-lang.c (f_extensions): Now const.
5354 * d-lang.c (d_extensions): Now const.
5355 * csky-tdep.c (csky_register_names): Now const.
5356 * charset.c (default_charset_names, charset_enum): Now const.
5357 (_initialize_charset): Update.
5358 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5360 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5361 (bsd_uthread_solib_loaded): Update.
5362 (bsd_uthread_state): Now const.
5363 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5364 (amd64_ymm_avx512_names, amd64_ymmh_names)
5365 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5366 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5367 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5368 (amd64_dword_names): Now const.
5369 * agent.c (can_use_agent_enum): Now const.
5370 * ada-tasks.c (task_states, long_task_states): Now const.
5371 * ada-lang.c (known_runtime_file_name_patterns)
5372 (known_auxiliary_function_name_patterns, attribute_names)
5373 (standard_exc, ada_extensions): Now const.
5375 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5377 * bcache.h (struct bcache) <bcache>: Remove constructor.
5378 <m_hash_function, m_compare_function>: Remove.
5379 <~bcache>: Make virtual.
5380 <compare>: Remove static method, introduce virtual method.
5381 <default_hash>: Remove.
5382 <hash>: New virtual method.
5383 * bcache.c (bcache::expand_hash_table): Update.
5384 (bcache::insert): Update.
5385 (bcache::hash): New.
5386 (bcache::compare): Update comment and parameter names.
5387 * gdbtypes.c (types_deeply_equal): Update.
5388 * psymtab.h (struct psymbol_bcache): New struct.
5389 (class psymtab_storage) <psymtab_storage>: Make default.
5390 <psymbol_cache>: Change type to psymbol_bcache.
5391 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5392 (psymbol_hash): Change to...
5393 (psymbol_bcache::hash): ... this.
5394 (psymbol_compare): Change to...
5395 (psymbol_bcache::compare): ... this.
5397 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5399 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5400 checking for initial lwp.
5402 2020-09-14 Tom Tromey <tromey@adacore.com>
5404 * m68k-tdep.c (m68k_extract_return_value): Use
5405 pointer_result_regnum.
5406 (m68k_store_return_value): Likewise.
5407 (m68k_reg_struct_return_p): Handle vectors and arrays.
5408 (m68k_return_value): Handle arrays.
5409 (m68k_svr4_return_value): Fix single-element aggregate handling.
5410 Handle long double. Adjust for embedded ABI.
5411 (m68k_svr4_init_abi): Set pointer_result_regnum.
5412 (m68k_embedded_init_abi): New function.
5413 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5414 (m68k_osabi_sniffer): New function.
5415 (_initialize_m68k_tdep): Register osabi sniffer.
5416 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5419 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5421 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5422 with gdb::unique_xmalloc_ptr<char>.
5424 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5426 * xml-support.h (xml_fetch_another): Change type to be a
5428 (xml_process_xincludes): Remove baton parameter.
5429 (xml_fetch_content_from_file): Change baton parameter to
5431 * xml-support.c (struct xinclude_parsing_data)
5432 <xinclude_parsing_data>: Remove baton parameter.
5433 <fetcher_baton>: Remove.
5434 (xinclude_start_include): Adjust.
5435 (xml_process_xincludes): Adjust.
5436 (xml_fetch_content_from_file): Replace baton parameter with
5438 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5439 (xml_init_syscalls_info): Use a lambda.
5440 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5441 (file_read_description_xml): Use a lambda.
5442 (fetch_available_features_from_target): Change baton parameter
5444 (target_read_description_xml): Use a lambda.
5445 (target_fetch_description_xml): Use a lambda.
5446 (string_read_description_xml): Update.
5448 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5450 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5451 uses with type::endianity_is_not_default.
5453 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5455 * gdbtypes.h (struct type) <endianity_is_not_default,
5456 set_endianity_is_not_default>: New methods.
5457 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5458 type::endianity_is_not_default, change all write call sites to
5459 use type::set_endianity_is_not_default.
5461 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5463 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5464 uses with type::is_fixed_instance.
5466 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5468 * gdbtypes.h (struct type) <is_fixed_instance,
5469 set_is_fixed_instance>: New methods.
5470 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5471 write call sites to use type::set_is_fixed_instance.
5473 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5475 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5476 uses with type::is_gnu_ifunc.
5478 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5480 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5481 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5482 use type::set_is_gnu_ifunc.
5484 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5486 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5487 uses with type::stub_is_supported.
5489 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5491 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5492 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5493 use type::set_stub_is_supported.
5495 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5497 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5498 uses with type::is_vector.
5500 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5502 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5503 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5504 use type::set_is_vector.
5506 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5508 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5509 uses with type::has_varargs.
5511 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5513 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5514 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5515 use type::set_has_varargs.
5517 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5519 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5520 uses with type::is_prototyped.
5522 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5524 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5526 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5527 call sites to use type::set_is_prototyped.
5529 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5531 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5532 uses with type::target_is_stub.
5534 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5536 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5538 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5539 sites to use type::set_target_is_stub.
5541 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5543 * gdbtypes.h (TYPE_STUB): Remove, replace all
5544 uses with type::is_stub.
5546 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5548 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5549 (TYPE_STUB): Use type::is_stub, change all write call sites to
5550 use type::set_is_stub.
5552 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5554 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5555 type::has_no_signedness.
5557 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5559 * gdbtypes.h (struct type) <has_no_signedness,
5560 set_has_no_signedness>: New methods.
5561 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5562 call sites to use type::set_has_no_signedness.
5564 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5566 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5569 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5571 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5573 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5574 sites to use type::set_is_unsigned.
5576 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5577 Adam Renquinha <arenquinha@cimeq.qc.ca>
5579 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5580 pointer and stack frame offset when unwinding.
5582 2020-09-13 Pedro Alves <pedro@palves.net>
5584 * NEWS: Document "-break-insert --qualified".
5585 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5587 2020-09-13 Pedro Alves <pedro@palves.net>
5589 * linespec.c (classify_mtype, compare_msyms): Delete.
5590 (search_minsyms_for_name): Remove classification logic. Instead
5591 filter out trampoline symbols if we also found an external
5592 function of the same name.
5594 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5596 * NEWS: Create a new section for the next release branch.
5597 Rename the section of the current branch, now that it has
5600 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5602 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5603 * version.in: Bump version to 11.0.50.DATE-git.
5605 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5607 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5609 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5610 Felix Willgerodt <Felix.Willgerodt@intel.com>
5612 * gdbarch.sh: Added bfloat16 type.
5613 * gdbarch.c: Regenerated.
5614 * gdbarch.h: Regenerated.
5615 * gdbtypes.c (floatformats_bfloat16): New struct.
5616 (gdbtypes_post_init): Add builtin_bfloat16.
5617 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5618 (floatformats_bfloat16): New struct.
5619 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5620 (i386_ymm_type): Add field "v16_bfloat16"
5621 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5622 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5623 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5624 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5625 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5626 * features/i386/64bit-avx512.c: Regenerated.
5627 * features/i386/64bit-sse.xml: Add bfloat16 type.
5628 * features/i386/64bit-sse.c: Regenerated.
5630 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5632 * i386-tdep.c (i386_zmm_type): Fix field names.
5633 (i386_ymm_type): Fix field names.
5635 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5637 * breakpoint.c: Fix typo in the help message of the
5638 "set breakpoint condition-evaluation" command.
5640 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5642 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5643 * (nbsd_nat_target::pid_to_exec_file)
5644 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5645 (nbsd_nat_target::post_startup_inferior)
5646 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5647 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5648 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5649 * (nbsd_thread_lister): Remove.
5651 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5653 * fork-inferior.c (startup_inferior): Avoid double free.
5655 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5657 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5658 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5660 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5662 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5663 * netbsd-nat.c: Include <sys/ptrace.h>.
5664 * (netbsd_nat::enable_proc_events): Add.
5666 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5668 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5669 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5670 (netbsd_nat::for_each_thread): Add.
5671 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5672 "gdbsupport/common-debug.h".
5673 * (netbsd_nat::netbsd_thread_lister)
5674 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5675 (netbsd_nat::for_each_thread): Add.
5677 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5679 * netbsd-nat.h: Include <unistd.h>.
5680 * (netbsd_nat::pid_to_exec_file): Add.
5681 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5682 * (netbsd_nat::pid_to_exec_file) Add.
5684 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5686 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5688 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5690 * netbsd-nat.h: New file.
5691 * netbsd-nat.c: Likewise.
5693 2020-09-09 Tom Tromey <tromey@adacore.com>
5695 * ada-lang.c (remove_extra_symbols): Do not increment when
5698 2020-09-08 Tom Tromey <tromey@adacore.com>
5700 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5702 2020-09-08 Tom Tromey <tromey@adacore.com>
5705 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5706 (gdb_bfd_init_data): New function.
5707 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5709 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5711 * infrun.c (fetch_inferior_event): Use
5712 `switch_to_target_no_thread` to switch the target.
5714 2020-09-06 Tom Tromey <tom@tromey.com>
5716 * symfile.h (dwarf2_free_objfile): Don't declare.
5718 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5720 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5721 to match 16 byte real/complex type generated by Flang compiler.
5723 2020-09-03 Tom de Vries <tdevries@suse.de>
5726 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5727 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5729 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5731 * maint.c (index_digits): New function.
5732 (struct maint_print_section_data): Remove.
5733 (print_bfd_section_info): Remove print_data parameter, add arg
5735 (print_objfile_section_info): Likewise.
5736 (print_bfd_section_info_maybe_relocated): Likewise (plus
5738 (maintenance_info_sections): Adjust calls.
5740 2020-09-02 Tom Tromey <tromey@adacore.com>
5742 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5744 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5746 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5748 * bcache.h (struct bcache) <insert>: Change type of `added` to
5750 * bcache.c (bcache::insert): Likewise.
5751 * gdbtypes.c (check_types_worklist): Adjust.
5752 * psymtab.c (add_psymbol_to_bcache): Adjust.
5754 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5756 * corelow.c (unordered_set): Include.
5757 (class core_target): Add field 'm_core_unavailable_mappings'.
5758 (core_target::build_file_mappings): Print only one warning
5759 per inaccessible file. Add unavailable/broken mappings
5760 to m_core_unavailable_mappings.
5761 (core_target::xfer_partial): Call...
5762 (core_target::xfer_memory_via_mappings): New method.
5764 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5766 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5769 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5771 * dwarf2/read.c (struct field_info): Fix indentation.
5773 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5775 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5776 ordering in comment.
5777 * frame.c (frame_id_eq): Fix indentation.
5779 2020-08-31 Scott Linder <scott@scottlinder.com>
5780 Simon Marchi <simon.marchi@efficios.com>
5782 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5783 inline frame ids in outer frame.
5785 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5787 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5788 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5789 (outer_frame_id): Use FID_STACK_OUTER instead of
5791 (frame_id_p): Don't check for outer_frame_id.
5793 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5795 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5796 regnum/frame in value. Call allocate_value_lazy.
5797 * frame.c (frame_unwind_register_value): Use
5798 val_print_not_saved.
5800 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5802 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5804 2020-08-29 Pedro Alves <pedro@palves.net>
5806 * progspace.c (print_program_space): Use all_inferiors. Switch to
5807 the inferior before calling target_pid_to_str.
5809 2020-08-28 Tom Tromey <tom@tromey.com>
5811 * xcoffread.c (xcoff_end_psymtab): Update comment.
5812 * dbxread.c (dbx_end_psymtab): Update comment.
5814 2020-08-28 Tom de Vries <tdevries@suse.de>
5817 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5819 (create_breakpoint): Same.
5820 (base_breakpoint_decode_location): Same.
5821 (bkpt_create_sals_from_location): Same.
5822 (bkpt_decode_location): Same.
5823 (bkpt_probe_create_sals_from_location): Same.
5824 (bkpt_probe_decode_location): Same.
5825 (tracepoint_create_sals_from_location): Same.
5826 (tracepoint_decode_location): Same.
5827 (tracepoint_probe_decode_location): Same.
5828 (strace_marker_create_sals_from_location): Same.
5829 (strace_marker_decode_location): Same.
5830 (create_sals_from_location_default): Same.
5831 (decode_location_default): Same.
5832 * breakpoint.h (struct breakpoint_ops): Same.
5833 (create_breakpoint): Same.
5834 * linespec.h (decode_line_full): Same.
5835 * linespec.c (decode_line_full): Same. Throw error if
5836 result.size () == 0.
5838 2020-08-27 Pedro Alves <pedro@palves.net>
5841 * breakpoint.c (until_break_fsm) <location_breakpoint,
5842 caller_breakpoint>: Delete fields.
5843 <breakpoints>: New field.
5844 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5845 two individual breakpoints.
5846 (until_break_fsm::should_stop): Loop over breakpoints in the
5848 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5850 (until_break_command): Handle location expanding into multiple
5853 2020-08-27 Pedro Alves <pedro@palves.net>
5856 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5857 bp_until breakpoints user-specified locations. Update intro
5860 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5862 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5863 gdb_bfd_sections): New.
5864 * maint.c (print_bfd_section_info): Change param type to
5865 maint_print_section_data.
5866 (print_objfile_section_info): Likewise.
5867 (print_bfd_section_info_maybe_relocated): Likewise.
5868 (maintenance_info_sections): Use gdb_bfd_sections.
5870 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5872 * MAINTAINERS: Add ARC target and maintainer.
5874 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5876 * configure.tgt: ARC support for GNU/Linux.
5877 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5878 * arc-linux-tdep.c: New file.
5879 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5880 * arc-tdep.c (arc_write_pc): Use it.
5882 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5884 * arc-tdep.c (arc_check_for_hardware_loop): New.
5885 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5887 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5889 * arc-tdep.h: Include "gdbarch.h".
5891 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5894 (arc_gdbarch_features): New class to stir the selection of target XML.
5895 (arc_create_target_description): Use FEATURES to choose XML target.
5896 (arc_lookup_target_description): Use arc_create_target_description
5897 to create _new_ target descriptions or return the already created
5898 ones if the FEATURES is the same.
5899 * arch/arc.c: Implementation of prototypes described above.
5900 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5901 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5902 * arc-tdep.c (*_feature_name): Make feature names consistent.
5903 (arc_register_feature): A new struct to hold information about
5904 registers of a particular target/feature.
5905 (arc_check_tdesc_feature): Check if XML provides registers in
5906 compliance with ARC_REGISTER_FEATURE structs.
5907 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5908 (determine_*_reg_feature_set): Which feature name to look for.
5909 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5910 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5911 to expected ISA enums to be used in arc_gdbarch_features structs.
5912 * features/Makefile (FEATURE_XMLFILES): Add new files.
5913 * gdb/features/arc/v1-aux.c: New file.
5914 * gdb/features/arc/v1-aux.xml: Likewise.
5915 * gdb/features/arc/v1-core.c: Likewise.
5916 * gdb/features/arc/v1-core.xml: Likewise.
5917 * gdb/features/arc/v2-aux.c: Likewise.
5918 * gdb/features/arc/v2-aux.xml: Likewise.
5919 * gdb/features/arc/v2-core.c: Likewise.
5920 * gdb/features/arc/v2-core.xml: Likewise.
5921 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5923 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5924 Andrew Burgess <andrew.burgess@embecosm.com>
5927 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5928 an assert. Remove single element array indexing pattern as the
5929 MULTI_SUBSCRIPT support will handle this case too.
5931 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5933 * value.h (valprint_check_validity): Move declaration from
5935 * valprint.h (valprint_check_validity): ... to here.
5937 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5939 * debug.h: New file.
5940 * debug.c (debug_prefixed_vprintf): New function.
5941 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5942 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5944 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5946 * infrun.h (infrun_debug_printf_1): New function declaration.
5947 (infrun_debug_printf): New macro.
5948 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5950 (infrun_debug_printf): New function.
5951 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5952 (handle_jit_event): Likewise.
5954 2020-08-21 Mark Wielaard <mark@klomp.org>
5956 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5958 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5960 * frame.c (enum class frame_id_status): New.
5961 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5962 (fprintf_frame): Update.
5963 (compute_frame_id): Set frame id status to "computing" on entry.
5964 Set it back to "not_computed" on failure and to "computed" on
5966 (get_frame_id): Assert the frame id is not being computed.
5967 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5968 (create_new_frame): Likewise.
5969 (frame_cleanup_after_sniffer): Update assert.
5971 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5973 * regcache.c (pid_ptid_regcache_map): New type.
5974 (target_ptid_regcache_map): Remove.
5975 (target_pid_ptid_regcache_map): New type.
5976 (regcaches): Change type to target_pid_ptid_regcache_map.
5977 (get_thread_arch_aspace_regcache): Update.
5978 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5980 (regcaches_size): Update.
5981 (regcache_count): Update.
5982 (registers_changed_ptid_target_pid_test): New.
5983 (_initialize_regcache): Register new test.
5985 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5987 * regcache.c (regcache_count): New.
5988 (struct regcache_test_data): New.
5989 (regcache_test_data_up): New.
5990 (populate_regcaches_for_test): New.
5991 (regcaches_test): Remove.
5992 (get_thread_arch_aspace_regcache_test): New.
5993 (registers_changed_ptid_all_test): New.
5994 (registers_changed_ptid_target_test): New.
5995 (registers_changed_ptid_target_ptid_test): New.
5996 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5997 (_initialize_regcache): Register new tests.
5999 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6001 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6002 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6003 gdbarch and aspace parameter. Use current inferior's aspace.
6004 Validate regcache's arch value.
6005 (regcaches_test): Update.
6007 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6009 * regcache.c (regcaches_test): Call registers_changed.
6011 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6013 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6015 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6017 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6018 to find the end of prologue for flang compiled binaries.
6019 * arm-tdep.c (arm_skip_prologue): Likewise.
6020 * i386-tdep.c (i386_skip_prologue): Likewise.
6021 * producer.c (producer_is_llvm): New function.
6022 (producer_parsing_tests): Added new tests for clang/flang.
6023 * producer.h (producer_is_llvm): New declaration.
6025 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6027 * linux-nat.c (linux_nat_debug_printf): New function.
6028 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6030 2020-08-18 Aaron Merey <amerey@redhat.com>
6032 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6033 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6034 (CLIBS): Add DEBUGINFOD_LIBS.
6036 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6038 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6041 2020-08-17 Tom Tromey <tromey@adacore.com>
6043 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6044 ada_get_decoded_value returns NULL.
6046 2020-08-17 Tom Tromey <tromey@adacore.com>
6048 * python/py-inferior.c (infpy_search_memory): Use
6049 gdb_py_object_from_ulongest.
6050 * python/py-infevents.c (create_inferior_call_event_object)
6051 (create_memory_changed_event_object): Use
6052 gdb_py_object_from_ulongest.
6053 * python/py-linetable.c (ltpy_entry_get_pc): Use
6054 gdb_py_object_from_ulongest.
6056 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6058 * loc.c (class symbol_needs_eval_context): Fix indentation.
6060 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6062 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6065 2020-08-17 Tom de Vries <tdevries@suse.de>
6068 * gdbtypes.c (dump_dynamic_prop): New function.
6069 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6071 2020-08-15 Tom de Vries <tdevries@suse.de>
6074 * stack.c (print_frame_args): Temporarily set the selected
6075 frame to FRAME while printing the frame's arguments.
6077 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6079 PR breakpoints/26385
6080 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6081 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6083 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6085 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6086 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6087 and >= to check return value instead of == -1 and != -1.
6089 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6091 * utils.h (class gdb_argv) <as_array_view>: New method.
6092 * utils.c (gdb_argv_as_array_view_test): New.
6093 (_initialize_utils): Register selftest.
6094 * maint.c (maintenance_selftest): Use the new method.
6096 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6098 * target.h (supports_dumpcore, dumpcore): New
6099 function declarations.
6100 * target.c (supports_dumpcore, dumpcore): New
6102 * target-delegates.c: Rebuild.
6103 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6104 and target_dumpcore ().
6106 2020-08-13 Aaron Merey <amerey@redhat.com>
6108 * debuginfod-support.c: Replace global variables with user_data.
6110 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6112 * maint.c (maintenance_selftest): Split args and pass array_view
6115 2020-08-12 Luis Machado <luis.machado@linaro.org>
6117 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6119 Use %s and pulongest to print the length.
6121 2020-08-12 Pedro Alves <palves@redhat.com>
6123 * NEWS: Move "Multi-target debugging support" item to the
6124 "Changes since GDB 9" section.
6126 2020-08-12 Pedro Alves <palves@redhat.com>
6129 * progspace.c (program_space::remove_objfile): Invalidate the
6132 2020-08-11 Tom de Vries <tdevries@suse.de>
6134 * MAINTAINERS: Mark ms1 as deleted.
6136 2020-08-10 Luis Machado <luis.machado@linaro.org>
6140 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6142 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6143 movz/str/stur/stp skipping behavior.
6145 2020-08-10 Luis Machado <luis.machado@linaro.org>
6147 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6148 struct user_sve_header instead of struct sve_context.
6150 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6152 * read.h (dwarf2_fetch_die_loc_sect_off,
6153 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6154 `void *` parameter with function_view.
6155 * read.c (dwarf2_fetch_die_loc_sect_off,
6156 dwarf2_fetch_die_loc_cu_off): Likewise.
6157 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6158 (per_cu_dwarf_call): Adjust.
6159 (get_frame_address_in_block_wrapper): Remove.
6160 (indirect_synthetic_pointer): Adjust.
6161 (get_ax_pc): Remove.
6162 (dwarf2_compile_expr_to_ax): Adjust.
6164 2020-08-08 Tom de Vries <tdevries@suse.de>
6167 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6169 * regcache.c (get_thread_arch_aspace_regcache): Same.
6171 2020-08-07 Tom Tromey <tromey@adacore.com>
6173 * ravenscar-thread.c
6174 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6176 (ravenscar_thread_target::wait): Check
6177 runtime_initialized.
6178 (ravenscar_thread_target::prepare_to_store)
6179 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6180 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6181 (ravenscar_thread_target::stopped_by_watchpoint)
6182 (ravenscar_thread_target::stopped_data_address)
6183 (ravenscar_thread_target::core_of_thread): Use
6184 scoped_restore_current_thread and
6185 set_base_thread_from_ravenscar_task.
6187 2020-08-07 Tom Tromey <tromey@adacore.com>
6189 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6191 2020-08-07 Tom Tromey <tromey@adacore.com>
6193 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6194 update_inferior_ptid before update_thread_list.
6195 (temporarily_change_regcache_ptid): New class.
6196 (ravenscar_thread_target::fetch_registers)
6197 (ravenscar_thread_target::store_registers)
6198 (ravenscar_thread_target::prepare_to_store): Use base thread when
6199 forwarding operation.
6201 2020-08-07 Tom Tromey <tromey@adacore.com>
6203 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6206 2020-08-07 Tom Tromey <tromey@adacore.com>
6208 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6210 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6212 (ravenscar_thread_target::add_thread): Rename from
6213 ravenscar_add_thread.
6214 (ravenscar_thread_target::update_thread_list): Use a lambda.
6215 (ravenscar_thread_target::xfer_partial): New method.
6217 2020-08-07 Tom Tromey <tromey@adacore.com>
6219 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6221 (iterate_over_live_ada_tasks): Change type of argument.
6222 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6225 2020-08-07 Tom Tromey <tromey@adacore.com>
6227 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6229 (ravenscar_thread_target::extra_thread_info): Remove.
6230 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6231 defer to target beneath for non-Ravenscar threads.
6233 2020-08-07 Tom Tromey <tromey@adacore.com>
6235 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6236 get_base_thread_from_ravenscar_task>: Now methods.
6237 <m_cpu_map>: New member.
6238 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6239 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6240 (ravenscar_thread_target::task_is_currently_active): Update.
6241 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6243 (ravenscar_thread_target::add_active_thread): Put initial thread
6246 2020-08-07 Tom Tromey <tromey@adacore.com>
6248 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6251 2020-08-07 Tom Tromey <tromey@adacore.com>
6253 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6254 runtime_initialized.
6256 2020-08-07 Tom Tromey <tromey@adacore.com>
6258 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6260 (ravenscar_thread_target::add_active_thread): Now public.
6261 (ravenscar_inferior_created): Call add_active_thread after pushing
6264 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6266 * regcache.c (ptid_regcache_map): New type.
6267 (target_ptid_regcache_map): New type.
6268 (regcaches): Change type to target_ptid_regcache_map.
6269 (get_thread_arch_aspace_regcache): Update to regcaches' new
6271 (regcache_thread_ptid_changed): Likewise.
6272 (registers_changed_ptid): Likewise.
6273 (regcaches_size): Likewise.
6274 (regcaches_test): Update.
6275 (regcache_thread_ptid_changed): Update.
6276 * regcache.h (regcache_up): New type.
6277 * gdbsupport/ptid.h (hash_ptid): New struct.
6279 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6281 * observable.h (thread_ptid_changed): Add parameter
6282 `process_stratum_target *`.
6283 * infrun.c (infrun_thread_ptid_changed): Add parameter
6284 `process_stratum_target *` and use it.
6285 (selftests): New namespace.
6286 (infrun_thread_ptid_changed): New function.
6287 (_initialize_infrun): Register selftest.
6288 * regcache.c (regcache_thread_ptid_changed): Add parameter
6289 `process_stratum_target *` and use it.
6290 (regcache_thread_ptid_changed): New function.
6291 (_initialize_regcache): Register selftest.
6292 * thread.c (thread_change_ptid): Pass target to
6293 thread_ptid_changed observable.
6295 2020-08-06 Caroline Tice <cmtice@google.com>
6297 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6298 (struct dwp_sections): Update field comments. Add loclists and
6300 (struct virtual_v2_dwo_sections): Rename struct to
6301 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6302 size & offset fields for loclists and rnglists.
6303 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6304 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6305 skipping dummy type units.
6306 (create_dwp_hash_table): Update the large comment above the function to
6307 discuss Version 5 DWP files as well, with references. Update all the
6308 version checks in the function to check for version 5 as well. Add new
6309 section at the end to create dwp hash table for version 5.
6310 (create_dwp_v2_section): Rename function to
6311 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6312 Add V5 to error message text.
6313 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6314 into calls to create_dwp_v2_or_v5_section.
6315 (create_dwo_unit_in_dwp_v5): New function.
6316 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6317 check for version2; add else clause to handle version 5.
6318 (open_and_init_dwo_file): Add code to check dwarf version & only call
6319 create_debug_types_hash_table (with sections.types) if version is not 5;
6320 else call create_debug_type_hash_table, with sections.info.
6321 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6323 (dwarf2_locate_v5_dwp_sections): New function.
6324 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6325 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6327 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6329 * regcache.h (class regcache): Remove friend
6330 registers_changed_ptid.
6331 <regcache_thread_ptid_changed>: Remove.
6332 <regcaches>: Remove.
6333 * regcache.c (regcache::regcaches): Rename to...
6334 (regcaches): ... this. Make static.
6335 (get_thread_arch_aspace_regcache): Update.
6336 (regcache::regcache_thread_ptid_changed): Rename to...
6337 (regcache_thread_ptid_changed): ... this. Update.
6338 (class regcache_access): Remove.
6339 (regcaches_test): Update.
6340 (_initialize_regcache): Update.
6341 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6344 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6346 * regcache.h (class regcache) <current_regcache>: Rename to...
6347 <regcaches>: ... this. Move doc here.
6348 * regcache.c (regcache::current_regcache) Rename to...
6349 (regcache::regcaches): ... this. Move doc to header.
6350 (get_thread_arch_aspace_regcache): Update.
6351 (regcache::regcache_thread_ptid_changed): Update.
6352 (registers_changed_ptid): Update.
6353 (class regcache_access) <current_regcache_size>: Rename to...
6354 <regcaches_size>: ... this.
6355 (current_regcache_test): Rename to...
6356 (regcaches_test): ... this.
6357 (_initialize_regcache): Update.
6359 2020-08-06 Victor Collod <vcollod@nvidia.com>
6361 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6363 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6365 * corelow.c (core_target::build_file_mappings): Don't output
6366 null pathname in warning.
6368 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6370 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6371 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6372 gdb.dwarf2/dw2-single-line-discriminators.exp,
6373 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6375 2020-08-05 Tom Tromey <tromey@adacore.com>
6378 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6379 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6380 Fix off-by-one and type size errors in ordinary case.
6382 2020-08-05 Tom de Vries <tdevries@suse.de>
6384 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6385 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6387 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6389 * frame.h (frame_id_p): Return bool.
6390 (frame_id_artificial_p): Return bool.
6391 (frame_id_eq): Return bool.
6392 (has_stack_frames): Return bool.
6393 (get_selected_frame): Fix typo in comment.
6394 (get_frame_pc_if_available): Return bool.
6395 (get_frame_address_in_block_if_available): Return bool.
6396 (get_frame_func_if_available): Return bool.
6397 (read_frame_register_unsigned): Return bool.
6398 (get_frame_register_bytes): Return bool.
6399 (safe_frame_unwind_memory): Return bool.
6400 (deprecated_frame_register_read): Return bool.
6401 (frame_unwinder_is): Return bool.
6402 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6404 <this_id::p>: Likewise.
6406 (frame_stash_add): Return bool.
6407 (get_frame_id): Use bool.
6408 (frame_id_build_special) Use bool.
6409 (frame_id_build_unavailable_stack): Use bool.
6410 (frame_id_build): Use bool.
6411 (frame_id_p): Return bool, use true/false instead of 1/0.
6412 (frame_id_artificial_p): Likewise.
6413 (frame_id_eq): Likewise.
6414 (frame_id_inner): Likewise.
6415 (get_frame_func_if_available): Likewise.
6416 (read_frame_register_unsigned): Likewise.
6417 (deprecated_frame_register_read): Likewise.
6418 (get_frame_register_bytes): Likewise.
6419 (has_stack_frames): Likewise.
6420 (inside_main_func): Likewise.
6421 (inside_entry_func): Likewise.
6422 (get_frame_pc_if_available): Likewise.
6423 (get_frame_address_in_block_if_available): Likewise.
6424 (frame_unwinder_is): Likewise.
6425 (safe_frame_unwind_memory): Likewise.
6426 (frame_unwind_arch): Likewise.
6428 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6430 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6431 type to cached_copy_status.
6432 (fprintf_frame): Adjust.
6433 (get_frame_func_if_available): Adjust.
6434 (frame_cleanup_after_sniffer): Adjust.
6436 2020-08-04 Mark Wielaard <mark@klomp.org>
6438 * MAINTAINERS (Write After Approval): Update email address.
6440 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6442 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6443 dynamic_prop::const_val.
6445 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6447 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6450 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6452 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6454 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6456 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6458 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6459 Jose E. Marchesi <jose.marchesi@oracle.com>
6461 * configure.tgt: Add entry for bpf-*-*.
6462 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6463 (ALLDEPFILES): Add bpf-tdep.c.
6464 * bpf-tdep.c: New file.
6465 * MAINTAINERS: Add bpf target and maintainer.
6466 * NEWS: Mention the support for the new target.
6468 2020-08-04 Tom de Vries <tdevries@suse.de>
6471 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6474 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6476 * syscalls/freebsd.xml: Regenerate.
6478 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6480 * syscalls/update-freebsd.sh: Fix usage and year range.
6482 2020-08-03 Tom de Vries <tdevries@suse.de>
6485 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6486 DW_LNE_lo_user/DW_LNE_hi_user range.
6488 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6491 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6494 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6496 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6498 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6500 * breakpoint.c (set_breakpoint_condition): Update the condition
6501 expressions after checking that the input condition string parses
6502 successfully and does not contain junk at the end.
6504 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6506 * breakpoint.c (set_breakpoint_condition): Update the
6507 condition string after parsing the new condition successfully.
6509 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6511 * proc-api.c (_STRUCTURED_PROC): Don't define.
6512 * proc-events.c: Likewise.
6513 * proc-flags.c: Likewise.
6514 * proc-why.c: Likewise.
6515 * procfs.c: Likewise.
6517 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6518 * configure, config.in: Regenerate.
6520 2020-07-30 Tom de Vries <tdevries@suse.de>
6523 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6524 m_red/m_green/m_blue in a union.
6526 2020-07-29 Tom de Vries <tdevries@suse.de>
6529 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6531 2020-07-28 Tom Tromey <tromey@adacore.com>
6534 * symtab.h (find_pc_partial_function_sym): Declare.
6535 * cli/cli-cmds.c (disassemble_command): Use
6536 find_pc_partial_function_sym. Check asm_demangle.
6537 * blockframe.c (cache_pc_function_sym): New global.
6538 (cache_pc_function_name): Remove.
6539 (clear_pc_function_cache): Update.
6540 (find_pc_partial_function_sym): New function, from
6541 find_pc_partial_function.
6542 (find_pc_partial_function): Rewrite using
6543 find_pc_partial_function_sym.
6545 2020-07-28 Tom Tromey <tromey@adacore.com>
6547 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6550 2020-07-28 Tom Tromey <tromey@adacore.com>
6552 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6553 <DW_OP_GNU_variable_value>: Cast to address type.
6555 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6557 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6558 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6559 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6560 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6561 (nbsd_get_siginfo_type): New.
6562 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6563 (_initialize_nbsd_tdep): New.
6565 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6568 * configure: Regenerated.
6570 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6573 * configure: Regenerated.
6575 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6577 * python/py-frame.c: Remove 'user-regs.h' include.
6578 (frapy_read_register): Rewrite to make use of
6579 gdbpy_parse_register_id.
6580 * python/py-registers.c (gdbpy_parse_register_id): New function,
6581 moved here from python/py-unwind.c. Updated the return type, and
6582 also accepts register descriptor objects.
6583 * python/py-unwind.c: Remove 'user-regs.h' include.
6584 (pyuw_parse_register_id): Moved to python/py-registers.c.
6585 (unwind_infopy_add_saved_register): Update to use
6586 gdbpy_parse_register_id.
6587 (pending_framepy_read_register): Likewise.
6588 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6590 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6592 * python/py-registers.c: Add 'user-regs.h' include.
6593 (register_descriptor_iter_find): New function.
6594 (register_descriptor_iterator_object_methods): New static global
6596 (register_descriptor_iterator_object_type): Add pointer to methods
6599 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6601 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6602 for all architectures on FreeBSD 11.3 and later.
6604 2020-07-27 Tom Tromey <tromey@adacore.com>
6606 * gcore.h (load_corefile): Don't declare.
6608 2020-07-27 Tom de Vries <tdevries@suse.de>
6610 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6611 * config.in: Regenerate.
6612 * configure: Regenerate.
6614 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6616 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6617 ws2tcpip.h. When checking whether socklen_t type is defined, use
6618 ws2tcpip.h if it is available and sys/socket.h isn't.
6619 * configure: Regenerate.
6620 * config.in: Regenerate.
6622 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6626 * valops.c (value_ind): Pass address to
6627 readjust_indirect_value_type.
6628 * value.c (readjust_indirect_value_type): Make parameter
6629 non-const, and add extra address parameter. Resolve original type
6631 * value.h (readjust_indirect_value_type): Update function
6632 signature and comment.
6634 2020-07-25 Tom de Vries <tdevries@suse.de>
6637 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6640 2020-07-24 Aaron Merey <amerey@redhat.com>
6642 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6643 * configure: Rebuild.
6645 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6648 * corelow.c (_initialize_corelow): Add period to help text
6649 for "maintenance print core-file-backed-mappings".
6651 2020-07-23 Pedro Alves <pedro@palves.net>
6653 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6654 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6656 * frame.c (frame_cache_generation, get_frame_cache_generation):
6658 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6659 (get_prev_frame_if_no_cycle): On exception, don't touch
6660 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6661 * frame.h (get_frame_cache_generation): Declare.
6663 2020-07-23 Tom de Vries <tdevries@suse.de>
6666 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6667 New default constructor.
6669 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6671 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6672 exclude non-statement entries.
6674 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6676 * NEWS (New commands): Mention new command
6677 "maintenance print core-file-backed-mappings".
6679 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6681 * corelow.c (gdbcmd.h): Include.
6682 (core_target::info_proc_mappings): New method.
6683 (get_current_core_target): New function.
6684 (maintenance_print_core_file_backed_mappings): New function.
6685 (_initialize_corelow): Add core-file-backed-mappings to
6686 "maint print" commands.
6688 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6690 * linux-tdep.c (dump_note_entry_p): New function.
6691 (linux_dump_mapping_p_ftype): New typedef.
6692 (linux_find_memory_regions_full): Add new parameter,
6693 should_dump_mapping_p.
6694 (linux_find_memory_regions): Adjust call to
6695 linux_find_memory_regions_full.
6696 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6697 call to linux_find_memory_regions_full.
6699 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6701 * corelow.c (solist.h, unordered_map): Include.
6702 (class core_target): Add field m_core_file_mappings and
6703 method build_file_mappings.
6704 (core_target::core_target): Call build_file_mappings.
6705 (core_target::~core_target): Free memory associated with
6706 m_core_file_mappings.
6707 (core_target::build_file_mappings): New method.
6708 (core_target::xfer_partial): Use m_core_file_mappings
6709 for memory transfers.
6710 * linux-tdep.c (linux_read_core_file_mappings): New
6712 (linux_core_info_proc_mappings): Rewrite to use
6713 linux_read_core_file_mappings.
6714 (linux_init_abi): Register linux_read_core_file_mappings.
6716 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6718 * arch-utils.c (default_read_core_file_mappings): New function.
6719 * arch-utils.c (default_read_core_file_mappings): Declare.
6720 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6721 * gdbarch.h, gdbarch.c: Regenerate.
6723 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6726 * corelow.c (core_target:xfer_partial): Revise
6727 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6728 case after first checking the stratum beneath the core
6730 (has_all_memory): Return true.
6731 * target.c (raw_memory_xfer_partial): Revise comment
6732 regarding use of has_all_memory.
6734 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6736 * exec.h (section_table_xfer_memory): Revise declaration,
6737 replacing section name parameter with an optional callback
6739 * exec.c (section_table_xfer_memory): Likewise.
6740 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6741 of section_table_xfer_memory.
6743 2020-07-22 Tom Tromey <tromey@adacore.com>
6745 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6746 lookup_symbol_search_name.
6748 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6750 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6751 redundant local variable.
6752 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6753 reference, not pointer, update code accordingly.
6755 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6756 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6758 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6759 * jit.c (jit_breakpoint_re_set_internal): Use the
6760 `skip_jit_symbol_lookup` field.
6762 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6763 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6765 * jit.c (jit_read_descriptor): Define the descriptor address once,
6767 (jit_breakpoint_deleted): Move the declaration of the loop variable
6768 `iter` into the loop header.
6769 (jit_breakpoint_re_set_internal): Move the declaration of the local
6770 variable `objf_data` to the first point of definition.
6771 (jit_event_handler): Move the declaration of local variables
6772 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6773 Rename `objf` to `jited`.
6775 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6777 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6779 * jit.c (get_jiter_objfile_data): Update.
6781 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6782 Simon Marchi <simon.marchi@polymtl.ca>
6784 * jit.c (struct jit_program_space_data): Remove.
6785 (jit_program_space_key): Remove.
6786 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6788 (get_jit_program_space_data): Remove.
6789 (jit_breakpoint_deleted): Iterate on all of the program space's
6791 (jit_inferior_init): Likewise.
6792 (jit_breakpoint_re_set_internal): Likewise. Also change return
6794 (jit_breakpoint_re_set): Pass current_program_space to
6795 jit_breakpoint_re_set_internal.
6797 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6799 * jit.h (struct jiter_objfile_data) <cached_code_address,
6800 jit_breakpoint>: Move to here from ...
6801 * jit.c (jit_program_space_data): ... here.
6802 (jiter_objfile_data::~jiter_objfile_data): Update.
6803 (jit_breakpoint_deleted): Update.
6804 (jit_breakpoint_re_set_internal): Update.
6806 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6808 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6810 (jit_read_descriptor): Remove NULL check.
6811 (jit_event_handler): Add an assertion.
6813 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6815 * jit.h (struct jit_objfile_data): Split into...
6816 (struct jiter_objfile_data): ... this ...
6817 (struct jited_objfile_data): ... and this.
6818 * objfiles.h (struct objfile) <jit_data>: Remove.
6819 <jiter_data, jited_data>: New fields.
6820 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6821 (jiter_objfile_data::~jiter_objfile_data): ... this.
6822 (get_jit_objfile_data): Rename to ...
6823 (get_jiter_objfile_data): ... this.
6824 (add_objfile_entry): Update.
6825 (jit_read_descriptor): Use get_jiter_objfile_data.
6826 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6827 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6828 (jit_inferior_exit_hook): Use objfile's jited_data field.
6830 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6832 * jit.h: Forward-declare `struct minimal_symbol`.
6833 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6834 constructor, destructor, and an objfile* field.
6835 * jit.c (jit_objfile_data): Remove.
6836 (struct jit_objfile_data): Migrate from here to jit.h.
6837 (jit_objfile_data::~jit_objfile_data): New destructor
6838 implementation with code moved from free_objfile_data.
6839 (free_objfile_data): Delete.
6840 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6841 (jit_find_objf_with_entry_addr): Ditto.
6842 (jit_inferior_exit_hook): Ditto.
6843 (_initialize_jit): Remove the call to
6844 register_objfile_data_with_cleanup.
6845 * objfiles.h (struct objfile) <jit_data>: New field.
6847 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6849 * jit.h: Forward-declare `struct objfile`.
6850 (jit_event_handler): Add a second parameter, the JITer objfile.
6851 * jit.c (jit_read_descriptor): Change the signature to take the
6852 JITer objfile as an argument instead of the jit_program_space_data.
6853 (jit_inferior_init): Update the call to jit_read_descriptor.
6854 (jit_event_handler): Use the new JITer objfile argument when calling
6855 jit_read_descriptor.
6856 * breakpoint.c (handle_jit_event): Update the call to
6857 jit_event_handler to pass the JITer objfile.
6859 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6861 * gdbarch.c: Regenerate.
6862 * gdbarch.h: Regenerate.
6863 * gdbarch.sh (handle_segmentation_fault): Remove method.
6864 * infrun.c (handle_segmentation_fault): Remove.
6865 (print_signal_received_reason): Remove call to
6866 handle_segmentation_fault.
6868 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6870 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6871 Rename to sparc64_linux_report_signal_info and add siggnal
6873 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6874 instead of sparc64_linux_handle_segmentation_fault.
6876 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6878 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6879 i386_linux_report_signal_info instead of
6880 i386_linux_handle_segmentation_fault.
6881 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6882 to i386_linux_report_signal_info and add siggnal argument.
6883 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6884 of i386_linux_handle_segmentation_fault.
6885 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6886 to i386_linux_report_signal_info and add siggnal argument.
6888 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6890 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6893 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6895 * gdbarch.c: Regenerate.
6896 * gdbarch.h: Regenerate.
6897 * gdbarch.sh (report_signal_info): New method.
6898 * infrun.c (print_signal_received_reason): Invoke gdbarch
6899 report_signal_info hook if present.
6901 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6903 * python/py-registers.c : Add 'unordered_map' include.
6904 (gdbpy_new_reggroup): Renamed to...
6905 (gdbpy_get_reggroup): ...this. Update to only create register
6906 group descriptors when needed.
6907 (gdbpy_reggroup_iter_next): Update.
6909 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6911 * python/py-registers.c (gdbpy_register_object_data): New static
6913 (gdbpy_register_object_data_init): New function.
6914 (gdbpy_new_register_descriptor): Renamed to...
6915 (gdbpy_get_register_descriptor): ...this, and update to reuse
6916 existing register descriptors where possible.
6917 (gdbpy_register_descriptor_iter_next): Update.
6918 (gdbpy_initialize_registers): Register new gdbarch data.
6920 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6922 * linux-nat.c (stopped_pids): Make static.
6924 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6927 * gdbtypes.c (ada_discrete_type_low_bound,
6928 ada_discrete_type_high_bound): Handle undefined bounds.
6930 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6932 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6934 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6937 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6939 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6940 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6941 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6942 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6943 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6946 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6948 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6949 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6950 which are deprecated in Guile 3.0.
6951 * configure.ac (try_guile_versions): Add "guile-3.0".
6952 * configure (try_guile_versions): Regenerate.
6953 * NEWS: Update entry.
6955 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6956 Doug Evans <dje@google.com>
6959 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6960 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6961 USING_GUILE_BEFORE_2_2.
6962 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6963 Change type to 'scm_t_port_type *'.
6964 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6965 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6966 parameter and honor it. Update callers.
6967 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6968 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6970 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6971 USING_GUILE_BEFORE_2_2.
6972 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6973 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6974 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6975 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6976 and 'SCM_PORT_TYPE'.
6977 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6978 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6979 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6980 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6981 [!USING_GUILE_BEFORE_2_2]: New functions.
6982 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6983 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6984 'gdbscm_memory_port_read'.
6985 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6986 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6987 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6989 (ioscm_init_memory_port): Remove.
6990 (ioscm_init_memory_port_stream): New function
6991 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6993 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6994 Return scm_from_uint (0).
6995 (gdbscm_set_memory_port_read_buffer_size_x)
6996 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6997 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6998 Return scm_from_uint (0).
6999 (gdbscm_set_memory_port_write_buffer_size_x)
7000 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7001 * configure.ac (try_guile_versions): Add "guile-2.2".
7002 * configure: Regenerate.
7005 2020-07-18 Tom Tromey <tom@tromey.com>
7007 * linux-nat.c (linux_multi_process): Remove.
7008 (linux_nat_target::supports_multi_process): Return true.
7010 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7012 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7013 (riscv_lookup_target_description): Return pointer out of
7015 * target-descriptions.c (allocate_target_description): Add
7017 (target_desc_deleter::operator()): Likewise.
7018 * target-descriptions.h (struct target_desc_deleter): Moved to
7020 (target_desc_up): Likewise.
7022 2020-07-17 Tom Tromey <tromey@adacore.com>
7024 * linux-nat.c (linux_nat_target::supports_non_stop)
7025 (linux_nat_target::always_non_stop_p): Use "true".
7026 (linux_nat_target::supports_disable_randomization): Use "true" and
7029 2020-07-16 Caroline Tice <cmtice@google.com>
7031 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7032 (RNGLIST_HEADER_SIZE64): New constant definition.
7033 (struct dwop_section_names): Add rnglists_dwo.
7034 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7035 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7036 (struct dwo_sections): Add rnglists field.
7037 (read_attribut_reprocess): Add tag parameter.
7038 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7039 (cu_debug_rnglists_section): New function (decl & definition).
7040 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7041 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7042 die whose range is being checked; get rnglist section from
7043 cu_debug_rnglists_section, to get from either objfile or dwo file as
7044 appropriate. Add cases for DW_RLE_base_addressx,
7045 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7046 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7047 test inside if-condition and updating complaint message.
7048 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7049 dwarf2_rnglists_process.
7050 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7051 dwarf2_ranges_process.
7052 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7053 need_ranges_base and update comment appropriately. Also pass die tag
7054 to dwarf2_ranges_read.
7055 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7056 need_ranges_base and update comment appropriately. Also pass die tag
7057 to dwarf2_ranges_process.
7058 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7059 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7060 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7061 need_ranges_base and update comment appropriately. Also pass die tag
7062 to read_attribute_reprocess and dwarf2_ranges_read.
7063 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7064 and update function comment appropriately.
7065 (read_loclist_index): Call read_loclists_rnglists_header instead of
7066 read_loclist_header.
7067 (read_rnglist_index): New function.
7068 (read_attribute_reprocess): Add tag parameter. Add code for
7069 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7070 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7072 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7074 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7077 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7079 * arch-utils.c (show_architecture): Update formatting of messages.
7081 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7083 * gdbtypes.h (struct type) <bounds>: Handle array and string
7085 * ada-lang.c (assign_aggregate): Use type::bounds on
7087 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7088 * c-varobj.c (c_number_of_children): Likewise.
7089 (c_describe_child): Likewise.
7090 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7091 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7092 (f_type_print_base): Likewise.
7093 * f-valprint.c (f77_array_offset_tbl): Likewise.
7094 (f77_get_upperbound): Likewise.
7095 (f77_print_array_1): Likewise.
7096 * guile/scm-type.c (gdbscm_type_range): Likewise.
7097 * m2-typeprint.c (m2_array): Likewise.
7098 (m2_is_long_set_of_type): Likewise.
7099 * m2-valprint.c (get_long_set_bounds): Likewise.
7100 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7101 * python/py-type.c (typy_range): Likewise.
7102 * rust-lang.c (rust_internal_print_type): Likewise.
7103 * type-stack.c (type_stack::follow_types): Likewise.
7104 * valarith.c (value_subscripted_rvalue): Likewise.
7105 * valops.c (value_cast): Likewise.
7107 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7109 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7110 callers to use the equivalent accessor methods.
7112 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7114 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7115 (struct type) <bit_stride>: New method.
7116 (TYPE_BIT_STRIDE): Remove.
7117 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7119 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7121 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7122 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7123 callers to use the equivalent accessor methods instead.
7125 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7127 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7128 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7129 callers to use the equivalent accessor methods instead.
7131 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7133 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7134 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7135 to use dynamic_prop::kind.
7137 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7139 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7140 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7141 to get the bound property's kind and check against
7144 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7146 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7147 all callers to use type::range_bounds followed by
7148 dynamic_prop::{low,high}.
7150 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7152 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7153 const_val, set_const_val, baton, set_locexpr, set_loclist,
7154 set_addr_offset, variant_parts, set_variant_parts,
7155 original_type, set_original_type>: New methods.
7156 <kind>: Rename to...
7157 <m_kind>: ... this. Update all users to use the new methods
7159 <data>: Rename to...
7160 <m_data>: ... this. Update all users to use the new methods
7163 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7165 * gdbtypes.c (get_discrete_bounds): Return failure if
7166 the range type's bounds are not both defined and constant
7168 (get_array_bounds): Update comment. Remove undefined bound check.
7170 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7172 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7173 the type::bounds method directly.
7175 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7177 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7178 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7179 are used to set the range type's bounds to use set_bounds.
7181 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7183 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7185 2020-07-10 Pedro Alves <pedro@palves.net>
7187 * gdbthread.h (inferior_ref): Define.
7188 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7189 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7191 (scoped_restore_current_thread::restore):
7192 Adjust to gdb::ref_ptr.
7193 (scoped_restore_current_thread::~scoped_restore_current_thread):
7194 Remove manual decref handling.
7195 (scoped_restore_current_thread::scoped_restore_current_thread):
7197 inferior_ref::new_reference/thread_info_ref::new_reference.
7198 Incref the thread before calling get_frame_id instead of after.
7199 Let TARGET_CLOSE_ERROR propagate.
7201 2020-07-10 Pedro Alves <pedro@palves.net>
7203 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7204 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7205 NOT_AVAILABLE_ERROR.
7206 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7207 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7209 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7210 Pedro Alves <pedro@palves.net>
7213 * infrun.c (threads_are_resumed_pending_p): Delete.
7214 (do_target_wait): Remove threads_are_executing and
7215 threads_are_resumed_pending_p checks from the inferior_matches
7216 lambda. Update comments.
7218 2020-07-10 Pedro Alves <pedro@palves.net>
7221 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7224 2020-07-10 Pedro Alves <pedro@palves.net>
7227 * infrun.c (handle_no_resumed): Handle multiple targets.
7229 2020-07-10 Pedro Alves <pedro@palves.net>
7232 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7235 2020-07-10 Pedro Alves <pedro@palves.net>
7238 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7239 threads, not all threads.
7241 2020-07-10 Pedro Alves <pedro@palves.net>
7244 * remote.c (remote_target::open_1): Pass remote target pointer as
7245 data to create_async_event_handler.
7246 (remote_async_inferior_event_handler): Mark async event handler
7247 before returning if the remote target still has either pending
7248 events or unacknowledged notifications.
7250 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7252 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7254 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7257 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7259 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7262 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7264 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7265 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7266 AT_FREEBSD_PS_STRINGS.
7268 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7270 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7271 of debugfile path on Windows.
7273 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7275 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7278 2020-07-08 Tom Tromey <tromey@adacore.com>
7280 * ada-lang.c (ada_exception_message_1): Use read_memory.
7282 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7285 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7286 special handling for inline frames.
7287 * findvar.c (value_of_register_lazy): Skip inline frames when
7288 creating lazy register values.
7289 * frame.c (frame_id_computed_p): Delete definition.
7290 * frame.h (frame_id_computed_p): Delete declaration.
7292 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7294 * NEWS: Mention additions to Python API.
7295 * python/py-arch.c (archpy_register_groups): New function.
7296 (arch_object_methods): Add 'register_groups' method.
7297 * python/py-registers.c (reggroup_iterator_object): New struct.
7298 (reggroup_object): New struct.
7299 (gdbpy_new_reggroup): New function.
7300 (gdbpy_reggroup_to_string): New function.
7301 (gdbpy_reggroup_name): New function.
7302 (gdbpy_reggroup_iter): New function.
7303 (gdbpy_reggroup_iter_next): New function.
7304 (gdbpy_new_reggroup_iterator): New function
7305 (gdbpy_initialize_registers): Register new types.
7306 (reggroup_iterator_object_type): Define new Python type.
7307 (gdbpy_reggroup_getset): New static global.
7308 (reggroup_object_type): Define new Python type.
7309 * python/python-internal.h
7311 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7313 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7314 * python/py-arch.c (archpy_registers): New function.
7315 (arch_object_methods): Add 'registers' method.
7316 * python/py-registers.c: New file.
7317 * python/python-internal.h
7318 (gdbpy_new_register_descriptor_iterator): Declare.
7319 (gdbpy_initialize_registers): Declare.
7320 * python/python.c (do_start_initialization): Call
7321 gdbpy_initialize_registers.
7322 * NEWS: Mention additions to the Python API.
7324 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7326 * NEWS: Mention new Python API method.
7327 * python/py-unwind.c (pending_framepy_architecture): New function.
7328 (pending_frame_object_methods): Add architecture method.
7330 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7332 * gdbarch.c: Regenerate.
7333 * gdbarch.h: Regenerate.
7334 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7335 (gdbarch_data): Use internal_error for the case where
7336 deprecated_set_gdbarch_data was originally needed.
7337 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7338 and use passed in obstack.
7339 (libunwind_frame_set_descr): Should no longer get back NULL from
7341 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7343 * user-regs.c (user_regs_init): Update parameters, and use passed
7345 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7346 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7348 2020-07-06 Tom de Vries <tdevries@suse.de>
7350 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7351 End-Of-Sequence in lte_is_less_than.
7352 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7353 "gdb: Don't reorder line table entries too much when sorting".
7355 2020-07-06 Tom de Vries <tdevries@suse.de>
7358 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7360 2020-07-05 Tom de Vries <tdevries@suse.de>
7363 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7364 std::uncaught_exceptions instead of deprecated
7365 std::uncaught_exception.
7367 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7369 * macroexp.h (macro_stringify): Return
7370 gdb::unique_xmalloc_ptr<char>.
7371 * macroexp.c (macro_stringify): Likewise.
7372 * macrotab.c (fixup_definition): Update.
7374 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7376 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7377 (lex_one_token): Update.
7378 * macroexp.c (struct macro_buffer) <release>: Return
7379 gdb::unique_xmalloc_ptr<char>.
7380 (macro_stringify): Update.
7381 (macro_expand): Update.
7382 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7383 * macroexp.h (macro_expand_next): Likewise.
7385 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7387 * macroexp.h (macro_lookup_ftype): Remove.
7388 (macro_expand, macro_expand_once, macro_expand_next): Remove
7389 lookup function parameters, add scope parameter.
7390 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7391 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7392 * macroscope.h (standard_macro_lookup): Change parameter type
7394 * macroscope.c (standard_macro_lookup): Likewise.
7395 * c-exp.y (lex_one_token): Update.
7396 * macrocmd.c (macro_expand_command): Likewise.
7397 (macro_expand_once_command): Likewise.
7399 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7401 * inf-loop.c (inferior_event_handler): Remove client_data param.
7402 * inf-loop.h (inferior_event_handler): Likewise.
7403 * infcmd.c (step_1): Adjust.
7404 * infrun.c (proceed): Adjust.
7405 (fetch_inferior_event): Remove client_data param.
7406 (infrun_async_inferior_event_handler): Adjust.
7407 * infrun.h (fetch_inferior_event): Remove `void *` param.
7408 * linux-nat.c (handle_target_event): Adjust.
7409 * record-btrace.c (record_btrace_handle_async_inferior_event):
7411 * record-full.c (record_full_async_inferior_event_handler):
7413 * remote.c (remote_async_inferior_event_handler): Adjust.
7415 2020-07-01 Tom Tromey <tom@tromey.com>
7417 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7418 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7420 2020-07-01 Tom Tromey <tom@tromey.com>
7422 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7424 (tui_win_info::make_window): Merge with
7425 tui_gen_win_info::make_window.
7426 (tui_win_info::make_visible): Move from tui_gen_win_info.
7427 * tui/tui-win.c (tui_win_info::max_width): Move from
7429 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7431 <window_factory>: Likewise.
7432 * tui/tui-layout.c (tui_win_info::resize): Move from
7434 (make_standard_window): Change return type.
7435 (get_locator_window, tui_get_window_by_name): Likewise.
7436 (tui_layout_window::apply): Remove a cast.
7437 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7438 (struct tui_win_info): Merge with tui_gen_win_info.
7439 (struct tui_gen_win_info): Remove.
7441 2020-07-01 Tom Tromey <tom@tromey.com>
7443 * tui/tui-stack.h (struct tui_locator_window): Derive from
7445 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7446 <can_box>: New method.
7448 2020-07-01 Tom Tromey <tom@tromey.com>
7450 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7452 2020-07-01 Tom Tromey <tom@tromey.com>
7454 * tui/tui-regs.c (tui_data_window::display_registers_from)
7455 (tui_data_window::display_registers_from)
7456 (tui_data_window::first_data_item_displayed)
7457 (tui_data_window::delete_data_content_windows): Update.
7458 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7460 (tui_data_window::check_register_values): Update.
7461 (tui_data_item_window::rerender): Add parameters. Update.
7462 (tui_data_item_window::refresh_window): Remove.
7463 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7465 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7467 <refresh_window, max_height, min_height>: Remove.
7468 <rerender>: Add parameters.
7469 <x, y, visible>: New members.
7470 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7471 <m_item_width>: New member.
7473 2020-07-01 Tom Tromey <tom@tromey.com>
7475 * tui/tui-regs.c (tui_data_window::show_register_group)
7476 (tui_data_window::check_register_values): Update.
7477 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7480 2020-07-01 Tom Tromey <tom@tromey.com>
7482 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7485 2020-07-01 Tom Tromey <tom@tromey.com>
7487 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7488 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7490 2020-07-01 Tom Tromey <tom@tromey.com>
7492 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7493 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7494 (struct tui_line_or_address): Move from tui-data.h.
7495 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7496 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7497 (tui_cmd_window, tui_source_window_base, tui_source_window)
7498 (tui_disasm_window): Don't declare.
7499 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7501 (SINGLE_KEY): Move to tui-stack.c.
7503 2020-07-01 Tom Tromey <tom@tromey.com>
7505 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7507 * tui/tui-regs.c (class tab_expansion_file): New.
7508 (tab_expansion_file::write): New method.
7509 (tui_register_format): Change return type. Use
7511 (tui_get_register, tui_data_window::display_registers_from)
7512 (tui_data_item_window::rerender): Update.
7513 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7514 * tui/tui-io.c (tui_expand_tabs): Remove.
7516 2020-07-01 Tom Tromey <tom@tromey.com>
7518 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7520 2020-07-01 Fangrui Song <maskray@google.com>
7522 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7524 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7526 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7527 forms for DW_AT_associated and DW_AT_allocated attributes,
7528 which is already checked in function attr_to_dynamic_prop.
7530 2020-06-30 Tom Tromey <tromey@adacore.com>
7532 * dwarf2/read.c (quirk_rust_enum): Correctly call
7533 alloc_rust_variant for default-less enum.
7535 2020-06-30 Tom Tromey <tromey@adacore.com>
7538 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7541 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7543 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7544 * gdbarch.h: Re-generate.
7546 2020-06-28 Tom Tromey <tom@tromey.com>
7548 * command.h (cmd_types): Remove.
7549 (cmd_type): Don't declare.
7550 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7552 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7553 * cli/cli-decode.c (cmd_type): Remove.
7555 2020-06-27 Pedro Alves <palves@redhat.com>
7557 * fork-child.c (prefork_hook): Adjust.
7558 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7560 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7561 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7562 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7563 Remove declarations.
7564 (struct inferior) <set_tty, tty>: New methods.
7565 (struct inferior) <terminal>: Rename to ...
7566 (struct inferior) <m_terminal>: ... this and make private.
7567 * main.c (captured_main_1): Adjust.
7568 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7569 (mi_cmd_inferior_tty_show): Adjust.
7570 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7571 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7573 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7575 * configure.ac: Add --enable-libctf: handle --disable-static
7577 * acinclude.m4: sinclude ../config/enable.m4.
7578 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7579 (LIBCTF): Substitute in.
7580 (CTF_DEPS): New, likewise.
7581 (CLIBS): libctf needs symbols from libbfd: move earlier.
7582 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7584 * ctfread.c: Surround in ENABLE_LIBCTF.
7585 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7586 * configure: Regenerate.
7587 * config.in: Likewise.
7589 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7591 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7593 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7595 * inferior.h (struct inferior) <terminal>: Change type to
7596 gdb::unique_xmalloc_ptr<char>.
7597 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7598 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7599 field, adjust to unique pointer.
7600 (get_inferior_io_terminal): Adjust to unique pointer.
7602 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7604 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7605 registers, not just the known core set of registers.
7607 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7609 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7610 fflags, frm, and fcsr registers.
7611 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7613 (riscv_tdesc_unknown_reg): New function.
7614 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7615 tdesc_use_registers.
7616 * riscv-tdep.h (struct gdbarch_tdep): Add
7617 unknown_csrs_first_regnum, unknown_csrs_count,
7618 duplicate_fflags_regnum, duplicate_frm_regnum, and
7619 duplicate_fcsr_regnum fields.
7621 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7623 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7624 callback, use the callback (when not null) to help number unknown
7626 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7627 (tdesc_use_registers): Add extra parameter to declaration.
7629 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7631 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7633 (class riscv_pending_register_alias): Likewise.
7634 (riscv_register_feature::register_info): Change 'required_p' field
7635 to 'required', and change its type. Add 'check' member function.
7636 (riscv_register_feature::register_info::check): Define new member
7638 (riscv_xreg_feature): Change initialisation of 'required' field.
7639 (riscv_freg_feature): Likewise.
7640 (riscv_virtual_feature): Likewise.
7641 (riscv_csr_feature): Likewise.
7642 (riscv_check_tdesc_feature): Take extra parameter, the csr
7643 tdesc_feature, rewrite the function to use the new
7644 riscv_register_feature::register_info::check function.
7645 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7647 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7649 * features/Makefile: Remove all references to the deleted files
7651 * features/riscv/32bit-csr.c: Deleted.
7652 * features/riscv/32bit-csr.xml: Deleted.
7653 * features/riscv/64bit-csr.c: Deleted.
7654 * features/riscv/64bit-csr.xml: Deleted.
7655 * features/riscv/rebuild-csr-xml.sh: Deleted.
7657 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7659 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7660 whitespace error for declaration of names member variable.
7661 (struct riscv_register_feature): Add new prefer_first_name member
7662 variable, and fix whitespace error in declaration of registers.
7663 (riscv_xreg_feature): Initialize prefer_first_name field.
7664 (riscv_freg_feature): Likewise.
7665 (riscv_virtual_feature): Likewise.
7666 (riscv_csr_feature): Likewise.
7667 (riscv_register_name): Expand on comments. Remove register name
7668 modifications for CSR and virtual registers.
7670 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7672 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7675 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7677 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7679 (class riscv_pending_register_alias): New class.
7680 (riscv_check_tdesc_feature): Take vector of pending aliases and
7681 populate it as appropriate.
7682 (riscv_setup_register_aliases): Delete.
7683 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7684 to riscv_check_tdesc_feature in all cases. Use the vector to
7685 create the register aliases.
7687 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7689 * sol2-tdep.c (sol2_static_transform_name): Remove.
7690 (sol2_init_abi): Don't register it.
7691 * gdbarch.sh (static_transform_name): Remove.
7692 * gdbarch.c, gdbarch.h: Regenerate.
7694 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7695 gdbarch_static_transform_name.
7696 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7697 * stabsread.c (define_symbol) <'X'>: Remove.
7698 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7701 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7702 <'S'>: Remove call to gdbarch_static_transform_name.
7704 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7706 * procfs.c (procfs_pre_trace): New function.
7707 (procfs_target::create_inferior): Pass it to fork_inferior.
7709 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7711 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7712 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7713 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7714 sol2-tdep.o, sparc-sol2-tdep.o.
7715 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7716 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7717 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7718 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7720 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7722 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7723 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7725 Remove calls to set_gdbarch_skip_solib_resolver,
7726 set_gdbarch_core_pid_to_str.
7727 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7728 (i386_sol2_static_transform_name): Remove.
7729 (i386_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.
7733 Use sol2_sigtramp_p.
7734 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7735 (sol2_sigtramp_p): New function.
7736 (sol2_static_transform_name): New function.
7737 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7738 (sol2_init_abi): New function.
7739 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7740 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7741 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7742 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7743 (sparc_sol2_static_transform_name): Remove.
7744 (sparc32_sol2_init_abi): Call sol2_init_abi.
7745 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7746 set_gdbarch_static_transform_name,
7747 set_gdbarch_skip_solib_resolver,
7748 set_gdbarch_core_pid_to_str.
7749 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7750 (sparc_sol2_static_transform_name): Remove
7751 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7752 call sol2_sigtramp_p.
7753 (sparc64_sol2_init_abi): Call sol2_init_abi.
7754 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7755 set_gdbarch_static_transform_name,
7756 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7758 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7760 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7761 * exec.c (validate_exec_file): If from_tty, set both
7762 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7763 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7764 and from_tty, unconditionally ask a confirmation.
7766 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7768 * target-descriptions.c (tdesc_architecture_name): Protect against
7769 NULL pointer dereference.
7770 (maint_print_xml_tdesc_cmd): New function.
7771 (_initialize_target_descriptions): Register new 'maint print
7772 xml-tdesc' command and give it the filename completer.
7773 * NEWS: Mention new 'maint print xml-tdesc' command.
7775 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7777 * target-descriptions.c (class tdesc_compatible_info): New class.
7778 (struct target_desc): Change type of compatible vector.
7779 (tdesc_compatible_p): Update for change in type of
7780 target_desc::compatible.
7781 (tdesc_compatible_info_list): New function.
7782 (tdesc_compatible_info_arch_name): New function.
7783 (tdesc_add_compatible): Update for change in type of
7784 target_desc::compatible.
7785 (print_c_tdesc::visit_pre): Likewise.
7787 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7789 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7790 whitespace to underscore.
7791 (maint_print_c_tdesc_cmd): Use fake filename for target
7792 descriptions that came from the target.
7793 (_initialize_target_descriptions): Add filename command completion
7794 for 'maint print c-tdesc'.
7796 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7798 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7801 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7803 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7805 (dwarf2_find_location_expression): Likewise.
7806 (call_site_parameter_matches): Likewise.
7807 (dwarf2_compile_expr_to_ax): Likewise.
7808 (disassemble_dwarf_expression): Likewise.
7809 (loclist_describe_location): Likewise.
7811 2020-06-23 Pedro Alves <palves@redhat.com>
7813 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7814 progspace-and-thread.h. Include scoped-mock-context.h instead.
7815 (register_to_value_test): Use scoped_mock_context.
7816 * regcache.c: Include "scoped-mock-context.h".
7817 (cooked_read_test): Don't error out if a target is already pushed.
7818 Use scoped_mock_context. Adjust.
7819 * scoped-mock-context.h: New file.
7821 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7823 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7825 (ada_language::is_string_type_p): New member function.
7826 * c-lang.c (c_language_data): Delete la_is_string_type_p
7828 (cplus_language_data): Likewise.
7829 (asm_language_data): Likewise.
7830 (minimal_language_data): Likewise.
7831 * d-lang.c (d_language_data): Likewise.
7832 * f-lang.c (f_is_string_type_p): Delete function, implementation
7833 moved to f_language::is_string_type_p.
7834 (f_language_data): Delete la_is_string_type_p initializer.
7835 (f_language::is_string_type_p): New member function,
7836 implementation from f_is_string_type_p.
7837 * go-lang.c (go_is_string_type_p): Delete function, implementation
7838 moved to go_language::is_string_type_p.
7839 (go_language_data): Delete la_is_string_type_p initializer.
7840 (go_language::is_string_type_p): New member function,
7841 implementation from go_is_string_type_p.
7842 * language.c (language_defn::is_string_type_p): Define new member
7844 (default_is_string_type_p): Make static, add comment copied from
7846 (unknown_language_data): Delete la_is_string_type_p initializer.
7847 (unknown_language::is_string_type_p): New member function.
7848 (auto_language_data): Delete la_is_string_type_p initializer.
7849 (auto_language::is_string_type_p): New member function.
7850 * language.h (language_data): Delete la_is_string_type_p field.
7851 (language_defn::is_string_type_p): Declare new function.
7852 (default_is_string_type_p): Delete desclaration, move comment to
7854 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7855 moved to m2_language::is_string_type_p.
7856 (m2_language_data): Delete la_is_string_type_p initializer.
7857 (m2_language::is_string_type_p): New member function,
7858 implementation from m2_is_string_type_p.
7859 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7861 * opencl-lang.c (opencl_language_data): Likewise.
7862 * p-lang.c (pascal_is_string_type_p): Delete function,
7863 implementation moved to pascal_language::is_string_type_p.
7864 (pascal_language_data): Delete la_is_string_type_p initializer.
7865 (pascal_language::is_string_type_p): New member function,
7866 implementation from pascal_is_string_type_p.
7867 * rust-lang.c (rust_is_string_type_p): Delete function,
7868 implementation moved to rust_language::is_string_type_p.
7869 (rust_language_data): Delete la_is_string_type_p initializer.
7870 (rust_language::is_string_type_p): New member function,
7871 implementation from rust_is_string_type_p.
7872 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7875 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7877 * ada-lang.c (ada_language_data): Delete la_print_typedef
7879 (ada_language::print_typedef): New member function.
7880 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7881 (cplus_language_data): Likewise.
7882 (asm_language_data): Likewise.
7883 (minimal_language_data): Likewise.
7884 * d-lang.c (d_language_data): Likewise.
7885 * f-lang.c (f_language_data): Likewise.
7886 (f_language::print_typedef): New member function.
7887 * go-lang.c (go_language_data): Delete la_print_typedef
7889 * language.c (language_defn::print_typedef): Define member
7891 (unknown_language_data): Delete la_print_typedef initializer.
7892 (unknown_language::print_typedef): New member function.
7893 (auto_language_data): Delete la_print_typedef initializer.
7894 (auto_language::print_typedef): New member function.
7895 * language.h (language_data): Delete la_print_typedef field.
7896 (language_defn::print_typedef): Declare new member function.
7897 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7898 (default_print_typedef): Delete declaration.
7899 * m2-lang.c (m2_language_data): Delete la_print_typedef
7901 (m2_language::print_typedef): New member function.
7902 * objc-lang.c (objc_language_data): Delete la_print_typedef
7904 * opencl-lang.c (opencl_language_data): Likewise.
7905 * p-lang.c (pascal_language_data): Likewise.
7906 (pascal_language::print_typedef): New member function.
7907 * rust-lang.c (rust_print_typedef): Delete function,
7908 implementation moved to rust_language::print_typedef.
7909 (rust_language): Delete la_print_typedef initializer.
7910 (rust_language::print_typedef): New member function,
7911 implementation from rust_print_typedef.
7912 * typeprint.c (default_print_typedef): Delete.
7914 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7916 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7917 (ada_language::printstr): New member function.
7918 * c-lang.c (c_language_data): Delete la_printstr initializer.
7919 (cplus_language_data): Likewise.
7920 (asm_language_data): Likewise.
7921 (minimal_language_data): Likewise.
7922 * d-lang.c (d_language_data): Likewise.
7923 * f-lang.c (f_printstr): Rename to f_language::printstr.
7924 (f_language_data): Delete la_printstr initializer.
7925 (f_language::printstr): New member function, implementation from
7927 * go-lang.c (go_language_data): Delete la_printstr initializer.
7928 * language.c (language_defn::printstr): Define new member
7930 (unk_lang_printstr): Delete.
7931 (unknown_language_data): Delete la_printstr initializer.
7932 (unknown_language::printstr): New member function.
7933 (auto_language_data): Delete la_printstr initializer.
7934 (auto_language::printstr): New member function.
7935 * language.h (language_data): Delete la_printstr field.
7936 (language_defn::printstr): Declare new member function.
7937 (LA_PRINT_STRING): Update call to printstr.
7938 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7939 (m2_language_data): Delete la_printstr initializer.
7940 (m2_language::printstr): New member function, implementation from
7942 * objc-lang.c (objc_language_data): Delete la_printstr
7944 * opencl-lang.c (opencl_language_data): Likewise.
7945 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7946 (pascal_language_data): Delete la_printstr initializer.
7947 (pascal_language::printstr): New member function, implementation
7948 from pascal_printstr.
7949 * p-lang.h (pascal_printstr): Delete declaration.
7950 * rust-lang.c (rust_printstr): Update header comment.
7951 (rust_language_data): Delete la_printstr initializer.
7952 (rust_language::printstr): New member function.
7954 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7956 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7957 (ada_language::printchar): New member function.
7958 * c-lang.c (c_language_data): Delete la_printchar initializer.
7959 (cplus_language_data): Likewise.
7960 (asm_language_data): Likewise.
7961 (minimal_language_data): Likewise.
7962 * d-lang.c (d_language_data): Likewise.
7963 * f-lang.c (f_printchar): Rename to f_language::printchar.
7964 (f_language_data): Delete la_printchar initializer.
7965 (f_language::printchar): New member function, implementation from
7967 * go-lang.c (go_language_data): Delete la_printchar initializer.
7968 * language.c (unk_lang_printchar): Delete.
7969 (language_defn::printchar): Define new member function.
7970 (unknown_language_data): Delete la_printchar initializer.
7971 (unknown_language::printchar): New member function.
7972 (auto_language_data): Delete la_printchar initializer.
7973 (auto_language::printchar): New member function.
7974 * language.h (language_data): Delete la_printchar field.
7975 (language_defn::printchar): Declare new member function.
7976 (LA_PRINT_CHAR): Update call to printchar.
7977 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7978 (m2_language::printchar): New member function.
7979 * objc-lang.c (objc_language_data): Delete la_printchar
7981 * opencl-lang.c (opencl_language_data): Likewise.
7982 * p-lang.c (pascal_language_data): Delete la_printchar
7984 (pascal_language::printchar): New member function.
7985 * rust-lang.c (rust_printchar): Rename to
7986 rust_language::printchar.
7987 (rust_language_data): Delete la_printchar initializer.
7988 (rust_language::printchar): New member function, implementation
7989 from rust_printchar.
7991 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7993 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7994 (ada_language_data): Delete la_emitchar initializer.
7995 (ada_language::emitchar): New member function, implementation from
7997 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7998 (cplus_language_data): Likewise.
7999 (asm_language_data): Likewise.
8000 (minimal_language_data): Likewise.
8001 * d-lang.c (d_language_data): Likewise.
8002 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8003 (f_language_data): Delete la_emitchar initializer.
8004 (f_language::emitchar): New member function, implementation from
8006 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8007 * language.c (unk_lang_emit_char): Delete.
8008 (language_defn::emitchar): New member function definition.
8009 (unknown_language_data): Delete la_emitchar initializer.
8010 (unknown_language::emitchar): New member function.
8011 (auto_language_data): Delete la_emitchar initializer.
8012 (auto_language::emitchar): New member function.
8013 * language.h (language_data): Delete la_emitchar field.
8014 (language_defn::emitchar): New member field declaration.
8015 (LA_EMIT_CHAR): Update call to emitchar.
8016 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8017 (m2_language_data): Delete la_emitchar initializer.
8018 (m2_language::emitchar): New member function, implementation from
8020 * objc-lang.c (objc_language_data): Delete la_emitchar
8022 * opencl-lang.c (opencl_language_data): Likewise.
8023 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8024 (pascal_language_data): Delete la_emitchar initializer.
8025 (pascal_language::emitchar): New member function, implementation
8026 from pascal_emit_char.
8027 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8028 (rust_language_data): Delete la_emitchar initializer.
8029 (rust_language::emitchar): New member function, implementation
8032 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8034 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8035 (ada_language_data): Delete la_post_parser initializer.
8036 (ada_language::post_parser): New member function.
8037 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8038 (cplus_language_data): Likewise.
8039 (asm_language_data): Likewise.
8040 (minimal_language_data): Likewise.
8041 * d-lang.c (d_language_data): Likewise.
8042 * f-lang.c (f_language_data): Likewise.
8043 * go-lang.c (go_language_data): Likewise.
8044 * language.c (unknown_language_data): Likewise.
8045 (auto_language_data): Likewise.
8046 * language.h (language_data): Delete la_post_parser field.
8047 (language_defn::post_parser): New member function.
8048 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8049 * objc-lang.c (objc_language_data): Likewise.
8050 * opencl-lang.c (opencl_language_data): Likewise.
8051 * p-lang.c (pascal_language_data): Likewise.
8052 * parse.c (parse_exp_in_context): Update call to post_parser.
8053 (null_post_parser): Delete definition.
8054 * parser-defs.h (null_post_parser): Delete declaration.
8055 * rust-lang.c (rust_language_data): Delete la_post_parser
8058 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8060 * ada-lang.c (parse): Rename to ada_language::parser.
8061 (ada_language_data): Delete la_parser initializer.
8062 (ada_language::parser): New member function, implementation from
8064 * c-lang.c (c_language_data): Delete la_parser initializer.
8065 (cplus_language_data): Likewise.
8066 (asm_language_data): Likewise.
8067 (minimal_language_data): Likewise.
8068 * d-lang.c (d_language_data): Likewise.
8069 (d_language::parser): New member function.
8070 * f-lang.c (f_language_data): Delete la_parser initializer.
8071 (f_language::parser): New member function.
8072 * go-lang.c (go_language_data): Delete la_parser initializer.
8073 (go_language::parser): New member function.
8074 * language.c (unk_lang_parser): Delete.
8075 (language_defn::parser): Define new member function.
8076 (unknown_language_data): Delete la_parser initializer.
8077 (unknown_language::parser): New member function.
8078 (auto_language_data): Delete la_parser initializer.
8079 (auto_language::parser): New member function.
8080 * language.h (language_data): Delete la_parser field.
8081 (language_defn::parser): Declare new member function.
8082 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8083 (m2_language::parser): New member function.
8084 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8085 * opencl-lang.c (opencl_language_data): Likewise.
8086 * p-lang.c (pascal_language_data): Likewise.
8087 (pascal_language::parser): New member function.
8088 * parse.c (parse_exp_in_context): Update call to parser.
8089 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8090 (rust_language::parser): New member function.
8092 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8094 * top.c (print_gdb_configuration): Print --with-python-libdir
8095 configuration value.
8097 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8099 * NEWS: Mention change to the alias command.
8101 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8103 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8104 (alias_command_completer)
8105 (make_alias_options_def_group): New functions.
8106 (alias_opts, alias_option_defs): New struct and array.
8107 (alias_usage_error): Update usage.
8108 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8109 Use option framework.
8110 (_initialize_cli_cmds): Update alias command help.
8111 Update aliases command help.
8113 Add NULL for new default_args lookup_cmd argument.
8114 (valid_command_p): Rename to validate_aliased_command.
8115 Add NULL for new default_args lookup_cmd argument. Verify that the
8116 aliased_command has no default args.
8117 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8118 (lookup_cmd_1, lookup_cmd): New argument default_args.
8120 Add NULL for new default_args lookup_cmd argument.
8121 (print_help_for_command): Show default args under the layout
8122 alias some_alias = some_aliased_cmd some_alias_default_arg.
8123 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8124 xfree default_args in destructor.
8125 * cli/cli-script.c (process_next_line, do_define_command):
8126 Add NULL for new default_args lookup_cmd argument.
8127 * command.h: Declare new default_args argument in lookup_cmd
8129 * completer.c (complete_line_internal_1):
8130 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8131 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8132 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8134 * infcmd.c (_initialize_infcmd): Likewise.
8135 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8136 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8137 * python/py-param.c (add_setshow_generic): Likewise.
8138 * remote.c (_initialize_remote): Likewise.
8139 * top.c (execute_command): Prepend default_args if command has some.
8141 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8142 * tracepoint.c (validate_actionline, encode_actions_1):
8143 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8145 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8147 * jit.c (jit_read_descriptor): Use bool as the return type.
8148 (jit_breakpoint_re_set_internal): Use bool as the return type.
8149 Invert the return value logic; return true if the jit breakpoint
8150 has been successfully initialized.
8151 (jit_inferior_init): Update the call to
8152 jit_breakpoint_re_set_internal.
8154 2020-06-22 Pedro Alves <palves@redhat.com>
8157 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8158 Use the current inferior instead. Don't return
8159 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8161 * sol-thread.c (sol_thread_target::wait): Don't reference
8163 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8164 (sol_update_thread_list_callback): Use the current inferior's pid
8165 instead of inferior_ptid.
8167 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8169 * procfs.c: Cleanup many comments.
8171 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8172 (AFTER_WATCHFLAG): Replace by value.
8174 (MAIN_PROC_NAME_FORMAT): Inline ...
8175 (create_procinfo): ... here.
8177 (procfs_debug_inferior): Remove SYS_exec handling.
8178 (syscall_is_exec): Likewise.
8179 (procfs_set_exec_trap): Likewise.
8181 (syscall_is_lwp_exit): Inline in callers.
8182 (syscall_is_exit): Likewise.
8183 (syscall_is_exec): Likewise.
8184 (syscall_is_lwp_create): Likewise.
8186 (invalidate_cache): Remove #if 0 code.
8188 (make_signal_thread_runnable): Remove.
8189 (procfs_target::resume): Remove #if 0 code.
8191 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8194 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8196 (procfs_target::create_inferior): ... here.
8198 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8200 * exec.c (validate_exec_file): Ensure the build-id is up to
8201 date by calling reopen_exec_file (that checks file timestamp
8202 to decide to re-read the file).
8204 2020-06-18 Pedro Alves <palves@redhat.com>
8207 * gdbthread.h (delete_thread, delete_thread_silent)
8208 (find_thread_ptid): Update comments.
8209 * thread.c (current_thread_): New global.
8210 (is_current_thread): Move higher, and reimplement.
8211 (inferior_thread): Reimplement.
8212 (set_thread_exited): Use bool. Add assertions.
8213 (add_thread_silent): Simplify thread-reuse handling by always
8214 calling delete_thread.
8215 (delete_thread): Remove intro comment.
8216 (find_thread_ptid): Skip exited threads.
8217 (switch_to_thread_no_regs): Write to current_thread_.
8218 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8219 INFERIOR_PTID. Clear current_thread_.
8221 2020-06-18 Pedro Alves <palves@redhat.com>
8223 * aix-thread.c (pd_update): Use switch_to_thread.
8225 2020-06-18 Pedro Alves <palves@redhat.com>
8227 * ravenscar-thread.c (ravenscar_thread_target): Update.
8228 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8229 (ravenscar_thread_target::add_active_thread): ... this. Don't
8230 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8231 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8233 2020-06-18 Pedro Alves <palves@redhat.com>
8235 * nat/windows-nat.c (current_windows_thread): Remove.
8236 * nat/windows-nat.h (current_windows_thread): Remove.
8237 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8239 (display_selectors): Adjust to fetch the current
8240 windows_thread_info based on inferior_ptid.
8241 (fake_create_process): No longer write to current_windows_thread.
8242 (windows_nat_target::get_windows_debug_event):
8243 Don't set inferior_ptid or current_windows_thread.
8244 (windows_nat_target::wait): Adjust to not rely on
8245 current_windows_thread.
8246 (do_initial_windows_stuff): Now a method of windows_nat_target.
8247 Switch to the last_ptid thread.
8248 (windows_nat_target::attach): Adjust.
8249 (windows_nat_target::detach): Use switch_to_no_thread instead of
8250 writing to inferior_ptid directly.
8251 (windows_nat_target::create_inferior): Adjust.
8253 2020-06-18 Pedro Alves <palves@redhat.com>
8255 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8257 2020-06-18 Pedro Alves <palves@redhat.com>
8259 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8260 after creating it, instead of writing to inferior_ptid. Don't
8261 write to inferior_ptid.
8263 2020-06-18 Pedro Alves <palves@redhat.com>
8265 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8267 2020-06-18 Pedro Alves <palves@redhat.com>
8269 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8270 it, instead of writing to inferior_ptid.
8272 2020-06-18 Pedro Alves <palves@redhat.com>
8274 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8277 2020-06-18 Pedro Alves <palves@redhat.com>
8279 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8280 instead of writing to inferior_ptid directly.
8282 2020-06-18 Pedro Alves <palves@redhat.com>
8284 * corelow.c (core_target::close): Use switch_to_no_thread instead
8285 of writing to inferior_ptid directly.
8286 (add_to_thread_list, core_target_open): Use switch_to_thread
8287 instead of writing to inferior_ptid directly.
8289 2020-06-18 Pedro Alves <palves@redhat.com>
8291 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8293 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8295 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8296 inferior_ptid directly.
8297 (darwin_nat_target::init_thread_list): Switch to thread, instead
8298 of writing to inferior_ptid.
8299 (darwin_nat_target::attach): Don't write to inferior_ptid.
8300 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8302 2020-06-18 Pedro Alves <palves@redhat.com>
8304 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8306 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8307 Instead use switch_to_thread.
8308 (gnu_nat_target::detach): Use switch_to_no_thread
8309 instead of writing to inferior_ptid directly. Used passed-in
8310 inferior instead of looking up the inferior by pid.
8312 2020-06-18 Pedro Alves <palves@redhat.com>
8314 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8317 2020-06-18 Pedro Alves <palves@redhat.com>
8319 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8321 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8323 (nto_procfs_target::detach): Avoid referencing
8324 inferior_ptid. Use switch_to_no_thread instead of writing to
8325 inferior_ptid directly.
8326 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8327 instead of writing to inferior_ptid directly.
8328 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8331 2020-06-18 Pedro Alves <palves@redhat.com>
8333 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8334 after creating it, instead of writing to inferior_ptid.
8335 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8336 to inferior_ptid directly.
8337 (gdbsim_target::wait): Don't write to inferior_ptid.
8339 2020-06-18 Pedro Alves <palves@redhat.com>
8341 * remote.c (remote_target::remote_notice_new_inferior): Use
8342 switch_to_thread instead of writing to inferior_ptid directly.
8343 (remote_target::add_current_inferior_and_thread): Use
8344 switch_to_no_thread instead of writing to inferior_ptid directly.
8345 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8346 and switch_to_thread instead of using set_current_inferior or
8347 writing to inferior_ptid directly.
8349 2020-06-18 Pedro Alves <palves@redhat.com>
8351 * tracectf.c (ctf_target_open): Switch to added thread instead of
8352 writing to inferior_ptid directly.
8353 (ctf_target::close): Use switch_to_no_thread instead of writing to
8354 inferior_ptid directly.
8356 2020-06-18 Pedro Alves <palves@redhat.com>
8358 * tracefile-tfile.c (tfile_target_open): Don't write to
8359 inferior_ptid directly, instead switch to added thread.
8360 (tfile_target::close): Use switch_to_no_thread instead of writing
8361 to inferior_ptid directly.
8363 2020-06-18 Pedro Alves <palves@redhat.com>
8365 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8366 (procfs_target::detach): Use switch_to_no_thread
8367 instead of writing to inferior_ptid directly.
8368 (do_attach): Change return type to void. Switch to the added
8370 (procfs_target::create_inferior): Switch to the added thread.
8371 (procfs_do_thread_registers): Don't write to inferior_ptid.
8373 2020-06-18 Pedro Alves <palves@redhat.com>
8375 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8376 of writing to inferior_ptid.
8377 (scoped_restore_exited_inferior): Delete.
8378 (handle_vfork_child_exec_or_exit): Simplify using
8379 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8380 instead of writing to inferior_ptid.
8381 (THREAD_STOPPED_BY): Delete.
8382 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8383 (thread_stopped_by_hw_breakpoint): Delete.
8384 (save_waitstatus): Use
8385 scoped_restore_current_thread+switch_to_thread, and call
8386 target_stopped_by_watchpoint instead of
8387 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8388 instead of thread_stopped_by_sw_breakpoint, and
8389 target_stopped_by_hw_breakpoint instead of
8390 thread_stopped_by_hw_breakpoint.
8391 (handle_inferior_event)
8392 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8393 inferior_ptid directly, nor
8394 set_current_inferior/set_current_program_space. Use
8395 switch_to_thread / switch_to_inferior_no_thread instead.
8397 2020-06-18 Pedro Alves <palves@redhat.com>
8399 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8400 instead of writing to inferior_ptid.
8402 2020-06-18 Pedro Alves <palves@redhat.com>
8404 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8406 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8407 to the added thread.
8408 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8409 instead of writing to inferior_ptid.
8411 2020-06-18 Pedro Alves <palves@redhat.com>
8413 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8414 (register_to_value_test): Mock a program_space too. Heap-allocate
8415 the address space. Don't write to inferior_ptid. Use
8416 switch_to_thread instead.
8418 2020-06-18 Pedro Alves <palves@redhat.com>
8420 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8422 (find_signalled_thread()): New, factored out from
8423 linux_make_corefile_notes and adjusted to handle exited threads.
8424 (linux_make_corefile_notes): Adjust to use the new
8425 find_signalled_thread.
8427 2020-06-18 Pedro Alves <palves@redhat.com>
8429 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8430 of saving/restoring inferior_ptid.
8432 2020-06-17 Tom Tromey <tom@tromey.com>
8434 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8435 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8437 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8439 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8441 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8444 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8446 * regformats/reg-arm.dat: Remove.
8447 * regformats/reg-bfin.dat: Remove.
8448 * regformats/reg-cris.dat: Remove.
8449 * regformats/reg-crisv32.dat: Remove.
8450 * regformats/reg-m32r.dat: Remove.
8451 * regformats/reg-tilegx.dat: Remove.
8452 * regformats/reg-tilegx32.dat: Remove.
8454 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8456 * features/Makefile (WHICH): Remove arm files.
8457 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8458 * regformats/arm/arm-with-neon.dat: Remove.
8459 * regformats/arm/arm-with-vfpv2.dat: Remove.
8460 * regformats/arm/arm-with-vfpv3.dat: Remove.
8462 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8464 * features/Makefile (XMLTOC): Remove rx.xml.
8466 2020-06-17 Pedro Alves <palves@redhat.com>
8468 * gdbthread.h (thread_control_state) <trap_expected> Update
8471 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8473 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8474 ada_language::lookup_symbol_nonlocal.
8475 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8476 (ada_language::lookup_symbol_nonlocal): New member function,
8477 implementation from ada_lookup_symbol_nonlocal.
8478 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8480 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8482 (cplus_language::lookup_symbol_nonlocal): New member function.
8483 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8484 (minimal_language_data) Likewise.
8485 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8486 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8488 (d_language::lookup_symbol_nonlocal): New member function.
8489 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8491 (f_language::lookup_symbol_nonlocal): New member function.
8492 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8494 * language.c (unknown_language_data): Likewise.
8495 (auto_language_data): Likewise.
8496 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8498 (language_defn::lookup_symbol_nonlocal): New member function.
8499 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8501 * objc-lang.c (objc_language_data): Likewise.
8502 * opencl-lang.c (opencl_language_data): Likewise.
8503 * p-lang.c (pascal_language_data): Likewise.
8504 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8505 rust_language::lookup_symbol_nonlocal.
8506 (rust_language_data): Delete la_lookup_symbol_nonlocal
8508 (rust_language::lookup_symbol_nonlocal): New member function,
8509 implementation from rust_lookup_symbol_nonlocal.
8510 * symtab.c (lookup_symbol_aux): Update call to
8511 lookup_symbol_nonlocal.
8512 (basic_lookup_symbol_nonlocal): Rename to...
8513 (language_defn::lookup_symbol_nonlocal): ...this, and update
8514 header comment. Remove language_defn parameter, and replace with
8516 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8518 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8520 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8522 (ada_language::value_print_inner): New member function.
8523 * c-lang.c (c_language_data): Delete la_value_print_inner
8525 (cplus_language_data): Likewise.
8526 (asm_language_data): Likewise.
8527 (minimal_language_data): Likewise.
8528 * d-lang.c (d_language_data): Likewise.
8529 (d_language::value_print_inner): New member function.
8530 * f-lang.c (f_language_data): Delete la_value_print_inner
8532 (f_language::value_print_inner): New member function.
8533 * f-lang.h (f_value_print_innner): Rename to...
8534 (f_value_print_inner): ...this (note spelling of 'inner').
8535 * f-valprint.c (f_value_print_innner): Rename to...
8536 (f_value_print_inner): ...this (note spelling of 'inner').
8537 * go-lang.c (go_language_data): Delete la_value_print_inner
8539 (go_language::value_print_inner): New member function.
8540 * language.c (language_defn::value_print_inner): Define new member
8542 (unk_lang_value_print_inner): Delete.
8543 (unknown_language_data): Delete la_value_print_inner initializer.
8544 (unknown_language::value_print_inner): New member function.
8545 (auto_language_data): Delete la_value_print_inner initializer.
8546 (auto_language::value_print_inner): New member function.
8547 * language.h (language_data): Delete la_value_print_inner field.
8548 (language_defn::value_print_inner): Delcare new member function.
8549 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8551 (m2_language::value_print_inner): New member function.
8552 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8554 * opencl-lang.c (opencl_language_data): Likewise.
8555 * p-lang.c (pascal_language_data): Likewise.
8556 (pascal_language::value_print_inner): New member function.
8557 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8559 (rust_language::value_print_inner): New member function.
8560 * valprint.c (do_val_print): Update call to value_print_inner.
8562 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8564 * ada-lang.c (ada_language_data): Delete la_value_print
8566 (ada_language::value_print): New member function.
8567 * c-lang.c (c_language_data): Delete la_value_print initializer.
8568 (cplus_language_data): Likewise.
8569 (asm_language_data): Likewise.
8570 (minimal_language_data): Likewise.
8571 * d-lang.c (d_language_data): Likewise.
8572 * f-lang.c (f_language_data): Likewise.
8573 * go-lang.c (go_language_data): Likewise.
8574 * language.c (unk_lang_value_print): Delete.
8575 (language_defn::value_print): Define new member function.
8576 (unknown_language_data): Delete la_value_print initializer.
8577 (unknown_language::value_print): New member function.
8578 (auto_language_data): Delete la_value_print initializer.
8579 (auto_language::value_print): New member function.
8580 * language.h (language_data): Delete la_value_print field.
8581 (language_defn::value_print): Declare new member function.
8582 (LA_VALUE_PRINT): Update call to value_print.
8583 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8584 * objc-lang.c (objc_language_data): Likewise.
8585 * opencl-lang.c (opencl_language_data): Likewise.
8586 * p-lang.c (pascal_language_data): Likewise.
8587 (pascal_language::value_print): New member function.
8588 * rust-lang.c (rust_language_data): Delete la_value_print
8591 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8593 * ada-lang.c (ada_watch_location_expression): Rename to
8594 ada_language::watch_location_expression.
8595 (ada_language_data): Delete la_watch_location_expression
8597 (ada_language::watch_location_expression): New member function,
8598 implementation from ada_watch_location_expression.
8599 * breakpoint.c (watch_command_1): Update call to
8600 watch_location_expression.
8601 * c-lang.c (c_watch_location_expression): Rename to
8602 language_defn::watch_location_expression.
8603 (c_language_data): Delete la_watch_location_expression
8605 (cplus_language_data): Likewise.
8606 (asm_language_data): Likewise.
8607 (minimal_language_data): Likewise.
8608 * c-lang.h (c_watch_location_expression): Delete declaration.
8609 * d-lang.c (d_language_data): Delete la_watch_location_expression
8611 * f-lang.c (f_language_data): Likewise.
8612 * go-lang.c (go_language_data): Likewise.
8613 * language.c (language_defn::watch_location_expression): Member
8614 function implementation from c_watch_location_expression.
8615 (unknown_language_data): Delete la_watch_location_expression
8617 (auto_language_data): Likewise.
8618 * language.h (language_data): Delete la_watch_location_expression
8620 (language_defn::watch_location_expression): Declare new member
8622 * m2-lang.c (m2_language_data): Delete
8623 la_watch_location_expression initializer.
8624 * objc-lang.c (objc_language_data): Likewise.
8625 * opencl-lang.c (opencl_language_data): Likewise.
8626 * p-lang.c (pascal_language_data): Likewise.
8627 * rust-lang.c (rust_watch_location_expression): Rename to
8628 rust_language::watch_location_expression.
8629 (rust_language_data): Delete la_watch_location_expression
8631 (rust_language::watch_location_expression): New member function,
8632 implementation from rust_watch_location_expression.
8634 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8636 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8637 ada_language::collect_symbol_completion_matches.
8638 (ada_language_data): Delete la_collect_symbol_completion_matches
8640 (ada_language::collect_symbol_completion_matches): New member
8641 function, implementation from
8642 ada_collect_symbol_completion_matches.
8643 * c-lang.c (c_language_data): Delete
8644 la_collect_symbol_completion_matches initializer.
8645 (cplus_language_data): Likewise.
8646 (asm_language_data): Likewise.
8647 (minimal_language_data): Likewise.
8648 * d-lang.c (d_language_data): Likewise.
8649 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8650 f_language::collect_symbol_completion_matches.
8651 (f_language_data): Delete la_collect_symbol_completion_matches
8653 (f_language::collect_symbol_completion_matches) New member
8654 function, implementation from f_collect_symbol_completion_matches.
8655 * go-lang.c (go_language_data): Delete
8656 la_collect_symbol_completion_matches initializer.
8657 * language.c (unknown_language_data): Likewise.
8658 (auto_language_data): Likewise.
8659 * language.h (language_data): Delete
8660 la_collect_symbol_completion_matches field.
8661 (language_defn::collect_symbol_completion_matches): New member
8663 * m2-lang.c (m2_language_data): Delete
8664 la_collect_symbol_completion_matches initializer.
8665 * objc-lang.c (objc_language_data): Likewise.
8666 * opencl-lang.c (opencl_language_data): Likewise.
8667 * p-lang.c (pascal_language_data): Likewise.
8668 * rust-lang.c (rust_language_data): Likewise.
8669 * symtab.c (default_collect_symbol_completion_matches): Delete.
8670 (collect_symbol_completion_matches): Update call to
8671 collect_symbol_completion_matches.
8672 (collect_symbol_completion_matches_type): Likewise.
8673 * symtab.h (default_collect_symbol_completion_matches): Delete
8676 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8678 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8679 (ada_language_data): Delete la_word_break_characters initializer.
8680 (ada_language::word_break_characters): New member function.
8681 * c-lang.c (c_language_data): Delete la_word_break_characters
8683 (cplus_language_data): Likewise.
8684 (asm_language_data): Likewise.
8685 (minimal_language_data): Likewise.
8686 * completer.c: Update global comment.
8687 (advance_to_expression_complete_word_point): Update call to
8688 word_break_characters.
8689 (complete_files_symbols): Likewise.
8690 (complete_line_internal_1): Likewise.
8691 (default_completer_handle_brkchars): Likewise.
8692 (skip_quoted_chars): Likewise.
8693 * d-lang.c (d_language_data): Delete la_word_break_characters
8695 * f-lang.c (f_word_break_characters): Delete.
8696 (f_language_data): Delete la_word_break_characters initializer.
8697 (f_language::word_break_characters): New member function.
8698 * go-lang.c (go_language_data): Delete la_word_break_characters
8700 * language.c (unknown_language_data): Likewise.
8701 (auto_language_data): Likewise.
8702 * language.h (default_word_break_characters): Move declaration to
8703 earlier in the file.
8704 (language_data): Delete la_word_break_characters field.
8705 (language_defn::word_break_characters): New member function.
8706 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8708 * objc-lang.c (objc_language_data): Likewise.
8709 * opencl-lang.c (opencl_language_data): Likewise.
8710 * p-lang.c (pascal_language_data): Likewise.
8711 * rust-lang.c (rust_language_data): Likewise.
8713 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8715 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8716 (ada_language_data): Delete la_get_symbol_name_matcher
8718 (language_defn::get_symbol_name_matcher_inner): New member
8720 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8722 (cplus_language_data): Likewise.
8723 (cplus_language::get_symbol_name_matcher_inner): New member
8725 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8726 (minimal_language_data): Likewise.
8727 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8728 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8730 * dictionary.c (iter_match_first_hashed): Update call to
8731 get_symbol_name_matcher.
8732 (iter_match_next_hashed): Likewise.
8733 (iter_match_next_linear): Likewise.
8734 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8735 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8737 (f_language::get_symbol_name_matcher_inner): New member function.
8738 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8740 * language.c (default_symbol_name_matcher): Update header comment,
8742 (language_defn::get_symbol_name_matcher): New definition.
8743 (language_defn::get_symbol_name_matcher_inner): Likewise.
8744 (get_symbol_name_matcher): Delete.
8745 (unknown_language_data): Delete la_get_symbol_name_matcher
8747 (auto_language_data): Likewise.
8748 * language.h (language_data): Delete la_get_symbol_name_matcher
8750 (language_defn::get_symbol_name_matcher): New member function.
8751 (language_defn::get_symbol_name_matcher_inner): Likewise.
8752 (default_symbol_name_matcher): Delete declaration.
8753 * linespec.c (find_methods): Update call to
8754 get_symbol_name_matcher.
8755 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8757 * minsyms.c (lookup_minimal_symbol): Update call to
8758 get_symbol_name_matcher.
8759 (iterate_over_minimal_symbols): Likewise.
8760 * objc-lang.c (objc_language_data): Delete
8761 la_get_symbol_name_matcher initializer.
8762 * opencl-lang.c (opencl_language_data): Likewise.
8763 * p-lang.c (pascal_language_data): Likewise.
8764 * psymtab.c (psymbol_name_matches): Update call to
8765 get_symbol_name_matcher.
8766 * rust-lang.c (rust_language_data): Delete
8767 la_get_symbol_name_matcher initializer.
8768 * symtab.c (symbol_matches_search_name): Update call to
8769 get_symbol_name_matcher.
8770 (compare_symbol_name): Likewise.
8772 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8774 * ada-lang.c (ada_language_data): Delete la_compute_program
8776 * c-lang.c (c_language_data): Likewise.
8777 (c_language::compute_program): New member function.
8778 (cplus_language_data): Delete la_compute_program initializer.
8779 (cplus_language::compute_program): New member function.
8780 (asm_language_data): Delete la_compute_program initializer.
8781 (minimal_language_data): Likewise.
8782 * c-lang.h (c_compute_program): Update comment.
8783 (cplus_compute_program): Likewise.
8784 * compile/compile-c-support.c (c_compute_program): Likewise.
8785 (cplus_compute_program): Likewise.
8786 * compile/compile.c (compile_to_object): Update call to
8788 * d-lang.c (d_language_data): Delete la_compute_program
8790 * f-lang.c (f_language_data): Likewise.
8791 * go-lang.c (go_language_data): Likewise.
8792 * language.c (unknown_language_data): Likewise.
8793 (auto_language_data): Likewise.
8794 * language.h (language_data): Delete la_compute_program field.
8795 (language_defn::compute_program): New member function.
8796 * m2-lang.c (m2_language_data): Delete la_compute_program
8798 * objc-lang.c (objc_language_data): Likewise.
8799 * opencl-lang.c (opencl_language_data): Likewise.
8800 * p-lang.c (pascal_language_data): Likewise.
8801 * rust-lang.c (rust_language_data): Likewise.
8803 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8805 * ada-lang.c (ada_language_data) Delete
8806 la_class_name_from_physname initializer.
8807 * c-lang.c (c_language_data): Likewise.
8808 (cplus_language_data): Likewise.
8809 (cplus_language::class_name_from_physname): New member function.
8810 (asm_language_data): Delete la_class_name_from_physname
8812 (minimal_language_data): Likewise.
8813 * d-lang.c (d_language_data): Likewise.
8814 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8815 method on language_defn class.
8816 (guess_full_die_structure_name): Likewise.
8817 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8819 * go-lang.c (go_language_data): Likewise.
8820 * language.c (language_class_name_from_physname): Delete.
8821 (unk_lang_class_name): Delete.
8822 (unknown_language_data): Delete la_class_name_from_physname
8824 (auto_language_data): Likewise.
8825 * language.h (language_data): Delete la_class_name_from_physname
8827 (language_defn::class_name_from_physname): New function.
8828 (language_class_name_from_physname): Delete declaration.
8829 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8831 * objc-lang.c (objc_language_data): Likewise.
8832 * opencl-lang.c (opencl_language_data): Likewise.
8833 * p-lang.c (pascal_language_data): Likewise.
8834 * rust-lang.c (rust_language_data): Likewise.
8836 2020-06-16 Tom Tromey <tom@tromey.com>
8838 * tui/tui-data.h (STATUS_NAME): New macro.
8839 * tui/tui-layout.c (tui_remove_some_windows)
8840 (initialize_known_windows, tui_register_window)
8841 (tui_layout_split::remove_windows, initialize_layouts)
8842 (tui_new_layout_command): Don't use hard-coded window names.
8844 2020-06-16 Tom Tromey <tom@tromey.com>
8847 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8848 tui_initialize_readline. Only run once. Call rl_initialize.
8849 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8850 tui_initialize_readline.
8851 * tui/tui-io.c (tui_setup_io): Call
8852 tui_ensure_readline_initialized.
8853 * tui/tui-interp.c (tui_interp::init): Update.
8855 2020-06-16 Tom Tromey <tom@tromey.com>
8857 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8858 Also preserve the status window.
8860 2020-06-16 Tom Tromey <tom@tromey.com>
8862 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8863 where m_window==nullptr.
8865 2020-06-15 Tom Tromey <tromey@adacore.com>
8867 * windows-nat.c (windows_nat::handle_output_debug_string):
8869 (windows_nat::handle_ms_vc_exception): Update.
8870 * target.h (target_read_string): Change API.
8871 * target.c (target_read_string): Change API.
8872 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8874 * solib-frv.c (frv_current_sos): Update.
8875 * solib-dsbt.c (dsbt_current_sos): Update.
8876 * solib-darwin.c (darwin_current_sos): Update.
8877 * linux-thread-db.c (inferior_has_bug): Update.
8878 * expprint.c (print_subexp_standard): Update.
8879 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8880 (ada_exception_message_1): Update.
8882 2020-06-15 Tom Tromey <tromey@adacore.com>
8884 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8886 2020-06-15 Tom Tromey <tromey@adacore.com>
8888 * valprint.c (read_string): Update comment.
8889 * target.c (MIN): Remove.
8890 (target_read_string): Rewrite.
8892 2020-06-15 Tom Tromey <tromey@adacore.com>
8894 * corefile.c (read_memory_string): Remove.
8895 * ada-valprint.c (ada_value_print_ptr): Update.
8896 * ada-lang.h (ada_tag_name): Change return type.
8897 * ada-lang.c (type_from_tag): Update.
8898 (ada_tag_name_from_tsd): Change return type. Use
8900 (ada_tag_name): Likewise.
8901 * gdbcore.h (read_memory_string): Don't declare.
8903 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8905 * symtab.c (rbreak_command): Ignore Windows drive colon.
8907 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8909 * NEWS: Mention removed GDBserver host support.
8911 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8913 * features/riscv/rebuild-csr-xml.sh: Updated.
8915 2020-06-11 Tom Tromey <tom@tromey.com>
8918 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8920 2020-06-09 Jonny Grant <jg@jguk.org>
8921 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8923 * main.c (captured_main_1): Don't print new line after help.
8924 (print_gdb_help): add mailing list and IRC channel information
8925 to --help. Add new lines between items in the footer. Remove
8926 quotes around bug url.
8928 2020-06-11 Keith Seitz <keiths@redhat.com>
8931 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8932 Resolve typedefs for type length calculations.
8934 2020-06-10 Tom de Vries <tdevries@suse.de>
8937 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8938 (write_psymbols): Enable .gdb_index for ada.
8939 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8942 2020-06-10 Tom de Vries <tdevries@suse.de>
8944 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8945 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8946 namei" instead of "const char *name" argument.
8947 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8948 dw2_symtab_iter_init.
8950 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8952 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8953 to use type::field and field::type instead.
8955 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8957 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8958 to use field::type instead.
8960 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8962 * gdbtypes.h (struct field) <type, set_type>: New methods.
8963 Rename `type` field to...
8964 <m_type>: ... this. Change references throughout to use type or
8966 (FIELD_TYPE): Use field::type. Change call sites that modify
8967 the field's type to use field::set_type instead.
8969 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8971 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8972 to use type::index_type instead.
8974 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8976 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8978 (TYPE_INDEX_TYPE): Use type::index_type.
8979 * gdbtypes.c (create_array_type_with_stride): Likewise.
8981 2020-06-07 Tom Tromey <tom@tromey.com>
8983 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8985 (generic_value_print): Update.
8987 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8989 Revert commit 982a38f60b0.
8990 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8992 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8994 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8995 avoid use after free.
8997 2020-06-05 Tom de Vries <tdevries@suse.de>
9001 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
9003 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9005 (dwarf2_read_debug_names): Likewise.
9006 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9007 object when re-using a per_bfd object with an index.
9009 2020-06-03 Tom de Vries <tdevries@suse.de>
9012 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9014 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9017 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9019 * ada-lang.c (ada_language_data): Delete skip_trampoline
9021 * c-lang.c (c_language_data): Likewise.
9022 (cplus_language_data): Likewise.
9023 (cplus_language::skip_trampoline): New member function.
9024 (asm_language_data): Delete skip_trampoline initializer.
9025 (minimal_language_data): Likewise.
9026 * d-lang.c (d_language_data): Likewise.
9027 * f-lang.c (f_language_data): Likewise.
9028 * go-lang.c (go_language_data): Likewise.
9029 * language.c (unk_lang_trampoline): Delete function.
9030 (skip_language_trampoline): Update.
9031 (unknown_language_data): Delete skip_trampoline initializer.
9032 (auto_language_data): Likewise.
9033 * language.h (language_data): Delete skip_trampoline field.
9034 (language_defn::skip_trampoline): New function.
9035 * m2-lang.c (m2_language_data): Delete skip_trampoline
9037 * objc-lang.c (objc_skip_trampoline): Delete function, move
9038 implementation to objc_language::skip_trampoline.
9039 (objc_language_data): Delete skip_trampoline initializer.
9040 (objc_language::skip_trampoline): New member function with
9041 implementation from objc_skip_trampoline.
9042 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9044 * p-lang.c (pascal_language_data): Likewise.
9045 * rust-lang.c (rust_language_data): Likewise.
9047 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9049 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9050 (ada_language::demangle): New member function.
9051 * c-lang.c (c_language_data): Delete la_demangle initializer.
9052 (cplus_language_data): Delete la_demangle initializer.
9053 (cplus_language::demangle): New member function.
9054 (asm_language_data): Delete la_demangle initializer.
9055 (minimal_language_data): Delete la_demangle initializer.
9056 * d-lang.c (d_language_data): Delete la_demangle initializer.
9057 (d_language::demangle): New member function.
9058 * f-lang.c (f_language_data): Delete la_demangle initializer.
9059 (f_language::demangle): New member function.
9060 * go-lang.c (go_language_data): Delete la_demangle initializer.
9061 (go_language::demangle): New member function.
9062 * language.c (language_demangle): Update.
9063 (unk_lang_demangle): Delete.
9064 (unknown_language_data): Delete la_demangle initializer.
9065 (unknown_language::demangle): New member function.
9066 (auto_language_data): Delete la_demangle initializer.
9067 (auto_language::demangle): New member function.
9068 * language.h (language_data): Delete la_demangle field.
9069 (language_defn::demangle): New function.
9070 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9071 * objc-lang.c (objc_language_data): Delete la_demangle
9073 (objc_language::demangle): New member function.
9074 * opencl-lang.c (opencl_language_data): Delete la_demangle
9076 * p-lang.c (pascal_language_data): Likewise.
9077 * rust-lang.c (rust_language_data): Likewise.
9078 (rust_language::demangle): New member function.
9080 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9082 * ada-lang.c (ada_language_data): Delete la_print_type
9084 (ada_language::print_type): New member function.
9085 * c-lang.c (c_language_data): Delete la_print_type initializer.
9086 (c_language::print_type): New member function.
9087 (cplus_language_data): Delete la_print_type initializer.
9088 (cplus_language::print_type): New member function.
9089 (asm_language_data): Delete la_print_type initializer.
9090 (asm_language::print_type): New member function.
9091 (minimal_language_data): Delete la_print_type initializer.
9092 (minimal_language::print_type): New member function.
9093 * d-lang.c (d_language_data): Delete la_print_type initializer.
9094 (d_language::print_type): New member function.
9095 * f-lang.c (f_language_data): Delete la_print_type initializer.
9096 (f_language::print_type): New member function.
9097 * go-lang.c (go_language_data): Delete la_print_type initializer.
9098 (go_language::print_type): New member function.
9099 * language.c (unk_lang_print_type): Delete.
9100 (unknown_language_data): Delete la_print_type initializer.
9101 (unknown_language::print_type): New member function.
9102 (auto_language_data): Delete la_print_type initializer.
9103 (auto_language::print_type): New member function.
9104 * language.h (language_data): Delete la_print_type field.
9105 (language_defn::print_type): New function.
9106 (LA_PRINT_TYPE): Update.
9107 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9108 (m2_language::print_type): New member function.
9109 * objc-lang.c (objc_language_data): Delete la_print_type
9111 (objc_language::print_type): New member function.
9112 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9113 to opencl_language::print_type.
9114 (opencl_language_data): Delete la_print_type initializer.
9115 (opencl_language::print_type): New member function, implementation
9116 from opencl_print_type.
9117 * p-lang.c (pascal_language_data): Delete la_print_type
9119 (pascal_language::print_type): New member function.
9120 * rust-lang.c (rust_print_type): Delete, implementation moved to
9121 rust_language::print_type.
9122 (rust_language_data): Delete la_print_type initializer.
9123 (rust_language::print_type): New member function, implementation
9124 from rust_print_type.
9126 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9128 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9129 implementation moves to...
9130 (ada_language::sniff_from_mangled_name): ...here. Update return
9132 (ada_language_data): Delete la_sniff_from_mangled_name
9134 * c-lang.c (c_language_data): Likewise.
9135 (cplus_language_data): Likewise.
9136 (cplus_language::sniff_from_mangled_name): New member function,
9137 implementation taken from gdb_sniff_from_mangled_name.
9138 (asm_language_data): Delete la_sniff_from_mangled_name
9140 (minimal_language_data): Likewise.
9141 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9142 implementation moves to cplus_language::sniff_from_mangled_name.
9143 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9144 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9146 (d_language::sniff_from_mangled_name): ...here.
9147 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9148 * f-lang.c (f_language_data): Likewise.
9149 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9151 (go_language::sniff_from_mangled_name): ...here.
9152 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9153 * language.c (language_sniff_from_mangled_name): Delete.
9154 (unknown_language_data): Delete la_sniff_from_mangled_name
9156 (auto_language_data): Likewise.
9157 * language.h (language_data): Delete la_sniff_from_mangled_name
9159 (language_defn::sniff_from_mangled_name): New function.
9160 (language_sniff_from_mangled_name): Delete declaration.
9161 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9163 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9164 implementation moves to...
9165 (objc_language::sniff_from_mangled_name): ...here.
9166 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9167 * opencl-lang.c (opencl_language_data): Likewise.
9168 * p-lang.c (pascal_language_data): Likewise.
9169 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9170 implementation moves to...
9171 (rust_language::sniff_from_mangled_name): ...here.
9172 (rust_language_data): Delete la_sniff_from_mangled_name
9174 * symtab.c (symbol_find_demangled_name): Call
9175 sniff_from_mangled_name member function.
9177 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9179 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9181 * c-lang.c (c_language_data): Likewise.
9182 (cplus_language_data): Likewise.
9183 (cplus_language::search_name_hash): New member function.
9184 (asm_language_data): Delete la_search_name_hash initializer.
9185 (minimal_language_data): Likewise.
9186 * d-lang.c (d_language_data): Likewise.
9187 * dictionary.c (default_search_name_hash): Rename to...
9188 (language_defn::search_name_hash): ...this.
9189 * f-lang.c (f_language_data): Likewise.
9190 (f_language::search_name_hash): New member function.
9191 * go-lang.c (go_language_data): Delete la_search_name_hash
9193 * language.c (unknown_language_data): Likewise.
9194 (auto_language_data): Likewise.
9195 * language.h (struct language_data): Delete la_search_name_hash
9197 (language_defn::search_name_hash): Declare new member function.
9198 (default_search_name_hash): Delete declaration.
9199 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9201 * objc-lang.c (objc_language_data): Likewise.
9202 * opencl-lang.c (opencl_language_data): Likewise.
9203 * p-lang.c (pascal_language_data): Likewise.
9204 * rust-lang.c (rust_language_data): Likewise.
9205 * symtab.c (search_name_hash): Update call.
9207 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9209 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9211 * c-lang.c (class compile_instance): Declare.
9212 (c_language_data): Delete la_get_compile_instance initializer.
9213 (c_language::get_compile_instance): New member function.
9214 (cplus_language_data): Delete la_get_compile_instance initializer.
9215 (cplus_language::get_compile_instance): New member function.
9216 (asm_language_data): Delete la_get_compile_instance initializer.
9217 (minimal_language_data): Likewise.
9218 * c-lang.h (c_get_compile_context): Update comment.
9219 (cplus_get_compile_context): Update comment.
9220 * compile/compile.c (compile_to_object): Update calls, don't rely
9221 on function pointer being NULL.
9222 * d-lang.c (d_language_data): Delete la_get_compile_instance
9224 * f-lang.c (f_language_data): Likewise.
9225 * go-lang.c (go_language_data): Likewise.
9226 * language.c (unknown_language_data): Likewise.
9227 (auto_language_data): Likewise.
9228 * language.h (language_data): Delete la_get_compile_instance field.
9229 (language_defn::get_compile_instance): New member function.
9230 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9232 * objc-lang.c (objc_language_data): Likewise.
9233 * opencl-lang.c (opencl_language_data): Likewise.
9234 * p-lang.c (pascal_language_data): Likewise.
9235 * rust-lang.c (rust_language_data): Likewise.
9237 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9239 * ada-lang.c (ada_add_all_symbols): Update comment.
9240 (ada_iterate_over_symbols): Delete, move implementation to...
9241 (ada_language::iterate_over_symbols): ...here, a new member
9242 function, rewrite to use range based for loop.
9243 (ada_language_data): Delete la_iterate_over_symbols initializer.
9244 * c-lang.c (c_language_data): Likewise.
9245 (cplus_language_data): Likewise.
9246 (asm_language_data): Likewise.
9247 (minimal_language_data): Likewise.
9248 * d-lang.c (d_language_data): Likewise.
9249 * f-lang.c (f_language_data): Likewise.
9250 * go-lang.c (go_language_data): Likewise.
9251 * language.c (unknown_language_data): Likewise.
9252 (auto_language_data): Likewise.
9253 * language.h (language_data): Delete la_iterate_over_symbols field.
9254 (language_defn::iterate_over_symbols): New member function.
9255 (LA_ITERATE_OVER_SYMBOLS): Update.
9256 * linespec.c (iterate_over_all_matching_symtabs): Update.
9257 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9259 * objc-lang.c (objc_language_data): Likewise.
9260 * opencl-lang.c (opencl_language_data): Likewise.
9261 * p-lang.c (pascal_language_data): Likewise.
9262 * rust-lang.c (rust_language_data): Likewise.
9264 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9266 * ada-lang.c (ada_language_data): Delete
9267 la_lookup_transparent_type initializer.
9268 * c-lang.c (c_language_data): Likewise.
9269 (cplus_language_data): Likewise.
9270 (cplus_language::lookup_transparent_type): New member function.
9271 (asm_language_data): Delete la_lookup_transparent_type
9273 (minimal_language_data): Likewise.
9274 * d-lang.c (d_language_data): Likewise.
9275 * f-lang.c (f_language_data): Likewise.
9276 * go-lang.c (go_language_data): Likewise.
9277 * language.c (unknown_language_data): Likewise.
9278 (auto_language_data): Likewise.
9279 * language.h (struct language_data): Delete
9280 la_lookup_transparent_type field.
9281 (language_defn::lookup_transparent_type): New member function.
9282 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9284 * objc-lang.c (objc_language_data): Likewise.
9285 * opencl-lang.c (opencl_language_data): Likewise.
9286 * p-lang.c (pascal_language_data): Likewise.
9287 * rust-lang.c (rust_language_data): Likewise.
9288 * symtab.c (symbol_matches_domain): Update call.
9290 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9292 * ada-lang.c (ada_language_arch_info): Delete function, move
9293 implementation to...
9294 (ada_language::language_arch_info): ...here, a new member
9296 (ada_language_data): Delete la_language_arch_info.
9297 * c-lang.c (c_language_data): Likewise.
9298 (c_language::language_arch_info): New member function.
9299 (cplus_language_arch_info): Delete function, move
9300 implementation to...
9301 (cplus_language::language_arch_info): ...here, a new member
9303 (cplus_language_data): Delete la_language_arch_info.
9304 (asm_language_data): Likewise.
9305 (asm_language::language_arch_info): New member function.
9306 (minimal_language_data): Delete la_language_arch_info.
9307 (minimal_language::language_arch_info): New member function.
9308 * d-lang.c (d_language_arch_info): Delete function, move
9309 implementation to...
9310 (d_language::language_arch_info): ...here, a new member
9312 (d_language_data): Delete la_language_arch_info.
9313 * f-lang.c (f_language_arch_info): Delete function, move
9314 implementation to...
9315 (f_language::language_arch_info): ...here, a new member
9317 (f_language_data): Delete la_language_arch_info.
9318 * go-lang.c (go_language_arch_info): Delete function, move
9319 implementation to...
9320 (go_language::language_arch_info): ...here, a new member
9322 (go_language_data): Delete la_language_arch_info.
9323 * language.c (unknown_language_data): Likewise.
9324 (unknown_language::language_arch_info): New member function.
9325 (auto_language_data): Delete la_language_arch_info.
9326 (auto_language::language_arch_info): New member function.
9327 (language_gdbarch_post_init): Update call to
9328 la_language_arch_info.
9329 * language.h (language_data): Delete la_language_arch_info
9331 (language_defn::language_arch_info): New function.
9332 * m2-lang.c (m2_language_arch_info): Delete function, move
9333 implementation to...
9334 (m2_language::language_arch_info): ...here, a new member
9336 (m2_language_data): Delete la_language_arch_info.
9337 * objc-lang.c (objc_language_arch_info): Delete function, move
9338 implementation to...
9339 (objc_language::language_arch_info): ...here, a new member
9341 (objc_language_data): Delete la_language_arch_info.
9342 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9343 implementation to...
9344 (opencl_language::language_arch_info): ...here, a new member
9346 (opencl_language_data): Delete la_language_arch_info.
9347 * p-lang.c (pascal_language_arch_info): Delete function, move
9348 implementation to...
9349 (pascal_language::language_arch_info): ...here, a new member
9351 (pascal_language_data): Delete la_language_arch_info.
9352 * rust-lang.c (rust_language_arch_info): Delete function, move
9353 implementation to...
9354 (rust_language::language_arch_info): ...here, a new member
9356 (rust_language_data): Delete la_language_arch_info.
9358 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9360 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9362 * c-lang.c (c_language_data): Likewise.
9363 (cplus_language_data): Likewise.
9364 (cplus_language::pass_by_reference_info): New method.
9365 (asm_language_data): Delete la_pass_by_reference initializer.
9366 (minimal_language_data): Likewise.
9367 * cp-abi.c (cp_pass_by_reference): Remove use of
9368 default_pass_by_reference.
9369 * d-lang.c (d_language_data): Likewise.
9370 * f-lang.c (f_language_data): Likewise.
9371 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9372 default_pass_by_reference.
9373 * go-lang.c (go_language_data): Likewise.
9374 * language.c (language_pass_by_reference): Update.
9375 (default_pass_by_reference): Delete.
9376 (unknown_language_data): Delete la_pass_by_reference
9378 (auto_language_data): Likewise.
9379 * language.h (struct language_data): Delete la_pass_by_reference
9381 (language_defn::pass_by_reference_info): New member function.
9382 (default_pass_by_reference): Delete declaration.
9383 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9385 * objc-lang.c (objc_language_data): Likewise.
9386 * opencl-lang.c (opencl_language_data): Likewise.
9387 * p-lang.c (pascal_language_data): Likewise.
9388 * rust-lang.c (rust_language_data): Likewise.
9390 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9392 * ada-lang.c (ada_read_var_value): Delete function, move
9393 implementation to...
9394 (ada_language::read_var_value): ...here.
9395 (ada_language_data): Delete la_read_var_value initializer.
9396 * c-lang.c (c_language_data): Likewise.
9397 (cplus_language_data): Likewise.
9398 (minimal_language_data): Likewise.
9399 * d-lang.c (d_language_data): Likewise.
9400 * f-lang.c (f_language_data): Likewise.
9401 * findvar.c (default_read_var_value): Rename to...
9402 (language_defn::read_var_value): ...this.
9403 * findvar.c (read_var_value): Update header comment, and change to
9404 call member function instead of function pointer.
9405 * go-lang.c (go_language_data): Likewise.
9406 * language.c (unknown_language_data): Delete la_read_var_value
9408 (auto_language_data): Likewise.
9409 * language.h (struct language_data): Delete la_read_var_value
9411 (language_defn::read_var_value): New member function.
9412 (default_read_var_value): Delete declaration.
9413 * m2-lang.c (m2_language_data): Delete la_read_var_value
9415 * objc-lang.c (objc_language_data): Likewise.
9416 * opencl-lang.c (opencl_language_data): Likewise.
9417 * p-lang.c (pascal_language_data): Likewise.
9418 * rust-lang.c (rust_language_data): Likewise.
9419 * value.h (default_read_var_value): Delete declaration.
9421 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9423 * ada-lang.c (ada_print_array_index): Delete function, move
9424 implementation to...
9425 (ada_language::print_array_index): ...here.
9426 (ada_language_data): Delete la_print_array_index initializer.
9427 * c-lang.c (c_language_data): Likewise.
9428 (cplus_language_data): Likewise.
9429 (minimal_language_data): Likewise.
9430 * d-lang.c (d_language_data): Likewise.
9431 * f-lang.c (f_language_data): Likewise.
9432 * go-lang.c (go_language_data): Likewise.
9433 * language.c (default_print_array_index): Delete function, move
9434 implementation to...
9435 (language_defn::print_array_index): ...here.
9436 (unknown_language_data): Delete la_print_array_index initializer.
9437 (auto_language_data): Likewise.
9438 * language.h (struct language_data): Delete la_print_array_index
9440 (language_defn::print_array_index): New member function.
9441 (LA_PRINT_ARRAY_INDEX): Update.
9442 (default_print_array_index): Delete declaration.
9443 * m2-lang.c (m2_language_data): Delete la_print_array_index
9445 * objc-lang.c (objc_language_data): Likewise.
9446 * opencl-lang.c (opencl_language_data): Likewise.
9447 * p-lang.c (pascal_language_data): Likewise.
9448 * rust-lang.c (rust_language_data): Likewise.
9450 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9452 * gdb/ada-lang.c (ada_language_defn): Convert to...
9453 (ada_language_data): ...this.
9454 (class ada_language): New class.
9455 (ada_language_defn): New static global.
9456 * gdb/c-lang.c (c_language_defn): Convert to...
9457 (c_language_data): ...this.
9458 (class c_language): New class.
9459 (c_language_defn): New static global.
9460 (cplus_language_defn): Convert to...
9461 (cplus_language_data): ...this.
9462 (class cplus_language): New class.
9463 (cplus_language_defn): New static global.
9464 (asm_language_defn): Convert to...
9465 (asm_language_data): ...this.
9466 (class asm_language): New class.
9467 (asm_language_defn): New static global.
9468 (minimal_language_defn): Convert to...
9469 (minimal_language_data): ...this.
9470 (class minimal_language): New class.
9471 (minimal_language_defn): New static global.
9472 * gdb/d-lang.c (d_language_defn): Convert to...
9473 (d_language_data): ...this.
9474 (class d_language): New class.
9475 (d_language_defn): New static global.
9476 * gdb/f-lang.c (f_language_defn): Convert to...
9477 (f_language_data): ...this.
9478 (class f_language): New class.
9479 (f_language_defn): New static global.
9480 * gdb/go-lang.c (go_language_defn): Convert to...
9481 (go_language_data): ...this.
9482 (class go_language): New class.
9483 (go_language_defn): New static global.
9484 * gdb/language.c (unknown_language_defn): Remove declaration.
9485 (current_language): Initialize to nullptr, real initialization is
9486 moved to _initialize_language.
9487 (languages): Delete global.
9488 (language_defn::languages): Define.
9489 (set_language_command): Use language_defn::languages.
9490 (set_language): Likewise.
9491 (range_error): Likewise.
9492 (language_enum): Likewise.
9493 (language_def): Likewise.
9494 (add_set_language_command): Use language_def::languages for the
9495 language list, and language_def to lookup language pointers.
9496 (skip_language_trampoline): Use language_defn::languages.
9497 (unknown_language_defn): Convert to...
9498 (unknown_language_data): ...this.
9499 (class unknown_language): New class.
9500 (unknown_language_defn): New static global.
9501 (auto_language_defn): Convert to...
9502 (auto_language_data): ...this.
9503 (class auto_language): New class.
9504 (auto_language_defn): New static global.
9505 (language_gdbarch_post_init): Use language_defn::languages.
9506 (_initialize_language): Initialize current_language.
9507 * gdb/language.h (struct language_defn): Rename to...
9508 (struct language_data): ...this.
9509 (struct language_defn): New.
9510 (auto_language_defn): Delete.
9511 (unknown_language_defn): Delete.
9512 (minimal_language_defn): Delete.
9513 (ada_language_defn): Delete.
9514 (asm_language_defn): Delete.
9515 (c_language_defn): Delete.
9516 (cplus_language_defn): Delete.
9517 (d_language_defn): Delete.
9518 (f_language_defn): Delete.
9519 (go_language_defn): Delete.
9520 (m2_language_defn): Delete.
9521 (objc_language_defn): Delete.
9522 (opencl_language_defn): Delete.
9523 (pascal_language_defn): Delete.
9524 (rust_language_defn): Delete.
9525 * gdb/m2-lang.c (m2_language_defn): Convert to...
9526 (m2_language_data): ...this.
9527 (class m2_language): New class.
9528 (m2_language_defn): New static global.
9529 * gdb/objc-lang.c (objc_language_defn): Convert to...
9530 (objc_language_data): ...this.
9531 (class objc_language): New class.
9532 (objc_language_defn): New static global.
9533 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9534 (opencl_language_data): ...this.
9535 (class opencl_language): New class.
9536 (opencl_language_defn): New static global.
9537 * gdb/p-lang.c (pascal_language_defn): Convert to...
9538 (pascal_language_data): ...this.
9539 (class pascal_language): New class.
9540 (pascal_language_defn): New static global.
9541 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9542 language pointer, update comment format.
9543 * gdb/rust-lang.c (rust_language_defn): Convert to...
9544 (rust_language_data): ...this.
9545 (class rust_language): New class.
9546 (rust_language_defn): New static global.
9548 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9550 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9552 <m_stmt_at_address>: New member variable.
9553 (lnp_state_machine::record_line): Don't record some lines, update
9554 tracking of is_stmt at the same address.
9555 (lnp_state_machine::lnp_state_machine): Initialise new member
9558 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9560 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9561 "-include gnu-nat-mig.h".
9562 * gnu-nat-mig.h: New file.
9563 * gnu-nat.c: Include "gnu-nat-mig.h".
9564 (exc_server, msg_reply_server, notify_server,
9565 process_reply_server): Remove declarations.
9567 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9569 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9570 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9571 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9572 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9573 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9574 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9575 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9576 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9577 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9578 to gnu_nat_target class.
9579 * gnu-nat.c: Likewise.
9580 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9581 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9582 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9584 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9585 instead of `gnu_target'.
9587 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9589 * i386-gnu-tdep.c: Include "gdbcore.h"
9590 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9591 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9592 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9593 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9594 i386_gnu_sigcontext_addr): New functions
9595 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9596 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9599 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9601 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9602 before fork_inferior call. Avoid calling it if target_is_pushed returns
9605 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9607 * gnu-nat.h (gnu_target): New variable declaration.
9608 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9610 * gnu-nat.c (gnu_target): New variable.
9611 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9612 add_thread_silent, and add_thread calls.
9613 (gnu_nat_target::create_inferior): Pass gnu_target to
9614 add_thread_silent, thread_change_ptid call.
9615 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9618 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9620 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9621 (gnu_nat_target::find_memory_regions): Remove unused
9622 `old_address' variable.
9624 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9626 * gnu-nat.c: Include "gdbarch.h".
9628 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9630 * reply_mig_hack.awk (Error return): Cast function through
9631 void *, to bypass compiler function call check.
9633 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9635 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9636 $(srcdir)/reply_mig_hack.awk.
9638 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9640 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9642 2020-05-30 Jonny Grant <jg@jguk.org>
9644 * configure.ac (ACX_BUGURL): change bug URL to https.
9646 2020-05-30 Pedro Alves <palves@redhat.com>
9648 * cp-support.c (replace_typedefs_template): New.
9649 (replace_typedefs_qualified_name): Handle
9650 DEMANGLE_COMPONENT_TEMPLATE.
9652 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9654 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9655 dwarf2/index-cache.h, dwarf2/index-write.c,
9656 dwarf2/index-write.h, dwarf2/line-header.c,
9657 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9658 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9659 variables and fields from `dwarf2_per_objfile` to just
9660 `per_objfile` throughout.
9662 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9664 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9665 <push_dwarf_reg_entry_value>: Add comment.
9667 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9668 Keith Seitz <keiths@redhat.com>
9670 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9671 instead of PyEval_ReleaseLock.
9672 (class gdbpy_gil): Move to earlier in file.
9673 (finalize_python): Set gdb_python_initialized.
9674 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9675 when not initialized.
9677 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9679 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9680 <push_dwarf_reg_entry_value>: Remove assert. Override
9681 per_objfile with caller_per_objfile.
9683 2020-05-28 Tom de Vries <tdevries@suse.de>
9685 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9686 PR gold/15646 workaround to symbol kind "type".
9688 2020-05-27 Tom Tromey <tromey@adacore.com>
9690 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9692 2020-05-27 Tom Tromey <tromey@adacore.com>
9694 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9695 Use htab_find_with_hash.
9696 <add_abbrev>: Remove "abbrev_number" parameter.
9697 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9698 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9699 (hash_abbrev): Add comment.
9700 (abbrev_table::lookup_abbrev): Move to header file.
9701 (abbrev_table::read): Update.
9703 2020-05-27 Tom Tromey <tromey@adacore.com>
9705 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9707 <canonical_name>: New member.
9708 <raw_name>: Rename from "name".
9709 (partial_die_info): Initialize canonical_name.
9710 (scan_partial_symbols): Check raw_name.
9711 (partial_die_parent_scope, partial_die_full_name)
9712 (add_partial_symbol, add_partial_subprogram)
9713 (add_partial_enumeration, load_partial_dies): Use "name" method.
9714 (partial_die_info::name): New method.
9715 (partial_die_info::read, guess_partial_die_structure_name)
9716 (partial_die_info::fixup): Update.
9718 2020-05-27 Tom Tromey <tromey@adacore.com>
9720 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9721 <get_ref_die_offset>: Inline.
9722 <get_ref_die_offset_complaint>: New method.
9723 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9724 (attribute::get_ref_die_offset_complaint): Rename from
9725 get_ref_die_offset. Just issue complaint.
9727 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9729 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9731 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9733 * exec.c (exec_file_attach): Use errno value of first openp failure.
9735 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9737 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9738 Don't close thread handle.
9740 2020-05-27 Tom Tromey <tom@tromey.com>
9741 Simon Marchi <simon.marchi@efficios.com>
9743 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9745 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9747 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9748 dwarf2_per_bfd_objfile_data_key>: New globals.
9749 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9750 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9751 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9753 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9754 short-circuit when sharing.
9755 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9756 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9758 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9760 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9762 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9763 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9765 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9767 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9768 build_name_components, find_name_components_bounds>:
9769 Add per_objfile parameter.
9770 (struct mapped_index) <symbol_name_at>: Likewise.
9771 (struct mapped_debug_names): Remove constructor.
9772 <dwarf2_per_objfile>: Remove field.
9773 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9774 (mapped_index_base::find_name_components_bounds,
9775 mapped_index_base::build_name_components,
9776 dw2_expand_symtabs_matching_symbol): Likewise.
9777 (class mock_mapped_index) <symbol_name_at>: Likewise.
9778 (check_match): Likewise.
9779 (check_find_bounds_finds): Likewise.
9780 (test_mapped_index_find_name_component_bounds): Update.
9781 (CHECK_MATCH): Update.
9782 (dw2_expand_symtabs_matching): Update.
9783 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9784 per_objfile parameter.
9785 <find_vec_in_debug_names>: Likewise.
9786 <m_per_objfile>: New field.
9787 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9789 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9790 (dw2_debug_names_iterator::next): Update.
9791 (dw2_debug_names_lookup_symbol): Update.
9792 (dw2_debug_names_expand_symtabs_for_function): Update.
9793 (dw2_debug_names_map_matching_symbols): Update.
9794 (dw2_debug_names_expand_symtabs_matching): Update.
9795 (dwarf2_read_debug_names): Update.
9797 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9799 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9800 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9801 move to dwarf2_per_objfile.
9802 <read_in_chain>: Remove.
9803 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9804 remove_all_cus, age_comp_units>: New methods.
9805 <m_dwarf2_cus>: New member.
9806 (struct dwarf2_per_cu_data) <cu>: Remove.
9807 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9808 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9809 moved to methods of dwarf2_per_objfile.
9810 (dwarf2_clear_marks): Remove.
9811 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9812 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9813 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9814 (dwarf2_per_objfile::remove_all_cus): New.
9815 (class free_cached_comp_units) <~free_cached_comp_units>:
9818 (dw2_do_instantiate_symtab): Adjust.
9819 (fill_in_sig_entry_from_dwo_entry): Adjust.
9820 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9821 (cutu_reader::cutu_reader): Likewise.
9822 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9823 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9824 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9825 and dwarf2_per_objfile::age_comp_units.
9826 (load_partial_comp_unit): Update.
9827 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9828 (process_queue): Likewise.
9829 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9831 (dwarf2_read_addr_index): Likewise.
9832 (follow_die_offset): Likewise.
9833 (dwarf2_fetch_die_loc_sect_off): Likewise.
9834 (dwarf2_fetch_constant_bytes): Likewise.
9835 (dwarf2_fetch_die_type_sect_off): Likewise.
9836 (follow_die_sig_1): Likewise.
9837 (load_full_type_unit): Likewise.
9838 (read_signatured_type): Likewise.
9839 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9840 (dwarf2_cu::~dwarf2_cu): Remove.
9841 (dwarf2_per_objfile::get_cu): New.
9842 (dwarf2_per_objfile::set_cu): New.
9843 (age_cached_comp_units): Rename to...
9844 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9845 to std::unordered_map.
9846 (free_one_cached_comp_unit): Rename to...
9847 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9848 to std::unordered_map.
9849 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9850 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9851 a dwarf2_per_objfile in data.
9852 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9853 (dwarf2_clear_marks): Remove.
9855 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9857 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9858 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9859 (init_tu_and_read_dwo_dies): Likewise.
9860 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9861 (cutu_reader::cutu_reader): Likewise.
9862 (load_partial_comp_unit): Likewise.
9863 (process_psymtab_comp_unit): Update.
9864 (build_type_psymtabs_1): Update.
9865 (process_skeletonless_type_unit): Update.
9866 (load_full_comp_unit): Update.
9867 (find_partial_die): Update.
9868 (dwarf2_read_addr_index): Update.
9869 (read_signatured_type): Update.
9871 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9873 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9874 m_header_read_in>: New fields.
9875 <get_header>: New method.
9876 * dwarf2/read.c (per_cu_header_read_in): Remove.
9877 (dwarf2_per_cu_data::get_header): New.
9878 (dwarf2_per_cu_data::addr_size): Update.
9879 (dwarf2_per_cu_data::offset_size): Update.
9880 (dwarf2_per_cu_data::ref_addr_size): Update.
9882 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9884 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9885 (dw2_do_instantiate_symtab): Update.
9886 (queue_and_load_all_dwo_tus): Change parameter from
9887 dwarf2_per_cu_data to dwarf2_cu.
9888 (dwarf2_fetch_die_loc_sect_off): Update.
9889 (dwarf2_fetch_constant_bytes): Update.
9890 (dwarf2_fetch_die_type_sect_off): Update.
9892 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9894 * dwarf2/read.c (process_full_comp_unit,
9895 process_full_type_unit): Remove per_cu, per_objfile paramters.
9896 Add dwarf2_cu parameter.
9897 (process_queue): Update.
9899 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9901 * dwarf2/read.c (create_cu_from_index_list): Replace
9902 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9903 (create_cus_from_index_list): Likewise.
9904 (create_cus_from_index): Likewise.
9905 (create_signatured_type_table_from_index): Likewise.
9906 (create_cus_from_debug_names_list): Likewise.
9907 (create_cus_from_debug_names): Likewise.
9908 (dwarf2_read_gdb_index): Update.
9909 (dwarf2_read_debug_names): Update.
9911 2020-05-27 Tom Tromey <tom@tromey.com>
9912 Simon Marchi <simon.marchi@efficios.com>
9914 * dwarf2/read.h (struct dwarf2_per_objfile)
9915 <get_type_for_signatured_type, set_type_for_signatured_type>:
9917 <m_type_map>: New member.
9918 (struct signatured_type) <type>: Remove.
9920 (dwarf2_per_objfile::get_type_for_signatured_type,
9921 dwarf2_per_objfile::set_type_for_signatured_type): New.
9922 (get_signatured_type): Use new methods.
9924 2020-05-27 Tom Tromey <tom@tromey.com>
9925 Simon Marchi <simon.marchi@efficios.com>
9927 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9928 (struct dwarf2_per_objfile) <type_units>: New member.
9929 <get_type_unit_group_unshareable>: New method.
9930 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9931 num_symtabs, symtabs>: Remove; move to
9932 type_unit_group_unshareable.
9933 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9934 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9935 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9937 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9939 * dwarf2/read.h (struct dwarf2_per_cu_data):
9940 <dwarf2_per_objfile>: Remove.
9941 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9943 (create_signatured_type_table_from_index): Likewise.
9944 (create_signatured_type_table_from_debug_names): Likewise.
9945 (create_debug_type_hash_table): Likewise.
9946 (fill_in_sig_entry_from_dwo_entry): Likewise.
9947 (create_type_unit_group): Likewise.
9948 (read_comp_units_from_section): Likewise.
9949 (create_cus_hash_table): Likewise.
9951 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9953 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9954 dwarf2_per_cu_data::dwarf2_per_objfile.
9955 (compute_compunit_symtab_includes): Likewise.
9956 (dwarf2_cu::start_symtab): Likewise.
9958 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9960 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9962 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9963 (read_namespace_alias): Update.
9964 (lookup_die_type): Update.
9965 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9966 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9968 (disassemble_dwarf_expression): Update.
9970 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9972 * dwarf2/read.h (struct dwarf2_queue_item): Add
9973 dwarf2_per_objfile parameter, assign new parameter.
9974 <per_objfile>: New field.
9975 * dwarf2/read.c (free_one_cached_comp_unit): Add
9976 dwarf2_per_objfile parameter.
9977 (queue_comp_unit): Likewise.
9978 (dw2_do_instantiate_symtab): Update.
9979 (process_psymtab_comp_unit): Update.
9980 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9981 (process_imported_unit_die): Update.
9982 (queue_and_load_dwo_tu): Update.
9983 (follow_die_offset): Update.
9984 (follow_die_sig_1): Update.
9986 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9988 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9989 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9990 (read_call_site_scope): Assign per_objfile.
9991 (dwarf2_per_cu_data::objfile): Remove.
9992 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9993 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9994 dwarf2_per_objfile parameter.
9995 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9996 dwarf2_per_objfile parameter.
9997 (dwarf_expr_reg_to_entry_parameter): Add output
9998 dwarf2_per_objfile parameter.
9999 (locexpr_get_frame_base): Update.
10000 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10001 <push_dwarf_reg_entry_value>: Update.
10002 <call_site_to_target_addr>: Update.
10003 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10005 (value_of_dwarf_reg_entry): Update.
10006 (rw_pieced_value): Update.
10007 (indirect_synthetic_pointer): Update.
10008 (dwarf2_evaluate_property): Update.
10009 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10011 (locexpr_read_variable): Update.
10012 (locexpr_get_symbol_read_needs): Update.
10013 (loclist_read_variable): Update.
10015 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10017 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10018 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10019 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10021 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10022 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10023 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10025 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10026 sect_variable_value): Add dwarf2_per_objfile parameter.
10027 (class dwarf_evaluate_loc_desc) <dwarf_call,
10028 dwarf_variable_value>: Update.
10029 (fetch_const_value_from_synthetic_pointer): Add
10030 dwarf2_per_objfile parameter.
10031 (fetch_const_value_from_synthetic_pointer): Update.
10032 (coerced_pieced_ref): Update.
10033 (class symbol_needs_eval_context) <dwarf_call,
10034 dwarf_variable_value>: Update.
10035 (dwarf2_compile_expr_to_ax): Update.
10037 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10039 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10041 (dwarf2_evaluate_loc_desc_full): Update.
10043 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10045 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10047 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10048 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10049 dwarf2_per_objfile parameter.
10050 (decode_debug_loc_dwo_addresses): Likewise.
10051 (dwarf2_find_location_expression): Update.
10052 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10053 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10055 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10057 (locexpr_describe_location_1): Likewise.
10058 (locexpr_describe_location): Update.
10060 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10062 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10064 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10065 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10066 (dwarf2_compile_property_to_c): Update.
10067 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10068 use text offset from objfile.
10069 (locexpr_tracepoint_var_ref): Update.
10070 (locexpr_generate_c_location): Update.
10071 (loclist_describe_location): Update.
10072 (loclist_tracepoint_var_ref): Update.
10073 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10074 dwarf2_per_objfile parameter.
10075 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10076 use text offset from objfile.
10077 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10079 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10081 * dwarf2/expr.h (struct dwarf_expr_context)
10082 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10084 <per_objfile>: New member.
10085 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10086 dwarf2_per_objfile parameter. Don't set offset, set
10088 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10089 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10090 a dwarf2_per_objfile object instead of an offset.
10091 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10093 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10094 to dwarf2_expr_executor constructor. Don't set offset.
10095 (dwarf2_fetch_cfa_info): Update.
10096 (struct dwarf2_frame_cache) <text_offset>: Remove.
10097 <per_objfile>: New field.
10098 (dwarf2_frame_cache): Update.
10099 (dwarf2_frame_prev_register): Update.
10100 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10101 <dwarf_evaluate_loc_desc>: Add constructor.
10102 (dwarf2_evaluate_loc_desc_full): Update.
10103 (dwarf2_locexpr_baton_eval): Update.
10104 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10106 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10108 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10110 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10111 addr_sized_int_type>: Move to dwarf2_cu.
10112 <int_type>: Move to dwarf2_per_objfile.
10113 (struct dwarf2_per_objfile) <int_type>: Move here.
10114 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10115 addr_sized_int_type>: Move here.
10116 (read_func_scope): Update.
10117 (read_array_type): Update.
10118 (read_tag_string_type): Update.
10119 (attr_to_dynamic_prop): Update.
10120 (dwarf2_per_cu_data::int_type): Rename to...
10121 (dwarf2_per_objfile::int_type): ... this.
10122 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10123 (dwarf2_cu::addr_sized_int_type): ... this.
10124 (read_subrange_type): Update.
10125 (dwarf2_per_cu_data::addr_type): Rename to...
10126 (dwarf2_cu::addr_type): ... this.
10127 (set_die_type): Update.
10129 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10131 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10132 data through per_cu->cu.
10134 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10136 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10137 dwarf2_per_cu_data parameter fo dwarf2_cu.
10138 (lookup_dwo_type_unit): Likewise.
10139 (read_cutu_die_from_dwo): Likewise.
10140 (lookup_dwo_unit): Likewise.
10141 (open_and_init_dwo_file): Likewise.
10142 (lookup_dwo_cutu): Likewise.
10143 (lookup_dwo_comp_unit): Likewise.
10144 (lookup_dwo_type_unit): Likewise.
10145 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10146 (cutu_reader::cutu_reader): Update.
10148 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10150 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10152 (process_full_type_unit): Likewise.
10153 (process_queue): Update.
10155 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10157 * dwarf2/read.c (recursively_compute_inclusions): Add
10158 dwarf2_per_objfile parameter.
10159 (compute_compunit_symtab_includes): Likewise.
10160 (process_cu_includes): Update.
10162 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10164 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10166 (create_type_unit_group): Update.
10167 (process_psymtab_comp_unit_reader): Update.
10168 (build_type_psymtabs_reader): Update.
10170 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10172 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10173 object through m_this_cu->cu.
10175 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10177 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10178 the info parameter.
10179 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10181 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10183 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10184 per_objfile parameter.
10185 (load_full_type_unit): Add per_objfile parameter.
10186 (read_signatured_type): Likewise.
10187 (load_full_comp_unit): Likewise.
10188 (load_cu): Likewise.
10189 (dw2_do_instantiate_symtab): Likewise.
10190 (dw2_get_file_names): Likewise.
10191 (dw2_map_symtabs_matching_filename): Update.
10192 (dw_expand_symtabs_matching_file_matcher): Update.
10193 (dw2_map_symbol_filenames): Update.
10194 (process_psymtab_comp_unit): Add per_objfile parameter.
10195 (build_type_psymtabs_1): Update.
10196 (process_skeletonless_type_unit): Update.
10197 (dwarf2_build_psymtabs_hard): Update.
10198 (load_partial_comp_unit): Add per_objfile parameter.
10199 (scan_partial_symbols): Update.
10200 (load_full_comp_unit): Add per_objfile parameter.
10201 (process_imported_unit_die): Update.
10202 (create_cus_hash_table): Update.
10203 (find_partial_die): Update.
10204 (dwarf2_read_addr_index): Update.
10205 (follow_die_offset): Update.
10206 (dwarf2_fetch_die_loc_sect_off): Update.
10207 (dwarf2_fetch_constant_bytes): Update.
10208 (dwarf2_fetch_die_type_sect_off): Update.
10209 (follow_die_sig_1): Update.
10210 (load_full_type_unit): Add per_objfile parameter.
10211 (read_signatured_type): Likewise.
10213 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10215 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10218 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10220 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10221 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10222 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10224 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10225 (create_cus_from_index): Update.
10226 (dwarf2_read_gdb_index): Update.
10227 (create_cus_from_debug_names): Update.
10228 (dwarf2_read_debug_names): Update.
10229 (get_abbrev_section_for_cu): Update.
10230 (create_all_comp_units): Update.
10231 (read_attribute_value): Update.
10232 (get_debug_line_section): Update.
10233 * dwarf2/index-cache.c (index_cache::store): Update.
10234 * dwarf2/index-write.c (save_gdb_index_command): Update.
10235 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10237 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10239 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10241 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10242 dwarf2_per_cu_data::per_bfd.
10243 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10244 (create_type_unit_group): Likewise.
10245 (queue_comp_unit): Remove reference to
10246 per_cu->dwarf2_per_objfile.
10247 (maybe_queue_comp_unit): Likewise.
10248 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10249 (create_cus_hash_table): Assign new field.
10251 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10253 * dwarf2/read.c: Replace
10254 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10255 dwarf2_cu->per_objfile throughout.
10257 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10259 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10260 parameter, don't use per_cu->dwarf2_per_objfile.
10261 (dw2_instantiate_symtab): Likewise.
10262 (dw2_find_last_source_symtab): Update.
10263 (dw2_map_expand_apply): Update.
10264 (dw2_lookup_symbol): Update.
10265 (dw2_expand_symtabs_for_function): Update.
10266 (dw2_expand_all_symtabs): Update.
10267 (dw2_expand_symtabs_with_fullname): Update.
10268 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10269 don't use per_cu->dwarf2_per_objfile.
10270 (dw2_expand_marked_cus): Update.
10271 (dw2_find_pc_sect_compunit_symtab): Update.
10272 (dw2_debug_names_lookup_symbol): Update.
10273 (dw2_debug_names_expand_symtabs_for_function): Update.
10274 (dw2_debug_names_map_matching_symbols): Update.
10275 (dwarf2_psymtab::expand_psymtab): Update.
10277 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10279 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10280 <per_objfile>: New member.
10281 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10282 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10284 (cutu_reader::cutu_reader): Update.
10285 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10287 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10289 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10290 struct dwarf2_per_objfile.
10291 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10293 * dwarf2/read.c (set_die_type): Update.
10294 (get_die_type_at_offset): Update.
10296 2020-05-27 Tom Tromey <tom@tromey.com>
10297 Simon Marchi <simon.marchi@efficios.com>
10299 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10301 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10302 get_symtab, set_symtab>: New methods.
10303 <m_symtabs>: New field.
10304 (struct dwarf2_psymtab): Derive from partial_symtab.
10305 <readin_p, get_compunit_symtab>: Declare methods.
10306 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10307 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10309 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10310 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10311 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10312 (dw2_symtab_iter_next, dw2_print_stats)
10313 (dw2_expand_symtabs_with_fullname)
10314 (dw2_expand_symtabs_matching_one)
10315 (dw_expand_symtabs_matching_file_matcher)
10316 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10317 (dw2_debug_names_iterator::next)
10318 (dw2_debug_names_map_matching_symbols)
10319 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10320 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10321 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10323 (get_compunit_symtab, process_full_comp_unit)
10324 (process_full_type_unit): Update.
10325 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10327 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10329 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10330 then introduce a new dwarf2_per_objfile type.
10331 <read_line_string>: Move to the new dwarf2_per_objfile type.
10332 <objfile>: Likewise.
10333 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10334 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10335 dwarf2_per_objfile->per_bfd.
10336 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10337 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10338 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10339 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10340 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10341 (dwarf2_per_objfile::locate_sections): Rename to...
10342 (dwarf2_per_bfd::locate_sections): ... this.
10343 (dwarf2_per_objfile::get_cutu): Rename to...
10344 (dwarf2_per_bfd::get_cutu): ... this.
10345 (dwarf2_per_objfile::get_cu): Rename to...
10346 (dwarf2_per_bfd::get_cu): ... this.
10347 (dwarf2_per_objfile::get_tu): Rename to...
10348 (dwarf2_per_bfd::get_tu): ... this.
10349 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10350 (dwarf2_per_bfd::allocate_per_cu): ... this.
10351 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10352 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10353 (get_gdb_index_contents_ftype): Change parameter from
10354 dwarf2_per_objfile to dwarf2_per_bfd.
10355 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10356 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10358 2020-05-27 Tom Tromey <tom@tromey.com>
10359 Simon Marchi <simon.marchi@efficios.com>
10361 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10362 (allocate_piece_closure): Set "per_objfile" member.
10363 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10364 (locexpr_describe_location, loclist_describe_location): Use new
10366 * dwarf2/read.c (read_call_site_scope)
10367 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10368 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10369 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10370 handle_data_member_location): Set per_objfile member.
10371 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10373 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10375 2020-05-27 Tom Tromey <tom@tromey.com>
10377 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10378 allocate_signatured_type>: Declare new methods.
10379 <m_num_psymtabs>: New member.
10380 (struct dwarf2_per_cu_data) <index>: New member.
10381 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10382 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10383 (create_cu_from_index_list): Use allocate_per_cu.
10384 (create_signatured_type_table_from_index)
10385 (create_signatured_type_table_from_debug_names)
10386 (create_debug_type_hash_table, add_type_unit)
10387 (read_comp_units_from_section): Use allocate_signatured_type.
10389 2020-05-27 Tom Tromey <tom@tromey.com>
10391 * psymtab.c (partial_map_expand_apply)
10392 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10393 (psym_lookup_global_symbol_language)
10394 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10395 (psym_print_stats, psym_expand_symtabs_for_function)
10396 (psym_map_symbol_filenames, psym_map_matching_symbols)
10397 (psym_expand_symtabs_matching)
10398 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10399 (maintenance_check_psymtabs): Update.
10400 * psympriv.h (struct partial_symtab) <readin_p,
10401 get_compunit_symtab>: Add objfile parameter.
10402 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10404 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10405 get_compunit_symtab>: Likewise.
10406 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10408 2020-05-27 Tom Tromey <tom@tromey.com>
10410 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10412 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10413 (create_cu_from_index_list)
10414 (create_signatured_type_table_from_index)
10415 (create_signatured_type_table_from_debug_names)
10416 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10417 (dwarf2_create_include_psymtab)
10418 (create_debug_type_hash_table, add_type_unit)
10419 (create_type_unit_group, read_comp_units_from_section)
10420 (dwarf2_compute_name, create_cus_hash_table)
10421 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10422 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10424 (dw2_get_real_path): Likewise. Change argument to
10425 dwarf2_per_objfile.
10427 2020-05-27 Luis Machado <luis.machado@linaro.org>
10430 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10431 for ldrd (immediate).
10433 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10435 * command.h: Add comment giving the name of class_tui.
10436 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10437 create the fake command for the help for class_tui.
10439 2020-05-26 Tom Tromey <tromey@adacore.com>
10441 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10442 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10443 (val_atr): New function.
10444 (value_val_atr): Use it.
10445 * ada-valprint.c (print_optional_low_bound): Change low bound
10446 handling for enums.
10447 (val_print_packed_array_elements): Don't call discrete_position.
10448 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10449 discrete_position for enum types.
10450 * language.c (default_print_array_index): Change type.
10451 * language.h (struct language_defn) <la_print_array_index>: Add
10452 index_type parameter, change type of index_value.
10453 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10454 (default_print_array_index): Update.
10455 * valprint.c (maybe_print_array_index): Don't call
10456 value_from_longest. Update.
10457 (value_print_array_elements): Don't call discrete_position.
10459 2020-05-26 Tom Tromey <tromey@adacore.com>
10461 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10462 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10464 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10467 * avr-tdep.c (avr_integer_to_address): Return data or code
10468 address accordingly to the second 'type' argument of the
10471 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10473 * infcmd.c, inferior.h: (construct_inferior_arguments):
10474 Moved function from here to gdbsupport/common-inferior.{h,cc}
10476 2020-05-23 Tom Tromey <tom@tromey.com>
10478 Revert commit eca1f90c:
10479 * NEWS: Remove entry for completion styling.
10480 * completer.c (_rl_completion_prefix_display_length): Move
10482 (gdb_fnprint): Revert.
10483 (gdb_display_match_list_1): Likewise.
10484 * cli/cli-style.c (completion_prefix_style)
10485 (completion_difference_style, completion_suffix_style): Remove.
10486 (_initialize_cli_style): Revert.
10487 * cli/cli-style.h (completion_prefix_style)
10488 (completion_difference_style, completion_suffix_style): Don't
10491 2020-05-24 Pedro Alves <palves@redhat.com>
10493 * symtab.c (completion_list_add_name): Return boolean indication
10494 of whether the symbol matched.
10495 (completion_list_add_symbol): Don't try to remove C++ aliases if
10496 the symbol didn't match in the first place.
10497 * symtab.h (completion_list_add_name): Return bool.
10499 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10501 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10504 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10508 2020-05-23 Tom Tromey <tom@tromey.com>
10510 * NEWS: Add entry for completion styling.
10511 * completer.c (_rl_completion_prefix_display_length): Move
10512 declaration earlier.
10513 (gdb_fnprint): Use completion_style.
10514 (gdb_display_match_list_1): Likewise.
10515 * cli/cli-style.c (completion_prefix_style)
10516 (completion_difference_style, completion_suffix_style): New
10518 (_initialize_cli_style): Register new globals.
10519 * cli/cli-style.h (completion_prefix_style)
10520 (completion_difference_style, completion_suffix_style): Declare.
10522 2020-05-23 Pedro Alves <palves@redhat.com>
10524 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10525 (parse_escape): Use ISDIGIT instead of isdigit.
10526 (puts_debug): Use gdb_isprint instead of isprint.
10527 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10528 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10529 ISSPACE instead of isspace.
10530 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10531 instead of isspace.
10532 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10533 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10534 instead of isxdigit and ISDIGIT instead of isdigit.
10536 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10538 * gdbtypes.h (struct type) <field>: New method.
10539 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10542 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10544 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10545 (TYPE_FIELDS): Use type::fields. Change all call sites that
10546 modify the propery to use type::set_fields instead.
10548 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10550 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10551 type::num_fields instead.
10553 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10555 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10557 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10558 that modify the number of fields to use type::set_num_fields
10561 2020-05-22 Tom Tromey <tromey@adacore.com>
10563 * compile/compile-object-load.h (munmap_list_free): Don't
10566 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10568 * annotate.c (annotate_source_line): Update return type, add call
10569 to update current symtab and line.
10570 * annotate.h (annotate_source_line): Update return type, and
10571 extend header comment.
10572 * source.c (info_line_command): Check annotation_level before
10573 calling annotate_source_line.
10574 * stack.c (print_frame_info): If calling annotate_source_line
10575 returns true, then don't print any other source line information.
10577 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10579 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10581 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10583 * coffread.c (patch_type): Remove NULL check before xfree.
10584 * corefile.c (set_gnutarget): Likewise.
10585 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10586 * exec.c (build_section_table): Likewise.
10587 * remote.c (remote_target::pass_signals): Likewise.
10588 * utils.c (n_spaces): Likewise.
10589 * cli/cli-script.c (document_command): Likewise.
10590 * i386-windows-tdep.c (core_process_module_section): Likewise.
10591 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10593 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10595 * symfile.c (reread_symbols): Clear objfile's section_offsets
10596 vector and section indices, re-compute them by calling
10599 2020-05-20 Tom Tromey <tromey@adacore.com>
10601 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10602 (desc_one_bound, desc_index_type): Compute field name.
10604 2020-05-20 Tom de Vries <tdevries@suse.de>
10607 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10609 2020-05-20 Alan Modra <amodra@gmail.com>
10612 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10614 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10615 passed to bfd_set_filename.
10616 * symfile-mem.c (add_vsyscall_page): Likewise for string
10617 passed to symbol_file_add_from_memory.
10618 (symbol_file_add_from_memory): Make name param a const char* and
10621 2020-05-20 Alan Modra <amodra@gmail.com>
10623 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10624 rather than accessing bfd->filename directly.
10625 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10626 and use bfd_section_name.
10627 * dwarf2/frame.c (decode_frame_entry): Likewise.
10628 * exec.c (exec_set_section_address): Likewise.
10629 * solib-aix.c (solib_aix_bfd_open): Likewise.
10630 * stap-probe.c (get_stap_base_address): Likewise.
10631 * symfile.c (reread_symbols): Likewise.
10633 2020-05-19 Tom Tromey <tromey@adacore.com>
10635 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10637 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10639 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10641 2020-05-19 Pedro Alves <palves@redhat.com>
10643 * NEWS (set exec-file-mismatch): Adjust entry.
10644 * exec.c: Include "build-id.h".
10645 (validate_exec_file): Try to match build IDs instead of filenames.
10646 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10647 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10648 and pass down 'warn_if_slow'.
10649 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10650 gdb_bfd_open_closure to pass it down.
10651 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10653 2020-05-19 Pedro Alves <palves@redhat.com>
10655 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10656 * target.c (target_fileio_open_1): Rename to target_fileio_open
10657 and make extern. Use bool.
10658 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10659 (target_fileio_read_alloc_1): Adjust.
10660 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10661 (target_fileio_open_warn_if_slow): Delete declaration.
10663 2020-05-19 Pedro Alves <palves@redhat.com>
10665 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10666 Adjust all callers.
10668 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10670 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10671 whether disp is negative.
10673 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10675 * symfile.h (struct symfile_segment_data)
10676 <~symfile_segment_data>: Remove.
10677 <segment_info>: Change to std::vector.
10678 * symfile.c (default_symfile_segments): Update.
10679 * elfread.c (elf_symfile_segments): Update.
10681 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10683 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10685 <segment_bases, segment_sizes>: Remove.
10686 * symfile.c (default_symfile_segments): Update.
10687 * elfread.c (elf_symfile_segments): Update.
10688 * remote.c (remote_target::get_offsets): Update.
10689 * solib-target.c (solib_target_relocate_section_addresses):
10692 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10694 * symfile.h (struct symfile_segment_data): Initialize fields.
10695 <~symfile_segment_data>: Add.
10696 (symfile_segment_data_up): New.
10697 (struct sym_fns) <sym_segments>: Return a
10698 symfile_segment_data_up.
10699 (default_symfile_segments): Return a symfile_segment_data_up.
10700 (free_symfile_segment_data): Remove.
10701 (get_symfile_segment_data): Return a symfile_segment_data_up.
10702 * symfile.c (default_symfile_segments): Likewise.
10703 (get_symfile_segment_data): Likewise.
10704 (free_symfile_segment_data): Remove.
10705 (symfile_find_segment_sections): Update.
10706 * elfread.c (elf_symfile_segments): Return a
10707 symfile_segment_data_up.
10708 * remote.c (remote_target::get_offsets): Update.
10709 * solib-target.c (solib_target_relocate_section_addresses):
10711 * symfile-debug.c (debug_sym_segments): Return a
10712 symfile_segment_data_up.
10714 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10717 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10718 Hardcode register numbers.
10721 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10722 procfs_find_LDT_entry): Remove.
10723 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10724 procfs_find_LDT_entry): Remove.
10725 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10728 2020-05-17 Pedro Alves <palves@redhat.com>
10729 Andrew Burgess <andrew.burgess@embecosm.com>
10730 Keno Fischer <keno@juliacomputing.com>
10733 * breakpoint.c (build_target_condition_list): Update comments.
10734 (build_target_command_list): Update comments and skip matching
10736 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10737 a separate function. Simplify "set breakpoint auto-hw off"
10739 (insert_breakpoints): Update comment.
10740 (tracepoint_locations_match): New parameter. For breakpoints,
10741 compare location types too, if the caller wants to.
10742 (handle_automatic_hardware_breakpoints): New functions.
10743 (bp_location_is_less_than): Also sort by location type and
10744 hardware breakpoint length.
10745 (update_global_location_list): Handle "set breakpoint auto-hw on"
10747 (update_breakpoint_locations): Ask breakpoint_locations_match to
10748 ignore location types.
10750 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10752 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10753 type::name instead.
10755 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10757 * gdbtypes.h (struct type) <name, set_name>: New methods.
10758 (TYPE_CODE): Use type::name. Change all call sites used to set
10759 the name to use type::set_name instead.
10761 2020-05-16 Tom Tromey <tom@tromey.com>
10763 * top.c (quit_force): Update.
10764 * infrun.c (handle_no_resumed): Update.
10765 * top.h (all_uis): New function.
10768 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10770 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10772 2020-05-16 Pedro Alves <palves@redhat.com>
10775 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10777 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10779 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10781 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10782 (sparc64_adi_info): Likewise.
10784 2020-05-15 Tom Tromey <tom@tromey.com>
10786 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10788 (lookup_objfile_from_block): Remove.
10789 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10790 (lookup_global_symbol): Use block_objfile.
10791 * symtab.h (lookup_objfile_from_block): Don't declare.
10792 * printcmd.c (clear_dangling_display_expressions): Use
10794 * parse.c (operator_check_standard): Use block_objfile.
10796 2020-05-15 Tom Tromey <tom@tromey.com>
10798 * language.c (language_alloc_type_symbol): Set
10800 * symtab.c (initialize_objfile_symbol): Remove.
10801 (allocate_symbol): Remove.
10802 (allocate_template_symbol): Remove.
10803 * dwarf2/read.c (fixup_go_packaging): Use "new".
10804 (new_symbol): Use "new".
10805 (read_variable): Don't call initialize_objfile_symbol. Use
10807 (read_func_scope): Use "new".
10808 * xcoffread.c (process_xcoff_symbol): Don't call
10809 initialize_objfile_symbol.
10810 (SYMBOL_DUP): Remove.
10811 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10813 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10814 (allocate_template_symbol): Don't declare.
10815 (struct symbol): Add copy constructor. Change defaults.
10816 * jit.c (finalize_symtab): Use "new".
10817 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10819 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10820 (common_block_end): Use "new".
10821 * mdebugread.c (parse_symbol): Use "new".
10822 (new_symbol): Likewise.
10824 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10826 * NEWS: Mention changes to help and apropos.
10828 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10830 * command.h (enum command_class): Improve comments, document
10831 that class_alias is for user-defined aliases, give the class
10832 name for each class, remove unused class_xdb.
10833 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10834 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10835 by a precise class.
10836 * infcmd.c (_initialize_infcmd): Likewise.
10837 * reverse.c (_initialize_reverse): Likewise.
10838 * stack.c (_initialize_stack): Likewise.
10839 * symfile.c (_initialize_symfile): Likewise.
10840 * tracepoint.c (_initialize_tracepoint): Likewise.
10842 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10844 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10845 when their aliased command is traversed.
10846 (help_cmd): Add fput_command_names_styled call to
10847 output command name and aliases when command has an alias.
10849 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10851 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10852 * cli/cli-decode.c (help_cmd_list): Declare as static,
10853 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10854 a command together with the command.
10855 (fput_command_name_styled, fput_command_names_styled): New functions.
10856 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10857 fput_command_name_styled.
10858 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10859 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10861 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10863 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10864 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10865 * command.h (cmd_show_list): Likewise.
10866 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10867 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10869 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10871 * unittests/command-def-selftests.c (traverse_command_structure):
10872 Verify all commands of a list have the same prefix command and
10873 that only the top cmdlist commands have a null prefix.
10875 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10877 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10878 as prefix, not one of its aliases.
10879 (set_cmd_prefix): Remove.
10880 (do_add_cmd): Centralize the setting of the prefix of a command, when
10881 command is defined after its full chain of prefix commands.
10882 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10883 (add_setshow_cmd_full): Likewise.
10884 (update_prefix_field_of_prefixed_commands): New function.
10885 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10886 update_prefix_field_of_prefixed_commands.
10887 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10888 addresses of remote_set_cmdlist and remote_show_cmdlist given
10889 as argument, not the address of an argument.
10890 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10891 * gdb/remote.c (_initialize_remote): Likewise.
10893 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10895 * cli/cli-cmds.c (alias_command): Check for an existing alias
10896 using lookup_cmd_composition, as valid_command_p is too strict
10897 and forbids aliases that are the prefix of an existing alias
10899 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10900 command is properly recognised as a valid command.
10902 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10904 * unittests/help-doc-selftests.c: Rename to
10905 unittests/command-def-selftests.c
10906 * unittests/command-def-selftests.c (help_doc_tests): Update some
10908 (command_structure_tests, traverse_command_structure): New namespace
10910 (command_structure_invariants_tests): New function.
10911 (_initialize_command_def_selftests) Renamed from
10912 _initialize_help_doc_selftests, register command_structure_invariants
10915 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10917 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10918 an alias of 'show'.
10920 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10922 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10923 ada_is_fixed_point_type. Update all callers.
10924 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10926 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10927 Update all callers.
10928 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10929 print_fixed_point_type. Update all callers.
10930 * ada-valprint.c (ada_value_print_num): Replace call to
10931 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10933 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10935 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10937 (cpu_supports_bts): Add CV_AMD case.
10939 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10940 Simon Marchi <simon.marchi@efficios.com>
10942 * infrun.c (stop_all_threads): Collect multiple wait events at
10945 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10947 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10948 type::code instead.
10950 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10952 * gdbtypes.h (struct type) <code, set_code>: New methods.
10953 (TYPE_CODE): Use type::code. Change all call sites used to set
10954 the code to use type::set_code instead.
10956 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10957 Tom de Vries <tdevries@suse.de>
10958 Pedro Alves <palves@redhat.com>
10961 * infrun.c (stop_all_threads): Do NOT ignore
10962 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10963 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10965 (handle_no_resumed): Remove code handling a live inferior with no
10967 * remote.c (has_single_non_exited_thread): New.
10968 (remote_target::update_thread_list): Do not delete a thread if is
10969 the last thread of the process.
10970 * thread.c (thread_select): Call delete_exited_threads instead of
10973 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10975 * infrun.c (stop_all_threads): Enable/disable thread events of all
10976 targets. Move a debug message denoting the end of the function
10977 into the SCOPED_EXIT block.
10979 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10981 * process-stratum-target.h: Include <set>.
10982 (all_non_exited_process_targets, switch_to_target_no_thread): New
10983 function declarations.
10984 * process-stratum-target.c (all_non_exited_process_targets)
10985 (switch_to_target_no_thread): New function implementations.
10987 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10989 * infrun.c (handle_inferior_event): Extract out a piece of code
10991 (mark_non_executing_threads): ...this new function.
10993 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10995 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10998 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11000 * regcache.c (regcache_read_pc_protected): New function
11001 implementation that returns 0 if the PC cannot read via
11002 'regcache_read_pc'.
11003 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11004 instead of 'regcache_read_pc'.
11005 (keep_going_pass_signal): Ditto.
11007 2020-05-13 Tom Tromey <tromey@adacore.com>
11009 * ada-lang.c (align_value): Remove.
11010 (ada_template_to_fixed_record_type_1): Use align_up.
11012 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11014 * async-event.c: Update the copyright year.
11015 * async-event.h: Update the copyright year.
11017 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
11019 * objfiles.h (is_addr_in_objfile,
11020 shared_objfile_contains_address_p): Return bool.
11021 * objfile.c (is_addr_in_objfile,
11022 shared_objfile_contains_address_p): Return bool.
11024 2020-05-11 Tom Tromey <tromey@adacore.com>
11026 * cli/cli-cmds.c (info_command): Restore.
11027 (_initialize_cli_cmds): Use add_prefix_command for "info".
11028 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11030 2020-05-11 Tom Tromey <tromey@adacore.com>
11032 * ada-lang.c (ada_value_primitive_field): Now public.
11033 * ada-lang.h (ada_value_primitive_field): Declare.
11034 * ada-valprint.c (print_field_values): Use
11035 ada_value_primitive_field for wrapper fields.
11037 2020-05-11 Tom de Vries <tdevries@suse.de>
11039 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11042 2020-05-11 Tom de Vries <tdevries@suse.de>
11045 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11046 with length 0, if not gdb-produced.
11047 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11049 2020-05-09 Tom de Vries <tdevries@suse.de>
11052 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11055 2020-05-09 Tom Tromey <tom@tromey.com>
11057 * top.c (server_command): Now bool.
11058 * top.h (server_command): Now bool.
11060 2020-05-08 Tom Tromey <tromey@adacore.com>
11062 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11063 already being processed.
11065 2020-05-08 Tom Tromey <tom@tromey.com>
11067 * printcmd.c (struct display) <next>: Remove.
11068 <display>: New constructor.
11069 <exp_string>: Now a std::string.
11070 <enabled_p>: Now a bool.
11071 (display_number): Move definition earlier.
11072 (displays): Rename from display_chain. Now a std::vector.
11073 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11074 (display_command): Update.
11075 (do_one_display, disable_display)
11076 (enable_disable_display_command, do_enable_disable_display):
11078 (free_display): Remove.
11079 (clear_displays): Rewrite.
11080 (delete_display): Update.
11081 (map_display_numbers): Use function_view. Remove "data"
11083 (do_delete_display): Remove.
11084 (undisplay_command): Update.
11085 (do_one_display, do_displays, disable_display)
11086 (info_display_command): Update.
11087 (do_enable_disable_display): Remove.
11088 (enable_disable_display_command)
11089 (clear_dangling_display_expressions): Update.
11091 2020-05-08 Tom Tromey <tom@tromey.com>
11093 * symtab.c (set_symbol_cache_size)
11094 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11095 (maintenance_print_symbol_cache_statistics): Update.
11096 * symmisc.c (print_symbol_bcache_statistics)
11097 (print_objfile_statistics, maintenance_print_objfiles)
11098 (maintenance_info_symtabs, maintenance_check_symtabs)
11099 (maintenance_expand_symtabs, maintenance_info_line_tables):
11101 * symfile-debug.c (set_debug_symfile): Update.
11102 * source.c (forget_cached_source_info): Update.
11103 * python/python.c (gdbpy_progspaces): Update.
11104 * psymtab.c (maintenance_info_psymtabs): Update.
11105 * probe.c (parse_probes): Update.
11106 * linespec.c (iterate_over_all_matching_symtabs)
11107 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11108 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11109 * exec.c (exec_target::close): Update.
11110 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11111 * breakpoint.c (print_one_breakpoint_location)
11112 (create_longjmp_master_breakpoint)
11113 (create_std_terminate_master_breakpoint): Update.
11114 * progspace.c (program_spaces): Now a std::vector.
11115 (maybe_new_address_space): Update.
11116 (add_program_space): Remove.
11117 (program_space::program_space): Update.
11118 (remove_program_space): Update.
11119 (number_of_program_spaces): Remove.
11120 (print_program_space, update_address_spaces): Update.
11121 * progspace.h (program_spaces): Change type.
11122 (ALL_PSPACES): Remove.
11123 (number_of_program_spaces): Don't declare.
11124 (struct program_space) <next>: Remove.
11126 2020-05-08 Tom Tromey <tom@tromey.com>
11128 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11129 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11130 (enable_break): Update.
11131 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11132 (frv_fdpic_find_canonical_descriptor): Update.
11133 (frv_fetch_objfile_link_map): Update.
11134 * progspace.c (program_space::free_all_objfiles): Update.
11135 (program_space::solibs): New method.
11136 * progspace.h (struct program_space) <solibs>: New method.
11137 * solist.h (master_so_list): Don't declare.
11138 (ALL_SO_LIBS): Remove.
11139 * solib.h (so_list_head): Remove.
11140 (update_solib_list): Update comment.
11141 * solib.c (master_so_list): Remove.
11142 (solib_used, update_solib_list, solib_add)
11143 (info_sharedlibrary_command, clear_solib)
11144 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11146 2020-05-08 Tom Tromey <tom@tromey.com>
11148 * extension.c (extension_languages): Now a std::array.
11149 (ALL_EXTENSION_LANGUAGES): Remove.
11150 (get_ext_lang_defn, get_ext_lang_of_file)
11151 (eval_ext_lang_from_control_command): Update.
11152 (finish_ext_lang_initialization)
11153 (auto_load_ext_lang_scripts_for_objfile)
11154 (ext_lang_type_printers::ext_lang_type_printers)
11155 (apply_ext_lang_type_printers)
11156 (ext_lang_type_printers::~ext_lang_type_printers)
11157 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11158 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11159 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11160 (get_matching_xmethod_workers, ext_lang_colorize)
11161 (ext_lang_before_prompt): Update.
11162 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11164 2020-05-08 Tom Tromey <tom@tromey.com>
11166 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11168 <swap_string, m_string>: Remove.
11169 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11171 * stabsread.c (define_symbol, read_type): Update.
11172 * linespec.c (find_linespec_symbols): Update.
11173 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11174 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11175 * dbxread.c (read_dbx_symtab): Update.
11176 * cp-support.h (cp_canonicalize_string_full)
11177 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11178 Return unique_xmalloc_ptr.
11179 * cp-support.c (inspect_type): Update.
11180 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11181 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11183 * c-typeprint.c (print_name_maybe_canonical): Update.
11184 * break-catch-throw.c (check_status_exception_catchpoint):
11187 2020-05-08 Tom de Vries <tdevries@suse.de>
11189 * infrun.c (follow_fork): Copy current_line and current_symtab to
11192 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11194 * async-event.c (struct async_signal_handler, struct
11195 async_event_handler): Reformat, remove typedef.
11197 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11199 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11200 access thistype->main_type->dyn_prop_list directly.
11202 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11204 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11205 (remove_dyn_prop): Remove. Update all users to use
11206 type::remove_dyn_prop.
11207 * gdbtypes.c (remove_dyn_prop): Rename to...
11208 (type::remove_dyn_prop): ... this.
11210 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11212 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11213 (add_dyn_prop): Remove. Update all users to use
11214 type::add_dyn_prop.
11215 * gdbtypes.c (add_dyn_prop): Rename to...
11216 (type::add_dyn_prop): ... this.
11218 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11220 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11221 (get_dyn_prop): Remove. Update all users to use
11223 * gdbtypes.c (get_dyn_prop): Rename to...
11224 (type::dyn_prop): ... this.
11226 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11228 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11230 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11232 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11233 instruction, skip it if it's there.
11235 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11237 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11239 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11241 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11242 * gdbtypes.c (recursive_dump_type): Remove use of
11245 2020-05-03 Tom Tromey <tom@tromey.com>
11247 * breakpoint.c (catch_command, tcatch_command): Remove.
11248 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11249 add_show_prefix_cmd.
11250 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11251 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11253 (add_internal_problem_command): Use add_basic_prefix_cmd,
11254 add_show_prefix_cmd.
11255 * mips-tdep.c (set_mipsfpu_command): Remove.
11256 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11257 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11258 (_initialize_index_cache): Use add_basic_prefix_cmd.
11259 * memattr.c (dummy_cmd): Remove.
11260 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11261 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11262 (_initialize_tui_win): Use add_basic_prefix_cmd,
11263 add_show_prefix_cmd.
11264 * cli/cli-logging.c (set_logging_command): Remove.
11265 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11266 add_show_prefix_cmd.
11267 (show_logging_command): Remove.
11268 * target.c (target_command): Remove.
11269 (add_target): Use add_basic_prefix_cmd.
11271 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11273 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11275 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11277 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11280 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11282 * nbsd-nat.c (nbsd_enable_proc_events)
11283 (nbsd_nat_target::post_startup_inferior): Add.
11284 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11285 (nbsd_nat_target::update_thread_list): Rewrite.
11286 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11287 "PTRACE_LWP_CREATE".
11288 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11290 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11292 * stack.c (_initialize_stack): Remove duplicated creation
11293 of "frame" command and "f" alias.
11295 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11298 * gdbtypes.c (check_typedef): Calculate size of array of
11301 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11304 * i386-tdep.c (i386_push_dummy_call): Call
11305 i386_thiscall_push_dummy_call.
11306 (i386_thiscall_push_dummy_call): New function.
11307 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11308 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11309 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11311 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11313 * gdbarch.sh (do_read): Add shellcheck disable directive for
11316 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11318 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11319 "referenced but not assigned" warning.
11321 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11323 * gdbarch.sh: Remove code that sets fallbackdefault.
11325 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11327 * gdbarch.sh: Use shell operators && and || instead of
11330 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11332 * gdbarch.sh: Use $(...) instead of `...`.
11334 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11336 * gdbarch.sh: Use double quotes around variables.
11338 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11340 * gdbarch.sh: Use %s with printf, instead of variables in the
11343 2020-04-29 Tom Tromey <tromey@adacore.com>
11346 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11348 (read_enumeration_type): Call
11349 update_enumeration_type_from_children later. Update comments.
11350 (process_enumeration_scope): Don't create type fields.
11352 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11354 * nbsd-tdep.c: Include "xml-syscall.h".
11355 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11357 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11359 * nbsd-nat.c: Include "sys/wait.h".
11360 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11361 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11362 (nbsd_nat_target::remove_exec_catchpoint)
11363 (nbsd_nat_target::set_syscall_catchpoint): Add.
11364 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11365 (nbsd_nat_target::insert_exec_catchpoint)
11366 (nbsd_nat_target::remove_exec_catchpoint)
11367 (nbsd_nat_target::set_syscall_catchpoint): Add.
11368 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11369 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11370 `nbsd_get_syscall_number'.
11372 2020-04-29 Tom Tromey <tom@tromey.com>
11374 * stack.c (print_block_frame_labels): Remove.
11376 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11379 * ada-valprint.c (val_print_packed_array_elements): Move array
11380 end bracket to new line.
11381 (ada_val_print_string): Remove extra spaces before first array
11383 * c-valprint.c (c_value_print_array): Likewise.
11384 * m2-valprint.c (m2_print_array_contents): Likewise.
11385 (m2_value_print_inner): Likewise.
11386 * p-valprint.c (pascal_value_print_inner): Likewise.
11387 * valprint.c (generic_val_print_array): Likewise.
11388 (value_print_array_elements): Move first array element and array
11389 end bracket to new line.
11391 2020-04-29 Tom de Vries <tdevries@suse.de>
11394 * linespec.c (find_method): Fix ix calculation.
11396 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11398 * syscalls/update-netbsd.sh: New file.
11399 * syscalls/netbsd.xml: Regenerate.
11400 * data-directory/Makefile.in: Register `netbsd.xml' in
11403 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11405 * syscalls/update-freebsd.sh: Add double quotes.
11407 2020-04-28 Tom Tromey <tom@tromey.com>
11410 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11411 (cmdpy_init): Allow class_tui.
11413 2020-04-28 Mark Williams <mark@myosotissp.com>
11416 * dwarf2read.c: Add missing assingments to list_in_scope when
11417 start_symtab was already called.
11419 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11422 * dwarf2/read.c (offset_map_type): Use
11423 gdb:hash_enum<sect_offset> as hash function.
11425 2020-04-28 Tom de Vries <tdevries@suse.de>
11427 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11428 with DW_AT_signature.
11430 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11432 * configure.ac: Remove check for fs_base/gs_base in
11434 * configure: Re-generate.
11435 * config.in: Re-generate.
11436 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11437 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11438 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11440 2020-04-27 Luis Machado <luis.machado@linaro.org>
11442 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11443 problematic inline frame unwinding situation.
11444 * frame.c (frame_id_computed_p): New function.
11445 * frame.h (frame_id_computed_p): New prototype.
11447 2020-04-26 Tom Tromey <tom@tromey.com>
11449 * command.h (enum command_class) <class_pseudo>: Remove.
11451 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11453 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11456 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11458 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11459 `PT_GET_PROCESS_STATE' block.
11461 2020-04-24 Tom Tromey <tom@tromey.com>
11463 * symtab.h (symbol_get_demangled_name): Don't declare.
11464 * symtab.c (symbol_get_demangled_name): Remove.
11465 (general_symbol_info::natural_name)
11466 (general_symbol_info::demangled_name): Update.
11468 2020-04-24 Tom Tromey <tom@tromey.com>
11471 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11473 2020-04-24 Tom Tromey <tom@tromey.com>
11476 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11478 (new_symbol): Likewise.
11479 * compile/compile-object-load.c (get_out_value_type): Use
11480 symbol_matches_search_name.
11482 2020-04-24 Tom Tromey <tom@tromey.com>
11484 * dwarf2/read.c (add_partial_symbol): Do not call
11485 compute_and_set_names.
11487 2020-04-24 Tom Tromey <tom@tromey.com>
11489 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11492 2020-04-24 Tom Tromey <tom@tromey.com>
11494 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11495 (add_psymbol_to_list): New overload. Make old overload call new
11497 * psympriv.h (add_psymbol_to_list): New overload.
11499 2020-04-24 Tom Tromey <tom@tromey.com>
11501 * dwarf2/read.c (partial_die_info::read) <case
11502 DW_AT_linkage_name>: Use value_as_string.
11503 (dwarf2_string_attr): Use value_as_string.
11504 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11506 * dwarf2/attribute.c (attribute::value_as_string): New method.
11508 2020-04-24 Tom Tromey <tom@tromey.com>
11510 * symtab.c (general_symbol_info::natural_name)
11511 (general_symbol_info::demangled_name): Check for language_rust.
11513 2020-04-24 Tom Tromey <tom@tromey.com>
11515 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11516 (dwarf2_physname): ... from here.
11517 (partial_die_info::read): Add Rust "{" hack.
11519 2020-04-24 Tom Tromey <tom@tromey.com>
11521 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11523 (symbol_set_demangled_name): Don't declare.
11524 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11525 symbol_set_demangled_name.
11526 (general_symbol_info::set_language)
11527 (general_symbol_info::compute_and_set_names): Update.
11528 * minsyms.c (minimal_symbol_reader::install): Update.
11529 * dwarf2/read.c (new_symbol): Update.
11531 2020-04-24 Tom Tromey <tromey@adacore.com>
11534 * python/py-type.c (convert_field): Handle
11535 FIELD_LOC_KIND_DWARF_BLOCK.
11536 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11537 (typy_get_dynamic): Nw function.
11538 (type_object_getset): Add "dynamic".
11541 2020-04-24 Tom Tromey <tromey@adacore.com>
11543 * ada-typeprint.c (print_choices, print_variant_part)
11544 (print_record_field_types_dynamic): New functions.
11545 (print_record_field_types): Use print_record_field_types_dynamic.
11547 2020-04-24 Tom Tromey <tromey@adacore.com>
11549 * dwarf2/read.c (handle_data_member_location): New overload.
11550 (dwarf2_add_field): Use it.
11551 (decode_locdesc): Add "computed" parameter. Update comment.
11552 * gdbtypes.c (is_dynamic_type_internal): Also look for
11553 FIELD_LOC_KIND_DWARF_BLOCK.
11554 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11555 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11556 virtual base classes.
11557 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11558 FIELD_LOC_KIND_DWARF_BLOCK.
11560 2020-04-24 Tom Tromey <tromey@adacore.com>
11562 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11563 * gdbtypes.c (is_dynamic_type_internal): Check
11564 TYPE_HAS_DYNAMIC_LENGTH.
11565 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11566 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11568 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11571 2020-04-24 Tom Tromey <tromey@adacore.com>
11573 * dwarf2/read.c (struct variant_field): Rewrite.
11574 (struct variant_part_builder): New.
11575 (struct nextfield): Remove "variant" field. Add "offset".
11576 (struct field_info): Add "current_variant_part" and
11578 (alloc_discriminant_info): Remove.
11579 (alloc_rust_variant): New function.
11580 (quirk_rust_enum): Update.
11581 (dwarf2_add_field): Set "offset" member. Don't handle
11582 DW_TAG_variant_part.
11583 (offset_map_type): New typedef.
11584 (convert_variant_range, create_one_variant)
11585 (create_one_variant_part, create_variant_parts)
11586 (add_variant_property): New functions.
11587 (dwarf2_attach_fields_to_type): Call add_variant_property.
11588 (read_structure_type): Don't handle DW_TAG_variant_part.
11589 (handle_variant_part, handle_variant): New functions.
11590 (handle_struct_member_die): Use them.
11591 (process_structure_scope): Don't handle variant parts.
11592 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11593 (struct discriminant_info): Remove.
11594 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11595 (struct main_type) <flag_discriminated_union>: Remove.
11596 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11597 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11598 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11600 * valops.c (value_union_variant): Remove.
11601 * value.h (value_union_variant): Don't declare.
11603 2020-04-24 Tom Tromey <tromey@adacore.com>
11605 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11606 (ada_value_primitive_packed_val): Update.
11607 * ada-valprint.c (ada_value_print_1): Update.
11608 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11609 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11610 just an address. Use evaluate_for_locexpr_baton.
11611 (dwarf2_evaluate_property): Update.
11612 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11614 * findvar.c (default_read_var_value): Update.
11615 * gdbtypes.c (compute_variant_fields_inner)
11616 (resolve_dynamic_type_internal): Update.
11617 (resolve_dynamic_type): Change type of valaddr parameter.
11618 * gdbtypes.h (resolve_dynamic_type): Update.
11619 * valarith.c (value_subscripted_rvalue): Update.
11620 * value.c (value_from_contents_and_address): Update.
11622 2020-04-24 Tom Tromey <tromey@adacore.com>
11624 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11625 "push_initial_value" parameter.
11626 (dwarf2_evaluate_property): Likewise.
11627 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11629 2020-04-24 Tom Tromey <tromey@adacore.com>
11631 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11632 (variant::matches, compute_variant_fields_recurse)
11633 (compute_variant_fields_inner, compute_variant_fields): New
11635 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11636 Use resolved_type after type is made.
11637 (operator==): Add new cases.
11638 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11639 (struct discriminant_range, struct variant, struct variant_part):
11641 (union dynamic_prop_data) <variant_parts, original_type>: New
11643 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11644 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11646 * value.c (unpack_bits_as_long): Now public.
11647 * value.h (unpack_bits_as_long): Declare.
11649 2020-04-24 Tom Tromey <tromey@adacore.com>
11651 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11652 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11654 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11656 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11658 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11660 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11661 (remove_fork_catchpoint, post_startup_inferior)
11662 (post_attach): Move...
11663 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11664 (remove_fork_catchpoint, post_startup_inferior)
11665 (post_attach): ...here.
11666 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11667 (remove_fork_catchpoint, post_startup_inferior)
11668 (post_attach): Move...
11669 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11670 (remove_fork_catchpoint, post_startup_inferior)
11671 (post_attach): ...here.
11673 2020-04-24 Tom Tromey <tromey@adacore.com>
11675 * nat/windows-nat.h (struct windows_thread_info)
11676 <pc_adjusted>: New member.
11677 * windows-nat.c (windows_fetch_one_register): Check
11679 (windows_nat_target::get_windows_debug_event)
11680 (windows_nat_target::wait): Set pc_adjusted.
11682 2020-04-24 Tom de Vries <tdevries@suse.de>
11684 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11685 Run gdb-add-index inside temp dir.
11687 2020-04-23 Tom Tromey <tromey@adacore.com>
11689 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11692 2020-04-23 Luis Machado <luis.machado@linaro.org>
11694 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11695 get_frame_register instead of gdbarch_unwind_pc.
11697 2020-04-23 Tom de Vries <tdevries@suse.de>
11699 * symtab.c (lookup_global_symbol): Prefer def over decl.
11701 2020-04-23 Tom de Vries <tdevries@suse.de>
11704 * block.c (best_symbol, better_symbol): Promote to external.
11705 * block.h (best_symbol, better_symbol): Declare.
11706 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11709 2020-04-23 Tom Tromey <tromey@adacore.com>
11712 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11713 "const char *", not a "const std::string &".
11714 <name_and_matcher::operator==>: Update.
11715 * unittests/lookup_name_info-selftests.c: Change type of
11718 2020-04-23 Tom Tromey <tom@tromey.com>
11720 * inferior.h (iterate_over_inferiors): Don't declare.
11721 * inferior.c (iterate_over_inferiors): Remove.
11722 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11724 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11725 use iterate_over_inferiors.
11726 (darwin_resume_inferior_it)
11727 (struct resume_inferior_threads_param)
11728 (darwin_resume_inferior_threads_it): Remove.
11729 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11731 2020-04-23 Tom de Vries <tdevries@suse.de>
11733 * blockframe.c (find_pc_partial_function): Use
11734 find_pc_sect_compunit_symtab rather than
11735 objfile->sf->qf->find_pc_sect_compunit_symtab.
11737 2020-04-22 Tom de Vries <tdevries@suse.de>
11740 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11743 2020-04-22 Tom de Vries <tdevries@suse.de>
11746 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11749 2020-04-22 Tom de Vries <tdevries@suse.de>
11752 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11753 CU if already created.
11755 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11757 * infrun.c (displaced_step_fixup): Switch to the event_thread
11758 before calling displaced_step_restore, not after.
11760 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11762 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11763 its inferior is not recorded by us.
11764 (record_btrace_target_open): Replace call to
11765 all_non_exited_threads () with call to current_inferior
11766 ()->non_exited_threads ().
11767 (record_btrace_target::stop_recording): Likewise.
11768 (record_btrace_target::close): Likewise.
11769 (record_btrace_target::wait): Likewise.
11770 (record_btrace_target::record_stop_replaying): Likewise.
11772 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11774 * btrace.c (btrace_enable): Throw an error on double enables and
11775 when enabling recording fails.
11776 (btrace_disable): Throw an error if the thread is not recorded.
11778 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11780 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11781 request if we do not have a thread_info.
11783 2020-04-21 Tom de Vries <tdevries@suse.de>
11787 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11788 exception in get_frame_id.
11790 2020-04-20 Tom Tromey <tromey@adacore.com>
11792 * python/python.c (struct gdbpy_event): Mark move constructor as
11794 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11795 constructor as noexcept.
11796 * completer.h (struct completion_result): Mark move constructor as
11798 * completer.c (completion_result::completion_result): Use
11799 initialization style. Don't call reset_match_list.
11801 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11803 * MAINTAINERS (Write After Approval): Add myself.
11805 2020-04-18 Tom Tromey <tom@tromey.com>
11807 * windows-tdep.c (init_w32_command_list)
11808 (w32_prefix_command_valid): Restore.
11809 (_initialize_windows_tdep): Call init_w32_command_list.
11811 2020-04-18 Tom Tromey <tom@tromey.com>
11813 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11814 * value.c (value_fn_field): Update.
11815 * valops.c (find_function_in_inferior)
11816 (value_allocate_space_in_inferior): Update.
11817 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11819 * tui/tui-source.c (tui_source_window::set_contents): Update.
11820 * symtab.c (lookup_global_or_static_symbol)
11821 (find_function_start_sal_1, skip_prologue_sal)
11822 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11823 * symmisc.c (dump_msymbols, dump_symtab_1)
11824 (maintenance_print_one_line_table): Update.
11825 * symfile.c (init_entry_point_info, section_is_mapped)
11826 (list_overlays_command, simple_read_overlay_table)
11827 (simple_overlay_update_1): Update.
11828 * stap-probe.c (handle_stap_probe): Update.
11829 * stabsread.c (dbx_init_float_type, define_symbol)
11830 (read_one_struct_field, read_enum_type, read_range_type): Update.
11831 * source.c (info_line_command): Update.
11832 * python/python.c (gdbpy_source_objfile_script)
11833 (gdbpy_execute_objfile_script): Update.
11834 * python/py-type.c (save_objfile_types): Update.
11835 * python/py-objfile.c (py_free_objfile): Update.
11836 * python/py-inferior.c (python_new_objfile): Update.
11837 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11838 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11839 (maintenance_check_psymtabs): Update.
11840 * printcmd.c (info_address_command): Update.
11841 * objfiles.h (struct objfile) <arch>: New method, from
11843 (get_objfile_arch): Don't declare.
11844 * objfiles.c (get_objfile_arch): Remove.
11845 (filter_overlapping_sections): Update.
11846 * minsyms.c (msymbol_is_function): Update.
11847 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11848 (output_nondebug_symbol): Update.
11849 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11850 (mdebug_expand_psymtab): Update.
11851 * machoread.c (macho_add_oso_symfile): Update.
11852 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11854 * linux-fork.c (checkpoint_command): Update.
11855 * linespec.c (convert_linespec_to_sals): Update.
11856 * jit.c (finalize_symtab): Update.
11857 * infrun.c (insert_exception_resume_from_probe): Update.
11858 * ia64-tdep.c (ia64_find_unwind_table): Update.
11859 * hppa-tdep.c (internalize_unwinds): Update.
11860 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11862 * gcore.c (call_target_sbrk): Update.
11863 * elfread.c (record_minimal_symbol, elf_symtab_read)
11864 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11865 (elf_gnu_ifunc_resolve_by_got): Update.
11866 * dwarf2/read.c (create_addrmap_from_index)
11867 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11868 (read_debug_names_from_section)
11869 (process_psymtab_comp_unit_reader, add_partial_symbol)
11870 (add_partial_subprogram, process_full_comp_unit)
11871 (read_file_scope, read_func_scope, read_lexical_block_scope)
11872 (read_call_site_scope, dwarf2_ranges_read)
11873 (dwarf2_record_block_ranges, dwarf2_add_field)
11874 (mark_common_block_symbol_computed, read_tag_pointer_type)
11875 (read_tag_string_type, dwarf2_init_float_type)
11876 (dwarf2_init_complex_target_type, read_base_type)
11877 (partial_die_info::read, partial_die_info::read)
11878 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11879 (dwarf2_fetch_die_loc_sect_off): Update.
11880 * dwarf2/loc.c (dwarf2_find_location_expression)
11881 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11882 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11883 (dwarf2_loc_desc_get_symbol_read_needs)
11884 (locexpr_describe_location_piece, locexpr_describe_location_1)
11885 (loclist_describe_location): Update.
11886 * dwarf2/index-write.c (write_debug_names): Update.
11887 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11888 * dtrace-probe.c (dtrace_process_dof): Update.
11889 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11890 (process_one_symbol): Update.
11891 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11892 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11893 (coff_read_enum_type): Update.
11894 * cli/cli-cmds.c (edit_command, list_command): Update.
11895 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11896 * breakpoint.c (create_overlay_event_breakpoint)
11897 (create_longjmp_master_breakpoint)
11898 (create_std_terminate_master_breakpoint)
11899 (create_exception_master_breakpoint, get_sal_arch): Update.
11900 * block.c (block_gdbarch): Update.
11901 * annotate.c (annotate_source_line): Update.
11903 2020-04-17 Tom Tromey <tromey@adacore.com>
11905 * auto-load.c (show_auto_load_cmd): Remove.
11906 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11907 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11908 (maintenance_print_arc_command): Remove.
11909 * tui/tui-win.c (tui_command): Remove.
11910 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11911 * tui/tui-layout.c (tui_layout_command): Remove.
11912 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11913 * python/python.c (user_set_python, user_show_python): Remove.
11914 (_initialize_python): Use add_basic_prefix_cmd,
11915 add_show_prefix_cmd.
11916 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11917 (install_gdb_commands): Use add_basic_prefix_cmd,
11918 add_show_prefix_cmd.
11919 (info_guile_command): Remove.
11920 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11921 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11922 add_show_prefix_cmd.
11923 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11924 Remove do_set and do_show parameters.
11925 * cli/cli-style.c (set_style, show_style): Remove.
11926 (_initialize_cli_style): Use add_basic_prefix_cmd,
11927 add_show_prefix_cmd.
11928 (cli_style_option::add_setshow_commands): Remove do_set and
11929 do_show parameters.
11930 (cli_style_option::add_setshow_commands): Use
11931 add_basic_prefix_cmd, add_show_prefix_cmd.
11932 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11933 (set_style_name): Remove.
11934 * cli/cli-dump.c (dump_command, append_command): Remove.
11935 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11936 (tekhex_dump_command, binary_dump_command)
11937 (binary_append_command): Remove.
11938 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11939 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11940 (init_w32_command_list): Remove; move into ...
11941 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11942 * valprint.c (set_print, show_print, set_print_raw)
11943 (show_print_raw): Remove.
11944 (_initialize_valprint): Use add_basic_prefix_cmd,
11945 add_show_prefix_cmd.
11946 * typeprint.c (set_print_type, show_print_type): Remove.
11947 (_initialize_typeprint): Use add_basic_prefix_cmd,
11948 add_show_prefix_cmd.
11949 * record.c (set_record_command, show_record_command): Remove.
11950 (_initialize_record): Use add_basic_prefix_cmd,
11951 add_show_prefix_cmd.
11952 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11953 add_show_prefix_cmd.
11954 (info_command, show_command, set_debug, show_debug): Remove.
11955 * top.h (set_history, show_history): Don't declare.
11956 * top.c (set_history, show_history): Remove.
11957 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11958 (unset_tdesc_cmd): Remove.
11959 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11960 add_show_prefix_cmd.
11961 * symtab.c (info_module_command): Remove.
11962 (_initialize_symtab): Use add_basic_prefix_cmd.
11963 * symfile.c (overlay_command): Remove.
11964 (_initialize_symfile): Use add_basic_prefix_cmd.
11965 * sparc64-tdep.c (info_adi_command): Remove.
11966 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11967 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11968 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11969 add_show_prefix_cmd.
11970 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11971 (_initialize_serial): Use add_basic_prefix_cmd,
11972 add_show_prefix_cmd.
11973 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11974 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11975 add_show_prefix_cmd.
11976 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11977 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11978 add_show_prefix_cmd.
11979 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11980 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11981 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11982 add_show_prefix_cmd.
11983 * remote.c (remote_command, set_remote_cmd): Remove.
11984 (_initialize_remote): Use add_basic_prefix_cmd.
11985 * record-full.c (set_record_full_command)
11986 (show_record_full_command): Remove.
11987 (_initialize_record_full): Use add_basic_prefix_cmd,
11988 add_show_prefix_cmd.
11989 * record-btrace.c (cmd_set_record_btrace)
11990 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11991 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11992 (cmd_show_record_btrace_pt): Remove.
11993 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11994 add_show_prefix_cmd.
11995 * ravenscar-thread.c (set_ravenscar_command)
11996 (show_ravenscar_command): Remove.
11997 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11998 add_show_prefix_cmd.
11999 * mips-tdep.c (show_mips_command, set_mips_command)
12000 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12001 add_show_prefix_cmd.
12002 * maint.c (maintenance_command, maintenance_info_command)
12003 (maintenance_check_command, maintenance_print_command)
12004 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12005 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12006 add_show_prefix_cmd.
12007 (show_per_command_cmd): Remove.
12008 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12010 (maintenance_show_test_settings_cmd): Remove.
12011 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12012 add_show_prefix_cmd.
12013 * maint-test-options.c (maintenance_test_options_command):
12015 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12016 * macrocmd.c (macro_command): Remove
12017 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12018 * language.c (set_check, show_check): Remove.
12019 (_initialize_language): Use add_basic_prefix_cmd,
12020 add_show_prefix_cmd.
12021 * infcmd.c (unset_command): Remove.
12022 (_initialize_infcmd): Use add_basic_prefix_cmd.
12023 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12024 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12025 add_show_prefix_cmd.
12026 * go32-nat.c (go32_info_dos_command): Remove.
12027 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12028 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12029 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12030 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12031 (_initialize_frame): Use add_basic_prefix_cmd,
12032 add_show_prefix_cmd.
12033 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12034 (_initialize_dcache): Use add_basic_prefix_cmd,
12035 add_show_prefix_cmd.
12036 * cp-support.c (maint_cplus_command): Remove.
12037 (_initialize_cp_support): Use add_basic_prefix_cmd.
12038 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12039 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12040 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12041 add_basic_prefix_cmd, add_show_prefix_cmd.
12042 * breakpoint.c (save_command): Remove.
12043 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12044 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12045 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12046 add_show_prefix_cmd.
12047 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12048 (set_ada_command, show_ada_command): Remove.
12049 (_initialize_ada_language): Use add_basic_prefix_cmd,
12050 add_show_prefix_cmd.
12051 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12053 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12055 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12056 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12058 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12060 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12063 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12065 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12066 import table is not at beginning of .idata section.
12068 2020-04-16 Pedro Alves <palves@redhat.com>
12070 * inferior.c (delete_inferior): Use delete operator directly
12071 instead of delete_program_space.
12072 * progspace.c (add_program_space): New, factored out from
12073 program_space::program_space.
12074 (remove_program_space): New, factored out from
12075 delete_program_space.
12076 (program_space::program_space): Remove intro comment. Rewrite.
12077 (program_space::~program_space): Remove intro comment. Call
12078 remove_program_space.
12079 (delete_program_space): Delete.
12080 * progspace.h (program_space::program_space): Make explicit. Move
12081 intro comment here, adjusted.
12082 (program_space::~program_space): Move intro comment here,
12084 (delete_program_space): Remove.
12086 2020-04-16 Tom Tromey <tromey@adacore.com>
12088 * windows-nat.c (windows_nat::handle_access_violation): New
12090 * nat/windows-nat.h (handle_access_violation): Declare.
12091 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12092 windows-nat.c. Call handle_access_violation.
12094 2020-04-16 Tom de Vries <tdevries@suse.de>
12097 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12098 CUs without psymtab.
12100 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12102 * python/python.c (do_start_initialization): Don't call
12103 PyEval_InitThreads for Python 3.9 and beyond.
12105 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12107 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12109 (obsd_nat_target::wait): Likewise.
12111 2020-04-15 Tom Tromey <tromey@adacore.com>
12113 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12114 (DEBUG_EXCEPT): Use debug_printf.
12116 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12118 * completer.c (class completion_tracker::completion_hash_entry)
12119 <hash_name>: New member function.
12120 (completion_tracker::discard_completions): New callback to hash a
12121 completion_hash_entry, pass this to htab_create_alloc.
12123 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12125 * windows-nat.c (windows_make_so): Warn rather than stopping with
12126 an error if realpath() fails.
12128 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12130 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12131 (nbsd_nat_target::info_proc): Add do_status.
12133 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12134 Tom de Vries <tdevries@suse.de>
12137 * psympriv.h (struct partial_symtab::read_symtab)
12138 (struct partial_symtab::expand_psymtab)
12139 (struct partial_symtab::read_dependencies): Update comments.
12140 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12141 read_symtab for includer.
12142 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12143 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12144 (struct dwarf2_include_psymtab::m_readin): Remove.
12145 (struct dwarf2_include_psymtab::includer): New member function.
12146 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12148 2020-04-14 Tom de Vries <tdevries@suse.de>
12151 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12152 with NULL symbol_matcher and lookup_name.
12153 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12155 * dwarf2/read.c (dw2_expand_symtabs_matching)
12156 (dw2_debug_names_expand_symtabs_matching): Same.
12157 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12158 Make lookup_name a pointer. Update comment.
12159 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12160 lookup_name being a pointer.
12161 * symfile.c (expand_symtabs_matching): Same.
12162 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12163 * linespec.c (iterate_over_all_matching_symtabs): Same.
12165 2020-04-13 Tom Tromey <tom@tromey.com>
12167 * run-on-main-thread.c: Update include.
12168 * unittests/main-thread-selftests.c: Update include.
12169 * tui/tui-win.c: Update include.
12170 * tui/tui-io.c: Update include.
12171 * tui/tui-interp.c: Update include.
12172 * tui/tui-hooks.c: Update include.
12173 * top.h: Update include.
12174 * top.c: Update include.
12175 * ser-base.c: Update include.
12176 * remote.c: Update include.
12177 * remote-notif.c: Update include.
12178 * remote-fileio.c: Update include.
12179 * record-full.c: Update include.
12180 * record-btrace.c: Update include.
12181 * python/python.c: Update include.
12182 * posix-hdep.c: Update include.
12183 * mingw-hdep.c: Update include.
12184 * mi/mi-main.c: Update include.
12185 * mi/mi-interp.c: Update include.
12186 * main.c: Update include.
12187 * linux-nat.c: Update include.
12188 * interps.c: Update include.
12189 * infrun.c: Update include.
12190 * inf-loop.c: Update include.
12191 * event-top.c: Update include.
12192 * event-loop.c: Move to ../gdbsupport/.
12193 * event-loop.h: Move to ../gdbsupport/.
12194 * async-event.h: Update include.
12195 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12197 2020-04-13 Tom Tromey <tom@tromey.com>
12199 * tui/tui-win.c: Include async-event.h.
12200 * remote.c: Include async-event.h.
12201 * remote-notif.c: Include async-event.h.
12202 * record-full.c: Include async-event.h.
12203 * record-btrace.c: Include async-event.h.
12204 * infrun.c: Include async-event.h.
12205 * event-top.c: Include async-event.h.
12206 * event-loop.h: Move some declarations to async-event.h.
12207 * event-loop.c: Don't include ser-event.h or top.h. Move some
12208 code to async-event.c.
12209 * async-event.h: New file.
12210 * async-event.c: New file.
12211 * Makefile.in (COMMON_SFILES): Add async-event.c.
12212 (HFILES_NO_SRCDIR): Add async-event.h.
12214 2020-04-13 Tom Tromey <tom@tromey.com>
12216 * utils.c (flush_streams): New function.
12217 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12219 2020-04-13 Tom Tromey <tom@tromey.com>
12221 * event-loop.c (handle_file_event): Use warning, not
12224 2020-04-13 Tom Tromey <tom@tromey.com>
12226 * event-loop.c: Include <chrono>.
12228 2020-04-13 Tom Tromey <tom@tromey.com>
12230 * gdb_select.h: Move to ../gdbsupport/.
12231 * event-loop.c: Update include path.
12232 * top.c: Update include path.
12233 * ser-base.c: Update include path.
12234 * ui-file.c: Update include path.
12235 * ser-tcp.c: Update include path.
12236 * guile/scm-ports.c: Update include path.
12237 * posix-hdep.c: Update include path.
12238 * ser-unix.c: Update include path.
12239 * gdb_usleep.c: Update include path.
12240 * mingw-hdep.c: Update include path.
12241 * inflow.c: Update include path.
12242 * infrun.c: Update include path.
12243 * event-top.c: Update include path.
12245 2020-04-13 Tom Tromey <tom@tromey.com>
12247 * configure: Rebuild.
12248 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12250 2020-04-13 Tom Tromey <tom@tromey.com>
12252 * event-loop.h (start_event_loop): Don't declare.
12253 * event-loop.c (start_event_loop): Move...
12254 * main.c (start_event_loop): ...here. Now static.
12256 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12258 * MAINTAINERS: Update my email address.
12260 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12262 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12265 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12267 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12268 (nbsd_nat_target::info_proc): Add do_cmdline.
12270 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12272 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12273 (nbsd_nat_target::info_proc): Add do_cwd.
12275 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12277 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12279 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12281 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12282 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12283 (nbsd_nat_target::info_proc): New functions.
12284 * nbsd-nat.c (kinfo_get_vmmap): New function.
12285 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12286 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12287 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12288 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12290 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12291 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12292 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12293 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12294 (KINFO_VME_FLAG_GROWS_DOWN): New.
12296 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12298 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12301 2020-04-10 Tom Tromey <tromey@adacore.com>
12303 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12305 2020-04-10 Tom Tromey <tromey@adacore.com>
12307 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12308 separate debug files.
12310 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12312 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12314 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12316 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12317 Check for STATUS_WX86_BREAKPOINT.
12318 (windows_nat_target::wait): Same.
12320 2020-04-10 Tom de Vries <tdevries@suse.de>
12323 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12325 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12327 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12328 (Write After Approval): Remove Tom de Vries.
12330 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12333 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12335 * buildsym.c (record_line): Fix undefined behavior and preserve
12338 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12340 * auxv.h (svr4_auxv_parse): New.
12341 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12342 and generic_auxv_parse.
12343 (svr4_auxv_parse): Add.
12344 * obsd-tdep.c: Include "auxv.h".
12345 (obsd_auxv_parse): Remove.
12346 (obsd_init_abi): Remove comment.
12347 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12348 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12349 * nbsd-tdep.c: Include "auxv.h".
12350 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12352 2020-04-08 Tom Tromey <tromey@adacore.com>
12354 * nat/windows-nat.h (last_wait_event): Don't declare.
12355 (wait_for_debug_event): Update comment.
12356 * nat/windows-nat.c (last_wait_event): Now static.
12358 2020-04-08 Tom Tromey <tromey@adacore.com>
12360 * windows-nat.c (wait_for_debug_event): Move to
12362 * nat/windows-nat.h (wait_for_debug_event): Declare.
12363 * nat/windows-nat.c (wait_for_debug_event): Move from
12364 windows-nat.c. No longer static.
12366 2020-04-08 Tom Tromey <tromey@adacore.com>
12368 * windows-nat.c (get_windows_debug_event): Use
12369 fetch_pending_stop.
12370 * nat/windows-nat.h (fetch_pending_stop): Declare.
12371 * nat/windows-nat.c (fetch_pending_stop): New function.
12373 2020-04-08 Tom Tromey <tromey@adacore.com>
12375 * windows-nat.c (windows_continue): Use matching_pending_stop and
12376 continue_last_debug_event.
12377 * nat/windows-nat.h (matching_pending_stop)
12378 (continue_last_debug_event): Declare.
12379 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12380 (matching_pending_stop, continue_last_debug_event): New
12383 2020-04-08 Tom Tromey <tromey@adacore.com>
12385 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12386 (handle_exception_result): Move to nat/windows-nat.h.
12387 (DEBUG_EXCEPTION_SIMPLE): Remove.
12388 (windows_nat::handle_ms_vc_exception): New function.
12389 (handle_exception): Move to nat/windows-nat.c.
12390 (get_windows_debug_event): Update.
12391 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12393 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12394 (handle_exception_result): Move from windows-nat.c.
12395 (handle_exception): Declare.
12396 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12397 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12400 2020-04-08 Tom Tromey <tromey@adacore.com>
12402 * windows-nat.c (exception_count, event_count): Remove.
12403 (handle_exception, get_windows_debug_event)
12404 (do_initial_windows_stuff): Update.
12406 2020-04-08 Tom Tromey <tromey@adacore.com>
12408 * windows-nat.c (windows_nat::handle_load_dll)
12409 (windows_nat::handle_unload_dll): Rename. No longer static.
12410 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12413 2020-04-08 Tom Tromey <tromey@adacore.com>
12415 * complaints.h (stop_whining): Declare at top-level.
12416 (complaint): Don't declare stop_whining.
12418 2020-04-08 Tom Tromey <tromey@adacore.com>
12420 * windows-nat.c (windows_nat::handle_output_debug_string):
12421 Rename. No longer static.
12422 * nat/windows-nat.h (handle_output_debug_string): Declare.
12424 2020-04-08 Tom Tromey <tromey@adacore.com>
12426 * windows-nat.c (current_process_handle, current_process_id)
12427 (main_thread_id, last_sig, current_event, last_wait_event)
12428 (current_windows_thread, desired_stop_thread_id, pending_stops)
12429 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12430 (display_selectors, fake_create_process)
12431 (get_windows_debug_event): Update.
12432 * nat/windows-nat.h (current_process_handle, current_process_id)
12433 (main_thread_id, last_sig, current_event, last_wait_event)
12434 (current_windows_thread, desired_stop_thread_id, pending_stops)
12435 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12436 * nat/windows-nat.c (current_process_handle, current_process_id)
12437 (main_thread_id, last_sig, current_event, last_wait_event)
12438 (current_windows_thread, desired_stop_thread_id, pending_stops)
12439 (siginfo_er): New globals. Move from windows-nat.c.
12441 2020-04-08 Tom Tromey <tromey@adacore.com>
12443 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12444 (handle_load_dll): Update.
12445 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12447 2020-04-08 Tom Tromey <tromey@adacore.com>
12449 * windows-nat.c (enum thread_disposition_type): Move to
12451 (windows_nat::thread_rec): Rename from thread_rec. No longer
12453 (windows_add_thread, windows_nat_target::fetch_registers)
12454 (windows_nat_target::store_registers, handle_exception)
12455 (windows_nat_target::resume, get_windows_debug_event)
12456 (windows_nat_target::get_tib_address)
12457 (windows_nat_target::thread_name)
12458 (windows_nat_target::thread_alive): Update.
12459 * nat/windows-nat.h (enum thread_disposition_type): Move from
12461 (thread_rec): Declare.
12463 2020-04-08 Tom Tromey <tromey@adacore.com>
12465 * windows-nat.c: Add "using namespace".
12466 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12467 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12469 2020-04-08 Tom Tromey <tromey@adacore.com>
12471 * nat/windows-nat.h (struct windows_thread_info): Declare
12473 * nat/windows-nat.c (~windows_thread_info): New.
12475 2020-04-08 Tom Tromey <tromey@adacore.com>
12478 * windows-nat.c (current_event): Update comment.
12479 (last_wait_event, desired_stop_thread_id): New globals.
12480 (struct pending_stop): New.
12481 (pending_stops): New global.
12482 (windows_nat_target) <stopped_by_sw_breakpoint>
12483 <supports_stopped_by_sw_breakpoint>: New methods.
12484 (windows_fetch_one_register): Add assertions. Adjust PC.
12485 (windows_continue): Handle pending stops. Suspend other threads
12486 when stepping. Use last_wait_event
12487 (wait_for_debug_event): New function.
12488 (get_windows_debug_event): Use wait_for_debug_event. Handle
12489 pending stops. Queue spurious stops.
12490 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12491 (windows_nat_target::kill): Use wait_for_debug_event.
12492 * nat/windows-nat.h (struct windows_thread_info)
12493 <stopped_at_software_breakpoint>: New field.
12494 * nat/windows-nat.c (windows_thread_info::resume): Clear
12495 stopped_at_software_breakpoint.
12497 2020-04-08 Tom Tromey <tromey@adacore.com>
12499 * windows-nat.c (enum thread_disposition_type): New.
12500 (thread_rec): Replace "get_context" parameter with "disposition";
12502 (windows_add_thread, windows_nat_target::fetch_registers)
12503 (windows_nat_target::store_registers, handle_exception)
12504 (windows_nat_target::resume, get_windows_debug_event)
12505 (windows_nat_target::get_tib_address)
12506 (windows_nat_target::thread_name)
12507 (windows_nat_target::thread_alive): Update.
12509 2020-04-08 Tom Tromey <tromey@adacore.com>
12511 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12512 (windows_continue): Use windows_continue::resume.
12513 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12514 resume>: Declare new methods.
12515 * nat/windows-nat.c: New file.
12516 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12518 2020-04-08 Tom Tromey <tromey@adacore.com>
12520 * windows-nat.c (windows_add_thread, windows_delete_thread)
12521 (windows_nat_target::fetch_registers)
12522 (windows_nat_target::store_registers, fake_create_process)
12523 (windows_nat_target::resume, windows_nat_target::resume)
12524 (get_windows_debug_event, windows_nat_target::wait)
12525 (windows_nat_target::pid_to_str)
12526 (windows_nat_target::get_tib_address)
12527 (windows_nat_target::get_ada_task_ptid)
12528 (windows_nat_target::thread_name)
12529 (windows_nat_target::thread_alive): Use lwp, not tid.
12531 2020-04-08 Tom Tromey <tromey@adacore.com>
12533 * windows-nat.c (handle_exception)
12534 (windows_nat_target::thread_name): Update.
12535 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12536 <name>: Now unique_xmalloc_ptr.
12538 2020-04-08 Tom Tromey <tromey@adacore.com>
12540 * windows-nat.c (thread_rec)
12541 (windows_nat_target::fetch_registers): Update.
12542 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12544 <debug_registers_changed, reload_context>: Now bool.
12546 2020-04-08 Tom Tromey <tromey@adacore.com>
12548 * windows-nat.c (windows_add_thread): Use new.
12549 (windows_init_thread_list, windows_delete_thread): Use delete.
12550 (get_windows_debug_event): Update.
12551 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12552 destructor, and initializers.
12554 2020-04-08 Tom Tromey <tromey@adacore.com>
12556 * windows-nat.c (struct windows_thread_info): Remove.
12557 * nat/windows-nat.h: New file.
12559 2020-04-08 Tom Tromey <tromey@adacore.com>
12561 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12562 (thread_rec, windows_add_thread, windows_delete_thread)
12563 (windows_continue): Update.
12565 2020-04-08 Tom Tromey <tromey@adacore.com>
12567 * windows-nat.c (struct windows_thread_info): Remove typedef.
12568 (thread_head): Remove.
12569 (thread_list): New global.
12570 (thread_rec, windows_add_thread, windows_init_thread_list)
12571 (windows_delete_thread, windows_continue): Update.
12573 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12575 * windows-tdep.h (windows_init_abi): Add comment.
12576 (cygwin_init_abi): New declaration.
12577 * windows-tdep.c: Split signal enumeration in two, one for
12578 Windows and one for Cygwin.
12579 (windows_gdb_signal_to_target): Only deal with signal of the
12581 (cygwin_gdb_signal_to_target): New function.
12582 (windows_init_abi): Rename to windows_init_abi_common, don't set
12583 gdb_signal_to_target gdbarch method. Add new new function with
12585 (cygwin_init_abi): New function.
12586 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12587 comment. Don't call windows_init_abi.
12588 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12589 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12590 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12591 i386_windows_init_abi_common, don't call windows_init_abi. Add
12592 a new function of this name.
12593 (i386_cygwin_init_abi): New function.
12594 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12597 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12599 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12601 (dwarf2_read_gdb_index): Update.
12603 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12605 * nbsd-tdep.c: Include "objfiles.h".
12606 (nbsd_skip_solib_resolver): New.
12607 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12609 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12611 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12612 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12613 with DW_LLE_base_addressx are being emitted in DWARFv5.
12614 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12615 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12618 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12620 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12621 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12622 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12623 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12624 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12625 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12626 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12629 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12631 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12632 (read_loclist_index): New function definition.
12633 (lookup_loclist_base): New function definition.
12634 (read_loclist_header): New function definition.
12635 (dwarf2_cu): Add loclist_base and loclist_header field.
12636 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12637 (read_full_die_1): Read the value of DW_AT_loclists_base.
12638 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12639 (read_attribute_value): Handle DW_FORM_loclistx.
12640 (skip_one_die): Handle DW_FORM_loclistx.
12641 (loclist_header): New structure declaration.
12642 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12644 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12646 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12647 constructor. Remove `addr` parameter from other constructor and
12648 add `per_cu` parameter.
12649 * dwarf2/read.c (create_partial_symtab): Update.
12651 2020-04-07 Tom de Vries <tdevries@suse.de>
12654 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12655 (partial_die_info::fixup): Inherit has_const_value.
12657 2020-04-07 Tom de Vries <tdevries@suse.de>
12659 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12660 symbols without address.
12662 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12664 * nbsd-nat.h (struct thread_info): Add forward declaration.
12665 (nbsd_nat_target::thread_alive): Add.
12666 (nbsd_nat_target::thread_name): Likewise.
12667 (nbsd_nat_target::update_thread_list): Likewise.
12668 (update_thread_list::post_attach): Likewise.
12669 (post_attach::pid_to_str): Likewise.
12670 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12671 (nbsd_thread_lister): Add.
12672 (nbsd_nat_target::thread_alive): Likewise.
12673 (nbsd_nat_target::thread_name): Likewise.
12674 (nbsd_add_threads): Likewise.
12675 (update_thread_list::post_attach): Likewise.
12676 (nbsd_nat_target::update_thread_list): Likewise.
12677 (post_attach::pid_to_str): Likewise.
12679 2020-04-06 Tom Tromey <tromey@adacore.com>
12681 * ada-valprint.c (print_variant_part): Extract the variant field.
12682 (print_field_values): Use the field as the outer value when
12685 2020-04-06 Tom Tromey <tromey@adacore.com>
12687 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12688 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12689 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12690 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12691 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12693 2020-04-06 Tom Tromey <tromey@adacore.com>
12695 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12698 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12700 * nbsd-tdep.c: Include "gdbarch.h".
12701 Define enum with NetBSD signal numbers.
12702 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12703 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12704 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12705 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12706 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12707 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12708 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12709 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12710 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12711 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12712 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12713 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12715 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12718 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12720 2020-04-03 Tom Tromey <tromey@adacore.com>
12722 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12723 Read constant block.
12725 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12727 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12728 (gdb_bfd_get_full_section_contents): New declaration.
12729 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12730 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12731 gdb_bfd_get_full_section_contents.
12733 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12735 * exec.c (build_section_table): Replace internal_error with
12737 (section_table_xfer_memory_partial): Likewise.
12738 * mdebugread.c (parse_partial_symbols): Likewise.
12739 * psymtab.c (lookup_partial_symbol): Likewise.
12740 * utils.c (wrap_here): Likewise.
12742 2020-04-02 Tom Tromey <tromey@adacore.com>
12744 * f-lang.c (build_fortran_types): Use arch_type to initialize
12745 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12747 2020-04-02 Tom Tromey <tromey@adacore.com>
12749 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12752 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12753 Bernd Edlinger <bernd.edlinger@hotmail.de>
12754 Tom Tromey <tromey@adacore.com>
12756 * buildsym.c (buildsym_compunit::record_line): Remove
12757 deduplication code.
12759 2020-04-02 Tom de Vries <tdevries@suse.de>
12762 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12764 2020-04-02 Tom de Vries <tdevries@suse.de>
12766 * dwarf2/read.c (dwarf2_gdb_index_functions,
12767 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12769 * psymtab.c (psym_lookup_global_symbol_language): New function.
12770 (psym_functions): Init psym_lookup_global_symbol_language with
12771 psym_lookup_global_symbol_language.
12772 * symfile-debug.c (debug_sym_quick_functions): Init
12773 lookup_global_symbol_language with NULL.
12774 * symfile.c (set_initial_language): Remove fixme comment.
12775 * symfile.h (struct quick_symbol_functions): Add
12776 lookup_global_symbol_language.
12777 * symtab.c (find_quick_global_symbol_language): New function.
12778 (find_main_name): Use find_quick_global_symbol_language.
12780 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12782 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12784 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12786 * buildsym.c (record_line): Fix undefined behavior and preserve
12789 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12791 * buildsym.c (record_line): Fix the resizing condition.
12793 2020-04-01 Tom Tromey <tom@tromey.com>
12795 * value.h (value_literal_complex): Add comment.
12796 * valops.c (value_literal_complex): Refer to value.h.
12798 2020-04-01 Tom Tromey <tom@tromey.com>
12800 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12801 (scalar_type): New rule, from typebase.
12802 (typebase): Use scalar_type. Recognize complex types.
12803 (field_name): Handle FLOAT_KEYWORD.
12804 (ident_tokens): Add _Complex and __complex__.
12806 2020-04-01 Tom Tromey <tom@tromey.com>
12809 * valarith.c (promotion_type, complex_binop): New functions.
12810 (scalar_binop): Handle complex numbers. Use promotion_type.
12811 (value_pos, value_neg, value_complement): Handle complex numbers.
12813 2020-04-01 Tom Tromey <tom@tromey.com>
12815 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12816 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12817 (parse_number): Handle complex numbers.
12819 2020-04-01 Tom Tromey <tom@tromey.com>
12821 * c-valprint.c (c_decorations): Change complex suffix to "i".
12823 2020-04-01 Tom Tromey <tom@tromey.com>
12825 * valprint.c (generic_value_print_complex): Use accessors.
12826 * value.h (value_real_part, value_imaginary_part): Declare.
12827 * valops.c (value_real_part, value_imaginary_part): New
12829 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12831 2020-04-01 Tom Tromey <tom@tromey.com>
12833 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12834 (read_range_type): Update.
12835 * mdebugread.c (basic_type): Update.
12836 * go-lang.c (build_go_types): Use init_complex_type.
12837 * gdbtypes.h (struct main_type) <complex_type>: New member.
12838 (init_complex_type): Update.
12839 (arch_complex_type): Don't declare.
12840 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12841 Make name if none given. Use alloc_type_copy. Look for cached
12843 (arch_complex_type): Remove.
12844 (gdbtypes_post_init): Use init_complex_type.
12845 * f-lang.c (build_fortran_types): Use init_complex_type.
12846 * dwarf2/read.c (read_base_type): Update.
12847 * d-lang.c (build_d_types): Use init_complex_type.
12848 * ctfread.c (read_base_type): Update.
12850 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12852 * infrun.c (stop_all_threads): Update assertion, plus when
12853 stopping threads, take into account that we might be trying
12854 to stop an all-stop target.
12855 (stop_waiting): Call 'stop_all_threads' if there exists a
12858 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12860 * target.h (exists_non_stop_target): New function declaration.
12861 * target.c (exists_non_stop_target): New function.
12863 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12866 * eval.c (is_integral_or_integral_reference): New function.
12867 (evaluate_subexp_standard): Allow integer references in
12868 pointer arithmetic.
12870 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12872 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12873 check for no ptid in the stop reply when the target is non-stop.
12875 2020-04-01 Tom Tromey <tromey@adacore.com>
12877 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12878 "name" parameter to rvalue reference. Initialize m_name_holder.
12879 <lookup_name_info>: New overloads.
12880 <name>: Return gdb::string_view.
12881 <c_str>: New method.
12882 <make_ignore_params>: Update.
12883 <search_name_hash>: Update.
12884 <language_lookup_name>: Return const char *.
12885 <m_name>: Change type.
12886 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12887 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12888 (lookup_name_info::match_any): Update.
12889 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12891 * minsyms.c (linkage_name_str): Update.
12892 * language.c (default_symbol_name_matcher): Update.
12893 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12895 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12896 (ada_lookup_name_info::ada_lookup_name_info): Update.
12897 (literal_symbol_name_matcher): Update.
12899 2020-04-01 Tom Tromey <tromey@adacore.com>
12901 * psymtab.c (psymtab_search_name): Remove function.
12902 (psym_lookup_symbol): Create search name and lookup name here.
12903 (lookup_partial_symbol): Remove "name" parameter; add
12905 (psym_expand_symtabs_for_function): Update.
12907 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12910 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12912 2020-03-31 Tom Tromey <tromey@adacore.com>
12914 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12917 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12919 * features/riscv/32bit-csr.xml: Regenerated.
12920 * features/riscv/64bit-csr.xml: Regenerated.
12922 2020-03-30 Tom Tromey <tromey@adacore.com>
12924 * ada-valprint.c (print_variant_part): Update.
12925 * ada-lang.h (ada_which_variant_applies): Update.
12926 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12927 outer_valaddr parameters; replace with "outer" value parameter.
12928 (to_fixed_variant_branch_type): Update.
12930 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12932 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12933 <list>. Remove inclusion of observable.h.
12934 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12935 (struct arch_lwp_info): New struct.
12936 (class ppc_linux_dreg_interface): New class.
12937 (struct ppc_linux_process_info): New struct.
12938 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12939 <low_new_clone, low_forget_process, low_prepare_to_resume>
12940 <copy_thread_dreg_state, mark_thread_stale>
12941 <mark_debug_registers_changed, register_hw_breakpoint>
12942 <clear_hw_breakpoint, register_wp, clear_wp>
12943 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12944 <num_memory_accesses, get_trigger_type>
12945 <create_watchpoint_request, hwdebug_point_cmp>
12946 <init_arch_lwp_info, get_arch_lwp_info>
12947 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12949 <struct ptid_hash>: New inner struct.
12950 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12952 (saved_dabr_value, hwdebug_info, max_slots_number)
12953 (struct hw_break_tuple, struct thread_points, ppc_threads)
12954 (have_ptrace_hwdebug_interface)
12955 (hwdebug_find_thread_points_by_tid)
12956 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12957 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12958 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12959 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12960 use m_dreg_interface.
12961 (hwdebug_point_cmp): Change to...
12962 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12963 reference arguments instead of pointers.
12964 (ppc_linux_nat_target::ranged_break_num_registers): Use
12966 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12967 m_dreg_interface. Call register_hw_breakpoint.
12968 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12969 m_dreg_interface. Call clear_hw_breakpoint.
12970 (get_trigger_type): Change to...
12971 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12973 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12974 use m_dreg_interface. Call register_hw_breakpoint.
12975 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12976 use m_dreg_interface. Call clear_hw_breakpoint.
12977 (can_use_watchpoint_cond_accel): Change to...
12978 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12979 method. Update comment, use m_dreg_interface and
12981 (calculate_dvc): Change to...
12982 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12984 (num_memory_accesses): Change to...
12985 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12986 (check_condition): Change to...
12987 (ppc_linux_nat_target::check_condition): ...this method.
12988 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12989 comment, use m_dreg_interface.
12990 (create_watchpoint_request): Change to...
12991 (ppc_linux_nat_target::create_watchpoint_request): ...this
12992 method. Use m_dreg_interface.
12993 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12994 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12995 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12996 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12997 (ppc_linux_nat_target::low_forget_process)
12998 (ppc_linux_nat_target::low_new_fork)
12999 (ppc_linux_nat_target::low_new_clone)
13000 (ppc_linux_nat_target::low_delete_thread)
13001 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13002 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13003 only call mark_thread_stale.
13004 (ppc_linux_thread_exit): Remove.
13005 (ppc_linux_nat_target::stopped_data_address): Change to...
13006 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13007 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13008 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13009 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13010 comment. Call low_stopped_data_address.
13011 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13013 (ppc_linux_nat_target::masked_watch_num_registers): Use
13015 (ppc_linux_nat_target::copy_thread_dreg_state)
13016 (ppc_linux_nat_target::mark_thread_stale)
13017 (ppc_linux_nat_target::mark_debug_registers_changed)
13018 (ppc_linux_nat_target::register_hw_breakpoint)
13019 (ppc_linux_nat_target::clear_hw_breakpoint)
13020 (ppc_linux_nat_target::register_wp)
13021 (ppc_linux_nat_target::clear_wp)
13022 (ppc_linux_nat_target::init_arch_lwp_info)
13023 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13024 (_initialize_ppc_linux_nat): Remove observer callback.
13026 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13028 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13029 (ppc_linux_nat_target::auxv_parse)
13030 (ppc_linux_nat_target::read_description)
13031 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13034 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13036 * linux-nat.h (low_new_clone): New method.
13037 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13039 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13041 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13042 (dbx_expand_psymtab): ... this.
13043 (start_psymtab): Update.
13044 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13045 (mdebug_expand_psymtab): ... this.
13046 (parse_partial_symbols): Update.
13047 (new_psymtab): Update.
13048 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13049 (xcoff_expand_psymtab): ... this.
13050 (xcoff_start_psymtab): Update.
13052 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13054 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13055 <expand_dependencies>: ... this.
13056 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13057 (partial_symtab::expand_dependencies): ... this.
13058 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13060 (dwarf2_psymtab::expand_psymtab): Update.
13061 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13062 * mdebugread.c (psymtab_to_symtab_1): Update.
13063 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13065 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13067 * psympriv.h (discard_psymtab): Remove.
13068 * dbxread.c (dbx_end_psymtab): Update.
13069 * xcoffread.c (xcoff_end_psymtab): Update.
13071 2020-03-28 Tom Tromey <tom@tromey.com>
13073 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13076 2020-03-28 Tom Tromey <tom@tromey.com>
13078 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13080 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13082 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13084 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13086 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13088 2020-03-26 Tom Tromey <tom@tromey.com>
13090 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13091 (mark_common_block_symbol_computed, read_tag_string_type)
13092 (attr_to_dynamic_prop, read_subrange_type): Update.
13093 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13094 to be methods on struct attribute.
13095 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13096 (read_call_site_scope, partial_die_info::read)
13097 (partial_die_info::read, lookup_die_type, follow_die_ref):
13099 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13100 from dwarf2_get_ref_die_offset.
13101 (attribute::constant_value): New method, from
13102 dwarf2_get_attr_constant_value.
13103 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13105 <constant_value>: New method.
13107 2020-03-26 Tom Tromey <tom@tromey.com>
13109 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13110 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13111 (dwarf_type_encoding_name): Move to stringify.c.
13112 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13113 * dwarf2/stringify.c: New file.
13114 * dwarf2/stringify.h: New file.
13116 2020-03-26 Tom Tromey <tom@tromey.com>
13118 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13121 2020-03-26 Tom Tromey <tom@tromey.com>
13123 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13125 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13126 (lookup_ranges_base): Likewise.
13127 (read_cutu_die_from_dwo, read_full_die_1): Update.
13129 2020-03-26 Tom Tromey <tom@tromey.com>
13131 * dwarf2/read.c (read_import_statement, read_file_scope)
13132 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13133 (read_lexical_block_scope, read_call_site_scope)
13134 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13135 (handle_struct_member_die, process_structure_scope)
13136 (update_enumeration_type_from_children)
13137 (process_enumeration_scope, read_array_type, read_common_block)
13138 (read_namespace, read_module, read_subroutine_type): Update.
13139 (sibling_die): Remove.
13141 2020-03-26 Tom Tromey <tom@tromey.com>
13143 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13144 (build_type_psymtabs_reader, read_structure_type)
13145 (read_enumeration_type, read_full_die_1): Update.
13146 (dwarf2_attr_no_follow): Move to die.h.
13147 * dwarf2/die.h (struct die_info) <attr>: New method.
13149 2020-03-26 Tom Tromey <tom@tromey.com>
13151 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13152 <base_address>: Now an optional.
13153 (dwarf2_find_base_address, dwarf2_rnglists_process)
13154 (dwarf2_ranges_process, fill_in_loclist_baton)
13155 (dwarf2_symbol_mark_computed): Update.
13157 2020-03-26 Tom Tromey <tom@tromey.com>
13159 * dwarf2/read.c (struct die_info): Move to die.h.
13160 * dwarf2/die.h: New file.
13162 2020-03-26 Tom Tromey <tom@tromey.com>
13164 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13166 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13167 Move to line-header.c.
13168 (read_checked_initial_length_and_offset, read_formatted_entries):
13170 (dwarf_decode_line_header): Split into two.
13171 * dwarf2/line-header.c
13172 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13174 (read_checked_initial_length_and_offset, read_formatted_entries):
13176 (dwarf_decode_line_header): New function, split from read.c.
13178 2020-03-26 Tom Tromey <tom@tromey.com>
13180 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13182 * dwarf2/read.c (read_attribute_value): Update.
13183 (dwarf2_per_objfile::read_line_string): Rename from
13184 read_indirect_line_string.
13185 (read_formatted_entries): Update.
13187 2020-03-26 Tom Tromey <tom@tromey.com>
13189 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13192 2020-03-26 Tom Tromey <tom@tromey.com>
13194 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13196 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13197 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13200 2020-03-26 Tom Tromey <tom@tromey.com>
13202 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13203 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13204 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13205 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13207 2020-03-26 Tom Tromey <tom@tromey.com>
13209 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13210 file_names_size, file_full_name, file_file_name>: Use const.
13211 <file_name_at, file_names>: Add const overload.
13212 * dwarf2/line-header.c (line_header::file_file_name)
13213 (line_header::file_full_name): Update.
13215 2020-03-26 Tom Tromey <tom@tromey.com>
13217 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13218 (macro_start_file, consume_improper_spaces)
13219 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13220 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13221 (dwarf_decode_macros): Move to macro.c.
13222 * dwarf2/macro.c: New file.
13223 * dwarf2/macro.h: New file.
13224 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13226 2020-03-26 Tom Tromey <tom@tromey.com>
13228 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13230 * dwarf2/section.c: New method. From
13231 read_indirect_string_at_offset_from.
13232 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13233 (read_indirect_string_at_offset_from): Move to section.c.
13234 (read_indirect_string_at_offset): Rewrite.
13235 (read_indirect_line_string_at_offset): Remove.
13236 (read_indirect_string, read_indirect_line_string)
13237 (dwarf_decode_macro_bytes): Update.
13239 2020-03-26 Tom Tromey <tom@tromey.com>
13241 * dwarf2/section.h (struct dwarf2_section_info)
13242 <overload_complaint>: Declare.
13243 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13244 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13245 Rename from dwarf2_section_buffer_overflow_complaint.
13246 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13247 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13249 2020-03-26 Tom Tromey <tom@tromey.com>
13251 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13253 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13255 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13258 2020-03-26 Tom Tromey <tom@tromey.com>
13260 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13262 2020-03-26 Tom Tromey <tom@tromey.com>
13264 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13266 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13268 (dwarf_decode_macros): Update.
13270 2020-03-26 Tom Tromey <tom@tromey.com>
13272 * dwarf2/read.c (read_attribute_value): Update.
13273 (read_indirect_string_from_dwz): Move to dwz.c; change into
13275 (dwarf_decode_macro_bytes): Update.
13276 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13277 * dwarf2/dwz.c: New file.
13278 * Makefile.in (COMMON_SFILES): Add dwz.c.
13280 2020-03-26 Tom Tromey <tom@tromey.com>
13282 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13283 * dwarf2/read.c: Add include.
13284 * dwarf2/index-write.c: Add include.
13285 * dwarf2/index-cache.c: Add include.
13286 * dwarf2/dwz.h: New file.
13288 2020-03-25 Tom Tromey <tom@tromey.com>
13290 * compile/compile-object-load.c (get_out_value_type): Mention
13291 correct symbol name in error message.
13293 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13295 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13297 2020-03-25 Tom de Vries <tdevries@suse.de>
13299 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13300 * symmisc.c (dump_symtab_1): Print user and includes fields.
13301 (maintenance_info_symtabs): Same.
13303 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13306 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13307 (riscv_regcache_cooked_write): New function.
13308 (riscv_push_dummy_call): Use new function.
13309 (riscv_return_value): Likewise.
13311 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13313 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13314 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13315 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13316 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13317 * infrun.c (follow_fork): Likewise.
13318 (follow_fork_inferior): Likewise.
13319 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13320 * linux-nat.h (class linux_nat_target): Likewise.
13321 * remote.c (class remote_target) <follow_fork>: Likewise.
13322 (remote_target::follow_fork): Likewise.
13323 * target-delegates.c: Re-generate.
13324 * target.c (default_follow_fork): Likewise.
13325 (target_follow_fork): Likewise.
13326 * target.h (struct target_ops) <follow_fork>: Likewise.
13327 (target_follow_fork): Likewise.
13329 2020-03-24 Tom de Vries <tdevries@suse.de>
13331 * psymtab.c (maintenance_info_psymtabs): Print user field.
13333 2020-03-20 Tom Tromey <tromey@adacore.com>
13335 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13337 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13340 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13342 * ptrace.m4: Don't check for ptrace declaration.
13343 * config.in: Re-generate.
13344 * configure: Re-generate.
13345 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13348 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13350 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13352 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13353 * sparc-nat.c (gdb_ptrace): Likewise.
13354 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13356 2020-03-20 Tom Tromey <tromey@adacore.com>
13358 * c-exp.y (lex_one_token): Fix assert.
13360 2020-03-20 Tom Tromey <tromey@adacore.com>
13362 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13363 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13366 2020-03-20 Tom Tromey <tromey@adacore.com>
13368 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13370 2020-03-20 Tom Tromey <tromey@adacore.com>
13372 * ada-valprint.c (print_variant_part): Remove parameters; switch
13373 to value-based API.
13374 (print_field_values): Likewise.
13375 (ada_val_print_struct_union): Likewise.
13376 (ada_value_print_1): Update.
13378 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13380 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13381 nbsd_nat_target instead of inf_ptrace_target.
13382 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13385 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13387 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13388 it to the ptrace call.
13389 * (store_registers): Likewise.
13391 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13393 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13394 it to the ptrace call.
13395 * (store_registers): Likewise.
13397 2020-03-19 Luis Machado <luis.machado@linaro.org>
13399 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13400 valid, fetch vg value from ptrace.
13402 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13403 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13404 * inf-ptrace.c: Likewise.
13405 * (gdb_ptrace): Add.
13406 * (inf_ptrace_target::resume): Update.
13407 * (inf_ptrace_target::xfer_partial): Likewise.
13408 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13409 * (inf_ptrace_peek_poke): Update.
13411 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13413 * x86-bsd-nat.c (gdb_ptrace): New.
13414 * (x86bsd_dr_set): Add new argument `ptid'.
13415 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13416 x86bsd_dr_set_addr): Update.
13418 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13420 * remote.c (remote_target::process_stop_reply): Handle events for
13421 all threads differently.
13423 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13425 * completer.c (completion_tracker::remove_completion): Define new
13427 * completer.h (completion_tracker::remove_completion): Declare new
13429 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13430 when adding a C++ function symbol.
13432 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13434 * completer.c (completion_tracker::completion_hash_entry): Define
13436 (advance_to_filename_complete_word_point): Call
13437 recompute_lowest_common_denominator.
13438 (completion_tracker::completion_tracker): Call discard_completions
13439 to setup the hash table.
13440 (completion_tracker::discard_completions): Allow for being called
13441 from the constructor, pass new equal function, and element deleter
13442 when constructing the hash table. Initialise new class member
13444 (completion_tracker::maybe_add_completion): Remove use of
13445 m_entries_vec, and store more information into m_entries_hash.
13446 (completion_tracker::recompute_lcd_visitor): New function, most
13447 content taken from...
13448 (completion_tracker::recompute_lowest_common_denominator):
13449 ...here, this now just visits each item in the hash calling the
13451 (completion_tracker::build_completion_result): Remove use of
13452 m_entries_vec, call recompute_lowest_common_denominator.
13453 * completer.h (completion_tracker::have_completions): Remove use
13455 (completion_tracker::completion_hash_entry): Declare new class.
13456 (completion_tracker::recompute_lowest_common_denominator): Change
13457 function signature.
13458 (completion_tracker::recompute_lcd_visitor): Declare new function.
13459 (completion_tracker::m_entries_vec): Delete.
13460 (completion_tracker::m_entries_hash): Initialize to NULL.
13461 (completion_tracker::m_lowest_common_denominator_valid): New
13463 (completion_tracker::m_lowest_common_denominator_max_length): New
13466 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13468 * regformats/regdef.h: Put reg in gdb namespace.
13470 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13472 * i386-bsd-nat.c (gdb_ptrace): New.
13473 * (i386bsd_fetch_inferior_registers,
13474 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13475 * (i386bsd_fetch_inferior_registers,
13476 i386bsd_store_inferior_registers) Use gdb_ptrace.
13478 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13480 * amd64-bsd-nat.c (gdb_ptrace): New.
13481 * (amd64bsd_fetch_inferior_registers,
13482 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13483 * (amd64bsd_fetch_inferior_registers,
13484 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13486 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13488 * user-regs.c (user_reg::read): Rename to...
13489 (user_reg::xread): ...this.
13490 * (append_user_reg): Rename argument `read' to `xread'.
13491 * (user_reg_add_builtin): Likewise.
13492 * (user_reg_add): Likewise.
13493 * (value_of_user_reg): Likewise.
13495 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13497 * sparc-nat.c (gdb_ptrace): New.
13498 * sparc-nat.c (sparc_fetch_inferior_registers)
13499 (sparc_store_inferior_registers) Remove obsolete comment.
13500 * sparc-nat.c (sparc_fetch_inferior_registers)
13501 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13502 * sparc-nat.c (sparc_fetch_inferior_registers)
13503 (sparc_store_inferior_registers) Use gdb_ptrace.
13505 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13507 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13508 it to the ptrace call.
13509 * sh-nbsd-nat.c (store_registers): Likewise.
13511 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13513 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13514 nbsd_nat_target instead of inf_ptrace_target.
13515 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13518 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13520 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13522 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13524 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13526 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13528 2020-03-17 Tom de Vries <tdevries@suse.de>
13531 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13533 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13535 (process_imported_unit_die): Skip import of c++ CUs.
13537 2020-03-16 Tom Tromey <tom@tromey.com>
13539 * p-valprint.c (pascal_object_print_value): Initialize
13542 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13543 Shahab Vahedi <shahab@synopsys.com>
13545 * Makefile.in: Add arch/arc.o
13546 * configure.tgt: Likewise.
13547 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13548 (_initialize_arc_tdep): Don't initialize old target descriptions.
13549 (arc_read_description): New function to cache target descriptions.
13550 * arc-tdep.h (arc_read_description): Add proto type.
13551 * arch/arc.c: New file.
13552 * arch/arc.h: Likewise.
13553 * features/Makefile: Replace old target descriptions with new.
13554 * features/arc-arcompact.c: Remove.
13555 * features/arc-arcompact.xml: Likewise.
13556 * features/arc-v2.c: Likewise
13557 * features/arc-v2.xml: Likewise
13558 * features/arc/aux-arcompact.xml: New file.
13559 * features/arc/aux-v2.xml: Likewise.
13560 * features/arc/core-arcompact.xml: Likewise.
13561 * features/arc/core-v2.xml: Likewise.
13562 * features/arc/aux-arcompact.c: Generate.
13563 * features/arc/aux-v2.c: Likewise.
13564 * features/arc/core-arcompact.c: Likewise.
13565 * features/arc/core-v2.c: Likewise.
13566 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13568 2020-03-16 Tom Tromey <tromey@adacore.com>
13571 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13572 putting value into bcache.
13574 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13577 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13579 (amd64_windows_init_abi_common): ... this. Don't set size of
13581 (amd64_windows_init_abi): New function.
13582 (amd64_cygwin_init_abi): New function.
13583 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13585 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13588 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13590 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13591 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13592 (pe_import_directory_entry): New struct type.
13593 (is_linked_with_cygwin_dll): New function.
13594 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13595 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13596 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13598 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13600 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13601 i386_cygwin_core_osabi_sniffer.
13603 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13605 * i386-cygwin-tdep.c: Rename to...
13606 * i386-windows-tdep.c: ... this.
13607 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13608 i386-windows-tdep.c.
13609 * configure.tgt: Likewise.
13611 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13613 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13614 * osabi.c (gdb_osabi_names): Add "Windows".
13615 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13616 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13617 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13618 i386_cygwin_osabi_sniffer.
13619 (_initialize_i386_cygwin_tdep): Register OS ABI
13620 GDB_OSABI_WINDOWS for i386.
13621 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13622 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13623 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13625 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13626 when the target matches '*-*-mingw*'.
13628 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13630 * defs.h (enum gdb_osabi): Move to...
13631 * osabi.h (enum gdb_osabi): ... here.
13632 * gdbarch.sh: Include osabi.h in gdbarch.h.
13633 * gdbarch.h: Re-generate.
13635 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13637 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13639 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13641 2020-03-14 Tom Tromey <tom@tromey.com>
13643 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13645 (c_type_print_modifier): Likewise. Add "language" parameter.
13646 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13647 (c_type_print_base_1): Update.
13648 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13650 * type-stack.c (type_stack::insert): Handle tp_atomic and
13652 (type_stack::follow_type_instance_flags): Likewise.
13653 (type_stack::follow_types): Likewise. Merge type-following code.
13654 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13655 (space_identifier, cv_with_space_id)
13656 (const_or_volatile_or_space_identifier_noopt)
13657 (const_or_volatile_or_space_identifier): Remove.
13658 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13660 (ptr_operator, typebase): Update.
13661 (enum token_flag) <FLAG_C>: New constant.
13662 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13664 (lex_one_token): Handle FLAG_C.
13666 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13668 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13669 it to the ptrace call.
13670 * m68k-bsd-nat.c (store_registers): Likewise.
13672 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13674 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13676 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13677 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13678 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13680 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13682 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13683 nbsd_nat_target instead of inf_ptrace_target.
13684 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13687 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13689 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13692 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13694 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13695 it to the ptrace call.
13696 * alpha-bsd-nat.c (store_registers): Likewise.
13698 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13700 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13702 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13703 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13704 fill_fpregset): Likewise.
13706 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13708 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13709 nbsd_nat_target instead of inf_ptrace_target.
13710 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13713 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13715 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13718 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13720 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13721 it to the ptrace call.
13722 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13723 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13724 * arm-nbsd-nat.c (store_register): Likewise.
13725 * arm-nbsd-nat.c (store_regs): Likewise.
13726 * arm-nbsd-nat.c (store_fp_register): Likewise.
13727 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13729 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13731 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13732 nbsd_nat_target instead of inf_ptrace_target.
13733 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13736 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13738 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13739 it to the ptrace call.
13740 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13742 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13744 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13745 it to the ptrace call.
13746 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13748 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13750 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13752 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13754 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13756 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13757 instead of inf_ptrace_target.
13758 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13761 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13763 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13766 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13768 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13771 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13773 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13776 2020-03-13 Tom Tromey <tom@tromey.com>
13778 * value.h (val_print): Don't declare.
13779 * valprint.h (val_print_array_elements)
13780 (val_print_scalar_formatted, generic_val_print): Don't declare.
13781 * valprint.c (generic_val_print_array): Take a struct value.
13782 (generic_val_print_ptr, generic_val_print_memberptr)
13783 (generic_val_print_bool, generic_val_print_int)
13784 (generic_val_print_char, generic_val_print_complex)
13785 (generic_val_print): Remove.
13786 (generic_value_print): Update.
13787 (do_val_print): Remove unused parameters. Don't call
13789 (val_print): Remove.
13790 (common_val_print): Update. Don't call value_check_printable.
13791 (val_print_scalar_formatted, val_print_array_elements): Remove.
13792 * rust-lang.c (rust_val_print): Remove.
13793 (rust_language_defn): Update.
13794 * p-valprint.c (pascal_val_print): Remove.
13795 (pascal_value_print_inner): Update.
13796 (pascal_object_print_val_fields, pascal_object_print_val):
13798 (pascal_object_print_static_field): Update.
13799 * p-lang.h (pascal_val_print): Don't declare.
13800 * p-lang.c (pascal_language_defn): Update.
13801 * opencl-lang.c (opencl_language_defn): Update.
13802 * objc-lang.c (objc_language_defn): Update.
13803 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13804 * m2-lang.h (m2_val_print): Don't declare.
13805 * m2-lang.c (m2_language_defn): Update.
13806 * language.h (struct language_defn) <la_val_print>: Remove.
13807 * language.c (unk_lang_value_print_inner): Rename. Change
13809 (unknown_language_defn, auto_language_defn): Update.
13810 * go-valprint.c (go_val_print): Remove.
13811 * go-lang.h (go_val_print): Don't declare.
13812 * go-lang.c (go_language_defn): Update.
13813 * f-valprint.c (f_val_print): Remove.
13814 * f-lang.h (f_value_print): Don't declare.
13815 * f-lang.c (f_language_defn): Update.
13816 * d-valprint.c (d_val_print): Remove.
13817 * d-lang.h (d_value_print): Don't declare.
13818 * d-lang.c (d_language_defn): Update.
13819 * cp-valprint.c (cp_print_value_fields)
13820 (cp_print_value_fields_rtti, cp_print_value): Remove.
13821 (cp_print_static_field): Update.
13822 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13823 (c_val_print_struct, c_val_print_union, c_val_print_int)
13824 (c_val_print_memberptr, c_val_print): Remove.
13825 * c-lang.h (c_val_print_array, cp_print_value_fields)
13826 (cp_print_value_fields_rtti): Don't declare.
13827 * c-lang.c (c_language_defn, cplus_language_defn)
13828 (asm_language_defn, minimal_language_defn): Update.
13829 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13830 (ada_val_print_enum): Take a struct value.
13831 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13832 (ada_val_print): Remove.
13833 (ada_value_print_1): Update.
13834 (printable_val_type): Remove.
13835 * ada-lang.h (ada_val_print): Don't declare.
13836 * ada-lang.c (ada_language_defn): Update.
13838 2020-03-13 Tom Tromey <tom@tromey.com>
13840 * valprint.c (do_val_print): Update.
13841 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13843 (value_to_value_object_no_release): Declare.
13844 * python/py-value.c (value_to_value_object_no_release): New
13846 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13848 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13850 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13852 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13854 (gdbscm_apply_val_pretty_printer): Take a struct value.
13855 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13857 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13859 * extension-priv.h (struct extension_language_ops)
13860 <apply_val_pretty_printer>: Take a struct value.
13861 * cp-valprint.c (cp_print_value): Create a struct value.
13862 (cp_print_value): Update.
13864 2020-03-13 Tom Tromey <tom@tromey.com>
13866 * ada-valprint.c (print_field_values): Call common_val_print.
13868 2020-03-13 Tom Tromey <tom@tromey.com>
13870 * ada-valprint.c (val_print_packed_array_elements): Remove
13871 bitoffset and val parameters. Call common_val_print.
13872 (ada_val_print_string): Remove offset, address, and original_value
13874 (ada_val_print_array): Update.
13875 (ada_value_print_array): New function.
13876 (ada_value_print_1): Call it.
13878 2020-03-13 Tom Tromey <tom@tromey.com>
13880 * ada-valprint.c (ada_value_print): Use common_val_print.
13882 2020-03-13 Tom Tromey <tom@tromey.com>
13884 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13886 2020-03-13 Tom Tromey <tom@tromey.com>
13888 * ada-valprint.c (ada_value_print_num): New function.
13889 (ada_value_print_1): Use it.
13891 2020-03-13 Tom Tromey <tom@tromey.com>
13893 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13895 2020-03-13 Tom Tromey <tom@tromey.com>
13897 * ada-valprint.c (ada_value_print_ptr): New function.
13898 (ada_value_print_1): Use it.
13900 2020-03-13 Tom Tromey <tom@tromey.com>
13902 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13903 call common_val_print.
13904 (ada_val_print_1): Update.
13905 (ada_value_print_1): New function.
13906 (ada_value_print_inner): Rewrite.
13908 2020-03-13 Tom Tromey <tom@tromey.com>
13910 * cp-valprint.c (cp_print_value_fields): Update.
13911 (cp_print_value): New function.
13913 2020-03-13 Tom Tromey <tom@tromey.com>
13915 * m2-valprint.c (m2_value_print_inner): Use
13916 cp_print_value_fields.
13917 * cp-valprint.c (cp_print_value_fields): New function.
13918 * c-valprint.c (c_value_print_struct): New function.
13919 (c_value_print_inner): Use c_value_print_struct.
13920 * c-lang.h (cp_print_value_fields): Declare.
13922 2020-03-13 Tom Tromey <tom@tromey.com>
13924 * c-valprint.c (c_value_print_array): New function.
13925 (c_value_print_inner): Use it.
13927 2020-03-13 Tom Tromey <tom@tromey.com>
13929 * c-valprint.c (c_value_print_memberptr): New function.
13930 (c_value_print_inner): Use it.
13932 2020-03-13 Tom Tromey <tom@tromey.com>
13934 * c-valprint.c (c_value_print_int): New function.
13935 (c_value_print_inner): Use it.
13937 2020-03-13 Tom Tromey <tom@tromey.com>
13939 * c-valprint.c (c_value_print_ptr): New function.
13940 (c_value_print_inner): Use it.
13942 2020-03-13 Tom Tromey <tom@tromey.com>
13944 * c-valprint.c (c_value_print_inner): Rewrite.
13946 2020-03-13 Tom Tromey <tom@tromey.com>
13948 * valprint.c (generic_value_print_complex): New function.
13949 (generic_value_print): Use it.
13951 2020-03-13 Tom Tromey <tom@tromey.com>
13953 * valprint.c (generic_val_print_float): Don't call
13954 val_print_scalar_formatted.
13955 (generic_val_print, generic_value_print): Update.
13957 2020-03-13 Tom Tromey <tom@tromey.com>
13959 * valprint.c (generic_value_print_char): New function
13960 (generic_value_print): Use it.
13962 2020-03-13 Tom Tromey <tom@tromey.com>
13964 * valprint.c (generic_value_print_int): New function.
13965 (generic_value_print): Use it.
13967 2020-03-13 Tom Tromey <tom@tromey.com>
13969 * valprint.c (generic_value_print_bool): New function.
13970 (generic_value_print): Use it.
13972 2020-03-13 Tom Tromey <tom@tromey.com>
13974 * valprint.c (generic_val_print_func): Simplify.
13975 (generic_val_print, generic_value_print): Update.
13977 2020-03-13 Tom Tromey <tom@tromey.com>
13979 * valprint.c (generic_val_print_flags): Remove.
13980 (generic_val_print, generic_value_print): Update.
13981 (val_print_type_code_flags): Add original_value parameter.
13983 2020-03-13 Tom Tromey <tom@tromey.com>
13985 * valprint.c (generic_val_print): Update.
13986 (generic_value_print): Update.
13987 * valprint.c (generic_val_print_enum): Don't call
13988 val_print_scalar_formatted.
13990 2020-03-13 Tom Tromey <tom@tromey.com>
13992 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13993 * valprint.c (generic_value_print_ptr): New function.
13995 2020-03-13 Tom Tromey <tom@tromey.com>
13997 * valprint.c (generic_value_print): Rewrite.
13999 2020-03-13 Tom Tromey <tom@tromey.com>
14001 * p-valprint.c (pascal_object_print_value_fields)
14002 (pascal_object_print_value): New functions.
14004 2020-03-13 Tom Tromey <tom@tromey.com>
14006 * p-valprint.c (pascal_value_print_inner): Rewrite.
14008 2020-03-13 Tom Tromey <tom@tromey.com>
14010 * f-valprint.c (f_value_print_innner): Rewrite.
14012 2020-03-13 Tom Tromey <tom@tromey.com>
14014 * m2-valprint.c (m2_print_unbounded_array): New overload.
14015 (m2_print_unbounded_array): Update.
14016 (m2_print_array_contents): Take a struct value.
14017 (m2_value_print_inner): Rewrite.
14019 2020-03-13 Tom Tromey <tom@tromey.com>
14021 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14022 (d_value_print_inner): New function.
14023 * d-lang.h (d_value_print_inner): Declare.
14024 * d-lang.c (d_language_defn): Use d_value_print_inner.
14026 2020-03-13 Tom Tromey <tom@tromey.com>
14028 * go-valprint.c (go_value_print_inner): New function.
14029 * go-lang.h (go_value_print_inner): Declare.
14030 * go-lang.c (go_language_defn): Use go_value_print_inner.
14032 2020-03-13 Tom Tromey <tom@tromey.com>
14034 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14036 (rust_val_print): Rewrite.
14037 (rust_value_print_inner): New function, from rust_val_print.
14038 (rust_language_defn): Use rust_value_print_inner.
14040 2020-03-13 Tom Tromey <tom@tromey.com>
14042 * ada-valprint.c (ada_value_print_inner): New function.
14043 * ada-lang.h (ada_value_print_inner): Declare.
14044 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14046 2020-03-13 Tom Tromey <tom@tromey.com>
14048 * f-valprint.c (f_value_print_innner): New function.
14049 * f-lang.h (f_value_print_innner): Declare.
14050 * f-lang.c (f_language_defn): Use f_value_print_innner.
14052 2020-03-13 Tom Tromey <tom@tromey.com>
14054 * p-valprint.c (pascal_value_print_inner): New function.
14055 * p-lang.h (pascal_value_print_inner): Declare.
14056 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14058 2020-03-13 Tom Tromey <tom@tromey.com>
14060 * m2-valprint.c (m2_value_print_inner): New function.
14061 * m2-lang.h (m2_value_print_inner): Declare.
14062 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14064 2020-03-13 Tom Tromey <tom@tromey.com>
14066 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14067 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14068 * c-valprint.c (c_value_print_inner): New function.
14069 * c-lang.h (c_value_print_inner): Declare.
14070 * c-lang.c (c_language_defn, cplus_language_defn)
14071 (asm_language_defn, minimal_language_defn): Use
14072 c_value_print_inner.
14074 2020-03-13 Tom Tromey <tom@tromey.com>
14076 * p-valprint.c (pascal_object_print_value_fields): Now static.
14077 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14079 2020-03-13 Tom Tromey <tom@tromey.com>
14081 * c-valprint.c (c_val_print_array): Simplify.
14083 2020-03-13 Tom Tromey <tom@tromey.com>
14085 * valprint.c (value_print_array_elements): New function.
14086 * valprint.h (value_print_array_elements): Declare.
14088 2020-03-13 Tom Tromey <tom@tromey.com>
14090 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14091 * mips-tdep.c (mips_print_register): Use
14092 value_print_scalar_formatted.
14094 2020-03-13 Tom Tromey <tom@tromey.com>
14096 * valprint.h (value_print_scalar_formatted): Declare.
14097 * valprint.c (value_print_scalar_formatted): New function.
14099 2020-03-13 Tom Tromey <tom@tromey.com>
14101 * valprint.h (generic_value_print): Declare.
14102 * valprint.c (generic_value_print): New function.
14104 2020-03-13 Tom Tromey <tom@tromey.com>
14106 * valprint.c (do_val_print): Call la_value_print_inner, if
14108 * rust-lang.c (rust_language_defn): Update.
14109 * p-lang.c (pascal_language_defn): Update.
14110 * opencl-lang.c (opencl_language_defn): Update.
14111 * objc-lang.c (objc_language_defn): Update.
14112 * m2-lang.c (m2_language_defn): Update.
14113 * language.h (struct language_defn) <la_value_print_inner>: New
14115 * language.c (unknown_language_defn, auto_language_defn): Update.
14116 * go-lang.c (go_language_defn): Update.
14117 * f-lang.c (f_language_defn): Update.
14118 * d-lang.c (d_language_defn): Update.
14119 * c-lang.c (c_language_defn, cplus_language_defn)
14120 (asm_language_defn, minimal_language_defn): Update.
14121 * ada-lang.c (ada_language_defn): Update.
14123 2020-03-13 Tom Tromey <tom@tromey.com>
14125 * c-valprint.c (c_value_print): Use common_val_print.
14127 2020-03-13 Tom Tromey <tom@tromey.com>
14129 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14131 2020-03-13 Tom Tromey <tom@tromey.com>
14133 * f-valprint.c (f77_print_array_1, f_val_print): Use
14136 2020-03-13 Tom Tromey <tom@tromey.com>
14138 * riscv-tdep.c (riscv_print_one_register_info): Use
14141 2020-03-13 Tom Tromey <tom@tromey.com>
14143 * mi/mi-main.c (output_register): Use common_val_print.
14145 2020-03-13 Tom Tromey <tom@tromey.com>
14147 * infcmd.c (default_print_one_register_info): Use
14150 2020-03-13 Tom Tromey <tom@tromey.com>
14152 * valprint.h (common_val_print_checked): Declare.
14153 * valprint.c (common_val_print_checked): New function.
14154 * stack.c (print_frame_arg): Use common_val_print_checked.
14156 2020-03-13 Tom Tromey <tom@tromey.com>
14158 * valprint.c (do_val_print): New function, from val_print.
14159 (val_print): Use do_val_print.
14160 (common_val_print): Use do_val_print.
14162 2020-03-13 Tom Tromey <tom@tromey.com>
14164 * valprint.c (value_print): Use scoped_value_mark.
14166 2020-03-13 Tom de Vries <tdevries@suse.de>
14169 * psymtab.c (partial_symtab::partial_symtab): Don't set
14170 globals_offset and statics_offset. Push element onto
14171 current_global_psymbols and current_static_psymbols stacks.
14172 (concat): New function.
14173 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14174 element from current_global_psymbols and current_static_psymbols
14175 stacks. Concat popped elements to global_psymbols and
14177 (add_psymbol_to_list): Use current_global_psymbols and
14178 current_static_psymbols stacks.
14179 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14180 current_static_psymbols fields.
14182 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14184 * corelow.c (sniff_core_bfd): Remove.
14185 (class core_target) <m_core_vec>: Remove.
14186 (core_target::core_target): Update.
14187 (core_file_fns): Remove.
14188 (deprecated_add_core_fns): Remove.
14189 (default_core_sniffer): Remove.
14190 (sniff_core_bfd): Remove.
14191 (default_check_format): Remove.
14192 (gdb_check_format): Remove.
14193 (core_target_open): Update.
14194 (core_target::get_core_register_section): Update.
14195 (get_core_registers_cb): Update.
14196 (core_target::fetch_registers): Update.
14197 * gdbcore.h (struct core_fns): Remove.
14198 (deprecated_add_core_fns): Remove.
14199 (default_core_sniffer): Remove.
14200 (default_check_format): Remove.
14202 2020-03-12 Tom Tromey <tom@tromey.com>
14204 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14206 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14208 2020-03-12 Tom Tromey <tom@tromey.com>
14210 * remote.c (remote_target::download_tracepoint)
14211 (remote_target::enable_tracepoint)
14212 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14213 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14216 2020-03-12 Tom Tromey <tom@tromey.com>
14218 * symfile-mem.c: Update CORE_ADDR size assert.
14220 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14222 * selftest.m4: Move to gdbsupport/.
14223 * acinclude.m4: Update path to selftest.m4.
14225 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14227 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14228 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14229 gdbarch-selfselftests.c and selftest-arch.c.
14230 (SUBDIR_UNITTESTS_OBS): Rename to...
14231 (SELFTESTS_OBS): ... this.
14232 (COMMON_SFILES): Remove disasm-selftests.c and
14233 gdbarch-selftests.c.
14234 * configure.ac: Don't add selftest-arch.{c,o} to
14236 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14237 preprocessor conditions.
14239 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14241 * configure.ac: Don't source bfd/development.sh.
14242 * selftest.m4: Modify comment.
14243 * configure: Re-generate.
14245 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14247 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14248 not "true" or "false".
14249 * configure: Re-generate.
14251 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14253 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14254 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14255 renamed to arm_nbsd_supply_gregset.
14256 (fetch_register): Update to call arm_nbsd_supply_gregset.
14257 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14258 (arm_netbsd_nat_target::fetch_registers): Update.
14259 (fetch_elfcore_registers): Removed.
14260 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14261 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14262 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14263 not require NetBSD system headers.
14264 (arm_nbsd_regset): New struct.
14265 (arm_nbsd_iterate_over_regset_sections): New function.
14266 (arm_netbsd_init_abi_common): Updated to call
14267 set_gdbarch_iterate_over_regset_sections.
14268 * arm-nbsd-tdep.h: New file.
14270 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14272 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14275 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14277 * configure: Re-generate.
14279 2020-03-11 Tom Tromey <tromey@adacore.com>
14281 * ada-typeprint.c (print_choices): Fix comment.
14283 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14285 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14286 previous item in the list, when the list has no items.
14288 2020-03-11 Tom de Vries <tdevries@suse.de>
14290 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14291 PROP_LOCLIST handling code.
14293 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14295 * buildsym-legacy.c (record_line): Pass extra parameter to
14297 * buildsym.c (buildsym_compunit::record_line): Take an extra
14298 parameter, reduce duplication in the line table, and record the
14299 is_stmt flag in the line table.
14300 * buildsym.h (buildsym_compunit::record_line): Add extra
14302 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14303 non-statement lines.
14304 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14305 this to the symtab builder.
14306 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14307 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14308 through to dwarf_record_line_1.
14309 * infrun.c (process_event_stop_test): When stepping, don't stop at
14310 a non-statement instruction, and only refresh the step info when
14311 we land in the middle of a line's range. Also add an extra
14313 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14315 * record-btrace.c (btrace_find_line_range): Only record lines
14316 marked as is-statement.
14317 * stack.c (frame_show_address): Show the frame address if we are
14318 in a non-statement sal.
14319 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14320 (maintenance_print_one_line_table): Print a header for the is_stmt
14321 column, and include is_stmt information in the output.
14322 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14323 preference to non-statements.
14324 (find_pcs_for_symtab_line): Prefer is-statement entries.
14325 (find_line_common): Likewise.
14326 * symtab.h (struct linetable_entry): Add is_stmt field.
14327 (struct symtab_and_line): Likewise.
14328 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14329 arranging the line table.
14331 2020-03-07 Tom de Vries <tdevries@suse.de>
14333 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14336 2020-03-07 Tom Tromey <tom@tromey.com>
14338 * valops.c (value_literal_complex): Remove obsolete comment.
14339 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14342 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14344 * infrun.h: Forward-declare thread_info.
14345 (set_step_info): Add thread_info parameter, add doc.
14346 * infrun.c (set_step_info): Add thread_info parameter, move doc
14348 * infrun.c (process_event_stop_test): Pass thread to
14349 set_step_info call.
14350 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14352 (prepare_one_step): Add thread_info parameter, pass it to
14353 set_step_frame and prepare_one_step (recursive) call.
14354 (step_1): Pass thread to prepare_one_step call.
14355 (step_command_fsm::should_stop): Pass thread to
14357 (until_next_fsm): Pass thread to set_step_frame call.
14358 (finish_command): Pass thread to set_step_info call.
14360 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14362 * windows-tdep.c (windows_solib_create_inferior_hook):
14363 Check if inferior is running.
14365 2020-03-06 Tom de Vries <tdevries@suse.de>
14367 * NEWS: Fix "the the".
14370 2020-03-06 Tom de Vries <tdevries@suse.de>
14372 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14374 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14376 * .dir-locals.el: Add a comment referencing the other copies of
14379 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14381 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14384 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14386 * .gitattributes: New file.
14388 2020-03-04 Tom Tromey <tom@tromey.com>
14390 * symmisc.c (print_symbol_bcache_statistics)
14391 (print_objfile_statistics): Update.
14392 * symfile.c (allocate_symtab): Use intern.
14393 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14394 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14395 macro_cache>: Remove.
14396 <string_cache>: New member.
14397 (struct objfile) <intern>: New methods.
14398 * elfread.c (elf_symtab_read): Use intern.
14399 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14400 (dwarf2_compute_name, dwarf2_physname)
14401 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14403 (guess_partial_die_structure_name): Update.
14404 (partial_die_info::fixup): Intern name.
14405 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14407 (dwarf2_name): Intern name. Update.
14408 * buildsym.c (buildsym_compunit::get_macro_table): Use
14411 2020-03-04 Tom Tromey <tom@tromey.com>
14413 * jit.c (bfd_open_from_target_memory): Make "target" const.
14414 * corefile.c (gnutarget): Now const.
14415 * gdbcore.h (gnutarget): Now const.
14417 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14419 * NEWS: Mention support for WOW64 processes.
14420 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14421 (amd64_windows_segment_register_p): Remove static.
14422 (_initialize_amd64_windows_nat): Update.
14423 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14424 * i386-windows-nat.c (context_offset): Update.
14425 (i386_mappings): Rename and remove static.
14426 (i386_windows_segment_register_p): Remove static.
14427 (_initialize_i386_windows_nat): Update.
14428 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14429 (STATUS_WX86_SINGLE_STEP): New macro.
14430 (EnumProcessModulesEx): New macro.
14431 (Wow64SuspendThread): New macro.
14432 (Wow64GetThreadContext): New macro.
14433 (Wow64SetThreadContext): New macro.
14434 (Wow64GetThreadSelectorEntry): New macro.
14435 (windows_set_context_register_offsets): Add static.
14436 (windows_set_segment_register_p): Likewise.
14437 (windows_add_thread): Adapt for WOW64 processes.
14438 (windows_fetch_one_register): Likewise.
14439 (windows_nat_target::fetch_registers): Likewise.
14440 (windows_store_one_register): Likewise.
14441 (display_selector): Likewise.
14442 (display_selectors): Likewise.
14443 (handle_exception): Likewise.
14444 (windows_continue): Likewise.
14445 (windows_nat_target::resume): Likewise.
14446 (windows_add_all_dlls): Likewise.
14447 (do_initial_windows_stuff): Likewise.
14448 (windows_nat_target::attach): Likewise.
14449 (windows_get_exec_module_filename): Likewise.
14450 (windows_nat_target::create_inferior): Likewise.
14451 (windows_xfer_siginfo): Likewise.
14452 (_initialize_loadable): Initialize Wow64SuspendThread,
14453 Wow64GetThreadContext, Wow64SetThreadContext,
14454 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14455 * windows-nat.h (windows_set_context_register_offsets):
14456 Remove declaration.
14457 (windows_set_segment_register_p): Likewise.
14458 (i386_windows_segment_register_p): Add declaration.
14459 (amd64_windows_segment_register_p): Likewise.
14461 2020-03-04 Luis Machado <luis.machado@linaro.org>
14463 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14464 in "info registers" for AArch64/ARM.
14466 The change caused "info registers" to not print GPR's.
14470 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14472 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14473 when reg->group is empty and reggroup is not.
14475 2020-03-03 Tom Tromey <tromey@adacore.com>
14477 * dwarf2/frame.c (struct dwarf2_frame_cache)
14478 <checked_tailcall_bottom, entry_cfa_sp_offset,
14479 entry_cfa_sp_offset_p>: Remove members.
14480 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14481 (dwarf2_frame_prev_register): Don't call
14482 dwarf2_tailcall_sniffer_first.
14483 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14484 * frame-unwind.c (add_unwinder): New fuction.
14485 (frame_unwind_init): Use it. Add tailcall unwinder.
14487 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14488 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14490 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14491 value should be printed as true.
14493 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14495 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14496 (windows_init_abi): Set and use windows_so_ops.
14498 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14500 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14501 when verifying if dealing with a convenience variable.
14503 2020-03-03 Luis Machado <luis.machado@linaro.org>
14505 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14507 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14509 * infrun.c (gdbarch_supports_displaced_stepping): New.
14510 (use_displaced_stepping): Break up conditions in smaller pieces.
14511 Use gdbarch_supports_displaced_stepping.
14512 (displaced_step_prepare_throw): Use
14513 gdbarch_supports_displaced_stepping.
14515 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14517 * NEWS: Mention new behaviour of the history filename.
14518 * top.c (write_history_p): Add comment.
14519 (show_write_history_p): Add header comment, give a different
14520 message when history writing is on, but the history filename is
14522 (history_filename): Add comment.
14523 (history_filename_empty): New function.
14524 (show_history_filename): Add header comment, give a different
14525 message when the filename is empty.
14526 (init_history): Compare history_filename against nullptr, and only
14527 read history if the filename is not empty.
14528 (set_history_filename): Add header comment, and only make
14529 non-empty filenames absolute.
14530 (init_main): Make the filename argument to 'set history filename'
14533 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14535 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14536 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14537 (fetch_fp_register): Update.
14538 (fetch_fp_regs): Update.
14539 (store_fp_register): Update.
14540 (store_fp_regs): Update.
14541 (arm_netbsd_nat_target::read_description): New function.
14542 (fetch_elfcore_registers): Update.
14544 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14546 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14547 general_thread if the stop reply is missing a thread-id.
14548 (remote_target::process_stop_reply): Use the first non-exited
14549 thread if the target didn't pass a thread-id.
14550 * infrun.c (do_target_wait): Move call to
14551 switch_to_inferior_no_thread to ....
14552 (do_target_wait_1): ... here.
14554 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14556 * debuginfod-support.c: Include defs.h first.
14558 2020-02-28 Tom de Vries <tdevries@suse.de>
14560 * symfile.c (set_initial_language): Use default language for lookup.
14562 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14564 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14565 reader variable, pass `this` to read_cutu_die_from_dwo.
14567 2020-02-27 Aaron Merey <amerey@redhat.com>
14569 * source.c (open_source_file): Check for nullptr when computing
14572 2020-02-27 Tom Tromey <tromey@adacore.com>
14574 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14576 (dwarf2_add_field): Don't update nfields.
14577 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14579 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14581 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14584 2020-02-26 Tom Tromey <tom@tromey.com>
14586 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14587 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14588 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14589 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14592 2020-02-26 Tom Tromey <tom@tromey.com>
14594 * dwarf2/index-write.c (psym_index_map): Change type.
14595 (add_address_entry_worker, write_one_signatured_type)
14596 (recursively_count_psymbols, recursively_write_psymbols)
14597 (class debug_names, psyms_seen_size, write_gdbindex)
14598 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14600 2020-02-26 Aaron Merey <amerey@redhat.com>
14602 * Makefile.in: Handle optional debuginfod support.
14604 * README: Add --with-debuginfod summary.
14605 * config.in: Regenerate.
14606 * configure: Regenerate.
14607 * configure.ac: Handle optional debuginfod support.
14608 * debuginfod-support.c: debuginfod helper functions.
14609 * debuginfod-support.h: Ditto.
14610 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14612 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14613 when a dwz file cannot be found.
14614 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14615 debuginfo file cannot be found.
14616 * source.c (open_source_file): Query debuginfod servers when a
14617 source file cannot be found.
14618 * top.c (print_gdb_configuration): Include
14619 --{with,without}-debuginfod in the output.
14621 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14623 * thread.c (thr_try_catch_cmd): Print thread name.
14625 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14627 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14628 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14629 dwarf2_fetch_die_type_sect_off): Move to...
14630 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14631 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14632 dwarf2_fetch_die_type_sect_off): ... here.
14633 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14634 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14635 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14637 2020-02-26 Tom de Vries <tdevries@suse.de>
14640 * symfile.c (set_initial_language): Exit-early if
14641 language_mode == language_mode_manual.
14643 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14645 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14646 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14647 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14649 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14651 * gdbtypes.c (create_array_type_with_stride): Handle negative
14653 * valarith.c (value_subscripted_rvalue): Likewise.
14655 2020-02-25 Luis Machado <luis.machado@linaro.org>
14657 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14659 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14661 * loc.h (dwarf2_get_die_type): Move to...
14662 * read.h (dwarf2_get_die_type): ... here.
14663 * read.c (dwarf2_get_die_type): Move doc to header.
14665 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14667 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14668 'gnulib/Makefile.in' to the list.
14670 2020-02-24 Tom Tromey <tom@tromey.com>
14672 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14674 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14677 2020-02-24 Tom Tromey <tom@tromey.com>
14679 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14681 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14682 (dw2_do_instantiate_symtab, dw2_get_file_names)
14683 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14685 2020-02-24 Tom Tromey <tom@tromey.com>
14687 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14688 make_scoped_restore.
14689 (dwarf2_psymtab::read_symtab): Don't clear
14690 reading_partial_symbols.
14692 2020-02-24 Tom de Vries <tdevries@suse.de>
14695 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14697 2020-02-24 Tom de Vries <tdevries@suse.de>
14699 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14700 commands layout next/prev/regs.
14702 2020-02-22 Tom Tromey <tom@tromey.com>
14704 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14705 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14707 2020-02-22 Tom Tromey <tom@tromey.com>
14709 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14711 2020-02-22 Tom Tromey <tom@tromey.com>
14713 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14714 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14715 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14716 * tui/tui.c (_initialize_tui): Add usage text.
14718 2020-02-22 Tom Tromey <tom@tromey.com>
14720 * tui/tui-win.c (tui_set_focus_command)
14721 (tui_set_win_height_command): Use error_no_arg.
14722 (_initialize_tui_win): Update help text.
14723 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14725 2020-02-22 Tom Tromey <tom@tromey.com>
14727 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14728 * tui/tui-disasm.h (struct tui_disasm_window)
14729 <display_start_addr>: Declare.
14730 * tui/tui-source.h (struct tui_source_window)
14731 <display_start_addr>: Declare.
14732 * tui/tui-winsource.h (struct tui_source_window_base)
14733 <show_source_line, display_start_addr>: New methods.
14734 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14735 Rename and move to protected section.
14736 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14737 (tui_source_window_base::do_erase_source_content): Update.
14738 (tui_source_window_base::show_source_line): Now a method.
14739 (tui_source_window_base::show_source_content)
14740 (tui_source_window_base::tui_source_window_base)
14741 (tui_source_window_base::rerender)
14742 (tui_source_window_base::refill)
14743 (tui_source_window_base::do_scroll_horizontal)
14744 (tui_source_window_base::set_is_exec_point_at)
14745 (tui_source_window_base::update_breakpoint_info)
14746 (tui_source_window_base::update_exec_info): Update.
14747 * tui/tui-source.c (tui_source_window::set_contents)
14748 (tui_source_window::showing_source_p)
14749 (tui_source_window::do_scroll_vertical)
14750 (tui_source_window::location_matches_p)
14751 (tui_source_window::line_is_displayed): Update.
14752 (tui_source_window::display_start_addr): New method.
14753 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14754 (tui_disasm_window::do_scroll_vertical)
14755 (tui_disasm_window::location_matches_p): Update.
14756 (tui_disasm_window::display_start_addr): New method.
14758 2020-02-22 Tom Tromey <tom@tromey.com>
14760 * NEWS: Add entry for gdb.register_window_type.
14761 * tui/tui-layout.h (window_factory): New typedef.
14762 (tui_register_window): Declare.
14763 * tui/tui-layout.c (saved_tui_windows): New global.
14764 (tui_apply_current_layout): Use it.
14765 (tui_register_window): New function.
14766 * python/python.c (do_start_initialization): Call
14767 gdbpy_initialize_tui.
14768 (python_GdbMethods): Add "register_window_type" function.
14769 * python/python-internal.h (gdbpy_register_tui_window)
14770 (gdbpy_initialize_tui): Declare.
14771 * python/py-tui.c: New file.
14772 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14774 2020-02-22 Tom Tromey <tom@tromey.com>
14776 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14778 2020-02-22 Tom Tromey <tom@tromey.com>
14780 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14781 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14782 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14783 (tui_set_win_focus_to): Move from tui-win.c.
14785 2020-02-22 Tom Tromey <tom@tromey.com>
14787 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14789 (known_window_types): New global.
14790 (tui_get_window_by_name): Reimplement.
14791 (initialize_known_windows): New function.
14792 (validate_window_name): Rewrite.
14793 (_initialize_tui_layout): Call initialize_known_windows.
14795 2020-02-22 Tom Tromey <tom@tromey.com>
14797 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14799 * tui/tui-winsource.h (struct tui_source_window_base)
14800 <tui_source_window_base>: Remove parameter.
14801 * tui/tui-winsource.c
14802 (tui_source_window_base::tui_source_window_base): Remove
14804 (tui_source_window_base::refill): Update.
14805 * tui/tui-stack.h (struct tui_locator_window)
14806 <tui_locator_window>: Update.
14807 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14808 Default the constructor.
14809 * tui/tui-regs.h (struct tui_data_item_window)
14810 <tui_data_item_window>: Default the constructor.
14811 (struct tui_data_window) <tui_data_window>: Likewise.
14812 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14813 Default the constructor.
14814 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14815 Default the constructor.
14817 (struct tui_win_info) <tui_win_info>: Default the constructor.
14818 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14819 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14820 Default the constructor.
14822 2020-02-22 Tom Tromey <tom@tromey.com>
14824 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14825 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14826 * tui/tui-win.c (tui_resize_all): Don't call
14827 tui_delete_invisible_windows.
14828 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14830 (tui_set_layout): Update.
14831 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14832 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14833 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14835 2020-02-22 Tom Tromey <tom@tromey.com>
14837 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14840 2020-02-22 Tom Tromey <tom@tromey.com>
14842 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14844 2020-02-22 Tom Tromey <tom@tromey.com>
14846 * tui/tui-winsource.h (struct tui_source_window_iterator)
14847 <inner_iterator>: New etytypedef.
14848 <tui_source_window_iterator>: Take "end" parameter.
14849 <tui_source_window_iterator>: Take iterator.
14850 <operator*, advance>: Update.
14851 <m_iter>: Change type.
14852 <m_end>: New field.
14853 (struct tui_source_windows) <begin, end>: Update.
14854 * tui/tui-layout.c (tui_windows): New global.
14855 (tui_apply_current_layout): Clear tui_windows.
14856 (tui_layout_window::apply): Update tui_windows.
14857 * tui/tui-data.h (tui_windows): Declare.
14858 (all_tui_windows): Now inline function.
14859 (class tui_window_iterator, struct all_tui_windows): Remove.
14861 2020-02-22 Tom Tromey <tom@tromey.com>
14864 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14865 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14867 (class tui_layout_window) <get_sizes>: Likewise.
14868 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14870 <get_sizes>: Add "height" argument.
14871 <m_vertical>: New field.
14872 * tui/tui-layout.c (tui_layout_split::clone): Update.
14873 (tui_layout_split::get_sizes): Add "height" argument.
14874 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14875 (tui_new_layout_command): Parse "-horizontal".
14876 (_initialize_tui_layout): Update help string.
14877 (tui_layout_split::specification): Add "-horizontal" when needed.
14878 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14880 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14883 2020-02-22 Tom Tromey <tom@tromey.com>
14885 * tui/tui-layout.h (enum tui_adjust_result): New.
14886 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14887 (class tui_layout_window) <adjust_size>: Return
14888 tui_adjust_result. Rewrite.
14889 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14890 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14892 2020-02-22 Tom Tromey <tom@tromey.com>
14894 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14895 parameter and return types.
14896 (class tui_layout_base) <specification>: Add "depth".
14897 (class tui_layout_window) <specification>: Add "depth".
14898 (class tui_layout_split) <specification>: Add "depth".
14899 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14901 (tui_new_layout_command): Parse sub-layouts.
14902 (_initialize_tui_layout): Update help string.
14903 (tui_layout_window::specification): Add "depth".
14904 (add_layout_command): Update.
14906 2020-02-22 Tom Tromey <tom@tromey.com>
14908 * NEWS: Add "tui new-layout" item.
14909 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14910 Add new-layout command to help text.
14911 (validate_window_name): New function.
14912 (tui_new_layout_command): New function.
14913 (_initialize_tui_layout): Register "new-layout".
14914 (tui_layout_window::specification): New method.
14915 (tui_layout_window::specification): New method.
14916 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14918 (class tui_layout_window) <specification>: New method.
14919 (class tui_layout_split) <specification>: New method.
14921 2020-02-22 Tom Tromey <tom@tromey.com>
14923 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14924 * tui/tui-win.c (window_name_completer): Update comment.
14925 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14927 (class tui_layout_window) <replace_window>: Likewise.
14928 (class tui_layout_split) <replace_window>: Likewise.
14929 (tui_set_layout): Don't declare.
14930 (tui_set_initial_layout): Declare function.
14931 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14932 (asm_regs_layout): New globals.
14933 (tui_current_layout, show_layout): Remove.
14934 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14935 (find_layout, tui_apply_layout): New function.
14936 (layout_completer): Remove.
14937 (tui_next_layout): Reimplement.
14938 (tui_next_layout_command): New function.
14939 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14940 (tui_regs_layout): Reimplement.
14941 (tui_regs_layout_command): New function.
14942 (extract_display_start_addr): Rewrite.
14943 (next_layout, prev_layout): Remove.
14944 (tui_layout_window::replace_window): New method.
14945 (tui_layout_split::replace_window): New method.
14946 (destroy_layout): New function.
14947 (layout_list): New global.
14948 (add_layout_command): New function.
14949 (initialize_layouts): Update.
14950 (tui_layout_command): New function.
14951 (_initialize_tui_layout): Install "layout" commands.
14952 * tui/tui-data.h (enum tui_layout_type): Remove.
14953 (tui_current_layout): Don't declare.
14955 2020-02-22 Tom Tromey <tom@tromey.com>
14957 * tui/tui-regs.c (tui_reg_layout): Remove.
14958 (tui_reg_command): Use tui_regs_layout.
14959 * tui/tui-layout.h (tui_reg_command): Declare.
14960 * tui/tui-layout.c (tui_reg_command): New function.
14962 2020-02-22 Tom Tromey <tom@tromey.com>
14964 * tui/tui.c (tui_rl_delete_other_windows): Call
14965 tui_remove_some_windows.
14966 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14968 (class tui_layout_window) <remove_windows>: New method.
14969 (class tui_layout_split) <remove_windows>: Declare.
14970 (tui_remove_some_windows): Declare.
14971 * tui/tui-layout.c (tui_remove_some_windows): New function.
14972 (tui_layout_split::remove_windows): New method.
14974 2020-02-22 Tom Tromey <tom@tromey.com>
14976 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14977 * tui/tui-layout.h (tui_next_layout): Declare.
14978 * tui/tui-layout.c (tui_next_layout): New function.
14980 2020-02-22 Tom Tromey <tom@tromey.com>
14982 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14983 correct coordinates.
14985 2020-02-22 Tom Tromey <tom@tromey.com>
14987 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14988 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14991 2020-02-22 Tom Tromey <tom@tromey.com>
14993 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14994 TUI_DISASM_WIN, not tui_win_list.
14996 2020-02-22 Tom Tromey <tom@tromey.com>
14998 * valprint.c (generic_val_print_enum_1)
14999 (val_print_type_code_flags): Style member names.
15000 * rust-lang.c (val_print_struct, rust_print_enum)
15001 (rust_print_struct_def, rust_internal_print_type): Style member
15003 * p-valprint.c (pascal_object_print_value_fields): Style member
15004 names. Only call fprintf_symbol_filtered for static members.
15005 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15006 * f-valprint.c (f_val_print): Style member names.
15007 * f-typeprint.c (f_type_print_base): Style member names.
15008 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15009 call fprintf_symbol_filtered for static members.
15010 (cp_print_class_member): Style member names.
15011 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15013 * ada-valprint.c (ada_print_scalar): Style enum names.
15014 (ada_val_print_enum): Likewise.
15015 * ada-typeprint.c (print_enum_type): Style enum names.
15017 2020-02-21 Tom Tromey <tom@tromey.com>
15019 * psympriv.h (struct partial_symtab): Update comment.
15021 2020-02-21 Tom Tromey <tromey@adacore.com>
15023 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15026 2020-02-21 Tom de Vries <tdevries@suse.de>
15029 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15030 if dependencies[i]->user != NULL.
15032 2020-02-21 Ali Tamur <tamur@google.com>
15034 * dwarf2/read.c (dwarf2_name): Add null check.
15036 2020-02-20 Tom Tromey <tom@tromey.com>
15038 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15039 ">=", in binary search.
15040 (dwarf2_find_containing_comp_unit): New overload.
15041 (run_test): New self-test.
15042 (_initialize_dwarf2_read): Register new test.
15044 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15046 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15047 * riscv-tdep.h: Likewise.
15048 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15050 * features/riscv/64bit-csr.xml: Regenerated.
15052 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15053 Tom Tromey <tom@tromey.com>
15055 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15056 of 'fputc_unfiltered'.
15057 (putchar_unfiltered): Call 'fputc_unfiltered'.
15058 (fputc_unfiltered): Call 'fputs_unfiltered'.
15060 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15062 * config.in: Regenerate.
15063 * configure: Regenerate.
15064 * configure.ac: Add --with-python-libdir option.
15065 * main.c: Use WITH_PYTHON_LIBDIR.
15067 2020-02-19 Tom Tromey <tom@tromey.com>
15069 * symtab.c (general_symbol_info::compute_and_set_names): Use
15070 obstack_strndup. Simplify call to symbol_set_demangled_name.
15072 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15074 * dwarf2/read.c (allocate_signatured_type_table,
15075 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15076 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15077 Remove objfile parameter, update all callers.
15079 2020-02-19 Doug Evans <dje@google.com>
15082 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15083 rust_enum_variant calculation.
15085 2020-02-19 Tom Tromey <tromey@adacore.com>
15087 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15089 2020-02-19 Tom Tromey <tromey@adacore.com>
15091 * ada-lang.c (cache_symbol): Use obstack_strdup.
15093 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15095 * configure: Regenerate.
15097 2020-02-19 Tom Tromey <tromey@adacore.com>
15099 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15102 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15104 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15106 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15108 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15109 if GDBSERVER is not defined.
15110 (riscv_tdesc_cache): Likewise, also store const target_desc.
15111 (STATIC_IN_GDB): Define.
15112 (riscv_create_target_description): Update declaration with
15114 (riscv_lookup_target_description): New function, only define if
15115 GDBSERVER is not defined.
15116 * arch/riscv.h (riscv_create_target_description): Declare only
15117 when GDBSERVER is defined.
15118 (riscv_lookup_target_description): New declaration when GDBSERVER
15120 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15121 (riscv_linux_read_features): ...this, and return
15122 riscv_gdbarch_features instead of target_desc.
15123 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15124 (riscv_linux_read_description): Rename to...
15125 (riscv_linux_read_features): ...this.
15126 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15127 Update to use riscv_gdbarch_features and
15128 riscv_lookup_target_description.
15129 * riscv-tdep.c (riscv_find_default_target_description): Use
15130 riscv_lookup_target_description instead of
15131 riscv_create_target_description.
15133 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15135 * valprint.c (generic_val_print_enum_1): When printing a flag
15136 enum with value 0 and there is no enumerator with value 0, print
15137 just "0" instead of "(unknown: 0x0)".
15139 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15141 * valprint.c (generic_val_print_enum_1): Print unknown part of
15144 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15146 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15147 flag enums to contain duplicate enumerators.
15148 * valprint.c (generic_val_print_enum_1): Update comment.
15150 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15152 * dwarf2/read.c: Include "count-one-bits.h".
15153 (update_enumeration_type_from_children): If an enumerator has
15154 multiple bits set, don't treat the enumeration as a "flag enum".
15155 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15156 of flag enums have 0 or 1 bit set.
15158 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15160 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15162 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15163 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15164 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15165 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15166 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15168 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15170 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15172 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15174 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15175 displaced_step_closure_up.
15176 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15177 (struct displaced_step_closure_up):
15178 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15179 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15180 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15182 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15183 * gdbarch.c, gdbarch.h: Re-generate.
15184 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15185 displaced_step_closure_up.
15186 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15187 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15188 * infrun.h (displaced_step_closure_up): New type alias.
15189 (struct displaced_step_inferior_state) <step_closure>: Change
15190 type to displaced_step_closure_up.
15191 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15192 displaced_step_closure_up.
15193 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15195 2020-02-14 Tom Tromey <tom@tromey.com>
15197 * minidebug.c (gnu_debug_key): New global.
15198 (find_separate_debug_file_in_section): Use it.
15200 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15202 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15204 * gdbarch.c: Re-generate.
15205 * gdbarch.h: Re-generate.
15206 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15208 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15209 type to std::unique_ptr.
15210 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15211 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15212 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15213 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15214 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15215 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15216 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15217 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15218 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15220 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15222 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15224 (displaced_step_clear): Rename to...
15225 (displaced_step_reset): ... this. Just call displaced->reset ().
15226 (displaced_step_clear_cleanup): Rename to...
15227 (displaced_step_reset_cleanup): ... this.
15228 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15229 (displaced_step_fixup): Likewise.
15230 (resume_1): Likewise.
15231 (handle_inferior_event): Restore child's memory before calling
15232 displaced_step_fixup on the parent.
15233 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15234 to std::unique_ptr.
15235 <step_closure>: Change type to std::unique_ptr.
15237 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15239 * arm-tdep.c: Include count-one-bits.h.
15240 (cleanup_block_store_pc): Use count_one_bits.
15241 (cleanup_block_load_pc): Use count_one_bits.
15242 (arm_copy_block_xfer): Use count_one_bits.
15243 (thumb2_copy_block_xfer): Use count_one_bits.
15244 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15245 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15246 (thumb_get_next_pcs_raw): Use count_one_bits.
15247 (arm_get_next_pcs_raw): Use count_one_bits_l.
15248 * arch/arm.c (bitcount): Remove.
15249 * arch/arm.h (bitcount): Remove.
15251 2020-02-14 Tom Tromey <tromey@adacore.com>
15253 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15255 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15256 * dwarf2/loc.c (call_site_find_chain_1): Return
15257 unique_xmalloc_ptr.
15258 (call_site_find_chain): Likewise.
15260 2020-02-14 Richard Biener <rguenther@suse.de>
15262 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15263 on expression with division operators.
15265 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15267 * MAINTAINERS (Write After Approval): Adding myself.
15269 2020-02-12 Tom Tromey <tom@tromey.com>
15271 * event-loop.c (event_data, gdb_event, event_handler_func):
15274 2020-02-12 Tom Tromey <tom@tromey.com>
15276 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15277 (dwarf2_frame_objfile_data): Add comment.
15278 (find_comp_unit, set_comp_unit): New functions.
15279 (dwarf2_frame_find_fde): Use find_comp_unit.
15280 (dwarf2_build_frame_info): Use set_comp_unit.
15282 2020-02-12 Tom Tromey <tom@tromey.com>
15284 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15285 (comp_unit): Don't initialize objfile.
15286 (execute_cfa_program): Add text_offset parameter.
15287 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15288 (dwarf2_frame_cache): Update.
15289 (dwarf2_build_frame_info): Don't set "objfile" member.
15291 2020-02-12 Tom Tromey <tom@tromey.com>
15293 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15294 (decode_frame_entry): Likewise.
15295 (dwarf2_build_frame_info): Update.
15297 2020-02-12 Tom Tromey <tom@tromey.com>
15299 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15300 (decode_frame_entry_1): Use the comp_unit obstack.
15302 2020-02-12 Tom Tromey <tom@tromey.com>
15304 * dwarf2/frame.c (struct comp_unit): Add initializers and
15306 (dwarf2_frame_objfile_data): Store a comp_unit.
15307 (dwarf2_frame_find_fde): Update.
15308 (dwarf2_build_frame_info): Use "new".
15310 2020-02-12 Tom Tromey <tom@tromey.com>
15312 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15313 (dwarf2_fde_table): Typedef for std::vector.
15314 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15315 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15316 (decode_frame_entry): Update.
15317 (dwarf2_build_frame_info): Use "new".
15319 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15321 * arm-tdep.c (arm_gdbarch_init): Update.
15322 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15323 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15324 have_neon, is_m>: Change to bool.
15326 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15328 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15330 2020-02-12 Tom Tromey <tom@tromey.com>
15332 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15334 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15336 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15337 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15339 2020-02-11 Tom Tromey <tom@tromey.com>
15341 * psymtab.h: Update comment.
15343 2020-02-11 Tom Tromey <tom@tromey.com>
15345 * gdb_obstack.h (struct auto_obstack): Use
15346 DISABLE_COPY_AND_ASSIGN.
15348 2020-02-11 Tom Tromey <tom@tromey.com>
15350 * dwarf2/frame.h (struct objfile): Don't forward declare.
15352 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15354 * cris-tdep.c (cris_supply_gregset): Change signature to match
15355 what struct regset expects.
15356 (cris_regset): New struct.
15357 (fetch_core_registers): Remove.
15358 (cris_iterate_over_regset_sections): New function.
15359 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15360 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15362 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15364 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15367 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15369 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15371 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15373 * configure: Re-generate.
15375 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15377 * configure: Re-generate.
15379 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15381 * acinclude: Update warning.m4 path.
15382 * warning.m4: Move to gdbsupport.
15384 2020-02-11 Tom Tromey <tromey@adacore.com>
15386 * remote.c (remote_console_output): Update.
15387 * printcmd.c (printf_command): Update.
15388 * event-loop.c (gdb_wait_for_event): Update.
15389 * linux-nat.c (sigchld_handler): Update.
15390 * remote-sim.c (gdb_os_write_stdout): Update.
15391 (gdb_os_flush_stdout): Update.
15392 (gdb_os_flush_stderr): Update.
15393 (gdb_os_write_stderr): Update.
15394 * exceptions.c (print_exception): Update.
15395 * remote-fileio.c (remote_fileio_func_read): Update.
15396 (remote_fileio_func_write): Update.
15397 * tui/tui.c (tui_enable): Update.
15398 * tui/tui-interp.c (tui_interp::init): Update.
15399 * utils.c (init_page_info): Update.
15400 (putchar_unfiltered, fputc_unfiltered): Update.
15401 (gdb_flush): Update.
15402 (emit_style_escape): Update.
15403 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15404 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15405 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15406 (stderr_file::write): Update.
15407 (stderr_file::puts): Update.
15408 * ui-file.h (ui_file_isatty, ui_file_write)
15409 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15410 (ui_file_puts): Don't declare.
15412 2020-02-10 Tom de Vries <tdevries@suse.de>
15414 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15415 sentinel to char *.
15417 2020-02-09 Tom de Vries <tdevries@suse.de>
15419 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15420 filename if it matches "<artificial>".
15422 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15424 * windows-tdep.c (struct enum_value_name): New struct.
15425 (create_enum): New function.
15426 (windows_get_siginfo_type): Create and use enum types.
15428 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15430 * NEWS: Mention $_siginfo support for Windows.
15431 * windows-nat.c (handle_exception): Set siginfo_er.
15432 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15433 (windows_xfer_siginfo): New function.
15434 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15435 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15436 (init_windows_gdbarch_data): New function.
15437 (get_windows_gdbarch_data): New function.
15438 (windows_get_siginfo_type): New function.
15439 (windows_init_abi): Register windows_get_siginfo_type.
15440 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15442 2020-02-08 Tom Tromey <tom@tromey.com>
15444 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15445 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15446 <keep>: Declare method.
15447 <m_keep>: Remove member.
15448 <~cutu_reader>: Remove.
15449 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15450 (cutu_reader::cutu_reader): Update.
15451 (cutu_reader::keep): Rename from ~cutu_reader.
15452 (process_psymtab_comp_unit, build_type_psymtabs_1)
15453 (process_skeletonless_type_unit, load_partial_comp_unit)
15454 (load_full_comp_unit, dwarf2_read_addr_index)
15455 (read_signatured_type): Update.
15457 2020-02-08 Tom Tromey <tom@tromey.com>
15459 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15460 "want_partial_unit" parameter.
15461 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15462 Inline check for DW_TAG_partial_unit.
15463 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15465 2020-02-08 Tom Tromey <tom@tromey.com>
15467 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15469 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15472 2020-02-08 Tom Tromey <tom@tromey.com>
15474 * dwarf2/read.c (read_address): Move to comp-unit.c.
15475 (dwarf2_rnglists_process, dwarf2_ranges_process)
15476 (read_attribute_value, dwarf_decode_lines_1)
15477 (var_decode_location, decode_locdesc): Update.
15478 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15479 read.c. Remove "cu" parameter.
15480 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15483 2020-02-08 Tom Tromey <tom@tromey.com>
15485 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15486 (read_indirect_line_string): Update.
15487 * dwarf2/comp-unit.c (read_offset): Remove.
15488 (read_comp_unit_head): Update.
15489 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15491 (read_offset): Don't declare.
15493 2020-02-08 Tom Tromey <tom@tromey.com>
15495 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15496 * dwarf2/read.c (struct comp_unit_head): Move to
15497 dwarf2/comp-unit.h.
15498 (enum class rcuh_kind): Move to comp-unit.h.
15499 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15500 (read_comp_unit_head, error_check_comp_unit_head)
15501 (read_and_check_comp_unit_head): Move to comp-unit.c.
15502 (read_offset, dwarf_unit_type_name): Likewise.
15503 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15504 (cutu_reader::cutu_reader, read_call_site_scope)
15505 (find_partial_die, follow_die_offset): Update.
15506 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15508 2020-02-08 Tom Tromey <tom@tromey.com>
15510 * dwarf2/read.c (read_offset_1): Move to leb.c.
15511 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15512 (dwarf_decode_macro_bytes): Update.
15513 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15514 * dwarf2/leb.h (read_offset): Declare.
15516 2020-02-08 Tom Tromey <tom@tromey.com>
15518 * dwarf2/read.c (dwarf2_section_size): Remove.
15519 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15521 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15523 2020-02-08 Tom Tromey <tom@tromey.com>
15525 * dwarf2/read.c (read_initial_length): Move to leb.c.
15526 * dwarf2/leb.h (read_initial_length): Declare.
15527 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15528 handle_nonstd parameter.
15529 * dwarf2/frame.c (read_initial_length): Remove.
15530 (decode_frame_entry_1): Update.
15532 2020-02-08 Tom Tromey <tom@tromey.com>
15534 * dwarf2/loc.c (dwarf2_find_location_expression)
15535 (dwarf_evaluate_loc_desc::get_tls_address)
15536 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15537 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15538 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15539 (dwarf2_compile_property_to_c)
15540 (dwarf2_loc_desc_get_symbol_read_needs)
15541 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15542 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15543 (loclist_describe_location, loclist_tracepoint_var_ref)
15544 (loclist_generate_c_location): Update.
15545 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15546 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15547 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15548 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15549 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15550 (dwarf2_per_cu_data::addr_size)
15551 (dwarf2_per_cu_data::ref_addr_size)
15552 (dwarf2_per_cu_data::text_offset)
15553 (dwarf2_per_cu_data::addr_type): Now methods.
15554 (per_cu_header_read_in): Make per_cu "const".
15555 (dwarf2_version): Remove.
15556 (dwarf2_per_cu_data::int_type): Now a method.
15557 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15558 (set_die_type, read_array_type, read_subrange_index_type)
15559 (read_tag_string_type, read_subrange_type): Update.
15560 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15561 offset_size, ref_addr_size, text_offset, addr_type, version,
15562 objfile, int_type, addr_sized_int_type>: Declare methods.
15564 2020-02-08 Tom Tromey <tom@tromey.com>
15566 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15569 2020-02-08 Tom Tromey <tom@tromey.com>
15571 * dwarf2/read.h (dwarf_line_debug): Declare.
15572 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15573 * dwarf2/read.c: Move line_header code to new files.
15574 (dwarf_line_debug): No longer static.
15575 * dwarf2/line-header.c: New file.
15576 * dwarf2/line-header.h: New file.
15578 2020-02-08 Tom Tromey <tom@tromey.com>
15580 * dwarf2/read.c (struct line_header) <file_full_name,
15581 file_file_name>: Return unique_xmalloc_ptr.
15582 (line_header::file_file_name): Update.
15583 (line_header::file_full_name): Update.
15584 (dw2_get_file_names_reader): Update.
15585 (macro_start_file): Update.
15587 2020-02-08 Tom Tromey <tom@tromey.com>
15589 * dwarf2/read.c (struct line_header) <file_full_name,
15590 file_file_name>: Declare methods.
15591 (dw2_get_file_names_reader): Update.
15592 (file_file_name): Now a method.
15593 (file_full_name): Likewise.
15594 (macro_start_file): Update.
15596 2020-02-08 Tom Tromey <tom@tromey.com>
15598 * dwarf2/read.c (dwarf_always_disassemble)
15599 (show_dwarf_always_disassemble): Move to loc.c.
15600 (_initialize_dwarf2_read): Move "always-disassemble" registration
15602 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15603 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15605 (show_dwarf_always_disassemble): Move from read.c.
15606 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15608 2020-02-08 Tom Tromey <tom@tromey.com>
15610 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15611 (create_quick_file_names_table): Return htab_up.
15612 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15614 * dwarf2/read.h (struct dwarf2_per_objfile)
15615 <quick_file_names_table>: Now htab_up.
15617 2020-02-08 Tom Tromey <tom@tromey.com>
15619 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15621 2020-02-08 Tom Tromey <tom@tromey.com>
15623 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15625 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15626 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15627 (abbrev_table::abbrev_table): No longer inline.
15628 (ABBREV_HASH_SIZE): Remove.
15629 (abbrev_table::m_abbrevs): Now an htab_up.
15631 2020-02-08 Tom Tromey <tom@tromey.com>
15633 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15634 (cutu_reader): Update.
15635 (build_type_psymtabs_1): Update.
15636 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15637 (abbrev_table::alloc_abbrev): Update.
15638 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15639 (abbrev_table::read): New static method, renamed from
15640 abbrev_table_read_table.
15641 (abbrev_table::alloc_abbrev)
15642 (abbrev_table::add_abbrev): Now private.
15643 (abbrev_table::abbrev_table): Now private.
15644 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15646 2020-02-08 Tom Tromey <tom@tromey.com>
15648 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15649 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15652 2020-02-08 Tom Tromey <tom@tromey.com>
15654 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15656 (lookup_dwo_unit_in_dwp): Update.
15657 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15660 2020-02-08 Tom Tromey <tom@tromey.com>
15662 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15665 2020-02-08 Tom Tromey <tom@tromey.com>
15667 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15669 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15670 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15671 Change type to htab_up.
15673 2020-02-08 Tom Tromey <tom@tromey.com>
15675 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15676 htab_up. Don't allocate on obstack.
15677 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15678 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15679 Change type to htab_up.
15681 2020-02-08 Tom Tromey <tom@tromey.com>
15683 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15684 Change type to htab_up.
15685 * dwarf2/read.c (create_signatured_type_table_from_index)
15686 (create_signatured_type_table_from_debug_names)
15687 (create_all_type_units, add_type_unit)
15688 (lookup_dwo_signatured_type, lookup_signatured_type)
15689 (process_skeletonless_type_unit): Update.
15690 (create_debug_type_hash_table, create_debug_types_hash_table):
15691 Change type of types_htab.
15692 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15693 htab_up. Don't allocate on obstack.
15694 (create_cus_hash_table): Change type of cus_htab parameter.
15695 (struct dwo_file) <cus, tus>: Now htab_up.
15696 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15697 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15698 (queue_and_load_all_dwo_tus): Update.
15699 * dwarf2/index-write.c (write_gdbindex): Update.
15700 (write_debug_names): Update.
15702 2020-02-08 Tom Tromey <tom@tromey.com>
15704 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15705 dwarf2/read.c. Remove "next" member. Add constructor ntad
15707 (struct dwarf2_per_objfile) <queue>: New member.
15708 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15710 (dwarf2_queue, dwarf2_queue_tail): Remove.
15711 (class dwarf2_queue_guard): Add parameter to constructor. Use
15712 DISABLE_COPY_AND_ASSIGN.
15713 <m_per_objfile>: New member.
15714 <~dwarf2_queue_guard>: Rewrite.
15715 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15717 (~dwarf2_queue_item): New.
15719 2020-02-08 Tom Tromey <tom@tromey.com>
15721 * dwarf2/read.c (struct die_info) <has_children>: New member.
15722 (dw2_get_file_names_reader): Remove has_children.
15723 (dw2_get_file_names): Update.
15724 (read_cutu_die_from_dwo): Remove has_children.
15725 (cutu_reader::init_tu_and_read_dwo_dies)
15726 (cutu_reader::cutu_reader): Update.
15727 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15728 Remove has_children.
15729 (build_type_psymtabs_1, process_skeletonless_type_unit)
15730 (load_partial_comp_unit, load_full_comp_unit): Update.
15731 (create_dwo_cu_reader): Remove has_children.
15732 (create_cus_hash_table, read_die_and_children): Update.
15733 (read_full_die_1,read_full_die): Remove has_children.
15734 (read_signatured_type): Update.
15735 (class cutu_reader) <has_children>: Remove.
15737 2020-02-08 Tom Tromey <tom@tromey.com>
15739 * dwarf2/expr.c: Rename from dwarf2expr.c.
15740 * dwarf2/expr.h: Rename from dwarf2expr.h.
15741 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15742 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15743 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15744 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15745 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15746 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15747 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15748 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15749 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15750 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15751 * dwarf2/loc.c: Rename from dwarf2loc.c.
15752 * dwarf2/loc.h: Rename from dwarf2loc.h.
15753 * dwarf2/read.c: Rename from dwarf2read.c.
15754 * dwarf2/read.h: Rename from dwarf2read.h.
15755 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15756 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15757 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15758 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15759 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15760 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15761 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15762 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15763 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15764 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15765 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15766 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15767 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15769 * Makefile.in (COMMON_SFILES): Update.
15770 (HFILES_NO_SRCDIR): Update.
15772 2020-02-08 Tom Tromey <tom@tromey.com>
15774 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15775 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15777 2020-02-08 Tom Tromey <tom@tromey.com>
15779 * dwarf2read.h (struct die_info): Don't declare.
15781 2020-02-08 Tom Tromey <tom@tromey.com>
15783 * dwarf2read.h (die_info_ptr): Remove typedef.
15785 2020-02-08 Tom Tromey <tom@tromey.com>
15787 * dwarf2read.c (read_call_site_scope)
15788 (handle_data_member_location, dwarf2_add_member_fn)
15789 (mark_common_block_symbol_computed, read_common_block)
15790 (attr_to_dynamic_prop, partial_die_info::read)
15791 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15792 (dwarf2_symbol_mark_computed, set_die_type): Update.
15793 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15795 (attr_form_is_block): Don't declare.
15796 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15798 2020-02-08 Tom Tromey <tom@tromey.com>
15800 * dwarf2read.c (dwarf2_find_base_address, )
15801 (read_call_site_scope, rust_containing_type)
15802 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15803 (handle_data_member_location, dwarf2_add_member_fn)
15804 (get_alignment, read_structure_type, process_structure_scope)
15805 (mark_common_block_symbol_computed, read_common_block)
15806 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15807 (partial_die_info::read, read_attribute_value, new_symbol)
15808 (lookup_die_type, dwarf2_get_ref_die_offset)
15809 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15810 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15811 (dwarf2_symbol_mark_computed): Update.
15812 * dwarf2/attribute.h (struct attribute) <value_as_address,
15813 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15815 (value_as_address, attr_form_is_section_offset)
15816 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15817 * dwarf2/attribute.c (attribute::value_as_address)
15818 (attribute::form_is_section_offset, attribute::form_is_constant)
15819 (attribute::form_is_ref): Now methods.
15821 2020-02-08 Tom Tromey <tom@tromey.com>
15823 * dwarf2read.c (struct attribute, DW_STRING)
15824 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15825 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15826 (attr_form_is_block, attr_form_is_section_offset)
15827 (attr_form_is_constant, attr_form_is_ref): Move.
15828 * dwarf2/attribute.h: New file.
15829 * dwarf2/attribute.c: New file, from dwarf2read.c.
15830 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15832 2020-02-08 Tom Tromey <tom@tromey.com>
15834 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15835 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15837 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15838 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15839 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15841 * dwarf2/abbrev.h: New file.
15842 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15843 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15845 2020-02-08 Tom Tromey <tom@tromey.com>
15847 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15848 (dwarf2_section_size, dwarf2_get_section_info)
15849 (create_signatured_type_table_from_debug_names)
15850 (create_addrmap_from_aranges, read_debug_names_from_section)
15851 (get_gdb_index_contents_from_section, read_comp_unit_head)
15852 (error_check_comp_unit_head, read_abbrev_offset)
15853 (create_debug_type_hash_table, init_cu_die_reader)
15854 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15855 (read_comp_units_from_section, create_cus_hash_table)
15856 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15857 (create_dwp_v2_section, dwarf2_rnglists_process)
15858 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15859 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15860 (read_indirect_string_from_dwz, read_addr_index_1)
15861 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15862 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15863 (fill_in_loclist_baton): Update.
15864 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15865 get_containing_section, get_bfd_owner, get_bfd_section,
15866 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15867 (dwarf2_read_section, get_section_name, get_section_file_name)
15868 (get_containing_section, get_section_bfd_owner)
15869 (get_section_bfd_section, get_section_name, get_section_file_name)
15870 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15872 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15873 (dwarf2_section_info::get_bfd_owner)
15874 (dwarf2_section_info::get_bfd_section)
15875 (dwarf2_section_info::get_name)
15876 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15877 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15878 (dwarf2_section_info::read): Now methods.
15879 * dwarf-index-write.c (class debug_names): Update.
15881 2020-02-08 Tom Tromey <tom@tromey.com>
15883 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15884 Move to dwarf2/section.h.
15885 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15886 (get_section_bfd_section, get_section_name)
15887 (get_section_file_name, get_section_id, get_section_flags)
15888 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15890 * dwarf2/section.h: New file.
15891 * dwarf2/section.c: New file, from dwarf2read.c.
15892 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15894 2020-02-08 Tom Tromey <tom@tromey.com>
15896 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15897 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15898 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15899 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15900 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15901 * dwarf2/leb.h: New file, from dwarf2read.c.
15902 * dwarf2/leb.c: New file, from dwarf2read.c.
15903 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15905 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15906 (COMMON_SFILES): Add dwarf2/leb.c.
15908 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15912 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15915 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15916 * gdb/remote.c (remote_console_output): Update.
15917 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15918 (ui_file_puts): ...this.
15919 * gdb/ui-file.h (ui_file_puts): Add declaration.
15920 * gdb/utils.c (emit_style_escape): Update.
15921 (flush_wrap_buffer): Update.
15922 (fputs_maybe_filtered): Update.
15923 (fputs_unfiltered): Add function.
15925 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15927 * gdb/event-loop.c (gdb_wait_for_event): Update.
15928 * gdb/printcmd.c (printf_command): Update.
15929 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15930 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15931 (gdb_os_flush_stderr): Update.
15932 * gdb/remote.c (remote_console_output): Update.
15933 * gdb/ui-file.c (gdb_flush): Rename to...
15934 (ui_file_flush): ...this.
15935 (stderr_file::write): Update.
15936 (stderr_file::puts): Update.
15937 * gdb/ui-file.h (gdb_flush): Rename to...
15938 (ui_file_flush): ...this.
15939 * gdb/utils.c (gdb_flush): Add function.
15940 * gdb/utils.h (gdb_flush): Add declaration.
15942 2020-02-07 Tom Tromey <tromey@adacore.com>
15944 PR breakpoints/24915:
15945 * source.c (find_and_open_source): Do not check basenames_may_differ.
15947 2020-02-07 Tom Tromey <tom@tromey.com>
15949 * README: Update gdbserver documentation.
15950 * gdbserver: Move to top level.
15951 * configure.tgt (build_gdbserver): Remove.
15952 * configure.ac: Remove --enable-gdbserver.
15953 * configure: Rebuild.
15954 * Makefile.in (distclean): Don't mention gdbserver.
15956 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15958 * source-cache.c (source_cache::ensure): Surround
15959 get_plain_source_lines with a try/catch.
15960 (source_cache::get_line_charpos): Get rid of try/catch
15961 and only check for the return value of "ensure".
15962 * tui/tui-source.c (tui_source_window::set_contents):
15963 Simplify "nlines" calculation.
15965 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15967 * MAINTAINERS (Write After Approval): Add myself.
15969 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15971 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15974 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15976 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15978 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15980 * nat/riscv-linux-tdesc.h: New file.
15981 * nat/riscv-linux-tdesc.c: New file, taking code from...
15982 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15984 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15987 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15989 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15990 we don't set the fake simulator ptid to the null_ptid.
15992 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15994 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15995 * gdbthread.h (class thread_info) <resumed>: Likewise.
15996 * infrun.c (resume_1): Likewise.
15997 (proceed): Likewise.
15998 (infrun_thread_stop_requested): Likewise.
15999 (stop_all_threads): Likewise.
16000 (handle_inferior_event): Likewise.
16001 (restart_threads): Likewise.
16002 (finish_step_over): Likewise.
16003 (keep_going_stepped_thread): Likewise.
16004 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16005 (linux_handle_extended_wait): Likewise.
16006 * record-btrace.c (get_thread_current_frame_id): Likewise.
16007 * record-full.c (record_full_wait_1): Likewise.
16008 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16009 * target.c (target_resume): Likewise.
16010 * thread.c (set_running_thread): Likewise.
16012 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16014 * f-valprint.c (f77_print_array_1): Changed datatype of index
16015 variable to LONGEST from int to enable it to contain bound
16018 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
16020 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16021 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16022 offsets according to FLEN determined.
16023 (riscv_linux_nat_target::read_description): Determine FLEN
16025 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16026 according to FLEN determined.
16027 (riscv_linux_nat_target::store_registers): Likewise.
16029 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16031 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16032 when reg->group is empty and reggroup is not.
16034 2020-01-31 Tom Tromey <tromey@adacore.com>
16036 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16037 Call beneath target's mourn_inferior after unpushing.
16039 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16042 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16043 have enough lines to fill the screen, still return the lowest
16046 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16048 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16049 '-', '<', and '>' commands.
16051 2020-01-29 Pedro Alves <palves@redhat.com>
16052 Sergio Durigan Junior <sergiodj@redhat.com>
16054 * infcmd.c (construct_inferior_arguments): Assert that
16055 'argc' is greater than 0.
16057 2020-01-29 Luis Machado <luis.machado@linaro.org>
16059 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16060 (BRK_INSN_MASK): Define to 0xd4200000.
16061 (aarch64_program_breakpoint_here_p): New function.
16062 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16063 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16065 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16067 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16068 call gdbarch_program_breakpoint_here_p.
16069 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16070 default_program_breakpoint_here_p, changed return type to bool and
16072 * breakpoint.h (program_breakpoint_here): Moved prototype to
16073 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16074 return type to bool.
16075 * gdbarch.c: Regenerate.
16076 * gdbarch.h: Regenerate.
16077 * gdbarch.sh (program_breakpoint_here_p): New method.
16078 * infrun.c (handle_signal_stop): Call
16079 gdbarch_program_breakpoint_here_p.
16081 2020-01-26 Tom Tromey <tom@tromey.com>
16083 * ctfread.c (struct ctf_fp_info): Reindent.
16084 (_initialize_ctfread): Remove.
16086 2020-01-26 Tom Tromey <tom@tromey.com>
16088 * psymtab.c (partial_map_expand_apply)
16089 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16090 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16091 (psym_print_stats, psym_expand_symtabs_for_function)
16092 (psym_map_symbol_filenames, psym_map_matching_symbols)
16093 (psym_expand_symtabs_matching)
16094 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16095 (maintenance_check_psymtabs): Use new methods.
16096 * psympriv.h (struct partial_symtab) <readin_p,
16097 get_compunit_symtab>: New methods.
16098 <readin, compunit_symtab>: Remove members.
16099 (struct standard_psymtab): New.
16100 (struct legacy_psymtab): Derive from standard_psymtab.
16101 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16103 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16105 2020-01-26 Tom Tromey <tom@tromey.com>
16107 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16108 read_dependencies. Add assert.
16109 * psymtab.c (partial_symtab::read_dependencies): New method.
16110 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16112 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16113 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16115 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16118 2020-01-26 Tom Tromey <tom@tromey.com>
16120 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16121 Call expand_psymtab.
16122 (xcoff_read_symtab): Call expand_psymtab.
16123 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16124 legacy_expand_psymtab.
16125 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16127 (struct legacy_psymtab) <expand_psymtab>: Implement.
16128 <legacy_expand_psymtab>: New member.
16129 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16130 (parse_partial_symbols): Set legacy_expand_psymtab.
16131 (psymtab_to_symtab_1): Change argument order. Call
16133 (new_psymtab): Set legacy_expand_psymtab.
16134 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16135 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16137 (dwarf2_psymtab::expand_psymtab): Rename from
16138 psymtab_to_symtab_1. Call expand_psymtab.
16139 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16140 (dbx_end_psymtab): Likewise.
16141 (dbx_psymtab_to_symtab_1): Change argument order. Call
16143 (dbx_read_symtab): Call expand_psymtab.
16144 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16145 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16146 (ctf_psymtab::read_symtab): Call expand_psymtab.
16148 2020-01-26 Tom Tromey <tom@tromey.com>
16150 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16151 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16153 * mdebugread.c (mdebug_read_symtab): Remove prints.
16154 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16156 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16158 2020-01-26 Tom Tromey <tom@tromey.com>
16160 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16161 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16162 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16164 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16165 * psymtab.c (psymtab_to_symtab): Call method.
16166 (dump_psymtab): Update.
16167 * psympriv.h (struct partial_symtab): Add virtual destructor.
16168 <read_symtab>: New method.
16169 (struct legacy_symtab): New.
16170 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16171 (struct pst_map) <pst>: Now a legacy_psymtab.
16172 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16173 (new_psymtab): Use legacy_psymtab.
16174 * dwarf2read.h (struct dwarf2_psymtab): New.
16175 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16176 * dwarf2read.c (dwarf2_create_include_psymtab)
16177 (dwarf2_build_include_psymtabs, create_type_unit_group)
16178 (create_partial_symtab, process_psymtab_comp_unit_reader)
16179 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16180 (set_partial_user): Use dwarf2_psymtab.
16181 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16182 (psymtab_to_symtab_1, process_full_comp_unit)
16183 (process_full_type_unit, dwarf2_ranges_read)
16184 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16185 (dwarf_decode_lines): Use dwarf2_psymtab.
16186 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16187 (add_address_entry_worker, write_one_signatured_type)
16188 (recursively_count_psymbols, recursively_write_psymbols)
16189 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16190 (write_debug_names): Likewise.
16191 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16192 <pst>: Now a legacy_psymtab.
16193 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16194 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16195 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16196 * ctfread.c (struct ctf_psymtab): New.
16197 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16199 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16200 (create_partial_symtab): Return a ctf_psymtab.
16201 (scan_partial_symbols): Update.
16203 2020-01-26 Tom Tromey <tom@tromey.com>
16205 * xcoffread.c (xcoff_start_psymtab): Use new.
16206 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16207 renamed from start_psymtab_common.
16208 * psympriv.h (struct partial_symtab): Add new constructor.
16209 (start_psymtab_common): Don't declare.
16210 * mdebugread.c (parse_partial_symbols): Use new.
16211 * dwarf2read.c (create_partial_symtab): Use new.
16212 * dbxread.c (start_psymtab): Use new.
16213 * ctfread.c (create_partial_symtab): Use new.
16215 2020-01-26 Tom Tromey <tom@tromey.com>
16217 * xcoffread.c (xcoff_end_psymtab): Use new.
16218 * psymtab.c (start_psymtab_common): Use new.
16219 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16221 * psympriv.h (struct partial_symtab): Add parameters to
16222 constructor. Don't inline.
16223 (allocate_psymtab): Don't declare.
16224 * mdebugread.c (new_psymtab): Use new.
16225 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16226 * dbxread.c (dbx_end_psymtab): Use new.
16228 2020-01-26 Tom Tromey <tom@tromey.com>
16230 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16231 allocate_psymtab. Update documentation.
16232 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16233 allocate_psymtab. Do not use new.
16234 (allocate_psymtab): Use new. Update.
16236 2020-01-26 Tom Tromey <tom@tromey.com>
16238 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16239 * psymtab.c (psym_print_stats): Update.
16240 * psympriv.h (struct partial_symtab) <readin,
16241 psymtabs_addrmap_supported, anonymous>: Now bool.
16242 * mdebugread.c (psymtab_to_symtab_1): Update.
16243 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16244 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16245 (process_full_comp_unit, process_full_type_unit): Update.
16246 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16247 * ctfread.c (psymtab_to_symtab): Update.
16249 2020-01-26 Tom Tromey <tom@tromey.com>
16251 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16252 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16253 * psymtab.c (psymtab_storage): Delete psymtabs.
16254 (psymtab_storage::allocate_psymtab): Use new.
16255 (psymtab_storage::discard_psymtab): Use delete.
16256 * psympriv.h (struct partial_symtab): Add constructor and
16259 2020-01-26 Tom Tromey <tom@tromey.com>
16261 * machoread.c: Do not include psympriv.h.
16263 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16265 * NEWS: Mention the new option and the set/show commands.
16267 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16269 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16270 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16271 (validate_exec_file): New variables, enums, functions.
16272 (exec_file_locate_attach, print_section_info): Style the filenames.
16273 (_initialize_exec): Install show_exec_file_mismatch_command and
16274 set_exec_file_mismatch_command.
16275 * gdbcore.h (validate_exec_file): Declare.
16276 * infcmd.c (attach_command): Call validate_exec_file.
16277 * remote.c ( remote_target::remote_add_inferior): Likewise.
16279 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16281 * frame.c (find_frame_sal): Move call to get_next_frame into more
16283 * inline-frame.c (inilne_state) <inline_state>: Update argument
16285 (inilne_state) <skipped_symbol>: Rename to...
16286 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16287 (skip_inline_frames): Build vector of skipped symbols and use this
16288 to reate the inline_state.
16289 (inline_skipped_symbol): Add a comment and some assertions, fetch
16290 skipped symbol from the list.
16292 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16294 * buildsym.c (lte_is_less_than): Delete.
16295 (buildsym_compunit::end_symtab_with_blockvector): Create local
16296 lambda function to sort line table entries, and use
16297 std::stable_sort instead of std::sort.
16298 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16299 markers when looking for a previous line.
16301 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16303 * dwarf2read.c (lnp_state_machine::record_line): Include
16304 end_sequence parameter in debug print out. Record the line if we
16305 are at an end_sequence marker even if it's not the start of a
16307 * symmisc.c (maintenance_print_one_line_table): Print end of
16308 sequence markers with 'END' not '0'.
16310 2020-01-24 Pedro Alves <palves@redhat.com>
16313 * thread.c (scoped_restore_current_thread::restore): Use
16314 switch_to_inferior_no_thread.
16315 * exec.c: Include "progspace-and-thread.h".
16316 (add_target_sections, remove_target_sections):
16317 scoped_restore_current_pspace_and_thread instead of
16318 scoped_restore_current_thread.
16319 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16320 and aspace to the inferior before calling clone_program_space.
16321 Remove stale comment.
16323 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16325 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16326 (arm_netbsd_nat_target::fetch_registers): ...this.
16327 (arm_nbsd_nat_target::store_registers): Rename to...
16328 (arm_netbsd_nat_target::store_registers): ...this.
16330 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16332 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16335 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16337 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16339 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16341 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16342 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16343 the correct replacement (iterate_over_regset_sections).
16344 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16347 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16350 * gdb/python/python.c (execute_gdb_command): Call
16351 async_enable_stdin in catch block.
16353 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16355 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16356 SWITCH_THRU_ALL_UIS.
16358 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16361 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16362 comment, add extra parameter, and update to store previous symbol
16364 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16365 add extra parameter.
16366 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16367 remove unneeded parameter, add try/catch around gdb_print_insn,
16368 rewrite to add items to asm_lines vector.
16369 (tui_find_backward_disassembly_start_address): New function.
16370 (tui_find_disassembly_address): Updated throughout.
16371 (tui_disasm_window::set_contents): Update for changes to
16373 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16374 number of lines to scroll.
16376 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16378 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16379 (SECT_OFF_DATA): Likewise.
16380 (SECT_OFF_RODATA): Likewise.
16381 (SECT_OFF_TEXT): Likewise.
16382 (SECT_OFF_BSS): Likewise.
16383 (struct objfile) <text_section_offset, data_section_offset>: New
16385 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16386 objfile::text_section_offset.
16387 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16388 * coffread.c (coff_symtab_read): Likewise.
16389 (enter_linenos): Likewise.
16390 (process_coff_symbol): Likewise.
16391 * ctfread.c (get_objfile_text_range): Likewise.
16392 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16393 Use objfile::data_section_offset.
16394 * dwarf2-frame.c (execute_cfa_program): Use
16395 objfile::text_section_offset.
16396 (dwarf2_frame_find_fde): Likewise.
16397 * dwarf2read.c (create_addrmap_from_index): Likewise.
16398 (create_addrmap_from_aranges): Likewise.
16399 (dw2_find_pc_sect_compunit_symtab): Likewise.
16400 (process_psymtab_comp_unit_reader): Likewise.
16401 (add_partial_symbol): Likewise.
16402 (add_partial_subprogram): Likewise.
16403 (process_full_comp_unit): Likewise.
16404 (read_file_scope): Likewise.
16405 (read_func_scope): Likewise.
16406 (read_lexical_block_scope): Likewise.
16407 (read_call_site_scope): Likewise.
16408 (dwarf2_rnglists_process): Likewise.
16409 (dwarf2_ranges_process): Likewise.
16410 (dwarf2_ranges_read): Likewise.
16411 (dwarf_decode_lines_1): Likewise.
16412 (new_symbol): Likewise.
16413 (dwarf2_fetch_die_loc_sect_off): Likewise.
16414 (dwarf2_per_cu_text_offset): Likewise.
16415 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16416 * hppa-tdep.c (read_unwind_info): Likewise.
16417 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16418 * psympriv.h (struct partial_symtab): Likewise.
16419 * psymtab.c (find_pc_sect_psymtab): Likewise.
16420 * solib-svr4.c (enable_break): Likewise.
16421 * stap-probe.c (relocate_address): Use
16422 objfile::data_section_offset.
16423 * xcoffread.c (enter_line_range): Use
16424 objfile::text_section_offset.
16425 (read_xcoff_symtab): Likewise.
16427 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16429 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16430 declaration to narrower scopes.
16432 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16434 * darwin-nat.h (struct darwin_exception_msg, enum
16435 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16437 (class darwin_nat_target) <wait_1, check_new_threads,
16438 decode_exception_message, decode_message, stop_inferior,
16439 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16440 * darwin-nat.c (darwin_check_new_threads): Rename to...
16441 (darwin_nat_target::check_new_threads): ... this.
16442 (darwin_suspend_inferior_it): Remove.
16443 (darwin_decode_exception_message): Rename to...
16444 (darwin_nat_target::decode_exception_message): ... this.
16445 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16446 (darwin_decode_message): Rename to...
16447 (darwin_nat_target::decode_message): ... this.
16448 (cancel_breakpoint): Rename to...
16449 (darwin_nat_target::cancel_breakpoint): ... this.
16450 (darwin_wait): Rename to...
16451 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16452 instead of iterate_over_inferiors.
16453 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16454 (darwin_stop_inferior): Rename to...
16455 (darwin_nat_target::stop_inferior): ... this.
16456 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16457 (darwin_init_thread_list): Rename to...
16458 (darwin_nat_target::init_thread_list): ... this.
16459 (darwin_ptrace_him): Rename to...
16460 (darwin_nat_target::ptrace_him): ... this.
16461 (darwin_nat_target::create_inferior): Pass lambda function to
16463 (darwin_nat_target::detach): Call stop_inferior instead of
16464 darwin_stop_inferior.
16465 * fork-inferior.h (fork_inferior): Change init_trace_fun
16466 parameter to gdb::function_view.
16467 * fork-inferior.c (fork_inferior): Likewise.
16469 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16471 * i386-cygwin-tdep.c (core_process_module_section): Update.
16472 * windows-nat.c (struct lm_info_windows): Add text_offset.
16473 (windows_xfer_shared_libraries): Update.
16474 * windows-tdep.c (windows_xfer_shared_library):
16475 Add text_offset_cached argument.
16476 * windows-tdep.h (windows_xfer_shared_library): Update.
16478 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16480 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16482 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16484 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16485 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16486 replace with range-based for.
16487 (gdbsim_interrupt_inferior): Remove.
16488 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16489 with a range-based for. Inline code from
16490 gdbsim_interrupt_inferior.
16492 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16494 * infrun.c (proceed): Fix indentation.
16496 2020-01-21 Tom Tromey <tromey@adacore.com>
16498 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16499 * python/python.c (python_extension_ops): Update.
16500 (gdbpy_colorize): New function.
16501 * python/lib/gdb/__init__.py (colorize): New function.
16502 * extension.h (ext_lang_colorize): Declare.
16503 * extension.c (ext_lang_colorize): New function.
16504 * extension-priv.h (struct extension_language_ops) <colorize>: New
16506 * cli/cli-style.c (_initialize_cli_style): Update help text.
16508 2020-01-21 Luis Machado <luis.machado@linaro.org>
16510 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16511 <cond>: Change type to bool.
16512 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16513 (aarch64_displaced_step_cb): Likewise.
16514 (aarch64_displaced_step_tb): Likewise.
16516 2020-01-21 Luis Machado <luis.machado@linaro.org>
16518 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16521 2020-01-21 Luis Machado <luis.machado@linaro.org>
16523 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16524 <pc_adjust>: Adjust the documentation.
16525 (aarch64_displaced_step_fixup): Check if PC really moved before
16528 2020-01-19 Tom Tromey <tom@tromey.com>
16530 * disasm.c (~gdb_disassembler): New destructor.
16531 (gdb_buffered_insn_length): Call disassemble_free_target.
16532 * disasm.h (class gdb_disassembler): Declare destructor. Use
16533 DISABLE_COPY_AND_ASSIGN.
16535 2020-01-19 Tom Tromey <tom@tromey.com>
16537 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16538 (die_reader_func_ftype): Remove.
16539 (cutu_reader): New class.
16540 (dw2_get_file_names_reader): Remove "data" parameter.
16541 (dw2_get_file_names): Use cutu_reader.
16542 (create_debug_type_hash_table): Update.
16543 (read_cutu_die_from_dwo): Update comment.
16544 (lookup_dwo_unit): Add dwo_name parameter.
16545 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16546 die_reader_func_ftype and data parameters.
16547 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16548 Remove die_reader_func_ftype and data parameters.
16549 (~cutu_reader): New; from init_cutu_and_read_dies.
16550 (cutu_reader::cutu_reader): Rename from
16551 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16552 and data parameters.
16553 (init_cutu_and_read_dies_simple): Remove.
16554 (struct process_psymtab_comp_unit_data): Remove.
16555 (process_psymtab_comp_unit_reader): Remove data parameter; add
16556 want_partial_unit and pretend_language parameters.
16557 (process_psymtab_comp_unit): Use cutu_reader.
16558 (build_type_psymtabs_reader): Remove data parameter.
16559 (build_type_psymtabs_1): Use cutu_reader.
16560 (process_skeletonless_type_unit): Likewise.
16561 (load_partial_comp_unit_reader): Remove.
16562 (load_partial_comp_unit): Use cutu_reader.
16563 (load_full_comp_unit_reader): Remove.
16564 (load_full_comp_unit): Use cutu_reader.
16565 (struct create_dwo_cu_data): Remove.
16566 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16567 dwo_unit parameters.
16568 (create_cus_hash_table): Use cutu_reader.
16569 (struct dwarf2_read_addr_index_data): Remove.
16570 (dwarf2_read_addr_index_reader): Remove.
16571 (dwarf2_read_addr_index): Use cutu_reader.
16572 (read_signatured_type_reader): Remove.
16573 (read_signatured_type): Use cutu_reader.
16575 2020-01-19 Tom Tromey <tom@tromey.com>
16577 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16578 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16579 (tui_wrefresh): Declare.
16580 * tui/tui-wingeneral.c (suppress_output): New global.
16581 (tui_suppress_output, ~tui_suppress_output): New constructor and
16583 (tui_wrefresh): New function.
16584 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16585 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16586 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16588 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16590 (tui_data_window::no_refresh): New method.
16591 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16592 (tui_reg_command): Use tui_suppress_output
16593 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16594 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16596 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16598 2020-01-19 Tom Tromey <tom@tromey.com>
16600 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16601 Handle case where symtab is null.
16603 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16605 * linux-fork.c (one_fork_p): Simplify.
16607 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16609 * top.c (struct qt_args): Remove.
16610 (kill_or_detach): Change return type to void, replace `void *`
16611 parameter with a proper one.
16612 (print_inferior_quit_action): Likewise.
16613 (quit_confirm): Use range-based for loop to iterate over inferiors.
16614 (quit_force): Likewise.
16616 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16618 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16619 `void *` parameter with proper parameters.
16620 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16621 (print_one_inferior): Change return type to void, replace `void *`
16622 parameter with proper parameters.
16623 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16625 (get_other_inferior): Remove.
16626 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16629 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16631 * mi/mi-interp.c (report_initial_inferior): Remove.
16632 (mi_interp::init): Use range-based for to iterate over inferiors.
16634 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16636 * python/py-inferior.c (build_inferior_list): Remove.
16637 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16639 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16641 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16642 (btrace_stitch_trace): Likewise.
16643 * charset.c (intermediate_encoding): Likewise (vaild).
16644 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16645 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16646 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16648 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16650 * windows-tdep.c (windows_get_tlb_type):
16651 Add rtl_user_process_parameters type.
16653 2020-01-16 Pedro Alves <palves@redhat.com>
16654 Norbert Lange <nolange79@gmail.com>
16657 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16658 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16659 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16660 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16661 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16662 (ps_plog): Redeclare exported functions with default visibility.
16664 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16666 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16667 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16669 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16671 * infcmd.c (post_create_inferior): Use get_thread_regcache
16672 instead of get_current_regcache.
16674 2020-01-14 Tom Tromey <tom@tromey.com>
16677 * python/python.c (gdbpy_decode_line): Treat empty string the same
16680 2020-01-14 Tom Tromey <tom@tromey.com>
16682 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16684 2020-01-14 Tom Tromey <tom@tromey.com>
16686 * nat/linux-btrace.c: Don't include <config.h>.
16687 * nat/linux-ptrace.c: Don't include <config.h>.
16688 * nat/x86-linux-dregs.c: Don't include <config.h>.
16690 2020-01-14 Tom Tromey <tom@tromey.com>
16692 * configure: Rebuild.
16693 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16695 2020-01-14 Tom Tromey <tom@tromey.com>
16697 * nat/x86-linux-dregs.c: Include configh.h.
16698 * nat/linux-ptrace.c: Include configh.h.
16699 * nat/linux-btrace.c: Include configh.h.
16700 * defs.h: Include config.h, bfd.h.
16701 * configure.ac: Don't source common.host.
16702 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16703 * configure: Rebuild.
16704 * acinclude.m4: Update path.
16705 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16706 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16707 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16708 (CLIBS): Add LIBSUPPORT.
16710 (COMMON_SFILES): Remove gdbsupport files.
16711 (HFILES_NO_SRCDIR): Likewise.
16712 (stamp-version): Update path to create-version.sh.
16713 (ALLDEPFILES): Remove gdbsupport files.
16715 2020-01-14 Tom Tromey <tom@tromey.com>
16717 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16718 USE_WIN32API when needed.
16719 * configure.ac (USE_WIN32API): Don't define.
16720 (WIN32LIBS): Use WIN32APILIBS.
16721 * configure: Rebuild.
16723 2020-01-14 Tom Tromey <tom@tromey.com>
16725 * configure: Rebuild.
16726 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16728 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16730 * skip.c (skip_function_command): Make skip w/o arguments use the
16731 name of the inlined function if pc is inside any inlined function.
16733 2020-01-14 Luis Machado <luis.machado@linaro.org>
16735 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16736 * infrun.c (resume_1): Likewise.
16737 (handle_inferior_event): Remove stale comment.
16738 * linux-nat.c (linux_nat_target::resume): Update comments.
16739 (save_stop_reason): Likewise.
16740 (linux_nat_filter_event): Likewise.
16741 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16743 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16745 * elfread.c (record_minimal_symbol): Set section index to 0 for
16746 non-allocatable sections.
16749 2020-01-13 Ali Tamur <tamur@google.com>
16751 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16752 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16753 to gdb::optional. Update comments.
16754 (dwo_file): Update comments.
16755 (read_attribute): Update API to take an additional out parameter,
16756 need_reprocess. This is used to mark attributes that need other
16757 attributes (e.g. str_offsets_base) for correct computation which may not
16758 have been read yet.
16759 (read_attribute_reprocess): New function declaration.
16760 (read_addr_index): Likewise.
16761 (read_dwo_str_index): Likewise.
16762 (read_stub_str_index): Likewise.
16763 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16764 (lookup_addr_base): New function definition.
16765 (lookup_ranges_base): Likewise.
16766 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16767 lookup_ranges_base.
16768 (init_cutu_and_read_dies): Update comments.
16769 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16770 unit. This is used to inherit parent's str_offsets_base and addr_base.
16772 (init_cutu_and_read_dies_simple): Reflect API changes.
16773 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16774 (create_cus_hash_table): Change API to take parent compile unit.
16775 Reflect API changes.
16776 (open_and_init_dwo_file): Reflect API changes.
16777 (dwarf2_get_pc_bounds): Update comments.
16778 (dwarf2_record_block_ranges): Likewise.
16779 (read_full_die_1): Change implementation to reprocess attributes that
16780 need str_offsets_base and addr_base.
16781 (partial_die_info::read): Likewise.
16782 (read_attribute_reprocess): New function definition.
16783 (read_attribute_value): Change API to take an additional out parameter,
16784 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16785 when a non-dwo compile unit has index based attributes.
16786 (read_attribute): Reflect API changes.
16787 (read_addr_index_1): Reflect API changes. Update comments.
16788 (dwarf2_read_addr_index_data): Reflect API changes.
16789 (dwarf2_read_addr_index): Likewise.
16790 (read_str_index): Change API and implementation. This becomes a helper
16791 to be used by the new string index related methods. Update error
16792 message and comments.
16793 (read_dwo_str_index): New function definition.
16794 (read_stub_str_index): Likewise.
16795 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16796 * symfile.h (dwarf2_debug_sections): Likewise.
16797 * xcoffread.c (dwarf2_debug_sections): Likewise.
16799 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16801 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16802 core_reg_sect type to gdb_byte *.
16803 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16804 * cris-tdep.c (fetch_core_registers): Likewise.
16805 * corelow.c (core_target::get_core_register_section): Change
16806 type of `contents` to gdb::byte_vector.
16808 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16810 * tui/tui-wingeneral.c (box_win): Position the title in the center
16813 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16815 * corelow.c (core_target::get_core_register_section): Use
16816 std::vector instead of alloca.
16818 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16820 * warning.m4: Add -Wmissing-declarations to build_warnings.
16821 * configure: Re-generate.
16823 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16825 * python/python.c (init__gdb_module): Add declaration.
16827 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16829 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16830 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16831 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16832 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16833 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16834 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16835 * ada-exp.y (_initialize_ada_exp): Add declaration.
16836 * ada-lang.c (_initialize_ada_language): Add declaration.
16837 * ada-tasks.c (_initialize_tasks): Add declaration.
16838 * agent.c (_initialize_agent): Add declaration.
16839 * aix-thread.c (_initialize_aix_thread): Add declaration.
16840 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16841 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16842 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16843 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16844 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16845 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16846 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16847 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16848 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16849 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16850 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16851 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16852 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16853 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16854 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16855 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16856 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16857 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16858 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16859 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16860 * annotate.c (_initialize_annotate): Add declaration.
16861 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16862 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16863 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16864 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16865 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16866 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16867 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16868 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16869 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16870 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16871 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16872 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16873 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16874 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16875 * auto-load.c (_initialize_auto_load): Add declaration.
16876 * auxv.c (_initialize_auxv): Add declaration.
16877 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16878 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16879 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16880 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16881 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16882 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16883 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16884 * breakpoint.c (_initialize_breakpoint): Add declaration.
16885 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16886 * btrace.c (_initialize_btrace): Add declaration.
16887 * charset.c (_initialize_charset): Add declaration.
16888 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16889 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16890 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16891 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16892 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16893 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16894 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16895 * coffread.c (_initialize_coffread): Add declaration.
16896 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16897 * compile/compile.c (_initialize_compile): Add declaration.
16898 * complaints.c (_initialize_complaints): Add declaration.
16899 * completer.c (_initialize_completer): Add declaration.
16900 * copying.c (_initialize_copying): Add declaration.
16901 * corefile.c (_initialize_core): Add declaration.
16902 * corelow.c (_initialize_corelow): Add declaration.
16903 * cp-abi.c (_initialize_cp_abi): Add declaration.
16904 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16905 * cp-support.c (_initialize_cp_support): Add declaration.
16906 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16907 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16908 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16909 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16910 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16911 * ctfread.c (_initialize_ctfread): Add declaration.
16912 * d-lang.c (_initialize_d_language): Add declaration.
16913 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16914 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16915 * dbxread.c (_initialize_dbxread): Add declaration.
16916 * dcache.c (_initialize_dcache): Add declaration.
16917 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16918 * disasm.c (_initialize_disasm): Add declaration.
16919 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16920 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16921 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16922 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16923 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16924 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16925 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16926 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16927 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16928 * elfread.c (_initialize_elfread): Add declaration.
16929 * exec.c (_initialize_exec): Add declaration.
16930 * extension.c (_initialize_extension): Add declaration.
16931 * f-lang.c (_initialize_f_language): Add declaration.
16932 * f-valprint.c (_initialize_f_valprint): Add declaration.
16933 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16934 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16935 * filesystem.c (_initialize_filesystem): Add declaration.
16936 * findcmd.c (_initialize_mem_search): Add declaration.
16937 * findvar.c (_initialize_findvar): Add declaration.
16938 * fork-child.c (_initialize_fork_child): Add declaration.
16939 * frame-base.c (_initialize_frame_base): Add declaration.
16940 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16941 * frame.c (_initialize_frame): Add declaration.
16942 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16943 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16944 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16945 * gcore.c (_initialize_gcore): Add declaration.
16946 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16947 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16948 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16949 * gdbarch.c (_initialize_gdbarch): Add declaration.
16950 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16951 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16952 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16953 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16954 * go-lang.c (_initialize_go_language): Add declaration.
16955 * go32-nat.c (_initialize_go32_nat): Add declaration.
16956 * guile/guile.c (_initialize_guile): Add declaration.
16957 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16958 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16959 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16960 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16961 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16962 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16963 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16964 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16965 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16966 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16967 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16968 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16969 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16970 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16971 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16972 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16973 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16974 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16975 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16976 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16977 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16978 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16979 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16980 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16981 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16982 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16983 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16984 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16985 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16986 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16987 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16988 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16989 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16990 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16991 * infcall.c (_initialize_infcall): Add declaration.
16992 * infcmd.c (_initialize_infcmd): Add declaration.
16993 * inflow.c (_initialize_inflow): Add declaration.
16994 * infrun.c (_initialize_infrun): Add declaration.
16995 * interps.c (_initialize_interpreter): Add declaration.
16996 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16997 * jit.c (_initialize_jit): Add declaration.
16998 * language.c (_initialize_language): Add declaration.
16999 * linux-fork.c (_initialize_linux_fork): Add declaration.
17000 * linux-nat.c (_initialize_linux_nat): Add declaration.
17001 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17002 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17003 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17004 * m2-lang.c (_initialize_m2_language): Add declaration.
17005 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17006 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17007 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17008 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17009 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17010 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17011 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17012 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17013 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17014 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17015 * machoread.c (_initialize_machoread): Add declaration.
17016 * macrocmd.c (_initialize_macrocmd): Add declaration.
17017 * macroscope.c (_initialize_macroscope): Add declaration.
17018 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17019 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17020 * maint.c (_initialize_maint_cmds): Add declaration.
17021 * mdebugread.c (_initialize_mdebugread): Add declaration.
17022 * memattr.c (_initialize_mem): Add declaration.
17023 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17024 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17025 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17026 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17027 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17028 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17029 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17030 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17031 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17032 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17033 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17034 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17035 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17036 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17037 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17038 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17039 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17040 * mipsread.c (_initialize_mipsread): Add declaration.
17041 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17042 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17043 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17044 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17045 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17046 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17047 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17048 * nto-procfs.c (_initialize_procfs): Add declaration.
17049 * objc-lang.c (_initialize_objc_language): Add declaration.
17050 * observable.c (_initialize_observer): Add declaration.
17051 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17052 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17053 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17054 * osabi.c (_initialize_gdb_osabi): Add declaration.
17055 * osdata.c (_initialize_osdata): Add declaration.
17056 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17057 * parse.c (_initialize_parse): Add declaration.
17058 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17059 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17060 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17061 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17062 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17063 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17064 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17065 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17066 * printcmd.c (_initialize_printcmd): Add declaration.
17067 * probe.c (_initialize_probe): Add declaration.
17068 * proc-api.c (_initialize_proc_api): Add declaration.
17069 * proc-events.c (_initialize_proc_events): Add declaration.
17070 * proc-service.c (_initialize_proc_service): Add declaration.
17071 * procfs.c (_initialize_procfs): Add declaration.
17072 * producer.c (_initialize_producer): Add declaration.
17073 * psymtab.c (_initialize_psymtab): Add declaration.
17074 * python/python.c (_initialize_python): Add declaration.
17075 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17076 * record-btrace.c (_initialize_record_btrace): Add declaration.
17077 * record-full.c (_initialize_record_full): Add declaration.
17078 * record.c (_initialize_record): Add declaration.
17079 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17080 * regcache.c (_initialize_regcache): Add declaration.
17081 * reggroups.c (_initialize_reggroup): Add declaration.
17082 * remote-notif.c (_initialize_notif): Add declaration.
17083 * remote-sim.c (_initialize_remote_sim): Add declaration.
17084 * remote.c (_initialize_remote): Add declaration.
17085 * reverse.c (_initialize_reverse): Add declaration.
17086 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17087 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17088 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17089 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17090 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17091 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17092 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17093 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17095 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17096 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17097 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17098 * rust-exp.y (_initialize_rust_exp): Add declaration.
17099 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17100 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17101 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17102 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17103 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17104 * score-tdep.c (_initialize_score_tdep): Add declaration.
17105 * ser-go32.c (_initialize_ser_dos): Add declaration.
17106 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17107 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17108 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17109 * ser-uds.c (_initialize_ser_socket): Add declaration.
17110 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17111 * serial.c (_initialize_serial): Add declaration.
17112 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17113 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17114 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17115 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17116 * skip.c (_initialize_step_skip): Add declaration.
17117 * sol-thread.c (_initialize_sol_thread): Add declaration.
17118 * solib-aix.c (_initialize_solib_aix): Add declaration.
17119 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17120 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17121 * solib-frv.c (_initialize_frv_solib): Add declaration.
17122 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17123 * solib-target.c (_initialize_solib_target): Add declaration.
17124 * solib.c (_initialize_solib): Add declaration.
17125 * source-cache.c (_initialize_source_cache): Add declaration.
17126 * source.c (_initialize_source): Add declaration.
17127 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17128 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17129 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17130 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17131 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17132 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17133 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17134 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17135 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17136 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17137 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17138 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17139 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17140 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17141 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17142 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17143 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17144 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17145 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17146 * stabsread.c (_initialize_stabsread): Add declaration.
17147 * stack.c (_initialize_stack): Add declaration.
17148 * stap-probe.c (_initialize_stap_probe): Add declaration.
17149 * std-regs.c (_initialize_frame_reg): Add declaration.
17150 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17151 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17152 * symfile.c (_initialize_symfile): Add declaration.
17153 * symmisc.c (_initialize_symmisc): Add declaration.
17154 * symtab.c (_initialize_symtab): Add declaration.
17155 * target.c (_initialize_target): Add declaration.
17156 * target-connection.c (_initialize_target_connection): Add
17158 * target-dcache.c (_initialize_target_dcache): Add declaration.
17159 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17160 * thread.c (_initialize_thread): Add declaration.
17161 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17162 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17163 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17164 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17165 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17166 * tracectf.c (_initialize_ctf): Add declaration.
17167 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17168 * tracefile.c (_initialize_tracefile): Add declaration.
17169 * tracepoint.c (_initialize_tracepoint): Add declaration.
17170 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17171 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17172 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17173 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17174 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17175 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17176 * tui/tui.c (_initialize_tui): Add declaration.
17177 * typeprint.c (_initialize_typeprint): Add declaration.
17178 * ui-style.c (_initialize_ui_style): Add declaration.
17179 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17180 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17181 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17182 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17183 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17184 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17185 * unittests/filtered_iterator-selftests.c
17186 (_initialize_filtered_iterator_selftests): Add declaration.
17187 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17188 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17189 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17190 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17191 * unittests/main-thread-selftests.c
17192 (_initialize_main_thread_selftests): Add declaration.
17193 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17194 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17195 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17196 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17197 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17198 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17199 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17200 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17201 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17202 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17203 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17204 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17205 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17206 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17207 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17209 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17210 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17211 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17212 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17213 * user-regs.c (_initialize_user_regs): Add declaration.
17214 * utils.c (_initialize_utils): Add declaration.
17215 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17216 * valops.c (_initialize_valops): Add declaration.
17217 * valprint.c (_initialize_valprint): Add declaration.
17218 * value.c (_initialize_values): Add declaration.
17219 * varobj.c (_initialize_varobj): Add declaration.
17220 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17221 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17222 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17223 * windows-nat.c (_initialize_windows_nat): Add declaration.
17224 (_initialize_check_for_gdb_ini): Add declaration.
17225 (_initialize_loadable): Add declaration.
17226 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17227 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17228 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17229 * xcoffread.c (_initialize_xcoffread): Add declaration.
17230 * xml-support.c (_initialize_xml_support): Add declaration.
17231 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17232 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17233 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17234 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17236 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17238 * regformats/regdat.sh: Generate declaration for init function.
17240 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17242 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17244 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17245 close_one_inferior>: New methods.
17246 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17247 pass down target to find_inferior_pid.
17248 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17249 Pass down target to find_inferior_ptid.
17250 (gdbsim_target::create_inferior): Pass down target to
17252 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17253 target down to find_inferior_ptid and switch_to_thread.
17254 (gdbsim_target::close): Update to call close_one_inferior.
17255 (struct resume_data): Remove.
17256 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17257 directly, rather than through a void pointer.
17258 (gdbsim_target::resume): Update to call resume_one_inferior.
17260 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17262 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17264 2020-01-12 Pedro Alves <palves@redhat.com>
17266 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17267 directly for the current inferior instead of
17268 discard_all_inferiors.
17269 (discard_all_inferiors): Delete.
17271 2020-01-11 Tom Tromey <tom@tromey.com>
17273 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17274 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17275 deprecated_safe_get_selected_frame.
17277 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17279 * inferior.c (print_inferior): Switch inferior before printing it.
17281 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17282 Pedro Alves <palves@redhat.com>
17284 * progspace-and-thread.c (switch_to_program_space_and_thread):
17285 Assert there's an inferior for PSPACE. Use
17286 switch_to_inferior_no_thread to switch the inferior too.
17287 * progspace.c (program_space::~program_space): Call
17288 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17289 (program_space::free_all_objfiles): Don't call clear_symtab_users
17291 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17293 2020-01-10 Pedro Alves <palves@redhat.com>
17295 * NEWS: Mention multi-target debugging, "info connections", and
17296 "add-inferior -no-connection".
17298 2020-01-10 Pedro Alves <palves@redhat.com>
17300 * infrun.c: Include "target-connection.h".
17301 (check_multi_target_resumption): New.
17302 (proceed): Call it.
17303 * target-connection.c (make_target_connection_string): Make
17305 * target-connection.h (make_target_connection_string): Declare.
17307 2020-01-10 Pedro Alves <palves@redhat.com>
17309 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17310 * inferior.c (uiout_field_connection): New function.
17311 (print_inferior): Add new "connection-id" column.
17312 (add_inferior_command): Show connection number/string of added
17314 * process-stratum-target.h
17315 (process_stratum_target::connection_string): New virtual method.
17316 (process_stratum_target::connection_number): New field.
17317 * remote.c (remote_target::connection_string): New override.
17318 * target-connection.c: New file.
17319 * target-connection.h: New file.
17320 * target.c (decref_target): Remove process_stratum targets from
17321 the connection list.
17322 (target_stack::push): Add process_stratum targets to the
17325 2020-01-10 Pedro Alves <palves@redhat.com>
17328 2016-04-12 Pedro Alves <palves@redhat.com>
17329 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17330 Remove references to name.
17331 * serial.h (struct serial) <name>: Delete.
17333 2020-01-10 Pedro Alves <palves@redhat.com>
17335 * gdbarch-selftests.c (register_to_value_test): Remove "target
17336 already pushed" check.
17338 2020-01-10 Pedro Alves <palves@redhat.com>
17339 John Baldwin <jhb@FreeBSD.org>
17341 * aarch64-linux-nat.c
17342 (aarch64_linux_nat_target::thread_architecture): Adjust.
17343 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17344 (task_command_1): Likewise.
17345 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17346 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17347 (aix_thread_target::store_registers)
17348 (aix_thread_target::thread_alive): Adjust.
17349 * amd64-fbsd-tdep.c: Include "inferior.h".
17350 (amd64fbsd_get_thread_local_address): Pass down target.
17351 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17352 thread's gdbarch instead of target_gdbarch.
17353 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17354 get_last_target_status.
17355 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17356 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17358 (update_inserted_breakpoint_locations): Skip if inferiors with no
17360 (update_global_location_list): When handling moribund locations,
17361 find representative inferior for location's pspace, and use thread
17362 count of its process_stratum target.
17363 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17364 * bsd-uthread.c (bsd_uthread_target::wait): Use
17365 as_process_stratum_target and adjust thread_change_ptid and
17367 (bsd_uthread_target::update_thread_list): Use
17368 as_process_stratum_target and adjust find_thread_ptid,
17369 thread_change_ptid and add_thread calls.
17370 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17371 find_thread_ptid call.
17372 * corelow.c (add_to_thread_list): Adjust add_thread call.
17373 (core_target_open): Adjust add_thread_silent and thread_count
17375 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17376 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17377 * event-top.c (async_disconnect): Pop targets from all inferiors.
17378 * exec.c (add_target_sections): Push exec target on all inferiors
17379 sharing the program space.
17380 (remove_target_sections): Remove the exec target from all
17381 inferiors sharing the program space.
17382 (exec_on_vfork): New.
17383 * exec.h (exec_on_vfork): Declare.
17384 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17386 (fbsd_nat_target::update_thread_list): Adjust.
17387 (fbsd_nat_target::resume): Adjust.
17388 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17390 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17391 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17392 get_thread_arch_regcache call.
17393 * fork-child.c (gdb_startup_inferior): Pass target down to
17394 startup_inferior and set_executing.
17395 * gdbthread.h (struct process_stratum_target): Forward declare.
17396 (add_thread, add_thread_silent, add_thread_with_info)
17397 (in_thread_list): Add process_stratum_target parameter.
17398 (find_thread_ptid(inferior*, ptid_t)): New overload.
17399 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17401 (all_threads()): Delete overload.
17402 (all_threads, all_non_exited_threads): Add process_stratum_target
17404 (all_threads_safe): Use brace initialization.
17405 (thread_count): Add process_stratum_target parameter.
17406 (set_resumed, set_running, set_stop_requested, set_executing)
17407 (threads_are_executing, finish_thread_state): Add
17408 process_stratum_target parameter.
17409 (switch_to_thread): Use is_current_thread.
17410 * i386-fbsd-tdep.c: Include "inferior.h".
17411 (i386fbsd_get_thread_local_address): Pass down target.
17412 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17413 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17414 have_inferiors check.
17415 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17416 (inf_ptrace_target::attach): Adjust.
17417 * infcall.c (run_inferior_call): Adjust.
17418 * infcmd.c (run_command_1): Pass target to
17419 scoped_finish_thread_state.
17420 (proceed_thread_callback): Skip inferiors with no execution.
17421 (continue_command): Rename 'all_threads' local to avoid hiding
17422 'all_threads' function. Adjust get_last_target_status call.
17423 (prepare_one_step): Adjust set_running call.
17424 (signal_command): Use user_visible_resume_target. Compare thread
17425 pointers instead of inferior_ptid.
17426 (info_program_command): Adjust to pass down target.
17427 (attach_command): Mark target's 'thread_executing' flag.
17428 (stop_current_target_threads_ns): New, factored out from ...
17429 (interrupt_target_1): ... this. Switch inferior before making
17432 (struct all_inferiors_iterator, struct all_inferiors_range)
17433 (struct all_inferiors_safe_range)
17434 (struct all_non_exited_inferiors_range): Filter on
17435 process_stratum_target too. Remove explicit.
17436 * inferior.c (inferior::inferior): Push dummy target on target
17438 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17439 Add process_stratum_target parameter, and pass it down.
17440 (have_live_inferiors): Adjust.
17441 (switch_to_inferior_and_push_target): New.
17442 (add_inferior_command, clone_inferior_command): Handle
17443 "-no-connection" parameter. Use
17444 switch_to_inferior_and_push_target.
17445 (_initialize_inferior): Mention "-no-connection" option in
17446 the help of "add-inferior" and "clone-inferior" commands.
17447 * inferior.h: Include "process-stratum-target.h".
17448 (interrupt_target_1): Use bool.
17449 (struct inferior) <push_target, unpush_target, target_is_pushed,
17450 find_target_beneath, top_target, process_target, target_at,
17452 (discard_all_inferiors): Delete.
17453 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17454 (all_inferiors, all_non_exited_inferiors): Add
17455 process_stratum_target parameter.
17456 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17457 (target_last_proc_target): New global.
17458 (follow_fork_inferior): Push target on new inferior. Pass target
17459 to add_thread_silent. Call exec_on_vfork. Handle target's
17461 (follow_fork): Adjust get_last_target_status call. Also consider
17463 (follow_exec): Push target on new inferior.
17464 (struct execution_control_state) <target>: New field.
17465 (user_visible_resume_target): New.
17466 (do_target_resume): Call target_async.
17467 (resume_1): Set target's threads_executing flag. Consider resume
17469 (commit_resume_all_targets): New.
17470 (proceed): Also consider resume target. Skip threads of inferiors
17471 with no execution. Commit resumtion in all targets.
17472 (start_remote): Pass current inferior to wait_for_inferior.
17473 (infrun_thread_stop_requested): Consider target as well. Pass
17474 thread_info pointer to clear_inline_frame_state instead of ptid.
17475 (infrun_thread_thread_exit): Consider target as well.
17476 (random_pending_event_thread): New inferior parameter. Use it.
17477 (do_target_wait): Rename to ...
17478 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17480 (threads_are_resumed_pending_p, do_target_wait): New.
17481 (prepare_for_detach): Adjust calls.
17482 (wait_for_inferior): New inferior parameter. Handle it. Use
17483 do_target_wait_1 instead of do_target_wait.
17484 (fetch_inferior_event): Adjust. Switch to representative
17485 inferior. Pass target down.
17486 (set_last_target_status): Add process_stratum_target parameter.
17487 Save target in global.
17488 (get_last_target_status): Add process_stratum_target parameter and
17490 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17491 (context_switch): Check inferior_ptid == null_ptid before calling
17493 (get_inferior_stop_soon): Pass down target.
17494 (wait_one): Rename to ...
17495 (poll_one_curr_target): ... this.
17496 (struct wait_one_event): New.
17498 (stop_all_threads): Adjust.
17499 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17501 (switch_back_to_stepped_thread): Also consider target.
17502 (print_stop_event): Update.
17503 (normal_stop): Update. Also consider the resume target.
17504 * infrun.h (wait_for_inferior): Remove declaration.
17505 (user_visible_resume_target): New declaration.
17506 (get_last_target_status, set_last_target_status): New
17507 process_stratum_target parameter.
17508 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17509 process_stratum_target parameter, and use it.
17510 (clear_inline_frame_state (thread_info*)): New.
17511 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17512 process_stratum_target parameter.
17513 (clear_inline_frame_state (thread_info*)): Declare.
17514 * linux-fork.c (delete_checkpoint_command): Pass target down to
17516 (checkpoint_command): Adjust.
17517 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17518 instead of just tweaking inferior_ptid.
17519 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17520 (exit_lwp): Pass target down to find_thread_ptid.
17521 (attach_proc_task_lwp_callback): Pass target down to
17522 add_thread/set_running/set_executing.
17523 (linux_nat_target::attach): Pass target down to
17524 thread_change_ptid.
17525 (get_detach_signal): Pass target down to find_thread_ptid.
17526 Consider last target status's target.
17527 (linux_resume_one_lwp_throw, resume_lwp)
17528 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17529 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17530 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17531 (linux_nat_target::async_wait_fd): New.
17532 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17534 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17535 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17536 * linux-thread-db.c (struct thread_db_info::process_target): New
17538 (add_thread_db_info): Save target.
17539 (get_thread_db_info): New process_stratum_target parameter. Also
17541 (delete_thread_db_info): New process_stratum_target parameter.
17543 (thread_from_lwp): Adjust to pass down target.
17544 (thread_db_notice_clone): Pass down target.
17545 (check_thread_db_callback): Pass down target.
17546 (try_thread_db_load_1): Always push the thread_db target.
17547 (try_thread_db_load, record_thread): Pass target down.
17548 (thread_db_target::detach): Pass target down. Always unpush the
17550 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17551 target down. Always unpush the thread_db target.
17552 (find_new_threads_callback, thread_db_find_new_threads_2)
17553 (thread_db_target::update_thread_list): Pass target down.
17554 (thread_db_target::pid_to_str): Pass current inferior down.
17555 (thread_db_target::get_thread_local_address): Pass target down.
17556 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17558 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17559 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17560 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17561 (procfs_init_inferior): Rename to ...
17562 (procfs_target::procfs_init_inferior): ... this and adjust.
17563 (procfs_target::create_inferior, procfs_notice_thread)
17564 (procfs_do_thread_registers): Adjust.
17565 * ppc-fbsd-tdep.c: Include "inferior.h".
17566 (ppcfbsd_get_thread_local_address): Pass down target.
17567 * proc-service.c (ps_xfer_memory): Switch current inferior and
17568 program space as well.
17569 (get_ps_regcache): Pass target down.
17570 * process-stratum-target.c
17571 (process_stratum_target::thread_address_space)
17572 (process_stratum_target::thread_architecture): Pass target down.
17573 * process-stratum-target.h
17574 (process_stratum_target::threads_executing): New field.
17575 (as_process_stratum_target): New.
17576 * ravenscar-thread.c
17577 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17578 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17580 * record-btrace.c (record_btrace_target::info_record): Adjust.
17581 (record_btrace_target::record_method)
17582 (record_btrace_target::record_is_replaying)
17583 (record_btrace_target::fetch_registers)
17584 (get_thread_current_frame_id, record_btrace_target::resume)
17585 (record_btrace_target::wait, record_btrace_target::stop): Pass
17587 * record-full.c (record_full_wait_1): Switch to event thread.
17589 * regcache.c (regcache::regcache)
17590 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17591 process_stratum_target parameter and handle it.
17592 (current_thread_target): New global.
17593 (get_thread_regcache): Add process_stratum_target parameter and
17594 handle it. Switch inferior before calling target method.
17595 (get_thread_regcache): Pass target down.
17596 (get_thread_regcache_for_ptid): Pass target down.
17597 (registers_changed_ptid): Add process_stratum_target parameter and
17599 (registers_changed_thread, registers_changed): Pass target down.
17600 (test_get_thread_arch_aspace_regcache): New.
17601 (current_regcache_test): Define a couple local test_target_ops
17602 instances and use them for testing.
17603 (readwrite_regcache): Pass process_stratum_target parameter.
17604 (cooked_read_test, cooked_write_test): Pass mock_target down.
17605 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17606 (get_thread_arch_aspace_regcache): Add process_stratum_target
17608 (regcache::target): New method.
17609 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17610 (regcache::registers_changed_ptid): Add process_stratum_target
17612 (regcache::m_target): New field.
17613 (registers_changed_ptid): Add process_stratum_target parameter.
17614 * remote.c (remote_state::supports_vCont_probed): New field.
17615 (remote_target::async_wait_fd): New method.
17616 (remote_unpush_and_throw): Add remote_target parameter.
17617 (get_current_remote_target): Adjust.
17618 (remote_target::remote_add_inferior): Push target.
17619 (remote_target::remote_add_thread)
17620 (remote_target::remote_notice_new_inferior)
17621 (get_remote_thread_info): Pass target down.
17622 (remote_target::update_thread_list): Skip threads of inferiors
17623 bound to other targets. (remote_target::close): Don't discard
17624 inferiors. (remote_target::add_current_inferior_and_thread)
17625 (remote_target::process_initial_stop_replies)
17626 (remote_target::start_remote)
17627 (remote_target::remote_serial_quit_handler): Pass down target.
17628 (remote_target::remote_unpush_target): New remote_target
17629 parameter. Unpush the target from all inferiors.
17630 (remote_target::remote_unpush_and_throw): New remote_target
17631 parameter. Pass it down.
17632 (remote_target::open_1): Check whether the current inferior has
17633 execution instead of checking whether any inferior is live. Pass
17635 (remote_target::remote_detach_1): Pass down target. Use
17636 remote_unpush_target.
17637 (extended_remote_target::attach): Pass down target.
17638 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17639 (remote_target::append_resumption): Pass down target.
17640 (remote_target::append_pending_thread_resumptions)
17641 (remote_target::remote_resume_with_hc, remote_target::resume)
17642 (remote_target::commit_resume): Pass down target.
17643 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17644 (remote_target::interrupt_query)
17645 (remote_target::remove_new_fork_children)
17646 (remote_target::check_pending_events_prevent_wildcard_vcont)
17647 (remote_target::remote_parse_stop_reply)
17648 (remote_target::process_stop_reply): Pass down target.
17649 (first_remote_resumed_thread): New remote_target parameter. Pass
17651 (remote_target::wait_as): Pass down target.
17652 (unpush_and_perror): New remote_target parameter. Pass it down.
17653 (remote_target::readchar, remote_target::remote_serial_write)
17654 (remote_target::getpkt_or_notif_sane_1)
17655 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17657 (remote_target::mourn_inferior): Pass down target. Use
17658 remote_unpush_target.
17659 (remote_target::core_of_thread)
17660 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17661 (remote_target::pid_to_exec_file)
17662 (remote_target::thread_handle_to_thread_info): Pass down target.
17663 (remote_target::async_wait_fd): New.
17664 * riscv-fbsd-tdep.c: Include "inferior.h".
17665 (riscv_fbsd_get_thread_local_address): Pass down target.
17666 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17667 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17668 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17670 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17671 * solib-svr4.c (enable_break): Pass down target.
17672 * spu-multiarch.c (parse_spufs_run): Pass down target.
17673 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17674 * target-delegates.c: Regenerate.
17675 * target.c (g_target_stack): Delete.
17676 (current_top_target): Return the current inferior's top target.
17677 (target_has_execution_1): Refer to the passed-in inferior's top
17679 (target_supports_terminal_ours): Check whether the initial
17680 inferior was already created.
17681 (decref_target): New.
17682 (target_stack::push): Incref/decref the target.
17683 (push_target, push_target, unpush_target): Adjust.
17684 (target_stack::unpush): Defref target.
17685 (target_is_pushed): Return bool. Adjust to refer to the current
17686 inferior's target stack.
17687 (dispose_inferior): Delete, and inline parts ...
17688 (target_preopen): ... here. Only dispose of the current inferior.
17689 (target_detach): Hold strong target reference while detaching.
17691 (target_thread_name): Add assertion.
17692 (target_resume): Pass down target.
17693 (target_ops::beneath, find_target_at): Adjust to refer to the
17694 current inferior's target stack.
17695 (get_dummy_target): New.
17696 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17697 has a thread running.
17698 (initialize_targets): Rename to ...
17699 (_initialize_target): ... this.
17700 * target.h: Include "gdbsupport/refcounted-object.h".
17701 (struct target_ops): Inherit refcounted_object.
17702 (target_ops::shortname, target_ops::longname): Make const.
17703 (target_ops::async_wait_fd): New method.
17704 (decref_target): Declare.
17705 (struct target_ops_ref_policy): New.
17706 (target_ops_ref): New typedef.
17707 (get_dummy_target): Declare function.
17708 (target_is_pushed): Return bool.
17709 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17710 (all_matching_threads_iterator::all_matching_threads_iterator):
17711 Handle filter target.
17712 * thread-iter.h (struct all_matching_threads_iterator, struct
17713 all_matching_threads_range, class all_non_exited_threads_range):
17714 Filter by target too. Remove explicit.
17715 * thread.c (threads_executing): Delete.
17716 (inferior_thread): Pass down current inferior.
17717 (clear_thread_inferior_resources): Pass down thread pointer
17719 (add_thread_silent, add_thread_with_info, add_thread): Add
17720 process_stratum_target parameter. Use it for thread and inferior
17722 (is_current_thread): New.
17723 (thread_info::deletable): Use it.
17724 (find_thread_ptid, thread_count, in_thread_list)
17725 (thread_change_ptid, set_resumed, set_running): New
17726 process_stratum_target parameter. Pass it down.
17727 (set_executing): New process_stratum_target parameter. Pass it
17728 down. Adjust reference to 'threads_executing'.
17729 (threads_are_executing): New process_stratum_target parameter.
17730 Adjust reference to 'threads_executing'.
17731 (set_stop_requested, finish_thread_state): New
17732 process_stratum_target parameter. Pass it down.
17733 (switch_to_thread): Also match inferior.
17734 (switch_to_thread): New process_stratum_target parameter. Pass it
17736 (update_threads_executing): Reimplement.
17737 * top.c (quit_force): Pop targets from all inferior.
17738 (gdb_init): Don't call initialize_targets.
17739 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17741 (windows_add_thread, windows_delete_thread): Adjust.
17742 (get_windows_debug_event): Rename to ...
17743 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17744 * tracefile-tfile.c (tfile_target_open): Pass down target.
17745 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17747 (switch_to_thread): Add process_stratum_target parameter.
17748 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17750 (mi_on_resume): Pass target down.
17751 * nat/fork-inferior.c (startup_inferior): Add
17752 process_stratum_target parameter. Pass it down.
17753 * nat/fork-inferior.h (startup_inferior): Add
17754 process_stratum_target parameter.
17755 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17757 2020-01-10 Pedro Alves <palves@redhat.com>
17759 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17760 directly. Instead find the first thread in the thread list and
17761 use switch_to_thread.
17763 2020-01-10 Pedro Alves <palves@redhat.com>
17765 * remote.c (remote_target::remote_add_inferior): Don't bind a
17766 process to the current inferior if the current inferior is already
17767 bound to a process.
17769 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17770 Pedro Alves <palves@redhat.com>
17772 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17773 If no process is specified, return null_ptid instead of
17775 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17776 TARGET_WAITKIND_SIGNALLED with no pid.
17778 2020-01-10 Pedro Alves <palves@redhat.com>
17780 * remote.c (first_remote_resumed_thread): New.
17781 (remote_target::wait_as): Use it as default event_ptid instead of
17784 2020-01-10 Pedro Alves <palves@redhat.com>
17786 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17788 2020-01-10 Pedro Alves <palves@redhat.com>
17790 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17793 2020-01-10 Pedro Alves <palves@redhat.com>
17795 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17796 ptid to get_last_target_status.
17797 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17798 ptid to get_last_target_status.
17799 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17800 get_last_target_status.
17801 (info_program_command): Don't pass a target_waitstatus to
17802 get_last_target_status.
17803 * infrun.c (init_wait_for_inferior): Use
17804 nullify_last_target_wait_ptid.
17805 (get_last_target_status): Handle nullptr arguments.
17806 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17807 (print_stop_event): Don't pass a ptid to get_last_target_status.
17808 (normal_stop): Don't pass a ptid to get_last_target_status.
17809 * infrun.h (get_last_target_status, set_last_target_status): Move
17810 comments here and update.
17811 (nullify_last_target_wait_ptid): Declare.
17812 * linux-fork.c (fork_load_infrun_state): Remove local extern
17813 declaration of nullify_last_target_wait_ptid.
17814 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17815 to get_last_target_status.
17817 2020-01-10 Pedro Alves <palves@redhat.com>
17819 * gdbthread.h (scoped_restore_current_thread)
17820 <dont_restore, restore, m_dont_restore>: Declare.
17821 * thread.c (thread_alive): Add assertion. Return bool.
17822 (switch_to_thread_if_alive): New.
17823 (prune_threads): Switch inferior/thread.
17824 (print_thread_info_1): Switch thread before calling target methods.
17825 (scoped_restore_current_thread::restore): New, factored out from
17827 (scoped_restore_current_thread::~scoped_restore_current_thread):
17829 (scoped_restore_current_thread::scoped_restore_current_thread):
17831 (thread_apply_all_command, thread_select): Use
17832 switch_to_thread_if_alive.
17833 * infrun.c (proceed, restart_threads, handle_signal_stop)
17834 (switch_back_to_stepped_thread): Switch current thread before
17835 calling target methods.
17837 2020-01-10 Pedro Alves <palves@redhat.com>
17839 * inferior.c (switch_to_inferior_no_thread): New function,
17840 factored out from ...
17841 (inferior_command): ... here.
17842 * inferior.h (switch_to_inferior_no_thread): Declare.
17843 * mi/mi-main.c (run_one_inferior): Use
17844 switch_to_inferior_no_thread.
17846 2020-01-10 Pedro Alves <palves@redhat.com>
17848 * infcmd.c (kill_command): Remove dead code.
17850 2020-01-10 Pedro Alves <palves@redhat.com>
17852 * remote.c (remote_target::mourn_inferior): No longer check
17853 whether the target is running.
17855 2020-01-10 Pedro Alves <palves@redhat.com>
17857 * corelow.c (core_target::has_execution): Change parameter type to
17859 * inferior.c (number_of_live_inferiors): Use
17860 inferior::has_execution instead of target_has_execution_1.
17861 * inferior.h (inferior::has_execution): New.
17862 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17863 inferior::has_execution instead of target_has_execution_1.
17864 * process-stratum-target.c
17865 (process_stratum_target::has_execution): Change parameter type to
17866 inferior pointer. Check the inferior's PID instead of
17868 * process-stratum-target.h
17869 (process_stratum_target::has_execution): Change parameter type to
17871 * record-full.c (record_full_core_target::has_execution): Change
17872 parameter type to inferior pointer.
17873 * target.c (target_has_execution_1): Change parameter type to
17875 (target_has_execution_current): Adjust.
17876 * target.h (target_ops::has_execution): Change parameter type to
17878 (target_has_execution_1): Change parameter type to inferior
17879 pointer. Change return type to bool.
17880 * tracefile.h (tracefile_target::has_execution): Change parameter
17881 type to inferior pointer.
17883 2020-01-10 Pedro Alves <palves@redhat.com>
17885 * exceptions.c (print_flush): Remove current_top_target() check.
17887 2020-01-10 Pedro Alves <palves@redhat.com>
17889 * remote.c (show_remote_exec_file): Show the current inferior's
17890 exec-file instead of the command variable's value.
17892 2020-01-10 Pedro Alves <palves@redhat.com>
17894 * record-full.c (record_full_resume_ptid): New global.
17895 (record_full_target::resume): Set it.
17896 (record_full_wait_1): Use record_full_resume_ptid instead of
17899 2020-01-10 Pedro Alves <palves@redhat.com>
17901 * gdbthread.h (scoped_restore_current_thread)
17902 <dont_restore, restore, m_dont_restore>: Declare.
17903 * thread.c (thread_alive): Add assertion. Return bool.
17904 (switch_to_thread_if_alive): New.
17905 (prune_threads): Switch inferior/thread.
17906 (print_thread_info_1): Switch thread before calling target methods.
17907 (scoped_restore_current_thread::restore): New, factored out from
17909 (scoped_restore_current_thread::~scoped_restore_current_thread):
17911 (scoped_restore_current_thread::scoped_restore_current_thread):
17913 (thread_apply_all_command, thread_select): Use
17914 switch_to_thread_if_alive.
17916 2020-01-10 George Barrett <bob@bob131.so>
17918 * stap-probe.c (stap_modify_semaphore): Don't check for null
17920 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17921 for null semaphores.
17923 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17925 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17926 all source windows, and maintain horizontal scroll status while
17929 2020-01-09 Tom Tromey <tom@tromey.com>
17932 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17933 update_source_window, not print_source_lines.
17935 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17937 * tui/tui.c (tui_enable): Register tui hooks after calling
17940 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17942 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17944 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17946 * thread.c (print_thread_info_1): Fix indentation.
17948 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17950 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17951 unique_xmalloc_ptr outside the if to always free the demangled name.
17953 2020-01-08 Tom Tromey <tromey@adacore.com>
17955 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17956 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17957 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17958 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17960 (section_offsets): New typedef.
17961 * symtab.c (fixup_section, get_msymbol_address): Update.
17962 * symmisc.c (dump_msymbols): Update.
17963 * symfile.h (relative_addr_info_to_section_offsets)
17964 (symfile_map_offsets_to_segments): Update.
17965 * symfile.c (build_section_addr_info_from_objfile)
17966 (init_objfile_sect_indices): Update.
17967 (struct place_section_arg): Change type of "offsets".
17968 (place_section): Update.
17969 (relative_addr_info_to_section_offsets): Change type of
17970 "section_offsets". Remove "num_sections" parameter.
17971 (default_symfile_offsets, syms_from_objfile_1)
17972 (set_objfile_default_section_offset): Update.
17973 (reread_symbols): No need to preserve section offsets by hand.
17974 (symfile_map_offsets_to_segments): Change type of "offsets".
17975 * stap-probe.c (relocate_address): Update.
17976 * stabsread.h (process_one_symbol): Update.
17977 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17978 (solib_target_relocate_section_addresses): Update.
17979 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17981 * solib-frv.c (frv_relocate_main_executable): Update.
17982 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17983 * solib-aix.c (solib_aix_get_section_offsets): Change return
17985 (solib_aix_solib_create_inferior_hook): Update.
17986 * remote.c (remote_target::get_offsets): Update.
17987 * psymtab.c (find_pc_sect_psymtab): Update.
17988 * psympriv.h (struct partial_symbol) <address, text_low,
17989 text_high>: Update.
17990 * objfiles.h (obj_section_offset): Update.
17991 (struct objfile) <section_offsets>: Change type.
17992 <num_sections>: Remove.
17993 (objfile_relocate): Update.
17994 * objfiles.c (entry_point_address_query): Update
17995 (relocate_one_symbol): Change type of "section_offsets".
17996 (objfile_relocate1, objfile_relocate1): Change type of
17998 (objfile_rebase1): Update.
17999 * mipsread.c (mipscoff_symfile_read): Update.
18000 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18002 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18003 (parse_external, psymtab_to_symtab_1): Update.
18004 * machoread.c (macho_symfile_offsets): Update.
18005 * ia64-tdep.c (ia64_find_unwind_table): Update.
18006 * hppa-tdep.c (read_unwind_info): Update.
18007 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18008 * dwarf2read.c (create_addrmap_from_index)
18009 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18010 (process_psymtab_comp_unit_reader, add_partial_symbol)
18011 (add_partial_subprogram, process_full_comp_unit)
18012 (read_file_scope, read_func_scope, read_lexical_block_scope)
18013 (read_call_site_scope, dwarf2_rnglists_process)
18014 (dwarf2_ranges_process, dwarf2_ranges_read)
18015 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18016 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18018 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18020 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18021 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18022 (process_one_symbol): Change type of "section_offsets".
18023 * ctfread.c (get_objfile_text_range): Update.
18024 * coffread.c (coff_symtab_read, enter_linenos)
18025 (process_coff_symbol): Update.
18026 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18027 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18029 2020-01-08 Tom Tromey <tromey@adacore.com>
18031 * dwarf2read.c (parse_macro_definition): Use std::string.
18032 (parse_macro_definition): Likewise.
18034 2020-01-08 Tom Tromey <tromey@adacore.com>
18036 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18037 (ATTR_ALLOC_CHUNK): Remove.
18039 2020-01-08 Tom Tromey <tromey@adacore.com>
18041 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18043 2020-01-08 Tom Tromey <tromey@adacore.com>
18045 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18046 (dwarf2_compute_name, open_dwo_file): Likewise.
18047 (process_enumeration_scope): Use std::vector.
18048 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18049 (partial_die_info::fixup, dwarf2_start_subfile)
18050 (guess_full_die_structure_name, dwarf2_name): Likewise.
18051 (determine_prefix): Update.
18052 (guess_full_die_structure_name): Make return type const.
18053 (partial_die_full_name): Return unique_xmalloc_ptr.
18054 (DW_FIELD_ALLOC_CHUNK): Remove.
18056 2020-01-07 Tom Tromey <tromey@adacore.com>
18059 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18061 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18063 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18065 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18067 * stack.c (print_frame_info): Move disassemble_next_line code
18068 inside source_print block.
18070 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18072 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18073 gdb/signals.h, as we are now using native signal symbols.
18075 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18077 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18078 overflow by an early check of content vs threshold.
18079 * tui/tui-source.c (tui_source_window::line_is_displayed):
18082 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18084 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18086 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18088 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18089 export table if no section contains it's RVA.
18091 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18093 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18095 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18097 * source.c (print_source_lines_base): Set last_line_listed.
18099 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18101 * tui/tui-disasm.c: Remove trailing spaces.
18103 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18104 Pedro Alves <palves@redhat.com>
18106 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18107 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18108 (windows_gdb_signal_to_target): New function, uses the above
18109 enumeration to convert GDB internal signal codes to equivalent
18111 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18112 * windows-nat.c: Include "gdb_wait.h".
18113 (get_windows_debug_event): Extract the fatal exception from the
18114 exit status and convert to the equivalent Posix signal number.
18115 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18116 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18117 * gdbsupport/gdb_wait.c: New file, implements
18118 windows_status_to_termsig.
18119 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18120 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18122 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18124 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18127 2020-01-05 Luis Machado <luis.machado@linaro.org>
18129 * aarch64-linux-nat.c
18130 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18131 and bfd_mach_aarch64.
18133 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18135 * ui-file.c (stdio_file::can_emit_style_escape)
18136 (tee_file::can_emit_style_escape): Ensure style is used also on
18137 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18139 * main.c (set_gdb_data_directory): Use file style to output the
18140 warning that the given pathname is not a directory.
18141 * top.c (show_history_filename, gdb_safe_append_history)
18142 (show_gdb_datadir): Use file style.
18144 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18146 * solib-target.c (struct lm_info_target):
18147 Change offsets to be a unique_xmalloc_ptr.
18148 (solib_target_relocate_section_addresses): Update.
18150 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18152 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18154 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18156 * MAINTAINERS (Write After Approval): Add myself.
18158 2020-01-02 Luis Machado <luis.machado@linaro.org>
18160 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18161 Cell BE architecture.
18162 * target.h (struct target_ops) <thread_architecture>: Likewise.
18164 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18166 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18168 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18170 * MAINTAINERS (Write After Approval): Add myself.
18172 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18174 * gdbarch.sh: Update copyright year range of generated files.
18176 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18178 Update copyright year range in all GDB files.
18180 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18182 * copyright.py: Convert to Python 3.
18184 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18186 * copyright.py: Adapt after move of gnulib directory from gdb
18187 directory to toplevel directory.
18189 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18191 * copyright.py (main): Exit if run from the wrong directory.
18193 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18195 * top.c (print_gdb_version): Change copyright year to 2020.
18197 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18199 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18201 For older changes see ChangeLog-2019.
18207 version-control: never